@unself/docs 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -2
- package/assets/assets/index-9-SSbF66.js +102 -0
- package/assets/assets/index-DfETSP6m.css +1 -0
- package/assets/assets/index-DrJ85h4N.js +1 -0
- package/assets/index.html +13 -0
- package/dist/main.js +42648 -0
- package/dist/manifest.json +15 -0
- package/package.json +37 -4
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const i of u)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(u){const i={};return u.integrity&&(i.integrity=u.integrity),u.referrerPolicy&&(i.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?i.credentials="include":u.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(u){if(u.ep)return;u.ep=!0;const i=n(u);fetch(u.href,i)}})();function $m(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const ut={},oo=[],qu=()=>{},FC=()=>!1,Zc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Rc=t=>t.startsWith("onUpdate:"),Xt=Object.assign,Am=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},X_=Object.prototype.hasOwnProperty,Xe=(t,e)=>X_.call(t,e),ve=Array.isArray,Nr=t=>wa(t)==="[object Map]",z0=t=>wa(t)==="[object Set]",qO=t=>wa(t)==="[object Date]",ye=t=>typeof t=="function",gt=t=>typeof t=="string",bu=t=>typeof t=="symbol",We=t=>t!==null&&typeof t=="object",QC=t=>(We(t)||ye(t))&&ye(t.then)&&ye(t.catch),TC=Object.prototype.toString,wa=t=>TC.call(t),V_=t=>wa(t).slice(8,-1),IC=t=>wa(t)==="[object Object]",Dm=t=>gt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ws=$m(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jc=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},q_=/-\w/g,gu=jc(t=>t.replace(q_,e=>e.slice(1).toUpperCase())),W_=/\B([A-Z])/g,ri=jc(t=>t.replace(W_,"-$1").toLowerCase()),zC=jc(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ed=jc(t=>t?`on${zC(t)}`:""),Iu=(t,e)=>!Object.is(t,e),$d=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},ZC=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},Y_=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let WO;const Mc=()=>WO||(WO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function km(t){if(ve(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],u=gt(r)?J_(r):km(r);if(u)for(const i in u)e[i]=u[i]}return e}else if(gt(t)||We(t))return t}const G_=/;(?![^(]*\))/g,H_=/:([^]+)/,K_=/\/\*[^]*?\*\//g;function J_(t){const e={};return t.replace(K_,"").split(G_).forEach(n=>{if(n){const r=n.split(H_);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function ji(t){let e="";if(gt(t))e=t;else if(ve(t))for(let n=0;n<t.length;n++){const r=ji(t[n]);r&&(e+=r+" ")}else if(We(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const ew="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tw=$m(ew);function RC(t){return!!t||t===""}function nw(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Lc(t[r],e[r]);return n}function YO(t,e){if(t.size!==e.size)return!1;const n=Array.from(e),r=new Uint8Array(n.length);for(const u of t){let i=-1;for(let o=0;o<n.length;o++)if(!r[o]&&Lc(u,n[o])){i=o;break}if(i<0)return!1;r[i]=1}return!0}function Lc(t,e){if(t===e)return!0;let n=qO(t),r=qO(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=bu(t),r=bu(e),n||r)return t===e;if(n=ve(t),r=ve(e),n||r)return n&&r?nw(t,e):!1;if(n=We(t),r=We(e),n||r){if(!n||!r)return!1;if(n=Nr(t),r=Nr(e),n||r||(n=z0(t),r=z0(e),n||r))return n&&r?YO(t,e):!1;const u=Object.keys(t).length,i=Object.keys(e).length;if(u!==i)return!1;for(const o in t){const s=t.hasOwnProperty(o),a=e.hasOwnProperty(o);if(s&&!a||!s&&a||!Lc(t[o],e[o]))return!1}}return String(t)===String(e)}const jC=t=>!!(t&&t.__v_isRef===!0),at=t=>gt(t)?t:t==null?"":ve(t)||We(t)&&(t.toString===TC||!ye(t.toString))?jC(t)?at(t.value):JSON.stringify(t,MC,2):String(t),MC=(t,e)=>jC(e)?MC(t,e.value):Nr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,u],i)=>(n[Ad(r,i)+" =>"]=u,n),{})}:z0(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Ad(n))}:bu(e)?Ad(e):We(e)&&!ve(e)&&!IC(e)?String(e):e,Ad=(t,e="")=>{var n;return bu(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let Dt;class uw{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Dt&&(Dt.active?(this.parent=Dt,this.index=(Dt.scopes||(Dt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes){const r=this.scopes.slice();for(e=0,n=r.length;e<n;e++)r[e].pause()}for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes){const u=this.scopes.slice();for(e=0,n=u.length;e<n;e++)u[e].resume()}const r=this.effects.slice();for(e=0,n=r.length;e<n;e++)r[e].resume()}}run(e){if(this._active){const n=Dt;try{return Dt=this,e()}finally{Dt=n}}}on(){++this._on===1&&(this.prevScope=Dt,Dt=this)}off(){if(this._on>0&&--this._on===0){if(Dt===this)Dt=this.prevScope;else{let e=Dt;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const u=this.scopes.slice();for(n=0,r=u.length;n<r;n++)u[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const u=this.parent.scopes.pop();u&&u!==this&&(this.parent.scopes[this.index]=u,u.index=this.index)}this.parent=void 0}}}function rw(){return Dt}function kK(t,e=!1){Dt&&Dt.cleanups.push(t)}let ot;const Dd=new WeakSet;class LC{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Dt&&(Dt.active?Dt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Dd.has(this)&&(Dd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||UC(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,GO(this),XC(this);const e=ot,n=Ou;ot=this,Ou=!0;try{return this.fn()}finally{VC(this),ot=e,Ou=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)wm(e);this.deps=this.depsTail=void 0,GO(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Dd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qh(this)&&this.run()}get dirty(){return qh(this)}}let NC=0,Bs,Ps;function UC(t,e=!1){if(t.flags|=8,e){t.next=Ps,Ps=t;return}t.next=Bs,Bs=t}function Sm(){NC++}function _m(){if(--NC>0)return;if(Ps){let e=Ps;for(Ps=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Bs;){let e=Bs;for(Bs=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function XC(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function VC(t){let e,n=t.depsTail,r=n;for(;r;){const u=r.prevDep;r.version===-1?(r===n&&(n=u),wm(r),iw(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=u}t.deps=e,t.depsTail=n}function qh(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(qC(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function qC(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Us)||(t.globalVersion=Us,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!qh(t))))return;t.flags|=2;const e=t.dep,n=ot,r=Ou;ot=t,Ou=!0;try{XC(t);const u=t.fn(t._value);(e.version===0||Iu(u,t._value))&&(t.flags|=128,t._value=u,e.version++)}catch(u){throw e.version++,u}finally{ot=n,Ou=r,VC(t),t.flags&=-3}}function wm(t,e=!1){const{dep:n,prevSub:r,nextSub:u}=t;if(r&&(r.nextSub=u,t.prevSub=void 0),u&&(u.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)wm(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function iw(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Ou=!0;const WC=[];function vr(){WC.push(Ou),Ou=!1}function Cr(){const t=WC.pop();Ou=t===void 0?!0:t}function GO(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=ot;ot=void 0;try{e()}finally{ot=n}}}let Us=0;class ow{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bm{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ot||!Ou||ot===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ot)n=this.activeLink=new ow(ot,this),ot.deps?(n.prevDep=ot.depsTail,ot.depsTail.nextDep=n,ot.depsTail=n):ot.deps=ot.depsTail=n,YC(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ot.depsTail,n.nextDep=void 0,ot.depsTail.nextDep=n,ot.depsTail=n,ot.deps===n&&(ot.deps=r)}return n}trigger(e){this.version++,Us++,this.notify(e)}notify(e){Sm();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{_m()}}}function YC(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)YC(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Wh=new WeakMap,Si=Symbol(""),Yh=Symbol(""),Xs=Symbol("");function Ht(t,e,n){if(Ou&&ot){let r=Wh.get(t);r||Wh.set(t,r=new Map);let u=r.get(n);u||(r.set(n,u=new Bm),u.map=r,u.key=n),u.track()}}function fr(t,e,n,r,u,i){const o=Wh.get(t);if(!o){Us++;return}const s=a=>{a&&a.trigger()};if(Sm(),e==="clear")o.forEach(s);else{const a=ve(t),l=a&&Dm(n);if(a&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Xs||!bu(d)&&d>=c)&&s(f)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),l&&s(o.get(Xs)),e){case"add":a?l&&s(o.get("length")):(s(o.get(Si)),Nr(t)&&s(o.get(Yh)));break;case"delete":a||(s(o.get(Si)),Nr(t)&&s(o.get(Yh)));break;case"set":Nr(t)&&s(o.get(Si));break}}_m()}function Wi(t){const e=Ue(t);return e===t?e:(Ht(e,"iterate",Xs),su(t)?e:e.map(vu))}function Nc(t){return Ht(t=Ue(t),"iterate",Xs),t}function Qu(t,e){return yr(t)?yo(_i(t)?vu(e):e):vu(e)}const sw={__proto__:null,[Symbol.iterator](){return kd(this,Symbol.iterator,t=>Qu(this,t))},concat(...t){return Wi(this).concat(...t.map(e=>ve(e)?Wi(e):e))},entries(){return kd(this,"entries",t=>(t[1]=Qu(this,t[1]),t))},every(t,e){return or(this,"every",t,e,void 0,arguments)},filter(t,e){return or(this,"filter",t,e,n=>n.map(r=>Qu(this,r)),arguments)},find(t,e){return or(this,"find",t,e,n=>Qu(this,n),arguments)},findIndex(t,e){return or(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return or(this,"findLast",t,e,n=>Qu(this,n),arguments)},findLastIndex(t,e){return or(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return or(this,"forEach",t,e,void 0,arguments)},includes(...t){return Sd(this,"includes",t)},indexOf(...t){return Sd(this,"indexOf",t)},join(t){return Wi(this).join(t)},lastIndexOf(...t){return Sd(this,"lastIndexOf",t)},map(t,e){return or(this,"map",t,e,void 0,arguments)},pop(){return ss(this,"pop")},push(...t){return ss(this,"push",t)},reduce(t,...e){return HO(this,"reduce",t,e)},reduceRight(t,...e){return HO(this,"reduceRight",t,e)},shift(){return ss(this,"shift")},some(t,e){return or(this,"some",t,e,void 0,arguments)},splice(...t){return ss(this,"splice",t)},toReversed(){return Wi(this).toReversed()},toSorted(t){return Wi(this).toSorted(t)},toSpliced(...t){return Wi(this).toSpliced(...t)},unshift(...t){return ss(this,"unshift",t)},values(){return kd(this,"values",t=>Qu(this,t))}};function kd(t,e,n){const r=Nc(t),u=r[e]();return r!==t&&!su(t)&&(u._next=u.next,u.next=()=>{const i=u._next();return i.done||(i.value=n(i.value)),i}),u}const aw=Array.prototype;function or(t,e,n,r,u,i){const o=Nc(t),s=o!==t&&!su(t),a=o[e];if(a!==aw[e]){const f=a.apply(t,i);return s?vu(f):f}let l=n;o!==t&&(s?l=function(f,d){return n.call(this,Qu(t,f),d,t)}:n.length>2&&(l=function(f,d){return n.call(this,f,d,t)}));const c=a.call(o,l,r);return s&&u?u(c):c}function HO(t,e,n,r){const u=Nc(t),i=u!==t&&!su(t);let o=n,s=!1;u!==t&&(i?(s=r.length===0,o=function(l,c,f){return s&&(s=!1,l=Qu(t,l)),n.call(this,l,Qu(t,c),f,t)}):n.length>3&&(o=function(l,c,f){return n.call(this,l,c,f,t)}));const a=u[e](o,...r);return s?Qu(t,a):a}function Sd(t,e,n){const r=Ue(t);Ht(r,"iterate",Xs);const u=r[e](...n);return(u===-1||u===!1)&&Tm(n[0])?(n[0]=Ue(n[0]),r[e](...n)):u}function ss(t,e,n=[]){vr(),Sm();const r=Ue(t)[e].apply(t,n);return _m(),Cr(),r}const lw=$m("__proto__,__v_isRef,__isVue"),GC=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(bu));function cw(t){bu(t)||(t=String(t));const e=Ue(this);return Ht(e,"has",t),e.hasOwnProperty(t)}class HC{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const u=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!u;if(n==="__v_isReadonly")return u;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(u?i?Cw:t5:i?e5:JC).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=ve(e);if(!u){let a;if(o&&(a=sw[n]))return a;if(n==="hasOwnProperty")return cw}const s=Reflect.get(e,n,en(e)?e:r);if((bu(n)?GC.has(n):lw(n))||(u||Ht(e,"get",n),i))return s;if(en(s)){const a=o&&Dm(n)?s:s.value;return u&&We(a)?Hh(a):a}return We(s)?u?Hh(s):Fm(s):s}}class KC extends HC{constructor(e=!1){super(!1,e)}set(e,n,r,u){let i=e[n];const o=ve(e)&&Dm(n);if(!this._isShallow){const l=yr(i);if(!su(r)&&!yr(r)&&(i=Ue(i),r=Ue(r)),!o&&en(i)&&!en(r))return l||(i.value=r),!0}const s=o?Number(n)<e.length:Xe(e,n),a=Reflect.set(e,n,r,en(e)?e:u);return e===Ue(u)&&a&&(s?Iu(r,i)&&fr(e,"set",n,r):fr(e,"add",n,r)),a}deleteProperty(e,n){const r=Xe(e,n);e[n];const u=Reflect.deleteProperty(e,n);return u&&r&&fr(e,"delete",n,void 0),u}has(e,n){const r=Reflect.has(e,n);return(!bu(n)||!GC.has(n))&&Ht(e,"has",n),r}ownKeys(e){return Ht(e,"iterate",ve(e)?"length":Si),Reflect.ownKeys(e)}}class fw extends HC{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const dw=new KC,hw=new fw,pw=new KC(!0);const Gh=t=>t,Il=t=>Reflect.getPrototypeOf(t);function mw(t,e,n){return function(...r){const u=this.__v_raw,i=Ue(u),o=Nr(i),s=t==="entries"||t===Symbol.iterator&&o,a=t==="keys"&&o,l=u[t](...r),c=n?Gh:e?yo:vu;return!e&&Ht(i,"iterate",a?Yh:Si),Xt(Object.create(l),{next(){const{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}}})}}function zl(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function gw(t,e){const n={get(u){const i=this.__v_raw,o=Ue(i),s=Ue(u);t||(Iu(u,s)&&Ht(o,"get",u),Ht(o,"get",s));const{has:a}=Il(o),l=e?Gh:t?yo:vu;if(a.call(o,u))return l(i.get(u));if(a.call(o,s))return l(i.get(s));i!==o&&i.get(u)},get size(){const u=this.__v_raw;return!t&&Ht(Ue(u),"iterate",Si),u.size},has(u){const i=this.__v_raw,o=Ue(i),s=Ue(u);return t||(Iu(u,s)&&Ht(o,"has",u),Ht(o,"has",s)),u===s?i.has(u):i.has(u)||i.has(s)},forEach(u,i){const o=this,s=o.__v_raw,a=Ue(s),l=e?Gh:t?yo:vu;return!t&&Ht(a,"iterate",Si),s.forEach((c,f)=>u.call(i,l(c),l(f),o))}};return Xt(n,t?{add:zl("add"),set:zl("set"),delete:zl("delete"),clear:zl("clear")}:{add(u){const i=Ue(this),o=Il(i),s=Ue(u),a=!e&&!su(u)&&!yr(u)?s:u;return o.has.call(i,a)||Iu(u,a)&&o.has.call(i,u)||Iu(s,a)&&o.has.call(i,s)||(i.add(a),fr(i,"add",a,a)),this},set(u,i){!e&&!su(i)&&!yr(i)&&(i=Ue(i));const o=Ue(this),{has:s,get:a}=Il(o);let l=s.call(o,u);l||(u=Ue(u),l=s.call(o,u));const c=a.call(o,u);return o.set(u,i),l?Iu(i,c)&&fr(o,"set",u,i):fr(o,"add",u,i),this},delete(u){const i=Ue(this),{has:o,get:s}=Il(i);let a=o.call(i,u);a||(u=Ue(u),a=o.call(i,u)),s&&s.call(i,u);const l=i.delete(u);return a&&fr(i,"delete",u,void 0),l},clear(){const u=Ue(this),i=u.size!==0,o=u.clear();return i&&fr(u,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(u=>{n[u]=mw(u,t,e)}),n}function Pm(t,e){const n=gw(t,e);return(r,u,i)=>u==="__v_isReactive"?!t:u==="__v_isReadonly"?t:u==="__v_raw"?r:Reflect.get(Xe(n,u)&&u in r?n:r,u,i)}const Ow={get:Pm(!1,!1)},bw={get:Pm(!1,!0)},vw={get:Pm(!0,!1)};const JC=new WeakMap,e5=new WeakMap,t5=new WeakMap,Cw=new WeakMap;function yw(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fm(t){return yr(t)?t:Qm(t,!1,dw,Ow,JC)}function xw(t){return Qm(t,!1,pw,bw,e5)}function Hh(t){return Qm(t,!0,hw,vw,t5)}function Qm(t,e,n,r,u){if(!We(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const i=u.get(t);if(i)return i;const o=yw(V_(t));if(o===0)return t;const s=new Proxy(t,o===2?r:n);return u.set(t,s),s}function _i(t){return yr(t)?_i(t.__v_raw):!!(t&&t.__v_isReactive)}function yr(t){return!!(t&&t.__v_isReadonly)}function su(t){return!!(t&&t.__v_isShallow)}function Tm(t){return t?!!t.__v_raw:!1}function Ue(t){const e=t&&t.__v_raw;return e?Ue(e):t}function Ew(t){return!Xe(t,"__v_skip")&&Object.isExtensible(t)&&ZC(t,"__v_skip",!0),t}const vu=t=>We(t)?Fm(t):t,yo=t=>We(t)?Hh(t):t;function en(t){return t?t.__v_isRef===!0:!1}function Yt(t){return n5(t,!1)}function $w(t){return n5(t,!0)}function n5(t,e){return en(t)?t:new Aw(t,e)}class Aw{constructor(e,n){this.dep=new Bm,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Ue(e),this._value=n?e:vu(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||su(e)||yr(e);e=r?e:Ue(e),Iu(e,n)&&(this._rawValue=e,this._value=r?e:vu(e),this.dep.trigger())}}function De(t){return en(t)?t.value:t}function SK(t){return ye(t)?t():De(t)}const Dw={get:(t,e,n)=>e==="__v_raw"?t:De(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const u=t[e];return en(u)&&!en(n)?(u.value=n,!0):Reflect.set(t,e,n,r)}};function u5(t){return _i(t)?t:new Proxy(t,Dw)}class kw{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Bm(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Us-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return UC(this,!0),!0}get value(){const e=this.dep.track();return qC(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Sw(t,e,n=!1){let r,u;return ye(t)?r=t:(r=t.get,u=t.set),new kw(r,u,n)}const Zl={},Z0=new WeakMap;let mi;function _w(t,e=!1,n=mi){if(n){let r=Z0.get(n);r||Z0.set(n,r=[]),r.push(t)}}function ww(t,e,n=ut){const{immediate:r,deep:u,once:i,scheduler:o,augmentJob:s,call:a}=n,l=y=>u?y:su(y)||u===!1||u===0?dr(y,1):dr(y);let c,f,d,h,p=!1,m=!1;if(en(t)?(f=()=>t.value,p=su(t)):_i(t)?(f=()=>l(t),p=!0):ve(t)?(m=!0,p=t.some(y=>_i(y)||su(y)),f=()=>t.map(y=>{if(en(y))return y.value;if(_i(y))return l(y);if(ye(y))return a?a(y,2):y()})):ye(t)?e?f=a?()=>a(t,2):t:f=()=>{if(d){vr();try{d()}finally{Cr()}}const y=mi;mi=c;try{return a?a(t,3,[h]):t(h)}finally{mi=y}}:f=qu,e&&u){const y=f,$=u===!0?1/0:u;f=()=>dr(y(),$)}const g=rw(),C=()=>{c.stop(),g&&g.active&&Am(g.effects,c)};if(i&&e){const y=e;e=(...$)=>{const x=y(...$);return C(),x}}let b=m?new Array(t.length).fill(Zl):Zl;const O=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(e){const $=c.run();if(y||u||p||(m?$.some((x,_)=>Iu(x,b[_])):Iu($,b))){d&&d();const x=mi;mi=c;try{const _=[$,b===Zl?void 0:m&&b[0]===Zl?[]:b,h];b=$,a?a(e,3,_):e(..._)}finally{mi=x}}}else c.run()};return s&&s(O),c=new LC(f),c.scheduler=o?()=>o(O,!1):O,h=y=>_w(y,!1,c),d=c.onStop=()=>{const y=Z0.get(c);if(y){if(a)a(y,4);else for(const $ of y)$();Z0.delete(c)}},e?r?O(!0):b=c.run():o?o(O.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function dr(t,e=1/0,n){if(e<=0||!We(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,en(t))dr(t.value,e,n);else if(ve(t))for(let r=0;r<t.length;r++)dr(t[r],e,n);else if(z0(t)||Nr(t))t.forEach(r=>{dr(r,e,n)});else if(IC(t)){for(const r in t)dr(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&dr(t[r],e,n)}return t}function Ba(t,e,n,r){try{return r?t(...r):t()}catch(u){Uc(u,e,n)}}function Cu(t,e,n,r){if(ye(t)){const u=Ba(t,e,n,r);return u&&QC(u)&&u.catch(i=>{Uc(i,e,n)}),u}if(ve(t)){const u=[];for(let i=0;i<t.length;i++)u.push(Cu(t[i],e,n,r));return u}}function Uc(t,e,n,r=!0){const u=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||ut;if(e){let s=e.parent;const a=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](t,a,l)===!1)return}s=s.parent}if(i){vr(),Ba(i,null,10,[t,a,l]),Cr();return}}Bw(t,n,u,r,o)}function Bw(t,e,n,r=!0,u=!1){if(u)throw t;console.error(t)}const fn=[];let Fu=-1;const so=[];let Tr=null,Gi=0;const r5=Promise.resolve();let R0=null;function Pw(t){const e=R0||r5;return t?e.then(this?t.bind(this):t):e}function Fw(t){let e=Fu+1,n=fn.length;for(;e<n;){const r=e+n>>>1,u=fn[r],i=Vs(u);i<t||i===t&&u.flags&2?e=r+1:n=r}return e}function Im(t){if(!(t.flags&1)){const e=Vs(t),n=fn[fn.length-1];!n||!(t.flags&2)&&e>=Vs(n)?fn.push(t):fn.splice(Fw(e),0,t),t.flags|=1,i5()}}function i5(){R0||(R0=r5.then(s5))}function Qw(t){if(!ve(t))Tr&&t.id===-1?Tr.splice(Gi+1,0,t):t.flags&1||(so.push(t),t.flags|=1);else for(let e=0;e<t.length;e++)so.push(t[e]);i5()}function KO(t,e,n=Fu+1){for(;n<fn.length;n++){const r=fn[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;fn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function o5(t){if(so.length){const e=[...new Set(so)].sort((n,r)=>Vs(n)-Vs(r));if(so.length=0,Tr){for(let n=0;n<e.length;n++)Tr.push(e[n]);return}for(Tr=e,Gi=0;Gi<Tr.length;Gi++){const n=Tr[Gi];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Tr=null,Gi=0}}const Vs=t=>t.id==null?t.flags&2?-1:1/0:t.id;function s5(t){try{for(Fu=0;Fu<fn.length;Fu++){const e=fn[Fu];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Ba(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Fu<fn.length;Fu++){const e=fn[Fu];e&&(e.flags&=-2)}Fu=-1,fn.length=0,o5(),R0=null,(fn.length||so.length)&&s5()}}let Jt=null,a5=null;function j0(t){const e=Jt;return Jt=t,a5=t&&t.type.__scopeId||null,e}function hn(t,e=Jt,n){if(!e||t._n)return t;const r=(...u)=>{r._d&&N0(-1);const i=j0(e),o=mr.length;let s;try{s=t(...u)}finally{for(let a=mr.length;a>o;a--)Lm();j0(i),r._d&&N0(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Tw(t,e){if(Jt===null)return t;const n=Gc(Jt),r=t.dirs||(t.dirs=[]);for(let u=0;u<e.length;u++){let[i,o,s,a=ut]=e[u];i&&(ye(i)&&(i={mounted:i,updated:i}),i.deep&&dr(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:s,modifiers:a}))}return t}function ci(t,e,n,r){const u=t.dirs,i=e&&e.dirs;for(let o=0;o<u.length;o++){const s=u[o];i&&(s.oldValue=i[o].value);let a=s.dir[r];a&&(vr(),Cu(a,n,8,[t.el,s,t,e]),Cr())}}function Iw(t,e){if(pn){let n=pn.provides;const r=pn.parent&&pn.parent.provides;r===n&&(n=pn.provides=Object.create(r)),n[t]=e}}function x0(t,e,n=!1){const r=B7();if(r||lo){let u=lo?lo._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(u&&t in u)return u[t];if(arguments.length>1)return n&&ye(e)?e.call(r&&r.proxy):e}}const zw=Symbol.for("v-scx"),Zw=()=>x0(zw);function wi(t,e,n){return l5(t,e,n)}function l5(t,e,n=ut){const{immediate:r,deep:u,flush:i,once:o}=n,s=Xt({},n),a=e&&r||!e&&i!=="post";let l;if(Gs){if(i==="sync"){const h=Zw();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!a){const h=()=>{};return h.stop=qu,h.resume=qu,h.pause=qu,h}}const c=pn;s.call=(h,p,m)=>Cu(h,c,p,m);let f=!1;i==="post"?s.scheduler=h=>{En(h,c&&c.suspense)}:i!=="sync"&&(f=!0,s.scheduler=(h,p)=>{p?h():Im(h)}),s.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=ww(t,e,s);return Gs&&(l?l.push(d):a&&d()),d}function Rw(t,e,n){const r=this.proxy,u=gt(t)?t.includes(".")?c5(r,t):()=>r[t]:t.bind(r,r);let i;ye(e)?i=e:(i=e.handler,n=e);const o=Fa(this),s=l5(u,i.bind(r),n);return o(),s}function c5(t,e){const n=e.split(".");return()=>{let r=t;for(let u=0;u<n.length&&r;u++)r=r[n[u]];return r}}const jw=Symbol("_vte"),Xc=t=>t.__isTeleport,_d=Symbol("_leaveCb");function Mw(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Hu){e=n;break}}return e}function f5(t){if(!Zm(t))return Xc(t.type)&&t.children?Mw(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&ye(n.default))return n.default()}}function zm(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const n=t.component.subTree;zm(Xc(n.type)&&f5(n)||n,e)}else t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ii(t,e){return ye(t)?Xt({name:t.name},e,{setup:t}):t}function d5(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function JO(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const M0=new WeakMap;function Fs(t,e,n,r,u=!1){if(ve(t)){t.forEach((m,g)=>Fs(m,e&&(ve(e)?e[g]:e),n,r,u));return}if(ao(r)&&!u){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Fs(t,e,n,r.component.subTree);return}const i=r.shapeFlag&4?Gc(r.component):r.el,o=u?null:i,{i:s,r:a}=t,l=e&&e.r,c=s.refs===ut?s.refs={}:s.refs,f=s.setupState,d=Ue(f),h=f===ut?FC:m=>JO(c,m)?!1:Xe(d,m),p=(m,g)=>!(g&&JO(c,g));if(l!=null&&l!==a){if(e3(e),gt(l))c[l]=null,h(l)&&(f[l]=null);else if(en(l)){const m=e;p(l,m.k)&&(l.value=null),m.k&&(c[m.k]=null)}}if(ye(a))Ba(a,s,12,[o,c]);else{const m=gt(a),g=en(a);if(m||g){const C=()=>{if(t.f){const b=m?h(a)?f[a]:c[a]:p()||!t.k?a.value:c[t.k];if(u)ve(b)&&Am(b,i);else if(ve(b))b.includes(i)||b.push(i);else if(m)c[a]=[i],h(a)&&(f[a]=c[a]);else{const O=[i];p(a,t.k)&&(a.value=O),t.k&&(c[t.k]=O)}}else m?(c[a]=o,h(a)&&(f[a]=o)):g&&(p(a,t.k)&&(a.value=o),t.k&&(c[t.k]=o))};if(o){const b=()=>{C(),M0.delete(t)};b.id=-1,M0.set(t,b),En(b,n)}else e3(t),C()}}}function e3(t){const e=M0.get(t);e&&(e.flags|=8,M0.delete(t))}Mc().requestIdleCallback;Mc().cancelIdleCallback;const ao=t=>!!t.type.__asyncLoader,Zm=t=>t.type.__isKeepAlive;function Lw(t,e){h5(t,"a",e)}function Nw(t,e){h5(t,"da",e)}function h5(t,e,n=pn){const r=t.__wdc||(t.__wdc=()=>{let u=n;for(;u;){if(u.isDeactivated)return;u=u.parent}return t()});if(Vc(e,r,n),n){let u=n.parent;for(;u&&u.parent;)Zm(u.parent.vnode)&&Uw(r,e,n,u),u=u.parent}}function Uw(t,e,n,r){const u=Vc(e,t,r,!0);p5(()=>{Am(r[e],u)},n)}function Vc(t,e,n=pn,r=!1){if(n){const u=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{vr();const s=Fa(n),a=Cu(e,n,t,o);return s(),Cr(),a});return r?u.unshift(i):u.push(i),i}}const Dr=t=>(e,n=pn)=>{(!Gs||t==="sp")&&Vc(t,(...r)=>e(...r),n)},Xw=Dr("bm"),Pa=Dr("m"),Vw=Dr("bu"),qw=Dr("u"),qc=Dr("bum"),p5=Dr("um"),Ww=Dr("sp"),Yw=Dr("rtg"),Gw=Dr("rtc");function Hw(t,e=pn){Vc("ec",t,e)}const Kw=Symbol.for("v-ndc");function m5(t,e,n,r){let u;const i=n,o=ve(t);if(o||gt(t)){const s=o&&_i(t);let a=!1,l=!1;s&&(a=!su(t),l=yr(t),t=Nc(t)),u=new Array(t.length);for(let c=0,f=t.length;c<f;c++)u[c]=e(a?l?yo(vu(t[c])):vu(t[c]):t[c],c,void 0,i)}else if(typeof t=="number"){u=new Array(t);for(let s=0;s<t;s++)u[s]=e(s+1,s,void 0,i)}else if(We(t))if(t[Symbol.iterator])u=Array.from(t,(s,a)=>e(s,a,void 0,i));else{const s=Object.keys(t);u=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const c=s[a];u[a]=e(t[c],c,a,i)}}else u=[];return u}function Rm(t,e,n,r,u,i){if(n==null&&(n={}),Jt.ce||Jt.parent&&ao(Jt.parent)&&Jt.parent.ce){const l=n,c=Object.keys(l).length>0;return e!=="default"&&(l.name=e),Ce(),Kn(dn,null,[qe("slot",l,r)],c?-2:64)}let o=t[e];o&&o._c&&(o._d=!1);const s=mr.length;Ce();let a;try{const l=o&&g5(o(n)),c=n.key||i||l&&l.key;a=Kn(dn,{key:(c&&!bu(c)?c:`_${e}`)+(!l&&r?"_fb":"")},l||(r?r():[]),l&&t._===1?64:-2)}catch(l){for(let c=mr.length;c>s;c--)Lm();throw l}finally{o&&o._c&&(o._d=!0)}return a}function g5(t){return t.some(e=>Ws(e)?!(e.type===Hu||e.type===dn&&!g5(e.children)):!0)?t:null}const Kh=t=>t?I5(t)?Gc(t):Kh(t.parent):null,Qs=Xt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Kh(t.parent),$root:t=>Kh(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>b5(t),$forceUpdate:t=>t.f||(t.f=()=>{Im(t.update)}),$nextTick:t=>t.n||(t.n=Pw.bind(t.proxy)),$watch:t=>Rw.bind(t)}),wd=(t,e)=>t!==ut&&!t.__isScriptSetup&&Xe(t,e),Jw={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:u,props:i,accessCache:o,type:s,appContext:a}=t;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return u[e];case 4:return n[e];case 3:return i[e]}else{if(wd(r,e))return o[e]=1,r[e];if(u!==ut&&Xe(u,e))return o[e]=2,u[e];if(Xe(i,e))return o[e]=3,i[e];if(n!==ut&&Xe(n,e))return o[e]=4,n[e];Jh&&(o[e]=0)}}const l=Qs[e];let c,f;if(l)return e==="$attrs"&&Ht(t.attrs,"get",""),l(t);if((c=s.__cssModules)&&(c=c[e]))return c;if(n!==ut&&Xe(n,e))return o[e]=4,n[e];if(f=a.config.globalProperties,Xe(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:u,ctx:i}=t;return wd(u,e)?(u[e]=n,!0):r!==ut&&Xe(r,e)?(r[e]=n,!0):Xe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:u,props:i,type:o}},s){let a;return!!(n[s]||t!==ut&&s[0]!=="$"&&Xe(t,s)||wd(e,s)||Xe(i,s)||Xe(r,s)||Xe(Qs,s)||Xe(u.config.globalProperties,s)||(a=o.__cssModules)&&a[s])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Xe(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function t3(t){return ve(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Jh=!0;function e7(t){const e=b5(t),n=t.proxy,r=t.ctx;Jh=!1,e.beforeCreate&&n3(e.beforeCreate,t,"bc");const{data:u,computed:i,methods:o,watch:s,provide:a,inject:l,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:m,deactivated:g,beforeDestroy:C,beforeUnmount:b,destroyed:O,unmounted:y,render:$,renderTracked:x,renderTriggered:_,errorCaptured:R,serverPrefetch:ue,expose:re,inheritAttrs:oe,components:ee,directives:Ee,filters:W}=e;if(l&&t7(l,r,null),o)for(const ke in o){const Se=o[ke];ye(Se)&&(r[ke]=Se.bind(n))}if(u){const ke=u.call(n,n);We(ke)&&(t.data=Fm(ke))}if(Jh=!0,i)for(const ke in i){const Se=i[ke],Ne=ye(Se)?Se.bind(n,n):ye(Se.get)?Se.get.bind(n,n):qu,bt=!ye(Se)&&ye(Se.set)?Se.set.bind(n):qu,Et=ft({get:Ne,set:bt});Object.defineProperty(r,ke,{enumerable:!0,configurable:!0,get:()=>Et.value,set:Ye=>Et.value=Ye})}if(s)for(const ke in s)O5(s[ke],r,n,ke);if(a){const ke=ye(a)?a.call(n):a;Reflect.ownKeys(ke).forEach(Se=>{Iw(Se,ke[Se])})}c&&n3(c,t,"c");function he(ke,Se){ve(Se)?Se.forEach(Ne=>ke(Ne.bind(n))):Se&&ke(Se.bind(n))}if(he(Xw,f),he(Pa,d),he(Vw,h),he(qw,p),he(Lw,m),he(Nw,g),he(Hw,R),he(Gw,x),he(Yw,_),he(qc,b),he(p5,y),he(Ww,ue),ve(re))if(re.length){const ke=t.exposed||(t.exposed={});re.forEach(Se=>{Object.defineProperty(ke,Se,{get:()=>n[Se],set:Ne=>n[Se]=Ne,enumerable:!0})})}else t.exposed||(t.exposed={});$&&t.render===qu&&(t.render=$),oe!=null&&(t.inheritAttrs=oe),ee&&(t.components=ee),Ee&&(t.directives=Ee),ue&&d5(t)}function t7(t,e,n=qu){ve(t)&&(t=ep(t));for(const r in t){const u=t[r];let i;We(u)?"default"in u?i=x0(u.from||r,u.default,!0):i=x0(u.from||r):i=x0(u),en(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function n3(t,e,n){Cu(ve(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function O5(t,e,n,r){let u=r.includes(".")?c5(n,r):()=>n[r];if(gt(t)){const i=e[t];ye(i)&&wi(u,i)}else if(ye(t))wi(u,t.bind(n));else if(We(t))if(ve(t))t.forEach(i=>O5(i,e,n,r));else{const i=ye(t.handler)?t.handler.bind(n):e[t.handler];ye(i)&&wi(u,i,t)}}function b5(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:u,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,s=i.get(e);let a;return s?a=s:!u.length&&!n&&!r?a=e:(a={},u.length&&u.forEach(l=>L0(a,l,o,!0)),L0(a,e,o)),We(e)&&i.set(e,a),a}function L0(t,e,n,r=!1){const{mixins:u,extends:i}=e;i&&L0(t,i,n,!0),u&&u.forEach(o=>L0(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const s=n7[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const n7={data:u3,props:r3,emits:r3,methods:Es,computed:Es,beforeCreate:an,created:an,beforeMount:an,mounted:an,beforeUpdate:an,updated:an,beforeDestroy:an,beforeUnmount:an,destroyed:an,unmounted:an,activated:an,deactivated:an,errorCaptured:an,serverPrefetch:an,components:Es,directives:Es,watch:r7,provide:u3,inject:u7};function u3(t,e){return e?t?function(){return Xt(ye(t)?t.call(this,this):t,ye(e)?e.call(this,this):e)}:e:t}function u7(t,e){return Es(ep(t),ep(e))}function ep(t){if(ve(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function an(t,e){return t?[...new Set([].concat(t,e))]:e}function Es(t,e){return t?Xt(Object.create(null),t,e):e}function r3(t,e){return t?ve(t)&&ve(e)?[...new Set([...t,...e])]:Xt(Object.create(null),t3(t),t3(e??{})):e}function r7(t,e){if(!t)return e;if(!e)return t;const n=Xt(Object.create(null),t);for(const r in e)n[r]=an(t[r],e[r]);return n}function v5(){return{app:null,config:{isNativeTag:FC,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let i7=0;function o7(t,e){return function(r,u=null){ye(r)||(r=Xt({},r)),u!=null&&!We(u)&&(u=null);const i=v5(),o=new WeakSet,s=[];let a=!1;const l=i.app={_uid:i7++,_component:r,_props:u,_container:null,_context:i,_instance:null,version:z7,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&ye(c.install)?(o.add(c),c.install(l,...f)):ye(c)&&(o.add(c),c(l,...f))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,f){return f?(i.components[c]=f,l):i.components[c]},directive(c,f){return f?(i.directives[c]=f,l):i.directives[c]},mount(c,f,d){if(!a){const h=l._ceVNode||qe(r,u);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),t(h,c,d),a=!0,l._container=c,c.__vue_app__=l,Gc(h.component)}},onUnmount(c){s.push(c)},unmount(){a&&(Cu(s,l._instance,16),t(null,l._container),delete l._container.__vue_app__)},provide(c,f){return i.provides[c]=f,l},runWithContext(c){const f=lo;lo=l;try{return c()}finally{lo=f}}};return l}}let lo=null;const s7=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${gu(e)}Modifiers`]||t[`${ri(e)}Modifiers`];function a7(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||ut;let u=n;const i=e.startsWith("update:"),o=i&&s7(r,e.slice(7));o&&(o.trim&&(u=n.map(c=>gt(c)?c.trim():c)),o.number&&(u=u.map(Y_)));let s,a=r[s=Ed(e)]||r[s=Ed(gu(e))];!a&&i&&(a=r[s=Ed(ri(e))]),a&&Cu(a,t,6,u);const l=r[s+"Once"];if(l){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Cu(l,t,6,u)}}const l7=new WeakMap;function C5(t,e,n=!1){const r=n?l7:e.emitsCache,u=r.get(t);if(u!==void 0)return u;const i=t.emits;let o={},s=!1;if(!ye(t)){const a=l=>{const c=C5(l,e,!0);c&&(s=!0,Xt(o,c))};!n&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!i&&!s?(We(t)&&r.set(t,null),null):(ve(i)?i.forEach(a=>o[a]=null):Xt(o,i),We(t)&&r.set(t,o),o)}function Wc(t,e){return!t||!Zc(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),Xe(t,e[0].toLowerCase()+e.slice(1))||Xe(t,ri(e))||Xe(t,e))}function i3(t){const{type:e,vnode:n,proxy:r,withProxy:u,propsOptions:[i],slots:o,attrs:s,emit:a,render:l,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:m}=t,g=j0(t);let C,b;try{if(n.shapeFlag&4){const y=u||r,$=y;C=Tu(l.call($,y,c,f,h,d,p)),b=s}else{const y=e;C=Tu(y.length>1?y(f,{attrs:s,slots:o,emit:a}):y(f,null)),b=e.props?s:c7(s)}}catch(y){mr.length=0,Uc(y,t,1),C=qe(Hu)}let O=C;if(b&&m!==!1){const y=Object.keys(b),{shapeFlag:$}=O;y.length&&$&7&&(i&&y.some(Rc)&&(b=f7(b,i)),O=xo(O,b,!1,!0))}if(n.dirs&&(O=xo(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition){const y=Xc(O.type)&&f5(O)||O;zm(y,n.transition)}return C=O,j0(g),C}const c7=t=>{let e;for(const n in t)(n==="class"||n==="style"||Zc(n))&&((e||(e={}))[n]=t[n]);return e},f7=(t,e)=>{const n={};for(const r in t)(!Rc(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function d7(t,e,n){const{props:r,children:u,component:i}=t,{props:o,children:s,patchFlag:a}=e,l=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?o3(r,o,l):!!o;if(a&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(y5(o,r,d)&&!Wc(l,d))return!0}}}else return(u||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?o3(r,o,l):!0:!!o;return!1}function o3(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let u=0;u<r.length;u++){const i=r[u];if(y5(e,t,i)&&!Wc(n,i))return!0}return!1}function y5(t,e,n){const r=t[n],u=e[n];return n==="style"&&We(r)&&We(u)?!Lc(r,u):r!==u}function h7({vnode:t,parent:e,suspense:n},r){for(;e;){const u=e.subTree;if(u.suspense&&u.suspense.activeBranch===t&&(u.suspense.vnode.el=u.el=r,t=u),u===t)(t=e.vnode).el=r,e=e.parent;else break}n&&n.activeBranch===t&&(n.vnode.el=r)}const x5={},E5=()=>Object.create(x5),$5=t=>Object.getPrototypeOf(t)===x5;function p7(t,e,n,r=!1){const u={},i=E5();t.propsDefaults=Object.create(null),A5(t,e,u,i);for(const o in t.propsOptions[0])o in u||(u[o]=void 0);n?t.props=r?u:xw(u):t.type.props?t.props=u:t.props=i,t.attrs=i}function m7(t,e,n,r){const{props:u,attrs:i,vnode:{patchFlag:o}}=t,s=Ue(u),[a]=t.propsOptions;let l=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Wc(t.emitsOptions,d))continue;const h=e[d];if(a)if(Xe(i,d))h!==i[d]&&(i[d]=h,l=!0);else{const p=gu(d);u[p]=tp(a,s,p,h,t,!1)}else h!==i[d]&&(i[d]=h,l=!0)}}}else{A5(t,e,u,i)&&(l=!0);let c;for(const f in s)(!e||!Xe(e,f)&&((c=ri(f))===f||!Xe(e,c)))&&(a?n&&(n[f]!==void 0||n[c]!==void 0)&&(u[f]=tp(a,s,f,void 0,t,!0)):delete u[f]);if(i!==s)for(const f in i)(!e||!Xe(e,f))&&(delete i[f],l=!0)}l&&fr(t.attrs,"set","")}function A5(t,e,n,r){const[u,i]=t.propsOptions;let o=!1,s;if(e)for(let a in e){if(ws(a))continue;const l=e[a];let c;u&&Xe(u,c=gu(a))?!i||!i.includes(c)?n[c]=l:(s||(s={}))[c]=l:Wc(t.emitsOptions,a)||(!(a in r)||l!==r[a])&&(r[a]=l,o=!0)}if(i){const a=Ue(n),l=s||ut;for(let c=0;c<i.length;c++){const f=i[c];n[f]=tp(u,a,f,l[f],t,!Xe(l,f))}}return o}function tp(t,e,n,r,u,i){const o=t[n];if(o!=null){const s=Xe(o,"default");if(s&&r===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&ye(a)){const{propsDefaults:l}=u;if(n in l)r=l[n];else{const c=Fa(u);r=l[n]=a.call(null,e),c()}}else r=a;u.ce&&u.ce._setProp(n,r)}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===ri(n))&&(r=!0))}return r}const g7=new WeakMap;function D5(t,e,n=!1){const r=n?g7:e.propsCache,u=r.get(t);if(u)return u;const i=t.props,o={},s=[];let a=!1;if(!ye(t)){const c=f=>{a=!0;const[d,h]=D5(f,e,!0);Xt(o,d),h&&s.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!a)return We(t)&&r.set(t,oo),oo;if(ve(i))for(let c=0;c<i.length;c++){const f=gu(i[c]);s3(f)&&(o[f]=ut)}else if(i)for(const c in i){const f=gu(c);if(s3(f)){const d=i[c],h=o[f]=ve(d)||ye(d)?{type:d}:Xt({},d),p=h.type;let m=!1,g=!0;if(ve(p))for(let C=0;C<p.length;++C){const b=p[C],O=ye(b)&&b.name;if(O==="Boolean"){m=!0;break}else O==="String"&&(g=!1)}else m=ye(p)&&p.name==="Boolean";h[0]=m,h[1]=g,(m||Xe(h,"default"))&&s.push(f)}}const l=[o,s];return We(t)&&r.set(t,l),l}function s3(t){return t[0]!=="$"&&!ws(t)}const jm=t=>t==="_"||t==="_ctx"||t==="$stable",Mm=t=>ve(t)?t.map(Tu):[Tu(t)],O7=(t,e,n)=>{if(e._n)return e;const r=hn((...u)=>Mm(e(...u)),n);return r._c=!1,r},k5=(t,e,n)=>{const r=t._ctx;for(const u in t){if(jm(u))continue;const i=t[u];if(ye(i))e[u]=O7(u,i,r);else if(i!=null){const o=Mm(i);e[u]=()=>o}}},S5=(t,e)=>{const n=Mm(e);t.slots.default=()=>n},_5=(t,e,n)=>{for(const r in e)(n||!jm(r))&&(t[r]=e[r])},b7=(t,e,n)=>{const r=t.slots=E5();if(t.vnode.shapeFlag&32){const u=e._;u?(_5(r,e,n),n&&ZC(r,"_",u,!0)):k5(e,r)}else e&&S5(t,e)},v7=(t,e,n)=>{const{vnode:r,slots:u}=t;let i=!0,o=ut;if(r.shapeFlag&32){const s=e._;s?n&&s===1?i=!1:_5(u,e,n):(i=!e.$stable,k5(e,u)),o=e}else e&&(S5(t,e),o={default:1});if(i)for(const s in u)!jm(s)&&o[s]==null&&delete u[s]},En=$7;function C7(t){return y7(t)}function y7(t,e){const n=Mc();n.__VUE__=!0;const{insert:r,remove:u,patchProp:i,createElement:o,createText:s,createComment:a,setText:l,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=qu,insertStaticContent:p}=t,m=(E,D,B,Q=null,z=null,P=null,V=void 0,M=null,U=!!D.dynamicChildren)=>{if(E===D)return;E&&!as(E,D)&&(Q=Gn(E),Ye(E,z,P,!0),E=null),D.patchFlag===-2&&(U=!1,D.dynamicChildren=null);const{type:Z,ref:se,shapeFlag:H}=D;switch(Z){case Yc:g(E,D,B,Q);break;case Hu:C(E,D,B,Q);break;case Pd:E==null&&b(D,B,Q,V);break;case dn:ee(E,D,B,Q,z,P,V,M,U);break;default:H&1?$(E,D,B,Q,z,P,V,M,U):H&6?Ee(E,D,B,Q,z,P,V,M,U):(H&64||H&128)&&Z.process(E,D,B,Q,z,P,V,M,U,ai)}se!=null&&z?Fs(se,E&&E.ref,P,D||E,!D):se==null&&E&&E.ref!=null&&Fs(E.ref,null,P,E,!0)},g=(E,D,B,Q)=>{if(E==null)r(D.el=s(D.children),B,Q);else{const z=D.el=E.el;D.children!==E.children&&l(z,D.children)}},C=(E,D,B,Q)=>{E==null?r(D.el=a(D.children||""),B,Q):D.el=E.el},b=(E,D,B,Q)=>{[E.el,E.anchor]=p(E.children,D,B,Q,E.el,E.anchor)},O=({el:E,anchor:D},B,Q)=>{let z;for(;E&&E!==D;)z=d(E),r(E,B,Q),E=z;r(D,B,Q)},y=({el:E,anchor:D})=>{let B;for(;E&&E!==D;)B=d(E),u(E),E=B;u(D)},$=(E,D,B,Q,z,P,V,M,U)=>{if(D.type==="svg"?V="svg":D.type==="math"&&(V="mathml"),E==null)x(D,B,Q,z,P,V,M,U);else{const Z=E.el&&E.el._isVueCE?E.el:null;try{Z&&Z._beginPatch(),ue(E,D,z,P,V,M,U)}finally{Z&&Z._endPatch()}}},x=(E,D,B,Q,z,P,V,M)=>{let U,Z;const{props:se,shapeFlag:H,transition:fe,dirs:me}=E;if(U=E.el=o(E.type,P,se&&se.is,se),H&8?c(U,E.children):H&16&&R(E.children,U,null,Q,z,Bd(E,P),V,M),me&&ci(E,null,Q,"created"),_(U,E,E.scopeId,V,Q),se){for(const Fe in se)Fe!=="value"&&!ws(Fe)&&i(U,Fe,null,se[Fe],P,Q);"value"in se&&i(U,"value",null,se.value,P),(Z=se.onVnodeBeforeMount)&&Su(Z,Q,E)}me&&ci(E,null,Q,"beforeMount");const Pe=x7(z,fe);Pe&&fe.beforeEnter(U),r(U,D,B),((Z=se&&se.onVnodeMounted)||Pe||me)&&En(()=>{Z&&Su(Z,Q,E),Pe&&fe.enter(U),me&&ci(E,null,Q,"mounted")},z)},_=(E,D,B,Q,z)=>{if(B&&h(E,B),Q)for(let P=0;P<Q.length;P++)h(E,Q[P]);if(z){let P=z.subTree;if(D===P||F5(P.type)&&(P.ssContent===D||P.ssFallback===D)){const V=z.vnode;_(E,V,V.scopeId,V.slotScopeIds,z.parent)}}},R=(E,D,B,Q,z,P,V,M,U=0)=>{for(let Z=U;Z<E.length;Z++){const se=E[Z]=M?lr(E[Z]):Tu(E[Z]);m(null,se,D,B,Q,z,P,V,M)}},ue=(E,D,B,Q,z,P,V)=>{const M=D.el=E.el;let{patchFlag:U,dynamicChildren:Z,dirs:se}=D;U|=E.patchFlag&16;const H=E.props||ut,fe=D.props||ut;let me;if(B&&fi(B,!1),(me=fe.onVnodeBeforeUpdate)&&Su(me,B,D,E),se&&ci(D,E,B,"beforeUpdate"),B&&fi(B,!0),Z&&(!E.dynamicChildren||E.dynamicChildren.length!==Z.length)&&(U=0,V=!1,Z=null),(H.innerHTML&&fe.innerHTML==null||H.textContent&&fe.textContent==null)&&c(M,""),Z?re(E.dynamicChildren,Z,M,B,Q,Bd(D,z),P):V||Se(E,D,M,null,B,Q,Bd(D,z),P,!1),U>0){if(U&16)oe(M,H,fe,B,z);else if(U&2&&H.class!==fe.class&&i(M,"class",null,fe.class,z),U&4&&i(M,"style",H.style,fe.style,z),U&8){const Pe=D.dynamicProps;for(let Fe=0;Fe<Pe.length;Fe++){const Qe=Pe[Fe],Ge=H[Qe],vt=fe[Qe];(vt!==Ge||Qe==="value")&&i(M,Qe,Ge,vt,z,B)}}U&1&&E.children!==D.children&&c(M,D.children)}else!V&&Z==null&&oe(M,H,fe,B,z);((me=fe.onVnodeUpdated)||se)&&En(()=>{me&&Su(me,B,D,E),se&&ci(D,E,B,"updated")},Q)},re=(E,D,B,Q,z,P,V)=>{for(let M=0;M<D.length;M++){const U=E[M],Z=D[M],se=U.el&&(U.type===dn||!as(U,Z)||U.shapeFlag&198)?f(U.el):B;m(U,Z,se,null,Q,z,P,V,!0)}},oe=(E,D,B,Q,z)=>{if(D!==B){if(D!==ut)for(const P in D)!ws(P)&&!(P in B)&&i(E,P,D[P],null,z,Q);for(const P in B){if(ws(P))continue;const V=B[P],M=D[P];V!==M&&P!=="value"&&i(E,P,M,V,z,Q)}"value"in B&&i(E,"value",D.value,B.value,z)}},ee=(E,D,B,Q,z,P,V,M,U)=>{const Z=D.el=E?E.el:s(""),se=D.anchor=E?E.anchor:s("");let{patchFlag:H,dynamicChildren:fe,slotScopeIds:me}=D;me&&(M=M?M.concat(me):me),E==null?(r(Z,B,Q),r(se,B,Q),R(D.children||[],B,se,z,P,V,M,U)):H>0&&H&64&&fe&&E.dynamicChildren&&E.dynamicChildren.length===fe.length?(re(E.dynamicChildren,fe,B,z,P,V,M),(D.key!=null||z&&D===z.subTree)&&w5(E,D,!0)):Se(E,D,B,se,z,P,V,M,U)},Ee=(E,D,B,Q,z,P,V,M,U)=>{D.slotScopeIds=M,E==null?D.shapeFlag&512?z.ctx.activate(D,B,Q,V,U):W(D,B,Q,z,P,V,U):te(E,D,U)},W=(E,D,B,Q,z,P,V)=>{const M=E.component=w7(E,Q,z);if(Zm(E)&&(M.ctx.renderer=ai),P7(M,!1,V),M.asyncDep){if(z&&z.registerDep(M,he,V),!E.el){const U=M.subTree=qe(Hu);C(null,U,D,B),E.placeholder=U.el}}else he(M,E,D,B,z,P,V)},te=(E,D,B)=>{const Q=D.component=E.component;if(d7(E,D,B))if(Q.asyncDep&&!Q.asyncResolved){ke(Q,D,B);return}else Q.next=D,Q.update();else D.el=E.el,Q.vnode=D},he=(E,D,B,Q,z,P,V)=>{const M=()=>{if(E.isMounted){let{next:H,bu:fe,u:me,parent:Pe,vnode:Fe}=E;{const rn=B5(E);if(rn){H&&(H.el=Fe.el,ke(E,H,V)),rn.asyncDep.then(()=>{En(()=>{E.isUnmounted||Z()},z)});return}}let Qe=H,Ge;fi(E,!1),H?(H.el=Fe.el,ke(E,H,V)):H=Fe,fe&&$d(fe),(Ge=H.props&&H.props.onVnodeBeforeUpdate)&&Su(Ge,Pe,H,Fe),fi(E,!0);const vt=i3(E),un=E.subTree;E.subTree=vt,m(un,vt,f(un.el),Gn(un),E,z,P),H.el=vt.el,Qe===null&&h7(E,vt.el),me&&En(me,z),(Ge=H.props&&H.props.onVnodeUpdated)&&En(()=>Su(Ge,Pe,H,Fe),z)}else{let H;const{el:fe,props:me}=D,{bm:Pe,m:Fe,parent:Qe,root:Ge,type:vt}=E,un=ao(D);fi(E,!1),Pe&&$d(Pe),!un&&(H=me&&me.onVnodeBeforeMount)&&Su(H,Qe,D),fi(E,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(vt,E.parent?E.parent.type:void 0);const rn=E.subTree=i3(E);m(null,rn,B,Q,E,z,P),D.el=rn.el}if(Fe&&En(Fe,z),!un&&(H=me&&me.onVnodeMounted)){const rn=D;En(()=>Su(H,Qe,rn),z)}(D.shapeFlag&256||Qe&&ao(Qe.vnode)&&Qe.vnode.shapeFlag&256)&&E.a&&En(E.a,z),E.isMounted=!0,D=B=Q=null}};E.scope.on();const U=E.effect=new LC(M);E.scope.off();const Z=E.update=U.run.bind(U),se=E.job=U.runIfDirty.bind(U);se.i=E,se.id=E.uid,U.scheduler=()=>Im(se),fi(E,!0),Z()},ke=(E,D,B)=>{D.component=E;const Q=E.vnode.props;E.vnode=D,E.next=null,m7(E,D.props,Q,B),v7(E,D.children,B),vr(),KO(E),Cr()},Se=(E,D,B,Q,z,P,V,M,U=!1)=>{const Z=E&&E.children,se=E?E.shapeFlag:0,H=D.children,{patchFlag:fe,shapeFlag:me}=D;if(fe>0){if(fe&128){bt(Z,H,B,Q,z,P,V,M,U);return}else if(fe&256){Ne(Z,H,B,Q,z,P,V,M,U);return}}me&8?(se&16&&Cn(Z,z,P),H!==Z&&c(B,H)):se&16?me&16?bt(Z,H,B,Q,z,P,V,M,U):Cn(Z,z,P,!0):(se&8&&c(B,""),me&16&&R(H,B,Q,z,P,V,M,U))},Ne=(E,D,B,Q,z,P,V,M,U)=>{E=E||oo,D=D||oo;const Z=E.length,se=D.length,H=Math.min(Z,se);let fe;for(fe=0;fe<H;fe++){const me=D[fe]=U?lr(D[fe]):Tu(D[fe]);m(E[fe],me,B,null,z,P,V,M,U)}Z>se?Cn(E,z,P,!0,!1,H):R(D,B,Q,z,P,V,M,U,H)},bt=(E,D,B,Q,z,P,V,M,U)=>{let Z=0;const se=D.length;let H=E.length-1,fe=se-1;for(;Z<=H&&Z<=fe;){const me=E[Z],Pe=D[Z]=U?lr(D[Z]):Tu(D[Z]);if(as(me,Pe))m(me,Pe,B,null,z,P,V,M,U);else break;Z++}for(;Z<=H&&Z<=fe;){const me=E[H],Pe=D[fe]=U?lr(D[fe]):Tu(D[fe]);if(as(me,Pe))m(me,Pe,B,null,z,P,V,M,U);else break;H--,fe--}if(Z>H){if(Z<=fe){const me=fe+1,Pe=me<se?D[me].el:Q;for(;Z<=fe;)m(null,D[Z]=U?lr(D[Z]):Tu(D[Z]),B,Pe,z,P,V,M,U),Z++}}else if(Z>fe)for(;Z<=H;)Ye(E[Z],z,P,!0),Z++;else{const me=Z,Pe=Z,Fe=new Map;for(Z=Pe;Z<=fe;Z++){const Bt=D[Z]=U?lr(D[Z]):Tu(D[Z]);Bt.key!=null&&Fe.set(Bt.key,Z)}let Qe,Ge=0;const vt=fe-Pe+1;let un=!1,rn=0;const rr=new Array(vt);for(Z=0;Z<vt;Z++)rr[Z]=0;for(Z=me;Z<=H;Z++){const Bt=E[Z];if(Ge>=vt){Ye(Bt,z,P,!0);continue}let on;if(Bt.key!=null)on=Fe.get(Bt.key);else for(Qe=Pe;Qe<=fe;Qe++)if(rr[Qe-Pe]===0&&as(Bt,D[Qe])){on=Qe;break}on===void 0?Ye(Bt,z,P,!0):(rr[on-Pe]=Z+1,on>=rn?rn=on:un=!0,m(Bt,D[on],B,null,z,P,V,M,U),Ge++)}const ir=un?E7(rr):oo;for(Qe=ir.length-1,Z=vt-1;Z>=0;Z--){const Bt=Pe+Z,on=D[Bt],us=D[Bt+1],rs=Bt+1<se?us.el||P5(us):Q;rr[Z]===0?m(null,on,B,rs,z,P,V,M,U):un&&(Qe<0||Z!==ir[Qe]?Et(on,B,rs,2):Qe--)}}},Et=(E,D,B,Q,z=null)=>{const{el:P,type:V,transition:M,children:U,shapeFlag:Z}=E;if(Z&6){Et(E.component.subTree,D,B,Q);return}if(Z&128){E.suspense.move(D,B,Q);return}if(Z&64){V.move(E,D,B,ai);return}if(V===dn){r(P,D,B);for(let H=0;H<U.length;H++)Et(U[H],D,B,Q);r(E.anchor,D,B);return}if(V===Pd){O(E,D,B);return}if(Q!==2&&Z&1&&M)if(Q===0)M.persisted&&!P[_d]?r(P,D,B):(M.beforeEnter(P),r(P,D,B),En(()=>M.enter(P),z));else{const{leave:H,delayLeave:fe,afterLeave:me}=M,Pe=()=>{E.ctx.isUnmounted?u(P):r(P,D,B)},Fe=()=>{const Qe=P._isLeaving||!!P[_d];P._isLeaving&&P[_d](!0),M.persisted&&!Qe?Pe():H(P,()=>{Pe(),me&&me()})};fe?fe(P,Pe,Fe):Fe()}else r(P,D,B)},Ye=(E,D,B,Q=!1,z=!1)=>{const{type:P,props:V,ref:M,children:U,dynamicChildren:Z,shapeFlag:se,patchFlag:H,dirs:fe,cacheIndex:me,memo:Pe}=E;if(H===-2&&(z=!1),M!=null&&(vr(),Fs(M,null,B,E,!0),Cr()),me!=null&&(D.renderCache[me]=void 0),se&256){D.ctx.deactivate(E);return}const Fe=se&1&&fe,Qe=!ao(E);let Ge;if(Qe&&(Ge=V&&V.onVnodeBeforeUnmount)&&Su(Ge,D,E),se&6)Be(E.component,B,Q);else{if(se&128){E.suspense.unmount(B,Q);return}Fe&&ci(E,null,D,"beforeUnmount"),se&64?E.type.remove(E,D,B,ai,Q):Z&&!Z.hasOnce&&(P!==dn||H>0&&H&64)?Cn(Z,D,B,!1,!0):(P===dn&&H&384||!z&&se&16)&&Cn(U,D,B),Q&&qt(E)}const vt=Pe!=null&&me==null;(Qe&&(Ge=V&&V.onVnodeUnmounted)||Fe||vt)&&En(()=>{Ge&&Su(Ge,D,E),Fe&&ci(E,null,D,"unmounted"),vt&&(E.el=null)},B)},qt=E=>{const{type:D,el:B,anchor:Q,transition:z}=E;if(D===dn){vn(B,Q);return}if(D===Pd){y(E);return}const P=()=>{u(B),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(E.shapeFlag&1&&z&&!z.persisted){const{leave:V,delayLeave:M}=z,U=()=>V(B,P);M?M(E.el,P,U):U()}else P()},vn=(E,D)=>{let B;for(;E!==D;)B=d(E),u(E),E=B;u(D)},Be=(E,D,B)=>{const{bum:Q,scope:z,job:P,subTree:V,um:M,m:U,a:Z}=E;a3(U),a3(Z),Q&&$d(Q),z.stop(),P&&(P.flags|=8,Ye(V,E,D,B)),M&&En(M,D),En(()=>{E.isUnmounted=!0},D)},Cn=(E,D,B,Q=!1,z=!1,P=0)=>{for(let V=P;V<E.length;V++)Ye(E[V],D,B,Q,z)},Gn=E=>{if(E.shapeFlag&6)return Gn(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const D=d(E.anchor||E.el),B=D&&D[jw];return B?d(B):D};let wr=!1;const kl=(E,D,B)=>{let Q;E==null?D._vnode&&(Ye(D._vnode,null,null,!0),Q=D._vnode.component):m(D._vnode||null,E,D,null,null,null,B),D._vnode=E,wr||(wr=!0,KO(Q),o5(),wr=!1)},ai={p:m,um:Ye,m:Et,r:qt,mt:W,mc:R,pc:Se,pbc:re,n:Gn,o:t};return{render:kl,hydrate:void 0,createApp:o7(kl)}}function Bd({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function fi({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function x7(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function w5(t,e,n=!1){const r=t.children,u=e.children;if(ve(r)&&ve(u))for(let i=0;i<r.length;i++){const o=r[i];let s=u[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=u[i]=lr(u[i]),s.el=o.el),!n&&s.patchFlag!==-2&&w5(o,s)),s.type===Yc&&(s.patchFlag===-1&&(s=u[i]=lr(s)),s.el=o.el),s.type===Hu&&!s.el&&(s.el=o.el)}}function E7(t){const e=t.slice(),n=[0];let r,u,i,o,s;const a=t.length;for(r=0;r<a;r++){const l=t[r];if(l!==0){if(u=n[n.length-1],t[u]<l){e[r]=u,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,t[n[s]]<l?i=s+1:o=s;l<t[n[i]]&&(i>0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}function B5(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:B5(e)}function a3(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function P5(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?P5(e.subTree):null}const F5=t=>t.__isSuspense;function $7(t,e){e&&e.pendingBranch?ve(t)?e.effects.push(...t):e.effects.push(t):Qw(t)}const dn=Symbol.for("v-fgt"),Yc=Symbol.for("v-txt"),Hu=Symbol.for("v-cmt"),Pd=Symbol.for("v-stc"),mr=[];let Ln=null;function Ce(t=!1){mr.push(Ln=t?null:[])}function Lm(){mr.pop(),Ln=mr[mr.length-1]||null}let qs=1;function N0(t,e=!1){qs+=t,t<0&&Ln&&e&&(Ln.hasOnce=!0)}function Q5(t){return t.dynamicChildren=qs>0?Ln||oo:null,Lm(),qs>0&&Ln&&Ln.push(t),t}function Me(t,e,n,r,u,i){return Q5(Ve(t,e,n,r,u,i,!0))}function Kn(t,e,n,r,u){return Q5(qe(t,e,n,r,u,!0))}function Ws(t){return t?t.__v_isVNode===!0:!1}function as(t,e){return t.type===e.type&&t.key===e.key}const T5=({key:t})=>t??null,E0=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?gt(t)||en(t)||ye(t)?{i:Jt,r:t,k:e,f:!!n}:t:null);function Ve(t,e=null,n=null,r=0,u=null,i=t===dn?0:1,o=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&T5(e),ref:e&&E0(e),scopeId:a5,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:u,dynamicChildren:null,appContext:null,ctx:Jt};return s?(U0(a,n),i&128&&t.normalize(a)):n&&(a.shapeFlag|=gt(n)?8:16),qs>0&&!o&&Ln&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Ln.push(a),a}const qe=A7;function A7(t,e=null,n=null,r=0,u=null,i=!1){if((!t||t===Kw)&&(t=Hu),Ws(t)){const s=xo(t,e,!0);return n&&U0(s,n),qs>0&&!i&&Ln&&(s.shapeFlag&6?Ln[Ln.indexOf(t)]=s:Ln.push(s)),s.patchFlag=-2,s}if(I7(t)&&(t=t.__vccOpts),e){e=D7(e);let{class:s,style:a}=e;s&&!gt(s)&&(e.class=ji(s)),We(a)&&(Tm(a)&&!ve(a)&&(a=Xt({},a)),e.style=km(a))}const o=gt(t)?1:F5(t)?128:Xc(t)?64:We(t)?4:ye(t)?2:0;return Ve(t,e,n,r,u,o,i,!0)}function D7(t){return t?Tm(t)||$5(t)?Xt({},t):t:null}function xo(t,e,n=!1,r=!1){const{props:u,ref:i,patchFlag:o,children:s,transition:a}=t,l=e?k7(u||{},e):u,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&T5(l),ref:e&&e.ref?n&&i?ve(i)?i.concat(E0(e)):[i,E0(e)]:E0(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==dn?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:a,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&xo(t.ssContent),ssFallback:t.ssFallback&&xo(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return a&&r&&zm(c,a.clone(c)),c}function Kt(t=" ",e=0){return qe(Yc,null,t,e)}function Ft(t="",e=!1){return e?(Ce(),Kn(Hu,null,t)):qe(Hu,null,t)}function Tu(t){return t==null||typeof t=="boolean"?qe(Hu):ve(t)?qe(dn,null,t.slice()):Ws(t)?lr(t):qe(Yc,null,String(t))}function lr(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:xo(t)}function U0(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(ve(e))n=16;else if(typeof e=="object")if(r&65){const u=e.default;u&&(u._c&&(u._d=!1),U0(t,u()),u._c&&(u._d=!0));return}else{n=32;const u=e._;!u&&!$5(e)?e._ctx=Jt:u===3&&Jt&&(Jt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(ye(e)){if(r&65){U0(t,{default:e});return}e={default:e,_ctx:Jt},n=32}else e=String(e),r&64?(n=16,e=[Kt(e)]):n=8;t.children=e,t.shapeFlag|=n}function k7(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const u in r)if(u==="class")e.class!==r.class&&(e.class=ji([e.class,r.class]));else if(u==="style")e.style=km([e.style,r.style]);else if(Zc(u)){const i=e[u],o=r[u];o&&i!==o&&!(ve(i)&&i.includes(o))?e[u]=i?[].concat(i,o):o:o==null&&i==null&&!Rc(u)&&(e[u]=o)}else u!==""&&(e[u]=r[u])}return e}function Su(t,e,n,r=null){Cu(t,e,7,[n,r])}const S7=v5();let _7=0;function w7(t,e,n){const r=t.type,u=(e?e.appContext:t.appContext)||S7,i={uid:_7++,vnode:t,type:r,parent:e,appContext:u,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new uw(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(u.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:D5(r,u),emitsOptions:C5(r,u),emit:null,emitted:null,propsDefaults:ut,inheritAttrs:r.inheritAttrs,ctx:ut,data:ut,props:ut,attrs:ut,slots:ut,refs:ut,setupState:ut,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=a7.bind(null,i),t.ce&&t.ce(i),i}let pn=null;const B7=()=>pn||Jt;let X0,Ys;{const t=Mc(),e=(n,r)=>{let u;return(u=t[n])||(u=t[n]=[]),u.push(r),i=>{u.length>1?u.forEach(o=>o(i)):u[0](i)}};X0=e("__VUE_INSTANCE_SETTERS__",n=>pn=n),Ys=e("__VUE_SSR_SETTERS__",n=>Gs=n)}const Fa=t=>{const e=pn;return X0(t),t.scope.on(),()=>{t.scope.off(),X0(e)}},l3=()=>{pn&&pn.scope.off(),X0(null)};function I5(t){return t.vnode.shapeFlag&4}let Gs=!1;function P7(t,e=!1,n=!1){e&&Ys(e);const{props:r,children:u}=t.vnode,i=I5(t);p7(t,r,i,e),b7(t,u,n||e);const o=i?F7(t,e):void 0;return e&&Ys(!1),o}function F7(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Jw);const{setup:r}=n;if(r){vr();const u=t.setupContext=r.length>1?T7(t):null,i=Fa(t),o=Ba(r,t,0,[t.props,u]),s=QC(o);if(Cr(),i(),(s||t.sp)&&!ao(t)&&d5(t),s){if(o.then(l3,l3),e)return o.then(a=>{Ys(!0);try{c3(t,a,e)}finally{Ys(!1)}}).catch(a=>{Uc(a,t,0)});t.asyncDep=o}else c3(t,o)}else z5(t)}function c3(t,e,n){ye(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:We(e)&&(t.setupState=u5(e)),z5(t)}function z5(t,e,n){const r=t.type;t.render||(t.render=r.render||qu);{const u=Fa(t);vr();try{e7(t)}finally{Cr(),u()}}}const Q7={get(t,e){return Ht(t,"get",""),t[e]}};function T7(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Q7),slots:t.slots,emit:t.emit,expose:e}}function Gc(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(u5(Ew(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Qs)return Qs[n](t)},has(e,n){return n in e||n in Qs}})):t.proxy}function I7(t){return ye(t)&&"__vccOpts"in t}const ft=(t,e)=>Sw(t,e,Gs);function np(t,e,n){try{N0(-1);const r=arguments.length;return r===2?We(e)&&!ve(e)?Ws(e)?qe(t,null,[e]):qe(t,e):qe(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ws(n)&&(n=[n]),qe(t,e,n))}finally{N0(1)}}const z7="3.5.42";let up;const f3=typeof window<"u"&&window.trustedTypes;if(f3)try{up=f3.createPolicy("vue",{createHTML:t=>t})}catch{}const Z5=up?t=>up.createHTML(t):t=>t,Z7="http://www.w3.org/2000/svg",R7="http://www.w3.org/1998/Math/MathML",ar=typeof document<"u"?document:null,d3=ar&&ar.createElement("template"),j7={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const u=e==="svg"?ar.createElementNS(Z7,t):e==="mathml"?ar.createElementNS(R7,t):n?ar.createElement(t,{is:n}):ar.createElement(t);return t==="select"&&r&&r.multiple!=null&&u.setAttribute("multiple",r.multiple),u},createText:t=>ar.createTextNode(t),createComment:t=>ar.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ar.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,u,i){const o=n?n.previousSibling:e.lastChild;if(u&&(u===i||u.nextSibling))for(;e.insertBefore(u.cloneNode(!0),n),!(u===i||!(u=u.nextSibling)););else{d3.innerHTML=Z5(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const s=d3.content;if(r==="svg"||r==="mathml"){const a=s.firstChild;for(;a.firstChild;)s.appendChild(a.firstChild);s.removeChild(a)}e.insertBefore(s,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},M7=Symbol("_vtc");function L7(t,e,n){const r=t[M7];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const V0=Symbol("_vod"),R5=Symbol("_vsh"),N7={name:"show",beforeMount(t,{value:e},{transition:n}){t[V0]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ls(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),ls(t,!0),r.enter(t)):r.leave(t,()=>{ls(t,!1)}):ls(t,e))},beforeUnmount(t,{value:e}){ls(t,e)}};function ls(t,e){t.style.display=e?t[V0]:"none",t[R5]=!e}const U7=Symbol(""),X7=/(?:^|;)\s*display\s*:/;function V7(t,e,n){const r=t.style,u=gt(n);let i=!1;if(n&&!u){if(e)if(gt(e))for(const o of e.split(";")){const s=o.slice(0,o.indexOf(":")).trim();n[s]==null&&$s(r,s,"")}else for(const o in e)n[o]==null&&$s(r,o,"");for(const o in n){o==="display"&&(i=!0);const s=n[o];s!=null?W7(t,o,!gt(e)&&e?e[o]:void 0,s)||$s(r,o,s):$s(r,o,"")}}else if(u){if(e!==n){const o=r[U7];o&&(n+=";"+o),r.cssText=n,i=X7.test(n)}}else e&&t.removeAttribute("style");V0 in t&&(t[V0]=i?r.display:"",t[R5]&&(r.display="none"))}const Rl=/\s*!important$/;function $s(t,e,n){if(ve(n))n.forEach(r=>$s(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))Rl.test(n)?t.setProperty(e,n.replace(Rl,""),"important"):t.setProperty(e,n);else{const r=q7(t,e);Rl.test(n)?t.setProperty(ri(r),n.replace(Rl,""),"important"):t[r]=n}}const h3=["Webkit","Moz","ms"],Fd={};function q7(t,e){const n=Fd[e];if(n)return n;let r=gu(e);if(r!=="filter"&&r in t)return Fd[e]=r;r=zC(r);for(let u=0;u<h3.length;u++){const i=h3[u]+r;if(i in t)return Fd[e]=i}return e}function W7(t,e,n,r){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&>(r)&&n===r}const p3="http://www.w3.org/1999/xlink";function m3(t,e,n,r,u,i=tw(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(p3,e.slice(6,e.length)):t.setAttributeNS(p3,e,n):n==null||i&&!RC(n)?t.removeAttribute(e):t.setAttribute(e,i?"":bu(n)?String(n):n)}function g3(t,e,n,r,u){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?Z5(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const s=i==="OPTION"?t.getAttribute("value")||"":t.value,a=n==null?t.type==="checkbox"?"on":"":String(n);(s!==a||!("_value"in t))&&(t.value=a),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const s=typeof t[e];s==="boolean"?n=RC(n):n==null&&s==="string"?(n="",o=!0):s==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(u||e)}function Y7(t,e,n,r){t.addEventListener(e,n,r)}function G7(t,e,n,r){t.removeEventListener(e,n,r)}const O3=Symbol("_vei");function H7(t,e,n,r,u=null){const i=t[O3]||(t[O3]={}),o=i[e];if(r&&o)o.value=r;else{const[s,a]=e8(e);if(r){const l=i[e]=u8(r,u);Y7(t,s,l,a)}else o&&(G7(t,s,o,a),i[e]=void 0)}}const K7=/(Once|Passive|Capture)$/,J7=/^on:?(?:Once|Passive|Capture)$/;function e8(t){let e,n;for(;(n=t.match(K7))&&!J7.test(t);)e||(e={}),t=t.slice(0,t.length-n[1].length),e[n[1].toLowerCase()]=!0;return[t[2]===":"?t.slice(3):ri(t.slice(2)),e]}let Qd=0;const t8=Promise.resolve(),n8=()=>Qd||(t8.then(()=>Qd=0),Qd=Date.now());function u8(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const u=n.value;if(ve(u)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const o=u.slice(),s=[r];for(let a=0;a<o.length&&!r._stopped;a++){const l=o[a];l&&Cu(l,e,5,s)}}else Cu(u,e,5,[r])};return n.value=t,n.attached=n8(),n}const b3=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,r8=(t,e,n,r,u,i)=>{const o=u==="svg";e==="class"?L7(t,r,o):e==="style"?V7(t,n,r):Zc(e)?Rc(e)||H7(t,e,n,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):i8(t,e,r,o))?(g3(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&m3(t,e,r,o,i,e!=="value")):t._isVueCE&&(o8(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!gt(r)))?g3(t,gu(e),r,i,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),m3(t,e,r,o))};function i8(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&b3(e)&&ye(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const u=t.tagName;if(u==="IMG"||u==="VIDEO"||u==="CANVAS"||u==="SOURCE")return!1}return b3(e)&>(n)?!1:e in t}function o8(t,e){const n=t._def.props;if(!n)return!1;const r=gu(e);return Array.isArray(n)?n.some(u=>gu(u)===r):Object.keys(n).some(u=>gu(u)===r)}const s8=["ctrl","shift","alt","meta"],a8={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>s8.some(n=>t[`${n}Key`]&&!e.includes(n))},l8=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=((u,...i)=>{for(let o=0;o<e.length;o++){const s=a8[e[o]];if(s&&s(u,e))return}return t(u,...i)}))},c8={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},f8=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=(u=>{if(!("key"in u))return;const i=ri(u.key);if(e.some(o=>o===i||c8[o]===i))return t(u)}))},d8=Xt({patchProp:r8},j7);let v3;function h8(){return v3||(v3=C7(d8))}const p8=((...t)=>{const e=h8().createApp(...t),{mount:n}=e;return e.mount=r=>{const u=g8(r);if(!u)return;const i=e._component;!ye(i)&&!i.render&&!i.template&&(i.template=u.innerHTML),u.nodeType===1&&(u.textContent="");const o=n(u,!1,m8(u));return u instanceof Element&&(u.removeAttribute("v-cloak"),u.setAttribute("data-v-app","")),o},e});function m8(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function g8(t){return gt(t)?document.querySelector(t):t}const C3=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),O8=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),b8=t=>{const e=O8(t);return e.charAt(0).toUpperCase()+e.slice(1)},v8=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim(),y3=t=>t==="";var cs={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const C8=({name:t,iconNode:e,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:u,"stroke-width":i,size:o=cs.width,color:s=cs.stroke,...a},{slots:l})=>np("svg",{...cs,...a,width:o,height:o,stroke:s,"stroke-width":y3(n)||y3(r)||n===!0||r===!0?Number(u||i||cs["stroke-width"])*24/Number(o):u||i||cs["stroke-width"],class:v8("lucide",a.class,...t?[`lucide-${C3(b8(t))}-icon`,`lucide-${C3(t)}`]:["lucide-icon"])},[...e.map(c=>np(...c)),...l.default?[l.default()]:[]]);const Hc=(t,e)=>(n,{slots:r,attrs:u})=>np(C8,{...u,...n,iconNode:e,name:t},r);const x3=Hc("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const y8=Hc("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const j5=Hc("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const x8=Hc("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"}]]),E8=["type","disabled","aria-busy"],$8={key:0,class:"u-btn-spinner","aria-hidden":"true"},A8=ii({__name:"button",props:{variant:{default:"primary"},size:{default:"md"},type:{default:"button"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},setup(t){const e=t,n=ft(()=>{switch(e.variant){case"outline":return"u-btn-outline";case"ghost":return"u-btn-ghost";case"danger":return"u-btn-danger";default:return"u-btn-primary"}}),r=ft(()=>{switch(e.size){case"sm":return"u-btn-sm";case"lg":return"u-btn-lg";default:return"u-btn-md"}});return(u,i)=>(Ce(),Me("button",{type:t.type,disabled:t.disabled||t.loading,class:ji(["u-btn",[n.value,r.value]]),"aria-busy":t.loading||void 0},[t.loading?(Ce(),Me("span",$8)):Ft("",!0),Rm(u.$slots,"default",{},void 0)],10,E8))}}),oi=(t,e)=>{const n=t.__vccOpts||t;for(const[r,u]of e)n[r]=u;return n},Jn=oi(A8,[["__scopeId","data-v-c08cce6d"]]),D8={class:"u-error u-error-enter",role:"alert"},k8={class:"u-error-head"},S8={class:"u-error-body"},_8={class:"u-error-title"},w8={key:0,class:"u-error-message"},B8={key:1,class:"u-error-request"},P8={class:"u-error-actions"},F8=["aria-expanded"],Q8={key:0,class:"u-error-detail"},T8=ii({__name:"error-card",props:{title:{},message:{default:void 0},requestId:{default:void 0},detail:{default:void 0},retryLabel:{default:void 0}},emits:["retry"],setup(t,{emit:e}){const n=t,r=e,u=Yt(!1),i=ft(()=>!!n.detail);return(o,s)=>(Ce(),Me("div",D8,[Ve("div",k8,[qe(De(j5),{class:"u-error-icon",size:20,"aria-hidden":"true"}),Ve("div",S8,[Ve("p",_8,at(t.title),1),t.message?(Ce(),Me("p",w8,at(t.message),1)):Ft("",!0),t.requestId?(Ce(),Me("p",B8,"请求编号:"+at(t.requestId),1)):Ft("",!0)])]),Ve("div",P8,[t.retryLabel?(Ce(),Me("button",{key:0,type:"button",class:"u-error-retry",onClick:s[0]||(s[0]=a=>r("retry"))},at(t.retryLabel),1)):Ft("",!0),i.value?(Ce(),Me("button",{key:1,type:"button",class:"u-error-toggle","aria-expanded":u.value,onClick:s[1]||(s[1]=a=>u.value=!u.value)},[s[2]||(s[2]=Kt(" 技术详情 ",-1)),qe(De(y8),{class:ji(["u-error-chevron",{"u-error-chevron-open":u.value}]),size:14,"aria-hidden":"true"},null,8,["class"])],8,F8)):Ft("",!0)]),i.value&&u.value?(Ce(),Me("pre",Q8,at(t.detail),1)):Ft("",!0)]))}}),I8=oi(T8,[["__scopeId","data-v-9040ff83"]]);let rp=[],M5=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2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s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?M5:rp).push(n=n+t[e])})();function z8(t){if(t<768)return!1;for(let e=0,n=rp.length;;){let r=e+n>>1;if(t<rp[r])n=r;else if(t>=M5[r])e=r+1;else return!0;if(e==n)return!1}}function E3(t){return t>=127462&&t<=127487}const $3=8205;function Z8(t,e,n=!0,r=!0){return(n?L5:R8)(t,e,r)}function L5(t,e,n){if(e==t.length)return e;e&&N5(t.charCodeAt(e))&&U5(t.charCodeAt(e-1))&&e--;let r=Td(t,e);for(e+=A3(r);e<t.length;){let u=Td(t,e);if(r==$3||u==$3||n&&z8(u))e+=A3(u),r=u;else if(E3(u)){let i=0,o=e-2;for(;o>=0&&E3(Td(t,o));)i++,o-=2;if(i%2==0)break;e+=2}else break}return e}function R8(t,e,n){for(;e>1;){let r=L5(t,e-2,n);if(r<e)return r;e--}return 0}function Td(t,e){let n=t.charCodeAt(e);if(!U5(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return N5(r)?(n-55296<<10)+(r-56320)+65536:n}function N5(t){return t>=56320&&t<57344}function U5(t){return t>=55296&&t<56320}function A3(t){return t<65536?1:2}class Ze{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,r){[e,n]=Eo(this,e,n);let u=[];return this.decompose(0,e,u,2),r.length&&r.decompose(0,r.length,u,3),this.decompose(n,this.length,u,1),zu.from(u,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=Eo(this,e,n);let r=[];return this.decompose(e,n,r,0),zu.from(r,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),u=new Ts(this),i=new Ts(e);for(let o=n,s=n;;){if(u.next(o),i.next(o),o=0,u.lineBreak!=i.lineBreak||u.done!=i.done||u.value!=i.value)return!1;if(s+=u.value.length,u.done||s>=r)return!0}}iter(e=1){return new Ts(this,e)}iterRange(e,n=this.length){return new X5(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else{n==null&&(n=this.lines+1);let u=this.line(e).from;r=this.iterRange(u,Math.max(u,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new V5(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Ze.empty:e.length<=32?new yt(e):zu.from(yt.split(e,[]))}}class yt extends Ze{constructor(e,n=j8(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,u){for(let i=0;;i++){let o=this.text[i],s=u+o.length;if((n?r:s)>=e)return new M8(u,s,r,o);u=s+1,r++}}decompose(e,n,r,u){let i=e<=0&&n>=this.length?this:new yt(D3(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(u&1){let o=r.pop(),s=$0(i.text,o.text.slice(),0,i.length);if(s.length<=32)r.push(new yt(s,o.length+i.length));else{let a=s.length>>1;r.push(new yt(s.slice(0,a)),new yt(s.slice(a)))}}else r.push(i)}replace(e,n,r){if(!(r instanceof yt))return super.replace(e,n,r);[e,n]=Eo(this,e,n);let u=$0(this.text,$0(r.text,D3(this.text,0,e)),n),i=this.length+r.length-(n-e);return u.length<=32?new yt(u,i):zu.from(yt.split(u,[]),i)}sliceString(e,n=this.length,r=`
|
|
2
|
+
`){[e,n]=Eo(this,e,n);let u="";for(let i=0,o=0;i<=n&&o<this.text.length;o++){let s=this.text[o],a=i+s.length;i>e&&o&&(u+=r),e<a&&n>i&&(u+=s.slice(Math.max(0,e-i),n-i)),i=a+1}return u}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let r=[],u=-1;for(let i of e)r.push(i),u+=i.length+1,r.length==32&&(n.push(new yt(r,u)),r=[],u=-1);return u>-1&&n.push(new yt(r,u)),n}}class zu extends Ze{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,n,r,u){for(let i=0;;i++){let o=this.children[i],s=u+o.length,a=r+o.lines-1;if((n?a:s)>=e)return o.lineInner(e,n,r,u);u=s+1,r=a+1}}decompose(e,n,r,u){for(let i=0,o=0;o<=n&&i<this.children.length;i++){let s=this.children[i],a=o+s.length;if(e<=a&&n>=o){let l=u&((o<=e?1:0)|(a>=n?2:0));o>=e&&a<=n&&!l?r.push(s):s.decompose(e-o,n-o,r,l)}o=a+1}}replace(e,n,r){if([e,n]=Eo(this,e,n),r.lines<this.lines)for(let u=0,i=0;u<this.children.length;u++){let o=this.children[u],s=i+o.length;if(e>=i&&n<=s){let a=o.replace(e-i,n-i,r),l=this.lines-o.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let c=this.children.slice();return c[u]=a,new zu(c,this.length-(n-e)+r.length)}return super.replace(i,s,a)}i=s+1}return super.replace(e,n,r)}sliceString(e,n=this.length,r=`
|
|
3
|
+
`){[e,n]=Eo(this,e,n);let u="";for(let i=0,o=0;i<this.children.length&&o<=n;i++){let s=this.children[i],a=o+s.length;o>e&&i&&(u+=r),e<a&&n>o&&(u+=s.sliceString(e-o,n-o,r)),o=a+1}return u}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof zu))return 0;let r=0,[u,i,o,s]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;u+=n,i+=n){if(u==o||i==s)return r;let a=this.children[u],l=e.children[i];if(a!=l)return r+a.scanIdentical(l,n);r+=a.length+1}}static from(e,n=e.reduce((r,u)=>r+u.length+1,-1)){let r=0;for(let h of e)r+=h.lines;if(r<32){let h=[];for(let p of e)p.flatten(h);return new yt(h,n)}let u=Math.max(32,r>>5),i=u<<1,o=u>>1,s=[],a=0,l=-1,c=[];function f(h){let p;if(h.lines>i&&h instanceof zu)for(let m of h.children)f(m);else h.lines>o&&(a>o||!a)?(d(),s.push(h)):h instanceof yt&&a&&(p=c[c.length-1])instanceof yt&&h.lines+p.lines<=32?(a+=h.lines,l+=h.length+1,c[c.length-1]=new yt(p.text.concat(h.text),p.length+1+h.length)):(a+h.lines>u&&d(),a+=h.lines,l+=h.length+1,c.push(h))}function d(){a!=0&&(s.push(c.length==1?c[0]:zu.from(c,l)),l=-1,a=c.length=0)}for(let h of e)f(h);return d(),s.length==1?s[0]:new zu(s,n)}}Ze.empty=new yt([""],0);function j8(t){let e=-1;for(let n of t)e+=n.length+1;return e}function $0(t,e,n=0,r=1e9){for(let u=0,i=0,o=!0;i<t.length&&u<=r;i++){let s=t[i],a=u+s.length;a>=n&&(a>r&&(s=s.slice(0,r-u)),u<n&&(s=s.slice(n-u)),o?(e[e.length-1]+=s,o=!1):e.push(s)),u=a+1}return e}function D3(t,e,n){return $0(t,[""],e,n)}class Ts{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof yt?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,u=this.nodes[r],i=this.offsets[r],o=i>>1,s=u instanceof yt?u.text.length:u.children.length;if(o==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=!0,this.value=`
|
|
4
|
+
`,this;e--}else if(u instanceof yt){let a=u.text[o+(n<0?-1:0)];if(this.offsets[r]+=n,a.length>Math.max(0,e))return this.value=e==0?a:n>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=u.children[o+(n<0?-1:0)];e>a.length?(e-=a.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(a),this.offsets.push(n>0?1:(a instanceof yt?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class X5{constructor(e,n,r){this.value="",this.done=!1,this.cursor=new Ts(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:u}=this.cursor.next(e);return this.pos+=(u.length+e)*n,this.value=u.length<=r?u:n<0?u.slice(u.length-r):u.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class V5{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:r,value:u}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=u,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Ze.prototype[Symbol.iterator]=function(){return this.iter()},Ts.prototype[Symbol.iterator]=X5.prototype[Symbol.iterator]=V5.prototype[Symbol.iterator]=function(){return this});let M8=class{constructor(e,n,r,u){this.from=e,this.to=n,this.number=r,this.text=u}get length(){return this.to-this.from}};function Eo(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}function It(t,e,n=!0,r=!0){return Z8(t,e,n,r)}function L8(t){return t>=56320&&t<57344}function N8(t){return t>=55296&&t<56320}function kn(t,e){let n=t.charCodeAt(e);if(!N8(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return L8(r)?(n-55296<<10)+(r-56320)+65536:n}function Nm(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Zu(t){return t<65536?1:2}const ip=/\r\n?|\n/;var Nt=(function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t})(Nt||(Nt={}));class Wu{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];e+=r<0?this.sections[n]:r}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,r=0,u=0;n<this.sections.length;){let i=this.sections[n++],o=this.sections[n++];o<0?(e(r,u,i),u+=i):u+=o,r+=i}}iterChangedRanges(e,n=!1){op(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],u=this.sections[n++];u<0?e.push(r,u):e.push(u,r)}return new Wu(e)}composeDesc(e){return this.empty?e:e.empty?this:q5(this,e)}mapDesc(e,n=!1){return e.empty?this:sp(this,e,n)}mapPos(e,n=-1,r=Nt.Simple){let u=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],a=this.sections[o++],l=u+s;if(a<0){if(l>e)return i+(e-u);i+=s}else{if(r!=Nt.Simple&&l>=e&&(r==Nt.TrackDel&&u<e&&l>e||r==Nt.TrackBefore&&u<e||r==Nt.TrackAfter&&l>e))return null;if(l>e||l==e&&n<0&&!s)return e==u||n<0?i:i+a;i+=a}u=l}if(e>u)throw new RangeError(`Position ${e} is out of range for changeset of length ${u}`);return i}touchesRange(e,n=e){for(let r=0,u=0;r<this.sections.length&&u<=n;){let i=this.sections[r++],o=this.sections[r++],s=u+i;if(o>=0&&u<=n&&s>=e)return u<e&&s>n?"cover":!0;u=s}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],u=this.sections[n++];e+=(e?" ":"")+r+(u>=0?":"+u:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Wu(e)}static create(e){return new Wu(e)}}class kt extends Wu{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return op(this,(n,r,u,i,o)=>e=e.replace(u,u+(r-n),o),!1),e}mapDesc(e,n=!1){return sp(this,e,n,!0)}invert(e){let n=this.sections.slice(),r=[];for(let u=0,i=0;u<n.length;u+=2){let o=n[u],s=n[u+1];if(s>=0){n[u]=s,n[u+1]=o;let a=u>>1;for(;r.length<a;)r.push(Ze.empty);r.push(o?e.slice(i,i+o):Ze.empty)}i+=o}return new kt(n,r)}compose(e){return this.empty?e:e.empty?this:q5(this,e,!0)}map(e,n=!1){return e.empty?this:sp(this,e,n,!0)}iterChanges(e,n=!1){op(this,e,n)}get desc(){return Wu.create(this.sections)}filter(e){let n=[],r=[],u=[],i=new Hs(this);e:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s<a||s==a&&i.len==0;){if(i.done)break e;let c=Math.min(i.len,a-s);Gt(u,c,-1);let f=i.ins==-1?-1:i.off==0?i.ins:0;Gt(n,c,f),f>0&&Mr(r,n,i.text),i.forward(c),s+=c}let l=e[o++];for(;s<l;){if(i.done)break e;let c=Math.min(i.len,l-s);Gt(n,c,-1),Gt(u,c,i.ins==-1?-1:i.off==0?i.ins:0),i.forward(c),s+=c}}return{changes:new kt(n,r),filtered:Wu.create(u)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],u=this.sections[n+1];u<0?e.push(r):u==0?e.push([r]):e.push([r].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,r){let u=[],i=[],o=0,s=null;function a(c=!1){if(!c&&!u.length)return;o<n&&Gt(u,n-o,-1);let f=new kt(u,i);s=s?s.compose(f.map(s)):f,u=[],i=[],o=0}function l(c){if(Array.isArray(c))for(let f of c)l(f);else if(c instanceof kt){if(c.length!=n)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`);a(),s=s?s.compose(c.map(s)):c}else{let{from:f,to:d=f,insert:h}=c;if(f>d||f<0||d>n)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${n})`);let p=h?typeof h=="string"?Ze.of(h.split(r||ip)):h:Ze.empty,m=p.length;if(f==d&&m==0)return;f<o&&a(),f>o&&Gt(u,f-o,-1),Gt(u,d-f,m),Mr(i,u,p),o=d}}return l(e),a(!s),s}static empty(e){return new kt(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let u=0;u<e.length;u++){let i=e[u];if(typeof i=="number")n.push(i,-1);else{if(!Array.isArray(i)||typeof i[0]!="number"||i.some((o,s)=>s&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)n.push(i[0],0);else{for(;r.length<u;)r.push(Ze.empty);r[u]=Ze.of(i.slice(1)),n.push(i[0],r[u].length)}}}return new kt(n,r)}static createSet(e,n){return new kt(e,n)}}function Gt(t,e,n,r=!1){if(e==0&&n<=0)return;let u=t.length-2;u>=0&&n<=0&&n==t[u+1]?t[u]+=e:u>=0&&e==0&&t[u]==0?t[u+1]+=n:r?(t[u]+=e,t[u+1]+=n):t.push(e,n)}function Mr(t,e,n){if(n.length==0)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<r;)t.push(Ze.empty);t.push(n)}}function op(t,e,n){let r=t.inserted;for(let u=0,i=0,o=0;o<t.sections.length;){let s=t.sections[o++],a=t.sections[o++];if(a<0)u+=s,i+=s;else{let l=u,c=i,f=Ze.empty;for(;l+=s,c+=a,a&&r&&(f=f.append(r[o-2>>1])),!(n||o==t.sections.length||t.sections[o+1]<0);)s=t.sections[o++],a=t.sections[o++];e(u,l,i,c,f),u=l,i=c}}}function sp(t,e,n,r=!1){let u=[],i=r?[]:null,o=new Hs(t),s=new Hs(e);for(let a=-1;;){if(o.done&&s.len||s.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&s.ins==-1){let l=Math.min(o.len,s.len);Gt(u,l,-1),o.forward(l),s.forward(l)}else if(s.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(s.len<o.len||s.len==o.len&&!n))){let l=s.len;for(Gt(u,s.ins,-1);l;){let c=Math.min(o.len,l);o.ins>=0&&a<o.i&&o.len<=c&&(Gt(u,0,o.ins),i&&Mr(i,u,o.text),a=o.i),o.forward(c),l-=c}s.next()}else if(o.ins>=0){let l=0,c=o.len;for(;c;)if(s.ins==-1){let f=Math.min(c,s.len);l+=f,c-=f,s.forward(f)}else if(s.ins==0&&s.len<c)c-=s.len,s.next();else break;Gt(u,l,a<o.i?o.ins:0),i&&a<o.i&&Mr(i,u,o.text),a=o.i,o.forward(o.len-c)}else{if(o.done&&s.done)return i?kt.createSet(u,i):Wu.create(u);throw new Error("Mismatched change set lengths")}}}function q5(t,e,n=!1){let r=[],u=n?[]:null,i=new Hs(t),o=new Hs(e);for(let s=!1;;){if(i.done&&o.done)return u?kt.createSet(r,u):Wu.create(r);if(i.ins==0)Gt(r,i.len,0,s),i.next();else if(o.len==0&&!o.done)Gt(r,0,o.ins,s),u&&Mr(u,r,o.text),o.next();else{if(i.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(i.len2,o.len),l=r.length;if(i.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;Gt(r,a,c,s),u&&c&&Mr(u,r,o.text)}else o.ins==-1?(Gt(r,i.off?0:i.len,a,s),u&&Mr(u,r,i.textBit(a))):(Gt(r,i.off?0:i.len,o.off?0:o.ins,s),u&&!o.off&&Mr(u,r,o.text));s=(i.ins>a||o.ins>=0&&o.len>a)&&(s||r.length>l),i.forward2(a),o.forward(a)}}}}class Hs{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?Ze.empty:e[n]}textBit(e){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!e?Ze.empty:n[r].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Rr{constructor(e,n,r,u){this.from=e,this.to=n,this.flags=r,this.goalColumn=u}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get undirectional(){return(this.flags&64)>0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}map(e,n=-1){let r,u;return this.empty?r=u=e.mapPos(this.from,n):(r=e.mapPos(this.from,1),u=e.mapPos(this.to,-1)),r==this.from&&u==this.to?this:new Rr(r,u,this.flags,this.goalColumn)}extend(e,n=e,r=0){if(e<=this.anchor&&n>=this.anchor)return w.range(e,n,void 0,void 0,r);let u=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return w.range(this.anchor,u,void 0,void 0,r)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return w.range(e.anchor,e.head)}static create(e,n,r,u){return new Rr(e,n,r,u)}}class w{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:w.create(this.ranges.map(r=>r.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new w([this.main],0)}addRange(e,n=!0){return w.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let r=this.ranges.slice();return r[n]=e,w.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new w(e.ranges.map(n=>Rr.fromJSON(n)),e.main)}static single(e,n=e){return new w([w.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,u=0;u<e.length;u++){let i=e[u];if(i.empty?i.from<=r:i.from<r)return w.normalized(e.slice(),n);r=i.to}return new w(e,n)}static cursor(e,n=0,r,u){return Rr.create(e,e,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r)),u)}static range(e,n,r,u,i){let o=u==null?7:Math.min(6,u);return!i&&e!=n&&(i=n<e?1:-1),i&&(o|=i<0?8:16),n<e?Rr.create(n,e,o|32,r):Rr.create(e,n,o,r)}static undirectionalRange(e,n){return Rr.create(e,n,64,void 0)}static normalized(e,n=0){let r=e[n];e.sort((u,i)=>u.from-i.from),n=e.indexOf(r);for(let u=1;u<e.length;u++){let i=e[u],o=e[u-1];if(i.empty?i.from<=o.to:i.from<o.to){let s=o.from,a=Math.max(i.to,o.to);u<=n&&n--,e.splice(--u,2,i.anchor>i.head?w.range(a,s):w.range(s,a))}}return new w(e,n)}}function W5(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let Um=0;class G{constructor(e,n,r,u,i){this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=u,this.id=Um++,this.default=e([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(e={}){return new G(e.combine||(n=>n),e.compareInput||((n,r)=>n===r),e.compare||(e.combine?(n,r)=>n===r:Xm),!!e.static,e.enables)}of(e){return new A0([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new A0(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new A0(e,this,2,n)}from(e,n){return n||(n=r=>r),this.compute([e],r=>n(r.field(e)))}}function Xm(t,e){return t==e||t.length==e.length&&t.every((n,r)=>n===e[r])}class A0{constructor(e,n,r,u){this.dependencies=e,this.facet=n,this.type=r,this.value=u,this.id=Um++}dynamicSlot(e){var n;let r=this.value,u=this.facet.compareInput,i=this.id,o=e[i]>>1,s=this.type==2,a=!1,l=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?l=!0:(((n=e[f.id])!==null&&n!==void 0?n:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=r(f),1},update(f,d){if(a&&d.docChanged||l&&(d.docChanged||d.selection)||ap(f,c)){let h=r(f);if(s?!k3(h,f.values[o],u):!u(h,f.values[o]))return f.values[o]=h,1}return 0},reconfigure:(f,d)=>{let h,p=d.config.address[i];if(p!=null){let m=W0(d,p);if(this.dependencies.every(g=>g instanceof G?d.facet(g)===f.facet(g):g instanceof jt?d.field(g,!1)==f.field(g,!1):!0)||(s?k3(h=r(f),m,u):u(h=r(f),m)))return f.values[o]=m,0}else h=r(f);return f.values[o]=h,1}}}get extension(){return this}}function k3(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function ap(t,e){let n=!1;for(let r of e)Is(t,r)&1&&(n=!0);return n}function U8(t,e,n){let r=n.map(a=>t[a.id]),u=n.map(a=>a.type),i=r.filter(a=>!(a&1)),o=t[e.id]>>1;function s(a){let l=[];for(let c=0;c<r.length;c++){let f=W0(a,r[c]);if(u[c]==2)for(let d of f)l.push(d);else l.push(f)}return e.combine(l)}return{create(a){for(let l of r)Is(a,l);return a.values[o]=s(a),1},update(a,l){if(!ap(a,i))return 0;let c=s(a);return e.compare(c,a.values[o])?0:(a.values[o]=c,1)},reconfigure(a,l){let c=ap(a,r),f=l.config.facets[e.id],d=l.facet(e);if(f&&!c&&Xm(n,f))return a.values[o]=d,0;let h=s(a);return e.compare(h,d)?(a.values[o]=d,0):(a.values[o]=h,1)}}}const jl=G.define({static:!0});class jt{constructor(e,n,r,u,i){this.id=e,this.createF=n,this.updateF=r,this.compareF=u,this.spec=i,this.provides=void 0}static define(e){let n=new jt(Um++,e.create,e.update,e.compare||((r,u)=>r===u),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(jl).find(r=>r.field==this);return(n?.create||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,u)=>{let i=r.values[n],o=this.updateF(i,u);return this.compareF(i,o)?0:(r.values[n]=o,1)},reconfigure:(r,u)=>{let i=r.facet(jl),o=u.facet(jl),s;return(s=i.find(a=>a.field==this))&&s!=o.find(a=>a.field==this)?(r.values[n]=s.create(r),1):u.config.address[this.id]!=null?(r.values[n]=u.field(this),0):(r.values[n]=this.create(r),1)}}}init(e){return[this,jl.of({field:this,create:e})]}get extension(){return this}}const Ci={lowest:4,low:3,default:2,high:1,highest:0};function fs(t){return e=>new Y5(e,t)}const Ku={highest:fs(Ci.highest),high:fs(Ci.high),default:fs(Ci.default),low:fs(Ci.low),lowest:fs(Ci.lowest)};class Y5{constructor(e,n){this.inner=e,this.prec=n}get extension(){return this}}class Qa{of(e){return new lp(this,e)}reconfigure(e){return Qa.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class lp{constructor(e,n){this.compartment=e,this.inner=n}get extension(){return this}}class q0{constructor(e,n,r,u,i,o){for(this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=u,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,r){let u=[],i=Object.create(null),o=new Map;for(let d of X8(e,n,o))d instanceof jt?u.push(d):(i[d.facet.id]||(i[d.facet.id]=[])).push(d);let s=Object.create(null),a=[],l=[];for(let d of u)s[d.id]=l.length<<1,l.push(h=>d.slot(h));let c=r?.config.facets;for(let d in i){let h=i[d],p=h[0].facet,m=c&&c[d]||[];if(h.every(g=>g.type==0))if(s[p.id]=a.length<<1|1,Xm(m,h))a.push(r.facet(p));else{let g=p.combine(h.map(C=>C.value));a.push(r&&p.compare(g,r.facet(p))?r.facet(p):g)}else{for(let g of h)g.type==0?(s[g.id]=a.length<<1|1,a.push(g.value)):(s[g.id]=l.length<<1,l.push(C=>g.dynamicSlot(C)));s[p.id]=l.length<<1,l.push(g=>U8(g,p,h))}}let f=l.map(d=>d(s));return new q0(e,o,f,s,a,i)}}function X8(t,e,n){let r=[[],[],[],[],[]],u=new Map;function i(o,s){let a=u.get(o);if(a!=null){if(a<=s)return;let l=r[a].indexOf(o);l>-1&&r[a].splice(l,1),o instanceof lp&&n.delete(o.compartment)}if(u.set(o,s),Array.isArray(o))for(let l of o)i(l,s);else if(o instanceof lp){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let l=e.get(o.compartment)||o.inner;n.set(o.compartment,l),i(l,s)}else if(o instanceof Y5)i(o.inner,o.prec);else if(o instanceof jt)r[s].push(o),o.provides&&i(o.provides,s);else if(o instanceof A0)r[s].push(o),o.facet.extensions&&i(o.facet.extensions,Ci.default);else{let l=o.extension;if(!l)throw new Error(`Unrecognized extension value in extension set (${o}).`);if(l==o)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(l,s)}}return i(t,Ci.default),r.reduce((o,s)=>o.concat(s))}function Is(t,e){if(e&1)return 2;let n=e>>1,r=t.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;t.status[n]=4;let u=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|u}function W0(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const G5=G.define(),cp=G.define({combine:t=>t.some(e=>e),static:!0}),H5=G.define({combine:t=>t.length?t[0]:void 0,static:!0}),K5=G.define(),J5=G.define(),ey=G.define(),ty=G.define({combine:t=>t.length?t[0]:!1});class kr{constructor(e,n){this.type=e,this.value=n}static define(){return new V8}}class V8{of(e){return new kr(this,e)}}class q8{constructor(e){this.map=e}of(e){return new Oe(this,e)}}class Oe{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Oe(this.type,n)}is(e){return this.type==e}static define(e={}){return new q8(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let u of e){let i=u.map(n);i&&r.push(i)}return r}}Oe.reconfigure=Oe.define();Oe.appendConfig=Oe.define();class $t{constructor(e,n,r,u,i,o){this.startState=e,this.changes=n,this.selection=r,this.effects=u,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,r&&W5(r,n.newLength),i.some(s=>s.type==$t.time)||(this.annotations=i.concat($t.time.of(Date.now())))}static create(e,n,r,u,i,o){return new $t(e,n,r,u,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation($t.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}$t.time=kr.define();$t.userEvent=kr.define();$t.addToHistory=kr.define();$t.remote=kr.define();function W8(t,e){let n=[];for(let r=0,u=0;;){let i,o;if(r<t.length&&(u==e.length||e[u]>=t[r]))i=t[r++],o=t[r++];else if(u<e.length)i=e[u++],o=e[u++];else return n;!n.length||n[n.length-1]<i?n.push(i,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function ny(t,e,n){var r;let u,i,o;return n?(u=e.changes,i=kt.empty(e.changes.length),o=t.changes.compose(e.changes)):(u=e.changes.map(t.changes),i=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(u)),{changes:o,selection:e.selection?e.selection.map(i):(r=t.selection)===null||r===void 0?void 0:r.map(u),effects:Oe.mapEffects(t.effects,u).concat(Oe.mapEffects(e.effects,i)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function fp(t,e,n){let r=e.selection,u=co(e.annotations);return e.userEvent&&(u=u.concat($t.userEvent.of(e.userEvent))),{changes:e.changes instanceof kt?e.changes:kt.of(e.changes||[],n,t.facet(H5)),selection:r&&(r instanceof w?r:w.single(r.anchor,r.head)),effects:co(e.effects),annotations:u,scrollIntoView:!!e.scrollIntoView}}function uy(t,e,n){let r=fp(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let i=1;i<e.length;i++){e[i].filter===!1&&(n=!1);let o=!!e[i].sequential;r=ny(r,fp(t,e[i],o?r.changes.newLength:t.doc.length),o)}let u=$t.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return G8(n?Y8(u):u)}function Y8(t){let e=t.startState,n=!0;for(let u of e.facet(K5)){let i=u(t);if(i===!1){n=!1;break}Array.isArray(i)&&(n=n===!0?i:W8(n,i))}if(n!==!0){let u,i;if(n===!1)i=t.changes.invertedDesc,u=kt.empty(e.doc.length);else{let o=t.changes.filter(n);u=o.changes,i=o.filtered.mapDesc(o.changes).invertedDesc}t=$t.create(e,u,t.selection&&t.selection.map(i),Oe.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let r=e.facet(J5);for(let u=r.length-1;u>=0;u--){let i=r[u](t);i instanceof $t?t=i:Array.isArray(i)&&i.length==1&&i[0]instanceof $t?t=i[0]:t=uy(e,co(i),!1)}return t}function G8(t){let e=t.startState,n=e.facet(ey),r=t;for(let u=n.length-1;u>=0;u--){let i=n[u](t);i&&Object.keys(i).length&&(r=ny(r,fp(e,i,t.changes.newLength),!0))}return r==t?t:$t.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}const H8=[];function co(t){return t==null?H8:Array.isArray(t)?t:[t]}var dt=(function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t})(dt||(dt={}));const K8=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let dp;try{dp=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function J8(t){if(dp)return dp.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||K8.test(n)))return!0}return!1}function eB(t){return e=>{if(!/\S/.test(e))return dt.Space;if(J8(e))return dt.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return dt.Word;return dt.Other}}class ze{constructor(e,n,r,u,i,o){this.config=e,this.doc=n,this.selection=r,this.values=u,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)Is(this,s<<1);this.computeSlot=null}field(e,n=!0){let r=this.config.address[e.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return Is(this,r),W0(this,r)}update(...e){return uy(this,e,!0)}applyTransaction(e){let n=this.config,{base:r,compartments:u}=n;for(let s of e.effects)s.is(Qa.reconfigure)?(n&&(u=new Map,n.compartments.forEach((a,l)=>u.set(l,a)),n=null),u.set(s.value.compartment,s.value.extension)):s.is(Oe.reconfigure)?(n=null,r=s.value):s.is(Oe.appendConfig)&&(n=null,r=co(r).concat(s.value));let i;n?i=e.startState.values.slice():(n=q0.resolve(r,u,this),i=new ze(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(a,l)=>l.reconfigure(a,this),null).values);let o=e.startState.facet(cp)?e.newSelection:e.newSelection.asSingle();new ze(n,e.newDoc,o,i,(s,a)=>a.update(s,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:w.cursor(n.from+e.length,-1)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),u=this.changes(r.changes),i=[r.range],o=co(r.effects);for(let s=1;s<n.ranges.length;s++){let a=e(n.ranges[s]),l=this.changes(a.changes),c=l.map(u);for(let d=0;d<s;d++)i[d]=i[d].map(c);let f=u.mapDesc(l,!0);i.push(a.range.map(f)),u=u.compose(c),o=Oe.mapEffects(o,c).concat(Oe.mapEffects(co(a.effects),f))}return{changes:u,selection:w.create(i,n.mainIndex),effects:o}}changes(e=[]){return e instanceof kt?e:kt.of(e,this.doc.length,this.facet(ze.lineSeparator))}toText(e){return Ze.of(e.split(this.facet(ze.lineSeparator)||ip))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(Is(this,n),W0(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let u=e[r];u instanceof jt&&this.config.address[u.id]!=null&&(n[r]=u.spec.toJSON(this.field(e[r]),this))}return n}static fromJSON(e,n={},r){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let u=[];if(r){for(let i in r)if(Object.prototype.hasOwnProperty.call(e,i)){let o=r[i],s=e[i];u.push(o.init(a=>o.spec.fromJSON(s,a)))}}return ze.create({doc:e.doc,selection:w.fromJSON(e.selection),extensions:n.extensions?u.concat([n.extensions]):u})}static create(e={}){let n=q0.resolve(e.extensions||[],new Map),r=e.doc instanceof Ze?e.doc:Ze.of((e.doc||"").split(n.staticFacet(ze.lineSeparator)||ip)),u=e.selection?e.selection instanceof w?e.selection:w.single(e.selection.anchor,e.selection.head):w.single(0);return W5(u,r.length),n.staticFacet(cp)||(u=u.asSingle()),new ze(n,r,u,n.dynamicSlots.map(()=>null),(i,o)=>o.create(i),null)}get tabSize(){return this.facet(ze.tabSize)}get lineBreak(){return this.facet(ze.lineSeparator)||`
|
|
5
|
+
`}get readOnly(){return this.facet(ty)}phrase(e,...n){for(let r of this.facet(ze.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(r,u)=>{if(u=="$")return"$";let i=+(u||1);return!i||i>n.length?r:n[i-1]})),e}languageDataAt(e,n,r=-1){let u=[];for(let i of this.facet(G5))for(let o of i(this,n,r))Object.prototype.hasOwnProperty.call(o,e)&&u.push(o[e]);return u}charCategorizer(e){let n=this.languageDataAt("wordChars",e);return eB(n.length?n[0]:"")}wordAt(e){let{text:n,from:r,length:u}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-r,s=e-r;for(;o>0;){let a=It(n,o,!1);if(i(n.slice(a,o))!=dt.Word)break;o=a}for(;s<u;){let a=It(n,s);if(i(n.slice(s,a))!=dt.Word)break;s=a}return o==s?null:w.range(o+r,s+r)}}ze.allowMultipleSelections=cp;ze.tabSize=G.define({combine:t=>t.length?t[0]:4});ze.lineSeparator=H5;ze.readOnly=ty;ze.phrases=G.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(u=>t[u]==e[u])}});ze.languageData=G5;ze.changeFilter=K5;ze.transactionFilter=J5;ze.transactionExtender=ey;Qa.reconfigure=Oe.define();function Ju(t,e,n={}){let r={};for(let u of t)for(let i of Object.keys(u)){let o=u[i],s=r[i];if(s===void 0)r[i]=o;else if(!(s===o||o===void 0))if(Object.hasOwnProperty.call(n,i))r[i]=n[i](s,o);else throw new Error("Config merge conflict for field "+i)}for(let u in e)r[u]===void 0&&(r[u]=e[u]);return r}class Xr{eq(e){return this==e}range(e,n=e){return hp.create(e,n,this)}}Xr.prototype.startSide=Xr.prototype.endSide=0;Xr.prototype.point=!1;Xr.prototype.mapMode=Nt.TrackDel;function Vm(t,e){return t==e||t.constructor==e.constructor&&t.eq(e)}let hp=class ry{constructor(e,n,r){this.from=e,this.to=n,this.value=r}static create(e,n,r){return new ry(e,n,r)}};function pp(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class qm{constructor(e,n,r,u){this.from=e,this.to=n,this.value=r,this.maxPoint=u}get length(){return Hi(this.to)}findIndex(e,n,r,u=0){let i=r?this.to:this.from;for(let o=u,s=i.length;;){if(o==s)return o;let a=o+s>>1,l=i[a]-e||(r?this.value[a].endSide:this.value[a].startSide)-n;if(a==o)return l>=0?o:s;l>=0?s=a:o=a+1}}between(e,n,r,u){for(let i=this.findIndex(n,-1e9,!0),o=this.findIndex(r,1e9,!1,i);i<o;i++)if(u(this.from[i]+e,this.to[i]+e,this.value[i])===!1)return!1}map(e,n,r,u,i){let o=[],s=[],a=[],l=-1,c=-1;e:for(let f=0;f<this.value.length;f++){let d=this.value[f],h=this.from[f]+e,p=this.to[f]+e,m,g;if(h==p){let C=n.mapPos(h,d.startSide,d.mapMode);if(C==null||(m=g=C,d.startSide!=d.endSide&&(g=n.mapPos(h,d.endSide),g<m)))continue}else if(m=n.mapPos(h,d.startSide),g=n.mapPos(p,d.endSide),m>g||m==g&&d.startSide>0&&d.endSide<=0)continue;if(!((g-m||d.endSide-d.startSide)<0))if(l<0&&(l=m),d.point&&(c=Math.max(c,g-m)),(m-r||d.startSide-u)>=0)o.push(d),s.push(m-l),a.push(g-l),r=g,u=d.endSide;else{if(m==g)for(let C=o.length;C>0;C--){if((m-(a[C-1]+l)||d.startSide-o[C-1].endSide)>=0){o.splice(C,0,d),s.splice(C,0,m-l),a.splice(C,0,g-l);continue e}if((m-(s[C-1]+l)||d.endSide-o[C-1].startSide)>0)break}i(m,g,d)}}return{mapped:o.length?new qm(s,a,o,c):null,pos:l}}}class we{constructor(e,n,r,u){this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=u}static create(e,n,r,u){return new we(e,n,r,u)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:r=!1,filterFrom:u=0,filterTo:i=this.length}=e,o=e.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(pp)),this.isEmpty)return n.length?we.of(n):this;let s=new iy(this,null,-1).goto(0),a=0,l=[],c=new Yu;for(;s.value||a<n.length;)if(a<n.length&&(s.from-n[a].from||s.startSide-n[a].value.startSide)>=0){let f=n[a++];c.addInner(f.from,f.to,f.value,!1)||l.push(f)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(a==n.length||this.chunkEnd(s.chunkIndex)<n[a].from)&&(!o||u>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||u>s.to||i<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value,!1)||l.push(hp.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?we.empty:this.nextLayer.update({add:l,filter:o,filterFrom:u,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],r=[],u=-1,i,o=(a,l,c)=>{i||(i=new Yu),i.addRange(a,l,c,!1)};for(let a=0;a<this.chunk.length;a++){let l=this.chunkPos[a],c=this.chunk[a],f=e.touchesRange(l,l+c.length);if(f===!1)u=Math.max(u,c.maxPoint),n.push(c),r.push(e.mapPos(l));else if(f===!0){let[d,h]=n.length?[Hi(r)+Hi(n).length,Hi(Hi(n).value).endSide]:[-1,-1],{mapped:p,pos:m}=c.map(l,e,d,h,o);p&&(u=Math.max(u,p.maxPoint),n.push(p),r.push(m))}}let s=this.nextLayer.map(e);return i&&(s=i.finishInner(s)),n.length==0?s:new we(r,n,s||we.empty,u)}between(e,n,r){if(!this.isEmpty){for(let u=0;u<this.chunk.length;u++){let i=this.chunkPos[u],o=this.chunk[u];if(n>=i&&e<=i+o.length&&o.between(i,e-i,n-i,r)===!1)return}this.nextLayer.between(e,n,r)}}iter(e=0){return Ks.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Ks.from(e).goto(n)}static compare(e,n,r,u,i=-1){let o=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i),s=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=i),a=S3(o,s,r),l=new ds(o,a,i),c=new ds(s,a,i);r.iterGaps((f,d,h)=>_3(l,f,c,d,h,u)),r.empty&&r.length==0&&_3(l,0,c,0,0,u)}static eq(e,n,r=0,u){u==null&&(u=999999999);let i=e.filter(c=>!c.isEmpty&&n.indexOf(c)<0),o=n.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(i.length!=o.length)return!1;if(!i.length)return!0;let s=S3(i,o),a=new ds(i,s,0).goto(r),l=new ds(o,s,0).goto(r);for(;;){if(a.to!=l.to||!mp(a.active,l.active)||a.point&&(!l.point||!Vm(a.point,l.point)))return!1;if(a.to>u)return!0;a.next(),l.next()}}static spans(e,n,r,u,i=-1){let o=new ds(e,null,i).goto(n),s=n,a=o.openStart;for(;;){let l=Math.min(o.to,r);if(o.point){let c=o.activeForPoint(o.to),f=o.pointFrom<n?c.length+1:o.point.startSide<0?c.length:Math.min(c.length,a);u.point(s,l,o.point,c,f,o.pointRank),a=Math.min(o.openEnd(l),c.length)}else l>s&&(u.span(s,l,o.active,a),a=o.openEnd(l));if(o.to>r)return a+(o.point&&o.to>r?1:0);s=o.to,o.next()}}static of(e,n=!1){let r=new Yu;for(let u of e instanceof hp?[e]:n?tB(e):e)r.add(u.from,u.to,u.value);return r.finish()}static join(e){if(!e.length)return we.empty;let n=Hi(e);for(let r=e.length-2;r>=0;r--)for(let u=e[r];u!=we.empty;u=u.nextLayer)n=new we(u.chunkPos,u.chunk,n,Math.max(u.maxPoint,n.maxPoint));return n}}we.empty=new we([],[],null,-1);function Hi(t){return t[t.length-1]}function tB(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(pp(e,r)>0)return t.slice().sort(pp);e=r}return t}we.empty.nextLayer=we.empty;class Yu{finishChunk(e){this.chunks.push(new qm(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,r){this.addRange(e,n,r,!0)}addRange(e,n,r,u){this.addInner(e,n,r,u)||(this.nextLayer||(this.nextLayer=new Yu)).addRange(e,n,r,u)}addInner(e,n,r,u){let i=e-this.lastTo||r.startSide-this.last.endSide;if(u&&i<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+e,this.lastTo=n.to[r]+e,!0}finish(){return this.finishInner(we.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=we.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function S3(t,e,n){let r=new Map;for(let i of t)for(let o=0;o<i.chunk.length;o++)i.chunk[o].maxPoint<=0&&r.set(i.chunk[o],i.chunkPos[o]);let u=new Set;for(let i of e)for(let o=0;o<i.chunk.length;o++){let s=r.get(i.chunk[o]);s!=null&&(n?n.mapPos(s):s)==i.chunkPos[o]&&!n?.touchesRange(s,s+i.chunk[o].length)&&u.add(i.chunk[o])}return u}class iy{constructor(e,n,r,u=0){this.layer=e,this.skip=n,this.minPoint=r,this.rank=u}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let u=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(u)||this.layer.chunkEnd(this.chunkIndex)<e||u.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let u=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<u)&&this.setRangeIndex(u)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=e+n.from[this.rangeIndex];if(this.from=r,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Ks{constructor(e){this.heap=e}static from(e,n=null,r=-1){let u=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=r&&u.push(new iy(o,n,r,i));return u.length==1?u[0]:new Ks(u)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let r of this.heap)r.goto(e,n);for(let r=this.heap.length>>1;r>=0;r--)Id(this.heap,r);return this.next(),this}forward(e,n){for(let r of this.heap)r.forward(e,n);for(let r=this.heap.length>>1;r>=0;r--)Id(this.heap,r);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Id(this.heap,0)}}}function Id(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let u=t[r];if(r+1<t.length&&u.compare(t[r+1])>=0&&(u=t[r+1],r++),n.compare(u)<0)break;t[r]=n,t[e]=u,e=r}}class ds{constructor(e,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ks.from(e,n,r)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){Ml(this.active,e),Ml(this.activeTo,e),Ml(this.activeRank,e),this.minActive=w3(this.active,this.activeTo)}addActive(e){let n=0,{value:r,to:u,rank:i}=this.cursor;for(;n<this.activeRank.length&&(i-this.activeRank[n]||u-this.activeTo[n])>0;)n++;Ll(this.active,n,r),Ll(this.activeTo,n,u),Ll(this.activeRank,n,i),e&&Ll(e,n,this.cursor.from),this.minActive=w3(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let u=this.minActive;if(u>-1&&(this.activeTo[u]-this.cursor.from||this.active[u].endSide-this.cursor.startSide)<0){if(this.activeTo[u]>e){this.to=this.activeTo[u],this.endSide=this.active[u].endSide;break}this.removeActive(u),r&&Ml(r,u)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=i,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=i.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let u=r.length-1;u>=0&&r[u]<e;u--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(e){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)n++;return n}}function _3(t,e,n,r,u,i){t.goto(e),n.goto(r);let o=r+u,s=r,a=r-e,l=!!i.boundChange;for(let c=!1;;){let f=t.to+a-n.to,d=f||t.endSide-n.endSide,h=d<0?t.to+a:n.to,p=Math.min(h,o);if(t.point||n.point?(t.point&&n.point&&Vm(t.point,n.point)&&mp(t.activeForPoint(t.to),n.activeForPoint(n.to))||i.comparePoint(s,p,t.point,n.point),c=!1):(c&&(i.boundChange(s),c=!1),p>s&&!mp(t.active,n.active)&&i.compareRange(s,p,t.active,n.active),l&&p<o&&(f||t.openEnd(h)!=n.openEnd(h))&&(c=!0)),h>o)break;s=h,d<=0&&t.next(),d>=0&&n.next()}}function mp(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!Vm(t[n],e[n]))return!1;return!0}function Ml(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function Ll(t,e,n){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=n}function w3(t,e){let n=-1,r=1e9;for(let u=0;u<e.length;u++)(e[u]-r||t[u].endSide-t[n].endSide)<0&&(n=u,r=e[u]);return n}function yu(t,e,n=t.length){let r=0;for(let u=0;u<n&&u<t.length;)t.charCodeAt(u)==9?(r+=e-r%e,u++):(r++,u=It(t,u));return r}function gp(t,e,n,r){for(let u=0,i=0;;){if(i>=e)return u;if(u==t.length)break;i+=t.charCodeAt(u)==9?n-i%n:1,u=It(t,u)}return r===!0?-1:t.length}const Op="ͼ",B3=typeof Symbol>"u"?"__"+Op:Symbol.for(Op),bp=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),P3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Vr{constructor(e,n){this.rules=[];let{finish:r}=n||{};function u(i,o,s,a){let l=[],c=/^@(\w+)\b/.exec(i[0]),f=c&&c[1]=="keyframes";if(c&&o==null)return s.push(i[0]+";");for(let d in o){let h=o[d];if(/&/.test(d))u(d.split(/,\s*/).map(p=>i.map(m=>p.replace(/&/,m))).reduce((p,m)=>p.concat(m)),h,s);else if(h&&typeof h=="object"){if(!c)throw new RangeError("The value of a property ("+d+") should be a primitive value.");u(F3(d),h,l,f)}else h!=null&&(/^--/.test(d)||(d=d.replace(/_.*/,"").replace(/[A-Z]/g,p=>"-"+p.toLowerCase())),l.push(d+": "+h+";"))}(l.length||f)&&s.push((r&&!c&&!a?i.map(r):i).join(", ")+" {"+l.join(" ")+"}")}for(let i in e)u(F3(i),e[i],this.rules)}getRules(){return this.rules.join(`
|
|
6
|
+
`)}static newName(){let e=P3[B3]||1;return P3[B3]=e+1,Op+e.toString(36)}static mount(e,n,r){let u=e[bp],i=r&&r.nonce;u?i&&u.setNonce(i):u=new nB(e,i),u.mount(Array.isArray(n)?n:[n],e)}}function F3(t){if(/^@/.test(t))return[t];let e=[],n=0,r=null,u=0,i=0;for(let o=0;o<t.length;o++){let s=t[o];s=="\\"?o++:s=='"'||s=="'"?s==r?r=!1:r||(r=s):(s=="["||s=="(")&&!r?n++:(s=="]"||s==")")&&!r?n--:s==","&&!n&&!r&&(e.push(t.slice(i,u)),i=o+1),/\S/.test(s)?u=o+1:o==i&&i++}return e.push(t.slice(i,u)),e}let Q3=new Map;class nB{constructor(e,n){let r=e.ownerDocument||e,u=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&u.CSSStyleSheet){let i=Q3.get(r);if(i)return e[bp]=i;this.sheet=new u.CSSStyleSheet,Q3.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[bp]=this}mount(e,n){let r=this.sheet,u=0,i=0,o=!1;for(let s=0;s<e.length;s++){let a=e[s],l=this.modules.indexOf(a);if(l<i&&l>-1&&(this.modules.splice(l,1),o=!0,i--,l=-1),l==-1){if(this.modules.splice(i++,0,a),o=!0,r)for(let c=0;c<a.rules.length;c++)r.insertRule(a.rules[c],u++)}else{for(;i<l;)u+=this.modules[i++].rules.length;u+=a.rules.length,i++}}if(r)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{if(o){let a="";for(let l=0;l<this.modules.length;l++)a+=this.modules[l].getRules()+`
|
|
7
|
+
`;this.styleTag.textContent=a}let s=n.head||n;this.styleTag.parentNode!=s&&s.insertBefore(this.styleTag,s.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var qr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Js={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},uB=typeof navigator<"u"&&/Mac/.test(navigator.platform),rB=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Lt=0;Lt<10;Lt++)qr[48+Lt]=qr[96+Lt]=String(Lt);for(var Lt=1;Lt<=24;Lt++)qr[Lt+111]="F"+Lt;for(var Lt=65;Lt<=90;Lt++)qr[Lt]=String.fromCharCode(Lt+32),Js[Lt]=String.fromCharCode(Lt);for(var zd in qr)Js.hasOwnProperty(zd)||(Js[zd]=qr[zd]);function iB(t){var e=uB&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||rB&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Js:qr)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function He(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var u=n[r];typeof u=="string"?t.setAttribute(r,u):u!=null&&(t[r]=u)}e++}for(;e<arguments.length;e++)oy(t,arguments[e]);return t}function oy(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)oy(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}let cn=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},vp=typeof document<"u"?document:{documentElement:{style:{}}};const Cp=/Edge\/(\d+)/.exec(cn.userAgent),sy=/MSIE \d/.test(cn.userAgent),yp=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(cn.userAgent),Kc=!!(sy||yp||Cp),T3=!Kc&&/gecko\/(\d+)/i.test(cn.userAgent),Zd=!Kc&&/Chrome\/(\d+)/.exec(cn.userAgent),I3="webkitFontSmoothing"in vp.documentElement.style,xp=!Kc&&/Apple Computer/.test(cn.vendor),z3=xp&&(/Mobile\/\w+/.test(cn.userAgent)||cn.maxTouchPoints>2);var Y={mac:z3||/Mac/.test(cn.platform),windows:/Win/.test(cn.platform),linux:/Linux|X11/.test(cn.platform),ie:Kc,ie_version:sy?vp.documentMode||6:yp?+yp[1]:Cp?+Cp[1]:0,gecko:T3,gecko_version:T3?+(/Firefox\/(\d+)/.exec(cn.userAgent)||[0,0])[1]:0,chrome:!!Zd,chrome_version:Zd?+Zd[1]:0,ios:z3,android:/Android\b/.test(cn.userAgent),webkit:I3,webkit_version:I3?+(/\bAppleWebKit\/(\d+)/.exec(cn.userAgent)||[0,0])[1]:0,safari:xp,safari_version:xp?+(/\bVersion\/(\d+(\.\d+)?)/.exec(cn.userAgent)||[0,0])[1]:0,tabSize:vp.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Wm(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const Y0=Object.create(null);function Ym(t,e,n){if(t==e)return!0;t||(t=Y0),e||(e=Y0);let r=Object.keys(t),u=Object.keys(e);if(r.length-0!=u.length-0)return!1;for(let i of r)if(i!=n&&(u.indexOf(i)==-1||t[i]!==e[i]))return!1;return!0}function oB(t,e){for(let n=t.attributes.length-1;n>=0;n--){let r=t.attributes[n].name;e[r]==null&&t.removeAttribute(r)}for(let n in e){let r=e[n];n=="style"?t.style.cssText=r:t.getAttribute(n)!=r&&t.setAttribute(n,r)}}function Z3(t,e,n){let r=!1;if(e)for(let u in e)n&&u in n||(r=!0,u=="style"?t.style.cssText="":t.removeAttribute(u));if(n)for(let u in n)e&&e[u]==n[u]||(r=!0,u=="style"?t.style.cssText=n[u]:t.setAttribute(u,n[u]));return r}function sB(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];e[r.name]=r.value}return e}class er{eq(e){return!1}updateDOM(e,n,r){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Ut=(function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t})(Ut||(Ut={}));class ce extends Xr{constructor(e,n,r,u){super(),this.startSide=e,this.endSide=n,this.widget=r,this.spec=u}get heightRelevant(){return!1}static mark(e){return new Ta(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return n+=r&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Fi(e,n,n,r,e.widget||null,!1)}static replace(e){let n=!!e.block,r,u;if(e.isBlockGap)r=-5e8,u=4e8;else{let{start:i,end:o}=ay(e,n);r=(i?n?-3e8:-1:5e8)-1,u=(o?n?2e8:1:-6e8)+1}return new Fi(e,r,u,n,e.widget||null,!0)}static line(e){return new Ia(e)}static set(e,n=!1){return we.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}ce.none=we.empty;class Ta extends ce{constructor(e){let{start:n,end:r}=ay(e);super(n?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?Wm(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Y0}eq(e){return this==e||e instanceof Ta&&this.tagName==e.tagName&&Ym(this.attrs,e.attrs)}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}Ta.prototype.point=!1;class Ia extends ce{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Ia&&this.spec.class==e.spec.class&&Ym(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}Ia.prototype.mapMode=Nt.TrackBefore;Ia.prototype.point=!0;class Fi extends ce{constructor(e,n,r,u,i,o){super(n,r,i,e),this.block=u,this.isReplace=o,this.mapMode=u?n<=0?Nt.TrackBefore:Nt.TrackAfter:Nt.TrackDel}get type(){return this.startSide!=this.endSide?Ut.WidgetRange:this.startSide<=0?Ut.WidgetBefore:Ut.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Fi&&aB(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}Fi.prototype.point=!0;function ay(t,e=!1){let{inclusiveStart:n,inclusiveEnd:r}=t;return n==null&&(n=t.inclusive),r==null&&(r=t.inclusive),{start:n??e,end:r??e}}function aB(t,e){return t==e||!!(t&&e&&t.compare(e))}function fo(t,e,n,r=0){let u=n.length-1;u>=0&&n[u]+r>=t?n[u]=Math.max(n[u],e):n.push(t,e)}class ea extends Xr{constructor(e,n,r){super(),this.tagName=e,this.attributes=n,this.rank=r}eq(e){return e==this||e instanceof ea&&this.tagName==e.tagName&&Ym(this.attributes,e.attributes)}static create(e){return new ea(e.tagName,e.attributes||Y0,e.rank==null?50:Math.max(0,Math.min(e.rank,100)))}static set(e,n=!1){return we.of(e,n)}}ea.prototype.startSide=ea.prototype.endSide=-1;const zt=t=>t.nodeType==1,$o=t=>t.nodeType==3;function ta(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function Ep(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function zs(t,e){if(!e.anchorNode)return!1;try{return Ep(t,e.anchorNode)}catch{return!1}}function D0(t){return $o(t)?na(t,0,t.nodeValue.length).getClientRects():zt(t)?t.getClientRects():[]}function Zs(t,e,n,r){return n?R3(t,e,n,r,-1)||R3(t,e,n,r,1):!1}function Wr(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function G0(t){return zt(t)&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function R3(t,e,n,r,u){for(;;){if(t==n&&e==r)return!0;if(e==(u<0?0:xr(t))){if(t.nodeName=="DIV")return!1;let i=t.parentNode;if(!i||!zt(i))return!1;e=Wr(t)+(u<0?0:1),t=i}else if(zt(t)){if(t=t.childNodes[e+(u<0?-1:0)],zt(t)&&(t.nodeName=="IMG"||t.nodeName=="BR"||t.contentEditable=="false"))return!1;e=u<0?xr(t):0}else return!1}}function xr(t){return $o(t)?t.nodeValue.length:t.childNodes.length}function H0(t,e){let{left:n,right:r}=t;if(n==r)return t;let u=e?n:r;return{left:u,right:u,top:t.top,bottom:t.bottom}}function lB(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function ly(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function cB(t,e,n,r,u,i,o,s){let a=t.ownerDocument,l=a.defaultView||window;for(let c=t,f=!1;c&&!f;)if(zt(c)){let d,h=c==a.body,p=1,m=1,g=!0,C=!0;if(h)d=lB(l);else{let y=getComputedStyle(c);if(/^(fixed|sticky)$/.test(y.position)&&(f=!0),(c.scrollHeight<=c.clientHeight||!/auto|scroll/.test(y.overflowY))&&(C=!1),(c.scrollWidth<=c.clientWidth||!/auto|scroll/.test(y.overflowX))&&(g=!1),!g&&!C){c=c.assignedSlot||c.parentNode;continue}let $=c.getBoundingClientRect();({scaleX:p,scaleY:m}=ly(c,$)),d={left:$.left,right:$.left+c.clientWidth*p,top:$.top,bottom:$.top+c.clientHeight*m}}let b=0,O=0;if(C)if(u=="nearest")e.top<d.top+o?(O=e.top-(d.top+o),n>0&&e.bottom>d.bottom+O&&(O=e.bottom-d.bottom+o)):e.bottom>d.bottom-o&&(O=e.bottom-d.bottom+o,n<0&&e.top-O<d.top&&(O=e.top-(d.top+o)));else{let y=e.bottom-e.top,$=d.bottom-d.top;O=(u=="center"&&y<=$?e.top+y/2-$/2:u=="start"||u=="center"&&n<0?e.top-o:e.bottom-$+o)-d.top}if(g&&(r=="nearest"?e.left<d.left+i?(b=e.left-(d.left+i),n>0&&e.right>d.right+b&&(b=e.right-d.right+i)):e.right>d.right-i&&(b=e.right-d.right+i,n<0&&e.left<d.left+b&&(b=e.left-(d.left+i))):b=(r=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:r=="start"==s?e.left-i:e.right-(d.right-d.left)+i)-d.left),b||O)if(h)l.scrollBy(b,O);else{let y=0,$=0;if(O){let x=c.scrollTop;c.scrollTop+=O/m,$=(c.scrollTop-x)*m}if(b){let x=c.scrollLeft;c.scrollLeft+=b/p,y=(c.scrollLeft-x)*p}e={left:e.left-y,top:e.top-$,right:e.right-y,bottom:e.bottom-$},y&&Math.abs(y-b)<1&&(r="nearest"),$&&Math.abs($-O)<1&&(u="nearest")}if(h)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function cy(t,e=!0){let n=t.ownerDocument,r=null,u=null;for(let i=t.parentNode;i&&!(i==n.body||(!e||r)&&u);)if(zt(i))!u&&i.scrollHeight>i.clientHeight&&/scroll|auto/.test(getComputedStyle(i).overflowY)&&(u=i),e&&!r&&i.scrollWidth>i.clientWidth&&/scroll|auto/.test(getComputedStyle(i).overflowX)&&(r=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:r,y:u}}class fB{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:r}=e;this.set(n,Math.min(e.anchorOffset,n?xr(n):0),r,Math.min(e.focusOffset,r?xr(r):0))}set(e,n,r,u){this.anchorNode=e,this.anchorOffset=n,this.focusNode=r,this.focusOffset=u}}function fy(t){let e=[];for(let n=t;n;n=n.nodeType==11?n.host:n.parentNode)zt(n)&&e.push({node:n,left:n.scrollLeft,top:n.scrollTop});return e}function dy(t,e=!0){for(let{node:n,left:r,top:u}of t)e&&n.scrollTop!=u&&(n.scrollTop=u),n.scrollLeft!=r&&(n.scrollLeft=r)}let gi=null;Y.safari&&Y.safari_version>=26&&(gi=!1);function hy(t){if(t.setActive)return t.setActive();if(gi)return t.focus(gi);let e=fy(t);t.focus(gi==null?{get preventScroll(){return gi={preventScroll:!0},!0}}:void 0),gi||(gi=!1,dy(e))}let j3;function na(t,e,n=e){let r=j3||(j3=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function ho(t,e,n,r){let u={key:e,code:e,keyCode:n,which:n,cancelable:!0};r&&({altKey:u.altKey,ctrlKey:u.ctrlKey,shiftKey:u.shiftKey,metaKey:u.metaKey}=r);let i=new KeyboardEvent("keydown",u);i.synthetic=!0,t.dispatchEvent(i);let o=new KeyboardEvent("keyup",u);return o.synthetic=!0,t.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function dB(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function hB(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return!1;for(r=Math.min(r,xr(n));;)if(r){if(!zt(n))return!1;let u=n.childNodes[r-1];u.contentEditable=="false"?r--:(n=u,r=xr(n))}else{if(n==t)return!0;r=Wr(n),n=n.parentNode}}function py(t){return t instanceof Window?t.pageYOffset>Math.max(0,t.document.documentElement.scrollHeight-t.innerHeight-4):t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function my(t,e){for(let n=t,r=e;;){if($o(n)&&r>0)return{node:n,offset:r};if(zt(n)&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=xr(n)}else if(n.parentNode&&!G0(n))r=Wr(n),n=n.parentNode;else return null}}function gy(t,e){for(let n=t,r=e;;){if($o(n)&&r<n.nodeValue.length)return{node:n,offset:r};if(zt(n)&&r<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[r],r=0}else if(n.parentNode&&!G0(n))r=Wr(n)+1,n=n.parentNode;else return null}}class mu{constructor(e,n,r=!0){this.node=e,this.offset=n,this.precise=r}static before(e,n){return new mu(e.parentNode,Wr(e),n)}static after(e,n){return new mu(e.parentNode,Wr(e)+1,n)}}var Ke=(function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t})(Ke||(Ke={}));const Ao=Ke.LTR,Gm=Ke.RTL;function Oy(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const pB=Oy("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),mB=Oy("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),$p=Object.create(null),_u=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);$p[e]=n,$p[n]=-e}function by(t){return t<=247?pB[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?mB[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const gB=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class ju{get dir(){return this.level%2?Gm:Ao}constructor(e,n,r){this.from=e,this.to=n,this.level=r}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,r,u){let i=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=n&&s.to>=n){if(s.level==r)return o;(i<0||(u!=0?u<0?s.from<n:s.to>n:e[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function vy(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],u=e[n];if(r.from!=u.from||r.to!=u.to||r.direction!=u.direction||!vy(r.inner,u.inner))return!1}return!0}const nt=[];function OB(t,e,n,r,u){for(let i=0;i<=r.length;i++){let o=i?r[i-1].to:e,s=i<r.length?r[i].from:n,a=i?256:u;for(let l=o,c=a,f=a;l<s;l++){let d=by(t.charCodeAt(l));d==512?d=c:d==8&&f==4&&(d=16),nt[l]=d==4?2:d,d&7&&(f=d),c=d}for(let l=o,c=a,f=a;l<s;l++){let d=nt[l];if(d==128)l<s-1&&c==nt[l+1]&&c&24?d=nt[l]=c:nt[l]=256;else if(d==64){let h=l+1;for(;h<s&&nt[h]==64;)h++;let p=l&&c==8||h<n&&nt[h]==8?f==1?1:8:256;for(let m=l;m<h;m++)nt[m]=p;l=h-1}else d==8&&f==1&&(nt[l]=1);c=d,d&7&&(f=d)}}}function bB(t,e,n,r,u){let i=u==1?2:1;for(let o=0,s=0,a=0;o<=r.length;o++){let l=o?r[o-1].to:e,c=o<r.length?r[o].from:n;for(let f=l,d,h,p;f<c;f++)if(h=$p[d=t.charCodeAt(f)])if(h<0){for(let m=s-3;m>=0;m-=3)if(_u[m+1]==-h){let g=_u[m+2],C=g&2?u:g&4?g&1?i:u:0;C&&(nt[f]=nt[_u[m]]=C),s=m;break}}else{if(_u.length==189)break;_u[s++]=f,_u[s++]=d,_u[s++]=a}else if((p=nt[f])==2||p==1){let m=p==u;a=m?0:1;for(let g=s-3;g>=0;g-=3){let C=_u[g+2];if(C&2)break;if(m)_u[g+2]|=2;else{if(C&4)break;_u[g+2]|=4}}}}}function vB(t,e,n,r){for(let u=0,i=r;u<=n.length;u++){let o=u?n[u-1].to:t,s=u<n.length?n[u].from:e;for(let a=o;a<s;){let l=nt[a];if(l==256){let c=a+1;for(;;)if(c==s){if(u==n.length)break;c=n[u++].to,s=u<n.length?n[u].from:e}else if(nt[c]==256)c++;else break;let f=i==1,d=(c<e?nt[c]:r)==1,h=f==d?f?1:2:r;for(let p=c,m=u,g=m?n[m-1].to:t;p>a;)p==g&&(p=n[--m].from,g=m?n[m-1].to:t),nt[--p]=h;a=c}else i=l,a++}}}function Ap(t,e,n,r,u,i,o){let s=r%2?2:1;if(r%2==u%2)for(let a=e,l=0;a<n;){let c=!0,f=!1;if(l==i.length||a<i[l].from){let m=nt[a];m!=s&&(c=!1,f=m==16)}let d=!c&&s==1?[]:null,h=c?r:r+1,p=a;e:for(;;)if(l<i.length&&p==i[l].from){if(f)break e;let m=i[l];if(!c)for(let g=m.to,C=l+1;;){if(g==n)break e;if(C<i.length&&i[C].from==g)g=i[C++].to;else{if(nt[g]==s)break e;break}}if(l++,d)d.push(m);else{m.from>a&&o.push(new ju(a,m.from,h));let g=m.direction==Ao!=!(h%2);Dp(t,g?r+1:r,u,m.inner,m.from,m.to,o),a=m.to}p=m.to}else{if(p==n||(c?nt[p]!=s:nt[p]==s))break;p++}d?Ap(t,a,p,r+1,u,d,o):a<p&&o.push(new ju(a,p,h)),a=p}else for(let a=n,l=i.length;a>e;){let c=!0,f=!1;if(!l||a>i[l-1].to){let m=nt[a-1];m!=s&&(c=!1,f=m==16)}let d=!c&&s==1?[]:null,h=c?r:r+1,p=a;e:for(;;)if(l&&p==i[l-1].to){if(f)break e;let m=i[--l];if(!c)for(let g=m.from,C=l;;){if(g==e)break e;if(C&&i[C-1].to==g)g=i[--C].from;else{if(nt[g-1]==s)break e;break}}if(d)d.push(m);else{m.to<a&&o.push(new ju(m.to,a,h));let g=m.direction==Ao!=!(h%2);Dp(t,g?r+1:r,u,m.inner,m.from,m.to,o),a=m.from}p=m.from}else{if(p==e||(c?nt[p-1]!=s:nt[p-1]==s))break;p--}d?Ap(t,p,a,r+1,u,d,o):p<a&&o.push(new ju(p,a,h)),a=p}}function Dp(t,e,n,r,u,i,o){let s=e%2?2:1;OB(t,u,i,r,s),bB(t,u,i,r,s),vB(u,i,r,s),Ap(t,u,i,e,n,r,o)}function CB(t,e,n){if(!t)return[new ju(0,0,e==Gm?1:0)];if(e==Ao&&!n.length&&!gB.test(t))return Cy(t.length);if(n.length)for(;t.length>nt.length;)nt[nt.length]=256;let r=[],u=e==Ao?0:1;return Dp(t,u,u,n,0,t.length,r),r}function Cy(t){return[new ju(0,t,0)]}let yy="";function yB(t,e,n,r,u){var i;if(!t.length)return null;let o=r.head-t.from,s;if(r.head==t.from&&r.assoc<0){if(!u)return null;o=e[s=0].side(!1,n)}else if(r.head==t.to&&r.assoc>0){if(u)return null;o=e[s=e.length-1].side(!0,n)}else s=ju.find(e,o,(i=r.bidiLevel)!==null&&i!==void 0?i:-1,r.assoc);let a=e[s],l=a.side(u,n);if(o==l){let d=s+=u?1:-1;if(d<0||d>=e.length)return null;a=e[s=d],o=a.side(!u,n),l=a.side(u,n)}let c=It(t.text,o,a.forward(u,n));(c<a.from||c>a.to)&&(c=l),yy=t.text.slice(Math.min(o,c),Math.max(o,c));let f=s==(u?e.length-1:0)?null:e[s+(u?1:-1)];if(c==l){if(!f)return u?w.cursor(t.to,1):w.cursor(t.from,-1);if(f.level+(u?0:1)<a.level)return w.cursor(f.side(!u,n)+t.from,f.forward(u,n)?1:-1,f.level)}return w.cursor(c+t.from,a.forward(u,n)?-1:1,a.level)}function xB(t,e,n){for(let r=e;r<n;r++){let u=by(t.charCodeAt(r));if(u==1)return Ao;if(u==2||u==4)return Gm}}const xy=G.define(),Ey=G.define(),$y=G.define(),Ay=G.define(),kp=G.define(),Dy=G.define(),ky=G.define(),Hm=G.define(),Km=G.define(),Sy=G.define({combine:t=>t.some(e=>e)}),_y=G.define({combine:t=>t.some(e=>e)}),wy=G.define();class po{constructor(e,n,r,u,i,o=!1){this.range=e,this.y=n,this.x=r,this.yMargin=u,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new po(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new po(w.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Nl=Oe.define({map:(t,e)=>t.map(e)}),By=Oe.define();function wn(t,e,n){let r=t.facet(Ay);r.length?r[0](e):window.onerror&&window.onerror(String(e),n,void 0,void 0,e)||(n?console.error(n+":",e):console.error(e))}const hr=G.define({combine:t=>t.length?t[0]:!0});let EB=0;const uo=G.define({combine(t){return t.filter((e,n)=>{for(let r=0;r<n;r++)if(t[r].plugin==e.plugin)return!1;return!0})}});class xt{constructor(e,n,r,u,i){this.id=e,this.create=n,this.domEventHandlers=r,this.domEventObservers=u,this.baseExtensions=i(this),this.extension=this.baseExtensions.concat(uo.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(uo.of({plugin:this,arg:e}))}static define(e,n){const{eventHandlers:r,eventObservers:u,provide:i,decorations:o}=n||{};return new xt(EB++,e,r,u,s=>{let a=[];return o&&a.push(Jc.of(l=>{let c=l.plugin(s);return c?o(c):ce.none})),i&&a.push(i(s)),a})}static fromClass(e,n){return xt.define((r,u)=>new e(r,u),n)}}class Rd{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(wn(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(n){wn(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){wn(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Py=G.define(),Jm=G.define(),Jc=G.define(),Fy=G.define(),e1=G.define(),za=G.define(),Qy=G.define();function M3(t,e){let n=t.state.facet(Qy);if(!n.length)return n;let r=n.map(i=>i instanceof Function?i(t):i),u=[];return we.spans(r,e.from,e.to,{point(){},span(i,o,s,a){let l=i-e.from,c=o-e.from,f=u;for(let d=s.length-1;d>=0;d--,a--){let h=s[d].spec.bidiIsolate,p;if(a>0&&f.length&&(p=f[f.length-1]).to==l&&p.direction==h)p.to=c,f=p.inner;else{let m={from:l,to:c,direction:h,inner:[]};f.push(m),f=m.inner}}}}),Ty(e.text,u)}function Ty(t,e){for(let n of e){if(n.direction==null){for(let r=n.from,u=0;r<n.to;u++){let i=u<n.inner.length?n.inner[u]:null,o=xB(t,r,i?i.from:n.to);if(o){n.direction=o;break}if(!i)break;r=i.to}n.direction==null&&(n.direction=Ke.LTR)}Ty(t,n.inner)}return e}const Iy=G.define();function t1(t){let e=0,n=0,r=0,u=0;for(let i of t.state.facet(Iy)){let o=i(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(u=Math.max(u,o.bottom)))}return{left:e,right:n,top:r,bottom:u}}const As=G.define();class eu{constructor(e,n,r,u){this.fromA=e,this.toA=n,this.fromB=r,this.toB=u}join(e){return new eu(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,r=this;for(;n>0;n--){let u=e[n-1];if(!(u.fromA>r.toA)){if(u.toA<r.fromA)break;r=r.join(u),e.splice(n-1,1)}}return e.splice(n,0,r),e}static extendWithRanges(e,n){if(n.length==0)return e;let r=[];for(let u=0,i=0,o=0;;){let s=u<e.length?e[u].fromB:1e9,a=i<n.length?n[i]:1e9,l=Math.min(s,a);if(l==1e9)break;let c=l+o,f=l,d=c;for(;;)if(i<n.length&&n[i]<=f){let h=n[i+1];i+=2,f=Math.max(f,h);for(let p=u;p<e.length&&e[p].fromB<=f;p++)o=e[p].toA-e[p].toB;d=Math.max(d,h+o)}else if(u<e.length&&e[u].fromB<=f){let h=e[u++];f=Math.max(f,h.toB),d=Math.max(d,h.toA),o=h.toA-h.toB}else break;r.push(new eu(c,d,l,f))}return r}}class K0{constructor(e,n,r){this.view=e,this.state=n,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=kt.empty(this.startState.doc.length);for(let i of r)this.changes=this.changes.compose(i.changes);let u=[];this.changes.iterChangedRanges((i,o,s,a)=>u.push(new eu(i,o,s,a))),this.changedRanges=u}static create(e,n,r){return new K0(e,n,r)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const $B=[];class Ot{constructor(e,n,r=0){this.dom=e,this.length=n,this.flags=r,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return $B}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let n=this.domAttrs;n&&oB(this.dom,n)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,n=this.posAtStart){let r=n;for(let u of this.children){if(u==e)return r;r+=u.length+u.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,n,r){return null}domPosFor(e,n){let r=Wr(this.dom),u=this.length?e>0:n>0;return new mu(this.parent.dom,r+(u?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof tf)return e;return null}static get(e){return e.cmTile}}class ef extends Ot{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let n=this.dom,r=null,u,i=e?.node==n?e:null,o=0;for(let s of this.children){if(s.sync(e),o+=s.length+s.breakAfter,u=r?r.nextSibling:n.firstChild,i&&u!=s.dom&&(i.written=!0),s.dom.parentNode==n)for(;u&&u!=s.dom;)u=L3(u);else n.insertBefore(s.dom,u);r=s.dom}for(u=r?r.nextSibling:n.firstChild,i&&u&&(i.written=!0);u;)u=L3(u);this.length=o}}function L3(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class tf extends ef{constructor(e,n){super(n),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let n=Ot.get(e);if(n&&this.owns(n))return n;e=e.parentNode}}blockTiles(e){for(let n=[],r=this,u=0,i=0;;)if(u==r.children.length){if(!n.length)return;r=r.parent,r.breakAfter&&i++,u=n.pop()}else{let o=r.children[u++];if(o instanceof gr)n.push(u),r=o,u=0;else{let s=i+o.length,a=e(o,i);if(a!==void 0)return a;i=s+o.breakAfter}}}resolveBlock(e,n){let r,u=-1,i,o=-1;if(this.blockTiles((s,a)=>{let l=a+s.length;if(e>=a&&e<=l){if(s.isWidget()&&n>=-1&&n<=1){if(s.flags&32)return!0;s.flags&16&&(r=void 0)}(a<e||e==l&&(n<-1?s.length:s.covers(1)))&&(!r||!s.isWidget()&&r.isWidget())&&(r=s,u=e-a),(l>e||e==a&&(n>1?s.length:s.covers(-1)))&&(!i||!s.isWidget()&&i.isWidget())&&(i=s,o=e-a)}}),!r&&!i)throw new Error("No tile at position "+e);return r&&n<0||!i?{tile:r,offset:u}:{tile:i,offset:o}}}class gr extends ef{constructor(e,n){super(e),this.wrapper=n}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,n){let r=new gr(n||document.createElement(e.tagName),e);return n||(r.flags|=4),r}}class Do extends ef{constructor(e,n){super(e),this.attrs=n}isLine(){return!0}static start(e,n,r){let u=new Do(n||document.createElement("div"),e);return(!n||!r)&&(u.flags|=4),u}get domAttrs(){return this.attrs}resolveInline(e,n,r=!1){let u=null,i=-1,o=null,s=-1;function a(c,f){for(let d=0,h=0;d<c.children.length&&h<=f;d++){let p=c.children[d],m=h+p.length;m>=f&&(p.isComposite()?a(p,f-h):(!o||r&&o.isHidden&&(n>0&&!(o.flags&32)||r&&DB(o,p)))&&(m>f||p.flags&32&&n<=1)?(o=p,s=f-h):(h<f||p.flags&16&&!(r&&p.isHidden)&&n>=-1)&&(u=p,i=f-h)),h=m}}a(this,e);let l=(n<0?u:o)||u||o;return l?{tile:l,offset:l==u?i:s}:null}coordsIn(e,n,r){let u=this.resolveInline(e,n,!0);return u?u.tile.coordsIn(Math.max(0,u.offset),n,r):AB(this)}domIn(e,n){let r=this.resolveInline(e,n);if(r){let{tile:u,offset:i}=r;if(this.dom.contains(u.dom))return u.isText()?new mu(u.dom,Math.min(u.dom.nodeValue.length,i)):u.domPosFor(i,u.flags&16?1:u.flags&32?-1:n);let o=r.tile.parent,s=!1;for(let a of o.children){if(s)return new mu(a.dom,0);a==r.tile&&(s=!0)}}return new mu(this.dom,0)}}function AB(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=D0(e);return n[n.length-1]||null}function DB(t,e){let n=t.coordsIn(0,1),r=e.coordsIn(0,1);return n&&r&&r.top<n.bottom}class _n extends ef{constructor(e,n){super(e),this.mark=n}get domAttrs(){return this.mark.attrs}static of(e,n){let r=new _n(n||document.createElement(e.tagName),e);return n||(r.flags|=4),r}}class $i extends Ot{constructor(e,n){super(e,n.length),this.text=n}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,n,r){let u=this.dom.nodeValue.length;e>u&&(e=u);let i=e,o=e,s=0;e==0&&n<0||e==u&&n>=0?Y.chrome||Y.gecko||(e?(i--,s=1):o<u&&(o++,s=-1)):n<0?i--:o<u&&o++;let a=na(this.dom,i,o).getClientRects();if(!a.length)return null;let l=a[(s?s<0:n>=0)?0:a.length-1];return Y.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(a,c=>c.width)||l),r==null?l:H0(l,(s?s>0:n<0)==r)}static of(e,n){let r=new $i(n||document.createTextNode(e),e);return n||(r.flags|=2),r}}class Qi extends Ot{constructor(e,n,r,u){super(e,n,u),this.widget=r}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,n){return this.coordsInWidget(e,n,!1)}coordsInWidget(e,n,r){let u=this.widget.coordsAt(this.dom,e,n);if(u)return u;if(r)return H0(this.dom.getBoundingClientRect(),this.length?e==0:n<=0);{let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let s=this.flags&16?!0:this.flags&32?!1:e>0;for(let a=s?i.length-1:0;o=i[a],!(e>0?a==0:a==i.length-1||o.top<o.bottom);a+=s?-1:1);return H0(o,!s)}}get overrideDOMText(){if(!this.length)return Ze.empty;let{root:e}=this;if(!e)return Ze.empty;let n=this.posAtStart;return e.view.state.doc.slice(n,n+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,n,r,u,i){return i||(i=e.toDOM(n),e.editable||(i.contentEditable="false")),new Qi(i,r,e,u)}}class J0 extends Ot{constructor(e){let n=document.createElement("img");n.className="cm-widgetBuffer",n.setAttribute("aria-hidden","true"),super(n,0,e)}get isHidden(){return!0}get overrideDOMText(){return Ze.empty}coordsIn(e,n,r){let u=this.dom.getBoundingClientRect();return r==null?u:H0(u,n>0==r)}}class kB{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,n,r){let{tile:u,index:i,beforeBreak:o,parents:s}=this;for(;e||n>0;)if(u.isComposite())if(o){if(!e)break;r&&r.break(),e--,o=!1}else if(i==u.children.length){if(!e&&!s.length)break;r&&r.leave(u),o=!!u.breakAfter,{tile:u,index:i}=s.pop(),i++}else{let a=u.children[i],l=a.breakAfter;(n>0?a.length<=e:a.length<e)&&(!r||r.skip(a,0,a.length)!==!1||!a.isComposite)?(o=!!l,i++,e-=a.length):(s.push({tile:u,index:i}),u=a,i=0,r&&a.isComposite()&&r.enter(a))}else{let a=u.length;if(i<a&&e){let l=Math.min(e,a-i);r&&r.skip(u,i,i+l),e-=l,i+=l}if(i==a)o=!!u.breakAfter,{tile:u,index:i}=s.pop(),i++;else if(!e)break}return this.tile=u,this.index=i,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class SB{constructor(e,n,r,u){this.from=e,this.to=n,this.wrapper=r,this.rank=u}}class _B{constructor(e,n,r){this.cache=e,this.root=n,this.blockWrappers=r,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,n,r,u){var i;this.flushBuffer();let o=this.ensureMarks(n,r),s=o.lastChild;if(s&&s.isText()&&!(s.flags&8)&&s.length+e.length<512){this.cache.reused.set(s,2);let a=o.children[o.children.length-1]=new $i(s.dom,s.text+e);a.parent=o}else o.append(u||$i.of(e,(i=this.cache.find($i))===null||i===void 0?void 0:i.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,n){let r=this.curLine;r.dom!=n.line.dom&&(r.setDOM(this.cache.reused.has(n.line)?jd(n.line.dom):n.line.dom),this.cache.reused.set(n.line,2));let u=r;for(let s=n.marks.length-1;s>=0;s--){let a=n.marks[s],l=u.lastChild;if(l instanceof _n&&l.mark.eq(a.mark))l.dom!=a.dom&&l.setDOM(jd(a.dom)),u=l;else{let{dom:c}=a;this.cache.reused.get(a)&&Ot.get(a.dom)&&(c=jd(a.dom));let f=_n.of(a.mark,c);u.append(f),u=f}this.cache.reused.set(a,2)}let i=Ot.get(e.text);i&&this.cache.reused.set(i,2);let o=new $i(e.text,e.text.nodeValue);o.flags|=8,this.pos=e.range.toB,u.append(o)}addInlineWidget(e,n,r){let u=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);u||this.flushBuffer();let i=this.ensureMarks(n,r);!u&&!(e.flags&16)&&i.append(this.getBuffer(1)),i.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,n,r){this.flushBuffer(),this.ensureMarks(n,r).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let n=this.afterWidget||this.lastBlock;n.length+=e,this.pos+=e}addLineStart(e,n){var r;e||(e=zy);let u=Do.start(e,n||((r=this.cache.find(Do))===null||r===void 0?void 0:r.dom),!!n);this.getBlockPos().append(this.lastBlock=this.curLine=u)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,n){var r;let u=this.curLine;for(let i=e.length-1;i>=0;i--){let o=e[i],s;if(n>0&&(s=u.lastChild)&&s instanceof _n&&s.mark.eq(o))u=s,n--;else{let a=_n.of(o,(r=this.cache.find(_n,l=>l.mark.eq(o)))===null||r===void 0?void 0:r.dom);u.append(a),u=a,n=0}}return u}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!N3(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(Y.ios&&N3(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(Md,0,32)||new Qi(Md.toDOM(),0,Md,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let n=e.rank*102+e.value.rank,r=new SB(e.from,e.to,e.value,n),u=this.wrappers.length;for(;u>0&&(this.wrappers[u-1].rank-r.rank||this.wrappers[u-1].to-r.to)<0;)u--;this.wrappers.splice(u,0,r)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let n=this.root;for(let r of this.wrappers){let u=n.lastChild;if(r.from<this.pos&&u instanceof gr&&u.wrapper.eq(r.wrapper))n=u;else{let i=gr.of(r.wrapper,(e=this.cache.find(gr,o=>o.wrapper.eq(r.wrapper)))===null||e===void 0?void 0:e.dom);n.append(i),n=i}}return n}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let n=2|(e<0?16:32),r=this.cache.find(J0,void 0,1);return r&&(r.flags=n),r||new J0(n)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class wB{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:u,lineBreak:i,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=u;let s=this.textOff=Math.min(e,u.length);return i?null:u.slice(0,s)}let n=Math.min(this.text.length,this.textOff+e),r=this.text.slice(this.textOff,n);return this.textOff=n,r}}const ec=[Qi,Do,$i,_n,J0,gr,tf];for(let t=0;t<ec.length;t++)ec[t].bucket=t;class BB{constructor(e){this.view=e,this.buckets=ec.map(()=>[]),this.index=ec.map(()=>0),this.reused=new Map}add(e){let n=e.constructor.bucket,r=this.buckets[n];r.length<6?r.push(e):r[this.index[n]=(this.index[n]+1)%6]=e}find(e,n,r=2){let u=e.bucket,i=this.buckets[u],o=this.index[u];for(let s=0;s<i.length;s++){let a=(s+o)%i.length,l=i[a];if((!n||n(l))&&!this.reused.has(l))return i.splice(a,1),a<o&&this.index[u]--,this.reused.set(l,r),l}return null}findWidget(e,n,r){let u=this.buckets[0];if(u.length)for(let i=0,o=0;;i++){if(i==u.length){if(o)return null;o=1,i=0}let s=u[i];if(!this.reused.has(s)&&(o==0?s.widget.compare(e):s.widget.constructor==e.constructor&&e.updateDOM(s.dom,this.view,s.widget)))return u.splice(i,1),i<this.index[0]&&this.index[0]--,s.widget==e&&s.length==n&&(s.flags&497)==r?(this.reused.set(s,1),s):(this.reused.set(s,2),new Qi(s.dom,n,e,s.flags&-498|r))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,n=2){if(!this.reused.has(e))return this.reused.set(e,n),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class PB{constructor(e,n,r,u,i){this.view=e,this.decorations=u,this.disallowBlockEffectsFor=i,this.openWidget=!1,this.openMarks=0,this.cache=new BB(e),this.text=new wB(e.state.doc),this.builder=new _B(this.cache,new tf(e,e.contentDOM),we.iter(r)),this.cache.reused.set(n,2),this.old=new kB(n),this.reuseWalker={skip:(o,s,a)=>{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,n){let r=n&&this.getCompositionContext(n.text);for(let u=0,i=0,o=0;;){let s=o<e.length?e[o++]:null,a=s?s.fromA:this.old.root.length;if(a>u){let l=a-u;this.preserve(l,!o,!s),u=a,i+=l}if(!s)break;n&&s.fromA<=n.range.fromA&&s.toA>=n.range.toA?(this.forward(s.fromA,n.range.fromA,n.range.fromA<n.range.toA?1:-1),this.emit(i,n.range.fromB),this.builder.flushBuffer(),this.cache.clear(),this.builder.addComposition(n,r),this.text.skip(n.range.toB-n.range.fromB),this.forward(n.range.fromA,s.toA),this.emit(n.range.toB,s.toB)):(this.forward(s.fromA,s.toA),this.emit(i,s.toB)),i=s.toB,u=s.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,n,r){let u=TB(this.old),i=this.openMarks;this.old.advance(e,r?1:-1,{skip:(o,s,a)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(a-s);else{let l=a>0||s<o.length?Qi.of(o.widget,this.view,a-s,o.flags&496,this.cache.maybeReuse(o)):this.cache.reuse(o);l.flags&256?(l.flags&=-2,this.builder.addBlockWidget(l)):(this.builder.ensureLine(null),this.builder.addInlineWidget(l,u,i),i=u.length)}else if(o.isText())this.builder.ensureLine(null),!s&&a==o.length&&!this.cache.reused.has(o)?this.builder.addText(o.text,u,i,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(s,a),u,i)),i=u.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof J0)this.cache.add(o);else if(o instanceof _n)this.builder.ensureLine(null),this.builder.addMark(o,u,i),this.cache.reused.set(o,1),i=u.length;else return!1;this.openWidget=!1},enter:o=>{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof _n&&u.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?u.length&&(u.length=i=0):o instanceof _n&&(u.shift(),i=Math.min(i,u.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,n){let r=null,u=this.builder,i=-1,o=we.spans(this.decorations,e,n,{point:(s,a,l,c,f,d)=>{if(l instanceof Fi){if(this.disallowBlockEffectsFor[d]){if(l.block)throw new RangeError("Block decorations may not be specified via plugins");if(a>this.view.state.doc.lineAt(s).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=c.length,f>c.length)u.continueWidget(a-s);else{let h=l.widget||(l.block?ko.block:ko.inline),p=FB(l),m=this.cache.findWidget(h,a-s,p)||Qi.of(h,this.view,a-s,p);l.block?(l.startSide>0&&u.addLineStartIfNotCovered(r),u.addBlockWidget(m)):(u.ensureLine(r),u.addInlineWidget(m,c,f))}r=null}else r=QB(r,l);a>s&&this.text.skip(a-s)},span:(s,a,l,c)=>{for(let f=s;f<a;){let d=this.text.next(Math.min(512,a-f));d==null?(u.addLineStartIfNotCovered(r),u.addBreak(),f++):(u.ensureLine(r),u.addText(d,l,f==s?c:l.length),f+=d.length),r=null}i=l.length}});i>-1&&(this.openWidget=o>i),this.openWidget||u.addLineStartIfNotCovered(r),this.openMarks=o}forward(e,n,r=1){n-e<=10?this.old.advance(n-e,r,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(n-e-10,-1),this.old.advance(5,r,this.reuseWalker))}getCompositionContext(e){let n=[],r=null;for(let u=e.parentNode;;u=u.parentNode){let i=Ot.get(u);if(u==this.view.contentDOM)break;i instanceof _n?n.push(i):i?.isLine()?r=i:i instanceof gr||(u.nodeName=="DIV"&&!r?r=new Do(u,zy):r||n.push(_n.of(new Ta({tagName:u.nodeName.toLowerCase(),attributes:sB(u)}),u)))}return r?{line:r,marks:n}:null}}function N3(t,e){let n=r=>{for(let u of r.children)if((e?u.isText():u.length)||n(u))return!0;return!1};return n(t)}function FB(t){let e=t.isReplace?(t.startSide<0?64:0)|(t.endSide>0?128:0):t.startSide>0?32:16;return t.block&&(e|=256),e}const zy={class:"cm-line"};function QB(t,e){let n=e.spec.attributes,r=e.spec.class;return!n&&!r||(t||(t={class:"cm-line"}),n&&Wm(n,t),r&&(t.class+=" "+r)),t}function TB(t){let e=[];for(let n=t.parents.length;n>1;n--){let r=n==t.parents.length?t.tile:t.parents[n].tile;r instanceof _n&&e.push(r.mark)}return e}function jd(t){let e=Ot.get(t);return e&&e.setDOM(t.cloneNode()),t}class ko extends er{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ko.inline=new ko("span");ko.block=new ko("div");const Md=new class extends er{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class U3{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=ce.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new tf(e,e.contentDOM),this.updateInner([new eu(0,0,0,e.state.doc.length)],null)}update(e){var n;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:c,toA:f})=>f<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let u=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?u=this.domChanged.newSel.head:!UB(e.changes,this.hasComposition)&&!e.selectionSet&&(u=e.state.selection.main.head));let i=u>-1?zB(this.view,e.changes,u):null;if(this.domChanged=null,this.hasComposition){let{from:c,to:f}=this.hasComposition;r=new eu(c,f,e.changes.mapPos(c,-1),e.changes.mapPos(f,1)).addToSet(r.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(Y.ie||Y.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,s=this.blockWrappers;this.updateDeco();let a=jB(o,this.decorations,e.changes);a.length&&(r=eu.extendWithRanges(r,a));let l=LB(s,this.blockWrappers,e.changes);return l.length&&(r=eu.extendWithRanges(r,l)),i&&!r.some(c=>c.fromA<=i.range.fromA&&c.toA>=i.range.toA)&&(r=i.range.addToSet(r.slice())),this.tile.flags&2&&r.length==0?!1:(this.updateInner(r,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n){this.view.viewState.mustMeasureContent=!0;let{observer:r}=this.view;r.ignore(()=>{if(n||e.length){let o=this.tile,s=new PB(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);n&&Ot.get(n.text)&&s.cache.reused.set(Ot.get(n.text),2),this.tile=s.run(e,n),Sp(o,s.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let i=Y.chrome||Y.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(i),i&&(i.written||r.selectionRange.focusNode!=i.node||!this.tile.dom.contains(i.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let u=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let i of this.tile.children)i.isWidget()&&i.widget instanceof Ld&&u.push(i.dom);r.updateGaps(u)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let r of n.effects)r.is(By)&&(this.editContextFormatting=r.value)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:r}=this.tile,u=this.view.root.activeElement,i=u==r,o=!i&&!(this.view.state.facet(hr)||r.tabIndex>-1)&&zs(r,this.view.observer.selectionRange)&&!(u&&r.contains(u));if(!(i||n||o))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l,c;if(a.empty?c=l=this.inlineDOMNearPos(a.anchor,a.assoc||1):(c=this.inlineDOMNearPos(a.head,a.head==a.from?1:-1),l=this.inlineDOMNearPos(a.anchor,a.anchor==a.from?1:-1)),Y.gecko&&a.empty&&!this.hasComposition&&IB(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=c=new mu(d,0),s=!0}let f=this.view.observer.selectionRange;(s||!f.focusNode||(!Zs(l.node,l.offset,f.anchorNode,f.anchorOffset)||!Zs(c.node,c.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,a))&&(this.view.observer.ignore(()=>{Y.android&&Y.chrome&&r.contains(f.focusNode)&&NB(f.focusNode,r)&&(r.blur(),r.focus({preventScroll:!0}));let d=ta(this.view.root);if(d)if(a.empty){if(Y.gecko){let h=ZB(l.node,l.offset);if(h&&h!=3){let p=(h==1?my:gy)(l.node,l.offset);p&&(l=new mu(p.node,p.offset))}}d.collapse(l.node,l.offset),a.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=a.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(c.node,c.offset)}catch{}}else{let h=document.createRange();a.anchor>a.head&&([l,c]=[c,l]),h.setEnd(c.node,c.offset),h.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(h)}o&&this.view.root.activeElement==r&&(r.blur(),u&&u.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new mu(f.anchorNode,f.anchorOffset),this.impreciseHead=c.precise?null:new mu(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&Zs(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,r=ta(e.root),{anchorNode:u,anchorOffset:i}=e.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let o=this.lineAt(n.head,n.assoc);if(!o)return;let s=o.posAtStart;if(n.head==s||n.head==s+o.length)return;let a=this.coordsAt(n.head,-1),l=this.coordsAt(n.head,1);if(!a||!l||a.bottom>l.top)return;let c=this.domAtPos(n.head+n.assoc,n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(u,i)}posFromDOM(e,n){let r=this.tile.nearest(e);if(!r)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let u=r.posAtStart;if(r.isComposite()){let i;if(e==r.dom)i=r.dom.childNodes[n];else{let o=xr(e)==0?0:n==0?-1:1;for(;;){let s=e.parentNode;if(s==r.dom)break;o==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?o=-1:o=1),e=s}o<0?i=e:i=e.nextSibling}if(i==r.dom.firstChild)return u;for(;i&&!Ot.get(i);)i=i.nextSibling;if(!i)return u+r.length;for(let o=0,s=u;;o++){let a=r.children[o];if(a.dom==i)return s;s+=a.length+a.breakAfter}}else return r.isText()?e==r.dom?u+n:u+(n?r.length:0):u}domAtPos(e,n){let{tile:r,offset:u}=this.tile.resolveBlock(e,n);return r.isWidget()?r.domPosFor(u,n):r.domIn(u,n)}inlineDOMNearPos(e,n){let r,u=-1,i=!1,o,s=-1,a=!1;return this.tile.blockTiles((l,c)=>{if(l.isWidget()){if(l.flags&32&&c>=e)return!0;l.flags&16&&(i=!0)}else{let f=c+l.length;if(c<=e&&(r=l,u=e-c,i=f<e),f>=e&&!o&&(o=l,s=e-c,a=c>e),c>e&&o)return!0}}),!r&&!o?this.domAtPos(e,n):(i&&o?r=null:a&&r&&(o=null),r&&n<0||!o?r.domIn(u,n):o.domIn(s,n))}coordsAt(e,n,r){let{tile:u,offset:i}=this.tile.resolveBlock(e,n);return u.isWidget()?u.widget instanceof Ld?null:u.coordsInWidget(i,n,!0):u.coordsIn(i,n,r)}lineAt(e,n){let{tile:r}=this.tile.resolveBlock(e,n);return r.isLine()?r:null}coordsForChar(e){let{tile:n,offset:r}=this.tile.resolveBlock(e,1);if(!n.isLine())return null;function u(i,o){if(i.isComposite())for(let s of i.children){if(s.length>=o){let a=u(s,o);if(a)return a}if(o-=s.length,o<0)break}else if(i.isText()&&o<i.length){let s=It(i.text,o);if(s==o)return null;let a=na(i.dom,o,s).getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(l==a.length-1||c.top<c.bottom&&c.left<c.right)return c}}return null}return u(n,r)}measureVisibleLineHeights(e){let n=[],{from:r,to:u}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==Ke.LTR,l=0,c=(f,d,h)=>{for(let p=0;p<f.children.length&&!(d>u);p++){let m=f.children[p],g=d+m.length,C=m.dom.getBoundingClientRect(),{height:b}=C;if(h&&!p&&(l+=C.top-h.top),m instanceof gr)g>r&&c(m,d,C);else if(d>=r&&(l>0&&n.push(-l),n.push(b+l),l=0,o)){let O=m.dom.lastChild,y=O?D0(O):[];if(y.length){let $=y[y.length-1],x=a?$.right-C.left:C.right-$.left;x>s&&(s=x,this.minWidth=i,this.minWidthFrom=d,this.minWidthTo=g)}}h&&p==f.children.length-1&&(l+=h.bottom-C.bottom),d=g+m.breakAfter}};return c(this.tile,0,null),n}textDirectionAt(e){let{tile:n}=this.tile.resolveBlock(e,1);return getComputedStyle(n.dom).direction=="rtl"?Ke.RTL:Ke.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let s=0,a;for(let l of o.children){if(!l.isText()||/[^ -~]/.test(l.text))return;let c=D0(l.dom);if(c.length!=1)return;s+=c[0].width,a=c[0].height}if(s)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:s/o.length,textHeight:a}}});if(e)return e;let n=document.createElement("div"),r,u,i;return n.className="cm-line",n.style.width="99999px",n.style.position="absolute",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(n);let o=D0(n.firstChild)[0];r=n.getBoundingClientRect().height,u=o&&o.width?o.width/27:7,i=o&&o.height?o.height:r,n.remove()}),{lineHeight:r,charWidth:u,textHeight:i}}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let r=0,u=0;;u++){let i=u==n.viewports.length?null:n.viewports[u],o=i?i.from-1:this.view.state.doc.length;if(o>r){let s=(n.lineBlockAt(o).bottom-n.lineBlockAt(r).top)/this.view.scaleY;e.push(ce.replace({widget:new Ld(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!i)break;r=i.to+1}return ce.set(e)}updateDeco(){let e=1,n=this.view.state.facet(Jc).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),r=!1,u=this.view.state.facet(e1).map((i,o)=>{let s=typeof i=="function";return s&&(r=!0),s?i(this.view):i});for(u.length&&(this.dynamicDecorationMap[e++]=r,n.push(we.join(u))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(Fy).map(i=>typeof i=="function"?i(this.view):i)}scrollIntoView(e){if(e.isSnapshot){let l=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=l.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let l of this.view.state.facet(wy))try{if(l(this.view,e.range,e))return!0}catch(c){wn(this.view.state,c,"scroll handler")}let{range:n}=e,r=this.coordsAt(n.head,n.assoc||(n.head>n.anchor?-1:1)),u;if(!r)return;!n.empty&&(u=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,u.left),top:Math.min(r.top,u.top),right:Math.max(r.right,u.right),bottom:Math.max(r.bottom,u.bottom)});let i=t1(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:s,offsetHeight:a}=this.view.scrollDOM;if(cB(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==Ke.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(r.top>window.visualViewport.offsetTop+window.visualViewport.height||r.bottom<window.visualViewport.offsetTop)){let l=this.view.docView.lineAt(n.head,1);if(l){let c=fy(l.dom);l.dom.scrollIntoView({block:"nearest"}),dy(c,!1)}}}lineHasWidget(e){let n=r=>r.isWidget()||r.children.some(n);return n(this.tile.resolveBlock(e,1).tile)}destroy(){Sp(this.tile)}}function Sp(t,e){let n=e?.get(t);if(n!=1){n==null&&t.destroy();for(let r of t.children)Sp(r,e)}}function IB(t){return zt(t.node)&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function Zy(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=my(n.focusNode,n.focusOffset),u=gy(n.focusNode,n.focusOffset),i=r||u;if(u&&r&&u.node!=r.node){let s=Ot.get(u.node);if(!s||s.isText()&&s.text!=u.node.nodeValue)i=u;else if(t.docView.lastCompositionAfterCursor){let a=Ot.get(r.node);!a||a.isText()&&a.text!=r.node.nodeValue||(i=u)}}if(t.docView.lastCompositionAfterCursor=i!=r,!i)return null;let o=e-i.offset;return{from:o,to:o+i.node.nodeValue.length,node:i.node}}function zB(t,e,n){let r=Zy(t,n);if(!r)return null;let{node:u,from:i,to:o}=r,s=u.nodeValue;if(/[\n\r]/.test(s)||t.state.doc.sliceString(r.from,r.to)!=s)return null;let a=e.invertedDesc;return{range:new eu(a.mapPos(i),a.mapPos(o),i,o),text:u}}function ZB(t,e){return zt(t)?(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0):0}let RB=class{constructor(){this.changes=[]}compareRange(e,n){fo(e,n,this.changes)}comparePoint(e,n){fo(e,n,this.changes)}boundChange(e){fo(e,e,this.changes)}};function jB(t,e,n){let r=new RB;return we.compare(t,e,n,r),r.changes}class MB{constructor(){this.changes=[]}compareRange(e,n){fo(e,n,this.changes)}comparePoint(){}boundChange(e){fo(e,e,this.changes)}}function LB(t,e,n){let r=new MB;return we.compare(t,e,n,r),r.changes}function NB(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(zt(n)&&n.contentEditable=="false")return!0;return!1}function UB(t,e){let n=!1;return e&&t.iterChangedRanges((r,u)=>{r<e.to&&u>e.from&&(n=!0)}),n}class Ld extends er{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function XB(t,e,n=1){let r=t.charCategorizer(e),u=t.doc.lineAt(e),i=e-u.from;if(u.length==0)return w.cursor(e);i==0?n=1:i==u.length&&(n=-1);let o=i,s=i;n<0?o=It(u.text,i,!1):s=It(u.text,i);let a=r(u.text.slice(o,s));for(;o>0;){let l=It(u.text,o,!1);if(r(u.text.slice(l,o))!=a)break;o=l}for(;s<u.length;){let l=It(u.text,s);if(r(u.text.slice(s,l))!=a)break;s=l}return w.undirectionalRange(o+u.from,s+u.from)}function VB(t,e,n,r,u){let i=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let s=t.viewState.heightOracle.textHeight,a=Math.floor((u-n.top-(t.defaultLineHeight-s)*.5)/s);i+=a*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(n.from,n.to);return n.from+gp(o,i,t.state.tabSize)}function _p(t,e,n){let r=t.lineBlockAt(e);if(Array.isArray(r.type)){let u;for(let i of r.type){if(i.from>e)break;if(!(i.to<e)){if(i.from<e&&i.to>e)return i;(!u||i.type==Ut.Text&&(u.type!=i.type||(n<0?i.from<e:i.to>e)))&&(u=i)}}return u||r}return r}function qB(t,e,n,r){let u=_p(t,e.head,e.assoc||-1),i=!r||u.type!=Ut.Text||!(t.lineWrapping||u.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>u.from?e.head-1:e.head);if(i){let o=t.dom.getBoundingClientRect(),s=t.textDirectionAt(u.from),a=t.posAndSideAtCoords({x:n==(s==Ke.LTR)?o.right-1:o.left+1,y:(i.top+i.bottom)/2});if(a)return w.cursor(a.pos,a.assoc)}return w.cursor(n?u.to:u.from,n?1:-1)}function X3(t,e,n,r){let u=t.state.doc.lineAt(e.head),i=t.bidiSpans(u),o=t.textDirectionAt(u.from);for(let s=e,a=null;;){let l=yB(u,i,o,s,n),c=yy;if(!l){if(u.number==(n?t.state.doc.lines:1))return s;c=`
|
|
8
|
+
`,u=t.state.doc.line(u.number+(n?1:-1)),i=t.bidiSpans(u),l=n?w.cursor(u.from,-1):w.cursor(u.to,1)}if(a){if(!a(c))return s}else{if(!r)return l;a=r(c)}s=l}}function WB(t,e,n){let r=t.state.charCategorizer(e),u=r(n);return i=>{let o=r(i);return u==dt.Space&&(u=o),u==o}}function YB(t,e,n,r){let u=e.head,i=n?1:-1;if(u==(n?t.state.doc.length:0))return w.cursor(u,e.assoc);let o=e.goalColumn,s,a=t.contentDOM.getBoundingClientRect(),l=t.coordsAtPos(u,e.assoc||((e.empty?n:e.head==e.from)?1:-1)),c=t.documentTop;if(l)o==null&&(o=l.left-a.left),s=i<0?l.top:l.bottom;else{let p=t.viewState.lineBlockAt(u);o==null&&(o=Math.min(a.right-a.left,t.defaultCharacterWidth*(u-p.from))),s=(i<0?p.top:p.bottom)+c}let f=a.left+o,d=t.viewState.heightOracle.textHeight>>1,h=r??d;for(let p=0;;p+=d){let m=s+(h+p)*i,g=wp(t,{x:f,y:m},!1,i);if(n?m>a.bottom:m<a.top)return w.cursor(g.pos,g.assoc);let C=t.coordsAtPos(g.pos,g.assoc),b=C?(C.top+C.bottom)/2:0;if(!C||(n?b>s:b<s))return w.cursor(g.pos,g.assoc,void 0,o)}}function Rs(t,e,n){for(;;){let r=0;for(let u of t)u.between(e-1,e+1,(i,o,s)=>{if(e>i&&e<o){let a=r||n||(e-i<o-e?-1:1);e=a<0?i:o,r=a}});if(!r)return e}}function Ry(t,e){let n=null;for(let r=0;r<e.ranges.length;r++){let u=e.ranges[r],i=null;if(u.empty){let o=Rs(t,u.from,0);o!=u.from&&(i=w.cursor(o,-1))}else{let o=Rs(t,u.from,-1),s=Rs(t,u.to,1);(o!=u.from||s!=u.to)&&(u.undirectional?i=w.undirectionalRange(u.from,u.to):i=w.range(u.from==u.anchor?o:s,u.from==u.head?o:s))}i&&(n||(n=e.ranges.slice()),n[r]=i)}return n?w.create(n,e.mainIndex):e}function Nd(t,e,n){let r=Rs(t.state.facet(za).map(u=>u(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:w.cursor(r,r<n.from?1:-1)}class Ru{constructor(e,n){this.pos=e,this.assoc=n}}function wp(t,e,n,r){let u=t.contentDOM.getBoundingClientRect(),i=u.top+t.viewState.paddingTop,{x:o,y:s}=e,a=s-i,l;for(;;){if(a<0)return new Ru(0,1);if(a>t.viewState.docHeight)return new Ru(t.state.doc.length,-1);if(l=t.elementAtHeight(a),r==null)break;if(l.type==Ut.Text){if(r<0?l.to<t.viewport.from:l.from>t.viewport.to)break;let d=t.docView.coordsAt(r<0?l.from:l.to,r>0?-1:1);if(d&&(r<0?d.top<=a+i:d.bottom>=a+i))break}let f=t.viewState.heightOracle.textHeight/2;a=r>0?l.bottom+f:l.top-f}if(t.viewport.from>=l.to||t.viewport.to<=l.from){if(n)return null;if(l.type==Ut.Text){let f=VB(t,u,l,o,s);return new Ru(f,f==l.from?1:-1)}}if(l.type!=Ut.Text)return a<(l.top+l.bottom)/2?new Ru(l.from,1):new Ru(l.to,-1);let c=t.docView.lineAt(l.from,2);return(!c||c.length!=l.length)&&(c=t.docView.lineAt(l.from,-2)),new GB(t,o,s,t.textDirectionAt(l.from)).scanTile(c,l.from)}class GB{constructor(e,n,r,u){this.view=e,this.x=n,this.y=r,this.baseDir=u,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,n){let{line:r,spans:u}=this.bidiSpansAt(e);return u[ju.find(u,e-r.from,-1,n)].level==this.baseDir}dirAt(e,n){let{line:r,spans:u}=this.bidiSpansAt(e);return u[ju.find(u,e-r.from,-1,n)].dir}bidiIn(e,n){let{spans:r,line:u}=this.bidiSpansAt(e);return r.length>1||r.length&&(r[0].level!=this.baseDir||r[0].to+u.from<n)}scan(e,n,r=!1){let u=0,i=e.length-1,o=new Set,s=this.bidiIn(e[0],e[i]),a,l,c=-1,f=1e9,d;e:for(;u<i;){let p=i-u,m=u+i>>1;t:if(o.has(m)){for(let b=1;b<p;b++){let O=m+b;if(O>=i&&(O-=p),!o.has(O)){m=O;break t}}break e}o.add(m);let g=n(m),C=0;if(g)for(let b=0;b<g.length;b++){let O=g[b];if(!(O.width==0&&g.length>1))if(O.bottom<this.y)(!a||a.bottom<O.bottom)&&(a=O),C=1;else if(O.top>this.y)(!l||l.top>O.top)&&(l=O),C=-1;else{let y=O.left>this.x?this.x-O.left:O.right<this.x?this.x-O.right:0,$=Math.abs(y);$<f&&(c=m,f=$,d=O),y&&(C=y<0==(this.baseDir==Ke.LTR)?-1:1)}}C==-1&&(!s||this.baseDirAt(e[m],1))?i=m:C==1&&(!s||this.baseDirAt(e[m+1],-1))&&(u=m+1)}if(!d){if(!l&&!a)return{i:0,after:!1};let p=a&&(!l||this.y-a.bottom<l.top-this.y)?a:l;return this.y=(p.top+p.bottom)/2,this.scan(e,n,!0)}if(f&&!r){let{top:p,bottom:m}=d;if(a&&a.bottom>(p+p+m)/3)return this.y=a.bottom-1,this.scan(e,n,!0);if(l&&l.top<(p+m+m)/3)return this.y=l.top+1,this.scan(e,n,!0)}let h=(s?this.dirAt(e[c],1):this.baseDir)==Ke.LTR;return{i:c,after:this.x>(d.left+d.right)/2==h}}scanText(e,n){let r=[];for(let i=0;i<e.length;i=It(e.text,i))r.push(n+i);r.push(n+e.length);let u=this.scan(r,i=>{let o=r[i]-n,s=r[i+1]-n;return na(e.dom,o,s).getClientRects()});return u.after?new Ru(r[u.i+1],-1):new Ru(r[u.i],1)}scanTile(e,n){if(!e.length)return new Ru(n,1);if(e.children.length==1){let s=e.children[0];if(s.isText())return this.scanText(s,n);if(s.isComposite())return this.scanTile(s,n)}let r=[n];for(let s=0,a=n;s<e.children.length;s++)r.push(a+=e.children[s].length);let u=this.scan(r,s=>{let a=e.children[s];return a.flags&48?null:(zt(a.dom)?a.dom:na(a.dom,0,a.length)).getClientRects()}),i=e.children[u.i],o=r[u.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):u.after?new Ru(r[u.i+1],-1):new Ru(o,1)}}const Ki="";class HB{constructor(e,n){this.points=e,this.view=n,this.text="",this.lineSeparator=n.state.facet(ze.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Ki}readRange(e,n){if(!e)return this;let r=e.parentNode;for(let u=e;;){this.findPointBefore(r,u);let i=this.text.length;this.readNode(u);let o=Ot.get(u),s=u.nextSibling;if(s==n){o?.breakAfter&&!s&&r!=this.view.contentDOM&&this.lineBreak();break}let a=Ot.get(s);(o&&a?o.breakAfter:(o?o.breakAfter:G0(u))||G0(s)&&(u.nodeName!="BR"||o?.isWidget())&&this.text.length>i)&&!JB(s,n)&&this.lineBreak(),u=s}return this.findPointBefore(r,n),this}readTextNode(e){let n=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,u=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,s;if(this.lineSeparator?(i=n.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(s=u.exec(n))&&(i=s.index,o=s[0].length),this.append(n.slice(r,i<0?n.length:i)),i<0)break;if(this.lineBreak(),o>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=o-1);r=i+o}}readNode(e){let n=Ot.get(e),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let u=r.iter();!u.next().done;)u.lineBreak?this.lineBreak():this.append(u.value)}else $o(e)?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():zt(e)&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(e,n){for(let r of this.points)($o(e)?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(KB(e,r.node,r.offset)?n:0))}}function KB(t,e,n){for(;;){if(!e||n<xr(e))return!1;if(e==t)return!0;n=Wr(e)+1,e=e.parentNode}}function JB(t,e){let n;for(;!(t==e||!t);t=t.nextSibling){let r=Ot.get(t);if(!r?.isWidget())return!1;r&&(n||(n=[])).push(r)}if(n)for(let r of n){let u=r.overrideDOMText;if(u?.length)return!1}return!0}class V3{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class eP{constructor(e,n,r,u){this.typeOver=u,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:i,impreciseAnchor:o}=e.docView,s=e.state.selection;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=jy(e.docView.tile,n,r,0))){let a=i||o?[]:nP(e),l=new HB(a,e);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=uP(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=i&&i.node==a.focusNode&&i.offset==a.focusOffset||!Ep(e.contentDOM,a.focusNode)?s.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),c=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!Ep(e.contentDOM,a.anchorNode)?s.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),f=e.viewport;if((Y.ios||Y.chrome)&&l!=c&&Math.min(l,c)<=s.main.from&&Math.max(l,c)>=s.main.to&&(f.from>0||f.to<e.state.doc.length)){let d=Math.min(l,c),h=Math.max(l,c),p=f.from-d,m=f.to-h;(p==0||p==1||d==0)&&(m==0||m==-1||h==e.state.doc.length)&&(l=0,c=e.state.doc.length)}if(e.inputState.composing>-1&&s.ranges.length>1)this.newSel=s.replaceRange(w.range(c,l));else if(e.lineWrapping&&c==l&&!(s.main.empty&&s.main.head==l)&&e.inputState.lastTouchTime>Date.now()-100){let d=e.coordsAtPos(l,-1),h=0;d&&(h=e.inputState.lastTouchY<=d.bottom?-1:1),this.newSel=w.create([w.cursor(l,h)])}else this.newSel=w.single(c,l)}}}function jy(t,e,n,r){if(t.isComposite()){let u=-1,i=-1,o=-1,s=-1;for(let a=0,l=r,c=r;a<t.children.length;a++){let f=t.children[a],d=l+f.length;if(l<e&&d>n)return jy(f,e,n,l);if(d>=e&&u==-1&&(u=a,i=l),l>n&&f.dom.parentNode==t.dom){o=a,s=c;break}c=d,l=d+f.breakAfter}return{from:i,to:s<0?r+t.length:s,startDOM:(u?t.children[u-1].dom.nextSibling:null)||t.dom.firstChild,endDOM:o<t.children.length&&o>=0?t.children[o].dom:null}}else return t.isText()?{from:r,to:r+t.length,startDOM:t.dom,endDOM:t.dom.nextSibling}:null}function My(t,e){let n,{newSel:r}=e,{state:u}=t,i=u.selection.main,o=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:a}=e.bounds,l=i.from,c=null;(o===8||Y.android&&e.text.length<a-s)&&(l=i.to,c="end");let f=u.doc.sliceString(s,a,Ki),d,h;!i.empty&&i.from>=s&&i.to<=a&&(e.typeOver||f!=e.text)&&f.slice(0,i.from-s)==e.text.slice(0,i.from-s)&&f.slice(i.to-s)==e.text.slice(d=e.text.length-(f.length-(i.to-s)))?n={from:i.from,to:i.to,insert:Ze.of(e.text.slice(i.from-s,d).split(Ki))}:(h=Ly(f,e.text,l-s,c))&&(Y.chrome&&o==13&&h.toB==h.from+2&&e.text.slice(h.from,h.toB)==Ki+Ki&&h.toB--,n={from:s+h.from,to:s+h.toA,insert:Ze.of(e.text.slice(h.from,h.toB).split(Ki))})}else r&&(!t.hasFocus&&u.facet(hr)||Bp(r,i))&&(r=null);if(!n&&!r)return!1;if((Y.mac||Y.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=w.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:Ze.of([n.insert.toString().replace("."," ")])}):u.doc.lineAt(i.from).to<i.to&&t.docView.lineHasWidget(i.to)&&t.inputState.insertingTextAt>Date.now()-50?n={from:i.from,to:i.to,insert:u.toText(t.inputState.insertingText)}:Y.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
|
|
9
|
+
`&&t.lineWrapping&&(r&&(r=w.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ze.of([" "])}),n)return n1(t,n,r,o);if(r&&!Bp(r,i)){let s=!1,a="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),a=t.inputState.lastSelectionOrigin,a=="select.pointer"&&(r=Ry(u.facet(za).map(l=>l(t)),r))),t.dispatch({selection:r,scrollIntoView:s,userEvent:a}),!0}else return!1}function n1(t,e,n,r=-1){if(Y.ios&&t.inputState.flushIOSKey(e))return!0;let u=t.state.selection.main;if(Y.android&&(e.to==u.to&&(e.from==u.from||e.from==u.from-1&&t.state.sliceDoc(e.from,u.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&ho(t.contentDOM,"Enter",13)||(e.from==u.from-1&&e.to==u.to&&e.insert.length==0||r==8&&e.insert.length<e.to-e.from&&e.to>u.head)&&ho(t.contentDOM,"Backspace",8)||e.from==u.from&&e.to==u.to+1&&e.insert.length==0&&ho(t.contentDOM,"Delete",46)))return!0;let i=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,s=()=>o||(o=tP(t,e,n));return t.state.facet(Dy).some(a=>a(t,e.from,e.to,i,s))||t.dispatch(s()),!0}function tP(t,e,n){let r,u=t.state,i=u.selection.main,o=-1;if(e.from==e.to&&e.from<i.from||e.from>i.to){let a=e.from<i.from?-1:1,l=a<0?i.from:i.to,c=Rs(u.facet(za).map(f=>f(t)),l,a);e.from==c&&(o=c)}if(o>-1)r={changes:e,selection:w.cursor(e.from+e.insert.length,-1)};else if(e.from>=i.from&&e.to<=i.to&&e.to-e.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let a=i.from<e.from?u.sliceDoc(i.from,e.from):"",l=i.to>e.to?u.sliceDoc(e.to,i.to):"";r=u.replaceSelection(t.state.toText(a+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let a=u.changes(e),l=n&&n.main.to<=a.newLength?n.main:void 0;if(u.selection.ranges.length>1&&(t.inputState.composing>=0||t.inputState.compositionPendingChange)&&e.to<=i.to+10&&e.to>=i.to-10){let c=t.state.sliceDoc(e.from,e.to),f,d=n&&Zy(t,n.main.head);if(d){let p=e.insert.length-(e.to-e.from);f={from:d.from,to:d.to-p}}else f=t.state.doc.lineAt(i.head);let h=i.to-e.to;r=u.changeByRange(p=>{if(p.from==i.from&&p.to==i.to)return{changes:a,range:l||p.map(a)};let m=p.to-h,g=m-c.length;if(t.state.sliceDoc(g,m)!=c||m>=f.from&&g<=f.to)return{range:p};let C=u.changes({from:g,to:m,insert:e.insert}),b=p.to-i.to;return{changes:C,range:l?w.range(Math.max(0,l.anchor+b),Math.max(0,l.head+b)):p.map(C)}})}else r={changes:a,selection:l&&u.selection.replaceRange(l)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),u.update(r,{userEvent:s,scrollIntoView:!0})}function Ly(t,e,n,r){let u=Math.min(t.length,e.length),i=0;for(;i<u&&t.charCodeAt(i)==e.charCodeAt(i);)i++;if(i==u&&t.length==e.length)return null;let o=t.length,s=e.length;for(;o>0&&s>0&&t.charCodeAt(o-1)==e.charCodeAt(s-1);)o--,s--;if(r=="end"){let a=Math.max(0,i-Math.min(o,s));n-=o+a-i}if(o<i&&t.length<e.length){let a=n<=i&&n>=o?i-n:0;i-=a,s=i+(s-o),o=i}else if(s<i){let a=n<=i&&n>=s?i-n:0;i-=a,o=i+(o-s),s=i}return{from:i,toA:o,toB:s}}function nP(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:u,focusOffset:i}=t.observer.selectionRange;return n&&(e.push(new V3(n,r)),(u!=n||i!=r)&&e.push(new V3(u,i))),e}function uP(t,e){if(t.length==0)return null;let n=t[0].pos,r=t.length==2?t[1].pos:n;return n<0||r<0?null:n==r?w.create([w.cursor(r+e,-1)]):w.single(n+e,r+e)}function Bp(t,e){return e.head==t.main.head&&e.anchor==t.main.anchor}class rP{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Y.safari&&e.contentDOM.addEventListener("input",()=>null),Y.gecko&&CP(e.contentDOM.ownerDocument)}handleEvent(e){!hP(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,n){let r=this.handlers[e];if(r){for(let u of r.observers)u(this.view,n);for(let u of r.handlers){if(n.defaultPrevented)break;if(u(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=oP(e),r=this.handlers,u=this.view.contentDOM;for(let i in n)if(i!="scroll"){let o=!n[i].handlers.length,s=r[i];s&&o!=!s.handlers.length&&(u.removeEventListener(i,this.handleEvent),s=null),s||u.addEventListener(i,this.handleEvent,{passive:o})}for(let i in r)i!="scroll"&&!n[i]&&u.removeEventListener(i,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&Uy.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Y.android&&Y.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(Y.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(Ny.some(n=>n.keyCode==e.keyCode)&&!e.ctrlKey||sP.indexOf(e.key)>-1&&e.ctrlKey)){let n={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};n.shiftKey&&Y.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&iP(this.view.win)&&(n.shiftKey=!1);let r=this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:n};return setTimeout(()=>{this.pendingIOSKey==r&&this.flushIOSKey()},50),!0}return e.keyCode!=229&&this.view.observer.forceFlush(),!1}flushIOSKey(e){let n=this.pendingIOSKey;return!n||this.view.observer.pendingRecords().length||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,ho(this.view.contentDOM,n.key,n.keyCode,n.mods))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:Y.safari&&!Y.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function iP(t){return t.visualViewport?t.visualViewport.height*t.visualViewport.scale/t.document.documentElement.clientHeight<.85:!1}function q3(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(u){wn(n.state,u)}}}function oP(t){let e=Object.create(null);function n(r){return e[r]||(e[r]={observers:[],handlers:[]})}for(let r of t){let u=r.spec,i=u&&u.plugin.domEventHandlers,o=u&&u.plugin.domEventObservers;if(i)for(let s in i){let a=i[s];a&&n(s).handlers.push(q3(r.value,a))}if(o)for(let s in o){let a=o[s];a&&n(s).observers.push(q3(r.value,a))}}for(let r in xu)n(r).handlers.push(xu[r]);for(let r in On)n(r).observers.push(On[r]);return e}const Ny=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],sP="dthko",Uy=[16,17,18,20,91,92,224,225],Ul=6;function Xl(t){return Math.max(0,t)*.7+8}function aP(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class lP{constructor(e,n,r,u){this.view=e,this.startEvent=n,this.style=r,this.mustSelect=u,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=cy(e.contentDOM),this.atoms=e.state.facet(za).map(o=>o(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(ze.allowMultipleSelections)&&cP(e,n),this.dragging=dP(e,n)&&qy(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&aP(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,r=0,u=0,i=0,o=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:u,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:s}=this.scrollParents.y.getBoundingClientRect());let a=t1(this.view);e.clientX-a.left<=u+Ul?n=-Xl(u-e.clientX):e.clientX+a.right>=o-Ul&&(n=Xl(e.clientX-o)),e.clientY-a.top<=i+Ul?r=-Xl(i-e.clientY):e.clientY+a.bottom>=s-Ul&&(r=Xl(e.clientY-s)),this.setScrollSpeed(n,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:n}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(e||n)&&this.view.win.scrollBy(e,n),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:n}=this,r=Ry(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function cP(t,e){let n=t.state.facet(xy);return n.length?n[0](e):Y.mac?e.metaKey:e.ctrlKey}function fP(t,e){let n=t.state.facet(Ey);return n.length?n[0](e):Y.mac?!e.altKey:!e.ctrlKey}function dP(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=ta(t.root);if(!r||r.rangeCount==0)return!0;let u=r.getRangeAt(0).getClientRects();for(let i=0;i<u.length;i++){let o=u[i];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function hP(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,r;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=Ot.get(n))&&r.isWidget()&&!r.isHidden&&r.widget.ignoreEvent(e))return!1;return!0}const xu=Object.create(null),On=Object.create(null),Xy=Y.ie&&Y.ie_version<15||Y.ios&&Y.webkit_version<604;function pP(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),Vy(t,n.value)},50)}function nf(t,e,n){for(let r of t.facet(e))n=r(n,t);return n}function Vy(t,e){e=nf(t.state,Hm,e);let{state:n}=t,r,u=1,i=n.toText(e),o=i.lines==n.selection.ranges.length;if(Pp!=null&&n.selection.ranges.every(a=>a.empty)&&Pp==i.toString()){let a=-1;r=n.changeByRange(l=>{let c=n.doc.lineAt(l.from);if(c.from==a)return{range:l};a=c.from;let f=n.toText((o?i.line(u++).text:e)+n.lineBreak);return{changes:{from:c.from,insert:f},range:w.cursor(l.from+f.length,-1)}})}else o?r=n.changeByRange(a=>{let l=i.line(u++);return{changes:{from:a.from,to:a.to,insert:l.text},range:w.cursor(a.from+l.length,-1)}}):r=n.replaceSelection(i);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}On.scroll=t=>{let e=t.inputState;e.lastScrollTop=t.scrollDOM.scrollTop,e.lastScrollLeft=t.scrollDOM.scrollLeft,Y.ios&&!e.touchActive&&(e.lastIOSMomentumScroll=Date.now())};On.wheel=On.mousewheel=t=>{t.inputState.lastWheelEvent=Date.now()};xu.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);On.touchstart=(t,e)=>{let n=t.inputState,r=e.targetTouches[0];n.touchActive=!0,n.lastTouchTime=Date.now(),r&&(n.lastTouchX=r.clientX,n.lastTouchY=r.clientY),n.setSelectionOrigin("select.pointer")};On.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};On.touchend=(t,e)=>{t.inputState.touchActive=!1};xu.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of t.state.facet($y))if(n=r(t,e),n)break;if(!n&&e.button==0&&(n=gP(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new lP(t,e,n,r)),r&&t.observer.ignore(()=>{hy(t.contentDOM);let i=t.root.activeElement;i&&!i.contains(t.contentDOM)&&i.blur()});let u=t.inputState.mouseSelection;if(u)return u.start(e),u.dragging===!1}else t.inputState.setSelectionOrigin("select.pointer");return!1};function W3(t,e,n,r){if(r==1)return w.cursor(e,n);if(r==2)return XB(t.state,e,n);{let u=t.docView.lineAt(e,n),i=t.state.doc.lineAt(u?u.posAtEnd:e),o=u?u.posAtStart:i.from,s=u?u.posAtEnd:i.to;return s<t.state.doc.length&&s==i.to&&s++,w.undirectionalRange(o,s)}}const mP=Y.ie&&Y.ie_version<=11;let Y3=null,G3=0,H3=0;function qy(t){if(!mP)return t.detail;let e=Y3,n=H3;return Y3=t,H3=Date.now(),G3=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(G3+1)%3:1}function gP(t,e){let n=t.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),r=qy(e),u=t.state.selection;return{update(i){i.docChanged&&(n.pos=i.changes.mapPos(n.pos),u=u.map(i.changes))},get(i,o,s){let a=t.posAndSideAtCoords({x:i.clientX,y:i.clientY},!1),l,c=W3(t,a.pos,a.assoc,r);if(n.pos!=a.pos&&!o){let f=W3(t,n.pos,n.assoc,r),d=Math.min(f.from,c.from),h=Math.max(f.to,c.to);c=d<c.from?w.range(d,h,c.assoc):w.range(h,d,c.assoc)}return o?u.replaceRange(u.main.extend(c.from,c.to,c.assoc)):s&&r==1&&u.ranges.length>1&&(l=OP(u,a.pos))?l:s?u.addRange(c):w.create([c])}}}function OP(t,e){for(let n=0;n<t.ranges.length;n++){let{from:r,to:u}=t.ranges[n];if(r<=e&&u>=e)return w.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}xu.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let u=t.docView.tile.nearest(e.target);if(u&&u.isWidget()){let i=u.posAtStart,o=i+u.length;(i>=n.to||o<=n.from)&&(n=w.undirectionalRange(i,o))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",nf(t.state,Km,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),!1};xu.dragend=t=>(t.inputState.draggedContent=null,!1);function K3(t,e,n,r){if(n=nf(t.state,Hm,n),!n)return;let u=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:i}=t.inputState,o=r&&i&&fP(t,e)?{from:i.from,to:i.to}:null,s={from:u,insert:n},a=t.state.changes(o?[o,s]:s);t.focus(),t.dispatch({changes:a,selection:{anchor:a.mapPos(u,-1),head:a.mapPos(u,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}xu.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),u=0,i=()=>{++u==n.length&&K3(t,e,r.filter(o=>o!=null).join(t.state.lineBreak),!1)};for(let o=0;o<n.length;o++){let s=new FileReader;s.onerror=i,s.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[o]=s.result),i()},s.readAsText(n[o])}return!0}else{let r=e.dataTransfer.getData("Text");if(r)return K3(t,e,r,!0),!0}return!1};xu.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=Xy?null:e.clipboardData;return n?(Vy(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(pP(t),!1)};function bP(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus()},50)}function vP(t){let e=[],n=[],r=!1;for(let u of t.selection.ranges)u.empty||(e.push(t.sliceDoc(u.from,u.to)),n.push(u));if(!e.length){let u=-1;for(let{from:i}of t.selection.ranges){let o=t.doc.lineAt(i);o.number>u&&(e.push(o.text),n.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),u=o.number}r=!0}return{text:nf(t,Km,e.join(t.lineBreak)),ranges:n,linewise:r}}let Pp=null;xu.copy=xu.cut=(t,e)=>{if(!zs(t.contentDOM,t.observer.selectionRange))return!1;let{text:n,ranges:r,linewise:u}=vP(t.state);if(!n&&!u)return!1;Pp=u?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let i=Xy?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",n),!0):(bP(t,n),!1)};const Wy=kr.define();function Yy(t,e){let n=[];for(let r of t.facet(ky)){let u=r(t,e);u&&n.push(u)}return n.length?t.update({effects:n,annotations:Wy.of(!0)}):null}function Gy(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=Yy(t.state,e);n?t.dispatch(n):t.update([])}},10)}On.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),Gy(t)};On.blur=t=>{t.observer.clearSelectionRange(),Gy(t)};On.compositionstart=On.compositionupdate=(t,e)=>{if(!t.observer.editContext&&(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0)){let{main:n}=t.state.selection;!n.empty&&t.lineBlockAt(n.from).from!=t.lineBlockAt(n.to).from&&!t.state.readOnly&&t.dispatch({changes:t.state.selection.ranges.filter(r=>!r.empty).map(r=>({from:r.from,to:r.to})),userEvent:"input"}),t.inputState.composing=0}};On.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Y.chrome&&Y.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};On.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};xu.beforeinput=(t,e)=>{var n,r;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(t.inputState.insertingText=e.data,t.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&t.observer.editContext){let i=(n=e.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),o=e.getTargetRanges();if(i&&o.length){let s=o[0],a=t.posAtDOM(s.startContainer,s.startOffset),l=t.posAtDOM(s.endContainer,s.endOffset);return n1(t,{from:a,to:l,insert:t.state.toText(i)},null),!0}}let u;if(Y.chrome&&Y.android&&(u=Ny.find(i=>i.inputType==e.inputType))&&(t.observer.delayAndroidKey(u.key,u.keyCode),u.key=="Backspace"||u.key=="Delete")){let i=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return Y.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),Y.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>On.compositionend(t,e),20),!1};const J3=new Set;function CP(t){J3.has(t)||(J3.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const e6=["pre-wrap","normal","pre-line","break-spaces"];let So=!1;function t6(){So=!1}class yP{constructor(e){this.lineWrapping=e,this.doc=Ze.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return e6.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let r=0;r<e.length;r++){let u=e[r];u<0?r++:this.heightSamples[Math.floor(u*10)]||(n=!0,this.heightSamples[Math.floor(u*10)]=!0)}return n}refresh(e,n,r,u,i,o){let s=e6.indexOf(e)>-1,a=Math.abs(n-this.lineHeight)>.3||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=u,this.lineLength=i,a){this.heightSamples={};for(let l=0;l<o.length;l++){let c=o[l];c<0?l++:this.heightSamples[Math.floor(c*10)]=!0}}return a}}class xP{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class pu{constructor(e,n,r,u,i){this.from=e,this.length=n,this.top=r,this.height=u,this._content=i}get type(){return typeof this._content=="number"?Ut.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Fi?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new pu(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var st=(function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t})(st||(st={}));const k0=.001;class gn{constructor(e,n,r=2){this.length=e,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>k0&&(So=!0),this.height=e)}replace(e,n,r){return gn.of(r)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,r,u){let i=this,o=r.doc;for(let s=u.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:c,toB:f}=u[s],d=i.lineAt(a,st.ByPosNoHeight,r.setDoc(n),0,0),h=d.to>=l?d:i.lineAt(l,st.ByPosNoHeight,r,0,0);for(f+=h.to-l,l=h.to;s>0&&d.from<=u[s-1].toA;)a=u[s-1].fromA,c=u[s-1].fromB,s--,a<d.from&&(d=i.lineAt(a,st.ByPosNoHeight,r,0,0));c+=d.from-a,a=d.from;let p=u1.build(r.setDoc(o),e,c,f);i=tc(i,i.replace(a,l,p))}return i.updateHeight(r,0)}static empty(){return new Zn(0,0,0)}static of(e){if(e.length==1)return e[0];let n=0,r=e.length,u=0,i=0;for(;;)if(n==r)if(u>i*2){let s=e[n-1];s.break?e.splice(--n,1,s.left,null,s.right):e.splice(--n,1,s.left,s.right),r+=1+s.break,u-=s.size}else if(i>u*2){let s=e[r];s.break?e.splice(r,1,s.left,null,s.right):e.splice(r,1,s.left,s.right),r+=2+s.break,i-=s.size}else break;else if(u<i){let s=e[n++];s&&(u+=s.size)}else{let s=e[--r];s&&(i+=s.size)}let o=!1;return e[n-1]==null?(o=!0,n--):e[n]==null&&(o=!0,r++),new $P(gn.of(e.slice(0,n)),o,gn.of(e.slice(r)))}}function tc(t,e){return t==e?t:(t.constructor!=e.constructor&&(So=!0),e)}gn.prototype.size=1;const EP=ce.replace({});class Hy extends gn{constructor(e,n,r){super(e,n),this.deco=r,this.spaceAbove=0}mainBlock(e,n){return new pu(n,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,n,r,u){return this.spaceAbove&&e<r+this.spaceAbove?new pu(u,0,r,this.spaceAbove,EP):this.mainBlock(r,u)}lineAt(e,n,r,u,i){let o=this.mainBlock(u,i);return this.spaceAbove?this.blockAt(0,r,u,i).join(o):o}forEachLine(e,n,r,u,i,o){e<=i+this.length&&n>=i&&o(this.lineAt(0,st.ByPos,r,u,i))}setMeasuredHeight(e){let n=e.heights[e.index++];n<0?(this.spaceAbove=-n,n=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(n)}updateHeight(e,n=0,r=!1,u){return u&&u.from<=n&&u.more&&this.setMeasuredHeight(u),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Zn extends Hy{constructor(e,n,r){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=r}mainBlock(e,n){return new pu(n,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,n,r){let u=r[0];return r.length==1&&(u instanceof Zn||u instanceof Mt&&u.flags&4)&&Math.abs(this.length-u.length)<10?(u instanceof Mt?u=new Zn(u.length,this.height,this.spaceAbove):u.height=this.height,this.outdated||(u.outdated=!1),u):gn.of(r)}updateHeight(e,n=0,r=!1,u){return u&&u.from<=n&&u.more?this.setMeasuredHeight(u):(r||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Mt extends gn{constructor(e){super(e,0)}heightMetrics(e,n){let r=e.doc.lineAt(n).number,u=e.doc.lineAt(n+this.length).number,i=u-r+1,o,s=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*i);o=a/i,this.length>i+1&&(s=(this.height-a)/(this.length-i-1))}else o=this.height/i;return{firstLine:r,lastLine:u,perLine:o,perChar:s}}blockAt(e,n,r,u){let{firstLine:i,lastLine:o,perLine:s,perChar:a}=this.heightMetrics(n,u);if(n.lineWrapping){let l=u+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),c=n.doc.lineAt(l),f=s+c.length*a,d=Math.max(r,e-f/2);return new pu(c.from,c.length,d,f,0)}else{let l=Math.max(0,Math.min(o-i,Math.floor((e-r)/s))),{from:c,length:f}=n.doc.line(i+l);return new pu(c,f,r+s*l,s,0)}}lineAt(e,n,r,u,i){if(n==st.ByHeight)return this.blockAt(e,r,u,i);if(n==st.ByPosNoHeight){let{from:h,to:p}=r.doc.lineAt(e);return new pu(h,p-h,0,0,0)}let{firstLine:o,perLine:s,perChar:a}=this.heightMetrics(r,i),l=r.doc.lineAt(e),c=s+l.length*a,f=l.number-o,d=u+s*f+a*(l.from-i-f);return new pu(l.from,l.length,Math.max(u,Math.min(d,u+this.height-c)),c,0)}forEachLine(e,n,r,u,i,o){e=Math.max(e,i),n=Math.min(n,i+this.length);let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(r,i);for(let c=e,f=u;c<=n;){let d=r.doc.lineAt(c);if(c==e){let p=d.number-s;f+=a*p+l*(e-i-p)}let h=a+l*d.length;o(new pu(d.from,d.length,f,h,0)),f+=h,c=d.to+1}}replace(e,n,r){let u=this.length-n;if(u>0){let i=r[r.length-1];i instanceof Mt?r[r.length-1]=new Mt(i.length+u):r.push(null,new Mt(u-1))}if(e>0){let i=r[0];i instanceof Mt?r[0]=new Mt(e+i.length):r.unshift(new Mt(e-1),null)}return gn.of(r)}decomposeLeft(e,n){n.push(new Mt(e-1),null)}decomposeRight(e,n){n.push(null,new Mt(this.length-e-1))}updateHeight(e,n=0,r=!1,u){let i=n+this.length;if(u&&u.from<=n+this.length&&u.more){let o=[],s=Math.max(n,u.from),a=-1;for(u.from>n&&o.push(new Mt(u.from-n-1).updateHeight(e,n));s<=i&&u.more;){let c=e.doc.lineAt(s).length;o.length&&o.push(null);let f=u.heights[u.index++],d=0;f<0&&(d=-f,f=u.heights[u.index++]),a==-1?a=f:Math.abs(f-a)>=k0&&(a=-2);let h=new Zn(c,f,d);h.outdated=!1,o.push(h),s+=c+1}s<=i&&o.push(null,new Mt(i-s).updateHeight(e,s));let l=gn.of(o);return(a<0||Math.abs(l.height-this.height)>=k0||Math.abs(a-this.heightMetrics(e,n).perLine)>=k0)&&(So=!0),tc(this,l)}else(r||this.outdated)&&(this.setHeight(e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class $P extends gn{constructor(e,n,r){super(e.length+(n?1:0)+r.length,e.height+r.height,(n?1:0)|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return this.flags&1}blockAt(e,n,r,u){let i=r+this.left.height;return e<i?this.left.blockAt(e,n,r,u):this.right.blockAt(e,n,i,u+this.left.length+this.break)}lineAt(e,n,r,u,i){let o=u+this.left.height,s=i+this.left.length+this.break,a=n==st.ByHeight?e<o:e<s,l=a?this.left.lineAt(e,n,r,u,i):this.right.lineAt(e,n,r,o,s);if(this.break||(a?l.to<s:l.from>s))return l;let c=n==st.ByPosNoHeight?st.ByPosNoHeight:st.ByPos;return a?l.join(this.right.lineAt(s,c,r,o,s)):this.left.lineAt(s,c,r,u,i).join(l)}forEachLine(e,n,r,u,i,o){let s=u+this.left.height,a=i+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,n,r,u,i,o),n>=a&&this.right.forEachLine(e,n,r,s,a,o);else{let l=this.lineAt(a,st.ByPos,r,u,i);e<l.from&&this.left.forEachLine(e,Math.min(n,l.from-1),r,u,i,o),l.to>=e&&l.from<=n&&o(l),n>l.to&&this.right.forEachLine(Math.max(e,l.to+1),n,r,s,a,o)}}replace(e,n,r){let u=this.left.length+this.break;if(n<u)return this.balanced(this.left.replace(e,n,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-u,n-u,r));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let s of r)i.push(s);if(e>0&&n6(i,o-1),n<this.length){let s=i.length;this.decomposeRight(n,i),n6(i,s)}return gn.of(i)}decomposeLeft(e,n){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(r++,e>=r&&n.push(null)),e>r&&this.right.decomposeLeft(e-r,n)}decomposeRight(e,n){let r=this.left.length,u=r+this.break;if(e>=u)return this.right.decomposeRight(e-u,n);e<r&&this.left.decomposeRight(e,n),this.break&&e<u&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?gn.of(this.break?[e,null,n]:[e,n]):(this.left=tc(this.left,e),this.right=tc(this.right,n),this.setHeight(e.height+n.height),this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,r=!1,u){let{left:i,right:o}=this,s=n+i.length+this.break,a=null;return u&&u.from<=n+i.length&&u.more?a=i=i.updateHeight(e,n,r,u):i.updateHeight(e,n,r),u&&u.from<=s+o.length&&u.more?a=o=o.updateHeight(e,s,r,u):o.updateHeight(e,s,r),a?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function n6(t,e){let n,r;t[e]==null&&(n=t[e-1])instanceof Mt&&(r=t[e+1])instanceof Mt&&t.splice(e-1,3,new Mt(n.length+1+r.length))}const AP=5;class u1{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),u=this.nodes[this.nodes.length-1];u instanceof Zn?u.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Zn(r-this.pos,-1,0)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,r){if(e<n||r.heightRelevant){let u=r.widget?r.widget.estimatedHeight:0,i=r.widget?r.widget.lineBreaks:0;u<0&&(u=this.oracle.lineHeight);let o=n-e;r.block?this.addBlock(new Hy(o,u,r)):(o||i||u>=AP)&&this.addLineDeco(u,i,o)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Zn(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,n){let r=new Mt(n-e);return this.oracle.doc.lineAt(e).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Zn)return e;let n=new Zn(0,-1,0);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,r){let u=this.ensureLine();u.length+=r,u.collapsed+=r,u.widgetHeight=Math.max(u.widgetHeight,e),u.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Zn)&&!this.isCovered?this.nodes.push(new Zn(0,-1,0)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=e;for(let u of this.nodes)u instanceof Zn&&u.updateHeight(this.oracle,r),r+=u?u.length:1;return this.nodes}static build(e,n,r,u){let i=new u1(r,e);return we.spans(n,r,u,i,0),i.finish(r)}}function DP(t,e,n){let r=new kP;return we.compare(t,e,n,r,0),r.changes}class kP{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,r,u){(e<n||r&&r.heightRelevant||u&&u.heightRelevant)&&fo(e,n,this.changes,5)}}function SP(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,u=r.defaultView||window,i=Math.max(0,n.left),o=Math.min(u.innerWidth,n.right),s=Math.max(0,n.top),a=Math.min(u.innerHeight,n.bottom);for(let l=t.parentNode;l&&l!=r.body;)if(zt(l)){let c=window.getComputedStyle(l);if((l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)&&c.overflow!="visible"){let f=l.getBoundingClientRect();i=Math.max(i,f.left),o=Math.min(o,f.right),s=Math.max(s,f.top),a=Math.min(l==t.parentNode?u.innerHeight:a,f.bottom)}l=c.position=="absolute"||c.position=="fixed"?l.offsetParent:l.parentNode}else if(l.nodeType==11)l=l.host;else break;return{left:i-n.left,right:Math.max(i,o)-n.left,top:s-(n.top+e),bottom:Math.max(s,a)-(n.top+e)}}function _P(t){let e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView||window;return e.left<n.innerWidth&&e.right>0&&e.top<n.innerHeight&&e.bottom>0}function wP(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class Ud{constructor(e,n,r,u){this.from=e,this.to=n,this.size=r,this.displaySize=u}static same(e,n){if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let u=e[r],i=n[r];if(u.from!=i.from||u.to!=i.to||u.size!=i.size)return!1}return!0}draw(e,n){return ce.replace({widget:new BP(this.displaySize*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class BP extends er{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class u6{constructor(e,n){this.view=e,this.state=n,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Fp,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Ke.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let r=n.facet(Jm).some(u=>typeof u!="function"&&u.class=="cm-lineWrapping");this.heightOracle=new yP(r),this.stateDeco=r6(n),this.heightMap=gn.empty().applyChanges(this.stateDeco,Ze.empty,this.heightOracle.setDoc(n.doc),[new eu(0,0,0,n.doc.length)]);for(let u=0;u<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());u++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ce.set(this.lineGaps.map(u=>u.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let u=r?n.head:n.anchor;if(!e.some(({from:i,to:o})=>u>=i&&u<=o)){let{from:i,to:o}=this.lineBlockAt(u);e.push(new Vl(i,o))}}return this.viewports=e.sort((r,u)=>r.from-u.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Fp:nc.get(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Ds(e,this.scaler))})}update(e,n=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=r6(this.state);let u=e.changedRanges,i=eu.extendWithRanges(u,DP(r,this.stateDeco,e?e.changes:kt.empty(this.state.doc.length))),o=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);t6(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=o||So)&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let a=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<a.from||n.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,n));let l=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(l||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(_y)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,n=e.contentDOM,r=window.getComputedStyle(n),u=this.heightOracle,i=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Ke.RTL:Ke.LTR;let o=this.heightOracle.mustRefreshForWrapping(i)||this.mustMeasureContent==="refresh",s=n.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let l=0,c=0;if(s.width&&s.height){let{scaleX:$,scaleY:x}=ly(n,s);($>.005&&Math.abs(this.scaleX-$)>.005||x>.005&&Math.abs(this.scaleY-x)>.005)&&(this.scaleX=$,this.scaleY=x,l|=16,o=a=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,d=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,l|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(u.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=16);let h=cy(this.view.contentDOM,!1).y;h!=this.scrollParent&&(this.scrollParent=h,this.scrollAnchorHeight=-1,this.scrollOffset=0);let p=this.getScrollOffset();this.scrollOffset!=p&&(this.scrollAnchorHeight=-1,this.scrollOffset=p),this.scrolledToBottom=py(this.scrollParent||e.win);let m=(this.printing?wP:SP)(n,this.paddingTop),g=m.top-this.pixelViewport.top,C=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(a=!0)),!this.inView&&!this.scrollTarget&&!_P(e.dom))return 0;let O=s.width;if((this.contentDOMWidth!=O||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,l|=16),a){let $=e.docView.measureVisibleLineHeights(this.viewport);if(u.mustRefreshForHeights($)&&(o=!0),o||u.lineWrapping&&Math.abs(O-this.contentDOMWidth)>u.charWidth){let{lineHeight:x,charWidth:_,textHeight:R}=e.docView.measureTextSize();o=x>0&&u.refresh(i,x,_,R,Math.max(5,O/_),$),o&&(e.docView.minWidth=0,l|=16)}g>0&&C>0?c=Math.max(g,C):g<0&&C<0&&(c=Math.min(g,C)),t6();for(let x of this.viewports){let _=x.from==this.viewport.from?$:e.docView.measureVisibleLineHeights(x);this.heightMap=(o?gn.empty().applyChanges(this.stateDeco,Ze.empty,this.heightOracle,[new eu(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(u,0,o,new xP(x.from,_))}So&&(l|=2)}let y=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(l&2&&(l|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),l|=this.updateForViewport()),(l&2||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),u=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,a=new Vl(u.lineAt(o-r*1e3,st.ByHeight,i,0,0).from,u.lineAt(s+(1-r)*1e3,st.ByHeight,i,0,0).to);if(n){let{head:l}=n.range;if(l<a.from||l>a.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=u.lineAt(l,st.ByPos,i,0,0),d;n.y=="center"?d=(f.top+f.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&l<a.from?d=f.top:d=f.bottom-c,a=new Vl(u.lineAt(d-1e3/2,st.ByHeight,i,0,0).from,u.lineAt(d+c+1e3/2,st.ByHeight,i,0,0).to)}}return a}mapViewport(e,n){let r=n.mapPos(e.from,-1),u=n.mapPos(e.to,1);return new Vl(this.heightMap.lineAt(r,st.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(u,st.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},r=0){if(!this.inView)return!0;let{top:u}=this.heightMap.lineAt(e,st.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(n,st.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:s}=this;return(e==0||u<=o-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||i>=s+Math.max(10,Math.min(r,250)))&&u>o-2*1e3&&i<s+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let r=[];for(let u of e)n.touchesRange(u.from,u.to)||r.push(new Ud(n.mapPos(u.from),n.mapPos(u.to),u.size,u.displaySize));return r}ensureLineGaps(e,n){let r=this.heightOracle.lineWrapping,u=r?1e4:2e3,i=u>>1,o=u<<1;if(this.defaultTextDirection!=Ke.LTR&&!r)return[];let s=[],a=(c,f,d,h)=>{if(f-c<i)return;let p=this.state.selection.main,m=[p.from];p.empty||m.push(p.to);for(let C of m)if(C>c&&C<f){a(c,C-10,d,h),a(C+10,f,d,h);return}let g=FP(e,C=>C.from>=d.from&&C.to<=d.to&&Math.abs(C.from-c)<i&&Math.abs(C.to-f)<i&&!m.some(b=>C.from<b&&C.to>b));if(!g){if(f<d.to&&n&&r&&n.visibleRanges.some(O=>O.from<=f&&O.to>=f)){let O=n.moveToLineBoundary(w.cursor(f),!1,!0).head;O>c&&(f=O)}let C=this.gapSize(d,c,f,h),b=r||C<2e6?C:2e6;g=new Ud(c,f,C,b)}s.push(g)},l=c=>{if(c.length<o||c.type!=Ut.Text)return;let f=PP(c.from,c.to,this.stateDeco);if(f.total<o)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,h,p;if(r){let m=u/this.heightOracle.lineLength*this.heightOracle.lineHeight,g,C;if(d!=null){let b=Wl(f,d),O=((this.visibleBottom-this.visibleTop)/2+m)/c.height;g=b-O,C=b+O}else g=(this.visibleTop-c.top-m)/c.height,C=(this.visibleBottom-c.top+m)/c.height;h=ql(f,g),p=ql(f,C)}else{let m=f.total*this.heightOracle.charWidth,g=u*this.heightOracle.charWidth,C=0;if(m>2e6)for(let x of e)x.from>=c.from&&x.from<c.to&&x.size!=x.displaySize&&x.from*this.heightOracle.charWidth+C<this.pixelViewport.left&&(C=x.size-x.displaySize);let b=this.pixelViewport.left+C,O=this.pixelViewport.right+C,y,$;if(d!=null){let x=Wl(f,d),_=((O-b)/2+g)/m;y=x-_,$=x+_}else y=(b-g)/m,$=(O+g)/m;h=ql(f,y),p=ql(f,$)}h>c.from&&a(c.from,h,c,f),p<c.to&&a(p,c.to,c,f)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(l):l(c);return s}gapSize(e,n,r,u){let i=Wl(u,r)-Wl(u,n);return this.heightOracle.lineWrapping?e.height*i:u.total*this.heightOracle.charWidth*i}updateLineGaps(e){Ud.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=ce.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let r=[];we.spans(n,this.viewport.from,this.viewport.to,{span(i,o){r.push({from:i,to:o})},point(){}},20);let u=0;if(r.length!=this.visibleRanges.length)u=12;else for(let i=0;i<r.length&&!(u&8);i++){let o=this.visibleRanges[i],s=r[i];(o.from!=s.from||o.to!=s.to)&&(u|=4,e&&e.mapPos(o.from,-1)==s.from&&e.mapPos(o.to,1)==s.to||(u|=8))}return this.visibleRanges=r,u}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||Ds(this.heightMap.lineAt(e,st.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||Ds(this.heightMap.lineAt(this.scaler.fromDOM(e),st.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop*this.scaleY:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+12-this.paddingTop);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return Ds(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Vl{constructor(e,n){this.from=e,this.to=n}}function PP(t,e,n){let r=[],u=t,i=0;return we.spans(n,t,e,{span(){},point(o,s){o>u&&(r.push({from:u,to:o}),i+=o-u),u=s}},20),u<e&&(r.push({from:u,to:e}),i+=e-u),{total:i,ranges:r}}function ql({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let u=0;;u++){let{from:i,to:o}=e[u],s=o-i;if(r<=s)return i+r;r-=s}}function Wl(t,e){let n=0;for(let{from:r,to:u}of t.ranges){if(e<=u){n+=e-r;break}n+=u-r}return n/t.total}function FP(t,e){for(let n of t)if(e(n))return n}const Fp={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};function r6(t){let e=t.facet(Jc).filter(r=>typeof r!="function"),n=t.facet(e1).filter(r=>typeof r!="function");return n.length&&e.push(we.join(n)),e}class nc{constructor(e,n){this.scale=e,this.viewports=n}static get(e,n,r){let u=0,i=0,o=0,s=r.map(({from:l,to:c})=>{let f=n.lineAt(l,st.ByPos,e,0,0).top,d=n.lineAt(c,st.ByPos,e,0,0).bottom;return u+=d-f,{from:l,to:c,top:f,bottom:d,domTop:0,domBottom:0}});if(n.height-u<10)return Fp;let a=(7e6-u)/(n.height-u);for(let l of s)l.domTop=o+(l.top-i)*a,o=l.domBottom=l.domTop+(l.bottom-l.top),i=l.bottom;return new nc(a,s)}toDOM(e){for(let n=0,r=0,u=0;;n++){let i=n<this.viewports.length?this.viewports[n]:null;if(!i||e<i.top)return u+(e-r)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);r=i.bottom,u=i.domBottom}}fromDOM(e){for(let n=0,r=0,u=0;;n++){let i=n<this.viewports.length?this.viewports[n]:null;if(!i||e<i.domTop)return r+(e-u)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);r=i.bottom,u=i.domBottom}}eq(e){return e instanceof nc?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,r)=>n.from==e.viewports[r].from&&n.to==e.viewports[r].to):!1}}function Ds(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new pu(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(u=>Ds(u,e)):t._content)}const Yl=G.define({combine:t=>t.join(" ")}),Qp=G.define({combine:t=>t.indexOf(!0)>-1}),Tp=Vr.newName(),Ky=Vr.newName(),Jy=Vr.newName(),ex={"&light":"."+Ky,"&dark":"."+Jy};function Ip(t,e,n){return new Vr(e,{finish(r){return/&/.test(r)?r.replace(/&\w*/,u=>{if(u=="&")return t;if(!n||!n[u])throw new RangeError(`Unsupported selector: ${u}`);return n[u]}):t+" "+r}})}const QP=Ip("."+Tp,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},".cm-panels-top":{top:"0"},".cm-panels-bottom":{bottom:"0"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"baseline",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{background:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 0) no-repeat",backgroundSize:".4em",backgroundPosition:"calc(min(50%, 0px)) center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ex),TP={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Xd=Y.ie&&Y.ie_version<=11;class IP{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new fB,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(Y.ie&&Y.ie_version<=11||Y.ios&&e.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&Y.android&&e.constructor.EDIT_CONTEXT!==!1&&!(Y.chrome&&Y.chrome_version<126)&&(this.editContext=new ZP(e),e.state.facet(hr)&&(e.contentDOM.editContext=this.editContext.editContext)),Xd&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(this.pendingRecords().length>0),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,r)=>n!=e[r]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,u=this.selectionRange;if(r.state.facet(hr)?r.root.activeElement!=this.dom:!zs(this.dom,u))return;let i=u.anchorNode&&r.docView.tile.nearest(u.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(Y.ie&&Y.ie_version<=11||Y.android&&Y.chrome)&&!r.state.selection.main.empty&&u.focusNode&&Zs(u.focusNode,u.focusOffset,u.anchorNode,u.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=ta(e.root);if(!n)return!1;let r=Y.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&zP(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let u=zs(this.dom,r);return u&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&hB(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),u&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let r=this.dom;r;)if(zt(r))!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,TP),Xd&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Xd&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var r;if(!this.delayedAndroidKey){let u=()=>{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&ho(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(u)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,r=-1,u=!1;for(let i of e){let o=this.readMutation(i);o&&(o.typeOver&&(u=!0),n==-1?{from:n,to:r}=o:(n=Math.min(o.from,n),r=Math.max(o.to,r)))}return{from:n,to:r,typeOver:u}}readChange(){let{from:e,to:n,typeOver:r}=this.processRecords(),u=this.selectionChanged&&zs(this.dom,this.selectionRange);if(e<0&&!u)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new eP(this.view,e,n,r);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.selectionChanged,r=this.readChange();if(!r)return this.view.requestMeasure(),!1;let u=this.view.state,i=My(this.view,r);return this.view.state==u&&(r.domChanged||n)&&this.view.update([]),i}readMutation(e){let n=this.view.docView.tile.nearest(e.target);if(!n||n.isWidget())return null;if(n.markDirty(e.type=="attributes"),e.type=="childList"){let r=i6(n,e.previousSibling||e.target.previousSibling,-1),u=i6(n,e.nextSibling||e.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:u?n.posBefore(u):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(hr)!=e.state.facet(hr)&&(e.view.contentDOM.editContext=e.state.facet(hr)?this.editContext.editContext:null))}destroy(){var e,n,r;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let u of this.scrollTargets)u.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function i6(t,e,n){for(;e;){let r=Ot.get(e);if(r&&r.parent==t)return r;let u=e.parentNode;e=u!=t.dom?u:n>0?e.nextSibling:e.previousSibling}return null}function o6(t,e){let n=e.startContainer,r=e.startOffset,u=e.endContainer,i=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor,1);return Zs(o.node,o.offset,u,i)&&([n,r,u,i]=[u,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:u,focusOffset:i}}function zP(t,e){if(e.getComposedRanges){let u=e.getComposedRanges(t.root)[0];if(u)return o6(t,u)}let n=null;function r(u){u.preventDefault(),u.stopImmediatePropagation(),n=u.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),n?o6(t,n):null}class ZP{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=r=>{let u=e.state.selection.main,{anchor:i,head:o}=u,s=this.toEditorPos(r.updateRangeStart),a=this.toEditorPos(r.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:r.updateRangeStart,editorBase:s,drifted:!1});let l=a-s>r.text.length;s==this.from&&i<this.from?s=i:a==this.to&&i>this.to&&(a=i);let c=Ly(e.state.sliceDoc(s,a),r.text,(l?u.from:u.to)-s,l?"end":null);if(!c){let d=w.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));Bp(d,u)||e.dispatch({selection:d,userEvent:"select"});return}let f={from:c.from+s,to:c.toA+s,insert:Ze.of(r.text.slice(c.from,c.toB).split(`
|
|
10
|
+
`))};if((Y.mac||Y.android)&&f.from==o-1&&/^\. ?$/.test(r.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(f={from:s,to:a,insert:Ze.of([r.text.replace("."," ")])}),this.pendingContextChange=f,!e.state.readOnly){let d=this.to-this.from+(f.to-f.from+f.insert.length);n1(e,f,w.single(this.toEditorPos(r.selectionStart,d),this.toEditorPos(r.selectionEnd,d)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),f.from<f.to&&!f.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(n.text.slice(Math.max(0,r.updateRangeStart-1),Math.min(n.text.length,r.updateRangeStart+1)))&&this.handlers.compositionend(r)},this.handlers.characterboundsupdate=r=>{let u=[],i=null;for(let o=this.toEditorPos(r.rangeStart),s=this.toEditorPos(r.rangeEnd);o<s;o++){let a=e.coordsForChar(o);i=a&&new DOMRect(a.left,a.top,a.right-a.left,a.bottom-a.top)||i||new DOMRect,u.push(i)}n.updateCharacterBounds(r.rangeStart,u)},this.handlers.textformatupdate=r=>{let u=[];for(let i of r.getTextFormats()){let o=i.underlineStyle,s=i.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(s)){let a=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);if(a<l){let c=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(s)?1:2}px`;u.push(ce.mark({attributes:{style:c}}).range(a,l))}}}e.dispatch({effects:By.of(ce.set(u))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:r}=this.composing;this.composing=null,r&&this.reset(e.state)}};for(let r in this.handlers)n.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{let u=ta(r.root);u&&u.rangeCount&&this.editContext.updateSelectionBounds(u.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,r=!1,u=this.pendingContextChange;return e.changes.iterChanges((i,o,s,a,l)=>{if(r)return;let c=l.length-(o-i);if(u&&o>=u.to)if(u.from==i&&u.to==o&&u.insert.eq(l)){u=this.pendingContextChange=null,n+=c,this.to+=c;return}else u=null,this.revertPending(e.state);if(i+=n,o+=n,o<=this.from)this.from+=c,this.to+=c;else if(i<this.to){if(i<this.from||o>this.to||this.to-this.from+l.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),l.toString()),this.to+=c}n+=c}),u&&!r&&this.revertPending(e.state),!r}update(e){let n=this.pendingContextChange,r=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(r.from,r.to)&&e.transactions.some(u=>!u.isUserEvent("input.type")&&u.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||n)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),u=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=u)&&this.editContext.updateSelection(r,u)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to<e.doc.length&&this.to-n<500||this.to-this.from>1e4*3)}toEditorPos(e,n=this.to-this.from){e=Math.min(e,n);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let n=this.composing;return n&&n.drifted?n.contextBase+(e-n.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class X{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.clearAnnouncement=-1,this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(u=>u.forEach(i=>r(i,this)))||(u=>this.update(u)),this.dispatch=this.dispatch.bind(this),this._root=e.root||dB(e.parent)||document,this.viewState=new u6(this,e.state||ze.create(e)),e.scrollTo&&e.scrollTo.is(Nl)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(uo).map(u=>new Rd(u));for(let u of this.plugins)u.update(this);this.observer=new IP(this),this.inputState=new rP(this),this.inputState.ensureHandlers(this.plugins),this.docView=new U3(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let n=e.length==1&&e[0]instanceof $t?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,u,i=this.state;for(let d of e){if(d.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=d.state}if(this.destroyed){this.viewState.state=i;return}let o=this.hasFocus,s=0,a=null;e.some(d=>d.annotation(Wy))?(this.inputState.notifiedFocused=o,s=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=Yy(i,o),a||(s=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(ze.phrases)!=this.state.facet(ze.phrases))return this.setState(i);u=K0.create(this,i,e),u.flags|=s;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:h}=d.state.selection,{x:p,y:m}=this.state.facet(X.cursorScrollMargin);f=new po(h.empty?h:w.cursor(h.head,h.head>h.anchor?-1:1),"nearest","nearest",m,p)}for(let h of d.effects)h.is(Nl)&&(f=h.value.clip(this.state))}this.viewState.update(u,f),this.bidiCache=uc.update(this.bidiCache,u.changes),u.empty||(this.updatePlugins(u),this.inputState.update(u)),n=this.docView.update(u),this.state.facet(As)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(u.startState.facet(Yl)!=u.state.facet(Yl)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!u.empty)for(let d of this.state.facet(kp))try{d(u)}catch(h){wn(this.state,h,"update listener")}(a||c)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!My(this,c)&&l.force&&ho(this.contentDOM,l.key,l.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new u6(this,e),this.plugins=e.facet(uo).map(r=>new Rd(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new U3(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(uo),r=e.state.facet(uo);if(n!=r){let u=[];for(let i of r){let o=n.indexOf(i);if(o<0)u.push(new Rd(i));else{let s=this.plugins[o];s.mustUpdate=e,u.push(s)}}for(let i of this.plugins)i.mustUpdate!=e&&i.destroy(this);this.plugins=u,this.pluginMap.clear()}else for(let u of this.plugins)u.mustUpdate=e;for(let u=0;u<this.plugins.length;u++)this.plugins[u].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(r){wn(this.state,r,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,r=this.viewState.scrollParent,u=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o,scaleY:s}=this.viewState;Math.abs(u-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0){if(py(r||this.win))i=-1,o=this.viewState.heightMap.height/this.viewState.scaleY;else{let p=this.viewState.scrollAnchorAt(u);i=p.from,o=p.top}s=this.viewState.scaleY}this.updateState=1;let l=this.viewState.measure();if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let f=c.map(p=>{try{return p.read(this)}catch(m){return wn(this.state,m),s6}}),d=K0.create(this,this.state,[]),h=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),h=this.docView.update(d),h&&this.docViewUpdate());for(let p=0;p<c.length;p++)if(f[p]!=s6)try{let m=c[p];m.write&&m.write(f[p],this)}catch(m){wn(this.state,m)}if(h&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let m=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)/this.viewState.scaleY-o/s;if((m>1||m<-1)&&!(Y.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(r==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){u=u+m,r?i<0?r.scrollTop=r.scrollHeight:r.scrollTop+=m:this.win.scrollBy(0,m),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let a of this.state.facet(kp))a(n)}get themeClasses(){return Tp+" "+(this.state.facet(Qp)?Jy:Ky)+" "+this.state.facet(Yl)}updateAttrs(){let e=a6(this,Py,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(hr)?"true":"false",class:"cm-content",style:`${Y.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),a6(this,Jm,n);let r=this.observer.ignore(()=>{let u=Z3(this.contentDOM,this.contentAttrs,n),i=Z3(this.dom,this.editorAttrs,e);return u||i});return this.editorAttrs=e,this.contentAttrs=n,r}showAnnouncements(e){let n=!0;for(let r of e)for(let u of r.effects)if(u.is(X.announce)){n&&(this.announceDOM.textContent="",this.win.clearTimeout(this.clearAnnouncement),this.clearAnnouncement=this.win.setTimeout(()=>{this.announceDOM.textContent=" "},200),n=!1);let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=u.value}}mountStyles(){this.styleModules=this.state.facet(As);let e=this.state.facet(X.cspNonce);Vr.mount(this.root,this.styleModules.concat(QP).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.plugin!=e)&&this.pluginMap.set(e,n=this.plugins.find(r=>r.plugin==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,r){return Nd(this,e,X3(this,e,n,r))}moveByGroup(e,n){return Nd(this,e,X3(this,e,n,r=>WB(this,e.head,r)))}visualLineSide(e,n){return n?w.cursor(e.to,1):w.cursor(e.from,-1)}moveToLineBoundary(e,n,r=!0){return qB(this,e,n,r)}moveVertically(e,n,r){return Nd(this,e,YB(this,e,n,r))}domAtPos(e,n=1){return this.docView.domAtPos(e,n)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){this.readMeasured();let r=wp(this,e,n);return r&&r.pos}posAndSideAtCoords(e,n=!0){return this.readMeasured(),wp(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let r=this.state.doc.lineAt(e),u=this.bidiSpans(r),i=u[ju.find(u,e-r.from,-1,n)];return r.length&&(e==r.from&&n<0||e==r.to&&n>0)&&i.dir!=this.textDirectionAt(r.from)&&(e==r.to?(e=r.from+i.from,n=1):(e=r.from+i.to,n=-1)),this.docView.coordsAt(e,n,i.dir==Ke.RTL)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Sy)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>RP)return Cy(e.length);let n=this.textDirectionAt(e.from),r;for(let i of this.bidiCache)if(i.from==e.from&&i.dir==n&&(i.fresh||vy(i.isolates,r=M3(this,e))))return i.order;r||(r=M3(this,e));let u=CB(e.text,n,r);return this.bidiCache.push(new uc(e.from,e.to,n,r,!0,u)),u}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Y.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{hy(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.win.clearTimeout(this.clearAnnouncement),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){var r,u,i,o;return Nl.of(new po(typeof e=="number"?w.cursor(e):e,(r=n.y)!==null&&r!==void 0?r:"nearest",(u=n.x)!==null&&u!==void 0?u:"nearest",(i=n.yMargin)!==null&&i!==void 0?i:5,(o=n.xMargin)!==null&&o!==void 0?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return Nl.of(new po(w.cursor(r.from),"start","start",r.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return xt.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return xt.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=Vr.newName(),u=[Yl.of(r),As.of(Ip(`.${r}`,e))];return n&&n.dark&&u.push(Qp.of(!0)),u}static baseTheme(e){return Ku.lowest(As.of(Ip("."+Tp,e,ex)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),u=r&&Ot.get(r)||Ot.get(e);return((n=u?.root)===null||n===void 0?void 0:n.view)||null}}X.styleModule=As;X.inputHandler=Dy;X.clipboardInputFilter=Hm;X.clipboardOutputFilter=Km;X.scrollHandler=wy;X.focusChangeEffect=ky;X.perLineTextDirection=Sy;X.exceptionSink=Ay;X.updateListener=kp;X.editable=hr;X.mouseSelectionStyle=$y;X.dragMovesSelection=Ey;X.clickAddsSelectionRange=xy;X.decorations=Jc;X.blockWrappers=Fy;X.outerDecorations=e1;X.atomicRanges=za;X.bidiIsolatedRanges=Qy;X.cursorScrollMargin=G.define({combine:t=>{let e=5,n=5;for(let r of t)typeof r=="number"?e=n=r:{x:e,y:n}=r;return{x:e,y:n}}});X.scrollMargins=Iy;X.darkTheme=Qp;X.cspNonce=G.define({combine:t=>t.length?t[0]:""});X.contentAttributes=Jm;X.editorAttributes=Py;X.lineWrapping=X.contentAttributes.of({class:"cm-lineWrapping"});X.announce=Oe.define();const RP=4096,s6={};class uc{constructor(e,n,r,u,i,o){this.from=e,this.to=n,this.dir=r,this.isolates=u,this.fresh=i,this.order=o}static update(e,n){if(n.empty&&!e.some(i=>i.fresh))return e;let r=[],u=e.length?e[e.length-1].dir:Ke.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir==u&&!n.touchesRange(o.from,o.to)&&r.push(new uc(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return r}}function a6(t,e,n){for(let r=t.state.facet(e),u=r.length-1;u>=0;u--){let i=r[u],o=typeof i=="function"?i(t):i;o&&Wm(o,n)}return n}const jP=Y.mac?"mac":Y.windows?"win":Y.linux?"linux":"key";function MP(t,e){const n=t.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let u,i,o,s;for(let a=0;a<n.length-1;++a){const l=n[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))u=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))e=="mac"?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return u&&(r="Alt-"+r),i&&(r="Ctrl-"+r),s&&(r="Meta-"+r),o&&(r="Shift-"+r),r}function Gl(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const LP=Ku.default(X.domEventHandlers({keydown(t,e){return nx(tx(e.state),t,e,"editor")}})),qo=G.define({enables:LP}),l6=new WeakMap;function tx(t){let e=t.facet(qo),n=l6.get(e);return n||l6.set(e,n=XP(e.reduce((r,u)=>r.concat(u),[]))),n}function NP(t,e,n){return nx(tx(t.state),e,t,n)}let jr=null;const UP=4e3;function XP(t,e=jP){let n=Object.create(null),r=Object.create(null),u=(o,s)=>{let a=r[o];if(a==null)r[o]=s;else if(a!=s)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},i=(o,s,a,l,c)=>{var f,d;let h=n[o]||(n[o]=Object.create(null)),p=s.split(/ (?!$)/).map(C=>MP(C,e));for(let C=1;C<p.length;C++){let b=p.slice(0,C).join(" ");u(b,!0),h[b]||(h[b]={preventDefault:!0,stopPropagation:!1,run:[O=>{let y=jr={view:O,prefix:b,scope:o};return setTimeout(()=>{jr==y&&(jr=null)},UP),!0}]})}let m=p.join(" ");u(m,!1);let g=h[m]||(h[m]={preventDefault:!1,stopPropagation:!1,run:((d=(f=h._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});a&&g.run.push(a),l&&(g.preventDefault=!0),c&&(g.stopPropagation=!0)};for(let o of t){let s=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let l of s){let c=n[l]||(n[l]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=o;for(let d in c)c[d].run.push(h=>f(h,zp))}let a=o[e]||o.key;if(a)for(let l of s)i(l,a,o.run,o.preventDefault,o.stopPropagation),o.shift&&i(l,"Shift-"+a,o.shift,o.preventDefault,o.stopPropagation)}return n}let zp=null;function nx(t,e,n,r){zp=e;let u=iB(e),i=kn(u,0),o=Zu(i)==u.length&&u!=" ",s="",a=!1,l=!1,c=!1;jr&&jr.view==n&&jr.scope==r&&(s=jr.prefix+" ",Uy.indexOf(e.keyCode)<0&&(l=!0,jr=null));let f=new Set,d=g=>{if(g){for(let C of g.run)if(!f.has(C)&&(f.add(C),C(n)))return g.stopPropagation&&(c=!0),!0;g.preventDefault&&(g.stopPropagation&&(c=!0),l=!0)}return!1},h=t[r],p,m;return h&&(d(h[s+Gl(u,e,!o)])?a=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Y.windows&&e.ctrlKey&&e.altKey)&&!(Y.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(p=qr[e.keyCode])&&p!=u?(d(h[s+Gl(p,e,!0)])||e.shiftKey&&(m=Js[e.keyCode])!=u&&m!=p&&d(h[s+Gl(m,e,!1)]))&&(a=!0):o&&e.shiftKey&&d(h[s+Gl(u,e,!0)])&&(a=!0),!a&&d(h._any)&&(a=!0)),l&&(a=!0),a&&c&&e.stopPropagation(),zp=null,a}class Bi{constructor(e,n,r,u,i){this.className=e,this.left=n,this.top=r,this.width=u,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,r){if(r.empty){let u=e.coordsAtPos(r.head,r.assoc||1);if(!u)return[];let i=ux(e);return[new Bi(n,u.left-i.left,u.top-i.top,null,u.bottom-u.top)]}else return VP(e,n,r)}}function ux(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Ke.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function c6(t,e,n,r){let u=t.coordsAtPos(e,n*2);if(!u)return r;let i=t.dom.getBoundingClientRect(),o=(u.top+u.bottom)/2,s=t.posAtCoords({x:i.left+1,y:o}),a=t.posAtCoords({x:i.right-1,y:o});return s==null||a==null?r:{from:Math.max(r.from,Math.min(s,a)),to:Math.min(r.to,Math.max(s,a))}}function VP(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let r=Math.max(n.from,t.viewport.from),u=Math.min(n.to,t.viewport.to),i=t.textDirection==Ke.LTR,o=t.contentDOM,s=o.getBoundingClientRect(),a=ux(t),l=o.querySelector(".cm-line"),c=l&&window.getComputedStyle(l),f=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=s.right-(c?parseInt(c.paddingRight):0),h=_p(t,r,1),p=_p(t,u,-1),m=h.type==Ut.Text?h:null,g=p.type==Ut.Text?p:null;if(m&&(t.lineWrapping||h.widgetLineBreaks)&&(m=c6(t,r,1,m)),g&&(t.lineWrapping||p.widgetLineBreaks)&&(g=c6(t,u,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return b(O(n.from,n.to,m));{let $=m?O(n.from,null,m):y(h,!1),x=g?O(null,n.to,g):y(p,!0),_=[];return(m||h).to<(g||p).from-(m&&g?1:0)||h.widgetLineBreaks>1&&$.bottom+t.defaultLineHeight/2<x.top?_.push(C(f,$.bottom,d,x.top)):$.bottom<x.top&&t.elementAtHeight(($.bottom+x.top)/2).type==Ut.Text&&($.bottom=x.top=($.bottom+x.top)/2),b($).concat(_).concat(b(x))}function C($,x,_,R){return new Bi(e,$-a.left,x-a.top,Math.max(0,_-$),R-x)}function b({top:$,bottom:x,horizontal:_}){let R=[];for(let ue=0;ue<_.length;ue+=2)R.push(C(_[ue],$,_[ue+1],x));return R}function O($,x,_){let R=1e9,ue=-1e9,re=[];function oe(W,te,he,ke,Se){let Ne=t.coordsAtPos(W,W==_.to?-2:2),bt=t.coordsAtPos(he,he==_.from?2:-2);!Ne||!bt||(R=Math.min(Ne.top,bt.top,R),ue=Math.max(Ne.bottom,bt.bottom,ue),Se==Ke.LTR?re.push(i&&te?f:Ne.left,i&&ke?d:bt.right):re.push(!i&&ke?f:bt.left,!i&&te?d:Ne.right))}let ee=$??_.from,Ee=x??_.to;for(let W of t.visibleRanges)if(W.to>ee&&W.from<Ee)for(let te=Math.max(W.from,ee),he=Math.min(W.to,Ee);;){let ke=t.state.doc.lineAt(te);for(let Se of t.bidiSpans(ke)){let Ne=Se.from+ke.from,bt=Se.to+ke.from;if(Ne>=he)break;bt>te&&oe(Math.max(Ne,te),$==null&&Ne<=ee,Math.min(bt,he),x==null&&bt>=Ee,Se.dir)}if(te=ke.to+1,te>=he)break}return re.length==0&&oe(ee,$==null,Ee,x==null,t.textDirection),{top:R,bottom:ue,horizontal:re}}function y($,x){let _=s.top+(x?$.top:$.bottom);return{top:_,bottom:_,horizontal:[]}}}function qP(t,e){return t.constructor==e.constructor&&t.eq(e)}class WP{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(S0)!=e.state.facet(S0)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,r=e.facet(S0);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`)}draw(e){if(e.length!=this.drawn.length||e.some((n,r)=>!qP(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let u of e)u.update&&n&&u.constructor&&this.drawn[r].constructor&&u.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(u.draw(),n);for(;n;){let u=n.nextSibling;n.remove(),n=u}this.drawn=e,Y.webkit&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const S0=G.define();function rx(t){return[xt.define(e=>new WP(e,t)),S0.of(t)]}const Zp=!Y.ios,_o=G.define({combine(t){return Ju(t,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function YP(t={}){return[_o.of(t),GP,HP,JP,_y.of(!0)]}function ix(t){return t.startState.facet(_o)!=t.state.facet(_o)}const GP=rx({above:!0,markers(t){let{state:e}=t,n=e.facet(_o),r=[];for(let u of e.selection.ranges){let i=u==e.selection.main;if(u.empty||n.drawRangeCursor&&!(i&&Y.ios&&n.iosSelectionHandles)){let o=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=u.empty?u:w.cursor(u.head,u.assoc);for(let a of Bi.forRange(t,o,s))r.push(a)}}return r},update(t,e){t.transactions.some(r=>r.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=ix(t);return n&&f6(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){f6(e.state,t)},class:"cm-cursorLayer"});function f6(t,e){e.style.animationDuration=t.facet(_o).cursorBlinkRate+"ms"}const HP=rx({above:!1,markers(t){let e=[],{main:n,ranges:r}=t.state.selection;for(let u of r)if(!u.empty&&(Zp||u!=n))for(let i of Bi.forRange(t,"cm-selectionBackground",u))e.push(i);if(Y.ios&&!n.empty&&t.state.facet(_o).iosSelectionHandles){for(let u of Bi.forRange(t,"cm-selectionHandle cm-selectionHandle-start",w.cursor(n.from,1)))e.push(u);for(let u of Bi.forRange(t,"cm-selectionHandle cm-selectionHandle-end",w.cursor(n.to,1)))e.push(u)}return e},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||ix(t)},class:"cm-selectionLayer"}),KP=Y.gecko&&Y.gecko_version==153?"#ffffff01":"transparent",JP=Ku.highest(X.theme({".cm-line":{...Zp?{"& ::selection, &::selection":{backgroundColor:`${KP} !important`}}:{},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important",...Zp?{"&::selection, & ::selection":{backgroundColor:"Highlight !important"}}:{}}}})),ox=Oe.define({map(t,e){return t==null?null:e.mapPos(t)}}),ks=jt.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,r)=>r.is(ox)?r.value:n,t)}}),eF=xt.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(ks);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(ks)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(ks),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(ks)!=t&&this.view.dispatch({effects:ox.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function tF(){return[ks,eF]}function d6(t,e,n,r,u){e.lastIndex=0;for(let i=t.iterRange(n,r),o=n,s;!i.next().done;o+=i.value.length)if(!i.lineBreak)for(;s=e.exec(i.value);)u(o+s.index,s)}function nF(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:u,to:i}of n)u=Math.max(t.state.doc.lineAt(u).from,u-e),i=Math.min(t.state.doc.lineAt(i).to,i+e),r.length&&r[r.length-1].to>=u?r[r.length-1].to=i:r.push({from:u,to:i});return r}class uF{constructor(e){const{regexp:n,decoration:r,decorate:u,boundary:i,maxLength:o=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,u)this.addMatch=(s,a,l,c)=>u(c,l,l+s[0].length,s,a);else if(typeof r=="function")this.addMatch=(s,a,l,c)=>{let f=r(s,a,l);f&&c(l,l+s[0].length,f)};else if(r)this.addMatch=(s,a,l,c)=>c(l,l+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=o}createDeco(e){let n=new Yu,r=n.add.bind(n);for(let{from:u,to:i}of nF(e,this.maxLength))d6(e.state.doc,this.regexp,u,i,(o,s)=>this.addMatch(s,e,o,r));return n.finish()}updateDeco(e,n){let r=1e9,u=-1;return e.docChanged&&e.changes.iterChanges((i,o,s,a)=>{a>=e.view.viewport.from&&s<=e.view.viewport.to&&(r=Math.min(s,r),u=Math.max(a,u))}),e.viewportMoved||u-r>1e3?this.createDeco(e.view):u>-1?this.updateRange(e.view,n.map(e.changes),r,u):n}updateRange(e,n,r,u){for(let i of e.visibleRanges){let o=Math.max(i.from,r),s=Math.min(i.to,u);if(s>=o){let a=e.state.doc.lineAt(o),l=a.to<s?e.state.doc.lineAt(s):a,c=Math.max(i.from,a.from),f=Math.min(i.to,l.to);if(this.boundary){for(;o>a.from;o--)if(this.boundary.test(a.text[o-1-a.from])){c=o;break}for(;s<l.to;s++)if(this.boundary.test(l.text[s-l.from])){f=s;break}}let d=[],h,p=(m,g,C)=>d.push(C.range(m,g));if(a==l)for(this.regexp.lastIndex=c-a.from;(h=this.regexp.exec(a.text))&&h.index<f-a.from;)this.addMatch(h,e,h.index+a.from,p);else d6(e.state.doc,this.regexp,c,f,(m,g)=>this.addMatch(g,e,m,p));n=n.update({filterFrom:c,filterTo:f,filter:(m,g)=>m<c||g>f,add:d})}}return n}}const Rp=/x/.unicode!=null?"gu":"g",rF=new RegExp(`[\0-\b
|
|
11
|
+
--\u2028\u2029\uFEFF-]`,Rp),iF={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Vd=null;function oF(){var t;if(Vd==null&&typeof document<"u"&&document.body){let e=document.body.style;Vd=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Vd||!1}const _0=G.define({combine(t){let e=Ju(t,{render:null,specialChars:rF,addSpecialChars:null});return(e.replaceTabs=!oF())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Rp)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Rp)),e}});function sF(t={}){return[_0.of(t),aF()]}let h6=null;function aF(){return h6||(h6=xt.fromClass(class{constructor(t){this.view=t,this.decorations=ce.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(_0)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new uF({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:u}=n.state,i=kn(e[0],0);if(i==9){let o=u.lineAt(r),s=n.state.tabSize,a=yu(o.text,s,r-o.from);return ce.replace({widget:new dF((s-a%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=ce.replace({widget:new fF(t,i)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(_0);t.startState.facet(_0)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const lF="•";function cF(t){return t>=32?lF:t==10?"":String.fromCharCode(9216+t)}class fF extends er{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=cF(this.code),r=e.state.phrase("Control character")+" "+(iF[this.code]||"0x"+this.code.toString(16)),u=this.options.render&&this.options.render(this.code,r,n);if(u)return u;let i=document.createElement("span");return i.textContent=n,i.title=r,i.setAttribute("aria-label",r),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class dF extends er{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function hF(){return mF}const pF=ce.line({class:"cm-activeLine"}),mF=xt.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let u=t.lineBlockAt(r.head);u.from>e&&(n.push(pF.range(u.from)),e=u.from)}return ce.set(n)}},{decorations:t=>t.decorations}),jp=2e3;function gF(t,e,n){let r=Math.min(e.line,n.line),u=Math.max(e.line,n.line),i=[];if(e.off>jp||n.off>jp||e.col<0||n.col<0){let o=Math.min(e.off,n.off),s=Math.max(e.off,n.off);for(let a=r;a<=u;a++){let l=t.doc.line(a);l.length<=s&&i.push(w.range(l.from+o,l.to+s))}}else{let o=Math.min(e.col,n.col),s=Math.max(e.col,n.col);for(let a=r;a<=u;a++){let l=t.doc.line(a),c=gp(l.text,o,t.tabSize,!0);if(c<0)i.push(w.cursor(l.to));else{let f=gp(l.text,s,t.tabSize);i.push(w.range(l.from+c,l.from+f))}}}return i}function OF(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function p6(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),r=t.state.doc.lineAt(n),u=n-r.from,i=u>jp?-1:u==r.length?OF(t,e.clientX):yu(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:i,off:u}}function bF(t,e){let n=p6(t,e),r=t.state.selection;return n?{update(u){if(u.docChanged){let i=u.changes.mapPos(u.startState.doc.line(n.line).from),o=u.state.doc.lineAt(i);n={line:o.number,col:n.col,off:Math.min(n.off,o.length)},r=r.map(u.changes)}},get(u,i,o){let s=p6(t,u);if(!s)return r;let a=gF(t.state,n,s);return a.length?o?w.create(a.concat(r.ranges)):w.create(a):r}}:null}function vF(t){let e=(n=>n.altKey&&n.button==0);return X.mouseSelectionStyle.of((n,r)=>e(r)?bF(n,r):null)}const CF={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},yF={style:"cursor: crosshair"};function xF(t={}){let[e,n]=CF[t.key||"Alt"],r=xt.fromClass(class{constructor(u){this.view=u,this.isDown=!1}set(u){this.isDown!=u&&(this.isDown=u,this.view.update([]))}},{eventObservers:{keydown(u){this.set(u.keyCode==e||n(u))},keyup(u){(u.keyCode==e||!n(u))&&this.set(!1)},mousemove(u){this.set(n(u))}}});return[r,X.contentAttributes.of(u=>{var i;return!((i=u.plugin(r))===null||i===void 0)&&i.isDown?yF:null})]}const Hl="-10000px";class sx{constructor(e,n,r,u){this.facet=n,this.createTooltipView=r,this.removeTooltipView=u,this.input=e.state.facet(n),this.tooltips=this.input.filter(o=>o);let i=null;this.tooltipViews=this.tooltips.map(o=>i=r(o,i))}update(e,n){var r;let u=e.state.facet(this.facet),i=u.filter(a=>a);if(u===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let o=[],s=n?[]:null;for(let a=0;a<i.length;a++){let l=i[a],c=-1;if(l){for(let f=0;f<this.tooltips.length;f++){let d=this.tooltips[f];d&&d.create==l.create&&(c=f)}if(c<0)o[a]=this.createTooltipView(l,a?o[a-1]:null),s&&(s[a]=!!l.above);else{let f=o[a]=this.tooltipViews[c];s&&(s[a]=n[c]),f.update&&f.update(e)}}}for(let a of this.tooltipViews)o.indexOf(a)<0&&(this.removeTooltipView(a),(r=a.destroy)===null||r===void 0||r.call(a));return n&&(s.forEach((a,l)=>n[l]=a),n.length=s.length),this.input=u,this.tooltips=i,this.tooltipViews=o,!0}}function ax(t){let e=t.dom.ownerDocument.documentElement,n=e.clientWidth,r=getComputedStyle(e);if(!/stable/.test(r.scrollbarGutter||""))return{left:0,right:n};let u=e.getBoundingClientRect(),i=t.win.scrollX;return{left:Math.max(0,u.left+i-parseFloat(r.marginLeft)),right:Math.min(n,u.right+i+parseFloat(r.marginRight))}}function EF(t){let{left:e,right:n}=ax(t);return{top:0,left:e,right:n,bottom:t.dom.ownerDocument.documentElement.clientHeight}}const qd=G.define({combine:t=>{var e,n,r;return{position:Y.ios?"absolute":((e=t.find(u=>u.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(u=>u.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=t.find(u=>u.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||EF}}}),m6=new WeakMap,r1=xt.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(qd);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new sx(t,i1,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(qd);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let u of this.manager.tooltipViews)u.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let u of this.manager.tooltipViews)this.container.appendChild(u.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let u=document.createElement("div");u.className="cm-tooltip-arrow",n.dom.appendChild(u)}return n.dom.style.position=this.position,n.dom.style.top=Hl,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,n=!1,r=0;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:o}=this.manager.tooltipViews[0];if(Y.safari){let s=o.getBoundingClientRect();n=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}else n=!!o.offsetParent&&o.offsetParent!=this.container.ownerDocument.body}if(n||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(t=o.width/this.parent.offsetWidth,e=o.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);else r=ax(this.view).left;let u=this.view.scrollDOM.getBoundingClientRect(),i=t1(this.view);return{visible:{left:u.left+i.left,top:u.top+i.top,right:u.right-i.right,bottom:u.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((o,s)=>{let a=this.manager.tooltipViews[s];return a.getCoords?a.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(qd).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n,fixedLeft:r}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{visible:n,space:r,scaleX:u,scaleY:i}=t,o=[];for(let s=0;s<this.manager.tooltips.length;s++){let a=this.manager.tooltips[s],l=this.manager.tooltipViews[s],{dom:c}=l,f=t.pos[s],d=t.size[s];if(!f||a.clip!==!1&&(f.bottom<=Math.max(n.top,r.top)||f.top>=Math.min(n.bottom,r.bottom)||f.right<Math.max(n.left,r.left)-.1||f.left>Math.min(n.right,r.right)+.1)){c.style.top=Hl;continue}let h=a.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null,p=h?7:0,m=d.right-d.left,g=(e=m6.get(l))!==null&&e!==void 0?e:d.bottom-d.top,C=l.offset||AF,b=this.view.textDirection==Ke.LTR,O=d.width>r.right-r.left?b?r.left:r.right-d.width:b?Math.max(r.left,Math.min(f.left-(h?14:0)+C.x,r.right-m)):Math.min(Math.max(r.left,f.left-m+(h?14:0)-C.x),r.right-m),y=this.above[s];!a.strictSide&&(y?f.top-g-p-C.y<r.top:f.bottom+g+p+C.y>r.bottom)&&y==r.bottom-f.bottom>f.top-r.top&&(y=this.above[s]=!y);let $=(y?f.top-r.top:r.bottom-f.bottom)-p;if($<g&&l.resize!==!1){if($<this.view.defaultLineHeight){c.style.top=Hl;continue}m6.set(l,g),c.style.height=(g=$)/i+"px"}else c.style.height&&(c.style.height="");let x=y?f.top-g-p-C.y:f.bottom+p+C.y,_=O+m;if(l.overlap!==!0)for(let R of o)R.left<_&&R.right>O&&R.top<x+g&&R.bottom>x&&(x=y?R.top-g-2-p:R.bottom+p+2);if(this.position=="absolute"?(c.style.top=(x-t.parent.top)/i+"px",g6(c,(O-t.parent.left)/u)):(c.style.top=x/i+"px",g6(c,(O-t.fixedLeft)/u)),h){let R=f.left+(b?C.x:-C.x)-(O+14-7);h.style.left=R/u+"px"}l.overlap!==!0&&o.push({left:O,top:x,right:_,bottom:x+g}),c.classList.toggle("cm-tooltip-above",y),c.classList.toggle("cm-tooltip-below",!y),l.positioned&&l.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=Hl}},{eventObservers:{scroll(){this.maybeMeasure()}}});function g6(t,e){let n=parseInt(t.style.left,10);(isNaN(n)||Math.abs(e-n)>1)&&(t.style.left=e+"px")}const $F=X.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),AF={x:0,y:0},i1=G.define({enables:[r1,$F]}),rc=G.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class uf{static create(e){return new uf(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new sx(e,rc,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(e,n){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let r of this.manager.tooltipViews){let u=r[e];if(u!==void 0){if(n===void 0)n=u;else if(n!==u)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const DF=i1.compute([rc],t=>{let e=t.facet(rc);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:uf.create,above:e[0].above,arrow:e.some(n=>n.arrow)}}),lx=G.define();class kF{constructor(e,n,r,u,i,o){this.view=e,this.source=n,this.field=r,this.locked=u,this.setHover=i,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(e){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,r=e.docView.tile.nearest(n.target);if(!r)return;let u,i=1;if(r.isWidget())u=r.posAtStart;else{if(u=e.posAtCoords(n),u==null)return;let o=e.coordsAtPos(u);if(!o||n.y<o.top||n.y>o.bottom||n.x<o.left-e.defaultCharacterWidth||n.x>o.right+e.defaultCharacterWidth)return;let s=e.bidiSpans(e.state.doc.lineAt(u)).find(l=>l.from<=u&&l.to>=u),a=s&&s.dir==Ke.RTL?-1:1;i=n.x<o.left?-a:a}this.activateHover(e,u,i)}activateHover(e,n,r,u){let i=this.source(e,n,r),o=s=>{if(s&&!(Array.isArray(s)&&!s.length)){let a=Array.isArray(s)?s:[s];u&&this.locked.set(a,u),e.dispatch({effects:this.setHover.of(a)})}};if(i&&"then"in i){let s=this.pending={pos:n};i.then(a=>{this.pending==s&&(this.pending=null,o(a))},a=>wn(e.state,a,"hover tooltip"))}else o(i)}get tooltip(){let e=this.view.plugin(r1),n=e?e.manager.tooltips.findIndex(r=>r.create==uf.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:u,tooltip:i}=this;if(u.length&&!this.locked.has(u)&&i&&!SF(i.dom,e)||this.pending){let{pos:o}=u[0]||this.pending,s=(r=(n=u[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:o;(o==s?this.view.posAtCoords(this.lastMove)!=o:!_F(this.view,o,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length&&!this.locked.has(n)){let{tooltip:r}=this;r&&r.dom.contains(e.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=r=>{e.removeEventListener("mouseleave",n);let{active:u}=this;u.length&&!this.locked.has(u)&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Kl=4;function SF(t,e){let{left:n,right:r,top:u,bottom:i}=t.getBoundingClientRect(),o;if(o=t.querySelector(".cm-tooltip-arrow")){let s=o.getBoundingClientRect();u=Math.min(s.top,u),i=Math.max(s.bottom,i)}return e.clientX>=n-Kl&&e.clientX<=r+Kl&&e.clientY>=u-Kl&&e.clientY<=i+Kl}function _F(t,e,n,r,u,i){let o=t.scrollDOM.getBoundingClientRect(),s=t.documentTop+t.documentPadding.top+t.contentHeight;if(o.left>r||o.right<r||o.top>u||Math.min(o.bottom,s)<u)return!1;let a=t.posAtCoords({x:r,y:u},!1);return a>=e&&a<=n}function wF(t,e={}){let n=Oe.define(),r=new WeakMap,u=jt.define({create(){return[]},update(o,s){let a=r.get(o);if(o.length&&(e.hideOnChange&&(s.docChanged||s.selection)?o=[]:a&&a(s)?o=[]:e.hideOn&&(o=o.filter(l=>!e.hideOn(s,l)))),s.docChanged&&o.length){let l=[];for(let c of o){let f=s.changes.mapPos(c.pos,-1,Nt.TrackDel);if(f!=null){let d=Object.assign(Object.create(null),c);d.pos=f,d.end!=null&&(d.end=s.changes.mapPos(d.end)),l.push(d)}}o=l}for(let l of s.effects)l.is(n)&&(o=l.value,a=void 0),(l.is(PF)&&!l.value||l.value==u)&&(o=[]);return o.length&&a&&r.set(o,a),o},provide:o=>rc.from(o)});const i=xt.define(o=>new kF(o,t,u,r,n,e.hoverTime||300));return{active:u,extension:[u,i,lx.of(i),DF]}}function BF(t,e,n,r={}){var u;let i=t.state.facet(lx).map(o=>t.plugin(o)).filter(o=>!!o);if(r.tooltip&&r.tooltip.active){let o=i.find(s=>s.field==r.tooltip.active);o&&(i=[o])}for(let o of i)o.activateHover(t,e,n,(u=r.until)!==null&&u!==void 0?u:(()=>!1))}function cx(t,e){let n=t.plugin(r1);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const PF=Oe.define(),O6=G.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return{topContainer:e,bottomContainer:n}}});function rf(t,e){let n=t.plugin(fx),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const fx=xt.fromClass(class{constructor(t){this.input=t.state.facet(ua),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(O6);this.top=new Jl(t,!0,e.topContainer),this.bottom=new Jl(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(O6);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Jl(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Jl(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(ua);if(n!=this.input){let r=n.filter(a=>a),u=[],i=[],o=[],s=[];for(let a of r){let l=this.specs.indexOf(a),c;l<0?(c=a(t.view),s.push(c)):(c=this.panels[l],c.update&&c.update(t)),u.push(c),(c.top?i:o).push(c)}this.specs=r,this.panels=u,this.top.sync(i),this.bottom.sync(o);for(let a of s)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let r of this.panels)r.update&&r.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>X.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Jl{constructor(e,n,r){this.view=e,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=b6(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=b6(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function b6(t){let e=t.nextSibling;return t.remove(),e}const ua=G.define({enables:fx});function FF(t,e){let n,r=new Promise(o=>n=o),u=o=>TF(o,e,n);t.state.field(w0,!1)?t.dispatch({effects:dx.of(u)}):t.dispatch({effects:Oe.appendConfig.of(w0.init(()=>[u]))});let i=hx.of(u);return{close:i,result:r.then(o=>((t.win.queueMicrotask||(a=>t.win.setTimeout(a,10)))(()=>{t.state.field(w0).indexOf(u)>-1&&t.dispatch({effects:i})}),o))}}function QF(t,e){let n=t.state.field(w0,!1)||[];for(let r of n){let u=rf(t,r);if(u&&u.dom.classList.contains(e))return u}return null}const w0=jt.define({create(){return[]},update(t,e){for(let n of e.effects)n.is(dx)?t=[n.value].concat(t):n.is(hx)&&(t=t.filter(r=>r!=n.value));return t},provide:t=>ua.computeN([t],e=>e.field(t))}),dx=Oe.define(),hx=Oe.define();function TF(t,e,n){let r=e.content?e.content(t,()=>s(null)):null;if(!r){if(r=He("form"),e.input){let a=He("input",e.input);/^(text|password|number|email|tel|url)$/.test(a.type)&&a.classList.add("cm-textfield"),a.name||(a.name="input"),r.appendChild(He("label",(e.label||"")+": ",a))}else r.appendChild(document.createTextNode(e.label||""));r.appendChild(document.createTextNode(" ")),r.appendChild(He("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let u=r.nodeName=="FORM"?[r]:r.querySelectorAll("form");for(let a=0;a<u.length;a++){let l=u[a];l.addEventListener("keydown",c=>{c.keyCode==27?(c.preventDefault(),s(null)):c.keyCode==13&&(c.preventDefault(),s(l))}),l.addEventListener("submit",c=>{c.preventDefault(),s(l)})}let i=He("div",r,He("button",{onclick:()=>s(null),"aria-label":t.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));e.class&&(i.className=e.class),i.classList.add("cm-dialog");let o=typeof e.focus=="string"?r.querySelector(e.focus):e.focus?r.querySelector("input")||r.querySelector("button"):null;function s(a){i.contains(i.ownerDocument.activeElement)&&t.focus(),n(a)}return{dom:i,top:e.top,mount:()=>{o&&("select"in o?o.select():"focus"in o&&o.focus())},destroy:()=>n(null)}}class Er extends Xr{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Er.prototype.elementClass="";Er.prototype.toDOM=void 0;Er.prototype.mapMode=Nt.TrackBefore;Er.prototype.startSide=Er.prototype.endSide=-1;Er.prototype.point=!0;const B0=G.define(),IF=G.define(),zF={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>we.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},js=G.define();function ZF(t){return[px(),js.of({...zF,...t})]}const v6=G.define({combine:t=>t.some(e=>e)});function px(t){return[RF]}const RF=xt.fromClass(class{constructor(t){this.view=t,this.domAfter=null,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(js).map(e=>new y6(t,e)),this.fixed=!t.state.facet(v6);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}if(t.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(v6)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=we.iter(this.view.state.facet(B0),this.view.viewport.from),r=[],u=this.gutters.map(i=>new jF(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(i.type)){let o=!0;for(let s of i.type)if(s.type==Ut.Text&&o){Mp(n,r,s.from);for(let a of u)a.line(this.view,s,r);o=!1}else if(s.widget)for(let a of u)a.widget(this.view,s)}else if(i.type==Ut.Text){Mp(n,r,i.from);for(let o of u)o.line(this.view,i,r)}else if(i.widget)for(let o of u)o.widget(this.view,i);for(let i of u)i.finish();t&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(t){let e=t.startState.facet(js),n=t.state.facet(js),r=t.docChanged||t.heightChanged||t.viewportChanged||!we.eq(t.startState.facet(B0),t.state.facet(B0),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let u of this.gutters)u.update(t)&&(r=!0);else{r=!0;let u=[];for(let i of n){let o=e.indexOf(i);o<0?u.push(new y6(this.view,i)):(this.gutters[o].update(t),u.push(this.gutters[o]))}for(let i of this.gutters)i.dom.remove(),u.indexOf(i)<0&&i.destroy();for(let i of u)i.config.side=="after"?this.getDOMAfter().appendChild(i.dom):this.dom.appendChild(i.dom);this.gutters=u}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:t=>X.scrollMargins.of(e=>{let n=e.plugin(t);if(!n||n.gutters.length==0||!n.fixed)return null;let r=n.dom.offsetWidth*e.scaleX,u=n.domAfter?n.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==Ke.LTR?{left:r,right:u}:{right:r,left:u}})});function C6(t){return Array.isArray(t)?t:[t]}function Mp(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class jF{constructor(e,n,r){this.gutter=e,this.height=r,this.i=0,this.cursor=we.iter(e.markers,n.from)}addElement(e,n,r){let{gutter:u}=this,i=(n.top-this.height)/e.scaleY,o=n.height/e.scaleY;if(this.i==u.elements.length){let s=new mx(e,o,i,r);u.elements.push(s),u.dom.appendChild(s.dom)}else u.elements[this.i].update(e,o,i,r);this.height=n.bottom,this.i++}line(e,n,r){let u=[];Mp(this.cursor,u,n.from),r.length&&(u=u.concat(r));let i=this.gutter.config.lineMarker(e,n,u);i&&u.unshift(i);let o=this.gutter;u.length==0&&!o.config.renderEmptyElements||this.addElement(e,n,u)}widget(e,n){let r=this.gutter.config.widgetMarker(e,n.widget,n),u=r?[r]:null;for(let i of e.state.facet(IF)){let o=i(e,n.widget,n);o&&(u||(u=[])).push(o)}u&&this.addElement(e,n,u)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class y6{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,u=>{let i=u.target,o;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let a=i.getBoundingClientRect();o=(a.top+a.bottom)/2}else o=u.clientY;let s=e.lineBlockAtHeight(o-e.documentTop);n.domEventHandlers[r](e,s,u)&&u.preventDefault()});this.markers=C6(n.markers(e)),n.initialSpacer&&(this.spacer=new mx(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=C6(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let u=this.config.updateSpacer(this.spacer.markers[0],e);u!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[u])}let r=e.view.viewport;return!we.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class mx{constructor(e,n,r,u){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,r,u)}update(e,n,r,u){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),MF(this.markers,u)||this.setMarkers(e,u)}setMarkers(e,n){let r="cm-gutterElement",u=this.dom.firstChild;for(let i=0,o=0;;){let s=o,a=i<n.length?n[i++]:null,l=!1;if(a){let c=a.elementClass;c&&(r+=" "+c);for(let f=o;f<this.markers.length;f++)if(this.markers[f].compare(a)){s=f,l=!0;break}}else s=this.markers.length;for(;o<s;){let c=this.markers[o++];if(c.toDOM){c.destroy(u);let f=u.nextSibling;u.remove(),u=f}}if(!a)break;a.toDOM&&(l?u=u.nextSibling:this.dom.insertBefore(a.toDOM(e),u)),l&&o++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function MF(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const LF=G.define(),NF=G.define(),ro=G.define({combine(t){return Ju(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let r=Object.assign({},e);for(let u in n){let i=r[u],o=n[u];r[u]=i?(s,a,l)=>i(s,a,l)||o(s,a,l):o}return r}})}});class Wd extends Er{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Yd(t,e){return t.state.facet(ro).formatNumber(e,t.state)}const UF=js.compute([ro],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(LF)},lineMarker(e,n,r){return r.some(u=>u.toDOM)?null:new Wd(Yd(e,e.state.doc.lineAt(n.from).number))},widgetMarker:(e,n,r)=>{for(let u of e.state.facet(NF)){let i=u(e,n,r);if(i)return i}return null},lineMarkerChange:e=>e.startState.facet(ro)!=e.state.facet(ro),initialSpacer(e){return new Wd(Yd(e,x6(e.state.doc.lines)))},updateSpacer(e,n){let r=Yd(n.view,x6(n.view.state.doc.lines));return r==e.number?e:new Wd(r)},domEventHandlers:t.facet(ro).domEventHandlers,side:"before"}));function XF(t={}){return[ro.of(t),px(),UF]}function x6(t){let e=9;for(;e<t;)e=e*10+9;return e}const VF=new class extends Er{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},qF=B0.compute(["selection"],t=>{let e=[],n=-1;for(let r of t.selection.ranges){let u=t.doc.lineAt(r.head).from;u>n&&(n=u,e.push(VF.range(u)))}return we.of(e)});function WF(){return qF}const gx=1024;let YF=0;class tu{constructor(e,n){this.from=e,this.to=n}}class be{constructor(e={}){this.id=YF++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=_t.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}be.closedBy=new be({deserialize:t=>t.split(" ")});be.openedBy=new be({deserialize:t=>t.split(" ")});be.group=new be({deserialize:t=>t.split(" ")});be.isolate=new be({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});be.contextHash=new be({perNode:!0});be.lookAhead=new be({perNode:!0});be.mounted=new be({perNode:!0});class mo{constructor(e,n,r,u=!1){this.tree=e,this.overlay=n,this.parser=r,this.bracketed=u}static get(e){return e&&e.props&&e.props[be.mounted.id]}}const GF=Object.create(null);class _t{constructor(e,n,r,u=0){this.name=e,this.props=n,this.id=r,this.flags=u}static define(e){let n=e.props&&e.props.length?Object.create(null):GF,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),u=new _t(e.name||"",n,e.id,r);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(u)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[i[0].id]=i[1]}}return u}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(be.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let u of r.split(" "))n[u]=e[r];return r=>{for(let u=r.prop(be.group),i=-1;i<(u?u.length:0);i++){let o=n[i<0?r.name:u[i]];if(o)return o}}}}_t.none=new _t("",Object.create(null),0,8);class Za{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let r of this.types){let u=null;for(let i of e){let o=i(r);if(o){u||(u=Object.assign({},r.props));let s=o[1],a=o[0];a.combine&&a.id in u&&(s=a.combine(u[a.id],s)),u[a.id]=s}}n.push(u?new _t(r.name,u,r.id,r.flags):r)}return new Za(n)}}const e0=new WeakMap,E6=new WeakMap;var Te;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays",t[t.EnterBracketed=16]="EnterBracketed"})(Te||(Te={}));class Le{constructor(e,n,r,u,i){if(this.type=e,this.children=n,this.positions=r,this.length=u,this.props=null,i&&i.length){this.props=Object.create(null);for(let[o,s]of i)this.props[typeof o=="number"?o:o.id]=s}}toString(){let e=mo.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let r of this.children){let u=r.toString();u&&(n&&(n+=","),n+=u)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new ic(this.topNode,e)}cursorAt(e,n=0,r=0){let u=e0.get(this)||this.topNode,i=new ic(u);return i.moveTo(e,n),e0.set(this,i._tree),i}get topNode(){return new tn(this,0,0,null)}resolve(e,n=0){let r=ra(e0.get(this)||this.topNode,e,n,!1);return e0.set(this,r),r}resolveInner(e,n=0){let r=ra(E6.get(this)||this.topNode,e,n,!0);return E6.set(this,r),r}resolveStack(e,n=0){return JF(this,e,n)}iterate(e){let{enter:n,leave:r,from:u=0,to:i=this.length}=e,o=e.mode||0,s=(o&Te.IncludeAnonymous)>0;for(let a=this.cursor(o|Te.IncludeAnonymous);;){let l=!1;if(a.from<=i&&a.to>=u&&(!s&&a.type.isAnonymous||n(a)!==!1)){if(a.firstChild())continue;l=!0}for(;l&&r&&(s||!a.type.isAnonymous)&&r(a),!a.nextSibling();){if(!a.parent())return;l=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:a1(_t.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,u)=>new Le(this.type,n,r,u,this.propValues),e.makeTree||((n,r,u)=>new Le(_t.none,n,r,u)))}static build(e){return eQ(e)}}Le.empty=new Le(_t.none,[],[],0);class o1{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new o1(this.buffer,this.index)}}class Yr{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r}get type(){return _t.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],r=this.buffer[e+3],u=this.set.types[n],i=u.name;if(/\W/.test(i)&&!u.isError&&(i=JSON.stringify(i)),e+=4,r==e)return i;let o=[];for(;e<r;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,n,r,u,i){let{buffer:o}=this,s=-1;for(let a=e;a!=n&&!(Ox(i,u,o[a+1],o[a+2])&&(s=a,r>0));a=o[a+3]);return s}slice(e,n,r){let u=this.buffer,i=new Uint16Array(n-e),o=0;for(let s=e,a=0;s<n;){i[a++]=u[s++],i[a++]=u[s++]-r;let l=i[a++]=u[s++]-r;i[a++]=u[s++]-e,o=Math.max(o,l)}return new Yr(i,o,this.set)}}function Ox(t,e,n,r){switch(t){case-2:return n<e;case-1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function ra(t,e,n,r){for(var u;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let o=!r&&t instanceof tn&&t.index<0?null:t.parent;if(!o)return t;t=o}let i=r?0:Te.IgnoreOverlays;if(r)for(let o=t,s=o.parent;s;o=s,s=o.parent)o instanceof tn&&o.index<0&&((u=s.enter(e,n,i))===null||u===void 0?void 0:u.from)!=o.from&&(t=s);for(;;){let o=t.enter(e,n,i);if(!o)return t;t=o}}class bx{cursor(e=0){return new ic(this,e)}getChild(e,n=null,r=null){let u=$6(this,e,n,r);return u.length?u[0]:null}getChildren(e,n=null,r=null){return $6(this,e,n,r)}resolve(e,n=0){return ra(this,e,n,!1)}resolveInner(e,n=0){return ra(this,e,n,!0)}matchContext(e){return Lp(this.parent,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),r=this;for(;n;){let u=n.lastChild;if(!u||u.to!=n.to)break;u.type.isError&&u.from==u.to?(r=n,n=u.prevSibling):n=u}return r}get node(){return this}get next(){return this.parent}}class tn extends bx{constructor(e,n,r,u){super(),this._tree=e,this.from=n,this.index=r,this._parent=u}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,r,u,i=0){for(let o=this;;){for(let{children:s,positions:a}=o._tree,l=n>0?s.length:-1;e!=l;e+=n){let c=s[e],f=a[e]+o.from,d;if(!(!(i&Te.EnterBracketed&&c instanceof Le&&(d=mo.get(c))&&!d.overlay&&d.bracketed&&r>=f&&r<=f+c.length)&&!Ox(u,r,f,f+c.length))){if(c instanceof Yr){if(i&Te.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,n,r-f,u);if(h>-1)return new Mu(new HF(o,c,e,f),null,h)}else if(i&Te.IncludeAnonymous||!c.type.isAnonymous||s1(c)){let h;if(!(i&Te.IgnoreMounts)&&(h=mo.get(c))&&!h.overlay)return new tn(h.tree,f,e,o);let p=new tn(c,f,e,o);return i&Te.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(n<0?c.children.length-1:0,n,r,u,i)}}}if(i&Te.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+n:e=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,n,r=0){let u;if(!(r&Te.IgnoreOverlays)&&(u=mo.get(this._tree))&&u.overlay){let i=e-this.from,o=r&Te.EnterBracketed&&u.bracketed;for(let{from:s,to:a}of u.overlay)if((n>0||o?s<=i:s<i)&&(n<0||o?a>=i:a>i))return new tn(u.tree,u.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function $6(t,e,n,r){let u=t.cursor(),i=[];if(!u.firstChild())return i;if(n!=null){for(let o=!1;!o;)if(o=u.type.is(n),!u.nextSibling())return i}for(;;){if(r!=null&&u.type.is(r))return i;if(u.type.is(e)&&i.push(u.node),!u.nextSibling())return r==null?i:[]}}function Lp(t,e,n=e.length-1){for(let r=t;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class HF{constructor(e,n,r,u){this.parent=e,this.buffer=n,this.index=r,this.start=u}}class Mu extends bx{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,r){super(),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,n,r){let{buffer:u}=this.context,i=u.findChild(this.index+4,u.buffer[this.index+3],e,n-this.context.start,r);return i<0?null:new Mu(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,n,r=0){if(r&Te.ExcludeBuffers)return null;let{buffer:u}=this.context,i=u.findChild(this.index+4,u.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return i<0?null:new Mu(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Mu(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Mu(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:r}=this.context,u=this.index+4,i=r.buffer[this.index+3];if(i>u){let o=r.buffer[this.index+1];e.push(r.slice(u,i,o)),n.push(0)}return new Le(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function vx(t){if(!t.length)return null;let e=0,n=t[0];for(let i=1;i<t.length;i++){let o=t[i];(o.from>n.from||o.to<n.to)&&(n=o,e=i)}let r=n instanceof tn&&n.index<0?null:n.parent,u=t.slice();return r?u[e]=r:u.splice(e,1),new KF(u,n)}class KF{constructor(e,n){this.heads=e,this.node=n}get next(){return vx(this.heads)}}function JF(t,e,n){let r=t.resolveInner(e,n),u=null;for(let i=r instanceof tn?r:r.context.parent;i;i=i.parent)if(i.index<0){let o=i.parent;(u||(u=[r])).push(o.resolve(e,n)),i=o}else{let o=mo.get(i.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let s=new tn(o.tree,o.overlay[0].from+i.from,-1,i);(u||(u=[r])).push(ra(s,e,n,!1))}}return u?vx(u):r}class ic{get name(){return this.type.name}constructor(e,n=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=n&~Te.EnterBracketed,e instanceof tn)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:r,buffer:u}=this.buffer;return this.type=n||u.set.types[u.buffer[e]],this.from=r+u.buffer[e+1],this.to=r+u.buffer[e+2],!0}yield(e){return e?e instanceof tn?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,r,this.mode));let{buffer:u}=this.buffer,i=u.findChild(this.index+4,u.buffer[this.index+3],e,n-this.buffer.start,r);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,r=this.mode){return this.buffer?r&Te.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Te.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Te.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(e<0){let u=r<0?0:this.stack[r]+4;if(this.index!=u)return this.yieldBuf(n.findChild(u,this.index,-1,0,4))}else{let u=n.buffer[this.index+3];if(u<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(u)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,r,{buffer:u}=this;if(u){if(e>0){if(this.index<u.buffer.buffer.length)return!1}else for(let i=0;i<this.index;i++)if(u.buffer.buffer[i+3]<this.index)return!1;({index:n,parent:r}=u)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let i=n+e,o=e<0?-1:r._tree.children.length;i!=o;i+=e){let s=r._tree.children[i];if(this.mode&Te.IncludeAnonymous||s instanceof Yr||!s.type.isAnonymous||s1(s))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,r=0;if(e&&e.context==this.buffer)e:for(let u=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==u){if(u==this.index)return o;n=o,r=i+1;break e}u=this.stack[--i]}for(let u=r;u<this.stack.length;u++)n=new Mu(this.buffer,n,this.stack[u]);return this.bufferNode=new Mu(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let r=0;;){let u=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(u=!0)}for(;;){if(u&&n&&n(this),u=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,u=!0}}}matchContext(e){if(!this.buffer)return Lp(this.node.parent,e);let{buffer:n}=this.buffer,{types:r}=n.set;for(let u=e.length-1,i=this.stack.length-1;u>=0;i--){if(i<0)return Lp(this._tree,e,u);let o=r[n.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[u]&&e[u]!=o.name)return!1;u--}}return!0}}function s1(t){return t.children.some(e=>e instanceof Yr||!e.type.isAnonymous||s1(e))}function eQ(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:u=gx,reused:i=[],minRepeatType:o=r.types.length}=t,s=Array.isArray(n)?new o1(n,n.length):n,a=r.types,l=0,c=0;function f($,x,_,R,ue,re){let{id:oe,start:ee,end:Ee,size:W}=s,te=c,he=l;if(W<0)if(s.next(),W==-1){let Et=i[oe];_.push(Et),R.push(ee-$);return}else if(W==-3){l=oe;return}else if(W==-4){c=oe;return}else throw new RangeError(`Unrecognized record size: ${W}`);let ke=a[oe],Se,Ne,bt=ee-$;if(Ee-ee<=u&&(Ne=g(s.pos-x,ue))){let Et=new Uint16Array(Ne.size-Ne.skip),Ye=s.pos-Ne.size,qt=Et.length;for(;s.pos>Ye;)qt=C(Ne.start,Et,qt);Se=new Yr(Et,Ee-Ne.start,r),bt=Ne.start-$}else{let Et=s.pos-W;s.next();let Ye=[],qt=[],vn=oe>=o?oe:-1,Be=0,Cn=Ee,Gn=te;for(;s.pos>Et;)vn>=0&&s.id==vn&&s.size>=0?(s.end<=Cn-u&&(p(Ye,qt,ee,Be,s.end,Cn,vn,Gn,he),Be=Ye.length,Cn=s.end,Gn=c),s.next()):re>2500?d(ee,Et,Ye,qt):(vn>=0&&s.size==-1&&i[s.id].type==r.types[vn]&&(Be<Ye.length&&p(Ye,qt,ee,Be,s.end,Cn,vn,Gn,he),Be=Ye.length+1,Cn=s.start,Gn=c),f(ee,Et,Ye,qt,vn,re+1));if(vn>=0&&Be>0&&Be<Ye.length&&p(Ye,qt,ee,Be,ee,Cn,vn,Gn,he),Ye.reverse(),qt.reverse(),vn>-1&&Be>0){let wr=h(ke,he);Se=a1(ke,Ye,qt,0,Ye.length,0,Ee-ee,wr,wr)}else Se=m(ke,Ye,qt,Ee-ee,te-Ee,he)}_.push(Se),R.push(bt)}function d($,x,_,R){let ue=[],re=0,oe=-1;for(;s.pos>x;){let{id:ee,start:Ee,end:W,size:te}=s;if(te>4)s.next();else{if(oe>-1&&Ee<oe)break;oe<0&&(oe=W-u),ue.push(ee,Ee,W),re++,s.next()}}if(re){let ee=new Uint16Array(re*4),Ee=ue[ue.length-2];for(let W=ue.length-3,te=0;W>=0;W-=3)ee[te++]=ue[W],ee[te++]=ue[W+1]-Ee,ee[te++]=ue[W+2]-Ee,ee[te++]=te;_.push(new Yr(ee,ue[2]-Ee,r)),R.push(Ee-$)}}function h($,x){return(_,R,ue)=>{let re=0,oe=_.length-1,ee,Ee;if(oe>=0&&(ee=_[oe])instanceof Le){if(!oe&&ee.type==$&&ee.length==ue)return ee;(Ee=ee.prop(be.lookAhead))&&(re=R[oe]+ee.length+Ee-ue)}return m($,_,R,ue,re,x)}}function p($,x,_,R,ue,re,oe,ee,Ee){let W=[],te=[];for(;$.length>R;)W.push($.pop()),te.push(x.pop()+_-ue);$.push(m(r.types[oe],W,te,re-ue,ee-re,Ee)),x.push(ue-_)}function m($,x,_,R,ue,re,oe){if(re){let ee=[be.contextHash,re];oe=oe?[ee].concat(oe):[ee]}if(ue>25){let ee=[be.lookAhead,ue];oe=oe?[ee].concat(oe):[ee]}return new Le($,x,_,R,oe)}function g($,x){let _=s.fork(),R=0,ue=0,re=0,oe=_.end-u,ee={size:0,start:0,skip:0};e:for(let Ee=_.pos-$;_.pos>Ee;){let W=_.size;if(_.id==x&&W>=0){ee.size=R,ee.start=ue,ee.skip=re,re+=4,R+=4,_.next();continue}let te=_.pos-W;if(W<0||te<Ee||_.start<oe)break;let he=_.id>=o?4:0,ke=_.start;for(_.next();_.pos>te;){if(_.size<0)if(_.size==-3||_.size==-4)he+=4;else break e;else _.id>=o&&(he+=4);_.next()}ue=ke,R+=W,re+=he}return(x<0||R==$)&&(ee.size=R,ee.start=ue,ee.skip=re),ee.size>4?ee:void 0}function C($,x,_){let{id:R,start:ue,end:re,size:oe}=s;if(s.next(),oe>=0&&R<o){let ee=_;if(oe>4){let Ee=s.pos-(oe-4);for(;s.pos>Ee;)_=C($,x,_)}x[--_]=ee,x[--_]=re-$,x[--_]=ue-$,x[--_]=R}else oe==-3?l=R:oe==-4&&(c=R);return _}let b=[],O=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,b,O,-1,0);let y=(e=t.length)!==null&&e!==void 0?e:b.length?O[0]+b[0].length:0;return new Le(a[t.topID],b.reverse(),O.reverse(),y)}const A6=new WeakMap;function P0(t,e){if(!t.isAnonymous||e instanceof Yr||e.type!=t)return 1;let n=A6.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof Le)){n=1;break}n+=P0(t,r)}A6.set(e,n)}return n}function a1(t,e,n,r,u,i,o,s,a){let l=0;for(let p=r;p<u;p++)l+=P0(t,e[p]);let c=Math.ceil(l*1.5/8),f=[],d=[];function h(p,m,g,C,b){for(let O=g;O<C;){let y=O,$=m[O],x=P0(t,p[O]);for(O++;O<C;O++){let _=P0(t,p[O]);if(x+_>=c)break;x+=_}if(O==y+1){if(x>c){let _=p[y];h(_.children,_.positions,0,_.children.length,m[y]+b);continue}f.push(p[y])}else{let _=m[O-1]+p[O-1].length-$;f.push(a1(t,p,m,y,O,$,_,null,a))}d.push($+b-i)}}return h(e,n,r,u,0),(s||a)(f,d,o)}class Cx{constructor(){this.map=new WeakMap}setBuffer(e,n,r){let u=this.map.get(e);u||this.map.set(e,u=new Map),u.set(n,r)}getBuffer(e,n){let r=this.map.get(e);return r&&r.get(n)}set(e,n){e instanceof Mu?this.setBuffer(e.context.buffer,e.index,n):e instanceof tn&&this.map.set(e.tree,n)}get(e){return e instanceof Mu?this.getBuffer(e.context.buffer,e.index):e instanceof tn?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Or{constructor(e,n,r,u,i=!1,o=!1){this.from=e,this.to=n,this.tree=r,this.offset=u,this.open=(i?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],r=!1){let u=[new Or(0,e.length,e,0,!1,r)];for(let i of n)i.to>e.length&&u.push(i);return u}static applyChanges(e,n,r=128){if(!n.length)return e;let u=[],i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let c=s<n.length?n[s]:null,f=c?c.fromA:1e9;if(f-a>=r)for(;o&&o.from<f;){let d=o;if(a>=d.from||f<=d.to||l){let h=Math.max(d.from,a)-l,p=Math.min(d.to,f)-l;d=h>=p?null:new Or(h,p,d.tree,d.offset+l,s>0,!!c)}if(d&&u.push(d),o.to>f)break;o=i<e.length?e[i++]:null}if(!c)break;a=c.toA,l=c.toA-c.toB}return u}}class l1{startParse(e,n,r){return typeof e=="string"&&(e=new tQ(e)),r=r?r.length?r.map(u=>new tu(u.from,u.to)):[new tu(0,0)]:[new tu(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let u=this.startParse(e,n,r);for(;;){let i=u.advance();if(i)return i}}}class tQ{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}function yx(t){return(e,n,r,u)=>new uQ(e,t,n,r,u)}class D6{constructor(e,n,r,u,i,o){this.parser=e,this.parse=n,this.overlay=r,this.bracketed=u,this.target=i,this.from=o}}function k6(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class nQ{constructor(e,n,r,u,i,o,s,a){this.parser=e,this.predicate=n,this.mounts=r,this.index=u,this.start=i,this.bracketed=o,this.target=s,this.prev=a,this.depth=0,this.ranges=[]}}const xx=new be({perNode:!0});class uQ{constructor(e,n,r,u,i){this.nest=n,this.input=r,this.fragments=u,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let u of this.inner)u.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new Le(r.type,r.children,r.positions,r.length,r.propValues.concat([[xx,this.stoppedAt]]))),r}let e=this.inner[this.innerDone],n=e.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[be.mounted.id]=new mo(n,e.overlay,e.parser,e.bracketed),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<e&&(e=Math.min(e,this.inner[n].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(e)}startInner(){let e=new oQ(this.fragments),n=null,r=null,u=new ic(new tn(this.baseTree,this.ranges[0].from,0,null),Te.IncludeAnonymous|Te.IgnoreMounts);e:for(let i,o;;){let s=!0,a;if(this.stoppedAt!=null&&u.from>=this.stoppedAt)s=!1;else if(e.hasNode(u)){if(n){let l=n.mounts.find(c=>c.frag.from<=u.from&&c.frag.to>=u.to&&c.mount.overlay);if(l)for(let c of l.mount.overlay){let f=c.from+l.pos,d=c.to+l.pos;f>=u.from&&d<=u.to&&!n.ranges.some(h=>h.from<d&&h.to>f)&&n.ranges.push({from:f,to:d})}}s=!1}else if(r&&(o=rQ(r.ranges,u.from,u.to)))s=o!=2;else if(!u.type.isAnonymous&&(i=this.nest(u,this.input))&&(u.from<u.to||!i.overlay)){u.tree||(iQ(u),n&&n.depth++,r&&r.depth++);let l=e.findMounts(u.from,i.parser);if(typeof i.overlay=="function")n=new nQ(i.parser,i.overlay,l,this.inner.length,u.from,!!i.bracketed,u.tree,n);else{let c=B6(this.ranges,i.overlay||(u.from<u.to?[new tu(u.from,u.to)]:[]));c.length&&k6(c),(c.length||!i.overlay)&&this.inner.push(new D6(i.parser,c.length?i.parser.startParse(this.input,P6(l,c),c):i.parser.startParse(""),i.overlay?i.overlay.map(f=>new tu(f.from-u.from,f.to-u.from)):null,!!i.bracketed,u.tree,c.length?c[0].from:u.from)),i.overlay?c.length&&(r={ranges:c,depth:0,prev:r}):s=!1}}else if(n&&(a=n.predicate(u))&&(a===!0&&(a=new tu(u.from,u.to)),a.from<a.to)){let l=n.ranges.length-1;l>=0&&n.ranges[l].to==a.from?n.ranges[l]={from:n.ranges[l].from,to:a.to}:n.ranges.push(a)}if(s&&u.firstChild())n&&n.depth++,r&&r.depth++;else for(;!u.nextSibling();){if(!u.parent())break e;if(n&&!--n.depth){let l=B6(this.ranges,n.ranges);l.length&&(k6(l),this.inner.splice(n.index,0,new D6(n.parser,n.parser.startParse(this.input,P6(n.mounts,l),l),n.ranges.map(c=>new tu(c.from-n.start,c.to-n.start)),n.bracketed,n.target,l[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function rQ(t,e,n){for(let r of t){if(r.from>=n)break;if(r.to>e)return r.from<=e&&r.to>=n?2:1}return 0}function S6(t,e,n,r,u,i){if(e<n){let o=t.buffer[e+1];r.push(t.slice(e,n,o)),u.push(o-i)}}function iQ(t){let{node:e}=t,n=[],r=e.context.buffer;do n.push(t.index),t.parent();while(!t.tree);let u=t.tree,i=u.children.indexOf(r),o=u.children[i],s=o.buffer,a=[i];function l(c,f,d,h,p,m){let g=n[m],C=[],b=[];S6(o,c,g,C,b,h);let O=s[g+1],y=s[g+2];a.push(C.length);let $=m?l(g+4,s[g+3],o.set.types[s[g]],O,y-O,m-1):e.toTree();return C.push($),b.push(O-h),S6(o,s[g+3],f,C,b,h),new Le(d,C,b,p)}u.children[i]=l(0,s.length,_t.none,0,o.length,n.length-1);for(let c of a){let f=t.tree.children[c],d=t.tree.positions[c];t.yield(new tn(f,d+t.from,c,t._tree))}}class _6{constructor(e,n){this.offset=n,this.done=!1,this.cursor=e.cursor(Te.IncludeAnonymous|Te.IgnoreMounts|Te.ExcludeBuffers)}moveTo(e){let{cursor:n}=this,r=e-this.offset;for(;!this.done&&n.from<r;)if(!(n.to>=r&&n.enter(r,1,Te.IncludeAnonymous|Te.IgnoreMounts|Te.IgnoreOverlays|Te.ExcludeBuffers)))if(n.to<=r)n.next(!1)||(this.done=!0);else break}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==e.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof Le)n=n.children[0];else break}return!1}}function w6(t){let e=t.tree.prop(xx);return e==null?t.to:Math.min(t.to,e-t.offset)}let oQ=class{constructor(e){if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=w6(n),this.inner=new _6(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=w6(e),this.inner=new _6(e.tree,-e.offset)}}findMounts(e,n){var r;let u=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let i=this.inner.cursor.node;i;i=i.parent){let o=(r=i.tree)===null||r===void 0?void 0:r.prop(be.mounted);if(o&&o.parser==n)for(let s=this.fragI;s<this.fragments.length;s++){let a=this.fragments[s];if(a.from>=i.to)break;a.tree==this.curFrag.tree&&u.push({frag:a,pos:i.from-a.offset,mount:o})}}}return u}};function B6(t,e){let n=null,r=e;for(let u=1,i=0;u<t.length;u++){let o=t[u-1].to,s=t[u].from;for(;i<r.length;i++){let a=r[i];if(a.from>=s)break;a.to<=o||(n||(r=n=e.slice()),a.from<o?(n[i]=new tu(a.from,o),a.to>s&&n.splice(i+1,0,new tu(s,a.to))):a.to>s?n[i--]=new tu(s,a.to):n.splice(i--,1))}}return r}function sQ(t,e,n,r){let u=0,i=0,o=!1,s=!1,a=-1e9,l=[];for(;;){let c=u==t.length?1e9:o?t[u].to:t[u].from,f=i==e.length?1e9:s?e[i].to:e[i].from;if(o!=s){let d=Math.max(a,n),h=Math.min(c,f,r);d<h&&l.push(new tu(d,h))}if(a=Math.min(c,f),a==1e9)break;c==a&&(o?(o=!1,u++):o=!0),f==a&&(s?(s=!1,i++):s=!0)}return l}function P6(t,e){let n=[];for(let{pos:r,mount:u,frag:i}of t){let o=r+(u.overlay?u.overlay[0].from:0),s=o+u.tree.length,a=Math.max(i.from,o),l=Math.min(i.to,s);if(u.overlay){let c=u.overlay.map(d=>new tu(d.from+r,d.to+r)),f=sQ(e,c,a,l);for(let d=0,h=a;;d++){let p=d==f.length,m=p?l:f[d].from;if(m>h&&n.push(new Or(h,m,u.tree,-o,i.from>=h||i.openStart,i.to<=m||i.openEnd)),p)break;h=f[d].to}}else n.push(new Or(a,l,u.tree,-o,i.from>=o||i.openStart,i.to<=s||i.openEnd))}return n}let aQ=0;class jn{constructor(e,n,r,u){this.name=e,this.set=n,this.base=r,this.modified=u,this.id=aQ++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let r=typeof e=="string"?e:"?";if(e instanceof jn&&(n=e),n?.base)throw new Error("Can not derive from a modified tag");let u=new jn(r,[],null,[]);if(u.set.push(u),n)for(let i of n.set)u.set.push(i);return u}static defineModifier(e){let n=new oc(e);return r=>r.modified.indexOf(n)>-1?r:oc.get(r.base||r,r.modified.concat(n).sort((u,i)=>u.id-i.id))}}let lQ=0;class oc{constructor(e){this.name=e,this.instances=[],this.id=lQ++}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(s=>s.base==e&&cQ(n,s.modified));if(r)return r;let u=[],i=new jn(e.name,u,e,n);for(let s of n)s.instances.push(i);let o=fQ(n);for(let s of e.set)if(!s.modified.length)for(let a of o)u.push(oc.get(s,a));return i}}function cQ(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function fQ(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,u=e.length;r<u;r++)e.push(e[r].concat(t[n]));return e.sort((n,r)=>r.length-n.length)}function Wo(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let u of n.split(" "))if(u){let i=[],o=2,s=u;for(let f=0;;){if(s=="..."&&f>0&&f+3==u.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!d)throw new RangeError("Invalid path: "+u);if(i.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==u.length)break;let h=u[f++];if(f==u.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+u);s=u.slice(f)}let a=i.length-1,l=i[a];if(!l)throw new RangeError("Invalid path: "+u);let c=new ia(r,o,a>0?i.slice(0,a):null);e[l]=c.sort(e[l])}}return Ex.add(e)}const Ex=new be({combine(t,e){let n,r,u;for(;t||e;){if(!t||e&&t.depth<=e.depth?(u=e,e=e.next):(u=t,t=t.next),n&&n.mode==u.mode&&!u.context&&!n.context)continue;let i=new ia(u.tags,u.mode,u.context);n?n.next=i:r=i,n=i}return r}});class ia{constructor(e,n,r,u){this.tags=e,this.mode=n,this.context=r,this.next=u}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}ia.empty=new ia([],2,null);function $x(t,e){let n=Object.create(null);for(let i of t)if(!Array.isArray(i.tag))n[i.tag.id]=i.class;else for(let o of i.tag)n[o.id]=i.class;let{scope:r,all:u=null}=e||{};return{style:i=>{let o=u;for(let s of i)for(let a of s.set){let l=n[a.id];if(l){o=o?o+" "+l:l;break}}return o},scope:r}}function dQ(t,e){let n=null;for(let r of t){let u=r.style(e);u&&(n=n?n+" "+u:u)}return n}function hQ(t,e,n,r=0,u=t.length){let i=new pQ(r,Array.isArray(e)?e:[e],n);i.highlightRange(t.cursor(),r,u,"",i.highlighters),i.flush(u)}class pQ{constructor(e,n,r){this.at=e,this.highlighters=n,this.span=r,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,r,u,i){let{type:o,from:s,to:a}=e;if(s>=r||a<=n)return;o.isTop&&(i=this.highlighters.filter(h=>!h.scope||h.scope(o)));let l=u,c=mQ(e)||ia.empty,f=dQ(i,c.tags);if(f&&(l&&(l+=" "),l+=f,c.mode==1&&(u+=(u?" ":"")+f)),this.startSpan(Math.max(n,s),l),c.opaque)return;let d=e.tree&&e.tree.prop(be.mounted);if(d&&d.overlay){let h=e.node.enter(d.overlay[0].from+s,1),p=this.highlighters.filter(g=>!g.scope||g.scope(d.tree.type)),m=e.firstChild();for(let g=0,C=s;;g++){let b=g<d.overlay.length?d.overlay[g]:null,O=b?b.from+s:a,y=Math.max(n,C),$=Math.min(r,O);if(y<$&&m)for(;e.from<$&&(this.highlightRange(e,y,$,u,i),this.startSpan(Math.min($,e.to),l),!(e.to>=O||!e.nextSibling())););if(!b||O>r)break;C=b.to+s,C>n&&(this.highlightRange(h.cursor(),Math.max(n,b.from+s),Math.min(r,C),"",p),this.startSpan(Math.min(r,C),l))}m&&e.parent()}else if(e.firstChild()){d&&(u="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,u,i),this.startSpan(Math.min(r,e.to),l)}while(e.nextSibling());e.parent()}}}function mQ(t){let e=t.type.prop(Ex);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const q=jn.define,t0=q(),Ir=q(),F6=q(Ir),Q6=q(Ir),zr=q(),n0=q(zr),Gd=q(zr),Pu=q(),di=q(Pu),wu=q(),Bu=q(),Np=q(),hs=q(Np),u0=q(),A={comment:t0,lineComment:q(t0),blockComment:q(t0),docComment:q(t0),name:Ir,variableName:q(Ir),typeName:F6,tagName:q(F6),propertyName:Q6,attributeName:q(Q6),className:q(Ir),labelName:q(Ir),namespace:q(Ir),macroName:q(Ir),literal:zr,string:n0,docString:q(n0),character:q(n0),attributeValue:q(n0),number:Gd,integer:q(Gd),float:q(Gd),bool:q(zr),regexp:q(zr),escape:q(zr),color:q(zr),url:q(zr),keyword:wu,self:q(wu),null:q(wu),atom:q(wu),unit:q(wu),modifier:q(wu),operatorKeyword:q(wu),controlKeyword:q(wu),definitionKeyword:q(wu),moduleKeyword:q(wu),operator:Bu,derefOperator:q(Bu),arithmeticOperator:q(Bu),logicOperator:q(Bu),bitwiseOperator:q(Bu),compareOperator:q(Bu),updateOperator:q(Bu),definitionOperator:q(Bu),typeOperator:q(Bu),controlOperator:q(Bu),punctuation:Np,separator:q(Np),bracket:hs,angleBracket:q(hs),squareBracket:q(hs),paren:q(hs),brace:q(hs),content:Pu,heading:di,heading1:q(di),heading2:q(di),heading3:q(di),heading4:q(di),heading5:q(di),heading6:q(di),contentSeparator:q(Pu),list:q(Pu),quote:q(Pu),emphasis:q(Pu),strong:q(Pu),link:q(Pu),monospace:q(Pu),strikethrough:q(Pu),inserted:q(),deleted:q(),changed:q(),invalid:q(),meta:u0,documentMeta:q(u0),annotation:q(u0),processingInstruction:q(u0),definition:jn.defineModifier("definition"),constant:jn.defineModifier("constant"),function:jn.defineModifier("function"),standard:jn.defineModifier("standard"),local:jn.defineModifier("local"),special:jn.defineModifier("special")};for(let t in A){let e=A[t];e instanceof jn&&(e.name=t)}$x([{tag:A.link,class:"tok-link"},{tag:A.heading,class:"tok-heading"},{tag:A.emphasis,class:"tok-emphasis"},{tag:A.strong,class:"tok-strong"},{tag:A.keyword,class:"tok-keyword"},{tag:A.atom,class:"tok-atom"},{tag:A.bool,class:"tok-bool"},{tag:A.url,class:"tok-url"},{tag:A.labelName,class:"tok-labelName"},{tag:A.inserted,class:"tok-inserted"},{tag:A.deleted,class:"tok-deleted"},{tag:A.literal,class:"tok-literal"},{tag:A.string,class:"tok-string"},{tag:A.number,class:"tok-number"},{tag:[A.regexp,A.escape,A.special(A.string)],class:"tok-string2"},{tag:A.variableName,class:"tok-variableName"},{tag:A.local(A.variableName),class:"tok-variableName tok-local"},{tag:A.definition(A.variableName),class:"tok-variableName tok-definition"},{tag:A.special(A.variableName),class:"tok-variableName2"},{tag:A.definition(A.propertyName),class:"tok-propertyName tok-definition"},{tag:A.typeName,class:"tok-typeName"},{tag:A.namespace,class:"tok-namespace"},{tag:A.className,class:"tok-className"},{tag:A.macroName,class:"tok-macroName"},{tag:A.propertyName,class:"tok-propertyName"},{tag:A.operator,class:"tok-operator"},{tag:A.comment,class:"tok-comment"},{tag:A.meta,class:"tok-meta"},{tag:A.invalid,class:"tok-invalid"},{tag:A.punctuation,class:"tok-punctuation"}]);var Hd;const Ai=new be;function c1(t){return G.define({combine:t?e=>e.concat(t):void 0})}const f1=new be;class nu{constructor(e,n,r=[],u=""){this.data=e,this.name=u,ze.prototype.hasOwnProperty("tree")||Object.defineProperty(ze.prototype,"tree",{get(){return rt(this)}}),this.parser=n,this.extension=[Gr.of(this),ze.languageData.of((i,o,s)=>{let a=T6(i,o,s),l=a.type.prop(Ai);if(!l)return[];let c=i.facet(l),f=a.type.prop(f1);if(f){let d=a.resolve(o-a.from,s);for(let h of f)if(h.test(d,i)){let p=i.facet(h.facet);return h.type=="replace"?p:p.concat(c)}}return c})].concat(r)}isActiveAt(e,n,r=-1){return T6(e,n,r).type.prop(Ai)==this.data}findRegions(e){let n=e.facet(Gr);if(n?.data==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],u=(i,o)=>{if(i.prop(Ai)==this.data){r.push({from:o,to:o+i.length});return}let s=i.prop(be.mounted);if(s){if(s.tree.prop(Ai)==this.data){if(s.overlay)for(let a of s.overlay)r.push({from:a.from+o,to:a.to+o});else r.push({from:o,to:o+i.length});return}else if(s.overlay){let a=r.length;if(u(s.tree,s.overlay[0].from+o),r.length>a)return}}for(let a=0;a<i.children.length;a++){let l=i.children[a];l instanceof Le&&u(l,i.positions[a]+o)}};return u(rt(e),0),r}get allowsNesting(){return!0}}nu.setState=Oe.define();function T6(t,e,n){let r=t.facet(Gr),u=rt(t).topNode;if(!r||r.allowsNesting)for(let i=u;i;i=i.enter(e,n,Te.ExcludeBuffers|Te.EnterBracketed))i.type.isTop&&(u=i);return u}class wo extends nu{constructor(e,n,r){super(e,n,[],r),this.parser=n}static define(e){let n=c1(e.languageData);return new wo(n,e.parser.configure({props:[Ai.add(r=>r.isTop?n:void 0)]}),e.name)}configure(e,n){return new wo(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function rt(t){let e=t.field(nu.state,!1);return e?e.tree:Le.empty}class gQ{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let r=this.cursorPos-this.string.length;return e<r||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-r,n-r)}}let ps=null;class oa{constructor(e,n,r=[],u,i,o,s,a){this.parser=e,this.state=n,this.fragments=r,this.tree=u,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,n,r){return new oa(e,n,[],Le.empty,0,r,[],null)}startParse(){return this.parser.startParse(new gQ(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Le.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let u=Date.now()+e;e=()=>Date.now()>u}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let u=this.parse.advance();if(u)if(this.fragments=this.withoutTempSkipped(Or.addTree(u,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=u,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(Or.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=ps;ps=this;try{return e()}finally{ps=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=I6(e,n.from,n.to);return e}changes(e,n){let{fragments:r,tree:u,treeLen:i,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((l,c,f,d)=>a.push({fromA:l,toA:c,fromB:f,toB:d})),r=Or.applyChanges(r,a),u=Le.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){s=[];for(let l of this.skipped){let c=e.mapPos(l.from,1),f=e.mapPos(l.to,-1);c<f&&s.push({from:c,to:f})}}}return new oa(this.parser,n,r,u,i,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:u,to:i}=this.skipped[r];u<e.to&&i>e.from&&(this.fragments=I6(this.fragments,u,i),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends l1{createParse(n,r,u){let i=u[0].from,o=u[u.length-1].to;return{parsedPos:i,advance(){let a=ps;if(a){for(let l of u)a.tempSkipped.push(l);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=o,new Le(_t.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return ps}}function I6(t,e,n){return Or.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Bo{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new Bo(n)}static init(e){let n=Math.min(3e3,e.doc.length),r=oa.create(e.facet(Gr).parser,e,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Bo(r)}}nu.state=jt.define({create:Bo.init,update(t,e){for(let n of e.effects)if(n.is(nu.setState))return n.value;return e.startState.facet(Gr)!=e.state.facet(Gr)?Bo.init(e.state):t.apply(e)}});let Ax=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Ax=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const Kd=typeof navigator<"u"&&(!((Hd=navigator.scheduling)===null||Hd===void 0)&&Hd.isInputPending)?()=>navigator.scheduling.isInputPending():null,OQ=xt.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(nu.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(nu.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=Ax(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:u}}=this.view,i=r.field(nu.state);if(i.tree==i.context.tree&&i.context.isDone(u+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Kd?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<u&&r.doc.length>u+1e3,a=i.context.work(()=>Kd&&Kd()||Date.now()>o,u+(s?0:1e5));this.chunkBudget-=Date.now()-n,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:nu.setState.of(new Bo(i.context))})),this.chunkBudget>0&&!(a&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>wn(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Gr=G.define({combine(t){return t.length?t[0]:null},enables:t=>[nu.state,OQ,X.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class sa{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}class sc{constructor(e,n,r,u,i,o=void 0){this.name=e,this.alias=n,this.extensions=r,this.filename=u,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:n,support:r}=e;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new sc(e.name,(e.alias||[]).concat(e.name).map(u=>u.toLowerCase()),e.extensions||[],e.filename,n,r)}static matchFilename(e,n){for(let u of e)if(u.filename&&u.filename.test(n))return u;let r=/\.([^.]+)$/.exec(n);if(r){for(let u of e)if(u.extensions.indexOf(r[1])>-1)return u}return null}static matchLanguageName(e,n,r=!0){n=n.toLowerCase();for(let u of e)if(u.alias.some(i=>i==n))return u;if(r)for(let u of e)for(let i of u.alias){let o=n.indexOf(i);if(o>-1&&(i.length>2||!/\w/.test(n[o-1])&&!/\w/.test(n[o+i.length])))return u}return null}}const bQ=G.define(),Ra=G.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function ac(t){let e=t.facet(Ra);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function aa(t,e){let n="",r=t.tabSize,u=t.facet(Ra)[0];if(u==" "){for(;e>=r;)n+=" ",e-=r;u=" "}for(let i=0;i<e;i++)n+=u;return n}function d1(t,e){t instanceof ze&&(t=new of(t));for(let r of t.state.facet(bQ)){let u=r(t,e);if(u!==void 0)return u}let n=rt(t.state);return n.length>=e?vQ(t,n,e):null}class of{constructor(e,n={}){this.state=e,this.options=n,this.unit=ac(e)}lineAt(e,n=1){let r=this.state.doc.lineAt(e),{simulateBreak:u,simulateDoubleBreak:i}=this.options;return u!=null&&u>=r.from&&u<=r.to?i&&u==e?{text:"",from:e}:(n<0?u<e:u<=e)?{text:r.text.slice(u-r.from),from:u}:{text:r.text.slice(0,u-r.from),from:r.from}:r}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:u}=this.lineAt(e,n);return r.slice(e-u,Math.min(r.length,e+100-u))}column(e,n=1){let{text:r,from:u}=this.lineAt(e,n),i=this.countColumn(r,e-u),o=this.options.overrideIndentation?this.options.overrideIndentation(u):-1;return o>-1&&(i+=o-this.countColumn(r,r.search(/\S|$/))),i}countColumn(e,n=e.length){return yu(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:r,from:u}=this.lineAt(e,n),i=this.options.overrideIndentation;if(i){let o=i(u);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const ja=new be;function vQ(t,e,n){let r=e.resolveStack(n),u=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(u!=r.node){let i=[];for(let o=u;o&&!(o.from<r.node.from||o.to>r.node.to||o.from==r.node.from&&o.type==r.node.type);o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)r={node:i[o],next:r}}return Dx(r,t,n)}function Dx(t,e,n){for(let r=t;r;r=r.next){let u=yQ(r.node);if(u)return u(h1.create(e,n,r))}return 0}function CQ(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function yQ(t){let e=t.type.prop(ja);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(be.closedBy))){let u=t.lastChild,i=u&&r.indexOf(u.name)>-1;return o=>kx(o,!0,1,void 0,i&&!CQ(o)?u.from:void 0)}return t.parent==null?xQ:null}function xQ(){return 0}class h1 extends of{constructor(e,n,r){super(e.state,e.options),this.base=e,this.pos=n,this.context=r}get node(){return this.context.node}static create(e,n,r){return new h1(e,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(EQ(r,e))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return Dx(this.context.next,this.base,this.pos)}}function EQ(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function $Q(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let u=t.options.simulateBreak,i=t.state.doc.lineAt(n.from),o=u==null||u<=i.from?i.to:Math.min(i.to,u);for(let s=n.to;;){let a=e.childAfter(s);if(!a||a==r)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let l=/^ */.exec(i.text.slice(n.to-i.from))[0].length;return{from:n.from,to:n.to+l}}s=a.to}}function AQ({closing:t,align:e=!0,units:n=1}){return r=>kx(r,e,n,t)}function kx(t,e,n,r,u){let i=t.textAfter,o=i.match(/^\s*/)[0].length,s=r&&i.slice(o,o+r.length)==r||u==t.pos+o,a=e?$Q(t):null;return a?s?t.column(a.from):t.column(a.to):t.baseIndent+(s?0:t.unit*n)}const DQ=t=>t.baseIndent;function F0({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const kQ=200;function SQ(){return ze.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,u=n.lineAt(r);if(r>u.from+kQ)return t;let i=n.sliceString(u.from,r);if(!e.some(l=>l.test(i)))return t;let{state:o}=t,s=-1,a=[];for(let{head:l}of o.selection.ranges){let c=o.doc.lineAt(l);if(c.from==s)continue;s=c.from;let f=d1(o,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],h=aa(o,f);d!=h&&a.push({from:c.from,to:c.from+d.length,insert:h})}return a.length?[t,{changes:a,sequential:!0}]:t})}const Sx=G.define(),Yo=new be;function _x(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function _Q(t,e,n){let r=rt(t);if(r.length<n)return null;let u=r.resolveStack(n,1),i=null;for(let o=u;o;o=o.next){let s=o.node;if(s.to<=n||s.from>n)continue;if(i&&s.from<e)break;let a=s.type.prop(Yo);if(a&&(s.to<r.length-50||r.length==t.doc.length||!wQ(s))){let l=a(s,t);l&&l.from<=n&&l.from>=e&&l.to>n&&(i=l)}}return i}function wQ(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function lc(t,e,n){for(let r of t.facet(Sx)){let u=r(t,e,n);if(u)return u}return _Q(t,e,n)}function wx(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const sf=Oe.define({map:wx}),Ma=Oe.define({map:wx});function Bx(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(r=>r.from<=n&&r.to>=n)||e.push(t.lineBlockAt(n));return e}const Ti=jt.define({create(){return ce.none},update(t,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((r,u)=>t=z6(t,r,u)),t=t.map(e.changes);let n=[];for(let r of e.effects)r.is(sf)&&!BQ(t,r.value.from,r.value.to)?n.push(r.value):r.is(Ma)&&(t=t.update({filter:(u,i)=>r.value.from!=u||r.value.to!=i,filterFrom:r.value.from,filterTo:r.value.to}));if(n.length){let{preparePlaceholder:r}=e.state.facet(Qx),u=n.map(i=>(r?ce.replace({widget:new ZQ(r(e.state,i))}):Z6).range(i.from,i.to));t=t.update({add:u})}return e.selection&&(t=z6(t,e.selection.main.head)),t},provide:t=>X.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(r,u)=>{n.push(r,u)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],u=t[n++];if(typeof r!="number"||typeof u!="number")throw new RangeError("Invalid JSON for fold state");e.push(Z6.range(r,u))}return ce.set(e,!0)}});function z6(t,e,n=e){let r=!1;return t.between(e,n,(u,i)=>{u<n&&i>e&&(r=!0)}),r?t.update({filterFrom:e,filterTo:n,filter:(u,i)=>u>=n||i<=e}):t}function cc(t,e,n){var r;let u=null;return(r=t.field(Ti,!1))===null||r===void 0||r.between(e,n,(i,o)=>{(!u||u.from>i)&&(u={from:i,to:o})}),u}function BQ(t,e,n){let r=!1;return t.between(e,e,(u,i)=>{u==e&&i==n&&(r=!0)}),r}function Px(t,e){return t.field(Ti,!1)?e:e.concat(Oe.appendConfig.of(Tx()))}const PQ=t=>{for(let e of Bx(t)){let n=lc(t.state,e.from,e.to);if(n)return t.dispatch({effects:Px(t.state,[sf.of(n),Fx(t,n)])}),!0}return!1},FQ=t=>{if(!t.state.field(Ti,!1))return!1;let e=[];for(let n of Bx(t)){let r=cc(t.state,n.from,n.to);r&&e.push(Ma.of(r),Fx(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function Fx(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,u=t.state.doc.lineAt(e.to).number;return X.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${u}.`)}const QQ=t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let u=t.lineBlockAt(r),i=lc(e,u.from,u.to);i&&n.push(sf.of(i)),r=(i?t.lineBlockAt(i.to):u).to+1}return n.length&&t.dispatch({effects:Px(t.state,n)}),!!n.length},TQ=t=>{let e=t.state.field(Ti,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(r,u)=>{n.push(Ma.of({from:r,to:u}))}),t.dispatch({effects:n}),!0},IQ=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:PQ},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:FQ},{key:"Ctrl-Alt-[",run:QQ},{key:"Ctrl-Alt-]",run:TQ}],zQ={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Qx=G.define({combine(t){return Ju(t,zQ)}});function Tx(t){return[Ti,MQ]}function Ix(t,e){let{state:n}=t,r=n.facet(Qx),u=o=>{let s=t.lineBlockAt(t.posAtDOM(o.target)),a=cc(t.state,s.from,s.to);a&&t.dispatch({effects:Ma.of(a)}),o.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,u,e);let i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=u,i}const Z6=ce.replace({widget:new class extends er{toDOM(t){return Ix(t,null)}}});class ZQ extends er{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Ix(e,this.value)}}const RQ={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Jd extends Er{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function jQ(t={}){let e={...RQ,...t},n=new Jd(e,!0),r=new Jd(e,!1),u=xt.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Gr)!=o.state.facet(Gr)||o.startState.field(Ti,!1)!=o.state.field(Ti,!1)||rt(o.startState)!=rt(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let s=new Yu;for(let a of o.viewportLineBlocks){let l=cc(o.state,a.from,a.to)?r:lc(o.state,a.from,a.to)?n:null;l&&s.add(a.from,a.from,l)}return s.finish()}}),{domEventHandlers:i}=e;return[u,ZF({class:"cm-foldGutter",markers(o){var s;return((s=o.plugin(u))===null||s===void 0?void 0:s.markers)||we.empty},initialSpacer(){return new Jd(e,!1)},domEventHandlers:{...i,click:(o,s,a)=>{if(i.click&&i.click(o,s,a))return!0;let l=cc(o.state,s.from,s.to);if(l)return o.dispatch({effects:Ma.of(l)}),!0;let c=lc(o.state,s.from,s.to);return c?(o.dispatch({effects:sf.of(c)}),!0):!1}}}),Tx()]}const MQ=X.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class af{constructor(e,n){this.specs=e;let r;function u(s){let a=Vr.newName();return(r||(r=Object.create(null)))["."+a]=s,a}const i=typeof n.all=="string"?n.all:n.all?u(n.all):void 0,o=n.scope;this.scope=o instanceof nu?s=>s.prop(Ai)==o.data:o?s=>s==o:void 0,this.style=$x(e.map(s=>({tag:s.tag,class:s.class||u(Object.assign({},s,{tag:null}))})),{all:i}).style,this.module=r?new Vr(r):null,this.themeType=n.themeType}static define(e,n){return new af(e,n||{})}}const Up=G.define(),zx=G.define({combine(t){return t.length?[t[0]]:null}});function eh(t){let e=t.facet(Up);return e.length?e:t.facet(zx)}function LQ(t,e){let n=[UQ],r;return t instanceof af&&(t.module&&n.push(X.styleModule.of(t.module)),r=t.themeType),e?.fallback?n.push(zx.of(t)):r?n.push(Up.computeN([X.darkTheme],u=>u.facet(X.darkTheme)==(r=="dark")?[t]:[])):n.push(Up.of(t)),n}class NQ{constructor(e){this.markCache=Object.create(null),this.tree=rt(e.state),this.decorations=this.buildDeco(e,eh(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=rt(e.state),r=eh(e.state),u=r!=eh(e.startState),{viewport:i}=e.view,o=e.changes.mapPos(this.decoratedTo,1);n.length<i.to&&!u&&n.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(n!=this.tree||e.viewportChanged||u)&&(this.tree=n,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=i.to)}buildDeco(e,n){if(!n||!this.tree.length)return ce.none;let r=new Yu;for(let{from:u,to:i}of e.visibleRanges)hQ(this.tree,n,(o,s,a)=>{r.add(o,s,this.markCache[a]||(this.markCache[a]=ce.mark({class:a})))},u,i);return r.finish()}}const UQ=Ku.high(xt.fromClass(NQ,{decorations:t=>t.decorations})),XQ=af.define([{tag:A.meta,color:"#404740"},{tag:A.link,textDecoration:"underline"},{tag:A.heading,textDecoration:"underline",fontWeight:"bold"},{tag:A.emphasis,fontStyle:"italic"},{tag:A.strong,fontWeight:"bold"},{tag:A.strikethrough,textDecoration:"line-through"},{tag:A.keyword,color:"#708"},{tag:[A.atom,A.bool,A.url,A.contentSeparator,A.labelName],color:"#219"},{tag:[A.literal,A.inserted],color:"#164"},{tag:[A.string,A.deleted],color:"#a11"},{tag:[A.regexp,A.escape,A.special(A.string)],color:"#e40"},{tag:A.definition(A.variableName),color:"#00f"},{tag:A.local(A.variableName),color:"#30a"},{tag:[A.typeName,A.namespace],color:"#085"},{tag:A.className,color:"#167"},{tag:[A.special(A.variableName),A.macroName],color:"#256"},{tag:A.definition(A.propertyName),color:"#00c"},{tag:A.comment,color:"#940"},{tag:A.invalid,color:"#f00"}]),VQ=X.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Zx=1e4,Rx="()[]{}",jx=G.define({combine(t){return Ju(t,{afterCursor:!0,brackets:Rx,maxScanDistance:Zx,renderMatch:YQ})}}),qQ=ce.mark({class:"cm-matchingBracket"}),WQ=ce.mark({class:"cm-nonmatchingBracket"});function YQ(t){let e=[],n=t.matched?qQ:WQ;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}function R6(t){let e=[],n=t.facet(jx);for(let r of t.selection.ranges){if(!r.empty)continue;let u=Lu(t,r.head,-1,n)||r.head>0&&Lu(t,r.head-1,1,n)||n.afterCursor&&(Lu(t,r.head,1,n)||r.head<t.doc.length&&Lu(t,r.head+1,-1,n));u&&(e=e.concat(n.renderMatch(u,t)))}return ce.set(e,!0)}const GQ=xt.fromClass(class{constructor(t){this.paused=!1,this.decorations=R6(t.state)}update(t){(t.docChanged||t.selectionSet||this.paused)&&(t.view.composing?(this.decorations=this.decorations.map(t.changes),this.paused=!0):(this.decorations=R6(t.state),this.paused=!1))}},{decorations:t=>t.decorations}),HQ=[GQ,VQ];function KQ(t={}){return[jx.of(t),HQ]}const Mx=new be;function Xp(t,e,n){let r=t.prop(e<0?be.openedBy:be.closedBy);if(r)return r;if(t.name.length==1){let u=n.indexOf(t.name);if(u>-1&&u%2==(e<0?1:0))return[n[u+e]]}return null}function Vp(t){let e=t.type.prop(Mx);return e?e(t.node):t}function Lu(t,e,n,r={}){let u=r.maxScanDistance||Zx,i=r.brackets||Rx,o=rt(t),s=o.resolveInner(e,n);for(let a=s;a;a=a.parent){let l=Xp(a.type,n,i);if(l&&a.from<a.to){let c=Vp(a);if(c&&(n>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return JQ(t,e,n,a,c,l,i)}}return eT(t,e,n,o,s.type,u,i)}function JQ(t,e,n,r,u,i,o){let s=r.parent,a={from:u.from,to:u.to},l=0,c=s?.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(l==0&&i.indexOf(c.type.name)>-1&&c.from<c.to){let f=Vp(c);return{start:a,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(Xp(c.type,n,o))l++;else if(Xp(c.type,-n,o)){if(l==0){let f=Vp(c);return{start:a,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}l--}}while(n<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}function eT(t,e,n,r,u,i,o){if(n<0?!e:e==t.doc.length)return null;let s=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),a=o.indexOf(s);if(a<0||a%2==0!=n>0)return null;let l={from:n<0?e-1:e,to:n>0?e+1:e},c=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let d=0;!c.next().done&&d<=i;){let h=c.value;n<0&&(d+=h.length);let p=e+d*n;for(let m=n>0?0:h.length-1,g=n>0?h.length:-1;m!=g;m+=n){let C=o.indexOf(h[m]);if(!(C<0||r.resolveInner(p+m,1).type!=u))if(C%2==0==n>0)f++;else{if(f==1)return{start:l,end:{from:p+m,to:p+m+1},matched:C>>1==a>>1};f--}}n>0&&(d+=h.length)}return c.done?{start:l,matched:!1}:null}const tT=Object.create(null),j6=[_t.none],M6=[],L6=Object.create(null),nT=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])nT[t]=uT(tT,e);function th(t,e){M6.indexOf(t)>-1||(M6.push(t),console.warn(e))}function uT(t,e){let n=[];for(let s of e.split(" ")){let a=[];for(let l of s.split(".")){let c=t[l]||A[l];c?typeof c=="function"?a.length?a=a.map(c):th(l,`Modifier ${l} used at start of tag`):a.length?th(l,`Tag ${l} used as modifier`):a=Array.isArray(c)?c:[c]:th(l,`Unknown highlighting tag ${l}`)}for(let l of a)n.push(l)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),u=r+" "+n.map(s=>s.id),i=L6[u];if(i)return i.id;let o=L6[u]=_t.define({id:j6.length,name:r,props:[Wo({[r]:n})]});return j6.push(o),o.id}Ke.RTL,Ke.LTR;class p1{constructor(e,n,r,u){this.state=e,this.pos=n,this.explicit=r,this.view=u,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let n=rt(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),u=n.text.slice(r-n.from,this.pos-n.from),i=u.search(Nx(e,!1));return i<0?null:{from:r+i,to:this.pos,text:u.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,n,r){e=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function N6(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function rT(t){let e=Object.create(null),n=Object.create(null);for(let{label:u}of t){e[u[0]]=!0;for(let i=1;i<u.length;i++)n[u[i]]=!0}let r=N6(e)+N6(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function Lx(t){let e=t.map(u=>typeof u=="string"?{label:u}:u),[n,r]=e.every(u=>/^\w+$/.test(u.label))?[/\w*$/,/\w+$/]:rT(e);return u=>{let i=u.matchBefore(r);return i||u.explicit?{from:i?i.from:u.pos,options:e,validFor:n}:null}}function iT(t,e){return n=>{for(let r=rt(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(t.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return e(n)}}class U6{constructor(e,n,r,u){this.completion=e,this.source=n,this.match=r,this.score=u}}function Pi(t){return t.selection.main.from}function Nx(t,e){var n;let{source:r}=t,u=e&&r[0]!="^",i=r[r.length-1]!="$";return!u&&!i?t:new RegExp(`${u?"^":""}(?:${r})${i?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const m1=kr.define();function oT(t,e,n,r){let{main:u}=t.selection,i=n-u.from,o=r-u.from;return{...t.changeByRange(s=>{if(s!=u&&n!=r&&t.sliceDoc(s.from+i,s.from+o)!=t.sliceDoc(n,r))return{range:s};let a=t.toText(e);return{changes:{from:s.from+i,to:r==u.from?s.to:s.from+o,insert:a},range:w.cursor(s.from+i+a.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const X6=new WeakMap;function sT(t){if(!Array.isArray(t))return t;let e=X6.get(t);return e||X6.set(t,e=Lx(t)),e}const fc=Oe.define(),la=Oe.define();class aT{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let r=kn(e,n),u=Zu(r);this.chars.push(r);let i=e.slice(n,n+u),o=i.toUpperCase();this.folded.push(kn(o==i?i.toLowerCase():o,0)),n+=u}this.astral=e.length!=this.chars.length}ret(e,n){return this.score=e,this.matched=n,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:r,any:u,precise:i,byWord:o}=this;if(n.length==1){let b=kn(e,0),O=Zu(b),y=O==e.length?0:-100;if(b!=n[0])if(b==r[0])y+=-200;else return null;return this.ret(y,[0,O])}let s=e.indexOf(this.pattern);if(s==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=n.length,l=0;if(s<0){for(let b=0,O=Math.min(e.length,200);b<O&&l<a;){let y=kn(e,b);(y==n[l]||y==r[l])&&(u[l++]=b),b+=Zu(y)}if(l<a)return null}let c=0,f=0,d=!1,h=0,p=-1,m=-1,g=/[a-z]/.test(e),C=!0;for(let b=0,O=Math.min(e.length,200),y=0;b<O&&f<a;){let $=kn(e,b);s<0&&(c<a&&$==n[c]&&(i[c++]=b),h<a&&($==n[h]||$==r[h]?(h==0&&(p=b),m=b+1,h++):h=0));let x,_=$<255?$>=48&&$<=57||$>=97&&$<=122?2:$>=65&&$<=90?1:0:(x=Nm($))!=x.toLowerCase()?1:x!=x.toUpperCase()?2:0;(!b||_==1&&g||y==0&&_!=0)&&(n[f]==$||r[f]==$&&(d=!0)?o[f++]=b:o.length&&(C=!1)),y=_,b+=Zu($)}return f==a&&o[0]==0&&C?this.result(-100+(d?-200:0),o,e):h==a&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):h==a?this.ret(-900-e.length,[p,m]):f==a?this.result(-100+(d?-200:0)+-700+(C?0:-1100),o,e):n.length==2?null:this.result((u[0]?-700:0)+-200+-1100,u,e)}result(e,n,r){let u=[],i=0;for(let o of n){let s=o+(this.astral?Zu(kn(r,o)):1);i&&u[i-1]==o?u[i-1]=s:(u[i++]=o,u[i++]=s)}return this.ret(e-r.length,u)}}class lT{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let n=e.slice(0,this.pattern.length),r=n==this.pattern?0:n.toLowerCase()==this.folded?-200:null;return r==null?null:(this.matched=[0,n.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}const Qt=G.define({combine(t){return Ju(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:cT,filterStrict:!1,compareCompletions:(e,n)=>(e.sortText||e.label).localeCompare(n.sortText||n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>r=>V6(e(r),n(r)),optionClass:(e,n)=>r=>V6(e(r),n(r)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function V6(t,e){return t?e?t+" "+e:t:e}function cT(t,e,n,r,u,i){let o=t.textDirection==Ke.RTL,s=o,a=!1,l="top",c,f,d=e.left-u.left,h=u.right-e.right,p=r.right-r.left,m=r.bottom-r.top;if(s&&d<Math.min(p,h)?s=!1:!s&&h<Math.min(p,d)&&(s=!0),p<=(s?d:h))c=Math.max(u.top,Math.min(n.top,u.bottom-m))-e.top,f=Math.min(400,s?d:h);else{a=!0,f=Math.min(400,(o?e.right:u.right-e.left)-30);let b=u.bottom-e.bottom;b>=m||b>e.top?c=n.bottom-e.top:(l="bottom",c=e.bottom-n.top)}let g=(e.bottom-e.top)/i.offsetHeight,C=(e.right-e.left)/i.offsetWidth;return{style:`${l}: ${c/g}px; max-width: ${f/C}px`,class:"cm-completionInfo-"+(a?o?"left-narrow":"right-narrow":s?"left":"right")}}const g1=Oe.define();function fT(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(u=>"cm-completionIcon-"+u)),r.setAttribute("aria-hidden","true"),r},position:20}),e.push({render(n,r,u,i){let o=document.createElement("span");o.className="cm-completionLabel";let s=n.displayLabel||n.label,a=0;for(let l=0;l<i.length;){let c=i[l++],f=i[l++];c>a&&o.appendChild(document.createTextNode(s.slice(a,c)));let d=o.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(s.slice(c,f))),d.className="cm-completionMatchedText",a=f}return a<s.length&&o.appendChild(document.createTextNode(s.slice(a))),o},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),e.sort((n,r)=>n.position-r.position).map(n=>n.render)}function nh(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let u=Math.floor(e/n);return{from:u*n,to:(u+1)*n}}let r=Math.ceil((t-e)/n);return{from:t-r*n,to:t-(r-1)*n}}class dT{constructor(e,n,r){this.view=e,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let u=e.state.field(n),{options:i,selected:o}=u.open,s=e.state.facet(Qt);this.optionContent=fT(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=nh(i.length,o,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:l}=e.state.field(n).open;for(let c=a.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]<l.length){this.applyCompletion(e,l[+f[1]]),a.preventDefault();return}if(a.target==this.list){let c=this.list.classList.contains("cm-completionListIncompleteTop")&&a.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&a.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;c!=null&&(e.dispatch({effects:g1.of(c)}),a.preventDefault())}}),this.dom.addEventListener("focusout",a=>{let l=e.state.field(this.stateField,!1);l&&l.tooltip&&e.state.facet(Qt).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:la.of(null)})}),this.showOptions(i,u.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let r=e.state.field(this.stateField),u=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=u){let{options:i,selected:o,disabled:s}=r.open;(!u.open||u.open.options!=i)&&(this.range=nh(i.length,o,e.state.facet(Qt).maxRenderedOptions),this.showOptions(i,r.id)),this.updateSel(),s!=((n=u.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;(n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=nh(n.options.length,n.selected,this.view.state.facet(Qt).maxRenderedOptions),this.showOptions(n.options,e.id));let r=this.updateSelectedOption(n.selected);if(r){this.destroyInfo();let{completion:u}=n.options[n.selected],{info:i}=u;if(!i)return;let o=typeof i=="string"?document.createTextNode(i):i(u);if(!o)return;"then"in o?o.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,u)}).catch(s=>wn(this.view.state,s,"completion info")):(this.addInfoPane(o,u),r.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",r.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)r.appendChild(e),this.infoDestroy=null;else{let{dom:u,destroy:i}=e;r.appendChild(u),this.infoDestroy=i||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let r=this.list.firstChild,u=this.range.from;r;r=r.nextSibling,u++)r.nodeName!="LI"||!r.id?u--:u==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&(r.removeAttribute("aria-selected"),r.removeAttribute("aria-describedby"));return n&&pT(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),u=e.getBoundingClientRect(),i=this.space;if(!i){let o=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return u.top>Math.min(i.bottom,n.bottom)-10||u.bottom<Math.max(i.top,n.top)+10?null:this.view.state.facet(Qt).positionInfo(this.view,n,u,r,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,n,r){const u=document.createElement("ul");u.id=n,u.setAttribute("role","listbox"),u.setAttribute("aria-expanded","true"),u.setAttribute("aria-label",this.view.state.phrase("Completions")),u.addEventListener("mousedown",o=>{o.target==u&&o.preventDefault()});let i=null;for(let o=r.from;o<r.to;o++){let{completion:s,match:a}=e[o],{section:l}=s;if(l){let d=typeof l=="string"?l:l.name;if(d!=i&&(o>r.from||r.from==0))if(i=d,typeof l!="string"&&l.header)u.appendChild(l.header(l));else{let h=u.appendChild(document.createElement("completion-section"));h.textContent=d}}const c=u.appendChild(document.createElement("li"));c.id=n+"-"+o,c.setAttribute("role","option");let f=this.optionClass(s);f&&(c.className=f);for(let d of this.optionContent){let h=d(s,this.view.state,this.view,a);h&&c.appendChild(h)}}return r.from&&u.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&u.classList.add("cm-completionListIncompleteBottom"),u}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function hT(t,e){return n=>new dT(n,t,e)}function pT(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),u=n.height/t.offsetHeight;r.top<n.top?t.scrollTop-=(n.top-r.top)/u:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/u)}function q6(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function mT(t,e){let n=[],r=null,u=null,i=c=>{n.push(c);let{section:f}=c.completion;if(f){r||(r=[]);let d=typeof f=="string"?f:f.name;r.some(h=>h.name==d)||r.push(typeof f=="string"?{name:d}:f)}},o=e.facet(Qt);for(let c of t)if(c.hasResult()){let f=c.result.getMatch;if(c.result.filter===!1)for(let d of c.result.options)i(new U6(d,c.source,f?f(d):[],1e9-n.length));else{let d=e.sliceDoc(c.from,c.to),h,p=o.filterStrict?new lT(d):new aT(d);for(let m of c.result.options)if(h=p.match(m.label)){let g=m.displayLabel?f?f(m,h.matched):[]:h.matched,C=h.score+(m.boost||0);if(i(new U6(m,c.source,g,C)),typeof m.section=="object"&&m.section.rank==="dynamic"){let{name:b}=m.section;u||(u=Object.create(null)),u[b]=Math.max(C,u[b]||-1e9)}}}}if(r){let c=Object.create(null),f=0,d=(h,p)=>(h.rank==="dynamic"&&p.rank==="dynamic"?u[p.name]-u[h.name]:0)||(typeof h.rank=="number"?h.rank:1e9)-(typeof p.rank=="number"?p.rank:1e9)||(h.name<p.name?-1:1);for(let h of r.sort(d))f-=1e5,c[h.name]=f;for(let h of n){let{section:p}=h.completion;p&&(h.score+=c[typeof p=="string"?p:p.name])}}let s=[],a=null,l=o.compareCompletions;for(let c of n.sort((f,d)=>d.score-f.score||l(f.completion,d.completion))){let f=c.completion;!a||a.label!=f.label||a.detail!=f.detail||a.type!=null&&f.type!=null&&a.type!=f.type||a.apply!=f.apply||a.boost!=f.boost?s.push(c):q6(c.completion)>q6(a)&&(s[s.length-1]=c),a=c.completion}return s}class io{constructor(e,n,r,u,i,o){this.options=e,this.attrs=n,this.tooltip=r,this.timestamp=u,this.selected=i,this.disabled=o}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new io(this.options,W6(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,r,u,i,o){if(u&&!o&&e.some(l=>l.isPending))return u.setDisabled();let s=mT(e,n);if(!s.length)return u&&e.some(l=>l.isPending)?u.setDisabled():null;let a=n.facet(Qt).selectOnOpen?0:-1;if(u&&u.selected!=a&&u.selected!=-1){let l=u.options[u.selected].completion;for(let c=0;c<s.length;c++)if(s[c].completion==l){a=c;break}}return new io(s,W6(r,a),{pos:e.reduce((l,c)=>c.hasResult()?Math.min(l,c.from):l,1e8),create:yT,above:i.aboveCursor},u?u.timestamp:Date.now(),a,!1)}map(e){return new io(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new io(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class dc{constructor(e,n,r){this.active=e,this.id=n,this.open=r}static start(){return new dc(vT,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,r=n.facet(Qt),i=(r.override||n.languageDataAt("autocomplete",Pi(n)).map(sT)).map(a=>(this.active.find(c=>c.source==a)||new uu(a,this.active.some(c=>c.state!=0)?1:0)).update(e,r));i.length==this.active.length&&i.every((a,l)=>a==this.active[l])&&(i=this.active);let o=this.open,s=e.effects.some(a=>a.is(O1));o&&e.docChanged&&(o=o.map(e.changes)),e.selection||i.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!gT(i,this.active)||s?o=io.build(i,n,this.id,o,r,s):o&&o.disabled&&!i.some(a=>a.isPending)&&(o=null),!o&&i.every(a=>!a.isPending)&&i.some(a=>a.hasResult())&&(i=i.map(a=>a.hasResult()?new uu(a.source,0):a));for(let a of e.effects)a.is(g1)&&(o=o&&o.setSelected(a.value,this.id));return i==this.active&&o==this.open?this:new dc(i,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?OT:bT}}function gT(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;r<e.length&&!e[r].hasResult();)r++;let u=n==t.length,i=r==e.length;if(u||i)return u==i;if(t[n++].result!=e[r++].result)return!1}}const OT={"aria-autocomplete":"list"},bT={};function W6(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const vT=[];function Ux(t,e){if(t.isUserEvent("input.complete")){let r=t.annotation(m1);if(r&&e.activateOnCompletion(r))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class uu{constructor(e,n,r=!1){this.source=e,this.state=n,this.explicit=r}hasResult(){return!1}get isPending(){return this.state==1}update(e,n){let r=Ux(e,n),u=this;(r&8||r&16&&this.touches(e))&&(u=new uu(u.source,0)),r&4&&u.state==0&&(u=new uu(this.source,1)),u=u.updateFor(e,r);for(let i of e.effects)if(i.is(fc))u=new uu(u.source,1,i.value);else if(i.is(la))u=new uu(u.source,0);else if(i.is(O1))for(let o of i.value)o.source==u.source&&(u=o);return u}updateFor(e,n){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(Pi(e.state))}}class go extends uu{constructor(e,n,r,u,i,o){super(e,3,n),this.limit=r,this.result=u,this.from=i,this.to=o}hasResult(){return!0}updateFor(e,n){var r;if(!(n&3))return this.map(e.changes);let u=this.result;u.map&&!e.changes.empty&&(u=u.map(u,e.changes));let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=Pi(e.state);if(s>o||!u||n&2&&(Pi(e.startState)==this.from||s<this.limit))return new uu(this.source,n&4?1:0);let a=e.changes.mapPos(this.limit);return CT(u.validFor,e.state,i,o)?new go(this.source,this.explicit,a,u,i,o):u.update&&(u=u.update(u,i,o,new p1(e.state,s,!1)))?new go(this.source,this.explicit,a,u,u.from,(r=u.to)!==null&&r!==void 0?r:Pi(e.state)):new uu(this.source,1,this.explicit)}map(e){if(e.empty)return this;let n=this.result.map?this.result.map(this.result,e):this.result;return n?new go(this.source,this.explicit,e.mapPos(this.limit),n,e.mapPos(this.from),e.mapPos(this.to,1)):new uu(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function CT(t,e,n,r){if(!t)return!1;let u=e.sliceDoc(n,r);return typeof t=="function"?t(u,n,r,e):Nx(t,!0).test(u)}const O1=Oe.define({map(t,e){return t.map(n=>n.map(e))}}),Sn=jt.define({create(){return dc.start()},update(t,e){return t.update(e)},provide:t=>[i1.from(t,e=>e.tooltip),X.contentAttributes.from(t,e=>e.attrs)]});function b1(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(Sn).active.find(u=>u.source==e.source);return r instanceof go?(typeof n=="string"?t.dispatch({...oT(t.state,n,r.from,r.to),annotations:m1.of(e.completion)}):n(t,e.completion,r.from,r.to),!0):!1}const yT=hT(Sn,b1);function r0(t,e="option"){return n=>{let r=n.state.field(Sn,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(Qt).interactionDelay)return!1;let u=1,i;e=="page"&&(i=cx(n,r.open.tooltip))&&(u=Math.max(2,Math.floor(i.dom.offsetHeight/i.dom.querySelector("li").offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+u*(t?1:-1):t?0:o-1;return s<0?s=e=="page"?0:o-1:s>=o&&(s=e=="page"?o-1:0),n.dispatch({effects:g1.of(s)}),!0}}const xT=t=>{let e=t.state.field(Sn,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(Qt).interactionDelay?!1:b1(t,e.open.options[e.open.selected])},uh=t=>t.state.field(Sn,!1)?(t.dispatch({effects:fc.of(!0)}),!0):!1,ET=t=>{let e=t.state.field(Sn,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:la.of(null)}),!0)};class $T{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const AT=50,DT=1e3,kT=xt.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(Sn).active)e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(Sn),n=t.state.facet(Qt);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Sn)==e)return;let r=t.transactions.some(i=>{let o=Ux(i,n);return o&8||(i.selection||i.docChanged)&&!(o&3)});for(let i=0;i<this.running.length;i++){let o=this.running[i];if(r||o.context.abortOnDocChange&&t.docChanged||o.updates.length+t.transactions.length>AT&&Date.now()-o.time>DT){for(let s of o.context.abortListeners)try{s()}catch(a){wn(this.view.state,a)}o.context.abortListeners=null,this.running.splice(i--,1)}else o.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(i=>i.effects.some(o=>o.is(fc)))&&(this.pendingStart=!0);let u=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(i=>i.isPending&&!this.running.some(o=>o.active.source==i.source))?setTimeout(()=>this.startUpdate(),u):-1,this.composing!=0)for(let i of t.transactions)i.isUserEvent("input.type")?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Sn);for(let n of e.active)n.isPending&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Qt).updateSyncTime))}startQuery(t){let{state:e}=this.view,n=Pi(e),r=new p1(e,n,t.explicit,this.view),u=new $T(t,r);this.running.push(u),Promise.resolve(t.source(r)).then(i=>{u.context.aborted||(u.done=i||null,this.scheduleAccept())},i=>{this.view.dispatch({effects:la.of(null)}),wn(this.view.state,i)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Qt).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(Qt),r=this.view.state.field(Sn);for(let u=0;u<this.running.length;u++){let i=this.running[u];if(i.done===void 0)continue;if(this.running.splice(u--,1),i.done){let s=Pi(i.updates.length?i.updates[0].startState:this.view.state),a=Math.min(s,i.done.from+(i.active.explicit?0:1)),l=new go(i.active.source,i.active.explicit,a,i.done,i.done.from,(t=i.done.to)!==null&&t!==void 0?t:s);for(let c of i.updates)l=l.update(c,n);if(l.hasResult()){e.push(l);continue}}let o=r.active.find(s=>s.source==i.active.source);if(o&&o.isPending)if(i.done==null){let s=new uu(i.active.source,0);for(let a of i.updates)s=s.update(a,n);s.isPending||e.push(s)}else this.startQuery(o)}(e.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:O1.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Sn,!1);if(e&&e.tooltip&&this.view.state.facet(Qt).closeOnBlur){let n=e.open&&cx(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:la.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:fc.of(!1)}),20),this.composing=0}}}),ST=typeof navigator=="object"&&/Win/.test(navigator.platform),_T=Ku.highest(X.domEventHandlers({keydown(t,e){let n=e.state.field(Sn,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||!t.key||t.key.length>1||t.ctrlKey&&!(ST&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],u=n.active.find(o=>o.source==r.source),i=r.completion.commitCharacters||u.result.commitCharacters;return i&&i.indexOf(t.key)>-1&&b1(e,r),!1}})),Xx=X.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class wT{constructor(e,n,r,u){this.field=e,this.line=n,this.from=r,this.to=u}}class v1{constructor(e,n,r){this.field=e,this.from=n,this.to=r}map(e){let n=e.mapPos(this.from,-1,Nt.TrackDel),r=e.mapPos(this.to,1,Nt.TrackDel);return n==null||r==null?null:new v1(this.field,n,r)}}class C1{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let r=[],u=[n],i=e.doc.lineAt(n),o=/^\s*/.exec(i.text)[0];for(let a of this.lines){if(r.length){let l=o,c=/^\t*/.exec(a)[0].length;for(let f=0;f<c;f++)l+=e.facet(Ra);u.push(n+l.length-c),a=l+a.slice(c)}r.push(a),n+=a.length+1}let s=this.fieldPositions.map(a=>new v1(a.field,u[a.line]+a.from,u[a.line]+a.to));return{text:r,ranges:s}}static parse(e){let n=[],r=[],u=[],i;for(let o of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let s=i[1]?+i[1]:null,a=i[2]||i[3]||"",l=-1;s===0&&(s=1e9);let c=a.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f<n.length;f++)(s!=null?n[f].seq==s:c&&n[f].name==c)&&(l=f);if(l<0){let f=0;for(;f<n.length&&(s==null||n[f].seq!=null&&n[f].seq<s);)f++;n.splice(f,0,{seq:s,name:c}),l=f;for(let d of u)d.field>=l&&d.field++}for(let f of u)if(f.line==r.length&&f.from>i.index){let d=i[2]?3+(i[1]||"").length:2;f.from-=d,f.to-=d}u.push(new wT(l,r.length,i.index,i.index+c.length)),o=o.slice(0,i.index)+a+o.slice(i.index+i[0].length)}o=o.replace(/\\([{}])/g,(s,a,l)=>{for(let c of u)c.line==r.length&&c.from>l&&(c.from--,c.to--);return a}),r.push(o)}return new C1(r,u)}}let BT=ce.widget({widget:new class extends er{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),PT=ce.mark({class:"cm-snippetField"});class Go{constructor(e,n){this.ranges=e,this.active=n,this.deco=ce.set(e.map(r=>(r.from==r.to?BT:PT).range(r.from,r.to)),!0)}map(e){let n=[];for(let r of this.ranges){let u=r.map(e);if(!u)return null;n.push(u)}return new Go(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const La=Oe.define({map(t,e){return t&&t.map(e)}}),FT=Oe.define(),ca=jt.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(La))return n.value;if(n.is(FT)&&t)return new Go(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>X.decorations.from(t,e=>e?e.deco:ce.none)});function y1(t,e){return w.create(t.filter(n=>n.field==e).map(n=>w.range(n.from,n.to)))}function QT(t){let e=C1.parse(t);return(n,r,u,i)=>{let{text:o,ranges:s}=e.instantiate(n.state,u),{main:a}=n.state.selection,l={changes:{from:u,to:i==a.from?a.to:i,insert:Ze.of(o)},scrollIntoView:!0,annotations:r?[m1.of(r),$t.userEvent.of("input.complete")]:void 0};if(s.length&&(l.selection=y1(s,0)),s.some(c=>c.field>0)){let c=new Go(s,0),f=l.effects=[La.of(c)];n.state.field(ca,!1)===void 0&&f.push(Oe.appendConfig.of([ca,RT,jT,Xx]))}n.dispatch(n.state.update(l))}}function Vx(t){return({state:e,dispatch:n})=>{let r=e.field(ca,!1);if(!r||t<0&&r.active==0)return!1;let u=r.active+t,i=t>0&&!r.ranges.some(o=>o.field==u+t);return n(e.update({selection:y1(r.ranges,u),effects:La.of(i?null:new Go(r.ranges,u)),scrollIntoView:!0})),!0}}const TT=({state:t,dispatch:e})=>t.field(ca,!1)?(e(t.update({effects:La.of(null)})),!0):!1,IT=Vx(1),zT=Vx(-1),ZT=[{key:"Tab",run:IT,shift:zT},{key:"Escape",run:TT}],Y6=G.define({combine(t){return t.length?t[0]:ZT}}),RT=Ku.highest(qo.compute([Y6],t=>t.facet(Y6)));function $n(t,e){return{...e,apply:QT(t)}}const jT=X.domEventHandlers({mousedown(t,e){let n=e.state.field(ca,!1),r;if(!n||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let u=n.ranges.find(i=>i.from<=r&&i.to>=r);return!u||u.field==n.active?!1:(e.dispatch({selection:y1(n.ranges,u.field),effects:La.of(n.ranges.some(i=>i.field>u.field)?new Go(n.ranges,u.field):null),scrollIntoView:!0}),!0)}}),fa={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Di=Oe.define({map(t,e){let n=e.mapPos(t,-1,Nt.TrackAfter);return n??void 0}}),x1=new class extends Xr{};x1.startSide=1;x1.endSide=-1;const qx=jt.define({create(){return we.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of e.effects)n.is(Di)&&(t=t.update({add:[x1.range(n.value,n.value+1)]}));return t}});function MT(){return[NT,qx]}const rh="()[]{}<>«»»«[]{}";function Wx(t){for(let e=0;e<rh.length;e+=2)if(rh.charCodeAt(e)==t)return rh.charAt(e+1);return Nm(t<128?t:t+1)}function Yx(t,e){return t.languageDataAt("closeBrackets",e)[0]||fa}const LT=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),NT=X.inputHandler.of((t,e,n,r)=>{if((LT?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let u=t.state.selection.main;if(r.length>2||r.length==2&&Zu(kn(r,0))==1||e!=u.from||n!=u.to)return!1;let i=VT(t.state,r);return i?(t.dispatch(i),!0):!1}),UT=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=Yx(t,t.selection.main.head).brackets||fa.brackets,u=null,i=t.changeByRange(o=>{if(o.empty){let s=qT(t.doc,o.head);for(let a of r)if(a==s&&lf(t.doc,o.head)==Wx(kn(a,0)))return{changes:{from:o.head-a.length,to:o.head+a.length},range:w.cursor(o.head-a.length)}}return{range:u=o}});return u||e(t.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!u},XT=[{key:"Backspace",run:UT}];function VT(t,e){let n=Yx(t,t.selection.main.head),r=n.brackets||fa.brackets;for(let u of r){let i=Wx(kn(u,0));if(e==u)return i==u?GT(t,u,r.indexOf(u+u+u)>-1,n):WT(t,u,i,n.before||fa.before);if(e==i&&Gx(t,t.selection.main.from))return YT(t,u,i)}return null}function Gx(t,e){let n=!1;return t.field(qx).between(0,t.doc.length,r=>{r==e&&(n=!0)}),n}function lf(t,e){let n=t.sliceString(e,e+2);return n.slice(0,Zu(kn(n,0)))}function qT(t,e){let n=t.sliceString(e-2,e);return Zu(kn(n,0))==n.length?n:n.slice(1)}function WT(t,e,n,r){let u=null,i=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:n,from:o.to}],effects:Di.of(o.to+e.length),range:w.range(o.anchor+e.length,o.head+e.length)};let s=lf(t.doc,o.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:e+n,from:o.head},effects:Di.of(o.head+e.length),range:w.cursor(o.head+e.length)}:{range:u=o}});return u?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function YT(t,e,n){let r=null,u=t.changeByRange(i=>i.empty&&lf(t.doc,i.head)==n?{changes:{from:i.head,to:i.head+n.length,insert:n},range:w.cursor(i.head+n.length)}:r={range:i});return r?null:t.update(u,{scrollIntoView:!0,userEvent:"input.type"})}function GT(t,e,n,r){let u=r.stringPrefixes||fa.stringPrefixes,i=null,o=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:e,from:s.to}],effects:Di.of(s.to+e.length),range:w.range(s.anchor+e.length,s.head+e.length)};let a=s.head,l=lf(t.doc,a),c;if(l==e){if(G6(t,a))return{changes:{insert:e+e,from:a},effects:Di.of(a+e.length),range:w.cursor(a+e.length)};if(Gx(t,a)){let d=n&&t.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+d.length,insert:d},range:w.cursor(a+d.length)}}}else{if(n&&t.sliceDoc(a-2*e.length,a)==e+e&&(c=H6(t,a-2*e.length,u))>-1&&G6(t,c))return{changes:{insert:e+e+e+e,from:a},effects:Di.of(a+e.length),range:w.cursor(a+e.length)};if(t.charCategorizer(a)(l)!=dt.Word&&H6(t,a,u)>-1&&!HT(t,a,e,u))return{changes:{insert:e+e,from:a},effects:Di.of(a+e.length),range:w.cursor(a+e.length)}}return{range:i=s}});return i?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function G6(t,e){let n=rt(t).resolveInner(e+1);return n.parent&&n.from==e}function HT(t,e,n,r){let u=rt(t).resolveInner(e,-1),i=r.reduce((o,s)=>Math.max(o,s.length),0);for(let o=0;o<5;o++){let s=t.sliceDoc(u.from,Math.min(u.to,u.from+n.length+i)),a=s.indexOf(n);if(!a||a>-1&&r.indexOf(s.slice(0,a))>-1){let c=u.firstChild;for(;c&&c.from==u.from&&c.to-c.from>n.length+a;){if(t.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let l=u.to==e&&u.parent;if(!l)break;u=l}return!1}function H6(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=dt.Word)return e;for(let u of n){let i=e-u.length;if(t.sliceDoc(i,e)==u&&r(t.sliceDoc(i-1,i))!=dt.Word)return i}return-1}function KT(t={}){return[_T,Sn,Qt.of(t),kT,JT,Xx]}const Hx=[{key:"Ctrl-Space",run:uh},{mac:"Alt-`",run:uh},{mac:"Alt-i",run:uh},{key:"Escape",run:ET},{key:"ArrowDown",run:r0(!0)},{key:"ArrowUp",run:r0(!1)},{key:"PageDown",run:r0(!0,"page")},{key:"PageUp",run:r0(!1,"page")},{key:"Enter",run:xT}],JT=Ku.highest(qo.computeN([Qt],t=>t.facet(Qt).defaultKeymap?[Hx]:[]));class hc{static create(e,n,r,u,i){let o=u+(u<<8)+e+(n<<4)|0;return new hc(e,n,r,o,i,[],[])}constructor(e,n,r,u,i,o,s){this.type=e,this.value=n,this.from=r,this.hash=u,this.end=i,this.children=o,this.positions=s,this.blankFirstLine=!1,this.hashProp=[[be.contextHash,u]]}addChild(e,n){e.prop(be.contextHash)!=this.hash&&(e=new Le(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(n)}toTree(e,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new Le(e.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(u,i,o)=>new Le(_t.none,u,i,o,this.hashProp)})}}var N;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(N||(N={}));class eI{constructor(e,n){this.start=e,this.content=n,this.marks=[],this.parsers=[]}}class tI{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return Ms(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,n=0,r=0){for(let u=n;u<e;u++)r+=this.text.charCodeAt(u)==9?4-r%4:1;return r}findColumn(e){let n=0;for(let r=0;n<this.text.length&&r<e;n++)r+=this.text.charCodeAt(n)==9?4-r%4:1;return n}scrub(){if(!this.baseIndent)return this.text;let e="";for(let n=0;n<this.basePos;n++)e+=" ";return e+this.text.slice(this.basePos)}}function K6(t,e,n){if(n.pos==n.text.length||t!=e.block&&n.indent>=e.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(t.type==N.OrderedList?A1:$1)(n,e,!1);return r>0&&(t.type!=N.BulletList||E1(n,e,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==t.value}const Kx={[N.Blockquote](t,e,n){return n.next!=62?!1:(n.markers.push(Ie(N.QuoteMark,e.lineStart+n.pos,e.lineStart+n.pos+1)),n.moveBase(n.pos+(Vn(n.text.charCodeAt(n.pos+1))?2:1)),t.end=e.lineStart+n.text.length,!0)},[N.ListItem](t,e,n){return(n.next<0?t.blankFirstLine&&t.children.length==1:n.indent<n.baseIndent+t.value)?!1:(n.moveBaseColumn(n.baseIndent+t.value),!0)},[N.OrderedList]:K6,[N.BulletList]:K6,[N.Document](){return!0}};function Vn(t){return t==32||t==9||t==10||t==13}function Ms(t,e=0){for(;e<t.length&&Vn(t.charCodeAt(e));)e++;return e}function J6(t,e,n){for(;e>n&&Vn(t.charCodeAt(e-1));)e--;return e}function Jx(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(t.next==96){for(let n=e;n<t.text.length;n++)if(t.text.charCodeAt(n)==96)return-1}return e}function e2(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function E1(t,e,n){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let r=1;for(let u=t.pos+1;u<t.text.length;u++){let i=t.text.charCodeAt(u);if(i==t.next)r++;else if(!Vn(i))return-1}return n&&t.next==45&&u2(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(s2.SetextHeading)>-1||r<3?-1:1}function t2(t,e){for(let n=t.stack.length-1;n>=0;n--)if(t.stack[n].type==e)return!0;return!1}function $1(t,e,n){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||Vn(t.text.charCodeAt(t.pos+1)))&&(!n||t2(e,N.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function A1(t,e,n){let r=t.pos,u=t.next;for(;u>=48&&u<=57;){r++;if(r==t.text.length)return-1;u=t.text.charCodeAt(r)}return r==t.pos||r>t.pos+9||u!=46&&u!=41||r<t.text.length-1&&!Vn(t.text.charCodeAt(r+1))||n&&!t2(e,N.OrderedList)&&(t.skipSpace(r+1)==t.text.length||r>t.pos+1||t.next!=49)?-1:r+1-t.pos}function n2(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==35;)e++;if(e<t.text.length&&!Vn(t.text.charCodeAt(e)))return-1;let n=e-t.pos;return n>6?-1:n}function u2(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let n=e;for(;e<t.text.length&&Vn(t.text.charCodeAt(e));)e++;return e==t.text.length?n:-1}const qp=/^[ \t]*$/,r2=/-->/,i2=/\?>/,Wp=[[/^<(?:script|pre|style|textarea)(?:\s|>|$)/i,/<\/(?:script|pre|style|textarea)>/i],[/^\s*<!--/,r2],[/^\s*<\?/,i2],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,qp],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,qp]];function o2(t,e,n){if(t.next!=60)return-1;let r=t.text.slice(t.pos);for(let u=0,i=Wp.length-(n?1:0);u<i;u++)if(Wp[u][0].test(r))return u;return-1}function eb(t,e){let n=t.countIndent(e,t.pos,t.indent),r=t.skipSpace(e),u=t.countIndent(r,e,n);return u>=n+5||r==t.text.length?n+1:u}function Pr(t,e,n){let r=t.length-1;r>=0&&t[r].to==e&&t[r].type==N.CodeText?t[r].to=n:t.push(Ie(N.CodeText,e,n))}const i0={LinkReference:void 0,IndentedCode(t,e){let n=e.baseIndent+4;if(e.indent<n)return!1;let r=e.findColumn(n),u=t.lineStart+r,i=t.lineStart+e.text.length,o=[],s=[];for(Pr(o,u,i);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){Pr(s,t.lineStart-1,t.lineStart);for(let a of e.markers)s.push(a)}else{if(e.indent<n)break;{if(s.length){for(let l of s)l.type==N.CodeText?Pr(o,l.from,l.to):o.push(l);s=[]}Pr(o,t.lineStart-1,t.lineStart);for(let l of e.markers)o.push(l);i=t.lineStart+e.text.length;let a=t.lineStart+e.findColumn(e.baseIndent+4);a<i&&Pr(o,a,i)}}return s.length&&(s=s.filter(a=>a.type!=N.CodeText),s.length&&(e.markers=s.concat(e.markers))),t.addNode(t.buffer.writeElements(o,-u).finish(N.CodeBlock,i-u),u),!0},FencedCode(t,e){let n=Jx(e);if(n<0)return!1;let r=t.lineStart+e.pos,u=e.next,i=n-e.pos,o=e.skipSpace(n),s=J6(e.text,e.text.length,o),a=[Ie(N.CodeMark,r,r+i)];o<s&&a.push(Ie(N.CodeInfo,t.lineStart+o,t.lineStart+s));for(let l=!0,c=!0,f=!1;t.nextLine()&&e.depth>=t.stack.length;l=!1){let d=e.pos;if(e.indent-e.baseIndent<4)for(;d<e.text.length&&e.text.charCodeAt(d)==u;)d++;if(d-e.pos>=i&&e.skipSpace(d)==e.text.length){for(let h of e.markers)a.push(h);c&&f&&Pr(a,t.lineStart-1,t.lineStart),a.push(Ie(N.CodeMark,t.lineStart+e.pos,t.lineStart+d)),t.nextLine();break}else{f=!0,l||(Pr(a,t.lineStart-1,t.lineStart),c=!1);for(let m of e.markers)a.push(m);let h=t.lineStart+e.basePos,p=t.lineStart+e.text.length;h<p&&(Pr(a,h,p),c=!1)}}return t.addNode(t.buffer.writeElements(a,-r).finish(N.FencedCode,t.prevLineEnd()-r),r),!0},Blockquote(t,e){let n=e2(e);return n<0?!1:(t.startContext(N.Blockquote,e.pos),t.addNode(N.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+n),null)},HorizontalRule(t,e){if(E1(e,t,!1)<0)return!1;let n=t.lineStart+e.pos;return t.nextLine(),t.addNode(N.HorizontalRule,n),!0},BulletList(t,e){let n=$1(e,t,!1);if(n<0)return!1;t.block.type!=N.BulletList&&t.startContext(N.BulletList,e.basePos,e.next);let r=eb(e,e.pos+1);return t.startContext(N.ListItem,e.basePos,r-e.baseIndent),t.addNode(N.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(r),t.block.blankFirstLine=r>=e.text.length,null},OrderedList(t,e){let n=A1(e,t,!1);if(n<0)return!1;t.block.type!=N.OrderedList&&t.startContext(N.OrderedList,e.basePos,e.text.charCodeAt(e.pos+n-1));let r=eb(e,e.pos+n);return t.startContext(N.ListItem,e.basePos,r-e.baseIndent),t.addNode(N.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(r),t.block.blankFirstLine=r==e.text.length,null},ATXHeading(t,e){let n=n2(e);if(n<0)return!1;let r=e.pos,u=t.lineStart+r,i=J6(e.text,e.text.length,r),o=i;for(;o>r&&e.text.charCodeAt(o-1)==e.next;)o--;(o==i||o==r||!Vn(e.text.charCodeAt(o-1)))&&(o=e.text.length);let s=t.buffer.write(N.HeaderMark,0,n).writeElements(t.parser.parseInline(e.text.slice(r+n+1,o),u+n+1),-u);o<e.text.length&&s.write(N.HeaderMark,o-r,i-r);let a=s.finish(N.ATXHeading1-1+n,e.text.length-r);return t.nextLine(),t.addNode(a,u),!0},HTMLBlock(t,e){let n=o2(e,t,!1);if(n<0)return!1;let r=t.lineStart+e.pos,u=Wp[n][1],i=[],o=u!=qp;for(;!u.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){o=!1;break}for(let l of e.markers)i.push(l)}o&&t.nextLine();let s=u==r2?N.CommentBlock:u==i2?N.ProcessingInstructionBlock:N.HTMLBlock,a=t.prevLineEnd();return t.addNode(t.buffer.writeElements(i,-r).finish(s,a-r),r),!0},SetextHeading:void 0};class nI{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,n,r){if(this.stage==-1)return!1;let u=r.content+`
|
|
12
|
+
`+n.scrub(),i=this.advance(u);return i>-1&&i<u.length?this.complete(e,r,i):!1}finish(e,n){return(this.stage==2||this.stage==3)&&Ms(n.content,this.pos)==n.content.length?this.complete(e,n,n.content.length):!1}complete(e,n,r){return e.addLeafElement(n,Ie(N.LinkReference,this.start,this.start+r,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(p2(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Ie(N.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(d2(e,Ms(e,this.pos),this.start)))return-1}else if(this.stage==2){let n=Ms(e,this.pos),r=0;if(n>this.pos){let u=h2(e,n,this.start);if(u){let i=ih(e,u.to-this.start);i>0&&(this.nextStage(u),r=i)}}return r||(r=ih(e,this.pos)),r>0&&r<e.length?r:-1}else return ih(e,this.pos)}}}function ih(t,e){for(;e<t.length;e++){let n=t.charCodeAt(e);if(n==10)break;if(!Vn(n))return-1}return e}class uI{nextLine(e,n,r){let u=n.depth<e.stack.length?-1:u2(n),i=n.next;if(u<0)return!1;let o=Ie(N.HeaderMark,e.lineStart+n.pos,e.lineStart+u);return e.nextLine(),e.addLeafElement(r,Ie(i==61?N.SetextHeading1:N.SetextHeading2,r.start,e.prevLineEnd(),[...e.parser.parseInline(r.content,r.start),o])),!0}finish(){return!1}}const s2={LinkReference(t,e){return e.content.charCodeAt(0)==91?new nI(e):null},SetextHeading(){return new uI}},rI=[(t,e)=>n2(e)>=0,(t,e)=>Jx(e)>=0,(t,e)=>e2(e)>=0,(t,e)=>$1(e,t,!0)>=0,(t,e)=>A1(e,t,!0)>=0,(t,e)=>E1(e,t,!0)>=0,(t,e)=>o2(e,t,!0)>=0],iI={text:"",end:0};class oI{constructor(e,n,r,u){this.parser=e,this.input=n,this.ranges=u,this.line=new tI,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=u[u.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=u[0].from,this.block=hc.create(N.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new aI(r,n):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let r=0;;){let u=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;r<e.markers.length&&(!u||e.markers[r].from<u.end);){let i=e.markers[r++];this.addNode(i.type,i.from,i.to)}if(!u)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let r of this.parser.blockParsers)if(r){let u=r(this,e);if(u!=!1){if(u==!0)return null;e.forward();continue e}}break}if(e.pos==e.text.length)return this.nextLine()?null:this.finish();let n=new eI(this.lineStart+e.pos,e.text.slice(e.pos));for(let r of this.parser.leafBlockParsers)if(r){let u=r(this,n);u&&n.parsers.push(u)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let r of this.parser.endLeafBlock)if(r(this,e,n))break e}for(let r of n.parsers)if(r.nextLine(this,e,n))return null;n.content+=`
|
|
13
|
+
`+e.scrub();for(let r of e.markers)n.marks.push(r)}return this.finishLeaf(n),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let n=this.fragments.takeNodes(this);return n?(this.absoluteLineStart+=n,this.lineStart=g2(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let n=iI;if(n.end=e,e>=this.to)n.text="";else if(n.text=this.lineChunkAt(e),n.end+=n.text.length,this.ranges.length>1){let r=this.absoluteLineStart,u=this.rangeI;for(;this.ranges[u].to<n.end;){u++;let i=this.ranges[u].from,o=this.lineChunkAt(i);n.end=i+o.length,n.text=n.text.slice(0,this.ranges[u-1].to-r)+o,r=n.end-n.text.length}}return n}readLine(){let{line:e}=this,{text:n,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,e.reset(n);e.depth<this.stack.length;e.depth++){let u=this.stack[e.depth],i=this.parser.skipContextMarkup[u.type];if(!i)throw new Error("Unhandled block context "+N[u.type]);let o=this.line.markers.length;if(!i(u,this,e)){this.line.markers.length>o&&(u.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let n=this.input.chunk(e),r;if(this.input.lineChunks)r=n==`
|
|
14
|
+
`?"":n;else{let u=n.indexOf(`
|
|
15
|
+
`);r=u<0?n:n.slice(0,u)}return e+r.length>this.to?r.slice(0,this.to-e):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,n,r=0){this.block=hc.create(e,r,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,n,r=0){this.startContext(this.parser.getNodeType(e),n,r)}addNode(e,n,r){typeof e=="number"&&(e=new Le(this.parser.nodeSet.types[e],Po,Po,(r??this.prevLineEnd())-n)),this.block.addChild(e,n-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,n){this.addNode(this.buffer.writeElements(Gp(n.children,e.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let e=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(e.toTree(this.parser.nodeSet),e.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?a2(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let r of e.parsers)if(r.finish(this,e))return;let n=Gp(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(n,-e.start).finish(N.Paragraph,e.content.length),e.start)}elt(e,n,r,u){return typeof e=="string"?Ie(this.parser.getNodeType(e),n,r,u):new f2(e,n)}get buffer(){return new c2(this.parser.nodeSet)}}function a2(t,e,n,r,u){let i=t[e].to,o=[],s=[],a=n.from+r;function l(c,f){for(;f?c>=i:c>i;){let d=t[e+1].from-i;r+=d,c+=d,e++,i=t[e].to}}for(let c=n.firstChild;c;c=c.nextSibling){l(c.from+r,!0);let f=c.from+r,d,h=u.get(c.tree);h?d=h:c.to+r>i?(d=a2(t,e,c,r,u),l(c.to+r,!1)):d=c.toTree(),o.push(d),s.push(f-a)}return l(n.to+r,!1),new Le(n.type,o,s,n.to+r-a,n.tree?n.tree.propValues:void 0)}class cf extends l1{constructor(e,n,r,u,i,o,s,a,l){super(),this.nodeSet=e,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=u,this.endLeafBlock=i,this.skipContextMarkup=o,this.inlineParsers=s,this.inlineNames=a,this.wrappers=l,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,n,r){let u=new oI(this,e,n,r);for(let i of this.wrappers)u=i(u,e,n,r);return u}configure(e){let n=Yp(e);if(!n)return this;let{nodeSet:r,skipContextMarkup:u}=this,i=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),s=this.blockNames.slice(),a=this.inlineParsers.slice(),l=this.inlineNames.slice(),c=this.endLeafBlock.slice(),f=this.wrappers;if(ms(n.defineNodes)){u=Object.assign({},u);let d=r.types.slice(),h;for(let p of n.defineNodes){let{name:m,block:g,composite:C,style:b}=typeof p=="string"?{name:p}:p;if(d.some($=>$.name==m))continue;C&&(u[d.length]=($,x,_)=>C(x,_,$.value));let O=d.length,y=C?["Block","BlockContext"]:g?O>=N.ATXHeading1&&O<=N.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;d.push(_t.define({id:O,name:m,props:y&&[[be.group,y]]})),b&&(h||(h={}),Array.isArray(b)||b instanceof jn?h[m]=b:Object.assign(h,b))}r=new Za(d),h&&(r=r.extend(Wo(h)))}if(ms(n.props)&&(r=r.extend(...n.props)),ms(n.remove))for(let d of n.remove){let h=this.blockNames.indexOf(d),p=this.inlineNames.indexOf(d);h>-1&&(i[h]=o[h]=void 0),p>-1&&(a[p]=void 0)}if(ms(n.parseBlock))for(let d of n.parseBlock){let h=s.indexOf(d.name);if(h>-1)i[h]=d.parse,o[h]=d.leaf;else{let p=d.before?o0(s,d.before):d.after?o0(s,d.after)+1:s.length-1;i.splice(p,0,d.parse),o.splice(p,0,d.leaf),s.splice(p,0,d.name)}d.endLeaf&&c.push(d.endLeaf)}if(ms(n.parseInline))for(let d of n.parseInline){let h=l.indexOf(d.name);if(h>-1)a[h]=d.parse;else{let p=d.before?o0(l,d.before):d.after?o0(l,d.after)+1:l.length-1;a.splice(p,0,d.parse),l.splice(p,0,d.name)}}return n.wrap&&(f=f.concat(n.wrap)),new cf(r,i,o,s,c,u,a,l,f)}getNodeType(e){let n=this.nodeTypes[e];if(n==null)throw new RangeError(`Unknown node type '${e}'`);return n}parseInline(e,n){let r=new Na(this,e,n);e:for(let u=n;u<r.end;){let i=r.char(u);for(let o of this.inlineParsers)if(o){let s=o(r,i,u);if(s>=0){u=s;continue e}}u++}return r.resolveMarkers(0)}}function ms(t){return t!=null&&t.length>0}function Yp(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=Yp(t[0]);if(t.length==1)return e;let n=Yp(t.slice(1));if(!n||!e)return e||n;let r=(o,s)=>(o||Po).concat(s||Po),u=e.wrap,i=n.wrap;return{props:r(e.props,n.props),defineNodes:r(e.defineNodes,n.defineNodes),parseBlock:r(e.parseBlock,n.parseBlock),parseInline:r(e.parseInline,n.parseInline),remove:r(e.remove,n.remove),wrap:u?i?(o,s,a,l)=>u(i(o,s,a,l),s,a,l):u:i}}function o0(t,e){let n=t.indexOf(e);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return n}let l2=[_t.none];for(let t=1,e;e=N[t];t++)l2[t]=_t.define({id:t,name:e,props:t>=N.Escape?[]:[[be.group,t in Kx?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const Po=[];class c2{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,n,r,u=0){return this.content.push(e,n,r,4+u*4),this}writeElements(e,n=0){for(let r of e)r.writeTo(this,n);return this}finish(e,n){return Le.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:n})}}let da=class{constructor(e,n,r,u=Po){this.type=e,this.from=n,this.to=r,this.children=u}writeTo(e,n){let r=e.content.length;e.writeElements(this.children,n),e.content.push(this.type,this.from+n,this.to+n,e.content.length+4-r)}toTree(e){return new c2(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class f2{constructor(e,n){this.tree=e,this.from=n}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Po}writeTo(e,n){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+n,this.to+n,-1)}toTree(){return this.tree}}function Ie(t,e,n,r){return new da(t,e,n,r)}const D1={resolve:"Emphasis",mark:"EmphasisMark"},k1={resolve:"Emphasis",mark:"EmphasisMark"},yi={},pc={};class Rn{constructor(e,n,r,u,i=r-n){this.type=e,this.from=n,this.to=r,this.side=u,this.size=i}}const tb="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let ha=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{ha=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const oh={Escape(t,e,n){if(e!=92||n==t.end-1)return-1;let r=t.char(n+1);for(let u=0;u<tb.length;u++)if(tb.charCodeAt(u)==r)return t.append(Ie(N.Escape,n,n+2));return-1},Entity(t,e,n){if(e!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(n+1,n+31));return r?t.append(Ie(N.Entity,n,n+1+r[0].length)):-1},InlineCode(t,e,n){if(e!=96||n&&t.char(n-1)==96)return-1;let r=n+1;for(;r<t.end&&t.char(r)==96;)r++;let u=r-n,i=0;for(;r<t.end;r++)if(t.char(r)==96){if(i++,i==u&&t.char(r+1)!=96)return t.append(Ie(N.InlineCode,n,r+1,[Ie(N.CodeMark,n,n+u),Ie(N.CodeMark,r+1-u,r+1)]))}else i=0;return-1},HTMLTag(t,e,n){if(e!=60||n==t.end-1)return-1;let r=t.slice(n+1,t.end),u=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(u)return t.append(Ie(N.Autolink,n,n+1+u[0].length,[Ie(N.LinkMark,n,n+1),Ie(N.URL,n+1,n+u[0].length),Ie(N.LinkMark,n+u[0].length,n+1+u[0].length)]));let i=/^!--(?:-?>|[^]*?-->)/.exec(r);if(i)return t.append(Ie(N.Comment,n,n+1+i[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return t.append(Ie(N.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/[a-zA-Z][\w-]*\s*>|[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*\/?>)/.exec(r);return s?t.append(Ie(N.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(t,e,n){if(e!=95&&e!=42)return-1;let r=n+1;for(;t.char(r)==e;)r++;let u=t.slice(n-1,n),i=t.slice(r,r+1),o=ha.test(u),s=ha.test(i),a=/\s|^$/.test(u),l=/\s|^$/.test(i),c=!l&&(!s||a||o),f=!a&&(!o||l||s),d=c&&(e==42||!f||o),h=f&&(e==42||!c||s);return t.append(new Rn(e==95?D1:k1,n,r,(d?1:0)|(h?2:0)))},HardBreak(t,e,n){if(e==92&&t.char(n+1)==10)return t.append(Ie(N.HardBreak,n,n+2));if(e==32){let r=n+1;for(;t.char(r)==32;)r++;if(t.char(r)==10&&r>=n+2)return t.append(Ie(N.HardBreak,n,r+1))}return-1},Link(t,e,n){return e==91?t.append(new Rn(yi,n,n+1,1)):-1},Image(t,e,n){return e==33&&t.char(n+1)==91?t.append(new Rn(pc,n,n+2,1)):-1},LinkEnd(t,e,n){if(e!=93)return-1;for(let r=t.parts.length-1;r>=0;r--){let u=t.parts[r];if(u instanceof Rn&&(u.type==yi||u.type==pc)){if(!u.side||t.skipSpace(u.to)==n&&!/[(\[]/.test(t.slice(n+1,n+2)))return t.parts[r]=null,-1;let i=t.takeContent(r),o=t.parts[r]=sI(t,i,u.type==yi?N.Link:N.Image,u.from,n+1);if(u.type==yi)for(let s=0;s<r;s++){let a=t.parts[s];a instanceof Rn&&a.type==yi&&(a.side=0)}return o.to}}return-1}};function sI(t,e,n,r,u){let{text:i}=t,o=t.char(u),s=u;if(e.unshift(Ie(N.LinkMark,r,r+(n==N.Image?2:1))),e.push(Ie(N.LinkMark,u-1,u)),o==40){let a=t.skipSpace(u+1),l=d2(i,a-t.offset,t.offset),c;l&&(a=t.skipSpace(l.to),a!=l.to&&(c=h2(i,a-t.offset,t.offset),c&&(a=t.skipSpace(c.to)))),t.char(a)==41&&(e.push(Ie(N.LinkMark,u,u+1)),s=a+1,l&&e.push(l),c&&e.push(c),e.push(Ie(N.LinkMark,a,s)))}else if(o==91){let a=p2(i,u-t.offset,t.offset,!1);a&&(e.push(a),s=a.to)}return Ie(n,r,s,e)}function d2(t,e,n){if(t.charCodeAt(e)==60){for(let u=e+1,i=!1;u<t.length;u++){let o=t.charCodeAt(u);if(o==62&&!i)return Ie(N.URL,e+n,u+1+n);if(o==60&&!i||o==10)return!1;i=o==92}return null}else{let u=0,i=e;for(let o=!1;i<t.length;i++){let s=t.charCodeAt(i);if(Vn(s))break;if(o)o=!1;else if(s==40)u++;else if(s==41){if(!u)break;u--}else s==92&&(o=!0)}return i>e?Ie(N.URL,e+n,i+n):i==t.length?null:!1}}function h2(t,e,n){let r=t.charCodeAt(e);if(r!=39&&r!=34&&r!=40)return!1;let u=r==40?41:r;for(let i=e+1,o=!1;i<t.length;i++){let s=t.charCodeAt(i);if(o)o=!1;else{if(s==u)return Ie(N.LinkTitle,e+n,i+1+n);s==92&&(o=!0)}}return null}function p2(t,e,n,r){for(let u=!1,i=e+1,o=Math.min(t.length,i+999);i<o;i++){let s=t.charCodeAt(i);if(u)u=!1;else{if(s==93)return r?!1:Ie(N.LinkLabel,e+n,i+1+n);if(r&&!Vn(s)&&(r=!1),s==91)return!1;s==92&&(u=!0)}}return null}class Na{constructor(e,n,r){this.parser=e,this.text=n,this.offset=r,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,n){return this.text.slice(e-this.offset,n-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,n,r,u,i){return this.append(new Rn(e,n,r,(u?1:0)|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let n=this.parts[e];if(n instanceof Rn&&(n.type==yi||n.type==pc))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let r=e;r<this.parts.length;r++){let u=this.parts[r];if(!(u instanceof Rn&&u.type.resolve&&u.side&2))continue;let i=u.type==D1||u.type==k1,o=u.to-u.from,s,a=r-1;for(;a>=e;a--){let m=this.parts[a];if(m instanceof Rn&&m.side&1&&m.type==u.type&&!(i&&(u.side&1||m.side&2)&&(m.size+u.size)%3==0&&(m.size%3||u.size%3))){s=m;break}}if(!s)continue;let l=u.type.resolve,c=[],f=s.from,d=u.to;if(i){let m=Math.min(2,s.to-s.from,o);f=s.to-m,d=u.from+m,l=m==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,f,s.to));for(let m=a+1;m<r;m++)this.parts[m]instanceof da&&c.push(this.parts[m]),this.parts[m]=null;u.type.mark&&c.push(this.elt(u.type.mark,u.from,d));let h=this.elt(l,f,d,c);this.parts[a]=i&&s.from!=f?new Rn(s.type,s.from,f,s.side,s.size):null,(this.parts[r]=i&&u.to!=d?new Rn(u.type,d,u.to,u.side,u.size):null)?this.parts.splice(r,0,h):this.parts[r]=h}let n=[];for(let r=e;r<this.parts.length;r++){let u=this.parts[r];u instanceof da&&n.push(u)}return n}findOpeningDelimiter(e){for(let n=this.parts.length-1;n>=0;n--){let r=this.parts[n];if(r instanceof Rn&&r.type==e&&r.side&1)return n}return null}takeContent(e){let n=this.resolveMarkers(e);return this.parts.length=e,n}getDelimiterAt(e){let n=this.parts[e];return n instanceof Rn?n:null}skipSpace(e){return Ms(this.text,e-this.offset)+this.offset}elt(e,n,r,u){return typeof e=="string"?Ie(this.parser.getNodeType(e),n,r,u):new f2(e,n)}}Na.linkStart=yi;Na.imageStart=pc;Na.emphasisAsterisk=k1;Na.emphasisUnderscore=D1;function Gp(t,e){if(!e.length)return t;if(!t.length)return e;let n=t.slice(),r=0;for(let u of e){for(;r<n.length&&n[r].to<u.to;)r++;if(r<n.length&&n[r].from<u.from){let i=n[r];i instanceof da&&(n[r]=new da(i.type,i.from,i.to,Gp(i.children,[u])))}else n.splice(r++,0,u)}return n}const m2=[N.CodeBlock,N.ListItem,N.OrderedList,N.BulletList];let aI=class{constructor(e,n){this.fragments=e,this.input=n,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,n){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let i=this.fragment.to;for(;i>0&&this.input.read(i-1,i)!=`
|
|
16
|
+
`;)i--;this.fragmentEnd=i?i-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(Te.IncludeAnonymous|Te.IgnoreMounts),r.firstChild());let u=e+this.fragment.offset;for(;r.to<=u;)if(!r.parent())return!1;for(;;){if(r.from>=u)return this.fragment.from<=n;if(!r.childAfter(u))return!1}}matches(e){let n=this.cursor.tree;for(;n&&n.type.isAnonymous&&n.children[0]instanceof Le;)n=n.children[0];return n&&n.prop(be.contextHash)==e}takeNodes(e){let n=this.cursor,r=this.fragment.offset,u=this.fragmentEnd-(this.fragment.openEnd?1:0),i=e.absoluteLineStart,o=i,s=e.block.children.length,a=e.lineStart-e.block.from>>2,l=o,c=s;e:for(;;){if(n.to-r>Math.min(u,e.to)||n.type.isAnonymous&&n.tree&&(n.to-n.from>a||!lI(n.tree))){if(n.type.isAnonymous&&n.firstChild())continue;break}let f=g2(n.from-r,e.ranges);if(n.to-r<=e.ranges[e.rangeI].to)e.addNode(n.tree,f);else{let d=new Le(e.parser.nodeSet.types[N.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(d,n.tree),e.addNode(d,f)}for((n.type.isAnonymous||n.type.is("Block"))&&(n.type.isAnonymous||m2.indexOf(n.type.id)<0?(o=n.to-r,s=e.block.children.length):(o=l,s=c),l=n.to-r,c=e.block.children.length);;){if(n.nextSibling())continue e;if(!n.parent()||!n.type.isAnonymous)break e}}for(;e.block.children.length>s;)e.block.children.pop(),e.block.positions.pop();return o-i}};function lI(t){for(;t.type.isAnonymous;){let e=t.children[t.children.length-1];if(e instanceof Le)t=e;else return!1}return t.type.is("Block")&&m2.indexOf(t.type.id)<0}function g2(t,e){let n=t;for(let r=1;r<e.length;r++){let u=e[r-1].to,i=e[r].from;u<t&&(n-=i-u)}return n}const cI=Wo({"Blockquote/...":A.quote,HorizontalRule:A.contentSeparator,"ATXHeading1/... SetextHeading1/...":A.heading1,"ATXHeading2/... SetextHeading2/...":A.heading2,"ATXHeading3/...":A.heading3,"ATXHeading4/...":A.heading4,"ATXHeading5/...":A.heading5,"ATXHeading6/...":A.heading6,"Comment CommentBlock":A.comment,Escape:A.escape,Entity:A.character,"Emphasis/...":A.emphasis,"StrongEmphasis/...":A.strong,"Link/... Image/...":A.link,"OrderedList/... BulletList/...":A.list,"BlockQuote/...":A.quote,"InlineCode CodeText":A.monospace,"URL Autolink":A.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":A.processingInstruction,"CodeInfo LinkLabel":A.labelName,LinkTitle:A.string,Paragraph:A.content}),fI=new cf(new Za(l2).extend(cI),Object.keys(i0).map(t=>i0[t]),Object.keys(i0).map(t=>s2[t]),Object.keys(i0),rI,Kx,Object.keys(oh).map(t=>oh[t]),Object.keys(oh),[]);function dI(t,e,n){let r=[];for(let u=t.firstChild,i=e;;u=u.nextSibling){let o=u?u.from:n;if(o>i&&r.push({from:i,to:o}),!u)break;i=u.to}return r}function hI(t){let{codeParser:e,htmlParser:n}=t;return{wrap:yx((u,i)=>{let o=u.type.id;if(e&&(o==N.CodeBlock||o==N.FencedCode)){let s="";if(o==N.FencedCode){let l=u.node.getChild(N.CodeInfo);l&&(s=i.read(l.from,l.to))}let a=e(s);if(a)return{parser:a,overlay:l=>l.type.id==N.CodeText,bracketed:o==N.FencedCode}}else if(n&&(o==N.HTMLBlock||o==N.HTMLTag||o==N.CommentBlock))return{parser:n,overlay:dI(u.node,u.from,u.to)};return null})}}const pI={resolve:"Strikethrough",mark:"StrikethroughMark"},mI={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":A.strikethrough}},{name:"StrikethroughMark",style:A.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,n){if(e!=126||t.char(n+1)!=126||t.char(n+2)==126)return-1;let r=t.slice(n-1,n),u=t.slice(n+2,n+3),i=/\s|^$/.test(r),o=/\s|^$/.test(u),s=ha.test(r),a=ha.test(u);return t.addDelimiter(pI,n,n+2,!o&&(!a||i||s),!i&&(!s||o||a))},after:"Emphasis"}]};function Ls(t,e,n=0,r,u=0){let i=0,o=!0,s=-1,a=-1,l=!1,c=()=>{r.push(t.elt("TableCell",u+s,u+a,t.parser.parseInline(e.slice(s,a),u+s)))};for(let f=n;f<e.length;f++){let d=e.charCodeAt(f);d==124&&!l?((!o||s>-1)&&i++,o=!1,r&&(s>-1&&c(),r.push(t.elt("TableDelimiter",f+u,f+u+1))),s=a=-1):(l||d!=32&&d!=9)&&(s<0&&(s=f),a=f+1),l=!l&&d==92}return s>-1&&(i++,r&&c()),i}function nb(t,e){for(let n=e;n<t.length;n++){let r=t.charCodeAt(n);if(r==124)return!0;r==92&&n++}return!1}const O2=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class ub{constructor(){this.rows=null}nextLine(e,n,r){if(this.rows==null){this.rows=!1;let u;if((n.next==45||n.next==58||n.next==124)&&O2.test(u=n.text.slice(n.pos))){let i=[];Ls(e,r.content,0,i,r.start)==Ls(e,u,0)&&(this.rows=[e.elt("TableHeader",r.start,r.start+r.content.length,i),e.elt("TableDelimiter",e.lineStart+n.pos,e.lineStart+n.text.length)])}}else if(this.rows){let u=[];Ls(e,n.text,n.pos,u,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+n.pos,e.lineStart+n.text.length,u))}return!1}finish(e,n){return this.rows?(e.addLeafElement(n,e.elt("Table",n.start,n.start+n.content.length,this.rows)),!0):!1}}const gI={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":A.heading}},"TableRow",{name:"TableCell",style:A.content},{name:"TableDelimiter",style:A.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return nb(e.content,0)?new ub:null},endLeaf(t,e,n){if(n.parsers.some(u=>u instanceof ub)||!nb(e.text,e.basePos))return!1;let r=t.peekLine();return O2.test(r)&&Ls(t,e.text,e.basePos)==Ls(t,r,e.basePos)},before:"SetextHeading"}]};class OI{nextLine(){return!1}finish(e,n){return e.addLeafElement(n,e.elt("Task",n.start,n.start+n.content.length,[e.elt("TaskMarker",n.start,n.start+3),...e.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const bI={defineNodes:[{name:"Task",block:!0,style:A.list},{name:"TaskMarker",style:A.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new OI:null},after:"SetextHeading"}]},rb=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,ib=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,vI=/[\w-]+\.[\w-]+($|[/:])/,ob=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,sb=/\/[a-zA-Z\d@.]+/gy;function ab(t,e,n,r){let u=0;for(let i=e;i<n;i++)t[i]==r&&u++;return u}function CI(t,e){ib.lastIndex=e;let n=ib.exec(t);if(!n||vI.exec(n[0])[0].indexOf("_")>-1)return-1;let r=e+n[0].length;for(;;){let u=t[r-1],i;if(/[?!.,:*_~]/.test(u)||u==")"&&ab(t,e,r,")")>ab(t,e,r,"("))r--;else if(u==";"&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,r))))r=e+i.index;else break}return r}function lb(t,e){ob.lastIndex=e;let n=ob.exec(t);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:e+n[0].length-(r=="."?1:0)}const yI={parseInline:[{name:"Autolink",parse(t,e,n){let r=n-t.offset;if(r&&/\w/.test(t.text[r-1]))return-1;rb.lastIndex=r;let u=rb.exec(t.text),i=-1;if(!u)return-1;if(u[1]||u[2]){if(i=CI(t.text,r+u[0].length),i>-1&&t.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(r,i));i=r+o[0].length}}else u[3]?i=lb(t.text,r):(i=lb(t.text,r+u[0].length),i>-1&&u[0]=="xmpp:"&&(sb.lastIndex=i,u=sb.exec(t.text),u&&(i=u.index+u[0].length)));return i<0?-1:(t.addElement(t.elt("URL",n,i+t.offset)),i+t.offset)}}]},xI=[gI,bI,mI,yI];function b2(t,e,n){return(r,u,i)=>{if(u!=t||r.char(i+1)==t)return-1;let o=[r.elt(n,i,i+1)];for(let s=i+1;s<r.end;s++){let a=r.char(s);if(a==t)return r.addElement(r.elt(e,i,s+1,o.concat(r.elt(n,s,s+1))));if(a==92&&o.push(r.elt("Escape",s,s+++2)),Vn(a))break}return-1}}const EI={defineNodes:[{name:"Superscript",style:A.special(A.content)},{name:"SuperscriptMark",style:A.processingInstruction}],parseInline:[{name:"Superscript",parse:b2(94,"Superscript","SuperscriptMark")}]},$I={defineNodes:[{name:"Subscript",style:A.special(A.content)},{name:"SubscriptMark",style:A.processingInstruction}],parseInline:[{name:"Subscript",parse:b2(126,"Subscript","SubscriptMark")}]},AI={defineNodes:[{name:"Emoji",style:A.character}],parseInline:[{name:"Emoji",parse(t,e,n){let r;return e!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(t.slice(n+1,t.end)))?-1:t.addElement(t.elt("Emoji",n,n+1+r[0].length))}}]};var cb={};class mc{constructor(e,n,r,u,i,o,s,a,l,c=0,f){this.p=e,this.stack=n,this.state=r,this.reducePos=u,this.pos=i,this.score=o,this.buffer=s,this.bufferBase=a,this.curContext=l,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,r=0){let u=e.parser.context;return new mc(e,[],n,r,r,0,[],0,u?new fb(u,u.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let r=e>>19,u=e&65535,{parser:i}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),s=i.dynamicPrecedence(u);if(s&&(this.score+=s),r==0){u<i.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(i.getGoto(this.state,u,!0),this.reducePos),u<i.minRepeatTerm&&this.storeNode(u,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(u,this.reducePos);return}let a=this.stack.length-(r-1)*3-(e&262144?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from;u<i.minRepeatTerm&&l==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-l;c>=2e3&&!(!((n=this.p.parser.nodeSet.types[u])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let f=a?this.stack[a-1]:0,d=this.bufferBase+this.buffer.length-f;if(u<i.minRepeatTerm||e&131072){let h=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(u,l,h,d+4,!0)}if(e&262144)this.state=this.stack[a];else{let h=this.stack[a-3];this.state=i.getGoto(h,u,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(u,l)}storeNode(e,n,r,u=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this.buffer.length;if(o>0&&this.buffer[o-4]==0&&this.buffer[o-1]>-1){if(n==r)return;if(this.buffer[o-2]>=n){this.buffer[o-2]=r;return}}}if(!i||this.pos==r)this.buffer.push(e,n,r,u);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let s=!1;for(let a=o;a>0&&this.buffer[a-2]>r;a-=4)if(this.buffer[a-1]>=0){s=!0;break}if(s)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,u>4&&(u-=4)}this.buffer[o]=e,this.buffer[o+1]=n,this.buffer[o+2]=r,this.buffer[o+3]=u}}shift(e,n,r,u){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let i=e,{parser:o}=this.p;this.pos=u;let s=o.stateFlag(i,1);!s&&(u>r||n<=o.maxNode)&&(this.reducePos=u),this.pushState(i,s?r:Math.min(r,this.reducePos)),this.shiftContext(n,r),n<=o.maxNode&&this.buffer.push(n,r,u,4)}else this.pos=u,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,u,4)}apply(e,n,r,u){e&65536?this.reduce(e):this.shift(e,n,r,u)}useNode(e,n,r){let u=this.p.reused.length-1;(u<0||this.p.reused[u]!=e)&&(this.p.reused.push(e),u++);let i=this.reducePos=this.pos=r+e.length;this.pushState(n,r),this.buffer.push(u,r,i,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(n&&e.buffer[n-4]==0&&(n-=4);n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let r=e.buffer.slice(n),u=e.bufferBase+n;for(;e&&u==e.bufferBase;)e=e.parent;return new mc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,u,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new DI(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let u=[];for(let i=0,o;i<n.length;i+=2)(o=n[i+1])!=this.state&&this.p.parser.hasAction(o,e)&&u.push(n[i],o);if(this.stack.length<120)for(let i=0;u.length<8&&i<n.length;i+=2){let o=n[i+1];u.some((s,a)=>a&1&&s==o)||u.push(n[i],o)}n=u}let r=[];for(let u=0;u<n.length&&r.length<4;u+=2){let i=n[u+1];if(i==this.state)continue;let o=this.split();o.pushState(i,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(n[u],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}return r}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!e.validAction(this.state,n)){let r=n>>19,u=n&65535,i=this.stack.length-r*3;if(i<0||e.getGoto(this.stack[i],u,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],r=(u,i)=>{if(!n.includes(u))return n.push(u),e.allActions(u,o=>{if(!(o&393216))if(o&65536){let s=(o>>19)-i;if(s>1){let a=o&65535,l=this.stack.length-s*3;if(l>=0&&e.getGoto(this.stack[l],a,!1)>=0)return s<<19|65536|a}}else{let s=r(o,i+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new fb(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class fb{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class DI{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,r=e>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let u=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=u}}class gc{constructor(e,n,r){this.stack=e,this.pos=n,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new gc(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new gc(this.stack,this.pos,this.index)}}function Ss(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let r=0,u=0;r<t.length;){let i=0;for(;;){let o=t.charCodeAt(r++),s=!1;if(o==126){i=65535;break}o>=92&&o--,o>=34&&o--;let a=o-32;if(a>=46&&(a-=46,s=!0),i+=a,s)break;i*=46}n?n[u++]=i:n=new e(i)}return n}class Q0{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const db=new Q0;class kI{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=db,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let r=this.range,u=this.rangeIndex,i=this.pos+e;for(;i<r.from;){if(!u)return null;let o=this.ranges[--u];i-=r.from-o.to,r=o}for(;n<0?i>r.to:i>=r.to;){if(u==this.ranges.length-1)return null;let o=this.ranges[++u];i+=o.from-r.to,r=o}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,r,u;if(n>=0&&n<this.chunk.length)r=this.pos+e,u=this.chunk.charCodeAt(n);else{let i=this.resolveOffset(e,1);if(i==null)return-1;if(r=i,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)u=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,s=this.range;for(;s.to<=r;)s=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),u=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),u}acceptToken(e,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,n){this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=db,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let r="";for(let u of this.ranges){if(u.from>=n)break;u.to>e&&(r+=this.input.read(Math.max(u.from,e),Math.min(u.to,n)))}return r}}class Oo{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:r}=n.p;v2(this.data,e,n,this.id,r.data,r.tokenPrecTable)}}Oo.prototype.contextual=Oo.prototype.fallback=Oo.prototype.extend=!1;class Oc{constructor(e,n,r){this.precTable=n,this.elseToken=r,this.data=typeof e=="string"?Ss(e):e}token(e,n){let r=e.pos,u=0;for(;;){let i=e.next<0,o=e.resolveOffset(1,1);if(v2(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(i||u++,o==null)break;e.reset(o,e.token)}u&&(e.reset(r,e.token),e.acceptToken(this.elseToken,u))}}Oc.prototype.contextual=Oo.prototype.fallback=Oo.prototype.extend=!1;class qn{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function v2(t,e,n,r,u,i){let o=0,s=1<<r,{dialect:a}=n.p.parser;e:for(;(s&t[o])!=0;){let l=t[o+1];for(let h=o+3;h<l;h+=2)if((t[h+1]&s)>0){let p=t[h];if(a.allows(p)&&(e.token.value==-1||e.token.value==p||SI(p,e.token.value,u,i))){e.acceptToken(p);break}}let c=e.next,f=0,d=t[o+2];if(e.next<0&&d>f&&t[l+d*3-3]==65535){o=t[l+d*3-1];continue e}for(;f<d;){let h=f+d>>1,p=l+h+(h<<1),m=t[p],g=t[p+1]||65536;if(c<m)d=h;else if(c>=g)f=h+1;else{o=t[p+2],e.advance();continue e}}break}}function hb(t,e,n){for(let r=e,u;(u=t[r])!=65535;r++)if(u==n)return r-e;return-1}function SI(t,e,n,r){let u=hb(n,r,e);return u<0||hb(n,r,t)<u}const Fn=typeof process<"u"&&cb&&/\bparse\b/.test(cb.LOG);let sh=null;function pb(t,e,n){let r=t.cursor(Te.IncludeAnonymous);for(r.moveTo(e);;)if(!(n<0?r.childBefore(e):r.childAfter(e)))for(;;){if((n<0?r.to<e:r.from>e)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:t.length}}class _I{constructor(e,n){this.fragments=e,this.minRepeat=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?pb(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?pb(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;if(e<this.safeFrom)return null;let r=this.trees[n],u=this.index[n];if(u==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=r.children[u],o=this.start[n]+r.positions[u];if(o>e)return this.nextStart=o,null;if(i instanceof Le){let s=o>this.lastRepeatPos&&i.type.id>=this.minRepeat;if(o==e||s){let a=o+i.length,l;if(o>=this.safeFrom&&a<=this.safeTo&&(!(l=i.prop(be.lookAhead))||a+l<this.fragment.to)&&(s&&(this.lastRepeat=i,this.lastRepeatPos=o),o==e))return i}this.index[n]++,o+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+i.length}}}class wI{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new Q0)}getActions(e){let n=0,r=null,{parser:u}=e.p,{tokenizers:i}=u,o=u.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,a=0;for(let l=0;l<i.length;l++){if((1<<l&o)==0)continue;let c=i[l],f=this.tokens[l];if(!(r&&!c.fallback)&&((c.contextual||f.start!=e.pos||f.mask!=o||f.context!=s)&&(this.updateCachedToken(f,c,e),f.mask=o,f.context=s),f.lookAhead>f.end+25&&(a=Math.max(f.lookAhead,a)),f.value!=0)){let d=n;if(f.extended>-1&&(n=this.addActions(e,f.extended,f.end,n)),n=this.addActions(e,f.value,f.end,n),!c.extend&&(r=f,n>d))break}}for(;this.actions.length>n;)this.actions.pop();return a&&e.setLookAhead(a),!r&&e.pos==this.stream.end&&(r=new Q0,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,n=this.addActions(e,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new Q0,{pos:r,p:u}=e;return n.start=r,n.end=Math.min(r+1,u.stream.end),n.value=r==u.stream.end?u.parser.eofTerm:0,n}updateCachedToken(e,n,r){let u=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(u,e),r),e.value>-1){let{parser:i}=r.p;for(let o=0;o<i.specialized.length;o++)if(i.specialized[o]==e.value){let s=i.specializers[o](this.stream.read(e.start,e.end),r);if(s>=0&&r.p.parser.dialect.allows(s>>1)){(s&1)==0?e.value=s>>1:e.extended=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(u+1)}putAction(e,n,r,u){for(let i=0;i<u;i+=3)if(this.actions[i]==e)return u;return this.actions[u++]=e,this.actions[u++]=n,this.actions[u++]=r,u}addActions(e,n,r,u){let{state:i}=e,{parser:o}=e.p,{data:s}=o;for(let a=0;a<2;a++)for(let l=o.stateSlot(i,a?2:1);;l+=3){if(s[l]==65535)if(s[l+1]==1)l=cr(s,l+2);else{u==0&&s[l+1]==2&&(u=this.putAction(cr(s,l+2),n,r,u));break}s[l]==n&&(u=this.putAction(cr(s,l+1),n,r,u))}return u}}class BI{constructor(e,n,r,u){this.parser=e,this.input=n,this.ranges=u,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new kI(n,u),this.tokens=new wI(e,this.stream),this.topTerm=e.top[1];let{from:i}=u[0];this.stacks=[mc.start(this,e.top[0],i)],this.fragments=r.length&&this.stream.end-i>e.bufferLength*4?new _I(r,e.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,r=this.stacks=[],u,i;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let s=e[o];for(;;){if(this.tokens.mainToken=null,s.pos>n)r.push(s);else{if(this.advanceStack(s,r,e))continue;{u||(u=[],i=[]),u.push(s);let a=this.tokens.getMainToken(s);i.push(a.value,a.end)}}break}}if(!r.length){let o=u&&FI(u);if(o)return Fn&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Fn&&u&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&u){let o=this.stoppedAt!=null&&u[0].pos>this.stoppedAt?u[0]:this.runRecovery(u,i,r);if(o)return Fn&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((s,a)=>a.score-s.score);r.length>o;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let o=0;o<r.length-1;o++){let s=r[o];for(let a=o+1;a<r.length;a++){let l=r[a];if(s.sameState(l)||s.buffer.length>500&&l.buffer.length>500)if((s.score-l.score||s.buffer.length-l.buffer.length)>0)r.splice(a--,1);else{r.splice(o--,1);continue e}}}r.length>12&&(r.sort((o,s)=>s.score-o.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let o=1;o<r.length;o++)r[o].pos<this.minStackPos&&(this.minStackPos=r[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}tryReuse(e,n,r,u){if(!r)return null;let i=e.curContext&&e.curContext.tracker.strict,o=i?e.curContext.hash:0;for(;r;){let s=this.parser.nodeSet.types[r.type.id]!=r.type?-1:this.parser.getGoto(e.state,r.type.id);if(s>-1&&r.length&&(!i||(r.prop(be.contextHash)||0)==o))return e.useNode(r,s,n),r;if(r.children.length==0||r.positions[0]>0)break;let a=r.children[0];if(a instanceof Le&&(!u||a.type.id>=this.parser.minRepeatTerm))r=a;else break}return null}advanceStack(e,n,r){let u=e.pos,{parser:i}=this,o=Fn?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&u>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let l=e.reducePos<u&&e.buffer.length&&e.buffer[e.buffer.length-2]<=e.reducePos&&this.fragments.lastRepeatPos==e.reducePos&&this.tryReuse(e,e.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(e,u,this.fragments.nodeAt(u),!1);if(l)return Fn&&console.log(o+this.stackID(e)+` (via reuse of ${i.getName(l.type.id)})`),!0}let s=i.stateSlot(e.state,4);if(s>0)return e.reduce(s),Fn&&console.log(o+this.stackID(e)+` (via always-reduce ${i.getName(s&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let l=0;l<a.length;){let c=a[l++],f=a[l++],d=a[l++],h=l==a.length||!r,p=h?e:e.split(),m=this.tokens.mainToken;if(p.apply(c,f,m?m.start:p.pos,d),Fn&&console.log(o+this.stackID(p)+` (via ${(c&65536)==0?"shift":`reduce of ${i.getName(c&65535)}`} for ${i.getName(f)} @ ${u}${p==e?"":", split"})`),h)return!0;p.pos>u?n.push(p):r.push(p)}return!1}advanceFully(e,n){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return mb(e,n),!0}}runRecovery(e,n,r){let u=null,i=!1;for(let o=0;o<e.length;o++){let s=e[o],a=n[o<<1],l=n[(o<<1)+1],c=Fn?this.stackID(s)+" -> ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),Fn&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let f=s.split(),d=c;for(let h=0;h<10&&f.forceReduce()&&(Fn&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));h++)Fn&&(d=this.stackID(f)+" -> ");for(let h of s.recoverByInsert(a))Fn&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>s.pos?(l==s.pos&&(l++,a=0),s.recoverByDelete(a,l),Fn&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(a)})`),mb(s,r)):(!u||u.score<f.score)&&(u=f)}return u}stackToTree(e){return e.close(),Le.build({buffer:gc.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(sh||(sh=new WeakMap)).get(e);return n||sh.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function mb(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(r.pos==t.pos&&r.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class PI{constructor(e,n,r){this.source=e,this.flags=n,this.disabled=r}allows(e){return!this.disabled||this.disabled[e]==0}}const ah=t=>t;class C2{constructor(e){this.start=e.start,this.shift=e.shift||ah,this.reduce=e.reduce||ah,this.reuse=e.reuse||ah,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Fo extends l1{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;s<e.repeatNodeCount;s++)n.push("");let r=Object.keys(e.topRules).map(s=>e.topRules[s][1]),u=[];for(let s=0;s<n.length;s++)u.push([]);function i(s,a,l){u[s].push([a,a.deserialize(String(l))])}if(e.nodeProps)for(let s of e.nodeProps){let a=s[0];typeof a=="string"&&(a=be[a]);for(let l=1;l<s.length;){let c=s[l++];if(c>=0)i(c,a,s[l++]);else{let f=s[l+-c];for(let d=-c;d>0;d--)i(s[l++],a,f);l++}}}this.nodeSet=new Za(n.map((s,a)=>_t.define({name:a>=this.minRepeatTerm?void 0:s,id:a,props:u[a],top:r.indexOf(a)>-1,error:a==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(a)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=gx;let o=Ss(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;s<this.specializerSpecs.length;s++)this.specialized[s]=this.specializerSpecs[s].term;this.specializers=this.specializerSpecs.map(gb),this.states=Ss(e.states,Uint32Array),this.data=Ss(e.stateData),this.goto=Ss(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(s=>typeof s=="number"?new Oo(o,s):s),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,r){let u=new BI(this,e,n,r);for(let i of this.wrappers)u=i(u,e,n,r);return u}getGoto(e,n,r=!1){let u=this.goto;if(n>=u[0])return-1;for(let i=u[n+1];;){let o=u[i++],s=o&1,a=u[i++];if(s&&r)return a;for(let l=i+(o>>1);i<l;i++)if(u[i]==e)return a;if(s)return-1}}hasAction(e,n){let r=this.data;for(let u=0;u<2;u++)for(let i=this.stateSlot(e,u?2:1),o;;i+=3){if((o=r[i])==65535)if(r[i+1]==1)o=r[i=cr(r,i+2)];else{if(r[i+1]==2)return cr(r,i+2);break}if(o==n||o==0)return cr(r,i+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,r=>r==n?!0:null)}allActions(e,n){let r=this.stateSlot(e,4),u=r?n(r):void 0;for(let i=this.stateSlot(e,1);u==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=cr(this.data,i+2);else break;u=n(cr(this.data,i+1))}return u}nextStates(e){let n=[];for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=cr(this.data,r+2);else break;if((this.data[r+2]&1)==0){let u=this.data[r+1];n.some((i,o)=>o&1&&i==u)||n.push(this.data[r],u)}}return n}configure(e){let n=Object.assign(Object.create(Fo.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=r}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let u=e.tokenizers.find(i=>i.from==r);return u?u.to:r})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,u)=>{let i=e.specializers.find(s=>s.from==r.external);if(!i)return r;let o=Object.assign(Object.assign({},r),{external:i.to});return n.specializers[u]=gb(o),o})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(e)for(let i of e.split(" ")){let o=n.indexOf(i);o>=0&&(r[o]=!0)}let u=null;for(let i=0;i<n.length;i++)if(!r[i])for(let o=this.dialects[n[i]],s;(s=this.data[o++])!=65535;)(u||(u=new Uint8Array(this.maxTerm+1)))[s]=1;return new PI(e,r,u)}static deserialize(e){return new Fo(e)}}function cr(t,e){return t[e]|t[e+1]<<16}function FI(t){let e=null;for(let n of t){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function gb(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}const QI=55,TI=1,II=56,zI=2,ZI=57,RI=3,Ob=4,jI=5,S1=6,y2=7,x2=8,E2=9,$2=10,MI=11,LI=12,NI=13,lh=58,UI=14,XI=15,bb=59,A2=21,VI=23,D2=24,qI=25,Hp=27,k2=28,WI=29,YI=32,GI=35,HI=37,KI=38,JI=0,ez=1,tz={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},nz={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},vb={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function uz(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let Cb=null,yb=null,xb=0;function Kp(t,e){let n=t.pos+e;if(xb==n&&yb==t)return Cb;let r=t.peek(e),u="";for(;uz(r);)u+=String.fromCharCode(r),r=t.peek(++e);return yb=t,xb=n,Cb=u?u.toLowerCase():r==rz||r==iz?void 0:null}const S2=60,bc=62,_1=47,rz=63,iz=33,oz=45;function Eb(t,e){this.name=t,this.parent=e}const sz=[S1,$2,y2,x2,E2],az=new C2({start:null,shift(t,e,n,r){return sz.indexOf(e)>-1?new Eb(Kp(r,1)||"",t):t},reduce(t,e){return e==A2&&t?t.parent:t},reuse(t,e,n,r){let u=e.type.id;return u==S1||u==HI?new Eb(Kp(r,1)||"",t):t},strict:!1}),lz=new qn((t,e)=>{if(t.next!=S2){t.next<0&&e.context&&t.acceptToken(lh);return}t.advance();let n=t.next==_1;n&&t.advance();let r=Kp(t,0);if(r===void 0)return;if(!r)return t.acceptToken(n?XI:UI);let u=e.context?e.context.name:null;if(n){if(r==u)return t.acceptToken(MI);if(u&&nz[u])return t.acceptToken(lh,-2);if(e.dialectEnabled(JI))return t.acceptToken(LI);for(let i=e.context;i;i=i.parent)if(i.name==r)return;t.acceptToken(NI)}else{if(r=="script")return t.acceptToken(y2);if(r=="style")return t.acceptToken(x2);if(r=="textarea")return t.acceptToken(E2);if(tz.hasOwnProperty(r))return t.acceptToken($2);u&&vb[u]&&vb[u][r]?t.acceptToken(lh,-1):t.acceptToken(S1)}},{contextual:!0}),cz=new qn(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(bb);break}if(t.next==oz)e++;else if(t.next==bc&&e>=2){n>=3&&t.acceptToken(bb,-2);break}else e=0;t.advance()}});function fz(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const dz=new qn((t,e)=>{if(t.next==_1&&t.peek(1)==bc){let n=e.dialectEnabled(ez)||fz(e.context);t.acceptToken(n?jI:Ob,2)}else t.next==bc&&t.acceptToken(Ob,1)});function w1(t,e,n){let r=2+t.length;return new qn(u=>{for(let i=0,o=0,s=0;;s++){if(u.next<0){s&&u.acceptToken(e);break}if(i==0&&u.next==S2||i==1&&u.next==_1||i>=2&&i<r&&u.next==t.charCodeAt(i-2))i++,o++;else if(i==r&&u.next==bc){s>o?u.acceptToken(e,-o):u.acceptToken(n,-(o-2));break}else if((u.next==10||u.next==13)&&s){u.acceptToken(e,1);break}else i=o=0;u.advance()}})}const hz=w1("script",QI,TI),pz=w1("style",II,zI),mz=w1("textarea",ZI,RI),gz=Wo({"Text RawText IncompleteTag IncompleteCloseTag":A.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":A.angleBracket,TagName:A.tagName,"MismatchedCloseTag/TagName":[A.tagName,A.invalid],AttributeName:A.attributeName,"AttributeValue UnquotedAttributeValue":A.attributeValue,Is:A.definitionOperator,"EntityReference CharacterReference":A.character,Comment:A.blockComment,ProcessingInst:A.processingInstruction,DoctypeDecl:A.documentMeta}),Oz=Fo.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'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!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:az,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,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a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[hz,pz,mz,dz,lz,cz,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function _2(t,e){let n=Object.create(null);for(let r of t.getChildren(D2)){let u=r.getChild(qI),i=r.getChild(Hp)||r.getChild(k2);u&&(n[e.read(u.from,u.to)]=i?i.type.id==Hp?e.read(i.from+1,i.to-1):e.read(i.from,i.to):"")}return n}function $b(t,e){let n=t.getChild(VI);return n?e.read(n.from,n.to):" "}function ch(t,e,n){let r;for(let u of n)if(!u.attrs||u.attrs(r||(r=_2(t.node.parent.firstChild,e))))return{parser:u.parser,bracketed:!0};return null}function w2(t=[],e=[]){let n=[],r=[],u=[],i=[];for(let s of t)(s.tag=="script"?n:s.tag=="style"?r:s.tag=="textarea"?u:i).push(s);let o=e.length?Object.create(null):null;for(let s of e)(o[s.name]||(o[s.name]=[])).push(s);return yx((s,a)=>{let l=s.type.id;if(l==WI)return ch(s,a,n);if(l==YI)return ch(s,a,r);if(l==GI)return ch(s,a,u);if(l==A2&&i.length){let c=s.node,f=c.firstChild,d=f&&$b(f,a),h;if(d){for(let p of i)if(p.tag==d&&(!p.attrs||p.attrs(h||(h=_2(f,a))))){let m=c.lastChild,g=m.type.id==KI?m.from:c.to;if(g>f.to)return{parser:p.parser,overlay:[{from:f.to,to:g}]}}}}if(o&&l==D2){let c=s.node,f;if(f=c.firstChild){let d=o[a.read(f.from,f.to)];if(d)for(let h of d){if(h.tagName&&h.tagName!=$b(c.parent,a))continue;let p=c.lastChild;if(p.type.id==Hp){let m=p.from+1,g=p.lastChild,C=p.to-(g&&g.isError?0:1);if(C>m)return{parser:h.parser,overlay:[{from:m,to:C}],bracketed:!0}}else if(p.type.id==k2)return{parser:h.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const bz=148,Ab=1,vz=149,Cz=150,B2=2,yz=151,xz=3,Ez=4,$z=152,P2=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Az=58,Dz=40,F2=95,kz=91,T0=45,Sz=46,_z=35,wz=37,Bz=38,Pz=92,Fz=10,Qz=42;function pa(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function B1(t){return t>=48&&t<=57}function Db(t){return B1(t)||t>=97&&t<=102||t>=65&&t<=70}const Q2=(t,e,n)=>(r,u)=>{for(let i=!1,o=0,s=0;;s++){let{next:a}=r;if(pa(a)||a==T0||a==F2||i&&B1(a))!i&&(a!=T0||s>0)&&(i=!0),o===s&&a==T0&&o++,r.advance();else if(a==Pz&&r.peek(1)!=Fz){if(r.advance(),Db(r.next)){do r.advance();while(Db(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();i=!0}else{i&&r.acceptToken(o>=2&&u.canShift(B2)?e:a==Dz?n:t);break}}},Tz=new qn(Q2(vz,B2,Cz),{contextual:!0}),Iz=new qn(Q2(yz,xz,Ez),{contextual:!0}),zz=new qn(t=>{if(P2.includes(t.peek(-1))){let{next:e}=t;(pa(e)||e==F2||e==_z||e==Sz||e==Qz||e==kz||e==Az&&pa(t.peek(1))||e==T0||e==Bz)&&t.acceptToken(bz)}}),Zz=new qn(t=>{if(!P2.includes(t.peek(-1))){let{next:e}=t;if(e==wz&&(t.advance(),t.acceptToken(Ab)),pa(e)){do t.advance();while(pa(t.next)||B1(t.next));t.acceptToken(Ab)}}});function kb(t){let e=t.length;return(e==4||e==5||e==7||e==9)&&/^#[a-f\d]+$/i.test(t)?$z:-1}const Rz=Wo({"AtKeyword import charset namespace keyframes media supports font-feature-values":A.definitionKeyword,"from to selector scope MatchFlag":A.keyword,NamespaceName:A.namespace,KeyframeName:A.labelName,KeyframeRangeName:A.operatorKeyword,TagName:A.tagName,ClassName:A.className,PseudoClassName:A.constant(A.className),IdName:A.labelName,"FeatureName PropertyName":A.propertyName,AttributeName:A.attributeName,NumberLiteral:A.number,KeywordQuery:A.keyword,UnaryQueryOp:A.operatorKeyword,"CallTag ValueName FontName":A.atom,VariableName:A.variableName,Callee:A.operatorKeyword,Unit:A.unit,"UniversalSelector NestingSelector":A.definitionOperator,"MatchOp CompareOp":A.compareOperator,"ChildOp SiblingOp, LogicOp":A.logicOperator,BinOp:A.arithmeticOperator,Important:A.modifier,Comment:A.blockComment,ColorLiteral:A.color,"ParenthesizedContent StringLiteral":A.string,":":A.punctuation,PseudoOp:A.derefOperator,"; , |":A.separator,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace}),jz={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:88,url:158,"url-prefix":158,domain:158,regexp:158},Mz={__proto__:null,or:102,and:102,not:112,only:112,layer:212},Lz={__proto__:null,selector:118,style:124,layer:208},Nz={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},Uz={__proto__:null,to:249},Xz=Fo.deserialize({version:14,states:"MrQYQdOOO$TQdOOP$[O`OOO%XQaO'#CfOOQP'#Ce'#CeO%`QdO'#Cg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( ArgList ValueName ParenthesizedValue AtKeyword ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery ColorLiteral CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:176,nodeProps:[["isolate",-2,5,38,""],["openedBy",23,"(",30,"[",33,"{"],["closedBy",24,")",31,"]",34,"}"]],propSources:[Rz],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"IO~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu/wuv%Zvw0qwx1Sxy2qyz3Sz{3X{|3r|}8e}!O8v!O!P9e!P!Q9|!Q![:u![!];p!]!^<l!^!_<}!_!`=y!`!a>^!a!b%Z!b!c?_!c!k%Z!k!lAl!l!u%Z!u!vAl!v!}%Z!}#OA}#O#P%Z#P#QB`#Q#R/w#R#]%Z#]#^Bq#^#g%Z#g#hAl#h#o%Z#o#pGU#p#qGg#q#rHO#r#sHa#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$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S;=`%{<%lO%jjHTSqYOy%jz;'S%j;'S;=`%{<%lO%jfHfU#SQOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%j`H{P;=`<%l%Z",tokenizers:[zz,Zz,Tz,Iz,1,2,3,4,new Oc("m~RRYZ[z{a~~g~aO$c~~dP!P!Qg~lO$d~~",28,156)],topRules:{StyleSheet:[0,6],Styles:[1,129]},dynamicPrecedences:{97:1},specialized:[{term:172,get:(t,e)=>kb(t)<<1,external:kb},{term:150,get:t=>jz[t]||-1},{term:151,get:t=>Mz[t]||-1},{term:4,get:t=>Lz[t]||-1},{term:28,get:t=>Nz[t]||-1},{term:149,get:t=>Uz[t]||-1}],tokenPrec:2433});let fh=null;function dh(){if(!fh&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],n=new Set;for(let r in t)r!="cssText"&&r!="cssFloat"&&typeof t[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,u=>"-"+u.toLowerCase())),n.has(r)||(e.push(r),n.add(r)));fh=e.sort().map(r=>({type:"property",label:r,apply:r+": "}))}return fh||[]}const Sb=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),_b=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),Vz=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),qz=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),sr=/^(\w[\w-]*|-\w[\w-]*|)$/,Wz=/^-(-[\w-]*)?$/;function Yz(t,e){var n;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let r=(n=t.parent)===null||n===void 0?void 0:n.firstChild;return r?.name!="Callee"?!1:e.sliceString(r.from,r.to)=="var"}const wb=new Cx,Gz=["Declaration"];function Hz(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function T2(t,e,n){if(e.to-e.from>4096){let r=wb.get(e);if(r)return r;let u=[],i=new Set,o=e.cursor(Te.IncludeAnonymous);if(o.firstChild())do for(let s of T2(t,o.node,n))i.has(s.label)||(i.add(s.label),u.push(s));while(o.nextSibling());return wb.set(e,u),u}else{let r=[],u=new Set;return e.cursor().iterate(i=>{var o;if(n(i)&&i.matchContext(Gz)&&((o=i.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let s=t.sliceString(i.from,i.to);u.has(s)||(u.add(s),r.push({label:s,type:"variable"}))}}),r}}const Kz=t=>e=>{let{state:n,pos:r}=e,u=rt(n).resolveInner(r,-1),i=u.type.isError&&u.from==u.to-1&&n.doc.sliceString(u.from,u.to)=="-";if(u.name=="PropertyName"||(i||u.name=="TagName")&&/^(Block|Styles)$/.test(u.resolve(u.to).name))return{from:u.from,options:dh(),validFor:sr};if(u.name=="ValueName")return{from:u.from,options:_b,validFor:sr};if(u.name=="PseudoClassName")return{from:u.from,options:Sb,validFor:sr};if(t(u)||(e.explicit||i)&&Yz(u,n.doc))return{from:t(u)||i?u.from:r,options:T2(n.doc,Hz(u),t),validFor:Wz};if(u.name=="TagName"){for(let{parent:a}=u;a;a=a.parent)if(a.name=="Block")return{from:u.from,options:dh(),validFor:sr};return{from:u.from,options:Vz,validFor:sr}}if(u.name=="AtKeyword")return{from:u.from,options:qz,validFor:sr};if(!e.explicit)return null;let o=u.resolve(r),s=o.childBefore(r);return s&&s.name==":"&&o.name=="PseudoClassSelector"?{from:r,options:Sb,validFor:sr}:s&&s.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:r,options:_b,validFor:sr}:o.name=="Block"||o.name=="Styles"?{from:r,options:dh(),validFor:sr}:null},Jz=Kz(t=>t.name=="VariableName"),vc=wo.define({name:"css",parser:Xz.configure({props:[ja.add({Declaration:F0()}),Yo.add({"Block KeyframeList":_x})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function eZ(){return new sa(vc,vc.data.of({autocomplete:Jz}))}const tZ=317,nZ=318,Bb=1,uZ=2,rZ=3,iZ=4,oZ=319,sZ=321,aZ=322,lZ=5,cZ=6,fZ=0,Jp=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],I2=125,dZ=59,em=47,hZ=42,pZ=43,mZ=45,gZ=60,OZ=44,bZ=63,vZ=46,CZ=91,yZ=new C2({start:!1,shift(t,e){return e==lZ||e==cZ||e==sZ?t:e==aZ},strict:!1}),xZ=new qn((t,e)=>{let{next:n}=t;(n==I2||n==-1||e.context)&&t.acceptToken(oZ)},{contextual:!0,fallback:!0}),EZ=new qn((t,e)=>{let{next:n}=t,r;Jp.indexOf(n)>-1||n==em&&((r=t.peek(1))==em||r==hZ)||n!=I2&&n!=dZ&&n!=-1&&!e.context&&t.acceptToken(tZ)},{contextual:!0}),$Z=new qn((t,e)=>{t.next==CZ&&!e.context&&t.acceptToken(nZ)},{contextual:!0}),AZ=new qn((t,e)=>{let{next:n}=t;if(n==pZ||n==mZ){if(t.advance(),n==t.next){t.advance();let r=!e.context&&e.canShift(Bb);t.acceptToken(r?Bb:uZ)}}else n==bZ&&t.peek(1)==vZ&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(rZ))},{contextual:!0});function hh(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}const DZ=new qn((t,e)=>{if(t.next!=gZ||!e.dialectEnabled(fZ)||(t.advance(),t.next==em))return;let n=0;for(;Jp.indexOf(t.next)>-1;)t.advance(),n++;if(hh(t.next,!0)){for(t.advance(),n++;hh(t.next,!1);)t.advance(),n++;for(;Jp.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==OZ)return;for(let r=0;;r++){if(r==7){if(!hh(t.next,!0))return;break}if(t.next!="extends".charCodeAt(r))break;t.advance(),n++}}t.acceptToken(iZ,-n)}),kZ=Wo({"get set async static":A.modifier,"for while do if else switch try catch finally return throw break continue default case defer":A.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":A.operatorKeyword,"let var const using function class extends":A.definitionKeyword,"import export from":A.moduleKeyword,"with debugger new":A.keyword,TemplateString:A.special(A.string),super:A.atom,BooleanLiteral:A.bool,this:A.self,null:A.null,Star:A.modifier,VariableName:A.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":A.function(A.variableName),VariableDefinition:A.definition(A.variableName),Label:A.labelName,PropertyName:A.propertyName,PrivatePropertyName:A.special(A.propertyName),"CallExpression/MemberExpression/PropertyName":A.function(A.propertyName),"FunctionDeclaration/VariableDefinition":A.function(A.definition(A.variableName)),"ClassDeclaration/VariableDefinition":A.definition(A.className),"NewExpression/VariableName":A.className,PropertyDefinition:A.definition(A.propertyName),PrivatePropertyDefinition:A.definition(A.special(A.propertyName)),UpdateOp:A.updateOperator,"LineComment Hashbang":A.lineComment,BlockComment:A.blockComment,Number:A.number,String:A.string,Escape:A.escape,ArithOp:A.arithmeticOperator,LogicOp:A.logicOperator,BitOp:A.bitwiseOperator,CompareOp:A.compareOperator,RegExp:A.regexp,Equals:A.definitionOperator,Arrow:A.function(A.punctuation),": Spread":A.punctuation,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace,"InterpolationStart InterpolationEnd":A.special(A.brace),".":A.derefOperator,", ;":A.separator,"@":A.meta,TypeName:A.typeName,TypeDefinition:A.definition(A.typeName),"type enum interface implements namespace module declare":A.definitionKeyword,"abstract global Privacy readonly override":A.modifier,"is keyof unique infer asserts":A.operatorKeyword,JSXAttributeValue:A.attributeValue,JSXText:A.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":A.angleBracket,"JSXIdentifier JSXNameSpacedName":A.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":A.attributeName,"JSXBuiltin/JSXIdentifier":A.standard(A.tagName)}),SZ={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:237,private:237,protected:237,readonly:239,instanceof:258,satisfies:261,import:294,keyof:351,unique:355,infer:361,asserts:397,is:399,abstract:419,implements:421,type:423,let:426,var:428,using:431,interface:437,enum:441,namespace:447,module:449,declare:453,global:457,defer:473,for:478,of:487,while:490,with:494,do:498,if:502,else:504,switch:508,case:514,try:520,catch:524,finally:528,return:532,throw:536,break:540,continue:544,debugger:548},_Z={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:403},wZ={__proto__:null,"<":193},BZ=Fo.deserialize({version:14,states:"$GSQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Im'#ImO1XQ`O'#GtO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JsO6[Q!0MxO'#JtO6uQ`O'#F^O6zQ,UO'#FuOOQ!0Lf'#Fg'#FgO7VO7dO'#FgO9XQMhO'#F}O9`Q`O'#F|OOQ!0Lf'#Jt'#JtOOQ!0Lb'#Js'#JsO9eQ`O'#GxOOQ['#K`'#K`O9pQ`O'#IZO9uQ!0LrO'#I[OOQ['#Ja'#JaOOQ['#I`'#I`Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GtO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EzO;hQMhO'#FfO;xQ`O'#GtOOQO'#Ka'#KaO;}Q`O'#KaO<]Q`O'#G|O<]Q`O'#G}O<]Q`O'#HPO9kQ`O'#HSO=SQ`O'#HVO>kQ`O'#CeO>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VOn3fO!_'aO%j3eO~O#l%baP%baR%ba[%baa%baj%bar%ba!S%ba!l%ba!p%ba#R%ba#o%ba#p%ba#q%ba#r%ba#s%ba#t%ba#u%ba#v%ba#w%ba#y%ba#{%ba#|%ba'{%ba(b%ba(s%ba!k%ba!Y%ba'x%bav%ba!_%ba%j%ba!g%ba~P#L{O#l%daP%daR%da[%daa%daj%dar%da!S%da!l%da!p%da#R%da#o%da#p%da#q%da#r%da#s%da#t%da#u%da#v%da#w%da#y%da#{%da#|%da'{%da(b%da(s%da!k%da!Y%da'x%dav%da!_%da%j%da!g%da~P#MnO#l%baP%baR%ba[%baa%baj%bar%ba!S%ba!]%ba!l%ba!p%ba#R%ba#o%ba#p%ba#q%ba#r%ba#s%ba#t%ba#u%ba#v%ba#w%ba#y%ba#{%ba#|%ba'{%ba(b%ba(s%ba!k%ba!Y%ba'x%ba#`%bav%ba!_%ba%j%ba!g%ba~P#/sO#l%daP%daR%da[%daa%daj%dar%da!S%da!]%da!l%da!p%da#R%da#o%da#p%da#q%da#r%da#s%da#t%da#u%da#v%da#w%da#y%da#{%da#|%da'{%da(b%da(s%da!k%da!Y%da'x%da#`%dav%da!_%da%j%da!g%da~P#/sO#l}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#w}a#y}a#{}a#|}a'{}a(b}a(s}a!k}a!Y}a'x}av}a!_}a%j}a!g}a~P$(cO#l$taP$taR$ta[$taa$taj$tar$ta!S$ta!l$ta!p$ta#R$ta#o$ta#p$ta#q$ta#r$ta#s$ta#t$ta#u$ta#v$ta#w$ta#y$ta#{$ta#|$ta'{$ta(b$ta(s$ta!k$ta!Y$ta'x$tav$ta!_$ta%j$ta!g$ta~P$)_O#l$vaP$vaR$va[$vaa$vaj$var$va!S$va!l$va!p$va#R$va#o$va#p$va#q$va#r$va#s$va#t$va#u$va#v$va#w$va#y$va#{$va#|$va'{$va(b$va(s$va!k$va!Y$va'x$vav$va!_$va%j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^2aR,q&oT%lm,qR1m,ZR,i&gQ&U|S,P&V&WR1`,QR+u&PT&p!W&sT&q!W&sT2`,z2a",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty VariableDefinition Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:381,context:yZ,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,208,212,216,217,219,222,225,235,238,244,246,248,250,253,259,265,267,269,271,273,275,276,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,121,122,137,140,142,143,144,145,146,148,149,168,170,172,"Expression",-23,31,33,37,41,43,45,174,176,178,179,181,182,183,185,186,187,189,190,191,202,204,206,207,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",161,"JSXStartCloseTag"],["closedBy",-2,24,169,">",40,"InterpolationEnd",50,"]",61,"}",74,")",166,"JSXEndTag"]],propSources:[kZ],skippedNodes:[0,5,6,279],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x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HU$A`?HUOEr07[$D|k$j&j(Xp([!b(O0/l$^#t(U,2j(f$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[EZ,$Z,AZ,DZ,2,3,4,5,6,7,8,9,10,11,12,13,14,xZ,new Oc("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(d~~",141,341),new Oc("j~RQYZXz{^~^O(R~~aP!P!Qd~iO(S~~",25,324)],topRules:{Script:[0,7],SingleExpression:[1,277],SingleClassItem:[2,278]},dialects:{jsx:0,ts:15179},dynamicPrecedences:{80:1,82:1,94:1,170:1,200:1},specialized:[{term:328,get:t=>SZ[t]||-1},{term:344,get:t=>_Z[t]||-1},{term:95,get:t=>wZ[t]||-1}],tokenPrec:15205}),z2=[$n("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),$n("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),$n("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),$n("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),$n("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),$n(`try {
|
|
17
|
+
\${}
|
|
18
|
+
} catch (\${error}) {
|
|
19
|
+
\${}
|
|
20
|
+
}`,{label:"try",detail:"/ catch block",type:"keyword"}),$n("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),$n(`if (\${}) {
|
|
21
|
+
\${}
|
|
22
|
+
} else {
|
|
23
|
+
\${}
|
|
24
|
+
}`,{label:"if",detail:"/ else block",type:"keyword"}),$n(`class \${name} {
|
|
25
|
+
constructor(\${params}) {
|
|
26
|
+
\${}
|
|
27
|
+
}
|
|
28
|
+
}`,{label:"class",detail:"definition",type:"keyword"}),$n('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),$n('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],PZ=z2.concat([$n("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),$n("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),$n("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Pb=new Cx,Z2=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function gs(t){return(e,n)=>{let r=e.node.getChild("VariableDefinition");return r&&n(r,t),!0}}const FZ=["FunctionDeclaration"],QZ={FunctionDeclaration:gs("function"),ClassDeclaration:gs("class"),ClassExpression:()=>!0,EnumDeclaration:gs("constant"),TypeAliasDeclaration:gs("type"),NamespaceDeclaration:gs("namespace"),VariableDefinition(t,e){t.matchContext(FZ)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function R2(t,e){let n=Pb.get(e);if(n)return n;let r=[],u=!0;function i(o,s){let a=t.sliceString(o.from,o.to);r.push({label:a,type:s})}return e.cursor(Te.IncludeAnonymous).iterate(o=>{if(u)u=!1;else if(o.name){let s=QZ[o.name];if(s&&s(o,i)||Z2.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of R2(t,o.node))r.push(s);return!1}}),Pb.set(e,r),r}const Fb=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,j2=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function TZ(t){let e=rt(t.state).resolveInner(t.pos,-1);if(j2.indexOf(e.name)>-1)return null;let n=e.name=="VariableName"||e.to-e.from<20&&Fb.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let r=[];for(let u=e;u;u=u.parent)Z2.has(u.name)&&(r=r.concat(R2(t.state.doc,u)));return{options:r,from:n?e.from:t.pos,validFor:Fb}}const Gu=wo.define({name:"javascript",parser:BZ.configure({props:[ja.add({IfStatement:F0({except:/^\s*({|else\b)/}),TryStatement:F0({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:DQ,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),r=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:r?1:2)*t.unit},Block:AQ({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":F0({except:/^\s*{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Yo.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":_x,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let e=t.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let n=t.lastChild;return{from:e.to,to:n.type.isError?t.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(t){var e;let n=(e=t.firstChild)===null||e===void 0?void 0:e.nextSibling,r=t.lastChild;return!n||n.type.isError?null:{from:n.to,to:r.type.isError?t.to:r.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),M2={test:t=>/^JSX/.test(t.name),facet:c1({commentTokens:{block:{open:"{/*",close:"*/}"}}})},L2=Gu.configure({dialect:"ts"},"typescript"),N2=Gu.configure({dialect:"jsx",props:[f1.add(t=>t.isTop?[M2]:void 0)]}),U2=Gu.configure({dialect:"jsx ts",props:[f1.add(t=>t.isTop?[M2]:void 0)]},"typescript");let X2=t=>({label:t,type:"keyword"});const V2="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(X2),IZ=V2.concat(["declare","implements","private","protected","public"].map(X2));function zZ(t={}){let e=t.jsx?t.typescript?U2:N2:t.typescript?L2:Gu,n=t.typescript?PZ.concat(IZ):z2.concat(V2);return new sa(e,[Gu.data.of({autocomplete:iT(j2,Lx(n))}),Gu.data.of({autocomplete:TZ}),t.jsx?jZ:[]])}function ZZ(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function Qb(t,e,n=t.length){for(let r=e?.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return t.sliceString(r.from,Math.min(r.to,n));return""}const RZ=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),jZ=X.inputHandler.of((t,e,n,r,u)=>{if((RZ?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||r!=">"&&r!="/"||!Gu.isActiveAt(t.state,e,-1))return!1;let i=u(),{state:o}=i,s=o.changeByRange(a=>{var l;let{head:c}=a,f=rt(o).resolveInner(c-1,-1),d;if(f.name=="JSXStartTag"&&(f=f.parent),!(o.doc.sliceString(c-1,c)!=r||f.name=="JSXAttributeValue"&&f.to>c)){if(r==">"&&f.name=="JSXFragmentTag")return{range:a,changes:{from:c,insert:"</>"}};if(r=="/"&&f.name=="JSXStartCloseTag"){let h=f.parent,p=h.parent;if(p&&h.from==c-2&&((d=Qb(o.doc,p.firstChild,c))||((l=p.firstChild)===null||l===void 0?void 0:l.name)=="JSXFragmentTag")){let m=`${d}>`;return{range:w.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(r==">"){let h=ZZ(f);if(h&&h.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(d=Qb(o.doc,h,c)))return{range:a,changes:{from:c,insert:`</${d}>`}}}}return{range:a}});return s.changes.empty?!1:(t.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Os=["_blank","_self","_top","_parent"],ph=["ascii","utf-8","utf-16","latin1","latin1"],mh=["get","post","put","delete"],gh=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qn=["true","false"],ae={},MZ={a:{attrs:{href:null,ping:null,type:null,media:null,target:Os,hreflang:null}},abbr:ae,address:ae,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ae,aside:ae,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ae,base:{attrs:{href:null,target:Os}},bdi:ae,bdo:ae,blockquote:{attrs:{cite:null}},body:ae,br:ae,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:gh,formmethod:mh,formnovalidate:["novalidate"],formtarget:Os,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ae,center:ae,cite:ae,code:ae,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:ae,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ae,div:ae,dl:ae,dt:ae,em:ae,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ae,figure:ae,footer:ae,form:{attrs:{action:null,name:null,"accept-charset":ph,autocomplete:["on","off"],enctype:gh,method:mh,novalidate:["novalidate"],target:Os}},h1:ae,h2:ae,h3:ae,h4:ae,h5:ae,h6:ae,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ae,hgroup:ae,hr:ae,html:{attrs:{manifest:null}},i:ae,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:gh,formmethod:mh,formnovalidate:["novalidate"],formtarget:Os,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:ae,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ae,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:ae,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:ph,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:ae,noscript:ae,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:ae,param:{attrs:{name:null,value:null}},pre:ae,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ae,rt:ae,ruby:ae,samp:ae,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:ph}},section:ae,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ae,source:{attrs:{src:null,type:null,media:null}},span:ae,strong:ae,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ae,summary:ae,sup:ae,table:ae,tbody:ae,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ae,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:ae,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ae,time:{attrs:{datetime:null}},title:ae,tr:ae,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ae,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:ae},q2={accesskey:null,class:null,contenteditable:Qn,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Qn,autocorrect:Qn,autocapitalize:Qn,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Qn,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qn,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qn,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qn,"aria-hidden":Qn,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qn,"aria-multiselectable":Qn,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qn,"aria-relevant":null,"aria-required":Qn,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},W2="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of W2)q2[t]=null;class ma{constructor(e,n){this.tags={...MZ,...e},this.globalAttrs={...q2,...n},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}ma.default=new ma;function Ii(t,e,n=t.length){if(!e)return"";let r=e.firstChild,u=r&&r.getChild("TagName");return u?t.sliceString(u.from,Math.min(u.to,n)):""}function Qo(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function Y2(t,e,n){let r=n.tags[Ii(t,Qo(e))];return r?.children||n.allTags}function P1(t,e){let n=[];for(let r=Qo(e);r&&!r.type.isTop;r=Qo(r.parent)){let u=Ii(t,r);if(u&&r.lastChild.name=="CloseTag")break;u&&n.indexOf(u)<0&&(e.name=="EndTag"||e.from>=r.firstChild.to)&&n.push(u)}return n}const G2=/^[:\-\.\w\u00b7-\uffff]*$/;function Tb(t,e,n,r,u){let i=/\s*>/.test(t.sliceDoc(u,u+5))?"":">",o=Qo(n,n.name=="StartTag"||n.name=="TagName");return{from:r,to:u,options:Y2(t.doc,o,e).map(s=>({label:s,type:"type"})).concat(P1(t.doc,n).map((s,a)=>({label:"/"+s,apply:"/"+s+i,type:"type",boost:99-a}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Ib(t,e,n,r){let u=/\s*>/.test(t.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:P1(t.doc,e).map((i,o)=>({label:i,apply:i+u,type:"type",boost:99-o})),validFor:G2}}function LZ(t,e,n,r){let u=[],i=0;for(let o of Y2(t.doc,n,e))u.push({label:"<"+o,type:"type"});for(let o of P1(t.doc,n))u.push({label:"</"+o+">",type:"type",boost:99-i++});return{from:r,to:r,options:u,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function NZ(t,e,n,r,u){let i=Qo(n),o=i?e.tags[Ii(t.doc,i)]:null,s=o&&o.attrs?Object.keys(o.attrs):[],a=o&&o.globalAttrs===!1?s:s.length?s.concat(e.globalAttrNames):e.globalAttrNames;return{from:r,to:u,options:a.map(l=>({label:l,type:"property"})),validFor:G2}}function UZ(t,e,n,r,u){var i;let o=(i=n.parent)===null||i===void 0?void 0:i.getChild("AttributeName"),s=[],a;if(o){let l=t.sliceDoc(o.from,o.to),c=e.globalAttrs[l];if(!c){let f=Qo(n),d=f?e.tags[Ii(t.doc,f)]:null;c=d?.attrs&&d.attrs[l]}if(c){let f=t.sliceDoc(r,u).toLowerCase(),d='"',h='"';/^['"]/.test(f)?(a=f[0]=='"'?/^[^"]*$/:/^[^']*$/,d="",h=t.sliceDoc(u,u+1)==f[0]?"":f[0],f=f.slice(1),r++):a=/^[^\s<>='"]*$/;for(let p of c)s.push({label:p,apply:d+p+h,type:"constant"})}}return{from:r,to:u,options:s,validFor:a}}function H2(t,e){let{state:n,pos:r}=e,u=rt(n).resolveInner(r,-1),i=u.resolve(r);for(let o=r,s;i==u&&(s=u.childBefore(o));){let a=s.lastChild;if(!a||!a.type.isError||a.from<a.to)break;i=u=s,o=a.from}return u.name=="TagName"?u.parent&&/CloseTag$/.test(u.parent.name)?Ib(n,u,u.from,r):Tb(n,t,u,u.from,r):u.name=="StartTag"||u.name=="IncompleteTag"?Tb(n,t,u,r,r):u.name=="StartCloseTag"||u.name=="IncompleteCloseTag"?Ib(n,u,r,r):u.name=="OpenTag"||u.name=="SelfClosingTag"||u.name=="AttributeName"?NZ(n,t,u,u.name=="AttributeName"?u.from:r,r):u.name=="Is"||u.name=="AttributeValue"||u.name=="UnquotedAttributeValue"?UZ(n,t,u,u.name=="Is"?r:u.from,r):e.explicit&&(i.name=="Element"||i.name=="Text"||i.name=="Document")?LZ(n,t,u,r):null}function XZ(t){return H2(ma.default,t)}function VZ(t){let{extraTags:e,extraGlobalAttributes:n}=t,r=n||e?new ma(e,n):ma.default;return u=>H2(r,u)}const qZ=Gu.parser.configure({top:"SingleExpression"}),K2=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:L2.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:N2.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:U2.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:qZ},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Gu.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:vc.parser}],J2=[{name:"style",parser:vc.parser.configure({top:"Styles"})}].concat(W2.map(t=>({name:t,parser:Gu.parser}))),eE=wo.define({name:"html",parser:Oz.configure({props:[ja.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,n;for(let r=t.node;;){let u=r.lastChild;if(!u||u.name!="Element"||u.to!=r.to)break;e=r=u}return e&&!((n=e.lastChild)&&(n.name=="CloseTag"||n.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),Yo.add({Element(t){let e=t.firstChild,n=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:n.name=="CloseTag"?n.from:t.to}}}),Mx.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),I0=eE.configure({wrap:w2(K2,J2)});function WZ(t={}){let e="",n;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(n=w2((t.nestedLanguages||[]).concat(K2),(t.nestedAttributes||[]).concat(J2)));let r=n?eE.configure({wrap:n,dialect:e}):e?I0.configure({dialect:e}):I0;return new sa(r,[I0.data.of({autocomplete:VZ(t)}),t.autoCloseTags!==!1?GZ:[],zZ().support,eZ().support])}const zb=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));function YZ(t,e,n){for(var r;;){if(((r=e.lastChild)===null||r===void 0?void 0:r.name)!="CloseTag")return!1;let u=e.parent;if(!u||Ii(t,u)!=n)return!0;e=u}}const GZ=X.inputHandler.of((t,e,n,r,u)=>{if(t.composing||t.state.readOnly||e!=n||r!=">"&&r!="/"||!I0.isActiveAt(t.state,e,-1))return!1;let i=u(),{state:o}=i,s=o.changeByRange(a=>{var l;let c=o.doc.sliceString(a.from-1,a.to)==r,{head:f}=a,d=rt(o).resolveInner(f,-1),h;if(c&&r==">"&&d.name=="EndTag"){let p=d.parent;if((h=Ii(o.doc,p.parent,f))&&!zb.has(h)&&!YZ(o.doc,p.parent,h)){let m=f+(o.doc.sliceString(f,f+1)===">"?1:0),g=`</${h}>`;return{range:a,changes:{from:f,to:m,insert:g}}}}else if(c&&r=="/"&&d.name=="IncompleteCloseTag"){let p=d.parent;if(d.from==f-2&&((l=p.lastChild)===null||l===void 0?void 0:l.name)!="CloseTag"&&(h=Ii(o.doc,p,f))&&!zb.has(h)){let m=f+(o.doc.sliceString(f,f+1)===">"?1:0),g=`${h}>`;return{range:w.cursor(f+g.length,-1),changes:{from:f,to:m,insert:g}}}}return{range:a}});return s.changes.empty?!1:(t.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),tE=c1({commentTokens:{block:{open:"<!--",close:"-->"}}}),nE=new be,uE=fI.configure({props:[Yo.add(t=>!t.is("Block")||t.is("Document")||tm(t)!=null||HZ(t)?void 0:(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})),nE.add(tm),ja.add({Document:()=>null}),Ai.add({Document:tE})]});function tm(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function HZ(t){return t.name=="OrderedList"||t.name=="BulletList"}function KZ(t,e){let n=t;for(;;){let r=n.nextSibling,u;if(!r||(u=tm(r.type))!=null&&u<=e)break;n=r}return n.to}const JZ=Sx.of((t,e,n)=>{for(let r=rt(t).resolveInner(n,-1);r&&!(r.from<e);r=r.parent){let u=r.type.prop(nE);if(u==null)continue;let i=KZ(r,u);if(i>n)return{from:n,to:i}}return null});function F1(t){return new nu(tE,t,[],"markdown")}const eR=F1(uE),tR=uE.configure([xI,$I,EI,AI,{props:[Yo.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),Cc=F1(tR);function nR(t,e){return n=>{if(n&&t){let r=null;if(n=/\S*/.exec(n)[0],typeof t=="function"?r=t(n):r=sc.matchLanguageName(t,n,!0),r instanceof sc)return r.support?r.support.language.parser:oa.getSkippingParser(r.load());if(r)return r.parser}return e?e.parser:null}}class Oh{constructor(e,n,r,u,i,o,s){this.node=e,this.from=n,this.to=r,this.spaceBefore=u,this.spaceAfter=i,this.type=o,this.item=s}blank(e,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;r.length<e;)r+=" ";return r}else{for(let u=this.to-this.from-r.length-this.spaceAfter.length;u>0;u--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(e,n){let r=this.node.name=="OrderedList"?String(+iE(this.item,e)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function rE(t,e){let n=[],r=[];for(let u=t;u;u=u.parent){if(u.name=="FencedCode")return r;(u.name=="ListItem"||u.name=="Blockquote")&&n.push(u)}for(let u=n.length-1;u>=0;u--){let i=n[u],o,s=e.lineAt(i.from),a=i.from-s.from;if(i.name=="Blockquote"&&(o=/^ *>( ?)/.exec(s.text.slice(a))))r.push(new Oh(i,a,a+o[0].length,"",o[1],">",null));else if(i.name=="ListItem"&&i.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(s.text.slice(a)))){let l=o[3],c=o[0].length;l.length>=4&&(l=l.slice(0,l.length-4),c-=4),r.push(new Oh(i.parent,a,a+c,o[1],l,o[2],i))}else if(i.name=="ListItem"&&i.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(a)))){let l=o[4],c=o[0].length;l.length>4&&(l=l.slice(0,l.length-4),c-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),r.push(new Oh(i.parent,a,a+c,o[1],l,f,i))}}return r}function iE(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function bh(t,e,n,r=0){for(let u=-1,i=t;;){if(i.name=="ListItem"){let s=iE(i,e),a=+s[2];if(u>=0){if(a!=u+1)return;n.push({from:i.from+s[1].length,to:i.from+s[0].length,insert:String(u+2+r)})}u=a}let o=i.nextSibling;if(!o)break;i=o}}function Q1(t,e){let n=/^[ \t]*/.exec(t)[0].length;if(!n||e.facet(Ra)!=" ")return t;let r=yu(t,4,n),u="";for(let i=r;i>0;)i>=4?(u+=" ",i-=4):(u+=" ",i--);return u+t.slice(n)}const uR=(t={})=>({state:e,dispatch:n})=>{let r=rt(e),{doc:u}=e,i=null,o=e.changeByRange(s=>{if(!s.empty||!Cc.isActiveAt(e,s.from,-1)&&!Cc.isActiveAt(e,s.from,1))return i={range:s};let a=s.from,l=u.lineAt(a),c=rE(r.resolveInner(a,-1),u);for(;c.length&&c[c.length-1].from>a-l.from;)c.pop();if(!c.length)return i={range:s};let f=c[c.length-1];if(f.to-f.spaceAfter.length>a-l.from)return i={range:s};let d=a>=f.to-f.spaceAfter.length&&!/\S/.test(l.text.slice(f.to));if(f.item&&d){if(f.item.from<l.from&&!/^[\s>]*$/.test(l.text.slice(0,f.to)))return i={range:s};let C=f.node.firstChild,b=f.node.getChild("ListItem","ListItem");if(C.to>=a||b&&b.to<a||l.from>0&&!/[^\s>]/.test(u.lineAt(l.from-1).text)||t.nonTightLists===!1){let O=c.length>1?c[c.length-2]:null,y,$="";O&&O.item?(y=l.from+O.from,$=O.marker(u,1)):y=l.from+(O?O.to:0);let x=[{from:y,to:a,insert:$}];return f.node.name=="OrderedList"&&bh(f.item,u,x,-2),O&&O.node.name=="OrderedList"&&bh(O.item,u,x),{range:w.cursor(y+$.length),changes:x}}else{let O=Rb(c,e,l);return{range:w.cursor(a+O.length+1),changes:{from:l.from,insert:O+e.lineBreak}}}}if(f.node.name=="Blockquote"&&d&&l.from){let C=u.lineAt(l.from-1),b=/>\s*$/.exec(C.text);if(b&&b.index==f.from){let O=e.changes([{from:C.from+b.index,to:C.to},{from:l.from+f.from,to:l.to}]);return{range:s.map(O),changes:O}}}let h=[];f.node.name=="OrderedList"&&bh(f.item,u,h);let p=f.item&&f.item.from<l.from,m="";if(!p||/^[\s\d.)\-+*>]*/.exec(l.text)[0].length>=f.to)for(let C=0,b=c.length-1;C<=b;C++)m+=C==b&&!p?c[C].marker(u,1):c[C].blank(C<b?yu(l.text,4,c[C+1].from)-m.length:null);let g=a;for(;g>l.from&&/\s/.test(l.text.charAt(g-l.from-1));)g--;return m=Q1(m,e),iR(f.node,e.doc)&&(m=Rb(c,e,l)+e.lineBreak+m),h.push({from:g,to:a,insert:e.lineBreak+m}),{range:w.cursor(g+m.length+1),changes:h}});return i?!1:(n(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},rR=uR();function Zb(t){return t.name=="QuoteMark"||t.name=="ListMark"}function iR(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let n=t.firstChild,r=t.getChild("ListItem","ListItem");if(!r)return!1;let u=e.lineAt(n.to),i=e.lineAt(r.from),o=/^[\s>]*$/.test(u.text);return u.number+(o?0:1)<i.number}function Rb(t,e,n){let r="";for(let u=0,i=t.length-2;u<=i;u++)r+=t[u].blank(u<i?yu(n.text,4,t[u+1].from)-r.length:null,u<i);return Q1(r,e)}function oR(t,e){let n=t.resolveInner(e,-1),r=e;Zb(n)&&(r=n.from,n=n.parent);for(let u;u=n.childBefore(r);)if(Zb(u))r=u.from;else if(u.name=="OrderedList"||u.name=="BulletList")n=u.lastChild,r=n.to;else break;return n}const sR=({state:t,dispatch:e})=>{let n=rt(t),r=null,u=t.changeByRange(i=>{let o=i.from,{doc:s}=t;if(i.empty&&Cc.isActiveAt(t,i.from)){let a=s.lineAt(o),l=rE(oR(n,o),s);if(l.length){let c=l[l.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(o-a.from>f&&!/\S/.test(a.text.slice(f,o-a.from)))return{range:w.cursor(a.from+f),changes:{from:a.from+f,to:o}};if(o-a.from==f&&(c.item&&a.from<=c.item.from||/^[\s>]*$/.test(a.text.slice(0,c.to)))){let d=a.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(a.text.slice(c.from,c.to))){let h=c.blank(yu(a.text,4,c.to)-yu(a.text,4,c.from));return d==a.from&&(h=Q1(h,t)),{range:w.cursor(d+h.length),changes:{from:d,to:a.from+c.to,insert:h}}}if(d<o)return{range:w.cursor(d),changes:{from:d,to:o}}}}}return r={range:i}});return r?!1:(e(t.update(u,{scrollIntoView:!0,userEvent:"delete"})),!0)},aR=[{key:"Enter",run:rR},{key:"Backspace",run:sR}],oE=WZ({matchClosingTags:!1});function lR(t={}){let{codeLanguages:e,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:u}=eR,completeHTMLTags:i=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=oE}=t;if(!(u instanceof cf))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let a=t.extensions?[t.extensions]:[],l=[s.support,JZ],c;o&&l.push(hR),n instanceof sa?(l.push(n.support),c=n.language):n&&(c=n);let f=e||c?nR(e,c):void 0;a.push(hI({codeParser:f,htmlParser:s.language.parser})),r&&l.push(Ku.high(qo.of(aR)));let d=F1(u.configure(a));return i&&l.push(d.data.of({autocomplete:cR})),new sa(d,l)}function cR(t){let{state:e,pos:n}=t,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(n-25,n));if(!r)return null;let u=rt(e).resolveInner(n,-1);for(;u&&!u.type.isTop;){if(u.name=="CodeBlock"||u.name=="FencedCode"||u.name=="ProcessingInstructionBlock"||u.name=="CommentBlock"||u.name=="Link"||u.name=="Image")return null;u=u.parent}return{from:n-r[0].length,to:n,options:fR(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let vh=null;function fR(){if(vh)return vh;let t=XZ(new p1(ze.create({extensions:oE}),0,!0));return vh=t?t.options:[]}const dR=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,hR=X.domEventHandlers({paste:(t,e)=>{var n;let{main:r}=e.state.selection;if(r.empty)return!1;let u=(n=t.clipboardData)===null||n===void 0?void 0:n.getData("text/plain");if(!u||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(u)||(/^www\./.test(u)&&(u="https://"+u),!Cc.isActiveAt(e.state,r.from,1)))return!1;let i=rt(e.state),o=!1;return i.iterate({from:r.from,to:r.to,enter:s=>{(s.from>r.from||dR.test(s.name))&&(o=!0)},leave:s=>{s.to<r.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:r.from,insert:"["},{from:r.to,insert:`](${u})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),pR=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=I1(t.state,n.from);return r.line?mR(t):r.block?OR(t):!1};function T1(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let u=t(e,n);return u?(r(n.update(u)),!0):!1}}const mR=T1(CR,0),gR=T1(sE,0),OR=T1((t,e)=>sE(t,e,vR(e)),0);function I1(t,e){let n=t.languageDataAt("commentTokens",e,1);return n.length?n[0]:{}}const bs=50;function bR(t,{open:e,close:n},r,u){let i=t.sliceDoc(r-bs,r),o=t.sliceDoc(u,u+bs),s=/\s*$/.exec(i)[0].length,a=/^\s*/.exec(o)[0].length,l=i.length-s;if(i.slice(l-e.length,l)==e&&o.slice(a,a+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:u+a,margin:a&&1}};let c,f;u-r<=2*bs?c=f=t.sliceDoc(r,u):(c=t.sliceDoc(r,r+bs),f=t.sliceDoc(u-bs,u));let d=/^\s*/.exec(c)[0].length,h=/\s*$/.exec(f)[0].length,p=f.length-h-n.length;return c.slice(d,d+e.length)==e&&f.slice(p,p+n.length)==n?{open:{pos:r+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:u-h-n.length,margin:/\s/.test(f.charAt(p-1))?1:0}}:null}function vR(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),u=n.to<=r.to?r:t.doc.lineAt(n.to);u.from>r.from&&u.from==n.to&&(u=n.to==r.to+1?r:t.doc.lineAt(n.to-1));let i=e.length-1;i>=0&&e[i].to>r.from?e[i].to=u.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:u.to})}return e}function sE(t,e,n=e.selection.ranges){let r=n.map(i=>I1(e,i.from).block);if(!r.every(i=>i))return null;let u=n.map((i,o)=>bR(e,r[o],i.from,i.to));if(t!=2&&!u.every(i=>i))return{changes:e.changes(n.map((i,o)=>u[o]?[]:[{from:i.from,insert:r[o].open+" "},{from:i.to,insert:" "+r[o].close}]))};if(t!=1&&u.some(i=>i)){let i=[];for(let o=0,s;o<u.length;o++)if(s=u[o]){let a=r[o],{open:l,close:c}=s;i.push({from:l.pos-a.open.length,to:l.pos+l.margin},{from:c.pos-c.margin,to:c.pos+a.close.length})}return{changes:i}}return null}function CR(t,e,n=e.selection.ranges){let r=[],u=-1;e:for(let{from:i,to:o}of n){let s=r.length,a=1e9,l;for(let c=i;c<=o;){let f=e.doc.lineAt(c);if(l==null&&(l=I1(e,f.from).line,!l))continue e;if(f.from>u&&(i==o||o>f.from)){u=f.from;let d=/^\s*/.exec(f.text)[0].length,h=d==f.length,p=f.text.slice(d,d+l.length)==l?d:-1;d<f.text.length&&d<a&&(a=d),r.push({line:f,comment:p,token:l,indent:d,empty:h,single:!1})}c=f.to+1}if(a<1e9)for(let c=s;c<r.length;c++)r[c].indent<r[c].line.text.length&&(r[c].indent=a);r.length==s+1&&(r[s].single=!0)}if(t!=2&&r.some(i=>i.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:s,token:a,indent:l,empty:c,single:f}of r)(f||!c)&&i.push({from:s.from+l,insert:a+" "});let o=e.changes(i);return{changes:o,selection:e.selection.map(o,1)}}else if(t!=1&&r.some(i=>i.comment>=0)){let i=[];for(let{line:o,comment:s,token:a}of r)if(s>=0){let l=o.from+s,c=l+a.length;o.text[c-o.from]==" "&&c++,i.push({from:l,to:c})}return{changes:i}}return null}const nm=kr.define(),yR=kr.define(),xR=G.define(),aE=G.define({combine(t){return Ju(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(r,u)=>e(r,u)||n(r,u)})}}),lE=jt.define({create(){return Nu.empty},update(t,e){let n=e.state.facet(aE),r=e.annotation(nm);if(r){let a=Bn.fromTransaction(e,r.selection),l=r.side,c=l==0?t.undone:t.done;return a?c=yc(c,c.length,n.minDepth,a):c=dE(c,e.startState.selection),new Nu(l==0?r.rest:c,l==0?c:r.rest)}let u=e.annotation(yR);if((u=="full"||u=="before")&&(t=t.isolate()),e.annotation($t.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let i=Bn.fromTransaction(e),o=e.annotation($t.time),s=e.annotation($t.userEvent);return i?t=t.addChanges(i,o,s,n,e):e.selection&&(t=t.addSelection(e.startState.selection,o,s,n.newGroupDelay)),(u=="full"||u=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new Nu(t.done.map(Bn.fromJSON),t.undone.map(Bn.fromJSON))}});function ER(t={}){return[lE,aE.of(t),X.domEventHandlers({beforeinput(e,n){let r=e.inputType=="historyUndo"?cE:e.inputType=="historyRedo"?um:null;return r?(e.preventDefault(),r(n)):!1}})]}function ff(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let u=n.field(lE,!1);if(!u)return!1;let i=u.pop(t,n,e);return i?(r(i),!0):!1}}const cE=ff(0,!1),um=ff(1,!1),$R=ff(0,!0),AR=ff(1,!0);class Bn{constructor(e,n,r,u,i){this.changes=e,this.effects=n,this.mapped=r,this.startSelection=u,this.selectionsAfter=i}setSelAfter(e){return new Bn(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,r;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(u=>u.toJSON())}}static fromJSON(e){return new Bn(e.changes&&kt.fromJSON(e.changes),[],e.mapped&&Wu.fromJSON(e.mapped),e.startSelection&&w.fromJSON(e.startSelection),e.selectionsAfter.map(w.fromJSON))}static fromTransaction(e,n){let r=ru;for(let u of e.startState.facet(xR)){let i=u(e);i.length&&(r=r.concat(i))}return!r.length&&e.changes.empty?null:new Bn(e.changes.invert(e.startState.doc),r,void 0,n||e.startState.selection,ru)}static selection(e){return new Bn(void 0,ru,void 0,void 0,e)}}function yc(t,e,n,r){let u=e+1>n+20?e-n-1:0,i=t.slice(u,e);return i.push(r),i}function DR(t,e){let n=[],r=!1;return t.iterChangedRanges((u,i)=>n.push(u,i)),e.iterChangedRanges((u,i,o,s)=>{for(let a=0;a<n.length;){let l=n[a++],c=n[a++];s>=l&&o<=c&&(r=!0)}}),r}function kR(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,r)=>n.empty!=e.ranges[r].empty).length===0}function fE(t,e){return t.length?e.length?t.concat(e):t:e}const ru=[],SR=200;function dE(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-SR));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),yc(t,t.length-1,1e9,n.setSelAfter(r)))}else return[Bn.selection([e])]}function _R(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function Ch(t,e){if(!t.length)return t;let n=t.length,r=ru;for(;n;){let u=wR(t[n-1],e,r);if(u.changes&&!u.changes.empty||u.effects.length){let i=t.slice(0,n);return i[n-1]=u,i}else e=u.mapped,n--,r=u.selectionsAfter}return r.length?[Bn.selection(r)]:ru}function wR(t,e,n){let r=fE(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):ru,n);if(!t.changes)return Bn.selection(r);let u=t.changes.map(e),i=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(i):i;return new Bn(u,Oe.mapEffects(t.effects,e),o,t.startSelection.map(i),r)}const BR=/^(input\.type|delete)($|\.)/;class Nu{constructor(e,n,r=0,u=void 0){this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=u}isolate(){return this.prevTime?new Nu(this.done,this.undone):this}addChanges(e,n,r,u,i){let o=this.done,s=o[o.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!r||BR.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<u.newGroupDelay&&u.joinToEvent(i,DR(s.changes,e.changes))||r=="input.type.compose")?o=yc(o,o.length-1,u.minDepth,new Bn(e.changes.compose(s.changes),fE(Oe.mapEffects(e.effects,s.changes),s.effects),s.mapped,s.startSelection,ru)):o=yc(o,o.length,u.minDepth,e),new Nu(o,ru,n,r)}addSelection(e,n,r,u){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:ru;return i.length>0&&n-this.prevTime<u&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&kR(i[i.length-1],e)?this:new Nu(dE(this.done,e),this.undone,n,r)}addMapping(e){return new Nu(Ch(this.done,e),Ch(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,r){let u=e==0?this.done:this.undone;if(u.length==0)return null;let i=u[u.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):n.selection);if(r&&i.selectionsAfter.length)return n.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:nm.of({side:e,rest:_R(u),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let s=u.length==1?ru:u.slice(0,u.length-1);return i.mapped&&(s=Ch(s,i.mapped)),n.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:nm.of({side:e,rest:s,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}Nu.empty=new Nu(ru,ru);const PR=[{key:"Mod-z",run:cE,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:um,preventDefault:!0},{linux:"Ctrl-Shift-z",run:um,preventDefault:!0},{key:"Mod-u",run:$R,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:AR,preventDefault:!0}];function Ho(t,e){return w.create(t.ranges.map(e),t.mainIndex)}function Eu(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function $u({state:t,dispatch:e},n){let r=Ho(t.selection,n);return r.eq(t.selection,!0)?!1:(e(Eu(t,r)),!0)}function df(t,e){return w.cursor(e?t.to:t.from)}function hE(t,e){return $u(t,n=>n.empty?t.moveByChar(n,e):df(n,e))}function nn(t){return t.textDirectionAt(t.state.selection.main.head)==Ke.LTR}const pE=t=>hE(t,!nn(t)),mE=t=>hE(t,nn(t));function gE(t,e){return $u(t,n=>n.empty?t.moveByGroup(n,e):df(n,e))}const FR=t=>gE(t,!nn(t)),QR=t=>gE(t,nn(t));function TR(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function hf(t,e,n){let r=rt(t).resolveInner(e.head),u=n?be.closedBy:be.openedBy;for(let a=e.head;;){let l=n?r.childAfter(a):r.childBefore(a);if(!l)break;TR(t,l,u)?r=l:a=n?l.to:l.from}let i=r.type.prop(u),o,s;return i&&(o=n?Lu(t,r.from,1):Lu(t,r.to,-1))&&o.matched?s=n?o.end.to:o.end.from:s=n?r.to:r.from,w.cursor(s,n?-1:1)}const IR=t=>$u(t,e=>hf(t.state,e,!nn(t))),zR=t=>$u(t,e=>hf(t.state,e,nn(t)));function OE(t,e){return $u(t,n=>{if(!n.empty)return df(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}const bE=t=>OE(t,!1),vE=t=>OE(t,!0);function CE(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,u;if(e){for(let i of t.state.facet(X.scrollMargins)){let o=i(t);o?.top&&(n=Math.max(o?.top,n)),o?.bottom&&(r=Math.max(o?.bottom,r))}u=t.scrollDOM.clientHeight-n-r}else u=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,u-5)}}function yE(t,e){let n=CE(t),{state:r}=t,u=Ho(r.selection,o=>o.empty?t.moveVertically(o,e,n.height):df(o,e));if(u.eq(r.selection))return!1;let i;if(n.selfScroll){let o=t.coordsAtPos(r.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),a=s.top+n.marginTop,l=s.bottom-n.marginBottom;o&&o.top>a&&o.bottom<l&&(i=X.scrollIntoView(u.main.head,{y:"start",yMargin:o.top-a}))}return t.dispatch(Eu(r,u),{effects:i}),!0}const jb=t=>yE(t,!1),rm=t=>yE(t,!0);function si(t,e,n){let r=t.lineBlockAt(e.head),u=t.moveToLineBoundary(e,n);if(u.head==e.head&&u.head!=(n?r.to:r.from)&&(u=t.moveToLineBoundary(e,n,!1)),!n&&u.head==r.from&&r.length){let i=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&e.head!=r.from+i&&(u=w.cursor(r.from+i))}return u}const ZR=t=>$u(t,e=>si(t,e,!0)),RR=t=>$u(t,e=>si(t,e,!1)),jR=t=>$u(t,e=>si(t,e,!nn(t))),MR=t=>$u(t,e=>si(t,e,nn(t))),LR=t=>$u(t,e=>t.moveToLineBoundary(e,!1,!1)),NR=t=>$u(t,e=>t.moveToLineBoundary(e,!0,!1));function UR(t,e,n){let r=!1,u=Ho(t.selection,i=>{let o=Lu(t,i.head,-1)||Lu(t,i.head,1)||i.head>0&&Lu(t,i.head-1,1)||i.head<t.doc.length&&Lu(t,i.head+1,-1);if(!o||!o.end)return i;r=!0;let s=o.start.from==i.head?o.end.to:o.end.from;return w.cursor(s)});return r?(e(Eu(t,u)),!0):!1}const XR=({state:t,dispatch:e})=>UR(t,e);function hu(t,e,n){let r=Ho(t.state.selection,u=>{u.undirectional&&u.head>=u.anchor!=e&&(u=w.range(u.head,u.anchor));let i=n(u);return w.range(u.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return r.eq(t.state.selection)?!1:(t.dispatch(Eu(t.state,r)),!0)}function xE(t,e){return hu(t,e,n=>t.moveByChar(n,e))}const EE=t=>xE(t,!nn(t)),$E=t=>xE(t,nn(t));function AE(t,e){return hu(t,e,n=>t.moveByGroup(n,e))}const VR=t=>AE(t,!nn(t)),qR=t=>AE(t,nn(t)),WR=t=>{let e=!nn(t);return hu(t,e,n=>hf(t.state,n,e))},YR=t=>{let e=nn(t);return hu(t,e,n=>hf(t.state,n,e))};function DE(t,e){return hu(t,e,n=>t.moveVertically(n,e))}const kE=t=>DE(t,!1),SE=t=>DE(t,!0);function _E(t,e){return hu(t,e,n=>t.moveVertically(n,e,CE(t).height))}const Mb=t=>_E(t,!1),Lb=t=>_E(t,!0),GR=t=>hu(t,!0,e=>si(t,e,!0)),HR=t=>hu(t,!1,e=>si(t,e,!1)),KR=t=>{let e=!nn(t);return hu(t,e,n=>si(t,n,e))},JR=t=>{let e=nn(t);return hu(t,e,n=>si(t,n,e))},ej=t=>hu(t,!1,e=>w.cursor(t.lineBlockAt(e.head).from)),tj=t=>hu(t,!0,e=>w.cursor(t.lineBlockAt(e.head).to)),Nb=({state:t,dispatch:e})=>(e(Eu(t,{anchor:0})),!0),Ub=({state:t,dispatch:e})=>(e(Eu(t,{anchor:t.doc.length})),!0),Xb=({state:t,dispatch:e})=>(e(Eu(t,{anchor:t.selection.main.anchor,head:0})),!0),Vb=({state:t,dispatch:e})=>(e(Eu(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),nj=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),uj=({state:t,dispatch:e})=>{let n=pf(t).map(({from:r,to:u})=>w.undirectionalRange(r,Math.min(u+1,t.doc.length)));return e(t.update({selection:w.create(n),userEvent:"select"})),!0},rj=({state:t,dispatch:e})=>{let n=Ho(t.selection,r=>{let u=rt(t),i=u.resolveStack(r.from,1);if(r.empty){let o=u.resolveStack(r.from,-1);o.node.from>=i.node.from&&o.node.to<=i.node.to&&(i=o)}for(let o=i;o;o=o.next){let{node:s}=o;if((s.from<r.from&&s.to>=r.to||s.to>r.to&&s.from<=r.from)&&o.next)return w.undirectionalRange(s.from,s.to)}return r});return n.eq(t.selection)?!1:(e(Eu(t,n)),!0)};function wE(t,e){let{state:n}=t,r=n.selection,u=n.selection.ranges.slice();for(let i of n.selection.ranges){let o=n.doc.lineAt(i.head);if(e?o.to<t.state.doc.length:o.from>0)for(let s=i;;){let a=t.moveVertically(s,e);if(a.head<o.from||a.head>o.to){u.some(l=>l.head==a.head)||u.push(a);break}else{if(a.head==s.head)break;s=a}}}return u.length==r.ranges.length?!1:(t.dispatch(Eu(n,w.create(u,u.length-1))),!0)}const ij=t=>wE(t,!1),oj=t=>wE(t,!0),sj=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=w.create([n.main]):n.main.empty||(r=w.create([w.cursor(n.main.head)])),r?(e(Eu(t,r)),!0):!1};function Ua(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,u=r.changeByRange(i=>{let{from:o,to:s}=i;if(o==s){let a=e(i);a<o?(n="delete.backward",a=s0(t,a,!1)):a>o&&(n="delete.forward",a=s0(t,a,!0)),o=Math.min(o,a),s=Math.max(s,a)}else o=s0(t,o,!1),s=s0(t,s,!0);return o==s?{range:i}:{changes:{from:o,to:s},range:w.cursor(o,o<i.head?-1:1)}});return u.changes.empty?!1:(t.dispatch(r.update(u,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?X.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function s0(t,e,n){if(t instanceof X)for(let r of t.state.facet(X.atomicRanges).map(u=>u(t)))r.between(e,e,(u,i)=>{u<e&&i>e&&(e=n?i:u)});return e}const BE=(t,e,n)=>Ua(t,r=>{let u=r.from,{state:i}=t,o=i.doc.lineAt(u),s,a;if(n&&!e&&u>o.from&&u<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,u-o.from))){if(s[s.length-1]==" ")return u-1;let l=yu(s,i.tabSize),c=l%ac(i)||ac(i);for(let f=0;f<c&&s[s.length-1-f]==" ";f++)u--;a=u}else a=It(o.text,u-o.from,e,e)+o.from,a==u&&o.number!=(e?i.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(a-o.from,u-o.from))&&(a=It(o.text,a-o.from,!1,!1)+o.from);return a}),im=t=>BE(t,!1,!0),PE=t=>BE(t,!0,!1),FE=(t,e)=>Ua(t,n=>{let r=n.head,{state:u}=t,i=u.doc.lineAt(r),o=u.charCategorizer(r);for(let s=null;;){if(r==(e?i.to:i.from)){r==n.head&&i.number!=(e?u.doc.lines:1)&&(r+=e?1:-1);break}let a=It(i.text,r-i.from,e)+i.from,l=i.text.slice(Math.min(r,a)-i.from,Math.max(r,a)-i.from),c=o(l);if(s!=null&&c!=s)break;(l!=" "||r!=n.head)&&(s=c),r=a}return r}),QE=t=>FE(t,!1),aj=t=>FE(t,!0),lj=t=>Ua(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),cj=t=>Ua(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),fj=t=>Ua(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),dj=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:Ze.of(["",""])},range:w.cursor(r.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},hj=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>{if(!r.empty||r.from==0||r.from==t.doc.length)return{range:r};let u=r.from,i=t.doc.lineAt(u),o=u==i.from?u-1:It(i.text,u-i.from,!1)+i.from,s=u==i.to?u+1:It(i.text,u-i.from,!0)+i.from;return{changes:{from:o,to:s,insert:t.doc.slice(u,s).append(t.doc.slice(o,u))},range:w.cursor(s)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function pf(t){let e=[],n=-1;for(let r of t.selection.ranges){let u=t.doc.lineAt(r.from),i=t.doc.lineAt(r.to);if(!r.empty&&r.to==i.from&&(i=t.doc.lineAt(r.to-1)),n>=u.number){let o=e[e.length-1];o.to=i.to,o.ranges.push(r)}else e.push({from:u.from,to:i.to,ranges:[r]});n=i.number+1}return e}function TE(t,e,n){if(t.readOnly)return!1;let r=[],u=[];for(let i of pf(t)){if(n?i.to==t.doc.length:i.from==0)continue;let o=t.doc.lineAt(n?i.to+1:i.from-1),s=o.length+1;if(n){r.push({from:i.to,to:o.to},{from:i.from,insert:o.text+t.lineBreak});for(let a of i.ranges)u.push(w.range(Math.min(t.doc.length,a.anchor+s),Math.min(t.doc.length,a.head+s)))}else{r.push({from:o.from,to:i.from},{from:i.to,insert:t.lineBreak+o.text});for(let a of i.ranges)u.push(w.range(a.anchor-s,a.head-s))}}return r.length?(e(t.update({changes:r,scrollIntoView:!0,selection:w.create(u,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const pj=({state:t,dispatch:e})=>TE(t,e,!1),mj=({state:t,dispatch:e})=>TE(t,e,!0);function IE(t,e,n){if(t.readOnly)return!1;let r=[];for(let i of pf(t))n?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});let u=t.changes(r);return e(t.update({changes:u,selection:t.selection.map(u,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const gj=({state:t,dispatch:e})=>IE(t,e,!1),Oj=({state:t,dispatch:e})=>IE(t,e,!0),bj=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(pf(e).map(({from:u,to:i})=>(u>0?u--:i<e.doc.length&&i++,{from:u,to:i}))),r=Ho(e.selection,u=>{let i;if(t.lineWrapping){let o=t.lineBlockAt(u.head),s=t.coordsAtPos(u.head,u.assoc||1);s&&(i=o.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(u,!0,i)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function vj(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=rt(t).resolveInner(e),r=n.childBefore(e),u=n.childAfter(e),i;return r&&u&&r.to<=e&&u.from>=e&&(i=r.type.prop(be.closedBy))&&i.indexOf(u.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(u.from).from&&!/\S/.test(t.sliceDoc(r.to,u.from))?{from:r.to,to:u.from}:null}const qb=zE(!1),Cj=zE(!0);function zE(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(u=>{let{from:i,to:o}=u,s=e.doc.lineAt(i),a=!t&&i==o&&vj(e,i);t&&(i=o=(o<=s.to?s:e.doc.lineAt(o)).to);let l=new of(e,{simulateBreak:i,simulateDoubleBreak:!!a}),c=d1(l,i);for(c==null&&(c=yu(/^\s*/.exec(e.doc.lineAt(i).text)[0],e.tabSize));o<s.to&&/\s/.test(s.text[o-s.from]);)o++;a?{from:i,to:o}=a:i>s.from&&i<s.from+100&&!/\S/.test(s.text.slice(0,i))&&(i=s.from);let f=["",aa(e,c)];return a&&f.push(aa(e,l.lineIndent(s.from,-1))),{changes:{from:i,to:o,insert:Ze.of(f)},range:w.cursor(i+1+f[1].length)}});return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function z1(t,e){let n=-1;return t.changeByRange(r=>{let u=[];for(let o=r.from;o<=r.to;){let s=t.doc.lineAt(o);s.number>n&&(r.empty||r.to>s.from)&&(e(s,u,r),n=s.number),o=s.to+1}let i=t.changes(u);return{changes:u,range:w.range(i.mapPos(r.anchor,1),i.mapPos(r.head,1))}})}const yj=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new of(t,{overrideIndentation:i=>{let o=n[i];return o??-1}}),u=z1(t,(i,o,s)=>{let a=d1(r,i.from);if(a==null)return;/\S/.test(i.text)||(a=0);let l=/^\s*/.exec(i.text)[0],c=aa(t,a);(l!=c||s.from<i.from+l.length)&&(n[i.from]=a,o.push({from:i.from,to:i.from+l.length,insert:c}))});return u.changes.empty||e(t.update(u,{userEvent:"indent"})),!0},xj=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(z1(t,(n,r)=>{r.push({from:n.from,insert:t.facet(Ra)})}),{userEvent:"input.indent"})),!0),Ej=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(z1(t,(n,r)=>{let u=/^\s*/.exec(n.text)[0];if(!u)return;let i=yu(u,t.tabSize),o=0,s=aa(t,Math.max(0,i-ac(t)));for(;o<u.length&&o<s.length&&u.charCodeAt(o)==s.charCodeAt(o);)o++;r.push({from:n.from+o,to:n.from+u.length,insert:s.slice(o)})}),{userEvent:"delete.dedent"})),!0),$j=t=>(t.setTabFocusMode(),!0),Aj=[{key:"Ctrl-b",run:pE,shift:EE,preventDefault:!0},{key:"Ctrl-f",run:mE,shift:$E},{key:"Ctrl-p",run:bE,shift:kE},{key:"Ctrl-n",run:vE,shift:SE},{key:"Ctrl-a",run:LR,shift:ej},{key:"Ctrl-e",run:NR,shift:tj},{key:"Ctrl-d",run:PE},{key:"Ctrl-h",run:im},{key:"Ctrl-k",run:lj},{key:"Ctrl-Alt-h",run:QE},{key:"Ctrl-o",run:dj},{key:"Ctrl-t",run:hj},{key:"Ctrl-v",run:rm}],Dj=[{key:"ArrowLeft",run:pE,shift:EE,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:FR,shift:VR,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:jR,shift:KR,preventDefault:!0},{key:"ArrowRight",run:mE,shift:$E,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:QR,shift:qR,preventDefault:!0},{mac:"Cmd-ArrowRight",run:MR,shift:JR,preventDefault:!0},{key:"ArrowUp",run:bE,shift:kE,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Nb,shift:Xb},{mac:"Ctrl-ArrowUp",run:jb,shift:Mb},{key:"ArrowDown",run:vE,shift:SE,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Ub,shift:Vb},{mac:"Ctrl-ArrowDown",run:rm,shift:Lb},{key:"PageUp",run:jb,shift:Mb},{key:"PageDown",run:rm,shift:Lb},{key:"Home",run:RR,shift:HR,preventDefault:!0},{key:"Mod-Home",run:Nb,shift:Xb},{key:"End",run:ZR,shift:GR,preventDefault:!0},{key:"Mod-End",run:Ub,shift:Vb},{key:"Enter",run:qb,shift:qb},{key:"Mod-a",run:nj},{key:"Backspace",run:im,shift:im,preventDefault:!0},{key:"Delete",run:PE,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:QE,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:aj,preventDefault:!0},{mac:"Mod-Backspace",run:cj,preventDefault:!0},{mac:"Mod-Delete",run:fj,preventDefault:!0}].concat(Aj.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),kj=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:IR,shift:WR},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:zR,shift:YR},{key:"Alt-ArrowUp",run:pj},{key:"Shift-Alt-ArrowUp",run:gj},{key:"Alt-ArrowDown",run:mj},{key:"Shift-Alt-ArrowDown",run:Oj},{key:"Mod-Alt-ArrowUp",run:ij},{key:"Mod-Alt-ArrowDown",run:oj},{key:"Escape",run:sj},{key:"Mod-Enter",run:Cj},{key:"Alt-l",mac:"Ctrl-l",run:uj},{key:"Mod-i",run:rj,preventDefault:!0},{key:"Mod-[",run:Ej},{key:"Mod-]",run:xj},{key:"Mod-Alt-\\",run:yj},{key:"Shift-Mod-k",run:bj},{key:"Shift-Mod-\\",run:XR},{key:"Mod-/",run:pR},{key:"Alt-A",mac:"Ctrl-A",run:gR},{key:"Ctrl-m",mac:"Shift-Alt-m",run:$j}].concat(Dj),Wb=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class To{constructor(e,n,r=0,u=e.length,i,o){this.test=o,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,u),this.bufferStart=r,this.normalize=i?s=>i(Wb(s)):Wb,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return kn(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=Nm(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=Zu(e);let u=this.normalize(n);if(u.length)for(let i=0,o=r,s=!0;;i++){let a=u.charCodeAt(i),l=this.match(a,o,s,this.bufferPos+this.bufferStart,i==u.length-1);if(l)return this.value=l,this;if(i==u.length-1)break;s&&i<n.length&&n.charCodeAt(i)==a?o++:s=!1}}}match(e,n,r,u,i){let o=null;for(let s=0;s<this.matches.length;){let a=this.matches[s],l=!1;this.query.charCodeAt(a.index)==e&&(a.index==this.query.length-1?o={from:a.from,to:u,precise:i&&a.precise}:(a.index++,l=!0)),l?s++:this.matches.splice(s,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?o={from:n,to:u,precise:r&&i}:this.matches.push({from:n,index:1,precise:r})),o&&this.test&&!this.test(o.from,o.to,this.buffer,this.bufferStart)&&(o=null),o}}typeof Symbol<"u"&&(To.prototype[Symbol.iterator]=function(){return this});const ZE={from:-1,to:-1,match:/.*/.exec(""),precise:!0},Z1="gm"+(/x/.unicode==null?"":"u");class RE{constructor(e,n,r,u=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=ZE,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new jE(e,n,r,u,i);this.re=new RegExp(n,Z1+(r?.ignoreCase?"i":"")),this.test=r?.test,this.iter=e.iter();let o=e.lineAt(u);this.curLineStart=o.from,this.matchPos=xc(e,u),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,u=r+n[0].length;if(this.matchPos=xc(this.text,u+(r==u?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<u||r>this.value.to)&&(!this.test||this.test(r,u,n)))return this.value={from:r,to:u,precise:!0,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const yh=new WeakMap;class bo{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,r){let u=yh.get(e);if(!u||u.from>=r||u.to<=n){let s=new bo(n,e.sliceString(n,r));return yh.set(e,s),s}if(u.from==n&&u.to==r)return u;let{text:i,from:o}=u;return o>n&&(i=e.sliceString(n,o)+i,o=n),u.to<r&&(i+=e.sliceString(u.to,r)),yh.set(e,new bo(o,i)),new bo(n,i.slice(n-o,r-o))}}class jE{constructor(e,n,r,u,i){this.text=e,this.to=i,this.done=!1,this.value=ZE,this.matchPos=xc(e,u),this.re=new RegExp(n,Z1+(r?.ignoreCase?"i":"")),this.test=r?.test,this.flat=bo.get(e,u,this.chunkEnd(u+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,u=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,u,n)))return this.value={from:r,to:u,precise:!0,match:n},this.matchPos=xc(this.text,u+(r==u?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=bo.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(RE.prototype[Symbol.iterator]=jE.prototype[Symbol.iterator]=function(){return this});function Sj(t){try{return new RegExp(t,Z1),!0}catch{return!1}}function xc(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e<n.to&&(r=n.text.charCodeAt(e-n.from))>=56320&&r<57344;)e++;return e}const _j=t=>{let e=QF(t,"cm-goto-line");if(e){let o=e.dom.querySelector("input[type=text]");return o&&o.select(),!0}let{state:n}=t,r=String(n.doc.lineAt(t.state.selection.main.head).number),{close:u,result:i}=FF(t,{class:"cm-goto-line",label:n.phrase("Go to line"),input:{type:"text",name:"line",value:r},focus:!0,submitLabel:n.phrase("go")});return i.then(o=>{let s=o&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.elements.line.value);if(!s){t.dispatch({effects:u});return}let a=n.doc.lineAt(n.selection.main.head),[,l,c,f,d]=s,h=f?+f.slice(1):0,p=c?+c:a.number;if(c&&d){let C=p/100;l&&(C=C*(l=="-"?-1:1)+a.number/n.doc.lines),p=Math.round(n.doc.lines*C)}else c&&l&&(p=p*(l=="-"?-1:1)+a.number);let m=n.doc.line(Math.max(1,Math.min(n.doc.lines,p))),g=w.cursor(m.from+Math.max(0,Math.min(h,m.length)));t.dispatch({effects:[u,X.scrollIntoView(g.from,{y:"center"})],selection:g})}),!0},wj={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Bj=G.define({combine(t){return Ju(t,wj,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function Pj(t){return[zj,Ij]}const Fj=ce.mark({class:"cm-selectionMatch"}),Qj=ce.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Yb(t,e,n,r){return(n==0||t(e.sliceDoc(n-1,n))!=dt.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=dt.Word)}function Tj(t,e,n,r){return t(e.sliceDoc(n,n+1))==dt.Word&&t(e.sliceDoc(r-1,r))==dt.Word}const Ij=xt.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Bj),{state:n}=t,r=n.selection;if(r.ranges.length>1)return ce.none;let u=r.main,i,o=null;if(u.empty){if(!e.highlightWordAroundCursor)return ce.none;let a=n.wordAt(u.head);if(!a)return ce.none;o=n.charCategorizer(u.head),i=n.sliceDoc(a.from,a.to)}else{let a=u.to-u.from;if(a<e.minSelectionLength||a>200)return ce.none;if(e.wholeWords){if(i=n.sliceDoc(u.from,u.to),o=n.charCategorizer(u.head),!(Yb(o,n,u.from,u.to)&&Tj(o,n,u.from,u.to)))return ce.none}else if(i=n.sliceDoc(u.from,u.to),!i)return ce.none}let s=[];for(let a of t.visibleRanges){let l=new To(n.doc,i,a.from,a.to);for(;!l.next().done;){let{from:c,to:f}=l.value;if((!o||Yb(o,n,c,f))&&(u.empty&&c<=u.from&&f>=u.to?s.push(Qj.range(c,f)):(c>=u.to||f<=u.from)&&s.push(Fj.range(c,f)),s.length>e.maxMatches))return ce.none}}return ce.set(s)}},{decorations:t=>t.decorations}),zj=X.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Zj=({state:t,dispatch:e})=>{let{selection:n}=t,r=w.create(n.ranges.map(u=>t.wordAt(u.head)||w.cursor(u.head)),n.mainIndex);return r.eq(n)?!1:(e(t.update({selection:r})),!0)};function Rj(t,e){let{main:n,ranges:r}=t.selection,u=t.wordAt(n.head),i=u&&u.from==n.from&&u.to==n.to;for(let o=!1,s=new To(t.doc,e,r[r.length-1].to);;)if(s.next(),s.done){if(o)return null;s=new To(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),o=!0}else{if(o&&r.some(a=>a.from==s.value.from))continue;if(i){let a=t.wordAt(s.value.from);if(!a||a.from!=s.value.from||a.to!=s.value.to)continue}return s.value}}const jj=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(i=>i.from===i.to))return Zj({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(i=>t.sliceDoc(i.from,i.to)!=r))return!1;let u=Rj(t,r);return u?(e(t.update({selection:t.selection.addRange(w.range(u.from,u.to),!1),effects:X.scrollIntoView(u.to)})),!0):!1},Ko=G.define({combine(t){return Ju(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new eM(e),scrollToMatch:e=>X.scrollIntoView(e)})}});class ME{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Sj(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?`
|
|
29
|
+
`:r=="r"?"\r":r=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new Vj(this):new Nj(this)}getCursor(e,n=0,r){let u=e.doc?e:ze.create({doc:e});return r==null&&(r=u.doc.length),this.regexp?eo(this,u,n,r):Ji(this,u,n,r)}}class LE{constructor(e){this.spec=e}}function Mj(t,e,n){return(r,u,i,o)=>{if(n&&!n(r,u,i,o))return!1;let s=r>=o&&u<=o+i.length?i.slice(r-o,u-o):e.doc.sliceString(r,u);return t(s,e,r,u)}}function Ji(t,e,n,r){let u;return t.wholeWord&&(u=Lj(e.doc,e.charCategorizer(e.selection.main.head))),t.test&&(u=Mj(t.test,e,u)),new To(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),u)}function Lj(t,e){return(n,r,u,i)=>((i>n||i+u.length<r)&&(i=Math.max(0,n-2),u=t.sliceString(i,Math.min(t.length,r+2))),(e(Ec(u,n-i))!=dt.Word||e($c(u,n-i))!=dt.Word)&&(e($c(u,r-i))!=dt.Word||e(Ec(u,r-i))!=dt.Word))}class Nj extends LE{constructor(e){super(e)}nextMatch(e,n,r){let u=Ji(this.spec,e,r,e.doc.length).nextOverlapping();if(u.done){let i=Math.min(e.doc.length,n+this.spec.unquoted.length);u=Ji(this.spec,e,0,i).nextOverlapping()}return u.done||u.value.from==n&&u.value.to==r?null:u.value}prevMatchInRange(e,n,r){for(let u=r;;){let i=Math.max(n,u-1e4-this.spec.unquoted.length),o=Ji(this.spec,e,i,u),s=null;for(;!o.nextOverlapping().done;)s=o.value;if(s)return s;if(i==n)return null;u-=1e4}}prevMatch(e,n,r){let u=this.prevMatchInRange(e,0,n);return u||(u=this.prevMatchInRange(e,Math.max(0,r-this.spec.unquoted.length),e.doc.length)),u&&(u.from!=n||u.to!=r)?u:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let r=Ji(this.spec,e,0,e.doc.length),u=[];for(;!r.next().done;){if(u.length>=n)return null;u.push(r.value)}return u}highlight(e,n,r,u){let i=Ji(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)u(i.value.from,i.value.to)}}function Uj(t,e,n){return(r,u,i)=>(!n||n(r,u,i))&&t(i[0],e,r,u)}function eo(t,e,n,r){let u;return t.wholeWord&&(u=Xj(e.charCategorizer(e.selection.main.head))),t.test&&(u=Uj(t.test,e,u)),new RE(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:u},n,r)}function Ec(t,e){return t.slice(It(t,e,!1),e)}function $c(t,e){return t.slice(e,It(t,e))}function Xj(t){return(e,n,r)=>!r[0].length||(t(Ec(r.input,r.index))!=dt.Word||t($c(r.input,r.index))!=dt.Word)&&(t($c(r.input,r.index+r[0].length))!=dt.Word||t(Ec(r.input,r.index+r[0].length))!=dt.Word)}class Vj extends LE{nextMatch(e,n,r){let u=eo(this.spec,e,r,e.doc.length).next();return u.done&&(u=eo(this.spec,e,0,n).next()),u.done?null:u.value}prevMatchInRange(e,n,r){for(let u=1;;u++){let i=Math.max(n,r-u*1e4),o=eo(this.spec,e,i,r),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==n||s.from>i+10))return s;if(i==n)return null}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(n,r)=>{if(r=="&")return e.match[0];if(r=="$")return"$";for(let u=r.length;u>0;u--){let i=+r.slice(0,u);if(i>0&&i<e.match.length)return e.match[i]+r.slice(u)}return n})}matchAll(e,n){let r=eo(this.spec,e,0,e.doc.length),u=[];for(;!r.next().done;){if(u.length>=n)return null;u.push(r.value)}return u}highlight(e,n,r,u){let i=eo(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!i.next().done;)u(i.value.from,i.value.to)}}const ga=Oe.define(),R1=Oe.define(),Ur=jt.define({create(t){return new xh(om(t).create(),null)},update(t,e){for(let n of e.effects)n.is(ga)?t=new xh(n.value.create(),t.panel):n.is(R1)&&(t=new xh(t.query,n.value?j1:null));return t},provide:t=>ua.from(t,e=>e.panel)});class xh{constructor(e,n){this.query=e,this.panel=n}}const qj=ce.mark({class:"cm-searchMatch"}),Wj=ce.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Yj=xt.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Ur))}update(t){let e=t.state.field(Ur);(e!=t.startState.field(Ur)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return ce.none;let{view:n}=this,r=new Yu;for(let u=0,i=n.visibleRanges,o=i.length;u<o;u++){let{from:s,to:a}=i[u];for(;u<o-1&&a>i[u+1].from-500;)a=i[++u].to;t.highlight(n.state,s,a,(l,c)=>{let f=n.state.selection.ranges.some(d=>d.from==l&&d.to==c);r.add(l,c,f?Wj:qj)})}return r.finish()}},{decorations:t=>t.decorations});function Xa(t){return e=>{let n=e.state.field(Ur,!1);return n&&n.query.spec.valid?t(e,n):XE(e)}}const Ac=Xa((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let u=w.single(r.from,r.to),i=t.state.facet(Ko);return t.dispatch({selection:u,effects:[M1(t,r),i.scrollToMatch(u.main,t)],userEvent:"select.search"}),UE(t),!0}),Dc=Xa((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,u=e.prevMatch(n,r,r);if(!u)return!1;let i=w.single(u.from,u.to),o=t.state.facet(Ko);return t.dispatch({selection:i,effects:[M1(t,u),o.scrollToMatch(i.main,t)],userEvent:"select.search"}),UE(t),!0}),Gj=Xa((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:w.create(n.map(r=>w.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),Hj=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:u}=n.main,i=[],o=0;for(let s=new To(t.doc,t.sliceDoc(r,u));!s.next().done;){if(i.length>1e3)return!1;s.value.from==r&&(o=i.length),i.push(w.range(s.value.from,s.value.to))}return e(t.update({selection:w.create(i,o),userEvent:"select.search.matches"})),!0},Gb=Xa((t,{query:e})=>{let{state:n}=t,{from:r,to:u}=n.selection.main;if(n.readOnly)return!1;let i=e.nextMatch(n,r,r);if(!i)return!1;let o=i,s=[],a,l,c=[];o.precise?o.from==r&&o.to==u&&(l=n.toText(e.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),o=e.nextMatch(n,o.from,o.to),c.push(X.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))):o=e.nextMatch(n,o.from,o.to);let f=t.state.changes(s);return o&&(a=w.single(o.from,o.to).map(f),c.push(M1(t,o)),c.push(n.facet(Ko).scrollToMatch(a.main,t))),t.dispatch({changes:f,selection:a,effects:c,userEvent:"input.replace"}),!0}),Kj=Xa((t,{query:e})=>{if(t.state.readOnly)return!1;let n=[];for(let u of e.matchAll(t.state,1e9)){let{from:i,to:o,precise:s}=u;s&&n.push({from:i,to:o,insert:e.getReplacement(u)})}if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:X.announce.of(r),userEvent:"input.replace.all"}),!0});function j1(t){return t.state.facet(Ko).createPanel(t)}function om(t,e){var n,r,u,i,o;let s=t.selection.main,a=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(e&&!a)return e;let l=t.facet(Ko);return new ME({search:((n=e?.literal)!==null&&n!==void 0?n:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(r=e?.caseSensitive)!==null&&r!==void 0?r:l.caseSensitive,literal:(u=e?.literal)!==null&&u!==void 0?u:l.literal,regexp:(i=e?.regexp)!==null&&i!==void 0?i:l.regexp,wholeWord:(o=e?.wholeWord)!==null&&o!==void 0?o:l.wholeWord})}function NE(t){let e=rf(t,j1);return e&&e.dom.querySelector("[main-field]")}function UE(t){let e=NE(t);e&&e==t.root.activeElement&&e.select()}const XE=t=>{let e=t.state.field(Ur,!1);if(e&&e.panel){let n=NE(t);if(n&&n!=t.root.activeElement){let r=om(t.state,e.query.spec);r.valid&&t.dispatch({effects:ga.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[R1.of(!0),e?ga.of(om(t.state,e.query.spec)):Oe.appendConfig.of(nM)]});return!0},VE=t=>{let e=t.state.field(Ur,!1);if(!e||!e.panel)return!1;let n=rf(t,j1);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:R1.of(!1)}),!0},Jj=[{key:"Mod-f",run:XE,scope:"editor search-panel"},{key:"F3",run:Ac,shift:Dc,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Ac,shift:Dc,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:VE,scope:"editor search-panel"},{key:"Mod-Shift-l",run:Hj},{key:"Mod-Alt-g",run:_j},{key:"Mod-d",run:jj,preventDefault:!0}];class eM{constructor(e){this.view=e;let n=this.query=e.state.field(Ur).query.spec;this.commit=this.commit.bind(this),this.searchField=He("input",{value:n.search,placeholder:Tn(e,"Find"),"aria-label":Tn(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=He("input",{value:n.replace,placeholder:Tn(e,"Replace"),"aria-label":Tn(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=He("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=He("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=He("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(u,i,o){return He("button",{class:"cm-button",name:u,onclick:i,type:"button"},o)}this.dom=He("div",{onkeydown:u=>this.keydown(u),class:"cm-search"},[this.searchField,r("next",()=>Ac(e),[Tn(e,"next")]),r("prev",()=>Dc(e),[Tn(e,"previous")]),r("select",()=>Gj(e),[Tn(e,"all")]),He("label",null,[this.caseField,Tn(e,"match case")]),He("label",null,[this.reField,Tn(e,"regexp")]),He("label",null,[this.wordField,Tn(e,"by word")]),...e.state.readOnly?[]:[He("br"),this.replaceField,r("replace",()=>Gb(e),[Tn(e,"replace")]),r("replaceAll",()=>Kj(e),[Tn(e,"replace all")])],He("button",{name:"close",onclick:()=>VE(e),"aria-label":Tn(e,"close"),type:"button"},["×"])])}commit(){let e=new ME({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:ga.of(e)}))}keydown(e){NP(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Dc:Ac)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Gb(this.view))}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(ga)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Ko).top}}function Tn(t,e){return t.state.phrase(e)}const a0=30,l0=/[\s\.,:;?!]/;function M1(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),u=t.state.doc.lineAt(n).to,i=Math.max(r.from,e-a0),o=Math.min(u,n+a0),s=t.state.sliceDoc(i,o);if(i!=r.from){for(let a=0;a<a0;a++)if(!l0.test(s[a+1])&&l0.test(s[a])){s=s.slice(a);break}}if(o!=u){for(let a=s.length-1;a>s.length-a0;a--)if(!l0.test(s[a-1])&&l0.test(s[a])){s=s.slice(0,a);break}}return X.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${r.number}.`)}const tM=X.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),nM=[Ur,Ku.low(Yj),tM];class Hb{constructor(e,n,r){this.from=e,this.to=n,this.diagnostic=r}}class xi{constructor(e,n,r){this.diagnostics=e,this.panel=n,this.selected=r}static init(e,n,r){let u=r.facet(Oa).markerFilter;u&&(e=u(e,r));let i=e.slice().sort((h,p)=>h.from-p.from||h.to-p.to),o=new Yu,s=[],a=0,l=r.doc.iter(),c=0,f=r.doc.length;for(let h=0;;){let p=h==i.length?null:i[h];if(!p&&!s.length)break;let m,g;if(s.length)m=a,g=s.reduce((O,y)=>Math.min(O,y.to),p&&p.from>m?p.from:1e8);else{if(m=p.from,m>f)break;g=p.to,s.push(p),h++}for(;h<i.length;){let O=i[h];if(O.from==m&&(O.to>O.from||O.to==m))s.push(O),h++,g=Math.min(O.to,g);else{g=Math.min(O.from,g);break}}g=Math.min(g,f);let C=!1;if(s.some(O=>O.from==m&&(O.to==g||g==f))&&(C=m==g,!C&&g-m<10)){let O=m-(c+l.value.length);O>0&&(l.next(O),c=m);for(let y=m;;){if(y>=g){C=!0;break}if(!l.lineBreak&&c+l.value.length>y)break;y=c+l.value.length,c+=l.value.length,l.next()}}let b=mM(s);if(C)o.add(m,m,ce.widget({widget:new fM(b),diagnostics:s.slice()}));else{let O=s.reduce((y,$)=>$.markClass?y+" "+$.markClass:y,"");o.add(m,g,ce.mark({class:"cm-lintRange cm-lintRange-"+b+O,diagnostics:s.slice(),inclusiveEnd:s.some(y=>y.to>g)}))}if(a=g,a==f)break;for(let O=0;O<s.length;O++)s[O].to<=a&&s.splice(O--,1)}let d=o.finish();return new xi(d,n,Hr(d))}}function Hr(t,e=null,n=0){let r=null;return t.between(n,1e9,(u,i,{spec:o})=>{if(!(e&&o.diagnostics.indexOf(e)<0))if(!r)r=new Hb(u,i,e||o.diagnostics[0]);else{if(o.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new Hb(r.from,i,r.diagnostic)}}),r}function uM(t,e){let n=e.pos,r=e.end||n,u=t.state.facet(Oa).hideOn(t,n,r);if(u!=null)return u;let i=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(o=>o.is(qE))||t.changes.touchesRange(i.from,Math.max(i.to,r)))}function rM(t,e){return t.field(Nn,!1)?e:e.concat(Oe.appendConfig.of(gM))}const qE=Oe.define(),L1=Oe.define(),WE=Oe.define(),Nn=jt.define({create(){return new xi(ce.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,u=t.panel;if(t.selected){let i=e.changes.mapPos(t.selected.from,1);r=Hr(n,t.selected.diagnostic,i)||Hr(n,null,i)}!n.size&&u&&e.state.facet(Oa).autoPanel&&(u=null),t=new xi(n,u,r)}for(let n of e.effects)if(n.is(qE)){let r=e.state.facet(Oa).autoPanel?n.value.length?ba.open:null:t.panel;t=xi.init(n.value,r,e.state)}else n.is(L1)?t=new xi(t.diagnostics,n.value?ba.open:null,t.selected):n.is(WE)&&(t=new xi(t.diagnostics,t.panel,n.value));return t},provide:t=>[ua.from(t,e=>e.panel),X.decorations.from(t,e=>e.diagnostics)]}),iM=ce.mark({class:"cm-lintRange cm-lintRange-active"});function oM(t,e,n){let{diagnostics:r}=t.state.field(Nn),u,i=-1,o=-1;r.between(e-(n<0?1:0),e+(n>0?1:0),(a,l,{spec:c})=>{if(e>=a&&e<=l&&(a==l||(e>a||n>0)&&(e<l||n<0)))return u=c.diagnostics,i=a,o=l,!1});let s=t.state.facet(Oa).tooltipFilter;return u&&s&&(u=s(u,t.state)),u?{pos:i,end:o,above:!0,create(){return{dom:sM(t,u)}}}:null}function sM(t,e){return He("ul",{class:"cm-tooltip-lint"},e.map(n=>GE(t,n,!1)))}const aM=t=>{let e=t.state.field(Nn,!1);(!e||!e.panel)&&t.dispatch({effects:rM(t.state,[L1.of(!0)])});let n=rf(t,ba.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},Kb=t=>{let e=t.state.field(Nn,!1);return!e||!e.panel?!1:(t.dispatch({effects:L1.of(!1)}),!0)},lM=t=>{let e=t.state.field(Nn,!1);if(!e)return!1;let n=t.state.selection.main,r=Hr(e.diagnostics,null,n.to+1);return!r&&(r=Hr(e.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to)?!1:(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),BF(t,r.from,1,{tooltip:HE,until:u=>u.docChanged||u.newSelection.main.head<r.from||u.newSelection.main.head>r.to}),!0)},cM=[{key:"Mod-Shift-m",run:aM,preventDefault:!0},{key:"F8",run:lM}],Oa=G.define({combine(t){return{sources:t.map(e=>e.source).filter(e=>e!=null),...Ju(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:Jb,tooltipFilter:Jb,needsRefresh:(e,n)=>e?n?r=>e(r)||n(r):e:n,hideOn:(e,n)=>e?n?(r,u,i)=>e(r,u,i)||n(r,u,i):e:n,autoPanel:(e,n)=>e||n})}}});function Jb(t,e){return t?e?(n,r)=>e(t(n,r),r):t:e}function YE(t){let e=[];if(t)e:for(let{name:n}of t){for(let r=0;r<n.length;r++){let u=n[r];if(/[a-zA-Z]/.test(u)&&!e.some(i=>i.toLowerCase()==u.toLowerCase())){e.push(u);continue e}}e.push("")}return e}function GE(t,e,n){var r;let u=n?YE(e.actions):[];return He("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},He("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(r=e.actions)===null||r===void 0?void 0:r.map((i,o)=>{let s=0,a=h=>{if(h.preventDefault(),s>Date.now()-100)return;let p=Hr(t.state.field(Nn).diagnostics,e);p&&i.apply(t,p.from,p.to),s=Date.now()},{name:l}=i,c=u[o]?l.indexOf(u[o]):-1,f=c<0?l:[l.slice(0,c),He("u",l.slice(c,c+1)),l.slice(c+1)],d=i.markClass?" "+i.markClass:"";return He("button",{type:"button",class:"cm-diagnosticAction"+d,onclick:a,onmousedown:a,"aria-label":` Action: ${l}${c<0?"":` (access key "${u[o]})"`}.`},f)}),e.source&&He("div",{class:"cm-diagnosticSource"},e.source))}class fM extends er{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return He("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class ev{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=GE(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class ba{constructor(e){this.view=e,this.items=[];let n=u=>{if(!(u.ctrlKey||u.altKey||u.metaKey)){if(u.keyCode==27)Kb(this.view),this.view.focus();else if(u.keyCode==38||u.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(u.keyCode==40||u.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(u.keyCode==36)this.moveSelection(0);else if(u.keyCode==35)this.moveSelection(this.items.length-1);else if(u.keyCode==13)this.view.focus();else if(u.keyCode>=65&&u.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],o=YE(i.actions);for(let s=0;s<o.length;s++)if(o[s].toUpperCase().charCodeAt(0)==u.keyCode){let a=Hr(this.view.state.field(Nn).diagnostics,i);a&&i.actions[s].apply(e,a.from,a.to)}}else return;u.preventDefault()}},r=u=>{for(let i=0;i<this.items.length;i++)this.items[i].dom.contains(u.target)&&this.moveSelection(i)};this.list=He("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=He("div",{class:"cm-panel-lint"},this.list,He("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Kb(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Nn).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(Nn),r=0,u=!1,i=null,o=new Set;for(e.between(0,this.view.state.doc.length,(s,a,{spec:l})=>{for(let c of l.diagnostics){if(o.has(c))continue;o.add(c);let f=-1,d;for(let h=r;h<this.items.length;h++)if(this.items[h].diagnostic==c){f=h;break}f<0?(d=new ev(this.view,c),this.items.splice(r,0,d),u=!0):(d=this.items[f],f>r&&(this.items.splice(r,f-r),u=!0)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),i=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++}});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)u=!0,this.items.pop();this.items.length==0&&(this.items.push(new ev(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),u=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:a})=>{let l=a.height/this.list.offsetHeight;s.top<a.top?this.list.scrollTop-=(a.top-s.top)/l:s.bottom>a.bottom&&(this.list.scrollTop+=(s.bottom-a.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),u&&this.sync()}sync(){let e=this.list.firstChild;function n(){let r=e;e=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)n();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Nn),r=Hr(n.diagnostics,this.items[e].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:WE.of(r)})}static open(e){return new ba(e)}}function dM(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function c0(t){return dM(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const hM=X.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:c0("#f11")},".cm-lintRange-warning":{backgroundImage:c0("orange")},".cm-lintRange-info":{backgroundImage:c0("#999")},".cm-lintRange-hint":{backgroundImage:c0("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function pM(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function mM(t){let e="hint",n=1;for(let r of t){let u=pM(r.severity);u>n&&(n=u,e=r.severity)}return e}const HE=wF(oM,{hideOn:uM}),gM=[Nn,X.decorations.compute([Nn],t=>{let{selected:e,panel:n}=t.field(Nn);return!e||!n||e.from==e.to?ce.none:ce.set([iM.range(e.from,e.to)])}),HE,hM],OM=[XF(),WF(),sF(),ER(),jQ(),YP(),tF(),ze.allowMultipleSelections.of(!0),SQ(),LQ(XQ,{fallback:!0}),KQ(),MT(),KT(),vF(),xF(),hF(),Pj(),qo.of([...XT,...kj,...Jj,...PR,...IQ,...Hx,...cM])];function tv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function bM(t){if(Array.isArray(t))return t}function vM(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,u,i,o,s=[],a=!0,l=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);a=!0);}catch(c){l=!0,u=c}finally{try{if(!a&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw u}}return s}}function CM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yM(t,e){return bM(t)||vM(t,e)||xM(t,e)||CM()}function xM(t,e){if(t){if(typeof t=="string")return tv(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tv(t,e):void 0}}const KE=Object.entries,nv=Object.setPrototypeOf,EM=Object.isFrozen,$M=Object.getPrototypeOf,AM=Object.getOwnPropertyDescriptor;let St=Object.freeze,Zt=Object.seal,to=Object.create,JE=typeof Reflect<"u"&&Reflect,sm=JE.apply,am=JE.construct;St||(St=function(e){return e});Zt||(Zt=function(e){return e});sm||(sm=function(e,n){for(var r=arguments.length,u=new Array(r>2?r-2:0),i=2;i<r;i++)u[i-2]=arguments[i];return e.apply(n,u)});am||(am=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return new e(...r)});const Oi=At(Array.prototype.forEach),DM=At(Array.prototype.lastIndexOf),uv=At(Array.prototype.pop),vs=At(Array.prototype.push),kM=At(Array.prototype.splice),vo=Array.isArray,_s=At(String.prototype.toLowerCase),Eh=At(String.prototype.toString),rv=At(String.prototype.match),Cs=At(String.prototype.replace),iv=At(String.prototype.indexOf),SM=At(String.prototype.trim),_M=At(Number.prototype.toString),wM=At(Boolean.prototype.toString),ov=typeof BigInt>"u"?null:At(BigInt.prototype.toString),sv=typeof Symbol>"u"?null:At(Symbol.prototype.toString),An=At(Object.prototype.hasOwnProperty),ys=At(Object.prototype.toString),Wt=At(RegExp.prototype.test),hi=BM(TypeError);function At(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return sm(t,e,r)}}function BM(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return am(t,n)}}function Re(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_s;if(nv&&nv(t,null),!vo(e))return t;let r=e.length;for(;r--;){let u=e[r];if(typeof u=="string"){const i=n(u);i!==u&&(EM(e)||(e[r]=i),u=i)}t[u]=!0}return t}function PM(t){for(let e=0;e<t.length;e++)An(t,e)||(t[e]=null);return t}function zn(t){const e=to(null);for(const r of KE(t)){var n=yM(r,2);const u=n[0],i=n[1];An(t,u)&&(vo(i)?e[u]=PM(i):i&&typeof i=="object"&&i.constructor===Object?e[u]=zn(i):e[u]=i)}return e}function FM(t){switch(typeof t){case"string":return t;case"number":return _M(t);case"boolean":return wM(t);case"bigint":return ov?ov(t):"0";case"symbol":return sv?sv(t):"Symbol()";case"undefined":return ys(t);case"function":case"object":{if(t===null)return ys(t);const e=t,n=Hn(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:ys(r)}return ys(t)}default:return ys(t)}}function Hn(t,e){for(;t!==null;){const r=AM(t,e);if(r){if(r.get)return At(r.get);if(typeof r.value=="function")return At(r.value)}t=$M(t)}function n(){return null}return n}function QM(t){try{return Wt(t,""),!0}catch{return!1}}const av=St(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$h=St(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ah=St(["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"]),TM=St(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Dh=St(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),IM=St(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),lv=St(["#text"]),cv=St(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),kh=St(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),fv=St(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),f0=St(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zM=Zt(/{{[\w\W]*|^[\w\W]*}}/g),ZM=Zt(/<%[\w\W]*|^[\w\W]*%>/g),RM=Zt(/\${[\w\W]*/g),jM=Zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),MM=Zt(/^aria-[\-\w]+$/),dv=Zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LM=Zt(/^(?:\w+script|data):/i),NM=Zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UM=Zt(/^html$/i),XM=Zt(/^[a-z][.\w]*(-[.\w]+)+$/i),hv=Zt(/<[/\w!]/g),pv=Zt(/<[/\w]/g),VM=Zt(/<\/no(script|embed|frames)/i),qM=Zt(/\/>/i),In={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},e$=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],WM=St(Re({},e$)),YM=(function(){const t={};return Oi(e$,e=>{t[e]=Zt(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),St(t)})(),GM=function(){return typeof window>"u"?null:window},HM=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const u="data-tt-policy-suffix";n&&n.hasAttribute(u)&&(r=n.getAttribute(u));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},mv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Fr=function(e,n,r,u){return An(e,n)&&vo(e[n])?Re(u.base?zn(u.base):{},e[n],u.transform):r},Sh=function(e,n,r){const u=An(e,n)?e[n]:void 0;return u&&typeof u=="object"?zn(u):r()};function t$(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:GM();const e=j=>t$(j);if(e.version="3.4.15",e.removed=[],!t||!t.document||t.document.nodeType!==In.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,u=r.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,o=t.Node,s=t.Element,a=t.NodeFilter,l=t.NamedNodeMap;l===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const c=t.DOMParser,f=t.trustedTypes,d=s.prototype,h=Hn(d,"cloneNode"),p=Hn(d,"remove"),m=Hn(d,"removeAttributeNode"),g=Hn(d,"nextSibling"),C=Hn(d,"childNodes"),b=Hn(d,"parentNode"),O=Hn(d,"shadowRoot"),y=Hn(d,"attributes"),$=o&&o.prototype?Hn(o.prototype,"nodeType"):null,x=o&&o.prototype?Hn(o.prototype,"nodeName"):null,_=o&&o.prototype?Hn(o.prototype,"ownerDocument"):null,R=function(v){return $?$(v):v.nodeType},ue=function(v){return x?x(v):v.nodeName};if(typeof i=="function"){const j=n.createElement("template");j.content&&j.content.ownerDocument&&(n=j.content.ownerDocument)}let re,oe="",ee,Ee=!1,W=0;const te=function(){if(W>0)throw hi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},he=function(v){te(),W++;try{return re.createHTML(v)}finally{W--}},ke=function(v){te(),W++;try{return re.createScriptURL(v)}finally{W--}},Se=function(){return Ee||(ee=HM(f,u),Ee=!0),ee},Ne=n,bt=Ne.implementation,Et=Ne.createNodeIterator,Ye=Ne.createDocumentFragment,qt=Ne.getElementsByTagName,vn=r.importNode;let Be=mv();e.isSupported=typeof KE=="function"&&typeof b=="function"&&bt&&bt.createHTMLDocument!==void 0;const Cn=zM,Gn=ZM,wr=RM,kl=jM,ai=MM,$O=LM,E=NM,D=XM;let B=dv,Q=null;const z=Re({},[...av,...$h,...Ah,...Dh,...lv]);let P=null;const V=Re({},[...cv,...kh,...fv,...f0]);let M=Object.seal(to(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,Z=null;const se=Object.seal(to(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let H=!0,fe=!0,me=!1,Pe=!0,Fe=!1,Qe=!0,Ge=!1,vt=!1,un=null,rn=null,rr=!1,ir=!1,Bt=!1,on=!1,us=!0,rs=!1;const AO="user-content-";let hd=!0,pd=!1,Ni={},Ui=null;const DO=Re({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let kO=null;const SO=Re({},["audio","video","img","source","image","track"]);let _O=null;const wO=Re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Sl="http://www.w3.org/1998/Math/MathML",_l="http://www.w3.org/2000/svg",Du="http://www.w3.org/1999/xhtml";let Xi=Du,md=!1,gd=null;const __=Re({},[Sl,_l,Du],Eh),BO=St(["mi","mo","mn","ms","mtext"]);let Od=Re({},BO);const PO=St(["annotation-xml"]);let bd=Re({},PO);const w_=Re({},["title","style","font","a","script"]);let is=null;const B_=["application/xhtml+xml","text/html"],P_="text/html";let Ct=null,Vi=null;const F_=n.createElement("form"),FO=function(v){return v instanceof RegExp||v instanceof Function},vd=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Vi&&Vi===v)return;(!v||typeof v!="object")&&(v={}),v=zn(v),is=B_.indexOf(v.PARSER_MEDIA_TYPE)===-1?P_:v.PARSER_MEDIA_TYPE,Ct=is==="application/xhtml+xml"?Eh:_s,Q=Fr(v,"ALLOWED_TAGS",z,{transform:Ct}),P=Fr(v,"ALLOWED_ATTR",V,{transform:Ct}),gd=Fr(v,"ALLOWED_NAMESPACES",__,{transform:Eh}),_O=Fr(v,"ADD_URI_SAFE_ATTR",wO,{transform:Ct,base:wO}),kO=Fr(v,"ADD_DATA_URI_TAGS",SO,{transform:Ct,base:SO}),Ui=Fr(v,"FORBID_CONTENTS",DO,{transform:Ct}),U=Fr(v,"FORBID_TAGS",zn({}),{transform:Ct}),Z=Fr(v,"FORBID_ATTR",zn({}),{transform:Ct}),Ni=An(v,"USE_PROFILES")?v.USE_PROFILES&&typeof v.USE_PROFILES=="object"?zn(v.USE_PROFILES):v.USE_PROFILES:!1,H=v.ALLOW_ARIA_ATTR!==!1,fe=v.ALLOW_DATA_ATTR!==!1,me=v.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=v.SAFE_FOR_TEMPLATES||!1,Qe=v.SAFE_FOR_XML!==!1,Ge=v.WHOLE_DOCUMENT||!1,ir=v.RETURN_DOM||!1,Bt=v.RETURN_DOM_FRAGMENT||!1,on=v.RETURN_TRUSTED_TYPE||!1,rr=v.FORCE_BODY||!1,us=v.SANITIZE_DOM!==!1,rs=v.SANITIZE_NAMED_PROPS||!1,hd=v.KEEP_CONTENT!==!1,pd=v.IN_PLACE||!1,B=QM(v.ALLOWED_URI_REGEXP)?v.ALLOWED_URI_REGEXP:dv,Xi=typeof v.NAMESPACE=="string"?v.NAMESPACE:Du,Od=Sh(v,"MATHML_TEXT_INTEGRATION_POINTS",()=>Re({},BO)),bd=Sh(v,"HTML_INTEGRATION_POINTS",()=>Re({},PO));const S=Sh(v,"CUSTOM_ELEMENT_HANDLING",()=>to(null));if(M=to(null),An(S,"tagNameCheck")&&FO(S.tagNameCheck)&&(M.tagNameCheck=S.tagNameCheck),An(S,"attributeNameCheck")&&FO(S.attributeNameCheck)&&(M.attributeNameCheck=S.attributeNameCheck),An(S,"allowCustomizedBuiltInElements")&&typeof S.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=S.allowCustomizedBuiltInElements),Zt(M),Fe&&(fe=!1),Bt&&(ir=!0),Ni&&(Q=Re({},lv),P=to(null),Ni.html===!0&&(Re(Q,av),Re(P,cv)),Ni.svg===!0&&(Re(Q,$h),Re(P,kh),Re(P,f0)),Ni.svgFilters===!0&&(Re(Q,Ah),Re(P,kh),Re(P,f0)),Ni.mathMl===!0&&(Re(Q,Dh),Re(P,fv),Re(P,f0))),se.tagCheck=null,se.attributeCheck=null,An(v,"ADD_TAGS")&&(typeof v.ADD_TAGS=="function"?se.tagCheck=v.ADD_TAGS:vo(v.ADD_TAGS)&&(Q===z&&(Q=zn(Q)),Re(Q,v.ADD_TAGS,Ct))),An(v,"ADD_ATTR")&&(typeof v.ADD_ATTR=="function"?se.attributeCheck=v.ADD_ATTR:vo(v.ADD_ATTR)&&(P===V&&(P=zn(P)),Re(P,v.ADD_ATTR,Ct))),An(v,"ADD_FORBID_CONTENTS")&&vo(v.ADD_FORBID_CONTENTS)&&(Ui===DO&&(Ui=zn(Ui)),Re(Ui,v.ADD_FORBID_CONTENTS,Ct)),hd&&(Q["#text"]=!0),Ge&&Re(Q,["html","head","body"]),Q.table&&(Re(Q,["tbody"]),delete U.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!="function")throw hi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw hi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const I=re;re=v.TRUSTED_TYPES_POLICY;try{oe=he("")}catch(J){throw re=I,J}}else v.TRUSTED_TYPES_POLICY===null?(re=void 0,oe=""):(re===void 0&&(re=Se()),re&&typeof oe=="string"&&(oe=he("")));St&&St(v),Vi=v},QO=Re({},[...$h,...Ah,...TM]),TO=Re({},[...Dh,...IM]),Q_=function(v,S,I){return S.namespaceURI===Du?v==="svg":S.namespaceURI===Sl?v==="svg"&&(I==="annotation-xml"||Od[I]):!!QO[v]},T_=function(v,S,I){return S.namespaceURI===Du?v==="math":S.namespaceURI===_l?v==="math"&&bd[I]:!!TO[v]},I_=function(v,S,I){return S.namespaceURI===_l&&!bd[I]||S.namespaceURI===Sl&&!Od[I]?!1:!TO[v]&&(w_[v]||!QO[v])},z_=function(v){let S=b(v);(!S||!S.tagName)&&(S={namespaceURI:Xi,tagName:"template"});const I=_s(v.tagName),J=_s(S.tagName);return gd[v.namespaceURI]?v.namespaceURI===_l?Q_(I,S,J):v.namespaceURI===Sl?T_(I,S,J):v.namespaceURI===Du?I_(I,S,J):!!(is==="application/xhtml+xml"&&gd[v.namespaceURI]):!1},Br=function(v){vs(e.removed,{element:v});try{b(v).removeChild(v)}catch{if(p(v),!b(v))throw hi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},IO=function(v,S,I){try{m(v,S)}catch{try{v.removeAttribute(I)}catch{}}},wl=function(v){Bl(v);const S=C(v);if(S){const J=[];Oi(S,le=>{vs(J,le)}),Oi(J,le=>{try{p(le)}catch{}})}const I=y(v);if(I)for(let J=I.length-1;J>=0;--J){const le=I[J],ge=le&&le.name;typeof ge=="string"&&IO(v,le,ge)}},li=function(v,S,I){if(!I)try{I=S.getAttributeNode(v)}catch{I=null}vs(e.removed,{attribute:I||null,from:S});try{I?m(S,I):S.removeAttribute(v)}catch{try{S.removeAttribute(v)}catch{}}if(v==="is")if(ir||Bt)try{Br(S)}catch{}else try{S.setAttribute(v,"")}catch{}},Z_=function(v){const S=y(v);if(S)for(let I=S.length-1;I>=0;--I){const J=S[I],le=J&&J.name;typeof le!="string"||P[Ct(le)]||IO(v,J,le)}},Bl=function(v){const S=[v];for(;S.length>0;){const I=S.pop();R(I)===In.element&&Z_(I);const le=C(I);if(le)for(let ge=le.length-1;ge>=0;--ge)S.push(le[ge])}},zO=function(v,S){return Qe?v==="patchsrc"?!0:v==="for"&&S!=="label"&&S!=="output":!1},R_=function(v){if(!Qe)return;const S=[v];for(;S.length>0;){const I=S.pop(),J=R(I);if(J===In.processingInstruction||J===In.comment&&Wt(pv,I.data)){try{p(I)}catch{}continue}if(J===In.element){const ge=I,it=Ct(ue(I));try{ge.hasAttribute&&ge.hasAttribute("patchsrc")&&ge.removeAttribute("patchsrc"),ge.hasAttribute&&ge.hasAttribute("for")&&zO("for",it)&&ge.removeAttribute("for")}catch{}}const le=C(I);if(le)for(let ge=le.length-1;ge>=0;--ge)S.push(le[ge])}},ZO=function(v){let S=null,I=null;if(rr)v="<remove></remove>"+v;else{const ge=rv(v,/^[\r\n\t ]+/);I=ge&&ge[0]}is==="application/xhtml+xml"&&Xi===Du&&(v='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+v+"</body></html>");const J=re?he(v):v;if(Xi===Du)try{S=new c().parseFromString(J,is)}catch{}if(!S||!S.documentElement){S=bt.createDocument(Xi,"template",null);try{S.documentElement.innerHTML=md?oe:J}catch{}}const le=S.body||S.documentElement;return v&&I&&le.insertBefore(n.createTextNode(I),le.childNodes[0]||null),Xi===Du?qt.call(S,Ge?"html":"body")[0]:Ge?S.documentElement:le},RO=function(v){const S=_?_(v):v.ownerDocument;return Et.call(S||v,v,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},Pl=function(v){return v=Cs(v,Cn," "),v=Cs(v,Gn," "),v=Cs(v,wr," "),v},Cd=function(v){var S;v.normalize();const I=_?_(v):v.ownerDocument,J=Et.call(I||v,v,a.SHOW_TEXT|a.SHOW_COMMENT|a.SHOW_CDATA_SECTION|a.SHOW_PROCESSING_INSTRUCTION,null);let le=J.nextNode();for(;le;)le.data=Pl(le.data),le=J.nextNode();const ge=(S=v.querySelectorAll)===null||S===void 0?void 0:S.call(v,"template");ge&&Oi(ge,it=>{qi(it.content)&&Cd(it.content)})},Fl=function(v){const S=x?x(v):null;return typeof S!="string"||Ct(S)!=="form"?!1:typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||v.attributes!==y(v)||typeof v.removeAttribute!="function"||typeof v.removeAttributeNode!="function"||typeof v.getAttributeNode!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function"||typeof v.hasChildNodes!="function"||v.nodeType!==$(v)||v.childNodes!==C(v)},qi=function(v){if(!$||typeof v!="object"||v===null)return!1;try{return $(v)===In.documentFragment}catch{return!1}},os=function(v){if(!$||typeof v!="object"||v===null)return!1;try{return typeof $(v)=="number"}catch{return!1}};function ku(j,v,S){j.length!==0&&Oi(j,I=>{I.call(e,v,S,Vi)})}const j_=function(v,S){return!!(Qe&&v.hasChildNodes()&&!os(v.firstElementChild)&&Wt(hv,v.textContent)&&Wt(hv,v.innerHTML)||Qe&&v.namespaceURI===Du&&WM[S]&&(os(v.firstElementChild)||typeof v.textContent=="string"&&Wt(YM[S],v.textContent))||v.nodeType===In.processingInstruction||Qe&&v.nodeType===In.comment&&Wt(pv,v.data))},Ql=function(v,S){if(v instanceof RegExp)return Wt(v,S);if(v instanceof Function){for(var I=arguments.length,J=new Array(I>2?I-2:0),le=2;le<I;le++)J[le-2]=arguments[le];return!!v(S,...J)}return!1},M_=function(v,S,I){if(!U[S]&&UO(S)&&Ql(M.tagNameCheck,S))return!1;if(hd&&!Ui[S]){const J=b(v),le=C(v);if(le&&J){const ge=le.length;for(let it=ge-1;it>=0;--it){const mt=v===I?h(le[it],!0):le[it];J.insertBefore(mt,g(v))}}}return Br(v),!0},jO=function(v,S,I,J){return v.length===0?S:S===I||S===J?zn(S):S},MO=function(v,S){return v===S||b(v)!==null?!1:(pd&&Bl(v),!0)},LO=function(v,S){if(ku(Be.beforeSanitizeElements,v,null),MO(v,S))return!0;if(Fl(v))return Br(v),!0;const I=Ct(ue(v));if(Q=jO(Be.uponSanitizeElement,Q,z,un),ku(Be.uponSanitizeElement,v,{tagName:I,allowedTags:Q}),MO(v,S))return!0;if(j_(v,I))return Br(v),!0;if(U[I]||!(se.tagCheck instanceof Function&&se.tagCheck(I))&&!Q[I]){const le=M_(v,I,S);return le===!1&&ku(Be.afterSanitizeElements,v,null),le}if(R(v)===In.element&&!z_(v)||(I==="noscript"||I==="noembed"||I==="noframes")&&Wt(VM,v.innerHTML))return Br(v),!0;if(Fe&&v.nodeType===In.text){const le=Pl(v.textContent);v.textContent!==le&&(vs(e.removed,{element:v.cloneNode()}),v.textContent=le)}return ku(Be.afterSanitizeElements,v,null),!1},NO=function(v,S,I){if(Z[S]||zO(S,v)||us&&(S==="id"||S==="name")&&(I in n||I in F_))return!1;const J=P[S]||se.attributeCheck instanceof Function&&se.attributeCheck(S,v);return fe&&Wt(kl,S)||H&&Wt(ai,S)?!0:J?_O[S]||Wt(B,Cs(I,E,""))||(S==="src"||S==="xlink:href"||S==="href")&&v!=="script"&&iv(I,"data:")===0&&kO[v]||me&&!Wt($O,Cs(I,E,""))?!0:!I:UO(v)&&Ql(M.tagNameCheck,v)&&Ql(M.attributeNameCheck,S,v)||S==="is"&&M.allowCustomizedBuiltInElements&&Ql(M.tagNameCheck,I)},L_=Re({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),UO=function(v){return!L_[_s(v)]&&Wt(D,v)},N_=function(v,S,I,J){if(re&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!I)switch(f.getAttributeType(v,S)){case"TrustedHTML":return he(J);case"TrustedScriptURL":return ke(J)}return J},U_=function(v,S,I,J){try{return I?v.setAttributeNS(I,S,J):v.setAttribute(S,J),Fl(v)?(Br(v),!1):!0}catch{return li(S,v),!1}},XO=function(v){ku(Be.beforeSanitizeAttributes,v,null);const S=v.attributes;if(!S||Fl(v))return;P=jO(Be.uponSanitizeAttribute,P,V,rn);const I={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let J=S.length;const le=Ct(v.nodeName);for(;J--;){const ge=S[J],it=ge.name,mt=ge.namespaceURI,yn=ge.value,xn=Ct(it),xd=yn;let sn=it==="value"?xd:SM(xd),VO=!1;if(I.attrName=xn,I.attrValue=sn,I.keepAttr=!0,I.forceKeepAttr=void 0,ku(Be.uponSanitizeAttribute,v,I),sn=I.attrValue,rs&&(xn==="id"||xn==="name")&&iv(sn,AO)!==0&&(li(it,v,ge),sn=AO+sn,VO=!0),Qe&&Wt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,sn)){li(it,v,ge);continue}if(xn==="attributename"&&rv(sn,"href")){li(it,v,ge);continue}if(!I.forceKeepAttr){if(!I.keepAttr){li(it,v,ge);continue}if(!Pe&&Wt(qM,sn)){li(it,v,ge);continue}if(Fe&&(sn=Pl(sn)),!NO(le,xn,sn)){li(it,v,ge);continue}sn=N_(le,xn,mt,sn),sn!==xd&&U_(v,it,mt,sn)&&VO&&uv(e.removed)}}ku(Be.afterSanitizeAttributes,v,null)},Tl=function(v){let S=null;const I=RO(v);for(ku(Be.beforeSanitizeShadowDOM,v,null);S=I.nextNode();)if(ku(Be.uponSanitizeShadowNode,S,null),LO(S,v),XO(S),qi(S.content)&&Tl(S.content),R(S)===In.element){const J=O(S);qi(J)&&(yd(J),Tl(J))}ku(Be.afterSanitizeShadowDOM,v,null)},yd=function(v){const S=[{node:v,shadow:null}];for(;S.length>0;){const I=S.pop();if(I.shadow){Tl(I.shadow);continue}const J=I.node,ge=R(J)===In.element,it=C(J);if(it)for(let mt=it.length-1;mt>=0;--mt)S.push({node:it[mt],shadow:null});if(ge){const mt=x?x(J):null;if(typeof mt=="string"&&Ct(mt)==="template"){const yn=J.content;qi(yn)&&S.push({node:yn,shadow:null})}}if(ge){const mt=O(J);qi(mt)&&S.push({node:null,shadow:mt},{node:mt,shadow:null})}}};return e.sanitize=function(j){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,I=null,J=null,le=null;if(md=!j,md&&(j="<!-->"),typeof j!="string"&&!os(j)&&(j=FM(j),typeof j!="string"))throw hi("dirty is not a string, aborting");if(!e.isSupported)return j;vt?(Q=un,P=rn):vd(v),(Be.uponSanitizeElement.length>0||Be.uponSanitizeAttribute.length>0)&&(Q=zn(Q)),Be.uponSanitizeAttribute.length>0&&(P=zn(P)),e.removed=[];const ge=pd&&typeof j!="string"&&os(j);if(ge){R_(j);const yn=ue(j);if(typeof yn=="string"){const xn=Ct(yn);if(!Q[xn]||U[xn])throw wl(j),hi("root node is forbidden and cannot be sanitized in-place")}if(Fl(j))throw wl(j),hi("root node is clobbered and cannot be sanitized in-place");try{yd(j)}catch(xn){throw wl(j),xn}}else if(os(j))S=ZO("<!---->"),I=S.ownerDocument.importNode(j,!0),I.nodeType===In.element&&I.nodeName==="BODY"||I.nodeName==="HTML"?S=I:S.appendChild(I),yd(S);else{if(!ir&&!Fe&&!Ge&&j.indexOf("<")===-1)return re&&on?he(j):j;if(S=ZO(j),!S)return ir?null:on?oe:""}S&&rr&&Br(S.firstChild);const it=ge?j:S;try{const yn=RO(it);for(;J=yn.nextNode();)LO(J,it),XO(J),qi(J.content)&&Tl(J.content)}catch(yn){throw ge&&(wl(j),Oi(e.removed,xn=>{xn.element&&Bl(xn.element)})),yn}if(ge)return Oi(e.removed,yn=>{yn.element&&Bl(yn.element)}),Fe&&Cd(j),j;if(ir){if(Fe&&Cd(S),Bt)for(le=Ye.call(S.ownerDocument);S.firstChild;)le.appendChild(S.firstChild);else le=S;return(P.shadowroot||P.shadowrootmode)&&(le=vn.call(r,le,!0)),le}let mt=Ge?S.outerHTML:S.innerHTML;return Ge&&Q["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Wt(UM,S.ownerDocument.doctype.name)&&(mt="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
|
|
31
|
+
`+mt),Fe&&(mt=Pl(mt)),re&&on?he(mt):mt},e.setConfig=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vd(j),vt=!0,un=Q,rn=P},e.clearConfig=function(){Vi=null,vt=!1,un=null,rn=null,re=ee,oe=""},e.isValidAttribute=function(j,v,S){Vi||vd({});const I=Ct(j),J=Ct(v);return NO(I,J,S)},e.addHook=function(j,v){typeof v=="function"&&An(Be,j)&&vs(Be[j],v)},e.removeHook=function(j,v){if(An(Be,j)){if(v!==void 0){const S=DM(Be[j],v);return S===-1?void 0:kM(Be[j],S,1)[0]}return uv(Be[j])}},e.removeHooks=function(j){An(Be,j)&&(Be[j]=[])},e.removeAllHooks=function(){Be=mv()},e}var gv=t$();const Ov={};function KM(t){let e=Ov[t];if(e)return e;e=Ov[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);e.push(r)}for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return e}function Io(t,e){typeof e!="string"&&(e=Io.defaultChars);const n=KM(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let i=0,o=r.length;i<o;i+=3){const s=parseInt(r.slice(i+1,i+3),16);if(s<128){u+=n[s];continue}if((s&224)===192&&i+3<o){const a=parseInt(r.slice(i+4,i+6),16);if((a&192)===128){const l=s<<6&1984|a&63;l<128?u+="��":u+=String.fromCharCode(l),i+=3;continue}}if((s&240)===224&&i+6<o){const a=parseInt(r.slice(i+4,i+6),16),l=parseInt(r.slice(i+7,i+9),16);if((a&192)===128&&(l&192)===128){const c=s<<12&61440|a<<6&4032|l&63;c<2048||c>=55296&&c<=57343?u+="���":u+=String.fromCharCode(c),i+=6;continue}}if((s&248)===240&&i+9<o){const a=parseInt(r.slice(i+4,i+6),16),l=parseInt(r.slice(i+7,i+9),16),c=parseInt(r.slice(i+10,i+12),16);if((a&192)===128&&(l&192)===128&&(c&192)===128){let f=s<<18&1835008|a<<12&258048|l<<6&4032|c&63;f<65536||f>1114111?u+="����":(f-=65536,u+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),i+=9;continue}}u+="�"}return u})}Io.defaultChars=";/?:@&=+$,#";Io.componentChars="";const bv={};function JM(t){let e=bv[t];if(e)return e;e=bv[t]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?e.push(r):e.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<t.length;n++)e[t.charCodeAt(n)]=t[n];return e}function Va(t,e,n){typeof e!="string"&&(n=e,e=Va.defaultChars),typeof n>"u"&&(n=!0);const r=JM(e);let u="";for(let i=0,o=t.length;i<o;i++){const s=t.charCodeAt(i);if(n&&s===37&&i+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(i+1,i+3))){u+=t.slice(i,i+3),i+=2;continue}if(s<128){u+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<o){const a=t.charCodeAt(i+1);if(a>=56320&&a<=57343){u+=encodeURIComponent(t[i]+t[i+1]),i++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(t[i])}return u}Va.defaultChars=";/?:@&=+$,-_.!~*'()#";Va.componentChars="-_.!~*'()";function N1(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function kc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const eL=/^([a-z0-9.+-]+:)/i,tL=/:[0-9]*$/,nL=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,uL=["<",">",'"',"`"," ","\r",`
|
|
32
|
+
`," "],rL=["{","}","|","\\","^","`"].concat(uL),iL=["'"].concat(rL),vv=["%","/","?",";","#"].concat(iL),Cv=["/","?","#"],oL=255,yv=/^[+a-z0-9A-Z_-]{0,63}$/,sL=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xv={javascript:!0,"javascript:":!0},Ev={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function U1(t,e){if(t&&t instanceof kc)return t;const n=new kc;return n.parse(t,e),n}kc.prototype.parse=function(t,e){let n,r,u,i=t;if(i=i.trim(),!e&&t.split("#").length===1){const l=nL.exec(i);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let o=eL.exec(i);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,i=i.substr(o.length)),(e||o||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=i.substr(0,2)==="//",u&&!(o&&xv[o])&&(i=i.substr(2),this.slashes=!0)),!xv[o]&&(u||o&&!Ev[o])){let l=-1;for(let p=0;p<Cv.length;p++)r=i.indexOf(Cv[p]),r!==-1&&(l===-1||r<l)&&(l=r);let c,f;l===-1?f=i.lastIndexOf("@"):f=i.lastIndexOf("@",l),f!==-1&&(c=i.slice(0,f),i=i.slice(f+1),this.auth=c),l=-1;for(let p=0;p<vv.length;p++)r=i.indexOf(vv[p]),r!==-1&&(l===-1||r<l)&&(l=r);l===-1&&(l=i.length),i[l-1]===":"&&l--;const d=i.slice(0,l);i=i.slice(l),this.parseHost(d),this.hostname=this.hostname||"";const h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){const p=this.hostname.split(/\./);for(let m=0,g=p.length;m<g;m++){const C=p[m];if(C&&!C.match(yv)){let b="";for(let O=0,y=C.length;O<y;O++)C.charCodeAt(O)>127?b+="x":b+=C[O];if(!b.match(yv)){const O=p.slice(0,m),y=p.slice(m+1),$=C.match(sL);$&&(O.push($[1]),y.unshift($[2])),y.length&&(i=y.join(".")+i),this.hostname=O.join(".");break}}}}this.hostname.length>oL&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=i.indexOf("#");s!==-1&&(this.hash=i.substr(s),i=i.slice(0,s));const a=i.indexOf("?");return a!==-1&&(this.search=i.substr(a),i=i.slice(0,a)),i&&(this.pathname=i),Ev[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};kc.prototype.parseHost=function(t){let e=tL.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const aL=Object.freeze(Object.defineProperty({__proto__:null,decode:Io,encode:Va,format:N1,parse:U1},Symbol.toStringTag,{value:"Module"})),n$=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u$=/[\0-\x1F\x7F-\x9F]/,lL=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,X1=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,r$=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,i$=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,cL=Object.freeze(Object.defineProperty({__proto__:null,Any:n$,Cc:u$,Cf:lL,P:X1,S:r$,Z:i$},Symbol.toStringTag,{value:"Module"})),fL=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſ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;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊ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;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦ր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áΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹ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;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ā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ã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;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耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Ā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㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),dL=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var _h;const hL=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]]),pL=(_h=String.fromCodePoint)!==null&&_h!==void 0?_h:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function mL(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=hL.get(t))!==null&&e!==void 0?e:t}var Tt;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Tt||(Tt={}));const gL=32;var Lr;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Lr||(Lr={}));function lm(t){return t>=Tt.ZERO&&t<=Tt.NINE}function OL(t){return t>=Tt.UPPER_A&&t<=Tt.UPPER_F||t>=Tt.LOWER_A&&t<=Tt.LOWER_F}function bL(t){return t>=Tt.UPPER_A&&t<=Tt.UPPER_Z||t>=Tt.LOWER_A&&t<=Tt.LOWER_Z||lm(t)}function vL(t){return t===Tt.EQUALS||bL(t)}var Pt;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Pt||(Pt={}));var pr;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(pr||(pr={}));class CL{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Pt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=pr.Strict}startEntity(e){this.decodeMode=e,this.state=Pt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Pt.EntityStart:return e.charCodeAt(n)===Tt.NUM?(this.state=Pt.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Pt.NamedEntity,this.stateNamedEntity(e,n));case Pt.NumericStart:return this.stateNumericStart(e,n);case Pt.NumericDecimal:return this.stateNumericDecimal(e,n);case Pt.NumericHex:return this.stateNumericHex(e,n);case Pt.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|gL)===Tt.LOWER_X?(this.state=Pt.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Pt.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,u){if(n!==r){const i=r-n;this.result=this.result*Math.pow(u,i)+parseInt(e.substr(n,i),u),this.consumed+=i}}stateNumericHex(e,n){const r=n;for(;n<e.length;){const u=e.charCodeAt(n);if(lm(u)||OL(u))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){const r=n;for(;n<e.length;){const u=e.charCodeAt(n);if(lm(u))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(u,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Tt.SEMI)this.consumed+=1;else if(this.decodeMode===pr.Strict)return 0;return this.emitCodePoint(mL(this.result),this.consumed),this.errors&&(e!==Tt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:r}=this;let u=r[this.treeIndex],i=(u&Lr.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const o=e.charCodeAt(n);if(this.treeIndex=yL(r,u,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===pr.Attribute&&(i===0||vL(o))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],i=(u&Lr.VALUE_LENGTH)>>14,i!==0){if(o===Tt.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==pr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,u=(r[n]&Lr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[e]&~Lr.VALUE_LENGTH:u[e+1],r),n===3&&this.emitCodePoint(u[e+2],r),r}end(){var e;switch(this.state){case Pt.NamedEntity:return this.result!==0&&(this.decodeMode!==pr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Pt.NumericDecimal:return this.emitNumericEntity(0,2);case Pt.NumericHex:return this.emitNumericEntity(0,3);case Pt.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Pt.EntityStart:return 0}}}function o$(t){let e="";const n=new CL(t,r=>e+=pL(r));return function(u,i){let o=0,s=0;for(;(s=u.indexOf("&",s))>=0;){e+=u.slice(o,s),n.startEntity(i);const l=n.write(u,s+1);if(l<0){o=s+n.end();break}o=s+l,s=l===0?o+1:o}const a=e+u.slice(o);return e="",a}}function yL(t,e,n,r){const u=(e&Lr.BRANCH_LENGTH)>>7,i=e&Lr.JUMP_TABLE;if(u===0)return i!==0&&r===i?n:-1;if(i){const a=r-i;return a<0||a>=u?-1:t[n+a]-1}let o=n,s=o+u-1;for(;o<=s;){const a=o+s>>>1,l=t[a];if(l<r)o=a+1;else if(l>r)s=a-1;else return t[a+u]}return-1}const s$=o$(fL);o$(dL);function xL(t,e=pr.Legacy){return s$(t,e)}function EL(t){return s$(t,pr.Strict)}function $L(t){return Object.prototype.toString.call(t)}function V1(t){return $L(t)==="[object String]"}const AL=Object.prototype.hasOwnProperty;function DL(t,e){return AL.call(t,e)}function mf(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){t[r]=n[r]})}}),t}function kL(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function q1(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function va(t){if(t>65535){t-=65536;const e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const a$=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,SL=/&([a-z#][a-z0-9]{1,31});/gi,_L=new RegExp(a$.source+"|"+SL.source,"gi"),wL=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function BL(t,e){if(e.charCodeAt(0)===35&&wL.test(e)){const r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return q1(r)?va(r):t}const n=xL(t);return n!==t?n:t}function PL(t){return t.indexOf("\\")<0?t:t.replace(a$,"$1")}function zo(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(_L,function(e,n,r){return n||BL(e,r)})}const FL=/[&<>"]/,QL=/[&<>"]/g,TL={"&":"&","<":"<",">":">",'"':"""};function IL(t){return TL[t]}function Kr(t){return FL.test(t)?t.replace(QL,IL):t}const zL=/[.?*+^$[\]\\(){}|-]/g;function ZL(t){return t.replace(zL,"\\$&")}function lt(t){switch(t){case 9:case 32:return!0}return!1}function Ca(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function l$(t){return X1.test(t)||r$.test(t)}function ya(t){return l$(va(t))}function xa(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function gf(t){return t=t.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}function $v(t){return t===32||t===9||t===10||t===13}function Of(t){let e=0;for(;e<t.length&&$v(t.charCodeAt(e));e++);let n=t.length-1;for(;n>=e&&$v(t.charCodeAt(n));n--);return t.slice(e,n+1)}const RL={mdurl:aL,ucmicro:cL},jL=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:kL,asciiTrim:Of,assign:mf,escapeHtml:Kr,escapeRE:ZL,fromCodePoint:va,has:DL,isMdAsciiPunct:xa,isPunctChar:l$,isPunctCharCode:ya,isSpace:lt,isString:V1,isValidEntityCode:q1,isWhiteSpace:Ca,lib:RL,normalizeReference:gf,unescapeAll:zo,unescapeMd:PL},Symbol.toStringTag,{value:"Module"}));function ML(t,e,n){let r,u,i,o;const s=t.posMax,a=t.pos;for(t.pos=e+1,r=1;t.pos<s;){if(i=t.src.charCodeAt(t.pos),i===93&&(r--,r===0)){u=!0;break}if(o=t.pos,t.md.inline.skipToken(t),i===91){if(o===t.pos-1)r++;else if(n)return t.pos=a,-1}}let l=-1;return u&&(l=t.pos),t.pos=a,l}function LL(t,e,n){let r,u=e;const i={ok:!1,pos:0,str:""};if(t.charCodeAt(u)===60){for(u++;u<n;){if(r=t.charCodeAt(u),r===10||r===60)return i;if(r===62)return i.pos=u+1,i.str=zo(t.slice(e+1,u)),i.ok=!0,i;if(r===92&&u+1<n){u+=2;continue}u++}return i}let o=0;for(;u<n&&(r=t.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(t.charCodeAt(u+1)===32){u++;continue}u+=2;continue}if(r===40&&(o++,o>32))return i;if(r===41){if(o===0)break;o--}u++}return e===u||o!==0||(i.str=zo(t.slice(e,u)),i.pos=u,i.ok=!0),i}function NL(t,e,n,r){let u,i=e;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(i>=n)return o;let s=t.charCodeAt(i);if(s!==34&&s!==39&&s!==40)return o;e++,i++,s===40&&(s=41),o.marker=s}for(;i<n;){if(u=t.charCodeAt(i),u===o.marker)return o.pos=i+1,o.str+=zo(t.slice(e,i)),o.ok=!0,o;if(u===40&&o.marker===41)return o;u===92&&i+1<n&&i++,i++}return o.can_continue=!0,o.str+=zo(t.slice(e,i)),o}const UL=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:LL,parseLinkLabel:ML,parseLinkTitle:NL},Symbol.toStringTag,{value:"Module"})),tr={};tr.code_inline=function(t,e,n,r,u){const i=t[e];return"<code"+u.renderAttrs(i)+">"+Kr(i.content)+"</code>"};tr.code_block=function(t,e,n,r,u){const i=t[e];return"<pre"+u.renderAttrs(i)+"><code>"+Kr(t[e].content)+`</code></pre>
|
|
33
|
+
`};tr.fence=function(t,e,n,r,u){const i=t[e],o=i.info?zo(i.info).trim():"";let s="",a="";if(o){const c=o.split(/(\s+)/g);s=c[0],a=c.slice(2).join("")}let l;if(n.highlight?l=n.highlight(i.content,s,a)||Kr(i.content):l=Kr(i.content),l.indexOf("<pre")===0)return l+`
|
|
34
|
+
`;if(o){const c=i.attrIndex("class"),f=i.attrs?i.attrs.slice():[];c<0?f.push(["class",n.langPrefix+s]):(f[c]=f[c].slice(),f[c][1]+=" "+n.langPrefix+s);const d={attrs:f};return`<pre><code${u.renderAttrs(d)}>${l}</code></pre>
|
|
35
|
+
`}return`<pre><code${u.renderAttrs(i)}>${l}</code></pre>
|
|
36
|
+
`};tr.image=function(t,e,n,r,u){const i=t[e];return i.attrs[i.attrIndex("alt")][1]=u.renderInlineAsText(i.children,n,r),u.renderToken(t,e,n)};tr.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
|
37
|
+
`:`<br>
|
|
38
|
+
`};tr.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
|
39
|
+
`:`<br>
|
|
40
|
+
`:`
|
|
41
|
+
`};tr.text=function(t,e){return Kr(t[e].content)};tr.html_block=function(t,e){return t[e].content};tr.html_inline=function(t,e){return t[e].content};function Jo(){this.rules=mf({},tr)}Jo.prototype.renderAttrs=function(e){let n,r,u;if(!e.attrs)return"";for(u="",n=0,r=e.attrs.length;n<r;n++)u+=" "+Kr(e.attrs[n][0])+'="'+Kr(e.attrs[n][1])+'"';return u};Jo.prototype.renderToken=function(e,n,r){const u=e[n];let i="";if(u.hidden)return"";u.block&&u.nesting!==-1&&n&&e[n-1].hidden&&(i+=`
|
|
42
|
+
`),i+=(u.nesting===-1?"</":"<")+u.tag,i+=this.renderAttrs(u),u.nesting===0&&r.xhtmlOut&&(i+=" /");let o=!1;if(u.block&&(o=!0,u.nesting===1&&n+1<e.length)){const s=e[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===u.tag)&&(o=!1)}return i+=o?`>
|
|
43
|
+
`:">",i};Jo.prototype.renderInline=function(t,e,n){let r="";const u=this.rules;for(let i=0,o=t.length;i<o;i++){const s=t[i].type;typeof u[s]<"u"?r+=u[s](t,i,e,n,this):r+=this.renderToken(t,i,e)}return r};Jo.prototype.renderInlineAsText=function(t,e,n){let r="";for(let u=0,i=t.length;u<i;u++)switch(t[u].type){case"text":r+=t[u].content;break;case"image":r+=this.renderInlineAsText(t[u].children,e,n);break;case"html_inline":case"html_block":r+=t[u].content;break;case"softbreak":case"hardbreak":r+=`
|
|
44
|
+
`;break}return r};Jo.prototype.render=function(t,e,n){let r="";const u=this.rules;for(let i=0,o=t.length;i<o;i++){const s=t[i].type;s==="inline"?r+=this.renderInline(t[i].children,e,n):typeof u[s]<"u"?r+=u[s](t,i,e,n,this):r+=this.renderToken(t,i,e,n)}return r};function Pn(){this.__rules__=[],this.__cache__=null}Pn.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Pn.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})};Pn.prototype.at=function(t,e,n){const r=this.__find__(t),u=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=u.alt||[],this.__cache__=null};Pn.prototype.before=function(t,e,n,r){const u=this.__find__(t),i=r||{};if(u===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(u,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Pn.prototype.after=function(t,e,n,r){const u=this.__find__(t),i=r||{};if(u===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(u+1,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Pn.prototype.push=function(t,e,n){const r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};Pn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(r){const u=this.__find__(r);if(u<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!0,n.push(r)},this),this.__cache__=null,n};Pn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};Pn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(r){const u=this.__find__(r);if(u<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!1,n.push(r)},this),this.__cache__=null,n};Pn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function Au(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Au.prototype.attrIndex=function(e){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,u=n.length;r<u;r++)if(n[r][0]===e)return r;return-1};Au.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Au.prototype.attrSet=function(e,n){const r=this.attrIndex(e),u=[e,n];r<0?this.attrPush(u):this.attrs[r]=u};Au.prototype.attrGet=function(e){const n=this.attrIndex(e);let r=null;return n>=0&&(r=this.attrs[n][1]),r};Au.prototype.attrJoin=function(e,n){const r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function c$(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}c$.prototype.Token=Au;const XL=/\r\n?|\n/g,VL=/\0/g;function qL(t){let e;e=t.src.replace(XL,`
|
|
45
|
+
`),e=e.replace(VL,"�"),t.src=e}function WL(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function YL(t){const e=t.tokens;for(let n=0,r=e.length;n<r;n++){const u=e[n];u.type==="inline"&&t.md.inline.parse(u.content,t.md,t.env,u.children)}}function GL(t){return/^<a[>\s]/i.test(t)}function HL(t){return/^<\/a\s*>/i.test(t)}function KL(t){const e=t.tokens;if(t.md.options.linkify)for(let n=0,r=e.length;n<r;n++){if(e[n].type!=="inline"||!t.md.linkify.pretest(e[n].content))continue;const u=e[n].children,i=[];let o=0;for(let s=u.length-1;s>=0;s--){const a=u[s];if(a.type==="link_close"){for(s--;u[s].level!==a.level&&u[s].type!=="link_open";)s--;continue}if(a.type==="html_inline"&&(GL(a.content)&&o>0&&o--,HL(a.content)&&o++),!(o>0)&&a.type==="text"&&t.md.linkify.test(a.content)){const l=a.content;let c=t.md.linkify.match(l);const f=[];let d=a.level,h=0;c.length>0&&c[0].index===0&&s>0&&u[s-1].type==="text_special"&&(c=c.slice(1));for(let p=0;p<c.length;p++){const m=c[p].url,g=t.md.normalizeLink(m);if(!t.md.validateLink(g))continue;let C=c[p].text;c[p].schema?c[p].schema==="mailto:"&&!/^mailto:/i.test(C)?C=t.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=t.md.normalizeLinkText(C):C=t.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,"");const b=c[p].index;if(b>h){const x=new t.Token("text","",0);x.content=l.slice(h,b),x.level=d,f.push(x)}const O=new t.Token("link_open","a",1);O.attrs=[["href",g]],O.level=d++,O.markup="linkify",O.info="auto",f.push(O);const y=new t.Token("text","",0);y.content=C,y.level=d,f.push(y);const $=new t.Token("link_close","a",-1);$.level=--d,$.markup="linkify",$.info="auto",f.push($),h=c[p].lastIndex}if(h<l.length){const p=new t.Token("text","",0);p.content=l.slice(h),p.level=d,f.push(p)}i.push({index:s,nodes:f})}}if(i.length>0){let s=u.length;for(const f of i)s+=f.nodes.length-1;const a=new Array(s);let l=0,c=0;i.reverse();for(let f=0;f<u.length;f++){const d=i[l];if(d?.index===f){for(const h of d.nodes)a[c++]=h;l++}else a[c++]=u[f]}e[n].children=a}}}const f$=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,JL=/\((c|tm|r)\)/i,eN=/\((c|tm|r)\)/ig,tN={c:"©",r:"®",tm:"™"};function nN(t,e){return tN[e.toLowerCase()]}function uN(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];r.type==="text"&&!e&&(r.content=r.content.replace(eN,nN)),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function rN(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];r.type==="text"&&!e&&f$.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&e--,r.type==="link_close"&&r.info==="auto"&&e++}}function iN(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(JL.test(t.tokens[e].content)&&uN(t.tokens[e].children),f$.test(t.tokens[e].content)&&rN(t.tokens[e].children))}const oN=/['"]/,Av=/['"]/g,Dv="’",sN=1e3;function kv(t,e,n){for(;t.length>n;){const r=t.pop();r.isSingleQuote?e.single=r.prevSameQuoteIdx:e.double=r.prevSameQuoteIdx}}function d0(t,e,n,r){t[e]||(t[e]=[]),t[e].push({pos:n,ch:r})}function aN(t,e){let n="",r=0;e.sort((u,i)=>u.pos-i.pos);for(let u=0;u<e.length;u++){const i=e[u];n+=t.slice(r,i.pos)+i.ch,r=i.pos+1}return n+t.slice(r)}function lN(t,e){let n;const r=[],u={single:-1,double:-1},i={};for(let o=0;o<t.length;o++){const s=t[o],a=t[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(kv(r,u,n+1),s.type!=="text")continue;const l=s.content;let c=0;const f=l.length;e:for(;c<f;){Av.lastIndex=c;const d=Av.exec(l);if(!d)break;let h=!0,p=!0;c=d.index+1;const m=d[0]==="'";let g=32;if(d.index-1>=0)g=l.charCodeAt(d.index-1);else for(n=o-1;n>=0&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n--)if(t[n].content){g=t[n].content.charCodeAt(t[n].content.length-1);break}let C=32;if(c<f)C=l.charCodeAt(c);else for(n=o+1;n<t.length&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n++)if(t[n].content){C=t[n].content.charCodeAt(0);break}const b=xa(g)||ya(g),O=xa(C)||ya(C),y=Ca(g),$=Ca(C);if($?h=!1:O&&(y||b||(h=!1)),y?p=!1:b&&($||O||(p=!1)),C===34&&d[0]==='"'&&g>=48&&g<=57&&(p=h=!1),h&&p&&(h=b,p=O),!h&&!p){m&&d0(i,o,d.index,Dv);continue}if(p&&(n=m?u.single:u.double,n>=0&&r[n].level===a)){const x=r[n];let _,R;m?(_=e.md.options.quotes[2],R=e.md.options.quotes[3]):(_=e.md.options.quotes[0],R=e.md.options.quotes[1]),d0(i,o,d.index,R),d0(i,x.tokenIdx,x.contentPos,_),kv(r,u,n);continue e}if(h){if(r.length>=sN)return;r.push({tokenIdx:o,contentPos:d.index,isSingleQuote:m,level:a,prevSameQuoteIdx:m?u.single:u.double}),m?u.single=r.length-1:u.double=r.length-1}else p&&m&&d0(i,o,d.index,Dv)}}Object.keys(i).forEach(function(o){t[o].content=aN(t[o].content,i[o])})}function cN(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!oN.test(t.tokens[e].content)||lN(t.tokens[e].children,t)}function fN(t){let e,n;const r=t.tokens,u=r.length;for(let i=0;i<u;i++){if(r[i].type!=="inline")continue;const o=r[i].children,s=o.length;for(e=0;e<s;e++)o[e].type==="text_special"&&(o[e].type="text");for(e=n=0;e<s;e++)o[e].type==="text"&&e+1<s&&o[e+1].type==="text"?o[e+1].content=o[e].content+o[e+1].content:(e!==n&&(o[n]=o[e]),n++);e!==n&&(o.length=n)}}const wh=[["normalize",qL],["block",WL],["inline",YL],["linkify",KL],["replacements",iN],["smartquotes",cN],["text_join",fN]];function W1(){this.ruler=new Pn;for(let t=0;t<wh.length;t++)this.ruler.push(wh[t][0],wh[t][1])}W1.prototype.process=function(t){const e=this.ruler.getRules("");for(let n=0,r=e.length;n<r;n++)e[n](t)};W1.prototype.State=c$;function nr(t,e,n,r){this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const u=this.src;for(let i=0,o=0,s=0,a=0,l=u.length,c=!1;o<l;o++){const f=u.charCodeAt(o);if(!c)if(lt(f)){s++,f===9?a+=4-a%4:a++;continue}else c=!0;(f===10||o===l-1)&&(f!==10&&o++,this.bMarks.push(i),this.eMarks.push(o),this.tShift.push(s),this.sCount.push(a),this.bsCount.push(0),c=!1,s=0,a=0,i=o+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}nr.prototype.push=function(t,e,n){const r=new Au(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};nr.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};nr.prototype.skipEmptyLines=function(e){for(let n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};nr.prototype.skipSpaces=function(e){for(let n=this.src.length;e<n;e++){const r=this.src.charCodeAt(e);if(!lt(r))break}return e};nr.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!lt(this.src.charCodeAt(--e)))return e+1;return e};nr.prototype.skipChars=function(e,n){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e};nr.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e};nr.prototype.getLines=function(e,n,r,u){if(e>=n)return"";const i=new Array(n-e);for(let o=0,s=e;s<n;s++,o++){let a=0;const l=this.bMarks[s];let c=l,f;for(s+1<n||u?f=this.eMarks[s]+1:f=this.eMarks[s];c<f&&a<r;){const d=this.src.charCodeAt(c);if(lt(d))d===9?a+=4-(a+this.bsCount[s])%4:a++;else if(c-l<this.tShift[s])a++;else break;c++}a>r?i[o]=new Array(a-r+1).join(" ")+this.src.slice(c,f):i[o]=this.src.slice(c,f)}return i.join("")};nr.prototype.Token=Au;const dN=65536;function Bh(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function Sv(t){const e=[],n=t.length;let r=0,u=t.charCodeAt(r),i=!1,o=0,s="";for(;r<n;)u===124&&(i?(s+=t.substring(o,r-1),o=r):(e.push(s+t.substring(o,r)),s="",o=r+1)),i=u===92,r++,u=t.charCodeAt(r);return e.push(s+t.substring(o)),e}function hN(t,e,n,r){if(e+2>n)return!1;let u=e+1;if(t.sCount[u]<t.blkIndent||t.sCount[u]-t.blkIndent>=4)return!1;let i=t.bMarks[u]+t.tShift[u];if(i>=t.eMarks[u])return!1;const o=t.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58||i>=t.eMarks[u])return!1;const s=t.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58&&!lt(s)||o===45&<(s))return!1;for(;i<t.eMarks[u];){const y=t.src.charCodeAt(i);if(y!==124&&y!==45&&y!==58&&!lt(y))return!1;i++}let a=Bh(t,e+1),l=a.split("|");const c=[];for(let y=0;y<l.length;y++){const $=l[y].trim();if(!$){if(y===0||y===l.length-1)continue;return!1}if(!/^:?-+:?$/.test($))return!1;$.charCodeAt($.length-1)===58?c.push($.charCodeAt(0)===58?"center":"right"):$.charCodeAt(0)===58?c.push("left"):c.push("")}if(a=Bh(t,e).trim(),a.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;l=Sv(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const f=l.length;if(f===0||f!==c.length)return!1;if(r)return!0;const d=t.parentType;t.parentType="table";const h=t.md.block.ruler.getRules("blockquote"),p=t.push("table_open","table",1),m=[e,0];p.map=m;const g=t.push("thead_open","thead",1);g.map=[e,e+1];const C=t.push("tr_open","tr",1);C.map=[e,e+1];for(let y=0;y<l.length;y++){const $=t.push("th_open","th",1);c[y]&&($.attrs=[["style","text-align:"+c[y]]]);const x=t.push("inline","",0);x.content=l[y].trim(),x.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let b,O=0;for(u=e+2;u<n&&!(t.sCount[u]<t.blkIndent);u++){let y=!1;for(let x=0,_=h.length;x<_;x++)if(h[x](t,u,n,!0)){y=!0;break}if(y||(a=Bh(t,u).trim(),!a)||t.sCount[u]-t.blkIndent>=4||(l=Sv(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),O+=f-l.length,O>dN))break;if(u===e+2){const x=t.push("tbody_open","tbody",1);x.map=b=[e+2,0]}const $=t.push("tr_open","tr",1);$.map=[u,u+1];for(let x=0;x<f;x++){const _=t.push("td_open","td",1);c[x]&&(_.attrs=[["style","text-align:"+c[x]]]);const R=t.push("inline","",0);R.content=l[x]?l[x].trim():"",R.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return b&&(t.push("tbody_close","tbody",-1),b[1]=u),t.push("table_close","table",-1),m[1]=u,t.parentType=d,t.line=u,!0}function pN(t,e,n){if(t.sCount[e]-t.blkIndent<4)return!1;let r=e+1,u=r;for(;r<n;){if(t.isEmpty(r)){r++;continue}if(t.sCount[r]-t.blkIndent>=4){r++,u=r;continue}break}t.line=u;const i=t.push("code_block","code",0);return i.content=t.getLines(e,u,4+t.blkIndent,!1)+`
|
|
46
|
+
`,i.map=[e,t.line],!0}function mN(t,e,n,r){let u=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||u+3>i)return!1;const o=t.src.charCodeAt(u);if(o!==126&&o!==96)return!1;let s=u;u=t.skipChars(u,o);let a=u-s;if(a<3)return!1;const l=t.src.slice(s,u),c=t.src.slice(u,i);if(o===96&&c.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let f=e,d=!1;for(;f++,!(f>=n||(u=s=t.bMarks[f]+t.tShift[f],i=t.eMarks[f],u<i&&t.sCount[f]<t.blkIndent));)if(t.src.charCodeAt(u)===o&&!(t.sCount[f]-t.blkIndent>=4)&&(u=t.skipChars(u,o),!(u-s<a)&&(u=t.skipSpaces(u),!(u<i)))){d=!0;break}a=t.sCount[e],t.line=f+(d?1:0);const h=t.push("fence","code",0);return h.info=c,h.content=t.getLines(e+1,f,a,!0),h.markup=l,h.map=[e,t.line],!0}function gN(t,e,n,r){let u=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];const o=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(u)!==62)return!1;if(r)return!0;const s=[],a=[],l=[],c=[],f=t.md.block.ruler.getRules("blockquote"),d=t.parentType;t.parentType="blockquote";let h=!1,p;for(p=e;p<n;p++){const O=t.sCount[p]<t.blkIndent;if(u=t.bMarks[p]+t.tShift[p],i=t.eMarks[p],u>=i)break;if(t.src.charCodeAt(u++)===62&&!O){let $=t.sCount[p]+1,x,_;t.src.charCodeAt(u)===32?(u++,$++,_=!1,x=!0):t.src.charCodeAt(u)===9?(x=!0,(t.bsCount[p]+$)%4===3?(u++,$++,_=!1):_=!0):x=!1;let R=$;for(s.push(t.bMarks[p]),t.bMarks[p]=u;u<i;){const ue=t.src.charCodeAt(u);if(lt(ue))ue===9?R+=4-(R+t.bsCount[p]+(_?1:0))%4:R++;else break;u++}h=u>=i,a.push(t.bsCount[p]),t.bsCount[p]=t.sCount[p]+1+(x?1:0),l.push(t.sCount[p]),t.sCount[p]=R-$,c.push(t.tShift[p]),t.tShift[p]=u-t.bMarks[p];continue}if(h)break;let y=!1;for(let $=0,x=f.length;$<x;$++)if(f[$](t,p,n,!0)){y=!0;break}if(y){t.lineMax=p,t.blkIndent!==0&&(s.push(t.bMarks[p]),a.push(t.bsCount[p]),c.push(t.tShift[p]),l.push(t.sCount[p]),t.sCount[p]-=t.blkIndent);break}s.push(t.bMarks[p]),a.push(t.bsCount[p]),c.push(t.tShift[p]),l.push(t.sCount[p]),t.sCount[p]=-1}const m=t.blkIndent;t.blkIndent=0;const g=t.push("blockquote_open","blockquote",1);g.markup=">";const C=[e,0];g.map=C,t.md.block.tokenize(t,e,p);const b=t.push("blockquote_close","blockquote",-1);b.markup=">",t.lineMax=o,t.parentType=d,C[1]=t.line;for(let O=0;O<c.length;O++)t.bMarks[O+e]=s[O],t.tShift[O+e]=c[O],t.sCount[O+e]=l[O],t.bsCount[O+e]=a[O];return t.blkIndent=m,!0}function ON(t,e,n,r){const u=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let i=t.bMarks[e]+t.tShift[e];const o=t.src.charCodeAt(i++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;i<u;){const l=t.src.charCodeAt(i++);if(l!==o&&!lt(l))return!1;l===o&&s++}if(s<3)return!1;if(r)return!0;t.line=e+1;const a=t.push("hr","hr",0);return a.map=[e,t.line],a.markup=Array(s+1).join(String.fromCharCode(o)),!0}function _v(t,e){const n=t.eMarks[e];let r=t.bMarks[e]+t.tShift[e];const u=t.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const i=t.src.charCodeAt(r);if(!lt(i))return-1}return r}function wv(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];let u=n;if(u+1>=r)return-1;let i=t.src.charCodeAt(u++);if(i<48||i>57)return-1;for(;;){if(u>=r)return-1;if(i=t.src.charCodeAt(u++),i>=48&&i<=57){if(u-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return u<r&&(i=t.src.charCodeAt(u),!lt(i))?-1:u}function bN(t,e){const n=t.level+2;for(let r=e+2,u=t.tokens.length-2;r<u;r++)t.tokens[r].level===n&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}function vN(t,e,n,r){let u,i,o,s,a=e,l=!0;if(t.sCount[a]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[a]-t.listIndent>=4&&t.sCount[a]<t.blkIndent)return!1;let c=!1;r&&t.parentType==="paragraph"&&t.sCount[a]>=t.blkIndent&&(c=!0);let f,d,h;if((h=wv(t,a))>=0){if(f=!0,o=t.bMarks[a]+t.tShift[a],d=Number(t.src.slice(o,h-1)),c&&d!==1)return!1}else if((h=_v(t,a))>=0)f=!1;else return!1;if(c&&t.skipSpaces(h)>=t.eMarks[a])return!1;if(r)return!0;const p=t.src.charCodeAt(h-1),m=t.tokens.length;f?(s=t.push("ordered_list_open","ol",1),d!==1&&(s.attrs=[["start",d]])):s=t.push("bullet_list_open","ul",1);const g=[a,0];s.map=g,s.markup=String.fromCharCode(p);let C=!1;const b=t.md.block.ruler.getRules("list"),O=t.parentType;for(t.parentType="list";a<n;){i=h,u=t.eMarks[a];const y=t.sCount[a]+h-(t.bMarks[a]+t.tShift[a]);let $=y;for(;i<u;){const te=t.src.charCodeAt(i);if(te===9)$+=4-($+t.bsCount[a])%4;else if(te===32)$++;else break;i++}const x=i;let _;x>=u?_=1:_=$-y,_>4&&(_=1);const R=y+_;s=t.push("list_item_open","li",1),s.markup=String.fromCharCode(p);const ue=[a,0];s.map=ue,f&&(s.info=t.src.slice(o,h-1));const re=t.tight,oe=t.tShift[a],ee=t.sCount[a],Ee=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=R,t.tight=!0,t.tShift[a]=x-t.bMarks[a],t.sCount[a]=$,x>=u&&t.isEmpty(a+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,a,n,!0),(!t.tight||C)&&(l=!1),C=t.line-a>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=Ee,t.tShift[a]=oe,t.sCount[a]=ee,t.tight=re,s=t.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),a=t.line,ue[1]=a,a>=n||t.sCount[a]<t.blkIndent||t.sCount[a]-t.blkIndent>=4)break;let W=!1;for(let te=0,he=b.length;te<he;te++)if(b[te](t,a,n,!0)){W=!0;break}if(W)break;if(f){if(h=wv(t,a),h<0)break;o=t.bMarks[a]+t.tShift[a]}else if(h=_v(t,a),h<0)break;if(p!==t.src.charCodeAt(h-1))break}return f?s=t.push("ordered_list_close","ol",-1):s=t.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(p),g[1]=a,t.line=a,t.parentType=O,l&&bN(t,m),!0}function CN(t,e,n,r){let u=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],o=e+1;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(u)!==91)return!1;function s(b){const O=t.lineMax;if(b>=O||t.isEmpty(b))return null;let y=!1;if(t.sCount[b]-t.blkIndent>3&&(y=!0),t.sCount[b]<0&&(y=!0),!y){const _=t.md.block.ruler.getRules("reference"),R=t.parentType;t.parentType="reference";let ue=!1;for(let re=0,oe=_.length;re<oe;re++)if(_[re](t,b,O,!0)){ue=!0;break}if(t.parentType=R,ue)return null}const $=t.bMarks[b]+t.tShift[b],x=t.eMarks[b];return t.src.slice($,x+1)}let a=t.src.slice(u,i+1);i=a.length;let l=-1;for(u=1;u<i;u++){const b=a.charCodeAt(u);if(b===91)return!1;if(b===93){l=u;break}else if(b===10){const O=s(o);O!==null&&(a+=O,i=a.length,o++)}else if(b===92&&(u++,u<i&&a.charCodeAt(u)===10)){const O=s(o);O!==null&&(a+=O,i=a.length,o++)}}if(l<0||a.charCodeAt(l+1)!==58)return!1;for(u=l+2;u<i;u++){const b=a.charCodeAt(u);if(b===10){const O=s(o);O!==null&&(a+=O,i=a.length,o++)}else if(!lt(b))break}const c=t.md.helpers.parseLinkDestination(a,u,i);if(!c.ok)return!1;const f=t.md.normalizeLink(c.str);if(!t.md.validateLink(f))return!1;u=c.pos;const d=u,h=o,p=u;for(;u<i;u++){const b=a.charCodeAt(u);if(b===10){const O=s(o);O!==null&&(a+=O,i=a.length,o++)}else if(!lt(b))break}let m=t.md.helpers.parseLinkTitle(a,u,i);for(;m.can_continue;){const b=s(o);if(b===null)break;a+=b,u=i,i=a.length,o++,m=t.md.helpers.parseLinkTitle(a,u,i,m)}let g;for(u<i&&p!==u&&m.ok?(g=m.str,u=m.pos):(g="",u=d,o=h);u<i;){const b=a.charCodeAt(u);if(!lt(b))break;u++}if(u<i&&a.charCodeAt(u)!==10&&g)for(g="",u=d,o=h;u<i;){const b=a.charCodeAt(u);if(!lt(b))break;u++}if(u<i&&a.charCodeAt(u)!==10)return!1;const C=gf(a.slice(1,l));return C?(r||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[C]>"u"&&(t.env.references[C]={title:g,href:f}),t.line=o),!0):!1}const yN=["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"],xN="[a-zA-Z_:][a-zA-Z0-9:._-]*",EN="[^\"'=<>`\\x00-\\x20]+",$N="'[^']*'",AN='"[^"]*"',DN="(?:"+EN+"|"+$N+"|"+AN+")",kN="(?:\\s+"+xN+"(?:\\s*=\\s*"+DN+")?)",d$="<[A-Za-z][A-Za-z0-9\\-]*"+kN+"*\\s*\\/?>",h$="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",SN="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",_N="<[?][\\s\\S]*?[?]>",wN="<![A-Za-z][^>]*>",BN="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",PN=new RegExp("^(?:"+d$+"|"+h$+"|"+SN+"|"+_N+"|"+wN+"|"+BN+")"),FN=new RegExp("^(?:"+d$+"|"+h$+")"),pi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+yN.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(FN.source+"\\s*$"),/^$/,!1]];function QN(t,e,n,r){let u=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(u)!==60)return!1;let o=t.src.slice(u,i),s=0;for(;s<pi.length&&!pi[s][0].test(o);s++);if(s===pi.length)return!1;if(r)return pi[s][2];let a=e+1;const l=pi[s][1].test("");if(!pi[s][1].test(o)){for(;a<n&&!(t.sCount[a]<t.blkIndent&&(l||!t.isEmpty(a)));a++)if(u=t.bMarks[a]+t.tShift[a],i=t.eMarks[a],o=t.src.slice(u,i),pi[s][1].test(o)){o.length!==0&&a++;break}}t.line=a;const c=t.push("html_block","",0);return c.map=[e,a],c.content=t.getLines(e,a,t.blkIndent,!0),!0}function TN(t,e,n,r){let u=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.src.charCodeAt(u);if(o!==35||u>=i)return!1;let s=1;for(o=t.src.charCodeAt(++u);o===35&&u<i&&s<=6;)s++,o=t.src.charCodeAt(++u);if(s>6||u<i&&!lt(o))return!1;if(r)return!0;i=t.skipSpacesBack(i,u);const a=t.skipCharsBack(i,35,u);a>u&<(t.src.charCodeAt(a-1))&&(i=a),t.line=e+1;const l=t.push("heading_open","h"+String(s),1);l.markup="########".slice(0,s),l.map=[e,t.line];const c=t.push("inline","",0);c.content=Of(t.src.slice(u,i)),c.map=[e,t.line],c.children=[];const f=t.push("heading_close","h"+String(s),-1);return f.markup="########".slice(0,s),!0}function IN(t,e,n){const r=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const u=t.parentType;t.parentType="paragraph";let i=0,o,s=e+1;for(;s<n&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3)continue;if(t.sCount[s]>=t.blkIndent){let h=t.bMarks[s]+t.tShift[s];const p=t.eMarks[s];if(h<p&&(o=t.src.charCodeAt(h),(o===45||o===61)&&(h=t.skipChars(h,o),h=t.skipSpaces(h),h>=p))){i=o===61?1:2;break}}if(t.sCount[s]<0)continue;let d=!1;for(let h=0,p=r.length;h<p;h++)if(r[h](t,s,n,!0)){d=!0;break}if(d)break}if(!i)return t.parentType=u,!1;const a=Of(t.getLines(e,s,t.blkIndent,!1));t.line=s+1;const l=t.push("heading_open","h"+String(i),1);l.markup=String.fromCharCode(o),l.map=[e,t.line];const c=t.push("inline","",0);c.content=a,c.map=[e,t.line-1],c.children=[];const f=t.push("heading_close","h"+String(i),-1);return f.markup=String.fromCharCode(o),t.parentType=u,!0}function zN(t,e,n){const r=t.md.block.ruler.getRules("paragraph"),u=t.parentType;let i=e+1;for(t.parentType="paragraph";i<n&&!t.isEmpty(i);i++){if(t.sCount[i]-t.blkIndent>3||t.sCount[i]<0)continue;let l=!1;for(let c=0,f=r.length;c<f;c++)if(r[c](t,i,n,!0)){l=!0;break}if(l)break}const o=Of(t.getLines(e,i,t.blkIndent,!1));t.line=i;const s=t.push("paragraph_open","p",1);s.map=[e,t.line];const a=t.push("inline","",0);return a.content=o,a.map=[e,t.line],a.children=[],t.push("paragraph_close","p",-1),t.parentType=u,!0}const h0=[["table",hN,["paragraph","reference"]],["code",pN],["fence",mN,["paragraph","reference","blockquote","list"]],["blockquote",gN,["paragraph","reference","blockquote","list"]],["hr",ON,["paragraph","reference","blockquote","list"]],["list",vN,["paragraph","reference","blockquote"]],["reference",CN],["html_block",QN,["paragraph","reference","blockquote"]],["heading",TN,["paragraph","reference","blockquote"]],["lheading",IN],["paragraph",zN]];function bf(){this.ruler=new Pn;for(let t=0;t<h0.length;t++)this.ruler.push(h0[t][0],h0[t][1],{alt:(h0[t][2]||[]).slice()})}bf.prototype.tokenize=function(t,e,n){const r=this.ruler.getRules(""),u=r.length,i=t.md.options.maxNesting;let o=e,s=!1;for(;o<n&&(t.line=o=t.skipEmptyLines(o),!(o>=n||t.sCount[o]<t.blkIndent));){if(t.level>=i){t.line=n;break}const a=t.line;let l=!1;for(let c=0;c<u;c++)if(l=r[c](t,o,n,!1),l){if(a>=t.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),o=t.line,o<n&&t.isEmpty(o)&&(s=!0,o++,t.line=o)}};bf.prototype.parse=function(t,e,n,r){if(!t)return;const u=new this.State(t,e,n,r);this.tokenize(u,u.line,u.lineMax)};bf.prototype.State=nr;function qa(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}qa.prototype.pushPending=function(){const t=new Au("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};qa.prototype.push=function(t,e,n){this.pending&&this.pushPending();const r=new Au(t,e,n);let u=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r};qa.prototype.scanDelims=function(t,e){const n=this.posMax,r=this.src.charCodeAt(t);let u;if(t===0)u=32;else if(t===1)u=this.src.charCodeAt(0),(u&63488)===55296&&(u=65533);else if(u=this.src.charCodeAt(t-1),(u&64512)===56320){const g=this.src.charCodeAt(t-2);u=(g&64512)===55296?65536+(g-55296<<10)+(u-56320):65533}else(u&64512)===55296&&(u=65533);let i=t;for(;i<n&&this.src.charCodeAt(i)===r;)i++;const o=i-t;let s=i<n?this.src.charCodeAt(i):32;if((s&64512)===55296){const g=this.src.charCodeAt(i+1);s=(g&64512)===56320?65536+(s-55296<<10)+(g-56320):65533}else(s&64512)===56320&&(s=65533);const a=xa(u)||ya(u),l=xa(s)||ya(s),c=Ca(u),f=Ca(s),d=!f&&(!l||c||a),h=!c&&(!a||f||l);return{can_open:d&&(e||!h||a),can_close:h&&(e||!d||l),length:o}};qa.prototype.Token=Au;function ZN(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function RN(t,e){let n=t.pos;for(;n<t.posMax&&!ZN(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}function jN(t){return t>=65&&t<=90||t>=97&&t<=122}function MN(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===45||t===46}function LN(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;const n=t.pos,r=t.posMax;if(n+3>r||t.src.charCodeAt(n)!==58||t.src.charCodeAt(n+1)!==47||t.src.charCodeAt(n+2)!==47)return!1;const u=n-Math.min(10,t.pending.length,n);let i=n;for(;i>u&&MN(t.src.charCodeAt(i-1));)i--;if(i===n||!jN(t.src.charCodeAt(i)))return!1;const o=n-i,s=t.md.linkify.matchAtStart(t.src.slice(i));if(!s)return!1;let a=s.url;if(a.length<=o)return!1;let l=a.length;for(;l>0&&a.charCodeAt(l-1)===42;)l--;l!==a.length&&(a=a.slice(0,l));const c=t.md.normalizeLink(a);if(!t.md.validateLink(c))return!1;if(!e){t.pending=t.pending.slice(0,-o);const f=t.push("link_open","a",1);f.attrs=[["href",c]],f.markup="linkify",f.info="auto";const d=t.push("text","",0);d.content=t.md.normalizeLinkText(a);const h=t.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return t.pos+=a.length-o,!0}function NN(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==10)return!1;const r=t.pending.length-1,u=t.posMax;if(!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){let i=r-1;for(;i>=1&&t.pending.charCodeAt(i-1)===32;)i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n<u&<(t.src.charCodeAt(n));)n++;return t.pos=n,!0}const Y1=[];for(let t=0;t<256;t++)Y1.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Y1[t.charCodeAt(0)]=1});function UN(t,e){let n=t.pos;const r=t.posMax;if(t.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=t.src.charCodeAt(n);if(u===10){for(e||t.push("hardbreak","br",0),n++;n<r&&(u=t.src.charCodeAt(n),!!lt(u));)n++;return t.pos=n,!0}if(u===32){if(!e){const s=t.push("text_special","",0);s.content="\\",s.markup="\\",s.info="escape"}return t.pos=n,!0}let i=t.src[n];if(u>=55296&&u<=56319&&n+1<r){const s=t.src.charCodeAt(n+1);s>=56320&&s<=57343&&(i+=t.src[n+1],n++)}const o="\\"+i;if(!e){const s=t.push("text_special","",0);u<256&&Y1[u]!==0?s.content=i:s.content=o,s.markup=o,s.info="escape"}return t.pos=n+1,!0}function XN(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;const u=n;n++;const i=t.posMax;for(;n<i&&t.src.charCodeAt(n)===96;)n++;const o=t.src.slice(u,n),s=o.length;if(t.backticksScanned&&(t.backticks[s]||0)<=u)return e||(t.pending+=o),t.pos+=s,!0;let a=n,l;for(;(l=t.src.indexOf("`",a))!==-1;){for(a=l+1;a<i&&t.src.charCodeAt(a)===96;)a++;const c=a-l;if(c===s){if(!e){const f=t.push("code_inline","code",0);f.markup=o,f.content=t.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=a,!0}t.backticks[c]=l}return t.backticksScanned=!0,e||(t.pending+=o),t.pos+=s,!0}function VN(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e||r!==126)return!1;const u=t.scanDelims(t.pos,!0);let i=u.length;const o=String.fromCharCode(r);if(i<2)return!1;let s;i%2&&(s=t.push("text","",0),s.content=o,i--);for(let a=0;a<i;a+=2)s=t.push("text","",0),s.content=o+o,t.delimiters.push({marker:r,length:0,token:t.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return t.pos+=u.length,!0}function Bv(t,e){let n;const r=[],u=e.length;for(let i=0;i<u;i++){const o=e[i];if(o.marker!==126||o.end===-1)continue;const s=e[o.end];n=t.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=t.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){const i=r.pop();let o=i+1;for(;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,i!==o&&(n=t.tokens[o],t.tokens[o]=t.tokens[i],t.tokens[i]=n)}}function qN(t){const e=t.tokens_meta,n=t.tokens_meta.length;Bv(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Bv(t,e[r].delimiters)}const p$={tokenize:VN,postProcess:qN};function WN(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e||r!==95&&r!==42)return!1;const u=t.scanDelims(t.pos,r===42);for(let i=0;i<u.length;i++){const o=t.push("text","",0);o.content=String.fromCharCode(r),t.delimiters.push({marker:r,length:u.length,token:t.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return t.pos+=u.length,!0}function Pv(t,e){const n=e.length;for(let r=n-1;r>=0;r--){const u=e[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const i=e[u.end],o=r>0&&e[r-1].end===u.end+1&&e[r-1].marker===u.marker&&e[r-1].token===u.token-1&&e[u.end+1].token===i.token+1,s=String.fromCharCode(u.marker),a=t.tokens[u.token];a.type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?s+s:s,a.content="";const l=t.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?s+s:s,l.content="",o&&(t.tokens[e[r-1].token].content="",t.tokens[e[u.end+1].token].content="",r--)}}function YN(t){const e=t.tokens_meta,n=t.tokens_meta.length;Pv(t,t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Pv(t,e[r].delimiters)}const m$={tokenize:WN,postProcess:YN};function GN(t,e){let n,r,u,i,o="",s="",a=t.pos,l=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;const c=t.pos,f=t.posMax,d=t.pos+1,h=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(h<0)return!1;let p=h+1;if(p<f&&t.src.charCodeAt(p)===40){for(l=!1,p++;p<f&&(n=t.src.charCodeAt(p),!(!lt(n)&&n!==10));p++);if(p>=f)return!1;if(a=p,u=t.md.helpers.parseLinkDestination(t.src,p,t.posMax),u.ok){for(o=t.md.normalizeLink(u.str),t.md.validateLink(o)?p=u.pos:o="",a=p;p<f&&(n=t.src.charCodeAt(p),!(!lt(n)&&n!==10));p++);if(u=t.md.helpers.parseLinkTitle(t.src,p,t.posMax),p<f&&a!==p&&u.ok)for(s=u.str,p=u.pos;p<f&&(n=t.src.charCodeAt(p),!(!lt(n)&&n!==10));p++);}(p>=f||t.src.charCodeAt(p)!==41)&&(l=!0),p++}if(l){if(typeof t.env.references>"u")return!1;if(p<f&&t.src.charCodeAt(p)===91?(a=p+1,p=t.md.helpers.parseLinkLabel(t,p),p>=0?r=t.src.slice(a,p++):p=h+1):p=h+1,r||(r=t.src.slice(d,h)),i=t.env.references[gf(r)],!i)return t.pos=c,!1;o=i.href,s=i.title}if(!e){t.pos=d,t.posMax=h;const m=t.push("link_open","a",1),g=[["href",o]];m.attrs=g,s&&g.push(["title",s]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=p,t.posMax=f,!0}function HN(t,e){let n,r,u,i,o,s,a,l,c="";const f=t.pos,d=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const h=t.pos+2,p=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(p<0)return!1;if(i=p+1,i<d&&t.src.charCodeAt(i)===40){for(i++;i<d&&(n=t.src.charCodeAt(i),!(!lt(n)&&n!==10));i++);if(i>=d)return!1;for(l=i,s=t.md.helpers.parseLinkDestination(t.src,i,t.posMax),s.ok&&(c=t.md.normalizeLink(s.str),t.md.validateLink(c)?i=s.pos:c=""),l=i;i<d&&(n=t.src.charCodeAt(i),!(!lt(n)&&n!==10));i++);if(s=t.md.helpers.parseLinkTitle(t.src,i,t.posMax),i<d&&l!==i&&s.ok)for(a=s.str,i=s.pos;i<d&&(n=t.src.charCodeAt(i),!(!lt(n)&&n!==10));i++);else a="";if(i>=d||t.src.charCodeAt(i)!==41)return t.pos=f,!1;i++}else{if(typeof t.env.references>"u")return!1;if(i<d&&t.src.charCodeAt(i)===91?(l=i+1,i=t.md.helpers.parseLinkLabel(t,i),i>=0?u=t.src.slice(l,i++):i=p+1):i=p+1,u||(u=t.src.slice(h,p)),o=t.env.references[gf(u)],!o)return t.pos=f,!1;c=o.href,a=o.title}if(!e){r=t.src.slice(h,p);const m=[];t.md.inline.parse(r,t.md,t.env,m);const g=t.push("image","img",0),C=[["src",c],["alt",""]];g.attrs=C,g.children=m,g.content=r,a&&C.push(["title",a])}return t.pos=i,t.posMax=d,!0}const KN=/^([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])?)*)$/,JN=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function eU(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==60)return!1;const r=t.pos,u=t.posMax;for(;;){if(++n>=u)return!1;const o=t.src.charCodeAt(n);if(o===60)return!1;if(o===62)break}const i=t.src.slice(r+1,n);if(JN.test(i)){const o=t.md.normalizeLink(i);if(!t.md.validateLink(o))return!1;if(!e){const s=t.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const a=t.push("text","",0);a.content=t.md.normalizeLinkText(i);const l=t.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return t.pos+=i.length+2,!0}if(KN.test(i)){const o=t.md.normalizeLink("mailto:"+i);if(!t.md.validateLink(o))return!1;if(!e){const s=t.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const a=t.push("text","",0);a.content=t.md.normalizeLinkText(i);const l=t.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return t.pos+=i.length+2,!0}return!1}function tU(t){return/^<a[>\s]/i.test(t)}function nU(t){return/^<\/a\s*>/i.test(t)}function uU(t){const e=t|32;return e>=97&&e<=122}function rU(t,e){if(!t.md.options.html)return!1;const n=t.posMax,r=t.pos;if(t.src.charCodeAt(r)!==60||r+2>=n)return!1;const u=t.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!uU(u))return!1;const i=t.src.slice(r).match(PN);if(!i)return!1;if(!e){const o=t.push("html_inline","",0);o.content=i[0],tU(o.content)&&t.linkLevel++,nU(o.content)&&t.linkLevel--}return t.pos+=i[0].length,!0}const iU=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,oU=/^&([a-z][a-z0-9]{1,31});/i;function sU(t,e){const n=t.pos,r=t.posMax;if(t.src.charCodeAt(n)!==38||n+1>=r)return!1;if(t.src.charCodeAt(n+1)===35){const i=t.src.slice(n).match(iU);if(i){if(!e){const o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=t.push("text_special","",0);s.content=q1(o)?va(o):va(65533),s.markup=i[0],s.info="entity"}return t.pos+=i[0].length,!0}}else{const i=t.src.slice(n).match(oU);if(i){const o=EL(i[0]);if(o!==i[0]){if(!e){const s=t.push("text_special","",0);s.content=o,s.markup=i[0],s.info="entity"}return t.pos+=i[0].length,!0}}}return!1}function Fv(t){const e={},n=t.length;if(!n)return;let r=0,u=-2;const i=[];for(let o=0;o<n;o++){const s=t[o];if(i.push(0),(t[r].marker!==s.marker||u!==s.token-1)&&(r=o),u=s.token,s.length=s.length||0,!s.close)continue;e.hasOwnProperty(s.marker)||(e[s.marker]=[-1,-1,-1,-1,-1,-1]);const a=e[s.marker][(s.open?3:0)+s.length%3];let l=r-i[r]-1,c=l;for(;l>a;l-=i[l]+1){const f=t[l];if(f.marker===s.marker&&f.open&&f.end<0){let d=!1;if((f.close||s.open)&&(f.length+s.length)%3===0&&(f.length%3!==0||s.length%3!==0)&&(d=!0),!d){const h=l>0&&!t[l-1].open?i[l-1]+1:0;i[o]=o-l+h,i[l]=h,s.open=!1,f.end=o,f.close=!1,c=-1,u=-2;break}}}c!==-1&&(e[s.marker][(s.open?3:0)+(s.length||0)%3]=c)}}function aU(t){const e=t.tokens_meta,n=t.tokens_meta.length;Fv(t.delimiters);for(let r=0;r<n;r++)e[r]&&e[r].delimiters&&Fv(e[r].delimiters)}function lU(t){let e,n,r=0;const u=t.tokens,i=t.tokens.length;for(e=n=0;e<i;e++)u[e].nesting<0&&r--,u[e].level=r,u[e].nesting>0&&r++,u[e].type==="text"&&e+1<i&&u[e+1].type==="text"?u[e+1].content=u[e].content+u[e+1].content:(e!==n&&(u[n]=u[e]),n++);e!==n&&(u.length=n)}const Ph=[["text",RN],["linkify",LN],["newline",NN],["escape",UN],["backticks",XN],["strikethrough",p$.tokenize],["emphasis",m$.tokenize],["link",GN],["image",HN],["autolink",eU],["html_inline",rU],["entity",sU]],Fh=[["balance_pairs",aU],["strikethrough",p$.postProcess],["emphasis",m$.postProcess],["fragments_join",lU]];function Wa(){this.ruler=new Pn;for(let t=0;t<Ph.length;t++)this.ruler.push(Ph[t][0],Ph[t][1]);this.ruler2=new Pn;for(let t=0;t<Fh.length;t++)this.ruler2.push(Fh[t][0],Fh[t][1])}Wa.prototype.skipToken=function(t){const e=t.pos,n=this.ruler.getRules(""),r=n.length,u=t.md.options.maxNesting,i=t.cache;if(typeof i[e]<"u"){t.pos=i[e];return}let o=!1;if(t.level<u){for(let s=0;s<r;s++)if(t.level++,o=n[s](t,!0),t.level--,o){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;o||t.pos++,i[e]=t.pos};Wa.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,r=t.posMax,u=t.md.options.maxNesting;for(;t.pos<r;){const i=t.pos;let o=!1;if(t.level<u){for(let s=0;s<n;s++)if(o=e[s](t,!1),o){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(t.pos>=r)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Wa.prototype.parse=function(t,e,n,r){const u=new this.State(t,e,n,r);this.tokenize(u);const i=this.ruler2.getRules(""),o=i.length;for(let s=0;s<o;s++)i[s](u)};Wa.prototype.State=qa;function cU(t){const e={};t=t||{},e.src_Any=n$.source,e.src_Cc=u$.source,e.src_Z=i$.source,e.src_P=X1.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const n="[><|]";return e.src_pseudo_letter=`(?:(?!${n}|${e.src_ZPCc})${e.src_Any})`,e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth=`(?:(?:(?!${e.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator=`(?=$|${n}|${e.src_ZPCc})(?!${t["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${e.src_ZPCc}))`,e.src_path=`(?:[/?#](?:(?!${e.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${e.src_ZCc}|\\]).)*\\]|\\((?:(?!${e.src_ZCc}|[)]).)*\\)|\\{(?:(?!${e.src_ZCc}|[}]).)*\\}|\\"(?:(?!${e.src_ZCc}|["]).)+\\"|\\'(?:(?!${e.src_ZCc}|[']).)+\\'|\\'(?=${e.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${e.src_ZCc}|[.]|$)|`+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${e.src_ZCc}|$)|;(?!${e.src_ZCc}|$)|\\!+(?!${e.src_ZCc}|[!]|$)|\\?(?!${e.src_ZCc}|[?]|$))+|\\/)?`,e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+`|${e.src_pseudo_letter}{1,63})`,e.src_domain="(?:"+e.src_xn+`|(?:${e.src_pseudo_letter})|(?:${e.src_pseudo_letter}(?:-|${e.src_pseudo_letter}){0,61}${e.src_pseudo_letter}))`,e.src_host=`(?:(?:(?:(?:${e.src_domain})\\.)*${e.src_domain}))`,e.tpl_host_fuzzy="(?:"+e.src_ip4+`|(?:(?:(?:${e.src_domain})\\.)+(?:%TLDS%)))`,e.tpl_host_no_ip_fuzzy=`(?:(?:(?:${e.src_domain})\\.)+(?:%TLDS%))`,e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${e.src_ZPCc}|>|$))`,e.tpl_email_fuzzy=`(^|${n}|"|\\(|${e.src_ZCc})(${e.src_email_name}@${e.tpl_host_fuzzy_strict})`,e.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${e.src_ZPCc}))((?![$+<=>^\`||])${e.tpl_host_port_fuzzy_strict}${e.src_path})`,e.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${e.src_ZPCc}))((?![$+<=>^\`||])${e.tpl_host_port_no_ip_fuzzy_strict}${e.src_path})`,e}function cm(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function vf(t){return Object.prototype.toString.call(t)}function fU(t){return vf(t)==="[object String]"}function dU(t){return vf(t)==="[object Object]"}function hU(t){return vf(t)==="[object RegExp]"}function Qv(t){return vf(t)==="[object Function]"}function pU(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const g$={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function mU(t){return Object.keys(t||{}).reduce(function(e,n){return e||g$.hasOwnProperty(n)},!1)}const gU={"http:":{validate:function(t,e,n){const r=t.slice(e);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},OU="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",bU="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function vU(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Tv(){return function(t,e){e.normalize(t)}}function Sc(t){const e=t.re=cU(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(OU),n.push(e.src_xn),e.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.email_fuzzy_global=RegExp(r(e.tpl_email_fuzzy),"ig"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_fuzzy_global=RegExp(r(e.tpl_link_fuzzy),"ig"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.link_no_ip_fuzzy_global=RegExp(r(e.tpl_link_no_ip_fuzzy),"ig"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");const u=[];t.__compiled__={};function i(s,a){throw new Error(`(LinkifyIt) Invalid schema "${s}": ${a}`)}Object.keys(t.__schemas__).forEach(function(s){const a=t.__schemas__[s];if(a===null)return;const l={validate:null,link:null};if(t.__compiled__[s]=l,dU(a)){hU(a.validate)?l.validate=vU(a.validate):Qv(a.validate)?l.validate=a.validate:i(s,a),Qv(a.normalize)?l.normalize=a.normalize:a.normalize?i(s,a):l.normalize=Tv();return}if(fU(a)){u.push(s);return}i(s,a)}),u.forEach(function(s){t.__compiled__[t.__schemas__[s]]&&(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize)}),t.__compiled__[""]={validate:null,normalize:Tv()};const o=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s]}).map(pU).join("|");t.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${e.src_ZPCc}))(${o})`,"i"),t.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${e.src_ZPCc}))(${o})`,"ig"),t.re.schema_at_start=RegExp(`^${t.re.schema_search.source}`,"i"),t.re.pretest=RegExp(`(${t.re.schema_test.source})|(${t.re.host_fuzzy_test.source})|@`,"i")}function O$(t,e,n,r){const u=t.slice(n,r);this.schema=e.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=u,this.text=u,this.url=u}function Un(t,e){if(!(this instanceof Un))return new Un(t,e);e||mU(t)&&(e=t,t={}),this.__opts__=cm({},g$,e),this.__schemas__=cm({},gU,t),this.__compiled__={},this.__tlds__=bU,this.__tlds_replaced__=!1,this.re={},Sc(this)}Un.prototype.add=function(e,n){return this.__schemas__[e]=n,Sc(this),this};Un.prototype.set=function(e){return this.__opts__=cm(this.__opts__,e),this};Un.prototype.test=function(e){if(!e.length)return!1;let n,r;if(this.re.schema_test.test(e)){for(r=this.re.schema_search,r.lastIndex=0;(n=r.exec(e))!==null;)if(this.testSchemaAt(e,n[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&e.match(this.re.email_fuzzy)!==null)};Un.prototype.pretest=function(e){return this.re.pretest.test(e)};Un.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};Un.prototype.match=function(e){const n=[],r=[],u=[],i=[];let o,s,a;function l(d,h){return d?h?d.index!==h.index?d.index<h.index?d:h:d.lastIndex>=h.lastIndex?d:h:d:h}if(!e.length)return null;if(this.re.schema_test.test(e))for(a=this.re.schema_search,a.lastIndex=0;(o=a.exec(e))!==null;)s=this.testSchemaAt(e,o[2],a.lastIndex),s&&r.push({schema:o[2],index:o.index+o[1].length,lastIndex:o.index+o[0].length+s});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(a=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,a.lastIndex=0;(o=a.exec(e))!==null;)u.push({schema:"",index:o.index+o[1].length,lastIndex:o.index+o[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(a=this.re.email_fuzzy_global,a.lastIndex=0;(o=a.exec(e))!==null;)i.push({schema:"mailto:",index:o.index+o[1].length,lastIndex:o.index+o[0].length});const c=[0,0,0];let f=0;for(;;){const d=[r[c[0]],i[c[1]],u[c[2]]],h=l(l(d[0],d[1]),d[2]);if(!h)break;if(h===d[0]?c[0]++:h===d[1]?c[1]++:c[2]++,h.index<f)continue;const p=new O$(e,h.schema,h.index,h.lastIndex);this.__compiled__[p.schema].normalize(p,this),n.push(p),f=h.lastIndex}return n.length?n:null};Un.prototype.matchAtStart=function(e){if(!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const r=this.testSchemaAt(e,n[2],n[0].length);if(!r)return null;const u=new O$(e,n[2],n.index+n[1].length,n.index+n[0].length+r);return this.__compiled__[u.schema].normalize(u,this),u};Un.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,u,i){return r!==i[u-1]}).reverse(),Sc(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Sc(this),this)};Un.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)};Un.prototype.onCompile=function(){};const Co=2147483647,Uu=36,G1=1,Ea=26,CU=38,yU=700,b$=72,v$=128,C$="-",xU=/^xn--/,EU=/[^\0-\x7F]/,$U=/[\x2E\u3002\uFF0E\uFF61]/g,AU={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Qh=Uu-G1,Xu=Math.floor,Th=String.fromCharCode;function Zr(t){throw new RangeError(AU[t])}function DU(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function y$(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace($U,".");const u=t.split("."),i=DU(u,e).join(".");return r+i}function x$(t){const e=[];let n=0;const r=t.length;for(;n<r;){const u=t.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const i=t.charCodeAt(n++);(i&64512)==56320?e.push(((u&1023)<<10)+(i&1023)+65536):(e.push(u),n--)}else e.push(u)}return e}const kU=t=>String.fromCodePoint(...t),SU=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Uu},Iv=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},E$=function(t,e,n){let r=0;for(t=n?Xu(t/yU):t>>1,t+=Xu(t/e);t>Qh*Ea>>1;r+=Uu)t=Xu(t/Qh);return Xu(r+(Qh+1)*t/(t+CU))},$$=function(t){const e=[],n=t.length;let r=0,u=v$,i=b$,o=t.lastIndexOf(C$);o<0&&(o=0);for(let s=0;s<o;++s)t.charCodeAt(s)>=128&&Zr("not-basic"),e.push(t.charCodeAt(s));for(let s=o>0?o+1:0;s<n;){const a=r;for(let c=1,f=Uu;;f+=Uu){s>=n&&Zr("invalid-input");const d=SU(t.charCodeAt(s++));d>=Uu&&Zr("invalid-input"),d>Xu((Co-r)/c)&&Zr("overflow"),r+=d*c;const h=f<=i?G1:f>=i+Ea?Ea:f-i;if(d<h)break;const p=Uu-h;c>Xu(Co/p)&&Zr("overflow"),c*=p}const l=e.length+1;i=E$(r-a,l,a==0),Xu(r/l)>Co-u&&Zr("overflow"),u+=Xu(r/l),r%=l,e.splice(r++,0,u)}return String.fromCodePoint(...e)},A$=function(t){const e=[];t=x$(t);const n=t.length;let r=v$,u=0,i=b$;for(const a of t)a<128&&e.push(Th(a));const o=e.length;let s=o;for(o&&e.push(C$);s<n;){let a=Co;for(const c of t)c>=r&&c<a&&(a=c);const l=s+1;a-r>Xu((Co-u)/l)&&Zr("overflow"),u+=(a-r)*l,r=a;for(const c of t)if(c<r&&++u>Co&&Zr("overflow"),c===r){let f=u;for(let d=Uu;;d+=Uu){const h=d<=i?G1:d>=i+Ea?Ea:d-i;if(f<h)break;const p=f-h,m=Uu-h;e.push(Th(Iv(h+p%m,0))),f=Xu(p/m)}e.push(Th(Iv(f,0))),i=E$(u,l,s===o),u=0,++s}++u,++r}return e.join("")},_U=function(t){return y$(t,function(e){return xU.test(e)?$$(e.slice(4).toLowerCase()):e})},wU=function(t){return y$(t,function(e){return EU.test(e)?"xn--"+A$(e):e})},D$={version:"2.3.1",ucs2:{decode:x$,encode:kU},decode:$$,encode:A$,toASCII:wU,toUnicode:_U},BU={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},PU={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},FU={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},QU={default:BU,zero:PU,commonmark:FU},TU=/^(vbscript|javascript|file|data):/,IU=/^data:image\/(gif|png|jpeg|webp);/;function zU(t){const e=t.trim().toLowerCase();return TU.test(e)?IU.test(e):!0}const k$=["http:","https:","mailto:"];function ZU(t){const e=U1(t,!0);if(e.hostname&&(!e.protocol||k$.indexOf(e.protocol)>=0))try{e.hostname=D$.toASCII(e.hostname)}catch{}return Va(N1(e))}function RU(t){const e=U1(t,!0);if(e.hostname&&(!e.protocol||k$.indexOf(e.protocol)>=0))try{e.hostname=D$.toUnicode(e.hostname)}catch{}return Io(N1(e),Io.defaultChars+"%")}function fu(t,e){if(!(this instanceof fu))return new fu(t,e);e||V1(t)||(e=t||{},t="default"),this.inline=new Wa,this.block=new bf,this.core=new W1,this.renderer=new Jo,this.linkify=new Un,this.validateLink=zU,this.normalizeLink=ZU,this.normalizeLinkText=RU,this.utils=jL,this.helpers=mf({},UL),this.options={},this.configure(t),e&&this.set(e)}fu.prototype.set=function(t){return mf(this.options,t),this};fu.prototype.configure=function(t){const e=this;if(V1(t)){const n=t;if(t=QU[n],!t)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this};fu.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));const r=t.filter(function(u){return n.indexOf(u)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};fu.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));const r=t.filter(function(u){return n.indexOf(u)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};fu.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};fu.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};fu.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};fu.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};fu.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const jU=["a","blockquote","br","code","del","em","h1","h2","h3","h4","h5","h6","hr","li","ol","p","pre","s","span","strong","table","tbody","td","th","thead","tr","ul"],MU=["class","href","rel","target"];function LU(t){try{const e=new URL(t);return(e.protocol==="http:"||e.protocol==="https:")&&!!e.hostname}catch{return!1}}function NU(){const t=new fu({breaks:!1,html:!1,linkify:!0,typographer:!1});return t.validateLink=LU,t}const UU=NU();function S$(t){const e=gv.sanitize(t),n=UU.render(e);return gv.sanitize(n,{ALLOWED_TAGS:[...jU],ALLOWED_ATTR:[...MU]})}function XU(t,e=80){const n=S$(t).replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();return n.length>e?`${n.slice(0,e)}…`:n}const VU={key:0,class:"scrim","data-test":"conflict-dialog"},qU={class:"compare"},WU={key:0,class:"peek"},YU={class:"actions"},GU=ii({__name:"ConflictDialog",props:{open:{type:Boolean},current:{},localChars:{},charDelta:{},titleChanged:{type:Boolean}},emits:["choose"],setup(t,{emit:e}){const n=t,r=e,u=Yt(!1);wi(()=>n.open,l=>{l||(u.value=!1)});const i=ft(()=>n.current===null?"":XU(n.current.content,60)),o=ft(()=>{if(n.current===null)return"";const l=new Date(n.current.updatedAt);return Number.isNaN(l.getTime())?n.current.updatedAt:l.toLocaleString("zh-CN",{hour12:!1})}),s=ft(()=>n.charDelta===0?"字数与本地一致":n.charDelta>0?`比本地多 ${n.charDelta} 字`:`比本地少 ${-n.charDelta} 字`);function a(l){if(l==="reload"&&!u.value){u.value=!0;return}r("choose",l)}return(l,c)=>t.open?(Ce(),Me("div",VU,[Ve("div",{class:"dialog",role:"dialog","aria-modal":"true","aria-labelledby":"conflict-title",tabindex:"-1",onKeydown:c[3]||(c[3]=f8(l8(f=>r("choose","cancel"),["stop","prevent"]),["esc"]))},[c[8]||(c[8]=Ve("h2",{id:"conflict-title"},"这份文档已被他人保存",-1)),c[9]||(c[9]=Ve("p",{class:"lead"}," 你手上的版本是旧的。下面三选一,先看清楚再点——「载入服务端」会丢掉你本地刚写的内容。 ",-1)),Ve("dl",qU,[Ve("div",null,[c[4]||(c[4]=Ve("dt",null,"服务端",-1)),Ve("dd",null,"v"+at(t.current?.version??"?")+" · "+at(o.value),1)]),Ve("div",null,[c[5]||(c[5]=Ve("dt",null,"本地草稿",-1)),Ve("dd",null,at(t.localChars)+" 字 · "+at(s.value)+at(t.titleChanged?" · 标题有改动":""),1)])]),i.value?(Ce(),Me("blockquote",WU,at(i.value),1)):Ft("",!0),Ve("div",YU,[qe(De(Jn),{size:"sm","data-test":"conflict-overwrite",onClick:c[0]||(c[0]=f=>a("overwrite"))},{default:hn(()=>[...c[6]||(c[6]=[Kt(" 用我的版本覆盖 ",-1)])]),_:1}),qe(De(Jn),{variant:"danger",size:"sm","data-test":"conflict-reload",onClick:c[1]||(c[1]=f=>a("reload"))},{default:hn(()=>[Kt(at(u.value?"确认丢弃我的改动?":"载入服务端版本"),1)]),_:1}),qe(De(Jn),{variant:"outline",size:"sm","data-test":"conflict-cancel",onClick:c[2]||(c[2]=f=>a("cancel"))},{default:hn(()=>[...c[7]||(c[7]=[Kt(" 取消,先留着我的 ",-1)])]),_:1})])],32)])):Ft("",!0)}}),HU=oi(GU,[["__scopeId","data-v-8d104c30"]]);class Mn extends Error{code;status;constructor(e,n){super(`docs api ${n}: ${e}`),this.name="DocsApiError",this.code=e,this.status=n}}function zv(t){const e={"content-type":"application/json"};return t!==null&&t!==""&&(e.authorization=`Bearer ${t}`),e}async function Zv(t){try{const e=await t.json();if(typeof e=="object"&&e!==null&&"error"in e){const n=e.error;if(typeof n=="string")return n}}catch{}return"unknown"}function KU(t){const e=t.baseUrl??".";return{async getDoc(n){const r=await fetch(`${e}/api/docs/${encodeURIComponent(n)}`,{method:"GET",headers:zv(t.getToken())});if(!r.ok)throw new Mn(await Zv(r),r.status);return await r.json()},async saveDoc(n){const r=await fetch(`${e}/api/docs/${encodeURIComponent(n.id)}`,{method:"PUT",headers:zv(t.getToken()),body:JSON.stringify({title:n.title,content:n.content,baseVersion:n.baseVersion})});if(r.status===409){const u=await r.json();if(u.current===void 0)throw new Mn("version_conflict",409);return{ok:!1,reason:"conflict",current:u.current}}if(!r.ok)throw new Mn(await Zv(r),r.status);return{ok:!0,doc:await r.json()}}}}const JU={missing_bearer_token:"登录状态已失效,请刷新页面重新进入。",token_invalid:"登录状态已失效,请刷新页面重新进入。",jwks_unavailable:"平台暂时无法校验身份,请联系管理员。",invalid_request:"请求内容不合法,请检查标题与正文。",not_found:"文档不存在,或你没有访问权限。",forbidden:"你没有这份文档的编辑权限。",version_conflict:"这份文档已被他人保存,请选择如何处理。",not_implemented:"这个功能还没上线。"};function H1(t){return JU[t]??"操作失败,请稍后重试。"}function eX(t){return t==="owner"||t==="editor"}function _$(t){return{title:t.title,content:t.content}}function Rv(t){return{base:t,draft:_$(t),status:"idle",conflict:null,error:null}}function es(t){return t.draft.title!==t.base.title||t.draft.content!==t.base.content}function w$(t){return eX(t.base.role)}function B$(t){return w$(t)&&t.status!=="saving"&&es(t)}function jv(t,e){const n={...t,draft:{...t.draft,...e},error:null,conflict:t.status==="conflict"?t.conflict:null};return n.status==="saving"?n:{...n,status:es(n)?"dirty":"idle"}}function tX(t){if(!B$(t))return{state:t,request:null};const e={id:t.base.id,title:t.draft.title,content:t.draft.content,baseVersion:t.base.version};return{state:{...t,status:"saving",error:null},request:e}}function nX(t,e){const n={base:e,draft:t.draft,status:"idle",conflict:null,error:null};return{...n,status:es(n)?"dirty":"idle"}}function uX(t,e){return{...t,status:"conflict",conflict:e,error:null}}function rX(t,e){return{...t,status:"error",error:e,conflict:null}}function iX(t,e){const n=t.conflict;if(n===null)return{state:t,request:null};if(e==="reload")return{state:{base:n,draft:_$(n),status:"idle",conflict:null,error:null},request:null};if(e==="overwrite"){const r={id:t.base.id,title:t.draft.title,content:t.draft.content,baseVersion:n.version};return{state:{...t,status:"saving",conflict:null,error:null},request:r}}return{state:{...t,status:es(t)?"dirty":"idle",conflict:null},request:null}}function oX(t){return t.status==="saving"||es(t)}function sX(t,e){return{titleChanged:e.title!==t.title,charDelta:e.content.length-t.content.length,chars:e.content.length}}function aX(t){const e=$w(Rv(t.doc)),n=t.api;async function r(b){try{const O=await n.saveDoc(b);e.value=O.ok?nX(e.value,O.doc):uX(e.value,O.current)}catch(O){const y=O instanceof Mn?O.code:"unknown";e.value=rX(e.value,y)}}const u=ft(()=>es(e.value)),i=ft(()=>w$(e.value)),o=ft(()=>B$(e.value)),s=ft(()=>e.value.status==="saving"),a=ft(()=>e.value.status==="conflict"&&e.value.conflict!==null),l=ft(()=>e.value.error===null?null:H1(e.value.error)),c=ft(()=>e.value.draft.content.length),f=ft(()=>a.value?sX(e.value.base,e.value.draft):null);function d(b){e.value=jv(e.value,{title:b})}function h(b){e.value=jv(e.value,{content:b})}async function p(){const b=tX(e.value);e.value=b.state,b.request!==null&&await r(b.request)}async function m(b){const O=iX(e.value,b);e.value=O.state,O.request!==null&&await r(O.request)}function g(b){e.value=Rv(b)}function C(b){oX(e.value)&&(b.preventDefault(),b.returnValue="")}return Pa(()=>window.addEventListener("beforeunload",C)),qc(()=>window.removeEventListener("beforeunload",C)),{state:e,dirty:u,editable:i,saveable:o,saving:s,conflictOpen:a,errorMessage:l,charCount:c,delta:f,setTitle:d,setContent:h,save:p,chooseConflict:m,reset:g}}const lX={class:"doc-editor"},cX={class:"bar"},fX=["value","readonly"],dX={class:"meta"},hX=["data-tone"],pX={key:0,class:"notice bad",role:"alert","data-test":"save-error"},mX={key:1,class:"notice","data-test":"readonly-hint"},gX={class:"body"},OX=["innerHTML"],bX=ii({__name:"DocsEditor",props:{doc:{},api:{}},emits:["quote"],setup(t,{emit:e}){const n=t,r=e,u=aX({doc:n.doc,api:n.api}),{state:i,editable:o,saveable:s,saving:a,conflictOpen:l,errorMessage:c,charCount:f,delta:d,dirty:h}=u,p=Yt(!1),m=Yt(null),g=Yt(""),C=ft(()=>S$(i.value.draft.content)),b=ft(()=>({owner:"所有者",editor:"可编辑",viewer:"只读"})[i.value.base.role]??i.value.base.role),O=ft(()=>a.value?"保存中…":l.value?"有冲突待处理":i.value.status==="error"?"保存失败":h.value?"未保存":"已同步"),y=ft(()=>a.value?"busy":l.value||i.value.status==="error"?"bad":h.value?"warn":"ok"),$=new Qa,x=Oe.define(),_=jt.define({create:()=>ce.none,update(W,te){for(const he of te.effects)if(he.is(x))return he.value;return te.docChanged?ce.none:W},provide:W=>X.decorations.from(W)});let R=null;const ue=X.theme({"&":{height:"100%",backgroundColor:"var(--unself-color-surface)",color:"var(--unself-color-text)",fontSize:"var(--unself-font-size-base)"},"&.cm-focused":{outline:"none"},".cm-selectionBackground, &.cm-focused .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"var(--unself-color-primary-soft)"},".cm-cursor":{borderLeftColor:"var(--unself-color-primary)"},".cm-scroller":{fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",lineHeight:"1.7"},".cm-content":{padding:"var(--unself-space-4) 0",caretColor:"var(--unself-color-primary)"},".cm-gutters":{backgroundColor:"var(--unself-color-bg)",color:"var(--unself-color-text-tertiary)",border:"none",paddingRight:"var(--unself-space-2)"},".cm-activeLine":{backgroundColor:"var(--unself-color-surface-active)"},".cm-activeLineGutter":{backgroundColor:"var(--unself-color-surface-active)"}});Pa(()=>{m.value!==null&&(R=new X({parent:m.value,state:ze.create({doc:i.value.draft.content,extensions:[OM,lR(),X.lineWrapping,ue,$.of(X.editable.of(o.value)),_,Ku.highest(qo.of([{key:"Mod-s",preventDefault:!0,run:()=>(u.save(),!0)}])),X.updateListener.of(W=>{W.docChanged&&u.setContent(W.state.doc.toString()),(W.selectionSet||W.docChanged)&&(oe(W),ee(W))})]})}))}),wi(()=>i.value.draft.content,W=>{if(R===null)return;const te=R.state.doc.toString();te!==W&&R.dispatch({changes:{from:0,to:te.length,insert:W}})}),wi(o,W=>{R?.dispatch({effects:$.reconfigure(X.editable.of(W))})}),wi(()=>n.doc,W=>{u.reset(W)}),qc(()=>{R?.destroy(),R=null});function re(W){u.chooseConflict(W)}function oe(W){const te=W.state.selection.main;g.value=W.state.sliceDoc(te.from,te.to)}function ee(W){const te=W.state.selection.main,he=te.empty?ce.none:ce.set([ce.mark({class:"cm-sel-hl"}).range(te.from,te.to)]);W.view.dispatch({effects:x.of(he)})}function Ee(){const W=R?.state.selection.main,te=W===void 0?"":R?.state.sliceDoc(W.from,W.to)??"",he=(te!==""?te:g.value).trim();he!==""&&r("quote",he)}return(W,te)=>(Ce(),Me("section",lX,[Ve("header",cX,[Rm(W.$slots,"leading",{},void 0),Ve("input",{class:"title-input",type:"text",placeholder:"未命名文档",value:De(i).draft.title,readonly:!De(o),"aria-label":"文档标题",onInput:te[0]||(te[0]=he=>De(u).setTitle(he.target.value))},null,40,fX),Ve("span",dX,"v"+at(De(i).base.version)+" · "+at(b.value)+" · "+at(De(f))+" 字",1),Ve("span",{class:"status","data-tone":y.value,"data-test":"save-status"},at(O.value),9,hX),qe(De(Jn),{variant:"outline",size:"sm","data-test":"comment-selection",disabled:g.value.trim()==="",title:"先在正文里选中一段文字,再点这里,右侧评论框会带上引用",onClick:Ee},{default:hn(()=>[...te[3]||(te[3]=[Kt(" 评论所选 ",-1)])]),_:1},8,["disabled"]),qe(De(Jn),{variant:"outline",size:"sm","data-test":"toggle-preview",title:p.value?"回到 Markdown 编辑":"渲染 Markdown 看排版效果",onClick:te[1]||(te[1]=he=>p.value=!p.value)},{default:hn(()=>[Kt(at(p.value?"编辑":"预览"),1)]),_:1},8,["title"]),qe(De(Jn),{size:"sm","data-test":"save",disabled:!De(s),title:"把当前修改存到服务端(快捷键 Cmd/Ctrl+S)",onClick:te[2]||(te[2]=he=>De(u).save())},{default:hn(()=>[Kt(at(De(a)?"保存中…":"保存"),1)]),_:1},8,["disabled"])]),De(c)?(Ce(),Me("p",pX,at(De(c)),1)):De(o)?Ft("",!0):(Ce(),Me("p",mX," 你在这份文档里的角色是「只读」,可以查看但不能保存修改。 ")),Ve("div",gX,[Tw(Ve("div",{ref_key:"host",ref:m,class:"cm-host","data-test":"cm-host"},null,512),[[N7,!p.value]]),p.value?(Ce(),Me("article",{key:0,class:"preview","data-test":"preview",innerHTML:C.value},null,8,OX)):Ft("",!0)]),qe(HU,{open:De(l),current:De(i).conflict,"local-chars":De(d)?.chars??0,"char-delta":De(d)?.charDelta??0,"title-changed":De(d)?.titleChanged??!1,onChoose:re},null,8,["open","current","local-chars","char-delta","title-changed"])]))}}),vX=oi(bX,[["__scopeId","data-v-3cd00cc4"]]),CX="modulepreload",yX=function(t,e){return new URL(t,e).href},Mv={},xX=function(e,n,r){let u=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");u=l(n.map(c=>{if(c=yX(c,r),c in Mv)return;Mv[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let p=o.length-1;p>=0;p--){const m=o[p];if(m.href===c&&(!f||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":CX,f||(h.as="script"),h.crossOrigin="",h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),f)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return u.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return e().catch(i)})};let p0=null;function EX(t){const e=/cubic-bezier\(([^)]+)\)/.exec(t);if(!e)return null;const n=e[1].split(",").map(r=>Number(r.trim()));return n.length!==4||n.some(r=>!Number.isFinite(r))?null:n}function Lv(t){const e=t.trim();if(!e)return 0;const n=/^(\d+(?:\.\d+)?)(ms|s)?$/.exec(e);if(!n)return 0;const r=Number(n[1]);return Number.isFinite(r)?n[2]==="s"?r*1e3:r:0}function $X(t){const e=Number.parseFloat(t);return Number.isFinite(e)?e:0}function AX(){if(typeof window>"u"||typeof document>"u")return{params:{durationMs:0,ease:[0,0,0,0],liftPx:0,pressScale:1,spring:1},ready:!1};const t=document.documentElement;if(!t)return{params:{durationMs:0,ease:[0,0,0,0],liftPx:0,pressScale:1,spring:1},ready:!1};const e=getComputedStyle(t),n=EX(e.getPropertyValue("--unself-ease-out"));if(!n)return{params:{durationMs:0,ease:[0,0,0,0],liftPx:0,pressScale:1,spring:1},ready:!1};const r=Lv(e.getPropertyValue("--unself-duration-slow")),u=Lv(e.getPropertyValue("--unself-duration-fast")),i=$X(e.getPropertyValue("--unself-motion-lift-y")),o=Number.parseFloat(e.getPropertyValue("--unself-motion-press-scale")),s=Number.isFinite(o)&&o>0?o:1;return{params:{durationMs:r||u,ease:n,liftPx:i,pressScale:s,spring:1/s},ready:!0}}function DX(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function kX(t){const e=DX(),{params:{durationMs:n,ease:r,liftPx:u},ready:i}=SX();return e||!i?{initial:{opacity:1,y:0,transition:{duration:0}},enter:{opacity:1,y:0,transition:{duration:0}}}:{initial:{opacity:0,y:u,transition:{duration:n,ease:r}},enter:{opacity:1,y:0,transition:{duration:n,ease:r}}}}function SX(){return(!p0||!p0.ready)&&(p0=AX()),p0}function _X(){if(typeof window>"u"||typeof document>"u")return!1;const t=document.createElement("div");if(!t.style)return!1;try{return Object.keys(t.style).length>0&&t.style.color!==void 0}catch{return!1}}const wX=["role"],BX=ii({__name:"banner",props:{tone:{default:"warning"},role:{default:void 0}},setup(t){const e=Yt(null);return Pa(async()=>{if(e.value===null||!_X())return;const{useMotion:n}=await xX(async()=>{const{useMotion:r}=await import("./index-DrJ85h4N.js");return{useMotion:r}},[],import.meta.url);n(e.value,kX())}),(n,r)=>(Ce(),Me("p",{ref_key:"root",ref:e,class:ji(["u-banner",`u-banner-${t.tone}`]),role:t.role??(t.tone==="danger"?"alert":"note")},[t.tone==="warning"?(Ce(),Kn(De(x8),{key:0,size:14,"aria-hidden":"true"})):t.tone==="danger"?(Ce(),Kn(De(j5),{key:1,size:14,"aria-hidden":"true"})):Ft("",!0),Rm(n.$slots,"default",{},void 0)],10,wX))}}),PX=oi(BX,[["__scopeId","data-v-3930c4b7"]]),FX={class:"u-skeleton",role:"status","aria-busy":"true"},QX=ii({__name:"skeleton",props:{lines:{default:2},shortenLast:{type:Boolean,default:!0}},setup(t){return(e,n)=>(Ce(),Me("div",FX,[(Ce(!0),Me(dn,null,m5(t.lines,r=>(Ce(),Me("span",{key:r,class:ji(["u-skeleton-line",{"u-skeleton-line-short":t.shortenLast&&r===t.lines}]),"aria-hidden":"true"},null,2))),128))]))}}),TX=oi(QX,[["__scopeId","data-v-759321f8"]]),IX={class:"docs-list","data-test":"docs-list"},zX={class:"head"},ZX={key:2,class:"empty","data-test":"list-empty"},RX={key:3,class:"items"},jX=["data-test"],MX=["aria-label","onClick"],LX={class:"item-title"},NX={class:"item-meta"},UX={key:0,class:"badge"},XX={key:1,class:"badge"},VX=ii({__name:"DocsList",props:{state:{},meId:{}},emits:["open","create","delete","retry","loadMore"],setup(t,{emit:e}){const n=t,r=e,u=ft(()=>n.state.status==="loading"&&n.state.items.length===0),i=ft(()=>n.state.status==="ready"&&n.state.error===null&&n.state.items.length===0),o=ft(()=>n.state.error!==null),s=ft(()=>n.state.error===null?"":H1(n.state.error));function a(d){return d.role==="owner"}function l(d){return d.ownerId===n.meId}function c(d){const h=new Date(d);return Number.isNaN(h.getTime())?d:h.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1})}function f(d){if(!a(d))return;globalThis.confirm(`删除「${d.title}」?删除后不可恢复。`)&&r("delete",d.id)}return(d,h)=>(Ce(),Me("section",IX,[Ve("header",zX,[h[4]||(h[4]=Ve("h1",{class:"title"},"文档",-1)),qe(De(Jn),{"data-test":"create",onClick:h[0]||(h[0]=p=>r("create"))},{default:hn(()=>[...h[3]||(h[3]=[Kt("新建文档",-1)])]),_:1})]),o.value?(Ce(),Kn(De(PX),{key:0,tone:"danger",class:"banner","data-test":"list-error"},{default:hn(()=>[Kt(at(s.value)+" ",1),qe(De(Jn),{variant:"outline",size:"sm","data-test":"retry",onClick:h[1]||(h[1]=p=>r("retry"))},{default:hn(()=>[...h[5]||(h[5]=[Kt(" 重试 ",-1)])]),_:1})]),_:1})):Ft("",!0),u.value?(Ce(),Kn(De(TX),{key:1,lines:3,"data-test":"list-loading"})):i.value?(Ce(),Me("p",ZX," 还没有文档。点「新建文档」写第一篇。 ")):(Ce(),Me("ul",RX,[(Ce(!0),Me(dn,null,m5(t.state.items,p=>(Ce(),Me("li",{key:p.id,class:"item","data-test":`doc-${p.id}`},[Ve("button",{type:"button",class:"open","aria-label":`打开 ${p.title}`,onClick:m=>r("open",p.id)},[Ve("span",LX,at(p.title),1),Ve("span",NX,[Kt(at(c(p.updatedAt))+" ",1),l(p)?(Ce(),Me("span",UX,"我的")):Ft("",!0),p.role==="viewer"?(Ce(),Me("span",XX,"只读")):Ft("",!0)])],8,MX),a(p)?(Ce(),Kn(De(Jn),{key:0,variant:"outline",size:"sm",class:"danger","data-test":"delete",disabled:t.state.deleting.includes(p.id),onClick:m=>f(p)},{default:hn(()=>[Kt(at(t.state.deleting.includes(p.id)?"删除中…":"删除"),1)]),_:2},1032,["disabled","onClick"])):Ft("",!0)],8,jX))),128))])),t.state.hasMore?(Ce(),Kn(De(Jn),{key:4,variant:"outline",size:"sm",class:"more","data-test":"load-more",disabled:t.state.status==="loading",onClick:h[2]||(h[2]=p=>r("loadMore"))},{default:hn(()=>[Kt(at(t.state.status==="loading"?"加载中…":"加载更多"),1)]),_:1},8,["disabled"])):Ft("",!0)]))}}),qX=oi(VX,[["__scopeId","data-v-4c6bf19a"]]),Nv=50;function Ih(t){const e={"content-type":"application/json"};return t!==null&&t!==""&&(e.authorization=`Bearer ${t}`),e}async function zh(t){try{const e=await t.json();if(typeof e=="object"&&e!==null&&"error"in e){const n=e.error;if(typeof n=="string")return n}}catch{}return"unknown"}function Uv(t){const e=t,n=e.role??"viewer";return{...e,role:n}}function WX(t){const e=t.baseUrl??".";return{async listDocs(n={}){const r=Math.min(Math.max(Math.trunc(n.limit??Nv),1),Nv),u=Math.max(Math.trunc(n.offset??0),0),i=await fetch(`${e}/api/docs?limit=${r}&offset=${u}`,{headers:Ih(t.getToken())});if(!i.ok)throw new Mn(await zh(i),i.status);const o=await i.json(),s=Array.isArray(o.items)?o.items.map(Uv):[],a=typeof o.hasMore=="boolean"?o.hasMore:s.length===r;return{items:s,hasMore:a}},async createDoc(n={}){const r=await fetch(`${e}/api/docs`,{method:"POST",headers:Ih(t.getToken()),body:JSON.stringify({title:n.title??"未命名文档",content:n.content??""})});if(!r.ok)throw new Mn(await zh(r),r.status);return Uv(await r.json())},async deleteDoc(n){const r=await fetch(`${e}/api/docs/${encodeURIComponent(n)}`,{method:"DELETE",headers:Ih(t.getToken())});if(!r.ok)throw new Mn(await zh(r),r.status)}}}const Zh=50;function YX(){return{items:[],hasMore:!1,nextOffset:0,status:"idle",error:null,deleting:[]}}function Xv(t){return{...t,status:"loading",error:null}}function GX(t){return t.items.length===0?{...t,status:"loading",error:null}:{...t,error:null}}function Vv(t,e){return{...t,items:e.items,hasMore:e.hasMore,nextOffset:e.items.length,status:"ready",error:null}}function HX(t,e){const n=new Map(t.items.map(u=>[u.id,u]));for(const u of e.items)n.set(u.id,u);const r=[...n.values()];return{...t,items:r,hasMore:e.hasMore,nextOffset:r.length,status:"ready",error:null}}function m0(t,e){const n=t.items.length===0;return{...t,status:n?"error":"ready",error:e}}function KX(t,e){return{...t,items:[e,...t.items.filter(n=>n.id!==e.id)]}}function JX(t,e){return t.deleting.includes(e)?t:{...t,deleting:[...t.deleting,e],error:null}}function eV(t,e){return{...t,items:t.items.filter(n=>n.id!==e),deleting:t.deleting.filter(n=>n!==e)}}function tV(t,e,n){return{...t,deleting:t.deleting.filter(r=>r!==e),error:n}}function nV(t){return t.hasMore&&t.status!=="loading"}var uV=Object.defineProperty,Sr=(t,e)=>{for(var n in e)uV(t,n,{get:e[n],enumerable:!0})},F={};Sr(F,{$brand:()=>q$,$input:()=>mD,$output:()=>pD,NEVER:()=>V$,TimePrecision:()=>AD,ZodAny:()=>Z4,ZodArray:()=>L4,ZodBase64:()=>nd,ZodBase64URL:()=>ud,ZodBigInt:()=>bl,ZodBigIntFormat:()=>od,ZodBoolean:()=>Ol,ZodCIDRv4:()=>ed,ZodCIDRv6:()=>td,ZodCUID:()=>qf,ZodCUID2:()=>Wf,ZodCatch:()=>lO,ZodCodec:()=>Al,ZodCompileAsyncError:()=>ei,ZodCompileUnsupportedError:()=>je,ZodCreditCard:()=>B4,ZodCustom:()=>Dl,ZodCustomStringFormat:()=>ns,ZodDate:()=>ad,ZodDefault:()=>uO,ZodDiscriminatedUnion:()=>U4,ZodE164:()=>rd,ZodEmail:()=>Nf,ZodEmoji:()=>Xf,ZodEnum:()=>Xo,ZodError:()=>mH,ZodExactOptional:()=>fd,ZodFile:()=>J4,ZodFirstPartyTypeKind:()=>Em,ZodFunction:()=>vO,ZodGUID:()=>Uf,ZodIPv4:()=>Kf,ZodIPv6:()=>Jf,ZodISODate:()=>dl,ZodISODateTime:()=>fl,ZodISODuration:()=>pl,ZodISOTime:()=>hl,ZodIntersection:()=>X4,ZodIssueCode:()=>OH,ZodJWT:()=>id,ZodKSUID:()=>Hf,ZodLazy:()=>gO,ZodLiteral:()=>K4,ZodMAC:()=>w4,ZodMap:()=>G4,ZodNaN:()=>fO,ZodNanoID:()=>Vf,ZodNever:()=>j4,ZodNonOptional:()=>dd,ZodNull:()=>I4,ZodNullable:()=>nO,ZodNumber:()=>gl,ZodNumberFormat:()=>Li,ZodObject:()=>Cl,ZodOptional:()=>El,ZodPipe:()=>$l,ZodPrefault:()=>iO,ZodPreprocess:()=>dO,ZodPromise:()=>bO,ZodReadonly:()=>hO,ZodRealError:()=>Yn,ZodRecord:()=>Uo,ZodSet:()=>H4,ZodString:()=>cl,ZodStringFormat:()=>tt,ZodSuccess:()=>aO,ZodSymbol:()=>Q4,ZodTemplateLiteral:()=>mO,ZodTransform:()=>eO,ZodTuple:()=>q4,ZodType:()=>Ae,ZodULID:()=>Yf,ZodURL:()=>ml,ZodUUID:()=>Vu,ZodUndefined:()=>T4,ZodUnion:()=>yl,ZodUnknown:()=>R4,ZodVoid:()=>M4,ZodXID:()=>Gf,ZodXor:()=>N4,_ZodString:()=>Lf,_default:()=>rO,_function:()=>Ic,any:()=>XS,array:()=>vl,base64:()=>kS,base64url:()=>SS,bigint:()=>jS,boolean:()=>F4,catch:()=>cO,check:()=>p_,cidrv4:()=>AS,cidrv6:()=>DS,clone:()=>ct,codec:()=>c_,coerce:()=>$_,compile:()=>OD,config:()=>Vt,core:()=>P$,creditCard:()=>wS,cuid:()=>OS,cuid2:()=>bS,custom:()=>m_,date:()=>qS,decode:()=>eS,decodeAsync:()=>nS,deepPartial:()=>BH,describe:()=>g_,discriminatedUnion:()=>JS,e164:()=>_S,email:()=>sS,emoji:()=>mS,encode:()=>Jk,encodeAsync:()=>tS,endsWith:()=>Tf,enum:()=>ld,exactOptional:()=>tO,file:()=>o_,flattenError:()=>og,float32:()=>IS,float64:()=>zS,formatError:()=>sg,fromJSONSchema:()=>wH,function:()=>Ic,getDiscriminatedOption:()=>R9,getErrorMap:()=>vH,globalRegistry:()=>ou,gt:()=>ni,gte:()=>cu,guid:()=>aS,hash:()=>TS,hex:()=>QS,hostname:()=>FS,httpUrl:()=>pS,includes:()=>Ff,input:()=>QH,instanceof:()=>b_,int:()=>Qc,int32:()=>ZS,int64:()=>MS,intersection:()=>V4,invertCodec:()=>f_,ipv4:()=>xS,ipv6:()=>$S,iso:()=>xO,json:()=>C_,jwt:()=>BS,keyof:()=>WS,ksuid:()=>yS,lazy:()=>OO,length:()=>al,literal:()=>i_,locales:()=>qg,looseObject:()=>HS,looseRecord:()=>t_,lowercase:()=>Bf,lt:()=>ti,lte:()=>lu,mac:()=>ES,map:()=>n_,maxLength:()=>sl,maxSize:()=>ts,memoizer:()=>Xg,meta:()=>O_,mime:()=>If,minLength:()=>Zi,minSize:()=>ui,multipleOf:()=>jo,nan:()=>l_,nanoid:()=>gS,nativeEnum:()=>r_,negative:()=>x4,never:()=>sd,nonnegative:()=>$4,nonoptional:()=>sO,nonpositive:()=>E4,normalize:()=>zf,null:()=>z4,nullable:()=>_a,nullish:()=>s_,number:()=>P4,object:()=>YS,optional:()=>Vo,output:()=>TH,overwrite:()=>_r,parse:()=>Yk,parseAsync:()=>Gk,partialRecord:()=>e_,pipe:()=>Tc,positive:()=>y4,prefault:()=>oO,preprocess:()=>y_,prettifyError:()=>H$,promise:()=>h_,properties:()=>D4,property:()=>A4,readonly:()=>pO,record:()=>Y4,refine:()=>CO,regex:()=>wf,regexes:()=>Jr,registry:()=>Wg,safeDecode:()=>rS,safeDecodeAsync:()=>oS,safeEncode:()=>uS,safeEncodeAsync:()=>iS,safeParse:()=>Hk,safeParseAsync:()=>Kk,set:()=>u_,setErrorMap:()=>bH,size:()=>ol,slugify:()=>Mf,startsWith:()=>Qf,strictObject:()=>GS,string:()=>Sa,stringFormat:()=>PS,stringbool:()=>v_,success:()=>a_,superRefine:()=>yO,symbol:()=>NS,templateLiteral:()=>d_,toJSONSchema:()=>Xk,toLowerCase:()=>Rf,toUpperCase:()=>jf,toZod:()=>K1,transform:()=>cd,treeifyError:()=>Y$,trim:()=>Zf,tuple:()=>W4,uint32:()=>RS,uint64:()=>LS,ulid:()=>vS,undefined:()=>US,union:()=>xl,unknown:()=>Ri,uppercase:()=>Pf,url:()=>hS,util:()=>$e,uuid:()=>lS,uuidv4:()=>cS,uuidv6:()=>fS,uuidv7:()=>dS,validate:()=>eA,validateAsync:()=>tA,void:()=>VS,xid:()=>CS,xor:()=>KS});var P$={};Sr(P$,{$ZodAny:()=>S9,$ZodArray:()=>F9,$ZodAsyncError:()=>br,$ZodBase64:()=>O9,$ZodBase64URL:()=>b9,$ZodBigInt:()=>Zg,$ZodBigIntFormat:()=>$9,$ZodBoolean:()=>zg,$ZodCIDRv4:()=>m9,$ZodCIDRv6:()=>g9,$ZodCUID:()=>u9,$ZodCUID2:()=>r9,$ZodCatch:()=>tD,$ZodCheck:()=>pt,$ZodCheckBigIntFormat:()=>TA,$ZodCheckEndsWith:()=>qA,$ZodCheckGreaterThan:()=>xg,$ZodCheckIncludes:()=>XA,$ZodCheckLengthEquals:()=>MA,$ZodCheckLessThan:()=>yg,$ZodCheckLowerCase:()=>NA,$ZodCheckMaxLength:()=>RA,$ZodCheckMaxSize:()=>IA,$ZodCheckMimeType:()=>WA,$ZodCheckMinLength:()=>jA,$ZodCheckMinSize:()=>zA,$ZodCheckMultipleOf:()=>FA,$ZodCheckNumberFormat:()=>QA,$ZodCheckOverwrite:()=>YA,$ZodCheckProperty:()=>Eg,$ZodCheckRegex:()=>LA,$ZodCheckSizeEquals:()=>ZA,$ZodCheckStartsWith:()=>VA,$ZodCheckStringFormat:()=>rl,$ZodCheckUpperCase:()=>UA,$ZodCodec:()=>Lg,$ZodCreditCard:()=>C9,$ZodCustom:()=>aD,$ZodCustomStringFormat:()=>x9,$ZodCyclicError:()=>lD,$ZodDate:()=>P9,$ZodDefault:()=>H9,$ZodDiscriminatedUnion:()=>j9,$ZodE164:()=>v9,$ZodEmail:()=>JA,$ZodEmoji:()=>t9,$ZodEncodeError:()=>Ef,$ZodEnum:()=>X9,$ZodError:()=>ig,$ZodExactOptional:()=>Y9,$ZodFile:()=>q9,$ZodFunction:()=>oD,$ZodGUID:()=>HA,$ZodIPv4:()=>d9,$ZodIPv6:()=>h9,$ZodISODate:()=>l9,$ZodISODateTime:()=>a9,$ZodISODuration:()=>f9,$ZodISOTime:()=>c9,$ZodIntersection:()=>M9,$ZodJWT:()=>y9,$ZodKSUID:()=>s9,$ZodLazy:()=>Ng,$ZodLiteral:()=>V9,$ZodMAC:()=>p9,$ZodMap:()=>N9,$ZodNaN:()=>nD,$ZodNanoID:()=>n9,$ZodNever:()=>w9,$ZodNonOptional:()=>J9,$ZodNull:()=>k9,$ZodNullable:()=>G9,$ZodNumber:()=>Ig,$ZodNumberFormat:()=>E9,$ZodObject:()=>I9,$ZodObjectJIT:()=>z9,$ZodOptional:()=>jg,$ZodPipe:()=>Mg,$ZodPrefault:()=>K9,$ZodPreprocess:()=>uD,$ZodPromise:()=>sD,$ZodReadonly:()=>rD,$ZodRealError:()=>Wn,$ZodRecord:()=>L9,$ZodRegistry:()=>gD,$ZodSet:()=>U9,$ZodString:()=>il,$ZodStringFormat:()=>et,$ZodSuccess:()=>eD,$ZodSymbol:()=>A9,$ZodTemplateLiteral:()=>iD,$ZodTransform:()=>W9,$ZodTuple:()=>Rg,$ZodType:()=>xe,$ZodULID:()=>i9,$ZodURL:()=>e9,$ZodUUID:()=>KA,$ZodUndefined:()=>D9,$ZodUnion:()=>kf,$ZodUnknown:()=>_9,$ZodVoid:()=>B9,$ZodXID:()=>o9,$ZodXor:()=>Z9,$brand:()=>q$,$constructor:()=>k,$input:()=>mD,$output:()=>pD,Doc:()=>$g,INVALID:()=>Xn,JSONSchema:()=>pH,JSONSchemaGenerator:()=>hH,NEVER:()=>V$,TimePrecision:()=>AD,URL_BAD_FORMAT:()=>Dg,URL_UNPARSEABLE:()=>kg,ZodCompileAsyncError:()=>ei,ZodCompileUnsupportedError:()=>je,_any:()=>LD,_array:()=>YD,_base64:()=>h4,_base64url:()=>p4,_bigint:()=>TD,_boolean:()=>FD,_catch:()=>rH,_check:()=>ek,_cidrv4:()=>f4,_cidrv6:()=>d4,_coercedBigint:()=>ID,_coercedBoolean:()=>QD,_coercedDate:()=>qD,_coercedNumber:()=>kD,_coercedString:()=>xD,_creditCard:()=>$D,_cuid:()=>r4,_cuid2:()=>i4,_custom:()=>HD,_date:()=>VD,_decode:()=>lg,_decodeAsync:()=>fg,_default:()=>tH,_discriminatedUnion:()=>NG,_e164:()=>m4,_email:()=>Gg,_emoji:()=>n4,_encode:()=>ag,_encodeAsync:()=>cg,_endsWith:()=>Tf,_enum:()=>YG,_file:()=>GD,_float32:()=>_D,_float64:()=>wD,_gt:()=>ni,_gte:()=>cu,_guid:()=>Hg,_includes:()=>Ff,_int:()=>SD,_int32:()=>BD,_int64:()=>zD,_intersection:()=>UG,_ipv4:()=>l4,_ipv6:()=>c4,_isoDate:()=>b4,_isoDateTime:()=>O4,_isoDuration:()=>C4,_isoTime:()=>v4,_jwt:()=>g4,_ksuid:()=>a4,_lazy:()=>aH,_length:()=>al,_literal:()=>HG,_lowercase:()=>Bf,_lt:()=>ti,_lte:()=>lu,_mac:()=>ED,_map:()=>qG,_max:()=>lu,_maxLength:()=>sl,_maxSize:()=>ts,_mime:()=>If,_min:()=>cu,_minLength:()=>Zi,_minSize:()=>ui,_multipleOf:()=>jo,_nan:()=>WD,_nanoid:()=>u4,_nativeEnum:()=>GG,_negative:()=>x4,_never:()=>UD,_nonnegative:()=>$4,_nonoptional:()=>nH,_nonpositive:()=>E4,_normalize:()=>zf,_null:()=>MD,_nullable:()=>eH,_number:()=>DD,_optional:()=>JG,_overwrite:()=>_r,_parse:()=>Ha,_parseAsync:()=>Ka,_pipe:()=>iH,_positive:()=>y4,_promise:()=>lH,_properties:()=>D4,_property:()=>A4,_readonly:()=>oH,_record:()=>VG,_refine:()=>KD,_regex:()=>wf,_safeDecode:()=>hg,_safeDecodeAsync:()=>mg,_safeEncode:()=>dg,_safeEncodeAsync:()=>pg,_safeParse:()=>Ja,_safeParseAsync:()=>el,_set:()=>WG,_size:()=>ol,_slugify:()=>Mf,_startsWith:()=>Qf,_string:()=>yD,_stringFormat:()=>ll,_stringbool:()=>uk,_success:()=>uH,_superRefine:()=>JD,_symbol:()=>RD,_templateLiteral:()=>sH,_toLowerCase:()=>Rf,_toUpperCase:()=>jf,_transform:()=>KG,_trim:()=>Zf,_tuple:()=>XG,_uint32:()=>PD,_uint64:()=>ZD,_ulid:()=>o4,_undefined:()=>jD,_union:()=>MG,_unknown:()=>ND,_uppercase:()=>Pf,_url:()=>_f,_uuid:()=>Kg,_uuidv4:()=>Jg,_uuidv6:()=>e4,_uuidv7:()=>t4,_void:()=>XD,_xid:()=>s4,_xor:()=>LG,clone:()=>ct,compile:()=>OD,compileFn:()=>Sf,config:()=>Vt,createStandardJSONSchemaMethod:()=>Da,createToJSONSchemaMethod:()=>ok,decode:()=>UV,decodeAsync:()=>VV,describe:()=>tk,encode:()=>NV,encodeAsync:()=>XV,extractDefs:()=>Lo,finalize:()=>No,flattenError:()=>og,formatError:()=>sg,getDiscriminatedOption:()=>R9,globalConfig:()=>bn,globalRegistry:()=>ou,handleUnrepresentable:()=>Rt,initializeContext:()=>Mo,isBackEdge:()=>Vg,isRecursiveSchema:()=>cD,isValidBase64:()=>Df,isValidBase64URL:()=>Fg,isValidCIDRv6:()=>Pg,isValidCreditCard:()=>Qg,isValidIPv6:()=>Af,isValidJWT:()=>Tg,locales:()=>qg,memoizer:()=>Xg,mergeValues:()=>Aa,meta:()=>nk,parse:()=>dm,parseAsync:()=>hm,parseURLObject:()=>Sg,prettifyError:()=>H$,process:()=>Je,regexes:()=>Jr,registry:()=>Wg,safeDecode:()=>WV,safeDecodeAsync:()=>GV,safeEncode:()=>qV,safeEncodeAsync:()=>YV,safeParse:()=>K$,safeParseAsync:()=>J$,standardProps:()=>Ag,stripTabAndNewline:()=>_g,toDotPath:()=>G$,toJSONSchema:()=>Xk,toZod:()=>K1,treeifyError:()=>Y$,urlHostnameOk:()=>wg,urlProtocolOk:()=>Bg,util:()=>$e,validate:()=>eA,validateAsync:()=>tA,version:()=>GA});var $e={};Sr($e,{BIGINT_FORMAT_RANGES:()=>R$,CONSTANT_CATCH:()=>rg,Class:()=>wV,NUMBER_FORMAT_RANGES:()=>Z$,aborted:()=>ki,allowsEval:()=>T$,assert:()=>aV,assertEqual:()=>rV,assertIs:()=>oV,assertNever:()=>sV,assertNotEqual:()=>iV,assignProp:()=>wt,attachSchema:()=>fm,base64ToUint8Array:()=>M$,base64urlToUint8Array:()=>DV,cached:()=>Ya,captureStackTrace:()=>ng,cleanEnum:()=>AV,cleanRegex:()=>Cf,clone:()=>ct,cloneDef:()=>cV,codePointLength:()=>Ga,constantCatch:()=>X$,createTransparentProxy:()=>gV,defineLazy:()=>F$,defineLazyInternal:()=>_e,esc:()=>au,escapeRegex:()=>Ar,explicitlyAborted:()=>j$,extend:()=>vV,finalizeIssue:()=>du,floatSafeRemainder:()=>tg,getElementAtPath:()=>fV,getEnumValues:()=>J1,getLengthableOrigin:()=>xf,getParsedType:()=>mV,getSizableOrigin:()=>yf,hexToUint8Array:()=>SV,hide:()=>U$,installLazyProp:()=>QV,isObject:()=>Zo,isPlainObject:()=>$r,issue:()=>Bc,joinValues:()=>T,jsonStringifyReplacer:()=>_c,members:()=>N$,merge:()=>yV,mergeDefs:()=>ur,normalizeParams:()=>L,nullish:()=>eg,numKeys:()=>pV,objectClone:()=>lV,omit:()=>bV,optionalKeys:()=>z$,own:()=>$a,parsedType:()=>ie,partial:()=>xV,pick:()=>OV,prefixIssues:()=>iu,primitiveTypes:()=>I$,promiseAllObject:()=>dV,propertyKeyTypes:()=>wc,randomString:()=>hV,required:()=>EV,safeExtend:()=>CV,shallowClone:()=>ug,slugify:()=>Q$,stringifyPrimitive:()=>ne,toZod:()=>K1,uint8ArrayToBase64:()=>L$,uint8ArrayToBase64url:()=>kV,uint8ArrayToHex:()=>_V,unwrapMessage:()=>no});function rV(t){return t}function iV(t){return t}function K1(){return t=>t}function oV(t){}function sV(t){throw new Error("Unexpected value in exhaustive check")}function aV(t){}function J1(t){const e=Object.values(t).filter(r=>typeof r=="number");return Object.entries(t).filter(([r,u])=>e.indexOf(+r)===-1).map(([r,u])=>u)}function T(t,e="|"){return t.map(n=>ne(n)).join(e)}function _c(t,e){return typeof e=="bigint"?e.toString():e}function Ya(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function eg(t){return t==null}function Cf(t){const e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function tg(t,e){const n=t/e,r=Math.round(n),u=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<u?0:n-r}var qv=Symbol("evaluating");function F$(t,e,n){let r;Object.defineProperty(t,e,{get(){if(r!==qv)return r===void 0&&(r=qv,r=n()),r},set(u){Object.defineProperty(t,e,{value:u})},configurable:!0})}function lV(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function wt(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ur(...t){const e={};for(const n of t){const r=Object.getOwnPropertyDescriptors(n);Object.assign(e,r)}return Object.defineProperties({},e)}function cV(t){return ur(t._zod.def)}function fV(t,e){return e?e.reduce((n,r)=>n?.[r],t):t}function dV(t){const e=Object.keys(t),n=e.map(r=>t[r]);return Promise.all(n).then(r=>{const u={};for(let i=0;i<e.length;i++)u[e[i]]=r[i];return u})}function hV(t=10){const e="abcdefghijklmnopqrstuvwxyz";let n="";for(let r=0;r<t;r++)n+=e[Math.floor(Math.random()*e.length)];return n}function au(t){return JSON.stringify(t)}function Q$(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ng="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Zo(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var T$=Ya(()=>{if(bn.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function $r(t){if(Zo(t)===!1)return!1;const e=t.constructor;if(e===void 0||typeof e!="function")return!0;const n=e.prototype;return!(Zo(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ug(t){return $r(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function pV(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}var mV=t=>{const e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},wc=new Set(["string","number","symbol"]),I$=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ar(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ct(t,e,n){const r=new t._zod.constr(e??t._zod.def);return(!e||n?.parent)&&(r._zod.parent=t),r}function L(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function gV(t){let e;return new Proxy({},{get(n,r,u){return e??(e=t()),Reflect.get(e,r,u)},set(n,r,u,i){return e??(e=t()),Reflect.set(e,r,u,i)},has(n,r){return e??(e=t()),Reflect.has(e,r)},deleteProperty(n,r){return e??(e=t()),Reflect.deleteProperty(e,r)},ownKeys(n){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(n,r){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,r)},defineProperty(n,r,u){return e??(e=t()),Reflect.defineProperty(e,r,u)}})}function ne(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function z$(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout==="optional")}var Z$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},R$={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function OV(t,e){const n=t._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=ur(t._zod.def,{get shape(){const o={};for(const s of Reflect.ownKeys(e)){if(!Object.prototype.hasOwnProperty.call(n.shape,s))throw new Error(`Unrecognized key: "${String(s)}"`);e[s]&&wt(o,s,n.shape[s])}return wt(this,"shape",o),o},checks:[]});return ct(t,i)}function bV(t,e){const n=t._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=ur(t._zod.def,{get shape(){const o={...t._zod.def.shape};for(const s of Reflect.ownKeys(e)){if(!Object.prototype.hasOwnProperty.call(n.shape,s))throw new Error(`Unrecognized key: "${String(s)}"`);e[s]&&delete o[s]}return wt(this,"shape",o),o},checks:[]});return ct(t,i)}function vV(t,e){if(!$r(e))throw new Error("Invalid input to extend: expected a plain object");const n=t._zod.def.checks;if(n&&n.length>0){const i=t._zod.def.shape;for(const o of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(i,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const u=ur(t._zod.def,{get shape(){const i={...t._zod.def.shape,...e};return wt(this,"shape",i),i}});return ct(t,u)}function CV(t,e){if(!$r(e))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ur(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e};return wt(this,"shape",r),r}});return ct(t,n)}function yV(t,e){if(!e?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=ur(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return wt(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return ct(t,n)}function xV(t,e,n,r="partial"){const i=e._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const s=ur(e._zod.def,{get shape(){const a=e._zod.def.shape,l={...a};if(n)for(const c of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(a,c))throw new Error(`Unrecognized key: "${String(c)}"`);n[c]&&(l[c]=t?new t({type:"optional",innerType:a[c]}):a[c])}else for(const c of Reflect.ownKeys(a))l[c]=t?new t({type:"optional",innerType:a[c]}):a[c];return wt(this,"shape",l),l},checks:[]});return ct(e,s)}function EV(t,e,n){const r=ur(e._zod.def,{get shape(){const u=e._zod.def.shape,i={...u};if(n)for(const o of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i,o))throw new Error(`Unrecognized key: "${String(o)}"`);n[o]&&(i[o]=new t({type:"nonoptional",innerType:u[o]}))}else for(const o of Reflect.ownKeys(u))i[o]=new t({type:"nonoptional",innerType:u[o]});return wt(this,"shape",i),i}});return ct(e,r)}function ki(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function j$(t,e=0){if(t.aborted===!0)return!0;for(let n=e;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}function iu(t,e){return e.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(t),n})}function no(t){return typeof t=="string"?t:t?.message}function fm(t,e,n){var r;for(let u=e;u<t.length;u++)(r=t[u]).schema??(r.schema=n)}function du(t,e,n){var r;const u=t.inst?._zod?.traits;u?.has("$ZodType")&&(u.has("$ZodCheck")?(r=t).schema??(r.schema=t.inst):t.schema=t.inst);const i=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,o=t.message?t.message:no(t.inst?._zod.def?.error?.(t))??no(i?.(t))??no(e?.error?.(t))??no(n.customError?.(t))??no(n.localeError?.(t))??"Invalid input",{inst:s,schema:a,continue:l,input:c,...f}=t;return f.path??(f.path=[]),f.message=o,e?.reportInput&&(f.input=c),f}function yf(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}var $V=/[\uD800-\uDBFF]/;function Ga(t){const e=t.length;if(!$V.test(t))return e;let n=e;for(let r=0;r<e-1;r++)(t.charCodeAt(r)&64512)===55296&&(t.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function xf(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function ie(t){const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";const n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return e}function Bc(...t){const[e,n,r]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:r}:{...e}}function AV(t){return Object.entries(t).filter(([e,n])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function M$(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}function L$(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return btoa(e)}function DV(t){const e=t.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-e.length%4)%4);return M$(e+n)}function kV(t){return L$(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function SV(t){const e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");const n=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2)n[r/2]=Number.parseInt(e.slice(r,r+2),16);return n}function _V(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var wV=class{constructor(...t){}};function N$(t,e){for(const n in e){const r=Object.getOwnPropertyDescriptor(e,n);r.get?Object.defineProperty(t,n,{...r,enumerable:!1}):BV(t,n,r.value)}}function $a(t,e,n,r=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function U$(t,e,n){return $a(t,e,n,!1)}function BV(t,e,n){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?n:$a(this,e,n.bind(this))},set(r){$a(this,e,r)}})}function PV(t,e){const n=Object.getPrototypeOf(t);return e in n?void 0:n}var Rh,Qr=!1,FV={configurable:!0,get(){Qr=!0}};function _e(t,e,n){const r=Object.getPrototypeOf(t._zod);if(e in r&&Rh!==t._zod){Rh=void 0;return}Rh=t._zod,Object.defineProperty(r,e,{configurable:!0,get(){Object.defineProperty(this,e,FV);const u=Qr;Qr=!1;try{const i=n(this);return Qr?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:i}),Qr=Qr||u,i}catch(i){throw delete this[e],Qr=Qr||u,i}},set(u){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:u})}})}function QV(t,e,n,r){const u=PV(t,e);u&&Object.defineProperty(u,e,{configurable:!0,get(){const i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,e,i),i.value=n(this),Object.defineProperty(this,e,i),i.value},set(i){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:r,value:i})}})}var rg="~constantCatch";function X$(t){const e=()=>t;return e[rg]=!0,e}var Wv,V$=Object.freeze({status:"aborted"}),jh={value:void 0,enumerable:!1},Yv="captureStackTrace"in Error?Error:null;function TV(t){const e=Yv;if(e){const n=e.stackTraceLimit;if(typeof n=="number"){try{e.stackTraceLimit=0}catch{return Yv=null,new t}try{return new t}finally{e.stackTraceLimit=n}}}return new t}function k(t,e,n,r){const u={};function i(d){this.def=d,this.constr=f,this.traits=new Set}i.prototype=u;const o=n,s=o&&new WeakSet;function a(d,h){if(!d._zod){jh.value=new i(h);try{Object.defineProperty(d,"_zod",jh)}finally{jh.value=void 0}}if(d._zod.traits.has(t))return;if(d._zod.traits.add(t),e(d,h),s){const m=Object.getPrototypeOf(d),g=d._zod.constr.prototype;let C=m;for(;C&&C!==g;)C=Object.getPrototypeOf(C);const b=C??m;s.has(b)||(s.add(b),N$(b,o))}const p=f.prototype;for(const m in p)Object.prototype.hasOwnProperty.call(p,m)&&(m in d||(d[m]=p[m].bind(d)))}const l=r?.Parent??Object;class c extends l{}Object.defineProperty(c,"name",{value:t});function f(d){const h=r?.Parent?TV(c):this;a(h,d);const p=h._zod.deferred;if(p){for(const g of p)g();h._zod.deferred=void 0}const m=globalThis.__zod_globalConfig?.postProcessor;return m&&m(h),h}return Object.defineProperty(f,"init",{value:a}),Object.defineProperty(f,Symbol.hasInstance,{value:d=>r?.Parent&&d instanceof r.Parent?!0:d?._zod?.traits?.has(t)}),Object.defineProperty(f,"name",{value:t}),f}var q$=Symbol("zod_brand"),br=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ef=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Wv=globalThis).__zod_globalConfig??(Wv.__zod_globalConfig={});var bn=globalThis.__zod_globalConfig;function Vt(t){return t&&Object.assign(bn,t),bn}function IV(){const t=this._zod;return t.message??(t.message=JSON.stringify(t.def,_c,2)),t.message}function zV(t){this._zod.message=t}var ZV={get:IV,set:zV,enumerable:!0,configurable:!0},Mh={value:void 0,enumerable:!1},Lh={value:void 0,enumerable:!1},Gv=new WeakSet([Object.prototype,Error.prototype]),W$=(t,e)=>{t.name="$ZodError",Mh.value=t._zod,Object.defineProperty(t,"_zod",Mh),Lh.value=e,Object.defineProperty(t,"issues",Lh),Mh.value=void 0,Lh.value=void 0,Object.defineProperty(t,"message",ZV);const n=Object.getPrototypeOf(t);Gv.has(n)||(Gv.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},ig=k("$ZodError",W$),Wn=k("$ZodError",W$,void 0,{Parent:Error});function RV(t,e,n){return Object.prototype.hasOwnProperty.call(t,e)||(e==="__proto__"?Object.defineProperty(t,e,{value:n(),writable:!0,enumerable:!0,configurable:!0}):t[e]=n()),t[e]}function og(t,e=n=>n.message){const n={},r=[];for(const u of t.issues)u.path.length>0?RV(n,u.path[0],()=>[]).push(e(u)):r.push(e(u));return{formErrors:r,fieldErrors:n}}function sg(t,e=n=>n.message){const n={_errors:[]},r=(u,i=[])=>{for(const o of u.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>r({issues:s},[...i,...o.path]));else if(o.code==="invalid_key")r({issues:o.issues},[...i,...o.path]);else if(o.code==="invalid_element")r({issues:o.issues},[...i,...o.path]);else{const s=[...i,...o.path];if(s.length===0)n._errors.push(e(o));else{let a=n,l=0;for(;l<s.length;){const c=s[l],f=l===s.length-1;if(c==="_errors"){f&&a._errors.push(e(o)),l++;continue}Object.prototype.hasOwnProperty.call(a,c)||Object.defineProperty(a,c,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const d=a[c];f&&d._errors.push(e(o)),a=d,l++}}}};return r(t),n}function Y$(t,e=n=>n.message){const n={errors:[]},r=(u,i=[])=>{var o;for(const s of u.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{const a=[...i,...s.path];if(a.length===0){n.errors.push(e(s));continue}let l=n,c=0;for(;c<a.length;){const f=a[c],d=c===a.length-1;typeof f=="string"?(l.properties??(l.properties={}),Object.prototype.hasOwnProperty.call(l.properties,f)||Object.defineProperty(l.properties,f,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),l=l.properties[f]):(l.items??(l.items=[]),(o=l.items)[f]??(o[f]={errors:[]}),l=l.items[f]),d&&l.errors.push(e(s)),c++}}};return r(t),n}function G$(t){const e=[],n=t.map(r=>typeof r=="object"?r.key:r);for(const r of n)typeof r=="number"?e.push(`[${r}]`):typeof r=="symbol"?e.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?e.push(`[${JSON.stringify(r)}]`):(e.length&&e.push("."),e.push(r));return e.join("")}function H$(t){const e=[],n=[...t.issues].sort((r,u)=>(r.path??[]).length-(u.path??[]).length);for(const r of n)e.push(`✖ ${r.message}`),r.path?.length&&e.push(` → at ${G$(r.path)}`);return e.join(`
|
|
47
|
+
`)}function $f(t,e){return{callee:e?.callee??t,Err:e?.Err}}var Ha=t=>{const e=(n,r,u,i)=>{const o=u?{...u,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new br;if(s.issues.length){const a=new(i?.Err??t)(s.issues.map(l=>du(l,o,Vt())));throw ng(a,i?.callee??e),a}return s.value};return e},dm=Ha(Wn),Ka=t=>{const e=async(n,r,u,i)=>{const o=u?{...u,async:!0}:{async:!0};let s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(i?.Err??t)(s.issues.map(l=>du(l,o,Vt())));throw ng(a,i?.callee??e),a}return s.value};return e},hm=Ka(Wn),Ja=t=>(e,n,r)=>{const u=r?{...r,async:!1}:{async:!1},i=e._zod.run({value:n,issues:[]},u);if(i instanceof Promise)throw new br;return i.issues.length?{success:!1,error:new(t??ig)(i.issues.map(o=>du(o,u,Vt())))}:{success:!0,data:i.value}},K$=Ja(Wn),el=t=>async(e,n,r)=>{const u=r?{...r,async:!0}:{async:!0};let i=e._zod.run({value:n,issues:[]},u);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(o=>du(o,u,Vt())))}:{success:!0,data:i.value}},J$=el(Wn),jV=Symbol.for("zod.compile.invalid"),MV=Symbol.for("zod.compile.fallback"),eA=((t,e,n)=>{const r=t._zod.bag.validator;return r!==void 0&&r(e)!==jV?!0:LV(t,e,n)});function LV(t,e,n){const r=n?{...n,async:!1}:{async:!1},u=t._zod.bag.fallbackRun;let i;if(u?(r[MV]=!0,i=u({value:e,issues:[]},r)):i=t._zod.run({value:e,issues:[]},r),i instanceof Promise)throw new br;return i.issues.length===0}var tA=async(t,e,n)=>{const r=n?{...n,async:!0}:{async:!0};let u=t._zod.run({value:e,issues:[]},r);return u instanceof Promise&&(u=await u),u.issues.length===0},ag=t=>{const e=Ha(t),n=(r,u,i,o)=>{const s=i?{...i,direction:"backward"}:{direction:"backward"};return e(r,u,s,$f(n,o))};return n},NV=ag(Wn),lg=t=>{const e=Ha(t),n=(r,u,i,o)=>e(r,u,i,$f(n,o));return n},UV=lg(Wn),cg=t=>{const e=Ka(t),n=async(r,u,i,o)=>{const s=i?{...i,direction:"backward"}:{direction:"backward"};return await e(r,u,s,$f(n,o))};return n},XV=cg(Wn),fg=t=>{const e=Ka(t),n=async(r,u,i,o)=>await e(r,u,i,$f(n,o));return n},VV=fg(Wn),dg=t=>(e,n,r)=>{const u=r?{...r,direction:"backward"}:{direction:"backward"};return Ja(t)(e,n,u)},qV=dg(Wn),hg=t=>(e,n,r)=>Ja(t)(e,n,r),WV=hg(Wn),pg=t=>async(e,n,r)=>{const u=r?{...r,direction:"backward"}:{direction:"backward"};return el(t)(e,n,u)},YV=pg(Wn),mg=t=>async(e,n,r)=>el(t)(e,n,r),GV=mg(Wn),Jr={};Sr(Jr,{base64:()=>vA,base64url:()=>gg,bigint:()=>kA,boolean:()=>SA,browserEmail:()=>rq,cidrv4:()=>OA,cidrv6:()=>bA,creditCard:()=>Og,cuid:()=>nA,cuid2:()=>uA,date:()=>EA,datetime:()=>AA,domain:()=>sq,duration:()=>lA,e164:()=>yA,email:()=>fA,emoji:()=>hA,extendedDuration:()=>HV,guid:()=>cA,hex:()=>lq,hostname:()=>oq,html5Email:()=>tq,httpProtocol:()=>CA,idnEmail:()=>uq,integer:()=>bg,ipv4:()=>pA,ipv6:()=>mA,ksuid:()=>oA,lowercase:()=>BA,mac:()=>gA,md5_base64:()=>fq,md5_base64url:()=>dq,md5_hex:()=>cq,nanoid:()=>sA,nanoidOfLength:()=>aA,null:()=>_A,number:()=>tl,rfc5322Email:()=>nq,sha1_base64:()=>pq,sha1_base64url:()=>mq,sha1_hex:()=>hq,sha256_base64:()=>Oq,sha256_base64url:()=>bq,sha256_hex:()=>gq,sha384_base64:()=>Cq,sha384_base64url:()=>yq,sha384_hex:()=>vq,sha512_base64:()=>Eq,sha512_base64url:()=>$q,sha512_hex:()=>xq,string:()=>DA,time:()=>$A,ulid:()=>rA,undefined:()=>wA,unicodeEmail:()=>dA,uppercase:()=>PA,uuid:()=>Ro,uuid4:()=>KV,uuid6:()=>JV,uuid7:()=>eq,xid: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)-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])))";function aq(t){return new RegExp(`^${t}$`)}var EA=aq(xA);function pm(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:t.seconds?`${e}:[0-5]\\d(?:\\.\\d+)?`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function $A(t){return new RegExp(`^${pm(t)}$`)}function AA(t){const e=["Z"];t.offset&&e.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${pm({precision:t.precision,seconds:!0})}(?:${e.join("|")})`,r=t.local?`${n}|${pm({precision:t.precision})}`:n;return new RegExp(`^${xA}T(?:${r})$`)}var DA=t=>{const e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},kA=/^-?\d+n?$/,bg=/^-?\d+$/,tl=/^-?\d+(?:\.\d+)?$/,SA=/^(?:true|false)$/i,_A=/^null$/i,wA=/^undefined$/i,BA=/^[^A-Z]*$/,PA=/^[^a-z]*$/,lq=/^[0-9a-fA-F]*$/;function nl(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function ul(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var cq=/^[0-9a-fA-F]{32}$/,fq=nl(22,"=="),dq=ul(22),hq=/^[0-9a-fA-F]{40}$/,pq=nl(27,"="),mq=ul(27),gq=/^[0-9a-fA-F]{64}$/,Oq=nl(43,"="),bq=ul(43),vq=/^[0-9a-fA-F]{96}$/,Cq=nl(64,""),yq=ul(64),xq=/^[0-9a-fA-F]{128}$/,Eq=nl(86,"=="),$q=ul(86),pt=k("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),vg=t=>{const e=t.value;return!eg(e)&&e.size!==void 0},Cg=t=>{const e=t.value;return!eg(e)&&e.length!==void 0},Pc={number:"number",bigint:"bigint",object:"date"},yg=k("$ZodCheckLessThan",(t,e)=>{pt.init(t,e);const n=Pc[typeof e.value];t._zod.onattach.push(r=>{const u=r._zod.bag,i=(e.inclusive?u.maximum:u.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?u.maximum=e.value:u.exclusiveMaximum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:Pc[typeof r.value]??n,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),xg=k("$ZodCheckGreaterThan",(t,e)=>{pt.init(t,e);const n=Pc[typeof e.value];t._zod.onattach.push(r=>{const u=r._zod.bag,i=(e.inclusive?u.minimum:u.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?u.minimum=e.value:u.exclusiveMinimum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:Pc[typeof r.value]??n,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),FA=k("$ZodCheckMultipleOf",(t,e)=>{pt.init(t,e),t._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?e.value!==BigInt(0)&&n.value%e.value===BigInt(0):tg(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),QA=k("$ZodCheckNumberFormat",(t,e)=>{pt.init(t,e),e.format=e.format||"float64";const n=e.format?.includes("int"),r=n?"int":"number",[u,i]=Z$[e.format];t._zod.onattach.push(o=>{const s=o._zod.bag;s.format=e.format,s.minimum=u,s.maximum=i,n&&(s.pattern=bg)}),t._zod.check=o=>{const s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:e.format,code:"invalid_type",continue:!1,input:s,inst:t});return}if(!Number.isSafeInteger(s)){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:t,origin:r,inclusive:!0,continue:!e.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,inclusive:!0,continue:!e.abort});return}}s<u&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:u,inclusive:!0,inst:t,continue:!e.abort}),s>i&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),TA=k("$ZodCheckBigIntFormat",(t,e)=>{pt.init(t,e);const[n,r]=R$[e.format];t._zod.onattach.push(u=>{const i=u._zod.bag;i.format=e.format,i.minimum=n,i.maximum=r}),t._zod.check=u=>{const i=u.value;i<n&&u.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),i>r&&u.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inclusive:!0,inst:t,continue:!e.abort})}}),IA=k("$ZodCheckMaxSize",(t,e)=>{var n;pt.init(t,e),(n=t._zod.def).when??(n.when=vg),t._zod.onattach.push(r=>{const u=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<u&&(r._zod.bag.maximum=e.maximum)}),t._zod.check=r=>{const u=r.value;u.size<=e.maximum||r.issues.push({origin:yf(u),code:"too_big",maximum:e.maximum,inclusive:!0,input:u,inst:t,continue:!e.abort})}}),zA=k("$ZodCheckMinSize",(t,e)=>{var n;pt.init(t,e),(n=t._zod.def).when??(n.when=vg),t._zod.onattach.push(r=>{const u=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>u&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{const u=r.value;u.size>=e.minimum||r.issues.push({origin:yf(u),code:"too_small",minimum:e.minimum,inclusive:!0,input:u,inst:t,continue:!e.abort})}}),ZA=k("$ZodCheckSizeEquals",(t,e)=>{var n;pt.init(t,e),(n=t._zod.def).when??(n.when=vg),t._zod.onattach.push(r=>{const u=r._zod.bag;u.minimum=e.size,u.maximum=e.size,u.size=e.size}),t._zod.check=r=>{const u=r.value,i=u.size;if(i===e.size)return;const o=i>e.size;r.issues.push({origin:yf(u),...o?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),RA=k("$ZodCheckMaxLength",(t,e)=>{var n;pt.init(t,e),(n=t._zod.def).when??(n.when=Cg),t._zod.onattach.push(r=>{const u=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<u&&(r._zod.bag.maximum=e.maximum)}),t._zod.check=r=>{const u=r.value,i=u.length;if((typeof u=="string"&&i>e.maximum?Ga(u):i)<=e.maximum)return;const s=xf(u);r.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:u,inst:t,continue:!e.abort})}}),jA=k("$ZodCheckMinLength",(t,e)=>{var n;pt.init(t,e),(n=t._zod.def).when??(n.when=Cg),t._zod.onattach.push(r=>{const u=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>u&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{const u=r.value,i=u.length;if((typeof u=="string"&&i>=e.minimum&&i<e.minimum*2?Ga(u):i)>=e.minimum)return;const s=xf(u);r.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:u,inst:t,continue:!e.abort})}}),MA=k("$ZodCheckLengthEquals",(t,e)=>{var n;pt.init(t,e),(n=t._zod.def).when??(n.when=Cg),t._zod.onattach.push(r=>{const u=r._zod.bag;u.minimum=e.length,u.maximum=e.length,u.length=e.length}),t._zod.check=r=>{const u=r.value,i=u.length,o=typeof u=="string"&&i>=e.length&&i<=e.length*2?Ga(u):i;if(o===e.length)return;const s=xf(u),a=o>e.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),rl=k("$ZodCheckStringFormat",(t,e)=>{var n,r;pt.init(t,e),t._zod.onattach.push(u=>{const i=u._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=u=>{e.pattern.lastIndex=0,!e.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:e.format,input:u.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(r=t._zod).check??(r.check=()=>{})}),LA=k("$ZodCheckRegex",(t,e)=>{rl.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),NA=k("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=BA),rl.init(t,e)}),UA=k("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=PA),rl.init(t,e)}),XA=k("$ZodCheckIncludes",(t,e)=>{pt.init(t,e);const n=Ar(e.includes),r=new RegExp(typeof e.position=="number"?`^.{${e.position},}${n}`:n);e.pattern=r,t._zod.onattach.push(u=>{const i=u._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),t._zod.check=u=>{u.value.includes(e.includes,e.position)||u.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:u.value,inst:t,continue:!e.abort})}}),VA=k("$ZodCheckStartsWith",(t,e)=>{pt.init(t,e);const n=new RegExp(`^${Ar(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const u=r._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(n)}),t._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:t,continue:!e.abort})}}),qA=k("$ZodCheckEndsWith",(t,e)=>{pt.init(t,e);const n=new RegExp(`.*${Ar(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const u=r._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(n)}),t._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:t,continue:!e.abort})}});function Hv(t,e,n){t.issues.length&&e.issues.push(...iu(n,t.issues))}var Eg=k("$ZodCheckProperty",(t,e)=>{pt.init(t,e),t._zod.check=n=>{const r=e.schema._zod.run({value:n.value[e.property],issues:[]},{});if(r instanceof Promise)return r.then(u=>Hv(u,n,e.property));Hv(r,n,e.property)}}),WA=k("$ZodCheckMimeType",(t,e)=>{pt.init(t,e);const n=new Set(e.mime);t._zod.onattach.push(r=>{r._zod.bag.mime=e.mime}),t._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:e.mime,input:r.value.type,inst:t,continue:!e.abort})}}),YA=k("$ZodCheckOverwrite",(t,e)=>{pt.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}}),$g=class{constructor(t=[],e={}){this.content=[],this.indent=0,this.args=t,this.closed=e}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
48
|
+
`).filter(i=>i),r=Math.min(...n.map(i=>i.length-i.trimStart().length)),u=n.map(i=>i.slice(r)).map(i=>" ".repeat(this.indent*2)+i);for(const i of u)this.content.push(i)}compile(){const t=Function,e=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
49
|
+
${e.join(`
|
|
50
|
+
`)}
|
|
51
|
+
};`)(...Object.values(this.closed))}},GA={major:4,minor:5,patch:4},xe=k("$ZodType",(t,e)=>{var n;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=GA;const r=t._zod.def.checks,u=t._zod.traits.has("$ZodCheck")?[t,...r??[]]:r?.length?[...r]:[];for(const i of u)for(const o of i._zod.onattach)o(t);if(u.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{const i=(s,a,l)=>{if(s.memo)return s;let c=ki(s),f;for(const d of a){if(d._zod.def.when){if(j$(s)||!d._zod.def.when(s))continue}else if(c)continue;const h=s.issues.length,p=d._zod.check(s);if(p instanceof Promise&&l?.async===!1)throw new br;if(f||p instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await p,s.issues.length!==h&&(fm(s.issues,h,t),c||(c=ki(s,h)))});else{if(s.issues.length===h)continue;fm(s.issues,h,t),c||(c=ki(s,h))}}return f?f.then(()=>s):s},o=(s,a,l)=>{if(ki(s))return s.aborted=!0,s;const c=i(a,u,l);if(c instanceof Promise){if(l.async===!1)throw new br;return c.then(f=>t._zod.parse(f,l))}return t._zod.parse(c,l)};t._zod.run=(s,a)=>{if(a.skipChecks)return t._zod.parse(s,a);if(a.direction==="backward"){const c=t._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(f=>o(f,s,a)):o(c,s,a)}const l=t._zod.parse(s,a);if(l instanceof Promise){if(a.async===!1)throw new br;return l.then(c=>i(c,u,a))}return i(l,u,a)}}},{get"~standard"(){return U$(this,"~standard",Ag(this))},set"~standard"(t){$a(this,"~standard",t)}}),Kv=t=>t.success?{value:t.data}:{issues:t.error?.issues};function Ag(t){return{validate:e=>{try{return Kv(K$(t,e))}catch{return J$(t,e).then(Kv)}},vendor:"zod",version:1}}var il=k("$ZodString",(t,e)=>{xe.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??DA(t._zod.bag),t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),et=k("$ZodStringFormat",(t,e)=>{rl.init(t,e),il.init(t,e)}),HA=k("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=cA),et.init(t,e)}),KA=k("$ZodUUID",(t,e)=>{if(e.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(r===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Ro(r))}else e.pattern??(e.pattern=Ro());et.init(t,e)}),JA=k("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=fA),et.init(t,e)}),Dg=1,kg=2;function Sg(t,e){if(!e.normalize&&e.protocol?.source===CA.source&&!/^https?:\/\//i.test(t))return Dg;try{return new URL(t)}catch{return kg}}var Aq=/[\t\n\r]/g;function _g(t){return t.replace(Aq,"")}function wg(t,e){return e.lastIndex=0,e.test(t.hostname)}function Bg(t,e){return e.lastIndex=0,e.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)}var e9=k("$ZodURL",(t,e)=>{et.init(t,e),t._zod.check=n=>{try{const r=n.value.trim(),u=Sg(r,e);if(u===Dg){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:t,continue:!e.abort});return}if(u===kg){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort});return}e.hostname&&!wg(u,e.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:n.value,inst:t,continue:!e.abort}),e.protocol&&!Bg(u,e.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:n.value,inst:t,continue:!e.abort}),n.value=e.normalize?u.href:_g(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort})}}}),t9=k("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=hA()),et.init(t,e)}),n9=k("$ZodNanoID",(t,e)=>{if(e.length!==void 0&&(!Number.isInteger(e.length)||e.length<1))throw new Error(`Invalid nanoid length: ${e.length}`);e.pattern??(e.pattern=e.length===void 0?sA:aA(e.length)),et.init(t,e)}),u9=k("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=nA),et.init(t,e)}),r9=k("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=uA),et.init(t,e)}),i9=k("$ZodULID",(t,e)=>{e.pattern??(e.pattern=rA),et.init(t,e)}),o9=k("$ZodXID",(t,e)=>{e.pattern??(e.pattern=iA),et.init(t,e)}),s9=k("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=oA),et.init(t,e)}),a9=k("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=AA(e)),et.init(t,e),(e.local||e.precision===-1)&&(t._zod.bag.laxFormat=!0,t._zod.onattach.push(n=>{n._zod.bag.laxFormat=!0}))}),l9=k("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=EA),et.init(t,e)}),c9=k("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=$A(e)),et.init(t,e)}),f9=k("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=lA),et.init(t,e)}),d9=k("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=pA),et.init(t,e),t._zod.bag.format="ipv4"}),Dq=/^[0-9a-fA-F:.]+$/;function Af(t){if(!Dq.test(t))return!1;try{return new URL(`http://[${t}]`),!0}catch{return!1}}var h9=k("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=mA),et.init(t,e),t._zod.bag.format="ipv6",t._zod.check=n=>{Af(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!e.abort})}}),p9=k("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=gA(e.delimiter)),et.init(t,e),t._zod.bag.format="mac"}),m9=k("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=OA),et.init(t,e)});function Pg(t){const e=t.split("/");if(e.length!==2)return!1;const[n,r]=e;if(!r)return!1;const u=Number(r);return`${u}`!==r||u<0||u>128?!1:Af(n)}var g9=k("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=bA),et.init(t,e),t._zod.check=n=>{Pg(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!e.abort})}});function Df(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var O9=k("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=vA),et.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{Df(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!e.abort})}});function Fg(t){if(!gg.test(t))return!1;const e=t.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=e.padEnd(Math.ceil(e.length/4)*4,"=");return Df(n)}var b9=k("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=gg),et.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{Fg(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!e.abort})}}),v9=k("$ZodE164",(t,e)=>{e.pattern??(e.pattern=yA),et.init(t,e)}),kq=/[- ]/g;function Sq(t){let e=t.length,n=1,r=0;for(;e;){const u=+t[--e];n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][u]:u}return r%10===0}function Qg(t){return Og.test(t)?Sq(t.replace(kq,"")):!1}var C9=k("$ZodCreditCard",(t,e)=>{e.pattern??(e.pattern=Og),et.init(t,e),t._zod.check=n=>{Qg(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:t,continue:!e.abort})}});function Tg(t,e=null){try{const n=t.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const u=JSON.parse(atob(r));return!("typ"in u&&u?.typ!=="JWT"||!u.alg||e&&(!("alg"in u)||u.alg!==e))}catch{return!1}}var y9=k("$ZodJWT",(t,e)=>{et.init(t,e),t._zod.check=n=>{Tg(n.value,e.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!e.abort})}}),x9=k("$ZodCustomStringFormat",(t,e)=>{et.init(t,e),t._zod.check=n=>{e.fn(n.value)||n.issues.push({code:"invalid_format",format:e.format,input:n.value,inst:t,continue:!e.abort})}}),Ig=k("$ZodNumber",(t,e)=>{xe.init(t,e),t._zod.pattern=t._zod.bag.pattern??tl,t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch{}const u=n.value;if(typeof u=="number"&&!Number.isNaN(u)&&Number.isFinite(u))return n;const i=typeof u=="number"?Number.isNaN(u)?"NaN":Number.isFinite(u)?void 0:String(u):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:u,inst:t,...i?{received:i}:{}}),n}}),E9=k("$ZodNumberFormat",(t,e)=>{QA.init(t,e),Ig.init(t,e)}),zg=k("$ZodBoolean",(t,e)=>{xe.init(t,e),t._zod.pattern=SA,t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=!!n.value}catch{}const u=n.value;return typeof u=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:t}),n}}),Zg=k("$ZodBigInt",(t,e)=>{xe.init(t,e),t._zod.pattern=kA,t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:t}),n}}),$9=k("$ZodBigIntFormat",(t,e)=>{TA.init(t,e),Zg.init(t,e)}),A9=k("$ZodSymbol",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{const u=n.value;return typeof u=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:u,inst:t}),n}}),D9=k("$ZodUndefined",(t,e)=>{xe.init(t,e),t._zod.pattern=wA,t._zod.values=new Set([void 0]),t._zod.parse=(n,r)=>{const u=n.value;return typeof u>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:u,inst:t}),n}}),k9=k("$ZodNull",(t,e)=>{xe.init(t,e),t._zod.pattern=_A,t._zod.values=new Set([null]),t._zod.parse=(n,r)=>{const u=n.value;return u===null||n.issues.push({expected:"null",code:"invalid_type",input:u,inst:t}),n}}),S9=k("$ZodAny",(t,e)=>{xe.init(t,e),t._zod.parse=n=>n}),_9=k("$ZodUnknown",(t,e)=>{xe.init(t,e),t._zod.parse=n=>n}),w9=k("$ZodNever",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)}),B9=k("$ZodVoid",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{const u=n.value;return typeof u>"u"||n.issues.push({expected:"void",code:"invalid_type",input:u,inst:t}),n}}),P9=k("$ZodDate",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=new Date(n.value)}catch{}const u=n.value,i=u instanceof Date;return i&&!Number.isNaN(u.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:u,...i?{received:"Invalid Date"}:{},inst:t}),n}});function Jv(t,e,n){t.issues.length&&e.issues.push(...iu(n,t.issues)),e.value[n]=t.value}var F9=k("$ZodArray",(t,e)=>{xe.init(t,e);const n=bn.memoizer;n?.attach(t),t._zod.parse=(r,u)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:t}),r;r.value=n?n.alloc(t,r,Array(i.length),u):Array(i.length);const o=[];for(let s=0;s<i.length;s++){const a=i[s],l=e.element._zod.run({value:a,issues:[]},u);l instanceof Promise?o.push(l.then(c=>Jv(c,r,s))):Jv(l,r,s)}return o.length?Promise.all(o).then(()=>r):r}});function Fc(t,e,n,r,u,i){const o=n in r,s=i==="optional";if(!(!o&&s&&u==="optional")){if(t.issues.length){if(u!==void 0&&s&&!o)return;e.issues.push(...iu(n,t.issues))}if(!o&&u===void 0){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}t.value===void 0?o&&(e.value[n]=void 0):e.value[n]=t.value}}var _q=[];function Q9(t){const e=Object.keys(t.shape),n=Object.getOwnPropertySymbols(t.shape),r=n.length?n:_q,u=r.length?[...e,...r]:e;for(const o of u)if(!t.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(o)}": expected a Zod schema`);const i=z$(t.shape);return{...t,allKeys:u,symbolKeys:r,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(i)}}function T9(t,e,n,r,u,i){const o=[],s=u.keySet,a=u.catchall._zod,l=a.def.type,c=a.optin,f=a.optout;for(const d in e){if(s.has(d))continue;if(d==="__proto__"){l==="never"&&o.push(d);continue}if(l==="never"){o.push(d);continue}const h=a.run({value:e[d],issues:[]},r);h instanceof Promise?t.push(h.then(p=>Fc(p,n,d,e,c,f))):Fc(h,n,d,e,c,f)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:i,continue:!0}),t.length?Promise.all(t).then(()=>n):n}var mm=new WeakMap,I9=k("$ZodObject",(t,e)=>{if(xe.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){const a=e.shape;mm.set(e,a),Object.defineProperty(e,"shape",{get:()=>{const l={...a};return Object.defineProperty(e,"shape",{value:l}),mm.set(e,l),l}})}const r=Ya(()=>Q9(e));_e(t,"propValues",a=>{const l=a.def.shape,c={};for(const f in l){const d=l[f]._zod;if(d.values){Object.prototype.hasOwnProperty.call(c,f)||wt(c,f,new Set);for(const h of d.values)c[f].add(h);d.optin!==void 0&&c[f].add(void 0)}}return c});const u=Zo,i=e.catchall;let o;const s=bn.memoizer;s?.attach(t),t._zod.parse=(a,l)=>{o??(o=r.value);const c=a.value;if(!u(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:t}),a;a.value=s?s.alloc(t,a,{},l):{};const f=[],d=o.shape;for(const h of o.allKeys){if(h==="__proto__")continue;const p=d[h],m=p._zod.optin,g=p._zod.optout,C=p._zod.run({value:c[h],issues:[]},l);C instanceof Promise?f.push(C.then(b=>Fc(b,a,h,c,m,g))):Fc(C,a,h,c,m,g)}return i?T9(f,c,a,l,r.value,t):f.length?Promise.all(f).then(()=>a):a}}),z9=k("$ZodObjectJIT",(t,e)=>{I9.init(t,e);const n=t._zod.parse,r=Ya(()=>Q9(e)),u=bn.memoizer,i=h=>{const p=r.value,m=p.symbolKeys,g=new $g(["payload","ctx"],{shape:h,inst:t,memo:u,syms:m}),C=$=>`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`,b=($,x)=>`
|
|
52
|
+
for (let i = 0; i < ${$}.issues.length; i++) {
|
|
53
|
+
const iss = ${$}.issues[i];
|
|
54
|
+
iss.path = iss.path ? [${x}, ...iss.path] : [${x}];
|
|
55
|
+
payload.issues.push(iss);
|
|
56
|
+
}`;g.write("const input = payload.value;");const O=Object.create(null);let y=0;for(const $ of p.allKeys)O[$]=`key_${y++}`;g.write(u?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const $ of p.allKeys){if($==="__proto__")continue;const x=O[$],_=typeof $=="symbol"?`syms[${m.indexOf($)}]`:au($),R=`${_} in input`,ue=h[$],re=ue?._zod?.optin,oe=re!==void 0,ee=ue?._zod?.optout==="optional";if(g.write(`const ${x} = ${C(_)};`),oe&&ee){const Ee=re==="optional"?`${x}_present`:`${x}.value !== undefined || ${x}_present`;g.write(`
|
|
57
|
+
const ${x}_present = ${R};
|
|
58
|
+
if (!${x}.issues.length || ${x}_present) {
|
|
59
|
+
if (${x}.issues.length) {${b(x,_)}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (${Ee}) {
|
|
63
|
+
newResult[${_}] = ${x}.value;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
`)}else oe?g.write(`
|
|
68
|
+
if (${x}.issues.length) {${b(x,_)}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (${x}.value === undefined) {
|
|
72
|
+
if (${R}) {
|
|
73
|
+
newResult[${_}] = undefined;
|
|
74
|
+
}
|
|
75
|
+
} else {
|
|
76
|
+
newResult[${_}] = ${x}.value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
`):g.write(`
|
|
80
|
+
const ${x}_present = ${R};
|
|
81
|
+
if (${x}.issues.length) {${b(x,_)}
|
|
82
|
+
}
|
|
83
|
+
if (!${x}_present && !${x}.issues.length) {
|
|
84
|
+
payload.issues.push({
|
|
85
|
+
code: "invalid_type",
|
|
86
|
+
expected: "nonoptional",
|
|
87
|
+
input: undefined,
|
|
88
|
+
path: [${_}]
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (${x}_present) {
|
|
93
|
+
newResult[${_}] = ${x}.value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
`)}return g.write("payload.value = newResult;"),g.write("return payload;"),g.compile()};let o;const s=Zo,a=!bn.jitless,c=a&&T$.value,f=e.catchall;let d;t._zod.parse=(h,p)=>{d??(d=r.value);const m=h.value;return s(m)?a&&c&&p?.async===!1&&p.jitless!==!0?(o||(o=i(e.shape)),h=o(h,p),f?T9([],m,h,p,d,t):h):n(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:m,inst:t}),h)}});function eC(t,e,n,r){for(const i of t)if(i.issues.length===0)return e.value=i.value,e;const u=t.filter(i=>!ki(i));return u.length===1?(e.value=u[0].value,u[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(i=>i.issues.map(o=>du(o,r,Vt())))}),e)}var kf=k("$ZodUnion",(t,e)=>{xe.init(t,e),_e(t,"optin",r=>r.def.options.some(u=>u._zod.optin==="defaulted")?"defaulted":r.def.options.some(u=>u._zod.optin!==void 0)?"optional":void 0),_e(t,"optout",r=>r.def.options.some(u=>u._zod.optout==="optional")?"optional":void 0),_e(t,"values",r=>{if(r.def.options.every(u=>u._zod.values))return new Set(r.def.options.flatMap(u=>Array.from(u._zod.values)))}),_e(t,"pattern",r=>{if(r.def.options.every(u=>u._zod.pattern)){const u=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${u.map(i=>Cf(i.source)).join("|")})$`)}});const n=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(r,u)=>{if(n)return n(r,u);let i=!1;const o=[];for(const s of e.options){const a=s._zod.run({value:r.value,issues:[]},u);if(a instanceof Promise)o.push(a),i=!0;else{if(a.issues.length===0)return a;o.push(a)}}return i?Promise.all(o).then(s=>eC(s,r,t,u)):eC(o,r,t,u)}});function tC(t,e,n,r){const u=[];for(let i=0;i<t.length;i++)t[i].issues.length===0&&u.push(i);return u.length===1?(e.value=t[u[0]].value,e):(u.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(i=>i.issues.map(o=>du(o,r,Vt())))}):e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:[],inclusive:!1,matches:u}),e)}var Z9=k("$ZodXor",(t,e)=>{kf.init(t,e),e.inclusive=!1;const n=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(r,u)=>{if(n)return n(r,u);let i=!1;const o=[];for(const s of e.options){const a=s._zod.run({value:r.value,issues:[]},u);a instanceof Promise?(o.push(a),i=!0):o.push(a)}return i?Promise.all(o).then(s=>tC(s,r,t,u)):tC(o,r,t,u)}});function R9(t,e){const n=t._zod;let r=n.bag.optionsMap;if(!r){r=new Map;const{options:u,discriminator:i}=n.def;for(const o of u)for(const s of o._zod.propValues?.[i]??[])r.has(s)||r.set(s,o);n.bag.optionsMap=r}return r.get(e)}var j9=k("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,kf.init(t,e);const n=t._zod.parse;_e(t,"propValues",u=>{const i={};for(const o of u.def.options){const s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${u.def.options.indexOf(o)}"`);for(const[a,l]of Object.entries(s)){Object.prototype.hasOwnProperty.call(i,a)||wt(i,a,new Set);for(const c of l)i[a].add(c)}}return i}),e.options.forEach((u,i)=>{const o=mm.get(u._zod.def);if(o&&!Object.prototype.hasOwnProperty.call(o,e.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});const r=Ya(()=>{const u=e.options,i=new Map;for(const o of u){const s=o._zod.propValues?.[e.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(const a of s){if(i.has(a))throw new Error(`Duplicate discriminator value "${String(a)}"`);i.set(a,o)}}return i});t._zod.parse=(u,i)=>{const o=u.value;if(!Zo(o))return u.issues.push({code:"invalid_type",expected:"object",input:o,inst:t}),u;const s=r.value.get(o?.[e.discriminator]);return s?s._zod.run(u,i):e.unionFallback||i.direction==="backward"?n(u,i):(u.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(r.value.keys()),input:o,path:[e.discriminator],inst:t}),u)}}),M9=k("$ZodIntersection",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{const u=n.value,i=e.left._zod.run({value:u,issues:[]},r),o=e.right._zod.run({value:u,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([a,l])=>nC(n,a,l)):nC(n,i,o)}});function Aa(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if($r(t)&&$r(e)){const n=Object.keys(e),r=Object.keys(t).filter(i=>n.indexOf(i)!==-1),u={...t,...e};Object.prototype.hasOwnProperty.call(u,"__proto__")&&delete u.__proto__;for(const i of r){if(i==="__proto__")continue;const o=Aa(t[i],e[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};u[i]=o.data}return{valid:!0,data:u}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<t.length;r++){const u=t[r],i=e[r],o=Aa(u,i);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function nC(t,e,n){const r=new Map;let u;const i=new Map,o=(l,c)=>{let f;if(l.code==="unrecognized_keys"&&!l.path?.length)u??(u=l),f=l.keys;else if(l.code==="invalid_key"&&l.origin==="record"&&l.path?.length===1){const d=String(l.path[0]);i.has(d)||i.set(d,l),f=[d]}else return!1;for(const d of f)r.has(d)||r.set(d,{}),r.get(d)[c]=!0;return!0};for(const l of e.issues)o(l,"l")||t.issues.push(l);for(const l of n.issues)o(l,"r")||t.issues.push(l);const s=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(s.length){const l=u?s.filter(c=>u.keys.includes(c)):[];l.length&&t.issues.push({...u,keys:l});for(const c of s)!l.includes(c)&&i.has(c)&&t.issues.push(i.get(c))}const a=Aa(e.value,n.value);if(!a.valid){if(ki(t))return t;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`)}return t.value=a.data,t}var Rg=k("$ZodTuple",(t,e)=>{xe.init(t,e);const n=e.items,r=bn.memoizer;r?.attach(t),t._zod.parse=(u,i)=>{const o=u.value;if(!Array.isArray(o))return u.issues.push({input:o,inst:t,expected:"tuple",code:"invalid_type"}),u;u.value=r?r.alloc(t,u,[],i):[];const s=[],a=uC(n,"optin"),l=uC(n,"optout");if(!e.rest){if(o.length<a)return u.issues.push({code:"too_small",minimum:a,inclusive:!0,input:o,inst:t,origin:"array"}),u;o.length>n.length&&u.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:o,inst:t,origin:"array"})}const c=new Array(n.length);for(let f=0;f<n.length;f++){const d=n[f]._zod.run({value:o[f],issues:[]},i);d instanceof Promise?s.push(d.then(h=>{c[f]=h})):c[f]=d}if(e.rest){let f=n.length-1;const d=o.slice(n.length);for(const h of d){f++;const p=e.rest._zod.run({value:h,issues:[]},i);p instanceof Promise?s.push(p.then(m=>rC(m,u,f))):rC(p,u,f)}}return s.length?Promise.all(s).then(()=>iC(c,u,n,o,l)):iC(c,u,n,o,l)}});function uC(t,e){for(let n=t.length-1;n>=0;n--)if(!(e==="optin"?t[n]._zod.optin!==void 0:t[n]._zod.optout==="optional"))return n+1;return 0}function rC(t,e,n){t.issues.length&&e.issues.push(...iu(n,t.issues)),e.value[n]=t.value}function iC(t,e,n,r,u){for(let i=0;i<n.length;i++){const o=t[i],s=i<r.length;if(!s&&i>=u&&n[i]._zod.optin==="optional"){e.value.length=i;break}if(o.issues.length){if(!s&&i>=u){e.value.length=i;break}e.issues.push(...iu(i,o.issues))}e.value[i]=o.value}for(let i=e.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&e.value[i]===void 0);i--)e.value.length=i;return e}var L9=k("$ZodRecord",(t,e)=>{xe.init(t,e);const n=bn.memoizer;n?.attach(t),t._zod.parse=(r,u)=>{const i=r.value;if(!$r(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:t}),r;const o=[],s=e.keyType._zod.values;if(s&&!e.partial){r.value=n?n.alloc(t,r,{},u):{};const a=new Set;for(const c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){if(a.add(typeof c=="number"?c.toString():c),c==="__proto__")continue;const f=e.keyType._zod.run({value:c,issues:[]},u);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(p=>du(p,u,Vt())),input:c,path:[c],inst:t});continue}const d=f.value;if(d==="__proto__")continue;const h=e.valueType._zod.run({value:i[c],issues:[]},u);h instanceof Promise?o.push(h.then(p=>{p.issues.length&&r.issues.push(...iu(c,p.issues)),r.value[d]=p.value})):(h.issues.length&&r.issues.push(...iu(c,h.issues)),r.value[d]=h.value)}let l;for(const c in i)if(!a.has(c))if(e.mode==="loose"){if(c==="__proto__")continue;r.value[c]=i[c]}else l=l??[],l.push(c);l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:l,continue:!0})}else{r.value=n?n.alloc(t,r,{},u):{};let a;for(const l of Reflect.ownKeys(i)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,l))continue;let c=e.keyType._zod.run({value:l,issues:[]},u);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&tl.test(l)&&c.issues.length){const p=e.keyType._zod.run({value:Number(l),issues:[]},u);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(c=p)}if(c.issues.length){e.mode==="loose"?r.value[l]=i[l]:s?(a=a??[],a.push(l)):r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(p=>du(p,u,Vt())),input:l,path:[l],inst:t});continue}const d=c.value;if(d==="__proto__")continue;const h=e.valueType._zod.run({value:i[l],issues:[]},u);h instanceof Promise?o.push(h.then(p=>{p.issues.length&&r.issues.push(...iu(l,p.issues)),r.value[d]=p.value})):(h.issues.length&&r.issues.push(...iu(l,h.issues)),r.value[d]=h.value)}a&&a.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:a,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),N9=k("$ZodMap",(t,e)=>{xe.init(t,e);const n=bn.memoizer;n?.attach(t),t._zod.parse=(r,u)=>{const i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:t}),r;const o=[];r.value=n?n.alloc(t,r,new Map,u):new Map;for(const[s,a]of i){const l=e.keyType._zod.run({value:s,issues:[]},u),c=e.valueType._zod.run({value:a,issues:[]},u);l instanceof Promise||c instanceof Promise?o.push(Promise.all([l,c]).then(([f,d])=>{oC(f,d,r,s,i,t,u)})):oC(l,c,r,s,i,t,u)}return o.length?Promise.all(o).then(()=>r):r}});function oC(t,e,n,r,u,i,o){t.issues.length&&(wc.has(typeof r)?n.issues.push(...iu(r,t.issues)):n.issues.push({code:"invalid_key",origin:"map",input:u,inst:i,issues:t.issues.map(s=>du(s,o,Vt()))})),e.issues.length&&(wc.has(typeof r)?n.issues.push(...iu(r,e.issues)):n.issues.push({origin:"map",code:"invalid_element",input:u,inst:i,key:r,issues:e.issues.map(s=>du(s,o,Vt()))})),n.value.set(t.value,e.value)}var U9=k("$ZodSet",(t,e)=>{xe.init(t,e);const n=bn.memoizer;n?.attach(t),t._zod.parse=(r,u)=>{const i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:t,expected:"set",code:"invalid_type"}),r;const o=[];r.value=n?n.alloc(t,r,new Set,u):new Set;for(const s of i){const a=e.valueType._zod.run({value:s,issues:[]},u);a instanceof Promise?o.push(a.then(l=>sC(l,r))):sC(a,r)}return o.length?Promise.all(o).then(()=>r):r}});function sC(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}var X9=k("$ZodEnum",(t,e)=>{xe.init(t,e);const n=J1(e.entries),r=new Set(n);t._zod.values=r;const u=n.filter(i=>wc.has(typeof i));t._zod.pattern=new RegExp(u.length?`^(${u.map(i=>Ar(i.toString())).join("|")})$`:"^[^\\s\\S]$"),t._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:t}),i}}),V9=k("$ZodLiteral",(t,e)=>{xe.init(t,e);const n=new Set(e.values);t._zod.values=n,t._zod.pattern=new RegExp(e.values.length?`^(${e.values.map(r=>typeof r=="string"?Ar(r):r?Ar(r.toString()):String(r)).join("|")})$`:"^[^\\s\\S]$"),t._zod.parse=(r,u)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:e.values,input:i,inst:t}),r}}),q9=k("$ZodFile",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{const u=n.value;return u instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:u,inst:t}),n}}),W9=k("$ZodTransform",(t,e)=>{xe.init(t,e),t._zod.optin="optional",bn.memoizer?.guard(t),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ef(t.constructor.name);const u=e.transform(n.value,n);if(r.async)return(u instanceof Promise?u:Promise.resolve(u)).then(o=>(n.value=o,n));if(u instanceof Promise)throw new br;return n.value=u,n}});function aC(t,e){return t.value=e.issues.length?void 0:e.value,t}var jg=k("$ZodOptional",(t,e)=>{xe.init(t,e),_e(t,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),t._zod.optout="optional",_e(t,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),_e(t,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Cf(r.source)})?$`):void 0}),t._zod.parse=(n,r)=>{if(n.value===void 0){if(e.innerType._zod.optin!=="defaulted")return n;const u=e.innerType._zod.run({value:n.value,issues:[]},r);return u instanceof Promise?u.then(i=>aC(n,i)):aC(n,u)}return e.innerType._zod.run(n,r)}}),Y9=k("$ZodExactOptional",(t,e)=>{jg.init(t,e),_e(t,"values",n=>n.def.innerType._zod.values),_e(t,"pattern",n=>n.def.innerType._zod.pattern),t._zod.parse=(n,r)=>e.innerType._zod.run(n,r)}),G9=k("$ZodNullable",(t,e)=>{xe.init(t,e),_e(t,"optin",n=>n.def.innerType._zod.optin),_e(t,"optout",n=>n.def.innerType._zod.optout),_e(t,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Cf(r.source)}|null)$`):void 0}),_e(t,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),t._zod.parse=(n,r)=>n.value===null?n:e.innerType._zod.run(n,r)}),H9=k("$ZodDefault",(t,e)=>{xe.init(t,e),t._zod.optin="defaulted",_e(t,"values",n=>n.def.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);if(n.value===void 0)return n.value=e.defaultValue,n;const u=e.innerType._zod.run(n,r);return u instanceof Promise?u.then(i=>lC(i,e)):lC(u,e)}});function lC(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var K9=k("$ZodPrefault",(t,e)=>{xe.init(t,e),t._zod.optin="defaulted",_e(t,"values",n=>n.def.innerType._zod.values),t._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=e.defaultValue),e.innerType._zod.run(n,r))}),J9=k("$ZodNonOptional",(t,e)=>{xe.init(t,e),_e(t,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(u=>u!==void 0)):void 0}),t._zod.parse=(n,r)=>{const u=e.innerType._zod.run(n,r);return u instanceof Promise?u.then(i=>cC(i,t)):cC(u,t)}});function cC(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var eD=k("$ZodSuccess",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ef("ZodSuccess");const u=e.innerType._zod.run(n,r);return u instanceof Promise?u.then(i=>(n.value=i.issues.length===0,n)):(n.value=u.issues.length===0,n)}});function fC(t,e,n,r){return e.issues.length?(t.value=n.catchValue({...e,value:t.value,error:{issues:e.issues.map(u=>du(u,r,Vt()))},input:t.value}),t):(t.value=e.value,e.memo&&(t.memo=!0),t)}var tD=k("$ZodCatch",(t,e)=>{xe.init(t,e),_e(t,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),_e(t,"optout",n=>n.def.innerType._zod.optout),_e(t,"values",n=>n.def.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const u=e.innerType._zod.run({value:n.value,issues:[]},r);return u instanceof Promise?u.then(i=>fC(n,i,e,r)):fC(n,u,e,r)}}),nD=k("$ZodNaN",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:t,expected:"nan",code:"invalid_type"}),n)}),Mg=k("$ZodPipe",(t,e)=>{xe.init(t,e),_e(t,"values",n=>n.def.in._zod.values),_e(t,"optin",n=>n.def.in._zod.optin),_e(t,"optout",n=>n.def.out._zod.optout),_e(t,"propValues",n=>n.def.in._zod.propValues),t._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=e.out._zod.run(n,r);return i instanceof Promise?i.then(o=>g0(o,e.in,r)):g0(i,e.in,r)}const u=e.in._zod.run(n,r);return u instanceof Promise?u.then(i=>g0(i,e.out,r)):g0(u,e.out,r)}});function g0(t,e,n){return t.issues.some(r=>r.code!=="unrecognized_keys")?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}var Lg=k("$ZodCodec",(t,e)=>{xe.init(t,e),_e(t,"values",n=>n.def.in._zod.values),_e(t,"optin",n=>n.def.in._zod.optin),_e(t,"optout",n=>n.def.out._zod.optout),_e(t,"propValues",n=>n.def.in._zod.propValues),t._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){const i=e.in._zod.run(n,r);return i instanceof Promise?i.then(o=>O0(o,e,r)):O0(i,e,r)}else{const i=e.out._zod.run(n,r);return i instanceof Promise?i.then(o=>O0(o,e,r)):O0(i,e,r)}}});function O0(t,e,n){if(t.issues.length)return t.aborted=!0,t;if((n.direction||"forward")==="forward"){const u=e.transform(t.value,t);return u instanceof Promise?u.then(i=>b0(t,i,e.out,n)):b0(t,u,e.out,n)}else{const u=e.reverseTransform(t.value,t);return u instanceof Promise?u.then(i=>b0(t,i,e.in,n)):b0(t,u,e.in,n)}}function b0(t,e,n,r){return t.issues.length?(t.aborted=!0,t):n._zod.run({value:e,issues:t.issues},r)}var uD=k("$ZodPreprocess",(t,e)=>{Mg.init(t,e)}),rD=k("$ZodReadonly",(t,e)=>{xe.init(t,e),_e(t,"propValues",n=>n.def.innerType._zod.propValues),_e(t,"values",n=>n.def.innerType._zod.values),_e(t,"optin",n=>n.def.innerType?._zod?.optin),_e(t,"optout",n=>n.def.innerType?._zod?.optout),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const u=e.innerType._zod.run(n,r);return u instanceof Promise?u.then(dC):dC(u)}});function dC(t){return t.memo||(t.value=Object.freeze(t.value)),t}var iD=k("$ZodTemplateLiteral",(t,e)=>{xe.init(t,e);const n=[];for(const r of e.parts)if(typeof r=="object"&&r!==null){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const u=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!u)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const i=u.startsWith("^")?1:0,o=u.endsWith("$")?u.length-1:u.length;n.push(u.slice(i,o))}else if(r===null||I$.has(typeof r))n.push(Ar(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);t._zod.pattern=new RegExp(`^${n.join("")}$`),t._zod.parse=(r,u)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:t,expected:"string",code:"invalid_type"}),r):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),r)}),oD=k("$ZodFunction",(t,e)=>(xe.init(t,e),Object.defineProperty(t,"_def",{value:e}),t._zod.def=e,t.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...r){const u=t._def.input?dm(t._def.input,r):r,i=Reflect.apply(n,this,u);return t._def.output?dm(t._def.output,i):i},"_zod",{value:t._zod,enumerable:!1})},t.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...r){const u=t._def.input?await hm(t._def.input,r):r,i=await Reflect.apply(n,this,u);return t._def.output?await hm(t._def.output,i):i},"_zod",{value:t._zod,enumerable:!1})},t._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:t}),n):(t._def.output&&t._def.output._zod.def.type==="promise"?n.value=t.implementAsync(n.value):n.value=t.implement(n.value),n),t.input=(...n)=>{const r=t.constructor;return Array.isArray(n[0])?new r({type:"function",input:new Rg({type:"tuple",items:n[0],rest:n[1]}),output:t._def.output}):new r({type:"function",input:n[0],output:t._def.output})},t.output=n=>{const r=t.constructor;return new r({type:"function",input:t._def.input,output:n})},t)),sD=k("$ZodPromise",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>Promise.resolve(n.value).then(u=>e.innerType._zod.run({value:u,issues:[]},r))}),Ng=k("$ZodLazy",(t,e)=>{xe.init(t,e),F$(t._zod,"innerType",()=>{const n=e;return n._cachedInner||(n._cachedInner=e.getter()),n._cachedInner}),_e(t,"pattern",n=>n.innerType?._zod?.pattern),_e(t,"propValues",n=>n.innerType?._zod?.propValues),_e(t,"optin",n=>n.innerType?._zod?.optin??void 0),_e(t,"optout",n=>n.innerType?._zod?.optout??void 0),t._zod.parse=(n,r)=>t._zod.innerType._zod.run(n,r)}),aD=k("$ZodCustom",(t,e)=>{pt.init(t,e),xe.init(t,e),t._zod.parse=(n,r)=>n,t._zod.check=n=>{const r=n.value,u=e.fn(r);if(u instanceof Promise)return u.then(i=>hC(i,n,r,t));hC(u,n,r,t)}});function hC(t,e,n,r){if(!t){const u={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(u.params=r._zod.def.params),e.issues.push(Bc(u))}}var lD=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},gm="~memo",pC=[];function Nh(t){return t.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var mC=new WeakMap;function Ug(t,e){const n=mC.get(t);if(n!==void 0)return n;if(e.has(t))return!0;e.add(t);let r=!1;const u=s=>{!r&&s?._zod&&Ug(s,e)&&(r=!0)},i=t._zod.def;switch(i.type){case"object":{for(const s of Reflect.ownKeys(i.shape))u(i.shape[s]);u(i.catchall);break}case"array":u(i.element);break;case"tuple":for(const s of i.items)u(s);u(i.rest);break;case"record":case"map":u(i.keyType),u(i.valueType);break;case"set":u(i.valueType);break;case"union":for(const s of i.options)u(s);break;case"intersection":u(i.left),u(i.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":u(i.innerType);break;case"pipe":u(i.in),u(i.out);break;case"function":u(i.input),u(i.output);break;case"lazy":u(t._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const s in i){const a=Object.getOwnPropertyDescriptor(i,s);if(!a||a.get)continue;const l=a.value;if(!(!l||typeof l!="object")){if(l._zod)u(l);else if(Array.isArray(l))for(const c of l)u(c)}}}return e.delete(t),mC.set(t,r),r}function cD(t){return Ug(t,new Set)}function wq(t,e){let n=t.buckets.get(e);return n||(n=new Map,t.buckets.set(e,n)),n}var v0,C0=[],Bq={alloc(t,e,n){const r=v0;if(!r)return n;v0=void 0;const u={value:n,issues:null};return r.set(e.value,u),C0.push(u),n},guard(t){var e;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{const n=t._zod.parse,r=(u,i)=>{if(i.direction!=="backward"&&Vg(i,u.value))throw new lD;return n(u,i)};t._zod.parse=r,t._zod.run===n&&(t._zod.run=r)})},attach(t){var e;let n,r,u;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{const i=t._zod.parse,o=(s,a)=>{if(n===void 0&&(n=Ug(t,new Set),!n))return t._zod.parse=i,t._zod.run===o&&(t._zod.run=i),i(s,a);const l=s.value;if(l===null||typeof l!="object")return i(s,a);let c=a[gm];c||(c={buckets:new Map,backEdges:void 0},a[gm]=c);let f;r===a?f=u:(f=wq(c,t),r=a,u=f);const d=f.get(l);if(d)return s.value=d.value,d.issues?d.issues.length&&s.issues.push(...Nh(d.issues)):(s.memo=!0,c.backEdges??(c.backEdges=new Set),c.backEdges.add(d.value)),s;v0=f;const h=C0.length,p=i(s,a);v0=void 0;const m=C0.length>h?C0.pop():void 0;return p instanceof Promise?p.then(g=>(m&&(m.issues=g.issues.length?Nh(g.issues):pC),g)):(m&&(m.issues=p.issues.length?Nh(p.issues):pC),p)};t._zod.parse=o,t._zod.run===i&&(t._zod.run=o)})}};function Xg(){return Bq}function Vg(t,e){const n=t[gm]?.backEdges;return n!==void 0&&e!==null&&typeof e=="object"&&n.has(e)}var qg={};Sr(qg,{ar:()=>Fq,az:()=>Tq,be:()=>zq,bg:()=>Rq,bn:()=>Mq,ca:()=>Nq,ckb:()=>Xq,cs:()=>qq,da:()=>Yq,de:()=>Hq,el:()=>Jq,en:()=>fD,eo:()=>nW,es:()=>rW,fa:()=>oW,fi:()=>aW,fr:()=>cW,frCA:()=>dW,gu:()=>pW,he:()=>gW,hi:()=>bW,hr:()=>CW,hu:()=>xW,hy:()=>$W,id:()=>DW,is:()=>SW,it:()=>wW,ja:()=>PW,ka:()=>QW,kh:()=>IW,km:()=>dD,kn:()=>ZW,ko:()=>jW,lt:()=>LW,mk:()=>UW,ms:()=>VW,ne:()=>WW,nl:()=>GW,nn:()=>KW,no:()=>eY,ota:()=>nY,pl:()=>oY,ps:()=>rY,pt:()=>aY,ptBR:()=>cY,ro:()=>dY,ru:()=>pY,sk:()=>gY,sl:()=>bY,sv:()=>CY,ta:()=>xY,th:()=>$Y,tk:()=>DY,tr:()=>SY,ua:()=>wY,uk:()=>hD,ur:()=>PY,uz:()=>QY,vi:()=>IY,yo:()=>LY,zhCN:()=>ZY,zhTW:()=>jY});var Pq=()=>{const t={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"},map:{unit:"عنصر",verb:"أن يحوي"}};function e(u){return t[u]??null}const n={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",mac:"عنوان MAC",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",credit_card:"رقم بطاقة الائتمان",jwt:"JWT",template_literal:"مدخل"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${u.expected}، ولكن تم إدخال ${s}`:`مدخلات غير مقبولة: يفترض إدخال ${i}، ولكن تم إدخال ${s}`}case"invalid_value":return u.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${ne(u.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?` أكبر من اللازم: يفترض أن تكون ${u.origin??"القيمة"} ${i} ${u.maximum.toString()} ${o.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${u.origin??"القيمة"} ${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`أصغر من اللازم: يفترض لـ ${u.origin} أن يكون ${i} ${u.minimum.toString()} ${o.unit}`:`أصغر من اللازم: يفترض لـ ${u.origin} أن يكون ${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${u.prefix}"`:i.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"`:i.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"`:i.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}`:`${n[i.format]??u.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${u.divisor}`;case"unrecognized_keys":return`معرف${u.keys.length>1?"ات":""} غريب${u.keys.length>1?"ة":""}: ${T(u.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${u.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${u.origin}`;default:return"مدخل غير مقبول"}}};function Fq(){return{localeError:Pq()}}var Qq=()=>{const t={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"},map:{unit:"element",verb:"olmalıdır"}};function e(u){return t[u]??null}const n={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",credit_card:"kredit kartı nömrəsi",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Yanlış dəyər: gözlənilən instanceof ${u.expected}, daxil olan ${s}`:`Yanlış dəyər: gözlənilən ${i}, daxil olan ${s}`}case"invalid_value":return u.values.length===1?`Yanlış dəyər: gözlənilən ${ne(u.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Çox böyük: gözlənilən ${u.origin??"dəyər"} ${i}${u.maximum.toString()} ${o.unit??"element"}`:`Çox böyük: gözlənilən ${u.origin??"dəyər"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Çox kiçik: gözlənilən ${u.origin} ${i}${u.minimum.toString()} ${o.unit}`:`Çox kiçik: gözlənilən ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Yanlış mətn: "${i.prefix}" ilə başlamalıdır`:i.format==="ends_with"?`Yanlış mətn: "${i.suffix}" ilə bitməlidir`:i.format==="includes"?`Yanlış mətn: "${i.includes}" daxil olmalıdır`:i.format==="regex"?`Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[i.format]??u.format}`}case"not_multiple_of":return`Yanlış ədəd: ${u.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${u.keys.length>1?"lar":""}: ${T(u.keys,", ")}`;case"invalid_key":return`${u.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${u.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Tq(){return{localeError:Qq()}}function gC(t,e,n,r){const u=Math.abs(t),i=u%10,o=u%100;return o>=11&&o<=19?r:i===1?e:i>=2&&i<=4?n:r}var Iq=()=>{const t={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},map:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function e(u){return t[u]??null}const n={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 адрас",mac:"MAC адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",credit_card:"нумар крэдытнай карты",jwt:"JWT",template_literal:"увод"},r={nan:"NaN",number:"лік",array:"масіў"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Няправільны ўвод: чакаўся instanceof ${u.expected}, атрымана ${s}`:`Няправільны ўвод: чакаўся ${i}, атрымана ${s}`}case"invalid_value":return u.values.length===1?`Няправільны ўвод: чакалася ${ne(u.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);if(o){const s=Number(u.maximum),a=gC(s,o.unit.one,o.unit.few,o.unit.many);return`Занадта вялікі: чакалася, што ${u.origin??"значэнне"} павінна ${o.verb} ${i}${u.maximum.toString()} ${a}`}return`Занадта вялікі: чакалася, што ${u.origin??"значэнне"} павінна быць ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);if(o){const s=Number(u.minimum),a=gC(s,o.unit.one,o.unit.few,o.unit.many);return`Занадта малы: чакалася, што ${u.origin} павінна ${o.verb} ${i}${u.minimum.toString()} ${a}`}return`Занадта малы: чакалася, што ${u.origin} павінна быць ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${i.prefix}"`:i.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${i.suffix}"`:i.format==="includes"?`Няправільны радок: павінен змяшчаць "${i.includes}"`:i.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${i.pattern}`:`Няправільны ${n[i.format]??u.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${u.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${u.keys.length>1?"ключы":"ключ"}: ${T(u.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${u.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${u.origin}`;default:return"Няправільны ўвод"}}};function zq(){return{localeError:Iq()}}var Zq=()=>{const t={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"},map:{unit:"елемента",verb:"да съдържа"}};function e(u){return t[u]??null}const n={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 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",credit_card:"номер на кредитна карта",jwt:"JWT",template_literal:"вход"},r={nan:"NaN",number:"число",array:"масив"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Невалиден вход: очакван instanceof ${u.expected}, получен ${s}`:`Невалиден вход: очакван ${i}, получен ${s}`}case"invalid_value":return u.values.length===1?`Невалиден вход: очакван ${ne(u.values[0])}`:`Невалидна опция: очаквано едно от ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Твърде голямо: очаква се ${u.origin??"стойност"} да съдържа ${i}${u.maximum.toString()} ${o.unit??"елемента"}`:`Твърде голямо: очаква се ${u.origin??"стойност"} да бъде ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Твърде малко: очаква се ${u.origin} да съдържа ${i}${u.minimum.toString()} ${o.unit}`:`Твърде малко: очаква се ${u.origin} да бъде ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;if(i.format==="starts_with")return`Невалиден низ: трябва да започва с "${i.prefix}"`;if(i.format==="ends_with")return`Невалиден низ: трябва да завършва с "${i.suffix}"`;if(i.format==="includes")return`Невалиден низ: трябва да включва "${i.includes}"`;if(i.format==="regex")return`Невалиден низ: трябва да съвпада с ${i.pattern}`;let o="Невалиден";return i.format==="emoji"&&(o="Невалидно"),i.format==="datetime"&&(o="Невалидно"),i.format==="date"&&(o="Невалидна"),i.format==="time"&&(o="Невалидно"),i.format==="duration"&&(o="Невалидна"),`${o} ${n[i.format]??u.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${u.divisor}`;case"unrecognized_keys":return`Неразпознат${u.keys.length>1?"и":""} ключ${u.keys.length>1?"ове":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${u.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${u.origin}`;default:return"Невалиден вход"}}};function Rq(){return{localeError:Zq()}}var jq=()=>{const t={string:{unit:"অক্ষর",verb:"থাকতে হবে"},file:{unit:"বাইট",verb:"থাকতে হবে"},array:{unit:"আইটেম",verb:"থাকতে হবে"},set:{unit:"আইটেম",verb:"থাকতে হবে"},map:{unit:"এন্ট্রি",verb:"থাকতে হবে"}};function e(u){return t[u]??null}const n={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 ঠিকানা",mac:"MAC ঠিকানা",cidrv4:"IPv4 রেঞ্জ",cidrv6:"IPv6 রেঞ্জ",base64:"base64-এনকোডেড স্ট্রিং",base64url:"base64url-এনকোডেড স্ট্রিং",json_string:"JSON স্ট্রিং",e164:"E.164 নম্বর",credit_card:"ক্রেডিট কার্ড নম্বর",jwt:"JWT",template_literal:"ইনপুট"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return`অবৈধ ইনপুট: প্রত্যাশিত ${i}, প্রাপ্ত ${s}`}case"invalid_value":return u.values.length===1?`অবৈধ ইনপুট: প্রত্যাশিত ${ne(u.values[0])}`:`অবৈধ অপশন: ${T(u.values," | ")} এর মধ্যে একটি প্রত্যাশিত`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`অনেক বড়: ${u.origin??"মান"} ${i}${u.maximum.toString()} ${o.unit??"এলিমেন্ট"} হতে হবে`:`অনেক বড়: ${u.origin??"মান"} ${i}${u.maximum.toString()} হতে হবে`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`অনেক ছোট: ${u.origin} ${i}${u.minimum.toString()} ${o.unit} হতে হবে`:`অনেক ছোট: ${u.origin} ${i}${u.minimum.toString()} হতে হবে`}case"invalid_format":{const i=u;return i.format==="starts_with"?`অবৈধ স্ট্রিং: "${i.prefix}" দিয়ে শুরু হতে হবে`:i.format==="ends_with"?`অবৈধ স্ট্রিং: "${i.suffix}" দিয়ে শেষ হতে হবে`:i.format==="includes"?`অবৈধ স্ট্রিং: "${i.includes}" অন্তর্ভুক্ত থাকতে হবে`:i.format==="regex"?`অবৈধ স্ট্রিং: ${i.pattern} প্যাটার্ন মিলতে হবে`:`অবৈধ ${n[i.format]??u.format}`}case"not_multiple_of":return`অবৈধ নম্বর: ${u.divisor} এর গুণিতক হতে হবে`;case"unrecognized_keys":return`অচেনা কী${u.keys.length>1?"গুলো":""}: ${T(u.keys,", ")}`;case"invalid_key":return`${u.origin} এ অবৈধ কী`;case"invalid_union":return u.options&&Array.isArray(u.options)&&u.options.length>0?`অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত ${u.options.map(o=>`'${o}'`).join(" | ")}`:"অবৈধ ইনপুট";case"invalid_element":return`${u.origin} এ অবৈধ মান`;default:return"অবৈধ ইনপুট"}}};function Mq(){return{localeError:jq()}}var Lq=()=>{const t={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function e(u){return t[u]??null}const n={regex:"entrada",email:"adreça electrònica",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ça IPv4",ipv6:"adreça IPv6",mac:"adreça MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de targeta de crèdit",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Tipus invàlid: s'esperava instanceof ${u.expected}, s'ha rebut ${s}`:`Tipus invàlid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return u.values.length===1?`Valor invàlid: s'esperava ${ne(u.values[0])}`:`Opció invàlida: s'esperava una de ${T(u.values," o ")}`;case"too_big":{const i=u.inclusive?"com a màxim":"menys de",o=e(u.origin);return o?`Massa gran: s'esperava que ${u.origin??"el valor"} contingués ${i} ${u.maximum.toString()} ${o.unit??"elements"}`:`Massa gran: s'esperava que ${u.origin??"el valor"} fos ${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?"com a mínim":"més de",o=e(u.origin);return o?`Massa petit: s'esperava que ${u.origin} contingués ${i} ${u.minimum.toString()} ${o.unit}`:`Massa petit: s'esperava que ${u.origin} fos ${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Format invàlid: ha de començar amb "${i.prefix}"`:i.format==="ends_with"?`Format invàlid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format invàlid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${i.pattern}`:`Format invàlid per a ${n[i.format]??u.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${u.divisor}`;case"unrecognized_keys":return`Clau${u.keys.length>1?"s":""} no reconeguda${u.keys.length>1?"s":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${u.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${u.origin}`;default:return"Entrada invàlida"}}};function Nq(){return{localeError:Lq()}}var Uq=()=>{const t={string:{unit:"پیت",verb:"بێت"},file:{unit:"بایت",verb:"بێت"},array:{unit:"دانە",verb:"بێت"},set:{unit:"دانە",verb:"بێت"},map:{unit:"دانە",verb:"بێت"}};function e(u){return t[u]??null}const n={regex:"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",mac:"ناونیشانی MAC",cidrv4:"مەودای IPv4",cidrv6:"مەودای IPv6",base64:"دەقی base64",base64url:"دەقی base64url",json_string:"دەقی JSON",e164:"ژمارەی E.164",credit_card:"ژمارەی کارتی کرێدیت",jwt:"JWT",template_literal:"تێکردە"},r={nan:"NaN",string:"نووسین",number:"ژمارە",boolean:"boolean",array:"array",object:"object",date:"ڕێکەوت",integer:"ژمارە",float:"ژمارە",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o,a=["ا","و","ۆ","وو","ە","ی","ێ"].some(c=>s.endsWith(c))?"یە":"ە",l=/^[a-zA-Z]+$/.test(s);return o==="null"||o==="undefined"?"داواکراوە":`چاوەڕوانکراوە ${i} بێت، بەڵام ${s}${l?"":a}`}case"invalid_value":return u.values.length===1?`بەهاکە نادرووستە: چاوەڕوانکراوە ${ne(u.values[0])} بێت`:`هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە ${T(u.values,"|")}`;case"too_big":{const i=e(u.origin);return i?`پێویستە بە لایەنی زۆرەوە ${u.maximum.toString()} ${i.unit} ${i.verb}`:`پێویستە بە لایەنی زۆرەوە ${u.maximum.toString()} بێت`}case"too_small":{const i=e(u.origin);return i?`پێویستە بە لایەنی کەمەوە ${u.minimum.toString()} ${i.unit} ${i.verb}`:`پێویستە بە لایەنی کەمەوە ${u.minimum.toString()} بێت`}case"invalid_format":{const i=u;return i.format==="starts_with"?`دەقی نادروست: پێویستە دەستپێبکات بە "${i.prefix}"`:i.format==="ends_with"?`دەقی نادروست: پێویستە کۆتاییبێت بە "${i.suffix}"`:i.format==="includes"?`دەقی نادروست: پێویستە "${i.includes}" لەخۆبگرێت`:i.format==="regex"?`دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${i.pattern} بگونجێت`:`بەهای ${n[i.format]??u.format} نادروستە`}case"not_multiple_of":return`ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ ${u.divisor}`;case"unrecognized_keys":return`کلیلی نەناسراو: ${T(u.keys,", ")}`;case"invalid_key":return`کلیلی نادروست لە ${u.origin}`;case"invalid_union":return u.options&&Array.isArray(u.options)&&u.options.length>0?`بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: ${u.options.map(o=>`'${o}'`).join(" | ")}`:"یەکگرتنی نادروست";case"invalid_element":return`${u.origin} بەهاکە نادروستە`;default:return"تێکردەی نادروست"}}};function Xq(){return{localeError:Uq()}}var Vq=()=>{const t={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"},map:{unit:"prvků",verb:"mít"}};function e(u){return t[u]??null}const n={regex:"regulární výraz",email:"e-mailová 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átu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",credit_card:"číslo kreditní karty",jwt:"JWT",template_literal:"vstup"},r={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Neplatný vstup: očekáváno instanceof ${u.expected}, obdrženo ${s}`:`Neplatný vstup: očekáváno ${i}, obdrženo ${s}`}case"invalid_value":return u.values.length===1?`Neplatný vstup: očekáváno ${ne(u.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Hodnota je příliš velká: ${u.origin??"hodnota"} musí mít ${i}${u.maximum.toString()} ${o.unit??"prvků"}`:`Hodnota je příliš velká: ${u.origin??"hodnota"} musí být ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Hodnota je příliš malá: ${u.origin??"hodnota"} musí mít ${i}${u.minimum.toString()} ${o.unit??"prvků"}`:`Hodnota je příliš malá: ${u.origin??"hodnota"} musí být ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Neplatný řetězec: musí začínat na "${i.prefix}"`:i.format==="ends_with"?`Neplatný řetězec: musí končit na "${i.suffix}"`:i.format==="includes"?`Neplatný řetězec: musí obsahovat "${i.includes}"`:i.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${i.pattern}`:`Neplatný formát ${n[i.format]??u.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${u.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${T(u.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${u.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${u.origin}`;default:return"Neplatný vstup"}}};function qq(){return{localeError:Vq()}}var Wq=()=>{const t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function e(u){return t[u]??null}const n={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æt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Ugyldigt input: forventede instanceof ${u.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return u.values.length===1?`Ugyldig værdi: forventede ${ne(u.values[0])}`:`Ugyldigt valg: forventede en af følgende ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin),s=r[u.origin]??u.origin;return o?`For stor: forventede ${s??"value"} ${o.verb} ${i} ${u.maximum.toString()} ${o.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin),s=r[u.origin]??u.origin;return o?`For lille: forventede ${s} ${o.verb} ${i} ${u.minimum.toString()} ${o.unit}`:`For lille: forventede ${s} havde ${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche mønsteret ${i.pattern}`:`Ugyldig ${n[i.format]??u.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${T(u.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${u.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${u.origin}`;default:return"Ugyldigt input"}}};function Yq(){return{localeError:Wq()}}var Gq=()=>{const t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function e(u){return t[u]??null}const n={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",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",jwt:"JWT",template_literal:"Eingabe"},r={nan:"NaN",number:"Zahl",array:"Array"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Ungültige Eingabe: erwartet instanceof ${u.expected}, erhalten ${s}`:`Ungültige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return u.values.length===1?`Ungültige Eingabe: erwartet ${ne(u.values[0])}`:`Ungültige Option: erwartet eine von ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Zu groß: erwartet, dass ${u.origin??"Wert"} ${i}${u.maximum.toString()} ${o.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${u.origin??"Wert"} ${i}${u.maximum.toString()} ist`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Zu klein: erwartet, dass ${u.origin} ${i}${u.minimum.toString()} ${o.unit} hat`:`Zu klein: erwartet, dass ${u.origin} ${i}${u.minimum.toString()} ist`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ungültiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ungültiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ungültiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ungültiger String: muss dem Muster ${i.pattern} entsprechen`:`Ungültig: ${n[i.format]??u.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${u.divisor} sein`;case"unrecognized_keys":return`${u.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${T(u.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${u.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${u.origin}`;default:return"Ungültige Eingabe"}}};function Hq(){return{localeError:Gq()}}var Kq=()=>{const t={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function e(u){return t[u]??null}const n={regex:"είσοδος",email:"διεύθυνση 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",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",credit_card:"αριθμός πιστωτικής κάρτας",jwt:"JWT",template_literal:"είσοδος"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return typeof u.expected=="string"&&/^[A-Z]/.test(u.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${u.expected}, λήφθηκε ${s}`:`Μη έγκυρη είσοδος: αναμενόταν ${i}, λήφθηκε ${s}`}case"invalid_value":return u.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${ne(u.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Πολύ μεγάλο: αναμενόταν ${u.origin??"τιμή"} να έχει ${i}${u.maximum.toString()} ${o.unit??"στοιχεία"}`:`Πολύ μεγάλο: αναμενόταν ${u.origin??"τιμή"} να είναι ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Πολύ μικρό: αναμενόταν ${u.origin} να έχει ${i}${u.minimum.toString()} ${o.unit}`:`Πολύ μικρό: αναμενόταν ${u.origin} να είναι ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${i.prefix}"`:i.format==="ends_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${i.suffix}"`:i.format==="includes"?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${i.includes}"`:i.format==="regex"?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${i.pattern}`:`Μη έγκυρο: ${n[i.format]??u.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${u.divisor}`;case"unrecognized_keys":return`Άγνωστ${u.keys.length>1?"α":"ο"} κλειδ${u.keys.length>1?"ιά":"ί"}: ${T(u.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${u.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${u.origin}`;default:return"Μη έγκυρη είσοδος"}}};function Jq(){return{localeError:Kq()}}var eW=()=>{const t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(i){return t[i]??null}const n={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",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function u(i,o){return i==="number"&&typeof o=="number"&&!Number.isFinite(o)?String(o):r[i]??i}return i=>{switch(i.code){case"invalid_type":{const o=u(i.expected),s=ie(i.input),a=u(s,i.input);return`Invalid input: expected ${o}, received ${a}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${ne(i.values[0])}`:`Invalid option: expected one of ${T(i.values,"|")}`;case"too_big":{const o=i.exact?"exactly ":i.inclusive?"<=":"<",s=e(i.origin);return s?`Too big: expected ${i.origin??"value"} to have ${o}${i.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${o}${i.maximum.toString()}`}case"too_small":{const o=i.exact?"exactly ":i.inclusive?">=":">",s=e(i.origin);return s?`Too small: expected ${i.origin} to have ${o}${i.minimum.toString()} ${s.unit}`:`Too small: expected ${i.origin} to be ${o}${i.minimum.toString()}`}case"invalid_format":{const o=i;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${T(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(s=>`'${s}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function fD(){return{localeError:eW()}}var tW=()=>{const t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function e(u){return t[u]??null}const n={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",mac:"MAC-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",credit_card:"kreditkarta numero",jwt:"JWT",template_literal:"enigo"},r={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Nevalida enigo: atendiĝis instanceof ${u.expected}, riceviĝis ${s}`:`Nevalida enigo: atendiĝis ${i}, riceviĝis ${s}`}case"invalid_value":return u.values.length===1?`Nevalida enigo: atendiĝis ${ne(u.values[0])}`:`Nevalida opcio: atendiĝis unu el ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Tro granda: atendiĝis ke ${u.origin??"valoro"} havu ${i}${u.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${u.origin??"valoro"} havu ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Tro malgranda: atendiĝis ke ${u.origin} havu ${i}${u.minimum.toString()} ${o.unit}`:`Tro malgranda: atendiĝis ke ${u.origin} estu ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??u.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${u.divisor}`;case"unrecognized_keys":return`Nekonata${u.keys.length>1?"j":""} ŝlosilo${u.keys.length>1?"j":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${u.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${u.origin}`;default:return"Nevalida enigo"}}};function nW(){return{localeError:tW()}}var uW=()=>{const t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(u){return t[u]??null}const n={regex:"entrada",email:"dirección de correo electrónico",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ón ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",mac:"dirección MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de tarjeta de crédito",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Entrada inválida: se esperaba instanceof ${u.expected}, recibido ${s}`:`Entrada inválida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return u.values.length===1?`Entrada inválida: se esperaba ${ne(u.values[0])}`:`Opción inválida: se esperaba una de ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin),s=r[u.origin]??u.origin;return o?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${u.maximum.toString()} ${o.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin),s=r[u.origin]??u.origin;return o?`Demasiado pequeño: se esperaba que ${s} tuviera ${i}${u.minimum.toString()} ${o.unit}`:`Demasiado pequeño: se esperaba que ${s} fuera ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Cadena inválida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inválida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inválida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${i.pattern}`:`Inválido ${n[i.format]??u.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${u.divisor}`;case"unrecognized_keys":return`Llave${u.keys.length>1?"s":""} desconocida${u.keys.length>1?"s":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Llave inválida en ${r[u.origin]??u.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${r[u.origin]??u.origin}`;default:return"Entrada inválida"}}};function rW(){return{localeError:uW()}}var iW=()=>{const t={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"},map:{unit:"آیتم",verb:"داشته باشد"}};function e(u){return t[u]??null}const n={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 آدرس",mac:"MAC آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",credit_card:"شماره کارت اعتباری",jwt:"JWT",template_literal:"ورودی"},r={nan:"NaN",number:"عدد",array:"آرایه"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`ورودی نامعتبر: میبایست instanceof ${u.expected} میبود، ${s} دریافت شد`:`ورودی نامعتبر: میبایست ${i} میبود، ${s} دریافت شد`}case"invalid_value":return u.values.length===1?`ورودی نامعتبر: میبایست ${ne(u.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${T(u.values,"|")} میبود`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`خیلی بزرگ: ${u.origin??"مقدار"} باید ${i}${u.maximum.toString()} ${o.unit??"عنصر"} باشد`:`خیلی بزرگ: ${u.origin??"مقدار"} باید ${i}${u.maximum.toString()} باشد`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`خیلی کوچک: ${u.origin} باید ${i}${u.minimum.toString()} ${o.unit} باشد`:`خیلی کوچک: ${u.origin} باید ${i}${u.minimum.toString()} باشد`}case"invalid_format":{const i=u;return i.format==="starts_with"?`رشته نامعتبر: باید با "${i.prefix}" شروع شود`:i.format==="ends_with"?`رشته نامعتبر: باید با "${i.suffix}" تمام شود`:i.format==="includes"?`رشته نامعتبر: باید شامل "${i.includes}" باشد`:i.format==="regex"?`رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد`:`${n[i.format]??u.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${u.divisor} باشد`;case"unrecognized_keys":return`کلید${u.keys.length>1?"های":""} ناشناس: ${T(u.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${u.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${u.origin}`;default:return"ورودی نامعتبر"}}};function oW(){return{localeError:iW()}}var sW=()=>{const t={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function e(u){return t[u]??null}const n={regex:"säännöllinen lauseke",email:"sähköpostiosoite",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äivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",jwt:"JWT",template_literal:"templaattimerkkijono"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Virheellinen tyyppi: odotettiin instanceof ${u.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return u.values.length===1?`Virheellinen syöte: täytyy olla ${ne(u.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Liian suuri: ${o.subject} täytyy olla ${i}${u.maximum.toString()} ${o.unit}`.trim():`Liian suuri: arvon täytyy olla ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Liian pieni: ${o.subject} täytyy olla ${i}${u.minimum.toString()} ${o.unit}`.trim():`Liian pieni: arvon täytyy olla ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen syöte: täytyy sisältää "${i.includes}"`:i.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??u.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${u.divisor} monikerta`;case"unrecognized_keys":return`${u.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${T(u.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öte"}}};function aW(){return{localeError:sW()}}var lW=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function e(u){return t[u]??null}const n={regex:"expression régulière",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne de caractères encodée en base64",base64url:"chaîne de caractères encodée en base64url",json_string:"chaîne de caractères JSON",e164:"numéro au format E.164",credit_card:"numéro de carte de crédit",jwt:"JWT",template_literal:"entrée"},r={string:"chaîne de caractères",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Entrée invalide : instance de ${u.expected} attendu, ${s} reçu`:`Entrée invalide : ${i} attendu, ${s} reçu`}case"invalid_value":return u.values.length===1?`Entrée invalide : ${ne(u.values[0])} attendu`:`Option invalide : une valeur parmi ${T(u.values,"|")} attendue`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Trop grand : ${r[u.origin]??"valeur"} doit ${o.verb} ${i}${u.maximum.toString()} ${o.unit??"élément(s)"}`:`Trop grand : ${r[u.origin]??"valeur"} doit être ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Trop petit : ${r[u.origin]??"valeur"} doit ${o.verb} ${i}${u.minimum.toString()} ${o.unit}`:`Trop petit : ${r[u.origin]??"valeur"} doit être ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Chaîne de caractères invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne de caractères invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne de caractères invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne de caractères invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??u.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${u.divisor}`;case"unrecognized_keys":return`Clé${u.keys.length>1?"s":""} non reconnue${u.keys.length>1?"s":""} : ${T(u.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${u.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${u.origin}`;default:return"Entrée invalide"}}};function cW(){return{localeError:lW()}}var fW=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"},map:{unit:"éléments",verb:"avoir"}};function e(u){return t[u]??null}const n={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",credit_card:"numéro de carte de crédit",jwt:"JWT",template_literal:"entrée"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Entrée invalide : attendu instanceof ${u.expected}, reçu ${s}`:`Entrée invalide : attendu ${i}, reçu ${s}`}case"invalid_value":return u.values.length===1?`Entrée invalide : attendu ${ne(u.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"≤":"<",o=e(u.origin);return o?`Trop grand : attendu que ${u.origin??"la valeur"} ait ${i}${u.maximum.toString()} ${o.unit}`:`Trop grand : attendu que ${u.origin??"la valeur"} soit ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?"≥":">",o=e(u.origin);return o?`Trop petit : attendu que ${u.origin} ait ${i}${u.minimum.toString()} ${o.unit}`:`Trop petit : attendu que ${u.origin} soit ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Chaîne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Chaîne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Chaîne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Chaîne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??u.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${u.divisor}`;case"unrecognized_keys":return`Clé${u.keys.length>1?"s":""} non reconnue${u.keys.length>1?"s":""} : ${T(u.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${u.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${u.origin}`;default:return"Entrée invalide"}}};function dW(){return{localeError:fW()}}var hW=()=>{const t={string:{unit:"અક્ષર",verb:"હોવા જોઈએ"},file:{unit:"બાયટ",verb:"હોવા જોઈએ"},array:{unit:"આઇટમ",verb:"હોવા જોઈએ"},set:{unit:"આઇટમ",verb:"હોવા જોઈએ"},map:{unit:"એન્ટ્રી",verb:"હોવા જોઈએ"}};function e(u){return t[u]??null}const n={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 એડ્રેસ",mac:"MAC એડ્રેસ",cidrv4:"IPv4 શ્રેણી",cidrv6:"IPv6 શ્રેણી",base64:"base64-એન્કોડેડ સ્ટ્રિંગ",base64url:"base64url-એન્કોડેડ સ્ટ્રિંગ",json_string:"JSON સ્ટ્રિંગ",e164:"E.164 નંબર",credit_card:"ક્રેડિટ કાર્ડ નંબર",jwt:"JWT",template_literal:"ઇનપુટ"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return`અમાન્ય ઇનપુટ: અપેક્ષિત ${i}, પ્રાપ્ત ${s}`}case"invalid_value":return u.values.length===1?`અમાન્ય ઇનપુટ: અપેક્ષિત ${ne(u.values[0])}`:`અમાન્ય વિકલ્પ: ${T(u.values," | ")} માધ્યમથી એક અપેક્ષિત`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`ખૂબ મોટું: ${u.origin??"મૂલ્ય"} ${i}${u.maximum.toString()} ${o.unit??"એલિમેન્ટ"} હોવા જોઈએ`:`ખૂબ મોટું: ${u.origin??"મૂલ્ય"} ${i}${u.maximum.toString()} હોવું જોઈએ`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`ખૂબ નાનું: ${u.origin} ${i}${u.minimum.toString()} ${o.unit} હોવા જોઈએ`:`ખૂબ નાનું: ${u.origin} ${i}${u.minimum.toString()} હોવું જોઈએ`}case"invalid_format":{const i=u;return i.format==="starts_with"?`અમાન્ય સ્ટ્રિંગ: "${i.prefix}" થી શરૂ થવું જોઈએ`:i.format==="ends_with"?`અમાન્ય સ્ટ્રિંગ: "${i.suffix}" પર સમાપ્ત થવું જોઈએ`:i.format==="includes"?`અમાન્ય સ્ટ્રિંગ: "${i.includes}" શામેલ હોવું જોઈએ`:i.format==="regex"?`અમાન્ય સ્ટ્રિંગ: પેટર્ન ${i.pattern} સાથે મેળ ખાવું જોઈએ`:`અમાન્ય ${n[i.format]??u.format}`}case"not_multiple_of":return`અમાન્ય નંબર: ${u.divisor} નો ગુણાંક હોવો જોઈએ`;case"unrecognized_keys":return`ઓળખી શકાતા નહીં તે કી${u.keys.length>1?"ઓ":""}: ${T(u.keys,", ")}`;case"invalid_key":return`${u.origin} માં અમાન્ય કી`;case"invalid_union":return u.options&&Array.isArray(u.options)&&u.options.length>0?`અમાન્ય ડિસ્ક્રિમિનેટર મૂલ્ય. અપેક્ષિત ${u.options.map(o=>`'${o}'`).join(" | ")}`:"અમાન્ય ઇનપુટ";case"invalid_element":return`${u.origin} માં અમાન્ય મૂલ્ય`;default:return"અમાન્ય ઇનપુટ"}}};function pW(){return{localeError:hW()}}var mW=()=>{const t={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"}},e={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},n=l=>l?t[l]:void 0,r=l=>{const c=n(l);return c?c.label:l??t.unknown.label},u=l=>`ה${r(l)}`,i=l=>(n(l)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",o=l=>l?e[l]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",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"},mac:{label:"כתובת MAC",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"},credit_card:{label:"מספר כרטיס אשראי",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"קלט",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},a={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{const c=l.expected,f=a[c??""]??r(c),d=ie(l.input),h=a[d]??t[d]?.label??d;return/^[A-Z]/.test(l.expected)?`קלט לא תקין: צריך להיות instanceof ${l.expected}, התקבל ${h}`:`קלט לא תקין: צריך להיות ${f}, התקבל ${h}`}case"invalid_value":{if(l.values.length===1)return`ערך לא תקין: הערך חייב להיות ${ne(l.values[0])}`;const c=l.values.map(h=>ne(h));if(l.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${c[0]} או ${c[1]}`;const f=c[c.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${c.slice(0,-1).join(", ")} או ${f}`}case"too_big":{const c=o(l.origin),f=u(l.origin??"value");if(l.origin==="string")return`${c?.longLabel??"ארוך"} מדי: ${f} צריכה להכיל ${l.maximum.toString()} ${c?.unit??""} ${l.inclusive?"או פחות":"לכל היותר"}`.trim();if(l.origin==="number"){const p=l.inclusive?`קטן או שווה ל-${l.maximum}`:`קטן מ-${l.maximum}`;return`גדול מדי: ${f} צריך להיות ${p}`}if(l.origin==="array"||l.origin==="set"){const p=l.origin==="set"?"צריכה":"צריך",m=l.inclusive?`${l.maximum} ${c?.unit??""} או פחות`:`פחות מ-${l.maximum} ${c?.unit??""}`;return`גדול מדי: ${f} ${p} להכיל ${m}`.trim()}const d=l.inclusive?"<=":"<",h=i(l.origin??"value");return c?.unit?`${c.longLabel} מדי: ${f} ${h} ${d}${l.maximum.toString()} ${c.unit}`:`${c?.longLabel??"גדול"} מדי: ${f} ${h} ${d}${l.maximum.toString()}`}case"too_small":{const c=o(l.origin),f=u(l.origin??"value");if(l.origin==="string")return`${c?.shortLabel??"קצר"} מדי: ${f} צריכה להכיל ${l.minimum.toString()} ${c?.unit??""} ${l.inclusive?"או יותר":"לפחות"}`.trim();if(l.origin==="number"){const p=l.inclusive?`גדול או שווה ל-${l.minimum}`:`גדול מ-${l.minimum}`;return`קטן מדי: ${f} צריך להיות ${p}`}if(l.origin==="array"||l.origin==="set"){const p=l.origin==="set"?"צריכה":"צריך";if(l.minimum===1&&l.inclusive){const g=(l.origin==="set","לפחות פריט אחד");return`קטן מדי: ${f} ${p} להכיל ${g}`}const m=l.inclusive?`${l.minimum} ${c?.unit??""} או יותר`:`יותר מ-${l.minimum} ${c?.unit??""}`;return`קטן מדי: ${f} ${p} להכיל ${m}`.trim()}const d=l.inclusive?">=":">",h=i(l.origin??"value");return c?.unit?`${c.shortLabel} מדי: ${f} ${h} ${d}${l.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"קטן"} מדי: ${f} ${h} ${d}${l.minimum.toString()}`}case"invalid_format":{const c=l;if(c.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${c.prefix}"`;if(c.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${c.suffix}"`;if(c.format==="includes")return`המחרוזת חייבת לכלול "${c.includes}"`;if(c.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${c.pattern}`;const f=s[c.format],d=f?.label??c.format,p=(f?.gender??"m")==="f"?"תקינה":"תקין";return`${d} לא ${p}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${l.divisor}`;case"unrecognized_keys":return`מפתח${l.keys.length>1?"ות":""} לא מזוה${l.keys.length>1?"ים":"ה"}: ${T(l.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${u(l.origin??"array")}`;default:return"קלט לא תקין"}}};function gW(){return{localeError:mW()}}var OW=()=>{const t={string:{unit:"अक्षर",verb:"रखने के लिए"},file:{unit:"बाइट्स",verb:"रखने के लिए"},array:{unit:"तत्व",verb:"रखने के लिए"},set:{unit:"तत्व",verb:"रखने के लिए"},map:{unit:"प्रविष्टियाँ",verb:"रखने के लिए"}};function e(u){return t[u]??null}const n={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 पता",mac:"MAC पता",cidrv4:"IPv4 श्रेणी",cidrv6:"IPv6 श्रेणी",base64:"Base64-एन्कोडेड स्ट्रिंग",base64url:"Base64URL-एन्कोडेड स्ट्रिंग",json_string:"JSON स्ट्रिंग",e164:"E.164 संख्या",credit_card:"क्रेडिट कार्ड संख्या",jwt:"JWT",template_literal:"इनपुट"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return`अमान्य इनपुट: अपेक्षित ${i}, प्राप्त ${s}`}case"invalid_value":return u.values.length===1?`अमान्य इनपुट: अपेक्षित ${ne(u.values[0])}`:`अमान्य विकल्प: अपेक्षित मानों में से एक ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`बहुत बड़ा: अपेक्षित था कि ${u.origin??"मान"} में ${i}${u.maximum} ${o.unit} हों`:`बहुत बड़ा: अपेक्षित था कि ${u.origin??"मान"} ${i}${u.maximum} हो`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`बहुत छोटा: अपेक्षित था कि ${u.origin} में ${i}${u.minimum} ${o.unit} हों`:`बहुत छोटा: अपेक्षित था कि ${u.origin} ${i}${u.minimum} हो`}case"invalid_format":{const i=u;return i.format==="starts_with"?`अमान्य स्ट्रिंग: "${i.prefix}" से शुरू होना चाहिए`:i.format==="ends_with"?`अमान्य स्ट्रिंग: "${i.suffix}" पर समाप्त होना चाहिए`:i.format==="includes"?`अमान्य स्ट्रिंग: इसमें "${i.includes}" शामिल होना चाहिए`:i.format==="regex"?`अमान्य स्ट्रिंग: पैटर्न ${i.pattern} से मेल खाना चाहिए`:`अमान्य ${n[i.format]??u.format}`}case"not_multiple_of":return`अमान्य संख्या: यह ${u.divisor} का गुणज होना चाहिए`;case"unrecognized_keys":return`अपरिचित कुंजी${u.keys.length>1?"याँ":""}: ${T(u.keys,", ")}`;case"invalid_key":return`अमान्य कुंजी: ${u.origin} में`;case"invalid_union":return u.options&&Array.isArray(u.options)&&u.options.length>0?`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${u.options.map(o=>`'${o}'`).join(" | ")}`:"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${u.origin} में`;default:return"अमान्य इनपुट"}}};function bW(){return{localeError:OW()}}var vW=()=>{const t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function e(u){return t[u]??null}const n={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",jwt:"JWT",template_literal:"unos"},r={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Neispravan unos: očekuje se instanceof ${u.expected}, a primljeno je ${s}`:`Neispravan unos: očekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return u.values.length===1?`Neispravna vrijednost: očekivano ${ne(u.values[0])}`:`Neispravna opcija: očekivano jedno od ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin),s=r[u.origin]??u.origin;return o?`Preveliko: očekivano da ${s??"vrijednost"} ima ${i}${u.maximum.toString()} ${o.unit??"elemenata"}`:`Preveliko: očekivano da ${s??"vrijednost"} bude ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin),s=r[u.origin]??u.origin;return o?`Premalo: očekivano da ${s} ima ${i}${u.minimum.toString()} ${o.unit}`:`Premalo: očekivano da ${s} bude ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Neispravan tekst: mora započinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora završavati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadržavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??u.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${u.divisor}`;case"unrecognized_keys":return`Neprepoznat${u.keys.length>1?"i ključevi":" ključ"}: ${T(u.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${r[u.origin]??u.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${r[u.origin]??u.origin}`;default:return"Neispravan unos"}}};function CW(){return{localeError:vW()}}var yW=()=>{const t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function e(u){return t[u]??null}const n={regex:"bemenet",email:"email cím",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élyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",mac:"MAC cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",credit_card:"hitelkártyaszám",jwt:"JWT",template_literal:"bemenet"},r={nan:"NaN",number:"szám",array:"tömb"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Érvénytelen bemenet: a várt érték instanceof ${u.expected}, a kapott érték ${s}`:`Érvénytelen bemenet: a várt érték ${i}, a kapott érték ${s}`}case"invalid_value":return u.values.length===1?`Érvénytelen bemenet: a várt érték ${ne(u.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Túl nagy: ${u.origin??"érték"} mérete túl nagy ${i}${u.maximum.toString()} ${o.unit??"elem"}`:`Túl nagy: a bemeneti érték ${u.origin??"érték"} túl nagy: ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Túl kicsi: a bemeneti érték ${u.origin} mérete túl kicsi ${i}${u.minimum.toString()} ${o.unit}`:`Túl kicsi: a bemeneti érték ${u.origin} túl kicsi ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie`:i.format==="ends_with"?`Érvénytelen string: "${i.suffix}" értékkel kell végződnie`:i.format==="includes"?`Érvénytelen string: "${i.includes}" értéket kell tartalmaznia`:i.format==="regex"?`Érvénytelen string: ${i.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[i.format]??u.format}`}case"not_multiple_of":return`Érvénytelen szám: ${u.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${u.keys.length>1?"s":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${u.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${u.origin}`;default:return"Érvénytelen bemenet"}}};function xW(){return{localeError:yW()}}function OC(t,e,n){return Math.abs(t)===1?e:n}function Yi(t){if(!t)return"";const e=["ա","ե","ը","ի","ո","ու","օ"],n=t[t.length-1];return t+(e.includes(n)?"ն":"ը")}var EW=()=>{const t={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},map:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function e(u){return t[u]??null}const n={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 հասցե",mac:"MAC հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",credit_card:"կրեդիտ քարտի համար",jwt:"JWT",template_literal:"մուտք"},r={nan:"NaN",number:"թիվ",array:"զանգված"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${u.expected}, ստացվել է ${s}`:`Սխալ մուտքագրում․ սպասվում էր ${i}, ստացվել է ${s}`}case"invalid_value":return u.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${ne(u.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);if(o){const s=Number(u.maximum),a=OC(s,o.unit.one,o.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Yi(u.origin??"արժեք")} կունենա ${i}${u.maximum.toString()} ${a}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Yi(u.origin??"արժեք")} լինի ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);if(o){const s=Number(u.minimum),a=OC(s,o.unit.one,o.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Yi(u.origin)} կունենա ${i}${u.minimum.toString()} ${a}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Yi(u.origin)} լինի ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${i.prefix}"-ով`:i.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${i.suffix}"-ով`:i.format==="includes"?`Սխալ տող․ պետք է պարունակի "${i.includes}"`:i.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${i.pattern} ձևաչափին`:`Սխալ ${n[i.format]??u.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${u.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${u.keys.length>1?"ներ":""}. ${T(u.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${Yi(u.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${Yi(u.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function $W(){return{localeError:EW()}}var AW=()=>{const t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function e(u){return t[u]??null}const n={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",mac:"alamat MAC",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",credit_card:"nomor kartu kredit",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Input tidak valid: diharapkan instanceof ${u.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return u.values.length===1?`Input tidak valid: diharapkan ${ne(u.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Terlalu besar: diharapkan ${u.origin??"value"} memiliki ${i}${u.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: diharapkan ${u.origin??"value"} menjadi ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Terlalu kecil: diharapkan ${u.origin} memiliki ${i}${u.minimum.toString()} ${o.unit}`:`Terlalu kecil: diharapkan ${u.origin} menjadi ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??u.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${u.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${u.keys.length>1?"s":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${u.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${u.origin}`;default:return"Input tidak valid"}}};function DW(){return{localeError:AW()}}var kW=()=>{const t={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"},map:{unit:"hluti",verb:"að hafa"}};function e(u){return t[u]??null}const n={regex:"gildi",email:"netfang",url:"vefslóð",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ími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",credit_card:"kreditkortanúmer",jwt:"JWT",template_literal:"gildi"},r={nan:"NaN",number:"númer",array:"fylki"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Rangt gildi: Þú slóst inn ${s} þar sem á að vera instanceof ${u.expected}`:`Rangt gildi: Þú slóst inn ${s} þar sem á að vera ${i}`}case"invalid_value":return u.values.length===1?`Rangt gildi: gert ráð fyrir ${ne(u.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Of stórt: gert er ráð fyrir að ${u.origin??"gildi"} hafi ${i}${u.maximum.toString()} ${o.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${u.origin??"gildi"} sé ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Of lítið: gert er ráð fyrir að ${u.origin} hafi ${i}${u.minimum.toString()} ${o.unit}`:`Of lítið: gert er ráð fyrir að ${u.origin} sé ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ógildur strengur: verður að byrja á "${i.prefix}"`:i.format==="ends_with"?`Ógildur strengur: verður að enda á "${i.suffix}"`:i.format==="includes"?`Ógildur strengur: verður að innihalda "${i.includes}"`:i.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??u.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${u.divisor}`;case"unrecognized_keys":return`Óþekkt ${u.keys.length>1?"ir lyklar":"ur lykill"}: ${T(u.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${u.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${u.origin}`;default:return"Rangt gildi"}}};function SW(){return{localeError:kW()}}var _W=()=>{const t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function e(u){return t[u]??null}const n={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",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"numero",array:"vettore"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Input non valido: atteso instanceof ${u.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return u.values.length===1?`Input non valido: atteso ${ne(u.values[0])}`:`Opzione non valida: atteso uno tra ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Troppo grande: ${u.origin??"valore"} deve avere ${i}${u.maximum.toString()} ${o.unit??"elementi"}`:`Troppo grande: ${u.origin??"valore"} deve essere ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Troppo piccolo: ${u.origin} deve avere ${i}${u.minimum.toString()} ${o.unit}`:`Troppo piccolo: ${u.origin} deve essere ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.format]??u.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${u.divisor}`;case"unrecognized_keys":return`Chiav${u.keys.length>1?"i":"e"} non riconosciut${u.keys.length>1?"e":"a"}: ${T(u.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${u.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${u.origin}`;default:return"Input non valido"}}};function wW(){return{localeError:_W()}}var BW=()=>{const t={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"},map:{unit:"要素",verb:"である"}};function e(u){return t[u]??null}const n={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アドレス",mac:"MACアドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",credit_card:"クレジットカード番号",jwt:"JWT",template_literal:"入力値"},r={nan:"NaN",number:"数値",array:"配列"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`無効な入力: instanceof ${u.expected}が期待されましたが、${s}が入力されました`:`無効な入力: ${i}が期待されましたが、${s}が入力されました`}case"invalid_value":return u.values.length===1?`無効な入力: ${ne(u.values[0])}が期待されました`:`無効な選択: ${T(u.values,"、")}のいずれかである必要があります`;case"too_big":{const i=u.inclusive?"以下である":"より小さい",o=e(u.origin);return o?`大きすぎる値: ${u.origin??"値"}は${u.maximum.toString()}${o.unit??"要素"}${i}必要があります`:`大きすぎる値: ${u.origin??"値"}は${u.maximum.toString()}${i}必要があります`}case"too_small":{const i=u.inclusive?"以上である":"より大きい",o=e(u.origin);return o?`小さすぎる値: ${u.origin}は${u.minimum.toString()}${o.unit}${i}必要があります`:`小さすぎる値: ${u.origin}は${u.minimum.toString()}${i}必要があります`}case"invalid_format":{const i=u;return i.format==="starts_with"?`無効な文字列: "${i.prefix}"で始まる必要があります`:i.format==="ends_with"?`無効な文字列: "${i.suffix}"で終わる必要があります`:i.format==="includes"?`無効な文字列: "${i.includes}"を含む必要があります`:i.format==="regex"?`無効な文字列: パターン${i.pattern}に一致する必要があります`:`無効な${n[i.format]??u.format}`}case"not_multiple_of":return`無効な数値: ${u.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${u.keys.length>1?"群":""}: ${T(u.keys,"、")}`;case"invalid_key":return`${u.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${u.origin}内の無効な値`;default:return"無効な入力"}}};function PW(){return{localeError:BW()}}var FW=()=>{const t={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},map:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function e(u){return t[u]??null}const n={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 მისამართი",mac:"MAC მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",credit_card:"საკრედიტო ბარათის ნომერი",jwt:"JWT",template_literal:"შეყვანა"},r={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${u.expected}, მიღებული ${s}`:`არასწორი შეყვანა: მოსალოდნელი ${i}, მიღებული ${s}`}case"invalid_value":return u.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${ne(u.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${T(u.values,"|")}-დან`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`ზედმეტად დიდი: მოსალოდნელი ${u.origin??"მნიშვნელობა"} ${o.verb} ${i}${u.maximum.toString()} ${o.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${u.origin??"მნიშვნელობა"} იყოს ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`ზედმეტად პატარა: მოსალოდნელი ${u.origin} ${o.verb} ${i}${u.minimum.toString()} ${o.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${u.origin} იყოს ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`არასწორი ველი: უნდა იწყებოდეს "${i.prefix}"-ით`:i.format==="ends_with"?`არასწორი ველი: უნდა მთავრდებოდეს "${i.suffix}"-ით`:i.format==="includes"?`არასწორი ველი: უნდა შეიცავდეს "${i.includes}"-ს`:i.format==="regex"?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${i.pattern}`:`არასწორი ${n[i.format]??u.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${u.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${u.keys.length>1?"ები":"ი"}: ${T(u.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${u.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${u.origin}-ში`;default:return"არასწორი შეყვანა"}}};function QW(){return{localeError:FW()}}var TW=()=>{const t={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"},map:{unit:"ធាតុ",verb:"គួរមាន"}};function e(u){return t[u]??null}const n={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",mac:"អាសយដ្ឋាន MAC",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",credit_card:"លេខប័ណ្ណឥណទាន",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},r={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${u.expected} ប៉ុន្តែទទួលបាន ${s}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i} ប៉ុន្តែទទួលបាន ${s}`}case"invalid_value":return u.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${ne(u.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`ធំពេក៖ ត្រូវការ ${u.origin??"តម្លៃ"} ${i} ${u.maximum.toString()} ${o.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${u.origin??"តម្លៃ"} ${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`តូចពេក៖ ត្រូវការ ${u.origin} ${i} ${u.minimum.toString()} ${o.unit}`:`តូចពេក៖ ត្រូវការ ${u.origin} ${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"`:i.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"`:i.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"`:i.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[i.format]??u.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${u.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${T(u.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${u.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${u.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function dD(){return{localeError:TW()}}function IW(){return dD()}var zW=()=>{const t={string:{unit:"ಅಕ್ಷರಗಳು",verb:"ಹೊಂದಲು"},file:{unit:"ಬೈಟ್ಗಳು",verb:"ಹೊಂದಲು"},array:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},set:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},map:{unit:"entries",verb:"ಹೊಂದಲು"}};function e(u){return t[u]??null}const n={regex:"ಇನ್ಪುಟ್",email:"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 ವಿಳಾಸ",mac:"MAC ವಿಳಾಸ",cidrv4:"IPv4 ವ್ಯಾಪ್ತಿಯ",cidrv6:"IPv6 ವ್ಯಾಪ್ತಿಯ",base64:"base64-encodedಸ್ಟ್ರಿಂಗ್",base64url:"base64url-encodedಸ್ಟ್ರಿಂಗ್",json_string:"JSONಸ್ಟ್ರಿಂಗ್",e164:"E.164 ಸಂಖ್ಯೆ",credit_card:"ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",jwt:"JWT",template_literal:"ಇನ್ಪುಟ್"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${i}, ಸ್ವೀಕರಿಸಿದನು ${s}`}case"invalid_value":return u.values.length===1?`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${ne(u.values[0])}`:`ಅಮಾನ್ಯ ಆಯ್ಕೆ: ಇವುಗಳಲ್ಲಿ ಒಂದನ್ನು ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${u.origin??"value"} ಹೊಂದಲು ${i}${u.maximum.toString()} ${o.unit??"ಅಂಶಗಳು"}`:`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${u.origin??"value"} ಎಂದು ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${u.origin} ಹೊಂದಲು ${i}${u.minimum.toString()} ${o.unit}`:`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${u.origin} ಎಂದು ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸಬೇಕು "${i.prefix}"`:i.format==="ends_with"?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಕೊನೆಗೊಳ್ಳಬೇಕು "${i.suffix}"`:i.format==="includes"?`ಅಮಾನ್ಯ ಸ್ಟ್ರಿಂಗ್: ಒಳಗೊಂಡಿರಬೇಕು "${i.includes}"`:i.format==="regex"?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಮಾದರಿಗೆ ಹೊಂದಿಕೆಯಾಗಬೇಕು ${i.pattern}`:`ಅಮಾನ್ಯ ${n[i.format]??u.format}`}case"not_multiple_of":return`ಅಮಾನ್ಯ ಸಂಖ್ಯೆ: ಬಹುಸಂಖ್ಯೆಯಾಗಿರಬೇಕು ${u.divisor}`;case"unrecognized_keys":return`ಗುರುತಿಸಲಾಗದ ಕೀ ${u.keys.length>1?"s":""}: ${T(u.keys,", ")}`;case"invalid_key":return`ಅಮಾನ್ಯವಾದ ಕೀ ಇನ್ ${u.origin}`;case"invalid_union":return u.options&&Array.isArray(u.options)&&u.options.length>0?`ಅಮಾನ್ಯ ತಾರತಮ್ಯ ಮೌಲ್ಯ. ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${u.options.map(o=>`'${o}'`).join(" | ")}`:"ಅಮಾನ್ಯ ಇನ್ಪುಟ್";case"invalid_element":return`ರಲ್ಲಿ ಅಮಾನ್ಯ ಮೌಲ್ಯ ${u.origin}`;default:return"ಅಮಾನ್ಯ ಇನ್ಪುಟ್"}}};function ZW(){return{localeError:zW()}}var RW=()=>{const t={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"},map:{unit:"개",verb:"to have"}};function e(u){return t[u]??null}const n={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 주소",mac:"MAC 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",credit_card:"신용카드 번호",jwt:"JWT",template_literal:"입력"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`잘못된 입력: 예상 타입은 instanceof ${u.expected}, 받은 타입은 ${s}입니다`:`잘못된 입력: 예상 타입은 ${i}, 받은 타입은 ${s}입니다`}case"invalid_value":return u.values.length===1?`잘못된 입력: 값은 ${ne(u.values[0])} 이어야 합니다`:`잘못된 옵션: ${T(u.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const i=u.inclusive?"이하":"미만",o=i==="미만"?"이어야 합니다":"여야 합니다",s=e(u.origin),a=s?.unit??"요소";return s?`${u.origin??"값"}이 너무 큽니다: ${u.maximum.toString()}${a} ${i}${o}`:`${u.origin??"값"}이 너무 큽니다: ${u.maximum.toString()} ${i}${o}`}case"too_small":{const i=u.inclusive?"이상":"초과",o=i==="이상"?"이어야 합니다":"여야 합니다",s=e(u.origin),a=s?.unit??"요소";return s?`${u.origin??"값"}이 너무 작습니다: ${u.minimum.toString()}${a} ${i}${o}`:`${u.origin??"값"}이 너무 작습니다: ${u.minimum.toString()} ${i}${o}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다`:i.format==="ends_with"?`잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다`:i.format==="includes"?`잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다`:i.format==="regex"?`잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[i.format]??u.format}`}case"not_multiple_of":return`잘못된 숫자: ${u.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${T(u.keys,", ")}`;case"invalid_key":return`잘못된 키: ${u.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${u.origin}`;default:return"잘못된 입력"}}};function jW(){return{localeError:RW()}}var xs=t=>t.charAt(0).toUpperCase()+t.slice(1);function bC(t){const e=Math.abs(t),n=e%10,r=e%100;return r>=11&&r<=19||n===0?"many":n===1?"one":"few"}var MW=()=>{const t={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 e(u,i,o,s){const a=t[u]??null;return a===null?a:{unit:a.unit[i],verb:a.verb[s][o?"inclusive":"notInclusive"]}}const 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",mac:"MAC 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",credit_card:"kredito kortelės 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 u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Gautas tipas ${s}, o tikėtasi - instanceof ${u.expected}`:`Gautas tipas ${s}, o tikėtasi - ${i}`}case"invalid_value":return u.values.length===1?`Privalo būti ${ne(u.values[0])}`:`Privalo būti vienas iš ${T(u.values,"|")} pasirinkimų`;case"too_big":{const i=r[u.origin]??u.origin,o=e(u.origin,bC(Number(u.maximum)),u.inclusive??!1,"smaller");if(o?.verb)return`${xs(i??u.origin??"reikšmė")} ${o.verb} ${u.maximum.toString()} ${o.unit??"elementų"}`;const s=u.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${xs(i??u.origin??"reikšmė")} turi būti ${s} ${u.maximum.toString()} ${o?.unit}`}case"too_small":{const i=r[u.origin]??u.origin,o=e(u.origin,bC(Number(u.minimum)),u.inclusive??!1,"bigger");if(o?.verb)return`${xs(i??u.origin??"reikšmė")} ${o.verb} ${u.minimum.toString()} ${o.unit??"elementų"}`;const s=u.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${xs(i??u.origin??"reikšmė")} turi būti ${s} ${u.minimum.toString()} ${o?.unit}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Eilutė privalo prasidėti "${i.prefix}"`:i.format==="ends_with"?`Eilutė privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilutė privalo įtraukti "${i.includes}"`:i.format==="regex"?`Eilutė privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??u.format}`}case"not_multiple_of":return`Skaičius privalo būti ${u.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${u.keys.length>1?"i":"as"} rakt${u.keys.length>1?"ai":"as"}: ${T(u.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const i=r[u.origin]??u.origin;return`${xs(i??u.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function LW(){return{localeError:MW()}}var NW=()=>{const t={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"},map:{unit:"ставки",verb:"да имаат"}};function e(u){return t[u]??null}const n={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 адреса",mac:"MAC адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",credit_card:"број на кредитна картичка",jwt:"JWT",template_literal:"внес"},r={nan:"NaN",number:"број",array:"низа"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Грешен внес: се очекува instanceof ${u.expected}, примено ${s}`:`Грешен внес: се очекува ${i}, примено ${s}`}case"invalid_value":return u.values.length===1?`Invalid input: expected ${ne(u.values[0])}`:`Грешана опција: се очекува една ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Премногу голем: се очекува ${u.origin??"вредноста"} да има ${i}${u.maximum.toString()} ${o.unit??"елементи"}`:`Премногу голем: се очекува ${u.origin??"вредноста"} да биде ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Премногу мал: се очекува ${u.origin} да има ${i}${u.minimum.toString()} ${o.unit}`:`Премногу мал: се очекува ${u.origin} да биде ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Неважечка низа: мора да започнува со "${i.prefix}"`:i.format==="ends_with"?`Неважечка низа: мора да завршува со "${i.suffix}"`:i.format==="includes"?`Неважечка низа: мора да вклучува "${i.includes}"`:i.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${i.pattern}`:`Invalid ${n[i.format]??u.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${T(u.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${u.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${u.origin}`;default:return"Грешен внес"}}};function UW(){return{localeError:NW()}}var XW=()=>{const t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function e(u){return t[u]??null}const n={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",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"nombor"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Input tidak sah: dijangka instanceof ${u.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return u.values.length===1?`Input tidak sah: dijangka ${ne(u.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Terlalu besar: dijangka ${u.origin??"nilai"} ${o.verb} ${i}${u.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: dijangka ${u.origin??"nilai"} adalah ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Terlalu kecil: dijangka ${u.origin} ${o.verb} ${i}${u.minimum.toString()} ${o.unit}`:`Terlalu kecil: dijangka ${u.origin} adalah ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??u.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${u.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${T(u.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${u.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${u.origin}`;default:return"Input tidak sah"}}};function VW(){return{localeError:XW()}}var qW=()=>{const t={string:{unit:"अक्षर",verb:"हुनुपर्छ"},file:{unit:"बाइट",verb:"हुनुपर्छ"},array:{unit:"तत्व",verb:"हुनुपर्छ"},set:{unit:"तत्व",verb:"हुनुपर्छ"},map:{unit:"प्रविष्टि",verb:"हुनुपर्छ"}};function e(u){return t[u]??null}const n={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 ठेगाना",mac:"MAC ठेगाना",cidrv4:"IPv4 दायरा",cidrv6:"IPv6 दायरा",base64:"base64-इन्कोड गरिएको स्ट्रिङ",base64url:"base64url-इन्कोड गरिएको स्ट्रिङ",json_string:"JSON स्ट्रिङ",e164:"E.164 नम्बर",credit_card:"क्रेडिट कार्ड नम्बर",jwt:"JWT",template_literal:"इनपुट"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return`अमान्य इनपुट: अपेक्षित ${i}, प्राप्त ${s}`}case"invalid_value":return u.values.length===1?`अमान्य इनपुट: अपेक्षित ${ne(u.values[0])}`:`अमान्य विकल्प: अपेक्षित मानहरू मध्ये एक ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`धेरै ठूलो: ${u.origin??"मान"} मा ${i}${u.maximum.toString()} ${o.unit} ${o.verb}`:`धेरै ठूलो: ${u.origin??"मान"} ${i}${u.maximum.toString()} हुनुपर्छ`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`धेरै सानो: ${u.origin} मा ${i}${u.minimum.toString()} ${o.unit} ${o.verb}`:`धेरै सानो: ${u.origin} ${i}${u.minimum.toString()} हुनुपर्छ`}case"invalid_format":{const i=u;return i.format==="starts_with"?`अमान्य स्ट्रिङ: "${i.prefix}" बाट सुरु हुनुपर्छ`:i.format==="ends_with"?`अमान्य स्ट्रिङ: "${i.suffix}" मा समाप्त हुनुपर्छ`:i.format==="includes"?`अमान्य स्ट्रिङ: "${i.includes}" समावेश हुनुपर्छ`:i.format==="regex"?`अमान्य स्ट्रिङ: ढाँचा ${i.pattern} सँग मेल खानुपर्छ`:`अमान्य ${n[i.format]??u.format}`}case"not_multiple_of":return`अमान्य संख्या: ${u.divisor} को गुणज हुनुपर्छ`;case"unrecognized_keys":return`अपरिचित कुञ्जी${u.keys.length>1?"हरू":""}: ${T(u.keys,", ")}`;case"invalid_key":return`अमान्य कुञ्जी: ${u.origin} मा`;case"invalid_union":return u.options&&Array.isArray(u.options)&&u.options.length>0?`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${u.options.map(o=>`'${o}'`).join(" | ")}`:"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${u.origin} मा`;default:return"अमान्य इनपुट"}}};function WW(){return{localeError:qW()}}var YW=()=>{const t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function e(u){return t[u]??null}const n={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",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",jwt:"JWT",template_literal:"invoer"},r={nan:"NaN",number:"getal"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Ongeldige invoer: verwacht instanceof ${u.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return u.values.length===1?`Ongeldige invoer: verwacht ${ne(u.values[0])}`:`Ongeldige optie: verwacht één van ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin),s=u.origin==="date"?"laat":u.origin==="string"?"lang":"groot";return o?`Te ${s}: verwacht dat ${u.origin??"waarde"} ${i}${u.maximum.toString()} ${o.unit??"elementen"} ${o.verb}`:`Te ${s}: verwacht dat ${u.origin??"waarde"} ${i}${u.maximum.toString()} is`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin),s=u.origin==="date"?"vroeg":u.origin==="string"?"kort":"klein";return o?`Te ${s}: verwacht dat ${u.origin} ${i}${u.minimum.toString()} ${o.unit} ${o.verb}`:`Te ${s}: verwacht dat ${u.origin} ${i}${u.minimum.toString()} is`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??u.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${u.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${u.keys.length>1?"s":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${u.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${u.origin}`;default:return"Ongeldige invoer"}}};function GW(){return{localeError:YW()}}var HW=()=>{const t={string:{unit:"teikn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"element",verb:"å innehalde"},set:{unit:"element",verb:"å innehalde"},map:{unit:"element",verb:"å innehalde"}};function e(u){return t[u]??null}const n={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-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"tal",array:"liste"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Ugyldig input: forventa instanceof ${u.expected}, fekk ${s}`:`Ugyldig input: forventa ${i}, fekk ${s}`}case"invalid_value":return u.values.length===1?`Ugyldig verdi: forventa ${ne(u.values[0])}`:`Ugyldig val: forventa eitt av ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`For stor(t): forventa ${u.origin??"value"} til å ha ${i}${u.maximum.toString()} ${o.unit??"element"}`:`For stor(t): forventa ${u.origin??"value"} til å ha ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`For lite(n): forventa ${u.origin} til å ha ${i}${u.minimum.toString()} ${o.unit}`:`For lite(n): forventa ${u.origin} til å ha ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ugyldig streng: må starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: må slutte med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: må innehalde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: må matche mønsteret ${i.pattern}`:`Ugyldig ${n[i.format]??u.format}`}case"not_multiple_of":return`Ugyldig tal: må vere eit multiplum av ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ukjende nøklar":"Ukjend nøkkel"}: ${T(u.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${u.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${u.origin}`;default:return"Ugyldig input"}}};function KW(){return{localeError:HW()}}var JW=()=>{const t={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"},map:{unit:"elementer",verb:"å inneholde"}};function e(u){return t[u]??null}const n={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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"tall",array:"liste"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Ugyldig input: forventet instanceof ${u.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return u.values.length===1?`Ugyldig verdi: forventet ${ne(u.values[0])}`:`Ugyldig valg: forventet en av ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`For stor(t): forventet ${u.origin??"value"} til å ha ${i}${u.maximum.toString()} ${o.unit??"elementer"}`:`For stor(t): forventet ${u.origin??"value"} til å ha ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`For lite(n): forventet ${u.origin} til å ha ${i}${u.minimum.toString()} ${o.unit}`:`For lite(n): forventet ${u.origin} til å ha ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ugyldig streng: må starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: må ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: må inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: må matche mønsteret ${i.pattern}`:`Ugyldig ${n[i.format]??u.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${T(u.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${u.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${u.origin}`;default:return"Ugyldig input"}}};function eY(){return{localeError:JW()}}var tY=()=>{const t={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"},map:{unit:"unsur",verb:"olmalıdır"}};function e(u){return t[u]??null}const n={regex:"giren",email:"epostagâh",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âmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",mac:"MAC nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",credit_card:"i'tibâr kartı numarası",jwt:"JWT",template_literal:"giren"},r={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Fâsit giren: umulan instanceof ${u.expected}, alınan ${s}`:`Fâsit giren: umulan ${i}, alınan ${s}`}case"invalid_value":return u.values.length===1?`Fâsit giren: umulan ${ne(u.values[0])}`:`Fâsit tercih: mûteberler ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Fazla büyük: ${u.origin??"value"}, ${i}${u.maximum.toString()} ${o.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${u.origin??"value"}, ${i}${u.maximum.toString()} olmalıydı.`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Fazla küçük: ${u.origin}, ${i}${u.minimum.toString()} ${o.unit} sahip olmalıydı.`:`Fazla küçük: ${u.origin}, ${i}${u.minimum.toString()} olmalıydı.`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Fâsit metin: "${i.prefix}" ile başlamalı.`:i.format==="ends_with"?`Fâsit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`Fâsit metin: "${i.includes}" ihtivâ etmeli.`:i.format==="regex"?`Fâsit metin: ${i.pattern} nakşına uymalı.`:`Fâsit ${n[i.format]??u.format}`}case"not_multiple_of":return`Fâsit sayı: ${u.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${u.keys.length>1?"s":""}: ${T(u.keys,", ")}`;case"invalid_key":return`${u.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${u.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function nY(){return{localeError:tY()}}var uY=()=>{const t={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"},map:{unit:"توکي",verb:"ولري"}};function e(u){return t[u]??null}const n={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 پته",mac:"د MAC پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",credit_card:"د کریډیټ کارت شمیره",jwt:"JWT",template_literal:"ورودي"},r={nan:"NaN",number:"عدد",array:"ارې"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`ناسم ورودي: باید instanceof ${u.expected} وای, مګر ${s} ترلاسه شو`:`ناسم ورودي: باید ${i} وای, مګر ${s} ترلاسه شو`}case"invalid_value":return u.values.length===1?`ناسم ورودي: باید ${ne(u.values[0])} وای`:`ناسم انتخاب: باید یو له ${T(u.values,"|")} څخه وای`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`ډیر لوی: ${u.origin??"ارزښت"} باید ${i}${u.maximum.toString()} ${o.unit??"عنصرونه"} ولري`:`ډیر لوی: ${u.origin??"ارزښت"} باید ${i}${u.maximum.toString()} وي`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`ډیر کوچنی: ${u.origin} باید ${i}${u.minimum.toString()} ${o.unit} ولري`:`ډیر کوچنی: ${u.origin} باید ${i}${u.minimum.toString()} وي`}case"invalid_format":{const i=u;return i.format==="starts_with"?`ناسم متن: باید د "${i.prefix}" سره پیل شي`:i.format==="ends_with"?`ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي`:i.format==="includes"?`ناسم متن: باید "${i.includes}" ولري`:i.format==="regex"?`ناسم متن: باید د ${i.pattern} سره مطابقت ولري`:`${n[i.format]??u.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${u.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${u.keys.length>1?"کلیډونه":"کلیډ"}: ${T(u.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${u.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${u.origin} کې`;default:return"ناسمه ورودي"}}};function rY(){return{localeError:uY()}}var iY=()=>{const t={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"},map:{unit:"elementów",verb:"mieć"}};function e(u){return t[u]??null}const n={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",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",jwt:"JWT",template_literal:"wejście"},r={nan:"NaN",number:"liczba",array:"tablica"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${u.expected}, otrzymano ${s}`:`Nieprawidłowe dane wejściowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return u.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${ne(u.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Za duża wartość: oczekiwano, że ${u.origin??"wartość"} będzie mieć ${i}${u.maximum.toString()} ${o.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${u.origin??"wartość"} będzie wynosić ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Za mała wartość: oczekiwano, że ${u.origin??"wartość"} będzie mieć ${i}${u.minimum.toString()} ${o.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${u.origin??"wartość"} będzie wynosić ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"`:i.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"`:i.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"`:i.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}`:`Nieprawidłow(y/a/e) ${n[i.format]??u.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${u.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${u.keys.length>1?"s":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${u.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${u.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function oY(){return{localeError:iY()}}var sY=()=>{const t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function e(o){return t[o]??null}const n={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"o intervalo de endereços IPv4",cidrv6:"o intervalo de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",jwt:"o JWT",template_literal:"a entrada"},r={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},u={string:{name:"texto",articles:r.masculine},number:{name:"número",articles:r.masculine},int:{name:"número inteiro",articles:r.masculine},boolean:{name:"valor booleano",articles:r.masculine},bigint:{name:"número bigint",articles:r.masculine},symbol:{name:"símbolo",articles:r.masculine},undefined:{name:'valor "undefined"',articles:r.masculine},null:{name:'valor "nulo"',articles:r.masculine},never:{name:'valor "never"',articles:r.masculine},void:{name:'valor "void"',articles:r.masculine},date:{name:"data",articles:r.feminine},array:{name:"vetor",articles:r.masculine},object:{name:"objeto",articles:r.masculine},tuple:{name:"tuplo",articles:r.masculine},record:{name:"registo",articles:r.masculine},map:{name:"mapa",articles:r.masculine},set:{name:"conjunto",articles:r.masculine},file:{name:"ficheiro",articles:r.masculine},nonoptional:{name:"valor não opcional",articles:r.masculine},nan:{name:'valor "NaN"',articles:r.masculine},function:{name:"função",articles:r.feminine}};function i(o,s){const a=u[o]??{name:`valor "${o}"`,articles:r.masculine};return`${a.articles[s]} ${a.name}`}return o=>{switch(o.code){case"invalid_type":{const s=i(o.expected,"indefinite"),a=ie(o.input),l=i(a,"indefinite");return`Entrada inválida: esperava ${s}, recebeu ${l}`}case"invalid_value":return o.values.length===1?`Entrada inválida: esperava ${ne(o.values[0])}`:`Opção inválida: esperava uma das seguintes opções: ${T(o.values,"|")}`;case"too_big":{const s=o.inclusive?"<=":"<",a=e(o.origin);return a?`Demasiado grande: esperava que ${i(o.origin,"definite")} tivesse ${s} ${o.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: esperava que ${i(o.origin,"definite")} fosse ${s} ${o.maximum.toString()}`}case"too_small":{const s=o.inclusive?">=":">",a=e(o.origin);return a?`Demasiado pequeno: esperava que ${i(o.origin,"definite")} tivesse ${s} ${o.minimum.toString()} ${a.unit??"elementos"}`:`Demasiado pequeno: esperava que ${i(o.origin,"definite")} fosse ${s} ${o.minimum.toString()}`}case"invalid_format":{const s=o;return s.format==="starts_with"?`Texto inválido: deve começar por "${s.prefix}"`:s.format==="ends_with"?`Texto inválido: deve terminar em "${s.suffix}"`:s.format==="includes"?`Texto inválido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inválido: deve corresponder ao padrão ${s.pattern}`:`Formato d${n[s.format]??o.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${o.divisor}`;case"unrecognized_keys":{const s=o.keys.length>1?"s":"";return`Chave${s} inválida${s}: ${T(o.keys,", ")}`}case"invalid_key":return`Entrada inválida n${i(o.origin,"definite")}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Valor de discriminação inválido. Esperava ${o.options.map(a=>`'${a}'`).join(" | ")}`:"Entrada inválida";case"invalid_element":return`Entrada inválida n${i(o.origin,"definite")}`;default:return"Entrada inválida"}}};function aY(){return{localeError:sY()}}var lY=()=>{const t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function e(o){return t[o]??null}const n={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"a faixa de endereços IPv4",cidrv6:"a faixa de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",jwt:"o JWT",template_literal:"a entrada"},r={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},u={string:{name:"texto",articles:r.masculine},number:{name:"número",articles:r.masculine},int:{name:"número inteiro",articles:r.masculine},boolean:{name:"valor booleano",articles:r.masculine},bigint:{name:"número bigint",articles:r.masculine},symbol:{name:"símbolo",articles:r.masculine},undefined:{name:'valor "undefined"',articles:r.masculine},null:{name:'valor "nulo"',articles:r.masculine},never:{name:'valor "never"',articles:r.masculine},void:{name:'valor "void"',articles:r.masculine},date:{name:"data",articles:r.feminine},array:{name:"vetor",articles:r.masculine},object:{name:"objeto",articles:r.masculine},tuple:{name:"tupla",articles:r.feminine},record:{name:"registro",articles:r.masculine},map:{name:"mapa",articles:r.masculine},set:{name:"conjunto",articles:r.masculine},file:{name:"arquivo",articles:r.masculine},nonoptional:{name:"valor não opcional",articles:r.masculine},nan:{name:'valor "NaN"',articles:r.masculine},function:{name:"função",articles:r.feminine}};function i(o,s){const a=u[o]??{name:`valor "${o}"`,articles:r.masculine};return`${a.articles[s]} ${a.name}`}return o=>{switch(o.code){case"invalid_type":{const s=i(o.expected,"indefinite"),a=ie(o.input),l=i(a,"indefinite");return`Entrada inválida: esperava ${s}, recebeu ${l}`}case"invalid_value":return o.values.length===1?`Entrada inválida: esperava ${ne(o.values[0])}`:`Opção inválida: esperava uma das seguintes opções: ${T(o.values,"|")}`;case"too_big":{const s=o.inclusive?"<=":"<",a=e(o.origin);return a?`Grande demais: esperava que ${i(o.origin,"definite")} tivesse ${s} ${o.maximum.toString()} ${a.unit??"elementos"}`:`Grande demais: esperava que ${i(o.origin,"definite")} fosse ${s} ${o.maximum.toString()}`}case"too_small":{const s=o.inclusive?">=":">",a=e(o.origin);return a?`Pequeno demais: esperava que ${i(o.origin,"definite")} tivesse ${s} ${o.minimum.toString()} ${a.unit??"elementos"}`:`Pequeno demais: esperava que ${i(o.origin,"definite")} fosse ${s} ${o.minimum.toString()}`}case"invalid_format":{const s=o;return s.format==="starts_with"?`Texto inválido: deve começar com "${s.prefix}"`:s.format==="ends_with"?`Texto inválido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inválido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inválido: deve corresponder ao padrão ${s.pattern}`:`Formato d${n[s.format]??o.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${o.divisor}`;case"unrecognized_keys":{const s=o.keys.length>1?"s":"";return`Chave${s} inválida${s}: ${T(o.keys,", ")}`}case"invalid_key":return`Entrada inválida n${i(o.origin,"definite")}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Valor de discriminação inválido. Esperava ${o.options.map(a=>`'${a}'`).join(" | ")}`:"Entrada inválida";case"invalid_element":return`Entrada inválida n${i(o.origin,"definite")}`;default:return"Entrada inválida"}}};function cY(){return{localeError:lY()}}var fY=()=>{const t={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function e(u){return t[u]??null}const n={regex:"intrare",email:"adresă de 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:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",credit_card:"număr de card de credit",jwt:"JWT",template_literal:"intrare"},r={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return`Intrare invalidă: așteptat ${i}, primit ${s}`}case"invalid_value":return u.values.length===1?`Intrare invalidă: așteptat ${ne(u.values[0])}`:`Opțiune invalidă: așteptat una dintre ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Prea mare: așteptat ca ${u.origin??"valoarea"} ${o.verb} ${i}${u.maximum.toString()} ${o.unit??"elemente"}`:`Prea mare: așteptat ca ${u.origin??"valoarea"} să fie ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Prea mic: așteptat ca ${u.origin} ${o.verb} ${i}${u.minimum.toString()} ${o.unit}`:`Prea mic: așteptat ca ${u.origin} să fie ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Șir invalid: trebuie să înceapă cu "${i.prefix}"`:i.format==="ends_with"?`Șir invalid: trebuie să se termine cu "${i.suffix}"`:i.format==="includes"?`Șir invalid: trebuie să includă "${i.includes}"`:i.format==="regex"?`Șir invalid: trebuie să se potrivească cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??u.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${u.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${T(u.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${u.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${u.origin}`;default:return"Intrare invalidă"}}};function dY(){return{localeError:fY()}}function vC(t,e,n,r){const u=Math.abs(t),i=u%10,o=u%100;return o>=11&&o<=19?r:i===1?e:i>=2&&i<=4?n:r}var hY=()=>{const t={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},map:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function e(u){return t[u]??null}const n={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 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",credit_card:"номер кредитной карты",jwt:"JWT",template_literal:"ввод"},r={nan:"NaN",number:"число",array:"массив"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Неверный ввод: ожидалось instanceof ${u.expected}, получено ${s}`:`Неверный ввод: ожидалось ${i}, получено ${s}`}case"invalid_value":return u.values.length===1?`Неверный ввод: ожидалось ${ne(u.values[0])}`:`Неверный вариант: ожидалось одно из ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);if(o){const s=Number(u.maximum),a=vC(s,o.unit.one,o.unit.few,o.unit.many);return`Слишком большое значение: ожидалось, что ${u.origin??"значение"} будет иметь ${i}${u.maximum.toString()} ${a}`}return`Слишком большое значение: ожидалось, что ${u.origin??"значение"} будет ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);if(o){const s=Number(u.minimum),a=vC(s,o.unit.one,o.unit.few,o.unit.many);return`Слишком маленькое значение: ожидалось, что ${u.origin} будет иметь ${i}${u.minimum.toString()} ${a}`}return`Слишком маленькое значение: ожидалось, что ${u.origin} будет ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Неверная строка: должна начинаться с "${i.prefix}"`:i.format==="ends_with"?`Неверная строка: должна заканчиваться на "${i.suffix}"`:i.format==="includes"?`Неверная строка: должна содержать "${i.includes}"`:i.format==="regex"?`Неверная строка: должна соответствовать шаблону ${i.pattern}`:`Неверный ${n[i.format]??u.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${u.divisor}`;case"unrecognized_keys":return`Нераспознанн${u.keys.length>1?"ые":"ый"} ключ${u.keys.length>1?"и":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${u.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${u.origin}`;default:return"Неверные входные данные"}}};function pY(){return{localeError:hY()}}var mY=()=>{const t={string:{unit:"znakov",verb:"mať"},file:{unit:"bajtov",verb:"mať"},array:{unit:"prvkov",verb:"mať"},set:{unit:"prvkov",verb:"mať"},map:{unit:"položiek",verb:"mať"}};function e(u){return t[u]??null}const n={regex:"regulárny výraz",email:"e-mailová 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:"dátum a čas vo formáte ISO",date:"dátum vo formáte ISO",time:"čas vo formáte ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"reťazec zakódovaný vo formáte base64",base64url:"reťazec zakódovaný vo formáte base64url",json_string:"reťazec vo formáte JSON",e164:"číslo E.164",credit_card:"číslo kreditnej karty",jwt:"JWT",template_literal:"vstup"},r={nan:"NaN",number:"číslo",string:"reťazec",function:"funkcia",array:"pole"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Neplatný vstup: očakávané instanceof ${u.expected}, obdržané ${s}`:`Neplatný vstup: očakávané ${i}, obdržané ${s}`}case"invalid_value":return u.values.length===1?`Neplatný vstup: očakávané ${ne(u.values[0])}`:`Neplatný vstup: očakávaná jedna z hodnôt ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Hodnota je príliš veľká: ${u.origin??"hodnota"} musí mať ${i}${u.maximum.toString()} ${o.unit??"prvkov"}`:`Hodnota je príliš veľká: ${u.origin??"hodnota"} musí byť ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Hodnota je príliš malá: ${u.origin??"hodnota"} musí mať ${i}${u.minimum.toString()} ${o.unit??"prvkov"}`:`Hodnota je príliš malá: ${u.origin??"hodnota"} musí byť ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Neplatný reťazec: musí začínať na "${i.prefix}"`:i.format==="ends_with"?`Neplatný reťazec: musí končiť na "${i.suffix}"`:i.format==="includes"?`Neplatný reťazec: musí obsahovať "${i.includes}"`:i.format==="regex"?`Neplatný reťazec: musí zodpovedať vzoru ${i.pattern}`:`Neplatný formát ${n[i.format]??u.format}`}case"not_multiple_of":return`Neplatné číslo: musí byť násobkom ${u.divisor}`;case"unrecognized_keys":return`Neznáme klúče: ${T(u.keys,", ")}`;case"invalid_key":return`Neplatný klúč v ${u.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${u.origin}`;default:return"Neplatný vstup"}}};function gY(){return{localeError:mY()}}var OY=()=>{const t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function e(u){return t[u]??null}const n={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",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",credit_card:"številka kreditne kartice",jwt:"JWT",template_literal:"vnos"},r={nan:"NaN",number:"število",array:"tabela"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Neveljaven vnos: pričakovano instanceof ${u.expected}, prejeto ${s}`:`Neveljaven vnos: pričakovano ${i}, prejeto ${s}`}case"invalid_value":return u.values.length===1?`Neveljaven vnos: pričakovano ${ne(u.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Preveliko: pričakovano, da bo ${u.origin??"vrednost"} imelo ${i}${u.maximum.toString()} ${o.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${u.origin??"vrednost"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Premajhno: pričakovano, da bo ${u.origin} imelo ${i}${u.minimum.toString()} ${o.unit}`:`Premajhno: pričakovano, da bo ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Neveljaven niz: mora se začeti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se končati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??u.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${u.divisor}`;case"unrecognized_keys":return`Neprepoznan${u.keys.length>1?"i ključi":" ključ"}: ${T(u.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${u.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${u.origin}`;default:return"Neveljaven vnos"}}};function bY(){return{localeError:OY()}}var vY=()=>{const t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"},map:{unit:"objekt",verb:"att innehålla"}};function e(u){return t[u]??null}const n={regex:"reguljärt 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-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",jwt:"JWT",template_literal:"mall-literal"},r={nan:"NaN",number:"antal",array:"lista"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Ogiltig inmatning: förväntat instanceof ${u.expected}, fick ${s}`:`Ogiltig inmatning: förväntat ${i}, fick ${s}`}case"invalid_value":return u.values.length===1?`Ogiltig inmatning: förväntat ${ne(u.values[0])}`:`Ogiltigt val: förväntade en av ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`För stor(t): förväntade ${u.origin??"värdet"} att ha ${i}${u.maximum.toString()} ${o.unit??"element"}`:`För stor(t): förväntat ${u.origin??"värdet"} att ha ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`För lite(t): förväntade ${u.origin??"värdet"} att ha ${i}${u.minimum.toString()} ${o.unit}`:`För lite(t): förväntade ${u.origin??"värdet"} att ha ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ogiltig sträng: måste börja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig sträng: måste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig sträng: måste innehålla "${i.includes}"`:i.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??u.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${T(u.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${u.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${u.origin??"värdet"}`;default:return"Ogiltig input"}}};function CY(){return{localeError:vY()}}var yY=()=>{const t={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},map:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function e(u){return t[u]??null}const n={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 முகவரி",mac:"MAC முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",credit_card:"கடன் அட்டை எண்",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${u.expected}, பெறப்பட்டது ${s}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i}, பெறப்பட்டது ${s}`}case"invalid_value":return u.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${ne(u.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${T(u.values,"|")} இல் ஒன்று`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${u.origin??"மதிப்பு"} ${i}${u.maximum.toString()} ${o.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${u.origin??"மதிப்பு"} ${i}${u.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${u.origin} ${i}${u.minimum.toString()} ${o.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${u.origin} ${i}${u.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const i=u;return i.format==="starts_with"?`தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்`:i.format==="ends_with"?`தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்`:i.format==="includes"?`தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்`:i.format==="regex"?`தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[i.format]??u.format}`}case"not_multiple_of":return`தவறான எண்: ${u.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${u.keys.length>1?"கள்":""}: ${T(u.keys,", ")}`;case"invalid_key":return`${u.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${u.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function xY(){return{localeError:yY()}}var EY=()=>{const t={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"},map:{unit:"รายการ",verb:"ควรมี"}};function e(u){return t[u]??null}const n={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",mac:"ที่อยู่ MAC",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",credit_card:"หมายเลขบัตรเครดิต",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},r={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${u.expected} แต่ได้รับ ${s}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i} แต่ได้รับ ${s}`}case"invalid_value":return u.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${ne(u.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"ไม่เกิน":"น้อยกว่า",o=e(u.origin);return o?`เกินกำหนด: ${u.origin??"ค่า"} ควรมี${i} ${u.maximum.toString()} ${o.unit??"รายการ"}`:`เกินกำหนด: ${u.origin??"ค่า"} ควรมี${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?"อย่างน้อย":"มากกว่า",o=e(u.origin);return o?`น้อยกว่ากำหนด: ${u.origin} ควรมี${i} ${u.minimum.toString()} ${o.unit}`:`น้อยกว่ากำหนด: ${u.origin} ควรมี${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"`:i.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"`:i.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ`:i.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[i.format]??u.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${u.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${T(u.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${u.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${u.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function $Y(){return{localeError:EY()}}var AY=()=>{const t={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"baýt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function e(u){return t[u]??null}const n={regex:"giriş",email:"e-poçta salgysy",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 sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen şifrlenen setir",base64url:"base64url bilen şifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartynyň nomeri",jwt:"JWT",template_literal:"şablon"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return`Nädogry baha: garaşylan ${i} ýerine ${s} alyndy`}case"invalid_value":return u.values.length===1?`Nädogry baha: ${ne(u.values[0])} bolmaly`:`Nädogry saýlaw: aşakdakylardan biri bolmaly: ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Has uly: garaşylýan ${u.origin??"baha"} ${i} ${u.maximum.toString()} ${o.unit??"element"}`:`Has uly: garaşylýan ${u.origin??"baha"} ${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Has kiçi: garaşylýan ${u.origin} ${i} ${u.minimum.toString()} ${o.unit}`:`Has kiçi: garaşylýan ${u.origin} ${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Nädogry setir: "${i.prefix}" bilen başlamaly`:i.format==="ends_with"?`Nädogry setir: "${i.suffix}" bilen gutarmaly`:i.format==="includes"?`Nädogry setir: "${i.includes}" saklamaly`:i.format==="regex"?`Nädogry setir: ${i.pattern} nusga laýyk bolmaly`:`Nädogry ${n[i.format]??u.format}`}case"not_multiple_of":return`Nädogry san: ${u.divisor} bilen galyndysyz bölünmeli`;case"unrecognized_keys":return`Tanalmaýan açar${u.keys.length>1?"lar":""}: ${T(u.keys,", ")}`;case"invalid_key":return`${u.origin} içinde nädogry açar`;case"invalid_union":return"Nädogry baha";case"invalid_element":return`${u.origin} içinde nädogry baha`;default:return"Nädogry baha"}}};function DY(){return{localeError:AY()}}var kY=()=>{const t={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"},map:{unit:"öğe",verb:"olmalı"}};function e(u){return t[u]??null}const n={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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC 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ı",credit_card:"kredi kartı numarası",jwt:"JWT",template_literal:"Şablon dizesi"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Geçersiz değer: beklenen instanceof ${u.expected}, alınan ${s}`:`Geçersiz değer: beklenen ${i}, alınan ${s}`}case"invalid_value":return u.values.length===1?`Geçersiz değer: beklenen ${ne(u.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Çok büyük: beklenen ${u.origin??"değer"} ${i}${u.maximum.toString()} ${o.unit??"öğe"}`:`Çok büyük: beklenen ${u.origin??"değer"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Çok küçük: beklenen ${u.origin} ${i}${u.minimum.toString()} ${o.unit}`:`Çok küçük: beklenen ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Geçersiz metin: "${i.prefix}" ile başlamalı`:i.format==="ends_with"?`Geçersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Geçersiz metin: "${i.includes}" içermeli`:i.format==="regex"?`Geçersiz metin: ${i.pattern} desenine uymalı`:`Geçersiz ${n[i.format]??u.format}`}case"not_multiple_of":return`Geçersiz sayı: ${u.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${u.keys.length>1?"lar":""}: ${T(u.keys,", ")}`;case"invalid_key":return`${u.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${u.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function SY(){return{localeError:kY()}}var _Y=()=>{const t={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"},map:{unit:"елементів",verb:"матиме"}};function e(u){return t[u]??null}const n={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",mac:"адреса MAC",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",credit_card:"номер кредитної картки",jwt:"JWT",template_literal:"вхідні дані"},r={nan:"NaN",number:"число",array:"масив"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Неправильні вхідні дані: очікується instanceof ${u.expected}, отримано ${s}`:`Неправильні вхідні дані: очікується ${i}, отримано ${s}`}case"invalid_value":return u.values.length===1?`Неправильні вхідні дані: очікується ${ne(u.values[0])}`:`Неправильна опція: очікується одне з ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Занадто велике: очікується, що ${u.origin??"значення"} ${o.verb} ${i}${u.maximum.toString()} ${o.unit??"елементів"}`:`Занадто велике: очікується, що ${u.origin??"значення"} буде ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Занадто мале: очікується, що ${u.origin} ${o.verb} ${i}${u.minimum.toString()} ${o.unit}`:`Занадто мале: очікується, що ${u.origin} буде ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Неправильний рядок: повинен починатися з "${i.prefix}"`:i.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${i.suffix}"`:i.format==="includes"?`Неправильний рядок: повинен містити "${i.includes}"`:i.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${i.pattern}`:`Неправильний ${n[i.format]??u.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${u.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${u.keys.length>1?"і":""}: ${T(u.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${u.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${u.origin}`;default:return"Неправильні вхідні дані"}}};function hD(){return{localeError:_Y()}}function wY(){return hD()}var BY=()=>{const t={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"},map:{unit:"آئٹمز",verb:"ہونا"}};function e(u){return t[u]??null}const n={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 ایڈریس",mac:"ایم اے سی ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",credit_card:"کریڈٹ کارڈ نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},r={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`غلط ان پٹ: instanceof ${u.expected} متوقع تھا، ${s} موصول ہوا`:`غلط ان پٹ: ${i} متوقع تھا، ${s} موصول ہوا`}case"invalid_value":return u.values.length===1?`غلط ان پٹ: ${ne(u.values[0])} متوقع تھا`:`غلط آپشن: ${T(u.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`بہت بڑا: ${u.origin??"ویلیو"} کے ${i}${u.maximum.toString()} ${o.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${u.origin??"ویلیو"} کا ${i}${u.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`بہت چھوٹا: ${u.origin} کے ${i}${u.minimum.toString()} ${o.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${u.origin} کا ${i}${u.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const i=u;return i.format==="starts_with"?`غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے`:i.format==="ends_with"?`غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے`:i.format==="includes"?`غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے`:i.format==="regex"?`غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے`:`غلط ${n[i.format]??u.format}`}case"not_multiple_of":return`غلط نمبر: ${u.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${u.keys.length>1?"ز":""}: ${T(u.keys,"، ")}`;case"invalid_key":return`${u.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${u.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function PY(){return{localeError:BY()}}var FY=()=>{const t={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"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function e(u){return t[u]??null}const n={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",credit_card:"kredit karta raqami",jwt:"JWT",template_literal:"kirish"},r={nan:"NaN",number:"raqam",array:"massiv"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${u.expected}, qabul qilingan ${s}`:`Noto‘g‘ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return u.values.length===1?`Noto‘g‘ri kirish: kutilgan ${ne(u.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Juda katta: kutilgan ${u.origin??"qiymat"} ${i}${u.maximum.toString()} ${o.unit} ${o.verb}`:`Juda katta: kutilgan ${u.origin??"qiymat"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Juda kichik: kutilgan ${u.origin} ${i}${u.minimum.toString()} ${o.unit} ${o.verb}`:`Juda kichik: kutilgan ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Noto‘g‘ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto‘g‘ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto‘g‘ri satr: "${i.includes}" ni o‘z ichiga olishi kerak`:i.format==="regex"?`Noto‘g‘ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[i.format]??u.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${u.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${u.keys.length>1?"lar":""}: ${T(u.keys,", ")}`;case"invalid_key":return`${u.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${u.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function QY(){return{localeError:FY()}}var TY=()=>{const t={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"},map:{unit:"phần tử",verb:"có"}};function e(u){return t[u]??null}const n={regex:"đầu vào",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ày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",mac:"địa chỉ MAC",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",credit_card:"số thẻ tín dụng",jwt:"JWT",template_literal:"đầu vào"},r={nan:"NaN",number:"số",array:"mảng"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${u.expected}, nhận được ${s}`:`Đầu vào không hợp lệ: mong đợi ${i}, nhận được ${s}`}case"invalid_value":return u.values.length===1?`Đầu vào không hợp lệ: mong đợi ${ne(u.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Quá lớn: mong đợi ${u.origin??"giá trị"} ${o.verb} ${i}${u.maximum.toString()} ${o.unit??"phần tử"}`:`Quá lớn: mong đợi ${u.origin??"giá trị"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Quá nhỏ: mong đợi ${u.origin} ${o.verb} ${i}${u.minimum.toString()} ${o.unit}`:`Quá nhỏ: mong đợi ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"`:i.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"`:i.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${i.includes}"`:i.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}`:`${n[i.format]??u.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${u.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${T(u.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${u.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${u.origin}`;default:return"Đầu vào không hợp lệ"}}};function IY(){return{localeError:TY()}}var zY=()=>{const t={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"},map:{unit:"项",verb:"包含"}};function e(u){return t[u]??null}const n={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地址",mac:"MAC地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",credit_card:"信用卡号",jwt:"JWT",template_literal:"输入"},r={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`无效输入:期望 instanceof ${u.expected},实际接收 ${s}`:`无效输入:期望 ${i},实际接收 ${s}`}case"invalid_value":return u.values.length===1?`无效输入:期望 ${ne(u.values[0])}`:`无效选项:期望以下之一 ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`数值过大:期望 ${u.origin??"值"} ${i}${u.maximum.toString()} ${o.unit??"个元素"}`:`数值过大:期望 ${u.origin??"值"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`数值过小:期望 ${u.origin} ${i}${u.minimum.toString()} ${o.unit}`:`数值过小:期望 ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`无效字符串:必须以 "${i.prefix}" 开头`:i.format==="ends_with"?`无效字符串:必须以 "${i.suffix}" 结尾`:i.format==="includes"?`无效字符串:必须包含 "${i.includes}"`:i.format==="regex"?`无效字符串:必须满足正则表达式 ${i.pattern}`:`无效${n[i.format]??u.format}`}case"not_multiple_of":return`无效数字:必须是 ${u.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${T(u.keys,", ")}`;case"invalid_key":return`${u.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${u.origin} 中包含无效值(value)`;default:return"无效输入"}}};function ZY(){return{localeError:zY()}}var RY=()=>{const t={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"},map:{unit:"項目",verb:"擁有"}};function e(u){return t[u]??null}const n={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 位址",mac:"MAC 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",credit_card:"信用卡號",jwt:"JWT",template_literal:"輸入"},r={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`無效的輸入值:預期為 instanceof ${u.expected},但收到 ${s}`:`無效的輸入值:預期為 ${i},但收到 ${s}`}case"invalid_value":return u.values.length===1?`無效的輸入值:預期為 ${ne(u.values[0])}`:`無效的選項:預期為以下其中之一 ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`數值過大:預期 ${u.origin??"值"} 應為 ${i}${u.maximum.toString()} ${o.unit??"個元素"}`:`數值過大:預期 ${u.origin??"值"} 應為 ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`數值過小:預期 ${u.origin} 應為 ${i}${u.minimum.toString()} ${o.unit}`:`數值過小:預期 ${u.origin} 應為 ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`無效的字串:必須以 "${i.prefix}" 開頭`:i.format==="ends_with"?`無效的字串:必須以 "${i.suffix}" 結尾`:i.format==="includes"?`無效的字串:必須包含 "${i.includes}"`:i.format==="regex"?`無效的字串:必須符合格式 ${i.pattern}`:`無效的 ${n[i.format]??u.format}`}case"not_multiple_of":return`無效的數字:必須為 ${u.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${u.keys.length>1?"們":""}:${T(u.keys,"、")}`;case"invalid_key":return`${u.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${u.origin} 中有無效的值`;default:return"無效的輸入值"}}};function jY(){return{localeError:RY()}}var MY=()=>{const t={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"},map:{unit:"nkan",verb:"ní"}};function e(u){return t[u]??null}const n={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",mac:"àdírẹ́sì MAC",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",credit_card:"nọmba kaadi gbese",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},r={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return u=>{switch(u.code){case"invalid_type":{const i=r[u.expected]??u.expected,o=ie(u.input),s=r[o]??o;return/^[A-Z]/.test(u.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${u.expected}, àmọ̀ a rí ${s}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${i}, àmọ̀ a rí ${s}`}case"invalid_value":return u.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${ne(u.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${T(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",o=e(u.origin);return o?`Tó pọ̀ jù: a ní láti jẹ́ pé ${u.origin??"iye"} ${o.verb} ${i}${u.maximum} ${o.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${i}${u.maximum}`}case"too_small":{const i=u.inclusive?">=":">",o=e(u.origin);return o?`Kéré ju: a ní láti jẹ́ pé ${u.origin} ${o.verb} ${i}${u.minimum} ${o.unit}`:`Kéré ju: a ní láti jẹ́ ${i}${u.minimum}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${i.prefix}"`:i.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${i.suffix}"`:i.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${i.includes}"`:i.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${i.pattern}`:`Aṣìṣe: ${n[i.format]??u.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${u.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${T(u.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${u.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${u.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function LY(){return{localeError:MY()}}var CC,pD=Symbol("ZodOutput"),mD=Symbol("ZodInput"),gD=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...e){const n=e[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const e=this._map.get(t);return e&&typeof e=="object"&&"id"in e&&this._idmap.delete(e.id),this._map.delete(t),this}get(t){const e=t._zod.parent;if(e){const n={...this.get(e)??{}};delete n.id;const r={...n,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Wg(){return new gD}(CC=globalThis).__zod_globalRegistry??(CC.__zod_globalRegistry=Wg());var ou=globalThis.__zod_globalRegistry,Xn=Symbol.for("zod.compile.invalid"),yC=Symbol.for("zod.compile.fallback"),ei=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},je=class extends Error{constructor(t,e=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=e}};function NY(t,e){try{return Sf(t,{assertOnly:!0})}catch{return e}}function OD(t,e){try{const n=Sf(t),r=ct(t),u=t._zod.run,i=u.__originalRun??u,o=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[yC]||a&&Vg(a,s.value))return i(s,a);const l=n(s.value);return l!==Xn?(s.value=l,s):(a&&(a[yC]=!0),i(s,a))};return o.__originalRun=i,r._zod.bag.fallbackRun=i,r._zod.bag.validator=NY(t,n),r._zod.run=o,u.__originalRun||UY(r,t,n),r}catch(n){if(e?.strict)throw n;return t}}function UY(t,e,n){const r=t,u=e;if(typeof u.safeParse=="function"){const i=u.safeParse;r.safeParse=(o,s)=>{const a=n(o);return a!==Xn?{success:!0,data:a}:i(o,s)}}if(typeof u.parse=="function"){const i=u.parse;r.parse=(o,s)=>{const a=n(o);return a!==Xn?a:i(o,s)}}}function Sf(t,e){let n=!0;try{n=cD(t)}catch{}if(n)throw new je("a schema whose subtree contains a reference cycle");const r={constants:new Map,constantCounter:0,varCounter:0},u=new $g(["input"]),i=ht(u,r,t,"input",!e?.assertOnly);u.write(i===null?"return true;":`return ${i};`);const o=["INVALID",...r.constants.keys()],s=[Xn,...r.constants.values()],a=u.content.join(`
|
|
97
|
+
`),l=e?.debug?o.length>0?`// Constants: ${o.join(", ")}
|
|
98
|
+
${a}`:a:"",c=Function,f=`return (input) => {
|
|
99
|
+
${a}
|
|
100
|
+
}`;let d;try{d=new c(...o,f)(...s)}catch(h){throw new je(`this schema (generated code failed to evaluate: ${h.message})`)}return e?.debug&&(d.code=l),d}function de(t,e){for(const[r,u]of t.constants)if(u===e)return r;const n=`c${t.constantCounter++}`;return t.constants.set(n,e),n}function pe(t){return`v${t.varCounter++}`}function XY(t,e){const n=t._zod.run({value:e,issues:[]},{});if(n&&typeof n.then=="function")return Xn;const r=n;return r.issues.length===0?r.value:Xn}function mn(t,e,n,r,u=!0){const i=t.content.length,o=e.constants.size,s=e.constantCounter,a=e.varCounter;try{return ht(t,e,n,r,u)}catch(l){if(!(l instanceof je)||!l.islandable)throw l;if(t.content.length=i,e.constants.size>o){const c=Array.from(e.constants.keys()).slice(o);for(const f of c)e.constants.delete(f)}return e.constantCounter=s,e.varCounter=a,VY(t,e,n,r)}}function VY(t,e,n,r){const u=de(e,n),i=de(e,XY),o=pe(e);return t.write(`const ${o} = ${i}(${u}, ${r});`),t.write(`if (${o} === INVALID) return INVALID;`),o}var qY=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function WY(t,e,n,r){const u=n._zod.def.checks;if(!u||u.length===0)return r;let i=r;for(const o of u){const s=o._zod.def;if(s.when&&!qY.has(s.check))throw new je('check with a custom "when" condition');switch(s.check){case"greater_than":YY(t,e,s,i);break;case"less_than":GY(t,e,s,i);break;case"multiple_of":HY(t,e,s,i);break;case"number_format":vD(t,s,i);break;case"min_length":{const a=bi(s.minimum,"min_length"),l=Uh(t,e,i,`${i}.length >= ${a} && ${i}.length < ${s.minimum*2}`);t.write(`if (${l} < ${a}) return INVALID;`);break}case"max_length":{const a=bi(s.maximum,"max_length"),l=Uh(t,e,i,`${i}.length > ${a}`);t.write(`if (${l} > ${a}) return INVALID;`);break}case"length_equals":{const a=bi(s.length,"length_equals"),l=Uh(t,e,i,`${i}.length >= ${a} && ${i}.length <= ${s.length*2}`);t.write(`if (${l} !== ${a}) return INVALID;`);break}case"min_size":t.write(`if (${i}.size < ${bi(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":t.write(`if (${i}.size > ${bi(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":t.write(`if (${i}.size !== ${bi(s.size,"size_equals")}) return INVALID;`);break;case"string_format":i=CD(t,e,s,i);break;case"custom":i=nG(t,e,o,i);break;case"bigint_format":KY(t,s,i);break;case"mime_type":JY(t,e,s,i);break;case"property":eG(t,e,s,i);break;case"overwrite":{const a=pe(e);tG(t,e,o,i,a),i=a;break}default:throw new je(`check type ${s.check}`)}}return i}function Uh(t,e,n,r){const u=de(e,Ga),i=pe(e);return t.write(`const ${i} = typeof ${n} === "string" && ${r} ? ${u}(${n}) : ${n}.length;`),i}function bi(t,e){if(typeof t!="number"||!Number.isFinite(t))throw new je(`${e} bound of type ${typeof t}`);return`${t}`}function bD(t,e){if(typeof e=="bigint")return`${e}n`;if(typeof e=="number"){if(Number.isNaN(e))throw new je("comparison check with NaN bound");return`${e}`}if(e instanceof Date){if(Number.isNaN(e.getTime()))throw new je("comparison check with Invalid Date bound");return de(t,e)}throw new je(`comparison check bound of type ${typeof e}`)}function YY(t,e,n,r){const u=n.inclusive?"<":"<=";t.write(`if (${r} ${u} ${bD(e,n.value)}) return INVALID;`)}function GY(t,e,n,r){const u=n.inclusive?">":">=";t.write(`if (${r} ${u} ${bD(e,n.value)}) return INVALID;`)}function HY(t,e,n,r){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new je("multiple_of check with a zero divisor");t.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`)}else{const u=de(e,tg);t.write(`if (${u}(${r}, ${bi(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function vD(t,e,n){const r=e.format;switch(r){case"safeint":t.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":t.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":t.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":t.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":t.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new je(`number format ${r}`)}}function KY(t,e,n){const r=e.format;if(r)switch(r){case"int64":t.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":t.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new je(`bigint format ${r}`)}}function JY(t,e,n,r){const u=n.mime;if(u&&u.length>0){const i=de(e,new Set(u));t.write(`if (!${i}.has(${r}.type)) return INVALID;`)}}function eG(t,e,n,r){const u=`${r}[${JSON.stringify(n.property)}]`;ht(t,e,n.schema,u)}function tG(t,e,n,r,u){const i=n._zod.def.tx;if(!i)throw new je("overwrite check without a transform function");if(zi(i))throw new ei("z.compile: async overwrite transforms are not supported");const o=de(e,i);t.write(`const ${u} = ${o}(${r});`)}function Om(){throw new br}function Yg(t){this.issues.push(t)}function nG(t,e,n,r){const u=n._zod.def;if(u.fn){if(zi(u.fn))throw new ei("z.compile: async .refine() predicates are not supported");const i=de(e,u.fn),o=de(e,Om),s=pe(e);return t.write(`const ${s} = ${i}(${r});`),t.write(`if (${s} instanceof Promise) ${o}();`),t.write(`if (!${s}) return INVALID;`),r}if(n._zod.check){if(zi(n._zod.check))throw new ei("z.compile: async .superRefine() / check functions are not supported");const i=n._zod.check,s=de(e,l=>{const c={value:l,issues:[],addIssue:Yg};return i(c)instanceof Promise&&Om(),c.issues.length===0?c.value:Xn}),a=pe(e);return t.write(`const ${a} = ${s}(${r});`),t.write(`if (${a} === INVALID) return INVALID;`),a}throw new je("custom check without a predicate or check function")}var uG=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function CD(t,e,n,r){const u=n.format;if(u==="base64"){const a=de(e,Df);return t.write(`if (!${a}(${r})) return INVALID;`),r}if(u==="base64url"){const a=de(e,Fg);return t.write(`if (!${a}(${r})) return INVALID;`),r}if(u==="jwt"){const a=de(e,Tg),l=de(e,n.alg??null);return t.write(`if (!${a}(${r}, ${l})) return INVALID;`),r}if(u==="ipv6"){const a=de(e,Af);return t.write(`if (!${a}(${r})) return INVALID;`),r}if(u==="cidrv6"){const a=de(e,Pg);return t.write(`if (!${a}(${r})) return INVALID;`),r}if(u==="credit_card"){const a=de(e,Qg);return t.write(`if (!${a}(${r})) return INVALID;`),r}const i=n;if(u==="url"||u==="httpurl"||i.normalize||i.hostname!==void 0||i.protocol!==void 0){const a=de(e,Sg),l=de(e,n),c=pe(e),f=pe(e);if(t.write(`const ${c} = ${r}.trim();`),t.write(`const ${f} = ${a}(${c}, ${l});`),t.write(`if (typeof ${f} === "number") return INVALID;`),i.hostname!==void 0){const p=de(e,wg);t.write(`if (!${p}(${f}, ${l}.hostname)) return INVALID;`)}if(i.protocol!==void 0){const p=de(e,Bg);t.write(`if (!${p}(${f}, ${l}.protocol)) return INVALID;`)}const d=pe(e),h=i.normalize?`${f}.href`:`${de(e,_g)}(${c})`;return t.write(`const ${d} = ${h};`),d}const o=n.fn;if(o){if(zi(o))throw new je(`async string format ${u}`);const a=de(e,o);return t.write(`if (!${a}(${r})) return INVALID;`),r}if(uG.has(u)&&n.pattern){const a=de(e,n.pattern);return t.write(`${a}.lastIndex = 0;`),t.write(`if (!${a}.test(${r})) return INVALID;`),r}const s=n.format;switch(s){case"regex":throw new je("regex format without a pattern");case"lowercase":t.write(`if (${r} !== ${r}.toLowerCase()) return INVALID;`);break;case"uppercase":t.write(`if (${r} !== ${r}.toUpperCase()) return INVALID;`);break;case"includes":t.write(`if (!${r}.includes(${au(n.includes)})) return INVALID;`);break;case"starts_with":{const a=n.prefix;t.write(`if (${r}.slice(0, ${a.length}) !== ${au(a)}) return INVALID;`);break}case"ends_with":{const a=n.suffix;t.write(`if (${r}.slice(-${a.length}) !== ${au(a)}) return INVALID;`);break}default:throw new je(`string format ${s}`)}return r}function ht(t,e,n,r,u=!0){const i=n._zod.def,o=i.type;if(i.coerce)throw new je(`coercion (z.coerce.${o}())`);const s=u||!!i.checks?.length;let a;switch(o){case"string":a=rG(t,e,n,r);break;case"number":a=iG(t,n,r);break;case"boolean":a=oG(t,r);break;case"bigint":a=sG(t,n,r);break;case"symbol":a=aG(t,r);break;case"undefined":a=lG(t,r);break;case"null":a=cG(t,r);break;case"any":case"unknown":a=r;break;case"never":t.write("return INVALID;"),a=r;break;case"void":a=fG(t,r);break;case"nan":a=dG(t,r);break;case"date":a=hG(t,r);break;case"object":a=pG(t,e,n,r,s);break;case"optional":a=mG(t,e,n,r,s);break;case"nullable":a=bG(t,e,n,r,s);break;case"array":a=vG(t,e,n,r,s);break;case"literal":a=CG(t,e,n,r);break;case"enum":a=yG(t,e,n,r);break;case"readonly":{const l=xC(t,e,n,r),c=pe(e);t.write(`const ${c} = Object.freeze(${l});`),a=c;break}case"success":xC(t,e,n,r),a="true";break;case"default":case"prefault":a=xG(t,e,n,r);break;case"nonoptional":a=EG(t,e,n,r);break;case"tuple":a=$G(t,e,n,r);break;case"union":a=AG(t,e,n,r);break;case"intersection":a=SG(t,e,n,r);break;case"record":a=_G(t,e,n,r);break;case"map":a=BG(t,e,n,r);break;case"set":a=PG(t,e,n,r);break;case"file":a=FG(t,r);break;case"template_literal":a=QG(t,e,n,r);break;case"lazy":a=TG(t,e,n,r);break;case"pipe":a=IG(t,e,n,r);break;case"custom":a=zG(t,e,n,r);break;case"transform":a=jG(t,e,n,r);break;case"catch":a=RG(t,e,n,r);break;default:throw new je(`schema type ${o}`)}return a===null?null:WY(t,e,n,a)}function rG(t,e,n,r){t.write(`if (typeof ${r} !== "string") return INVALID;`);const u=n._zod.def;return u.format===void 0?r:CD(t,e,u,r)}function iG(t,e,n){t.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);const r=e._zod.def;return r.check==="number_format"&&r.format&&vD(t,{format:r.format},n),n}function oG(t,e){return t.write(`if (typeof ${e} !== "boolean") return INVALID;`),e}function sG(t,e,n){t.write(`if (typeof ${n} !== "bigint") return INVALID;`);const r=e._zod.def;if(r.format)switch(r.format){case"int64":t.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":t.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function aG(t,e){return t.write(`if (typeof ${e} !== "symbol") return INVALID;`),e}function lG(t,e){return t.write(`if (${e} !== undefined) return INVALID;`),e}function cG(t,e){return t.write(`if (${e} !== null) return INVALID;`),e}function fG(t,e){return t.write(`if (${e} !== undefined) return INVALID;`),e}function dG(t,e){return t.write(`if (typeof ${e} !== "number" || !Number.isNaN(${e})) return INVALID;`),e}function hG(t,e){return t.write(`if (!(${e} instanceof Date) || Number.isNaN(${e}.getTime())) return INVALID;`),e}function pG(t,e,n,r,u=!0){const i=n._zod.def;t.write(`if (typeof ${r} !== "object" || ${r} === null || Array.isArray(${r})) return INVALID;`);const o=i.shape,s=Object.keys(o),a=Object.getOwnPropertySymbols(o),l=a.length?[...s,...a]:s,c=b=>typeof b=="symbol"?de(e,b):au(b),f=b=>typeof b=="symbol"?`[${c(b)}]`:au(b),d=o;if(s.includes("__proto__"))throw new je('object shape key "__proto__"');const h=new Map;for(const b of l){const O=d[b],y=c(b),$=pe(e);if(t.write(`const ${$} = ${r}[${y}];`),O._zod.optin!==void 0){const x=pe(e);t.write(`let ${x} = (() => {`),t.indented(_=>{const R=mn(_,e,O,$);_.write(`return ${R};`)}),t.write("})();"),O._zod.optout==="optional"?(t.write(`if (${x} === INVALID) {`),t.indented(_=>{_.write(`if (${y} in ${r}) return INVALID;`),_.write(`${x} = undefined;`)}),t.write("}")):t.write(`if (${x} === INVALID) return INVALID;`),h.set(b,x)}else{OG(O)&&t.write(`if (!(${y} in ${r})) return INVALID;`);const x=mn(t,e,O,$,u);x!==null&&h.set(b,x)}}const p=i.catchall;let m="none";if(p){const b=p._zod.def.type;if(b==="never"){const O=s.map(y=>`k !== ${au(y)}`).join(" && ")||"true";t.write(`for (const k in ${r}) {`),t.indented(y=>{y.write(`if (${O}) return INVALID;`)}),t.write("}")}else(b==="unknown"||b==="any")&&!p._zod.def.checks?.length?m="passthrough":m="schema"}const g=pe(e),C=l.some(b=>Ei(d[b])||bm(d[b]));if(!u){if(m==="schema"){const b=s.length>0?de(e,new Set(s)):null;t.write(`for (const k in ${r}) {`),t.indented(O=>{O.write('if (k === "__proto__") continue;'),b&&O.write(`if (${b}.has(k)) continue;`);const y=pe(e);O.write(`const ${y} = ${r}[k];`),mn(O,e,p,y,!1)}),t.write("}")}return null}if(C){t.write(`const ${g} = {};`);for(const b of l){const O=c(b),y=h.get(b);bm(d[b])?t.write(`if (${O} in ${r}) ${g}[${O}] = ${y};`):Ei(d[b])?t.write(`if (${y} !== undefined || ${O} in ${r}) ${g}[${O}] = ${y};`):t.write(`${g}[${O}] = ${y};`)}}else{const b=l.map(O=>`${f(O)}: ${h.get(O)}`).join(", ");t.write(`const ${g} = { ${b} };`)}if(m!=="none"){const b=s.length>0?de(e,new Set(s)):null;t.write(`for (const k in ${r}) {`),t.indented(O=>{if(O.write('if (k === "__proto__") continue;'),b&&O.write(`if (${b}.has(k)) continue;`),m==="passthrough")O.write(`${g}[k] = ${r}[k];`);else{const y=pe(e);O.write(`const ${y} = ${r}[k];`);const $=mn(O,e,p,y);O.write(`${g}[k] = ${$};`)}}),t.write("}")}return g}function mG(t,e,n,r,u=!0){const i=n._zod.def;if(gG(n))return ht(t,e,i.innerType,r,u);if(i.innerType._zod.optin==="defaulted"){const s=pe(e),a=pe(e);return t.write(`let ${s};`),t.write(`if (${r} === undefined) {`),t.indented(l=>{l.write(`const ${a} = (() => {`),l.indented(c=>{const f=ht(c,e,i.innerType,r);c.write(`return ${f};`)}),l.write("})();"),l.write(`if (${a} !== INVALID) ${s} = ${a};`)}),t.write("} else {"),t.indented(l=>{const c=ht(l,e,i.innerType,r);l.write(`${s} = ${c};`)}),t.write("}"),s}const o=u?pe(e):null;return o&&t.write(`let ${o};`),t.write(`if (${r} !== undefined) {`),t.indented(s=>{const a=ht(s,e,i.innerType,r,u);o&&a!==null&&s.write(`${o} = ${a};`)}),t.write("}"),o}function gG(t){return t._zod.traits?.has("$ZodExactOptional")===!0}function OG(t){return t._zod.optin===void 0&&vi(t)}function vi(t){if(t._zod.def.coerce)return!0;const e=t._zod.def;switch(e.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return e.innerType?vi(e.innerType):!1;case"literal":return!!e.values?.includes(void 0);case"enum":return!!t._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return e.innerType?vi(e.innerType):!0;case"catch":return!0;case"union":return e.options?e.options.some(vi):!0;case"intersection":return!e.left||!e.right?!0:vi(e.left)&&vi(e.right);case"pipe":return e.in?vi(e.in):!0;default:return!0}}function bm(t){return t._zod.optin==="optional"&&t._zod.optout==="optional"}function Ei(t){const e=t._zod.def;switch(e.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!e.values?.includes(void 0);case"enum":return!!t._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return e.innerType?Ei(e.innerType):!0;case"union":return e.options?e.options.some(Ei):!0;case"intersection":return!e.left||!e.right||Ei(e.left)||Ei(e.right);case"pipe":return e.out?Ei(e.out):!0;default:return!0}}function bG(t,e,n,r,u=!0){const i=n._zod.def,o=u?pe(e):null;return o&&t.write(`let ${o} = null;`),t.write(`if (${r} !== null) {`),t.indented(s=>{const a=ht(s,e,i.innerType,r,u);o&&a!==null&&s.write(`${o} = ${a};`)}),t.write("}"),o}function vG(t,e,n,r,u=!0){const i=n._zod.def;t.write(`if (!Array.isArray(${r})) return INVALID;`);const o=u?pe(e):null,s=pe(e),a=pe(e);return o&&t.write(`const ${o} = new Array(${r}.length);`),t.write(`for (let ${s} = 0; ${s} < ${r}.length; ${s}++) {`),t.indented(l=>{l.write(`const ${a} = ${r}[${s}];`);const c=mn(l,e,i.element,a,u);o&&c!==null&&l.write(`${o}[${s}] = ${c};`)}),t.write("}"),o}function CG(t,e,n,r){const i=n._zod.def.values;if(i.length!==1){const s=de(e,new Set(i));return t.write(`if (!${s}.has(${r})) return INVALID;`),r}const o=i[0];if(typeof o=="number"&&Number.isNaN(o)){const s=de(e,new Set(i));return t.write(`if (!${s}.has(${r})) return INVALID;`),r}if(typeof o=="string")t.write(`if (${r} !== ${au(o)}) return INVALID;`);else if(typeof o=="number"||typeof o=="boolean")t.write(`if (${r} !== ${o}) return INVALID;`);else if(o===null)t.write(`if (${r} !== null) return INVALID;`);else if(o===void 0)t.write(`if (${r} !== undefined) return INVALID;`);else if(typeof o=="bigint")t.write(`if (${r} !== ${o}n) return INVALID;`);else throw new je(`literal type ${typeof o}`);return r}function yG(t,e,n,r){const u=n._zod.values;if(!u)throw new je("enum schema without enumerated values");const i=de(e,u);return t.write(`if (!${i}.has(${r})) return INVALID;`),r}function xC(t,e,n,r){const u=n._zod.def;return ht(t,e,u.innerType,r)}function xG(t,e,n,r){const u=n._zod.def,o=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!o)return ht(t,e,u.innerType,r);const a=de(e,o),l=pe(e);return t.write(`let ${l} = ${r};`),t.write(`if (${r} === undefined) ${l} = ${a}();`),ht(t,e,u.innerType,l)}const s=pe(e);if(o){const a=de(e,o),l=de(e,ug);t.write(`let ${s};`),t.write(`if (${r} === undefined) {`),t.indented(c=>{c.write(`${s} = ${l}(${a}());`)}),t.write("} else {"),t.indented(c=>{const f=ht(c,e,u.innerType,r);c.write(`${s} = ${f} === undefined ? ${l}(${a}()) : ${f};`)}),t.write("}")}else t.write(`let ${s};`),t.write(`if (${r} !== undefined) {`),t.indented(a=>{const l=ht(a,e,u.innerType,r);a.write(`${s} = ${l};`)}),t.write("}");return s}function EG(t,e,n,r){const u=n._zod.def,i=ht(t,e,u.innerType,r),o=pe(e);return t.write(`const ${o} = ${i};`),t.write(`if (${o} === undefined) return INVALID;`),o}function $G(t,e,n,r){const u=n._zod.def,i=u.items,o=u.rest;t.write(`if (!Array.isArray(${r})) return INVALID;`);const s=EC(i,"optin"),a=EC(i,"optout");o?t.write(`if (${r}.length < ${s}) return INVALID;`):t.write(`if (${r}.length < ${s} || ${r}.length > ${i.length}) return INVALID;`);const l=pe(e);t.write(`const ${l} = [];`);for(let c=0;c<i.length;c++){const f=i[c];if(c>=a)t.write(`if (${l}.length === ${c}) {`),t.indented(d=>{d.write(`if (${c} < ${r}.length) {`),d.indented(h=>{const p=pe(e);h.write(`const ${p} = ${r}[${c}];`);const m=mn(h,e,f,p);h.write(`${l}[${c}] = ${m};`)}),d.write("} else {"),d.indented(h=>{if(bm(f)){h.write(`${l}.length = ${c};`);return}const p=pe(e),m=pe(e);h.write(`const ${p} = undefined;`),h.write(`const ${m} = (() => {`),h.indented(g=>{const C=mn(g,e,f,p);g.write(`return ${C};`)}),h.write("})();"),h.write(`if (${m} === INVALID || ${m} === undefined) ${l}.length = ${c};`),h.write(`else ${l}[${c}] = ${m};`)}),d.write("}")}),t.write("}");else{const d=pe(e);t.write(`const ${d} = ${r}[${c}];`);const h=mn(t,e,f,d);t.write(`${l}[${c}] = ${h};`)}}if(o){const c=pe(e),f=pe(e);t.write(`for (let ${c} = ${i.length}; ${c} < ${r}.length; ${c}++) {`),t.indented(d=>{d.write(`const ${f} = ${r}[${c}];`);const h=mn(d,e,o,f);d.write(`${l}[${c}] = ${h};`)}),t.write("}")}return l}function EC(t,e){for(let n=t.length-1;n>=0;n--)if(!(e==="optin"?t[n]._zod.optin!==void 0:t[n]._zod.optout==="optional"))return n+1;return 0}function AG(t,e,n,r){const u=n._zod.def,i=u.options;if(u.discriminator)return DG(t,e,u,r);if(u.inclusive===!1)throw new je("exclusive unions (z.xor)");if(i.length===0)return t.write("return INVALID;"),r;if(i.length===1)return ht(t,e,i[0],r);if(i.every(a=>a._zod.def.type==="literal"&&!a._zod.def.checks?.length)){const a=new Set(i.flatMap(c=>c._zod.def.values)),l=de(e,a);return t.write(`if (!${l}.has(${r})) return INVALID;`),r}const s=pe(e);t.write(`let ${s};`);for(let a=0;a<i.length;a++){const l=i[a];a===0?t.write(`${s} = (() => {`):t.write(`if (${s} === INVALID) ${s} = (() => {`),t.indented(c=>{const f=ht(c,e,l,r);c.write(`return ${f};`)}),t.write("})();")}return t.write(`if (${s} === INVALID) return INVALID;`),s}function DG(t,e,n,r){if(n.unionFallback)throw new je("discriminated union with unionFallback");if(n.options.length===0)return t.write("return INVALID;"),r;const u=pe(e),i=pe(e);t.write(`const ${u} = ${r}?.[${au(n.discriminator)}];`),t.write(`let ${i};`);let o=!0;const s=new Set;for(const a of n.options){const l=a._zod.propValues?.[n.discriminator];if(!l||l.size===0)throw new je("discriminated union option without static discriminator values");for(const d of l){if(s.has(d))throw new je(`duplicate discriminator value ${String(d)}`);s.add(d)}const c=Array.from(l,d=>kG(e,u,d)),f=o?"if":"else if";t.write(`${f} (${c.join(" || ")}) {`),t.indented(d=>{const h=ht(d,e,a,r);d.write(`${i} = ${h};`)}),t.write("}"),o=!1}return t.write("else { return INVALID; }"),i}function kG(t,e,n){if(typeof n=="string")return`${e} === ${au(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${e})`:`${e} === ${n}`;if(typeof n=="boolean")return`${e} === ${n}`;if(n===null)return`${e} === null`;if(n===void 0)return`${e} === undefined`;if(typeof n=="bigint")return`${e} === ${n}n`;if(typeof n=="symbol"){const r=de(t,n);return`${e} === ${r}`}throw new je(`literal discriminator value ${String(n)}`)}function SG(t,e,n,r){const u=n._zod.def,i=mn(t,e,u.left,r),o=mn(t,e,u.right,r),s=de(e,Aa),a=pe(e);return t.write(`const ${a} = ${s}(${i}, ${o});`),t.write(`if (!${a}.valid) return INVALID;`),`${a}.data`}function _G(t,e,n,r){const u=n._zod.def,i=de(e,$r);t.write(`if (!${i}(${r})) return INVALID;`);const o=pe(e),s=pe(e),a=pe(e);t.write(`const ${o} = {};`);const l=u,c=l.partial?void 0:u.keyType._zod.values;if(c){const p=[];for(const g of c){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new je(`record key value ${String(g)}`);const C=typeof g=="number"?g.toString():g;if(C==="__proto__")throw new je('record key "__proto__"');p.push(C);const b=de(e,g),O=ht(t,e,u.keyType,b),y=pe(e);t.write(`const ${y} = ${r}[${wG(e,C)}];`);const $=mn(t,e,u.valueType,y);t.write(`${o}[${O}] = ${$};`)}const m=de(e,new Set(p));return t.write(`for (const ${s} in ${r}) {`),t.indented(g=>{g.write(`if (${m}.has(${s})) continue;`),l.mode==="loose"?g.write(`if (${s} !== "__proto__") ${o}[${s}] = ${r}[${s}];`):g.write("return INVALID;")}),t.write("}"),o}const f=u.keyType._zod.def;if(!(f.type==="string"&&f.format===void 0&&!f.coerce&&(f.checks?.length??0)===0)){const p=u.mode==="loose",m=de(e,Sf(u.keyType)),g=de(e,tl),C=de(e,Object.prototype.propertyIsEnumerable),b=pe(e);return t.write(`for (const ${s} of Reflect.ownKeys(${r})) {`),t.indented(O=>{O.write(`if (${s} === "__proto__") continue;`),O.write(`if (!${C}.call(${r}, ${s})) continue;`),O.write(`let ${b} = ${m}(${s});`),O.write(`if (${b} === INVALID && typeof ${s} === "string" && ${g}.test(${s})) ${b} = ${m}(Number(${s}));`),p?O.write(`if (${b} === INVALID) { ${o}[${s}] = ${r}[${s}]; continue; }`):O.write(`if (${b} === INVALID) return INVALID;`),O.write(`if (${b} === "__proto__") continue;`);const y=pe(e);O.write(`const ${y} = ${r}[${s}];`);const $=mn(O,e,u.valueType,y);O.write(`${o}[${b}] = ${$};`)}),t.write("}"),o}const h=de(e,Object.prototype.propertyIsEnumerable);return t.write(`for (const ${s} of Reflect.ownKeys(${r})) {`),t.indented(p=>{p.write(`if (${s} === "__proto__") continue;`),p.write(`if (!${h}.call(${r}, ${s})) continue;`),p.write(`if (typeof ${s} !== "string") return INVALID;`),p.write(`const ${a} = ${r}[${s}];`);const m=mn(p,e,u.valueType,a);p.write(`${o}[${s}] = ${m};`)}),t.write("}"),o}function wG(t,e){return typeof e=="string"?au(e):de(t,e)}function BG(t,e,n,r){const u=n._zod.def;t.write(`if (!(${r} instanceof Map)) return INVALID;`);const i=pe(e),o=pe(e),s=pe(e);return t.write(`const ${i} = new Map();`),t.write(`for (const [${o}, ${s}] of ${r}) {`),t.indented(a=>{const l=ht(a,e,u.keyType,o),c=ht(a,e,u.valueType,s);a.write(`${i}.set(${l}, ${c});`)}),t.write("}"),i}function PG(t,e,n,r){const u=n._zod.def;t.write(`if (!(${r} instanceof Set)) return INVALID;`);const i=pe(e),o=pe(e);return t.write(`const ${i} = new Set();`),t.write(`for (const ${o} of ${r}) {`),t.indented(s=>{const a=ht(s,e,u.valueType,o);s.write(`${i}.add(${a});`)}),t.write("}"),i}function FG(t,e){return t.write(`if (!(${e} instanceof File)) return INVALID;`),e}function QG(t,e,n,r){t.write(`if (typeof ${r} !== "string") return INVALID;`);const u=n._zod.pattern;if(u){const i=de(e,u);t.write(`${i}.lastIndex = 0;`),t.write(`if (!${i}.test(${r})) return INVALID;`)}return r}function TG(t,e,n,r){const u=n._zod.def,i=de(e,u.getter),o=de(e,{parser:null});t.write(`if (!${o}.parser) {`),t.indented(a=>{a.write(`const inner = ${i}();`),a.write(`${o}.parser = function(input) {`),a.indented(l=>{l.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),l.write("return result.issues.length === 0 ? result.value : INVALID;")}),a.write("};")}),t.write("}");const s=pe(e);return t.write(`const ${s} = ${o}.parser(${r});`),t.write(`if (${s} === INVALID) return INVALID;`),s}function IG(t,e,n,r){const u=n._zod.def,i=ht(t,e,u.in,r);if(u.transform){if(zi(u.transform))throw new ei("z.compile: async transforms in pipes are not supported");const o=u.transform,a=de(e,c=>{const f={value:c,issues:[],addIssue:Yg},d=o(c,f);return d instanceof Promise?Xn:f.issues.length===0?d:Xn}),l=pe(e);return t.write(`const ${l} = ${a}(${i});`),t.write(`if (${l} === INVALID) return INVALID;`),ht(t,e,u.out,l)}else return ht(t,e,u.out,i)}function zi(t){return typeof t=="function"&&(t.constructor.name==="AsyncFunction"||t[Symbol.toStringTag]==="AsyncFunction")}function zG(t,e,n,r){const u=n._zod.def;if(u.fn){if(zi(u.fn))throw new ei("z.compile: async custom predicates are not supported");const i=de(e,u.fn),o=de(e,Om),s=pe(e);t.write(`const ${s} = ${i}(${r});`),t.write(`if (${s} instanceof Promise) ${o}();`),t.write(`if (!${s}) return INVALID;`)}else throw new je("custom schema without a predicate function");return r}function ZG(t,e,n){const r=t._zod.run({value:n,issues:[]},{});if(r&&typeof r.then=="function")return Xn;const u=r;return u.issues.length===0?u.value:e()}function RG(t,e,n,r){const u=n._zod.def;if(!u.catchValue[rg])throw new je("catch with a callback (only a constant catch value compiles)",!1);const i=pe(e);t.write(`let ${i} = (() => {`),t.indented(l=>{const c=mn(l,e,u.innerType,r);l.write(`return ${c};`)}),t.write("})();");const o=de(e,u.innerType),s=de(e,u.catchValue),a=de(e,ZG);return t.write(`if (${i} === INVALID) {`),t.indented(l=>{l.write(`${i} = ${a}(${o}, ${s}, ${r});`),l.write(`if (${i} === INVALID) return INVALID;`)}),t.write("}"),i}function jG(t,e,n,r){const u=n._zod.def;if(u.transform){if(zi(u.transform))throw new ei("z.compile: async transforms are not supported");const i=u.transform,s=de(e,l=>{const c={value:l,issues:[],addIssue:Yg},f=i(l,c);return f instanceof Promise?Xn:c.issues.length===0?f:Xn}),a=pe(e);return t.write(`const ${a} = ${s}(${r});`),t.write(`if (${a} === INVALID) return INVALID;`),a}return r}function yD(t,e){return new t({type:"string",...L(e)})}function xD(t,e){return new t({type:"string",coerce:!0,...L(e)})}function Gg(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...L(e)})}function Hg(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...L(e)})}function Kg(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...L(e)})}function Jg(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(e)})}function e4(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(e)})}function t4(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(e)})}function _f(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...L(e)})}function n4(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...L(e)})}function u4(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(e)})}function r4(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...L(e)})}function i4(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(e)})}function o4(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...L(e)})}function s4(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...L(e)})}function a4(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(e)})}function l4(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(e)})}function c4(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(e)})}function ED(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...L(e)})}function f4(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(e)})}function d4(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(e)})}function h4(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...L(e)})}function p4(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...L(e)})}function m4(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...L(e)})}function $D(t,e){return new t({type:"string",format:"credit_card",check:"string_format",abort:!1,...L(e)})}function g4(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...L(e)})}var AD={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function O4(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(e)})}function b4(t,e){return new t({type:"string",format:"date",check:"string_format",...L(e)})}function v4(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...L(e)})}function C4(t,e){return new t({type:"string",format:"duration",check:"string_format",...L(e)})}function DD(t,e){return new t({type:"number",checks:[],...L(e)})}function kD(t,e){return new t({type:"number",coerce:!0,checks:[],...L(e)})}function SD(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...L(e)})}function _D(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...L(e)})}function wD(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...L(e)})}function BD(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...L(e)})}function PD(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...L(e)})}function FD(t,e){return new t({type:"boolean",...L(e)})}function QD(t,e){return new t({type:"boolean",coerce:!0,...L(e)})}function TD(t,e){return new t({type:"bigint",...L(e)})}function ID(t,e){return new t({type:"bigint",coerce:!0,...L(e)})}function zD(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(e)})}function ZD(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(e)})}function RD(t,e){return new t({type:"symbol",...L(e)})}function jD(t,e){return new t({type:"undefined",...L(e)})}function MD(t,e){return new t({type:"null",...L(e)})}function LD(t){return new t({type:"any"})}function ND(t){return new t({type:"unknown"})}function UD(t,e){return new t({type:"never",...L(e)})}function XD(t,e){return new t({type:"void",...L(e)})}function VD(t,e){return new t({type:"date",...L(e)})}function qD(t,e){return new t({type:"date",coerce:!0,...L(e)})}function WD(t,e){return new t({type:"nan",...L(e)})}function ti(t,e){return new yg({check:"less_than",...L(e),value:t,inclusive:!1})}function lu(t,e){return new yg({check:"less_than",...L(e),value:t,inclusive:!0})}function ni(t,e){return new xg({check:"greater_than",...L(e),value:t,inclusive:!1})}function cu(t,e){return new xg({check:"greater_than",...L(e),value:t,inclusive:!0})}function y4(t){return ni(0,t)}function x4(t){return ti(0,t)}function E4(t){return lu(0,t)}function $4(t){return cu(0,t)}function jo(t,e){return new FA({check:"multiple_of",...L(e),value:t})}function ts(t,e){return new IA({check:"max_size",...L(e),maximum:t})}function ui(t,e){return new zA({check:"min_size",...L(e),minimum:t})}function ol(t,e){return new ZA({check:"size_equals",...L(e),size:t})}function sl(t,e){return new RA({check:"max_length",...L(e),maximum:t})}function Zi(t,e){return new jA({check:"min_length",...L(e),minimum:t})}function al(t,e){return new MA({check:"length_equals",...L(e),length:t})}function wf(t,e){return new LA({check:"string_format",format:"regex",...L(e),pattern:t})}function Bf(t){return new NA({check:"string_format",format:"lowercase",...L(t)})}function Pf(t){return new UA({check:"string_format",format:"uppercase",...L(t)})}function Ff(t,e){return new XA({check:"string_format",format:"includes",...L(e),includes:t})}function Qf(t,e){return new VA({check:"string_format",format:"starts_with",...L(e),prefix:t})}function Tf(t,e){return new qA({check:"string_format",format:"ends_with",...L(e),suffix:t})}function A4(t,e,n){return new Eg({check:"property",property:t,schema:e,...L(n)})}function D4(t){return Object.entries(t).map(([e,n])=>new Eg({check:"property",property:e,schema:n}))}function If(t,e){return new WA({check:"mime_type",mime:t,...L(e)})}function _r(t){return new YA({check:"overwrite",tx:t})}function zf(t){return _r(e=>e.normalize(t))}function Zf(){return _r(t=>t.trim())}function Rf(){return _r(t=>t.toLowerCase())}function jf(){return _r(t=>t.toUpperCase())}function Mf(){return _r(t=>Q$(t))}function YD(t,e,n){return new t({type:"array",element:e,...L(n)})}function MG(t,e,n){return new t({type:"union",options:e,...L(n)})}function LG(t,e,n){return new t({type:"union",options:e,inclusive:!1,...L(n)})}function NG(t,e,n,r){return new t({type:"union",options:n,discriminator:e,...L(r)})}function UG(t,e,n){return new t({type:"intersection",left:e,right:n})}function XG(t,e,n,r){const u=n instanceof xe,i=u?r:n,o=u?n:null;return new t({type:"tuple",items:e,rest:o,...L(i)})}function VG(t,e,n,r){return new t({type:"record",keyType:e,valueType:n,...L(r)})}function qG(t,e,n,r){return new t({type:"map",keyType:e,valueType:n,...L(r)})}function WG(t,e,n){return new t({type:"set",valueType:e,...L(n)})}function YG(t,e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(u=>[u,u])):e;return new t({type:"enum",entries:r,...L(n)})}function GG(t,e,n){return new t({type:"enum",entries:e,...L(n)})}function HG(t,e,n){return new t({type:"literal",values:Array.isArray(e)?e:[e],...L(n)})}function GD(t,e){return new t({type:"file",...L(e)})}function KG(t,e){return new t({type:"transform",transform:e})}function JG(t,e){return new t({type:"optional",innerType:e})}function eH(t,e){return new t({type:"nullable",innerType:e})}function tH(t,e,n){return new t({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():ug(n)}})}function nH(t,e,n){return new t({type:"nonoptional",innerType:e,...L(n)})}function uH(t,e){return new t({type:"success",innerType:e})}function rH(t,e,n){return new t({type:"catch",innerType:e,catchValue:typeof n=="function"?n:X$(n)})}function iH(t,e,n){return new t({type:"pipe",in:e,out:n})}function oH(t,e){return new t({type:"readonly",innerType:e})}function sH(t,e,n){return new t({type:"template_literal",parts:e,...L(n)})}function aH(t,e){return new t({type:"lazy",getter:e})}function lH(t,e){return new t({type:"promise",innerType:e})}function HD(t,e,n){const r=L(n);return r.abort??(r.abort=!0),new t({type:"custom",check:"custom",fn:e,...r})}function KD(t,e,n){return new t({type:"custom",check:"custom",fn:e,...L(n)})}function JD(t,e){const n=ek(r=>(r.addIssue=u=>{if(typeof u=="string")r.issues.push(Bc(u,r.value,n._zod.def));else{const i=u;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(Bc(i))}},t(r.value,r)),e);return n}function ek(t,e){const n=new pt({check:"custom",...L(e)});return n._zod.check=t,n}function tk(t){const e=new pt({check:"describe"});return e._zod.onattach=[n=>{const r=ou.get(n)??{};ou.add(n,{...r,description:t})}],e._zod.check=()=>{},e}function nk(t){const e=new pt({check:"meta"});return e._zod.onattach=[n=>{const r=ou.get(n)??{};ou.add(n,{...r,...t})}],e._zod.check=()=>{},e}function uk(t,e){const n=L(e);let r=n.truthy??["true","1","yes","on","y","enabled"],u=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(h=>typeof h=="string"?h.toLowerCase():h),u=u.map(h=>typeof h=="string"?h.toLowerCase():h));const i=new Set(r),o=new Set(u),s=t.Codec??Lg,a=t.Boolean??zg,l=t.String??il,c=new l({type:"string",error:n.error}),f=new a({type:"boolean",error:n.error}),d=new s({type:"pipe",in:c,out:f,transform:((h,p)=>{let m=h;return n.case!=="sensitive"&&(m=m.toLowerCase()),i.has(m)?!0:o.has(m)?!1:(p.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...o],input:p.value,inst:d,continue:!1}),{})}),reverseTransform:((h,p)=>h===!0?r[0]||"true":u[0]||"false"),error:n.error});return d._zod.bag.truthy=r,d._zod.bag.falsy=u,d._zod.bag.case=n.case??"insensitive",d}function ll(t,e,n,r={}){const u=L(r),i={check:"string_format",type:"string",format:e,fn:typeof n=="function"?n:s=>n.test(s),...u};return n instanceof RegExp&&(i.pattern=n),new t(i)}function Ns(t,...e){for(const n of e)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&wt(t,r,n[r]);return t}function Mo(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??ou,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:t?.cycles??"ref",reused:t?.reused??"inline",intersections:[],deferred:[],external:t?.external??void 0}}function Rt(t,e,n,r,u){const i=typeof e.unrepresentable=="function"?e.unrepresentable({zodSchema:t,path:r.path,message:u}):e.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(u);return Object.assign(n,i),!0}function Je(t,e,n={path:[],schemaPath:[]}){var r;const u=t._zod.def,i=e.seen.get(t);if(i)return i.count++,n.schemaPath.includes(t)&&(i.cycle=n.path),i.schema;const o={schema:{},count:1,cycle:void 0,path:n.path};e.seen.set(t,o),e.sharedDefsExtractedFor=void 0,e.sharedEmitDoneFor=void 0;const s=t._zod.toJSONSchema?.();if(s)o.schema=s;else{const c={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,o.schema,c);else{const d=o.schema,h=e.processors[u.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${u.type}`);h(t,e,d,c)}const f=t._zod.parent;f&&(o.ref||(o.ref=f),Je(f,e,c),e.seen.get(f).isParent=!0)}const a=e.metadataRegistry.get(t);return a&&Ns(o.schema,a),e.io==="input"&&ln(t)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&"_prefault"in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(t).schema}function $C(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Lo(t,e){const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(t.external&&t.sharedDefsExtractedFor===t.external)return;const r=new Map;for(const o of t.seen.entries()){const s=t.metadataRegistry.get(o[0])?.id;if(s){const a=r.get(s);if(a&&a!==o[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(s,o[0])}}const u=o=>{const s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const f=t.external.registry.get(o[0])?.id,d=t.external.uri??(p=>p);if(f)return{ref:d(f)};const h=o[1].defId??o[1].schema.id??`schema${t.counter++}`;return o[1].defId=h,{defId:h,ref:`${d("__shared")}#/${s}/${$C(h)}`}}const a="#",l=`${a}/${s}/`;if(o[1]===n&&!o[1].schema.id)return{ref:a};const c=o[1].schema.id??`__schema${t.counter++}`;return{defId:c,ref:l+$C(c)}},i=o=>{if(o[1].schema.$ref)return;const s=o[1],{ref:a,defId:l}=u(o);s.def={...s.schema},l&&(s.defId=l);const c=s.schema;for(const f in c)delete c[f];c.$ref=a};if(t.cycles==="throw")for(const o of t.seen.entries()){const s=o[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
101
|
+
|
|
102
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const o of t.seen.entries()){const s=o[1];if(e===o[0]){i(o);continue}if(t.external){const l=t.external.registry.get(o[0])?.id;if(e!==o[0]&&l){i(o);continue}}if(t.metadataRegistry.get(o[0])?.id){i(o);continue}if(s.cycle){i(o);continue}if(s.count>1&&t.reused==="ref"){i(o);continue}}t.external&&(t.sharedDefsExtractedFor=t.external)}function rk(t){const e=t.anyOf;if(!Array.isArray(e)||e.length===0||t.type!==void 0)return;const n=[];for(const r of e){if(!r||typeof r!="object")return;rk(r);const u=Object.keys(r);if(u.length!==1||u[0]!=="type")return;const i=r.type;for(const o of Array.isArray(i)?i:[i]){if(typeof o!="string")return;n.includes(o)||n.push(o)}}delete t.anyOf,t.type=n.length===1?n[0]:n}var ik=new Set(["type","properties","required","additionalProperties"]),AC=["oneOf","anyOf"];function DC(t){const e=t.additionalProperties;return e===void 0||e===!1||typeof e!="object"||e===null?null:Object.keys(e).length?e:null}function vm(t){const e=[];for(const i of t){if(typeof i!="object"||i.type!=="object")return null;for(const o in i)if(!ik.has(o))return null;e.push(i)}const n={},r=new Set;for(const i of e){for(const o in i.properties){if(Object.prototype.hasOwnProperty.call(n,o))continue;const s=[];for(const l of e){const c=l.properties?.[o]??DC(l);c!=null&&(s.some(f=>JSON.stringify(f)===JSON.stringify(c))||s.push(c))}const a=s.length===1?s[0]:vm(s)??{allOf:s};wt(n,o,a)}for(const o of i.required??[])r.add(o)}const u={type:"object",properties:n};if(r.size&&(u.required=[...r]),e.every(i=>i.additionalProperties===!1))u.additionalProperties=!1;else{const i=[];for(const o of e){const s=DC(o);s&&!i.some(a=>JSON.stringify(a)===JSON.stringify(s))&&i.push(s)}i.length===1?u.additionalProperties=i[0]:i.length>1&&(u.additionalProperties={allOf:i})}return u}function cH(t){const e=t.allOf;if(!Array.isArray(e)||e.length<2)return;for(const u of ik)if(u in t)return;const n=e.filter(u=>AC.some(i=>Array.isArray(u[i])));let r=null;if(!n.length)r=vm(e);else{const u=n[0],i=AC.find(a=>Array.isArray(u[a]));if(Object.keys(u).length!==1)return;const o=e.filter(a=>a!==u),s=u[i].map(a=>vm([...o,a]));if(s.some(a=>!a))return;r={[i]:s}}r&&(delete t.allOf,Ns(t,r))}function No(t,e){const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=s=>{const a=t.seen.get(s);if(a.ref===null)return;const l=a.def??a.schema,c={...l},f=a.ref;if(a.ref=null,f){r(f);const h=t.seen.get(f),p=h.schema;if(p.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(p)):Ns(l,p),Ns(l,c),s._zod.parent===f)for(const g in l)g==="$ref"||g==="allOf"||g in c||delete l[g];if(p.$ref&&h.def)for(const g in l)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(l[g])===JSON.stringify(h.def[g])&&delete l[g]}const d=s._zod.parent;if(d&&d!==f){r(d);const h=t.seen.get(d);if(h?.schema.$ref&&(l.$ref=h.schema.$ref,h.def))for(const p in l)p==="$ref"||p==="allOf"||p in h.def&&JSON.stringify(l[p])===JSON.stringify(h.def[p])&&delete l[p]}t.override({zodSchema:s,jsonSchema:l,path:a.path??[]})};if(!t.external||t.sharedEmitDoneFor!==t.external){for(const s of[...t.seen.entries()].reverse())r(s[0]);if(t.target!=="openapi-3.0")for(const s of t.seen.entries())rk(s[1].def??s[1].schema);for(const s of t.deferred)s();if(t.intersections.length){const s=new Map;for(const a of t.seen.values())for(const l of[a.schema,a.def]){const c=l?.allOf;if(!Array.isArray(c))continue;const f=s.get(c);f?f.push(l):s.set(c,[l])}for(const a of t.intersections)for(const l of s.get(a)??[])cH(l)}}const u={};if(t.target==="draft-2020-12"?u.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?u.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?u.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){const s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");u.$id=t.external.uri(s)}Ns(u,n.defId?n.schema:n.def??n.schema);const i=t.metadataRegistry.get(e)?.id;i!==void 0&&u.id===i&&delete u.id;const o=t.external?.defs??{};if(!t.external||t.sharedEmitDoneFor!==t.external)for(const s of t.seen.entries()){const a=s[1];a.def&&a.defId&&(a.def.id===a.defId&&delete a.def.id,wt(o,a.defId,a.def))}t.external&&(t.sharedEmitDoneFor=t.external),t.external||Object.keys(o).length>0&&(t.target==="draft-2020-12"?u.$defs=o:u.definitions=o);try{const s=JSON.parse(JSON.stringify(u));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:Da(e,"input",t.processors),output:Da(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function ln(t,e){const n=e??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);const r=t._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ln(r.element,n);if(r.type==="set")return ln(r.valueType,n);if(r.type==="lazy")return ln(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return ln(r.innerType,n);if(r.type==="intersection")return ln(r.left,n)||ln(r.right,n);if(r.type==="record"||r.type==="map")return ln(r.keyType,n)||ln(r.valueType,n);if(r.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:ln(r.in,n)||ln(r.out,n);if(r.type==="object"){for(const u in r.shape)if(ln(r.shape[u],n))return!0;return!1}if(r.type==="union"){for(const u of r.options)if(ln(u,n))return!0;return!1}if(r.type==="tuple"){for(const u of r.items)if(ln(u,n))return!0;return!!(r.rest&&ln(r.rest,n))}return!1}var ok=(t,e={})=>n=>{const r=Mo({...n,processors:e});return Je(t,r),Lo(r,t),No(r,t)},Da=(t,e,n={})=>r=>{const{libraryOptions:u,target:i}=r??{},o=Mo({...u??{},target:i,io:e,processors:n});return Je(t,o),Lo(o,t),No(o,t)},fH={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sk=(t,e,n,r)=>{const u=n;u.type="string";const{minimum:i,maximum:o,format:s,patterns:a,contentEncoding:l,laxFormat:c}=t._zod.bag;if(typeof i=="number"&&(u.minLength=i),typeof o=="number"&&(u.maxLength=o),s&&(u.format=fH[s]??s,u.format===""&&delete u.format,(s==="time"||c)&&delete u.format),l&&(u.contentEncoding=l),a&&a.size>0){const f=[...a];f.length===1?u.pattern=f[0].source:f.length>1&&(u.allOf=[...f.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},ak=(t,e,n,r)=>{const u=n,{minimum:i,maximum:o,format:s,multipleOf:a,exclusiveMaximum:l,exclusiveMinimum:c}=t._zod.bag;typeof s=="string"&&s.includes("int")?u.type="integer":u.type="number";const f=typeof c=="number"&&c>=(i??Number.NEGATIVE_INFINITY),d=typeof l=="number"&&l<=(o??Number.POSITIVE_INFINITY),h=e.target==="draft-04"||e.target==="openapi-3.0";f?h?(u.minimum=c,u.exclusiveMinimum=!0):u.exclusiveMinimum=c:typeof i=="number"&&(u.minimum=i),d?h?(u.maximum=l,u.exclusiveMaximum=!0):u.exclusiveMaximum=l:typeof o=="number"&&(u.maximum=o),typeof a=="number"&&(Number.isFinite(a)&&a!==0?u.multipleOf=Math.abs(a):Rt(t,e,u,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`))},lk=(t,e,n,r)=>{n.type="boolean"},ck=(t,e,n,r)=>{Rt(t,e,n,r,"BigInt cannot be represented in JSON Schema")},fk=(t,e,n,r)=>{Rt(t,e,n,r,"Symbols cannot be represented in JSON Schema")},dk=(t,e,n,r)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},hk=(t,e,n,r)=>{Rt(t,e,n,r,"Undefined cannot be represented in JSON Schema")},pk=(t,e,n,r)=>{Rt(t,e,n,r,"Void cannot be represented in JSON Schema")},mk=(t,e,n,r)=>{n.not={}},gk=(t,e,n,r)=>{},Ok=(t,e,n,r)=>{},bk=(t,e,n,r)=>{Rt(t,e,n,r,"Date cannot be represented in JSON Schema")},vk=(t,e,n,r)=>{const u=t._zod.def,i=J1(u.entries);if(i.length===0){n.not={};return}i.every(o=>typeof o=="number")&&(n.type="number"),i.every(o=>typeof o=="string")&&(n.type="string"),n.enum=i},Ck=(t,e,n,r)=>{const u=t._zod.def;if(u.values.length===0){n.not={};return}const i=[];for(const o of u.values)if(o===void 0){if(Rt(t,e,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o=="bigint"){if(Rt(t,e,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(o))}else i.push(o);if(i.length!==0)if(i.length===1){const o=i[0];n.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?n.enum=[o]:n.const=o}else i.every(o=>typeof o=="number")&&(n.type="number"),i.every(o=>typeof o=="string")&&(n.type="string"),i.every(o=>typeof o=="boolean")&&(n.type="boolean"),i.every(o=>o===null)&&(n.type="null"),n.enum=i},yk=(t,e,n,r)=>{Rt(t,e,n,r,"NaN cannot be represented in JSON Schema")},xk=(t,e,n,r)=>{const u=n,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");u.type="string",u.pattern=i.source},Ek=(t,e,n,r)=>{const u=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:a}=t._zod.bag;o!==void 0&&(i.minLength=o),s!==void 0&&(i.maxLength=s),a?a.length===1?(i.contentMediaType=a[0],Object.assign(u,i)):(Object.assign(u,i),u.anyOf=a.map(l=>({contentMediaType:l}))):Object.assign(u,i)},$k=(t,e,n,r)=>{n.type="boolean"},Ak=(t,e,n,r)=>{Rt(t,e,n,r,"Custom types cannot be represented in JSON Schema")},Dk=(t,e,n,r)=>{Rt(t,e,n,r,"Function types cannot be represented in JSON Schema")},kk=(t,e,n,r)=>{Rt(t,e,n,r,"Transforms cannot be represented in JSON Schema")},Sk=(t,e,n,r)=>{Rt(t,e,n,r,"Map cannot be represented in JSON Schema")},_k=(t,e,n,r)=>{Rt(t,e,n,r,"Set cannot be represented in JSON Schema")},wk=(t,e,n,r)=>{const u=n,i=t._zod.def,{minimum:o,maximum:s}=t._zod.bag;typeof o=="number"&&(u.minItems=o),typeof s=="number"&&(u.maxItems=s),u.type="array",u.items=Je(i.element,e,{...r,path:[...r.path,"items"]})};function ka(t){const e=t._zod.def;return e.type==="pipe"&&e.in._zod.traits.has("$ZodTransform")?ka(e.out):e.type==="catch"?ka(e.innerType):t._zod.optin}var Bk=(t,e,n,r)=>{const u=n,i=t._zod.def,o=i.shape;if(Object.getOwnPropertySymbols(o).length&&Rt(t,e,u,r,"Symbol keys cannot be represented in JSON Schema"))return;u.type="object",u.properties={};for(const c in o)wt(u.properties,c,Je(o[c],e,{...r,path:[...r.path,"properties",c]}));const a=new Set(Object.keys(o)),l=new Set([...a].filter(c=>{const f=i.shape[c];return e.io==="input"?ka(f)===void 0:f._zod.optout===void 0}));l.size>0&&(u.required=Array.from(l)),i.catchall?._zod.def.type==="never"?u.additionalProperties=!1:i.catchall?i.catchall&&(u.additionalProperties=Je(i.catchall,e,{...r,path:[...r.path,"additionalProperties"]})):e.io==="output"&&(u.additionalProperties=!1)},k4=(t,e,n,r)=>{const u=t._zod.def,i=u.inclusive===!1,o=u.options.map((s,a)=>Je(s,e,{...r,path:[...r.path,i?"oneOf":"anyOf",a]}));i?n.oneOf=o:n.anyOf=o},Pk=(t,e,n,r)=>{const u=t._zod.def,i=Je(u.left,e,{...r,path:[...r.path,"allOf",0]}),o=Je(u.right,e,{...r,path:[...r.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,a=[...s(i)?i.allOf:[i],...s(o)?o.allOf:[o]];n.allOf=a,e.intersections.push(a)},Fk=(t,e,n,r)=>{const u=n,i=t._zod.def;u.type="array";const o=e.target==="draft-2020-12"?"prefixItems":"items",s=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",a=i.items.map((m,g)=>Je(m,e,{...r,path:[...r.path,o,g]})),l=i.rest?Je(i.rest,e,{...r,path:[...r.path,s,...e.target==="openapi-3.0"?[i.items.length]:[]]}):null;let c=i.items.length;for(;c>0;){const m=i.items[c-1];if(!(e.io==="input"?ka(m)!==void 0:m._zod.optout==="optional"))break;c--}const f=i.items.length,d=!i.rest;e.target==="draft-2020-12"?(u.prefixItems=a,d?u.items=!1:l&&(u.items=l),c>0&&(u.minItems=c),d&&(u.maxItems=f)):e.target==="openapi-3.0"?(u.items={anyOf:a},l&&u.items.anyOf.push(l),c>0&&(u.minItems=c),d&&(u.maxItems=f)):(u.items=a,d?u.additionalItems=!1:l&&(u.additionalItems=l),c>0&&(u.minItems=c),d&&(u.maxItems=f));const{minimum:h,maximum:p}=t._zod.bag;typeof h=="number"&&(u.minItems=h),typeof p=="number"&&(u.maxItems=p)};function Cm(t,e,n){if(e.$ref){if(n.has(e))return e;n.add(e);const p=t.get(e)?.def;if(!p)return e;const m=Cm(t,p,n);return m===p?e:m}for(const p of["anyOf","oneOf"]){const m=e[p];if(!Array.isArray(m))continue;const g=m.map(C=>Cm(t,C,n));g.some((C,b)=>C!==m[b])&&(e={...e,[p]:g})}const r=Array.isArray(e.type)?e.type:[e.type],u=!r.includes("string")&&r.some(p=>p==="number"||p==="integer"),i=e.enum??(e.const!==void 0?[e.const]:void 0);if(!u&&!i?.some(p=>typeof p=="number"))return e;const{minimum:o,maximum:s,exclusiveMinimum:a,exclusiveMaximum:l,multipleOf:c,format:f,id:d,...h}=e;return h.enum?h.enum=h.enum.map(p=>typeof p=="number"?String(p):p):typeof h.const=="number"&&(h.const=String(h.const)),u&&(h.type="string",i||(h.pattern=(r.includes("number")?tl:bg).source)),h}var ym=new WeakMap;function dH(t){const e=new Map;for(const r of t.seen.values())r.def&&!e.has(r.schema)&&e.set(r.schema,r);const n=new Map;for(const r of ym.get(t)??[]){const u=t.seen.get(r),i=(u?.def??u?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;const o=Cm(e,i,new Set);o!==i&&n.set(i,o)}if(n.size)for(const r of t.seen.values())for(const u of[r.schema,r.def]){const i=u&&n.get(u.propertyNames);i&&(u.propertyNames=i)}}var Qk=(t,e,n,r)=>{const u=n,i=t._zod.def;u.type="object";const o=i.keyType,a=o._zod.bag?.patterns;if(i.mode==="loose"&&a&&a.size>0){const f=Je(i.valueType,e,{...r,path:[...r.path,"patternProperties","*"]});u.patternProperties={};for(const d of a)wt(u.patternProperties,d.source,f)}else{if(e.target==="draft-07"||e.target==="draft-2020-12"){u.propertyNames=Je(i.keyType,e,{...r,path:[...r.path,"propertyNames"]});let f=ym.get(e);f||(f=[],ym.set(e,f),e.deferred.push(()=>dH(e))),f.push(t)}u.additionalProperties=Je(i.valueType,e,{...r,path:[...r.path,"additionalProperties"]})}const l=o._zod.values,c=e.io==="input"&&ka(i.valueType)!==void 0;if(l&&!i.partial&&!c){const f=[...l].filter(d=>typeof d=="string"||typeof d=="number");f.length>0&&(u.required=f.map(String))}},Tk=(t,e,n,r)=>{const u=t._zod.def,i=Je(u.innerType,e,r),o=e.seen.get(t);e.target==="openapi-3.0"?(o.ref=u.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Ik=(t,e,n,r)=>{const u=t._zod.def;Je(u.innerType,e,r);const i=e.seen.get(t);i.ref=u.innerType},S4=Symbol();function zk(t,e,n,r,u){let i=!1;const o=JSON.stringify(t,(s,a)=>typeof a!="bigint"?a:(i=!0,null));return i?(Rt(e,n,r,u,"BigInt defaults cannot be represented in JSON Schema"),S4):JSON.parse(o)}var Zk=(t,e,n,r)=>{const u=t._zod.def;Je(u.innerType,e,r);const i=e.seen.get(t);i.ref=u.innerType;const o=zk(u.defaultValue,t,e,n,r);o!==S4&&(n.default=o)},Rk=(t,e,n,r)=>{const u=t._zod.def;Je(u.innerType,e,r);const i=e.seen.get(t);if(i.ref=u.innerType,e.io!=="input")return;const o=zk(u.defaultValue,t,e,n,r);o!==S4&&(n._prefault=o)},jk=(t,e,n,r)=>{const u=t._zod.def;Je(u.innerType,e,r);const i=e.seen.get(t);i.ref=u.innerType;let o;try{o=u.catchValue(void 0)}catch{Rt(t,e,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=o},Mk=(t,e,n,r)=>{const u=t._zod.def,i=u.in._zod.traits.has("$ZodTransform"),o=e.io==="input"?i?u.out:u.in:u.out;Je(o,e,r);const s=e.seen.get(t);s.ref=o},Lk=(t,e,n,r)=>{const u=t._zod.def;Je(u.innerType,e,r);const i=e.seen.get(t);i.ref=u.innerType,n.readOnly=!0},Nk=(t,e,n,r)=>{const u=t._zod.def;Je(u.innerType,e,r);const i=e.seen.get(t);i.ref=u.innerType},_4=(t,e,n,r)=>{const u=t._zod.def;Je(u.innerType,e,r);const i=e.seen.get(t);i.ref=u.innerType},Uk=(t,e,n,r)=>{const u=t._zod.innerType;Je(u,e,r);const i=e.seen.get(t);i.ref=u},xm={string:sk,number:ak,boolean:lk,bigint:ck,symbol:fk,null:dk,undefined:hk,void:pk,never:mk,any:gk,unknown:Ok,date:bk,enum:vk,literal:Ck,nan:yk,template_literal:xk,file:Ek,success:$k,custom:Ak,function:Dk,transform:kk,map:Sk,set:_k,array:wk,object:Bk,union:k4,intersection:Pk,tuple:Fk,record:Qk,nullable:Tk,nonoptional:Ik,default:Zk,prefault:Rk,catch:jk,pipe:Mk,readonly:Lk,promise:Nk,optional:_4,lazy:Uk};function Xk(t,e){if("_idmap"in t){const r=t,u=Mo({...e,processors:xm}),i={};for(const a of r._idmap.entries()){const[l,c]=a;Je(c,u)}const o={},s={registry:r,uri:e?.uri,defs:i};u.external=s;for(const a of r._idmap.entries()){const[l,c]=a;Lo(u,c),wt(o,l,No(u,c))}if(Object.keys(i).length>0){const a=u.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[a]:i}}return{schemas:o}}const n=Mo({...e,processors:xm});return Je(t,n),Lo(n,t),No(n,t)}var hH=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let e=t?.target??"draft-2020-12";e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),this.ctx=Mo({processors:xm,target:e,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,e={path:[],schemaPath:[]}){return Je(t,this.ctx,e)}emit(t,e){e&&(e.cycles&&(this.ctx.cycles=e.cycles),e.reused&&(this.ctx.reused=e.reused),e.external&&(this.ctx.external=e.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Lo(this.ctx,t);const n=No(this.ctx,t),{"~standard":r,...u}=n;return u}},pH={},Vk={};Sr(Vk,{ZodAny:()=>Z4,ZodArray:()=>L4,ZodBase64:()=>nd,ZodBase64URL:()=>ud,ZodBigInt:()=>bl,ZodBigIntFormat:()=>od,ZodBoolean:()=>Ol,ZodCIDRv4:()=>ed,ZodCIDRv6:()=>td,ZodCUID:()=>qf,ZodCUID2:()=>Wf,ZodCatch:()=>lO,ZodCodec:()=>Al,ZodCreditCard:()=>B4,ZodCustom:()=>Dl,ZodCustomStringFormat:()=>ns,ZodDate:()=>ad,ZodDefault:()=>uO,ZodDiscriminatedUnion:()=>U4,ZodE164:()=>rd,ZodEmail:()=>Nf,ZodEmoji:()=>Xf,ZodEnum:()=>Xo,ZodExactOptional:()=>fd,ZodFile:()=>J4,ZodFunction:()=>vO,ZodGUID:()=>Uf,ZodIPv4:()=>Kf,ZodIPv6:()=>Jf,ZodISODate:()=>dl,ZodISODateTime:()=>fl,ZodISODuration:()=>pl,ZodISOTime:()=>hl,ZodIntersection:()=>X4,ZodJWT:()=>id,ZodKSUID:()=>Hf,ZodLazy:()=>gO,ZodLiteral:()=>K4,ZodMAC:()=>w4,ZodMap:()=>G4,ZodNaN:()=>fO,ZodNanoID:()=>Vf,ZodNever:()=>j4,ZodNonOptional:()=>dd,ZodNull:()=>I4,ZodNullable:()=>nO,ZodNumber:()=>gl,ZodNumberFormat:()=>Li,ZodObject:()=>Cl,ZodOptional:()=>El,ZodPipe:()=>$l,ZodPrefault:()=>iO,ZodPreprocess:()=>dO,ZodPromise:()=>bO,ZodReadonly:()=>hO,ZodRecord:()=>Uo,ZodSet:()=>H4,ZodString:()=>cl,ZodStringFormat:()=>tt,ZodSuccess:()=>aO,ZodSymbol:()=>Q4,ZodTemplateLiteral:()=>mO,ZodTransform:()=>eO,ZodTuple:()=>q4,ZodType:()=>Ae,ZodULID:()=>Yf,ZodURL:()=>ml,ZodUUID:()=>Vu,ZodUndefined:()=>T4,ZodUnion:()=>yl,ZodUnknown:()=>R4,ZodVoid:()=>M4,ZodXID:()=>Gf,ZodXor:()=>N4,_ZodString:()=>Lf,_default:()=>rO,_function:()=>Ic,any:()=>XS,array:()=>vl,base64:()=>kS,base64url:()=>SS,bigint:()=>jS,boolean:()=>F4,catch:()=>cO,check:()=>p_,cidrv4:()=>AS,cidrv6:()=>DS,codec:()=>c_,creditCard:()=>wS,cuid:()=>OS,cuid2:()=>bS,custom:()=>m_,date:()=>qS,describe:()=>g_,discriminatedUnion:()=>JS,e164:()=>_S,email:()=>sS,emoji:()=>mS,enum:()=>ld,exactOptional:()=>tO,file:()=>o_,float32:()=>IS,float64:()=>zS,function:()=>Ic,guid:()=>aS,hash:()=>TS,hex:()=>QS,hostname:()=>FS,httpUrl:()=>pS,instanceof:()=>b_,int:()=>Qc,int32:()=>ZS,int64:()=>MS,intersection:()=>V4,invertCodec:()=>f_,ipv4:()=>xS,ipv6:()=>$S,json:()=>C_,jwt:()=>BS,keyof:()=>WS,ksuid:()=>yS,lazy:()=>OO,literal:()=>i_,looseObject:()=>HS,looseRecord:()=>t_,mac:()=>ES,map:()=>n_,meta:()=>O_,nan:()=>l_,nanoid:()=>gS,nativeEnum:()=>r_,never:()=>sd,nonoptional:()=>sO,null:()=>z4,nullable:()=>_a,nullish:()=>s_,number:()=>P4,object:()=>YS,optional:()=>Vo,partialRecord:()=>e_,pipe:()=>Tc,prefault:()=>oO,preprocess:()=>y_,promise:()=>h_,readonly:()=>pO,record:()=>Y4,refine:()=>CO,set:()=>u_,strictObject:()=>GS,string:()=>Sa,stringFormat:()=>PS,stringbool:()=>v_,success:()=>a_,superRefine:()=>yO,symbol:()=>NS,templateLiteral:()=>d_,transform:()=>cd,tuple:()=>W4,uint32:()=>RS,uint64:()=>LS,ulid:()=>vS,undefined:()=>US,union:()=>xl,unknown:()=>Ri,url:()=>hS,uuid:()=>lS,uuidv4:()=>cS,uuidv6:()=>fS,uuidv7:()=>dS,void:()=>VS,xid:()=>CS,xor:()=>KS});var qk={};Sr(qk,{endsWith:()=>Tf,gt:()=>ni,gte:()=>cu,includes:()=>Ff,length:()=>al,lowercase:()=>Bf,lt:()=>ti,lte:()=>lu,maxLength:()=>sl,maxSize:()=>ts,mime:()=>If,minLength:()=>Zi,minSize:()=>ui,multipleOf:()=>jo,negative:()=>x4,nonnegative:()=>$4,nonpositive:()=>E4,normalize:()=>zf,overwrite:()=>_r,positive:()=>y4,properties:()=>D4,property:()=>A4,regex:()=>wf,size:()=>ol,slugify:()=>Mf,startsWith:()=>Qf,toLowerCase:()=>Rf,toUpperCase:()=>jf,trim:()=>Zf,uppercase:()=>Pf});var kC=new WeakSet([Object.prototype,Error.prototype]);function y0(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,e,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,e,{value:r,configurable:!0,writable:!0})}})}var Wk=(t,e)=>{ig.init(t,e),t.name="ZodError";const n=Object.getPrototypeOf(t);kC.has(n)||(kC.add(n),y0(n,"format",r=>u=>sg(r,u)),y0(n,"flatten",r=>u=>og(r,u)),y0(n,"addIssue",r=>u=>{r.issues.push(u),r.message=JSON.stringify(r.issues,_c,2)}),y0(n,"addIssues",r=>u=>{r.issues.push(...u),r.message=JSON.stringify(r.issues,_c,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},mH=k("ZodError",Wk),Yn=k("ZodError",Wk,void 0,{Parent:Error}),Yk=Ha(Yn),Gk=Ka(Yn),Hk=Ja(Yn),Kk=el(Yn),Jk=ag(Yn),eS=lg(Yn),tS=cg(Yn),nS=fg(Yn),uS=dg(Yn),rS=hg(Yn),iS=pg(Yn),oS=mg(Yn);function gH(){bn.localeError||Vt(fD())}function Mi(){bn.memoizer||Vt({memoizer:Xg()})}var Ae=k("ZodType",(t,e)=>(gH(),xe.init(t,e),t.def=e,t.type=e.type,t),{check(...t){const e=this.def;return this.clone($e.mergeDefs(e,{checks:[...e.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...t){return this.check(...t)},clone(t,e){return ct(this,t,e)},brand(){return this},register(t,e){return t.add(this,e),this},refine(t,e){return this.check(CO(t,e))},superRefine(t,e){return this.check(yO(t,e))},overwrite(t){return this.check(_r(t))},optional(){return Vo(this)},exactOptional(){return tO(this)},nullable(){return _a(this)},nullish(){return Vo(_a(this))},nonoptional(t){return sO(this,t)},array(){return vl(this)},or(t){return xl([this,t])},and(t){return V4(this,t)},transform(t){return Tc(this,cd(t))},default(t){return rO(this,t)},prefault(t){return oO(this,t)},catch(t){return cO(this,t)},pipe(t){return Tc(this,t)},readonly(){return pO(this)},describe(t){const e=this.clone();return ou.add(e,{description:t}),e},meta(...t){if(t.length===0)return ou.get(this);const e=this.clone();return ou.add(e,t[0]),e},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(t,...e){return e.length===0?t(this):t(this,...e)},get"~standard"(){return $e.hide(this,"~standard",{...Ag(this),jsonSchema:{input:Da(this,"input"),output:Da(this,"output")}})},set"~standard"(t){$e.own(this,"~standard",t)},parse:function t(e,n){return Yk(this,e,n,{callee:t})},parseAsync:async function t(e,n){return await Gk(this,e,n,{callee:t})},safeParse(t,e){return Hk(this,t,e)},async safeParseAsync(t,e){return Kk(this,t,e)},get spa(){return this?.safeParseAsync},set spa(t){$e.own(this,"spa",t)},encode:function t(e,n){return Jk(this,e,n,{callee:t})},decode:function t(e,n){return eS(this,e,n,{callee:t})},encodeAsync:async function t(e,n){return await tS(this,e,n,{callee:t})},decodeAsync:async function t(e,n){return await nS(this,e,n,{callee:t})},safeEncode(t,e){return uS(this,t,e)},safeDecode(t,e){return rS(this,t,e)},async safeEncodeAsync(t,e){return iS(this,t,e)},async safeDecodeAsync(t,e){return oS(this,t,e)},toJSONSchema(t){return ok(this,{})(t)},get description(){return ou.get(this)?.description},get _def(){return this._zod.def}}),Lf=k("_ZodString",(t,e)=>{il.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(r,u,i)=>sk(t,r,u);const n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null},{regex(...t){return this.check(wf(...t))},includes(...t){return this.check(Ff(...t))},startsWith(...t){return this.check(Qf(...t))},endsWith(...t){return this.check(Tf(...t))},min(...t){return this.check(Zi(...t))},max(...t){return this.check(sl(...t))},length(...t){return this.check(al(...t))},nonempty(...t){return this.check(Zi(1,...t))},lowercase(t){return this.check(Bf(t))},uppercase(t){return this.check(Pf(t))},trim(){return this.check(Zf())},normalize(...t){return this.check(zf(...t))},toLowerCase(){return this.check(Rf())},toUpperCase(){return this.check(jf())},slugify(){return this.check(Mf())}}),cl=k("ZodString",(t,e)=>{il.init(t,e),Lf.init(t,e)},{email(t){return this.check(Gg(Nf,t))},url(t){return this.check(_f(ml,t))},jwt(t){return this.check(g4(id,t))},emoji(t){return this.check(n4(Xf,t))},guid(t){return this.check(Hg(Uf,t))},uuid(t){return this.check(Kg(Vu,t))},uuidv4(t){return this.check(Jg(Vu,t))},uuidv6(t){return this.check(e4(Vu,t))},uuidv7(t){return this.check(t4(Vu,t))},nanoid(t){return this.check(u4(Vf,t))},cuid(t){return this.check(r4(qf,t))},cuid2(t){return this.check(i4(Wf,t))},ulid(t){return this.check(o4(Yf,t))},base64(t){return this.check(h4(nd,t))},base64url(t){return this.check(p4(ud,t))},xid(t){return this.check(s4(Gf,t))},ksuid(t){return this.check(a4(Hf,t))},ipv4(t){return this.check(l4(Kf,t))},ipv6(t){return this.check(c4(Jf,t))},cidrv4(t){return this.check(f4(ed,t))},cidrv6(t){return this.check(d4(td,t))},e164(t){return this.check(m4(rd,t))},datetime(t){return this.check(O4(fl,t))},date(t){return this.check(b4(dl,t))},time(t){return this.check(v4(hl,t))},duration(t){return this.check(C4(pl,t))}});function Sa(t){return yD(cl,t)}var tt=k("ZodStringFormat",(t,e)=>{et.init(t,e),Lf.init(t,e)}),fl=k("ZodISODateTime",(t,e)=>{a9.init(t,e),tt.init(t,e)}),dl=k("ZodISODate",(t,e)=>{l9.init(t,e),tt.init(t,e)}),hl=k("ZodISOTime",(t,e)=>{c9.init(t,e),tt.init(t,e)}),pl=k("ZodISODuration",(t,e)=>{f9.init(t,e),tt.init(t,e)}),Nf=k("ZodEmail",(t,e)=>{JA.init(t,e),tt.init(t,e)});function sS(t){return Gg(Nf,t)}var Uf=k("ZodGUID",(t,e)=>{HA.init(t,e),tt.init(t,e)});function aS(t){return Hg(Uf,t)}var Vu=k("ZodUUID",(t,e)=>{KA.init(t,e),tt.init(t,e)});function lS(t){return Kg(Vu,t)}function cS(t){return Jg(Vu,t)}function fS(t){return e4(Vu,t)}function dS(t){return t4(Vu,t)}var ml=k("ZodURL",(t,e)=>{e9.init(t,e),tt.init(t,e)});function hS(t){return _f(ml,t)}function pS(t){return _f(ml,{protocol:Jr.httpProtocol,hostname:Jr.domain,...$e.normalizeParams(t)})}var Xf=k("ZodEmoji",(t,e)=>{t9.init(t,e),tt.init(t,e)});function mS(t){return n4(Xf,t)}var Vf=k("ZodNanoID",(t,e)=>{n9.init(t,e),tt.init(t,e)});function gS(t){return u4(Vf,t)}var qf=k("ZodCUID",(t,e)=>{u9.init(t,e),tt.init(t,e)});function OS(t){return r4(qf,t)}var Wf=k("ZodCUID2",(t,e)=>{r9.init(t,e),tt.init(t,e)});function bS(t){return i4(Wf,t)}var Yf=k("ZodULID",(t,e)=>{i9.init(t,e),tt.init(t,e)});function vS(t){return o4(Yf,t)}var Gf=k("ZodXID",(t,e)=>{o9.init(t,e),tt.init(t,e)});function CS(t){return s4(Gf,t)}var Hf=k("ZodKSUID",(t,e)=>{s9.init(t,e),tt.init(t,e)});function yS(t){return a4(Hf,t)}var Kf=k("ZodIPv4",(t,e)=>{d9.init(t,e),tt.init(t,e)});function xS(t){return l4(Kf,t)}var w4=k("ZodMAC",(t,e)=>{p9.init(t,e),tt.init(t,e)});function ES(t){return ED(w4,t)}var Jf=k("ZodIPv6",(t,e)=>{h9.init(t,e),tt.init(t,e)});function $S(t){return c4(Jf,t)}var ed=k("ZodCIDRv4",(t,e)=>{m9.init(t,e),tt.init(t,e)});function AS(t){return f4(ed,t)}var td=k("ZodCIDRv6",(t,e)=>{g9.init(t,e),tt.init(t,e)});function DS(t){return d4(td,t)}var nd=k("ZodBase64",(t,e)=>{O9.init(t,e),tt.init(t,e)});function kS(t){return h4(nd,t)}var ud=k("ZodBase64URL",(t,e)=>{b9.init(t,e),tt.init(t,e)});function SS(t){return p4(ud,t)}var rd=k("ZodE164",(t,e)=>{v9.init(t,e),tt.init(t,e)});function _S(t){return m4(rd,t)}var B4=k("ZodCreditCard",(t,e)=>{C9.init(t,e),tt.init(t,e)});function wS(t){return $D(B4,t)}var id=k("ZodJWT",(t,e)=>{y9.init(t,e),tt.init(t,e)});function BS(t){return g4(id,t)}var ns=k("ZodCustomStringFormat",(t,e)=>{x9.init(t,e),tt.init(t,e)});function PS(t,e,n={}){return ll(ns,t,e,n)}function FS(t){return ll(ns,"hostname",Jr.hostname,t)}function QS(t){return ll(ns,"hex",Jr.hex,t)}function TS(t,e){const n=e?.enc??"hex",r=`${t}_${n}`,u=Jr[r];if(!u)throw new Error(`Unrecognized hash format: ${r}`);return ll(ns,r,u,e)}var gl=k("ZodNumber",(t,e)=>{Ig.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(r,u,i)=>ak(t,r,u,i);const n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null},{gt(t,e){return this.check(ni(t,e))},gte(t,e){return this.check(cu(t,e))},min(t,e){return this.check(cu(t,e))},lt(t,e){return this.check(ti(t,e))},lte(t,e){return this.check(lu(t,e))},max(t,e){return this.check(lu(t,e))},int(t){return this.check(Qc(t))},safe(t){return this.check(Qc(t))},positive(t){return this.check(ni(0,t))},nonnegative(t){return this.check(cu(0,t))},negative(t){return this.check(ti(0,t))},nonpositive(t){return this.check(lu(0,t))},multipleOf(t,e){return this.check(jo(t,e))},step(t,e){return this.check(jo(t,e))},finite(){return this}});function P4(t){return DD(gl,t)}var Li=k("ZodNumberFormat",(t,e)=>{E9.init(t,e),gl.init(t,e)});function Qc(t){return SD(Li,t)}function IS(t){return _D(Li,t)}function zS(t){return wD(Li,t)}function ZS(t){return BD(Li,t)}function RS(t){return PD(Li,t)}var Ol=k("ZodBoolean",(t,e)=>{zg.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>lk(t,n,r)});function F4(t){return FD(Ol,t)}var bl=k("ZodBigInt",(t,e)=>{Zg.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(r,u,i)=>ck(t,r,u,i);const n=t._zod.bag;t.minValue=n.minimum??null,t.maxValue=n.maximum??null,t.format=n.format??null},{gte(t,e){return this.check(cu(t,e))},min(t,e){return this.check(cu(t,e))},gt(t,e){return this.check(ni(t,e))},lt(t,e){return this.check(ti(t,e))},lte(t,e){return this.check(lu(t,e))},max(t,e){return this.check(lu(t,e))},positive(t){return this.check(ni(BigInt(0),t))},negative(t){return this.check(ti(BigInt(0),t))},nonpositive(t){return this.check(lu(BigInt(0),t))},nonnegative(t){return this.check(cu(BigInt(0),t))},multipleOf(t,e){return this.check(jo(t,e))}});function jS(t){return TD(bl,t)}var od=k("ZodBigIntFormat",(t,e)=>{$9.init(t,e),bl.init(t,e)});function MS(t){return zD(od,t)}function LS(t){return ZD(od,t)}var Q4=k("ZodSymbol",(t,e)=>{A9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>fk(t,n,r,u)});function NS(t){return RD(Q4,t)}var T4=k("ZodUndefined",(t,e)=>{D9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>hk(t,n,r,u)});function US(t){return jD(T4,t)}var I4=k("ZodNull",(t,e)=>{k9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>dk(t,n,r)});function z4(t){return MD(I4,t)}var Z4=k("ZodAny",(t,e)=>{S9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>gk()});function XS(){return LD(Z4)}var R4=k("ZodUnknown",(t,e)=>{_9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Ok()});function Ri(){return ND(R4)}var j4=k("ZodNever",(t,e)=>{w9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>mk(t,n,r)});function sd(t){return UD(j4,t)}var M4=k("ZodVoid",(t,e)=>{B9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>pk(t,n,r,u)});function VS(t){return XD(M4,t)}var ad=k("ZodDate",(t,e)=>{P9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(r,u,i)=>bk(t,r,u,i),t.min=(r,u)=>t.check(cu(r,u)),t.max=(r,u)=>t.check(lu(r,u));const n=t._zod.bag;t.minDate=n.minimum?new Date(n.minimum):null,t.maxDate=n.maximum?new Date(n.maximum):null});function qS(t){return VD(ad,t)}var L4=k("ZodArray",(t,e)=>{Mi(),F9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>wk(t,n,r,u),t.element=e.element},{min(t,e){return this.check(Zi(t,e))},nonempty(t){return this.check(Zi(1,t))},max(t,e){return this.check(sl(t,e))},length(t,e){return this.check(al(t,e))},unwrap(){return this.element}});function vl(t,e){return YD(L4,t,e)}function WS(t){const e=t._zod.def.shape;return ld(Object.keys(e))}var Cl=k("ZodObject",(t,e)=>{Mi(),z9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Bk(t,n,r,u),$e.installLazyProp(t,"shape",n=>n._zod.def.shape,!1)},{keyof(){return ld(Object.keys(this._zod.def.shape))},catchall(t){return this.clone({...this._zod.def,catchall:t})},passthrough(){return this.clone({...this._zod.def,catchall:Ri()})},loose(){return this.clone({...this._zod.def,catchall:Ri()})},strict(){return this.clone({...this._zod.def,catchall:sd()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(t){return $e.extend(this,t)},safeExtend(t){return $e.safeExtend(this,t)},merge(t){return $e.merge(this,t)},pick(t){return $e.pick(this,t)},omit(t){return $e.omit(this,t)},partial(...t){return $e.partial(El,this,t[0])},exactPartial(...t){return $e.partial(fd,this,t[0],"exactPartial")},required(...t){return $e.required(dd,this,t[0])}});function YS(t,e){const n={type:"object",shape:t??{},...$e.normalizeParams(e)};return new Cl(n)}function GS(t,e){return new Cl({type:"object",shape:t,catchall:sd(),...$e.normalizeParams(e)})}function HS(t,e){return new Cl({type:"object",shape:t,catchall:Ri(),...$e.normalizeParams(e)})}var yl=k("ZodUnion",(t,e)=>{kf.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>k4(t,n,r,u),t.options=e.options});function xl(t,e){return new yl({type:"union",options:t,...$e.normalizeParams(e)})}var N4=k("ZodXor",(t,e)=>{yl.init(t,e),Z9.init(t,e),t._zod.processJSONSchema=(n,r,u)=>k4(t,n,r,u),t.options=e.options});function KS(t,e){return new N4({type:"union",options:t,inclusive:!1,...$e.normalizeParams(e)})}var U4=k("ZodDiscriminatedUnion",(t,e)=>{yl.init(t,e),j9.init(t,e)});function JS(t,e,n){return new U4({type:"union",options:e,discriminator:t,...$e.normalizeParams(n)})}var X4=k("ZodIntersection",(t,e)=>{M9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Pk(t,n,r,u)});function V4(t,e){return new X4({type:"intersection",left:t,right:e})}var q4=k("ZodTuple",(t,e)=>{Mi(),Rg.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Fk(t,n,r,u)},{rest(t){return this.clone({...this._zod.def,rest:t})},partial(){const t=this._zod.def;if(t.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...t,items:t.items.map(e=>new El({type:"optional",innerType:e}))})}});function W4(t,e,n){const r=e instanceof xe,u=r?n:e,i=r?e:null;return new q4({type:"tuple",items:t,rest:i,...$e.normalizeParams(u)})}var Uo=k("ZodRecord",(t,e)=>{Mi(),L9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Qk(t,n,r,u),t.keyType=e.keyType,t.valueType=e.valueType});function Y4(t,e,n){return!e||!e._zod?new Uo({type:"record",keyType:Sa(),valueType:t,...$e.normalizeParams(e)}):new Uo({type:"record",keyType:t,valueType:e,...$e.normalizeParams(n)})}function e_(t,e,n){return new Uo({type:"record",keyType:t,valueType:e,...$e.normalizeParams(n),partial:!0})}function t_(t,e,n){return new Uo({type:"record",keyType:t,valueType:e,mode:"loose",...$e.normalizeParams(n)})}var G4=k("ZodMap",(t,e)=>{Mi(),N9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Sk(t,n,r,u),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...n)=>t.check(ui(...n)),t.nonempty=n=>t.check(ui(1,n)),t.max=(...n)=>t.check(ts(...n)),t.size=(...n)=>t.check(ol(...n))});function n_(t,e,n){return new G4({type:"map",keyType:t,valueType:e,...$e.normalizeParams(n)})}var H4=k("ZodSet",(t,e)=>{Mi(),U9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>_k(t,n,r,u),t.min=(...n)=>t.check(ui(...n)),t.nonempty=n=>t.check(ui(1,n)),t.max=(...n)=>t.check(ts(...n)),t.size=(...n)=>t.check(ol(...n))});function u_(t,e){return new H4({type:"set",valueType:t,...$e.normalizeParams(e)})}var Xo=k("ZodEnum",(t,e)=>{X9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(r,u,i)=>vk(t,r,u),t.enum=e.entries,t.options=Object.values(e.entries);const n=new Set(Object.keys(e.entries));t.extract=(r,u)=>{const i={};for(const o of r)if(n.has(o))i[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new Xo({...e,checks:[],...$e.normalizeParams(u),entries:i})},t.exclude=(r,u)=>{const i={...e.entries};for(const o of r)if(n.has(o))delete i[o];else throw new Error(`Key ${o} not found in enum`);return new Xo({...e,checks:[],...$e.normalizeParams(u),entries:i})}});function ld(t,e){const n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new Xo({type:"enum",entries:n,...$e.normalizeParams(e)})}function r_(t,e){return new Xo({type:"enum",entries:t,...$e.normalizeParams(e)})}var K4=k("ZodLiteral",(t,e)=>{V9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Ck(t,n,r,u),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function i_(t,e){return new K4({type:"literal",values:Array.isArray(t)?t:[t],...$e.normalizeParams(e)})}var J4=k("ZodFile",(t,e)=>{q9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Ek(t,n,r),t.min=(n,r)=>t.check(ui(n,r)),t.max=(n,r)=>t.check(ts(n,r)),t.mime=(n,r)=>t.check(If(Array.isArray(n)?n:[n],r))});function o_(t){return GD(J4,t)}var eO=k("ZodTransform",(t,e)=>{Mi(),W9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>kk(t,n,r,u),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ef(t.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push($e.issue(i,n.value,e));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=n.value),o.inst??(o.inst=t),n.issues.push($e.issue(o))}};const u=e.transform(n.value,n);return u instanceof Promise?u.then(i=>(n.value=i,n)):(n.value=u,n)}});function cd(t){return new eO({type:"transform",transform:t})}var El=k("ZodOptional",(t,e)=>{jg.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>_4(t,n,r,u),t.unwrap=()=>t._zod.def.innerType});function Vo(t){return new El({type:"optional",innerType:t})}var fd=k("ZodExactOptional",(t,e)=>{Y9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>_4(t,n,r,u),t.unwrap=()=>t._zod.def.innerType});function tO(t){return new fd({type:"optional",innerType:t})}var nO=k("ZodNullable",(t,e)=>{G9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Tk(t,n,r,u),t.unwrap=()=>t._zod.def.innerType});function _a(t){return new nO({type:"nullable",innerType:t})}function s_(t){return Vo(_a(t))}var uO=k("ZodDefault",(t,e)=>{H9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Zk(t,n,r,u),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function rO(t,e){return new uO({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():$e.shallowClone(e)}})}var iO=k("ZodPrefault",(t,e)=>{K9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Rk(t,n,r,u),t.unwrap=()=>t._zod.def.innerType});function oO(t,e){return new iO({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():$e.shallowClone(e)}})}var dd=k("ZodNonOptional",(t,e)=>{J9.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Ik(t,n,r,u),t.unwrap=()=>t._zod.def.innerType});function sO(t,e){return new dd({type:"nonoptional",innerType:t,...$e.normalizeParams(e)})}var aO=k("ZodSuccess",(t,e)=>{eD.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>$k(t,n,r),t.unwrap=()=>t._zod.def.innerType});function a_(t){return new aO({type:"success",innerType:t})}var lO=k("ZodCatch",(t,e)=>{tD.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>jk(t,n,r,u),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function cO(t,e){return new lO({type:"catch",innerType:t,catchValue:typeof e=="function"?e:$e.constantCatch(e)})}var fO=k("ZodNaN",(t,e)=>{nD.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>yk(t,n,r,u)});function l_(t){return WD(fO,t)}var $l=k("ZodPipe",(t,e)=>{Mg.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Mk(t,n,r,u),t.in=e.in,t.out=e.out});function Tc(t,e){return new $l({type:"pipe",in:t,out:e})}var Al=k("ZodCodec",(t,e)=>{$l.init(t,e),Lg.init(t,e)});function c_(t,e,n){return new Al({type:"pipe",in:t,out:e,transform:n.decode,reverseTransform:n.encode})}function f_(t){const e=t._zod.def;return new Al({type:"pipe",in:e.out,out:e.in,transform:e.reverseTransform,reverseTransform:e.transform})}var dO=k("ZodPreprocess",(t,e)=>{$l.init(t,e),uD.init(t,e)}),hO=k("ZodReadonly",(t,e)=>{rD.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Lk(t,n,r,u),t.unwrap=()=>t._zod.def.innerType});function pO(t){return new hO({type:"readonly",innerType:t})}var mO=k("ZodTemplateLiteral",(t,e)=>{iD.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>xk(t,n,r)});function d_(t,e){return new mO({type:"template_literal",parts:t,...$e.normalizeParams(e)})}var gO=k("ZodLazy",(t,e)=>{Ng.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Uk(t,n,r,u),t.unwrap=()=>t._zod.def.getter()});function OO(t){return new gO({type:"lazy",getter:t})}var bO=k("ZodPromise",(t,e)=>{sD.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Nk(t,n,r,u),t.unwrap=()=>t._zod.def.innerType});function h_(t){return new bO({type:"promise",innerType:t})}var vO=k("ZodFunction",(t,e)=>{oD.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Dk(t,n,r,u)});function Ic(t){return new vO({type:"function",input:Array.isArray(t?.input)?W4(t?.input):t?.input??vl(Ri()),output:t?.output??Ri()})}var Dl=k("ZodCustom",(t,e)=>{aD.init(t,e),Ae.init(t,e),t._zod.processJSONSchema=(n,r,u)=>Ak(t,n,r,u)});function p_(t){const e=new pt({check:"custom"});return e._zod.check=t,e}function m_(t,e){return HD(Dl,t??(()=>!0),e)}function CO(t,e={}){return KD(Dl,t,e)}function yO(t,e){return JD(t,e)}var g_=tk,O_=nk;function b_(t,e={}){const n=new Dl({type:"custom",check:"custom",fn:r=>r instanceof t,abort:!0,...$e.normalizeParams(e)});return n._zod.bag.Class=t,n._zod.check=r=>{r.value instanceof t||r.issues.push({code:"invalid_type",expected:t.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var v_=(...t)=>uk({Codec:Al,Boolean:Ol,String:cl},...t);function C_(t){const e=OO(()=>xl([Sa(t),P4(),F4(),z4(),vl(e),Y4(Sa(),e)]));return e}function y_(t,e){return new dO({type:"pipe",in:cd(t),out:e})}var OH={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 bH(t){Vt({customError:t})}function vH(){return Vt().customError}var Em;Em||(Em={});var xO={};Sr(xO,{ZodISODate:()=>dl,ZodISODateTime:()=>fl,ZodISODuration:()=>pl,ZodISOTime:()=>hl,date:()=>yH,datetime:()=>CH,duration:()=>EH,time:()=>xH});function CH(t){return O4(fl,t)}function yH(t){return b4(dl,t)}function xH(t){return v4(hl,t)}function EH(t){return C4(pl,t)}var K={...Vk,...qk,iso:xO},$H=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 AH(t,e){const n=t.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}function SC(t,e){return t.map((n,r)=>r<e?n:n.optional())}function DH(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function kH(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const n=t.slice(1).split("/").filter(Boolean);if(n.length===0)return e.rootSchema;const r=e.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){const u=n[1]===void 0?void 0:DH(n[1]);if(!u||!e.defs[u])throw new Error(`Reference not found: ${t}`);return e.defs[u]}throw new Error(`Reference not found: ${t}`)}function SH(t,e){return K.transform(r=>r).check(r=>{const u=r.value;if(!(typeof u!="object"||u===null||Array.isArray(u)))for(const i of Object.getOwnPropertyNames(u)){const o=e.safeParse(i);o.success||r.issues.push({code:"invalid_key",origin:"record",issues:o.error.issues,input:i,path:[i],continue:!0})}}).pipe(t)}function _C(t,e){if(t!==!1)return t===void 0||t===!0?K.any():Dn(t,e)}var _H=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function x_(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return K.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){const u=t.$ref;if(e.refs.has(u))return e.refs.get(u);if(e.processing.has(u))return K.lazy(()=>{if(!e.refs.has(u))throw new Error(`Circular reference not resolved: ${u}`);return e.refs.get(u)});e.processing.add(u);const i=kH(u,e),o=Dn(i,e);return e.refs.set(u,o),e.processing.delete(u),o}if(t.enum!==void 0){const u=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&u.length===1&&u[0]===null)return K.null();if(u.length===0)return K.never();if(u.length===1)return K.literal(u[0]);if(u.every(o=>typeof o=="string"))return K.enum(u);const i=u.map(o=>K.literal(o));return i.length<2?i[0]:K.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return K.literal(t.const);const n=t.type;if(Array.isArray(n)){const u=n.map(i=>{const o={...t,type:i};return x_(o,e)});return u.length===0?K.never():u.length===1?u[0]:K.union(u)}if(!n)return K.any();let r;switch(n){case"string":{let u=K.string();if(t.format){const i=t.format;i==="email"?u=u.check(K.email()):i==="uri"||i==="uri-reference"?u=u.check(K.url()):i==="uuid"||i==="guid"?u=u.check(K.uuid()):i==="date-time"?u=u.check(K.iso.datetime({offset:!0})):i==="date"?u=u.check(K.iso.date()):i==="time"?u=u.check(K.regex(_H)):i==="duration"?u=u.check(K.iso.duration()):i==="hostname"?u=u.check(K.hostname()):i==="ipv4"?u=u.check(K.ipv4()):i==="ipv6"?u=u.check(K.ipv6()):i==="mac"?u=u.check(K.mac()):i==="cidr"?u=u.check(K.cidrv4()):i==="cidr-v6"?u=u.check(K.cidrv6()):i==="base64"?u=u.check(K.base64()):i==="base64url"?u=u.check(K.base64url()):i==="e164"?u=u.check(K.e164()):i==="credit_card"?u=u.check(K.creditCard()):i==="jwt"?u=u.check(K.jwt()):i==="emoji"?u=u.check(K.emoji()):i==="nanoid"?u=u.check(K.nanoid()):i==="cuid"?u=u.check(K.cuid()):i==="cuid2"?u=u.check(K.cuid2()):i==="ulid"?u=u.check(K.ulid()):i==="xid"?u=u.check(K.xid()):i==="ksuid"&&(u=u.check(K.ksuid()))}typeof t.minLength=="number"&&(u=u.min(t.minLength)),typeof t.maxLength=="number"&&(u=u.max(t.maxLength)),t.pattern&&(u=u.regex(new RegExp(t.pattern))),r=u;break}case"number":case"integer":{let u=n==="integer"?K.number().int():K.number();typeof t.minimum=="number"&&t.exclusiveMinimum!==!0&&(u=u.min(t.minimum)),typeof t.maximum=="number"&&t.exclusiveMaximum!==!0&&(u=u.max(t.maximum)),typeof t.exclusiveMinimum=="number"?u=u.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(u=u.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?u=u.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(u=u.lt(t.maximum)),typeof t.multipleOf=="number"&&(u=u.multipleOf(t.multipleOf)),r=u;break}case"boolean":{r=K.boolean();break}case"null":{r=K.null();break}case"object":{const u={},i=t.properties||{},o=new Set(t.required||[]),s=typeof t.additionalProperties=="object"?Dn(t.additionalProperties,e):void 0;for(const[a,l]of Object.entries(i)){const c=Dn(l,e);wt(u,a,o.has(a)?c:c.optional())}if(t.patternProperties){const a=t.patternProperties,l=Object.keys(a),c=[];for(const d of l){const h=Dn(a[d],e),p=K.string().regex(new RegExp(d));c.push(K.looseRecord(p,h))}const f=[];if(Object.keys(u).length>0&&f.push(K.object(u).passthrough()),f.push(...c),f.length===0)r=K.object({}).passthrough();else if(f.length===1)r=f[0];else{let d=K.intersection(f[0],f[1]);for(let h=2;h<f.length;h++)d=K.intersection(d,f[h]);r=d}if(t.additionalProperties===!1){const d=Object.keys(u),h=l.map(m=>new RegExp(m)),p=r;r=r.check(m=>{if(!$r(m.value))return;const g=[];for(const C of Object.keys(m.value))d.includes(C)||h.some(b=>b.test(C))||g.push(C);g.length&&m.issues.push({code:"unrecognized_keys",keys:g,input:m.value,inst:p})})}}else{const a=K.object(u);t.additionalProperties===!1?r=a.strict():s?r=a.catchall(s):r=a.passthrough()}if(t.propertyNames!==void 0&&t.propertyNames!==!0){const a=typeof t.propertyNames=="object"&&t.propertyNames.type===void 0?{type:"string",...t.propertyNames}:t.propertyNames;r=SH(r,Dn(a,e))}break}case"array":{const u=t.prefixItems,i=t.items;if(u&&Array.isArray(u)){const o=typeof t.minItems=="number"?t.minItems:0,s=u.map(f=>Dn(f,e)),a=SC(s,o),l=Array.isArray(i)?void 0:_C(i,e),c=K.tuple(a);r=l?c.rest(l):c,typeof t.minItems=="number"&&(r=r.check(K.minLength(t.minItems))),typeof t.maxItems=="number"&&(r=r.check(K.maxLength(t.maxItems)))}else if(Array.isArray(i)){const o=typeof t.minItems=="number"?t.minItems:0,s=i.map(f=>Dn(f,e)),a=SC(s,o),l=_C(t.additionalItems,e),c=K.tuple(a);r=l?c.rest(l):c,typeof t.minItems=="number"&&(r=r.check(K.minLength(t.minItems))),typeof t.maxItems=="number"&&(r=r.check(K.maxLength(t.maxItems)))}else if(i!==void 0){const o=Dn(i,e);let s=K.array(o);typeof t.minItems=="number"&&(s=s.min(t.minItems)),typeof t.maxItems=="number"&&(s=s.max(t.maxItems)),r=s}else r=K.array(K.any());break}default:throw new Error(`Unsupported type: ${n}`)}return r}function Dn(t,e){if(typeof t=="boolean")return t?K.any():K.never();let n=x_(t,e);const r=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){const s=t.anyOf.map(l=>Dn(l,e)),a=K.union(s);n=r?K.intersection(n,a):a}if(t.oneOf&&Array.isArray(t.oneOf)){const s=t.oneOf.map(l=>Dn(l,e)),a=K.xor(s);n=r?K.intersection(n,a):a}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)n=r?n:K.any();else{let s=r?n:Dn(t.allOf[0],e);const a=r?0:1;for(let l=a;l<t.allOf.length;l++)s=K.intersection(s,Dn(t.allOf[l],e));n=s}t.nullable===!0&&e.version==="openapi-3.0"&&(n=K.nullable(n)),t.readOnly===!0&&(n=K.readonly(n)),t.default!==void 0&&(n=n.default(t.default));const u={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const s of i)s in t&&(u[s]=t[s]);const o=["contentEncoding","contentMediaType","contentSchema"];for(const s of o)s in t&&(u[s]=t[s]);t.propertyNames!==void 0&&t.type==="object"&&t.$ref===void 0&&(u.propertyNames=t.propertyNames);for(const s of Object.keys(t))$H.has(s)||wt(u,s,t[s]);return Object.keys(u).length>0&&e.registry.add(n,u),t.description&&(n=n.describe(t.description)),n}function wH(t,e){if(typeof t=="boolean")return t?K.any():K.never();let n;try{n=JSON.parse(JSON.stringify(t))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}const r=AH(n,e?.defaultTarget),u=n.$defs||n.definitions||{},i={version:r,defs:u,refs:new Map,processing:new Set,rootSchema:n,registry:e?.registry??ou};return Dn(n,i)}var wC=Symbol("z.visit/resolving");function EO(t,e){const n=typeof e=="function"?e:(o,s)=>{const a=e[o._zod.def.type];return a?a(o,s):o},r=new Map;function u(o){const s=r.get(o);if(s===wC)return new Ng({type:"lazy",getter:()=>r.get(o)});if(s!==void 0)return s;r.set(o,wC);const a=i(o),l=n(a,a!==o);return r.set(o,l),l}function i(o){const s=o._zod.def;switch(s.type){case"object":{const l=s.shape,c=Object.keys(l);let f=!1;const d={};for(const p of c){const m=u(l[p]);m!==l[p]&&(f=!0),d[p]=m}let h=s.catchall;return s.catchall&&(h=u(s.catchall),h!==s.catchall&&(f=!0)),f?ct(o,{...s,shape:d,catchall:h}):o}case"array":{const l=u(s.element);return l===s.element?o:ct(o,{...s,element:l})}case"tuple":{const l=s.items;let c=!1;const f=[];for(const h of l){const p=u(h);p!==h&&(c=!0),f.push(p)}let d=s.rest;return s.rest&&(d=u(s.rest),d!==s.rest&&(c=!0)),c?ct(o,{...s,items:f,rest:d}):o}case"record":case"map":{const l=u(s.keyType),c=u(s.valueType);return l===s.keyType&&c===s.valueType?o:ct(o,{...s,keyType:l,valueType:c})}case"set":{const l=u(s.valueType);return l===s.valueType?o:ct(o,{...s,valueType:l})}case"union":{const l=s.options;let c=!1;const f=[];for(const d of l){const h=u(d);h!==d&&(c=!0),f.push(h)}return c?ct(o,{...s,options:f}):o}case"intersection":{const l=u(s.left),c=u(s.right);return l===s.left&&c===s.right?o:ct(o,{...s,left:l,right:c})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{const l=u(s.innerType);return l===s.innerType?o:ct(o,{...s,innerType:l})}case"pipe":{const l=u(s.in),c=u(s.out);return l===s.in&&c===s.out?o:ct(o,{...s,in:l,out:c})}case"function":{const l=u(s.input),c=u(s.output);return l===s.input&&c===s.output?o:ct(o,{...s,input:l,output:c})}case"lazy":{const l=s.getter,{_cachedInner:c,...f}=s;return ct(o,{...f,getter:()=>u(l())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return o;default:return o}}return u(t)}function BH(t){return EO(t,{object:e=>e.partial(),union:e=>{const n=e._zod.def;return n.discriminator===void 0?e:xl(n.options)}})}function PH(t,e){if(!e?.length)return t;const n=t._zod.def;return ct(t,ur(n,{checks:[...n.checks??[],...e]}),{parent:!0})}function E_(t){return PH(t.out,t.checks)}function FH(t){return t.in._zod.traits.has("$ZodTransform")?E_(t):t.in}function QH(t){return EO(t,{pipe:e=>FH(e._zod.def),default:(e,n)=>n?Vo(e._zod.def.innerType):e,catch:(e,n)=>n?e._zod.def.innerType:e})}function TH(t){return EO(t,{pipe:e=>E_(e._zod.def),prefault:(e,n)=>n?e._zod.def.innerType:e})}var $_={};Sr($_,{bigint:()=>RH,boolean:()=>ZH,date:()=>jH,number:()=>zH,string:()=>IH});function IH(t){return xD(cl,t)}function zH(t){return kD(gl,t)}function ZH(t){return QD(Ol,t)}function RH(t){return ID(bl,t)}function jH(t){return qD(ad,t)}var MH=/^[A-Za-z0-9.-]+$/,LH=/^LicenseRef-[A-Za-z0-9.-]+$/,NH=/^DocumentRef-[A-Za-z0-9.-]+:LicenseRef-[A-Za-z0-9.-]+$/;function BC(t){return t.startsWith("LicenseRef-")||t.includes(":")}function PC(t){return/[A-Za-z0-9.-]/.test(t)}function UH(t){const e=[];let n=!0,r=0;for(;r<t.length;){const u=t[r];if(u===" "){n=!0,r++;continue}const i=n;if(n=!1,u==="("){e.push({kind:"lparen",spaceBefore:i}),r++;continue}if(u===")"){e.push({kind:"rparen",spaceBefore:i}),r++;continue}if(u==="+"){e.push({kind:"plus",spaceBefore:i}),r++;continue}if(PC(u)){const o=r;for(;r<t.length&&(PC(t[r])||t[r]===":");)r++;const s=t.slice(o,r);if(s==="AND"||s==="OR"||s==="WITH"){e.push({kind:"op",value:s,spaceBefore:i});continue}if(s.includes(":")){if(!NH.test(s))return null}else if(s.startsWith("LicenseRef-")){if(!LH.test(s))return null}else if(!MH.test(s))return null;e.push({kind:"id",value:s,spaceBefore:i});continue}return null}return e}function XH(t){let e=0,n=null,r=0;for(;r<t.length;){const u=t[r];if(n===null){if(u.kind==="lparen"){e++,r++;continue}if(u.kind==="id"){const i=t[r+1];if(i?.kind==="plus"){if(i.spaceBefore!==!1||BC(u.value))return!1;r+=2}else r+=1;n="simple";continue}return!1}if(u.kind==="rparen"){if(e===0)return!1;e--,n="paren",r++;continue}if(u.kind==="op"){if(u.value==="WITH"){if(u.spaceBefore!==!0||n!=="simple")return!1;const a=t[r+1];if(a?.kind!=="id"||a.spaceBefore!==!0||BC(a.value))return!1;n="exception",r+=2;continue}if(!(u.spaceBefore===!0||t[r-1]?.kind==="rparen"))return!1;const o=t[r+1];if(o===void 0||!(o.kind==="lparen"||o.spaceBefore===!0))return!1;n=null,r++;continue}return!1}return n!==null&&e===0}function VH(t){if(typeof t!="string"||t.trim()!==t||t.length===0)return!1;const e=UH(t);return e===null||e.length===0?!1:XH(e)}var qH=["storage","acl","notify","ai","realtime","mail"],WH=F.enum(qH),YH=F.enum(["worker","node"]),GH=["core","self"],Xh=F.enum(GH),HH=F.object({accepts:F.array(Xh).min(1),preferred:Xh.optional(),declaration:Xh.optional()}),KH=F.object({key:F.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/),label:F.string().min(1),type:F.enum(["string","secret","number","boolean","enum","url","json","oauth"]),required:F.boolean().optional(),default:F.union([F.string(),F.number(),F.boolean()]).optional(),options:F.array(F.string()).min(1).optional(),test:F.string().optional()}),JH=F.array(KH),eK=F.object({min:F.string().regex(/^\d+\.\d+$/),max:F.string().regex(/^\d+\.\d+$/)}).refine(t=>tK(t.min,t.max)<=0,{message:"compat.min 必须 ≤ compat.max"});function tK(t,e){const[n,r]=t.split(".").map(Number),[u,i]=e.split(".").map(Number);return(n??0)-(u??0)||(r??0)-(i??0)}var nK=F.string().regex(/^[a-z][a-z0-9_]*$/);F.object({id:F.string().regex(/^[a-z][a-z0-9-]+$/),version:F.string().regex(/^\d+\.\d+\.\d+$/),runtimes:F.array(YH).min(1),route:F.string().startsWith("/m/"),permissions:F.array(WH).optional(),storage:HH.optional(),tables:F.array(nK).optional(),config:JH.optional(),compat:eK.optional(),description:F.string().optional(),icon:F.string().regex(/^[a-z0-9-]+$/).optional(),coreOrigin:F.string().optional(),license:F.string().refine(VH,{message:'license 不是合法的 SPDX 表达式形状(如 MIT / Apache-2.0 / "MIT OR Apache-2.0")'}).optional()}).superRefine((t,e)=>{const n=t.storage?.accepts,r=t.storage?.declaration,u=(t.tables?.length??0)>0;if(u&&n&&!n.includes("core")&&e.addIssue({code:"custom",path:["tables"],message:"declared tables 但 storage.accepts 不含 core——自建表只存在于 core(核心代管,分表隔离)形态(docs/modules.md §4 护栏②)"}),u&&r==="self"&&e.addIssue({code:"custom",path:["tables"],message:"storage.declaration=self(自托管)与 tables 申报矛盾——自建表落点须选 core"}),t.storage?.preferred&&n&&!n.includes(t.storage.preferred)&&e.addIssue({code:"custom",path:["storage","preferred"],message:`storage.preferred=${t.storage.preferred} 不在 accepts 内`}),r&&n&&!n.includes(r)&&e.addIssue({code:"custom",path:["storage","declaration"],message:`storage.declaration=${r} 不在 accepts=[${n.join(", ")}] 内(#55:选了声明之外的模式即拒绝安装)`}),t.coreOrigin==="*"&&e.addIssue({code:"custom",path:["coreOrigin"],message:'coreOrigin 禁止 "*"(决策 #63):通配等于向任意页面泄露模块 token,必须填壳的确切 https origin'}),t.coreOrigin!==void 0&&t.coreOrigin!==""){const i=uK(t.coreOrigin);(i===null||i!==t.coreOrigin||!i.startsWith("https://"))&&e.addIssue({code:"custom",path:["coreOrigin"],message:`coreOrigin=${t.coreOrigin} 不是合法的 https origin(应为 https://host[:port] 形态,决策 #63)`})}});function uK(t){try{const e=new URL(t);return e.protocol!=="https:"&&e.protocol!=="http:"?null:e.origin}catch{return null}}F.object({package:F.string().min(1),version:F.string().min(1),commit:F.string().regex(/^[0-9a-f]{40}$/,"commit 必须是 40 位十六进制 SHA"),builtAt:F.string().min(1)});var rK=F.object({iss:F.string(),sub:F.string(),aud:F.string(),iat:F.number(),exp:F.number(),act:F.object({sub:F.string()}).optional(),name:F.string().optional(),avatar_url:F.string().optional(),profile_revision:F.number().int().nonnegative().optional(),username:F.string().optional(),email:F.string().optional(),identity_source:F.enum(["builtin","oidc"]).optional()}),iK={"unself.color.bg":"#faf9f7","unself.color.surface":"#ffffff","unself.color.surface-hover":"#fafaf9","unself.color.surface-active":"#f5f5f4","unself.color.border":"#e4e4e1","unself.color.text":"#1c1917","unself.color.text-secondary":"#78716c","unself.color.text-tertiary":"#a8a29e","unself.color.primary":"#4338ca","unself.color.primary-hover":"#3730a3","unself.color.primary-soft":"#e0e7ff","unself.color.danger":"#dc2626","unself.color.danger-soft":"#fee2e2","unself.color.success":"#16a34a","unself.color.info":"#0284c7","unself.color.warning":"#d97706","unself.color.scrim":"rgb(0 0 0 / 0.35)","unself.space.1":"4px","unself.space.2":"8px","unself.space.3":"12px","unself.space.4":"16px","unself.space.5":"20px","unself.space.6":"24px","unself.space.8":"32px","unself.radius.sm":"4px","unself.radius.md":"8px","unself.radius.lg":"12px","unself.radius.full":"9999px","unself.font-size.2xs":"11px","unself.font-size.xs":"12px","unself.font-size.sm":"13px","unself.font-size.base":"14px","unself.font-size.lg":"16px","unself.font-size.xl":"20px","unself.font-size.2xl":"28px","unself.shadow.card":"0 1px 2px rgb(0 0 0 / 0.05)","unself.shadow.pop":"0 4px 16px rgb(0 0 0 / 0.1)","unself.duration.fast":"150ms","unself.duration.normal":"250ms","unself.duration.slow":"400ms","unself.ease.out":"cubic-bezier(0.16, 1, 0.3, 1)","unself.ease.page-turn":"cubic-bezier(0.4, 0, 0.2, 1)","unself.ease.spring":"linear(0, 0.035 4%, 0.117 8%, 0.221 12%, 0.331 16%, 0.438 20%, 0.536 24%, 0.622 28%, 0.696 32%, 0.759 36%, 0.811 40%, 0.853 44%, 0.886 48%, 0.913 52%, 0.934 56%, 0.951 60%, 0.964 64%, 0.973 68%, 0.981 72%, 0.986 76%, 0.99 80%, 0.993 84%, 0.995 88%, 0.997 92%, 0.998 96%, 1)","unself.motion.press-scale":"0.93","unself.motion.lift-y":"2px","unself.focus-ring":"2px solid var(--unself-color-primary)","unself.duration.shake":"450ms","unself.duration.spin":"800ms","unself.duration.shimmer":"1400ms","unself.duration.wave":"6000ms"},A_=iK,D_=Object.keys(A_),zc=F.record(F.string(),F.string().min(1)).superRefine((t,e)=>{const n=new Set(D_);for(const r of Object.keys(t))n.has(r)||e.addIssue({code:"custom",message:`unknown theme token "${r}" (contract list is closed, see PRODUCT_SPEC §6.5.2)`,path:[r]})});F.object({schemaVersion:F.literal(1),name:F.string().min(1),tokens:zc});function k_(t){if(!t.startsWith("unself."))throw new Error(`theme token name must start with "unself.": ${t}`);return`--${t.replaceAll(".","-")}`}D_.map(k_);F.discriminatedUnion("type",[F.object({type:F.literal("ready")}),F.object({type:F.literal("token"),token:F.string()}),F.object({type:F.literal("tokens"),tokens:zc}),F.object({type:F.literal("navigate"),path:F.string()}),F.object({type:F.literal("notify"),title:F.string(),body:F.string().optional()}),F.object({type:F.literal("theme"),mode:F.enum(["light","dark"])})]);var oK=F.object({schemaVersion:F.number().int().min(1),rows:F.array(F.unknown())}),sK=F.object({key:F.string().min(1),size:F.number().int().min(0).optional(),contentType:F.string().optional()});F.object({version:F.literal(1),moduleId:F.string().regex(/^[a-z][a-z0-9-]+$/),exportedAt:F.iso.datetime(),tables:F.record(F.string(),oK),files:F.array(sK)});F.object({emailPrefix:F.string(),displayName:F.string()});F.object({email:F.string().email()});var aK=F.object({email:F.string().email()});aK.extend({password:F.string()});var lK=F.enum(["pending","approved","rejected","consumed","expired"]),cK=F.enum(["pending","approved","activated"]);F.object({status:cK,mailEnabled:F.boolean(),smtpEnabled:F.boolean()});F.object({tokenHash:F.string(),status:lK,personalEmail:F.string().email(),emailPrefix:F.string(),displayName:F.string(),createdAt:F.string(),expiresAt:F.string()});F.object({type:F.string(),template:F.string(),inApp:F.boolean(),email:F.boolean()});F.object({id:F.string(),userId:F.string().nullable(),invitedEmail:F.string().email().nullable(),type:F.string(),payload:F.unknown(),isRead:F.boolean(),createdAt:F.string()});F.object({ok:F.boolean()});var fK=120*1e3;function dK(t){const e=t.split(".");if(e.length!==3)throw new Error("malformed token: expected 3 parts");const n=e[1];if(!n)throw new Error("malformed token: empty payload");const r=n.replace(/-/g,"+").replace(/_/g,"/"),u=r+"=".repeat((4-r.length%4)%4),i=Uint8Array.from(atob(u),o=>o.charCodeAt(0));return JSON.parse(new TextDecoder().decode(i))}function hK(t){const{coreOrigin:e}=t,n=e??"*",r=O=>{typeof window>"u"||window.parent.postMessage(O,n)},u=()=>{r({type:"ready"})},i=O=>{if(e===void 0||O.origin!==e)return!1;const y=O.data;return y!==null&&typeof y=="object"&&y.type==="token"&&typeof y.token=="string"},o=O=>{if(e===void 0||O.origin!==e)return!1;const y=O.data;return y!==null&&typeof y=="object"&&y.type==="tokens"},s=()=>({...A_,...f??{},...d}),a=()=>{if(typeof document>"u")return;const O=document.documentElement.style;for(const[y,$]of Object.entries(s()))O.setProperty(k_(y),$)},l=O=>{if(!o(O))return;const y=zc.safeParse(O.data.tokens);y.success&&(f=y.data,a())},c=()=>{h!==null||typeof window>"u"||(h=l,window.addEventListener("message",h))};let f=null,d={},h=null,p=null,m=null,g;const C=O=>rK.parse(dK(O)),b=O=>{p!==null&&(clearTimeout(p),p=null);const y=C(O),$=(y.exp-y.iat)*1e3;if($<=0)throw new Error("module-sdk: malformed token claims: exp must be after iat");const x=Math.floor(Date.now()/1e3),_=(y.exp-x)*1e3;if(_<=0){u();return}const R=Math.min(fK,$/3),ue=Math.max(0,_-R);p=setTimeout(()=>{p=null,u()},ue)};return{ready(){c(),u()},waitForToken(){return new Promise((O,y)=>{if(typeof window>"u"){y(new Error("module-sdk: window is not available"));return}if(e===void 0){y(new Error("module-sdk: coreOrigin is not configured; refusing to accept token messages from any origin. Set CreateModuleSDKOptions.coreOrigin to the shell origin."));return}const $=x=>{i(x)&&(window.removeEventListener("message",$),O(x.data.token))};window.addEventListener("message",$)})},startTokenLoop(O,y){if(typeof window>"u")throw new Error("module-sdk: window is not available");if(e===void 0)throw new Error("module-sdk: coreOrigin is not configured; refusing to start token loop. Set CreateModuleSDKOptions.coreOrigin to the shell origin.");m!==null&&(window.removeEventListener("message",m),m=null),g=y,b(O),m=$=>{if(!i($))return;const x=$.data.token;b(x),g?.(x)},window.addEventListener("message",m)},stopTokenLoop(){p!==null&&(clearTimeout(p),p=null),m!==null&&(typeof window<"u"&&window.removeEventListener("message",m),m=null),g=void 0},navigate(O){r({type:"navigate",path:O})},notify(O,y){r(y===void 0?{type:"notify",title:O}:{type:"notify",title:O,body:y})},theme(O){if(O!=="light"&&O!=="dark")throw new Error(`module-sdk: invalid theme mode: ${String(O)}`);r({type:"theme",mode:O})},decodeContext(O){return C(O)},getTokens(){return c(),Promise.resolve(s())},applyTheme(O){c();const y=zc.safeParse(O);if(!y.success){const $=y.error.issues.map(x=>x.message).join("; ");throw new Error(`module-sdk: invalid theme tokens: ${$}`)}Object.assign(d,y.data),a()}}}var pK="unself-shell-origin";function Vh(t){if(typeof t!="string")return!1;const e=t.trim();return e!==""&&e!=="null"}function mK(){const t=globalThis,e=t.location?.ancestorOrigins?.[0];if(Vh(e))return e.trim();const n=t.document?.querySelector?.(`meta[name="${pK}"]`)?.getAttribute?.("content")??null;if(Vh(n))return n.trim();const r=t.location?.origin;return Vh(r)?r.trim():void 0}const S_=15e3;function gK(t={}){t.moduleId;const e=mK(),n=hK({coreOrigin:e});let r=null,u="",i=null;const o=l=>{r=l,u=OK(c=>n.decodeContext(c),l),i?.(l),i=null};n.ready(),n.waitForToken().then(o).catch(()=>{});const s=l=>o(l);return{getToken:()=>r,getUserId:()=>u,handshake:(l=S_)=>new Promise((c,f)=>{if(r!==null){c();return}const d=setTimeout(()=>{i=null,f(new Error("连接超时:未能从平台取得身份令牌"))},l);i=h=>{clearTimeout(d),n.startTokenLoop(h,s),c()}}),dispose:()=>{i=null,n.stopTokenLoop()}}}function OK(t,e){if(!e)return"";try{const n=t(e).sub;return typeof n=="string"&&n.trim()?n:""}catch{return""}}const bK={class:"docs-app"},vK={key:0,class:"center","data-test":"handshake-pending"},CK={key:1,class:"center","data-test":"handshake-failed"},yK={key:1,class:"editor-view"},xK={key:1,class:"center","data-test":"editor-loading"},EK={key:2,class:"center error",role:"alert","data-test":"editor-error"},$K=ii({__name:"App",setup(t){const e=Yt(null),n=Yt(null),r=Yt(""),u=Yt("pending"),i=Yt(""),o=Yt(YX()),s=Yt({kind:"list"}),a=Yt(null),l=Yt(!1),c=Yt(""),f=KU({getToken:()=>n.value}),d=WX({getToken:()=>n.value});function h(x){return x instanceof Mn?H1(x.code):"网络不可用,请稍后重试。"}async function p(){o.value=Xv(o.value);try{const x=await d.listDocs({limit:Zh,offset:0});o.value=Vv(o.value,x)}catch(x){o.value=m0(o.value,x instanceof Mn?x.code:"unknown")}}async function m(){if(nV(o.value)){o.value=Xv(o.value);try{const x=await d.listDocs({limit:Zh,offset:o.value.nextOffset});o.value=HX(o.value,x)}catch(x){o.value=m0(o.value,x instanceof Mn?x.code:"unknown")}}}async function g(){try{const x=await d.createDoc({title:"未命名文档"});o.value=KX(o.value,x),await b(x.id)}catch(x){o.value=m0(o.value,x instanceof Mn?x.code:"unknown")}}async function C(x){o.value=JX(o.value,x);try{await d.deleteDoc(x),o.value=eV(o.value,x)}catch(_){o.value=tV(o.value,x,_ instanceof Mn?_.code:"unknown")}}async function b(x){s.value={kind:"editor",id:x},a.value=null,c.value="",l.value=!0;try{a.value=await f.getDoc(x)}catch(_){c.value=h(_)}finally{l.value=!1}}function O(){a.value!==null&&!globalThis.confirm("返回列表?编辑器里未保存的修改会丢失。")||(s.value={kind:"list"},a.value=null,o.value=GX(o.value),y())}async function y(){try{const x=await d.listDocs({limit:Zh,offset:0});o.value=Vv(o.value,x)}catch(x){o.value=m0(o.value,x instanceof Mn?x.code:"unknown")}}const $=ft(()=>s.value.kind==="list");return Pa(async()=>{const x=gK({moduleId:"docs"});e.value=x;try{await x.handshake(S_),n.value=x.getToken(),r.value=x.getUserId(),u.value="ready",await p()}catch(_){u.value="failed",i.value=_ instanceof Error?_.message:"连接失败"}}),qc(()=>{e.value?.dispose()}),(x,_)=>(Ce(),Me("main",bK,[u.value==="pending"?(Ce(),Me("div",vK," 正在连接工作台… ")):u.value==="failed"?(Ce(),Me("div",CK,[qe(De(I8),{title:"无法打开文档模块",message:i.value},null,8,["message"]),_[0]||(_[0]=Ve("p",{class:"fail-hint"},"请刷新页面;若持续失败,联系管理员检查模块接入。",-1))])):(Ce(),Me(dn,{key:2},[$.value?(Ce(),Kn(qX,{key:0,state:o.value,"me-id":r.value,onOpen:b,onCreate:g,onDelete:C,onRetry:p,onLoadMore:m},null,8,["state","me-id"])):(Ce(),Me("section",yK,[a.value?Ft("",!0):(Ce(),Kn(De(Jn),{key:0,variant:"outline",size:"sm",class:"back-pill back-fallback","data-test":"back-to-list",onClick:O},{default:hn(()=>[qe(De(x3),{size:14,"aria-hidden":"true"}),_[1]||(_[1]=Kt(" 返回列表 ",-1))]),_:1})),l.value?(Ce(),Me("p",xK,"正在打开文档…")):c.value?(Ce(),Me("p",EK,at(c.value),1)):a.value?(Ce(),Kn(vX,{key:3,doc:a.value,api:De(f)},{leading:hn(()=>[qe(De(Jn),{variant:"outline",size:"sm",class:"back-pill","data-test":"back-to-list",onClick:O},{default:hn(()=>[qe(De(x3),{size:14,"aria-hidden":"true"}),_[2]||(_[2]=Kt(" 返回列表 ",-1))]),_:1})]),_:1},8,["doc","api"])):Ft("",!0)]))],64))]))}}),AK=oi($K,[["__scopeId","data-v-7bfca1f8"]]);p8(AK).mount("#app");export{kK as a,B7 as b,ft as c,Pa as d,Yt as e,rw as g,p5 as o,Fm as r,$w as s,SK as t,De as u,wi as w};
|