
/**
 * 由 Fantastic-admin 提供技术支持
 * Powered by Fantastic-admin
 * Gitee  https://gitee.com/hooray/fantastic-admin
 * Github https://github.com/hooray/fantastic-admin
 */
  
var bg=Object.defineProperty;var vg=(n,e,t)=>e in n?bg(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Le=(n,e,t)=>(vg(n,typeof e!="symbol"?e+"":e,t),t),Vo=(n,e,t)=>{if(!e.has(n))throw TypeError("Cannot "+t)};var v=(n,e,t)=>(Vo(n,e,"read from private field"),t?t.call(n):e.get(n)),K=(n,e,t)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,t)},j=(n,e,t,r)=>(Vo(n,e,"write to private field"),r?r.call(n,t):e.set(n,t),t),es=(n,e,t,r)=>({set _(i){j(n,e,i,t)},get _(){return v(n,e,r)}}),Y=(n,e,t)=>(Vo(n,e,"access private method"),t);import{_ as Sg}from"./index-7911c6db.js";import{a1 as C,a2 as ho,a3 as kg,d as Te,Q as pt,a4 as Ra,e as S,a5 as he,r as $e,x as xe,B as ht,R as Za,W as An,C as le,a6 as dn,a7 as yg,a8 as ar,a9 as gi,aa as wg,y as xg,o as Qg,c as $g,f as He,a as id,k as _g,b as Zc,E as Yr,ab as Pg,h as Et,q as qc}from"./index-4eef28ae.js";import{a as Lc}from"./config-b4a9e7c0.js";class se{constructor(){}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,t,r){let i=[];return this.decompose(0,e,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(t,this.length,i,1),Mt.from(i,this.length-(t-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let r=[];return this.decompose(e,t,r,0),Mt.from(r,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),i=new hi(this),s=new hi(e);for(let o=t,l=t;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(l+=i.value.length,i.done||l>=r)return!0}}iter(e=1){return new hi(this,e)}iterRange(e,t=this.length){return new sd(this,e,t)}iterLines(e,t){let r;if(e==null)r=this.iter();else{t==null&&(t=this.lines+1);let i=this.line(e).from;r=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new od(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?se.empty:e.length<=32?new Qe(e):Mt.from(Qe.split(e,[]))}}class Qe extends se{constructor(e,t=Cg(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,r,i){for(let s=0;;s++){let o=this.text[s],l=i+o.length;if((t?r:l)>=e)return new Ag(i,l,r,o);i=l+1,r++}}decompose(e,t,r,i){let s=e<=0&&t>=this.length?this:new Qe(Vc(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let o=r.pop(),l=xs(s.text,o.text.slice(),0,s.length);if(l.length<=32)r.push(new Qe(l,o.length+s.length));else{let a=l.length>>1;r.push(new Qe(l.slice(0,a)),new Qe(l.slice(a)))}}else r.push(s)}replace(e,t,r){if(!(r instanceof Qe))return super.replace(e,t,r);let i=xs(this.text,xs(r.text,Vc(this.text,0,e)),t),s=this.length+r.length-(t-e);return i.length<=32?new Qe(i,s):Mt.from(Qe.split(i,[]),s)}sliceString(e,t=this.length,r=`
`){let i="";for(let s=0,o=0;s<=t&&o<this.text.length;o++){let l=this.text[o],a=s+l.length;s>e&&o&&(i+=r),e<a&&t>s&&(i+=l.slice(Math.max(0,e-s),t-s)),s=a+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let r=[],i=-1;for(let s of e)r.push(s),i+=s.length+1,r.length==32&&(t.push(new Qe(r,i)),r=[],i=-1);return i>-1&&t.push(new Qe(r,i)),t}}class Mt extends se{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,t,r,i){for(let s=0;;s++){let o=this.children[s],l=i+o.length,a=r+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,r,i);i=l+1,r=a+1}}decompose(e,t,r,i){for(let s=0,o=0;o<=t&&s<this.children.length;s++){let l=this.children[s],a=o+l.length;if(e<=a&&t>=o){let c=i&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!c?r.push(l):l.decompose(e-o,t-o,r,c)}o=a+1}}replace(e,t,r){if(r.lines<this.lines)for(let i=0,s=0;i<this.children.length;i++){let o=this.children[i],l=s+o.length;if(e>=s&&t<=l){let a=o.replace(e-s,t-s,r),c=this.lines-o.lines+a.lines;if(a.lines<c>>5-1&&a.lines>c>>5+1){let h=this.children.slice();return h[i]=a,new Mt(h,this.length-(t-e)+r.length)}return super.replace(s,l,a)}s=l+1}return super.replace(e,t,r)}sliceString(e,t=this.length,r=`
`){let i="";for(let s=0,o=0;s<this.children.length&&o<=t;s++){let l=this.children[s],a=o+l.length;o>e&&s&&(i+=r),e<a&&t>o&&(i+=l.sliceString(e-o,t-o,r)),o=a+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Mt))return 0;let r=0,[i,s,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,s+=t){if(i==o||s==l)return r;let a=this.children[i],c=e.children[s];if(a!=c)return r+a.scanIdentical(c,t);r+=a.length+1}}static from(e,t=e.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let d of e)r+=d.lines;if(r<32){let d=[];for(let p of e)p.flatten(d);return new Qe(d,t)}let i=Math.max(32,r>>5),s=i<<1,o=i>>1,l=[],a=0,c=-1,h=[];function u(d){let p;if(d.lines>s&&d instanceof Mt)for(let m of d.children)u(m);else d.lines>o&&(a>o||!a)?(f(),l.push(d)):d instanceof Qe&&a&&(p=h[h.length-1])instanceof Qe&&d.lines+p.lines<=32?(a+=d.lines,c+=d.length+1,h[h.length-1]=new Qe(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>i&&f(),a+=d.lines,c+=d.length+1,h.push(d))}function f(){a!=0&&(l.push(h.length==1?h[0]:Mt.from(h,c)),c=-1,a=h.length=0)}for(let d of e)u(d);return f(),l.length==1?l[0]:new Mt(l,t)}}se.empty=new Qe([""],0);function Cg(n){let e=-1;for(let t of n)e+=t.length+1;return e}function xs(n,e,t=0,r=1e9){for(let i=0,s=0,o=!0;s<n.length&&i<=r;s++){let l=n[s],a=i+l.length;a>=t&&(a>r&&(l=l.slice(0,r-i)),i<t&&(l=l.slice(t-i)),o?(e[e.length-1]+=l,o=!1):e.push(l)),i=a+1}return e}function Vc(n,e,t){return xs(n,[""],e,t)}class hi{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Qe?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],s=this.offsets[r],o=s>>1,l=i instanceof Qe?i.text.length:i.children.length;if(o==(t>0?l:0)){if(r==0)return this.done=!0,this.value="",this;t>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[r]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(i instanceof Qe){let a=i.text[o+(t<0?-1:0)];if(this.offsets[r]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=i.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[r]+=t):(t<0&&this.offsets[r]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof Qe?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 sd{constructor(e,t,r){this.value="",this.done=!1,this.cursor=new hi(e,t>r?-1:1),this.pos=t>r?e.length:0,this.from=Math.min(t,r),this.to=Math.max(t,r)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let r=t<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=r?i:t<0?i.slice(i.length-r):i.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 od{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:r,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(se.prototype[Symbol.iterator]=function(){return this.iter()},hi.prototype[Symbol.iterator]=sd.prototype[Symbol.iterator]=od.prototype[Symbol.iterator]=function(){return this});let Ag=class{constructor(e,t,r,i){this.from=e,this.to=t,this.number=r,this.text=i}get length(){return this.to-this.from}},ur="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,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,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f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;n<ur.length;n++)ur[n]+=ur[n-1];function Tg(n){for(let e=1;e<ur.length;e+=2)if(ur[e]>n)return ur[e-1]<=n;return!1}function Ic(n){return n>=127462&&n<=127487}const Mc=8205;function ot(n,e,t=!0,r=!0){return(t?ld:Eg)(n,e,r)}function ld(n,e,t){if(e==n.length)return e;e&&ad(n.charCodeAt(e))&&cd(n.charCodeAt(e-1))&&e--;let r=ui(n,e);for(e+=Al(r);e<n.length;){let i=ui(n,e);if(r==Mc||i==Mc||t&&Tg(i))e+=Al(i),r=i;else if(Ic(i)){let s=0,o=e-2;for(;o>=0&&Ic(ui(n,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function Eg(n,e,t){for(;e>0;){let r=ld(n,e-2,t);if(r<e)return r;e--}return 0}function ad(n){return n>=56320&&n<57344}function cd(n){return n>=55296&&n<56320}function ui(n,e){let t=n.charCodeAt(e);if(!cd(t)||e+1==n.length)return t;let r=n.charCodeAt(e+1);return ad(r)?(t-55296<<10)+(r-56320)+65536:t}function Al(n){return n<65536?1:2}const Tl=/\r\n?|\n/;var Ne=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Ne||(Ne={}));class Yt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t+1];e+=r<0?this.sections[t]:r}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,r=0,i=0;t<this.sections.length;){let s=this.sections[t++],o=this.sections[t++];o<0?(e(r,i,s),i+=s):i+=o,r+=s}}iterChangedRanges(e,t=!1){El(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let r=this.sections[t++],i=this.sections[t++];i<0?e.push(r,i):e.push(i,r)}return new Yt(e)}composeDesc(e){return this.empty?e:e.empty?this:hd(this,e)}mapDesc(e,t=!1){return e.empty?this:Xl(this,e,t)}mapPos(e,t=-1,r=Ne.Simple){let i=0,s=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],c=i+l;if(a<0){if(c>e)return s+(e-i);s+=l}else{if(r!=Ne.Simple&&c>=e&&(r==Ne.TrackDel&&i<e&&c>e||r==Ne.TrackBefore&&i<e||r==Ne.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!l)return e==i||t<0?s:s+a;s+=a}i=c}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return s}touchesRange(e,t=e){for(let r=0,i=0;r<this.sections.length&&i<=t;){let s=this.sections[r++],o=this.sections[r++],l=i+s;if(o>=0&&i<=t&&l>=e)return i<e&&l>t?"cover":!0;i=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let r=this.sections[t++],i=this.sections[t++];e+=(e?" ":"")+r+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Yt(e)}static create(e){return new Yt(e)}}class Re extends Yt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return El(this,(t,r,i,s,o)=>e=e.replace(i,i+(r-t),o),!1),e}mapDesc(e,t=!1){return Xl(this,e,t,!0)}invert(e){let t=this.sections.slice(),r=[];for(let i=0,s=0;i<t.length;i+=2){let o=t[i],l=t[i+1];if(l>=0){t[i]=l,t[i+1]=o;let a=i>>1;for(;r.length<a;)r.push(se.empty);r.push(o?e.slice(s,s+o):se.empty)}s+=o}return new Re(t,r)}compose(e){return this.empty?e:e.empty?this:hd(this,e,!0)}map(e,t=!1){return e.empty?this:Xl(this,e,t,!0)}iterChanges(e,t=!1){El(this,e,t)}get desc(){return Yt.create(this.sections)}filter(e){let t=[],r=[],i=[],s=new bi(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&s.len==0;){if(s.done)break e;let h=Math.min(s.len,a-l);We(i,h,-1);let u=s.ins==-1?-1:s.off==0?s.ins:0;We(t,h,u),u>0&&Qn(r,t,s.text),s.forward(h),l+=h}let c=e[o++];for(;l<c;){if(s.done)break e;let h=Math.min(s.len,c-l);We(t,h,-1),We(i,h,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(h),l+=h}}return{changes:new Re(t,r),filtered:Yt.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t],i=this.sections[t+1];i<0?e.push(r):i==0?e.push([r]):e.push([r].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,r){let i=[],s=[],o=0,l=null;function a(h=!1){if(!h&&!i.length)return;o<t&&We(i,t-o,-1);let u=new Re(i,s);l=l?l.compose(u.map(l)):u,i=[],s=[],o=0}function c(h){if(Array.isArray(h))for(let u of h)c(u);else if(h instanceof Re){if(h.length!=t)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);a(),l=l?l.compose(h.map(l)):h}else{let{from:u,to:f=u,insert:d}=h;if(u>f||u<0||f>t)throw new RangeError(`Invalid change range ${u} to ${f} (in doc of length ${t})`);let p=d?typeof d=="string"?se.of(d.split(r||Tl)):d:se.empty,m=p.length;if(u==f&&m==0)return;u<o&&a(),u>o&&We(i,u-o,-1),We(i,f-u,m),Qn(s,i,p),o=f}}return c(e),a(!l),l}static empty(e){return new Re(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],r=[];for(let i=0;i<e.length;i++){let s=e[i];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;r.length<i;)r.push(se.empty);r[i]=se.of(s.slice(1)),t.push(s[0],r[i].length)}}}return new Re(t,r)}static createSet(e,t){return new Re(e,t)}}function We(n,e,t,r=!1){if(e==0&&t<=0)return;let i=n.length-2;i>=0&&t<=0&&t==n[i+1]?n[i]+=e:e==0&&n[i]==0?n[i+1]+=t:r?(n[i]+=e,n[i+1]+=t):n.push(e,t)}function Qn(n,e,t){if(t.length==0)return;let r=e.length-2>>1;if(r<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<r;)n.push(se.empty);n.push(t)}}function El(n,e,t){let r=n.inserted;for(let i=0,s=0,o=0;o<n.sections.length;){let l=n.sections[o++],a=n.sections[o++];if(a<0)i+=l,s+=l;else{let c=i,h=s,u=se.empty;for(;c+=l,h+=a,a&&r&&(u=u.append(r[o-2>>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(i,c,s,h,u),i=c,s=h}}}function Xl(n,e,t,r=!1){let i=[],s=r?[]:null,o=new bi(n),l=new bi(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let c=Math.min(o.len,l.len);We(i,c,-1),o.forward(c),l.forward(c)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!t))){let c=l.len;for(We(i,l.ins,-1);c;){let h=Math.min(o.len,c);o.ins>=0&&a<o.i&&o.len<=h&&(We(i,0,o.ins),s&&Qn(s,i,o.text),a=o.i),o.forward(h),c-=h}l.next()}else if(o.ins>=0){let c=0,h=o.len;for(;h;)if(l.ins==-1){let u=Math.min(h,l.len);c+=u,h-=u,l.forward(u)}else if(l.ins==0&&l.len<h)h-=l.len,l.next();else break;We(i,c,a<o.i?o.ins:0),s&&a<o.i&&Qn(s,i,o.text),a=o.i,o.forward(o.len-h)}else{if(o.done&&l.done)return s?Re.createSet(i,s):Yt.create(i);throw new Error("Mismatched change set lengths")}}function hd(n,e,t=!1){let r=[],i=t?[]:null,s=new bi(n),o=new bi(e);for(let l=!1;;){if(s.done&&o.done)return i?Re.createSet(r,i):Yt.create(r);if(s.ins==0)We(r,s.len,0,l),s.next();else if(o.len==0&&!o.done)We(r,0,o.ins,l),i&&Qn(i,r,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(s.len2,o.len),c=r.length;if(s.ins==-1){let h=o.ins==-1?-1:o.off?0:o.ins;We(r,a,h,l),i&&h&&Qn(i,r,o.text)}else o.ins==-1?(We(r,s.off?0:s.len,a,l),i&&Qn(i,r,s.textBit(a))):(We(r,s.off?0:s.len,o.off?0:o.ins,l),i&&!o.off&&Qn(i,r,o.text));l=(s.ins>a||o.ins>=0&&o.len>a)&&(l||r.length>c),s.forward2(a),o.forward(a)}}}}class bi{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,t=this.i-2>>1;return t>=e.length?se.empty:e[t]}textBit(e){let{inserted:t}=this.set,r=this.i-2>>1;return r>=t.length&&!e?se.empty:t[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 Mn{constructor(e,t,r){this.from=e,this.to=t,this.flags=r}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let e=this.flags&3;return e==3?null:e}get goalColumn(){let e=this.flags>>5;return e==33554431?void 0:e}map(e,t=-1){let r,i;return this.empty?r=i=e.mapPos(this.from,t):(r=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new Mn(r,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return D.range(e,t);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return D.range(this.anchor,r)}eq(e){return this.anchor==e.anchor&&this.head==e.head}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 D.range(e.anchor,e.head)}static create(e,t,r){return new Mn(e,t,r)}}class D{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:D.create(this.ranges.map(r=>r.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new D([this.main],0)}addRange(e,t=!0){return D.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let r=this.ranges.slice();return r[t]=e,D.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 D(e.ranges.map(t=>Mn.fromJSON(t)),e.main)}static single(e,t=e){return new D([D.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<e.length;i++){let s=e[i];if(s.empty?s.from<=r:s.from<r)return D.normalized(e.slice(),t);r=s.to}return new D(e,t)}static cursor(e,t=0,r,i){return Mn.create(e,e,(t==0?0:t<0?4:8)|(r==null?3:Math.min(2,r))|(i??33554431)<<5)}static range(e,t,r,i){let s=(r??33554431)<<5|(i==null?3:Math.min(2,i));return t<e?Mn.create(t,e,24|s):Mn.create(e,t,(t>e?4:0)|s)}static normalized(e,t=0){let r=e[t];e.sort((i,s)=>i.from-s.from),t=e.indexOf(r);for(let i=1;i<e.length;i++){let s=e[i],o=e[i-1];if(s.empty?s.from<=o.to:s.from<o.to){let l=o.from,a=Math.max(s.to,o.to);i<=t&&t--,e.splice(--i,2,s.anchor>s.head?D.range(a,l):D.range(l,a))}}return new D(e,t)}}function ud(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let qa=0;class F{constructor(e,t,r,i,s){this.combine=e,this.compareInput=t,this.compare=r,this.isStatic=i,this.id=qa++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}static define(e={}){return new F(e.combine||(t=>t),e.compareInput||((t,r)=>t===r),e.compare||(e.combine?(t,r)=>t===r:La),!!e.static,e.enables)}of(e){return new Qs([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Qs(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Qs(e,this,2,t)}from(e,t){return t||(t=r=>r),this.compute([e],r=>t(r.field(e)))}}function La(n,e){return n==e||n.length==e.length&&n.every((t,r)=>t===e[r])}class Qs{constructor(e,t,r,i){this.dependencies=e,this.facet=t,this.type=r,this.value=i,this.id=qa++}dynamicSlot(e){var t;let r=this.value,i=this.facet.compareInput,s=this.id,o=e[s]>>1,l=this.type==2,a=!1,c=!1,h=[];for(let u of this.dependencies)u=="doc"?a=!0:u=="selection"?c=!0:((t=e[u.id])!==null&&t!==void 0?t:1)&1||h.push(e[u.id]);return{create(u){return u.values[o]=r(u),1},update(u,f){if(a&&f.docChanged||c&&(f.docChanged||f.selection)||Dl(u,h)){let d=r(u);if(l?!zc(d,u.values[o],i):!i(d,u.values[o]))return u.values[o]=d,1}return 0},reconfigure:(u,f)=>{let d,p=f.config.address[s];if(p!=null){let m=Is(f,p);if(this.dependencies.every(O=>O instanceof F?f.facet(O)===u.facet(O):O instanceof hn?f.field(O,!1)==u.field(O,!1):!0)||(l?zc(d=r(u),m,i):i(d=r(u),m)))return u.values[o]=m,0}else d=r(u);return u.values[o]=d,1}}}}function zc(n,e,t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!t(n[r],e[r]))return!1;return!0}function Dl(n,e){let t=!1;for(let r of e)fi(n,r)&1&&(t=!0);return t}function Xg(n,e,t){let r=t.map(a=>n[a.id]),i=t.map(a=>a.type),s=r.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let c=[];for(let h=0;h<r.length;h++){let u=Is(a,r[h]);if(i[h]==2)for(let f of u)c.push(f);else c.push(u)}return e.combine(c)}return{create(a){for(let c of r)fi(a,c);return a.values[o]=l(a),1},update(a,c){if(!Dl(a,s))return 0;let h=l(a);return e.compare(h,a.values[o])?0:(a.values[o]=h,1)},reconfigure(a,c){let h=Dl(a,r),u=c.config.facets[e.id],f=c.facet(e);if(u&&!h&&La(t,u))return a.values[o]=f,0;let d=l(a);return e.compare(d,f)?(a.values[o]=f,0):(a.values[o]=d,1)}}}const Uc=F.define({static:!0});class hn{constructor(e,t,r,i,s){this.id=e,this.createF=t,this.updateF=r,this.compareF=i,this.spec=s,this.provides=void 0}static define(e){let t=new hn(qa++,e.create,e.update,e.compare||((r,i)=>r===i),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Uc).find(r=>r.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:r=>(r.values[t]=this.create(r),1),update:(r,i)=>{let s=r.values[t],o=this.updateF(s,i);return this.compareF(s,o)?0:(r.values[t]=o,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[t]=i.field(this),0):(r.values[t]=this.create(r),1)}}init(e){return[this,Uc.of({field:this,create:e})]}get extension(){return this}}const In={lowest:4,low:3,default:2,high:1,highest:0};function jr(n){return e=>new fd(e,n)}const Zr={highest:jr(In.highest),high:jr(In.high),default:jr(In.default),low:jr(In.low),lowest:jr(In.lowest)};class fd{constructor(e,t){this.inner=e,this.prec=t}}class qi{of(e){return new Rl(this,e)}reconfigure(e){return qi.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Rl{constructor(e,t){this.compartment=e,this.inner=t}}class Vs{constructor(e,t,r,i,s,o){for(this.base=e,this.compartments=t,this.dynamicSlots=r,this.address=i,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,r){let i=[],s=Object.create(null),o=new Map;for(let f of Dg(e,t,o))f instanceof hn?i.push(f):(s[f.facet.id]||(s[f.facet.id]=[])).push(f);let l=Object.create(null),a=[],c=[];for(let f of i)l[f.id]=c.length<<1,c.push(d=>f.slot(d));let h=r==null?void 0:r.config.facets;for(let f in s){let d=s[f],p=d[0].facet,m=h&&h[f]||[];if(d.every(O=>O.type==0))if(l[p.id]=a.length<<1|1,La(m,d))a.push(r.facet(p));else{let O=p.combine(d.map(b=>b.value));a.push(r&&p.compare(O,r.facet(p))?r.facet(p):O)}else{for(let O of d)O.type==0?(l[O.id]=a.length<<1|1,a.push(O.value)):(l[O.id]=c.length<<1,c.push(b=>O.dynamicSlot(b)));l[p.id]=c.length<<1,c.push(O=>Xg(O,p,d))}}let u=c.map(f=>f(l));return new Vs(e,o,u,l,a,s)}}function Dg(n,e,t){let r=[[],[],[],[],[]],i=new Map;function s(o,l){let a=i.get(o);if(a!=null){if(a<=l)return;let c=r[a].indexOf(o);c>-1&&r[a].splice(c,1),o instanceof Rl&&t.delete(o.compartment)}if(i.set(o,l),Array.isArray(o))for(let c of o)s(c,l);else if(o instanceof Rl){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;t.set(o.compartment,c),s(c,l)}else if(o instanceof fd)s(o.inner,o.prec);else if(o instanceof hn)r[l].push(o),o.provides&&s(o.provides,l);else if(o instanceof Qs)r[l].push(o),o.facet.extensions&&s(o.facet.extensions,In.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,l)}}return s(n,In.default),r.reduce((o,l)=>o.concat(l))}function fi(n,e){if(e&1)return 2;let t=e>>1,r=n.status[t];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;n.status[t]=4;let i=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|i}function Is(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const dd=F.define(),pd=F.define({combine:n=>n.some(e=>e),static:!0}),md=F.define({combine:n=>n.length?n[0]:void 0,static:!0}),Od=F.define(),gd=F.define(),bd=F.define(),vd=F.define({combine:n=>n.length?n[0]:!1});class un{constructor(e,t){this.type=e,this.value=t}static define(){return new Rg}}class Rg{of(e){return new un(this,e)}}class Zg{constructor(e){this.map=e}of(e){return new ye(this,e)}}class ye{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new ye(this.type,t)}is(e){return this.type==e}static define(e={}){return new Zg(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let r=[];for(let i of e){let s=i.map(t);s&&r.push(s)}return r}}ye.reconfigure=ye.define();ye.appendConfig=ye.define();class Ze{constructor(e,t,r,i,s,o){this.startState=e,this.changes=t,this.selection=r,this.effects=i,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,r&&ud(r,t.newLength),s.some(l=>l.type==Ze.time)||(this.annotations=s.concat(Ze.time.of(Date.now())))}static create(e,t,r,i,s,o){return new Ze(e,t,r,i,s,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 t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Ze.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}Ze.time=un.define();Ze.userEvent=un.define();Ze.addToHistory=un.define();Ze.remote=un.define();function qg(n,e){let t=[];for(let r=0,i=0;;){let s,o;if(r<n.length&&(i==e.length||e[i]>=n[r]))s=n[r++],o=n[r++];else if(i<e.length)s=e[i++],o=e[i++];else return t;!t.length||t[t.length-1]<s?t.push(s,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function Sd(n,e,t){var r;let i,s,o;return t?(i=e.changes,s=Re.empty(e.changes.length),o=n.changes.compose(e.changes)):(i=e.changes.map(n.changes),s=n.changes.mapDesc(e.changes,!0),o=n.changes.compose(i)),{changes:o,selection:e.selection?e.selection.map(s):(r=n.selection)===null||r===void 0?void 0:r.map(i),effects:ye.mapEffects(n.effects,i).concat(ye.mapEffects(e.effects,s)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function Zl(n,e,t){let r=e.selection,i=fr(e.annotations);return e.userEvent&&(i=i.concat(Ze.userEvent.of(e.userEvent))),{changes:e.changes instanceof Re?e.changes:Re.of(e.changes||[],t,n.facet(md)),selection:r&&(r instanceof D?r:D.single(r.anchor,r.head)),effects:fr(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function kd(n,e,t){let r=Zl(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let o=!!e[s].sequential;r=Sd(r,Zl(n,e[s],o?r.changes.newLength:n.doc.length),o)}let i=Ze.create(n,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return Vg(t?Lg(i):i)}function Lg(n){let e=n.startState,t=!0;for(let i of e.facet(Od)){let s=i(n);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:qg(t,s))}if(t!==!0){let i,s;if(t===!1)s=n.changes.invertedDesc,i=Re.empty(e.doc.length);else{let o=n.changes.filter(t);i=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}n=Ze.create(e,i,n.selection&&n.selection.map(s),ye.mapEffects(n.effects,s),n.annotations,n.scrollIntoView)}let r=e.facet(gd);for(let i=r.length-1;i>=0;i--){let s=r[i](n);s instanceof Ze?n=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Ze?n=s[0]:n=kd(e,fr(s),!1)}return n}function Vg(n){let e=n.startState,t=e.facet(bd),r=n;for(let i=t.length-1;i>=0;i--){let s=t[i](n);s&&Object.keys(s).length&&(r=Sd(r,Zl(e,s,n.changes.newLength),!0))}return r==n?n:Ze.create(e,n.changes,n.selection,r.effects,r.annotations,r.scrollIntoView)}const Ig=[];function fr(n){return n==null?Ig:Array.isArray(n)?n:[n]}var sn=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(sn||(sn={}));const Mg=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ql;try{ql=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function zg(n){if(ql)return ql.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||Mg.test(t)))return!0}return!1}function Ug(n){return e=>{if(!/\S/.test(e))return sn.Space;if(zg(e))return sn.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return sn.Word;return sn.Other}}class ie{constructor(e,t,r,i,s,o){this.config=e,this.doc=t,this.selection=r,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)fi(this,l<<1);this.computeSlot=null}field(e,t=!0){let r=this.config.address[e.id];if(r==null){if(t)throw new RangeError("Field is not present in this state");return}return fi(this,r),Is(this,r)}update(...e){return kd(this,e,!0)}applyTransaction(e){let t=this.config,{base:r,compartments:i}=t;for(let o of e.effects)o.is(qi.reconfigure)?(t&&(i=new Map,t.compartments.forEach((l,a)=>i.set(a,l)),t=null),i.set(o.value.compartment,o.value.extension)):o.is(ye.reconfigure)?(t=null,r=o.value):o.is(ye.appendConfig)&&(t=null,r=fr(r).concat(o.value));let s;t?s=e.startState.values.slice():(t=Vs.resolve(r,i,this),s=new ie(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,a)=>a.reconfigure(l,this),null).values),new ie(t,e.newDoc,e.newSelection,s,(o,l)=>l.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:D.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,r=e(t.ranges[0]),i=this.changes(r.changes),s=[r.range],o=fr(r.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),c=this.changes(a.changes),h=c.map(i);for(let f=0;f<l;f++)s[f]=s[f].map(h);let u=i.mapDesc(c,!0);s.push(a.range.map(u)),i=i.compose(h),o=ye.mapEffects(o,h).concat(ye.mapEffects(fr(a.effects),u))}return{changes:i,selection:D.create(s,t.mainIndex),effects:o}}changes(e=[]){return e instanceof Re?e:Re.of(e,this.doc.length,this.facet(ie.lineSeparator))}toText(e){return se.of(e.split(this.facet(ie.lineSeparator)||Tl))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(fi(this,t),Is(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let i=e[r];i instanceof hn&&this.config.address[i.id]!=null&&(t[r]=i.spec.toJSON(this.field(e[r]),this))}return t}static fromJSON(e,t={},r){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let s in r)if(Object.prototype.hasOwnProperty.call(e,s)){let o=r[s],l=e[s];i.push(o.init(a=>o.spec.fromJSON(l,a)))}}return ie.create({doc:e.doc,selection:D.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Vs.resolve(e.extensions||[],new Map),r=e.doc instanceof se?e.doc:se.of((e.doc||"").split(t.staticFacet(ie.lineSeparator)||Tl)),i=e.selection?e.selection instanceof D?e.selection:D.single(e.selection.anchor,e.selection.head):D.single(0);return ud(i,r.length),t.staticFacet(pd)||(i=i.asSingle()),new ie(t,r,i,t.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(ie.tabSize)}get lineBreak(){return this.facet(ie.lineSeparator)||`
`}get readOnly(){return this.facet(vd)}phrase(e,...t){for(let r of this.facet(ie.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let s=+(i||1);return!s||s>t.length?r:t[s-1]})),e}languageDataAt(e,t,r=-1){let i=[];for(let s of this.facet(dd))for(let o of s(this,t,r))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){return Ug(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:r,length:i}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-r,l=e-r;for(;o>0;){let a=ot(t,o,!1);if(s(t.slice(a,o))!=sn.Word)break;o=a}for(;l<i;){let a=ot(t,l);if(s(t.slice(l,a))!=sn.Word)break;l=a}return o==l?null:D.range(o+r,l+r)}}ie.allowMultipleSelections=pd;ie.tabSize=F.define({combine:n=>n.length?n[0]:4});ie.lineSeparator=md;ie.readOnly=vd;ie.phrases=F.define({compare(n,e){let t=Object.keys(n),r=Object.keys(e);return t.length==r.length&&t.every(i=>n[i]==e[i])}});ie.languageData=dd;ie.changeFilter=Od;ie.transactionFilter=gd;ie.transactionExtender=bd;qi.reconfigure=ye.define();function Va(n,e,t={}){let r={};for(let i of n)for(let s of Object.keys(i)){let o=i[s],l=r[s];if(l===void 0)r[s]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(t,s))r[s]=t[s](l,o);else throw new Error("Config merge conflict for field "+s)}for(let i in e)r[i]===void 0&&(r[i]=e[i]);return r}class jn{eq(e){return this==e}range(e,t=e){return Ll.create(e,t,this)}}jn.prototype.startSide=jn.prototype.endSide=0;jn.prototype.point=!1;jn.prototype.mapMode=Ne.TrackDel;let Ll=class yd{constructor(e,t,r){this.from=e,this.to=t,this.value=r}static create(e,t,r){return new yd(e,t,r)}};function Vl(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class Ia{constructor(e,t,r,i){this.from=e,this.to=t,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,r,i=0){let s=r?this.to:this.from;for(let o=i,l=s.length;;){if(o==l)return o;let a=o+l>>1,c=s[a]-e||(r?this.value[a].endSide:this.value[a].startSide)-t;if(a==o)return c>=0?o:l;c>=0?l=a:o=a+1}}between(e,t,r,i){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(r,1e9,!1,s);s<o;s++)if(i(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let r=[],i=[],s=[],o=-1,l=-1;for(let a=0;a<this.value.length;a++){let c=this.value[a],h=this.from[a]+e,u=this.to[a]+e,f,d;if(h==u){let p=t.mapPos(h,c.startSide,c.mapMode);if(p==null||(f=d=p,c.startSide!=c.endSide&&(d=t.mapPos(h,c.endSide),d<f)))continue}else if(f=t.mapPos(h,c.startSide),d=t.mapPos(u,c.endSide),f>d||f==d&&c.startSide>0&&c.endSide<=0)continue;(d-f||c.endSide-c.startSide)<0||(o<0&&(o=f),c.point&&(l=Math.max(l,d-f)),r.push(c),i.push(f-o),s.push(d-o))}return{mapped:r.length?new Ia(i,s,r,l):null,pos:o}}}class Pe{constructor(e,t,r,i){this.chunkPos=e,this.chunk=t,this.nextLayer=r,this.maxPoint=i}static create(e,t,r,i){return new Pe(e,t,r,i)}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 t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:r=!1,filterFrom:i=0,filterTo:s=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(r&&(t=t.slice().sort(Vl)),this.isEmpty)return t.length?Pe.of(t):this;let l=new wd(this,null,-1).goto(0),a=0,c=[],h=new yr;for(;l.value||a<t.length;)if(a<t.length&&(l.from-t[a].from||l.startSide-t[a].value.startSide)>=0){let u=t[a++];h.addInner(u.from,u.to,u.value)||c.push(u)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(l.chunkIndex)<t[a].from)&&(!o||i>this.chunkEnd(l.chunkIndex)||s<this.chunkPos[l.chunkIndex])&&h.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!o||i>l.to||s<l.from||o(l.from,l.to,l.value))&&(h.addInner(l.from,l.to,l.value)||c.push(Ll.create(l.from,l.to,l.value))),l.next());return h.finishInner(this.nextLayer.isEmpty&&!c.length?Pe.empty:this.nextLayer.update({add:c,filter:o,filterFrom:i,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],r=[],i=-1;for(let o=0;o<this.chunk.length;o++){let l=this.chunkPos[o],a=this.chunk[o],c=e.touchesRange(l,l+a.length);if(c===!1)i=Math.max(i,a.maxPoint),t.push(a),r.push(e.mapPos(l));else if(c===!0){let{mapped:h,pos:u}=a.map(l,e);h&&(i=Math.max(i,h.maxPoint),t.push(h),r.push(u))}}let s=this.nextLayer.map(e);return t.length==0?s:new Pe(r,t,s||Pe.empty,i)}between(e,t,r){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let s=this.chunkPos[i],o=this.chunk[i];if(t>=s&&e<=s+o.length&&o.between(s,e-s,t-s,r)===!1)return}this.nextLayer.between(e,t,r)}}iter(e=0){return vi.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return vi.from(e).goto(t)}static compare(e,t,r,i,s=-1){let o=e.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=s),l=t.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=s),a=Bc(o,l,r),c=new Nr(o,a,s),h=new Nr(l,a,s);r.iterGaps((u,f,d)=>Wc(c,u,h,f,d,i)),r.empty&&r.length==0&&Wc(c,0,h,0,0,i)}static eq(e,t,r=0,i){i==null&&(i=1e9-1);let s=e.filter(h=>!h.isEmpty&&t.indexOf(h)<0),o=t.filter(h=>!h.isEmpty&&e.indexOf(h)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let l=Bc(s,o),a=new Nr(s,l,0).goto(r),c=new Nr(o,l,0).goto(r);for(;;){if(a.to!=c.to||!Il(a.active,c.active)||a.point&&(!c.point||!a.point.eq(c.point)))return!1;if(a.to>i)return!0;a.next(),c.next()}}static spans(e,t,r,i,s=-1){let o=new Nr(e,null,s).goto(t),l=t,a=o.openStart;for(;;){let c=Math.min(o.to,r);if(o.point){let h=o.activeForPoint(o.to),u=o.pointFrom<t?h.length+1:Math.min(h.length,a);i.point(l,c,o.point,h,u,o.pointRank),a=Math.min(o.openEnd(c),h.length)}else c>l&&(i.span(l,c,o.active,a),a=o.openEnd(c));if(o.to>r)return a+(o.point&&o.to>r?1:0);l=o.to,o.next()}}static of(e,t=!1){let r=new yr;for(let i of e instanceof Ll?[e]:t?Bg(e):e)r.add(i.from,i.to,i.value);return r.finish()}}Pe.empty=new Pe([],[],null,-1);function Bg(n){if(n.length>1)for(let e=n[0],t=1;t<n.length;t++){let r=n[t];if(Vl(e,r)>0)return n.slice().sort(Vl);e=r}return n}Pe.empty.nextLayer=Pe.empty;class yr{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}finishChunk(e){this.chunks.push(new Ia(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=[])}add(e,t,r){this.addInner(e,t,r)||(this.nextLayer||(this.nextLayer=new yr)).add(e,t,r)}addInner(e,t,r){let i=e-this.lastTo||r.startSide-this.last.endSide;if(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(t-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=t,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let r=t.value.length-1;return this.last=t.value[r],this.lastFrom=t.from[r]+e,this.lastTo=t.to[r]+e,!0}finish(){return this.finishInner(Pe.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=Pe.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Bc(n,e,t){let r=new Map;for(let s of n)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&r.set(s.chunk[o],s.chunkPos[o]);let i=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let l=r.get(s.chunk[o]);l!=null&&(t?t.mapPos(l):l)==s.chunkPos[o]&&!(t!=null&&t.touchesRange(l,l+s.chunk[o].length))&&i.add(s.chunk[o])}return i}class wd{constructor(e,t,r,i=0){this.layer=e,this.skip=t,this.minPoint=r,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,r){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!r||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!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],t=this.layer.chunk[this.chunkIndex],r=e+t.from[this.rangeIndex];if(this.from=r,this.to=e+t.to[this.rangeIndex],this.value=t.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 vi{constructor(e){this.heap=e}static from(e,t=null,r=-1){let i=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=r&&i.push(new wd(o,t,r,s));return i.length==1?i[0]:new vi(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let r of this.heap)r.goto(e,t);for(let r=this.heap.length>>1;r>=0;r--)Io(this.heap,r);return this.next(),this}forward(e,t){for(let r of this.heap)r.forward(e,t);for(let r=this.heap.length>>1;r>=0;r--)Io(this.heap,r);(this.to-e||this.value.endSide-t)<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(),Io(this.heap,0)}}}function Io(n,e){for(let t=n[e];;){let r=(e<<1)+1;if(r>=n.length)break;let i=n[r];if(r+1<n.length&&i.compare(n[r+1])>=0&&(i=n[r+1],r++),t.compare(i)<0)break;n[r]=t,n[e]=i,e=r}}class Nr{constructor(e,t,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=vi.from(e,t,r)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ts(this.active,e),ts(this.activeTo,e),ts(this.activeRank,e),this.minActive=Yc(this.active,this.activeTo)}addActive(e){let t=0,{value:r,to:i,rank:s}=this.cursor;for(;t<this.activeRank.length&&this.activeRank[t]<=s;)t++;ns(this.active,t,r),ns(this.activeTo,t,i),ns(this.activeRank,t,s),e&&ns(e,t,this.cursor.from),this.minActive=Yc(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&ts(r,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(r),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.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 i=r.length-1;i>=0&&r[i]<e;i--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];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)&&t.push(this.active[r]);return t.reverse()}openEnd(e){let t=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)t++;return t}}function Wc(n,e,t,r,i,s){n.goto(e),t.goto(r);let o=r+i,l=r,a=r-e;for(;;){let c=n.to+a-t.to||n.endSide-t.endSide,h=c<0?n.to+a:t.to,u=Math.min(h,o);if(n.point||t.point?n.point&&t.point&&(n.point==t.point||n.point.eq(t.point))&&Il(n.activeForPoint(n.to+a),t.activeForPoint(t.to))||s.comparePoint(l,u,n.point,t.point):u>l&&!Il(n.active,t.active)&&s.compareRange(l,u,n.active,t.active),h>o)break;l=h,c<=0&&n.next(),c>=0&&t.next()}}function Il(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t]&&!n[t].eq(e[t]))return!1;return!0}function ts(n,e){for(let t=e,r=n.length-1;t<r;t++)n[t]=n[t+1];n.pop()}function ns(n,e,t){for(let r=n.length-1;r>=e;r--)n[r+1]=n[r];n[e]=t}function Yc(n,e){let t=-1,r=1e9;for(let i=0;i<e.length;i++)(e[i]-r||n[i].endSide-n[t].endSide)<0&&(t=i,r=e[i]);return t}function uo(n,e,t=n.length){let r=0;for(let i=0;i<t;)n.charCodeAt(i)==9?(r+=e-r%e,i++):(r++,i=ot(n,i));return r}function Wg(n,e,t,r){for(let i=0,s=0;;){if(s>=e)return i;if(i==n.length)break;s+=n.charCodeAt(i)==9?t-s%t:1,i=ot(n,i)}return r===!0?-1:n.length}const Ml="ͼ",jc=typeof Symbol>"u"?"__"+Ml:Symbol.for(Ml),zl=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Nc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Tn{constructor(e,t){this.rules=[];let{finish:r}=t||{};function i(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,l,a,c){let h=[],u=/^@(\w+)\b/.exec(o[0]),f=u&&u[1]=="keyframes";if(u&&l==null)return a.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))s(d.split(/,\s*/).map(m=>o.map(O=>m.replace(/&/,O))).reduce((m,O)=>m.concat(O)),p,a);else if(p&&typeof p=="object"){if(!u)throw new RangeError("The value of a property ("+d+") should be a primitive value.");s(i(d),p,h,f)}else p!=null&&h.push(d.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(h.length||f)&&a.push((r&&!u&&!c?o.map(r):o).join(", ")+" {"+h.join(" ")+"}")}for(let o in e)s(i(o),e[o],this.rules)}getRules(){return this.rules.join(`
`)}static newName(){let e=Nc[jc]||1;return Nc[jc]=e+1,Ml+e.toString(36)}static mount(e,t){(e[zl]||new Yg(e)).mount(Array.isArray(t)?t:[t])}}let Fc=new Map;class Yg{constructor(e){let t=e.ownerDocument||e,r=t.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let i=Fc.get(t);if(i)return e.adoptedStyleSheets=[i.sheet,...e.adoptedStyleSheets],e[zl]=i;this.sheet=new r.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],Fc.set(t,this)}else{this.styleTag=t.createElement("style");let i=e.head||e;i.insertBefore(this.styleTag,i.firstChild)}this.modules=[],e[zl]=this}mount(e){let t=this.sheet,r=0,i=0;for(let s=0;s<e.length;s++){let o=e[s],l=this.modules.indexOf(o);if(l<i&&l>-1&&(this.modules.splice(l,1),i--,l=-1),l==-1){if(this.modules.splice(i++,0,o),t)for(let a=0;a<o.rules.length;a++)t.insertRule(o.rules[a],r++)}else{for(;i<l;)r+=this.modules[i++].rules.length;r+=o.rules.length,i++}}if(!t){let s="";for(let o=0;o<this.modules.length;o++)s+=this.modules[o].getRules()+`
`;this.styleTag.textContent=s}}}var En={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:"'"},Si={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Gc=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),jg=typeof navigator<"u"&&/Mac/.test(navigator.platform),Ng=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Fg=jg||Gc&&+Gc[1]<57;for(var ze=0;ze<10;ze++)En[48+ze]=En[96+ze]=String(ze);for(var ze=1;ze<=24;ze++)En[ze+111]="F"+ze;for(var ze=65;ze<=90;ze++)En[ze]=String.fromCharCode(ze+32),Si[ze]=String.fromCharCode(ze);for(var Mo in En)Si.hasOwnProperty(Mo)||(Si[Mo]=En[Mo]);function Gg(n){var e=Fg&&(n.ctrlKey||n.altKey||n.metaKey)||Ng&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Si:En)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Ms(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function wr(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function Hg(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function $s(n,e){if(!e.anchorNode)return!1;try{return wr(n,e.anchorNode)}catch{return!1}}function xr(n){return n.nodeType==3?Qr(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function zs(n,e,t,r){return t?Hc(n,e,t,r,-1)||Hc(n,e,t,r,1):!1}function Us(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function Hc(n,e,t,r,i){for(;;){if(n==t&&e==r)return!0;if(e==(i<0?0:ki(n))){if(n.nodeName=="DIV")return!1;let s=n.parentNode;if(!s||s.nodeType!=1)return!1;e=Us(n)+(i<0?0:1),n=s}else if(n.nodeType==1){if(n=n.childNodes[e+(i<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=i<0?ki(n):0}else return!1}}function ki(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function fo(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function Jg(n){return{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Kg(n,e,t,r,i,s,o,l){let a=n.ownerDocument,c=a.defaultView||window;for(let h=n;h;)if(h.nodeType==1){let u,f=h==a.body;if(f)u=Jg(c);else{if(h.scrollHeight<=h.clientHeight&&h.scrollWidth<=h.clientWidth){h=h.assignedSlot||h.parentNode;continue}let m=h.getBoundingClientRect();u={left:m.left,right:m.left+h.clientWidth,top:m.top,bottom:m.top+h.clientHeight}}let d=0,p=0;if(i=="nearest")e.top<u.top?(p=-(u.top-e.top+o),t>0&&e.bottom>u.bottom+p&&(p=e.bottom-u.bottom+p+o)):e.bottom>u.bottom&&(p=e.bottom-u.bottom+o,t<0&&e.top-p<u.top&&(p=-(u.top+p-e.top+o)));else{let m=e.bottom-e.top,O=u.bottom-u.top;p=(i=="center"&&m<=O?e.top+m/2-O/2:i=="start"||i=="center"&&t<0?e.top-o:e.bottom-O+o)-u.top}if(r=="nearest"?e.left<u.left?(d=-(u.left-e.left+s),t>0&&e.right>u.right+d&&(d=e.right-u.right+d+s)):e.right>u.right&&(d=e.right-u.right+s,t<0&&e.left<u.left+d&&(d=-(u.left+d-e.left+s))):d=(r=="center"?e.left+(e.right-e.left)/2-(u.right-u.left)/2:r=="start"==l?e.left-s:e.right-(u.right-u.left)+s)-u.left,d||p)if(f)c.scrollBy(d,p);else{let m=0,O=0;if(p){let b=h.scrollTop;h.scrollTop+=p,O=h.scrollTop-b}if(d){let b=h.scrollLeft;h.scrollLeft+=d,m=h.scrollLeft-b}e={left:e.left-m,top:e.top-O,right:e.right-m,bottom:e.bottom-O},m&&Math.abs(m-d)<1&&(r="nearest"),O&&Math.abs(O-p)<1&&(i="nearest")}if(f)break;h=h.assignedSlot||h.parentNode}else if(h.nodeType==11)h=h.host;else break}function e0(n){let e=n.ownerDocument;for(let t=n.parentNode;t&&t!=e.body;)if(t.nodeType==1){if(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}class t0{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){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,r,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=r,this.focusOffset=i}}let rr=null;function xd(n){if(n.setActive)return n.setActive();if(rr)return n.focus(rr);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(rr==null?{get preventScroll(){return rr={preventScroll:!0},!0}}:void 0),!rr){rr=!1;for(let t=0;t<e.length;){let r=e[t++],i=e[t++],s=e[t++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=s&&(r.scrollLeft=s)}}}let Jc;function Qr(n,e,t=e){let r=Jc||(Jc=document.createRange());return r.setEnd(n,t),r.setStart(n,e),r}function dr(n,e,t){let r={key:e,code:e,keyCode:t,which:t,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,n.dispatchEvent(i);let s=new KeyboardEvent("keyup",r);return s.synthetic=!0,n.dispatchEvent(s),i.defaultPrevented||s.defaultPrevented}function n0(n){for(;n;){if(n&&(n.nodeType==9||n.nodeType==11&&n.host))return n;n=n.assignedSlot||n.parentNode}return null}function Qd(n){for(;n.attributes.length;)n.removeAttributeNode(n.attributes[0])}function r0(n,e){let t=e.focusNode,r=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=r)return!1;for(;;)if(r){if(t.nodeType!=1)return!1;let i=t.childNodes[r-1];i.contentEditable=="false"?r--:(t=i,r=ki(t))}else{if(t==n)return!0;r=Us(t),t=t.parentNode}}class Ue{constructor(e,t,r=!0){this.node=e,this.offset=t,this.precise=r}static before(e,t){return new Ue(e.parentNode,Us(e),t)}static after(e,t){return new Ue(e.parentNode,Us(e)+1,t)}}const Ma=[];class de{constructor(){this.parent=null,this.dom=null,this.dirty=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let r of this.children){if(r==e)return t;t+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.dirty&2){let r=this.dom,i=null,s;for(let o of this.children){if(o.dirty){if(!o.dom&&(s=i?i.nextSibling:r.firstChild)){let l=de.get(s);(!l||!l.parent&&l.canReuseDOM(o))&&o.reuseDOM(s)}o.sync(e,t),o.dirty=0}if(s=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&s!=o.dom&&(t.written=!0),o.dom.parentNode==r)for(;s&&s!=o.dom;)s=Kc(s);else r.insertBefore(o.dom,s);i=o.dom}for(s=i?i.nextSibling:r.firstChild,s&&t&&t.node==r&&(t.written=!0);s;)s=Kc(s)}else if(this.dirty&1)for(let r of this.children)r.dirty&&(r.sync(e,t),r.dirty=0)}reuseDOM(e){}localPosFromDOM(e,t){let r;if(e==this.dom)r=this.dom.childNodes[t];else{let i=ki(e)==0?0:t==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;i==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?i=-1:i=1),e=s}i<0?r=e:r=e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!de.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,s=0;;i++){let o=this.children[i];if(o.dom==r)return s;s+=o.length+o.breakAfter}}domBoundsAround(e,t,r=0){let i=-1,s=-1,o=-1,l=-1;for(let a=0,c=r,h=r;a<this.children.length;a++){let u=this.children[a],f=c+u.length;if(c<e&&f>t)return u.domBoundsAround(e,t,c);if(f>=e&&i==-1&&(i=a,s=c),c>t&&u.dom.parentNode==this.dom){o=a,l=h;break}h=f,c=f+u.breakAfter}return{from:s,to:l<0?r+this.length:l,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),t.dirty&1)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,r=Ma){this.markDirty();for(let i=e;i<t;i++){let s=this.children[i];s.parent==this&&s.destroy()}this.children.splice(e,t-e,...r);for(let i=0;i<r.length;i++)r[i].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new $d(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,r,i,s,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor}getSide(){return 0}destroy(){this.parent=null}}de.prototype.breakAfter=0;function Kc(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class $d{constructor(e,t,r){this.children=e,this.pos=t,this.i=r,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function _d(n,e,t,r,i,s,o,l,a){let{children:c}=n,h=c.length?c[e]:null,u=s.length?s[s.length-1]:null,f=u?u.breakAfter:o;if(!(e==r&&h&&!o&&!f&&s.length<2&&h.merge(t,i,s.length?u:null,t==0,l,a))){if(r<c.length){let d=c[r];d&&i<d.length?(e==r&&(d=d.split(i),i=0),!f&&u&&d.merge(0,i,u,!0,0,a)?s[s.length-1]=d:(i&&d.merge(0,i,null,!1,0,a),s.push(d))):d!=null&&d.breakAfter&&(u?u.breakAfter=1:o=1),r++}for(h&&(h.breakAfter=o,t>0&&(!o&&s.length&&h.merge(t,h.length,s[0],!1,l,0)?h.breakAfter=s.shift().breakAfter:(t<h.length||h.children.length&&h.children[h.children.length-1].length==0)&&h.merge(t,h.length,null,!1,l,0),e++));e<r&&s.length;)if(c[r-1].become(s[s.length-1]))r--,s.pop(),a=s.length?0:l;else if(c[e].become(s[0]))e++,s.shift(),l=s.length?0:a;else break;!s.length&&e&&r<c.length&&!c[e-1].breakAfter&&c[r].merge(0,0,c[e-1],!1,l,a)&&e--,(e<r||s.length)&&n.replaceChildren(e,r,s)}}function Pd(n,e,t,r,i,s){let o=n.childCursor(),{i:l,off:a}=o.findPos(t,1),{i:c,off:h}=o.findPos(e,-1),u=e-t;for(let f of r)u+=f.length;n.length+=u,_d(n,c,h,l,a,r,0,i,s)}let st=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Ul=typeof document<"u"?document:{documentElement:{style:{}}};const Bl=/Edge\/(\d+)/.exec(st.userAgent),Cd=/MSIE \d/.test(st.userAgent),Wl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(st.userAgent),po=!!(Cd||Wl||Bl),eh=!po&&/gecko\/(\d+)/i.test(st.userAgent),zo=!po&&/Chrome\/(\d+)/.exec(st.userAgent),th="webkitFontSmoothing"in Ul.documentElement.style,Ad=!po&&/Apple Computer/.test(st.vendor),nh=Ad&&(/Mobile\/\w+/.test(st.userAgent)||st.maxTouchPoints>2);var B={mac:nh||/Mac/.test(st.platform),windows:/Win/.test(st.platform),linux:/Linux|X11/.test(st.platform),ie:po,ie_version:Cd?Ul.documentMode||6:Wl?+Wl[1]:Bl?+Bl[1]:0,gecko:eh,gecko_version:eh?+(/Firefox\/(\d+)/.exec(st.userAgent)||[0,0])[1]:0,chrome:!!zo,chrome_version:zo?+zo[1]:0,ios:nh,android:/Android\b/.test(st.userAgent),webkit:th,safari:Ad,webkit_version:th?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Ul.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const i0=256;class Nn extends de{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,r){return r&&(!(r instanceof Nn)||this.length-(t-e)+r.length>i0)?!1:(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Nn(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new Ue(this.dom,e)}domBoundsAround(e,t,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Yl(this.dom,e,t)}}class an extends de{constructor(e,t=[],r=0){super(),this.mark=e,this.children=t,this.length=r;for(let i of t)i.setParent(this)}setAttrs(e){if(Qd(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e,t){this.dom?this.dirty&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,r,i,s,o){return r&&(!(r instanceof an&&r.mark.eq(this.mark))||e&&s<=0||t<this.length&&o<=0)?!1:(Pd(this,e,t,r?r.children:[],s-1,o-1),this.markDirty(),!0)}split(e){let t=[],r=0,i=-1,s=0;for(let l of this.children){let a=r+l.length;a>e&&t.push(r<e?l.split(e-r):l),i<0&&r>=e&&(i=s),r=a,s++}let o=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new an(this.mark,t,o)}domAtPos(e){return Rd(this,e)}coordsAt(e,t){return qd(this,e,t)}}function Yl(n,e,t){let r=n.nodeValue.length;e>r&&(e=r);let i=e,s=e,o=0;e==0&&t<0||e==r&&t>=0?B.chrome||B.gecko||(e?(i--,o=1):s<r&&(s++,o=-1)):t<0?i--:s<r&&s++;let l=Qr(n,i,s).getClientRects();if(!l.length)return null;let a=l[(o?o<0:t>=0)?0:l.length-1];return B.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(l,c=>c.width)||a),o?fo(a,o<0):a||null}class $n extends de{constructor(e,t,r){super(),this.widget=e,this.length=t,this.side=r,this.prevWidget=null}static create(e,t,r){return new(e.customView||$n)(e,t,r)}split(e){let t=$n.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,r,i,s,o){return r&&(!(r instanceof $n)||!this.widget.compare(r.widget)||e>0&&s<=0||t<this.length&&o<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-t),!0)}become(e){return e instanceof $n&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return se.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,r=t&&t.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):se.empty}domAtPos(e){return(this.length?e==0:this.side>0)?Ue.before(this.dom):Ue.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;let i=this.dom.getClientRects(),s=null;if(!i.length)return null;for(let o=e>0?i.length-1:0;s=i[o],!(e>0?o==0:o==i.length-1||s.top<s.bottom);o+=e>0?-1:1);return this.length?s:fo(s,this.side>0)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Td extends $n{domAtPos(e){let{topView:t,text:r}=this.widget;return t?jl(e,0,t,r,this.length-t.length,(i,s)=>i.domAtPos(s),(i,s)=>new Ue(i,Math.min(s,i.nodeValue.length))):new Ue(r,Math.min(e,r.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:r,text:i}=this.widget;return r?Xd(e,t,r,i,this.length-r.length):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:r,text:i}=this.widget;return r?jl(e,t,r,i,this.length-r.length,(s,o,l)=>s.coordsAt(o,l),(s,o,l)=>Yl(s,o,l)):Yl(i,e,t)}destroy(){var e;super.destroy(),(e=this.widget.topView)===null||e===void 0||e.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function jl(n,e,t,r,i,s,o){if(t instanceof an){for(let l=t.dom.firstChild;l;l=l.nextSibling){let a=de.get(l);if(a){let c=wr(l,r),h=a.length+(c?i:0);if(n<h||n==h&&a.getSide()<=0)return c?jl(n,e,a,r,i,s,o):s(a,n,e);n-=h}else{let c=Ed(n,e,l,o);if(typeof c!="number")return c;n=c}}return s(t,t.length,-1)}else return t.dom==r?o(r,n,e):s(t,n,e)}function Ed(n,e,t,r){if(t.nodeType==3){let i=t.nodeValue.length;if(n<=i)return r(t,n,e);n-=i}else if(t.nodeType==1&&t.contentEditable!="false")for(let i=t.firstChild;i;i=i.nextSibling){let s=Ed(n,e,i,r);if(typeof s!="number")return s;n=s}return n}function Xd(n,e,t,r,i){if(t instanceof an){let s=0;for(let o=t.dom.firstChild;o;o=o.nextSibling){let l=de.get(o);if(l){let a=wr(o,r);if(wr(o,n))return s+(a?Xd(n,e,l,r,i):l.localPosFromDOM(n,e));s+=l.length+(a?i:0)}else{let a=Dd(n,e,o);if(a.result!=null)return s+a.result;s+=a.size}}}else if(t.dom==r)return Math.min(e,r.nodeValue.length);return t.localPosFromDOM(n,e)}function Dd(n,e,t){if(t.nodeType==3)return n==t?{result:e}:{size:t.nodeValue.length};if(t.nodeType==1&&t.contentEditable!="false"){let r=0;for(let i=t.firstChild,s=0;;i=i.nextSibling,s++){if(n==t&&s==e)return{result:r};if(!i)return{size:r};let o=Dd(n,e,i);if(o.result!=null)return{result:e+o.result};r+=o.size}}else return t.contains(n)?{result:0}:{size:0}}class $r extends de{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof $r&&e.side==this.side}split(){return new $r(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?Ue.before(this.dom):Ue.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return se.empty}get isHidden(){return!0}}Nn.prototype.children=$n.prototype.children=$r.prototype.children=Ma;function Rd(n,e){let t=n.dom,{children:r}=n,i=0;for(let s=0;i<r.length;i++){let o=r[i],l=s+o.length;if(!(l==s&&o.getSide()<=0)){if(e>s&&e<l&&o.dom.parentNode==t)return o.domAtPos(e-s);if(e<=s)break;s=l}}for(let s=i;s>0;s--){let o=r[s-1];if(o.dom.parentNode==t)return o.domAtPos(o.length)}for(let s=i;s<r.length;s++){let o=r[s];if(o.dom.parentNode==t)return o.domAtPos(0)}return new Ue(t,0)}function Zd(n,e,t){let r,{children:i}=n;t>0&&e instanceof an&&i.length&&(r=i[i.length-1])instanceof an&&r.mark.eq(e.mark)?Zd(r,e.children[0],t-1):(i.push(e),e.setParent(n)),n.length+=e.length}function qd(n,e,t){let r=null,i=-1,s=null,o=-1;function l(c,h){for(let u=0,f=0;u<c.children.length&&f<=h;u++){let d=c.children[u],p=f+d.length;p>=h&&(d.children.length?l(d,h-f):(!s||s.isHidden&&t>0)&&(p>h||f==p&&d.getSide()>0)?(s=d,o=h-f):(f<h||f==p&&d.getSide()<0&&!d.isHidden)&&(r=d,i=h-f)),f=p}}l(n,e);let a=(t<0?r:s)||r||s;return a?a.coordsAt(Math.max(0,a==r?i:o),t):s0(n)}function s0(n){let e=n.dom.lastChild;if(!e)return n.dom.getBoundingClientRect();let t=xr(e);return t[t.length-1]||null}function Nl(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}function za(n,e){if(n==e)return!0;if(!n||!e)return!1;let t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let i of t)if(r.indexOf(i)==-1||n[i]!==e[i])return!1;return!0}function Fl(n,e,t){let r=null;if(e)for(let i in e)t&&i in t||n.removeAttribute(r=i);if(t)for(let i in t)e&&e[i]==t[i]||n.setAttribute(r=i,t[i]);return!!r}class Xn{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}coordsAt(e,t,r){return null}get customView(){return null}get isHidden(){return!1}destroy(e){}}var be=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(be||(be={}));class ce extends jn{constructor(e,t,r,i){super(),this.startSide=e,this.endSide=t,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(e){return new mo(e)}static widget(e){let t=e.side||0,r=!!e.block;return t+=r?t>0?3e8:-4e8:t>0?1e8:-1e8,new Fn(e,t,t,r,e.widget||null,!1)}static replace(e){let t=!!e.block,r,i;if(e.isBlockGap)r=-5e8,i=4e8;else{let{start:s,end:o}=Ld(e,t);r=(s?t?-3e8:-1:5e8)-1,i=(o?t?2e8:1:-6e8)+1}return new Fn(e,r,i,t,e.widget||null,!0)}static line(e){return new Li(e)}static set(e,t=!1){return Pe.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}ce.none=Pe.empty;class mo extends ce{constructor(e){let{start:t,end:r}=Ld(e);super(t?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof mo&&this.tagName==e.tagName&&this.class==e.class&&za(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}mo.prototype.point=!1;class Li extends ce{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Li&&this.spec.class==e.spec.class&&za(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Li.prototype.mapMode=Ne.TrackBefore;Li.prototype.point=!0;class Fn extends ce{constructor(e,t,r,i,s,o){super(t,r,s,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?Ne.TrackBefore:Ne.TrackAfter:Ne.TrackDel}get type(){return this.startSide<this.endSide?be.WidgetRange:this.startSide<=0?be.WidgetBefore:be.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}eq(e){return e instanceof Fn&&o0(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Fn.prototype.point=!0;function Ld(n,e=!1){let{inclusiveStart:t,inclusiveEnd:r}=n;return t==null&&(t=n.inclusive),r==null&&(r=n.inclusive),{start:t??e,end:r??e}}function o0(n,e){return n==e||!!(n&&e&&n.compare(e))}function Gl(n,e,t,r=0){let i=t.length-1;i>=0&&t[i]+r>=n?t[i]=Math.max(t[i],e):t.push(n,e)}class Fe extends de{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,r,i,s,o){if(r){if(!(r instanceof Fe))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),Pd(this,e,t,r?r.children:[],s,o),!0}split(e){let t=new Fe;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i:r,off:i}=this.childPos(e);i&&(t.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let s=r;s<this.children.length;s++)t.append(this.children[s],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){za(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Zd(this,e,t)}addLineDeco(e){let t=e.spec.attributes,r=e.spec.class;t&&(this.attrs=Nl(t,this.attrs||{})),r&&(this.attrs=Nl({class:r},this.attrs||{}))}domAtPos(e){return Rd(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.dirty|=6)}sync(e,t){var r;this.dom?this.dirty&4&&(Qd(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Fl(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let i=this.dom.lastChild;for(;i&&de.get(i)instanceof an;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=de.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!B.ios||!this.children.some(s=>s instanceof Nn))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let r of this.children){if(!(r instanceof Nn)||/[^ -~]/.test(r.text))return null;let i=xr(r.dom);if(i.length!=1)return null;e+=i[0].width,t=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let r=qd(this,e,t);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,s=r.bottom-r.top;if(Math.abs(s-i.lineHeight)<2&&i.textHeight<s){let o=(s-i.textHeight)/2;return{top:r.top+o,bottom:r.bottom-o,left:r.left,right:r.left}}}return r}become(e){return!1}get type(){return be.Text}static find(e,t){for(let r=0,i=0;r<e.children.length;r++){let s=e.children[r],o=i+s.length;if(o>=t){if(s instanceof Fe)return s;if(o>t)break}i=o+s.breakAfter}return null}}class Yn extends de{constructor(e,t,r){super(),this.widget=e,this.length=t,this.type=r,this.breakAfter=0,this.prevWidget=null}merge(e,t,r,i,s,o){return r&&(!(r instanceof Yn)||!this.widget.compare(r.widget)||e>0&&s<=0||t<this.length&&o<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?Ue.before(this.dom):Ue.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let r=new Yn(this.widget,t,this.type);return r.breakAfter=this.breakAfter,r}get children(){return Ma}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):se.empty}domBoundsAround(){return null}become(e){return e instanceof Yn&&e.type==this.type&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Ua{constructor(e,t,r,i){this.doc=e,this.pos=t,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!e.breakAfter&&!(e instanceof Yn&&e.type==be.WidgetBefore)}getLine(){return this.curLine||(this.content.push(this.curLine=new Fe),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(rs(new $r(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}buildText(e,t,r){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-r)),this.getLine().append(rs(new Nn(this.text.slice(this.textOff,this.textOff+i)),t),r),this.atCursorPos=!0,this.textOff+=i,e-=i,r=0}}span(e,t,r,i){this.buildText(t-e,r,i),this.pos=t,this.openStart<0&&(this.openStart=i)}point(e,t,r,i,s,o){if(this.disallowBlockEffectsFor[o]&&r instanceof Fn){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(r instanceof Fn)if(r.block){let{type:a}=r;a==be.WidgetAfter&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Yn(r.widget||new rh("div"),l,a))}else{let a=$n.create(r.widget||new rh("span"),l,l?0:r.startSide),c=this.atCursorPos&&!a.isEditable&&s<=i.length&&(e<t||r.startSide>0),h=!a.isEditable&&(e<t||s>i.length||r.startSide<=0),u=this.getLine();this.pendingBuffer==2&&!c&&!a.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),c&&(u.append(rs(new $r(1),i),s),s=i.length+Math.max(0,s-i.length)),u.append(rs(a,i),s),this.atCursorPos=h,this.pendingBuffer=h?e<t||s>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=s)}static build(e,t,r,i,s){let o=new Ua(e,t,r,s);return o.openEnd=Pe.spans(i,t,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function rs(n,e){for(let t of e)n=new an(t,[n],n.length);return n}class rh extends Xn{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}}const Vd=F.define(),Id=F.define(),Md=F.define(),zd=F.define(),Hl=F.define(),Ud=F.define(),Bd=F.define(),Wd=F.define({combine:n=>n.some(e=>e)}),Yd=F.define({combine:n=>n.some(e=>e)});class Bs{constructor(e,t="nearest",r="nearest",i=5,s=5){this.range=e,this.y=t,this.x=r,this.yMargin=i,this.xMargin=s}map(e){return e.empty?this:new Bs(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const ih=ye.define({map:(n,e)=>n.map(e)});function Cn(n,e,t){let r=n.facet(zd);r.length?r[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const Oo=F.define({combine:n=>n.length?n[0]:!0});let l0=0;const ri=F.define();class cn{constructor(e,t,r,i){this.id=e,this.create=t,this.domEventHandlers=r,this.extension=i(this)}static define(e,t){const{eventHandlers:r,provide:i,decorations:s}=t||{};return new cn(l0++,e,r,o=>{let l=[ri.of(o)];return s&&l.push(yi.of(a=>{let c=a.plugin(o);return c?s(c):ce.none})),i&&l.push(i(o)),l})}static fromClass(e,t){return cn.define(r=>new e(r),t)}}class Uo{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(r){if(Cn(t.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Cn(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(r){Cn(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const jd=F.define(),Ba=F.define(),yi=F.define(),Nd=F.define(),Fd=F.define(),ii=F.define();class jt{constructor(e,t,r,i){this.fromA=e,this.toA=t,this.fromB=r,this.toB=i}join(e){return new jt(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 t=e.length,r=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),e.splice(t-1,1)}}return e.splice(t,0,r),e}static extendWithRanges(e,t){if(t.length==0)return e;let r=[];for(let i=0,s=0,o=0,l=0;;i++){let a=i==e.length?null:e[i],c=o-l,h=a?a.fromB:1e9;for(;s<t.length&&t[s]<h;){let u=t[s],f=t[s+1],d=Math.max(l,u),p=Math.min(h,f);if(d<=p&&new jt(d+c,p+c,d,p).addToSet(r),f>h)break;s+=2}if(!a)return r;new jt(a.fromA,a.toA,a.fromB,a.toB).addToSet(r),o=a.toA,l=a.toB}}}class Ws{constructor(e,t,r){this.view=e,this.state=t,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=Re.empty(this.startState.doc.length);for(let s of r)this.changes=this.changes.compose(s.changes);let i=[];this.changes.iterChangedRanges((s,o,l,a)=>i.push(new jt(s,o,l,a))),this.changedRanges=i}static create(e,t,r){return new Ws(e,t,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>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}}var qe=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(qe||(qe={}));const Jl=qe.LTR,a0=qe.RTL;function Gd(n){let e=[];for(let t=0;t<n.length;t++)e.push(1<<+n[t]);return e}const c0=Gd("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),h0=Gd("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Kl=Object.create(null),Xt=[];for(let n of["()","[]","{}"]){let e=n.charCodeAt(0),t=n.charCodeAt(1);Kl[e]=t,Kl[t]=-e}function u0(n){return n<=247?c0[n]:1424<=n&&n<=1524?2:1536<=n&&n<=1785?h0[n-1536]:1774<=n&&n<=2220?4:8192<=n&&n<=8203?256:64336<=n&&n<=65023?4:n==8204?256:1}const f0=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class pr{constructor(e,t,r){this.from=e,this.to=t,this.level=r}get dir(){return this.level%2?a0:Jl}side(e,t){return this.dir==t==e?this.to:this.from}static find(e,t,r,i){let s=-1;for(let o=0;o<e.length;o++){let l=e[o];if(l.from<=t&&l.to>=t){if(l.level==r)return o;(s<0||(i!=0?i<0?l.from<t:l.to>t:e[s].level>l.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}const ke=[];function d0(n,e){let t=n.length,r=e==Jl?1:2,i=e==Jl?2:1;if(!n||r==1&&!f0.test(n))return Hd(t);for(let o=0,l=r,a=r;o<t;o++){let c=u0(n.charCodeAt(o));c==512?c=l:c==8&&a==4&&(c=16),ke[o]=c==4?2:c,c&7&&(a=c),l=c}for(let o=0,l=r,a=r;o<t;o++){let c=ke[o];if(c==128)o<t-1&&l==ke[o+1]&&l&24?c=ke[o]=l:ke[o]=256;else if(c==64){let h=o+1;for(;h<t&&ke[h]==64;)h++;let u=o&&l==8||h<t&&ke[h]==8?a==1?1:8:256;for(let f=o;f<h;f++)ke[f]=u;o=h-1}else c==8&&a==1&&(ke[o]=1);l=c,c&7&&(a=c)}for(let o=0,l=0,a=0,c,h,u;o<t;o++)if(h=Kl[c=n.charCodeAt(o)])if(h<0){for(let f=l-3;f>=0;f-=3)if(Xt[f+1]==-h){let d=Xt[f+2],p=d&2?r:d&4?d&1?i:r:0;p&&(ke[o]=ke[Xt[f]]=p),l=f;break}}else{if(Xt.length==189)break;Xt[l++]=o,Xt[l++]=c,Xt[l++]=a}else if((u=ke[o])==2||u==1){let f=u==r;a=f?0:1;for(let d=l-3;d>=0;d-=3){let p=Xt[d+2];if(p&2)break;if(f)Xt[d+2]|=2;else{if(p&4)break;Xt[d+2]|=4}}}for(let o=0;o<t;o++)if(ke[o]==256){let l=o+1;for(;l<t&&ke[l]==256;)l++;let a=(o?ke[o-1]:r)==1,c=(l<t?ke[l]:r)==1,h=a==c?a?1:2:r;for(let u=o;u<l;u++)ke[u]=h;o=l-1}let s=[];if(r==1)for(let o=0;o<t;){let l=o,a=ke[o++]!=1;for(;o<t&&a==(ke[o]!=1);)o++;if(a)for(let c=o;c>l;){let h=c,u=ke[--c]!=2;for(;c>l&&u==(ke[c-1]!=2);)c--;s.push(new pr(c,h,u?2:1))}else s.push(new pr(l,o,0))}else for(let o=0;o<t;){let l=o,a=ke[o++]==2;for(;o<t&&a==(ke[o]==2);)o++;s.push(new pr(l,o,a?1:2))}return s}function Hd(n){return[new pr(0,n,0)]}let Jd="";function p0(n,e,t,r,i){var s;let o=r.head-n.from,l=-1;if(o==0){if(!i||!n.length)return null;e[0].level!=t&&(o=e[0].side(!1,t),l=0)}else if(o==n.length){if(i)return null;let f=e[e.length-1];f.level!=t&&(o=f.side(!0,t),l=e.length-1)}l<0&&(l=pr.find(e,o,(s=r.bidiLevel)!==null&&s!==void 0?s:-1,r.assoc));let a=e[l];o==a.side(i,t)&&(a=e[l+=i?1:-1],o=a.side(!i,t));let c=i==(a.dir==t),h=ot(n.text,o,c);if(Jd=n.text.slice(Math.min(o,h),Math.max(o,h)),h!=a.side(i,t))return D.cursor(h+n.from,c?-1:1,a.level);let u=l==(i?e.length-1:0)?null:e[l+(i?1:-1)];return!u&&a.level!=t?D.cursor(i?n.to:n.from,i?-1:1,t):u&&u.level<a.level?D.cursor(u.side(!i,t)+n.from,i?1:-1,u.level):D.cursor(h+n.from,i?-1:1,a.level)}const _n="";class Kd{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(ie.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=_n}readRange(e,t){if(!e)return this;let r=e.parentNode;for(let i=e;;){this.findPointBefore(r,i),this.readNode(i);let s=i.nextSibling;if(s==t)break;let o=de.get(i),l=de.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:sh(i))||sh(s)&&(i.nodeName!="BR"||i.cmIgnore))&&this.lineBreak(),i=s}return this.findPointBefore(r,t),this}readTextNode(e){let t=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,t.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,l;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(l=i.exec(t))&&(s=l.index,o=l[0].length),this.append(t.slice(r,s<0?t.length:s)),s<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=s+o}}readNode(e){if(e.cmIgnore)return;let t=de.get(e),r=t&&t.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==t&&(r.pos=this.text.length)}findPointInside(e,t){for(let r of this.points)(e.nodeType==3?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+Math.min(t,r.offset))}}function sh(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}class oh{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class lh extends de{constructor(e){super(),this.view=e,this.compositionDeco=ce.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Fe],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new jt(0,0,0,e.state.doc.length)],0)}get length(){return this.view.state.doc.length}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every(({fromA:o,toA:l})=>l<this.minWidthFrom||o>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.view.inputState.composing<0?this.compositionDeco=ce.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=O0(this.view,e.changes)),(B.ie||B.chrome)&&!this.compositionDeco.size&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let r=this.decorations,i=this.updateDeco(),s=S0(r,i,e.changes);return t=jt.extendWithRanges(t,s),this.dirty==0&&t.length==0?!1:(this.updateInner(t,e.startState.doc.length),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=B.chrome||B.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.dirty=0,s&&(s.written||r.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""});let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let s of this.children)s instanceof Yn&&s.widget instanceof ah&&i.push(s.dom);r.updateGaps(i)}updateChildren(e,t){let r=this.childCursor(t);for(let i=e.length-1;;i--){let s=i>=0?e[i]:null;if(!s)break;let{fromA:o,toA:l,fromB:a,toB:c}=s,{content:h,breakAtStart:u,openStart:f,openEnd:d}=Ua.build(this.view.state.doc,a,c,this.decorations,this.dynamicDecorationMap),{i:p,off:m}=r.findPos(l,1),{i:O,off:b}=r.findPos(o,-1);_d(this,O,b,p,m,h,u,f,d)}}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,s=!i&&$s(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||t||s))return;let o=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.domAtPos(l.anchor),c=l.empty?a:this.domAtPos(l.head);if(B.gecko&&l.empty&&!this.compositionDeco.size&&m0(a)){let u=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(u,a.node.childNodes[a.offset]||null)),a=c=new Ue(u,0),o=!0}let h=this.view.observer.selectionRange;(o||!h.focusNode||!zs(a.node,a.offset,h.anchorNode,h.anchorOffset)||!zs(c.node,c.offset,h.focusNode,h.focusOffset))&&(this.view.observer.ignore(()=>{B.android&&B.chrome&&this.dom.contains(h.focusNode)&&k0(h.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let u=Ms(this.view.root);if(u)if(l.empty){if(B.gecko){let f=b0(a.node,a.offset);if(f&&f!=3){let d=tp(a.node,a.offset,f==1?1:-1);d&&(a=new Ue(d,f==1?0:d.nodeValue.length))}}u.collapse(a.node,a.offset),l.bidiLevel!=null&&h.cursorBidiLevel!=null&&(h.cursorBidiLevel=l.bidiLevel)}else if(u.extend){u.collapse(a.node,a.offset);try{u.extend(c.node,c.offset)}catch{}}else{let f=document.createRange();l.anchor>l.head&&([a,c]=[c,a]),f.setEnd(c.node,c.offset),f.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(f)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(a,c)),this.impreciseAnchor=a.precise?null:new Ue(h.anchorNode,h.anchorOffset),this.impreciseHead=c.precise?null:new Ue(h.focusNode,h.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:e}=this,t=e.state.selection.main,r=Ms(e.root),{anchorNode:i,anchorOffset:s}=e.observer.selectionRange;if(!r||!t.empty||!t.assoc||!r.modify)return;let o=Fe.find(this,t.head);if(!o)return;let l=o.posAtStart;if(t.head==l||t.head==l+o.length)return;let a=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!a||!c||a.bottom>c.top)return;let h=this.domAtPos(t.head+t.assoc);r.collapse(h.node,h.offset),r.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&r.collapse(i,s)}nearest(e){for(let t=e;t;){let r=de.get(t);if(r&&r.rootView==this)return r;t=t.parentNode}return null}posFromDOM(e,t){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,t)+r.posAtStart}domAtPos(e){let{i:t,off:r}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let i=this.children[t];if(r<i.length||i instanceof Fe)break;t++,r=0}return this.children[t].domAtPos(r)}coordsAt(e,t){for(let r=this.length,i=this.children.length-1;;i--){let s=this.children[i],o=r-s.breakAfter-s.length;if(e>o||e==o&&s.type!=be.WidgetBefore&&s.type!=be.WidgetAfter&&(!i||t==2||this.children[i-1].breakAfter||this.children[i-1].type==be.WidgetBefore&&t>-2))return s.coordsAt(e-o,t);r=o}}measureVisibleLineHeights(e){let t=[],{from:r,to:i}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==qe.LTR;for(let c=0,h=0;h<this.children.length;h++){let u=this.children[h],f=c+u.length;if(f>i)break;if(c>=r){let d=u.dom.getBoundingClientRect();if(t.push(d.height),o){let p=u.dom.lastChild,m=p?xr(p):[];if(m.length){let O=m[m.length-1],b=a?O.right-d.left:d.right-O.left;b>l&&(l=b,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=f)}}}c=f+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?qe.RTL:qe.LTR}measureTextSize(){for(let s of this.children)if(s instanceof Fe){let o=s.measureTextSize();if(o)return o}let e=document.createElement("div"),t,r,i;return e.className="cm-line",e.style.width="99999px",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=xr(e.firstChild)[0];t=e.getBoundingClientRect().height,r=s?s.width/27:7,i=s?s.height:t,e.remove()}),{lineHeight:t,charWidth:r,textHeight:i}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new $d(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let r=0,i=0;;i++){let s=i==t.viewports.length?null:t.viewports[i],o=s?s.from-1:this.length;if(o>r){let l=t.lineBlockAt(o).bottom-t.lineBlockAt(r).top;e.push(ce.replace({widget:new ah(l),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!s)break;r=s.to+1}return ce.set(e)}updateDeco(){let e=this.view.state.facet(yi).map((t,r)=>(this.dynamicDecorationMap[r]=typeof t=="function")?t(this.view):t);for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let{range:t}=e,r=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),i;if(!r)return;!t.empty&&(i=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let s=0,o=0,l=0,a=0;for(let h of this.view.state.facet(Fd).map(u=>u(this.view)))if(h){let{left:u,right:f,top:d,bottom:p}=h;u!=null&&(s=Math.max(s,u)),f!=null&&(o=Math.max(o,f)),d!=null&&(l=Math.max(l,d)),p!=null&&(a=Math.max(a,p))}let c={left:r.left-s,top:r.top-l,right:r.right+o,bottom:r.bottom+a};Kg(this.view.scrollDOM,c,t.head<t.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==qe.LTR)}}function m0(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}class ah extends Xn{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function ep(n){let e=n.observer.selectionRange,t=e.focusNode&&tp(e.focusNode,e.focusOffset,0);if(!t)return null;let r=n.docView.nearest(t);if(!r)return null;if(r instanceof Fe){let i=t;for(;i.parentNode!=r.dom;)i=i.parentNode;let s=i.previousSibling;for(;s&&!de.get(s);)s=s.previousSibling;let o=s?de.get(s).posAtEnd:r.posAtStart;return{from:o,to:o,node:i,text:t}}else{for(;;){let{parent:s}=r;if(!s)return null;if(s instanceof Fe)break;r=s}let i=r.posAtStart;return{from:i,to:i+r.length,node:r.dom,text:t}}}function O0(n,e){let t=ep(n);if(!t)return ce.none;let{from:r,to:i,node:s,text:o}=t,l=e.mapPos(r,1),a=Math.max(l,e.mapPos(i,-1)),{state:c}=n,h=s.nodeType==3?s.nodeValue:new Kd([],c).readRange(s.firstChild,null).text;if(a-l<h.length)if(c.doc.sliceString(l,Math.min(c.doc.length,l+h.length),_n)==h)a=l+h.length;else if(c.doc.sliceString(Math.max(0,a-h.length),a,_n)==h)l=a-h.length;else return ce.none;else if(c.doc.sliceString(l,a,_n)!=h)return ce.none;let u=de.get(s);return u instanceof Td?u=u.widget.topView:u&&(u.parent=null),ce.set(ce.replace({widget:new g0(s,o,u),inclusive:!0}).range(l,a))}class g0 extends Xn{constructor(e,t,r){super(),this.top=e,this.text=t,this.topView=r}eq(e){return this.top==e.top&&this.text==e.text}toDOM(){return this.top}ignoreEvent(){return!1}get customView(){return Td}}function tp(n,e,t){if(t<=0)for(let r=n,i=e;;){if(r.nodeType==3)return r;if(r.nodeType==1&&i>0)r=r.childNodes[i-1],i=ki(r);else break}if(t>=0)for(let r=n,i=e;;){if(r.nodeType==3)return r;if(r.nodeType==1&&i<r.childNodes.length&&t>=0)r=r.childNodes[i],i=0;else break}return null}function b0(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e<n.childNodes.length&&n.childNodes[e].contentEditable=="false"?2:0)}class v0{constructor(){this.changes=[]}compareRange(e,t){Gl(e,t,this.changes)}comparePoint(e,t){Gl(e,t,this.changes)}}function S0(n,e,t){let r=new v0;return Pe.compare(n,e,t,r),r.changes}function k0(n,e){for(let t=n;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function y0(n,e,t=1){let r=n.charCategorizer(e),i=n.doc.lineAt(e),s=e-i.from;if(i.length==0)return D.cursor(e);s==0?t=1:s==i.length&&(t=-1);let o=s,l=s;t<0?o=ot(i.text,s,!1):l=ot(i.text,s);let a=r(i.text.slice(o,l));for(;o>0;){let c=ot(i.text,o,!1);if(r(i.text.slice(c,o))!=a)break;o=c}for(;l<i.length;){let c=ot(i.text,l);if(r(i.text.slice(l,c))!=a)break;l=c}return D.range(o+i.from,l+i.from)}function w0(n,e){return e.left>n?e.left-n:Math.max(0,n-e.right)}function x0(n,e){return e.top>n?e.top-n:Math.max(0,n-e.bottom)}function Bo(n,e){return n.top<e.bottom-1&&n.bottom>e.top+1}function ch(n,e){return e<n.top?{top:e,left:n.left,right:n.right,bottom:n.bottom}:n}function hh(n,e){return e>n.bottom?{top:n.top,left:n.left,right:n.right,bottom:e}:n}function ea(n,e,t){let r,i,s,o,l=!1,a,c,h,u;for(let p=n.firstChild;p;p=p.nextSibling){let m=xr(p);for(let O=0;O<m.length;O++){let b=m[O];i&&Bo(i,b)&&(b=ch(hh(b,i.bottom),i.top));let k=w0(e,b),y=x0(t,b);if(k==0&&y==0)return p.nodeType==3?uh(p,e,t):ea(p,e,t);if(!r||o>y||o==y&&s>k){r=p,i=b,s=k,o=y;let Q=y?t<b.top?-1:1:k?e<b.left?-1:1:0;l=!Q||(Q>0?O<m.length-1:O>0)}k==0?t>b.bottom&&(!h||h.bottom<b.bottom)?(a=p,h=b):t<b.top&&(!u||u.top>b.top)&&(c=p,u=b):h&&Bo(h,b)?h=hh(h,b.bottom):u&&Bo(u,b)&&(u=ch(u,b.top))}}if(h&&h.bottom>=t?(r=a,i=h):u&&u.top<=t&&(r=c,i=u),!r)return{node:n,offset:0};let f=Math.max(i.left,Math.min(i.right,e));if(r.nodeType==3)return uh(r,f,t);if(l&&r.contentEditable!="false")return ea(r,f,t);let d=Array.prototype.indexOf.call(n.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return{node:n,offset:d}}function uh(n,e,t){let r=n.nodeValue.length,i=-1,s=1e9,o=0;for(let l=0;l<r;l++){let a=Qr(n,l,l+1).getClientRects();for(let c=0;c<a.length;c++){let h=a[c];if(h.top==h.bottom)continue;o||(o=e-h.left);let u=(h.top>t?h.top-t:t-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&u<s){let f=e>=(h.left+h.right)/2,d=f;if((B.chrome||B.gecko)&&Qr(n,l).getBoundingClientRect().left==h.right&&(d=!f),u<=0)return{node:n,offset:l+(d?1:0)};i=l+(d?1:0),s=u}}}return{node:n,offset:i>-1?i:o>0?n.nodeValue.length:0}}function np(n,e,t,r=-1){var i,s;let o=n.contentDOM.getBoundingClientRect(),l=o.top+n.viewState.paddingTop,a,{docHeight:c}=n.viewState,{x:h,y:u}=e,f=u-l;if(f<0)return 0;if(f>c)return n.state.doc.length;for(let Q=n.defaultLineHeight/2,$=!1;a=n.elementAtHeight(f),a.type!=be.Text;)for(;f=r>0?a.bottom+Q:a.top-Q,!(f>=0&&f<=c);){if($)return t?null:0;$=!0,r=-r}u=l+f;let d=a.from;if(d<n.viewport.from)return n.viewport.from==0?0:t?null:fh(n,o,a,h,u);if(d>n.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:t?null:fh(n,o,a,h,u);let p=n.dom.ownerDocument,m=n.root.elementFromPoint?n.root:p,O=m.elementFromPoint(h,u);O&&!n.contentDOM.contains(O)&&(O=null),O||(h=Math.max(o.left+1,Math.min(o.right-1,h)),O=m.elementFromPoint(h,u),O&&!n.contentDOM.contains(O)&&(O=null));let b,k=-1;if(O&&((i=n.docView.nearest(O))===null||i===void 0?void 0:i.isEditable)!=!1){if(p.caretPositionFromPoint){let Q=p.caretPositionFromPoint(h,u);Q&&({offsetNode:b,offset:k}=Q)}else if(p.caretRangeFromPoint){let Q=p.caretRangeFromPoint(h,u);Q&&({startContainer:b,startOffset:k}=Q,(!n.contentDOM.contains(b)||B.safari&&Q0(b,k,h)||B.chrome&&$0(b,k,h))&&(b=void 0))}}if(!b||!n.docView.dom.contains(b)){let Q=Fe.find(n.docView,d);if(!Q)return f>a.top+a.height/2?a.to:a.from;({node:b,offset:k}=ea(Q.dom,h,u))}let y=n.docView.nearest(b);if(!y)return null;if(y.isWidget&&((s=y.dom)===null||s===void 0?void 0:s.nodeType)==1){let Q=y.dom.getBoundingClientRect();return e.y<Q.top||e.y<=Q.bottom&&e.x<=(Q.left+Q.right)/2?y.posAtStart:y.posAtEnd}else return y.localPosFromDOM(b,k)+y.posAtStart}function fh(n,e,t,r,i){let s=Math.round((r-e.left)*n.defaultCharacterWidth);if(n.lineWrapping&&t.height>n.defaultLineHeight*1.5){let l=Math.floor((i-t.top)/n.defaultLineHeight);s+=l*n.viewState.heightOracle.lineLength}let o=n.state.sliceDoc(t.from,t.to);return t.from+Wg(o,s,n.state.tabSize)}function Q0(n,e,t){let r;if(n.nodeType!=3||e!=(r=n.nodeValue.length))return!1;for(let i=n.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return Qr(n,r-1,r).getBoundingClientRect().left>t}function $0(n,e,t){if(e!=0)return!1;for(let i=n;;){let s=i.parentNode;if(!s||s.nodeType!=1||s.firstChild!=i)return!1;if(s.classList.contains("cm-line"))break;i=s}let r=n.nodeType==1?n.getBoundingClientRect():Qr(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return t-r.left>5}function _0(n,e,t,r){let i=n.state.doc.lineAt(e.head),s=!r||!n.lineWrapping?null:n.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(s){let a=n.dom.getBoundingClientRect(),c=n.textDirectionAt(i.from),h=n.posAtCoords({x:t==(c==qe.LTR)?a.right-1:a.left+1,y:(s.top+s.bottom)/2});if(h!=null)return D.cursor(h,t?-1:1)}let o=Fe.find(n.docView,e.head),l=o?t?o.posAtEnd:o.posAtStart:t?i.to:i.from;return D.cursor(l,t?-1:1)}function dh(n,e,t,r){let i=n.state.doc.lineAt(e.head),s=n.bidiSpans(i),o=n.textDirectionAt(i.from);for(let l=e,a=null;;){let c=p0(i,s,o,l,t),h=Jd;if(!c){if(i.number==(t?n.state.doc.lines:1))return l;h=`
`,i=n.state.doc.line(i.number+(t?1:-1)),s=n.bidiSpans(i),c=D.cursor(t?i.from:i.to)}if(a){if(!a(h))return l}else{if(!r)return c;a=r(h)}l=c}}function P0(n,e,t){let r=n.state.charCategorizer(e),i=r(t);return s=>{let o=r(s);return i==sn.Space&&(i=o),i==o}}function C0(n,e,t,r){let i=e.head,s=t?1:-1;if(i==(t?n.state.doc.length:0))return D.cursor(i,e.assoc);let o=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),c=n.coordsAtPos(i),h=n.documentTop;if(c)o==null&&(o=c.left-a.left),l=s<0?c.top:c.bottom;else{let d=n.viewState.lineBlockAt(i);o==null&&(o=Math.min(a.right-a.left,n.defaultCharacterWidth*(i-d.from))),l=(s<0?d.top:d.bottom)+h}let u=a.left+o,f=r??n.defaultLineHeight>>1;for(let d=0;;d+=10){let p=l+(f+d)*s,m=np(n,{x:u,y:p},!1,s);if(p<a.top||p>a.bottom||(s<0?m<i:m>i))return D.cursor(m,e.assoc,void 0,o)}}function Wo(n,e,t){let r=n.state.facet(Nd).map(i=>i(n));for(;;){let i=!1;for(let s of r)s.between(t.from-1,t.from+1,(o,l,a)=>{t.from>o&&t.from<l&&(t=e.head>t.from?D.cursor(o,1):D.cursor(l,-1),i=!0)});if(!i)return t}}class A0{constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null;let t=(r,i)=>{this.ignoreDuringComposition(i)||i.type=="keydown"&&this.keydown(e,i)||(this.mustFlushObserver(i)&&e.observer.forceFlush(),this.runCustomHandlers(i.type,e,i)?i.preventDefault():r(e,i))};for(let r in Ce){let i=Ce[r];e.contentDOM.addEventListener(r,s=>{ph(e,s)&&t(i,s)},ta[r]),this.registeredEvents.push(r)}e.scrollDOM.addEventListener("mousedown",r=>{if(r.target==e.scrollDOM&&r.clientY>e.contentDOM.getBoundingClientRect().bottom&&(t(Ce.mousedown,r),!r.defaultPrevented&&r.button==2)){let i=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout(()=>e.contentDOM.style.minHeight=i,200)}}),e.scrollDOM.addEventListener("drop",r=>{r.target==e.scrollDOM&&r.clientY>e.contentDOM.getBoundingClientRect().bottom&&t(Ce.drop,r)}),B.chrome&&B.chrome_version==102&&e.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=e.hasFocus,B.safari&&e.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var r;let i;this.customHandlers=[];for(let s of t)if(i=(r=s.update(e).spec)===null||r===void 0?void 0:r.domEventHandlers){this.customHandlers.push({plugin:s.value,handlers:i});for(let o in i)this.registeredEvents.indexOf(o)<0&&o!="scroll"&&(this.registeredEvents.push(o),e.contentDOM.addEventListener(o,l=>{ph(e,l)&&this.runCustomHandlers(o,e,l)&&l.preventDefault()}))}}runCustomHandlers(e,t,r){for(let i of this.customHandlers){let s=i.handlers[e];if(s)try{if(s.call(i.plugin,r,t)||r.defaultPrevented)return!0}catch(o){Cn(t.state,o)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let r of this.customHandlers){let i=r.handlers.scroll;if(i)try{i.call(r.plugin,t,e)}catch(s){Cn(e.state,s)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(t.keyCode!=27&&ip.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0),B.android&&B.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return e.observer.delayAndroidKey(t.key,t.keyCode),!0;let r;return B.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((r=rp.find(i=>i.keyCode==t.keyCode))&&!t.ctrlKey||T0.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=r||t,setTimeout(()=>this.flushIOSKey(e),250),!0):!1}flushIOSKey(e){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,dr(e.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:B.safari&&!B.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}mustFlushObserver(e){return e.type=="keydown"&&e.keyCode!=229}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const rp=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],T0="dthko",ip=[16,17,18,20,91,92,224,225],is=6;function ss(n){return Math.max(0,n)*.7+8}class E0{constructor(e,t,r,i){this.view=e,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=e0(e.contentDOM);let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(ie.allowMultipleSelections)&&X0(e,t),this.dragMove=D0(e,t),this.dragging=R0(e,t)&&ap(t)==1?null:!1}start(e){this.dragging===!1&&(e.preventDefault(),this.select(e))}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging!==!1)return;this.select(this.lastEvent=e);let r=0,i=0,s=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};e.clientX<=s.left+is?r=-ss(s.left-e.clientX):e.clientX>=s.right-is&&(r=ss(e.clientX-s.right)),e.clientY<=s.top+is?i=-ss(s.top-e.clientY):e.clientY>=s.bottom-is&&(i=ss(e.clientY-s.bottom)),this.setScrollSpeed(r,i)}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=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}select(e){let t=this.style.get(e,this.extend,this.multiple);(this.mustSelect||!t.eq(this.view.state.selection)||t.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:t,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function X0(n,e){let t=n.state.facet(Vd);return t.length?t[0](e):B.mac?e.metaKey:e.ctrlKey}function D0(n,e){let t=n.state.facet(Id);return t.length?t[0](e):B.mac?!e.altKey:!e.ctrlKey}function R0(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let r=Ms(n.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let s=0;s<i.length;s++){let o=i[s];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function ph(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,r;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(r=de.get(t))&&r.ignoreEvent(e))return!1;return!0}const Ce=Object.create(null),ta=Object.create(null),sp=B.ie&&B.ie_version<15||B.ios&&B.webkit_version<604;function Z0(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),op(n,t.value)},50)}function op(n,e){let{state:t}=n,r,i=1,s=t.toText(e),o=s.lines==t.selection.ranges.length;if(na!=null&&t.selection.ranges.every(a=>a.empty)&&na==s.toString()){let a=-1;r=t.changeByRange(c=>{let h=t.doc.lineAt(c.from);if(h.from==a)return{range:c};a=h.from;let u=t.toText((o?s.line(i++).text:e)+t.lineBreak);return{changes:{from:h.from,insert:u},range:D.cursor(c.from+u.length)}})}else o?r=t.changeByRange(a=>{let c=s.line(i++);return{changes:{from:a.from,to:a.to,insert:c.text},range:D.cursor(a.from+c.length)}}):r=t.replaceSelection(s);n.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Ce.keydown=(n,e)=>{n.inputState.setSelectionOrigin("select"),e.keyCode==27&&(n.inputState.lastEscPress=Date.now())};Ce.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};Ce.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};ta.touchstart=ta.touchmove={passive:!0};Ce.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return;let t=null;for(let r of n.state.facet(Md))if(t=r(n,e),t)break;if(!t&&e.button==0&&(t=V0(n,e)),t){let r=n.root.activeElement!=n.contentDOM;n.inputState.startMouseSelection(new E0(n,e,t,r)),r&&n.observer.ignore(()=>xd(n.contentDOM)),n.inputState.mouseSelection&&n.inputState.mouseSelection.start(e)}};function mh(n,e,t,r){if(r==1)return D.cursor(e,t);if(r==2)return y0(n.state,e,t);{let i=Fe.find(n.docView,e),s=n.state.doc.lineAt(i?i.posAtEnd:e),o=i?i.posAtStart:s.from,l=i?i.posAtEnd:s.to;return l<n.state.doc.length&&l==s.to&&l++,D.range(o,l)}}let lp=(n,e)=>n>=e.top&&n<=e.bottom,Oh=(n,e,t)=>lp(e,t)&&n>=t.left&&n<=t.right;function q0(n,e,t,r){let i=Fe.find(n.docView,e);if(!i)return 1;let s=e-i.posAtStart;if(s==0)return 1;if(s==i.length)return-1;let o=i.coordsAt(s,-1);if(o&&Oh(t,r,o))return-1;let l=i.coordsAt(s,1);return l&&Oh(t,r,l)?1:o&&lp(r,o)?-1:1}function gh(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:q0(n,t,e.clientX,e.clientY)}}const L0=B.ie&&B.ie_version<=11;let bh=null,vh=0,Sh=0;function ap(n){if(!L0)return n.detail;let e=bh,t=Sh;return bh=n,Sh=Date.now(),vh=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(vh+1)%3:1}function V0(n,e){let t=gh(n,e),r=ap(e),i=n.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),i=i.map(s.changes))},get(s,o,l){let a=gh(n,s),c,h=mh(n,a.pos,a.bias,r);if(t.pos!=a.pos&&!o){let u=mh(n,t.pos,t.bias,r),f=Math.min(u.from,h.from),d=Math.max(u.to,h.to);h=f<h.from?D.range(f,d):D.range(d,f)}return o?i.replaceRange(i.main.extend(h.from,h.to)):l&&r==1&&i.ranges.length>1&&(c=I0(i,a.pos))?c:l?i.addRange(h):D.create([h])}}}function I0(n,e){for(let t=0;t<n.ranges.length;t++){let{from:r,to:i}=n.ranges[t];if(r<=e&&i>=e)return D.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}Ce.dragstart=(n,e)=>{let{selection:{main:t}}=n.state,{mouseSelection:r}=n.inputState;r&&(r.dragging=t),e.dataTransfer&&(e.dataTransfer.setData("Text",n.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove")};function kh(n,e,t,r){if(!t)return;let i=n.posAtCoords({x:e.clientX,y:e.clientY},!1);e.preventDefault();let{mouseSelection:s}=n.inputState,o=r&&s&&s.dragging&&s.dragMove?{from:s.dragging.from,to:s.dragging.to}:null,l={from:i,insert:t},a=n.state.changes(o?[o,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(i,-1),head:a.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"})}Ce.drop=(n,e)=>{if(!e.dataTransfer)return;if(n.state.readOnly)return e.preventDefault();let t=e.dataTransfer.files;if(t&&t.length){e.preventDefault();let r=Array(t.length),i=0,s=()=>{++i==t.length&&kh(n,e,r.filter(o=>o!=null).join(n.state.lineBreak),!1)};for(let o=0;o<t.length;o++){let l=new FileReader;l.onerror=s,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(r[o]=l.result),s()},l.readAsText(t[o])}}else kh(n,e,e.dataTransfer.getData("Text"),!0)};Ce.paste=(n,e)=>{if(n.state.readOnly)return e.preventDefault();n.observer.flush();let t=sp?null:e.clipboardData;t?(op(n,t.getData("text/plain")||t.getData("text/uri-text")),e.preventDefault()):Z0(n)};function M0(n,e){let t=n.dom.parentNode;if(!t)return;let r=t.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(),n.focus()},50)}function z0(n){let e=[],t=[],r=!1;for(let i of n.selection.ranges)i.empty||(e.push(n.sliceDoc(i.from,i.to)),t.push(i));if(!e.length){let i=-1;for(let{from:s}of n.selection.ranges){let o=n.doc.lineAt(s);o.number>i&&(e.push(o.text),t.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),i=o.number}r=!0}return{text:e.join(n.lineBreak),ranges:t,linewise:r}}let na=null;Ce.copy=Ce.cut=(n,e)=>{let{text:t,ranges:r,linewise:i}=z0(n.state);if(!t&&!i)return;na=i?t:null;let s=sp?null:e.clipboardData;s?(e.preventDefault(),s.clearData(),s.setData("text/plain",t)):M0(n,t),e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})};const cp=un.define();function hp(n,e){let t=[];for(let r of n.facet(Bd)){let i=r(n,e);i&&t.push(i)}return t?n.update({effects:t,annotations:cp.of(!0)}):null}function up(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=hp(n.state,e);t?n.dispatch(t):n.update([])}},10)}Ce.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),up(n)};Ce.blur=n=>{n.observer.clearSelectionRange(),up(n)};Ce.compositionstart=Ce.compositionupdate=n=>{n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0)};Ce.compositionend=n=>{n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,B.chrome&&B.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.compositionDeco.size&&n.update([])},50)};Ce.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};Ce.beforeinput=(n,e)=>{var t;let r;if(B.chrome&&B.android&&(r=rp.find(i=>i.inputType==e.inputType))&&(n.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>i+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}};const yh=["pre-wrap","normal","pre-line","break-spaces"];class U0{constructor(e){this.lineWrapping=e,this.doc=se.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let r=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((t-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return yh.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let r=0;r<e.length;r++){let i=e[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(t=!0,this.heightSamples[Math.floor(i*10)]=!0)}return t}refresh(e,t,r,i,s,o){let l=yh.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=r,this.textHeight=i,this.lineLength=s,a){this.heightSamples={};for(let c=0;c<o.length;c++){let h=o[c];h<0?c++:this.heightSamples[Math.floor(h*10)]=!0}}return a}}class B0{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class rn{constructor(e,t,r,i,s){this.from=e,this.length=t,this.top=r,this.height=i,this.type=s}get to(){return this.from+this.length}get bottom(){return this.top+this.height}join(e){let t=(Array.isArray(this.type)?this.type:[this]).concat(Array.isArray(e.type)?e.type:[e]);return new rn(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Oe=function(n){return n[n.ByPos=0]="ByPos",n[n.ByHeight=1]="ByHeight",n[n.ByPosNoHeight=2]="ByPosNoHeight",n}(Oe||(Oe={}));const _s=.001;class Ge{constructor(e,t,r=2){this.length=e,this.height=t,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>_s&&(e.heightChanged=!0),this.height=t)}replace(e,t,r){return Ge.of(r)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,r,i){let s=this,o=r.doc;for(let l=i.length-1;l>=0;l--){let{fromA:a,toA:c,fromB:h,toB:u}=i[l],f=s.lineAt(a,Oe.ByPosNoHeight,r.setDoc(t),0,0),d=f.to>=c?f:s.lineAt(c,Oe.ByPosNoHeight,r,0,0);for(u+=d.to-c,c=d.to;l>0&&f.from<=i[l-1].toA;)a=i[l-1].fromA,h=i[l-1].fromB,l--,a<f.from&&(f=s.lineAt(a,Oe.ByPosNoHeight,r,0,0));h+=f.from-a,a=f.from;let p=Wa.build(r.setDoc(o),e,h,u);s=s.replace(a,c,p)}return s.updateHeight(r,0)}static empty(){return new it(0,0)}static of(e){if(e.length==1)return e[0];let t=0,r=e.length,i=0,s=0;for(;;)if(t==r)if(i>s*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),r+=1+l.break,i-=l.size}else if(s>i*2){let l=e[r];l.break?e.splice(r,1,l.left,null,l.right):e.splice(r,1,l.left,l.right),r+=2+l.break,s-=l.size}else break;else if(i<s){let l=e[t++];l&&(i+=l.size)}else{let l=e[--r];l&&(s+=l.size)}let o=0;return e[t-1]==null?(o=1,t--):e[t]==null&&(o=1,r++),new W0(Ge.of(e.slice(0,t)),o,Ge.of(e.slice(r)))}}Ge.prototype.size=1;class fp extends Ge{constructor(e,t,r){super(e,t),this.type=r}blockAt(e,t,r,i){return new rn(i,this.length,r,this.height,this.type)}lineAt(e,t,r,i,s){return this.blockAt(0,r,i,s)}forEachLine(e,t,r,i,s,o){e<=s+this.length&&t>=s&&o(this.blockAt(0,r,i,s))}updateHeight(e,t=0,r=!1,i){return i&&i.from<=t&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class it extends fp{constructor(e,t){super(e,t,be.Text),this.collapsed=0,this.widgetHeight=0}replace(e,t,r){let i=r[0];return r.length==1&&(i instanceof it||i instanceof Me&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Me?i=new it(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Ge.of(r)}updateHeight(e,t=0,r=!1,i){return i&&i.from<=t&&i.more?this.setHeight(e,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Me extends Ge{constructor(e){super(e,0)}heightMetrics(e,t){let r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,s=i-r+1,o,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*s);o=a/s,this.length>s+1&&(l=(this.height-a)/(this.length-s-1))}else o=this.height/s;return{firstLine:r,lastLine:i,perLine:o,perChar:l}}blockAt(e,t,r,i){let{firstLine:s,lastLine:o,perLine:l,perChar:a}=this.heightMetrics(t,i);if(t.lineWrapping){let c=i+Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length),h=t.doc.lineAt(c),u=l+h.length*a,f=Math.max(r,e-u/2);return new rn(h.from,h.length,f,u,be.Text)}else{let c=Math.max(0,Math.min(o-s,Math.floor((e-r)/l))),{from:h,length:u}=t.doc.line(s+c);return new rn(h,u,r+l*c,l,be.Text)}}lineAt(e,t,r,i,s){if(t==Oe.ByHeight)return this.blockAt(e,r,i,s);if(t==Oe.ByPosNoHeight){let{from:d,to:p}=r.doc.lineAt(e);return new rn(d,p-d,0,0,be.Text)}let{firstLine:o,perLine:l,perChar:a}=this.heightMetrics(r,s),c=r.doc.lineAt(e),h=l+c.length*a,u=c.number-o,f=i+l*u+a*(c.from-s-u);return new rn(c.from,c.length,Math.max(i,Math.min(f,i+this.height-h)),h,be.Text)}forEachLine(e,t,r,i,s,o){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:l,perLine:a,perChar:c}=this.heightMetrics(r,s);for(let h=e,u=i;h<=t;){let f=r.doc.lineAt(h);if(h==e){let p=f.number-l;u+=a*p+c*(e-s-p)}let d=a+c*f.length;o(new rn(f.from,f.length,u,d,be.Text)),u+=d,h=f.to+1}}replace(e,t,r){let i=this.length-t;if(i>0){let s=r[r.length-1];s instanceof Me?r[r.length-1]=new Me(s.length+i):r.push(null,new Me(i-1))}if(e>0){let s=r[0];s instanceof Me?r[0]=new Me(e+s.length):r.unshift(new Me(e-1),null)}return Ge.of(r)}decomposeLeft(e,t){t.push(new Me(e-1),null)}decomposeRight(e,t){t.push(null,new Me(this.length-e-1))}updateHeight(e,t=0,r=!1,i){let s=t+this.length;if(i&&i.from<=t+this.length&&i.more){let o=[],l=Math.max(t,i.from),a=-1;for(i.from>t&&o.push(new Me(i.from-t-1).updateHeight(e,t));l<=s&&i.more;){let h=e.doc.lineAt(l).length;o.length&&o.push(null);let u=i.heights[i.index++];a==-1?a=u:Math.abs(u-a)>=_s&&(a=-2);let f=new it(h,u);f.outdated=!1,o.push(f),l+=h+1}l<=s&&o.push(null,new Me(s-l).updateHeight(e,l));let c=Ge.of(o);return(a<0||Math.abs(c.height-this.height)>=_s||Math.abs(a-this.heightMetrics(e,t).perLine)>=_s)&&(e.heightChanged=!0),c}else(r||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class W0 extends Ge{constructor(e,t,r){super(e.length+t+r.length,e.height+r.height,t|(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,t,r,i){let s=r+this.left.height;return e<s?this.left.blockAt(e,t,r,i):this.right.blockAt(e,t,s,i+this.left.length+this.break)}lineAt(e,t,r,i,s){let o=i+this.left.height,l=s+this.left.length+this.break,a=t==Oe.ByHeight?e<o:e<l,c=a?this.left.lineAt(e,t,r,i,s):this.right.lineAt(e,t,r,o,l);if(this.break||(a?c.to<l:c.from>l))return c;let h=t==Oe.ByPosNoHeight?Oe.ByPosNoHeight:Oe.ByPos;return a?c.join(this.right.lineAt(l,h,r,o,l)):this.left.lineAt(l,h,r,i,s).join(c)}forEachLine(e,t,r,i,s,o){let l=i+this.left.height,a=s+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,r,i,s,o),t>=a&&this.right.forEachLine(e,t,r,l,a,o);else{let c=this.lineAt(a,Oe.ByPos,r,i,s);e<c.from&&this.left.forEachLine(e,c.from-1,r,i,s,o),c.to>=e&&c.from<=t&&o(c),t>c.to&&this.right.forEachLine(c.to+1,t,r,l,a,o)}}replace(e,t,r){let i=this.left.length+this.break;if(t<i)return this.balanced(this.left.replace(e,t,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,r));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let l of r)s.push(l);if(e>0&&wh(s,o-1),t<this.length){let l=s.length;this.decomposeRight(t,s),wh(s,l)}return Ge.of(s)}decomposeLeft(e,t){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(r++,e>=r&&t.push(null)),e>r&&this.right.decomposeLeft(e-r,t)}decomposeRight(e,t){let r=this.left.length,i=r+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e<r&&this.left.decomposeRight(e,t),this.break&&e<i&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Ge.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,r=!1,i){let{left:s,right:o}=this,l=t+s.length+this.break,a=null;return i&&i.from<=t+s.length&&i.more?a=s=s.updateHeight(e,t,r,i):s.updateHeight(e,t,r),i&&i.from<=l+o.length&&i.more?a=o=o.updateHeight(e,l,r,i):o.updateHeight(e,l,r),a?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function wh(n,e){let t,r;n[e]==null&&(t=n[e-1])instanceof Me&&(r=n[e+1])instanceof Me&&n.splice(e-1,3,new Me(t.length+1+r.length))}const Y0=5;class Wa{constructor(e,t){this.pos=e,this.oracle=t,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,t){if(this.lineStart>-1){let r=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof it?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new it(r-this.pos,-1)),this.writtenTo=r,t>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,r){if(e<t||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0;i<0&&(i=this.oracle.lineHeight);let s=t-e;r.block?this.addBlock(new fp(s,i,r.type)):(s||i>=Y0)&&this.addLineDeco(i,s)}else t>e&&this.span(e,t);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:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,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 it(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let r=new Me(t-e);return this.oracle.doc.lineAt(e).to==t&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof it)return e;let t=new it(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type==be.WidgetAfter&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=be.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let r=this.ensureLine();r.length+=t,r.collapsed+=t,r.widgetHeight=Math.max(r.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof it)&&!this.isCovered?this.nodes.push(new it(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=e;for(let i of this.nodes)i instanceof it&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(e,t,r,i){let s=new Wa(r,e);return Pe.spans(t,r,i,s,0),s.finish(r)}}function j0(n,e,t){let r=new N0;return Pe.compare(n,e,t,r,0),r.changes}class N0{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,r,i){(e<t||r&&r.heightRelevant||i&&i.heightRelevant)&&Gl(e,t,this.changes,5)}}function F0(n,e){let t=n.getBoundingClientRect(),r=n.ownerDocument,i=r.defaultView||window,s=Math.max(0,t.left),o=Math.min(i.innerWidth,t.right),l=Math.max(0,t.top),a=Math.min(i.innerHeight,t.bottom);for(let c=n.parentNode;c&&c!=r.body;)if(c.nodeType==1){let h=c,u=window.getComputedStyle(h);if((h.scrollHeight>h.clientHeight||h.scrollWidth>h.clientWidth)&&u.overflow!="visible"){let f=h.getBoundingClientRect();s=Math.max(s,f.left),o=Math.min(o,f.right),l=Math.max(l,f.top),a=c==n.parentNode?f.bottom:Math.min(a,f.bottom)}c=u.position=="absolute"||u.position=="fixed"?h.offsetParent:h.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-t.left,right:Math.max(s,o)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function G0(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Yo{constructor(e,t,r){this.from=e,this.to=t,this.size=r}static same(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(i.from!=s.from||i.to!=s.to||i.size!=s.size)return!1}return!0}draw(e){return ce.replace({widget:new H0(this.size,e)}).range(this.from,this.to)}}class H0 extends Xn{constructor(e,t){super(),this.size=e,this.vertical=t}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 xh{constructor(e){this.state=e,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.scaler=Qh,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=qe.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(Ba).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new U0(t),this.stateDeco=e.facet(yi).filter(r=>typeof r!="function"),this.heightMap=Ge.empty().applyChanges(this.stateDeco,se.empty,this.heightOracle.setDoc(e.doc),[new jt(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ce.set(this.lineGaps.map(r=>r.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let r=0;r<=1;r++){let i=r?t.head:t.anchor;if(!e.some(({from:s,to:o})=>i>=s&&i<=o)){let{from:s,to:o}=this.lineBlockAt(i);e.push(new os(s,o))}}this.viewports=e.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?Qh:new eb(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:si(e,this.scaler))})}update(e,t=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(yi).filter(c=>typeof c!="function");let i=e.changedRanges,s=jt.extendWithRanges(i,j0(r,this.stateDeco,e?e.changes:Re.empty(this.state.doc.length))),o=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=o&&(e.flags|=2);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<l.from||t.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let a=!e.changes.empty||e.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),a&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Yd)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,r=window.getComputedStyle(t),i=this.heightOracle,s=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?qe.RTL:qe.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),l=t.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let c=0,h=0,u=parseInt(r.paddingTop)||0,f=parseInt(r.paddingBottom)||0;(this.paddingTop!=u||this.paddingBottom!=f)&&(this.paddingTop=u,this.paddingBottom=f,c|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=8);let d=(this.printing?G0:F0)(t,this.paddingTop),p=d.top-this.pixelViewport.top,m=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(a=!0)),!this.inView&&!this.scrollTarget)return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,c|=8),a){let y=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(y)&&(o=!0),o||i.lineWrapping&&Math.abs(b-this.contentDOMWidth)>i.charWidth){let{lineHeight:Q,charWidth:$,textHeight:w}=e.docView.measureTextSize();o=Q>0&&i.refresh(s,Q,$,w,b/$,y),o&&(e.docView.minWidth=0,c|=8)}p>0&&m>0?h=Math.max(p,m):p<0&&m<0&&(h=Math.min(p,m)),i.heightChanged=!1;for(let Q of this.viewports){let $=Q.from==this.viewport.from?y:e.docView.measureVisibleLineHeights(Q);this.heightMap=(o?Ge.empty().applyChanges(this.stateDeco,se.empty,this.heightOracle,[new jt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new B0(Q.from,$))}i.heightChanged&&(c|=2)}let k=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return k&&(this.viewport=this.getViewport(h,this.scrollTarget)),this.updateForViewport(),(c&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,a=new os(i.lineAt(o-r*1e3,Oe.ByHeight,s,0,0).from,i.lineAt(l+(1-r)*1e3,Oe.ByHeight,s,0,0).to);if(t){let{head:c}=t.range;if(c<a.from||c>a.to){let h=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=i.lineAt(c,Oe.ByPos,s,0,0),f;t.y=="center"?f=(u.top+u.bottom)/2-h/2:t.y=="start"||t.y=="nearest"&&c<a.from?f=u.top:f=u.bottom-h,a=new os(i.lineAt(f-1e3/2,Oe.ByHeight,s,0,0).from,i.lineAt(f+h+1e3/2,Oe.ByHeight,s,0,0).to)}}return a}mapViewport(e,t){let r=t.mapPos(e.from,-1),i=t.mapPos(e.to,1);return new os(this.heightMap.lineAt(r,Oe.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,Oe.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},r=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,Oe.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(t,Oe.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:l}=this;return(e==0||i<=o-Math.max(10,Math.min(-r,250)))&&(t==this.state.doc.length||s>=l+Math.max(10,Math.min(r,250)))&&i>o-2*1e3&&s<l+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let r=[];for(let i of e)t.touchesRange(i.from,i.to)||r.push(new Yo(t.mapPos(i.from),t.mapPos(i.to),i.size));return r}ensureLineGaps(e,t){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,s=i>>1,o=i<<1;if(this.defaultTextDirection!=qe.LTR&&!r)return[];let l=[],a=(c,h,u,f)=>{if(h-c<s)return;let d=this.state.selection.main,p=[d.from];d.empty||p.push(d.to);for(let O of p)if(O>c&&O<h){a(c,O-10,u,f),a(O+10,h,u,f);return}let m=K0(e,O=>O.from>=u.from&&O.to<=u.to&&Math.abs(O.from-c)<s&&Math.abs(O.to-h)<s&&!p.some(b=>O.from<b&&O.to>b));if(!m){if(h<u.to&&t&&r&&t.visibleRanges.some(O=>O.from<=h&&O.to>=h)){let O=t.moveToLineBoundary(D.cursor(h),!1,!0).head;O>c&&(h=O)}m=new Yo(c,h,this.gapSize(u,c,h,f))}l.push(m)};for(let c of this.viewportLines){if(c.length<o)continue;let h=J0(c.from,c.to,this.stateDeco);if(h.total<o)continue;let u=this.scrollTarget?this.scrollTarget.range.head:null,f,d;if(r){let p=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,m,O;if(u!=null){let b=as(h,u),k=((this.visibleBottom-this.visibleTop)/2+p)/c.height;m=b-k,O=b+k}else m=(this.visibleTop-c.top-p)/c.height,O=(this.visibleBottom-c.top+p)/c.height;f=ls(h,m),d=ls(h,O)}else{let p=h.total*this.heightOracle.charWidth,m=i*this.heightOracle.charWidth,O,b;if(u!=null){let k=as(h,u),y=((this.pixelViewport.right-this.pixelViewport.left)/2+m)/p;O=k-y,b=k+y}else O=(this.pixelViewport.left-m)/p,b=(this.pixelViewport.right+m)/p;f=ls(h,O),d=ls(h,b)}f>c.from&&a(c.from,f,c,h),d<c.to&&a(d,c.to,c,h)}return l}gapSize(e,t,r,i){let s=as(i,r)-as(i,t);return this.heightOracle.lineWrapping?e.height*s:i.total*this.heightOracle.charWidth*s}updateLineGaps(e){Yo.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=ce.set(e.map(t=>t.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Pe.spans(e,this.viewport.from,this.viewport.to,{span(i,s){t.push({from:i,to:s})},point(){}},20);let r=t.length!=this.visibleRanges.length||this.visibleRanges.some((i,s)=>i.from!=t[s].from||i.to!=t[s].to);return this.visibleRanges=t,r?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||si(this.heightMap.lineAt(e,Oe.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return si(this.heightMap.lineAt(this.scaler.fromDOM(e),Oe.ByHeight,this.heightOracle,0,0),this.scaler)}elementAtHeight(e){return si(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 os{constructor(e,t){this.from=e,this.to=t}}function J0(n,e,t){let r=[],i=n,s=0;return Pe.spans(t,n,e,{span(){},point(o,l){o>i&&(r.push({from:i,to:o}),s+=o-i),i=l}},20),i<e&&(r.push({from:i,to:e}),s+=e-i),{total:s,ranges:r}}function ls({total:n,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let r=Math.floor(n*t);for(let i=0;;i++){let{from:s,to:o}=e[i],l=o-s;if(r<=l)return s+r;r-=l}}function as(n,e){let t=0;for(let{from:r,to:i}of n.ranges){if(e<=i){t+=e-r;break}t+=i-r}return t/n.total}function K0(n,e){for(let t of n)if(e(t))return t}const Qh={toDOM(n){return n},fromDOM(n){return n},scale:1};class eb{constructor(e,t,r){let i=0,s=0,o=0;this.viewports=r.map(({from:l,to:a})=>{let c=t.lineAt(l,Oe.ByPos,e,0,0).top,h=t.lineAt(a,Oe.ByPos,e,0,0).bottom;return i+=h-c,{from:l,to:a,top:c,bottom:h,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(t.height-i);for(let l of this.viewports)l.domTop=o+(l.top-s)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),s=l.bottom}toDOM(e){for(let t=0,r=0,i=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.top)return i+(e-r)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);r=s.bottom,i=s.domBottom}}fromDOM(e){for(let t=0,r=0,i=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.domTop)return r+(e-i)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);r=s.bottom,i=s.domBottom}}}function si(n,e){if(e.scale==1)return n;let t=e.toDOM(n.top),r=e.toDOM(n.bottom);return new rn(n.from,n.length,t,r-t,Array.isArray(n.type)?n.type.map(i=>si(i,e)):n.type)}const cs=F.define({combine:n=>n.join(" ")}),ra=F.define({combine:n=>n.indexOf(!0)>-1}),ia=Tn.newName(),dp=Tn.newName(),pp=Tn.newName(),mp={"&light":"."+dp,"&dark":"."+pp};function sa(n,e,t){return new Tn(e,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return n;if(!t||!t[i])throw new RangeError(`Unsupported selector: ${i}`);return t[i]}):n+" "+r}})}const tb=sa("."+ia,{"&":{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},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",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":{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:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&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",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&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},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".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"}},mp);class nb{constructor(e,t,r,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,r,0))){let l=s||o?[]:ib(e),a=new Kd(l,e.state);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=sb(l,this.bounds.from)}else{let l=e.observer.selectionRange,a=s&&s.node==l.focusNode&&s.offset==l.focusOffset||!wr(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),c=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!wr(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset);this.newSel=D.single(c,a)}}}function Op(n,e){let t,{newSel:r}=e,i=n.state.selection.main;if(e.bounds){let{from:s,to:o}=e.bounds,l=i.from,a=null;(n.inputState.lastKeyCode===8&&n.inputState.lastKeyTime>Date.now()-100||B.android&&e.text.length<o-s)&&(l=i.to,a="end");let c=rb(n.state.doc.sliceString(s,o,_n),e.text,l-s,a);c&&(B.chrome&&n.inputState.lastKeyCode==13&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==_n+_n&&c.toB--,t={from:s+c.from,to:s+c.toA,insert:se.of(e.text.slice(c.from,c.toB).split(_n))})}else r&&(!n.hasFocus&&n.state.facet(Oo)||r.main.eq(i))&&(r=null);if(!t&&!r)return!1;if(!t&&e.typeOver&&!i.empty&&r&&r.main.empty?t={from:i.from,to:i.to,insert:n.state.doc.slice(i.from,i.to)}:t&&t.from>=i.from&&t.to<=i.to&&(t.from!=i.from||t.to!=i.to)&&i.to-i.from-(t.to-t.from)<=4?t={from:i.from,to:i.to,insert:n.state.doc.slice(i.from,t.from).append(t.insert).append(n.state.doc.slice(t.to,i.to))}:(B.mac||B.android)&&t&&t.from==t.to&&t.from==i.head-1&&/^\. ?$/.test(t.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(r&&t.insert.length==2&&(r=D.single(r.main.anchor-1,r.main.head-1)),t={from:i.from,to:i.to,insert:se.of([" "])}):B.chrome&&t&&t.from==t.to&&t.from==i.head&&t.insert.toString()==`
 `&&n.lineWrapping&&(r&&(r=D.single(r.main.anchor-1,r.main.head-1)),t={from:i.from,to:i.to,insert:se.of([" "])}),t){let s=n.state;if(B.ios&&n.inputState.flushIOSKey(n)||B.android&&(t.from==i.from&&t.to==i.to&&t.insert.length==1&&t.insert.lines==2&&dr(n.contentDOM,"Enter",13)||t.from==i.from-1&&t.to==i.to&&t.insert.length==0&&dr(n.contentDOM,"Backspace",8)||t.from==i.from&&t.to==i.to+1&&t.insert.length==0&&dr(n.contentDOM,"Delete",46)))return!0;let o=t.insert.toString();if(n.state.facet(Ud).some(c=>c(n,t.from,t.to,o)))return!0;n.inputState.composing>=0&&n.inputState.composing++;let l;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!r||r.main.empty&&r.main.from==t.from+t.insert.length)&&n.inputState.composing<0){let c=i.from<t.from?s.sliceDoc(i.from,t.from):"",h=i.to>t.to?s.sliceDoc(t.to,i.to):"";l=s.replaceSelection(n.state.toText(c+t.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let c=s.changes(t),h=r&&r.main.to<=c.newLength?r.main:void 0;if(s.selection.ranges.length>1&&n.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){let u=n.state.sliceDoc(t.from,t.to),f=ep(n)||n.state.doc.lineAt(i.head),d=i.to-t.to,p=i.to-i.from;l=s.changeByRange(m=>{if(m.from==i.from&&m.to==i.to)return{changes:c,range:h||m.map(c)};let O=m.to-d,b=O-u.length;if(m.to-m.from!=p||n.state.sliceDoc(b,O)!=u||f&&m.to>=f.from&&m.from<=f.to)return{range:m};let k=s.changes({from:b,to:O,insert:t.insert}),y=m.to-i.to;return{changes:k,range:h?D.range(Math.max(0,h.anchor+y),Math.max(0,h.head+y)):m.map(k)}})}else l={changes:c,selection:h&&s.selection.replaceRange(h)}}let a="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,a+=".compose",n.inputState.compositionFirstChange&&(a+=".start",n.inputState.compositionFirstChange=!1)),n.dispatch(l,{scrollIntoView:!0,userEvent:a}),!0}else if(r&&!r.main.eq(i)){let s=!1,o="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(s=!0),o=n.inputState.lastSelectionOrigin),n.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function rb(n,e,t,r){let i=Math.min(n.length,e.length),s=0;for(;s<i&&n.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==i&&n.length==e.length)return null;let o=n.length,l=e.length;for(;o>0&&l>0&&n.charCodeAt(o-1)==e.charCodeAt(l-1);)o--,l--;if(r=="end"){let a=Math.max(0,s-Math.min(o,l));t-=o+a-s}if(o<s&&n.length<e.length){let a=t<=s&&t>=o?s-t:0;s-=a,l=s+(l-o),o=s}else if(l<s){let a=t<=s&&t>=l?s-t:0;s-=a,o=s+(o-l),l=s}return{from:s,toA:o,toB:l}}function ib(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:r,focusNode:i,focusOffset:s}=n.observer.selectionRange;return t&&(e.push(new oh(t,r)),(i!=t||s!=r)&&e.push(new oh(i,s))),e}function sb(n,e){if(n.length==0)return null;let t=n[0].pos,r=n.length==2?n[1].pos:t;return t>-1&&r>-1?D.single(t+e,r+e):null}const ob={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},jo=B.ie&&B.ie_version<=11;class lb{constructor(e){this.view=e,this.active=!1,this.selectionRange=new t0,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.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let r of t)this.queue.push(r);(B.ie&&B.ie_version<=11||B.ios&&e.composing)&&t.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),jo&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.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),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM),this.resizeContent=new ResizeObserver(()=>this.view.requestMeasure()),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.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(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runScrollHandlers(this.view,e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){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((t,r)=>t!=e[r]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(Oo)?r.root.activeElement!=this.dom:!$s(r.dom,i))return;let s=i.anchorNode&&r.docView.nearest(i.anchorNode);if(s&&s.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(B.ie&&B.ie_version<=11||B.android&&B.chrome)&&!r.state.selection.main.empty&&i.focusNode&&zs(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=B.safari&&e.root.nodeType==11&&Hg(this.dom.ownerDocument)==this.dom&&ab(this.view)||Ms(e.root);if(!t||this.selectionRange.eq(t))return!1;let r=$s(this.dom,t);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&r0(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let r=this.dom;r;)if(r.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=t)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,ob),jo&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),jo&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var r;if(!this.delayedAndroidKey){let i=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),!this.flush()&&s.force&&dr(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,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 t=-1,r=-1,i=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(i=!0),t==-1?{from:t,to:r}=o:(t=Math.min(o.from,t),r=Math.max(o.to,r)))}return{from:t,to:r,typeOver:i}}readChange(){let{from:e,to:t,typeOver:r}=this.processRecords(),i=this.selectionChanged&&$s(this.dom,this.selectionRange);return e<0&&!i?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new nb(this.view,e,t,r))}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let r=this.view.state,i=Op(this.view,t);return this.view.state==r&&this.view.update([]),i}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.dirty|=4),e.type=="childList"){let r=$h(t,e.previousSibling||e.target.previousSibling,-1),i=$h(t,e.nextSibling||e.target.nextSibling,1);return{from:r?t.posAfter(r):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.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),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),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,r,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect(),(i=this.resizeContent)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function $h(n,e,t){for(;e;){let r=de.get(e);if(r&&r.parent==n)return r;let i=e.parentNode;e=i!=n.dom?i:t>0?e.nextSibling:e.previousSibling}return null}function ab(n){let e=null;function t(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}if(n.contentDOM.addEventListener("beforeinput",t,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",t,!0),!e)return null;let r=e.startContainer,i=e.startOffset,s=e.endContainer,o=e.endOffset,l=n.docView.domAtPos(n.state.selection.main.anchor);return zs(l.node,l.offset,s,o)&&([r,i,s,o]=[s,o,r,i]),{anchorNode:r,anchorOffset:i,focusNode:s,focusOffset:o}}class G{constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],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.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(t=>this.update([t])),this.dispatch=this.dispatch.bind(this),this._root=e.root||n0(e.parent)||document,this.viewState=new xh(e.state||ie.create(e)),this.plugins=this.state.facet(ri).map(t=>new Uo(t));for(let t of this.plugins)t.update(this);this.observer=new lb(this),this.inputState=new A0(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new lh(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}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.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...e){this._dispatch(e.length==1&&e[0]instanceof Ze?e[0]:this.state.update(...e))}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,r=!1,i,s=this.state;for(let f of e){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,l=0,a=null;e.some(f=>f.annotation(cp))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=hp(s,o),a||(l=1));let c=this.observer.delayedAndroidKey,h=null;if(c?(this.observer.clearDelayedAndroidKey(),h=this.observer.readChange(),(h&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(h=null)):this.observer.clear(),s.facet(ie.phrases)!=this.state.facet(ie.phrases))return this.setState(s);i=Ws.create(this,s,e),i.flags|=l;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(u&&(u=u.map(f.changes)),f.scrollIntoView){let{main:d}=f.state.selection;u=new Bs(d.empty?d:D.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of f.effects)d.is(ih)&&(u=d.value)}this.viewState.update(i,u),this.bidiCache=Ys.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),t=this.docView.update(i),this.state.facet(ii)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(cs)!=i.state.facet(cs)&&(this.viewState.mustMeasureContent=!0),(t||r||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let f of this.state.facet(Hl))f(i);(a||h)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),h&&!Op(this,h)&&c.force&&dr(this.contentDOM,c.key,c.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 t=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new xh(e),this.plugins=e.facet(ri).map(r=>new Uo(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView=new lh(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(ri),r=e.state.facet(ri);if(t!=r){let i=[];for(let s of r){let o=t.indexOf(s);if(o<0)i.push(new Uo(s));else{let l=this.plugins[o];l.mustUpdate=e,i.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=i,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this)}measure(e=!0){if(this.destroyed)return;this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,{scrollHeight:r,scrollTop:i,clientHeight:s}=this.scrollDOM,o=i>r-s-4?r:i;try{for(let l=0;;l++){this.updateState=1;let a=this.viewport,c=this.viewState.lineBlockAtHeight(o),h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];h&4||([this.measureRequests,u]=[u,this.measureRequests]);let f=u.map(O=>{try{return O.read(this)}catch(b){return Cn(this.state,b),_h}}),d=Ws.create(this,this.state,[]),p=!1,m=!1;d.flags|=h,t?t.flags|=h:t=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),p=this.docView.update(d));for(let O=0;O<u.length;O++)if(f[O]!=_h)try{let b=u[O];b.write&&b.write(f[O],this)}catch(b){Cn(this.state,b)}if(this.viewState.editorHeight)if(this.viewState.scrollTarget)this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,m=!0;else{let O=this.viewState.lineBlockAt(c.from).top-c.top;(O>1||O<-1)&&(this.scrollDOM.scrollTop+=O,m=!0)}if(p&&this.docView.updateSelection(!0),this.viewport.from==a.from&&this.viewport.to==a.to&&!m&&this.measureRequests.length==0)break}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Hl))l(t)}get themeClasses(){return ia+" "+(this.state.facet(ra)?pp:dp)+" "+this.state.facet(cs)}updateAttrs(){let e=Ph(this,jd,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Oo)?"true":"false",class:"cm-content",style:`${B.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Ph(this,Ba,t);let r=this.observer.ignore(()=>{let i=Fl(this.contentDOM,this.contentAttrs,t),s=Fl(this.dom,this.editorAttrs,e);return i||s});return this.editorAttrs=e,this.contentAttrs=t,r}showAnnouncements(e){let t=!0;for(let r of e)for(let i of r.effects)if(i.is(G.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(ii),Tn.mount(this.root,this.styleModules.concat(tb).reverse())}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 t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find(r=>r.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}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,t,r){return Wo(this,e,dh(this,e,t,r))}moveByGroup(e,t){return Wo(this,e,dh(this,e,t,r=>P0(this,e.head,r)))}moveToLineBoundary(e,t,r=!0){return _0(this,e,t,r)}moveVertically(e,t,r){return Wo(this,e,C0(this,e,t,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),np(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let r=this.docView.coordsAt(e,t);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(e),s=this.bidiSpans(i),o=s[pr.find(s,e-i.from,-1,t)];return fo(r,o.dir==qe.LTR==t>0)}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(Wd)||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>cb)return Hd(e.length);let t=this.textDirectionAt(e.from);for(let i of this.bidiCache)if(i.from==e.from&&i.dir==t)return i.order;let r=d0(e.text,t);return this.bidiCache.push(new Ys(e.from,e.to,t,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||B.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{xd(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(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return ih.of(new Bs(typeof e=="number"?D.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return cn.define(()=>({}),{eventHandlers:e})}static theme(e,t){let r=Tn.newName(),i=[cs.of(r),ii.of(sa(`.${r}`,e))];return t&&t.dark&&i.push(ra.of(!0)),i}static baseTheme(e){return Zr.lowest(ii.of(sa("."+ia,e,mp)))}static findFromDOM(e){var t;let r=e.querySelector(".cm-content"),i=r&&de.get(r)||de.get(e);return((t=i==null?void 0:i.rootView)===null||t===void 0?void 0:t.view)||null}}G.styleModule=ii;G.inputHandler=Ud;G.focusChangeEffect=Bd;G.perLineTextDirection=Wd;G.exceptionSink=zd;G.updateListener=Hl;G.editable=Oo;G.mouseSelectionStyle=Md;G.dragMovesSelection=Id;G.clickAddsSelectionRange=Vd;G.decorations=yi;G.atomicRanges=Nd;G.scrollMargins=Fd;G.darkTheme=ra;G.contentAttributes=Ba;G.editorAttributes=jd;G.lineWrapping=G.contentAttributes.of({class:"cm-lineWrapping"});G.announce=ye.define();const cb=4096,_h={};class Ys{constructor(e,t,r,i){this.from=e,this.to=t,this.dir=r,this.order=i}static update(e,t){if(t.empty)return e;let r=[],i=e.length?e[e.length-1].dir:qe.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir==i&&!t.touchesRange(o.from,o.to)&&r.push(new Ys(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.order))}return r}}function Ph(n,e,t){for(let r=n.state.facet(e),i=r.length-1;i>=0;i--){let s=r[i],o=typeof s=="function"?s(n):s;o&&Nl(o,t)}return t}const hb=B.mac?"mac":B.windows?"win":B.linux?"linux":"key";function ub(n,e){const t=n.split(/-(?!$)/);let r=t[t.length-1];r=="Space"&&(r=" ");let i,s,o,l;for(let a=0;a<t.length-1;++a){const c=t[a];if(/^(cmd|meta|m)$/i.test(c))l=!0;else if(/^a(lt)?$/i.test(c))i=!0;else if(/^(c|ctrl|control)$/i.test(c))s=!0;else if(/^s(hift)?$/i.test(c))o=!0;else if(/^mod$/i.test(c))e=="mac"?l=!0:s=!0;else throw new Error("Unrecognized modifier name: "+c)}return i&&(r="Alt-"+r),s&&(r="Ctrl-"+r),l&&(r="Meta-"+r),o&&(r="Shift-"+r),r}function hs(n,e,t){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t!==!1&&e.shiftKey&&(n="Shift-"+n),n}const fb=Zr.default(G.domEventHandlers({keydown(n,e){return Ob(db(e.state),n,e,"editor")}})),Vi=F.define({enables:fb}),Ch=new WeakMap;function db(n){let e=n.facet(Vi),t=Ch.get(e);return t||Ch.set(e,t=mb(e.reduce((r,i)=>r.concat(i),[]))),t}let wn=null;const pb=4e3;function mb(n,e=hb){let t=Object.create(null),r=Object.create(null),i=(o,l)=>{let a=r[o];if(a==null)r[o]=l;else if(a!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,l,a,c)=>{var h,u;let f=t[o]||(t[o]=Object.create(null)),d=l.split(/ (?!$)/).map(O=>ub(O,e));for(let O=1;O<d.length;O++){let b=d.slice(0,O).join(" ");i(b,!0),f[b]||(f[b]={preventDefault:!0,run:[k=>{let y=wn={view:k,prefix:b,scope:o};return setTimeout(()=>{wn==y&&(wn=null)},pb),!0}]})}let p=d.join(" ");i(p,!1);let m=f[p]||(f[p]={preventDefault:!1,run:((u=(h=f._any)===null||h===void 0?void 0:h.run)===null||u===void 0?void 0:u.slice())||[]});a&&m.run.push(a),c&&(m.preventDefault=!0)};for(let o of n){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of l){let h=t[c]||(t[c]=Object.create(null));h._any||(h._any={preventDefault:!1,run:[]});for(let u in h)h[u].run.push(o.any)}let a=o[e]||o.key;if(a)for(let c of l)s(c,a,o.run,o.preventDefault),o.shift&&s(c,"Shift-"+a,o.shift,o.preventDefault)}return t}function Ob(n,e,t,r){let i=Gg(e),s=ui(i,0),o=Al(s)==i.length&&i!=" ",l="",a=!1;wn&&wn.view==t&&wn.scope==r&&(l=wn.prefix+" ",(a=ip.indexOf(e.keyCode)<0)&&(wn=null));let c=new Set,h=p=>{if(p){for(let m of p.run)if(!c.has(m)&&(c.add(m),m(t,e)))return!0;p.preventDefault&&(a=!0)}return!1},u=n[r],f,d;if(u){if(h(u[l+hs(i,e,!o)]))return!0;if(o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(B.windows&&e.ctrlKey&&e.altKey)&&(f=En[e.keyCode])&&f!=i){if(h(u[l+hs(f,e,!0)]))return!0;if(e.shiftKey&&(d=Si[e.keyCode])!=i&&d!=f&&h(u[l+hs(d,e,!1)]))return!0}else if(o&&e.shiftKey&&h(u[l+hs(i,e,!0)]))return!0;if(h(u._any))return!0}return a}class Ii{constructor(e,t,r,i,s){this.className=e,this.left=t,this.top=r,this.width=i,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.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,t,r){if(r.empty){let i=e.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let s=gp(e);return[new Ii(t,i.left-s.left,i.top-s.top,null,i.bottom-i.top)]}else return gb(e,t,r)}}function gp(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==qe.LTR?e.left:e.right-n.scrollDOM.clientWidth)-n.scrollDOM.scrollLeft,top:e.top-n.scrollDOM.scrollTop}}function Ah(n,e,t){let r=D.cursor(e);return{from:Math.max(t.from,n.moveToLineBoundary(r,!1,!0).from),to:Math.min(t.to,n.moveToLineBoundary(r,!0,!0).from),type:be.Text}}function Th(n,e){let t=n.lineBlockAt(e);if(Array.isArray(t.type)){for(let r of t.type)if(r.to>e||r.to==e&&(r.to==t.to||r.type==be.Text))return r}return t}function gb(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let r=Math.max(t.from,n.viewport.from),i=Math.min(t.to,n.viewport.to),s=n.textDirection==qe.LTR,o=n.contentDOM,l=o.getBoundingClientRect(),a=gp(n),c=o.querySelector(".cm-line"),h=c&&window.getComputedStyle(c),u=l.left+(h?parseInt(h.paddingLeft)+Math.min(0,parseInt(h.textIndent)):0),f=l.right-(h?parseInt(h.paddingRight):0),d=Th(n,r),p=Th(n,i),m=d.type==be.Text?d:null,O=p.type==be.Text?p:null;if(n.lineWrapping&&(m&&(m=Ah(n,r,m)),O&&(O=Ah(n,i,O))),m&&O&&m.from==O.from)return k(y(t.from,t.to,m));{let $=m?y(t.from,null,m):Q(d,!1),w=O?y(null,t.to,O):Q(p,!0),A=[];return(m||d).to<(O||p).from-1?A.push(b(u,$.bottom,f,w.top)):$.bottom<w.top&&n.elementAtHeight(($.bottom+w.top)/2).type==be.Text&&($.bottom=w.top=($.bottom+w.top)/2),k($).concat(A).concat(k(w))}function b($,w,A,P){return new Ii(e,$-a.left,w-a.top-.01,A-$,P-w+.01)}function k({top:$,bottom:w,horizontal:A}){let P=[];for(let I=0;I<A.length;I+=2)P.push(b(A[I],$,A[I+1],w));return P}function y($,w,A){let P=1e9,I=-1e9,X=[];function V(T,U,R,H,ee){let re=n.coordsAtPos(T,T==A.to?-2:2),te=n.coordsAtPos(R,R==A.from?2:-2);!re||!te||(P=Math.min(re.top,te.top,P),I=Math.max(re.bottom,te.bottom,I),ee==qe.LTR?X.push(s&&U?u:re.left,s&&H?f:te.right):X.push(!s&&H?u:te.left,!s&&U?f:re.right))}let q=$??A.from,z=w??A.to;for(let T of n.visibleRanges)if(T.to>q&&T.from<z)for(let U=Math.max(T.from,q),R=Math.min(T.to,z);;){let H=n.state.doc.lineAt(U);for(let ee of n.bidiSpans(H)){let re=ee.from+H.from,te=ee.to+H.from;if(re>=R)break;te>U&&V(Math.max(re,U),$==null&&re<=q,Math.min(te,R),w==null&&te>=z,ee.dir)}if(U=H.to+1,U>=R)break}return X.length==0&&V(q,$==null,z,w==null,n.textDirection),{top:P,bottom:I,horizontal:X}}function Q($,w){let A=l.top+(w?$.top:$.bottom);return{top:A,bottom:A,horizontal:[]}}}function bb(n,e){return n.constructor==e.constructor&&n.eq(e)}class vb{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],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"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Ps)!=e.state.facet(Ps)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&e.view.requestMeasure(this.measureReq)}setOrder(e){let t=0,r=e.facet(Ps);for(;t<r.length&&r[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}draw(e){if(e.length!=this.drawn.length||e.some((t,r)=>!bb(t,this.drawn[r]))){let t=this.dom.firstChild,r=0;for(let i of e)i.update&&t&&i.constructor&&this.drawn[r].constructor&&i.update(t,this.drawn[r])?(t=t.nextSibling,r++):this.dom.insertBefore(i.draw(),t);for(;t;){let i=t.nextSibling;t.remove(),t=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Ps=F.define();function bp(n){return[cn.define(e=>new vb(e,n)),Ps.of(n)]}const vp=!B.ios,wi=F.define({combine(n){return Va(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function Sb(n={}){return[wi.of(n),kb,yb,wb,Yd.of(!0)]}function Sp(n){return n.startState.facet(wi)!=n.state.facet(wi)}const kb=bp({above:!0,markers(n){let{state:e}=n,t=e.facet(wi),r=[];for(let i of e.selection.ranges){let s=i==e.selection.main;if(i.empty?!s||vp:t.drawRangeCursor){let o=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=i.empty?i:D.cursor(i.head,i.head>i.anchor?-1:1);for(let a of Ii.forRange(n,o,l))r.push(a)}}return r},update(n,e){n.transactions.some(r=>r.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=Sp(n);return t&&Eh(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){Eh(e.state,n)},class:"cm-cursorLayer"});function Eh(n,e){e.style.animationDuration=n.facet(wi).cursorBlinkRate+"ms"}const yb=bp({above:!1,markers(n){return n.state.selection.ranges.map(e=>e.empty?[]:Ii.forRange(n,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||Sp(n)},class:"cm-selectionLayer"}),kp={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};vp&&(kp[".cm-line"].caretColor="transparent !important");const wb=Zr.highest(G.theme(kp));function Xh(n,e,t,r,i){e.lastIndex=0;for(let s=n.iterRange(t,r),o=t,l;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;l=e.exec(s.value);)i(o+l.index,l)}function xb(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let r=[];for(let{from:i,to:s}of t)i=Math.max(n.state.doc.lineAt(i).from,i-e),s=Math.min(n.state.doc.lineAt(s).to,s+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=s:r.push({from:i,to:s});return r}class Qb{constructor(e){const{regexp:t,decoration:r,decorate:i,boundary:s,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,i)this.addMatch=(l,a,c,h)=>i(h,c,c+l[0].length,l,a);else if(typeof r=="function")this.addMatch=(l,a,c,h)=>{let u=r(l,a,c);u&&h(c,c+l[0].length,u)};else if(r)this.addMatch=(l,a,c,h)=>h(c,c+l[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(e){let t=new yr,r=t.add.bind(t);for(let{from:i,to:s}of xb(e,this.maxLength))Xh(e.state.doc,this.regexp,i,s,(o,l)=>this.addMatch(l,e,o,r));return t.finish()}updateDeco(e,t){let r=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((s,o,l,a)=>{a>e.view.viewport.from&&l<e.view.viewport.to&&(r=Math.min(l,r),i=Math.max(a,i))}),e.viewportChanged||i-r>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,t.map(e.changes),r,i):t}updateRange(e,t,r,i){for(let s of e.visibleRanges){let o=Math.max(s.from,r),l=Math.min(s.to,i);if(l>o){let a=e.state.doc.lineAt(o),c=a.to<l?e.state.doc.lineAt(l):a,h=Math.max(s.from,a.from),u=Math.min(s.to,c.to);if(this.boundary){for(;o>a.from;o--)if(this.boundary.test(a.text[o-1-a.from])){h=o;break}for(;l<c.to;l++)if(this.boundary.test(c.text[l-c.from])){u=l;break}}let f=[],d,p=(m,O,b)=>f.push(b.range(m,O));if(a==c)for(this.regexp.lastIndex=h-a.from;(d=this.regexp.exec(a.text))&&d.index<u-a.from;)this.addMatch(d,e,d.index+a.from,p);else Xh(e.state.doc,this.regexp,h,u,(m,O)=>this.addMatch(O,e,m,p));t=t.update({filterFrom:h,filterTo:u,filter:(m,O)=>m<h||O>u,add:f})}}return t}}const oa=/x/.unicode!=null?"gu":"g",$b=new RegExp(`[\0-\b
--­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF￹-￼]`,oa),_b={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 No=null;function Pb(){var n;if(No==null&&typeof document<"u"&&document.body){let e=document.body.style;No=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return No||!1}const Cs=F.define({combine(n){let e=Va(n,{render:null,specialChars:$b,addSpecialChars:null});return(e.replaceTabs=!Pb())&&(e.specialChars=new RegExp("	|"+e.specialChars.source,oa)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,oa)),e}});function Cb(n={}){return[Cs.of(n),Ab()]}let Dh=null;function Ab(){return Dh||(Dh=cn.fromClass(class{constructor(n){this.view=n,this.decorations=ce.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Cs)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new Qb({regexp:n.specialChars,decoration:(e,t,r)=>{let{doc:i}=t.state,s=ui(e[0],0);if(s==9){let o=i.lineAt(r),l=t.state.tabSize,a=uo(o.text,l,r-o.from);return ce.replace({widget:new Db((l-a%l)*this.view.defaultCharacterWidth)})}return this.decorationCache[s]||(this.decorationCache[s]=ce.replace({widget:new Xb(n,s)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(Cs);n.startState.facet(Cs)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const Tb="•";function Eb(n){return n>=32?Tb:n==10?"␤":String.fromCharCode(9216+n)}class Xb extends Xn{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=Eb(this.code),r=e.state.phrase("Control character")+" "+(_b[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,t);if(i)return i;let s=document.createElement("span");return s.textContent=t,s.title=r,s.setAttribute("aria-label",r),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class Db extends Xn{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}}class Rb extends Xn{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?xr(e.firstChild):[];if(!t.length)return null;let r=window.getComputedStyle(e.parentNode),i=fo(t[0],r.direction!="rtl"),s=parseInt(r.lineHeight);return i.bottom-i.top>s*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+s}:i}ignoreEvent(){return!1}}function Zb(n){return cn.fromClass(class{constructor(e){this.view=e,this.placeholder=ce.set([ce.widget({widget:new Rb(n),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?ce.none:this.placeholder}},{decorations:e=>e.decorations})}class _r extends jn{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}_r.prototype.elementClass="";_r.prototype.toDOM=void 0;_r.prototype.mapMode=Ne.TrackBefore;_r.prototype.startSide=_r.prototype.endSide=-1;_r.prototype.point=!0;const yp=1024;let qb=0;class ut{constructor(e,t){this.from=e,this.to=t}}class N{constructor(e={}){this.id=qb++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ae.match(e)),t=>{let r=e(t);return r===void 0?null:[this,r]}}}N.closedBy=new N({deserialize:n=>n.split(" ")});N.openedBy=new N({deserialize:n=>n.split(" ")});N.group=new N({deserialize:n=>n.split(" ")});N.contextHash=new N({perNode:!0});N.lookAhead=new N({perNode:!0});N.mounted=new N({perNode:!0});class Lb{constructor(e,t,r){this.tree=e,this.overlay=t,this.parser=r}}const Vb=Object.create(null);class Ae{constructor(e,t,r,i=0){this.name=e,this.props=t,this.id=r,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):Vb,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new Ae(e.name||"",t,e.id,r);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return i}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 t=this.prop(N.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let i of r.split(" "))t[i]=e[r];return r=>{for(let i=r.prop(N.group),s=-1;s<(i?i.length:0);s++){let o=t[s<0?r.name:i[s]];if(o)return o}}}}Ae.none=new Ae("",Object.create(null),0,8);class qr{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let i=null;for(let s of e){let o=s(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1])}t.push(i?new Ae(r.name,i,r.id,r.flags):r)}return new qr(t)}}const us=new WeakMap,Rh=new WeakMap;var ge;(function(n){n[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays"})(ge||(ge={}));class ne{constructor(e,t,r,i,s){if(this.type=e,this.children=t,this.positions=r,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,l]of s)this.props[typeof o=="number"?o:o.id]=l}}toString(){let e=this.prop(N.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let r of this.children){let i=r.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new xi(this.topNode,e)}cursorAt(e,t=0,r=0){let i=us.get(this)||this.topNode,s=new xi(i);return s.moveTo(e,t),us.set(this,s._tree),s}get topNode(){return new dt(this,0,0,null)}resolve(e,t=0){let r=Pr(us.get(this)||this.topNode,e,t,!1);return us.set(this,r),r}resolveInner(e,t=0){let r=Pr(Rh.get(this)||this.topNode,e,t,!0);return Rh.set(this,r),r}iterate(e){let{enter:t,leave:r,from:i=0,to:s=this.length}=e;for(let o=this.cursor((e.mode||0)|ge.IncludeAnonymous);;){let l=!1;if(o.from<=s&&o.to>=i&&(o.type.isAnonymous||t(o)!==!1)){if(o.firstChild())continue;l=!0}for(;l&&r&&!o.type.isAnonymous&&r(o),!o.nextSibling();){if(!o.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 t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Na(Ae.none,this.children,this.positions,0,this.children.length,0,this.length,(t,r,i)=>new ne(this.type,t,r,i,this.propValues),e.makeTree||((t,r,i)=>new ne(Ae.none,t,r,i)))}static build(e){return Mb(e)}}ne.empty=new ne(Ae.none,[],[],0);class Ya{constructor(e,t){this.buffer=e,this.index=t}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 Ya(this.buffer,this.index)}}class Kn{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return Ae.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3],i=this.set.types[t],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),e+=4,r==e)return s;let o=[];for(;e<r;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,t,r,i,s){let{buffer:o}=this,l=-1;for(let a=e;a!=t&&!(wp(s,i,o[a+1],o[a+2])&&(l=a,r>0));a=o[a+3]);return l}slice(e,t,r){let i=this.buffer,s=new Uint16Array(t-e),o=0;for(let l=e,a=0;l<t;){s[a++]=i[l++],s[a++]=i[l++]-r;let c=s[a++]=i[l++]-r;s[a++]=i[l++]-e,o=Math.max(o,c)}return new Kn(s,o,this.set)}}function wp(n,e,t,r){switch(n){case-2:return t<e;case-1:return r>=e&&t<e;case 0:return t<e&&r>e;case 1:return t<=e&&r>e;case 2:return r>e;case 4:return!0}}function xp(n,e){let t=n.childBefore(e);for(;t;){let r=t.lastChild;if(!r||r.to!=t.to)break;r.type.isError&&r.from==r.to?(n=t,t=r.prevSibling):t=r}return n}function Pr(n,e,t,r){for(var i;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to<e);){let o=!r&&n instanceof dt&&n.index<0?null:n.parent;if(!o)return n;n=o}let s=r?0:ge.IgnoreOverlays;if(r)for(let o=n,l=o.parent;l;o=l,l=o.parent)o instanceof dt&&o.index<0&&((i=l.enter(e,t,s))===null||i===void 0?void 0:i.from)!=o.from&&(n=l);for(;;){let o=n.enter(e,t,s);if(!o)return n;n=o}}class dt{constructor(e,t,r,i){this._tree=e,this.from=t,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,r,i,s=0){for(let o=this;;){for(let{children:l,positions:a}=o._tree,c=t>0?l.length:-1;e!=c;e+=t){let h=l[e],u=a[e]+o.from;if(wp(i,r,u,u+h.length)){if(h instanceof Kn){if(s&ge.ExcludeBuffers)continue;let f=h.findChild(0,h.buffer.length,t,r-u,i);if(f>-1)return new zt(new Ib(o,h,e,u),null,f)}else if(s&ge.IncludeAnonymous||!h.type.isAnonymous||ja(h)){let f;if(!(s&ge.IgnoreMounts)&&h.props&&(f=h.prop(N.mounted))&&!f.overlay)return new dt(f.tree,u,e,o);let d=new dt(h,u,e,o);return s&ge.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(t<0?h.children.length-1:0,t,r,i)}}}if(s&ge.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<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)}enter(e,t,r=0){let i;if(!(r&ge.IgnoreOverlays)&&(i=this._tree.prop(N.mounted))&&i.overlay){let s=e-this.from;for(let{from:o,to:l}of i.overlay)if((t>0?o<=s:o<s)&&(t<0?l>=s:l>s))return new dt(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,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}cursor(e=0){return new xi(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return Pr(this,e,t,!1)}resolveInner(e,t=0){return Pr(this,e,t,!0)}enterUnfinishedNodesBefore(e){return xp(this,e)}getChild(e,t=null,r=null){let i=js(this,e,t,r);return i.length?i[0]:null}getChildren(e,t=null,r=null){return js(this,e,t,r)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return Ns(this,e)}}function js(n,e,t,r){let i=n.cursor(),s=[];if(!i.firstChild())return s;if(t!=null){for(;!i.type.is(t);)if(!i.nextSibling())return s}for(;;){if(r!=null&&i.type.is(r))return s;if(i.type.is(e)&&s.push(i.node),!i.nextSibling())return r==null?s:[]}}function Ns(n,e,t=e.length-1){for(let r=n.parent;t>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[t]&&e[t]!=r.name)return!1;t--}}return!0}class Ib{constructor(e,t,r,i){this.parent=e,this.buffer=t,this.index=r,this.start=i}}class zt{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,t,r){this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,r);return s<0?null:new zt(this.context,this,s)}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)}enter(e,t,r=0){if(r&ge.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new zt(this.context,this,s)}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,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new zt(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new zt(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new xi(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,i=this.index+4,s=r.buffer[this.index+3];if(s>i){let o=r.buffer[this.index+1];e.push(r.slice(i,s,o)),t.push(0)}return new ne(this.type,e,t,this.to-this.from)}resolve(e,t=0){return Pr(this,e,t,!1)}resolveInner(e,t=0){return Pr(this,e,t,!0)}enterUnfinishedNodesBefore(e){return xp(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,r=null){let i=js(this,e,t,r);return i.length?i[0]:null}getChildren(e,t=null,r=null){return js(this,e,t,r)}get node(){return this}matchContext(e){return Ns(this,e)}}class xi{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof dt)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,t){this.index=e;let{start:r,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=r+i.buffer[e+1],this.to=r+i.buffer[e+2],!0}yield(e){return e?e instanceof dt?(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,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,r);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}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,t,r=this.mode){return this.buffer?r&ge.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ge.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&ge.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:t}=this.buffer,r=this.stack.length-1;if(e<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(i)}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 t,r,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:t,parent:r}=i)}else({index:t,_parent:r}=this._tree);for(;r;{index:t,_parent:r}=r)if(t>-1)for(let s=t+e,o=e<0?-1:r._tree.children.length;s!=o;s+=e){let l=r._tree.children[s];if(this.mode&ge.IncludeAnonymous||l instanceof Kn||!l.type.isAnonymous||ja(l))return!1}return!0}move(e,t){if(t&&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,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,r=s+1;break e}i=this.stack[--s]}for(let i=r;i<this.stack.length;i++)t=new zt(this.buffer,t,this.stack[i]);return this.bufferNode=new zt(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;i&&t&&t(this),i=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,i=!0}}}matchContext(e){if(!this.buffer)return Ns(this.node,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let i=e.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return Ns(this.node,e,i);let o=r[t.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}}function ja(n){return n.children.some(e=>e instanceof Kn||!e.type.isAnonymous||ja(e))}function Mb(n){var e;let{buffer:t,nodeSet:r,maxBufferLength:i=yp,reused:s=[],minRepeatType:o=r.types.length}=n,l=Array.isArray(t)?new Ya(t,t.length):t,a=r.types,c=0,h=0;function u(Q,$,w,A,P){let{id:I,start:X,end:V,size:q}=l,z=h;for(;q<0;)if(l.next(),q==-1){let ee=s[I];w.push(ee),A.push(X-Q);return}else if(q==-3){c=I;return}else if(q==-4){h=I;return}else throw new RangeError(`Unrecognized record size: ${q}`);let T=a[I],U,R,H=X-Q;if(V-X<=i&&(R=m(l.pos-$,P))){let ee=new Uint16Array(R.size-R.skip),re=l.pos-R.size,te=ee.length;for(;l.pos>re;)te=O(R.start,ee,te);U=new Kn(ee,V-R.start,r),H=R.start-Q}else{let ee=l.pos-q;l.next();let re=[],te=[],ve=I>=o?I:-1,Ee=0,ct=V;for(;l.pos>ee;)ve>=0&&l.id==ve&&l.size>=0?(l.end<=ct-i&&(d(re,te,X,Ee,l.end,ct,ve,z),Ee=re.length,ct=l.end),l.next()):u(X,ee,re,te,ve);if(ve>=0&&Ee>0&&Ee<re.length&&d(re,te,X,Ee,X,ct,ve,z),re.reverse(),te.reverse(),ve>-1&&Ee>0){let Jt=f(T);U=Na(T,re,te,0,re.length,0,V-X,Jt,Jt)}else U=p(T,re,te,V-X,z-V)}w.push(U),A.push(H)}function f(Q){return($,w,A)=>{let P=0,I=$.length-1,X,V;if(I>=0&&(X=$[I])instanceof ne){if(!I&&X.type==Q&&X.length==A)return X;(V=X.prop(N.lookAhead))&&(P=w[I]+X.length+V)}return p(Q,$,w,A,P)}}function d(Q,$,w,A,P,I,X,V){let q=[],z=[];for(;Q.length>A;)q.push(Q.pop()),z.push($.pop()+w-P);Q.push(p(r.types[X],q,z,I-P,V-I)),$.push(P-w)}function p(Q,$,w,A,P=0,I){if(c){let X=[N.contextHash,c];I=I?[X].concat(I):[X]}if(P>25){let X=[N.lookAhead,P];I=I?[X].concat(I):[X]}return new ne(Q,$,w,A,I)}function m(Q,$){let w=l.fork(),A=0,P=0,I=0,X=w.end-i,V={size:0,start:0,skip:0};e:for(let q=w.pos-Q;w.pos>q;){let z=w.size;if(w.id==$&&z>=0){V.size=A,V.start=P,V.skip=I,I+=4,A+=4,w.next();continue}let T=w.pos-z;if(z<0||T<q||w.start<X)break;let U=w.id>=o?4:0,R=w.start;for(w.next();w.pos>T;){if(w.size<0)if(w.size==-3)U+=4;else break e;else w.id>=o&&(U+=4);w.next()}P=R,A+=z,I+=U}return($<0||A==Q)&&(V.size=A,V.start=P,V.skip=I),V.size>4?V:void 0}function O(Q,$,w){let{id:A,start:P,end:I,size:X}=l;if(l.next(),X>=0&&A<o){let V=w;if(X>4){let q=l.pos-(X-4);for(;l.pos>q;)w=O(Q,$,w)}$[--w]=V,$[--w]=I-Q,$[--w]=P-Q,$[--w]=A}else X==-3?c=A:X==-4&&(h=A);return w}let b=[],k=[];for(;l.pos>0;)u(n.start||0,n.bufferStart||0,b,k,-1);let y=(e=n.length)!==null&&e!==void 0?e:b.length?k[0]+b[0].length:0;return new ne(a[n.topID],b.reverse(),k.reverse(),y)}const Zh=new WeakMap;function As(n,e){if(!n.isAnonymous||e instanceof Kn||e.type!=n)return 1;let t=Zh.get(e);if(t==null){t=1;for(let r of e.children){if(r.type!=n||!(r instanceof ne)){t=1;break}t+=As(n,r)}Zh.set(e,t)}return t}function Na(n,e,t,r,i,s,o,l,a){let c=0;for(let p=r;p<i;p++)c+=As(n,e[p]);let h=Math.ceil(c*1.5/8),u=[],f=[];function d(p,m,O,b,k){for(let y=O;y<b;){let Q=y,$=m[y],w=As(n,p[y]);for(y++;y<b;y++){let A=As(n,p[y]);if(w+A>=h)break;w+=A}if(y==Q+1){if(w>h){let A=p[Q];d(A.children,A.positions,0,A.children.length,m[Q]+k);continue}u.push(p[Q])}else{let A=m[y-1]+p[y-1].length-$;u.push(Na(n,p,m,Q,y,$,A,null,a))}f.push($+k-s)}}return d(e,t,r,i,0),(l||a)(u,f,o)}class Qp{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof zt?this.setBuffer(e.context.buffer,e.index,t):e instanceof dt&&this.map.set(e.tree,t)}get(e){return e instanceof zt?this.getBuffer(e.context.buffer,e.index):e instanceof dt?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class on{constructor(e,t,r,i,s=!1,o=!1){this.from=e,this.to=t,this.tree=r,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],r=!1){let i=[new on(0,e.length,e,0,!1,r)];for(let s of t)s.to>e.length&&i.push(s);return i}static applyChanges(e,t,r=128){if(!t.length)return e;let i=[],s=1,o=e.length?e[0]:null;for(let l=0,a=0,c=0;;l++){let h=l<t.length?t[l]:null,u=h?h.fromA:1e9;if(u-a>=r)for(;o&&o.from<u;){let f=o;if(a>=f.from||u<=f.to||c){let d=Math.max(f.from,a)-c,p=Math.min(f.to,u)-c;f=d>=p?null:new on(d,p,f.tree,f.offset+c,l>0,!!h)}if(f&&i.push(f),o.to>u)break;o=s<e.length?e[s++]:null}if(!h)break;a=h.toA,c=h.toA-h.toB}return i}}class go{startParse(e,t,r){return typeof e=="string"&&(e=new zb(e)),r=r?r.length?r.map(i=>new ut(i.from,i.to)):[new ut(0,0)]:[new ut(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let i=this.startParse(e,t,r);for(;;){let s=i.advance();if(s)return s}}}class zb{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function $p(n){return(e,t,r,i)=>new Bb(e,n,t,r,i)}class qh{constructor(e,t,r,i,s){this.parser=e,this.parse=t,this.overlay=r,this.target=i,this.ranges=s}}class Ub{constructor(e,t,r,i,s,o,l){this.parser=e,this.predicate=t,this.mounts=r,this.index=i,this.start=s,this.target=o,this.prev=l,this.depth=0,this.ranges=[]}}const la=new N({perNode:!0});class Bb{constructor(e,t,r,i,s){this.nest=t,this.input=r,this.fragments=i,this.ranges=s,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 i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new ne(r.type,r.children,r.positions,r.length,r.propValues.concat([[la,this.stoppedAt]]))),r}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[N.mounted.id]=new Lb(t,e.overlay,e.parser),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].ranges[0].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new jb(this.fragments),t=null,r=null,i=new xi(new dt(this.baseTree,this.ranges[0].from,0,null),ge.IncludeAnonymous|ge.IgnoreMounts);e:for(let s,o;this.stoppedAt==null||i.from<this.stoppedAt;){let l=!0,a;if(e.hasNode(i)){if(t){let c=t.mounts.find(h=>h.frag.from<=i.from&&h.frag.to>=i.to&&h.mount.overlay);if(c)for(let h of c.mount.overlay){let u=h.from+c.pos,f=h.to+c.pos;u>=i.from&&f<=i.to&&!t.ranges.some(d=>d.from<f&&d.to>u)&&t.ranges.push({from:u,to:f})}}l=!1}else if(r&&(o=Wb(r.ranges,i.from,i.to)))l=o!=2;else if(!i.type.isAnonymous&&i.from<i.to&&(s=this.nest(i,this.input))){i.tree||Yb(i);let c=e.findMounts(i.from,s.parser);if(typeof s.overlay=="function")t=new Ub(s.parser,s.overlay,c,this.inner.length,i.from,i.tree,t);else{let h=Ih(this.ranges,s.overlay||[new ut(i.from,i.to)]);h.length&&this.inner.push(new qh(s.parser,s.parser.startParse(this.input,Mh(c,h),h),s.overlay?s.overlay.map(u=>new ut(u.from-i.from,u.to-i.from)):null,i.tree,h)),s.overlay?h.length&&(r={ranges:h,depth:0,prev:r}):l=!1}}else t&&(a=t.predicate(i))&&(a===!0&&(a=new ut(i.from,i.to)),a.from<a.to&&t.ranges.push(a));if(l&&i.firstChild())t&&t.depth++,r&&r.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(t&&!--t.depth){let c=Ih(this.ranges,t.ranges);c.length&&this.inner.splice(t.index,0,new qh(t.parser,t.parser.startParse(this.input,Mh(t.mounts,c),c),t.ranges.map(h=>new ut(h.from-t.start,h.to-t.start)),t.target,c)),t=t.prev}r&&!--r.depth&&(r=r.prev)}}}}function Wb(n,e,t){for(let r of n){if(r.from>=t)break;if(r.to>e)return r.from<=e&&r.to>=t?2:1}return 0}function Lh(n,e,t,r,i,s){if(e<t){let o=n.buffer[e+1];r.push(n.slice(e,t,o)),i.push(o-s)}}function Yb(n){let{node:e}=n,t=0;do n.parent(),t++;while(!n.tree);let r=0,i=n.tree,s=0;for(;s=i.positions[r]+n.from,!(s<=e.from&&s+i.children[r].length>=e.to);r++);let o=i.children[r],l=o.buffer;function a(c,h,u,f,d){let p=c;for(;l[p+2]+s<=e.from;)p=l[p+3];let m=[],O=[];Lh(o,c,p,m,O,f);let b=l[p+1],k=l[p+2],y=b+s==e.from&&k+s==e.to&&l[p]==e.type.id;return m.push(y?e.toTree():a(p+4,l[p+3],o.set.types[l[p]],b,k-b)),O.push(b-f),Lh(o,l[p+3],h,m,O,f),new ne(u,m,O,d)}i.children[r]=a(0,l.length,Ae.none,0,o.length);for(let c=0;c<=t;c++)n.childAfter(e.from)}class Vh{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(ge.IncludeAnonymous|ge.IgnoreMounts)}moveTo(e){let{cursor:t}=this,r=e-this.offset;for(;!this.done&&t.from<r;)t.to>=e&&t.enter(r,1,ge.IgnoreOverlays|ge.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof ne)t=t.children[0];else break}return!1}}let jb=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=(t=r.tree.prop(la))!==null&&t!==void 0?t:r.to,this.inner=new Vh(r.tree,-r.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(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(la))!==null&&e!==void 0?e:t.to,this.inner=new Vh(t.tree,-t.offset)}}findMounts(e,t){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(r=s.tree)===null||r===void 0?void 0:r.prop(N.mounted);if(o&&o.parser==t)for(let l=this.fragI;l<this.fragments.length;l++){let a=this.fragments[l];if(a.from>=s.to)break;a.tree==this.curFrag.tree&&i.push({frag:a,pos:s.from-a.offset,mount:o})}}}return i}};function Ih(n,e){let t=null,r=e;for(let i=1,s=0;i<n.length;i++){let o=n[i-1].to,l=n[i].from;for(;s<r.length;s++){let a=r[s];if(a.from>=l)break;a.to<=o||(t||(r=t=e.slice()),a.from<o?(t[s]=new ut(a.from,o),a.to>l&&t.splice(s+1,0,new ut(l,a.to))):a.to>l?t[s--]=new ut(l,a.to):t.splice(s--,1))}}return r}function Nb(n,e,t,r){let i=0,s=0,o=!1,l=!1,a=-1e9,c=[];for(;;){let h=i==n.length?1e9:o?n[i].to:n[i].from,u=s==e.length?1e9:l?e[s].to:e[s].from;if(o!=l){let f=Math.max(a,t),d=Math.min(h,u,r);f<d&&c.push(new ut(f,d))}if(a=Math.min(h,u),a==1e9)break;h==a&&(o?(o=!1,i++):o=!0),u==a&&(l?(l=!1,s++):l=!0)}return c}function Mh(n,e){let t=[];for(let{pos:r,mount:i,frag:s}of n){let o=r+(i.overlay?i.overlay[0].from:0),l=o+i.tree.length,a=Math.max(s.from,o),c=Math.min(s.to,l);if(i.overlay){let h=i.overlay.map(f=>new ut(f.from+r,f.to+r)),u=Nb(e,h,a,c);for(let f=0,d=a;;f++){let p=f==u.length,m=p?c:u[f].from;if(m>d&&t.push(new on(d,m,i.tree,-o,s.from>=d||s.openStart,s.to<=m||s.openEnd)),p)break;d=u[f].to}}else t.push(new on(a,c,i.tree,-o,s.from>=o||s.openStart,s.to<=l||s.openEnd))}return t}let Fb=0;class Qt{constructor(e,t,r){this.set=e,this.base=t,this.modified=r,this.id=Fb++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new Qt([],null,[]);if(t.set.push(t),e)for(let r of e.set)t.set.push(r);return t}static defineModifier(){let e=new Fs;return t=>t.modified.indexOf(e)>-1?t:Fs.get(t.base||t,t.modified.concat(e).sort((r,i)=>r.id-i.id))}}let Gb=0;class Fs{constructor(){this.instances=[],this.id=Gb++}static get(e,t){if(!t.length)return e;let r=t[0].instances.find(l=>l.base==e&&Hb(t,l.modified));if(r)return r;let i=[],s=new Qt(i,e,t);for(let l of t)l.instances.push(s);let o=Jb(t);for(let l of e.set)if(!l.modified.length)for(let a of o)i.push(Fs.get(l,a));return s}}function Hb(n,e){return n.length==e.length&&n.every((t,r)=>t==e[r])}function Jb(n){let e=[[]];for(let t=0;t<n.length;t++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(n[t]));return e.sort((t,r)=>r.length-t.length)}function Lr(n){let e=Object.create(null);for(let t in n){let r=n[t];Array.isArray(r)||(r=[r]);for(let i of t.split(" "))if(i){let s=[],o=2,l=i;for(let u=0;;){if(l=="..."&&u>0&&u+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!f)throw new RangeError("Invalid path: "+i);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),u+=f[0].length,u==i.length)break;let d=i[u++];if(u==i.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+i);l=i.slice(u)}let a=s.length-1,c=s[a];if(!c)throw new RangeError("Invalid path: "+i);let h=new Gs(r,o,a>0?s.slice(0,a):null);e[c]=h.sort(e[c])}}return _p.add(e)}const _p=new N;class Gs{constructor(e,t,r,i){this.tags=e,this.mode=t,this.context=r,this.next=i}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}}Gs.empty=new Gs([],2,null);function Pp(n,e){let t=Object.create(null);for(let s of n)if(!Array.isArray(s.tag))t[s.tag.id]=s.class;else for(let o of s.tag)t[o.id]=s.class;let{scope:r,all:i=null}=e||{};return{style:s=>{let o=i;for(let l of s)for(let a of l.set){let c=t[a.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function Kb(n,e){let t=null;for(let r of n){let i=r.style(e);i&&(t=t?t+" "+i:i)}return t}function ev(n,e,t,r=0,i=n.length){let s=new tv(r,Array.isArray(e)?e:[e],t);s.highlightRange(n.cursor(),r,i,"",s.highlighters),s.flush(i)}class tv{constructor(e,t,r){this.at=e,this.highlighters=t,this.span=r,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,r,i,s){let{type:o,from:l,to:a}=e;if(l>=r||a<=t)return;o.isTop&&(s=this.highlighters.filter(d=>!d.scope||d.scope(o)));let c=i,h=nv(e)||Gs.empty,u=Kb(s,h.tags);if(u&&(c&&(c+=" "),c+=u,h.mode==1&&(i+=(i?" ":"")+u)),this.startSpan(e.from,c),h.opaque)return;let f=e.tree&&e.tree.prop(N.mounted);if(f&&f.overlay){let d=e.node.enter(f.overlay[0].from+l,1),p=this.highlighters.filter(O=>!O.scope||O.scope(f.tree.type)),m=e.firstChild();for(let O=0,b=l;;O++){let k=O<f.overlay.length?f.overlay[O]:null,y=k?k.from+l:a,Q=Math.max(t,b),$=Math.min(r,y);if(Q<$&&m)for(;e.from<$&&(this.highlightRange(e,Q,$,i,s),this.startSpan(Math.min($,e.to),c),!(e.to>=y||!e.nextSibling())););if(!k||y>r)break;b=k.to+l,b>t&&(this.highlightRange(d.cursor(),Math.max(t,k.from+l),Math.min(r,b),i,p),this.startSpan(b,c))}m&&e.parent()}else if(e.firstChild()){do if(!(e.to<=t)){if(e.from>=r)break;this.highlightRange(e,t,r,i,s),this.startSpan(Math.min(r,e.to),c)}while(e.nextSibling());e.parent()}}}function nv(n){let e=n.type.prop(_p);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const L=Qt.define,fs=L(),Sn=L(),zh=L(Sn),Uh=L(Sn),kn=L(),ds=L(kn),Fo=L(kn),Zt=L(),Zn=L(Zt),Dt=L(),Rt=L(),aa=L(),Fr=L(aa),ps=L(),g={comment:fs,lineComment:L(fs),blockComment:L(fs),docComment:L(fs),name:Sn,variableName:L(Sn),typeName:zh,tagName:L(zh),propertyName:Uh,attributeName:L(Uh),className:L(Sn),labelName:L(Sn),namespace:L(Sn),macroName:L(Sn),literal:kn,string:ds,docString:L(ds),character:L(ds),attributeValue:L(ds),number:Fo,integer:L(Fo),float:L(Fo),bool:L(kn),regexp:L(kn),escape:L(kn),color:L(kn),url:L(kn),keyword:Dt,self:L(Dt),null:L(Dt),atom:L(Dt),unit:L(Dt),modifier:L(Dt),operatorKeyword:L(Dt),controlKeyword:L(Dt),definitionKeyword:L(Dt),moduleKeyword:L(Dt),operator:Rt,derefOperator:L(Rt),arithmeticOperator:L(Rt),logicOperator:L(Rt),bitwiseOperator:L(Rt),compareOperator:L(Rt),updateOperator:L(Rt),definitionOperator:L(Rt),typeOperator:L(Rt),controlOperator:L(Rt),punctuation:aa,separator:L(aa),bracket:Fr,angleBracket:L(Fr),squareBracket:L(Fr),paren:L(Fr),brace:L(Fr),content:Zt,heading:Zn,heading1:L(Zn),heading2:L(Zn),heading3:L(Zn),heading4:L(Zn),heading5:L(Zn),heading6:L(Zn),contentSeparator:L(Zt),list:L(Zt),quote:L(Zt),emphasis:L(Zt),strong:L(Zt),link:L(Zt),monospace:L(Zt),strikethrough:L(Zt),inserted:L(),deleted:L(),changed:L(),invalid:L(),meta:ps,documentMeta:L(ps),annotation:L(ps),processingInstruction:L(ps),definition:Qt.defineModifier(),constant:Qt.defineModifier(),function:Qt.defineModifier(),standard:Qt.defineModifier(),local:Qt.defineModifier(),special:Qt.defineModifier()};Pp([{tag:g.link,class:"tok-link"},{tag:g.heading,class:"tok-heading"},{tag:g.emphasis,class:"tok-emphasis"},{tag:g.strong,class:"tok-strong"},{tag:g.keyword,class:"tok-keyword"},{tag:g.atom,class:"tok-atom"},{tag:g.bool,class:"tok-bool"},{tag:g.url,class:"tok-url"},{tag:g.labelName,class:"tok-labelName"},{tag:g.inserted,class:"tok-inserted"},{tag:g.deleted,class:"tok-deleted"},{tag:g.literal,class:"tok-literal"},{tag:g.string,class:"tok-string"},{tag:g.number,class:"tok-number"},{tag:[g.regexp,g.escape,g.special(g.string)],class:"tok-string2"},{tag:g.variableName,class:"tok-variableName"},{tag:g.local(g.variableName),class:"tok-variableName tok-local"},{tag:g.definition(g.variableName),class:"tok-variableName tok-definition"},{tag:g.special(g.variableName),class:"tok-variableName2"},{tag:g.definition(g.propertyName),class:"tok-propertyName tok-definition"},{tag:g.typeName,class:"tok-typeName"},{tag:g.namespace,class:"tok-namespace"},{tag:g.className,class:"tok-className"},{tag:g.macroName,class:"tok-macroName"},{tag:g.propertyName,class:"tok-propertyName"},{tag:g.operator,class:"tok-operator"},{tag:g.comment,class:"tok-comment"},{tag:g.meta,class:"tok-meta"},{tag:g.invalid,class:"tok-invalid"},{tag:g.punctuation,class:"tok-punctuation"}]);var Go;const Pn=new N;function bo(n){return F.define({combine:n?e=>e.concat(n):void 0})}const Fa=new N;class lt{constructor(e,t,r=[],i=""){this.data=e,this.name=i,ie.prototype.hasOwnProperty("tree")||Object.defineProperty(ie.prototype,"tree",{get(){return _e(this)}}),this.parser=t,this.extension=[Tr.of(this),ie.languageData.of((s,o,l)=>{let a=Bh(s,o,l),c=a.type.prop(Pn);if(!c)return[];let h=s.facet(c),u=a.type.prop(Fa);if(u){let f=a.resolve(o-a.from,l);for(let d of u)if(d.test(f,s)){let p=s.facet(d.facet);return d.type=="replace"?p:p.concat(h)}}return h})].concat(r)}isActiveAt(e,t,r=-1){return Bh(e,t,r).type.prop(Pn)==this.data}findRegions(e){let t=e.facet(Tr);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[],i=(s,o)=>{if(s.prop(Pn)==this.data){r.push({from:o,to:o+s.length});return}let l=s.prop(N.mounted);if(l){if(l.tree.prop(Pn)==this.data){if(l.overlay)for(let a of l.overlay)r.push({from:a.from+o,to:a.to+o});else r.push({from:o,to:o+s.length});return}else if(l.overlay){let a=r.length;if(i(l.tree,l.overlay[0].from+o),r.length>a)return}}for(let a=0;a<s.children.length;a++){let c=s.children[a];c instanceof ne&&i(c,s.positions[a]+o)}};return i(_e(e),0),r}get allowsNesting(){return!0}}lt.setState=ye.define();function Bh(n,e,t){let r=n.facet(Tr),i=_e(n).topNode;if(!r||r.allowsNesting)for(let s=i;s;s=s.enter(e,t,ge.ExcludeBuffers))s.type.isTop&&(i=s);return i}class Cr extends lt{constructor(e,t,r){super(e,t,[],r),this.parser=t}static define(e){let t=bo(e.languageData);return new Cr(t,e.parser.configure({props:[Pn.add(r=>r.isTop?t:void 0)]}),e.name)}configure(e,t){return new Cr(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function _e(n){let e=n.field(lt.state,!1);return e?e.tree:ne.empty}class rv{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,t){let r=this.cursorPos-this.string.length;return e<r||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-r,t-r)}}let Gr=null;class Gn{constructor(e,t,r=[],i,s,o,l,a){this.parser=e,this.state=t,this.fragments=r,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,r){return new Gn(e,t,[],ne.empty,0,r,[],null)}startParse(){return this.parser.startParse(new rv(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=ne.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(on.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(on.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Gr;Gr=this;try{return e()}finally{Gr=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Wh(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:i,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((c,h,u,f)=>a.push({fromA:c,toA:h,fromB:u,toB:f})),r=on.applyChanges(r,a),i=ne.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){l=[];for(let c of this.skipped){let h=e.mapPos(c.from,1),u=e.mapPos(c.to,-1);h<u&&l.push({from:h,to:u})}}}return new Gn(this.parser,t,r,i,s,o,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:s}=this.skipped[r];i<e.to&&s>e.from&&(this.fragments=Wh(this.fragments,i,s),this.skipped.splice(r--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends go{createParse(t,r,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let a=Gr;if(a){for(let c of i)a.tempSkipped.push(c);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=o,new ne(Ae.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Gr}}function Wh(n,e,t){return on.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class Ar{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=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),t.viewport.to);return t.work(20,r)||t.takeTree(),new Ar(t)}static init(e){let t=Math.min(3e3,e.doc.length),r=Gn.create(e.facet(Tr).parser,e,{from:0,to:t});return r.work(20,t)||r.takeTree(),new Ar(r)}}lt.state=hn.define({create:Ar.init,update(n,e){for(let t of e.effects)if(t.is(lt.setState))return t.value;return e.startState.facet(Tr)!=e.state.facet(Tr)?Ar.init(e.state):n.apply(e)}});let Cp=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Cp=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:500-100})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Ho=typeof navigator<"u"&&(!((Go=navigator.scheduling)===null||Go===void 0)&&Go.isInputPending)?()=>navigator.scheduling.isInputPending():null,iv=cn.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 t=this.view.state.field(lt.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(lt.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Cp(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,s=r.field(lt.state);if(s.tree==s.context.tree&&s.context.isDone(i+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Ho?Math.max(25,e.timeRemaining()-5):1e9),l=s.context.treeLen<i&&r.doc.length>i+1e3,a=s.context.work(()=>Ho&&Ho()||Date.now()>o,i+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:lt.setState.of(new Ar(s.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Cn(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Tr=F.define({combine(n){return n.length?n[0]:null},enables:n=>[lt.state,iv,G.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class Er{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class _{constructor(e,t,r,i,s,o=void 0){this.name=e,this.alias=t,this.extensions=r,this.filename=i,this.loadFunc=s,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:t,support:r}=e;if(!t){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(r)}return new _(e.name,(e.alias||[]).concat(e.name).map(i=>i.toLowerCase()),e.extensions||[],e.filename,t,r)}static matchFilename(e,t){for(let i of e)if(i.filename&&i.filename.test(t))return i;let r=/\.([^.]+)$/.exec(t);if(r){for(let i of e)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(e,t,r=!0){t=t.toLowerCase();for(let i of e)if(i.alias.some(s=>s==t))return i;if(r)for(let i of e)for(let s of i.alias){let o=t.indexOf(s);if(o>-1&&(s.length>2||!/\w/.test(t[o-1])&&!/\w/.test(t[o+s.length])))return i}return null}}const Ap=F.define(),Mi=F.define({combine:n=>{if(!n.length)return"  ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function Hn(n){let e=n.facet(Mi);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function Hs(n,e){let t="",r=n.tabSize,i=n.facet(Mi)[0];if(i=="	"){for(;e>=r;)t+="	",e-=r;i=" "}for(let s=0;s<e;s++)t+=i;return t}function Tp(n,e){n instanceof ie&&(n=new vo(n));for(let r of n.state.facet(Ap)){let i=r(n,e);if(i!==void 0)return i}let t=_e(n.state);return t?sv(n,t,e):null}class vo{constructor(e,t={}){this.state=e,this.options=t,this.unit=Hn(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=r.from&&i<=r.to?s&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(e,t);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,t=1){let{text:r,from:i}=this.lineAt(e,t),s=this.countColumn(r,e-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(s+=o-this.countColumn(r,r.search(/\S|$/))),s}countColumn(e,t=e.length){return uo(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:i}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let o=s(i);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const zi=new N;function sv(n,e,t){return Ep(e.resolveInner(t).enterUnfinishedNodesBefore(t),t,n)}function ov(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function lv(n){let e=n.type.prop(zi);if(e)return e;let t=n.firstChild,r;if(t&&(r=t.type.prop(N.closedBy))){let i=n.lastChild,s=i&&r.indexOf(i.name)>-1;return o=>Xp(o,!0,1,void 0,s&&!ov(o)?i.from:void 0)}return n.parent==null?av:null}function Ep(n,e,t){for(;n;n=n.parent){let r=lv(n);if(r)return r(Ga.create(t,e,n))}return null}function av(){return 0}class Ga extends vo{constructor(e,t,r){super(e.state,e.options),this.base=e,this.pos=t,this.node=r}static create(e,t,r){return new Ga(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(cv(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?Ep(e,this.pos,this.base):0}}function cv(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function hv(n){let e=n.node,t=e.childAfter(e.from),r=e.lastChild;if(!t)return null;let i=n.options.simulateBreak,s=n.state.doc.lineAt(t.from),o=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==r)return null;if(!a.type.isSkipped)return a.from<o?t:null;l=a.to}}function uv({closing:n,align:e=!0,units:t=1}){return r=>Xp(r,e,t,n)}function Xp(n,e,t,r,i){let s=n.textAfter,o=s.match(/^\s*/)[0].length,l=r&&s.slice(o,o+r.length)==r||i==n.pos+o,a=e?hv(n):null;return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const fv=n=>n.baseIndent;function Ts({except:n,units:e=1}={}){return t=>{let r=n&&n.test(t.textAfter);return t.baseIndent+(r?0:e*t.unit)}}const dv=F.define(),So=new N;function Dp(n){let e=n.firstChild,t=n.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?n.to:t.from}:null}class Vr{constructor(e,t){this.specs=e;let r;function i(l){let a=Tn.newName();return(r||(r=Object.create(null)))["."+a]=l,a}const s=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,o=t.scope;this.scope=o instanceof lt?l=>l.prop(Pn)==o.data:o?l=>l==o:void 0,this.style=Pp(e.map(l=>({tag:l.tag,class:l.class||i(Object.assign({},l,{tag:null}))})),{all:s}).style,this.module=r?new Tn(r):null,this.themeType=t.themeType}static define(e,t){return new Vr(e,t||{})}}const ca=F.define(),Rp=F.define({combine(n){return n.length?[n[0]]:null}});function Jo(n){let e=n.facet(ca);return e.length?e:n.facet(Rp)}function Ha(n,e){let t=[mv],r;return n instanceof Vr&&(n.module&&t.push(G.styleModule.of(n.module)),r=n.themeType),e!=null&&e.fallback?t.push(Rp.of(n)):r?t.push(ca.computeN([G.darkTheme],i=>i.facet(G.darkTheme)==(r=="dark")?[n]:[])):t.push(ca.of(n)),t}class pv{constructor(e){this.markCache=Object.create(null),this.tree=_e(e.state),this.decorations=this.buildDeco(e,Jo(e.state))}update(e){let t=_e(e.state),r=Jo(e.state),i=r!=Jo(e.startState);t.length<e.view.viewport.to&&!i&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,r))}buildDeco(e,t){if(!t||!this.tree.length)return ce.none;let r=new yr;for(let{from:i,to:s}of e.visibleRanges)ev(this.tree,t,(o,l,a)=>{r.add(o,l,this.markCache[a]||(this.markCache[a]=ce.mark({class:a})))},i,s);return r.finish()}}const mv=Zr.high(cn.fromClass(pv,{decorations:n=>n.decorations})),Ov=Vr.define([{tag:g.meta,color:"#404740"},{tag:g.link,textDecoration:"underline"},{tag:g.heading,textDecoration:"underline",fontWeight:"bold"},{tag:g.emphasis,fontStyle:"italic"},{tag:g.strong,fontWeight:"bold"},{tag:g.strikethrough,textDecoration:"line-through"},{tag:g.keyword,color:"#708"},{tag:[g.atom,g.bool,g.url,g.contentSeparator,g.labelName],color:"#219"},{tag:[g.literal,g.inserted],color:"#164"},{tag:[g.string,g.deleted],color:"#a11"},{tag:[g.regexp,g.escape,g.special(g.string)],color:"#e40"},{tag:g.definition(g.variableName),color:"#00f"},{tag:g.local(g.variableName),color:"#30a"},{tag:[g.typeName,g.namespace],color:"#085"},{tag:g.className,color:"#167"},{tag:[g.special(g.variableName),g.macroName],color:"#256"},{tag:g.definition(g.propertyName),color:"#00c"},{tag:g.comment,color:"#940"},{tag:g.invalid,color:"#f00"}]),gv=1e4,bv="()[]{}",Zp=new N;function ha(n,e,t){let r=n.prop(e<0?N.openedBy:N.closedBy);if(r)return r;if(n.name.length==1){let i=t.indexOf(n.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function ua(n){let e=n.type.prop(Zp);return e?e(n.node):n}function cr(n,e,t,r={}){let i=r.maxScanDistance||gv,s=r.brackets||bv,o=_e(n),l=o.resolveInner(e,t);for(let a=l;a;a=a.parent){let c=ha(a.type,t,s);if(c&&a.from<a.to){let h=ua(a);if(h&&(t>0?e>=h.from&&e<h.to:e>h.from&&e<=h.to))return vv(n,e,t,a,h,c,s)}}return Sv(n,e,t,o,l.type,i,s)}function vv(n,e,t,r,i,s,o){let l=r.parent,a={from:i.from,to:i.to},c=0,h=l==null?void 0:l.cursor();if(h&&(t<0?h.childBefore(r.from):h.childAfter(r.to)))do if(t<0?h.to<=r.from:h.from>=r.to){if(c==0&&s.indexOf(h.type.name)>-1&&h.from<h.to){let u=ua(h);return{start:a,end:u?{from:u.from,to:u.to}:void 0,matched:!0}}else if(ha(h.type,t,o))c++;else if(ha(h.type,-t,o)){if(c==0){let u=ua(h);return{start:a,end:u&&u.from<u.to?{from:u.from,to:u.to}:void 0,matched:!1}}c--}}while(t<0?h.prevSibling():h.nextSibling());return{start:a,matched:!1}}function Sv(n,e,t,r,i,s,o){let l=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),a=o.indexOf(l);if(a<0||a%2==0!=t>0)return null;let c={from:t<0?e-1:e,to:t>0?e+1:e},h=n.doc.iterRange(e,t>0?n.doc.length:0),u=0;for(let f=0;!h.next().done&&f<=s;){let d=h.value;t<0&&(f+=d.length);let p=e+f*t;for(let m=t>0?0:d.length-1,O=t>0?d.length:-1;m!=O;m+=t){let b=o.indexOf(d[m]);if(!(b<0||r.resolveInner(p+m,1).type!=i))if(b%2==0==t>0)u++;else{if(u==1)return{start:c,end:{from:p+m,to:p+m+1},matched:b>>1==a>>1};u--}}t>0&&(f+=d.length)}return h.done?{start:c,matched:!1}:null}function Yh(n,e,t,r=0,i=0){e==null&&(e=n.search(/[^\s\u00a0]/),e==-1&&(e=n.length));let s=i;for(let o=r;o<e;o++)n.charCodeAt(o)==9?s+=t-s%t:s++;return s}class qp{constructor(e,t,r,i){this.string=e,this.tabSize=t,this.indentUnit=r,this.overrideIndent=i,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t=this.string.charAt(this.pos),r;if(typeof e=="string"?r=t==e:r=t&&(e instanceof RegExp?e.test(t):e(t)),r)return++this.pos,t}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Yh(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return(e=this.overrideIndent)!==null&&e!==void 0?e:Yh(this.string,null,this.tabSize)}match(e,t,r){if(typeof e=="string"){let i=o=>r?o.toLowerCase():o,s=this.string.substr(this.pos,e.length);return i(s)==i(e)?(t!==!1&&(this.pos+=e.length),!0):null}else{let i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}}current(){return this.string.slice(this.start,this.pos)}}function kv(n){return{name:n.name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>!0),copyState:n.copyState||yv,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||ec}}function yv(n){if(typeof n!="object")return n;let e={};for(let t in n){let r=n[t];e[t]=r instanceof Array?r.slice():r}return e}const jh=new WeakMap;class Ja extends lt{constructor(e){let t=bo(e.languageData),r=kv(e),i,s=new class extends go{createParse(o,l,a){return new xv(i,o,l,a)}};super(t,s,[Ap.of((o,l)=>this.getIndent(o,l))],e.name),this.topNode=_v(t),i=this,this.streamParser=r,this.stateAfter=new N({perNode:!0}),this.tokenTable=e.tokenTable?new Mp(r.tokenTable):$v}static define(e){return new Ja(e)}getIndent(e,t){let r=_e(e.state),i=r.resolve(t);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let s,{overrideIndentation:o}=e.options;o&&(s=jh.get(e.state),s!=null&&s<t-1e4&&(s=void 0));let l=Ka(this,r,0,i.from,s??t),a,c;if(l?(c=l.state,a=l.pos+1):(c=this.streamParser.startState(e.unit),a=0),t-a>1e4)return null;for(;a<t;){let u=e.state.doc.lineAt(a),f=Math.min(t,u.to);if(u.length){let d=o?o(u.from):-1,p=new qp(u.text,e.state.tabSize,e.unit,d<0?void 0:d);for(;p.pos<f-u.from;)Vp(this.streamParser.token,p,c)}else this.streamParser.blankLine(c,e.unit);if(f==t)break;a=u.to+1}let h=e.lineAt(t);return o&&s==null&&jh.set(e.state,h.from),this.streamParser.indent(c,/^\s*(.*)/.exec(h.text)[1],e)}get allowsNesting(){return!1}}function Ka(n,e,t,r,i){let s=t>=r&&t+e.length<=i&&e.prop(n.stateAfter);if(s)return{state:n.streamParser.copyState(s),pos:t+e.length};for(let o=e.children.length-1;o>=0;o--){let l=e.children[o],a=t+e.positions[o],c=l instanceof ne&&a<i&&Ka(n,l,a,r,i);if(c)return c}return null}function Lp(n,e,t,r,i){if(i&&t<=0&&r>=e.length)return e;!i&&e.type==n.topNode&&(i=!0);for(let s=e.children.length-1;s>=0;s--){let o=e.positions[s],l=e.children[s],a;if(o<r&&l instanceof ne){if(!(a=Lp(n,l,t-o,r-o,i)))break;return i?new ne(e.type,e.children.slice(0,s).concat(a),e.positions.slice(0,s+1),o+a.length):a}}return null}function wv(n,e,t,r){for(let i of e){let s=i.from+(i.openStart?25:0),o=i.to-(i.openEnd?25:0),l=s<=t&&o>t&&Ka(n,i.tree,0-i.offset,t,o),a;if(l&&(a=Lp(n,i.tree,t+i.offset,l.pos+i.offset,!1)))return{state:l.state,tree:a}}return{state:n.streamParser.startState(r?Hn(r):4),tree:ne.empty}}let xv=class{constructor(e,t,r,i){this.lang=e,this.input=t,this.fragments=r,this.ranges=i,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=i[i.length-1].to;let s=Gn.get(),o=i[0].from,{state:l,tree:a}=wv(e,r,o,s==null?void 0:s.state);this.state=l,this.parsedPos=this.chunkStart=o+a.length;for(let c=0;c<a.children.length;c++)this.chunks.push(a.children[c]),this.chunkPos.push(a.positions[c]);s&&this.parsedPos<s.viewport.from-1e5&&(this.state=this.lang.streamParser.startState(Hn(s.state)),s.skipUntilInView(this.parsedPos,s.viewport.from),this.parsedPos=s.viewport.from),this.moveRangeIndex()}advance(){let e=Gn.get(),t=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),r=Math.min(t,this.chunkStart+2048);for(e&&(r=Math.min(r,e.viewport.to));this.parsedPos<r;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==`
`&&(t="");else{let r=t.indexOf(`
`);r>-1&&(t=t.slice(0,r))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),r=e+t.length;for(let i=this.rangeIndex;;){let s=this.ranges[i].to;if(s>=r||(t=t.slice(0,s-(r-t.length)),i++,i==this.ranges.length))break;let o=this.ranges[i].from,l=this.lineAfter(o);t+=l,r=o+l.length}return{line:t,end:r}}skipGapsTo(e,t,r){for(;;){let i=this.ranges[this.rangeIndex].to,s=e+t;if(r>0?i>s:i>=s)break;let o=this.ranges[++this.rangeIndex].from;t+=o-i}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,r,i,s){if(this.ranges.length>1){s=this.skipGapsTo(t,s,1),t+=s;let o=this.chunk.length;s=this.skipGapsTo(r,s,-1),r+=s,i+=this.chunk.length-o}return this.chunk.push(e,t,r,i),s}parseLine(e){let{line:t,end:r}=this.nextLine(),i=0,{streamParser:s}=this.lang,o=new qp(t,e?e.state.tabSize:4,e?Hn(e.state):2);if(o.eol())s.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=Vp(s.token,o,this.state);if(l&&(i=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,4,i)),o.start>1e4)break}this.parsedPos=r,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=ne.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:Qv,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new ne(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new ne(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}};function Vp(n,e,t){e.start=e.pos;for(let r=0;r<10;r++){let i=n(e,t);if(e.pos>e.start)return i}throw new Error("Stream parser failed to advance stream.")}const ec=Object.create(null),Qi=[Ae.none],Qv=new qr(Qi),Nh=[],Ip=Object.create(null);for(let[n,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"]])Ip[n]=zp(ec,e);class Mp{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),Ip)}resolve(e){return e?this.table[e]||(this.table[e]=zp(this.extra,e)):0}}const $v=new Mp(ec);function Ko(n,e){Nh.indexOf(n)>-1||(Nh.push(n),console.warn(e))}function zp(n,e){let t=null;for(let s of e.split(".")){let o=n[s]||g[s];o?typeof o=="function"?t?t=o(t):Ko(s,`Modifier ${s} used at start of tag`):t?Ko(s,`Tag ${s} used as modifier`):t=o:Ko(s,`Unknown highlighting tag ${s}`)}if(!t)return 0;let r=e.replace(/ /g,"_"),i=Ae.define({id:Qi.length,name:r,props:[Lr({[r]:t})]});return Qi.push(i),i.id}function _v(n){let e=Ae.define({id:Qi.length,name:"Document",props:[Pn.add(()=>n)]});return Qi.push(e),e}const Pv=n=>{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),r=nc(n.state,t.from);return r.line?Cv(n):r.block?Tv(n):!1};function tc(n,e){return({state:t,dispatch:r})=>{if(t.readOnly)return!1;let i=n(e,t);return i?(r(t.update(i)),!0):!1}}const Cv=tc(Dv,0),Av=tc(Up,0),Tv=tc((n,e)=>Up(n,e,Xv(e)),0);function nc(n,e){let t=n.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const Hr=50;function Ev(n,{open:e,close:t},r,i){let s=n.sliceDoc(r-Hr,r),o=n.sliceDoc(i,i+Hr),l=/\s*$/.exec(s)[0].length,a=/^\s*/.exec(o)[0].length,c=s.length-l;if(s.slice(c-e.length,c)==e&&o.slice(a,a+t.length)==t)return{open:{pos:r-l,margin:l&&1},close:{pos:i+a,margin:a&&1}};let h,u;i-r<=2*Hr?h=u=n.sliceDoc(r,i):(h=n.sliceDoc(r,r+Hr),u=n.sliceDoc(i-Hr,i));let f=/^\s*/.exec(h)[0].length,d=/\s*$/.exec(u)[0].length,p=u.length-d-t.length;return h.slice(f,f+e.length)==e&&u.slice(p,p+t.length)==t?{open:{pos:r+f+e.length,margin:/\s/.test(h.charAt(f+e.length))?1:0},close:{pos:i-d-t.length,margin:/\s/.test(u.charAt(p-1))?1:0}}:null}function Xv(n){let e=[];for(let t of n.selection.ranges){let r=n.doc.lineAt(t.from),i=t.to<=r.to?r:n.doc.lineAt(t.to),s=e.length-1;s>=0&&e[s].to>r.from?e[s].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}function Up(n,e,t=e.selection.ranges){let r=t.map(s=>nc(e,s.from).block);if(!r.every(s=>s))return null;let i=t.map((s,o)=>Ev(e,r[o],s.from,s.to));if(n!=2&&!i.every(s=>s))return{changes:e.changes(t.map((s,o)=>i[o]?[]:[{from:s.from,insert:r[o].open+" "},{from:s.to,insert:" "+r[o].close}]))};if(n!=1&&i.some(s=>s)){let s=[];for(let o=0,l;o<i.length;o++)if(l=i[o]){let a=r[o],{open:c,close:h}=l;s.push({from:c.pos-a.open.length,to:c.pos+c.margin},{from:h.pos-h.margin,to:h.pos+a.close.length})}return{changes:s}}return null}function Dv(n,e,t=e.selection.ranges){let r=[],i=-1;for(let{from:s,to:o}of t){let l=r.length,a=1e9,c=nc(e,s).line;if(c){for(let h=s;h<=o;){let u=e.doc.lineAt(h);if(u.from>i&&(s==o||o>u.from)){i=u.from;let f=/^\s*/.exec(u.text)[0].length,d=f==u.length,p=u.text.slice(f,f+c.length)==c?f:-1;f<u.text.length&&f<a&&(a=f),r.push({line:u,comment:p,token:c,indent:f,empty:d,single:!1})}h=u.to+1}if(a<1e9)for(let h=l;h<r.length;h++)r[h].indent<r[h].line.text.length&&(r[h].indent=a);r.length==l+1&&(r[l].single=!0)}}if(n!=2&&r.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:l,token:a,indent:c,empty:h,single:u}of r)(u||!h)&&s.push({from:l.from+c,insert:a+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(n!=1&&r.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:l,token:a}of r)if(l>=0){let c=o.from+l,h=c+a.length;o.text[h-o.from]==" "&&h++,s.push({from:c,to:h})}return{changes:s}}return null}const fa=un.define(),Rv=un.define(),Zv=F.define(),Bp=F.define({combine(n){return Va(n,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(r,i)=>e(r,i)||t(r,i)})}});function qv(n){let e=0;return n.iterChangedRanges((t,r)=>e=r),e}const Wp=hn.define({create(){return Ut.empty},update(n,e){let t=e.state.facet(Bp),r=e.annotation(fa);if(r){let a=e.docChanged?D.single(qv(e.changes)):void 0,c=Ke.fromTransaction(e,a),h=r.side,u=h==0?n.undone:n.done;return c?u=Ks(u,u.length,t.minDepth,c):u=jp(u,e.startState.selection),new Ut(h==0?r.rest:u,h==0?u:r.rest)}let i=e.annotation(Rv);if((i=="full"||i=="before")&&(n=n.isolate()),e.annotation(Ze.addToHistory)===!1)return e.changes.empty?n:n.addMapping(e.changes.desc);let s=Ke.fromTransaction(e),o=e.annotation(Ze.time),l=e.annotation(Ze.userEvent);return s?n=n.addChanges(s,o,l,t,e):e.selection&&(n=n.addSelection(e.startState.selection,o,l,t.newGroupDelay)),(i=="full"||i=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(e=>e.toJSON()),undone:n.undone.map(e=>e.toJSON())}},fromJSON(n){return new Ut(n.done.map(Ke.fromJSON),n.undone.map(Ke.fromJSON))}});function Lv(n={}){return[Wp,Bp.of(n),G.domEventHandlers({beforeinput(e,t){let r=e.inputType=="historyUndo"?rc:e.inputType=="historyRedo"?Js:null;return r?(e.preventDefault(),r(t)):!1}})]}function ko(n,e){return function({state:t,dispatch:r}){if(!e&&t.readOnly)return!1;let i=t.field(Wp,!1);if(!i)return!1;let s=i.pop(n,t,e);return s?(r(s),!0):!1}}const rc=ko(0,!1),Js=ko(1,!1),Vv=ko(0,!0),Iv=ko(1,!0);class Ke{constructor(e,t,r,i,s){this.changes=e,this.effects=t,this.mapped=r,this.startSelection=i,this.selectionsAfter=s}setSelAfter(e){return new Ke(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,r;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new Ke(e.changes&&Re.fromJSON(e.changes),[],e.mapped&&Yt.fromJSON(e.mapped),e.startSelection&&D.fromJSON(e.startSelection),e.selectionsAfter.map(D.fromJSON))}static fromTransaction(e,t){let r=ft;for(let i of e.startState.facet(Zv)){let s=i(e);s.length&&(r=r.concat(s))}return!r.length&&e.changes.empty?null:new Ke(e.changes.invert(e.startState.doc),r,void 0,t||e.startState.selection,ft)}static selection(e){return new Ke(void 0,ft,void 0,void 0,e)}}function Ks(n,e,t,r){let i=e+1>t+20?e-t-1:0,s=n.slice(i,e);return s.push(r),s}function Mv(n,e){let t=[],r=!1;return n.iterChangedRanges((i,s)=>t.push(i,s)),e.iterChangedRanges((i,s,o,l)=>{for(let a=0;a<t.length;){let c=t[a++],h=t[a++];l>=c&&o<=h&&(r=!0)}}),r}function zv(n,e){return n.ranges.length==e.ranges.length&&n.ranges.filter((t,r)=>t.empty!=e.ranges[r].empty).length===0}function Yp(n,e){return n.length?e.length?n.concat(e):n:e}const ft=[],Uv=200;function jp(n,e){if(n.length){let t=n[n.length-1],r=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Uv));return r.length&&r[r.length-1].eq(e)?n:(r.push(e),Ks(n,n.length-1,1e9,t.setSelAfter(r)))}else return[Ke.selection([e])]}function Bv(n){let e=n[n.length-1],t=n.slice();return t[n.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function el(n,e){if(!n.length)return n;let t=n.length,r=ft;for(;t;){let i=Wv(n[t-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let s=n.slice(0,t);return s[t-1]=i,s}else e=i.mapped,t--,r=i.selectionsAfter}return r.length?[Ke.selection(r)]:ft}function Wv(n,e,t){let r=Yp(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(e)):ft,t);if(!n.changes)return Ke.selection(r);let i=n.changes.map(e),s=e.mapDesc(n.changes,!0),o=n.mapped?n.mapped.composeDesc(s):s;return new Ke(i,ye.mapEffects(n.effects,e),o,n.startSelection.map(s),r)}const Yv=/^(input\.type|delete)($|\.)/;class Ut{constructor(e,t,r=0,i=void 0){this.done=e,this.undone=t,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new Ut(this.done,this.undone):this}addChanges(e,t,r,i,s){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!r||Yv.test(r))&&(!l.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(s,Mv(l.changes,e.changes))||r=="input.type.compose")?o=Ks(o,o.length-1,i.minDepth,new Ke(e.changes.compose(l.changes),Yp(e.effects,l.effects),l.mapped,l.startSelection,ft)):o=Ks(o,o.length,i.minDepth,e),new Ut(o,ft,t,r)}addSelection(e,t,r,i){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:ft;return s.length>0&&t-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&zv(s[s.length-1],e)?this:new Ut(jp(this.done,e),this.undone,t,r)}addMapping(e){return new Ut(el(this.done,e),el(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,r){let i=e==0?this.done:this.undone;if(i.length==0)return null;let s=i[i.length-1];if(r&&s.selectionsAfter.length)return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:fa.of({side:e,rest:Bv(i)}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let o=i.length==1?ft:i.slice(0,i.length-1);return s.mapped&&(o=el(o,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:fa.of({side:e,rest:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}Ut.empty=new Ut(ft,ft);const jv=[{key:"Mod-z",run:rc,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Js,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Js,preventDefault:!0},{key:"Mod-u",run:Vv,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Iv,preventDefault:!0}];function Ir(n,e){return D.create(n.ranges.map(e),n.mainIndex)}function Nt(n,e){return n.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function At({state:n,dispatch:e},t){let r=Ir(n.selection,t);return r.eq(n.selection)?!1:(e(Nt(n,r)),!0)}function yo(n,e){return D.cursor(e?n.to:n.from)}function Np(n,e){return At(n,t=>t.empty?n.moveByChar(t,e):yo(t,e))}function Ye(n){return n.textDirectionAt(n.state.selection.main.head)==qe.LTR}const Fp=n=>Np(n,!Ye(n)),Gp=n=>Np(n,Ye(n));function Hp(n,e){return At(n,t=>t.empty?n.moveByGroup(t,e):yo(t,e))}const Nv=n=>Hp(n,!Ye(n)),Fv=n=>Hp(n,Ye(n));function Gv(n,e,t){if(e.type.prop(t))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function wo(n,e,t){let r=_e(n).resolveInner(e.head),i=t?N.closedBy:N.openedBy;for(let a=e.head;;){let c=t?r.childAfter(a):r.childBefore(a);if(!c)break;Gv(n,c,i)?r=c:a=t?c.to:c.from}let s=r.type.prop(i),o,l;return s&&(o=t?cr(n,r.from,1):cr(n,r.to,-1))&&o.matched?l=t?o.end.to:o.end.from:l=t?r.to:r.from,D.cursor(l,t?-1:1)}const Hv=n=>At(n,e=>wo(n.state,e,!Ye(n))),Jv=n=>At(n,e=>wo(n.state,e,Ye(n)));function Jp(n,e){return At(n,t=>{if(!t.empty)return yo(t,e);let r=n.moveVertically(t,e);return r.head!=t.head?r:n.moveToLineBoundary(t,e)})}const Kp=n=>Jp(n,!1),em=n=>Jp(n,!0);function tm(n){let e=n.scrollDOM.clientHeight<n.scrollDOM.scrollHeight-2,t=0,r=0,i;if(e){for(let s of n.state.facet(G.scrollMargins)){let o=s(n);o!=null&&o.top&&(t=Math.max(o==null?void 0:o.top,t)),o!=null&&o.bottom&&(r=Math.max(o==null?void 0:o.bottom,r))}i=n.scrollDOM.clientHeight-t-r}else i=(n.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:r,selfScroll:e,height:Math.max(n.defaultLineHeight,i-5)}}function nm(n,e){let t=tm(n),{state:r}=n,i=Ir(r.selection,o=>o.empty?n.moveVertically(o,e,t.height):yo(o,e));if(i.eq(r.selection))return!1;let s;if(t.selfScroll){let o=n.coordsAtPos(r.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),a=l.top+t.marginTop,c=l.bottom-t.marginBottom;o&&o.top>a&&o.bottom<c&&(s=G.scrollIntoView(i.main.head,{y:"start",yMargin:o.top-a}))}return n.dispatch(Nt(r,i),{effects:s}),!0}const Fh=n=>nm(n,!1),da=n=>nm(n,!0);function Dn(n,e,t){let r=n.lineBlockAt(e.head),i=n.moveToLineBoundary(e,t);if(i.head==e.head&&i.head!=(t?r.to:r.from)&&(i=n.moveToLineBoundary(e,t,!1)),!t&&i.head==r.from&&r.length){let s=/^\s*/.exec(n.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;s&&e.head!=r.from+s&&(i=D.cursor(r.from+s))}return i}const Kv=n=>At(n,e=>Dn(n,e,!0)),eS=n=>At(n,e=>Dn(n,e,!1)),tS=n=>At(n,e=>Dn(n,e,!Ye(n))),nS=n=>At(n,e=>Dn(n,e,Ye(n))),rS=n=>At(n,e=>D.cursor(n.lineBlockAt(e.head).from,1)),iS=n=>At(n,e=>D.cursor(n.lineBlockAt(e.head).to,-1));function sS(n,e,t){let r=!1,i=Ir(n.selection,s=>{let o=cr(n,s.head,-1)||cr(n,s.head,1)||s.head>0&&cr(n,s.head-1,1)||s.head<n.doc.length&&cr(n,s.head+1,-1);if(!o||!o.end)return s;r=!0;let l=o.start.from==s.head?o.end.to:o.end.from;return t?D.range(s.anchor,l):D.cursor(l)});return r?(e(Nt(n,i)),!0):!1}const oS=({state:n,dispatch:e})=>sS(n,e,!1);function Ot(n,e){let t=Ir(n.state.selection,r=>{let i=e(r);return D.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return t.eq(n.state.selection)?!1:(n.dispatch(Nt(n.state,t)),!0)}function rm(n,e){return Ot(n,t=>n.moveByChar(t,e))}const im=n=>rm(n,!Ye(n)),sm=n=>rm(n,Ye(n));function om(n,e){return Ot(n,t=>n.moveByGroup(t,e))}const lS=n=>om(n,!Ye(n)),aS=n=>om(n,Ye(n)),cS=n=>Ot(n,e=>wo(n.state,e,!Ye(n))),hS=n=>Ot(n,e=>wo(n.state,e,Ye(n)));function lm(n,e){return Ot(n,t=>n.moveVertically(t,e))}const am=n=>lm(n,!1),cm=n=>lm(n,!0);function hm(n,e){return Ot(n,t=>n.moveVertically(t,e,tm(n).height))}const Gh=n=>hm(n,!1),Hh=n=>hm(n,!0),uS=n=>Ot(n,e=>Dn(n,e,!0)),fS=n=>Ot(n,e=>Dn(n,e,!1)),dS=n=>Ot(n,e=>Dn(n,e,!Ye(n))),pS=n=>Ot(n,e=>Dn(n,e,Ye(n))),mS=n=>Ot(n,e=>D.cursor(n.lineBlockAt(e.head).from)),OS=n=>Ot(n,e=>D.cursor(n.lineBlockAt(e.head).to)),Jh=({state:n,dispatch:e})=>(e(Nt(n,{anchor:0})),!0),Kh=({state:n,dispatch:e})=>(e(Nt(n,{anchor:n.doc.length})),!0),eu=({state:n,dispatch:e})=>(e(Nt(n,{anchor:n.selection.main.anchor,head:0})),!0),tu=({state:n,dispatch:e})=>(e(Nt(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),gS=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),bS=({state:n,dispatch:e})=>{let t=Qo(n).map(({from:r,to:i})=>D.range(r,Math.min(i+1,n.doc.length)));return e(n.update({selection:D.create(t),userEvent:"select"})),!0},vS=({state:n,dispatch:e})=>{let t=Ir(n.selection,r=>{var i;let s=_e(n).resolveInner(r.head,1);for(;!(s.from<r.from&&s.to>=r.to||s.to>r.to&&s.from<=r.from||!(!((i=s.parent)===null||i===void 0)&&i.parent));)s=s.parent;return D.range(s.to,s.from)});return e(Nt(n,t)),!0},SS=({state:n,dispatch:e})=>{let t=n.selection,r=null;return t.ranges.length>1?r=D.create([t.main]):t.main.empty||(r=D.create([D.cursor(t.main.head)])),r?(e(Nt(n,r)),!0):!1};function xo(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:r}=n,i=r.changeByRange(s=>{let{from:o,to:l}=s;if(o==l){let a=e(o);a<o?(t="delete.backward",a=ms(n,a,!1)):a>o&&(t="delete.forward",a=ms(n,a,!0)),o=Math.min(o,a),l=Math.max(l,a)}else o=ms(n,o,!1),l=ms(n,l,!0);return o==l?{range:s}:{changes:{from:o,to:l},range:D.cursor(o)}});return i.changes.empty?!1:(n.dispatch(r.update(i,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?G.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function ms(n,e,t){if(n instanceof G)for(let r of n.state.facet(G.atomicRanges).map(i=>i(n)))r.between(e,e,(i,s)=>{i<e&&s>e&&(e=t?s:i)});return e}const um=(n,e)=>xo(n,t=>{let{state:r}=n,i=r.doc.lineAt(t),s,o;if(!e&&t>i.from&&t<i.from+200&&!/[^ \t]/.test(s=i.text.slice(0,t-i.from))){if(s[s.length-1]=="	")return t-1;let l=uo(s,r.tabSize),a=l%Hn(r)||Hn(r);for(let c=0;c<a&&s[s.length-1-c]==" ";c++)t--;o=t}else o=ot(i.text,t-i.from,e,e)+i.from,o==t&&i.number!=(e?r.doc.lines:1)&&(o+=e?1:-1);return o}),pa=n=>um(n,!1),fm=n=>um(n,!0),dm=(n,e)=>xo(n,t=>{let r=t,{state:i}=n,s=i.doc.lineAt(r),o=i.charCategorizer(r);for(let l=null;;){if(r==(e?s.to:s.from)){r==t&&s.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let a=ot(s.text,r-s.from,e)+s.from,c=s.text.slice(Math.min(r,a)-s.from,Math.max(r,a)-s.from),h=o(c);if(l!=null&&h!=l)break;(c!=" "||r!=t)&&(l=h),r=a}return r}),pm=n=>dm(n,!1),kS=n=>dm(n,!0),mm=n=>xo(n,e=>{let t=n.lineBlockAt(e).to;return e<t?t:Math.min(n.state.doc.length,e+1)}),yS=n=>xo(n,e=>{let t=n.lineBlockAt(e).from;return e>t?t:Math.max(0,e-1)}),wS=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:se.of(["",""])},range:D.cursor(r.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},xS=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(r=>{if(!r.empty||r.from==0||r.from==n.doc.length)return{range:r};let i=r.from,s=n.doc.lineAt(i),o=i==s.from?i-1:ot(s.text,i-s.from,!1)+s.from,l=i==s.to?i+1:ot(s.text,i-s.from,!0)+s.from;return{changes:{from:o,to:l,insert:n.doc.slice(i,l).append(n.doc.slice(o,i))},range:D.cursor(l)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Qo(n){let e=[],t=-1;for(let r of n.selection.ranges){let i=n.doc.lineAt(r.from),s=n.doc.lineAt(r.to);if(!r.empty&&r.to==s.from&&(s=n.doc.lineAt(r.to-1)),t>=i.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(r)}else e.push({from:i.from,to:s.to,ranges:[r]});t=s.number+1}return e}function Om(n,e,t){if(n.readOnly)return!1;let r=[],i=[];for(let s of Qo(n)){if(t?s.to==n.doc.length:s.from==0)continue;let o=n.doc.lineAt(t?s.to+1:s.from-1),l=o.length+1;if(t){r.push({from:s.to,to:o.to},{from:s.from,insert:o.text+n.lineBreak});for(let a of s.ranges)i.push(D.range(Math.min(n.doc.length,a.anchor+l),Math.min(n.doc.length,a.head+l)))}else{r.push({from:o.from,to:s.from},{from:s.to,insert:n.lineBreak+o.text});for(let a of s.ranges)i.push(D.range(a.anchor-l,a.head-l))}}return r.length?(e(n.update({changes:r,scrollIntoView:!0,selection:D.create(i,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const QS=({state:n,dispatch:e})=>Om(n,e,!1),$S=({state:n,dispatch:e})=>Om(n,e,!0);function gm(n,e,t){if(n.readOnly)return!1;let r=[];for(let i of Qo(n))t?r.push({from:i.from,insert:n.doc.slice(i.from,i.to)+n.lineBreak}):r.push({from:i.to,insert:n.lineBreak+n.doc.slice(i.from,i.to)});return e(n.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const _S=({state:n,dispatch:e})=>gm(n,e,!1),PS=({state:n,dispatch:e})=>gm(n,e,!0),bm=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(Qo(e).map(({from:i,to:s})=>(i>0?i--:s<e.doc.length&&s++,{from:i,to:s}))),r=Ir(e.selection,i=>n.moveVertically(i,!0)).map(t);return n.dispatch({changes:t,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function CS(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=_e(n).resolveInner(e),r=t.childBefore(e),i=t.childAfter(e),s;return r&&i&&r.to<=e&&i.from>=e&&(s=r.type.prop(N.closedBy))&&s.indexOf(i.name)>-1&&n.doc.lineAt(r.to).from==n.doc.lineAt(i.from).from?{from:r.to,to:i.from}:null}const AS=vm(!1),TS=vm(!0);function vm(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=e.changeByRange(i=>{let{from:s,to:o}=i,l=e.doc.lineAt(s),a=!n&&s==o&&CS(e,s);n&&(s=o=(o<=l.to?l:e.doc.lineAt(o)).to);let c=new vo(e,{simulateBreak:s,simulateDoubleBreak:!!a}),h=Tp(c,s);for(h==null&&(h=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);o<l.to&&/\s/.test(l.text[o-l.from]);)o++;a?{from:s,to:o}=a:s>l.from&&s<l.from+100&&!/\S/.test(l.text.slice(0,s))&&(s=l.from);let u=["",Hs(e,h)];return a&&u.push(Hs(e,c.lineIndent(l.from,-1))),{changes:{from:s,to:o,insert:se.of(u)},range:D.cursor(s+1+u[1].length)}});return t(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function ic(n,e){let t=-1;return n.changeByRange(r=>{let i=[];for(let o=r.from;o<=r.to;){let l=n.doc.lineAt(o);l.number>t&&(r.empty||r.to>l.from)&&(e(l,i,r),t=l.number),o=l.to+1}let s=n.changes(i);return{changes:i,range:D.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}})}const ES=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),r=new vo(n,{overrideIndentation:s=>{let o=t[s];return o??-1}}),i=ic(n,(s,o,l)=>{let a=Tp(r,s.from);if(a==null)return;/\S/.test(s.text)||(a=0);let c=/^\s*/.exec(s.text)[0],h=Hs(n,a);(c!=h||l.from<s.from+c.length)&&(t[s.from]=a,o.push({from:s.from,to:s.from+c.length,insert:h}))});return i.changes.empty||e(n.update(i,{userEvent:"indent"})),!0},Sm=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(ic(n,(t,r)=>{r.push({from:t.from,insert:n.facet(Mi)})}),{userEvent:"input.indent"})),!0),km=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(ic(n,(t,r)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let s=uo(i,n.tabSize),o=0,l=Hs(n,Math.max(0,s-Hn(n)));for(;o<i.length&&o<l.length&&i.charCodeAt(o)==l.charCodeAt(o);)o++;r.push({from:t.from+o,to:t.from+i.length,insert:l.slice(o)})}),{userEvent:"delete.dedent"})),!0),XS=[{key:"Ctrl-b",run:Fp,shift:im,preventDefault:!0},{key:"Ctrl-f",run:Gp,shift:sm},{key:"Ctrl-p",run:Kp,shift:am},{key:"Ctrl-n",run:em,shift:cm},{key:"Ctrl-a",run:rS,shift:mS},{key:"Ctrl-e",run:iS,shift:OS},{key:"Ctrl-d",run:fm},{key:"Ctrl-h",run:pa},{key:"Ctrl-k",run:mm},{key:"Ctrl-Alt-h",run:pm},{key:"Ctrl-o",run:wS},{key:"Ctrl-t",run:xS},{key:"Ctrl-v",run:da}],DS=[{key:"ArrowLeft",run:Fp,shift:im,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Nv,shift:lS,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:tS,shift:dS,preventDefault:!0},{key:"ArrowRight",run:Gp,shift:sm,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Fv,shift:aS,preventDefault:!0},{mac:"Cmd-ArrowRight",run:nS,shift:pS,preventDefault:!0},{key:"ArrowUp",run:Kp,shift:am,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Jh,shift:eu},{mac:"Ctrl-ArrowUp",run:Fh,shift:Gh},{key:"ArrowDown",run:em,shift:cm,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Kh,shift:tu},{mac:"Ctrl-ArrowDown",run:da,shift:Hh},{key:"PageUp",run:Fh,shift:Gh},{key:"PageDown",run:da,shift:Hh},{key:"Home",run:eS,shift:fS,preventDefault:!0},{key:"Mod-Home",run:Jh,shift:eu},{key:"End",run:Kv,shift:uS,preventDefault:!0},{key:"Mod-End",run:Kh,shift:tu},{key:"Enter",run:AS},{key:"Mod-a",run:gS},{key:"Backspace",run:pa,shift:pa},{key:"Delete",run:fm},{key:"Mod-Backspace",mac:"Alt-Backspace",run:pm},{key:"Mod-Delete",mac:"Alt-Delete",run:kS},{mac:"Mod-Backspace",run:yS},{mac:"Mod-Delete",run:mm}].concat(XS.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),RS=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Hv,shift:cS},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Jv,shift:hS},{key:"Alt-ArrowUp",run:QS},{key:"Shift-Alt-ArrowUp",run:_S},{key:"Alt-ArrowDown",run:$S},{key:"Shift-Alt-ArrowDown",run:PS},{key:"Escape",run:SS},{key:"Mod-Enter",run:TS},{key:"Alt-l",mac:"Ctrl-l",run:bS},{key:"Mod-i",run:vS,preventDefault:!0},{key:"Mod-[",run:km},{key:"Mod-]",run:Sm},{key:"Mod-Alt-\\",run:ES},{key:"Shift-Mod-k",run:bm},{key:"Shift-Mod-\\",run:oS},{key:"Mod-/",run:Pv},{key:"Alt-A",run:Av}].concat(DS),ZS={key:"Tab",run:Sm,shift:km};function nu(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function qS(n){let e=Object.create(null),t=Object.create(null);for(let{label:i}of n){e[i[0]]=!0;for(let s=1;s<i.length;s++)t[i[s]]=!0}let r=nu(e)+nu(t)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function LS(n){let e=n.map(i=>typeof i=="string"?{label:i}:i),[t,r]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:qS(e);return i=>{let s=i.matchBefore(r);return s||i.explicit?{from:s?s.from:i.pos,options:e,validFor:t}:null}}function VS(n,e){return t=>{for(let r=_e(t.state).resolveInner(t.pos,-1);r;r=r.parent){if(n.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return e(t)}}const IS=un.define(),MS=G.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"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".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 zS{constructor(e,t,r,i){this.field=e,this.line=t,this.from=r,this.to=i}}class sc{constructor(e,t,r){this.field=e,this.from=t,this.to=r}map(e){let t=e.mapPos(this.from,-1,Ne.TrackDel),r=e.mapPos(this.to,1,Ne.TrackDel);return t==null||r==null?null:new sc(this.field,t,r)}}class oc{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let r=[],i=[t],s=e.doc.lineAt(t),o=/^\s*/.exec(s.text)[0];for(let a of this.lines){if(r.length){let c=o,h=/^\t*/.exec(a)[0].length;for(let u=0;u<h;u++)c+=e.facet(Mi);i.push(t+c.length-h),a=c+a.slice(h)}r.push(a),t+=a.length+1}let l=this.fieldPositions.map(a=>new sc(a.field,i[a.line]+a.from,i[a.line]+a.to));return{text:r,ranges:l}}static parse(e){let t=[],r=[],i=[],s;for(let o of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let l=s[1]?+s[1]:null,a=s[2]||s[3]||"",c=-1;for(let h=0;h<t.length;h++)(l!=null?t[h].seq==l:a&&t[h].name==a)&&(c=h);if(c<0){let h=0;for(;h<t.length&&(l==null||t[h].seq!=null&&t[h].seq<l);)h++;t.splice(h,0,{seq:l,name:a}),c=h;for(let u of i)u.field>=c&&u.field++}i.push(new zS(c,r.length,s.index,s.index+a.length)),o=o.slice(0,s.index)+a+o.slice(s.index+s[0].length)}for(let l;l=/\\([{}])/.exec(o);){o=o.slice(0,l.index)+l[1]+o.slice(l.index+l[0].length);for(let a of i)a.line==r.length&&a.from>l.index&&(a.from--,a.to--)}r.push(o)}return new oc(r,i)}}let US=ce.widget({widget:new class extends Xn{toDOM(){let n=document.createElement("span");return n.className="cm-snippetFieldPosition",n}ignoreEvent(){return!1}}}),BS=ce.mark({class:"cm-snippetField"});class Mr{constructor(e,t){this.ranges=e,this.active=t,this.deco=ce.set(e.map(r=>(r.from==r.to?US:BS).range(r.from,r.to)))}map(e){let t=[];for(let r of this.ranges){let i=r.map(e);if(!i)return null;t.push(i)}return new Mr(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(r=>r.field==this.active&&r.from<=t.from&&r.to>=t.to))}}const Ui=ye.define({map(n,e){return n&&n.map(e)}}),WS=ye.define(),$i=hn.define({create(){return null},update(n,e){for(let t of e.effects){if(t.is(Ui))return t.value;if(t.is(WS)&&n)return new Mr(n.ranges,t.value)}return n&&e.docChanged&&(n=n.map(e.changes)),n&&e.selection&&!n.selectionInsideField(e.selection)&&(n=null),n},provide:n=>G.decorations.from(n,e=>e?e.deco:ce.none)});function lc(n,e){return D.create(n.filter(t=>t.field==e).map(t=>D.range(t.from,t.to)))}function YS(n){let e=oc.parse(n);return(t,r,i,s)=>{let{text:o,ranges:l}=e.instantiate(t.state,i),a={changes:{from:i,to:s,insert:se.of(o)},scrollIntoView:!0,annotations:r?IS.of(r):void 0};if(l.length&&(a.selection=lc(l,0)),l.length>1){let c=new Mr(l,0),h=a.effects=[Ui.of(c)];t.state.field($i,!1)===void 0&&h.push(ye.appendConfig.of([$i,HS,JS,MS]))}t.dispatch(t.state.update(a))}}function ym(n){return({state:e,dispatch:t})=>{let r=e.field($i,!1);if(!r||n<0&&r.active==0)return!1;let i=r.active+n,s=n>0&&!r.ranges.some(o=>o.field==i+n);return t(e.update({selection:lc(r.ranges,i),effects:Ui.of(s?null:new Mr(r.ranges,i))})),!0}}const jS=({state:n,dispatch:e})=>n.field($i,!1)?(e(n.update({effects:Ui.of(null)})),!0):!1,NS=ym(1),FS=ym(-1),GS=[{key:"Tab",run:NS,shift:FS},{key:"Escape",run:jS}],ru=F.define({combine(n){return n.length?n[0]:GS}}),HS=Zr.highest(Vi.compute([ru],n=>n.facet(ru)));function bt(n,e){return Object.assign(Object.assign({},e),{apply:YS(n)})}const JS=G.domEventHandlers({mousedown(n,e){let t=e.state.field($i,!1),r;if(!t||(r=e.posAtCoords({x:n.clientX,y:n.clientY}))==null)return!1;let i=t.ranges.find(s=>s.from<=r&&s.to>=r);return!i||i.field==t.active?!1:(e.dispatch({selection:lc(t.ranges,i.field),effects:Ui.of(t.ranges.some(s=>s.field>i.field)?new Mr(t.ranges,i.field):null)}),!0)}}),wm=new class extends jn{};wm.startSide=1;wm.endSide=-1;const KS=(()=>[Cb(),Lv(),Sb(),Ha(Ov,{fallback:!0}),Vi.of([...RS,...jv])])();function E(n){return new Er(Ja.define(n))}function pn(n){return C(()=>import("./index-0e3dd4e0.js"),["assets/index-0e3dd4e0.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(e=>e.sql({dialect:e[n]}))}const ek=[_.of({name:"C",extensions:["c","h","ino"],load(){return C(()=>import("./index-161207e4.js"),["assets/index-161207e4.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.cpp())}}),_.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return C(()=>import("./index-161207e4.js"),["assets/index-161207e4.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.cpp())}}),_.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return pn("Cassandra")}}),_.of({name:"CSS",extensions:["css"],load(){return C(()=>Promise.resolve().then(()=>M1),void 0).then(n=>n.css())}}),_.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return C(()=>Promise.resolve().then(()=>yy),void 0).then(n=>n.html())}}),_.of({name:"Java",extensions:["java"],load(){return C(()=>import("./index-1238f928.js"),["assets/index-1238f928.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.java())}}),_.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return C(()=>Promise.resolve().then(()=>bs),void 0).then(n=>n.javascript())}}),_.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return C(()=>import("./index-2f97eee5.js"),["assets/index-2f97eee5.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.json())}}),_.of({name:"JSX",extensions:["jsx"],load(){return C(()=>Promise.resolve().then(()=>bs),void 0).then(n=>n.javascript({jsx:!0}))}}),_.of({name:"LESS",extensions:["less"],load(){return C(()=>import("./index-1f42cc7a.js"),["assets/index-1f42cc7a.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.less())}}),_.of({name:"MariaDB SQL",load(){return pn("MariaSQL")}}),_.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return C(()=>Promise.resolve().then(()=>Py),void 0).then(n=>n.markdown())}}),_.of({name:"MS SQL",load(){return pn("MSSQL")}}),_.of({name:"MySQL",load(){return pn("MySQL")}}),_.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return C(()=>import("./index-fe010c3e.js"),["assets/index-fe010c3e.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.php())}}),_.of({name:"PLSQL",extensions:["pls"],load(){return pn("PLSQL")}}),_.of({name:"PostgreSQL",load(){return pn("PostgreSQL")}}),_.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return C(()=>import("./index-ff7c7ec8.js"),["assets/index-ff7c7ec8.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.python())}}),_.of({name:"Rust",extensions:["rs"],load(){return C(()=>import("./index-e10043a5.js"),["assets/index-e10043a5.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.rust())}}),_.of({name:"Sass",extensions:["sass"],load(){return C(()=>import("./index-8b6317f8.js"),["assets/index-8b6317f8.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.sass({indented:!0}))}}),_.of({name:"SCSS",extensions:["scss"],load(){return C(()=>import("./index-8b6317f8.js"),["assets/index-8b6317f8.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.sass())}}),_.of({name:"SQL",extensions:["sql"],load(){return pn("StandardSQL")}}),_.of({name:"SQLite",load(){return pn("SQLite")}}),_.of({name:"TSX",extensions:["tsx"],load(){return C(()=>Promise.resolve().then(()=>bs),void 0).then(n=>n.javascript({jsx:!0,typescript:!0}))}}),_.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load(){return C(()=>Promise.resolve().then(()=>bs),void 0).then(n=>n.javascript({typescript:!0}))}}),_.of({name:"WebAssembly",extensions:["wat","wast"],load(){return C(()=>import("./index-5022ecb3.js"),["assets/index-5022ecb3.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.wast())}}),_.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return C(()=>import("./index-c0602276.js"),["assets/index-c0602276.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.xml())}}),_.of({name:"APL",extensions:["dyalog","apl"],load(){return C(()=>import("./apl-f73da2d7.js"),[]).then(n=>E(n.apl))}}),_.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return C(()=>import("./asciiarmor-e7973ceb.js"),[]).then(n=>E(n.asciiArmor))}}),_.of({name:"ASN.1",extensions:["asn","asn1"],load(){return C(()=>import("./asn1-f9c290f0.js"),[]).then(n=>E(n.asn1({})))}}),_.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return C(()=>import("./asterisk-9c249b4c.js"),[]).then(n=>E(n.asterisk))}}),_.of({name:"Brainfuck",extensions:["b","bf"],load(){return C(()=>import("./brainfuck-637b9bf0.js"),[]).then(n=>E(n.brainfuck))}}),_.of({name:"Cobol",extensions:["cob","cpy"],load(){return C(()=>import("./cobol-3c0e8dcf.js"),[]).then(n=>E(n.cobol))}}),_.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return C(()=>import("./clike-3f6f5c72.js"),[]).then(n=>E(n.csharp))}}),_.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return C(()=>import("./clojure-46c215dd.js"),[]).then(n=>E(n.clojure))}}),_.of({name:"ClojureScript",extensions:["cljs"],load(){return C(()=>import("./clojure-46c215dd.js"),[]).then(n=>E(n.clojure))}}),_.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return C(()=>import("./css-ae0ae1d0.js"),[]).then(n=>E(n.gss))}}),_.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return C(()=>import("./cmake-f314e514.js"),[]).then(n=>E(n.cmake))}}),_.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return C(()=>import("./coffeescript-cf6fb77c.js"),[]).then(n=>E(n.coffeeScript))}}),_.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return C(()=>import("./commonlisp-0ea12945.js"),[]).then(n=>E(n.commonLisp))}}),_.of({name:"Cypher",extensions:["cyp","cypher"],load(){return C(()=>import("./cypher-236a65ad.js"),[]).then(n=>E(n.cypher))}}),_.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return C(()=>import("./python-37bee3fe.js"),[]).then(n=>E(n.cython))}}),_.of({name:"Crystal",extensions:["cr"],load(){return C(()=>import("./crystal-594a913c.js"),[]).then(n=>E(n.crystal))}}),_.of({name:"D",extensions:["d"],load(){return C(()=>import("./d-76ab4361.js"),[]).then(n=>E(n.d))}}),_.of({name:"Dart",extensions:["dart"],load(){return C(()=>import("./clike-3f6f5c72.js"),[]).then(n=>E(n.dart))}}),_.of({name:"diff",extensions:["diff","patch"],load(){return C(()=>import("./diff-1bf42f34.js"),[]).then(n=>E(n.diff))}}),_.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return C(()=>import("./dockerfile-c8a8b9da.js"),["assets/dockerfile-c8a8b9da.js","assets/simple-mode-851e42ff.js"]).then(n=>E(n.dockerFile))}}),_.of({name:"DTD",extensions:["dtd"],load(){return C(()=>import("./dtd-8d673f3f.js"),[]).then(n=>E(n.dtd))}}),_.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return C(()=>import("./dylan-94e68d48.js"),[]).then(n=>E(n.dylan))}}),_.of({name:"EBNF",load(){return C(()=>import("./ebnf-9a58f677.js"),[]).then(n=>E(n.ebnf))}}),_.of({name:"ECL",extensions:["ecl"],load(){return C(()=>import("./ecl-8c848bde.js"),[]).then(n=>E(n.ecl))}}),_.of({name:"edn",extensions:["edn"],load(){return C(()=>import("./clojure-46c215dd.js"),[]).then(n=>E(n.clojure))}}),_.of({name:"Eiffel",extensions:["e"],load(){return C(()=>import("./eiffel-c812667a.js"),[]).then(n=>E(n.eiffel))}}),_.of({name:"Elm",extensions:["elm"],load(){return C(()=>import("./elm-389625db.js"),[]).then(n=>E(n.elm))}}),_.of({name:"Erlang",extensions:["erl"],load(){return C(()=>import("./erlang-72724d5c.js"),[]).then(n=>E(n.erlang))}}),_.of({name:"Esper",load(){return C(()=>import("./sql-62feda9f.js"),[]).then(n=>E(n.esper))}}),_.of({name:"Factor",extensions:["factor"],load(){return C(()=>import("./factor-7bfcb4fc.js"),["assets/factor-7bfcb4fc.js","assets/simple-mode-851e42ff.js"]).then(n=>E(n.factor))}}),_.of({name:"FCL",load(){return C(()=>import("./fcl-d5e95185.js"),[]).then(n=>E(n.fcl))}}),_.of({name:"Forth",extensions:["forth","fth","4th"],load(){return C(()=>import("./forth-a6c07be1.js"),[]).then(n=>E(n.forth))}}),_.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return C(()=>import("./fortran-b746f455.js"),[]).then(n=>E(n.fortran))}}),_.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return C(()=>import("./mllike-1f866598.js"),[]).then(n=>E(n.fSharp))}}),_.of({name:"Gas",extensions:["s"],load(){return C(()=>import("./gas-a519128b.js"),[]).then(n=>E(n.gas))}}),_.of({name:"Gherkin",extensions:["feature"],load(){return C(()=>import("./gherkin-0efe02ac.js"),[]).then(n=>E(n.gherkin))}}),_.of({name:"Go",extensions:["go"],load(){return C(()=>import("./go-8a088acb.js"),[]).then(n=>E(n.go))}}),_.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return C(()=>import("./groovy-4592a472.js"),[]).then(n=>E(n.groovy))}}),_.of({name:"Haskell",extensions:["hs"],load(){return C(()=>import("./haskell-b620645c.js"),[]).then(n=>E(n.haskell))}}),_.of({name:"Haxe",extensions:["hx"],load(){return C(()=>import("./haxe-7215664e.js"),[]).then(n=>E(n.haxe))}}),_.of({name:"HXML",extensions:["hxml"],load(){return C(()=>import("./haxe-7215664e.js"),[]).then(n=>E(n.hxml))}}),_.of({name:"HTTP",load(){return C(()=>import("./http-e091c18d.js"),[]).then(n=>E(n.http))}}),_.of({name:"IDL",extensions:["pro"],load(){return C(()=>import("./idl-91cb7788.js"),[]).then(n=>E(n.idl))}}),_.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return C(()=>import("./javascript-987cbb73.js"),[]).then(n=>E(n.jsonld))}}),_.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load(){return C(()=>import("./jinja2-580c43a7.js"),[]).then(n=>E(n.jinja2))}}),_.of({name:"Julia",extensions:["jl"],load(){return C(()=>import("./julia-2f39a740.js"),[]).then(n=>E(n.julia))}}),_.of({name:"Kotlin",extensions:["kt"],load(){return C(()=>import("./clike-3f6f5c72.js"),[]).then(n=>E(n.kotlin))}}),_.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return C(()=>import("./livescript-a3318e59.js"),[]).then(n=>E(n.liveScript))}}),_.of({name:"Lua",extensions:["lua"],load(){return C(()=>import("./lua-ee237842.js"),[]).then(n=>E(n.lua))}}),_.of({name:"mIRC",extensions:["mrc"],load(){return C(()=>import("./mirc-c043bc0a.js"),[]).then(n=>E(n.mirc))}}),_.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return C(()=>import("./mathematica-4db1ec63.js"),[]).then(n=>E(n.mathematica))}}),_.of({name:"Modelica",extensions:["mo"],load(){return C(()=>import("./modelica-c19c47b8.js"),[]).then(n=>E(n.modelica))}}),_.of({name:"MUMPS",extensions:["mps"],load(){return C(()=>import("./mumps-82310ef4.js"),[]).then(n=>E(n.mumps))}}),_.of({name:"Mbox",extensions:["mbox"],load(){return C(()=>import("./mbox-b40e52ca.js"),[]).then(n=>E(n.mbox))}}),_.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return C(()=>import("./nginx-0992a7c8.js"),[]).then(n=>E(n.nginx))}}),_.of({name:"NSIS",extensions:["nsh","nsi"],load(){return C(()=>import("./nsis-8fd66a07.js"),["assets/nsis-8fd66a07.js","assets/simple-mode-851e42ff.js"]).then(n=>E(n.nsis))}}),_.of({name:"NTriples",extensions:["nt","nq"],load(){return C(()=>import("./ntriples-8490b09b.js"),[]).then(n=>E(n.ntriples))}}),_.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return C(()=>import("./clike-3f6f5c72.js"),[]).then(n=>E(n.objectiveC))}}),_.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return C(()=>import("./clike-3f6f5c72.js"),[]).then(n=>E(n.objectiveCpp))}}),_.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return C(()=>import("./mllike-1f866598.js"),[]).then(n=>E(n.oCaml))}}),_.of({name:"Octave",extensions:["m"],load(){return C(()=>import("./octave-3f516c2f.js"),[]).then(n=>E(n.octave))}}),_.of({name:"Oz",extensions:["oz"],load(){return C(()=>import("./oz-a640e05c.js"),[]).then(n=>E(n.oz))}}),_.of({name:"Pascal",extensions:["p","pas"],load(){return C(()=>import("./pascal-bcac1c04.js"),[]).then(n=>E(n.pascal))}}),_.of({name:"Perl",extensions:["pl","pm"],load(){return C(()=>import("./perl-a9455719.js"),[]).then(n=>E(n.perl))}}),_.of({name:"Pig",extensions:["pig"],load(){return C(()=>import("./pig-3510ca5f.js"),[]).then(n=>E(n.pig))}}),_.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return C(()=>import("./powershell-c2c54630.js"),[]).then(n=>E(n.powerShell))}}),_.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return C(()=>import("./properties-aba123c1.js"),[]).then(n=>E(n.properties))}}),_.of({name:"ProtoBuf",extensions:["proto"],load(){return C(()=>import("./protobuf-1713bf80.js"),[]).then(n=>E(n.protobuf))}}),_.of({name:"Puppet",extensions:["pp"],load(){return C(()=>import("./puppet-3229bfe4.js"),[]).then(n=>E(n.puppet))}}),_.of({name:"Q",extensions:["q"],load(){return C(()=>import("./q-887a0cfa.js"),[]).then(n=>E(n.q))}}),_.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return C(()=>import("./r-3ca97919.js"),[]).then(n=>E(n.r))}}),_.of({name:"RPM Changes",load(){return C(()=>import("./rpm-aa81b362.js"),[]).then(n=>E(n.rpmChanges))}}),_.of({name:"RPM Spec",extensions:["spec"],load(){return C(()=>import("./rpm-aa81b362.js"),[]).then(n=>E(n.rpmSpec))}}),_.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return C(()=>import("./ruby-e88f1f8d.js"),[]).then(n=>E(n.ruby))}}),_.of({name:"SAS",extensions:["sas"],load(){return C(()=>import("./sas-4096b960.js"),[]).then(n=>E(n.sas))}}),_.of({name:"Scala",extensions:["scala"],load(){return C(()=>import("./clike-3f6f5c72.js"),[]).then(n=>E(n.scala))}}),_.of({name:"Scheme",extensions:["scm","ss"],load(){return C(()=>import("./scheme-ca3e6863.js"),[]).then(n=>E(n.scheme))}}),_.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return C(()=>import("./shell-86dd1d99.js"),[]).then(n=>E(n.shell))}}),_.of({name:"Sieve",extensions:["siv","sieve"],load(){return C(()=>import("./sieve-4b1eb6fb.js"),[]).then(n=>E(n.sieve))}}),_.of({name:"Smalltalk",extensions:["st"],load(){return C(()=>import("./smalltalk-b41561ee.js"),[]).then(n=>E(n.smalltalk))}}),_.of({name:"Solr",load(){return C(()=>import("./solr-7928d730.js"),[]).then(n=>E(n.solr))}}),_.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return C(()=>import("./mllike-1f866598.js"),[]).then(n=>E(n.sml))}}),_.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return C(()=>import("./sparql-71156930.js"),[]).then(n=>E(n.sparql))}}),_.of({name:"Spreadsheet",alias:["excel","formula"],load(){return C(()=>import("./spreadsheet-9f4dc4c6.js"),[]).then(n=>E(n.spreadsheet))}}),_.of({name:"Squirrel",extensions:["nut"],load(){return C(()=>import("./clike-3f6f5c72.js"),[]).then(n=>E(n.squirrel))}}),_.of({name:"Stylus",extensions:["styl"],load(){return C(()=>import("./stylus-2d29a832.js"),[]).then(n=>E(n.stylus))}}),_.of({name:"Swift",extensions:["swift"],load(){return C(()=>import("./swift-b6dd686e.js"),[]).then(n=>E(n.swift))}}),_.of({name:"sTeX",load(){return C(()=>import("./stex-611747c4.js"),[]).then(n=>E(n.stex))}}),_.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return C(()=>import("./stex-611747c4.js"),[]).then(n=>E(n.stex))}}),_.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return C(()=>import("./verilog-701759f4.js"),[]).then(n=>E(n.verilog))}}),_.of({name:"Tcl",extensions:["tcl"],load(){return C(()=>import("./tcl-9a9d281f.js"),[]).then(n=>E(n.tcl))}}),_.of({name:"Textile",extensions:["textile"],load(){return C(()=>import("./textile-27197230.js"),[]).then(n=>E(n.textile))}}),_.of({name:"TiddlyWiki",load(){return C(()=>import("./tiddlywiki-053c4b39.js"),[]).then(n=>E(n.tiddlyWiki))}}),_.of({name:"Tiki wiki",load(){return C(()=>import("./tiki-f8970e14.js"),[]).then(n=>E(n.tiki))}}),_.of({name:"TOML",extensions:["toml"],load(){return C(()=>import("./toml-fed73c05.js"),[]).then(n=>E(n.toml))}}),_.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return C(()=>import("./troff-1c50c70f.js"),[]).then(n=>E(n.troff))}}),_.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return C(()=>import("./ttcn-a4846d83.js"),[]).then(n=>E(n.ttcn))}}),_.of({name:"TTCN_CFG",extensions:["cfg"],load(){return C(()=>import("./ttcn-cfg-0c96bcc1.js"),[]).then(n=>E(n.ttcnCfg))}}),_.of({name:"Turtle",extensions:["ttl"],load(){return C(()=>import("./turtle-b550492d.js"),[]).then(n=>E(n.turtle))}}),_.of({name:"Web IDL",extensions:["webidl"],load(){return C(()=>import("./webidl-beade871.js"),[]).then(n=>E(n.webIDL))}}),_.of({name:"VB.NET",extensions:["vb"],load(){return C(()=>import("./vb-e9655ff4.js"),[]).then(n=>E(n.vb))}}),_.of({name:"VBScript",extensions:["vbs"],load(){return C(()=>import("./vbscript-e62417ba.js"),[]).then(n=>E(n.vbScript))}}),_.of({name:"Velocity",extensions:["vtl"],load(){return C(()=>import("./velocity-5bdd1b6a.js"),[]).then(n=>E(n.velocity))}}),_.of({name:"Verilog",extensions:["v"],load(){return C(()=>import("./verilog-701759f4.js"),[]).then(n=>E(n.verilog))}}),_.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return C(()=>import("./vhdl-288f0dde.js"),[]).then(n=>E(n.vhdl))}}),_.of({name:"XQuery",extensions:["xy","xquery"],load(){return C(()=>import("./xquery-f004ff15.js"),[]).then(n=>E(n.xQuery))}}),_.of({name:"Yacas",extensions:["ys"],load(){return C(()=>import("./yacas-d031e2ab.js"),[]).then(n=>E(n.yacas))}}),_.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return C(()=>import("./yaml-95012b83.js"),[]).then(n=>E(n.yaml))}}),_.of({name:"Z80",extensions:["z80"],load(){return C(()=>import("./z80-bb7f2654.js"),[]).then(n=>E(n.z80))}}),_.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return C(()=>import("./mscgen-96577242.js"),[]).then(n=>E(n.mscgen))}}),_.of({name:"Xù",extensions:["xu"],load(){return C(()=>import("./mscgen-96577242.js"),[]).then(n=>E(n.xu))}}),_.of({name:"MsGenny",extensions:["msgenny"],load(){return C(()=>import("./mscgen-96577242.js"),[]).then(n=>E(n.msgenny))}}),_.of({name:"Vue",extensions:["vue"],load(){return C(()=>import("./index-609169ac.js"),["assets/index-609169ac.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.vue())}}),_.of({name:"Angular Template",load(){return C(()=>import("./index-01901867.js"),["assets/index-01901867.js","assets/index-7911c6db.js","assets/index-4eef28ae.js","assets/index-5d2e0ed3.css","assets/index-7e36a42b.css","assets/config-b4a9e7c0.js"]).then(n=>n.angular())}})];class eo{constructor(e,t,r,i,s,o,l){this.type=e,this.value=t,this.from=r,this.hash=i,this.end=s,this.children=o,this.positions=l,this.hashProp=[[N.contextHash,i]]}static create(e,t,r,i,s){let o=i+(i<<8)+e+(t<<4)|0;return new eo(e,t,r,o,s,[],[])}addChild(e,t){e.prop(N.contextHash)!=this.hash&&(e=new ne(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let r=this.children.length-1;return r>=0&&(t=Math.max(t,this.positions[r]+this.children[r].length+this.from)),new ne(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(s,o,l)=>new ne(Ae.none,s,o,l,this.hashProp)})}}var Z;(function(n){n[n.Document=1]="Document",n[n.CodeBlock=2]="CodeBlock",n[n.FencedCode=3]="FencedCode",n[n.Blockquote=4]="Blockquote",n[n.HorizontalRule=5]="HorizontalRule",n[n.BulletList=6]="BulletList",n[n.OrderedList=7]="OrderedList",n[n.ListItem=8]="ListItem",n[n.ATXHeading1=9]="ATXHeading1",n[n.ATXHeading2=10]="ATXHeading2",n[n.ATXHeading3=11]="ATXHeading3",n[n.ATXHeading4=12]="ATXHeading4",n[n.ATXHeading5=13]="ATXHeading5",n[n.ATXHeading6=14]="ATXHeading6",n[n.SetextHeading1=15]="SetextHeading1",n[n.SetextHeading2=16]="SetextHeading2",n[n.HTMLBlock=17]="HTMLBlock",n[n.LinkReference=18]="LinkReference",n[n.Paragraph=19]="Paragraph",n[n.CommentBlock=20]="CommentBlock",n[n.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",n[n.Escape=22]="Escape",n[n.Entity=23]="Entity",n[n.HardBreak=24]="HardBreak",n[n.Emphasis=25]="Emphasis",n[n.StrongEmphasis=26]="StrongEmphasis",n[n.Link=27]="Link",n[n.Image=28]="Image",n[n.InlineCode=29]="InlineCode",n[n.HTMLTag=30]="HTMLTag",n[n.Comment=31]="Comment",n[n.ProcessingInstruction=32]="ProcessingInstruction",n[n.URL=33]="URL",n[n.HeaderMark=34]="HeaderMark",n[n.QuoteMark=35]="QuoteMark",n[n.ListMark=36]="ListMark",n[n.LinkMark=37]="LinkMark",n[n.EmphasisMark=38]="EmphasisMark",n[n.CodeMark=39]="CodeMark",n[n.CodeText=40]="CodeText",n[n.CodeInfo=41]="CodeInfo",n[n.LinkTitle=42]="LinkTitle",n[n.LinkLabel=43]="LinkLabel"})(Z||(Z={}));class tk{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class nk{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 di(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,t=0,r=0){for(let i=t;i<e;i++)r+=this.text.charCodeAt(i)==9?4-r%4:1;return r}findColumn(e){let t=0;for(let r=0;t<this.text.length&&r<e;t++)r+=this.text.charCodeAt(t)==9?4-r%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e="";for(let t=0;t<this.basePos;t++)e+=" ";return e+this.text.slice(this.basePos)}}function iu(n,e,t){if(t.pos==t.text.length||n!=e.block&&t.indent>=e.stack[t.depth+1].value+t.baseIndent)return!0;if(t.indent>=t.baseIndent+4)return!1;let r=(n.type==Z.OrderedList?hc:cc)(t,e,!1);return r>0&&(n.type!=Z.BulletList||ac(t,e,!1)<0)&&t.text.charCodeAt(t.pos+r-1)==n.value}const xm={[Z.Blockquote](n,e,t){return t.next!=62?!1:(t.markers.push(oe(Z.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1)),t.moveBase(t.pos+(gt(t.text.charCodeAt(t.pos+1))?2:1)),n.end=e.lineStart+t.text.length,!0)},[Z.ListItem](n,e,t){return t.indent<t.baseIndent+n.value&&t.next>-1?!1:(t.moveBaseColumn(t.baseIndent+n.value),!0)},[Z.OrderedList]:iu,[Z.BulletList]:iu,[Z.Document](){return!0}};function gt(n){return n==32||n==9||n==10||n==13}function di(n,e=0){for(;e<n.length&&gt(n.charCodeAt(e));)e++;return e}function su(n,e,t){for(;e>t&&gt(n.charCodeAt(e-1));)e--;return e}function Qm(n){if(n.next!=96&&n.next!=126)return-1;let e=n.pos+1;for(;e<n.text.length&&n.text.charCodeAt(e)==n.next;)e++;if(e<n.pos+3)return-1;if(n.next==96){for(let t=e;t<n.text.length;t++)if(n.text.charCodeAt(t)==96)return-1}return e}function $m(n){return n.next!=62?-1:n.text.charCodeAt(n.pos+1)==32?2:1}function ac(n,e,t){if(n.next!=42&&n.next!=45&&n.next!=95)return-1;let r=1;for(let i=n.pos+1;i<n.text.length;i++){let s=n.text.charCodeAt(i);if(s==n.next)r++;else if(!gt(s))return-1}return t&&n.next==45&&Cm(n)>-1&&n.depth==e.stack.length||r<3?-1:1}function _m(n,e){for(let t=n.stack.length-1;t>=0;t--)if(n.stack[t].type==e)return!0;return!1}function cc(n,e,t){return(n.next==45||n.next==43||n.next==42)&&(n.pos==n.text.length-1||gt(n.text.charCodeAt(n.pos+1)))&&(!t||_m(e,Z.BulletList)||n.skipSpace(n.pos+2)<n.text.length)?1:-1}function hc(n,e,t){let r=n.pos,i=n.next;for(;i>=48&&i<=57;){r++;if(r==n.text.length)return-1;i=n.text.charCodeAt(r)}return r==n.pos||r>n.pos+9||i!=46&&i!=41||r<n.text.length-1&&!gt(n.text.charCodeAt(r+1))||t&&!_m(e,Z.OrderedList)&&(n.skipSpace(r+1)==n.text.length||r>n.pos+1||n.next!=49)?-1:r+1-n.pos}function Pm(n){if(n.next!=35)return-1;let e=n.pos+1;for(;e<n.text.length&&n.text.charCodeAt(e)==35;)e++;if(e<n.text.length&&n.text.charCodeAt(e)!=32)return-1;let t=e-n.pos;return t>6?-1:t}function Cm(n){if(n.next!=45&&n.next!=61||n.indent>=n.baseIndent+4)return-1;let e=n.pos+1;for(;e<n.text.length&&n.text.charCodeAt(e)==n.next;)e++;let t=e;for(;e<n.text.length&&gt(n.text.charCodeAt(e));)e++;return e==n.text.length?t:-1}const ma=/^[ \t]*$/,Am=/-->/,Tm=/\?>/,Oa=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Am],[/^\s*<\?/,Tm],[/^\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,ma],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,ma]];function Em(n,e,t){if(n.next!=60)return-1;let r=n.text.slice(n.pos);for(let i=0,s=Oa.length-(t?1:0);i<s;i++)if(Oa[i][0].test(r))return i;return-1}function ou(n,e){let t=n.countIndent(e,n.pos,n.indent),r=n.countIndent(n.skipSpace(e),e,t);return r>=t+5?t+1:r}function qn(n,e,t){let r=n.length-1;r>=0&&n[r].to==e&&n[r].type==Z.CodeText?n[r].to=t:n.push(oe(Z.CodeText,e,t))}const Os={LinkReference:void 0,IndentedCode(n,e){let t=e.baseIndent+4;if(e.indent<t)return!1;let r=e.findColumn(t),i=n.lineStart+r,s=n.lineStart+e.text.length,o=[],l=[];for(qn(o,i,s);n.nextLine()&&e.depth>=n.stack.length;)if(e.pos==e.text.length){qn(l,n.lineStart-1,n.lineStart);for(let a of e.markers)l.push(a)}else{if(e.indent<t)break;{if(l.length){for(let c of l)c.type==Z.CodeText?qn(o,c.from,c.to):o.push(c);l=[]}qn(o,n.lineStart-1,n.lineStart);for(let c of e.markers)o.push(c);s=n.lineStart+e.text.length;let a=n.lineStart+e.findColumn(e.baseIndent+4);a<s&&qn(o,a,s)}}return l.length&&(l=l.filter(a=>a.type!=Z.CodeText),l.length&&(e.markers=l.concat(e.markers))),n.addNode(n.buffer.writeElements(o,-i).finish(Z.CodeBlock,s-i),i),!0},FencedCode(n,e){let t=Qm(e);if(t<0)return!1;let r=n.lineStart+e.pos,i=e.next,s=t-e.pos,o=e.skipSpace(t),l=su(e.text,e.text.length,o),a=[oe(Z.CodeMark,r,r+s)];o<l&&a.push(oe(Z.CodeInfo,n.lineStart+o,n.lineStart+l));for(let c=!0;n.nextLine()&&e.depth>=n.stack.length;c=!1){let h=e.pos;if(e.indent-e.baseIndent<4)for(;h<e.text.length&&e.text.charCodeAt(h)==i;)h++;if(h-e.pos>=s&&e.skipSpace(h)==e.text.length){for(let u of e.markers)a.push(u);a.push(oe(Z.CodeMark,n.lineStart+e.pos,n.lineStart+h)),n.nextLine();break}else{c||qn(a,n.lineStart-1,n.lineStart);for(let d of e.markers)a.push(d);let u=n.lineStart+e.basePos,f=n.lineStart+e.text.length;u<f&&qn(a,u,f)}}return n.addNode(n.buffer.writeElements(a,-r).finish(Z.FencedCode,n.prevLineEnd()-r),r),!0},Blockquote(n,e){let t=$m(e);return t<0?!1:(n.startContext(Z.Blockquote,e.pos),n.addNode(Z.QuoteMark,n.lineStart+e.pos,n.lineStart+e.pos+1),e.moveBase(e.pos+t),null)},HorizontalRule(n,e){if(ac(e,n,!1)<0)return!1;let t=n.lineStart+e.pos;return n.nextLine(),n.addNode(Z.HorizontalRule,t),!0},BulletList(n,e){let t=cc(e,n,!1);if(t<0)return!1;n.block.type!=Z.BulletList&&n.startContext(Z.BulletList,e.basePos,e.next);let r=ou(e,e.pos+1);return n.startContext(Z.ListItem,e.basePos,r-e.baseIndent),n.addNode(Z.ListMark,n.lineStart+e.pos,n.lineStart+e.pos+t),e.moveBaseColumn(r),null},OrderedList(n,e){let t=hc(e,n,!1);if(t<0)return!1;n.block.type!=Z.OrderedList&&n.startContext(Z.OrderedList,e.basePos,e.text.charCodeAt(e.pos+t-1));let r=ou(e,e.pos+t);return n.startContext(Z.ListItem,e.basePos,r-e.baseIndent),n.addNode(Z.ListMark,n.lineStart+e.pos,n.lineStart+e.pos+t),e.moveBaseColumn(r),null},ATXHeading(n,e){let t=Pm(e);if(t<0)return!1;let r=e.pos,i=n.lineStart+r,s=su(e.text,e.text.length,r),o=s;for(;o>r&&e.text.charCodeAt(o-1)==e.next;)o--;(o==s||o==r||!gt(e.text.charCodeAt(o-1)))&&(o=e.text.length);let l=n.buffer.write(Z.HeaderMark,0,t).writeElements(n.parser.parseInline(e.text.slice(r+t+1,o),i+t+1),-i);o<e.text.length&&l.write(Z.HeaderMark,o-r,s-r);let a=l.finish(Z.ATXHeading1-1+t,e.text.length-r);return n.nextLine(),n.addNode(a,i),!0},HTMLBlock(n,e){let t=Em(e,n,!1);if(t<0)return!1;let r=n.lineStart+e.pos,i=Oa[t][1],s=[],o=i!=ma;for(;!i.test(e.text)&&n.nextLine();){if(e.depth<n.stack.length){o=!1;break}for(let c of e.markers)s.push(c)}o&&n.nextLine();let l=i==Am?Z.CommentBlock:i==Tm?Z.ProcessingInstructionBlock:Z.HTMLBlock,a=n.prevLineEnd();return n.addNode(n.buffer.writeElements(s,-r).finish(l,a-r),r),!0},SetextHeading:void 0};class rk{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,r){if(this.stage==-1)return!1;let i=r.content+`
`+t.scrub(),s=this.advance(i);return s>-1&&s<i.length?this.complete(e,r,s):!1}finish(e,t){return(this.stage==2||this.stage==3)&&di(t.content,this.pos)==t.content.length?this.complete(e,t,t.content.length):!1}complete(e,t,r){return e.addLeafElement(t,oe(Z.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(Mm(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(oe(Z.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(Vm(e,di(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=di(e,this.pos),r=0;if(t>this.pos){let i=Im(e,t,this.start);if(i){let s=tl(e,i.to-this.start);s>0&&(this.nextStage(i),r=s)}}return r||(r=tl(e,this.pos)),r>0&&r<e.length?r:-1}else return tl(e,this.pos)}}}function tl(n,e){for(;e<n.length;e++){let t=n.charCodeAt(e);if(t==10)break;if(!gt(t))return-1}return e}class ik{nextLine(e,t,r){let i=t.depth<e.stack.length?-1:Cm(t),s=t.next;if(i<0)return!1;let o=oe(Z.HeaderMark,e.lineStart+t.pos,e.lineStart+i);return e.nextLine(),e.addLeafElement(r,oe(s==61?Z.SetextHeading1:Z.SetextHeading2,r.start,e.prevLineEnd(),[...e.parser.parseInline(r.content,r.start),o])),!0}finish(){return!1}}const sk={LinkReference(n,e){return e.content.charCodeAt(0)==91?new rk(e):null},SetextHeading(){return new ik}},ok=[(n,e)=>Pm(e)>=0,(n,e)=>Qm(e)>=0,(n,e)=>$m(e)>=0,(n,e)=>cc(e,n,!0)>=0,(n,e)=>hc(e,n,!0)>=0,(n,e)=>ac(e,n,!0)>=0,(n,e)=>Em(e,n,!0)>=0],lk={text:"",end:0};class ak{constructor(e,t,r,i){this.parser=e,this.input=t,this.ranges=i,this.line=new nk,this.atEnd=!1,this.dontInject=new Set,this.stoppedAt=null,this.rangeI=0,this.to=i[i.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=i[0].from,this.block=eo.create(Z.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new fk(r,t):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(;e.depth<this.stack.length;)this.finishContext();for(let r of e.markers)this.addNode(r.type,r.from,r.to);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 i=r(this,e);if(i!=!1){if(i==!0)return null;e.forward();continue e}}break}let t=new tk(this.lineStart+e.pos,e.text.slice(e.pos));for(let r of this.parser.leafBlockParsers)if(r){let i=r(this,t);i&&t.parsers.push(i)}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,t))break e}for(let r of t.parsers)if(r.nextLine(this,e,t))return null;t.content+=`
`+e.scrub();for(let r of e.markers)t.marks.push(r)}return this.finishLeaf(t),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 t=this.fragments.takeNodes(this);if(!t)return!1;let r=t,i=this.absoluteLineStart+t;for(let s=1;s<this.ranges.length;s++){let o=this.ranges[s-1].to,l=this.ranges[s].from;o>=this.lineStart&&l<i&&(r-=l-o)}return this.lineStart+=r,this.absoluteLineStart+=t,this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0}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)}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 t=lk;if(t.end=e,e>=this.to)t.text="";else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let r=this.absoluteLineStart,i=this.rangeI;for(;this.ranges[i].to<t.end;){i++;let s=this.ranges[i].from,o=this.lineChunkAt(s);t.end=s+o.length,t.text=t.text.slice(0,this.ranges[i-1].to-r)+o,r=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,e.reset(t);e.depth<this.stack.length;e.depth++){let i=this.stack[e.depth],s=this.parser.skipContextMarkup[i.type];if(!s)throw new Error("Unhandled block context "+Z[i.type]);if(!s(i,this,e))break;e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),r;if(this.input.lineChunks)r=t==`
`?"":t;else{let i=t.indexOf(`
`);r=i<0?t:t.slice(0,i)}return e+r.length>this.to?r.slice(0,this.to-e):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,r=0){this.block=eo.create(e,r,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,r=0){this.startContext(this.parser.getNodeType(e),t,r)}addNode(e,t,r){typeof e=="number"&&(e=new ne(this.parser.nodeSet.types[e],Xr,Xr,(r??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(ba(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}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?Xm(this.ranges,0,e.topNode,this.ranges[0].from,this.dontInject):e}finishLeaf(e){for(let r of e.parsers)if(r.finish(this,e))return;let t=ba(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(Z.Paragraph,e.content.length),e.start)}elt(e,t,r,i){return typeof e=="string"?oe(this.parser.getNodeType(e),t,r,i):new Zm(e,t)}get buffer(){return new Rm(this.parser.nodeSet)}}function Xm(n,e,t,r,i){if(i.has(t.tree))return t.tree;let s=n[e].to,o=[],l=[],a=t.from+r;function c(h,u){for(;u?h>=s:h>s;){let f=n[e+1].from-s;r+=f,h+=f,e++,s=n[e].to}}for(let h=t.firstChild;h;h=h.nextSibling){c(h.from+r,!0);let u=h.from+r,f;h.to+r>s?(f=Xm(n,e,h,r,i),c(h.to+r,!1)):f=h.toTree(),o.push(f),l.push(u-a)}return c(t.to+r,!1),new ne(t.type,o,l,t.to+r-a,t.tree?t.tree.propValues:void 0)}class $o extends go{constructor(e,t,r,i,s,o,l,a,c){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=s,this.skipContextMarkup=o,this.inlineParsers=l,this.inlineNames=a,this.wrappers=c,this.nodeTypes=Object.create(null);for(let h of e.types)this.nodeTypes[h.name]=h.id}createParse(e,t,r){let i=new ak(this,e,t,r);for(let s of this.wrappers)i=s(i,e,t,r);return i}configure(e){let t=ga(e);if(!t)return this;let{nodeSet:r,skipContextMarkup:i}=this,s=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),l=this.blockNames.slice(),a=this.inlineParsers.slice(),c=this.inlineNames.slice(),h=this.endLeafBlock.slice(),u=this.wrappers;if(Jr(t.defineNodes)){i=Object.assign({},i);let f=r.types.slice(),d;for(let p of t.defineNodes){let{name:m,block:O,composite:b,style:k}=typeof p=="string"?{name:p}:p;if(f.some($=>$.name==m))continue;b&&(i[f.length]=($,w,A)=>b(w,A,$.value));let y=f.length,Q=b?["Block","BlockContext"]:O?y>=Z.ATXHeading1&&y<=Z.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;f.push(Ae.define({id:y,name:m,props:Q&&[[N.group,Q]]})),k&&(d||(d={}),Array.isArray(k)||k instanceof Qt?d[m]=k:Object.assign(d,k))}r=new qr(f),d&&(r=r.extend(Lr(d)))}if(Jr(t.props)&&(r=r.extend(...t.props)),Jr(t.remove))for(let f of t.remove){let d=this.blockNames.indexOf(f),p=this.inlineNames.indexOf(f);d>-1&&(s[d]=o[d]=void 0),p>-1&&(a[p]=void 0)}if(Jr(t.parseBlock))for(let f of t.parseBlock){let d=l.indexOf(f.name);if(d>-1)s[d]=f.parse,o[d]=f.leaf;else{let p=f.before?gs(l,f.before):f.after?gs(l,f.after)+1:l.length-1;s.splice(p,0,f.parse),o.splice(p,0,f.leaf),l.splice(p,0,f.name)}f.endLeaf&&h.push(f.endLeaf)}if(Jr(t.parseInline))for(let f of t.parseInline){let d=c.indexOf(f.name);if(d>-1)a[d]=f.parse;else{let p=f.before?gs(c,f.before):f.after?gs(c,f.after)+1:c.length-1;a.splice(p,0,f.parse),c.splice(p,0,f.name)}}return t.wrap&&(u=u.concat(t.wrap)),new $o(r,s,o,l,h,i,a,c,u)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let r=new hk(this,e,t);e:for(let i=t;i<r.end;){let s=r.char(i);for(let o of this.inlineParsers)if(o){let l=o(r,s,i);if(l>=0){i=l;continue e}}i++}return r.resolveMarkers(0)}}function Jr(n){return n!=null&&n.length>0}function ga(n){if(!Array.isArray(n))return n;if(n.length==0)return null;let e=ga(n[0]);if(n.length==1)return e;let t=ga(n.slice(1));if(!t||!e)return e||t;let r=(o,l)=>(o||Xr).concat(l||Xr),i=e.wrap,s=t.wrap;return{props:r(e.props,t.props),defineNodes:r(e.defineNodes,t.defineNodes),parseBlock:r(e.parseBlock,t.parseBlock),parseInline:r(e.parseInline,t.parseInline),remove:r(e.remove,t.remove),wrap:i?s?(o,l,a,c)=>i(s(o,l,a,c),l,a,c):i:s}}function gs(n,e){let t=n.indexOf(e);if(t<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return t}let Dm=[Ae.none];for(let n=1,e;e=Z[n];n++)Dm[n]=Ae.define({id:n,name:e,props:n>=Z.Escape?[]:[[N.group,n in xm?["Block","BlockContext"]:["Block","LeafBlock"]]]});const Xr=[];class Rm{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,r,i=0){return this.content.push(e,t,r,4+i*4),this}writeElements(e,t=0){for(let r of e)r.writeTo(this,t);return this}finish(e,t){return ne.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}}let _i=class{constructor(e,t,r,i=Xr){this.type=e,this.from=t,this.to=r,this.children=i}writeTo(e,t){let r=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-r)}toTree(e){return new Rm(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class Zm{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Xr}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}}function oe(n,e,t,r){return new _i(n,e,t,r)}const qm={resolve:"Emphasis",mark:"EmphasisMark"},Lm={resolve:"Emphasis",mark:"EmphasisMark"},Kr={},lu={};class $t{constructor(e,t,r,i){this.type=e,this.from=t,this.to=r,this.side=i}}const au="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Pi=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Pi=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const nl={Escape(n,e,t){if(e!=92||t==n.end-1)return-1;let r=n.char(t+1);for(let i=0;i<au.length;i++)if(au.charCodeAt(i)==r)return n.append(oe(Z.Escape,t,t+2));return-1},Entity(n,e,t){if(e!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(n.slice(t+1,t+31));return r?n.append(oe(Z.Entity,t,t+1+r[0].length)):-1},InlineCode(n,e,t){if(e!=96||t&&n.char(t-1)==96)return-1;let r=t+1;for(;r<n.end&&n.char(r)==96;)r++;let i=r-t,s=0;for(;r<n.end;r++)if(n.char(r)==96){if(s++,s==i&&n.char(r+1)!=96)return n.append(oe(Z.InlineCode,t,r+1,[oe(Z.CodeMark,t,t+i),oe(Z.CodeMark,r+1-i,r+1)]))}else s=0;return-1},HTMLTag(n,e,t){if(e!=60||t==n.end-1)return-1;let r=n.slice(t+1,n.end),i=/^(?:[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(i)return n.append(oe(Z.URL,t,t+1+i[0].length));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(s)return n.append(oe(Z.Comment,t,t+1+s[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return n.append(oe(Z.ProcessingInstruction,t,t+1+o[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return l?n.append(oe(Z.HTMLTag,t,t+1+l[0].length)):-1},Emphasis(n,e,t){if(e!=95&&e!=42)return-1;let r=t+1;for(;n.char(r)==e;)r++;let i=n.slice(t-1,t),s=n.slice(r,r+1),o=Pi.test(i),l=Pi.test(s),a=/\s|^$/.test(i),c=/\s|^$/.test(s),h=!c&&(!l||a||o),u=!a&&(!o||c||l),f=h&&(e==42||!u||o),d=u&&(e==42||!h||l);return n.append(new $t(e==95?qm:Lm,t,r,(f?1:0)|(d?2:0)))},HardBreak(n,e,t){if(e==92&&n.char(t+1)==10)return n.append(oe(Z.HardBreak,t,t+2));if(e==32){let r=t+1;for(;n.char(r)==32;)r++;if(n.char(r)==10&&r>=t+2)return n.append(oe(Z.HardBreak,t,r+1))}return-1},Link(n,e,t){return e==91?n.append(new $t(Kr,t,t+1,1)):-1},Image(n,e,t){return e==33&&n.char(t+1)==91?n.append(new $t(lu,t,t+2,1)):-1},LinkEnd(n,e,t){if(e!=93)return-1;for(let r=n.parts.length-1;r>=0;r--){let i=n.parts[r];if(i instanceof $t&&(i.type==Kr||i.type==lu)){if(!i.side||n.skipSpace(i.to)==t&&!/[(\[]/.test(n.slice(t+1,t+2)))return n.parts[r]=null,-1;let s=n.takeContent(r),o=n.parts[r]=ck(n,s,i.type==Kr?Z.Link:Z.Image,i.from,t+1);if(i.type==Kr)for(let l=0;l<r;l++){let a=n.parts[l];a instanceof $t&&a.type==Kr&&(a.side=0)}return o.to}}return-1}};function ck(n,e,t,r,i){let{text:s}=n,o=n.char(i),l=i;if(e.unshift(oe(Z.LinkMark,r,r+(t==Z.Image?2:1))),e.push(oe(Z.LinkMark,i-1,i)),o==40){let a=n.skipSpace(i+1),c=Vm(s,a-n.offset,n.offset),h;c&&(a=n.skipSpace(c.to),h=Im(s,a-n.offset,n.offset),h&&(a=n.skipSpace(h.to))),n.char(a)==41&&(e.push(oe(Z.LinkMark,i,i+1)),l=a+1,c&&e.push(c),h&&e.push(h),e.push(oe(Z.LinkMark,a,l)))}else if(o==91){let a=Mm(s,i-n.offset,n.offset,!1);a&&(e.push(a),l=a.to)}return oe(t,r,l,e)}function Vm(n,e,t){if(n.charCodeAt(e)==60){for(let i=e+1;i<n.length;i++){let s=n.charCodeAt(i);if(s==62)return oe(Z.URL,e+t,i+1+t);if(s==60||s==10)return!1}return null}else{let i=0,s=e;for(let o=!1;s<n.length;s++){let l=n.charCodeAt(s);if(gt(l))break;if(o)o=!1;else if(l==40)i++;else if(l==41){if(!i)break;i--}else l==92&&(o=!0)}return s>e?oe(Z.URL,e+t,s+t):s==n.length?null:!1}}function Im(n,e,t){let r=n.charCodeAt(e);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let s=e+1,o=!1;s<n.length;s++){let l=n.charCodeAt(s);if(o)o=!1;else{if(l==i)return oe(Z.LinkTitle,e+t,s+1+t);l==92&&(o=!0)}}return null}function Mm(n,e,t,r){for(let i=!1,s=e+1,o=Math.min(n.length,s+999);s<o;s++){let l=n.charCodeAt(s);if(i)i=!1;else{if(l==93)return r?!1:oe(Z.LinkLabel,e+t,s+1+t);if(r&&!gt(l)&&(r=!1),l==91)return!1;l==92&&(i=!0)}}return null}class hk{constructor(e,t,r){this.parser=e,this.text=t,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,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,r,i,s){return this.append(new $t(e,t,r,(i?1:0)|(s?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let r=e;r<this.parts.length;r++){let i=this.parts[r];if(!(i instanceof $t&&i.type.resolve&&i.side&2))continue;let s=i.type==qm||i.type==Lm,o=i.to-i.from,l,a=r-1;for(;a>=e;a--){let m=this.parts[a];if(m instanceof $t&&m.side&1&&m.type==i.type&&!(s&&(i.side&1||m.side&2)&&(m.to-m.from+o)%3==0&&((m.to-m.from)%3||o%3))){l=m;break}}if(!l)continue;let c=i.type.resolve,h=[],u=l.from,f=i.to;if(s){let m=Math.min(2,l.to-l.from,o);u=l.to-m,f=i.from+m,c=m==1?"Emphasis":"StrongEmphasis"}l.type.mark&&h.push(this.elt(l.type.mark,u,l.to));for(let m=a+1;m<r;m++)this.parts[m]instanceof _i&&h.push(this.parts[m]),this.parts[m]=null;i.type.mark&&h.push(this.elt(i.type.mark,i.from,f));let d=this.elt(c,u,f,h);this.parts[a]=s&&l.from!=u?new $t(l.type,l.from,u,l.side):null,(this.parts[r]=s&&i.to!=f?new $t(i.type,f,i.to,i.side):null)?this.parts.splice(r,0,d):this.parts[r]=d}let t=[];for(let r=e;r<this.parts.length;r++){let i=this.parts[r];i instanceof _i&&t.push(i)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let r=this.parts[t];if(r instanceof $t&&r.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return di(this.text,e-this.offset)+this.offset}elt(e,t,r,i){return typeof e=="string"?oe(this.parser.getNodeType(e),t,r,i):new Zm(e,t)}}function ba(n,e){if(!e.length)return n;if(!n.length)return e;let t=n.slice(),r=0;for(let i of e){for(;r<t.length&&t[r].to<i.to;)r++;if(r<t.length&&t[r].from<i.from){let s=t[r];s instanceof _i&&(t[r]=new _i(s.type,s.from,s.to,ba(s.children,[i])))}else t.splice(r++,0,i)}return t}const uk=[Z.CodeBlock,Z.ListItem,Z.OrderedList,Z.BulletList];let fk=class{constructor(e,t){this.fragments=e,this.input=t,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,t){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 s=this.fragment.to;for(;s>0&&this.input.read(s-1,s)!=`
`;)s--;this.fragmentEnd=s?s-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=e+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=t;if(!r.childAfter(i))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(N.contextHash)==e}takeNodes(e){let t=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,o=s,l=e.block.children.length,a=o,c=l;for(;;){if(t.to-r>i){if(t.type.isAnonymous&&t.firstChild())continue;break}if(e.dontInject.add(t.tree),e.addNode(t.tree,t.from-r),t.type.is("Block")&&(uk.indexOf(t.type.id)<0?(o=t.to-r,l=e.block.children.length):(o=a,l=c,a=t.to-r,c=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>l;)e.block.children.pop(),e.block.positions.pop();return o-s}};const dk=Lr({"Blockquote/...":g.quote,HorizontalRule:g.contentSeparator,"ATXHeading1/... SetextHeading1/...":g.heading1,"ATXHeading2/... SetextHeading2/...":g.heading2,"ATXHeading3/...":g.heading3,"ATXHeading4/...":g.heading4,"ATXHeading5/...":g.heading5,"ATXHeading6/...":g.heading6,"Comment CommentBlock":g.comment,Escape:g.escape,Entity:g.character,"Emphasis/...":g.emphasis,"StrongEmphasis/...":g.strong,"Link/... Image/...":g.link,"OrderedList/... BulletList/...":g.list,"BlockQuote/...":g.quote,"InlineCode CodeText":g.monospace,URL:g.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":g.processingInstruction,"CodeInfo LinkLabel":g.labelName,LinkTitle:g.string,Paragraph:g.content}),pk=new $o(new qr(Dm).extend(dk),Object.keys(Os).map(n=>Os[n]),Object.keys(Os).map(n=>sk[n]),Object.keys(Os),ok,xm,Object.keys(nl).map(n=>nl[n]),Object.keys(nl),[]);function mk(n,e,t){let r=[];for(let i=n.firstChild,s=e;;i=i.nextSibling){let o=i?i.from:t;if(o>s&&r.push({from:s,to:o}),!i)break;s=i.to}return r}function Ok(n){let{codeParser:e,htmlParser:t}=n;return{wrap:$p((i,s)=>{let o=i.type.id;if(e&&(o==Z.CodeBlock||o==Z.FencedCode)){let l="";if(o==Z.FencedCode){let c=i.node.getChild(Z.CodeInfo);c&&(l=s.read(c.from,c.to))}let a=e(l);if(a)return{parser:a,overlay:c=>c.type.id==Z.CodeText}}else if(t&&(o==Z.HTMLBlock||o==Z.HTMLTag))return{parser:t,overlay:mk(i.node,i.from,i.to)};return null})}}const gk={resolve:"Strikethrough",mark:"StrikethroughMark"},bk={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":g.strikethrough}},{name:"StrikethroughMark",style:g.processingInstruction}],parseInline:[{name:"Strikethrough",parse(n,e,t){if(e!=126||n.char(t+1)!=126||n.char(t+2)==126)return-1;let r=n.slice(t-1,t),i=n.slice(t+2,t+3),s=/\s|^$/.test(r),o=/\s|^$/.test(i),l=Pi.test(r),a=Pi.test(i);return n.addDelimiter(gk,t,t+2,!o&&(!a||s||l),!s&&(!l||o||a))},after:"Emphasis"}]};function pi(n,e,t=0,r,i=0){let s=0,o=!0,l=-1,a=-1,c=!1,h=()=>{r.push(n.elt("TableCell",i+l,i+a,n.parser.parseInline(e.slice(l,a),i+l)))};for(let u=t;u<e.length;u++){let f=e.charCodeAt(u);f==124&&!c?((!o||l>-1)&&s++,o=!1,r&&(l>-1&&h(),r.push(n.elt("TableDelimiter",u+i,u+i+1))),l=a=-1):(c||f!=32&&f!=9)&&(l<0&&(l=u),a=u+1),c=!c&&f==92}return l>-1&&(s++,r&&h()),s}function cu(n,e){for(let t=e;t<n.length;t++){let r=n.charCodeAt(t);if(r==124)return!0;r==92&&t++}return!1}const zm=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class hu{constructor(){this.rows=null}nextLine(e,t,r){if(this.rows==null){this.rows=!1;let i;if((t.next==45||t.next==58||t.next==124)&&zm.test(i=t.text.slice(t.pos))){let s=[];pi(e,r.content,0,s,r.start)==pi(e,i,t.pos)&&(this.rows=[e.elt("TableHeader",r.start,r.start+r.content.length,s),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let i=[];pi(e,t.text,t.pos,i,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,i))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows)),!0):!1}}const vk={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":g.heading}},"TableRow",{name:"TableCell",style:g.content},{name:"TableDelimiter",style:g.processingInstruction}],parseBlock:[{name:"Table",leaf(n,e){return cu(e.content,0)?new hu:null},endLeaf(n,e,t){if(t.parsers.some(i=>i instanceof hu)||!cu(e.text,e.basePos))return!1;let r=n.scanLine(n.absoluteLineEnd+1).text;return zm.test(r)&&pi(n,e.text,e.basePos)==pi(n,r,e.basePos)},before:"SetextHeading"}]};class Sk{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const kk={defineNodes:[{name:"Task",block:!0,style:g.list},{name:"TaskMarker",style:g.atom}],parseBlock:[{name:"TaskList",leaf(n,e){return/^\[[ xX]\]/.test(e.content)&&n.parentType().name=="ListItem"?new Sk:null},after:"SetextHeading"}]},yk=[vk,kk,bk];function Um(n,e,t){return(r,i,s)=>{if(i!=n||r.char(s+1)==n)return-1;let o=[r.elt(t,s,s+1)];for(let l=s+1;l<r.end;l++){let a=r.char(l);if(a==n)return r.addElement(r.elt(e,s,l+1,o.concat(r.elt(t,l,l+1))));if(a==92&&o.push(r.elt("Escape",l,l+++2)),gt(a))break}return-1}}const wk={defineNodes:[{name:"Superscript",style:g.special(g.content)},{name:"SuperscriptMark",style:g.processingInstruction}],parseInline:[{name:"Superscript",parse:Um(94,"Superscript","SuperscriptMark")}]},xk={defineNodes:[{name:"Subscript",style:g.special(g.content)},{name:"SubscriptMark",style:g.processingInstruction}],parseInline:[{name:"Subscript",parse:Um(126,"Subscript","SubscriptMark")}]},Qk={defineNodes:[{name:"Emoji",style:g.character}],parseInline:[{name:"Emoji",parse(n,e,t){let r;return e!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(n.slice(t+1,n.end)))?-1:n.addElement(n.elt("Emoji",t,t+1+r[0].length))}}]};let $k=class va{constructor(e,t,r,i,s,o,l,a,c,h=0,u){this.p=e,this.stack=t,this.state=r,this.reducePos=i,this.pos=s,this.score=o,this.buffer=l,this.bufferBase=a,this.curContext=c,this.lookAhead=h,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,r=0){let i=e.parser.context;return new va(e,[],t,r,r,0,[],0,i?new uu(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let r=e>>19,i=e&65535,{parser:s}=this.p,o=s.dynamicPrecedence(i);if(o&&(this.score+=o),r==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i<s.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(r-1)*3-(e&262144?6:0),a=l?this.stack[l-2]:this.p.ranges[0].from,c=this.reducePos-a;c>=2e3&&!(!((t=this.p.parser.nodeSet.types[i])===null||t===void 0)&&t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=c));let h=l?this.stack[l-1]:0,u=this.bufferBase+this.buffer.length-h;if(i<s.minRepeatTerm||e&131072){let f=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,f,u+4,!0)}if(e&262144)this.state=this.stack[l];else{let f=this.stack[l-3];this.state=s.getGoto(f,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,a)}storeNode(e,t,r,i=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,l=this.buffer.length;if(l==0&&o.parent&&(l=o.bufferBase-o.parent.bufferBase,o=o.parent),l>0&&o.buffer[l-4]==0&&o.buffer[l-1]>-1){if(t==r)return;if(o.buffer[l-2]>=t){o.buffer[l-2]=r;return}}}if(!s||this.pos==r)this.buffer.push(e,t,r,i);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0)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,i>4&&(i-=4);this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=r,this.buffer[o+3]=i}}shift(e,t,r){let i=this.pos;if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,r,4);else{let s=e,{parser:o}=this.p;(r>this.pos||t<=o.maxNode)&&(this.pos=r,o.stateFlag(s,1)||(this.reducePos=r)),this.pushState(s,i),this.shiftContext(t,i),t<=o.maxNode&&this.buffer.push(t,i,r,4)}}apply(e,t,r){e&65536?this.reduce(e):this.shift(e,t,r)}useNode(e,t){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(r,i,this.reducePos,-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,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let r=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new va(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,r?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new _k(this);;){let r=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(r==0)return!1;if(!(r&65536))return!0;t.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>4<<1||this.stack.length>=120){let i=[];for(let s=0,o;s<t.length;s+=2)(o=t[s+1])!=this.state&&this.p.parser.hasAction(o,e)&&i.push(t[s],o);if(this.stack.length<120)for(let s=0;i.length<4<<1&&s<t.length;s+=2){let o=t[s+1];i.some((l,a)=>a&1&&l==o)||i.push(t[s],o)}t=i}let r=[];for(let i=0;i<t.length&&r.length<4;i+=2){let s=t[i+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[i],this.pos),o.score-=200,r.push(o)}return r}forceReduce(){let e=this.p.parser.stateSlot(this.state,5);if(!(e&65536))return!1;let{parser:t}=this.p;if(!t.validAction(this.state,e)){let r=e>>19,i=e&65535,s=this.stack.length-r*3;if(s<0||t.getGoto(this.stack[s],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!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.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 t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.reducePos,this.reducePos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.reducePos,this.reducePos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new uu(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};class uu{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}var fu;(function(n){n[n.Insert=200]="Insert",n[n.Delete=190]="Delete",n[n.Reduce=100]="Reduce",n[n.MaxNext=4]="MaxNext",n[n.MaxInsertStackDepth=300]="MaxInsertStackDepth",n[n.DampenInsertStackDepth=120]="DampenInsertStackDepth",n[n.MinBigReduction=2e3]="MinBigReduction"})(fu||(fu={}));class _k{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=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 i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class to{constructor(e,t,r){this.stack=e,this.pos=t,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new to(e,t,t-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 to(this.stack,this.pos,this.index)}}function oi(n,e=Uint16Array){if(typeof n!="string")return n;let t=null;for(let r=0,i=0;r<n.length;){let s=0;for(;;){let o=n.charCodeAt(r++),l=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let a=o-32;if(a>=46&&(a-=46,l=!0),s+=a,l)break;s*=46}t?t[i++]=s:t=new e(s)}return t}class Es{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const du=new Es;class Pk{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=du,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let r=this.range,i=this.rangeIndex,s=this.pos+e;for(;s<r.from;){if(!i)return null;let o=this.ranges[--i];s-=r.from-o.to,r=o}for(;t<0?s>r.to:s>=r.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];s+=o.from-r.to,r=o}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,r,i;if(t>=0&&t<this.chunk.length)r=this.pos+e,i=this.chunk.charCodeAt(t);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(r=s,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,l=this.range;for(;l.to<=r;)l=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(e,t=0){let r=t?this.resolveOffset(t,-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}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>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,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=du,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,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let r="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(r+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return r}}class mr{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:r}=t.p;Bm(this.data,e,t,this.id,r.data,r.tokenPrecTable)}}mr.prototype.contextual=mr.prototype.fallback=mr.prototype.extend=!1;class Sa{constructor(e,t,r){this.precTable=t,this.elseToken=r,this.data=typeof e=="string"?oi(e):e}token(e,t){let r=e.pos,i=0;for(;Bm(this.data,e,t,0,this.data,this.precTable),!(e.token.value>-1);){if(this.elseToken==null)return;if(e.next<0)break;e.advance(),e.reset(e.pos,e.token),i++}i&&(e.reset(r,e.token),e.acceptToken(this.elseToken,i))}}Sa.prototype.contextual=mr.prototype.fallback=mr.prototype.extend=!1;class Ft{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function Bm(n,e,t,r,i,s){let o=0,l=1<<r,{dialect:a}=t.p.parser;e:for(;l&n[o];){let c=n[o+1];for(let d=o+3;d<c;d+=2)if((n[d+1]&l)>0){let p=n[d];if(a.allows(p)&&(e.token.value==-1||e.token.value==p||Ck(p,e.token.value,i,s))){e.acceptToken(p);break}}let h=e.next,u=0,f=n[o+2];if(e.next<0&&f>u&&n[c+f*3-3]==65535&&n[c+f*3-3]==65535){o=n[c+f*3-1];continue e}for(;u<f;){let d=u+f>>1,p=c+d+(d<<1),m=n[p],O=n[p+1]||65536;if(h<m)f=d;else if(h>=O)u=d+1;else{o=n[p+2],e.advance();continue e}}break}}function pu(n,e,t){for(let r=e,i;(i=n[r])!=65535;r++)if(i==t)return r-e;return-1}function Ck(n,e,t,r){let i=pu(t,r,e);return i<0||pu(t,r,n)<i}const vt=typeof process<"u"&&process.env&&/\bparse\b/.test({}.LOG);let rl=null;var mu;(function(n){n[n.Margin=25]="Margin"})(mu||(mu={}));function Ou(n,e,t){let r=n.cursor(ge.IncludeAnonymous);for(r.moveTo(e);;)if(!(t<0?r.childBefore(e):r.childAfter(e)))for(;;){if((t<0?r.to<e:r.from>e)&&!r.type.isError)return t<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(n.length,Math.max(r.from+1,e+25));if(t<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return t<0?0:n.length}}class Ak{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Ou(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Ou(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 t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let r=this.trees[t],i=this.index[t];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=r.children[i],o=this.start[t]+r.positions[i];if(o>e)return this.nextStart=o,null;if(s instanceof ne){if(o==e){if(o<this.safeFrom)return null;let l=o+s.length;if(l<=this.safeTo){let a=s.prop(N.lookAhead);if(!a||l+a<this.fragment.to)return s}}this.index[t]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+s.length}}}class Tk{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new Es)}getActions(e){let t=0,r=null,{parser:i}=e.p,{tokenizers:s}=i,o=i.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let c=0;c<s.length;c++){if(!(1<<c&o))continue;let h=s[c],u=this.tokens[c];if(!(r&&!h.fallback)&&((h.contextual||u.start!=e.pos||u.mask!=o||u.context!=l)&&(this.updateCachedToken(u,h,e),u.mask=o,u.context=l),u.lookAhead>u.end+25&&(a=Math.max(u.lookAhead,a)),u.value!=0)){let f=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!h.extend&&(r=u,t>f))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),!r&&e.pos==this.stream.end&&(r=new Es,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,t=this.addActions(e,r.value,r.end,t)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Es,{pos:r,p:i}=e;return t.start=r,t.end=Math.min(r+1,i.stream.end),t.value=r==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,r){let i=this.stream.clipPos(r.pos);if(t.token(this.stream.reset(i,e),r),e.value>-1){let{parser:s}=r.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==e.value){let l=s.specializers[o](this.stream.read(e.start,e.end),r);if(l>=0&&r.p.parser.dialect.allows(l>>1)){l&1?e.extended=l>>1:e.value=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,r,i){for(let s=0;s<i;s+=3)if(this.actions[s]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=r,i}addActions(e,t,r,i){let{state:s}=e,{parser:o}=e.p,{data:l}=o;for(let a=0;a<2;a++)for(let c=o.stateSlot(s,a?2:1);;c+=3){if(l[c]==65535)if(l[c+1]==1)c=Kt(l,c+2);else{i==0&&l[c+1]==2&&(i=this.putAction(Kt(l,c+2),t,r,i));break}l[c]==t&&(i=this.putAction(Kt(l,c+1),t,r,i))}return i}}var gu;(function(n){n[n.Distance=5]="Distance",n[n.MaxRemainingPerStep=3]="MaxRemainingPerStep",n[n.MinBufferLengthPrune=500]="MinBufferLengthPrune",n[n.ForceReduceLimit=10]="ForceReduceLimit",n[n.CutDepth=15e3]="CutDepth",n[n.CutTo=9e3]="CutTo",n[n.MaxLeftAssociativeReductionCount=300]="MaxLeftAssociativeReductionCount",n[n.MaxStackCount=12]="MaxStackCount"})(gu||(gu={}));class Ek{constructor(e,t,r,i){this.parser=e,this.input=t,this.ranges=i,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 Pk(t,i),this.tokens=new Tk(e,this.stream),this.topTerm=e.top[1];let{from:s}=i[0];this.stacks=[$k.start(this,e.top[0],s)],this.fragments=r.length&&this.stream.end-s>e.bufferLength*4?new Ak(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,r=this.stacks=[],i,s;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 l=e[o];for(;;){if(this.tokens.mainToken=null,l.pos>t)r.push(l);else{if(this.advanceStack(l,r,e))continue;{i||(i=[],s=[]),i.push(l);let a=this.tokens.getMainToken(l);s.push(a.value,a.end)}}break}}if(!r.length){let o=i&&Dk(i);if(o)return this.stackToTree(o);if(this.parser.strict)throw vt&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,s,r);if(o)return this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((l,a)=>a.score-l.score);r.length>o;)r.pop();r.some(l=>l.reducePos>t)&&this.recovering--}else if(r.length>1){e:for(let o=0;o<r.length-1;o++){let l=r[o];for(let a=o+1;a<r.length;a++){let c=r[a];if(l.sameState(c)||l.buffer.length>500&&c.buffer.length>500)if((l.score-c.score||l.buffer.length-c.buffer.length)>0)r.splice(a--,1);else{r.splice(o--,1);continue e}}}r.length>12&&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}advanceStack(e,t,r){let i=e.pos,{parser:s}=this,o=vt?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,h=c?e.curContext.hash:0;for(let u=this.fragments.nodeAt(i);u;){let f=this.parser.nodeSet.types[u.type.id]==u.type?s.getGoto(e.state,u.type.id):-1;if(f>-1&&u.length&&(!c||(u.prop(N.contextHash)||0)==h))return e.useNode(u,f),vt&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(u.type.id)})`),!0;if(!(u instanceof ne)||u.children.length==0||u.positions[0]>0)break;let d=u.children[0];if(d instanceof ne&&u.positions[0]==0)u=d;else break}}let l=s.stateSlot(e.state,4);if(l>0)return e.reduce(l),vt&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(l&65535)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let c=0;c<a.length;){let h=a[c++],u=a[c++],f=a[c++],d=c==a.length||!r,p=d?e:e.split();if(p.apply(h,u,f),vt&&console.log(o+this.stackID(p)+` (via ${h&65536?`reduce of ${s.getName(h&65535)}`:"shift"} for ${s.getName(u)} @ ${i}${p==e?"":", split"})`),d)return!0;p.pos>i?t.push(p):r.push(p)}return!1}advanceFully(e,t){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return bu(e,t),!0}}runRecovery(e,t,r){let i=null,s=!1;for(let o=0;o<e.length;o++){let l=e[o],a=t[o<<1],c=t[(o<<1)+1],h=vt?this.stackID(l)+" -> ":"";if(l.deadEnd&&(s||(s=!0,l.restart(),vt&&console.log(h+this.stackID(l)+" (restarted)"),this.advanceFully(l,r))))continue;let u=l.split(),f=h;for(let d=0;u.forceReduce()&&d<10&&(vt&&console.log(f+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,r));d++)vt&&(f=this.stackID(u)+" -> ");for(let d of l.recoverByInsert(a))vt&&console.log(h+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,r);this.stream.end>l.pos?(c==l.pos&&(c++,a=0),l.recoverByDelete(a,c),vt&&console.log(h+this.stackID(l)+` (via recover-delete ${this.parser.getName(a)})`),bu(l,r)):(!i||i.score<l.score)&&(i=l)}return i}stackToTree(e){return e.close(),ne.build({buffer:to.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 t=(rl||(rl=new WeakMap)).get(e);return t||rl.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function bu(n,e){for(let t=0;t<e.length;t++){let r=e[t];if(r.pos==n.pos&&r.sameState(n)){e[t].score<n.score&&(e[t]=n);return}}e.push(n)}class Xk{constructor(e,t,r){this.source=e,this.flags=t,this.disabled=r}allows(e){return!this.disabled||this.disabled[e]==0}}const il=n=>n;class Wm{constructor(e){this.start=e.start,this.shift=e.shift||il,this.reduce=e.reduce||il,this.reuse=e.reuse||il,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Dr extends go{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;l<e.repeatNodeCount;l++)t.push("");let r=Object.keys(e.topRules).map(l=>e.topRules[l][1]),i=[];for(let l=0;l<t.length;l++)i.push([]);function s(l,a,c){i[l].push([a,a.deserialize(String(c))])}if(e.nodeProps)for(let l of e.nodeProps){let a=l[0];typeof a=="string"&&(a=N[a]);for(let c=1;c<l.length;){let h=l[c++];if(h>=0)s(h,a,l[c++]);else{let u=l[c+-h];for(let f=-h;f>0;f--)s(l[c++],a,u);c++}}}this.nodeSet=new qr(t.map((l,a)=>Ae.define({name:a>=this.minRepeatTerm?void 0:l,id:a,props:i[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=yp;let o=oi(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(vu),this.states=oi(e.states,Uint32Array),this.data=oi(e.stateData),this.goto=oi(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new mr(o,l):l),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,t,r){let i=new Ek(this,e,t,r);for(let s of this.wrappers)i=s(i,e,t,r);return i}getGoto(e,t,r=!1){let i=this.goto;if(t>=i[0])return-1;for(let s=i[t+1];;){let o=i[s++],l=o&1,a=i[s++];if(l&&r)return a;for(let c=s+(o>>1);s<c;s++)if(i[s]==e)return a;if(l)return-1}}hasAction(e,t){let r=this.data;for(let i=0;i<2;i++)for(let s=this.stateSlot(e,i?2:1),o;;s+=3){if((o=r[s])==65535)if(r[s+1]==1)o=r[s=Kt(r,s+2)];else{if(r[s+1]==2)return Kt(r,s+2);break}if(o==t||o==0)return Kt(r,s+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){if(t==this.stateSlot(e,4))return!0;for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Kt(this.data,r+2);else return!1;if(t==Kt(this.data,r+1))return!0}}nextStates(e){let t=[];for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Kt(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];t.some((s,o)=>o&1&&s==i)||t.push(this.data[r],i)}}return t}configure(e){let t=Object.assign(Object.create(Dr.prototype),this);if(e.props&&(t.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}`);t.top=r}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(r=>{let i=e.tokenizers.find(s=>s.from==r);return i?i.to:r})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((r,i)=>{let s=e.specializers.find(l=>l.from==r.external);if(!s)return r;let o=Object.assign(Object.assign({},r),{external:s.to});return t.specializers[i]=vu(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}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 t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),r=t.map(()=>!1);if(e)for(let s of e.split(" ")){let o=t.indexOf(s);o>=0&&(r[o]=!0)}let i=null;for(let s=0;s<t.length;s++)if(!r[s])for(let o=this.dialects[t[s]],l;(l=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[l]=1;return new Xk(e,r,i)}static deserialize(e){return new Dr(e)}}function Kt(n,e){return n[e]|n[e+1]<<16}function Dk(n){let e=null;for(let t of n){let r=t.p.stoppedAt;(t.pos==t.p.stream.end||r!=null&&t.pos>r)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function vu(n){if(n.external){let e=n.extend?1:0;return(t,r)=>n.external(t,r)<<1|e}return n.get}const Rk=54,Zk=1,qk=55,Lk=2,Vk=56,Ik=3,Su=4,Mk=5,no=6,Ym=7,jm=8,Nm=9,Fm=10,zk=11,Uk=12,Bk=13,sl=57,Wk=14,ku=58,Gm=20,Yk=22,Hm=23,jk=24,ka=26,Jm=27,Nk=28,Fk=31,Gk=34,Hk=36,Jk=37,Kk=0,e1=1,t1={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},n1={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},yu={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 r1(n){return n==45||n==46||n==58||n>=65&&n<=90||n==95||n>=97&&n<=122||n>=161}function Km(n){return n==9||n==10||n==13||n==32}let wu=null,xu=null,Qu=0;function ya(n,e){let t=n.pos+e;if(Qu==t&&xu==n)return wu;let r=n.peek(e);for(;Km(r);)r=n.peek(++e);let i="";for(;r1(r);)i+=String.fromCharCode(r),r=n.peek(++e);return xu=n,Qu=t,wu=i?i.toLowerCase():r==i1||r==s1?void 0:null}const eO=60,ro=62,uc=47,i1=63,s1=33,o1=45;function $u(n,e){this.name=n,this.parent=e,this.hash=e?e.hash:0;for(let t=0;t<n.length;t++)this.hash+=(this.hash<<4)+n.charCodeAt(t)+(n.charCodeAt(t)<<8)}const l1=[no,Fm,Ym,jm,Nm],a1=new Wm({start:null,shift(n,e,t,r){return l1.indexOf(e)>-1?new $u(ya(r,1)||"",n):n},reduce(n,e){return e==Gm&&n?n.parent:n},reuse(n,e,t,r){let i=e.type.id;return i==no||i==Hk?new $u(ya(r,1)||"",n):n},hash(n){return n?n.hash:0},strict:!1}),c1=new Ft((n,e)=>{if(n.next!=eO){n.next<0&&e.context&&n.acceptToken(sl);return}n.advance();let t=n.next==uc;t&&n.advance();let r=ya(n,0);if(r===void 0)return;if(!r)return n.acceptToken(t?Wk:no);let i=e.context?e.context.name:null;if(t){if(r==i)return n.acceptToken(zk);if(i&&n1[i])return n.acceptToken(sl,-2);if(e.dialectEnabled(Kk))return n.acceptToken(Uk);for(let s=e.context;s;s=s.parent)if(s.name==r)return;n.acceptToken(Bk)}else{if(r=="script")return n.acceptToken(Ym);if(r=="style")return n.acceptToken(jm);if(r=="textarea")return n.acceptToken(Nm);if(t1.hasOwnProperty(r))return n.acceptToken(Fm);i&&yu[i]&&yu[i][r]?n.acceptToken(sl,-1):n.acceptToken(no)}},{contextual:!0}),h1=new Ft(n=>{for(let e=0,t=0;;t++){if(n.next<0){t&&n.acceptToken(ku);break}if(n.next==o1)e++;else if(n.next==ro&&e>=2){t>3&&n.acceptToken(ku,-2);break}else e=0;n.advance()}});function u1(n){for(;n;n=n.parent)if(n.name=="svg"||n.name=="math")return!0;return!1}const f1=new Ft((n,e)=>{if(n.next==uc&&n.peek(1)==ro){let t=e.dialectEnabled(e1)||u1(e.context);n.acceptToken(t?Mk:Su,2)}else n.next==ro&&n.acceptToken(Su,1)});function fc(n,e,t){let r=2+n.length;return new Ft(i=>{for(let s=0,o=0,l=0;;l++){if(i.next<0){l&&i.acceptToken(e);break}if(s==0&&i.next==eO||s==1&&i.next==uc||s>=2&&s<r&&i.next==n.charCodeAt(s-2))s++,o++;else if((s==2||s==r)&&Km(i.next))o++;else if(s==r&&i.next==ro){l>o?i.acceptToken(e,-o):i.acceptToken(t,-(o-2));break}else if((i.next==10||i.next==13)&&l){i.acceptToken(e,1);break}else s=o=0;i.advance()}})}const d1=fc("script",Rk,Zk),p1=fc("style",qk,Lk),m1=fc("textarea",Vk,Ik),O1=Lr({"Text RawText":g.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":g.angleBracket,TagName:g.tagName,"MismatchedCloseTag/TagName":[g.tagName,g.invalid],AttributeName:g.attributeName,"AttributeValue UnquotedAttributeValue":g.attributeValue,Is:g.definitionOperator,"EntityReference CharacterReference":g.character,Comment:g.blockComment,ProcessingInst:g.processingInstruction,DoctypeDecl:g.documentMeta}),g1=Dr.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sO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!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!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 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:67,context:a1,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28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y<%lO)ea!LsP;=`<%l!Jv!R!L}Y!a`!cpOr!G_rs!HUsv!G_vw!Hpwx!Jvx!`!G_!`!a!Mm!a;'S!G_;'S;=`!N]<%lO!G_!R!MvV!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!N`P;=`<%l!G_T!NhbhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!a!Hp!a!b# p!b#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT# ubhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!`!Hp!`!a!If!a#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT##QP;=`<%l!Nc!V##^chS!a`!cpOq!G_qr!Eyrs!HUsv!Eyvw!Ncwx!Jvx!P!Ey!P!Q!G_!Q!_!Ey!_!`!G_!`!a!Mm!a#s!Ey#s$f!G_$f;'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!V#$lP;=`<%l!Ey!V#$zXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[d1,p1,m1,f1,c1,h1,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function tO(n,e){let t=Object.create(null);for(let r of n.getChildren(Hm)){let i=r.getChild(jk),s=r.getChild(ka)||r.getChild(Jm);i&&(t[e.read(i.from,i.to)]=s?s.type.id==ka?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return t}function _u(n,e){let t=n.getChild(Yk);return t?e.read(t.from,t.to):" "}function ol(n,e,t){let r;for(let i of t)if(!i.attrs||i.attrs(r||(r=tO(n.node.parent.firstChild,e))))return{parser:i.parser};return null}function nO(n=[],e=[]){let t=[],r=[],i=[],s=[];for(let l of n)(l.tag=="script"?t:l.tag=="style"?r:l.tag=="textarea"?i:s).push(l);let o=e.length?Object.create(null):null;for(let l of e)(o[l.name]||(o[l.name]=[])).push(l);return $p((l,a)=>{let c=l.type.id;if(c==Nk)return ol(l,a,t);if(c==Fk)return ol(l,a,r);if(c==Gk)return ol(l,a,i);if(c==Gm&&s.length){let h=l.node,u=h.firstChild,f=u&&_u(u,a),d;if(f){for(let p of s)if(p.tag==f&&(!p.attrs||p.attrs(d||(d=tO(h,a))))){let m=h.lastChild;return{parser:p.parser,overlay:[{from:u.to,to:m.type.id==Jk?m.from:h.to}]}}}}if(o&&c==Hm){let h=l.node,u;if(u=h.firstChild){let f=o[a.read(u.from,u.to)];if(f)for(let d of f){if(d.tagName&&d.tagName!=_u(h.parent,a))continue;let p=h.lastChild;if(p.type.id==ka){let m=p.from+1,O=p.lastChild,b=p.to-(O&&O.isError?0:1);if(b>m)return{parser:d.parser,overlay:[{from:m,to:b}]}}else if(p.type.id==Jm)return{parser:d.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const b1=94,Pu=1,v1=95,S1=96,Cu=2,rO=[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],k1=58,y1=40,iO=95,w1=91,Xs=45,x1=46,Q1=35,$1=37;function io(n){return n>=65&&n<=90||n>=97&&n<=122||n>=161}function _1(n){return n>=48&&n<=57}const P1=new Ft((n,e)=>{for(let t=!1,r=0,i=0;;i++){let{next:s}=n;if(io(s)||s==Xs||s==iO||t&&_1(s))!t&&(s!=Xs||i>0)&&(t=!0),r===i&&s==Xs&&r++,n.advance();else{t&&n.acceptToken(s==y1?v1:r==2&&e.canShift(Cu)?Cu:S1);break}}}),C1=new Ft(n=>{if(rO.includes(n.peek(-1))){let{next:e}=n;(io(e)||e==iO||e==Q1||e==x1||e==w1||e==k1||e==Xs)&&n.acceptToken(b1)}}),A1=new Ft(n=>{if(!rO.includes(n.peek(-1))){let{next:e}=n;if(e==$1&&(n.advance(),n.acceptToken(Pu)),io(e)){do n.advance();while(io(n.next));n.acceptToken(Pu)}}}),T1=Lr({"AtKeyword import charset namespace keyframes media supports":g.definitionKeyword,"from to selector":g.keyword,NamespaceName:g.namespace,KeyframeName:g.labelName,TagName:g.tagName,ClassName:g.className,PseudoClassName:g.constant(g.className),IdName:g.labelName,"FeatureName PropertyName":g.propertyName,AttributeName:g.attributeName,NumberLiteral:g.number,KeywordQuery:g.keyword,UnaryQueryOp:g.operatorKeyword,"CallTag ValueName":g.atom,VariableName:g.variableName,Callee:g.operatorKeyword,Unit:g.unit,"UniversalSelector NestingSelector":g.definitionOperator,MatchOp:g.compareOperator,"ChildOp SiblingOp, LogicOp":g.logicOperator,BinOp:g.arithmeticOperator,Important:g.modifier,Comment:g.blockComment,ParenthesizedContent:g.special(g.name),ColorLiteral:g.color,StringLiteral:g.string,":":g.punctuation,"PseudoOp #":g.derefOperator,"; ,":g.separator,"( )":g.paren,"[ ]":g.squareBracket,"{ }":g.brace}),E1={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},X1={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},D1={__proto__:null,not:128,only:128,from:158,to:160},R1=Dr.deserialize({version:14,states:"7WQYQ[OOO#_Q[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO#fQ[O'#CfO$YQXO'#CaO$aQ[O'#ChO$lQ[O'#DPO$qQ[O'#DTOOQP'#Ed'#EdO$vQdO'#DeO%bQ[O'#DrO$vQdO'#DtO%sQ[O'#DvO&OQ[O'#DyO&TQ[O'#EPO&cQ[O'#EROOQS'#Ec'#EcOOQS'#ET'#ETQYQ[OOO&jQXO'#CdO'_QWO'#DaO'dQWO'#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ClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent , PseudoClassName ArgList IdSelector # IdName ] AttributeSelector [ AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList from to SupportsStatement supports AtRule Styles",maxTerm:108,nodeProps:[["openedBy",17,"(",48,"{"],["closedBy",18,")",49,"}"]],propSources:[T1],skippedNodes:[0,3],repeatNodeCount:8,tokenData:"Lq~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Cu![!]Dp!]!^El!^!_$}!_!`E}!`!aF`!a!b$}!b!cG[!c!}$}!}#OHt#O#P$}#P#QIV#Q#R6d#R#T$}#T#UIh#U#c$}#c#dJy#d#o$}#o#pK`#p#q6d#q#rKq#r#sLS#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`Lk<%lO$}W%QSOy%^z;'S%^;'S;=`%o<%lO%^W%cSoWOy%^z;'S%^;'S;=`%o<%lO%^W%rP;=`<%l%^~%zh#U~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#U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%^;'S;=`%o<%lO%^_KvS!QVOy%^z;'S%^;'S;=`%o<%lO%^ZLXU!PPOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^WLnP;=`<%l$}",tokenizers:[C1,A1,P1,0,1,2,3],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:95,get:n=>E1[n]||-1},{term:56,get:n=>X1[n]||-1},{term:96,get:n=>D1[n]||-1}],tokenPrec:1123});let ll=null;function al(){if(!ll&&typeof document=="object"&&document.body){let{style:n}=document.body,e=[],t=new Set;for(let r in n)r!="cssText"&&r!="cssFloat"&&typeof n[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),t.has(r)||(e.push(r),t.add(r)));ll=e.sort().map(r=>({type:"property",label:r}))}return ll||[]}const Au=["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(n=>({type:"class",label:n})),Tu=["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(n=>({type:"keyword",label:n})).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(n=>({type:"constant",label:n}))),Z1=["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(n=>({type:"type",label:n})),mn=/^(\w[\w-]*|-\w[\w-]*|)$/,q1=/^-(-[\w-]*)?$/;function L1(n,e){var t;if((n.name=="("||n.type.isError)&&(n=n.parent||n),n.name!="ArgList")return!1;let r=(t=n.parent)===null||t===void 0?void 0:t.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:e.sliceString(r.from,r.to)=="var"}const Eu=new Qp,V1=["Declaration"];function I1(n){for(let e=n;;){if(e.type.isTop)return e;if(!(e=e.parent))return n}}function sO(n,e,t){if(e.to-e.from>4096){let r=Eu.get(e);if(r)return r;let i=[],s=new Set,o=e.cursor(ge.IncludeAnonymous);if(o.firstChild())do for(let l of sO(n,o.node,t))s.has(l.label)||(s.add(l.label),i.push(l));while(o.nextSibling());return Eu.set(e,i),i}else{let r=[],i=new Set;return e.cursor().iterate(s=>{var o;if(t(s)&&s.matchContext(V1)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let l=n.sliceString(s.from,s.to);i.has(l)||(i.add(l),r.push({label:l,type:"variable"}))}}),r}}const oO=n=>e=>{let{state:t,pos:r}=e,i=_e(t).resolveInner(r,-1),s=i.type.isError&&i.from==i.to-1&&t.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(s||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:al(),validFor:mn};if(i.name=="ValueName")return{from:i.from,options:Tu,validFor:mn};if(i.name=="PseudoClassName")return{from:i.from,options:Au,validFor:mn};if(n(i)||(e.explicit||s)&&L1(i,t.doc))return{from:n(i)||s?i.from:r,options:sO(t.doc,I1(i),n),validFor:q1};if(i.name=="TagName"){for(let{parent:a}=i;a;a=a.parent)if(a.name=="Block")return{from:i.from,options:al(),validFor:mn};return{from:i.from,options:Z1,validFor:mn}}if(!e.explicit)return null;let o=i.resolve(r),l=o.childBefore(r);return l&&l.name==":"&&o.name=="PseudoClassSelector"?{from:r,options:Au,validFor:mn}:l&&l.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:r,options:Tu,validFor:mn}:o.name=="Block"||o.name=="Styles"?{from:r,options:al(),validFor:mn}:null},lO=oO(n=>n.name=="VariableName"),Ci=Cr.define({name:"css",parser:R1.configure({props:[zi.add({Declaration:Ts()}),So.add({Block:Dp})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function aO(){return new Er(Ci,Ci.data.of({autocomplete:lO}))}const M1=Object.freeze(Object.defineProperty({__proto__:null,css:aO,cssCompletionSource:lO,cssLanguage:Ci,defineCSSCompletionSource:oO},Symbol.toStringTag,{value:"Module"})),Xu=302,Du=1,z1=2,Ru=303,U1=305,B1=306,W1=3,Y1=4,j1=[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],cO=125,N1=59,Zu=47,F1=42,G1=43,H1=45,J1=new Wm({start:!1,shift(n,e){return e==W1||e==Y1||e==U1?n:e==B1},strict:!1}),K1=new Ft((n,e)=>{let{next:t}=n;(t==cO||t==-1||e.context)&&e.canShift(Ru)&&n.acceptToken(Ru)},{contextual:!0,fallback:!0}),ey=new Ft((n,e)=>{let{next:t}=n,r;j1.indexOf(t)>-1||t==Zu&&((r=n.peek(1))==Zu||r==F1)||t!=cO&&t!=N1&&t!=-1&&!e.context&&e.canShift(Xu)&&n.acceptToken(Xu)},{contextual:!0}),ty=new Ft((n,e)=>{let{next:t}=n;if((t==G1||t==H1)&&(n.advance(),t==n.next)){n.advance();let r=!e.context&&e.canShift(Du);n.acceptToken(r?Du:z1)}},{contextual:!0}),ny=Lr({"get set async static":g.modifier,"for while do if else switch try catch finally return throw break continue default case":g.controlKeyword,"in of await yield void typeof delete instanceof":g.operatorKeyword,"let var const function class extends":g.definitionKeyword,"import export from":g.moduleKeyword,"with debugger as new":g.keyword,TemplateString:g.special(g.string),super:g.atom,BooleanLiteral:g.bool,this:g.self,null:g.null,Star:g.modifier,VariableName:g.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":g.function(g.variableName),VariableDefinition:g.definition(g.variableName),Label:g.labelName,PropertyName:g.propertyName,PrivatePropertyName:g.special(g.propertyName),"CallExpression/MemberExpression/PropertyName":g.function(g.propertyName),"FunctionDeclaration/VariableDefinition":g.function(g.definition(g.variableName)),"ClassDeclaration/VariableDefinition":g.definition(g.className),PropertyDefinition:g.definition(g.propertyName),PrivatePropertyDefinition:g.definition(g.special(g.propertyName)),UpdateOp:g.updateOperator,LineComment:g.lineComment,BlockComment:g.blockComment,Number:g.number,String:g.string,Escape:g.escape,ArithOp:g.arithmeticOperator,LogicOp:g.logicOperator,BitOp:g.bitwiseOperator,CompareOp:g.compareOperator,RegExp:g.regexp,Equals:g.definitionOperator,Arrow:g.function(g.punctuation),": Spread":g.punctuation,"( )":g.paren,"[ ]":g.squareBracket,"{ }":g.brace,"InterpolationStart InterpolationEnd":g.special(g.brace),".":g.derefOperator,", ;":g.separator,"@":g.meta,TypeName:g.typeName,TypeDefinition:g.definition(g.typeName),"type enum interface implements namespace module declare":g.definitionKeyword,"abstract global Privacy readonly override":g.modifier,"is keyof unique infer":g.operatorKeyword,JSXAttributeValue:g.attributeValue,JSXText:g.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":g.angleBracket,"JSXIdentifier JSXNameSpacedName":g.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":g.attributeName,"JSXBuiltin/JSXIdentifier":g.standard(g.tagName)}),ry={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:221,private:221,protected:221,readonly:223,instanceof:242,satisfies:245,in:246,const:248,import:280,keyof:335,unique:339,infer:345,is:381,abstract:401,implements:403,type:405,let:408,var:410,interface:417,enum:421,namespace:427,module:429,declare:433,global:437,for:456,of:465,while:468,with:472,do:476,if:480,else:482,switch:486,case:492,try:498,catch:502,finally:506,return:510,throw:514,break:518,continue:522,debugger:526},iy={__proto__:null,async:117,get:119,set:121,declare:181,public:183,private:183,protected:183,static:185,abstract:187,override:189,readonly:195,accessor:197,new:385},sy={__proto__:null,"<":137},oy=Dr.deserialize({version:14,states:"$6[O`QUOOO%QQUOOO'TQWOOP(bOSOOO*pQ(CjO'#CfO*wOpO'#CgO+VO!bO'#CgO+eO07`O'#DZO-vQUO'#DaO.WQUO'#DlO%QQUO'#DvO0[QUO'#EOOOQ(CY'#EW'#EWO0uQSO'#ETOOQO'#Ei'#EiOOQO'#Ib'#IbO0}QSO'#GkO1YQSO'#EhO1_QSO'#EhO3aQ(CjO'#JcO6QQ(CjO'#JdO6nQSO'#FWO6sQ#tO'#FoOOQ(CY'#F`'#F`O7OO&jO'#F`O7^Q,UO'#FvO8tQSO'#FuOOQ(CY'#Jd'#JdOOQ(CW'#Jc'#JcOOQQ'#KO'#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0wQ5{2iQ7X4vQ7x5zQ8e7WQ8w7wQ9W8gQ9`8yQ9e9XR9h9alpOXr!X#`%]&d&f&g&i,],b1b1eQ&^!TR,Q&ZV%z|},ZR0q+qR,P&XQ%szR+c%tR+X%nT&b!U&eT&c!U&eT1d,b1e",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList 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 : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration 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:364,context:J1,nodeProps:[["group",-26,6,14,16,62,199,203,206,207,209,212,215,225,227,233,235,237,239,242,248,254,256,258,260,262,264,265,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,103,104,113,114,131,134,136,137,138,139,141,142,162,163,165,"Expression",-23,24,26,30,34,36,38,166,168,170,171,173,174,175,177,178,179,181,182,183,193,195,197,198,"Type",-3,84,96,102,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",143,"JSXStartTag",155,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",144,"JSXSelfCloseEndTag JSXEndTag",160,"JSXEndTag"]],propSources:[ny],skippedNodes:[0,3,4,268],repeatNodeCount:33,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tu>PuvBavwDxwxGgxyMvyz! Qz{!![{|!%O|}!&]}!O!%O!O!P!'g!P!Q!1w!Q!R#0t!R![#3T![!]#@T!]!^#Aa!^!_#Bk!_!`#GS!`!a#In!a!b#N{!b!c$$z!c!}>P!}#O$&U#O#P$'`#P#Q$,w#Q#R$.R#R#S>P#S#T$/`#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}st%Ztu>Puw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$JT>P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(CS$=Uk$d&j'wp'z!b'n(;d(U!LY't&;d$W#tOY%ZYZ&cZr%Zrs&}st%Ztu>Puw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$g%Z$g;'S>P;'S;=`BZ<%lO>P",tokenizers:[ey,ty,2,3,4,5,6,7,8,9,10,11,12,13,K1,new Sa("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOq~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!O~~!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(T~~",141,326),new Sa("j~RQYZXz{^~^O'q~~aP!P!Qd~iO'r~~",25,308)],topRules:{Script:[0,5],SingleExpression:[1,266],SingleClassItem:[2,267]},dialects:{jsx:12686,ts:12688},dynamicPrecedences:{76:1,78:1,163:1,191:1},specialized:[{term:312,get:n=>ry[n]||-1},{term:328,get:n=>iy[n]||-1},{term:67,get:n=>sy[n]||-1}],tokenPrec:12712}),hO=[bt("function ${name}(${params}) {\n	${}\n}",{label:"function",detail:"definition",type:"keyword"}),bt("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n	${}\n}",{label:"for",detail:"loop",type:"keyword"}),bt("for (let ${name} of ${collection}) {\n	${}\n}",{label:"for",detail:"of loop",type:"keyword"}),bt("do {\n	${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),bt("while (${}) {\n	${}\n}",{label:"while",detail:"loop",type:"keyword"}),bt(`try {
	\${}
} catch (\${error}) {
	\${}
}`,{label:"try",detail:"/ catch block",type:"keyword"}),bt("if (${}) {\n	${}\n}",{label:"if",detail:"block",type:"keyword"}),bt(`if (\${}) {
	\${}
} else {
	\${}
}`,{label:"if",detail:"/ else block",type:"keyword"}),bt(`class \${name} {
	constructor(\${params}) {
		\${}
	}
}`,{label:"class",detail:"definition",type:"keyword"}),bt('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),bt('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],qu=new Qp,uO=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function ei(n){return(e,t)=>{let r=e.node.getChild("VariableDefinition");return r&&t(r,n),!0}}const ly=["FunctionDeclaration"],ay={FunctionDeclaration:ei("function"),ClassDeclaration:ei("class"),ClassExpression:()=>!0,EnumDeclaration:ei("constant"),TypeAliasDeclaration:ei("type"),NamespaceDeclaration:ei("namespace"),VariableDefinition(n,e){n.matchContext(ly)||e(n,"variable")},TypeDefinition(n,e){e(n,"type")},__proto__:null};function fO(n,e){let t=qu.get(e);if(t)return t;let r=[],i=!0;function s(o,l){let a=n.sliceString(o.from,o.to);r.push({label:a,type:l})}return e.cursor(ge.IncludeAnonymous).iterate(o=>{if(i)i=!1;else if(o.name){let l=ay[o.name];if(l&&l(o,s)||uO.has(o.name))return!1}else if(o.to-o.from>8192){for(let l of fO(n,o.node))r.push(l);return!1}}),qu.set(e,r),r}const so=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,dc=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function dO(n){let e=_e(n.state).resolveInner(n.pos,-1);if(dc.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&so.test(n.state.sliceDoc(e.from,e.to));if(!t&&!n.explicit)return null;let r=[];for(let i=e;i;i=i.parent)uO.has(i.name)&&(r=r.concat(fO(n.state.doc,i)));return{options:r,from:t?e.from:n.pos,validFor:so}}function cl(n,e,t){var r;let i=[];for(;;){let s=e.firstChild,o;if((s==null?void 0:s.name)=="VariableName")return i.push(n(s)),{path:i.reverse(),name:t};if((s==null?void 0:s.name)=="MemberExpression"&&((r=o=s.lastChild)===null||r===void 0?void 0:r.name)=="PropertyName")i.push(n(o)),e=s;else return null}}function pO(n){let e=r=>n.state.doc.sliceString(r.from,r.to),t=_e(n.state).resolveInner(n.pos,-1);return t.name=="PropertyName"?cl(e,t.parent,e(t)):dc.indexOf(t.name)>-1?null:t.name=="VariableName"||t.to-t.from<20&&so.test(e(t))?{path:[],name:e(t)}:(t.name=="."||t.name=="?.")&&t.parent.name=="MemberExpression"?cl(e,t.parent,""):t.name=="MemberExpression"?cl(e,t,""):n.explicit?{path:[],name:""}:null}function cy(n,e){let t=[],r=new Set;for(let i=0;;i++){for(let o of(Object.getOwnPropertyNames||Object.keys)(n)){if(r.has(o))continue;r.add(o);let l;try{l=n[o]}catch{continue}t.push({label:o,type:typeof l=="function"?/^[A-Z]/.test(o)?"class":e?"function":"method":e?"variable":"property",boost:-i})}let s=Object.getPrototypeOf(n);if(!s)return t;n=s}}function hy(n){let e=new Map;return t=>{let r=pO(t);if(!r)return null;let i=n;for(let o of r.path)if(i=i[o],!i)return null;let s=e.get(i);return s||e.set(i,s=cy(i,!r.path.length)),{from:t.pos-r.name.length,options:s,validFor:so}}}const Pt=Cr.define({name:"javascript",parser:oy.configure({props:[zi.add({IfStatement:Ts({except:/^\s*({|else\b)/}),TryStatement:Ts({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:fv,SwitchBody:n=>{let e=n.textAfter,t=/^\s*\}/.test(e),r=/^\s*(case|default)\b/.test(e);return n.baseIndent+(t?0:r?1:2)*n.unit},Block:uv({closing:"}"}),ArrowFunction:n=>n.baseIndent+n.unit,"TemplateString BlockComment":()=>null,"Statement Property":Ts({except:/^{/}),JSXElement(n){let e=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},JSXEscape(n){let e=/\s*\}/.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},"JSXOpenTag JSXSelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),So.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Dp,BlockComment(n){return{from:n.from+2,to:n.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),mO={test:n=>/^JSX/.test(n.name),facet:bo({commentTokens:{block:{open:"{/*",close:"*/}"}}})},pc=Pt.configure({dialect:"ts"},"typescript"),mc=Pt.configure({dialect:"jsx",props:[Fa.add(n=>n.isTop?[mO]:void 0)]}),Oc=Pt.configure({dialect:"jsx ts",props:[Fa.add(n=>n.isTop?[mO]:void 0)]},"typescript"),uy="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(n=>({label:n,type:"keyword"}));function OO(n={}){let e=n.jsx?n.typescript?Oc:mc:n.typescript?pc:Pt;return new Er(e,[Pt.data.of({autocomplete:VS(dc,LS(hO.concat(uy)))}),Pt.data.of({autocomplete:dO}),n.jsx?gO:[]])}function fy(n){for(;;){if(n.name=="JSXOpenTag"||n.name=="JSXSelfClosingTag"||n.name=="JSXFragmentTag")return n;if(n.name=="JSXEscape"||!n.parent)return null;n=n.parent}}function Lu(n,e,t=n.length){for(let r=e==null?void 0:e.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return n.sliceString(r.from,Math.min(r.to,t));return""}function dy(n){return n&&(n.name=="JSXEndTag"||n.name=="JSXSelfCloseEndTag")}const py=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),gO=G.inputHandler.of((n,e,t,r)=>{if((py?n.composing:n.compositionStarted)||n.state.readOnly||e!=t||r!=">"&&r!="/"||!Pt.isActiveAt(n.state,e,-1))return!1;let{state:i}=n,s=i.changeByRange(o=>{var l;let{head:a}=o,c=_e(i).resolveInner(a,-1),h;if(c.name=="JSXStartTag"&&(c=c.parent),!(c.name=="JSXAttributeValue"&&c.to>a)){if(r==">"&&c.name=="JSXFragmentTag")return{range:D.cursor(a+1),changes:{from:a,insert:"></>"}};if(r=="/"&&c.name=="JSXFragmentTag"){let u=c.parent,f=u==null?void 0:u.parent;if(u.from==a-1&&((l=f.lastChild)===null||l===void 0?void 0:l.name)!="JSXEndTag"&&(h=Lu(i.doc,f==null?void 0:f.firstChild,a))){let d=`/${h}>`;return{range:D.cursor(a+d.length),changes:{from:a,insert:d}}}}else if(r==">"){let u=fy(c);if(u&&!dy(u.lastChild)&&i.sliceDoc(a,a+2)!="</"&&(h=Lu(i.doc,u,a)))return{range:D.cursor(a+1),changes:{from:a,insert:`></${h}>`}}}}return{range:o}});return s.changes.empty?!1:(n.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)});function my(n,e){return e||(e={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},n.getRules().forEach((t,r)=>{t.meta.docs.recommended&&(e.rules[r]=2)})),t=>{let{state:r}=t,i=[];for(let{from:s,to:o}of Pt.findRegions(r)){let l=r.doc.lineAt(s),a={line:l.number-1,col:s-l.from,pos:s};for(let c of n.verify(r.sliceDoc(s,o),e))i.push(Oy(c,r.doc,a))}return i}}function Vu(n,e,t,r){return t.line(n+r.line).from+e+(n==1?r.col-1:-1)}function Oy(n,e,t){let r=Vu(n.line,n.column,e,t),i={from:r,to:n.endLine!=null&&n.endColumn!=1?Vu(n.endLine,n.endColumn,e,t):r,message:n.message,source:n.ruleId?"eslint:"+n.ruleId:"eslint",severity:n.severity==1?"warning":"error"};if(n.fix){let{range:s,text:o}=n.fix,l=s[0]+t.pos-r,a=s[1]+t.pos-r;i.actions=[{name:"fix",apply(c,h){c.dispatch({changes:{from:h+l,to:h+a,insert:o},scrollIntoView:!0})}}]}return i}const bs=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:gO,completionPath:pO,esLint:my,javascript:OO,javascriptLanguage:Pt,jsxLanguage:mc,localCompletionSource:dO,scopeCompletionSource:hy,snippets:hO,tsxLanguage:Oc,typescriptLanguage:pc},Symbol.toStringTag,{value:"Module"})),ti=["_blank","_self","_top","_parent"],hl=["ascii","utf-8","utf-16","latin1","latin1"],ul=["get","post","put","delete"],fl=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],et=["true","false"],W={},gy={a:{attrs:{href:null,ping:null,type:null,media:null,target:ti,hreflang:null}},abbr:W,address:W,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:W,aside:W,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:W,base:{attrs:{href:null,target:ti}},bdi:W,bdo:W,blockquote:{attrs:{cite:null}},body:W,br:W,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:fl,formmethod:ul,formnovalidate:["novalidate"],formtarget:ti,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:W,center:W,cite:W,code:W,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:W,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:W,div:W,dl:W,dt:W,em:W,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:W,figure:W,footer:W,form:{attrs:{action:null,name:null,"accept-charset":hl,autocomplete:["on","off"],enctype:fl,method:ul,novalidate:["novalidate"],target:ti}},h1:W,h2:W,h3:W,h4:W,h5:W,h6:W,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:W,hgroup:W,hr:W,html:{attrs:{manifest:null}},i:W,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:fl,formmethod:ul,formnovalidate:["novalidate"],formtarget:ti,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:W,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:W,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:W,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:hl,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:W,noscript:W,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:W,param:{attrs:{name:null,value:null}},pre:W,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:W,rt:W,ruby:W,samp:W,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:hl}},section:W,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:W,source:{attrs:{src:null,type:null,media:null}},span:W,strong:W,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:W,summary:W,sup:W,table:W,tbody:W,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:W,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:W,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:W,time:{attrs:{datetime:null}},title:W,tr:W,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:W,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:W},bO={accesskey:null,class:null,contenteditable:et,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:et,autocorrect:et,autocapitalize:et,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":et,"aria-autocomplete":["inline","list","both","none"],"aria-busy":et,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":et,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":et,"aria-hidden":et,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":et,"aria-multiselectable":et,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":et,"aria-relevant":null,"aria-required":et,"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},vO="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(n=>"on"+n);for(let n of vO)bO[n]=null;class Ai{constructor(e,t){this.tags=Object.assign(Object.assign({},gy),e),this.globalAttrs=Object.assign(Object.assign({},bO),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Ai.default=new Ai;function Rr(n,e,t=n.length){if(!e)return"";let r=e.firstChild,i=r&&r.getChild("TagName");return i?n.sliceString(i.from,Math.min(i.to,t)):""}function _o(n,e=!1){for(let t=n.parent;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function SO(n,e,t){let r=t.tags[Rr(n,_o(e,!0))];return(r==null?void 0:r.children)||t.allTags}function gc(n,e){let t=[];for(let r=e;r=_o(r);){let i=Rr(n,r);if(i&&r.lastChild.name=="CloseTag")break;i&&t.indexOf(i)<0&&(e.name=="EndTag"||e.from>=r.firstChild.to)&&t.push(i)}return t}const kO=/^[:\-\.\w\u00b7-\uffff]*$/;function Iu(n,e,t,r,i){let s=/\s*>/.test(n.sliceDoc(i,i+5))?"":">";return{from:r,to:i,options:SO(n.doc,t,e).map(o=>({label:o,type:"type"})).concat(gc(n.doc,t).map((o,l)=>({label:"/"+o,apply:"/"+o+s,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Mu(n,e,t,r){let i=/\s*>/.test(n.sliceDoc(r,r+5))?"":">";return{from:t,to:r,options:gc(n.doc,e).map((s,o)=>({label:s,apply:s+i,type:"type",boost:99-o})),validFor:kO}}function by(n,e,t,r){let i=[],s=0;for(let o of SO(n.doc,t,e))i.push({label:"<"+o,type:"type"});for(let o of gc(n.doc,t))i.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function vy(n,e,t,r,i){let s=_o(t),o=s?e.tags[Rr(n.doc,s)]:null,l=o&&o.attrs?Object.keys(o.attrs):[],a=o&&o.globalAttrs===!1?l:l.length?l.concat(e.globalAttrNames):e.globalAttrNames;return{from:r,to:i,options:a.map(c=>({label:c,type:"property"})),validFor:kO}}function Sy(n,e,t,r,i){var s;let o=(s=t.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),l=[],a;if(o){let c=n.sliceDoc(o.from,o.to),h=e.globalAttrs[c];if(!h){let u=_o(t),f=u?e.tags[Rr(n.doc,u)]:null;h=(f==null?void 0:f.attrs)&&f.attrs[c]}if(h){let u=n.sliceDoc(r,i).toLowerCase(),f='"',d='"';/^['"]/.test(u)?(a=u[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",d=n.sliceDoc(i,i+1)==u[0]?"":u[0],u=u.slice(1),r++):a=/^[^\s<>='"]*$/;for(let p of h)l.push({label:p,apply:f+p+d,type:"constant"})}}return{from:r,to:i,options:l,validFor:a}}function yO(n,e){let{state:t,pos:r}=e,i=_e(t).resolveInner(r),s=i.resolve(r,-1);for(let o=r,l;i==s&&(l=s.childBefore(o));){let a=l.lastChild;if(!a||!a.type.isError||a.from<a.to)break;i=s=l,o=a.from}return s.name=="TagName"?s.parent&&/CloseTag$/.test(s.parent.name)?Mu(t,s,s.from,r):Iu(t,n,s,s.from,r):s.name=="StartTag"?Iu(t,n,s,r,r):s.name=="StartCloseTag"||s.name=="IncompleteCloseTag"?Mu(t,s,r,r):e.explicit&&(s.name=="OpenTag"||s.name=="SelfClosingTag")||s.name=="AttributeName"?vy(t,n,s,s.name=="AttributeName"?s.from:r,r):s.name=="Is"||s.name=="AttributeValue"||s.name=="UnquotedAttributeValue"?Sy(t,n,s,s.name=="Is"?r:s.from,r):e.explicit&&(i.name=="Element"||i.name=="Text"||i.name=="Document")?by(t,n,s,r):null}function ky(n){return yO(Ai.default,n)}function wO(n){let{extraTags:e,extraGlobalAttributes:t}=n,r=t||e?new Ai(e,t):Ai.default;return i=>yO(r,i)}const xO=[{tag:"script",attrs:n=>n.type=="text/typescript"||n.lang=="ts",parser:pc.parser},{tag:"script",attrs:n=>n.type=="text/babel"||n.type=="text/jsx",parser:mc.parser},{tag:"script",attrs:n=>n.type=="text/typescript-jsx",parser:Oc.parser},{tag:"script",attrs(n){return!n.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(n.type)},parser:Pt.parser},{tag:"style",attrs(n){return(!n.lang||n.lang=="css")&&(!n.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(n.type))},parser:Ci.parser}],QO=[{name:"style",parser:Ci.parser.configure({top:"Styles"})}].concat(vO.map(n=>({name:n,parser:Pt.parser}))),bc=Cr.define({name:"html",parser:g1.configure({props:[zi.add({Element(n){let e=/^(\s*)(<\/)?/.exec(n.textAfter);return n.node.to<=n.pos+e[0].length?n.continue():n.lineIndent(n.node.from)+(e[2]?0:n.unit)},"OpenTag CloseTag SelfClosingTag"(n){return n.column(n.node.from)+n.unit},Document(n){if(n.pos+/\s*/.exec(n.textAfter)[0].length<n.node.to)return n.continue();let e=null,t;for(let r=n.node;;){let i=r.lastChild;if(!i||i.name!="Element"||i.to!=r.to)break;e=r=i}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?n.lineIndent(e.from)+n.unit:null}}),So.add({Element(n){let e=n.firstChild,t=n.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:n.to}}}),Zp.add({"OpenTag CloseTag":n=>n.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),mi=bc.configure({wrap:nO(xO,QO)});function $O(n={}){let e="",t;n.matchClosingTags===!1&&(e="noMatch"),n.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(n.nestedLanguages&&n.nestedLanguages.length||n.nestedAttributes&&n.nestedAttributes.length)&&(t=nO((n.nestedLanguages||[]).concat(xO),(n.nestedAttributes||[]).concat(QO)));let r=t?bc.configure({wrap:t,dialect:e}):e?mi.configure({dialect:e}):mi;return new Er(r,[mi.data.of({autocomplete:wO(n)}),n.autoCloseTags!==!1?_O:[],OO().support,aO().support])}const zu=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),_O=G.inputHandler.of((n,e,t,r)=>{if(n.composing||n.state.readOnly||e!=t||r!=">"&&r!="/"||!mi.isActiveAt(n.state,e,-1))return!1;let{state:i}=n,s=i.changeByRange(o=>{var l,a,c;let{head:h}=o,u=_e(i).resolveInner(h,-1),f;if((u.name=="TagName"||u.name=="StartTag")&&(u=u.parent),r==">"&&u.name=="OpenTag"){if(((a=(l=u.parent)===null||l===void 0?void 0:l.lastChild)===null||a===void 0?void 0:a.name)!="CloseTag"&&(f=Rr(i.doc,u.parent,h))&&!zu.has(f)){let d=n.state.doc.sliceString(h,h+1)===">",p=`${d?"":">"}</${f}>`;return{range:D.cursor(h+1),changes:{from:h+(d?1:0),insert:p}}}}else if(r=="/"&&u.name=="OpenTag"){let d=u.parent,p=d==null?void 0:d.parent;if(d.from==h-1&&((c=p.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(f=Rr(i.doc,p,h))&&!zu.has(f)){let m=n.state.doc.sliceString(h,h+1)===">",O=`/${f}${m?"":">"}`,b=h+O.length+(m?1:0);return{range:D.cursor(b),changes:{from:h,insert:O}}}}return{range:o}});return s.changes.empty?!1:(n.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)}),yy=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:_O,html:$O,htmlCompletionSource:ky,htmlCompletionSourceWith:wO,htmlLanguage:mi,htmlPlain:bc},Symbol.toStringTag,{value:"Module"})),PO=bo({commentTokens:{block:{open:"<!--",close:"-->"}}}),CO=new N,AO=pk.configure({props:[So.add(n=>!n.is("Block")||n.is("Document")||wa(n)!=null?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),CO.add(wa),zi.add({Document:()=>null}),Pn.add({Document:PO})]});function wa(n){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(n.name);return e?+e[1]:void 0}function wy(n,e){let t=n;for(;;){let r=t.nextSibling,i;if(!r||(i=wa(r.type))!=null&&i<=e)break;t=r}return t.to}const xy=dv.of((n,e,t)=>{for(let r=_e(n).resolveInner(t,-1);r&&!(r.from<e);r=r.parent){let i=r.type.prop(CO);if(i==null)continue;let s=wy(r,i);if(s>t)return{from:t,to:s}}return null});function vc(n){return new lt(PO,n,[xy],"markdown")}const TO=vc(AO),Qy=AO.configure([yk,xk,wk,Qk]),Sc=vc(Qy);function $y(n,e){return t=>{if(t&&n){let r=null;if(t=/\S*/.exec(t)[0],typeof n=="function"?r=n(t):r=_.matchLanguageName(n,t,!0),r instanceof _)return r.support?r.support.language.parser:Gn.getSkippingParser(r.load());if(r)return r.parser}return e?e.parser:null}}class vs{constructor(e,t,r,i,s,o,l){this.node=e,this.from=t,this.to=r,this.spaceBefore=i,this.spaceAfter=s,this.type=o,this.item=l}blank(e,t=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;r.length<e;)r+=" ";return r}else{for(let i=this.to-this.from-r.length-this.spaceAfter.length;i>0;i--)r+=" ";return r+(t?this.spaceAfter:"")}}marker(e,t){let r=this.node.name=="OrderedList"?String(+XO(this.item,e)[2]+t):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function EO(n,e){let t=[];for(let i=n;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&t.push(i);let r=[];for(let i=t.length-1;i>=0;i--){let s=t[i],o,l=e.lineAt(s.from),a=s.from-l.from;if(s.name=="FencedCode")r.push(new vs(s,a,a,"","","",null));else if(s.name=="Blockquote"&&(o=/^[ \t]*>( ?)/.exec(l.text.slice(a))))r.push(new vs(s,a,a+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^([ \t]*)\d+([.)])([ \t]*)/.exec(l.text.slice(a)))){let c=o[3],h=o[0].length;c.length>=4&&(c=c.slice(0,c.length-4),h-=4),r.push(new vs(s.parent,a,a+h,o[1],c,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(l.text.slice(a)))){let c=o[4],h=o[0].length;c.length>4&&(c=c.slice(0,c.length-4),h-=4);let u=o[2];o[3]&&(u+=o[3].replace(/[xX]/," ")),r.push(new vs(s.parent,a,a+h,o[1],c,u,s))}}return r}function XO(n,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(n.from,n.from+10))}function dl(n,e,t,r=0){for(let i=-1,s=n;;){if(s.name=="ListItem"){let l=XO(s,e),a=+l[2];if(i>=0){if(a!=i+1)return;t.push({from:s.from+l[1].length,to:s.from+l[0].length,insert:String(i+2+r)})}i=a}let o=s.nextSibling;if(!o)break;s=o}}const DO=({state:n,dispatch:e})=>{let t=_e(n),{doc:r}=n,i=null,s=n.changeByRange(o=>{if(!o.empty||!Sc.isActiveAt(n,o.from))return i={range:o};let l=o.from,a=r.lineAt(l),c=EO(t.resolveInner(l,-1),r);for(;c.length&&c[c.length-1].from>l-a.from;)c.pop();if(!c.length)return i={range:o};let h=c[c.length-1];if(h.to-h.spaceAfter.length>l-a.from)return i={range:o};let u=l>=h.to-h.spaceAfter.length&&!/\S/.test(a.text.slice(h.to));if(h.item&&u)if(h.node.firstChild.to>=l||a.from>0&&!/[^\s>]/.test(r.lineAt(a.from-1).text)){let O=c.length>1?c[c.length-2]:null,b,k="";O&&O.item?(b=a.from+O.from,k=O.marker(r,1)):b=a.from+(O?O.to:0);let y=[{from:b,to:l,insert:k}];return h.node.name=="OrderedList"&&dl(h.item,r,y,-2),O&&O.node.name=="OrderedList"&&dl(O.item,r,y),{range:D.cursor(b+k.length),changes:y}}else{let O="";for(let b=0,k=c.length-2;b<=k;b++)O+=c[b].blank(b<k?c[b+1].from-O.length:null,b<k);return O+=n.lineBreak,{range:D.cursor(l+O.length),changes:{from:a.from,insert:O}}}if(h.node.name=="Blockquote"&&u&&a.from){let O=r.lineAt(a.from-1),b=/>\s*$/.exec(O.text);if(b&&b.index==h.from){let k=n.changes([{from:O.from+b.index,to:O.to},{from:a.from+h.from,to:a.to}]);return{range:o.map(k),changes:k}}}let f=[];h.node.name=="OrderedList"&&dl(h.item,r,f);let d=h.item&&h.item.from<a.from,p="";if(!d||/^[\s\d.)\-+*>]*/.exec(a.text)[0].length>=h.to)for(let O=0,b=c.length-1;O<=b;O++)p+=O==b&&!d?c[O].marker(r,1):c[O].blank(O<b?c[O+1].from-p.length:null);let m=l;for(;m>a.from&&/\s/.test(a.text.charAt(m-a.from-1));)m--;return p=n.lineBreak+p,f.push({from:m,to:l,insert:p}),{range:D.cursor(m+p.length),changes:f}});return i?!1:(e(n.update(s,{scrollIntoView:!0,userEvent:"input"})),!0)};function Uu(n){return n.name=="QuoteMark"||n.name=="ListMark"}function _y(n,e){let t=n.resolveInner(e,-1),r=e;Uu(t)&&(r=t.from,t=t.parent);for(let i;i=t.childBefore(r);)if(Uu(i))r=i.from;else if(i.name=="OrderedList"||i.name=="BulletList")t=i.lastChild,r=t.to;else break;return t}const RO=({state:n,dispatch:e})=>{let t=_e(n),r=null,i=n.changeByRange(s=>{let o=s.from,{doc:l}=n;if(s.empty&&Sc.isActiveAt(n,s.from)){let a=l.lineAt(o),c=EO(_y(t,o),l);if(c.length){let h=c[c.length-1],u=h.to-h.spaceAfter.length+(h.spaceAfter?1:0);if(o-a.from>u&&!/\S/.test(a.text.slice(u,o-a.from)))return{range:D.cursor(a.from+u),changes:{from:a.from+u,to:o}};if(o-a.from==u&&(!h.item||a.from<=h.item.from||!/\S/.test(a.text.slice(0,h.to)))){let f=a.from+h.from;if(h.item&&h.node.from<h.item.from&&/\S/.test(a.text.slice(h.from,h.to)))return{range:s,changes:{from:f,to:a.from+h.to,insert:h.blank(h.to-h.from)}};if(f<o)return{range:D.cursor(f),changes:{from:f,to:o}}}}}return r={range:s}});return r?!1:(e(n.update(i,{scrollIntoView:!0,userEvent:"delete"})),!0)},ZO=[{key:"Enter",run:DO},{key:"Backspace",run:RO}],Bu=$O({matchClosingTags:!1});function qO(n={}){let{codeLanguages:e,defaultCodeLanguage:t,addKeymap:r=!0,base:{parser:i}=TO}=n;if(!(i instanceof $o))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let s=n.extensions?[n.extensions]:[],o=[Bu.support],l;t instanceof Er?(o.push(t.support),l=t.language):t&&(l=t);let a=e||l?$y(e,l):void 0;return s.push(Ok({codeParser:a,htmlParser:Bu.language.parser})),r&&o.push(Zr.high(Vi.of(ZO))),new Er(vc(i.configure(s)),o)}const Py=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:TO,deleteMarkupBackward:RO,insertNewlineContinueMarkup:DO,markdown:qO,markdownKeymap:ZO,markdownLanguage:Sc},Symbol.toStringTag,{value:"Module"}));/*! medium-zoom 1.0.8 | MIT License | https://github.com/francoischalifour/medium-zoom */var Vn=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Ss=function(e){return e.tagName==="IMG"},Cy=function(e){return NodeList.prototype.isPrototypeOf(e)},Ds=function(e){return e&&e.nodeType===1},Wu=function(e){var t=e.currentSrc||e.src;return t.substr(-4).toLowerCase()===".svg"},Yu=function(e){try{return Array.isArray(e)?e.filter(Ss):Cy(e)?[].slice.call(e).filter(Ss):Ds(e)?[e].filter(Ss):typeof e=="string"?[].slice.call(document.querySelectorAll(e)).filter(Ss):[]}catch{throw new TypeError(`The provided selector is invalid.
Expects a CSS selector, a Node element, a NodeList or an array.
See: https://github.com/francoischalifour/medium-zoom`)}},Ay=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},Ty=function(e){var t=e.getBoundingClientRect(),r=t.top,i=t.left,s=t.width,o=t.height,l=e.cloneNode(),a=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,c=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return l.removeAttribute("id"),l.style.position="absolute",l.style.top=r+a+"px",l.style.left=i+c+"px",l.style.width=s+"px",l.style.height=o+"px",l.style.transform="",l},ir=function(e,t){var r=Vn({bubbles:!1,cancelable:!1,detail:void 0},t);if(typeof window.CustomEvent=="function")return new CustomEvent(e,r);var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r.bubbles,r.cancelable,r.detail),i},Ey=function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(q){function z(){}q(z,z)},i=function(q){var z=q.target;if(z===I){p();return}y.indexOf(z)!==-1&&m({target:z})},s=function(){if(!($||!P.original)){var q=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(w-q)>A.scrollOffset&&setTimeout(p,150)}},o=function(q){var z=q.key||q.keyCode;(z==="Escape"||z==="Esc"||z===27)&&p()},l=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=q;if(q.background&&(I.style.background=q.background),q.container&&q.container instanceof Object&&(z.container=Vn({},A.container,q.container)),q.template){var T=Ds(q.template)?q.template:document.querySelector(q.template);z.template=T}return A=Vn({},A,z),y.forEach(function(U){U.dispatchEvent(ir("medium-zoom:update",{detail:{zoom:X}}))}),X},a=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(Vn({},A,q))},c=function(){for(var q=arguments.length,z=Array(q),T=0;T<q;T++)z[T]=arguments[T];var U=z.reduce(function(R,H){return[].concat(R,Yu(H))},[]);return U.filter(function(R){return y.indexOf(R)===-1}).forEach(function(R){y.push(R),R.classList.add("medium-zoom-image")}),Q.forEach(function(R){var H=R.type,ee=R.listener,re=R.options;U.forEach(function(te){te.addEventListener(H,ee,re)})}),X},h=function(){for(var q=arguments.length,z=Array(q),T=0;T<q;T++)z[T]=arguments[T];P.zoomed&&p();var U=z.length>0?z.reduce(function(R,H){return[].concat(R,Yu(H))},[]):y;return U.forEach(function(R){R.classList.remove("medium-zoom-image"),R.dispatchEvent(ir("medium-zoom:detach",{detail:{zoom:X}}))}),y=y.filter(function(R){return U.indexOf(R)===-1}),X},u=function(q,z){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return y.forEach(function(U){U.addEventListener("medium-zoom:"+q,z,T)}),Q.push({type:"medium-zoom:"+q,listener:z,options:T}),X},f=function(q,z){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return y.forEach(function(U){U.removeEventListener("medium-zoom:"+q,z,T)}),Q=Q.filter(function(U){return!(U.type==="medium-zoom:"+q&&U.listener.toString()===z.toString())}),X},d=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=q.target,T=function(){var R={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},H=void 0,ee=void 0;if(A.container)if(A.container instanceof Object)R=Vn({},R,A.container),H=R.width-R.left-R.right-A.margin*2,ee=R.height-R.top-R.bottom-A.margin*2;else{var re=Ds(A.container)?A.container:document.querySelector(A.container),te=re.getBoundingClientRect(),ve=te.width,Ee=te.height,ct=te.left,Jt=te.top;R=Vn({},R,{width:ve,height:Ee,left:ct,top:Jt})}H=H||R.width-A.margin*2,ee=ee||R.height-A.margin*2;var fn=P.zoomedHd||P.original,Yi=Wu(fn)?H:fn.naturalWidth||H,ji=Wu(fn)?ee:fn.naturalHeight||ee,Rn=fn.getBoundingClientRect(),Ni=Rn.top,Fi=Rn.left,er=Rn.width,tr=Rn.height,Gi=Math.min(Math.max(er,Yi),H)/er,Hi=Math.min(Math.max(tr,ji),ee)/tr,nr=Math.min(Gi,Hi),Ji=(-Fi+(H-er)/2+A.margin+R.left)/nr,Ki=(-Ni+(ee-tr)/2+A.margin+R.top)/nr,Wr="scale("+nr+") translate3d("+Ji+"px, "+Ki+"px, 0)";P.zoomed.style.transform=Wr,P.zoomedHd&&(P.zoomedHd.style.transform=Wr)};return new r(function(U){if(z&&y.indexOf(z)===-1){U(X);return}var R=function ve(){$=!1,P.zoomed.removeEventListener("transitionend",ve),P.original.dispatchEvent(ir("medium-zoom:opened",{detail:{zoom:X}})),U(X)};if(P.zoomed){U(X);return}if(z)P.original=z;else if(y.length>0){var H=y;P.original=H[0]}else{U(X);return}if(P.original.dispatchEvent(ir("medium-zoom:open",{detail:{zoom:X}})),w=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,$=!0,P.zoomed=Ty(P.original),document.body.appendChild(I),A.template){var ee=Ds(A.template)?A.template:document.querySelector(A.template);P.template=document.createElement("div"),P.template.appendChild(ee.content.cloneNode(!0)),document.body.appendChild(P.template)}if(P.original.parentElement&&P.original.parentElement.tagName==="PICTURE"&&P.original.currentSrc&&(P.zoomed.src=P.original.currentSrc),document.body.appendChild(P.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),P.original.classList.add("medium-zoom-image--hidden"),P.zoomed.classList.add("medium-zoom-image--opened"),P.zoomed.addEventListener("click",p),P.zoomed.addEventListener("transitionend",R),P.original.getAttribute("data-zoom-src")){P.zoomedHd=P.zoomed.cloneNode(),P.zoomedHd.removeAttribute("srcset"),P.zoomedHd.removeAttribute("sizes"),P.zoomedHd.removeAttribute("loading"),P.zoomedHd.src=P.zoomed.getAttribute("data-zoom-src"),P.zoomedHd.onerror=function(){clearInterval(re),console.warn("Unable to reach the zoom image target "+P.zoomedHd.src),P.zoomedHd=null,T()};var re=setInterval(function(){P.zoomedHd.complete&&(clearInterval(re),P.zoomedHd.classList.add("medium-zoom-image--opened"),P.zoomedHd.addEventListener("click",p),document.body.appendChild(P.zoomedHd),T())},10)}else if(P.original.hasAttribute("srcset")){P.zoomedHd=P.zoomed.cloneNode(),P.zoomedHd.removeAttribute("sizes"),P.zoomedHd.removeAttribute("loading");var te=P.zoomedHd.addEventListener("load",function(){P.zoomedHd.removeEventListener("load",te),P.zoomedHd.classList.add("medium-zoom-image--opened"),P.zoomedHd.addEventListener("click",p),document.body.appendChild(P.zoomedHd),T()})}else T()})},p=function(){return new r(function(q){if($||!P.original){q(X);return}var z=function T(){P.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(P.zoomed),P.zoomedHd&&document.body.removeChild(P.zoomedHd),document.body.removeChild(I),P.zoomed.classList.remove("medium-zoom-image--opened"),P.template&&document.body.removeChild(P.template),$=!1,P.zoomed.removeEventListener("transitionend",T),P.original.dispatchEvent(ir("medium-zoom:closed",{detail:{zoom:X}})),P.original=null,P.zoomed=null,P.zoomedHd=null,P.template=null,q(X)};$=!0,document.body.classList.remove("medium-zoom--opened"),P.zoomed.style.transform="",P.zoomedHd&&(P.zoomedHd.style.transform=""),P.template&&(P.template.style.transition="opacity 150ms",P.template.style.opacity=0),P.original.dispatchEvent(ir("medium-zoom:close",{detail:{zoom:X}})),P.zoomed.addEventListener("transitionend",z)})},m=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=q.target;return P.original?p():d({target:z})},O=function(){return A},b=function(){return y},k=function(){return P.original},y=[],Q=[],$=!1,w=0,A=t,P={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(e)==="[object Object]"?A=e:(e||typeof e=="string")&&c(e),A=Vn({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},A);var I=Ay(A.background);document.addEventListener("click",i),document.addEventListener("keyup",o),document.addEventListener("scroll",s),window.addEventListener("resize",p);var X={open:d,close:p,toggle:m,update:l,clone:a,attach:c,detach:h,on:u,off:f,getOptions:O,getImages:b,getZoomedImage:k};return X};function Xy(n,e){e===void 0&&(e={});var t=e.insertAt;if(!(!n||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}}var Dy=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Xy(Dy);const Ry=Ey;var Zy=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var e=document.activeElement,t=[],r=0;r<n.rangeCount;r++)t.push(n.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return n.removeAllRanges(),function(){n.type==="Caret"&&n.removeAllRanges(),n.rangeCount||t.forEach(function(i){n.addRange(i)}),e&&e.focus()}},qy=Zy,ju={"text/plain":"Text","text/html":"Url",default:"Text"},Ly="Copy to clipboard: #{key}, Enter";function Vy(n){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return n.replace(/#{\s*key\s*}/g,e)}function Iy(n,e){var t,r,i,s,o,l,a=!1;e||(e={}),t=e.debug||!1;try{i=qy(),s=document.createRange(),o=document.getSelection(),l=document.createElement("span"),l.textContent=n,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(h){if(h.stopPropagation(),e.format)if(h.preventDefault(),typeof h.clipboardData>"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var u=ju[e.format]||ju.default;window.clipboardData.setData(u,n)}else h.clipboardData.clearData(),h.clipboardData.setData(e.format,n);e.onCopy&&(h.preventDefault(),e.onCopy(h.clipboardData))}),document.body.appendChild(l),s.selectNodeContents(l),o.addRange(s);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");a=!0}catch(h){t&&console.error("unable to copy using execCommand: ",h),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",n),e.onCopy&&e.onCopy(window.clipboardData),a=!0}catch(u){t&&console.error("unable to copy using clipboardData: ",u),t&&console.error("falling back to prompt"),r=Vy("message"in e?e.message:Ly),window.prompt(r,n)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(s):o.removeAllRanges()),l&&document.body.removeChild(l),i()}return a}var My=Iy;const zy=ho(My);var ae={};const Uy="Á",By="á",Wy="Ă",Yy="ă",jy="∾",Ny="∿",Fy="∾̳",Gy="Â",Hy="â",Jy="´",Ky="А",ew="а",tw="Æ",nw="æ",rw="⁡",iw="𝔄",sw="𝔞",ow="À",lw="à",aw="ℵ",cw="ℵ",hw="Α",uw="α",fw="Ā",dw="ā",pw="⨿",mw="&",Ow="&",gw="⩕",bw="⩓",vw="∧",Sw="⩜",kw="⩘",yw="⩚",ww="∠",xw="⦤",Qw="∠",$w="⦨",_w="⦩",Pw="⦪",Cw="⦫",Aw="⦬",Tw="⦭",Ew="⦮",Xw="⦯",Dw="∡",Rw="∟",Zw="⊾",qw="⦝",Lw="∢",Vw="Å",Iw="⍼",Mw="Ą",zw="ą",Uw="𝔸",Bw="𝕒",Ww="⩯",Yw="≈",jw="⩰",Nw="≊",Fw="≋",Gw="'",Hw="⁡",Jw="≈",Kw="≊",ex="Å",tx="å",nx="𝒜",rx="𝒶",ix="≔",sx="*",ox="≈",lx="≍",ax="Ã",cx="ã",hx="Ä",ux="ä",fx="∳",dx="⨑",px="≌",mx="϶",Ox="‵",gx="∽",bx="⋍",vx="∖",Sx="⫧",kx="⊽",yx="⌅",wx="⌆",xx="⌅",Qx="⎵",$x="⎶",_x="≌",Px="Б",Cx="б",Ax="„",Tx="∵",Ex="∵",Xx="∵",Dx="⦰",Rx="϶",Zx="ℬ",qx="ℬ",Lx="Β",Vx="β",Ix="ℶ",Mx="≬",zx="𝔅",Ux="𝔟",Bx="⋂",Wx="◯",Yx="⋃",jx="⨀",Nx="⨁",Fx="⨂",Gx="⨆",Hx="★",Jx="▽",Kx="△",eQ="⨄",tQ="⋁",nQ="⋀",rQ="⤍",iQ="⧫",sQ="▪",oQ="▴",lQ="▾",aQ="◂",cQ="▸",hQ="␣",uQ="▒",fQ="░",dQ="▓",pQ="█",mQ="=⃥",OQ="≡⃥",gQ="⫭",bQ="⌐",vQ="𝔹",SQ="𝕓",kQ="⊥",yQ="⊥",wQ="⋈",xQ="⧉",QQ="┐",$Q="╕",_Q="╖",PQ="╗",CQ="┌",AQ="╒",TQ="╓",EQ="╔",XQ="─",DQ="═",RQ="┬",ZQ="╤",qQ="╥",LQ="╦",VQ="┴",IQ="╧",MQ="╨",zQ="╩",UQ="⊟",BQ="⊞",WQ="⊠",YQ="┘",jQ="╛",NQ="╜",FQ="╝",GQ="└",HQ="╘",JQ="╙",KQ="╚",e$="│",t$="║",n$="┼",r$="╪",i$="╫",s$="╬",o$="┤",l$="╡",a$="╢",c$="╣",h$="├",u$="╞",f$="╟",d$="╠",p$="‵",m$="˘",O$="˘",g$="¦",b$="𝒷",v$="ℬ",S$="⁏",k$="∽",y$="⋍",w$="⧅",x$="\\",Q$="⟈",$$="•",_$="•",P$="≎",C$="⪮",A$="≏",T$="≎",E$="≏",X$="Ć",D$="ć",R$="⩄",Z$="⩉",q$="⩋",L$="∩",V$="⋒",I$="⩇",M$="⩀",z$="ⅅ",U$="∩︀",B$="⁁",W$="ˇ",Y$="ℭ",j$="⩍",N$="Č",F$="č",G$="Ç",H$="ç",J$="Ĉ",K$="ĉ",e_="∰",t_="⩌",n_="⩐",r_="Ċ",i_="ċ",s_="¸",o_="¸",l_="⦲",a_="¢",c_="·",h_="·",u_="𝔠",f_="ℭ",d_="Ч",p_="ч",m_="✓",O_="✓",g_="Χ",b_="χ",v_="ˆ",S_="≗",k_="↺",y_="↻",w_="⊛",x_="⊚",Q_="⊝",$_="⊙",__="®",P_="Ⓢ",C_="⊖",A_="⊕",T_="⊗",E_="○",X_="⧃",D_="≗",R_="⨐",Z_="⫯",q_="⧂",L_="∲",V_="”",I_="’",M_="♣",z_="♣",U_=":",B_="∷",W_="⩴",Y_="≔",j_="≔",N_=",",F_="@",G_="∁",H_="∘",J_="∁",K_="ℂ",eP="≅",tP="⩭",nP="≡",rP="∮",iP="∯",sP="∮",oP="𝕔",lP="ℂ",aP="∐",cP="∐",hP="©",uP="©",fP="℗",dP="∳",pP="↵",mP="✗",OP="⨯",gP="𝒞",bP="𝒸",vP="⫏",SP="⫑",kP="⫐",yP="⫒",wP="⋯",xP="⤸",QP="⤵",$P="⋞",_P="⋟",PP="↶",CP="⤽",AP="⩈",TP="⩆",EP="≍",XP="∪",DP="⋓",RP="⩊",ZP="⊍",qP="⩅",LP="∪︀",VP="↷",IP="⤼",MP="⋞",zP="⋟",UP="⋎",BP="⋏",WP="¤",YP="↶",jP="↷",NP="⋎",FP="⋏",GP="∲",HP="∱",JP="⌭",KP="†",eC="‡",tC="ℸ",nC="↓",rC="↡",iC="⇓",sC="‐",oC="⫤",lC="⊣",aC="⤏",cC="˝",hC="Ď",uC="ď",fC="Д",dC="д",pC="‡",mC="⇊",OC="ⅅ",gC="ⅆ",bC="⤑",vC="⩷",SC="°",kC="∇",yC="Δ",wC="δ",xC="⦱",QC="⥿",$C="𝔇",_C="𝔡",PC="⥥",CC="⇃",AC="⇂",TC="´",EC="˙",XC="˝",DC="`",RC="˜",ZC="⋄",qC="⋄",LC="⋄",VC="♦",IC="♦",MC="¨",zC="ⅆ",UC="ϝ",BC="⋲",WC="÷",YC="÷",jC="⋇",NC="⋇",FC="Ђ",GC="ђ",HC="⌞",JC="⌍",KC="$",eA="𝔻",tA="𝕕",nA="¨",rA="˙",iA="⃜",sA="≐",oA="≑",lA="≐",aA="∸",cA="∔",hA="⊡",uA="⌆",fA="∯",dA="¨",pA="⇓",mA="⇐",OA="⇔",gA="⫤",bA="⟸",vA="⟺",SA="⟹",kA="⇒",yA="⊨",wA="⇑",xA="⇕",QA="∥",$A="⤓",_A="↓",PA="↓",CA="⇓",AA="⇵",TA="̑",EA="⇊",XA="⇃",DA="⇂",RA="⥐",ZA="⥞",qA="⥖",LA="↽",VA="⥟",IA="⥗",MA="⇁",zA="↧",UA="⊤",BA="⤐",WA="⌟",YA="⌌",jA="𝒟",NA="𝒹",FA="Ѕ",GA="ѕ",HA="⧶",JA="Đ",KA="đ",eT="⋱",tT="▿",nT="▾",rT="⇵",iT="⥯",sT="⦦",oT="Џ",lT="џ",aT="⟿",cT="É",hT="é",uT="⩮",fT="Ě",dT="ě",pT="Ê",mT="ê",OT="≖",gT="≕",bT="Э",vT="э",ST="⩷",kT="Ė",yT="ė",wT="≑",xT="ⅇ",QT="≒",$T="𝔈",_T="𝔢",PT="⪚",CT="È",AT="è",TT="⪖",ET="⪘",XT="⪙",DT="∈",RT="⏧",ZT="ℓ",qT="⪕",LT="⪗",VT="Ē",IT="ē",MT="∅",zT="∅",UT="◻",BT="∅",WT="▫",YT=" ",jT=" ",NT=" ",FT="Ŋ",GT="ŋ",HT=" ",JT="Ę",KT="ę",eE="𝔼",tE="𝕖",nE="⋕",rE="⧣",iE="⩱",sE="ε",oE="Ε",lE="ε",aE="ϵ",cE="≖",hE="≕",uE="≂",fE="⪖",dE="⪕",pE="⩵",mE="=",OE="≂",gE="≟",bE="⇌",vE="≡",SE="⩸",kE="⧥",yE="⥱",wE="≓",xE="ℯ",QE="ℰ",$E="≐",_E="⩳",PE="≂",CE="Η",AE="η",TE="Ð",EE="ð",XE="Ë",DE="ë",RE="€",ZE="!",qE="∃",LE="∃",VE="ℰ",IE="ⅇ",ME="ⅇ",zE="≒",UE="Ф",BE="ф",WE="♀",YE="ﬃ",jE="ﬀ",NE="ﬄ",FE="𝔉",GE="𝔣",HE="ﬁ",JE="◼",KE="▪",e2="fj",t2="♭",n2="ﬂ",r2="▱",i2="ƒ",s2="𝔽",o2="𝕗",l2="∀",a2="∀",c2="⋔",h2="⫙",u2="ℱ",f2="⨍",d2="½",p2="⅓",m2="¼",O2="⅕",g2="⅙",b2="⅛",v2="⅔",S2="⅖",k2="¾",y2="⅗",w2="⅜",x2="⅘",Q2="⅚",$2="⅝",_2="⅞",P2="⁄",C2="⌢",A2="𝒻",T2="ℱ",E2="ǵ",X2="Γ",D2="γ",R2="Ϝ",Z2="ϝ",q2="⪆",L2="Ğ",V2="ğ",I2="Ģ",M2="Ĝ",z2="ĝ",U2="Г",B2="г",W2="Ġ",Y2="ġ",j2="≥",N2="≧",F2="⪌",G2="⋛",H2="≥",J2="≧",K2="⩾",eX="⪩",tX="⩾",nX="⪀",rX="⪂",iX="⪄",sX="⋛︀",oX="⪔",lX="𝔊",aX="𝔤",cX="≫",hX="⋙",uX="⋙",fX="ℷ",dX="Ѓ",pX="ѓ",mX="⪥",OX="≷",gX="⪒",bX="⪤",vX="⪊",SX="⪊",kX="⪈",yX="≩",wX="⪈",xX="≩",QX="⋧",$X="𝔾",_X="𝕘",PX="`",CX="≥",AX="⋛",TX="≧",EX="⪢",XX="≷",DX="⩾",RX="≳",ZX="𝒢",qX="ℊ",LX="≳",VX="⪎",IX="⪐",MX="⪧",zX="⩺",UX=">",BX=">",WX="≫",YX="⋗",jX="⦕",NX="⩼",FX="⪆",GX="⥸",HX="⋗",JX="⋛",KX="⪌",eD="≷",tD="≳",nD="≩︀",rD="≩︀",iD="ˇ",sD=" ",oD="½",lD="ℋ",aD="Ъ",cD="ъ",hD="⥈",uD="↔",fD="⇔",dD="↭",pD="^",mD="ℏ",OD="Ĥ",gD="ĥ",bD="♥",vD="♥",SD="…",kD="⊹",yD="𝔥",wD="ℌ",xD="ℋ",QD="⤥",$D="⤦",_D="⇿",PD="∻",CD="↩",AD="↪",TD="𝕙",ED="ℍ",XD="―",DD="─",RD="𝒽",ZD="ℋ",qD="ℏ",LD="Ħ",VD="ħ",ID="≎",MD="≏",zD="⁃",UD="‐",BD="Í",WD="í",YD="⁣",jD="Î",ND="î",FD="И",GD="и",HD="İ",JD="Е",KD="е",eR="¡",tR="⇔",nR="𝔦",rR="ℑ",iR="Ì",sR="ì",oR="ⅈ",lR="⨌",aR="∭",cR="⧜",hR="℩",uR="Ĳ",fR="ĳ",dR="Ī",pR="ī",mR="ℑ",OR="ⅈ",gR="ℐ",bR="ℑ",vR="ı",SR="ℑ",kR="⊷",yR="Ƶ",wR="⇒",xR="℅",QR="∞",$R="⧝",_R="ı",PR="⊺",CR="∫",AR="∬",TR="ℤ",ER="∫",XR="⊺",DR="⋂",RR="⨗",ZR="⨼",qR="⁣",LR="⁢",VR="Ё",IR="ё",MR="Į",zR="į",UR="𝕀",BR="𝕚",WR="Ι",YR="ι",jR="⨼",NR="¿",FR="𝒾",GR="ℐ",HR="∈",JR="⋵",KR="⋹",eZ="⋴",tZ="⋳",nZ="∈",rZ="⁢",iZ="Ĩ",sZ="ĩ",oZ="І",lZ="і",aZ="Ï",cZ="ï",hZ="Ĵ",uZ="ĵ",fZ="Й",dZ="й",pZ="𝔍",mZ="𝔧",OZ="ȷ",gZ="𝕁",bZ="𝕛",vZ="𝒥",SZ="𝒿",kZ="Ј",yZ="ј",wZ="Є",xZ="є",QZ="Κ",$Z="κ",_Z="ϰ",PZ="Ķ",CZ="ķ",AZ="К",TZ="к",EZ="𝔎",XZ="𝔨",DZ="ĸ",RZ="Х",ZZ="х",qZ="Ќ",LZ="ќ",VZ="𝕂",IZ="𝕜",MZ="𝒦",zZ="𝓀",UZ="⇚",BZ="Ĺ",WZ="ĺ",YZ="⦴",jZ="ℒ",NZ="Λ",FZ="λ",GZ="⟨",HZ="⟪",JZ="⦑",KZ="⟨",eq="⪅",tq="ℒ",nq="«",rq="⇤",iq="⤟",sq="←",oq="↞",lq="⇐",aq="⤝",cq="↩",hq="↫",uq="⤹",fq="⥳",dq="↢",pq="⤙",mq="⤛",Oq="⪫",gq="⪭",bq="⪭︀",vq="⤌",Sq="⤎",kq="❲",yq="{",wq="[",xq="⦋",Qq="⦏",$q="⦍",_q="Ľ",Pq="ľ",Cq="Ļ",Aq="ļ",Tq="⌈",Eq="{",Xq="Л",Dq="л",Rq="⤶",Zq="“",qq="„",Lq="⥧",Vq="⥋",Iq="↲",Mq="≤",zq="≦",Uq="⟨",Bq="⇤",Wq="←",Yq="←",jq="⇐",Nq="⇆",Fq="↢",Gq="⌈",Hq="⟦",Jq="⥡",Kq="⥙",eL="⇃",tL="⌊",nL="↽",rL="↼",iL="⇇",sL="↔",oL="↔",lL="⇔",aL="⇆",cL="⇋",hL="↭",uL="⥎",fL="↤",dL="⊣",pL="⥚",mL="⋋",OL="⧏",gL="⊲",bL="⊴",vL="⥑",SL="⥠",kL="⥘",yL="↿",wL="⥒",xL="↼",QL="⪋",$L="⋚",_L="≤",PL="≦",CL="⩽",AL="⪨",TL="⩽",EL="⩿",XL="⪁",DL="⪃",RL="⋚︀",ZL="⪓",qL="⪅",LL="⋖",VL="⋚",IL="⪋",ML="⋚",zL="≦",UL="≶",BL="≶",WL="⪡",YL="≲",jL="⩽",NL="≲",FL="⥼",GL="⌊",HL="𝔏",JL="𝔩",KL="≶",eV="⪑",tV="⥢",nV="↽",rV="↼",iV="⥪",sV="▄",oV="Љ",lV="љ",aV="⇇",cV="≪",hV="⋘",uV="⌞",fV="⇚",dV="⥫",pV="◺",mV="Ŀ",OV="ŀ",gV="⎰",bV="⎰",vV="⪉",SV="⪉",kV="⪇",yV="≨",wV="⪇",xV="≨",QV="⋦",$V="⟬",_V="⇽",PV="⟦",CV="⟵",AV="⟵",TV="⟸",EV="⟷",XV="⟷",DV="⟺",RV="⟼",ZV="⟶",qV="⟶",LV="⟹",VV="↫",IV="↬",MV="⦅",zV="𝕃",UV="𝕝",BV="⨭",WV="⨴",YV="∗",jV="_",NV="↙",FV="↘",GV="◊",HV="◊",JV="⧫",KV="(",eI="⦓",tI="⇆",nI="⌟",rI="⇋",iI="⥭",sI="‎",oI="⊿",lI="‹",aI="𝓁",cI="ℒ",hI="↰",uI="↰",fI="≲",dI="⪍",pI="⪏",mI="[",OI="‘",gI="‚",bI="Ł",vI="ł",SI="⪦",kI="⩹",yI="<",wI="<",xI="≪",QI="⋖",$I="⋋",_I="⋉",PI="⥶",CI="⩻",AI="◃",TI="⊴",EI="◂",XI="⦖",DI="⥊",RI="⥦",ZI="≨︀",qI="≨︀",LI="¯",VI="♂",II="✠",MI="✠",zI="↦",UI="↦",BI="↧",WI="↤",YI="↥",jI="▮",NI="⨩",FI="М",GI="м",HI="—",JI="∺",KI="∡",e5=" ",t5="ℳ",n5="𝔐",r5="𝔪",i5="℧",s5="µ",o5="*",l5="⫰",a5="∣",c5="·",h5="⊟",u5="−",f5="∸",d5="⨪",p5="∓",m5="⫛",O5="…",g5="∓",b5="⊧",v5="𝕄",S5="𝕞",k5="∓",y5="𝓂",w5="ℳ",x5="∾",Q5="Μ",$5="μ",_5="⊸",P5="⊸",C5="∇",A5="Ń",T5="ń",E5="∠⃒",X5="≉",D5="⩰̸",R5="≋̸",Z5="ŉ",q5="≉",L5="♮",V5="ℕ",I5="♮",M5=" ",z5="≎̸",U5="≏̸",B5="⩃",W5="Ň",Y5="ň",j5="Ņ",N5="ņ",F5="≇",G5="⩭̸",H5="⩂",J5="Н",K5="н",eM="–",tM="⤤",nM="↗",rM="⇗",iM="↗",sM="≠",oM="≐̸",lM="​",aM="​",cM="​",hM="​",uM="≢",fM="⤨",dM="≂̸",pM="≫",mM="≪",OM=`
`,gM="∄",bM="∄",vM="𝔑",SM="𝔫",kM="≧̸",yM="≱",wM="≱",xM="≧̸",QM="⩾̸",$M="⩾̸",_M="⋙̸",PM="≵",CM="≫⃒",AM="≯",TM="≯",EM="≫̸",XM="↮",DM="⇎",RM="⫲",ZM="∋",qM="⋼",LM="⋺",VM="∋",IM="Њ",MM="њ",zM="↚",UM="⇍",BM="‥",WM="≦̸",YM="≰",jM="↚",NM="⇍",FM="↮",GM="⇎",HM="≰",JM="≦̸",KM="⩽̸",ez="⩽̸",tz="≮",nz="⋘̸",rz="≴",iz="≪⃒",sz="≮",oz="⋪",lz="⋬",az="≪̸",cz="∤",hz="⁠",uz=" ",fz="𝕟",dz="ℕ",pz="⫬",mz="¬",Oz="≢",gz="≭",bz="∦",vz="∉",Sz="≠",kz="≂̸",yz="∄",wz="≯",xz="≱",Qz="≧̸",$z="≫̸",_z="≹",Pz="⩾̸",Cz="≵",Az="≎̸",Tz="≏̸",Ez="∉",Xz="⋵̸",Dz="⋹̸",Rz="∉",Zz="⋷",qz="⋶",Lz="⧏̸",Vz="⋪",Iz="⋬",Mz="≮",zz="≰",Uz="≸",Bz="≪̸",Wz="⩽̸",Yz="≴",jz="⪢̸",Nz="⪡̸",Fz="∌",Gz="∌",Hz="⋾",Jz="⋽",Kz="⊀",eU="⪯̸",tU="⋠",nU="∌",rU="⧐̸",iU="⋫",sU="⋭",oU="⊏̸",lU="⋢",aU="⊐̸",cU="⋣",hU="⊂⃒",uU="⊈",fU="⊁",dU="⪰̸",pU="⋡",mU="≿̸",OU="⊃⃒",gU="⊉",bU="≁",vU="≄",SU="≇",kU="≉",yU="∤",wU="∦",xU="∦",QU="⫽⃥",$U="∂̸",_U="⨔",PU="⊀",CU="⋠",AU="⊀",TU="⪯̸",EU="⪯̸",XU="⤳̸",DU="↛",RU="⇏",ZU="↝̸",qU="↛",LU="⇏",VU="⋫",IU="⋭",MU="⊁",zU="⋡",UU="⪰̸",BU="𝒩",WU="𝓃",YU="∤",jU="∦",NU="≁",FU="≄",GU="≄",HU="∤",JU="∦",KU="⋢",eB="⋣",tB="⊄",nB="⫅̸",rB="⊈",iB="⊂⃒",sB="⊈",oB="⫅̸",lB="⊁",aB="⪰̸",cB="⊅",hB="⫆̸",uB="⊉",fB="⊃⃒",dB="⊉",pB="⫆̸",mB="≹",OB="Ñ",gB="ñ",bB="≸",vB="⋪",SB="⋬",kB="⋫",yB="⋭",wB="Ν",xB="ν",QB="#",$B="№",_B=" ",PB="≍⃒",CB="⊬",AB="⊭",TB="⊮",EB="⊯",XB="≥⃒",DB=">⃒",RB="⤄",ZB="⧞",qB="⤂",LB="≤⃒",VB="<⃒",IB="⊴⃒",MB="⤃",zB="⊵⃒",UB="∼⃒",BB="⤣",WB="↖",YB="⇖",jB="↖",NB="⤧",FB="Ó",GB="ó",HB="⊛",JB="Ô",KB="ô",e3="⊚",t3="О",n3="о",r3="⊝",i3="Ő",s3="ő",o3="⨸",l3="⊙",a3="⦼",c3="Œ",h3="œ",u3="⦿",f3="𝔒",d3="𝔬",p3="˛",m3="Ò",O3="ò",g3="⧁",b3="⦵",v3="Ω",S3="∮",k3="↺",y3="⦾",w3="⦻",x3="‾",Q3="⧀",$3="Ō",_3="ō",P3="Ω",C3="ω",A3="Ο",T3="ο",E3="⦶",X3="⊖",D3="𝕆",R3="𝕠",Z3="⦷",q3="“",L3="‘",V3="⦹",I3="⊕",M3="↻",z3="⩔",U3="∨",B3="⩝",W3="ℴ",Y3="ℴ",j3="ª",N3="º",F3="⊶",G3="⩖",H3="⩗",J3="⩛",K3="Ⓢ",eW="𝒪",tW="ℴ",nW="Ø",rW="ø",iW="⊘",sW="Õ",oW="õ",lW="⨶",aW="⨷",cW="⊗",hW="Ö",uW="ö",fW="⌽",dW="‾",pW="⏞",mW="⎴",OW="⏜",gW="¶",bW="∥",vW="∥",SW="⫳",kW="⫽",yW="∂",wW="∂",xW="П",QW="п",$W="%",_W=".",PW="‰",CW="⊥",AW="‱",TW="𝔓",EW="𝔭",XW="Φ",DW="φ",RW="ϕ",ZW="ℳ",qW="☎",LW="Π",VW="π",IW="⋔",MW="ϖ",zW="ℏ",UW="ℎ",BW="ℏ",WW="⨣",YW="⊞",jW="⨢",NW="+",FW="∔",GW="⨥",HW="⩲",JW="±",KW="±",e9="⨦",t9="⨧",n9="±",r9="ℌ",i9="⨕",s9="𝕡",o9="ℙ",l9="£",a9="⪷",c9="⪻",h9="≺",u9="≼",f9="⪷",d9="≺",p9="≼",m9="≺",O9="⪯",g9="≼",b9="≾",v9="⪯",S9="⪹",k9="⪵",y9="⋨",w9="⪯",x9="⪳",Q9="≾",$9="′",_9="″",P9="ℙ",C9="⪹",A9="⪵",T9="⋨",E9="∏",X9="∏",D9="⌮",R9="⌒",Z9="⌓",q9="∝",L9="∝",V9="∷",I9="∝",M9="≾",z9="⊰",U9="𝒫",B9="𝓅",W9="Ψ",Y9="ψ",j9=" ",N9="𝔔",F9="𝔮",G9="⨌",H9="𝕢",J9="ℚ",K9="⁗",eY="𝒬",tY="𝓆",nY="ℍ",rY="⨖",iY="?",sY="≟",oY='"',lY='"',aY="⇛",cY="∽̱",hY="Ŕ",uY="ŕ",fY="√",dY="⦳",pY="⟩",mY="⟫",OY="⦒",gY="⦥",bY="⟩",vY="»",SY="⥵",kY="⇥",yY="⤠",wY="⤳",xY="→",QY="↠",$Y="⇒",_Y="⤞",PY="↪",CY="↬",AY="⥅",TY="⥴",EY="⤖",XY="↣",DY="↝",RY="⤚",ZY="⤜",qY="∶",LY="ℚ",VY="⤍",IY="⤏",MY="⤐",zY="❳",UY="}",BY="]",WY="⦌",YY="⦎",jY="⦐",NY="Ř",FY="ř",GY="Ŗ",HY="ŗ",JY="⌉",KY="}",ej="Р",tj="р",nj="⤷",rj="⥩",ij="”",sj="”",oj="↳",lj="ℜ",aj="ℛ",cj="ℜ",hj="ℝ",uj="ℜ",fj="▭",dj="®",pj="®",mj="∋",Oj="⇋",gj="⥯",bj="⥽",vj="⌋",Sj="𝔯",kj="ℜ",yj="⥤",wj="⇁",xj="⇀",Qj="⥬",$j="Ρ",_j="ρ",Pj="ϱ",Cj="⟩",Aj="⇥",Tj="→",Ej="→",Xj="⇒",Dj="⇄",Rj="↣",Zj="⌉",qj="⟧",Lj="⥝",Vj="⥕",Ij="⇂",Mj="⌋",zj="⇁",Uj="⇀",Bj="⇄",Wj="⇌",Yj="⇉",jj="↝",Nj="↦",Fj="⊢",Gj="⥛",Hj="⋌",Jj="⧐",Kj="⊳",eN="⊵",tN="⥏",nN="⥜",rN="⥔",iN="↾",sN="⥓",oN="⇀",lN="˚",aN="≓",cN="⇄",hN="⇌",uN="‏",fN="⎱",dN="⎱",pN="⫮",mN="⟭",ON="⇾",gN="⟧",bN="⦆",vN="𝕣",SN="ℝ",kN="⨮",yN="⨵",wN="⥰",xN=")",QN="⦔",$N="⨒",_N="⇉",PN="⇛",CN="›",AN="𝓇",TN="ℛ",EN="↱",XN="↱",DN="]",RN="’",ZN="’",qN="⋌",LN="⋊",VN="▹",IN="⊵",MN="▸",zN="⧎",UN="⧴",BN="⥨",WN="℞",YN="Ś",jN="ś",NN="‚",FN="⪸",GN="Š",HN="š",JN="⪼",KN="≻",eF="≽",tF="⪰",nF="⪴",rF="Ş",iF="ş",sF="Ŝ",oF="ŝ",lF="⪺",aF="⪶",cF="⋩",hF="⨓",uF="≿",fF="С",dF="с",pF="⊡",mF="⋅",OF="⩦",gF="⤥",bF="↘",vF="⇘",SF="↘",kF="§",yF=";",wF="⤩",xF="∖",QF="∖",$F="✶",_F="𝔖",PF="𝔰",CF="⌢",AF="♯",TF="Щ",EF="щ",XF="Ш",DF="ш",RF="↓",ZF="←",qF="∣",LF="∥",VF="→",IF="↑",MF="­",zF="Σ",UF="σ",BF="ς",WF="ς",YF="∼",jF="⩪",NF="≃",FF="≃",GF="⪞",HF="⪠",JF="⪝",KF="⪟",e4="≆",t4="⨤",n4="⥲",r4="←",i4="∘",s4="∖",o4="⨳",l4="⧤",a4="∣",c4="⌣",h4="⪪",u4="⪬",f4="⪬︀",d4="Ь",p4="ь",m4="⌿",O4="⧄",g4="/",b4="𝕊",v4="𝕤",S4="♠",k4="♠",y4="∥",w4="⊓",x4="⊓︀",Q4="⊔",$4="⊔︀",_4="√",P4="⊏",C4="⊑",A4="⊏",T4="⊑",E4="⊐",X4="⊒",D4="⊐",R4="⊒",Z4="□",q4="□",L4="⊓",V4="⊏",I4="⊑",M4="⊐",z4="⊒",U4="⊔",B4="▪",W4="□",Y4="▪",j4="→",N4="𝒮",F4="𝓈",G4="∖",H4="⌣",J4="⋆",K4="⋆",eG="☆",tG="★",nG="ϵ",rG="ϕ",iG="¯",sG="⊂",oG="⋐",lG="⪽",aG="⫅",cG="⊆",hG="⫃",uG="⫁",fG="⫋",dG="⊊",pG="⪿",mG="⥹",OG="⊂",gG="⋐",bG="⊆",vG="⫅",SG="⊆",kG="⊊",yG="⫋",wG="⫇",xG="⫕",QG="⫓",$G="⪸",_G="≻",PG="≽",CG="≻",AG="⪰",TG="≽",EG="≿",XG="⪰",DG="⪺",RG="⪶",ZG="⋩",qG="≿",LG="∋",VG="∑",IG="∑",MG="♪",zG="¹",UG="²",BG="³",WG="⊃",YG="⋑",jG="⪾",NG="⫘",FG="⫆",GG="⊇",HG="⫄",JG="⊃",KG="⊇",e7="⟉",t7="⫗",n7="⥻",r7="⫂",i7="⫌",s7="⊋",o7="⫀",l7="⊃",a7="⋑",c7="⊇",h7="⫆",u7="⊋",f7="⫌",d7="⫈",p7="⫔",m7="⫖",O7="⤦",g7="↙",b7="⇙",v7="↙",S7="⤪",k7="ß",y7="	",w7="⌖",x7="Τ",Q7="τ",$7="⎴",_7="Ť",P7="ť",C7="Ţ",A7="ţ",T7="Т",E7="т",X7="⃛",D7="⌕",R7="𝔗",Z7="𝔱",q7="∴",L7="∴",V7="∴",I7="Θ",M7="θ",z7="ϑ",U7="ϑ",B7="≈",W7="∼",Y7="  ",j7=" ",N7=" ",F7="≈",G7="∼",H7="Þ",J7="þ",K7="˜",e8="∼",t8="≃",n8="≅",r8="≈",i8="⨱",s8="⊠",o8="×",l8="⨰",a8="∭",c8="⤨",h8="⌶",u8="⫱",f8="⊤",d8="𝕋",p8="𝕥",m8="⫚",O8="⤩",g8="‴",b8="™",v8="™",S8="▵",k8="▿",y8="◃",w8="⊴",x8="≜",Q8="▹",$8="⊵",_8="◬",P8="≜",C8="⨺",A8="⃛",T8="⨹",E8="⧍",X8="⨻",D8="⏢",R8="𝒯",Z8="𝓉",q8="Ц",L8="ц",V8="Ћ",I8="ћ",M8="Ŧ",z8="ŧ",U8="≬",B8="↞",W8="↠",Y8="Ú",j8="ú",N8="↑",F8="↟",G8="⇑",H8="⥉",J8="Ў",K8="ў",e6="Ŭ",t6="ŭ",n6="Û",r6="û",i6="У",s6="у",o6="⇅",l6="Ű",a6="ű",c6="⥮",h6="⥾",u6="𝔘",f6="𝔲",d6="Ù",p6="ù",m6="⥣",O6="↿",g6="↾",b6="▀",v6="⌜",S6="⌜",k6="⌏",y6="◸",w6="Ū",x6="ū",Q6="¨",$6="_",_6="⏟",P6="⎵",C6="⏝",A6="⋃",T6="⊎",E6="Ų",X6="ų",D6="𝕌",R6="𝕦",Z6="⤒",q6="↑",L6="↑",V6="⇑",I6="⇅",M6="↕",z6="↕",U6="⇕",B6="⥮",W6="↿",Y6="↾",j6="⊎",N6="↖",F6="↗",G6="υ",H6="ϒ",J6="ϒ",K6="Υ",eH="υ",tH="↥",nH="⊥",rH="⇈",iH="⌝",sH="⌝",oH="⌎",lH="Ů",aH="ů",cH="◹",hH="𝒰",uH="𝓊",fH="⋰",dH="Ũ",pH="ũ",mH="▵",OH="▴",gH="⇈",bH="Ü",vH="ü",SH="⦧",kH="⦜",yH="ϵ",wH="ϰ",xH="∅",QH="ϕ",$H="ϖ",_H="∝",PH="↕",CH="⇕",AH="ϱ",TH="ς",EH="⊊︀",XH="⫋︀",DH="⊋︀",RH="⫌︀",ZH="ϑ",qH="⊲",LH="⊳",VH="⫨",IH="⫫",MH="⫩",zH="В",UH="в",BH="⊢",WH="⊨",YH="⊩",jH="⊫",NH="⫦",FH="⊻",GH="∨",HH="⋁",JH="≚",KH="⋮",eJ="|",tJ="‖",nJ="|",rJ="‖",iJ="∣",sJ="|",oJ="❘",lJ="≀",aJ=" ",cJ="𝔙",hJ="𝔳",uJ="⊲",fJ="⊂⃒",dJ="⊃⃒",pJ="𝕍",mJ="𝕧",OJ="∝",gJ="⊳",bJ="𝒱",vJ="𝓋",SJ="⫋︀",kJ="⊊︀",yJ="⫌︀",wJ="⊋︀",xJ="⊪",QJ="⦚",$J="Ŵ",_J="ŵ",PJ="⩟",CJ="∧",AJ="⋀",TJ="≙",EJ="℘",XJ="𝔚",DJ="𝔴",RJ="𝕎",ZJ="𝕨",qJ="℘",LJ="≀",VJ="≀",IJ="𝒲",MJ="𝓌",zJ="⋂",UJ="◯",BJ="⋃",WJ="▽",YJ="𝔛",jJ="𝔵",NJ="⟷",FJ="⟺",GJ="Ξ",HJ="ξ",JJ="⟵",KJ="⟸",eK="⟼",tK="⋻",nK="⨀",rK="𝕏",iK="𝕩",sK="⨁",oK="⨂",lK="⟶",aK="⟹",cK="𝒳",hK="𝓍",uK="⨆",fK="⨄",dK="△",pK="⋁",mK="⋀",OK="Ý",gK="ý",bK="Я",vK="я",SK="Ŷ",kK="ŷ",yK="Ы",wK="ы",xK="¥",QK="𝔜",$K="𝔶",_K="Ї",PK="ї",CK="𝕐",AK="𝕪",TK="𝒴",EK="𝓎",XK="Ю",DK="ю",RK="ÿ",ZK="Ÿ",qK="Ź",LK="ź",VK="Ž",IK="ž",MK="З",zK="з",UK="Ż",BK="ż",WK="ℨ",YK="​",jK="Ζ",NK="ζ",FK="𝔷",GK="ℨ",HK="Ж",JK="ж",KK="⇝",eee="𝕫",tee="ℤ",nee="𝒵",ree="𝓏",iee="‍",see="‌",oee={Aacute:Uy,aacute:By,Abreve:Wy,abreve:Yy,ac:jy,acd:Ny,acE:Fy,Acirc:Gy,acirc:Hy,acute:Jy,Acy:Ky,acy:ew,AElig:tw,aelig:nw,af:rw,Afr:iw,afr:sw,Agrave:ow,agrave:lw,alefsym:aw,aleph:cw,Alpha:hw,alpha:uw,Amacr:fw,amacr:dw,amalg:pw,amp:mw,AMP:Ow,andand:gw,And:bw,and:vw,andd:Sw,andslope:kw,andv:yw,ang:ww,ange:xw,angle:Qw,angmsdaa:$w,angmsdab:_w,angmsdac:Pw,angmsdad:Cw,angmsdae:Aw,angmsdaf:Tw,angmsdag:Ew,angmsdah:Xw,angmsd:Dw,angrt:Rw,angrtvb:Zw,angrtvbd:qw,angsph:Lw,angst:Vw,angzarr:Iw,Aogon:Mw,aogon:zw,Aopf:Uw,aopf:Bw,apacir:Ww,ap:Yw,apE:jw,ape:Nw,apid:Fw,apos:Gw,ApplyFunction:Hw,approx:Jw,approxeq:Kw,Aring:ex,aring:tx,Ascr:nx,ascr:rx,Assign:ix,ast:sx,asymp:ox,asympeq:lx,Atilde:ax,atilde:cx,Auml:hx,auml:ux,awconint:fx,awint:dx,backcong:px,backepsilon:mx,backprime:Ox,backsim:gx,backsimeq:bx,Backslash:vx,Barv:Sx,barvee:kx,barwed:yx,Barwed:wx,barwedge:xx,bbrk:Qx,bbrktbrk:$x,bcong:_x,Bcy:Px,bcy:Cx,bdquo:Ax,becaus:Tx,because:Ex,Because:Xx,bemptyv:Dx,bepsi:Rx,bernou:Zx,Bernoullis:qx,Beta:Lx,beta:Vx,beth:Ix,between:Mx,Bfr:zx,bfr:Ux,bigcap:Bx,bigcirc:Wx,bigcup:Yx,bigodot:jx,bigoplus:Nx,bigotimes:Fx,bigsqcup:Gx,bigstar:Hx,bigtriangledown:Jx,bigtriangleup:Kx,biguplus:eQ,bigvee:tQ,bigwedge:nQ,bkarow:rQ,blacklozenge:iQ,blacksquare:sQ,blacktriangle:oQ,blacktriangledown:lQ,blacktriangleleft:aQ,blacktriangleright:cQ,blank:hQ,blk12:uQ,blk14:fQ,blk34:dQ,block:pQ,bne:mQ,bnequiv:OQ,bNot:gQ,bnot:bQ,Bopf:vQ,bopf:SQ,bot:kQ,bottom:yQ,bowtie:wQ,boxbox:xQ,boxdl:QQ,boxdL:$Q,boxDl:_Q,boxDL:PQ,boxdr:CQ,boxdR:AQ,boxDr:TQ,boxDR:EQ,boxh:XQ,boxH:DQ,boxhd:RQ,boxHd:ZQ,boxhD:qQ,boxHD:LQ,boxhu:VQ,boxHu:IQ,boxhU:MQ,boxHU:zQ,boxminus:UQ,boxplus:BQ,boxtimes:WQ,boxul:YQ,boxuL:jQ,boxUl:NQ,boxUL:FQ,boxur:GQ,boxuR:HQ,boxUr:JQ,boxUR:KQ,boxv:e$,boxV:t$,boxvh:n$,boxvH:r$,boxVh:i$,boxVH:s$,boxvl:o$,boxvL:l$,boxVl:a$,boxVL:c$,boxvr:h$,boxvR:u$,boxVr:f$,boxVR:d$,bprime:p$,breve:m$,Breve:O$,brvbar:g$,bscr:b$,Bscr:v$,bsemi:S$,bsim:k$,bsime:y$,bsolb:w$,bsol:x$,bsolhsub:Q$,bull:$$,bullet:_$,bump:P$,bumpE:C$,bumpe:A$,Bumpeq:T$,bumpeq:E$,Cacute:X$,cacute:D$,capand:R$,capbrcup:Z$,capcap:q$,cap:L$,Cap:V$,capcup:I$,capdot:M$,CapitalDifferentialD:z$,caps:U$,caret:B$,caron:W$,Cayleys:Y$,ccaps:j$,Ccaron:N$,ccaron:F$,Ccedil:G$,ccedil:H$,Ccirc:J$,ccirc:K$,Cconint:e_,ccups:t_,ccupssm:n_,Cdot:r_,cdot:i_,cedil:s_,Cedilla:o_,cemptyv:l_,cent:a_,centerdot:c_,CenterDot:h_,cfr:u_,Cfr:f_,CHcy:d_,chcy:p_,check:m_,checkmark:O_,Chi:g_,chi:b_,circ:v_,circeq:S_,circlearrowleft:k_,circlearrowright:y_,circledast:w_,circledcirc:x_,circleddash:Q_,CircleDot:$_,circledR:__,circledS:P_,CircleMinus:C_,CirclePlus:A_,CircleTimes:T_,cir:E_,cirE:X_,cire:D_,cirfnint:R_,cirmid:Z_,cirscir:q_,ClockwiseContourIntegral:L_,CloseCurlyDoubleQuote:V_,CloseCurlyQuote:I_,clubs:M_,clubsuit:z_,colon:U_,Colon:B_,Colone:W_,colone:Y_,coloneq:j_,comma:N_,commat:F_,comp:G_,compfn:H_,complement:J_,complexes:K_,cong:eP,congdot:tP,Congruent:nP,conint:rP,Conint:iP,ContourIntegral:sP,copf:oP,Copf:lP,coprod:aP,Coproduct:cP,copy:hP,COPY:uP,copysr:fP,CounterClockwiseContourIntegral:dP,crarr:pP,cross:mP,Cross:OP,Cscr:gP,cscr:bP,csub:vP,csube:SP,csup:kP,csupe:yP,ctdot:wP,cudarrl:xP,cudarrr:QP,cuepr:$P,cuesc:_P,cularr:PP,cularrp:CP,cupbrcap:AP,cupcap:TP,CupCap:EP,cup:XP,Cup:DP,cupcup:RP,cupdot:ZP,cupor:qP,cups:LP,curarr:VP,curarrm:IP,curlyeqprec:MP,curlyeqsucc:zP,curlyvee:UP,curlywedge:BP,curren:WP,curvearrowleft:YP,curvearrowright:jP,cuvee:NP,cuwed:FP,cwconint:GP,cwint:HP,cylcty:JP,dagger:KP,Dagger:eC,daleth:tC,darr:nC,Darr:rC,dArr:iC,dash:sC,Dashv:oC,dashv:lC,dbkarow:aC,dblac:cC,Dcaron:hC,dcaron:uC,Dcy:fC,dcy:dC,ddagger:pC,ddarr:mC,DD:OC,dd:gC,DDotrahd:bC,ddotseq:vC,deg:SC,Del:kC,Delta:yC,delta:wC,demptyv:xC,dfisht:QC,Dfr:$C,dfr:_C,dHar:PC,dharl:CC,dharr:AC,DiacriticalAcute:TC,DiacriticalDot:EC,DiacriticalDoubleAcute:XC,DiacriticalGrave:DC,DiacriticalTilde:RC,diam:ZC,diamond:qC,Diamond:LC,diamondsuit:VC,diams:IC,die:MC,DifferentialD:zC,digamma:UC,disin:BC,div:WC,divide:YC,divideontimes:jC,divonx:NC,DJcy:FC,djcy:GC,dlcorn:HC,dlcrop:JC,dollar:KC,Dopf:eA,dopf:tA,Dot:nA,dot:rA,DotDot:iA,doteq:sA,doteqdot:oA,DotEqual:lA,dotminus:aA,dotplus:cA,dotsquare:hA,doublebarwedge:uA,DoubleContourIntegral:fA,DoubleDot:dA,DoubleDownArrow:pA,DoubleLeftArrow:mA,DoubleLeftRightArrow:OA,DoubleLeftTee:gA,DoubleLongLeftArrow:bA,DoubleLongLeftRightArrow:vA,DoubleLongRightArrow:SA,DoubleRightArrow:kA,DoubleRightTee:yA,DoubleUpArrow:wA,DoubleUpDownArrow:xA,DoubleVerticalBar:QA,DownArrowBar:$A,downarrow:_A,DownArrow:PA,Downarrow:CA,DownArrowUpArrow:AA,DownBreve:TA,downdownarrows:EA,downharpoonleft:XA,downharpoonright:DA,DownLeftRightVector:RA,DownLeftTeeVector:ZA,DownLeftVectorBar:qA,DownLeftVector:LA,DownRightTeeVector:VA,DownRightVectorBar:IA,DownRightVector:MA,DownTeeArrow:zA,DownTee:UA,drbkarow:BA,drcorn:WA,drcrop:YA,Dscr:jA,dscr:NA,DScy:FA,dscy:GA,dsol:HA,Dstrok:JA,dstrok:KA,dtdot:eT,dtri:tT,dtrif:nT,duarr:rT,duhar:iT,dwangle:sT,DZcy:oT,dzcy:lT,dzigrarr:aT,Eacute:cT,eacute:hT,easter:uT,Ecaron:fT,ecaron:dT,Ecirc:pT,ecirc:mT,ecir:OT,ecolon:gT,Ecy:bT,ecy:vT,eDDot:ST,Edot:kT,edot:yT,eDot:wT,ee:xT,efDot:QT,Efr:$T,efr:_T,eg:PT,Egrave:CT,egrave:AT,egs:TT,egsdot:ET,el:XT,Element:DT,elinters:RT,ell:ZT,els:qT,elsdot:LT,Emacr:VT,emacr:IT,empty:MT,emptyset:zT,EmptySmallSquare:UT,emptyv:BT,EmptyVerySmallSquare:WT,emsp13:YT,emsp14:jT,emsp:NT,ENG:FT,eng:GT,ensp:HT,Eogon:JT,eogon:KT,Eopf:eE,eopf:tE,epar:nE,eparsl:rE,eplus:iE,epsi:sE,Epsilon:oE,epsilon:lE,epsiv:aE,eqcirc:cE,eqcolon:hE,eqsim:uE,eqslantgtr:fE,eqslantless:dE,Equal:pE,equals:mE,EqualTilde:OE,equest:gE,Equilibrium:bE,equiv:vE,equivDD:SE,eqvparsl:kE,erarr:yE,erDot:wE,escr:xE,Escr:QE,esdot:$E,Esim:_E,esim:PE,Eta:CE,eta:AE,ETH:TE,eth:EE,Euml:XE,euml:DE,euro:RE,excl:ZE,exist:qE,Exists:LE,expectation:VE,exponentiale:IE,ExponentialE:ME,fallingdotseq:zE,Fcy:UE,fcy:BE,female:WE,ffilig:YE,fflig:jE,ffllig:NE,Ffr:FE,ffr:GE,filig:HE,FilledSmallSquare:JE,FilledVerySmallSquare:KE,fjlig:e2,flat:t2,fllig:n2,fltns:r2,fnof:i2,Fopf:s2,fopf:o2,forall:l2,ForAll:a2,fork:c2,forkv:h2,Fouriertrf:u2,fpartint:f2,frac12:d2,frac13:p2,frac14:m2,frac15:O2,frac16:g2,frac18:b2,frac23:v2,frac25:S2,frac34:k2,frac35:y2,frac38:w2,frac45:x2,frac56:Q2,frac58:$2,frac78:_2,frasl:P2,frown:C2,fscr:A2,Fscr:T2,gacute:E2,Gamma:X2,gamma:D2,Gammad:R2,gammad:Z2,gap:q2,Gbreve:L2,gbreve:V2,Gcedil:I2,Gcirc:M2,gcirc:z2,Gcy:U2,gcy:B2,Gdot:W2,gdot:Y2,ge:j2,gE:N2,gEl:F2,gel:G2,geq:H2,geqq:J2,geqslant:K2,gescc:eX,ges:tX,gesdot:nX,gesdoto:rX,gesdotol:iX,gesl:sX,gesles:oX,Gfr:lX,gfr:aX,gg:cX,Gg:hX,ggg:uX,gimel:fX,GJcy:dX,gjcy:pX,gla:mX,gl:OX,glE:gX,glj:bX,gnap:vX,gnapprox:SX,gne:kX,gnE:yX,gneq:wX,gneqq:xX,gnsim:QX,Gopf:$X,gopf:_X,grave:PX,GreaterEqual:CX,GreaterEqualLess:AX,GreaterFullEqual:TX,GreaterGreater:EX,GreaterLess:XX,GreaterSlantEqual:DX,GreaterTilde:RX,Gscr:ZX,gscr:qX,gsim:LX,gsime:VX,gsiml:IX,gtcc:MX,gtcir:zX,gt:UX,GT:BX,Gt:WX,gtdot:YX,gtlPar:jX,gtquest:NX,gtrapprox:FX,gtrarr:GX,gtrdot:HX,gtreqless:JX,gtreqqless:KX,gtrless:eD,gtrsim:tD,gvertneqq:nD,gvnE:rD,Hacek:iD,hairsp:sD,half:oD,hamilt:lD,HARDcy:aD,hardcy:cD,harrcir:hD,harr:uD,hArr:fD,harrw:dD,Hat:pD,hbar:mD,Hcirc:OD,hcirc:gD,hearts:bD,heartsuit:vD,hellip:SD,hercon:kD,hfr:yD,Hfr:wD,HilbertSpace:xD,hksearow:QD,hkswarow:$D,hoarr:_D,homtht:PD,hookleftarrow:CD,hookrightarrow:AD,hopf:TD,Hopf:ED,horbar:XD,HorizontalLine:DD,hscr:RD,Hscr:ZD,hslash:qD,Hstrok:LD,hstrok:VD,HumpDownHump:ID,HumpEqual:MD,hybull:zD,hyphen:UD,Iacute:BD,iacute:WD,ic:YD,Icirc:jD,icirc:ND,Icy:FD,icy:GD,Idot:HD,IEcy:JD,iecy:KD,iexcl:eR,iff:tR,ifr:nR,Ifr:rR,Igrave:iR,igrave:sR,ii:oR,iiiint:lR,iiint:aR,iinfin:cR,iiota:hR,IJlig:uR,ijlig:fR,Imacr:dR,imacr:pR,image:mR,ImaginaryI:OR,imagline:gR,imagpart:bR,imath:vR,Im:SR,imof:kR,imped:yR,Implies:wR,incare:xR,in:"∈",infin:QR,infintie:$R,inodot:_R,intcal:PR,int:CR,Int:AR,integers:TR,Integral:ER,intercal:XR,Intersection:DR,intlarhk:RR,intprod:ZR,InvisibleComma:qR,InvisibleTimes:LR,IOcy:VR,iocy:IR,Iogon:MR,iogon:zR,Iopf:UR,iopf:BR,Iota:WR,iota:YR,iprod:jR,iquest:NR,iscr:FR,Iscr:GR,isin:HR,isindot:JR,isinE:KR,isins:eZ,isinsv:tZ,isinv:nZ,it:rZ,Itilde:iZ,itilde:sZ,Iukcy:oZ,iukcy:lZ,Iuml:aZ,iuml:cZ,Jcirc:hZ,jcirc:uZ,Jcy:fZ,jcy:dZ,Jfr:pZ,jfr:mZ,jmath:OZ,Jopf:gZ,jopf:bZ,Jscr:vZ,jscr:SZ,Jsercy:kZ,jsercy:yZ,Jukcy:wZ,jukcy:xZ,Kappa:QZ,kappa:$Z,kappav:_Z,Kcedil:PZ,kcedil:CZ,Kcy:AZ,kcy:TZ,Kfr:EZ,kfr:XZ,kgreen:DZ,KHcy:RZ,khcy:ZZ,KJcy:qZ,kjcy:LZ,Kopf:VZ,kopf:IZ,Kscr:MZ,kscr:zZ,lAarr:UZ,Lacute:BZ,lacute:WZ,laemptyv:YZ,lagran:jZ,Lambda:NZ,lambda:FZ,lang:GZ,Lang:HZ,langd:JZ,langle:KZ,lap:eq,Laplacetrf:tq,laquo:nq,larrb:rq,larrbfs:iq,larr:sq,Larr:oq,lArr:lq,larrfs:aq,larrhk:cq,larrlp:hq,larrpl:uq,larrsim:fq,larrtl:dq,latail:pq,lAtail:mq,lat:Oq,late:gq,lates:bq,lbarr:vq,lBarr:Sq,lbbrk:kq,lbrace:yq,lbrack:wq,lbrke:xq,lbrksld:Qq,lbrkslu:$q,Lcaron:_q,lcaron:Pq,Lcedil:Cq,lcedil:Aq,lceil:Tq,lcub:Eq,Lcy:Xq,lcy:Dq,ldca:Rq,ldquo:Zq,ldquor:qq,ldrdhar:Lq,ldrushar:Vq,ldsh:Iq,le:Mq,lE:zq,LeftAngleBracket:Uq,LeftArrowBar:Bq,leftarrow:Wq,LeftArrow:Yq,Leftarrow:jq,LeftArrowRightArrow:Nq,leftarrowtail:Fq,LeftCeiling:Gq,LeftDoubleBracket:Hq,LeftDownTeeVector:Jq,LeftDownVectorBar:Kq,LeftDownVector:eL,LeftFloor:tL,leftharpoondown:nL,leftharpoonup:rL,leftleftarrows:iL,leftrightarrow:sL,LeftRightArrow:oL,Leftrightarrow:lL,leftrightarrows:aL,leftrightharpoons:cL,leftrightsquigarrow:hL,LeftRightVector:uL,LeftTeeArrow:fL,LeftTee:dL,LeftTeeVector:pL,leftthreetimes:mL,LeftTriangleBar:OL,LeftTriangle:gL,LeftTriangleEqual:bL,LeftUpDownVector:vL,LeftUpTeeVector:SL,LeftUpVectorBar:kL,LeftUpVector:yL,LeftVectorBar:wL,LeftVector:xL,lEg:QL,leg:$L,leq:_L,leqq:PL,leqslant:CL,lescc:AL,les:TL,lesdot:EL,lesdoto:XL,lesdotor:DL,lesg:RL,lesges:ZL,lessapprox:qL,lessdot:LL,lesseqgtr:VL,lesseqqgtr:IL,LessEqualGreater:ML,LessFullEqual:zL,LessGreater:UL,lessgtr:BL,LessLess:WL,lesssim:YL,LessSlantEqual:jL,LessTilde:NL,lfisht:FL,lfloor:GL,Lfr:HL,lfr:JL,lg:KL,lgE:eV,lHar:tV,lhard:nV,lharu:rV,lharul:iV,lhblk:sV,LJcy:oV,ljcy:lV,llarr:aV,ll:cV,Ll:hV,llcorner:uV,Lleftarrow:fV,llhard:dV,lltri:pV,Lmidot:mV,lmidot:OV,lmoustache:gV,lmoust:bV,lnap:vV,lnapprox:SV,lne:kV,lnE:yV,lneq:wV,lneqq:xV,lnsim:QV,loang:$V,loarr:_V,lobrk:PV,longleftarrow:CV,LongLeftArrow:AV,Longleftarrow:TV,longleftrightarrow:EV,LongLeftRightArrow:XV,Longleftrightarrow:DV,longmapsto:RV,longrightarrow:ZV,LongRightArrow:qV,Longrightarrow:LV,looparrowleft:VV,looparrowright:IV,lopar:MV,Lopf:zV,lopf:UV,loplus:BV,lotimes:WV,lowast:YV,lowbar:jV,LowerLeftArrow:NV,LowerRightArrow:FV,loz:GV,lozenge:HV,lozf:JV,lpar:KV,lparlt:eI,lrarr:tI,lrcorner:nI,lrhar:rI,lrhard:iI,lrm:sI,lrtri:oI,lsaquo:lI,lscr:aI,Lscr:cI,lsh:hI,Lsh:uI,lsim:fI,lsime:dI,lsimg:pI,lsqb:mI,lsquo:OI,lsquor:gI,Lstrok:bI,lstrok:vI,ltcc:SI,ltcir:kI,lt:yI,LT:wI,Lt:xI,ltdot:QI,lthree:$I,ltimes:_I,ltlarr:PI,ltquest:CI,ltri:AI,ltrie:TI,ltrif:EI,ltrPar:XI,lurdshar:DI,luruhar:RI,lvertneqq:ZI,lvnE:qI,macr:LI,male:VI,malt:II,maltese:MI,Map:"⤅",map:zI,mapsto:UI,mapstodown:BI,mapstoleft:WI,mapstoup:YI,marker:jI,mcomma:NI,Mcy:FI,mcy:GI,mdash:HI,mDDot:JI,measuredangle:KI,MediumSpace:e5,Mellintrf:t5,Mfr:n5,mfr:r5,mho:i5,micro:s5,midast:o5,midcir:l5,mid:a5,middot:c5,minusb:h5,minus:u5,minusd:f5,minusdu:d5,MinusPlus:p5,mlcp:m5,mldr:O5,mnplus:g5,models:b5,Mopf:v5,mopf:S5,mp:k5,mscr:y5,Mscr:w5,mstpos:x5,Mu:Q5,mu:$5,multimap:_5,mumap:P5,nabla:C5,Nacute:A5,nacute:T5,nang:E5,nap:X5,napE:D5,napid:R5,napos:Z5,napprox:q5,natural:L5,naturals:V5,natur:I5,nbsp:M5,nbump:z5,nbumpe:U5,ncap:B5,Ncaron:W5,ncaron:Y5,Ncedil:j5,ncedil:N5,ncong:F5,ncongdot:G5,ncup:H5,Ncy:J5,ncy:K5,ndash:eM,nearhk:tM,nearr:nM,neArr:rM,nearrow:iM,ne:sM,nedot:oM,NegativeMediumSpace:lM,NegativeThickSpace:aM,NegativeThinSpace:cM,NegativeVeryThinSpace:hM,nequiv:uM,nesear:fM,nesim:dM,NestedGreaterGreater:pM,NestedLessLess:mM,NewLine:OM,nexist:gM,nexists:bM,Nfr:vM,nfr:SM,ngE:kM,nge:yM,ngeq:wM,ngeqq:xM,ngeqslant:QM,nges:$M,nGg:_M,ngsim:PM,nGt:CM,ngt:AM,ngtr:TM,nGtv:EM,nharr:XM,nhArr:DM,nhpar:RM,ni:ZM,nis:qM,nisd:LM,niv:VM,NJcy:IM,njcy:MM,nlarr:zM,nlArr:UM,nldr:BM,nlE:WM,nle:YM,nleftarrow:jM,nLeftarrow:NM,nleftrightarrow:FM,nLeftrightarrow:GM,nleq:HM,nleqq:JM,nleqslant:KM,nles:ez,nless:tz,nLl:nz,nlsim:rz,nLt:iz,nlt:sz,nltri:oz,nltrie:lz,nLtv:az,nmid:cz,NoBreak:hz,NonBreakingSpace:uz,nopf:fz,Nopf:dz,Not:pz,not:mz,NotCongruent:Oz,NotCupCap:gz,NotDoubleVerticalBar:bz,NotElement:vz,NotEqual:Sz,NotEqualTilde:kz,NotExists:yz,NotGreater:wz,NotGreaterEqual:xz,NotGreaterFullEqual:Qz,NotGreaterGreater:$z,NotGreaterLess:_z,NotGreaterSlantEqual:Pz,NotGreaterTilde:Cz,NotHumpDownHump:Az,NotHumpEqual:Tz,notin:Ez,notindot:Xz,notinE:Dz,notinva:Rz,notinvb:Zz,notinvc:qz,NotLeftTriangleBar:Lz,NotLeftTriangle:Vz,NotLeftTriangleEqual:Iz,NotLess:Mz,NotLessEqual:zz,NotLessGreater:Uz,NotLessLess:Bz,NotLessSlantEqual:Wz,NotLessTilde:Yz,NotNestedGreaterGreater:jz,NotNestedLessLess:Nz,notni:Fz,notniva:Gz,notnivb:Hz,notnivc:Jz,NotPrecedes:Kz,NotPrecedesEqual:eU,NotPrecedesSlantEqual:tU,NotReverseElement:nU,NotRightTriangleBar:rU,NotRightTriangle:iU,NotRightTriangleEqual:sU,NotSquareSubset:oU,NotSquareSubsetEqual:lU,NotSquareSuperset:aU,NotSquareSupersetEqual:cU,NotSubset:hU,NotSubsetEqual:uU,NotSucceeds:fU,NotSucceedsEqual:dU,NotSucceedsSlantEqual:pU,NotSucceedsTilde:mU,NotSuperset:OU,NotSupersetEqual:gU,NotTilde:bU,NotTildeEqual:vU,NotTildeFullEqual:SU,NotTildeTilde:kU,NotVerticalBar:yU,nparallel:wU,npar:xU,nparsl:QU,npart:$U,npolint:_U,npr:PU,nprcue:CU,nprec:AU,npreceq:TU,npre:EU,nrarrc:XU,nrarr:DU,nrArr:RU,nrarrw:ZU,nrightarrow:qU,nRightarrow:LU,nrtri:VU,nrtrie:IU,nsc:MU,nsccue:zU,nsce:UU,Nscr:BU,nscr:WU,nshortmid:YU,nshortparallel:jU,nsim:NU,nsime:FU,nsimeq:GU,nsmid:HU,nspar:JU,nsqsube:KU,nsqsupe:eB,nsub:tB,nsubE:nB,nsube:rB,nsubset:iB,nsubseteq:sB,nsubseteqq:oB,nsucc:lB,nsucceq:aB,nsup:cB,nsupE:hB,nsupe:uB,nsupset:fB,nsupseteq:dB,nsupseteqq:pB,ntgl:mB,Ntilde:OB,ntilde:gB,ntlg:bB,ntriangleleft:vB,ntrianglelefteq:SB,ntriangleright:kB,ntrianglerighteq:yB,Nu:wB,nu:xB,num:QB,numero:$B,numsp:_B,nvap:PB,nvdash:CB,nvDash:AB,nVdash:TB,nVDash:EB,nvge:XB,nvgt:DB,nvHarr:RB,nvinfin:ZB,nvlArr:qB,nvle:LB,nvlt:VB,nvltrie:IB,nvrArr:MB,nvrtrie:zB,nvsim:UB,nwarhk:BB,nwarr:WB,nwArr:YB,nwarrow:jB,nwnear:NB,Oacute:FB,oacute:GB,oast:HB,Ocirc:JB,ocirc:KB,ocir:e3,Ocy:t3,ocy:n3,odash:r3,Odblac:i3,odblac:s3,odiv:o3,odot:l3,odsold:a3,OElig:c3,oelig:h3,ofcir:u3,Ofr:f3,ofr:d3,ogon:p3,Ograve:m3,ograve:O3,ogt:g3,ohbar:b3,ohm:v3,oint:S3,olarr:k3,olcir:y3,olcross:w3,oline:x3,olt:Q3,Omacr:$3,omacr:_3,Omega:P3,omega:C3,Omicron:A3,omicron:T3,omid:E3,ominus:X3,Oopf:D3,oopf:R3,opar:Z3,OpenCurlyDoubleQuote:q3,OpenCurlyQuote:L3,operp:V3,oplus:I3,orarr:M3,Or:z3,or:U3,ord:B3,order:W3,orderof:Y3,ordf:j3,ordm:N3,origof:F3,oror:G3,orslope:H3,orv:J3,oS:K3,Oscr:eW,oscr:tW,Oslash:nW,oslash:rW,osol:iW,Otilde:sW,otilde:oW,otimesas:lW,Otimes:aW,otimes:cW,Ouml:hW,ouml:uW,ovbar:fW,OverBar:dW,OverBrace:pW,OverBracket:mW,OverParenthesis:OW,para:gW,parallel:bW,par:vW,parsim:SW,parsl:kW,part:yW,PartialD:wW,Pcy:xW,pcy:QW,percnt:$W,period:_W,permil:PW,perp:CW,pertenk:AW,Pfr:TW,pfr:EW,Phi:XW,phi:DW,phiv:RW,phmmat:ZW,phone:qW,Pi:LW,pi:VW,pitchfork:IW,piv:MW,planck:zW,planckh:UW,plankv:BW,plusacir:WW,plusb:YW,pluscir:jW,plus:NW,plusdo:FW,plusdu:GW,pluse:HW,PlusMinus:JW,plusmn:KW,plussim:e9,plustwo:t9,pm:n9,Poincareplane:r9,pointint:i9,popf:s9,Popf:o9,pound:l9,prap:a9,Pr:c9,pr:h9,prcue:u9,precapprox:f9,prec:d9,preccurlyeq:p9,Precedes:m9,PrecedesEqual:O9,PrecedesSlantEqual:g9,PrecedesTilde:b9,preceq:v9,precnapprox:S9,precneqq:k9,precnsim:y9,pre:w9,prE:x9,precsim:Q9,prime:$9,Prime:_9,primes:P9,prnap:C9,prnE:A9,prnsim:T9,prod:E9,Product:X9,profalar:D9,profline:R9,profsurf:Z9,prop:q9,Proportional:L9,Proportion:V9,propto:I9,prsim:M9,prurel:z9,Pscr:U9,pscr:B9,Psi:W9,psi:Y9,puncsp:j9,Qfr:N9,qfr:F9,qint:G9,qopf:H9,Qopf:J9,qprime:K9,Qscr:eY,qscr:tY,quaternions:nY,quatint:rY,quest:iY,questeq:sY,quot:oY,QUOT:lY,rAarr:aY,race:cY,Racute:hY,racute:uY,radic:fY,raemptyv:dY,rang:pY,Rang:mY,rangd:OY,range:gY,rangle:bY,raquo:vY,rarrap:SY,rarrb:kY,rarrbfs:yY,rarrc:wY,rarr:xY,Rarr:QY,rArr:$Y,rarrfs:_Y,rarrhk:PY,rarrlp:CY,rarrpl:AY,rarrsim:TY,Rarrtl:EY,rarrtl:XY,rarrw:DY,ratail:RY,rAtail:ZY,ratio:qY,rationals:LY,rbarr:VY,rBarr:IY,RBarr:MY,rbbrk:zY,rbrace:UY,rbrack:BY,rbrke:WY,rbrksld:YY,rbrkslu:jY,Rcaron:NY,rcaron:FY,Rcedil:GY,rcedil:HY,rceil:JY,rcub:KY,Rcy:ej,rcy:tj,rdca:nj,rdldhar:rj,rdquo:ij,rdquor:sj,rdsh:oj,real:lj,realine:aj,realpart:cj,reals:hj,Re:uj,rect:fj,reg:dj,REG:pj,ReverseElement:mj,ReverseEquilibrium:Oj,ReverseUpEquilibrium:gj,rfisht:bj,rfloor:vj,rfr:Sj,Rfr:kj,rHar:yj,rhard:wj,rharu:xj,rharul:Qj,Rho:$j,rho:_j,rhov:Pj,RightAngleBracket:Cj,RightArrowBar:Aj,rightarrow:Tj,RightArrow:Ej,Rightarrow:Xj,RightArrowLeftArrow:Dj,rightarrowtail:Rj,RightCeiling:Zj,RightDoubleBracket:qj,RightDownTeeVector:Lj,RightDownVectorBar:Vj,RightDownVector:Ij,RightFloor:Mj,rightharpoondown:zj,rightharpoonup:Uj,rightleftarrows:Bj,rightleftharpoons:Wj,rightrightarrows:Yj,rightsquigarrow:jj,RightTeeArrow:Nj,RightTee:Fj,RightTeeVector:Gj,rightthreetimes:Hj,RightTriangleBar:Jj,RightTriangle:Kj,RightTriangleEqual:eN,RightUpDownVector:tN,RightUpTeeVector:nN,RightUpVectorBar:rN,RightUpVector:iN,RightVectorBar:sN,RightVector:oN,ring:lN,risingdotseq:aN,rlarr:cN,rlhar:hN,rlm:uN,rmoustache:fN,rmoust:dN,rnmid:pN,roang:mN,roarr:ON,robrk:gN,ropar:bN,ropf:vN,Ropf:SN,roplus:kN,rotimes:yN,RoundImplies:wN,rpar:xN,rpargt:QN,rppolint:$N,rrarr:_N,Rrightarrow:PN,rsaquo:CN,rscr:AN,Rscr:TN,rsh:EN,Rsh:XN,rsqb:DN,rsquo:RN,rsquor:ZN,rthree:qN,rtimes:LN,rtri:VN,rtrie:IN,rtrif:MN,rtriltri:zN,RuleDelayed:UN,ruluhar:BN,rx:WN,Sacute:YN,sacute:jN,sbquo:NN,scap:FN,Scaron:GN,scaron:HN,Sc:JN,sc:KN,sccue:eF,sce:tF,scE:nF,Scedil:rF,scedil:iF,Scirc:sF,scirc:oF,scnap:lF,scnE:aF,scnsim:cF,scpolint:hF,scsim:uF,Scy:fF,scy:dF,sdotb:pF,sdot:mF,sdote:OF,searhk:gF,searr:bF,seArr:vF,searrow:SF,sect:kF,semi:yF,seswar:wF,setminus:xF,setmn:QF,sext:$F,Sfr:_F,sfr:PF,sfrown:CF,sharp:AF,SHCHcy:TF,shchcy:EF,SHcy:XF,shcy:DF,ShortDownArrow:RF,ShortLeftArrow:ZF,shortmid:qF,shortparallel:LF,ShortRightArrow:VF,ShortUpArrow:IF,shy:MF,Sigma:zF,sigma:UF,sigmaf:BF,sigmav:WF,sim:YF,simdot:jF,sime:NF,simeq:FF,simg:GF,simgE:HF,siml:JF,simlE:KF,simne:e4,simplus:t4,simrarr:n4,slarr:r4,SmallCircle:i4,smallsetminus:s4,smashp:o4,smeparsl:l4,smid:a4,smile:c4,smt:h4,smte:u4,smtes:f4,SOFTcy:d4,softcy:p4,solbar:m4,solb:O4,sol:g4,Sopf:b4,sopf:v4,spades:S4,spadesuit:k4,spar:y4,sqcap:w4,sqcaps:x4,sqcup:Q4,sqcups:$4,Sqrt:_4,sqsub:P4,sqsube:C4,sqsubset:A4,sqsubseteq:T4,sqsup:E4,sqsupe:X4,sqsupset:D4,sqsupseteq:R4,square:Z4,Square:q4,SquareIntersection:L4,SquareSubset:V4,SquareSubsetEqual:I4,SquareSuperset:M4,SquareSupersetEqual:z4,SquareUnion:U4,squarf:B4,squ:W4,squf:Y4,srarr:j4,Sscr:N4,sscr:F4,ssetmn:G4,ssmile:H4,sstarf:J4,Star:K4,star:eG,starf:tG,straightepsilon:nG,straightphi:rG,strns:iG,sub:sG,Sub:oG,subdot:lG,subE:aG,sube:cG,subedot:hG,submult:uG,subnE:fG,subne:dG,subplus:pG,subrarr:mG,subset:OG,Subset:gG,subseteq:bG,subseteqq:vG,SubsetEqual:SG,subsetneq:kG,subsetneqq:yG,subsim:wG,subsub:xG,subsup:QG,succapprox:$G,succ:_G,succcurlyeq:PG,Succeeds:CG,SucceedsEqual:AG,SucceedsSlantEqual:TG,SucceedsTilde:EG,succeq:XG,succnapprox:DG,succneqq:RG,succnsim:ZG,succsim:qG,SuchThat:LG,sum:VG,Sum:IG,sung:MG,sup1:zG,sup2:UG,sup3:BG,sup:WG,Sup:YG,supdot:jG,supdsub:NG,supE:FG,supe:GG,supedot:HG,Superset:JG,SupersetEqual:KG,suphsol:e7,suphsub:t7,suplarr:n7,supmult:r7,supnE:i7,supne:s7,supplus:o7,supset:l7,Supset:a7,supseteq:c7,supseteqq:h7,supsetneq:u7,supsetneqq:f7,supsim:d7,supsub:p7,supsup:m7,swarhk:O7,swarr:g7,swArr:b7,swarrow:v7,swnwar:S7,szlig:k7,Tab:y7,target:w7,Tau:x7,tau:Q7,tbrk:$7,Tcaron:_7,tcaron:P7,Tcedil:C7,tcedil:A7,Tcy:T7,tcy:E7,tdot:X7,telrec:D7,Tfr:R7,tfr:Z7,there4:q7,therefore:L7,Therefore:V7,Theta:I7,theta:M7,thetasym:z7,thetav:U7,thickapprox:B7,thicksim:W7,ThickSpace:Y7,ThinSpace:j7,thinsp:N7,thkap:F7,thksim:G7,THORN:H7,thorn:J7,tilde:K7,Tilde:e8,TildeEqual:t8,TildeFullEqual:n8,TildeTilde:r8,timesbar:i8,timesb:s8,times:o8,timesd:l8,tint:a8,toea:c8,topbot:h8,topcir:u8,top:f8,Topf:d8,topf:p8,topfork:m8,tosa:O8,tprime:g8,trade:b8,TRADE:v8,triangle:S8,triangledown:k8,triangleleft:y8,trianglelefteq:w8,triangleq:x8,triangleright:Q8,trianglerighteq:$8,tridot:_8,trie:P8,triminus:C8,TripleDot:A8,triplus:T8,trisb:E8,tritime:X8,trpezium:D8,Tscr:R8,tscr:Z8,TScy:q8,tscy:L8,TSHcy:V8,tshcy:I8,Tstrok:M8,tstrok:z8,twixt:U8,twoheadleftarrow:B8,twoheadrightarrow:W8,Uacute:Y8,uacute:j8,uarr:N8,Uarr:F8,uArr:G8,Uarrocir:H8,Ubrcy:J8,ubrcy:K8,Ubreve:e6,ubreve:t6,Ucirc:n6,ucirc:r6,Ucy:i6,ucy:s6,udarr:o6,Udblac:l6,udblac:a6,udhar:c6,ufisht:h6,Ufr:u6,ufr:f6,Ugrave:d6,ugrave:p6,uHar:m6,uharl:O6,uharr:g6,uhblk:b6,ulcorn:v6,ulcorner:S6,ulcrop:k6,ultri:y6,Umacr:w6,umacr:x6,uml:Q6,UnderBar:$6,UnderBrace:_6,UnderBracket:P6,UnderParenthesis:C6,Union:A6,UnionPlus:T6,Uogon:E6,uogon:X6,Uopf:D6,uopf:R6,UpArrowBar:Z6,uparrow:q6,UpArrow:L6,Uparrow:V6,UpArrowDownArrow:I6,updownarrow:M6,UpDownArrow:z6,Updownarrow:U6,UpEquilibrium:B6,upharpoonleft:W6,upharpoonright:Y6,uplus:j6,UpperLeftArrow:N6,UpperRightArrow:F6,upsi:G6,Upsi:H6,upsih:J6,Upsilon:K6,upsilon:eH,UpTeeArrow:tH,UpTee:nH,upuparrows:rH,urcorn:iH,urcorner:sH,urcrop:oH,Uring:lH,uring:aH,urtri:cH,Uscr:hH,uscr:uH,utdot:fH,Utilde:dH,utilde:pH,utri:mH,utrif:OH,uuarr:gH,Uuml:bH,uuml:vH,uwangle:SH,vangrt:kH,varepsilon:yH,varkappa:wH,varnothing:xH,varphi:QH,varpi:$H,varpropto:_H,varr:PH,vArr:CH,varrho:AH,varsigma:TH,varsubsetneq:EH,varsubsetneqq:XH,varsupsetneq:DH,varsupsetneqq:RH,vartheta:ZH,vartriangleleft:qH,vartriangleright:LH,vBar:VH,Vbar:IH,vBarv:MH,Vcy:zH,vcy:UH,vdash:BH,vDash:WH,Vdash:YH,VDash:jH,Vdashl:NH,veebar:FH,vee:GH,Vee:HH,veeeq:JH,vellip:KH,verbar:eJ,Verbar:tJ,vert:nJ,Vert:rJ,VerticalBar:iJ,VerticalLine:sJ,VerticalSeparator:oJ,VerticalTilde:lJ,VeryThinSpace:aJ,Vfr:cJ,vfr:hJ,vltri:uJ,vnsub:fJ,vnsup:dJ,Vopf:pJ,vopf:mJ,vprop:OJ,vrtri:gJ,Vscr:bJ,vscr:vJ,vsubnE:SJ,vsubne:kJ,vsupnE:yJ,vsupne:wJ,Vvdash:xJ,vzigzag:QJ,Wcirc:$J,wcirc:_J,wedbar:PJ,wedge:CJ,Wedge:AJ,wedgeq:TJ,weierp:EJ,Wfr:XJ,wfr:DJ,Wopf:RJ,wopf:ZJ,wp:qJ,wr:LJ,wreath:VJ,Wscr:IJ,wscr:MJ,xcap:zJ,xcirc:UJ,xcup:BJ,xdtri:WJ,Xfr:YJ,xfr:jJ,xharr:NJ,xhArr:FJ,Xi:GJ,xi:HJ,xlarr:JJ,xlArr:KJ,xmap:eK,xnis:tK,xodot:nK,Xopf:rK,xopf:iK,xoplus:sK,xotime:oK,xrarr:lK,xrArr:aK,Xscr:cK,xscr:hK,xsqcup:uK,xuplus:fK,xutri:dK,xvee:pK,xwedge:mK,Yacute:OK,yacute:gK,YAcy:bK,yacy:vK,Ycirc:SK,ycirc:kK,Ycy:yK,ycy:wK,yen:xK,Yfr:QK,yfr:$K,YIcy:_K,yicy:PK,Yopf:CK,yopf:AK,Yscr:TK,yscr:EK,YUcy:XK,yucy:DK,yuml:RK,Yuml:ZK,Zacute:qK,zacute:LK,Zcaron:VK,zcaron:IK,Zcy:MK,zcy:zK,Zdot:UK,zdot:BK,zeetrf:WK,ZeroWidthSpace:YK,Zeta:jK,zeta:NK,zfr:FK,Zfr:GK,ZHcy:HK,zhcy:JK,zigrarr:KK,zopf:eee,Zopf:tee,Zscr:nee,zscr:ree,zwj:iee,zwnj:see};var LO=oee,kc=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\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-\u2E4E\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[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,zr={},Nu={};function lee(n){var e,t,r=Nu[n];if(r)return r;for(r=Nu[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?r.push(t):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<n.length;e++)r[n.charCodeAt(e)]=n[e];return r}function Po(n,e,t){var r,i,s,o,l,a="";for(typeof e!="string"&&(t=e,e=Po.defaultChars),typeof t>"u"&&(t=!0),l=lee(e),r=0,i=n.length;r<i;r++){if(s=n.charCodeAt(r),t&&s===37&&r+2<i&&/^[0-9a-f]{2}$/i.test(n.slice(r+1,r+3))){a+=n.slice(r,r+3),r+=2;continue}if(s<128){a+=l[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<i&&(o=n.charCodeAt(r+1),o>=56320&&o<=57343)){a+=encodeURIComponent(n[r]+n[r+1]),r++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(n[r])}return a}Po.defaultChars=";/?:@&=+$,-_.!~*'()#";Po.componentChars="-_.!~*'()";var aee=Po,Fu={};function cee(n){var e,t,r=Fu[n];if(r)return r;for(r=Fu[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),r.push(t);for(e=0;e<n.length;e++)t=n.charCodeAt(e),r[t]="%"+("0"+t.toString(16).toUpperCase()).slice(-2);return r}function Co(n,e){var t;return typeof e!="string"&&(e=Co.defaultChars),t=cee(e),n.replace(/(%[a-f0-9]{2})+/gi,function(r){var i,s,o,l,a,c,h,u="";for(i=0,s=r.length;i<s;i+=3){if(o=parseInt(r.slice(i+1,i+3),16),o<128){u+=t[o];continue}if((o&224)===192&&i+3<s&&(l=parseInt(r.slice(i+4,i+6),16),(l&192)===128)){h=o<<6&1984|l&63,h<128?u+="��":u+=String.fromCharCode(h),i+=3;continue}if((o&240)===224&&i+6<s&&(l=parseInt(r.slice(i+4,i+6),16),a=parseInt(r.slice(i+7,i+9),16),(l&192)===128&&(a&192)===128)){h=o<<12&61440|l<<6&4032|a&63,h<2048||h>=55296&&h<=57343?u+="���":u+=String.fromCharCode(h),i+=6;continue}if((o&248)===240&&i+9<s&&(l=parseInt(r.slice(i+4,i+6),16),a=parseInt(r.slice(i+7,i+9),16),c=parseInt(r.slice(i+10,i+12),16),(l&192)===128&&(a&192)===128&&(c&192)===128)){h=o<<18&1835008|l<<12&258048|a<<6&4032|c&63,h<65536||h>1114111?u+="����":(h-=65536,u+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),i+=9;continue}u+="�"}return u})}Co.defaultChars=";/?:@&=+$,#";Co.componentChars="";var hee=Co,uee=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t};function oo(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var fee=/^([a-z0-9.+-]+:)/i,dee=/:[0-9]*$/,pee=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mee=["<",">",'"',"`"," ","\r",`
`,"	"],Oee=["{","}","|","\\","^","`"].concat(mee),gee=["'"].concat(Oee),Gu=["%","/","?",";","#"].concat(gee),Hu=["/","?","#"],bee=255,Ju=/^[+a-z0-9A-Z_-]{0,63}$/,vee=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ku={javascript:!0,"javascript:":!0},ef={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function See(n,e){if(n&&n instanceof oo)return n;var t=new oo;return t.parse(n,e),t}oo.prototype.parse=function(n,e){var t,r,i,s,o,l=n;if(l=l.trim(),!e&&n.split("#").length===1){var a=pee.exec(l);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var c=fee.exec(l);if(c&&(c=c[0],i=c.toLowerCase(),this.protocol=c,l=l.substr(c.length)),(e||c||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=l.substr(0,2)==="//",o&&!(c&&Ku[c])&&(l=l.substr(2),this.slashes=!0)),!Ku[c]&&(o||c&&!ef[c])){var h=-1;for(t=0;t<Hu.length;t++)s=l.indexOf(Hu[t]),s!==-1&&(h===-1||s<h)&&(h=s);var u,f;for(h===-1?f=l.lastIndexOf("@"):f=l.lastIndexOf("@",h),f!==-1&&(u=l.slice(0,f),l=l.slice(f+1),this.auth=u),h=-1,t=0;t<Gu.length;t++)s=l.indexOf(Gu[t]),s!==-1&&(h===-1||s<h)&&(h=s);h===-1&&(h=l.length),l[h-1]===":"&&h--;var d=l.slice(0,h);l=l.slice(h),this.parseHost(d),this.hostname=this.hostname||"";var p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){var m=this.hostname.split(/\./);for(t=0,r=m.length;t<r;t++){var O=m[t];if(O&&!O.match(Ju)){for(var b="",k=0,y=O.length;k<y;k++)O.charCodeAt(k)>127?b+="x":b+=O[k];if(!b.match(Ju)){var Q=m.slice(0,t),$=m.slice(t+1),w=O.match(vee);w&&(Q.push(w[1]),$.unshift(w[2])),$.length&&(l=$.join(".")+l),this.hostname=Q.join(".");break}}}}this.hostname.length>bee&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=l.indexOf("#");A!==-1&&(this.hash=l.substr(A),l=l.slice(0,A));var P=l.indexOf("?");return P!==-1&&(this.search=l.substr(P),l=l.slice(0,P)),l&&(this.pathname=l),ef[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};oo.prototype.parseHost=function(n){var e=dee.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var kee=See;zr.encode=aee;zr.decode=hee;zr.format=uee;zr.parse=kee;var Ln={},pl,tf;function VO(){return tf||(tf=1,pl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),pl}var ml,nf;function IO(){return nf||(nf=1,ml=/[\0-\x1F\x7F-\x9F]/),ml}var Ol,rf;function yee(){return rf||(rf=1,Ol=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Ol}var gl,sf;function MO(){return sf||(sf=1,gl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),gl}var of;function wee(){return of||(of=1,Ln.Any=VO(),Ln.Cc=IO(),Ln.Cf=yee(),Ln.P=kc,Ln.Z=MO()),Ln}(function(n){function e(T){return Object.prototype.toString.call(T)}function t(T){return e(T)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(T,U){return r.call(T,U)}function s(T){var U=Array.prototype.slice.call(arguments,1);return U.forEach(function(R){if(R){if(typeof R!="object")throw new TypeError(R+"must be object");Object.keys(R).forEach(function(H){T[H]=R[H]})}}),T}function o(T,U,R){return[].concat(T.slice(0,U),R,T.slice(U+1))}function l(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 a(T){if(T>65535){T-=65536;var U=55296+(T>>10),R=56320+(T&1023);return String.fromCharCode(U,R)}return String.fromCharCode(T)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,h=/&([a-z#][a-z0-9]{1,31});/gi,u=new RegExp(c.source+"|"+h.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=LO;function p(T,U){var R=0;return i(d,U)?d[U]:U.charCodeAt(0)===35&&f.test(U)&&(R=U[1].toLowerCase()==="x"?parseInt(U.slice(2),16):parseInt(U.slice(1),10),l(R))?a(R):T}function m(T){return T.indexOf("\\")<0?T:T.replace(c,"$1")}function O(T){return T.indexOf("\\")<0&&T.indexOf("&")<0?T:T.replace(u,function(U,R,H){return R||p(U,H)})}var b=/[&<>"]/,k=/[&<>"]/g,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Q(T){return y[T]}function $(T){return b.test(T)?T.replace(k,Q):T}var w=/[.?*+^$[\]\\(){}|-]/g;function A(T){return T.replace(w,"\\$&")}function P(T){switch(T){case 9:case 32:return!0}return!1}function I(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}var X=kc;function V(T){return X.test(T)}function q(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 z(T){return T=T.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(T=T.replace(/ẞ/g,"ß")),T.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=zr,n.lib.ucmicro=wee(),n.assign=s,n.isString=t,n.has=i,n.unescapeMd=m,n.unescapeAll=O,n.isValidEntityCode=l,n.fromCodePoint=a,n.escapeHtml=$,n.arrayReplaceAt=o,n.isSpace=P,n.isWhiteSpace=I,n.isMdAsciiPunct=q,n.isPunctChar=V,n.escapeRE=A,n.normalizeReference=z})(ae);var Ao={},xee=function(e,t,r){var i,s,o,l,a=-1,c=e.posMax,h=e.pos;for(e.pos=t+1,i=1;e.pos<c;){if(o=e.src.charCodeAt(e.pos),o===93&&(i--,i===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),o===91){if(l===e.pos-1)i++;else if(r)return e.pos=h,-1}}return s&&(a=e.pos),e.pos=h,a},lf=ae.unescapeAll,Qee=function(e,t,r){var i,s,o=0,l=t,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(t)===60){for(t++;t<r;){if(i=e.charCodeAt(t),i===10||i===60)return a;if(i===62)return a.pos=t+1,a.str=lf(e.slice(l+1,t)),a.ok=!0,a;if(i===92&&t+1<r){t+=2;continue}t++}return a}for(s=0;t<r&&(i=e.charCodeAt(t),!(i===32||i<32||i===127));){if(i===92&&t+1<r){if(e.charCodeAt(t+1)===32)break;t+=2;continue}if(i===40&&(s++,s>32))return a;if(i===41){if(s===0)break;s--}t++}return l===t||s!==0||(a.str=lf(e.slice(l,t)),a.lines=o,a.pos=t,a.ok=!0),a},$ee=ae.unescapeAll,_ee=function(e,t,r){var i,s,o=0,l=t,a={ok:!1,pos:0,lines:0,str:""};if(t>=r||(s=e.charCodeAt(t),s!==34&&s!==39&&s!==40))return a;for(t++,s===40&&(s=41);t<r;){if(i=e.charCodeAt(t),i===s)return a.pos=t+1,a.lines=o,a.str=$ee(e.slice(l+1,t)),a.ok=!0,a;if(i===40&&s===41)return a;i===10?o++:i===92&&t+1<r&&(t++,e.charCodeAt(t)===10&&o++),t++}return a};Ao.parseLinkLabel=xee;Ao.parseLinkDestination=Qee;Ao.parseLinkTitle=_ee;var Pee=ae.assign,Cee=ae.unescapeAll,Jn=ae.escapeHtml,Gt={};Gt.code_inline=function(n,e,t,r,i){var s=n[e];return"<code"+i.renderAttrs(s)+">"+Jn(n[e].content)+"</code>"};Gt.code_block=function(n,e,t,r,i){var s=n[e];return"<pre"+i.renderAttrs(s)+"><code>"+Jn(n[e].content)+`</code></pre>
`};Gt.fence=function(n,e,t,r,i){var s=n[e],o=s.info?Cee(s.info).trim():"",l="",a="",c,h,u,f,d;return o&&(u=o.split(/(\s+)/g),l=u[0],a=u.slice(2).join("")),t.highlight?c=t.highlight(s.content,l,a)||Jn(s.content):c=Jn(s.content),c.indexOf("<pre")===0?c+`
`:o?(h=s.attrIndex("class"),f=s.attrs?s.attrs.slice():[],h<0?f.push(["class",t.langPrefix+l]):(f[h]=f[h].slice(),f[h][1]+=" "+t.langPrefix+l),d={attrs:f},"<pre><code"+i.renderAttrs(d)+">"+c+`</code></pre>
`):"<pre><code"+i.renderAttrs(s)+">"+c+`</code></pre>
`};Gt.image=function(n,e,t,r,i){var s=n[e];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,t,r),i.renderToken(n,e,t)};Gt.hardbreak=function(n,e,t){return t.xhtmlOut?`<br />
`:`<br>
`};Gt.softbreak=function(n,e,t){return t.breaks?t.xhtmlOut?`<br />
`:`<br>
`:`
`};Gt.text=function(n,e){return Jn(n[e].content)};Gt.html_block=function(n,e){return n[e].content};Gt.html_inline=function(n,e){return n[e].content};function Ur(){this.rules=Pee({},Gt)}Ur.prototype.renderAttrs=function(e){var t,r,i;if(!e.attrs)return"";for(i="",t=0,r=e.attrs.length;t<r;t++)i+=" "+Jn(e.attrs[t][0])+'="'+Jn(e.attrs[t][1])+'"';return i};Ur.prototype.renderToken=function(e,t,r){var i,s="",o=!1,l=e[t];return l.hidden?"":(l.block&&l.nesting!==-1&&t&&e[t-1].hidden&&(s+=`
`),s+=(l.nesting===-1?"</":"<")+l.tag,s+=this.renderAttrs(l),l.nesting===0&&r.xhtmlOut&&(s+=" /"),l.block&&(o=!0,l.nesting===1&&t+1<e.length&&(i=e[t+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===l.tag)&&(o=!1))),s+=o?`>
`:">",s)};Ur.prototype.renderInline=function(n,e,t){for(var r,i="",s=this.rules,o=0,l=n.length;o<l;o++)r=n[o].type,typeof s[r]<"u"?i+=s[r](n,o,e,t,this):i+=this.renderToken(n,o,e);return i};Ur.prototype.renderInlineAsText=function(n,e,t){for(var r="",i=0,s=n.length;i<s;i++)n[i].type==="text"?r+=n[i].content:n[i].type==="image"?r+=this.renderInlineAsText(n[i].children,e,t):n[i].type==="softbreak"&&(r+=`
`);return r};Ur.prototype.render=function(n,e,t){var r,i,s,o="",l=this.rules;for(r=0,i=n.length;r<i;r++)s=n[r].type,s==="inline"?o+=this.renderInline(n[r].children,e,t):typeof l[s]<"u"?o+=l[n[r].type](n,r,e,t,this):o+=this.renderToken(n,r,e,t);return o};var Aee=Ur;function Tt(){this.__rules__=[],this.__cache__=null}Tt.prototype.__find__=function(n){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===n)return e;return-1};Tt.prototype.__compile__=function(){var n=this,e=[""];n.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),n.__cache__={},e.forEach(function(t){n.__cache__[t]=[],n.__rules__.forEach(function(r){r.enabled&&(t&&r.alt.indexOf(t)<0||n.__cache__[t].push(r.fn))})})};Tt.prototype.at=function(n,e,t){var r=this.__find__(n),i=t||{};if(r===-1)throw new Error("Parser rule not found: "+n);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null};Tt.prototype.before=function(n,e,t,r){var i=this.__find__(n),s=r||{};if(i===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:t,alt:s.alt||[]}),this.__cache__=null};Tt.prototype.after=function(n,e,t,r){var i=this.__find__(n),s=r||{};if(i===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:t,alt:s.alt||[]}),this.__cache__=null};Tt.prototype.push=function(n,e,t){var r=t||{};this.__rules__.push({name:n,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};Tt.prototype.enable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,t.push(r)},this),this.__cache__=null,t};Tt.prototype.enableOnly=function(n,e){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(n,e)};Tt.prototype.disable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,t.push(r)},this),this.__cache__=null,t};Tt.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]};var yc=Tt,Tee=/\r\n?|\n/g,Eee=/\0/g,Xee=function(e){var t;t=e.src.replace(Tee,`
`),t=t.replace(Eee,"�"),e.src=t},Dee=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Ree=function(e){var t=e.tokens,r,i,s;for(i=0,s=t.length;i<s;i++)r=t[i],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},Zee=ae.arrayReplaceAt;function qee(n){return/^<a[>\s]/i.test(n)}function Lee(n){return/^<\/a\s*>/i.test(n)}var Vee=function(e){var t,r,i,s,o,l,a,c,h,u,f,d,p,m,O,b,k=e.tokens,y;if(e.md.options.linkify){for(r=0,i=k.length;r<i;r++)if(!(k[r].type!=="inline"||!e.md.linkify.pretest(k[r].content)))for(s=k[r].children,p=0,t=s.length-1;t>=0;t--){if(l=s[t],l.type==="link_close"){for(t--;s[t].level!==l.level&&s[t].type!=="link_open";)t--;continue}if(l.type==="html_inline"&&(qee(l.content)&&p>0&&p--,Lee(l.content)&&p++),!(p>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(h=l.content,y=e.md.linkify.match(h),a=[],d=l.level,f=0,y.length>0&&y[0].index===0&&t>0&&s[t-1].type==="text_special"&&(y=y.slice(1)),c=0;c<y.length;c++)m=y[c].url,O=e.md.normalizeLink(m),e.md.validateLink(O)&&(b=y[c].text,y[c].schema?y[c].schema==="mailto:"&&!/^mailto:/i.test(b)?b=e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):b=e.md.normalizeLinkText(b):b=e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),u=y[c].index,u>f&&(o=new e.Token("text","",0),o.content=h.slice(f,u),o.level=d,a.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",O]],o.level=d++,o.markup="linkify",o.info="auto",a.push(o),o=new e.Token("text","",0),o.content=b,o.level=d,a.push(o),o=new e.Token("link_close","a",-1),o.level=--d,o.markup="linkify",o.info="auto",a.push(o),f=y[c].lastIndex);f<h.length&&(o=new e.Token("text","",0),o.content=h.slice(f),o.level=d,a.push(o)),k[r].children=s=Zee(s,t,a)}}}},zO=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Iee=/\((c|tm|r)\)/i,Mee=/\((c|tm|r)\)/ig,zee={c:"©",r:"®",tm:"™"};function Uee(n,e){return zee[e.toLowerCase()]}function Bee(n){var e,t,r=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!r&&(t.content=t.content.replace(Mee,Uee)),t.type==="link_open"&&t.info==="auto"&&r--,t.type==="link_close"&&t.info==="auto"&&r++}function Wee(n){var e,t,r=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!r&&zO.test(t.content)&&(t.content=t.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–")),t.type==="link_open"&&t.info==="auto"&&r--,t.type==="link_close"&&t.info==="auto"&&r++}var Yee=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Iee.test(e.tokens[t].content)&&Bee(e.tokens[t].children),zO.test(e.tokens[t].content)&&Wee(e.tokens[t].children))},af=ae.isWhiteSpace,cf=ae.isPunctChar,hf=ae.isMdAsciiPunct,jee=/['"]/,uf=/['"]/g,ff="’";function ks(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function Nee(n,e){var t,r,i,s,o,l,a,c,h,u,f,d,p,m,O,b,k,y,Q,$,w;for(Q=[],t=0;t<n.length;t++){for(r=n[t],a=n[t].level,k=Q.length-1;k>=0&&!(Q[k].level<=a);k--);if(Q.length=k+1,r.type==="text"){i=r.content,o=0,l=i.length;e:for(;o<l&&(uf.lastIndex=o,s=uf.exec(i),!!s);){if(O=b=!0,o=s.index+1,y=s[0]==="'",h=32,s.index-1>=0)h=i.charCodeAt(s.index-1);else for(k=t-1;k>=0&&!(n[k].type==="softbreak"||n[k].type==="hardbreak");k--)if(n[k].content){h=n[k].content.charCodeAt(n[k].content.length-1);break}if(u=32,o<l)u=i.charCodeAt(o);else for(k=t+1;k<n.length&&!(n[k].type==="softbreak"||n[k].type==="hardbreak");k++)if(n[k].content){u=n[k].content.charCodeAt(0);break}if(f=hf(h)||cf(String.fromCharCode(h)),d=hf(u)||cf(String.fromCharCode(u)),p=af(h),m=af(u),m?O=!1:d&&(p||f||(O=!1)),p?b=!1:f&&(m||d||(b=!1)),u===34&&s[0]==='"'&&h>=48&&h<=57&&(b=O=!1),O&&b&&(O=f,b=d),!O&&!b){y&&(r.content=ks(r.content,s.index,ff));continue}if(b){for(k=Q.length-1;k>=0&&(c=Q[k],!(Q[k].level<a));k--)if(c.single===y&&Q[k].level===a){c=Q[k],y?($=e.md.options.quotes[2],w=e.md.options.quotes[3]):($=e.md.options.quotes[0],w=e.md.options.quotes[1]),r.content=ks(r.content,s.index,w),n[c.token].content=ks(n[c.token].content,c.pos,$),o+=w.length-1,c.token===t&&(o+=$.length-1),i=r.content,l=i.length,Q.length=k;continue e}}O?Q.push({token:t,pos:s.index,single:y,level:a}):b&&y&&(r.content=ks(r.content,s.index,ff))}}}}var Fee=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!jee.test(e.tokens[t].content)||Nee(e.tokens[t].children,e)},Gee=function(e){var t,r,i,s,o,l,a=e.tokens;for(t=0,r=a.length;t<r;t++)if(a[t].type==="inline"){for(i=a[t].children,o=i.length,s=0;s<o;s++)i[s].type==="text_special"&&(i[s].type="text");for(s=l=0;s<o;s++)i[s].type==="text"&&s+1<o&&i[s+1].type==="text"?i[s+1].content=i[s].content+i[s+1].content:(s!==l&&(i[l]=i[s]),l++);s!==l&&(i.length=l)}};function Br(n,e,t){this.type=n,this.tag=e,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Br.prototype.attrIndex=function(e){var t,r,i;if(!this.attrs)return-1;for(t=this.attrs,r=0,i=t.length;r<i;r++)if(t[r][0]===e)return r;return-1};Br.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Br.prototype.attrSet=function(e,t){var r=this.attrIndex(e),i=[e,t];r<0?this.attrPush(i):this.attrs[r]=i};Br.prototype.attrGet=function(e){var t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r};Br.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};var wc=Br,Hee=wc;function UO(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}UO.prototype.Token=Hee;var Jee=UO,Kee=yc,bl=[["normalize",Xee],["block",Dee],["inline",Ree],["linkify",Vee],["replacements",Yee],["smartquotes",Fee],["text_join",Gee]];function xc(){this.ruler=new Kee;for(var n=0;n<bl.length;n++)this.ruler.push(bl[n][0],bl[n][1])}xc.prototype.process=function(n){var e,t,r;for(r=this.ruler.getRules(""),e=0,t=r.length;e<t;e++)r[e](n)};xc.prototype.State=Jee;var ete=xc,vl=ae.isSpace;function Sl(n,e){var t=n.bMarks[e]+n.tShift[e],r=n.eMarks[e];return n.src.slice(t,r)}function df(n){var e=[],t=0,r=n.length,i,s=!1,o=0,l="";for(i=n.charCodeAt(t);t<r;)i===124&&(s?(l+=n.substring(o,t-1),o=t):(e.push(l+n.substring(o,t)),l="",o=t+1)),s=i===92,t++,i=n.charCodeAt(t);return e.push(l+n.substring(o)),e}var tte=function(e,t,r,i){var s,o,l,a,c,h,u,f,d,p,m,O,b,k,y,Q,$,w;if(t+2>r||(h=t+1,e.sCount[h]<e.blkIndent)||e.sCount[h]-e.blkIndent>=4||(l=e.bMarks[h]+e.tShift[h],l>=e.eMarks[h])||($=e.src.charCodeAt(l++),$!==124&&$!==45&&$!==58)||l>=e.eMarks[h]||(w=e.src.charCodeAt(l++),w!==124&&w!==45&&w!==58&&!vl(w))||$===45&&vl(w))return!1;for(;l<e.eMarks[h];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!vl(s))return!1;l++}for(o=Sl(e,t+1),u=o.split("|"),p=[],a=0;a<u.length;a++){if(m=u[a].trim(),!m){if(a===0||a===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;m.charCodeAt(m.length-1)===58?p.push(m.charCodeAt(0)===58?"center":"right"):m.charCodeAt(0)===58?p.push("left"):p.push("")}if(o=Sl(e,t).trim(),o.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4||(u=df(o),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),f=u.length,f===0||f!==p.length))return!1;if(i)return!0;for(k=e.parentType,e.parentType="table",Q=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=O=[t,0],d=e.push("thead_open","thead",1),d.map=[t,t+1],d=e.push("tr_open","tr",1),d.map=[t,t+1],a=0;a<u.length;a++)d=e.push("th_open","th",1),p[a]&&(d.attrs=[["style","text-align:"+p[a]]]),d=e.push("inline","",0),d.content=u[a].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),h=t+2;h<r&&!(e.sCount[h]<e.blkIndent);h++){for(y=!1,a=0,c=Q.length;a<c;a++)if(Q[a](e,h,r,!0)){y=!0;break}if(y||(o=Sl(e,h).trim(),!o)||e.sCount[h]-e.blkIndent>=4)break;for(u=df(o),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),h===t+2&&(d=e.push("tbody_open","tbody",1),d.map=b=[t+2,0]),d=e.push("tr_open","tr",1),d.map=[h,h+1],a=0;a<f;a++)d=e.push("td_open","td",1),p[a]&&(d.attrs=[["style","text-align:"+p[a]]]),d=e.push("inline","",0),d.content=u[a]?u[a].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return b&&(d=e.push("tbody_close","tbody",-1),b[1]=h),d=e.push("table_close","table",-1),O[1]=h,e.parentType=k,e.line=h,!0},nte=function(e,t,r){var i,s,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(s=i=t+1;i<r;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,s=i;continue}break}return e.line=s,o=e.push("code_block","code",0),o.content=e.getLines(t,s,4+e.blkIndent,!1)+`
`,o.map=[t,e.line],!0},rte=function(e,t,r,i){var s,o,l,a,c,h,u,f=!1,d=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||d+3>p||(s=e.src.charCodeAt(d),s!==126&&s!==96)||(c=d,d=e.skipChars(d,s),o=d-c,o<3)||(u=e.src.slice(c,d),l=e.src.slice(d,p),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(i)return!0;for(a=t;a++,!(a>=r||(d=c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a],d<p&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(d)===s&&!(e.sCount[a]-e.blkIndent>=4)&&(d=e.skipChars(d,s),!(d-c<o)&&(d=e.skipSpaces(d),!(d<p)))){f=!0;break}return o=e.sCount[t],e.line=a+(f?1:0),h=e.push("fence","code",0),h.info=l,h.content=e.getLines(t+1,a,o,!0),h.markup=u,h.map=[t,e.line],!0},pf=ae.isSpace,ite=function(e,t,r,i){var s,o,l,a,c,h,u,f,d,p,m,O,b,k,y,Q,$,w,A,P,I=e.lineMax,X=e.bMarks[t]+e.tShift[t],V=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(X++)!==62)return!1;if(i)return!0;for(a=d=e.sCount[t]+1,e.src.charCodeAt(X)===32?(X++,a++,d++,s=!1,Q=!0):e.src.charCodeAt(X)===9?(Q=!0,(e.bsCount[t]+d)%4===3?(X++,a++,d++,s=!1):s=!0):Q=!1,p=[e.bMarks[t]],e.bMarks[t]=X;X<V&&(o=e.src.charCodeAt(X),pf(o));){o===9?d+=4-(d+e.bsCount[t]+(s?1:0))%4:d++;X++}for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(Q?1:0),h=X>=V,k=[e.sCount[t]],e.sCount[t]=d-a,y=[e.tShift[t]],e.tShift[t]=X-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",f=t+1;f<r&&(P=e.sCount[f]<e.blkIndent,X=e.bMarks[f]+e.tShift[f],V=e.eMarks[f],!(X>=V));f++){if(e.src.charCodeAt(X++)===62&&!P){for(a=d=e.sCount[f]+1,e.src.charCodeAt(X)===32?(X++,a++,d++,s=!1,Q=!0):e.src.charCodeAt(X)===9?(Q=!0,(e.bsCount[f]+d)%4===3?(X++,a++,d++,s=!1):s=!0):Q=!1,p.push(e.bMarks[f]),e.bMarks[f]=X;X<V&&(o=e.src.charCodeAt(X),pf(o));){o===9?d+=4-(d+e.bsCount[f]+(s?1:0))%4:d++;X++}h=X>=V,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(Q?1:0),k.push(e.sCount[f]),e.sCount[f]=d-a,y.push(e.tShift[f]),e.tShift[f]=X-e.bMarks[f];continue}if(h)break;for($=!1,l=0,c=w.length;l<c;l++)if(w[l](e,f,r,!0)){$=!0;break}if($){e.lineMax=f,e.blkIndent!==0&&(p.push(e.bMarks[f]),m.push(e.bsCount[f]),y.push(e.tShift[f]),k.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}p.push(e.bMarks[f]),m.push(e.bsCount[f]),y.push(e.tShift[f]),k.push(e.sCount[f]),e.sCount[f]=-1}for(O=e.blkIndent,e.blkIndent=0,A=e.push("blockquote_open","blockquote",1),A.markup=">",A.map=u=[t,0],e.md.block.tokenize(e,t,f),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=I,e.parentType=b,u[1]=e.line,l=0;l<y.length;l++)e.bMarks[l+t]=p[l],e.tShift[l+t]=y[l],e.sCount[l+t]=k[l],e.bsCount[l+t]=m[l];return e.blkIndent=O,!0},ste=ae.isSpace,ote=function(e,t,r,i){var s,o,l,a,c=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(s=e.src.charCodeAt(c++),s!==42&&s!==45&&s!==95))return!1;for(o=1;c<h;){if(l=e.src.charCodeAt(c++),l!==s&&!ste(l))return!1;l===s&&o++}return o<3?!1:(i||(e.line=t+1,a=e.push("hr","hr",0),a.map=[t,e.line],a.markup=Array(o+1).join(String.fromCharCode(s))),!0)},BO=ae.isSpace;function mf(n,e){var t,r,i,s;return r=n.bMarks[e]+n.tShift[e],i=n.eMarks[e],t=n.src.charCodeAt(r++),t!==42&&t!==45&&t!==43||r<i&&(s=n.src.charCodeAt(r),!BO(s))?-1:r}function Of(n,e){var t,r=n.bMarks[e]+n.tShift[e],i=r,s=n.eMarks[e];if(i+1>=s||(t=n.src.charCodeAt(i++),t<48||t>57))return-1;for(;;){if(i>=s)return-1;if(t=n.src.charCodeAt(i++),t>=48&&t<=57){if(i-r>=10)return-1;continue}if(t===41||t===46)break;return-1}return i<s&&(t=n.src.charCodeAt(i),!BO(t))?-1:i}function lte(n,e){var t,r,i=n.level+2;for(t=e+2,r=n.tokens.length-2;t<r;t++)n.tokens[t].level===i&&n.tokens[t].type==="paragraph_open"&&(n.tokens[t+2].hidden=!0,n.tokens[t].hidden=!0,t+=2)}var ate=function(e,t,r,i){var s,o,l,a,c,h,u,f,d,p,m,O,b,k,y,Q,$,w,A,P,I,X,V,q,z,T,U,R,H=!1,ee=!0;if(e.sCount[t]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[t]>=e.blkIndent&&(H=!0),(V=Of(e,t))>=0){if(u=!0,z=e.bMarks[t]+e.tShift[t],b=Number(e.src.slice(z,V-1)),H&&b!==1)return!1}else if((V=mf(e,t))>=0)u=!1;else return!1;if(H&&e.skipSpaces(V)>=e.eMarks[t])return!1;if(O=e.src.charCodeAt(V-1),i)return!0;for(m=e.tokens.length,u?(R=e.push("ordered_list_open","ol",1),b!==1&&(R.attrs=[["start",b]])):R=e.push("bullet_list_open","ul",1),R.map=p=[t,0],R.markup=String.fromCharCode(O),y=t,q=!1,U=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";y<r;){for(X=V,k=e.eMarks[y],h=Q=e.sCount[y]+V-(e.bMarks[t]+e.tShift[t]);X<k;){if(s=e.src.charCodeAt(X),s===9)Q+=4-(Q+e.bsCount[y])%4;else if(s===32)Q++;else break;X++}if(o=X,o>=k?c=1:c=Q-h,c>4&&(c=1),a=h+c,R=e.push("list_item_open","li",1),R.markup=String.fromCharCode(O),R.map=f=[t,0],u&&(R.info=e.src.slice(z,V-1)),I=e.tight,P=e.tShift[t],A=e.sCount[t],$=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=Q,o>=k&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,t,r,!0),(!e.tight||q)&&(ee=!1),q=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=$,e.tShift[t]=P,e.sCount[t]=A,e.tight=I,R=e.push("list_item_close","li",-1),R.markup=String.fromCharCode(O),y=t=e.line,f[1]=y,o=e.bMarks[t],y>=r||e.sCount[y]<e.blkIndent||e.sCount[t]-e.blkIndent>=4)break;for(T=!1,l=0,d=U.length;l<d;l++)if(U[l](e,y,r,!0)){T=!0;break}if(T)break;if(u){if(V=Of(e,y),V<0)break;z=e.bMarks[y]+e.tShift[y]}else if(V=mf(e,y),V<0)break;if(O!==e.src.charCodeAt(V-1))break}return u?R=e.push("ordered_list_close","ol",-1):R=e.push("bullet_list_close","ul",-1),R.markup=String.fromCharCode(O),p[1]=y,e.line=y,e.parentType=w,ee&&lte(e,m),!0},cte=ae.normalizeReference,ys=ae.isSpace,hte=function(e,t,r,i){var s,o,l,a,c,h,u,f,d,p,m,O,b,k,y,Q,$=0,w=e.bMarks[t]+e.tShift[t],A=e.eMarks[t],P=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(w)!==91)return!1;for(;++w<A;)if(e.src.charCodeAt(w)===93&&e.src.charCodeAt(w-1)!==92){if(w+1===A||e.src.charCodeAt(w+1)!==58)return!1;break}for(a=e.lineMax,y=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";P<a&&!e.isEmpty(P);P++)if(!(e.sCount[P]-e.blkIndent>3)&&!(e.sCount[P]<0)){for(k=!1,h=0,u=y.length;h<u;h++)if(y[h](e,P,a,!0)){k=!0;break}if(k)break}for(b=e.getLines(t,P,e.blkIndent,!1).trim(),A=b.length,w=1;w<A;w++){if(s=b.charCodeAt(w),s===91)return!1;if(s===93){d=w;break}else s===10?$++:s===92&&(w++,w<A&&b.charCodeAt(w)===10&&$++)}if(d<0||b.charCodeAt(d+1)!==58)return!1;for(w=d+2;w<A;w++)if(s=b.charCodeAt(w),s===10)$++;else if(!ys(s))break;if(m=e.md.helpers.parseLinkDestination(b,w,A),!m.ok||(c=e.md.normalizeLink(m.str),!e.md.validateLink(c)))return!1;for(w=m.pos,$+=m.lines,o=w,l=$,O=w;w<A;w++)if(s=b.charCodeAt(w),s===10)$++;else if(!ys(s))break;for(m=e.md.helpers.parseLinkTitle(b,w,A),w<A&&O!==w&&m.ok?(Q=m.str,w=m.pos,$+=m.lines):(Q="",w=o,$=l);w<A&&(s=b.charCodeAt(w),!!ys(s));)w++;if(w<A&&b.charCodeAt(w)!==10&&Q)for(Q="",w=o,$=l;w<A&&(s=b.charCodeAt(w),!!ys(s));)w++;return w<A&&b.charCodeAt(w)!==10||(f=cte(b.slice(1,d)),!f)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:Q,href:c}),e.parentType=p,e.line=t+$+1),!0)},ute=["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"],To={},fte="[a-zA-Z_:][a-zA-Z0-9:._-]*",dte="[^\"'=<>`\\x00-\\x20]+",pte="'[^']*'",mte='"[^"]*"',Ote="(?:"+dte+"|"+pte+"|"+mte+")",gte="(?:\\s+"+fte+"(?:\\s*=\\s*"+Ote+")?)",WO="<[A-Za-z][A-Za-z0-9\\-]*"+gte+"*\\s*\\/?>",YO="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",bte="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",vte="<[?][\\s\\S]*?[?]>",Ste="<![A-Z]+\\s+[^>]*>",kte="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",yte=new RegExp("^(?:"+WO+"|"+YO+"|"+bte+"|"+vte+"|"+Ste+"|"+kte+")"),wte=new RegExp("^(?:"+WO+"|"+YO+")");To.HTML_TAG_RE=yte;To.HTML_OPEN_CLOSE_TAG_RE=wte;var xte=ute,Qte=To.HTML_OPEN_CLOSE_TAG_RE,sr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+xte.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Qte.source+"\\s*$"),/^$/,!1]],$te=function(e,t,r,i){var s,o,l,a,c=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(a=e.src.slice(c,h),s=0;s<sr.length&&!sr[s][0].test(a);s++);if(s===sr.length)return!1;if(i)return sr[s][2];if(o=t+1,!sr[s][1].test(a)){for(;o<r&&!(e.sCount[o]<e.blkIndent);o++)if(c=e.bMarks[o]+e.tShift[o],h=e.eMarks[o],a=e.src.slice(c,h),sr[s][1].test(a)){a.length!==0&&o++;break}}return e.line=o,l=e.push("html_block","",0),l.map=[t,o],l.content=e.getLines(t,o,e.blkIndent,!0),!0},gf=ae.isSpace,_te=function(e,t,r,i){var s,o,l,a,c=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(s=e.src.charCodeAt(c),s!==35||c>=h))return!1;for(o=1,s=e.src.charCodeAt(++c);s===35&&c<h&&o<=6;)o++,s=e.src.charCodeAt(++c);return o>6||c<h&&!gf(s)?!1:(i||(h=e.skipSpacesBack(h,c),l=e.skipCharsBack(h,35,c),l>c&&gf(e.src.charCodeAt(l-1))&&(h=l),e.line=t+1,a=e.push("heading_open","h"+String(o),1),a.markup="########".slice(0,o),a.map=[t,e.line],a=e.push("inline","",0),a.content=e.src.slice(c,h).trim(),a.map=[t,e.line],a.children=[],a=e.push("heading_close","h"+String(o),-1),a.markup="########".slice(0,o)),!0)},Pte=function(e,t,r){var i,s,o,l,a,c,h,u,f,d=t+1,p,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(c=e.bMarks[d]+e.tShift[d],h=e.eMarks[d],c<h&&(f=e.src.charCodeAt(c),(f===45||f===61)&&(c=e.skipChars(c,f),c=e.skipSpaces(c),c>=h)))){u=f===61?1:2;break}if(!(e.sCount[d]<0)){for(s=!1,o=0,l=m.length;o<l;o++)if(m[o](e,d,r,!0)){s=!0;break}if(s)break}}return u?(i=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,a=e.push("heading_open","h"+String(u),1),a.markup=String.fromCharCode(f),a.map=[t,e.line],a=e.push("inline","",0),a.content=i,a.map=[t,e.line-1],a.children=[],a=e.push("heading_close","h"+String(u),-1),a.markup=String.fromCharCode(f),e.parentType=p,!0):!1},Cte=function(e,t){var r,i,s,o,l,a,c=t+1,h=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(a=e.parentType,e.parentType="paragraph";c<u&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3)&&!(e.sCount[c]<0)){for(i=!1,s=0,o=h.length;s<o;s++)if(h[s](e,c,u,!0)){i=!0;break}if(i)break}return r=e.getLines(t,c,e.blkIndent,!1).trim(),e.line=c,l=e.push("paragraph_open","p",1),l.map=[t,e.line],l=e.push("inline","",0),l.content=r,l.map=[t,e.line],l.children=[],l=e.push("paragraph_close","p",-1),e.parentType=a,!0},jO=wc,Eo=ae.isSpace;function Ht(n,e,t,r){var i,s,o,l,a,c,h,u;for(this.src=n,this.md=e,this.env=t,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,this.result="",s=this.src,u=!1,o=l=c=h=0,a=s.length;l<a;l++){if(i=s.charCodeAt(l),!u)if(Eo(i)){c++,i===9?h+=4-h%4:h++;continue}else u=!0;(i===10||l===a-1)&&(i!==10&&l++,this.bMarks.push(o),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(h),this.bsCount.push(0),u=!1,c=0,h=0,o=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ht.prototype.push=function(n,e,t){var r=new jO(n,e,t);return r.block=!0,t<0&&this.level--,r.level=this.level,t>0&&this.level++,this.tokens.push(r),r};Ht.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Ht.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Ht.prototype.skipSpaces=function(e){for(var t,r=this.src.length;e<r&&(t=this.src.charCodeAt(e),!!Eo(t));e++);return e};Ht.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Eo(this.src.charCodeAt(--e)))return e+1;return e};Ht.prototype.skipChars=function(e,t){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e};Ht.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e};Ht.prototype.getLines=function(e,t,r,i){var s,o,l,a,c,h,u,f=e;if(e>=t)return"";for(h=new Array(t-e),s=0;f<t;f++,s++){for(o=0,u=a=this.bMarks[f],f+1<t||i?c=this.eMarks[f]+1:c=this.eMarks[f];a<c&&o<r;){if(l=this.src.charCodeAt(a),Eo(l))l===9?o+=4-(o+this.bsCount[f])%4:o++;else if(a-u<this.tShift[f])o++;else break;a++}o>r?h[s]=new Array(o-r+1).join(" ")+this.src.slice(a,c):h[s]=this.src.slice(a,c)}return h.join("")};Ht.prototype.Token=jO;var Ate=Ht,Tte=yc,ws=[["table",tte,["paragraph","reference"]],["code",nte],["fence",rte,["paragraph","reference","blockquote","list"]],["blockquote",ite,["paragraph","reference","blockquote","list"]],["hr",ote,["paragraph","reference","blockquote","list"]],["list",ate,["paragraph","reference","blockquote"]],["reference",hte],["html_block",$te,["paragraph","reference","blockquote"]],["heading",_te,["paragraph","reference","blockquote"]],["lheading",Pte],["paragraph",Cte]];function Xo(){this.ruler=new Tte;for(var n=0;n<ws.length;n++)this.ruler.push(ws[n][0],ws[n][1],{alt:(ws[n][2]||[]).slice()})}Xo.prototype.tokenize=function(n,e,t){for(var r,i,s=this.ruler.getRules(""),o=s.length,l=e,a=!1,c=n.md.options.maxNesting;l<t&&(n.line=l=n.skipEmptyLines(l),!(l>=t||n.sCount[l]<n.blkIndent));){if(n.level>=c){n.line=t;break}for(i=0;i<o&&(r=s[i](n,l,t,!1),!r);i++);n.tight=!a,n.isEmpty(n.line-1)&&(a=!0),l=n.line,l<t&&n.isEmpty(l)&&(a=!0,l++,n.line=l)}};Xo.prototype.parse=function(n,e,t,r){var i;n&&(i=new this.State(n,e,t,r),this.tokenize(i,i.line,i.lineMax))};Xo.prototype.State=Ate;var Ete=Xo;function Xte(n){switch(n){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}}var Dte=function(e,t){for(var r=e.pos;r<e.posMax&&!Xte(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},Rte=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Zte=function(e,t){var r,i,s,o,l,a,c,h;return!e.md.options.linkify||e.linkLevel>0||(r=e.pos,i=e.posMax,r+3>i)||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47||(s=e.pending.match(Rte),!s)||(o=s[1],l=e.md.linkify.matchAtStart(e.src.slice(r-o.length)),!l)||(a=l.url,a=a.replace(/\*+$/,""),c=e.md.normalizeLink(a),!e.md.validateLink(c))?!1:(t||(e.pending=e.pending.slice(0,-o.length),h=e.push("link_open","a",1),h.attrs=[["href",c]],h.markup="linkify",h.info="auto",h=e.push("text","",0),h.content=e.md.normalizeLinkText(a),h=e.push("link_close","a",-1),h.markup="linkify",h.info="auto"),e.pos+=a.length-o.length,!0)},qte=ae.isSpace,Lte=function(e,t){var r,i,s,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(r=e.pending.length-1,i=e.posMax,!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(s=r-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o<i&&qte(e.src.charCodeAt(o));)o++;return e.pos=o,!0},Vte=ae.isSpace,Qc=[];for(var bf=0;bf<256;bf++)Qc.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(n){Qc[n.charCodeAt(0)]=1});var Ite=function(e,t){var r,i,s,o,l,a=e.pos,c=e.posMax;if(e.src.charCodeAt(a)!==92||(a++,a>=c))return!1;if(r=e.src.charCodeAt(a),r===10){for(t||e.push("hardbreak","br",0),a++;a<c&&(r=e.src.charCodeAt(a),!!Vte(r));)a++;return e.pos=a,!0}return o=e.src[a],r>=55296&&r<=56319&&a+1<c&&(i=e.src.charCodeAt(a+1),i>=56320&&i<=57343&&(o+=e.src[a+1],a++)),s="\\"+o,t||(l=e.push("text_special","",0),r<256&&Qc[r]!==0?l.content=o:l.content=s,l.markup=s,l.info="escape"),e.pos=a+1,!0},Mte=function(e,t){var r,i,s,o,l,a,c,h,u=e.pos,f=e.src.charCodeAt(u);if(f!==96)return!1;for(r=u,u++,i=e.posMax;u<i&&e.src.charCodeAt(u)===96;)u++;if(s=e.src.slice(r,u),c=s.length,e.backticksScanned&&(e.backticks[c]||0)<=r)return t||(e.pending+=s),e.pos+=c,!0;for(l=a=u;(l=e.src.indexOf("`",a))!==-1;){for(a=l+1;a<i&&e.src.charCodeAt(a)===96;)a++;if(h=a-l,h===c)return t||(o=e.push("code_inline","code",0),o.markup=s,o.content=e.src.slice(u,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[h]=l}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=c,!0},Do={};Do.tokenize=function(e,t){var r,i,s,o,l,a=e.pos,c=e.src.charCodeAt(a);if(t||c!==126||(i=e.scanDelims(e.pos,!0),o=i.length,l=String.fromCharCode(c),o<2))return!1;for(o%2&&(s=e.push("text","",0),s.content=l,o--),r=0;r<o;r+=2)s=e.push("text","",0),s.content=l+l,e.delimiters.push({marker:c,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function vf(n,e){var t,r,i,s,o,l=[],a=e.length;for(t=0;t<a;t++)i=e[t],i.marker===126&&i.end!==-1&&(s=e[i.end],o=n.tokens[i.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=n.tokens[s.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="",n.tokens[s.token-1].type==="text"&&n.tokens[s.token-1].content==="~"&&l.push(s.token-1));for(;l.length;){for(t=l.pop(),r=t+1;r<n.tokens.length&&n.tokens[r].type==="s_close";)r++;r--,t!==r&&(o=n.tokens[r],n.tokens[r]=n.tokens[t],n.tokens[t]=o)}}Do.postProcess=function(e){var t,r=e.tokens_meta,i=e.tokens_meta.length;for(vf(e,e.delimiters),t=0;t<i;t++)r[t]&&r[t].delimiters&&vf(e,r[t].delimiters)};var Ro={};Ro.tokenize=function(e,t){var r,i,s,o=e.pos,l=e.src.charCodeAt(o);if(t||l!==95&&l!==42)return!1;for(i=e.scanDelims(e.pos,l===42),r=0;r<i.length;r++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function Sf(n,e){var t,r,i,s,o,l,a=e.length;for(t=a-1;t>=0;t--)r=e[t],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=e[r.end],l=t>0&&e[t-1].end===r.end+1&&e[t-1].marker===r.marker&&e[t-1].token===r.token-1&&e[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),s=n.tokens[r.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?o+o:o,s.content="",s=n.tokens[i.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?o+o:o,s.content="",l&&(n.tokens[e[t-1].token].content="",n.tokens[e[r.end+1].token].content="",t--))}Ro.postProcess=function(e){var t,r=e.tokens_meta,i=e.tokens_meta.length;for(Sf(e,e.delimiters),t=0;t<i;t++)r[t]&&r[t].delimiters&&Sf(e,r[t].delimiters)};var zte=ae.normalizeReference,kl=ae.isSpace,Ute=function(e,t){var r,i,s,o,l,a,c,h,u,f="",d="",p=e.pos,m=e.posMax,O=e.pos,b=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,o=e.md.helpers.parseLinkLabel(e,e.pos,!0),o<0))return!1;if(a=o+1,a<m&&e.src.charCodeAt(a)===40){for(b=!1,a++;a<m&&(i=e.src.charCodeAt(a),!(!kl(i)&&i!==10));a++);if(a>=m)return!1;if(O=a,c=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),c.ok){for(f=e.md.normalizeLink(c.str),e.md.validateLink(f)?a=c.pos:f="",O=a;a<m&&(i=e.src.charCodeAt(a),!(!kl(i)&&i!==10));a++);if(c=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<m&&O!==a&&c.ok)for(d=c.str,a=c.pos;a<m&&(i=e.src.charCodeAt(a),!(!kl(i)&&i!==10));a++);}(a>=m||e.src.charCodeAt(a)!==41)&&(b=!0),a++}if(b){if(typeof e.env.references>"u")return!1;if(a<m&&e.src.charCodeAt(a)===91?(O=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(O,a++):a=o+1):a=o+1,s||(s=e.src.slice(l,o)),h=e.env.references[zte(s)],!h)return e.pos=p,!1;f=h.href,d=h.title}return t||(e.pos=l,e.posMax=o,u=e.push("link_open","a",1),u.attrs=r=[["href",f]],d&&r.push(["title",d]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,u=e.push("link_close","a",-1)),e.pos=a,e.posMax=m,!0},Bte=ae.normalizeReference,yl=ae.isSpace,Wte=function(e,t){var r,i,s,o,l,a,c,h,u,f,d,p,m,O="",b=e.pos,k=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(c=l+1,c<k&&e.src.charCodeAt(c)===40){for(c++;c<k&&(i=e.src.charCodeAt(c),!(!yl(i)&&i!==10));c++);if(c>=k)return!1;for(m=c,u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),u.ok&&(O=e.md.normalizeLink(u.str),e.md.validateLink(O)?c=u.pos:O=""),m=c;c<k&&(i=e.src.charCodeAt(c),!(!yl(i)&&i!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<k&&m!==c&&u.ok)for(f=u.str,c=u.pos;c<k&&(i=e.src.charCodeAt(c),!(!yl(i)&&i!==10));c++);else f="";if(c>=k||e.src.charCodeAt(c)!==41)return e.pos=b,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c<k&&e.src.charCodeAt(c)===91?(m=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?o=e.src.slice(m,c++):c=l+1):c=l+1,o||(o=e.src.slice(a,l)),h=e.env.references[Bte(o)],!h)return e.pos=b,!1;O=h.href,f=h.title}return t||(s=e.src.slice(a,l),e.md.inline.parse(s,e.md,e.env,p=[]),d=e.push("image","img",0),d.attrs=r=[["src",O],["alt",""]],d.children=p,d.content=s,f&&r.push(["title",f])),e.pos=c,e.posMax=k,!0},Yte=/^([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])?)*)$/,jte=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Nte=function(e,t){var r,i,s,o,l,a,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(l=e.pos,a=e.posMax;;){if(++c>=a||(o=e.src.charCodeAt(c),o===60))return!1;if(o===62)break}return r=e.src.slice(l+1,c),jte.test(r)?(i=e.md.normalizeLink(r),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):Yte.test(r)?(i=e.md.normalizeLink("mailto:"+r),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):!1},Fte=To.HTML_TAG_RE;function Gte(n){return/^<a[>\s]/i.test(n)}function Hte(n){return/^<\/a\s*>/i.test(n)}function Jte(n){var e=n|32;return e>=97&&e<=122}var Kte=function(e,t){var r,i,s,o,l=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(l)!==60||l+2>=s)||(r=e.src.charCodeAt(l+1),r!==33&&r!==63&&r!==47&&!Jte(r))||(i=e.src.slice(l).match(Fte),!i)?!1:(t||(o=e.push("html_inline","",0),o.content=e.src.slice(l,l+i[0].length),Gte(o.content)&&e.linkLevel++,Hte(o.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},kf=LO,ene=ae.has,tne=ae.isValidEntityCode,yf=ae.fromCodePoint,nne=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,rne=/^&([a-z][a-z0-9]{1,31});/i,ine=function(e,t){var r,i,s,o,l=e.pos,a=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=a)return!1;if(r=e.src.charCodeAt(l+1),r===35){if(s=e.src.slice(l).match(nne),s)return t||(i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),o=e.push("text_special","",0),o.content=tne(i)?yf(i):yf(65533),o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(rne),s&&ene(kf,s[1]))return t||(o=e.push("text_special","",0),o.content=kf[s[1]],o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0;return!1};function wf(n,e){var t,r,i,s,o,l,a,c,h={},u=e.length;if(u){var f=0,d=-2,p=[];for(t=0;t<u;t++)if(i=e[t],p.push(0),(e[f].marker!==i.marker||d!==i.token-1)&&(f=t),d=i.token,i.length=i.length||0,!!i.close){for(h.hasOwnProperty(i.marker)||(h[i.marker]=[-1,-1,-1,-1,-1,-1]),o=h[i.marker][(i.open?3:0)+i.length%3],r=f-p[f]-1,l=r;r>o;r-=p[r]+1)if(s=e[r],s.marker===i.marker&&s.open&&s.end<0&&(a=!1,(s.close||i.open)&&(s.length+i.length)%3===0&&(s.length%3!==0||i.length%3!==0)&&(a=!0),!a)){c=r>0&&!e[r-1].open?p[r-1]+1:0,p[t]=t-r+c,p[r]=c,i.open=!1,s.end=t,s.close=!1,l=-1,d=-2;break}l!==-1&&(h[i.marker][(i.open?3:0)+(i.length||0)%3]=l)}}}var sne=function(e){var t,r=e.tokens_meta,i=e.tokens_meta.length;for(wf(e,e.delimiters),t=0;t<i;t++)r[t]&&r[t].delimiters&&wf(e,r[t].delimiters)},one=function(e){var t,r,i=0,s=e.tokens,o=e.tokens.length;for(t=r=0;t<o;t++)s[t].nesting<0&&i--,s[t].level=i,s[t].nesting>0&&i++,s[t].type==="text"&&t+1<o&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==r&&(s[r]=s[t]),r++);t!==r&&(s.length=r)},$c=wc,xf=ae.isWhiteSpace,Qf=ae.isPunctChar,$f=ae.isMdAsciiPunct;function Bi(n,e,t,r){this.src=n,this.env=t,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}Bi.prototype.pushPending=function(){var n=new $c("text","",0);return n.content=this.pending,n.level=this.pendingLevel,this.tokens.push(n),this.pending="",n};Bi.prototype.push=function(n,e,t){this.pending&&this.pushPending();var r=new $c(n,e,t),i=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};Bi.prototype.scanDelims=function(n,e){var t=n,r,i,s,o,l,a,c,h,u,f=!0,d=!0,p=this.posMax,m=this.src.charCodeAt(n);for(r=n>0?this.src.charCodeAt(n-1):32;t<p&&this.src.charCodeAt(t)===m;)t++;return s=t-n,i=t<p?this.src.charCodeAt(t):32,c=$f(r)||Qf(String.fromCharCode(r)),u=$f(i)||Qf(String.fromCharCode(i)),a=xf(r),h=xf(i),h?f=!1:u&&(a||c||(f=!1)),a?d=!1:c&&(h||u||(d=!1)),e?(o=f,l=d):(o=f&&(!d||c),l=d&&(!f||u)),{can_open:o,can_close:l,length:s}};Bi.prototype.Token=$c;var lne=Bi,_f=yc,wl=[["text",Dte],["linkify",Zte],["newline",Lte],["escape",Ite],["backticks",Mte],["strikethrough",Do.tokenize],["emphasis",Ro.tokenize],["link",Ute],["image",Wte],["autolink",Nte],["html_inline",Kte],["entity",ine]],xl=[["balance_pairs",sne],["strikethrough",Do.postProcess],["emphasis",Ro.postProcess],["fragments_join",one]];function Wi(){var n;for(this.ruler=new _f,n=0;n<wl.length;n++)this.ruler.push(wl[n][0],wl[n][1]);for(this.ruler2=new _f,n=0;n<xl.length;n++)this.ruler2.push(xl[n][0],xl[n][1])}Wi.prototype.skipToken=function(n){var e,t,r=n.pos,i=this.ruler.getRules(""),s=i.length,o=n.md.options.maxNesting,l=n.cache;if(typeof l[r]<"u"){n.pos=l[r];return}if(n.level<o)for(t=0;t<s&&(n.level++,e=i[t](n,!0),n.level--,!e);t++);else n.pos=n.posMax;e||n.pos++,l[r]=n.pos};Wi.prototype.tokenize=function(n){for(var e,t,r=this.ruler.getRules(""),i=r.length,s=n.posMax,o=n.md.options.maxNesting;n.pos<s;){if(n.level<o)for(t=0;t<i&&(e=r[t](n,!1),!e);t++);if(e){if(n.pos>=s)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};Wi.prototype.parse=function(n,e,t,r){var i,s,o,l=new this.State(n,e,t,r);for(this.tokenize(l),s=this.ruler2.getRules(""),o=s.length,i=0;i<o;i++)s[i](l)};Wi.prototype.State=lne;var ane=Wi,Ql,Pf;function cne(){return Pf||(Pf=1,Ql=function(n){var e={};n=n||{},e.src_Any=VO().source,e.src_Cc=IO().source,e.src_Z=MO().source,e.src_P=kc.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var t="[><｜]";return e.src_pseudo_letter="(?:(?!"+t+"|"+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+"|[@/\\[\\]()]).)+@)?",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="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(n["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+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+"|[.]|$)|"+(n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',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="(^|"+t+'|"|\\(|'+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}),Ql}function xa(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(r){n[r]=t[r]})}),n}function Zo(n){return Object.prototype.toString.call(n)}function hne(n){return Zo(n)==="[object String]"}function une(n){return Zo(n)==="[object Object]"}function fne(n){return Zo(n)==="[object RegExp]"}function Cf(n){return Zo(n)==="[object Function]"}function dne(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var NO={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function pne(n){return Object.keys(n||{}).reduce(function(e,t){return e||NO.hasOwnProperty(t)},!1)}var mne={"http:":{validate:function(n,e,t){var r=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(r)?r.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var r=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(r)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:r.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var r=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(r)?r.match(t.re.mailto)[0].length:0}}},One="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]",gne="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function bne(n){n.__index__=-1,n.__text_cache__=""}function vne(n){return function(e,t){var r=e.slice(t);return n.test(r)?r.match(n)[0].length:0}}function Af(){return function(n,e){e.normalize(n)}}function lo(n){var e=n.re=cne()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(One),t.push(e.src_xn),e.src_tlds=t.join("|");function r(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];n.__compiled__={};function s(l,a){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+a)}Object.keys(n.__schemas__).forEach(function(l){var a=n.__schemas__[l];if(a!==null){var c={validate:null,link:null};if(n.__compiled__[l]=c,une(a)){fne(a.validate)?c.validate=vne(a.validate):Cf(a.validate)?c.validate=a.validate:s(l,a),Cf(a.normalize)?c.normalize=a.normalize:a.normalize?s(l,a):c.normalize=Af();return}if(hne(a)){i.push(l);return}s(l,a)}}),i.forEach(function(l){n.__compiled__[n.__schemas__[l]]&&(n.__compiled__[l].validate=n.__compiled__[n.__schemas__[l]].validate,n.__compiled__[l].normalize=n.__compiled__[n.__schemas__[l]].normalize)}),n.__compiled__[""]={validate:null,normalize:Af()};var o=Object.keys(n.__compiled__).filter(function(l){return l.length>0&&n.__compiled__[l]}).map(dne).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),bne(n)}function Sne(n,e){var t=n.__index__,r=n.__last_index__,i=n.__text_cache__.slice(t,r);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function Qa(n,e){var t=new Sne(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function at(n,e){if(!(this instanceof at))return new at(n,e);e||pne(n)&&(e=n,n={}),this.__opts__=xa({},NO,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=xa({},mne,n),this.__compiled__={},this.__tlds__=gne,this.__tlds_replaced__=!1,this.re={},lo(this)}at.prototype.add=function(e,t){return this.__schemas__[e]=t,lo(this),this};at.prototype.set=function(e){return this.__opts__=xa(this.__opts__,e),this};at.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,i,s,o,l,a,c,h;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(t=a.exec(e))!==null;)if(s=this.testSchemaAt(e,t[2],a.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=e.indexOf("@"),h>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=l))),this.__index__>=0};at.prototype.pretest=function(e){return this.re.pretest.test(e)};at.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0};at.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Qa(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)r.push(Qa(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null};at.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,Qa(this,0)):null};at.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,s){return r!==s[i-1]}).reverse(),lo(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,lo(this),this)};at.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};at.prototype.onCompile=function(){};var kne=at;const Or=2147483647,Bt=36,_c=1,Ti=26,yne=38,wne=700,FO=72,GO=128,HO="-",xne=/^xn--/,Qne=/[^\0-\x7F]/,$ne=/[\x2E\u3002\uFF0E\uFF61]/g,_ne={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$l=Bt-_c,Wt=Math.floor,_l=String.fromCharCode;function yn(n){throw new RangeError(_ne[n])}function Pne(n,e){const t=[];let r=n.length;for(;r--;)t[r]=e(n[r]);return t}function JO(n,e){const t=n.split("@");let r="";t.length>1&&(r=t[0]+"@",n=t[1]),n=n.replace($ne,".");const i=n.split("."),s=Pne(i,e).join(".");return r+s}function Pc(n){const e=[];let t=0;const r=n.length;for(;t<r;){const i=n.charCodeAt(t++);if(i>=55296&&i<=56319&&t<r){const s=n.charCodeAt(t++);(s&64512)==56320?e.push(((i&1023)<<10)+(s&1023)+65536):(e.push(i),t--)}else e.push(i)}return e}const KO=n=>String.fromCodePoint(...n),Cne=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:Bt},Tf=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},eg=function(n,e,t){let r=0;for(n=t?Wt(n/wne):n>>1,n+=Wt(n/e);n>$l*Ti>>1;r+=Bt)n=Wt(n/$l);return Wt(r+($l+1)*n/(n+yne))},Cc=function(n){const e=[],t=n.length;let r=0,i=GO,s=FO,o=n.lastIndexOf(HO);o<0&&(o=0);for(let l=0;l<o;++l)n.charCodeAt(l)>=128&&yn("not-basic"),e.push(n.charCodeAt(l));for(let l=o>0?o+1:0;l<t;){const a=r;for(let h=1,u=Bt;;u+=Bt){l>=t&&yn("invalid-input");const f=Cne(n.charCodeAt(l++));f>=Bt&&yn("invalid-input"),f>Wt((Or-r)/h)&&yn("overflow"),r+=f*h;const d=u<=s?_c:u>=s+Ti?Ti:u-s;if(f<d)break;const p=Bt-d;h>Wt(Or/p)&&yn("overflow"),h*=p}const c=e.length+1;s=eg(r-a,c,a==0),Wt(r/c)>Or-i&&yn("overflow"),i+=Wt(r/c),r%=c,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Ac=function(n){const e=[];n=Pc(n);const t=n.length;let r=GO,i=0,s=FO;for(const a of n)a<128&&e.push(_l(a));const o=e.length;let l=o;for(o&&e.push(HO);l<t;){let a=Or;for(const h of n)h>=r&&h<a&&(a=h);const c=l+1;a-r>Wt((Or-i)/c)&&yn("overflow"),i+=(a-r)*c,r=a;for(const h of n)if(h<r&&++i>Or&&yn("overflow"),h===r){let u=i;for(let f=Bt;;f+=Bt){const d=f<=s?_c:f>=s+Ti?Ti:f-s;if(u<d)break;const p=u-d,m=Bt-d;e.push(_l(Tf(d+p%m,0))),u=Wt(p/m)}e.push(_l(Tf(u,0))),s=eg(i,c,l===o),i=0,++l}++i,++r}return e.join("")},tg=function(n){return JO(n,function(e){return xne.test(e)?Cc(e.slice(4).toLowerCase()):e})},ng=function(n){return JO(n,function(e){return Qne.test(e)?"xn--"+Ac(e):e})},Ane={version:"2.1.0",ucs2:{decode:Pc,encode:KO},decode:Cc,encode:Ac,toASCII:ng,toUnicode:tg},Tne=Object.freeze(Object.defineProperty({__proto__:null,decode:Cc,default:Ane,encode:Ac,toASCII:ng,toUnicode:tg,ucs2decode:Pc,ucs2encode:KO},Symbol.toStringTag,{value:"Module"})),Ene=kg(Tne);var Xne={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Dne={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"]}}},Rne={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"]}}},Oi=ae,Zne=Ao,qne=Aee,Lne=ete,Vne=Ete,Ine=ane,Mne=kne,zn=zr,rg=Ene,zne={default:Xne,zero:Dne,commonmark:Rne},Une=/^(vbscript|javascript|file|data):/,Bne=/^data:image\/(gif|png|jpeg|webp);/;function Wne(n){var e=n.trim().toLowerCase();return Une.test(e)?!!Bne.test(e):!0}var ig=["http:","https:","mailto:"];function Yne(n){var e=zn.parse(n,!0);if(e.hostname&&(!e.protocol||ig.indexOf(e.protocol)>=0))try{e.hostname=rg.toASCII(e.hostname)}catch{}return zn.encode(zn.format(e))}function jne(n){var e=zn.parse(n,!0);if(e.hostname&&(!e.protocol||ig.indexOf(e.protocol)>=0))try{e.hostname=rg.toUnicode(e.hostname)}catch{}return zn.decode(zn.format(e),zn.decode.defaultChars+"%")}function mt(n,e){if(!(this instanceof mt))return new mt(n,e);e||Oi.isString(n)||(e=n||{},n="default"),this.inline=new Ine,this.block=new Vne,this.core=new Lne,this.renderer=new qne,this.linkify=new Mne,this.validateLink=Wne,this.normalizeLink=Yne,this.normalizeLinkText=jne,this.utils=Oi,this.helpers=Oi.assign({},Zne),this.options={},this.configure(n),e&&this.set(e)}mt.prototype.set=function(n){return Oi.assign(this.options,n),this};mt.prototype.configure=function(n){var e=this,t;if(Oi.isString(n)&&(t=n,n=zne[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(r){n.components[r].rules&&e[r].ruler.enableOnly(n.components[r].rules),n.components[r].rules2&&e[r].ruler2.enableOnly(n.components[r].rules2)}),this};mt.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var r=n.filter(function(i){return t.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};mt.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var r=n.filter(function(i){return t.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};mt.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};mt.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};mt.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};mt.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};mt.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var Nne=mt,Fne=Nne;const Gne=ho(Fne),Ef=new Set([!0,!1,"alt","title"]);function sg(n,e){return(Array.isArray(n)?n:[]).filter(([t])=>t!==e)}function og(n,e){n&&n.attrs&&(n.attrs=sg(n.attrs,e))}function Hne(n,e){if(!Ef.has(n))throw new TypeError(`figcaption must be one of: ${[...Ef]}.`);if(n==="alt")return e.content;const t=e.attrs.find(([r])=>r==="title");return Array.isArray(t)&&t[1]?(og(e,"title"),t[1]):void 0}function Jne(n,e){e=e||{},n.core.ruler.before("linkify","image_figures",function(t){let r=1;for(let i=1,s=t.tokens.length;i<s-1;++i){const o=t.tokens[i];if(o.type!=="inline"||!o.children||o.children.length!==1&&o.children.length!==3||o.children.length===1&&o.children[0].type!=="image")continue;if(o.children.length===3){const[c,h,u]=o.children;if(c.type!=="link_open"||h.type!=="image"||u.type!=="link_close")continue}if(i!==0&&t.tokens[i-1].type!=="paragraph_open"||i!==s-1&&t.tokens[i+1].type!=="paragraph_close")continue;const l=t.tokens[i-1];let a;if(l.type="figure_open",l.tag="figure",t.tokens[i+1].type="figure_close",t.tokens[i+1].tag="figure",e.dataType&&t.tokens[i-1].attrPush(["data-type","image"]),e.link&&o.children.length===1){[a]=o.children;const c=new t.Token("link_open","a",1);c.attrPush(["href",a.attrGet("src")]),o.children.unshift(c),o.children.push(new t.Token("link_close","a",-1))}if(a=o.children.length===1?o.children[0]:o.children[1],e.figcaption){const c=Hne(e.figcaption,a);if(c){const[h]=n.parseInline(c,t.env);o.children.push(new t.Token("figcaption_open","figcaption",1)),o.children.push(...h.children),o.children.push(new t.Token("figcaption_close","figcaption",-1)),a.attrs&&(a.attrs=sg(a.attrs,"title"))}}if(e.copyAttrs&&a.attrs){const c=e.copyAttrs===!0?"":e.copyAttrs;l.attrs=a.attrs.filter(([h])=>h.match(c)).map(h=>Array.from(h))}if(e.tabindex&&(t.tokens[i-1].attrPush(["tabindex",r]),r++),e.lazy&&(a.attrs.some(([c])=>c==="loading")||a.attrs.push(["loading","lazy"])),e.async&&(a.attrs.some(([c])=>c==="decoding")||a.attrs.push(["decoding","async"])),e.classes&&typeof e.classes=="string"){let c=!1;for(let h=0,u=a.attrs.length;h<u&&!c;h++){const f=a.attrs[h];f[0]==="class"&&(f[1]=`${f[1]} ${e.classes}`,c=!0)}c||a.attrs.push(["class",e.classes])}if(e.removeSrc){const c=a.attrs.find(([h])=>h==="src");a.attrs.push(["data-src",c[1]]),og(a,"src")}}})}var $a=!0,lg=!1,ag=!1,Kne=function(n,e){e&&($a=!e.enabled,lg=!!e.label,ag=!!e.labelAfter),n.core.ruler.after("inline","github-task-lists",function(t){for(var r=t.tokens,i=2;i<r.length;i++)tre(r,i)&&(nre(r[i],t.Token),Xf(r[i-2],"class","task-list-item"+($a?"":" enabled")),Xf(r[ere(r,i-2)],"class","contains-task-list"))})};function Xf(n,e,t){var r=n.attrIndex(e),i=[e,t];r<0?n.attrPush(i):n.attrs[r]=i}function ere(n,e){for(var t=n[e].level-1,r=e-1;r>=0;r--)if(n[r].level===t)return r;return-1}function tre(n,e){return lre(n[e])&&are(n[e-1])&&cre(n[e-2])&&hre(n[e])}function nre(n,e){if(n.children.unshift(rre(n,e)),n.children[1].content=n.children[1].content.slice(3),n.content=n.content.slice(3),lg)if(ag){n.children.pop();var t="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);n.children[0].content=n.children[0].content.slice(0,-1)+' id="'+t+'">',n.children.push(ore(n.content,t,e))}else n.children.unshift(ire(e)),n.children.push(sre(e))}function rre(n,e){var t=new e("html_inline","",0),r=$a?' disabled="" ':"";return n.content.indexOf("[ ] ")===0?t.content='<input class="task-list-item-checkbox"'+r+'type="checkbox">':(n.content.indexOf("[x] ")===0||n.content.indexOf("[X] ")===0)&&(t.content='<input class="task-list-item-checkbox" checked=""'+r+'type="checkbox">'),t}function ire(n){var e=new n("html_inline","",0);return e.content="<label>",e}function sre(n){var e=new n("html_inline","",0);return e.content="</label>",e}function ore(n,e,t){var r=new t("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+e+'">'+n+"</label>",r.attrs=[{for:e}],r}function lre(n){return n.type==="inline"}function are(n){return n.type==="paragraph_open"}function cre(n){return n.type==="list_item_open"}function hre(n){return n.content.indexOf("[ ] ")===0||n.content.indexOf("[x] ")===0||n.content.indexOf("[X] ")===0}const ure=ho(Kne);var fre=function(n,e){var t=n.renderer.rules.fence,r=n.utils.unescapeAll,i=/\[(\w*)(?::([\w ]*))?\]/;function s(c){return c.info?r(c.info).trim():""}function o(c){var h=s(c),[u=null,f=""]=(i.exec(h)||[]).slice(1);return[u,f]}function l(c){var h=s(c);return h?h.split(/(\s+)/g)[0]:""}function a(c,h,u,f,d){if(c[h].hidden)return"";const[p,m]=o(c[h]);if(p===null)return t(c,h,u,f,d);var O,b,k,y,Q="",$="";for(let w=h;w<c.length&&(O=c[w],[b,k]=o(O),b===p);w++)O.info=O.info.replace(i,""),O.hidden=!0,y=w-h>0?"":" checked",Q+=`<li><input type="radio" name="label-group-${h}"${y}><label for="group-${h}-tab-${w-h}" onclick="this.previousElementSibling.click()">${k||l(O)}</label></li>
`,$+=`<input type="radio" id="group-${h}-tab-${w-h}" name="group-${h}"${y}>
`+t(c,w,u,f,d);return`<div class="code-tabs">
<ul>
`+Q+`</ul>
`+$+"</div>"}n.renderer.rules.fence=a};const dre=ho(fre),ni=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,cg=new Set,pre=(n,e,t,r)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(n,e,t,r):console.error(`[${t}] ${e}: ${n}`)},mre=n=>!cg.has(n),On=n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),hg=n=>On(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?Rs:null:null;class Rs extends Array{constructor(e){super(e),this.fill(0)}}var gr;const hr=class{constructor(e,t){Le(this,"heap");Le(this,"length");if(!v(hr,gr))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}static create(e){const t=hg(e);if(!t)return[];j(hr,gr,!0);const r=new hr(e,t);return j(hr,gr,!1),r}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};let Zs=hr;gr=new WeakMap,K(Zs,gr,!1);var St,tt,qt,kt,br,Xe,yt,De,pe,J,je,nt,Be,Ve,wt,Ie,en,tn,xt,Lt,xn,Je,Ei,Pa,Un,nn,Xi,rt,co,ug,Bn,vr,Di,Vt,gn,It,bn,Ri,Ca,Sr,qs,kr,Ls,fe,Se,Zi,Aa,Wn,li;const Xc=class{constructor(e){K(this,Ei);K(this,co);K(this,Vt);K(this,It);K(this,Ri);K(this,Sr);K(this,kr);K(this,fe);K(this,Zi);K(this,Wn);K(this,St,void 0);K(this,tt,void 0);K(this,qt,void 0);K(this,kt,void 0);K(this,br,void 0);Le(this,"ttl");Le(this,"ttlResolution");Le(this,"ttlAutopurge");Le(this,"updateAgeOnGet");Le(this,"updateAgeOnHas");Le(this,"allowStale");Le(this,"noDisposeOnSet");Le(this,"noUpdateTTL");Le(this,"maxEntrySize");Le(this,"sizeCalculation");Le(this,"noDeleteOnFetchRejection");Le(this,"noDeleteOnStaleGet");Le(this,"allowStaleOnFetchAbort");Le(this,"allowStaleOnFetchRejection");Le(this,"ignoreFetchAbort");K(this,Xe,void 0);K(this,yt,void 0);K(this,De,void 0);K(this,pe,void 0);K(this,J,void 0);K(this,je,void 0);K(this,nt,void 0);K(this,Be,void 0);K(this,Ve,void 0);K(this,wt,void 0);K(this,Ie,void 0);K(this,en,void 0);K(this,tn,void 0);K(this,xt,void 0);K(this,Lt,void 0);K(this,xn,void 0);K(this,Je,void 0);K(this,Un,()=>{});K(this,nn,()=>{});K(this,Xi,()=>{});K(this,rt,()=>!1);K(this,Bn,e=>{});K(this,vr,(e,t,r)=>{});K(this,Di,(e,t,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:t=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:l,allowStale:a,dispose:c,disposeAfter:h,noDisposeOnSet:u,noUpdateTTL:f,maxSize:d=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:O,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:Q,ignoreFetchAbort:$}=e;if(t!==0&&!On(t))throw new TypeError("max option must be a nonnegative integer");const w=t?hg(t):Array;if(!w)throw new Error("invalid max value: "+t);if(j(this,St,t),j(this,tt,d),this.maxEntrySize=p||v(this,tt),this.sizeCalculation=m,this.sizeCalculation){if(!v(this,tt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(O!==void 0&&typeof O!="function")throw new TypeError("fetchMethod must be a function if specified");if(j(this,br,O),j(this,xn,!!O),j(this,De,new Map),j(this,pe,new Array(t).fill(void 0)),j(this,J,new Array(t).fill(void 0)),j(this,je,new w(t)),j(this,nt,new w(t)),j(this,Be,0),j(this,Ve,0),j(this,wt,Zs.create(t)),j(this,Xe,0),j(this,yt,0),typeof c=="function"&&j(this,qt,c),typeof h=="function"?(j(this,kt,h),j(this,Ie,[])):(j(this,kt,void 0),j(this,Ie,void 0)),j(this,Lt,!!v(this,qt)),j(this,Je,!!v(this,kt)),this.noDisposeOnSet=!!u,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!y,this.allowStaleOnFetchAbort=!!Q,this.ignoreFetchAbort=!!$,this.maxEntrySize!==0){if(v(this,tt)!==0&&!On(v(this,tt)))throw new TypeError("maxSize must be a positive integer if specified");if(!On(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Y(this,co,ug).call(this)}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!l,this.ttlResolution=On(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=r||0,this.ttl){if(!On(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Y(this,Ei,Pa).call(this)}if(v(this,St)===0&&this.ttl===0&&v(this,tt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!v(this,St)&&!v(this,tt)){const A="LRU_CACHE_UNBOUNDED";mre(A)&&(cg.add(A),pre("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",A,Xc))}}static unsafeExposeInternals(e){return{starts:v(e,tn),ttls:v(e,xt),sizes:v(e,en),keyMap:v(e,De),keyList:v(e,pe),valList:v(e,J),next:v(e,je),prev:v(e,nt),get head(){return v(e,Be)},get tail(){return v(e,Ve)},free:v(e,wt),isBackgroundFetch:t=>{var r;return Y(r=e,fe,Se).call(r,t)},backgroundFetch:(t,r,i,s)=>{var o;return Y(o=e,kr,Ls).call(o,t,r,i,s)},moveToTail:t=>{var r;return Y(r=e,Wn,li).call(r,t)},indexes:t=>{var r;return Y(r=e,Vt,gn).call(r,t)},rindexes:t=>{var r;return Y(r=e,It,bn).call(r,t)},isStale:t=>{var r;return v(r=e,rt).call(r,t)}}}get max(){return v(this,St)}get maxSize(){return v(this,tt)}get calculatedSize(){return v(this,yt)}get size(){return v(this,Xe)}get fetchMethod(){return v(this,br)}get dispose(){return v(this,qt)}get disposeAfter(){return v(this,kt)}getRemainingTTL(e){return v(this,De).has(e)?1/0:0}*entries(){for(const e of Y(this,Vt,gn).call(this))v(this,J)[e]!==void 0&&v(this,pe)[e]!==void 0&&!Y(this,fe,Se).call(this,v(this,J)[e])&&(yield[v(this,pe)[e],v(this,J)[e]])}*rentries(){for(const e of Y(this,It,bn).call(this))v(this,J)[e]!==void 0&&v(this,pe)[e]!==void 0&&!Y(this,fe,Se).call(this,v(this,J)[e])&&(yield[v(this,pe)[e],v(this,J)[e]])}*keys(){for(const e of Y(this,Vt,gn).call(this)){const t=v(this,pe)[e];t!==void 0&&!Y(this,fe,Se).call(this,v(this,J)[e])&&(yield t)}}*rkeys(){for(const e of Y(this,It,bn).call(this)){const t=v(this,pe)[e];t!==void 0&&!Y(this,fe,Se).call(this,v(this,J)[e])&&(yield t)}}*values(){for(const e of Y(this,Vt,gn).call(this))v(this,J)[e]!==void 0&&!Y(this,fe,Se).call(this,v(this,J)[e])&&(yield v(this,J)[e])}*rvalues(){for(const e of Y(this,It,bn).call(this))v(this,J)[e]!==void 0&&!Y(this,fe,Se).call(this,v(this,J)[e])&&(yield v(this,J)[e])}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of Y(this,Vt,gn).call(this)){const i=v(this,J)[r],s=Y(this,fe,Se).call(this,i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,v(this,pe)[r],this))return this.get(v(this,pe)[r],t)}}forEach(e,t=this){for(const r of Y(this,Vt,gn).call(this)){const i=v(this,J)[r],s=Y(this,fe,Se).call(this,i)?i.__staleWhileFetching:i;s!==void 0&&e.call(t,s,v(this,pe)[r],this)}}rforEach(e,t=this){for(const r of Y(this,It,bn).call(this)){const i=v(this,J)[r],s=Y(this,fe,Se).call(this,i)?i.__staleWhileFetching:i;s!==void 0&&e.call(t,s,v(this,pe)[r],this)}}purgeStale(){let e=!1;for(const t of Y(this,It,bn).call(this,{allowStale:!0}))v(this,rt).call(this,t)&&(this.delete(v(this,pe)[t]),e=!0);return e}dump(){const e=[];for(const t of Y(this,Vt,gn).call(this,{allowStale:!0})){const r=v(this,pe)[t],i=v(this,J)[t],s=Y(this,fe,Se).call(this,i)?i.__staleWhileFetching:i;if(s===void 0||r===void 0)continue;const o={value:s};if(v(this,xt)&&v(this,tn)){o.ttl=v(this,xt)[t];const l=ni.now()-v(this,tn)[t];o.start=Math.floor(Date.now()-l)}v(this,en)&&(o.size=v(this,en)[t]),e.unshift([r,o])}return e}load(e){this.clear();for(const[t,r]of e){if(r.start){const i=Date.now()-r.start;r.start=ni.now()-i}this.set(t,r.value,r)}}set(e,t,r={}){var f,d,p;const{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:a}=r;let{noUpdateTTL:c=this.noUpdateTTL}=r;const h=v(this,Di).call(this,e,t,r.size||0,l);if(this.maxEntrySize&&h>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(e),this;let u=v(this,Xe)===0?void 0:v(this,De).get(e);if(u===void 0)u=v(this,Xe)===0?v(this,Ve):v(this,wt).length!==0?v(this,wt).pop():v(this,Xe)===v(this,St)?Y(this,Sr,qs).call(this,!1):v(this,Xe),v(this,pe)[u]=e,v(this,J)[u]=t,v(this,De).set(e,u),v(this,je)[v(this,Ve)]=u,v(this,nt)[u]=v(this,Ve),j(this,Ve,u),es(this,Xe)._++,v(this,vr).call(this,u,h,a),a&&(a.set="add"),c=!1;else{Y(this,Wn,li).call(this,u);const m=v(this,J)[u];if(t!==m){if(v(this,xn)&&Y(this,fe,Se).call(this,m)?m.__abortController.abort(new Error("replaced")):o||(v(this,Lt)&&((f=v(this,qt))==null||f.call(this,m,e,"set")),v(this,Je)&&((d=v(this,Ie))==null||d.push([m,e,"set"]))),v(this,Bn).call(this,u),v(this,vr).call(this,u,h,a),v(this,J)[u]=t,a){a.set="replace";const O=m&&Y(this,fe,Se).call(this,m)?m.__staleWhileFetching:m;O!==void 0&&(a.oldValue=O)}}else a&&(a.set="update")}if(i!==0&&!v(this,xt)&&Y(this,Ei,Pa).call(this),v(this,xt)&&(c||v(this,Xi).call(this,u,i,s),a&&v(this,nn).call(this,a,u)),!o&&v(this,Je)&&v(this,Ie)){const m=v(this,Ie);let O;for(;O=m==null?void 0:m.shift();)(p=v(this,kt))==null||p.call(this,...O)}return this}pop(){var e;try{for(;v(this,Xe);){const t=v(this,J)[v(this,Be)];if(Y(this,Sr,qs).call(this,!0),Y(this,fe,Se).call(this,t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(v(this,Je)&&v(this,Ie)){const t=v(this,Ie);let r;for(;r=t==null?void 0:t.shift();)(e=v(this,kt))==null||e.call(this,...r)}}}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=t,s=v(this,De).get(e);if(s!==void 0){const o=v(this,J)[s];if(Y(this,fe,Se).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(v(this,rt).call(this,s))i&&(i.has="stale",v(this,nn).call(this,i,s));else return r&&v(this,Un).call(this,s),i&&(i.has="hit",v(this,nn).call(this,i,s)),!0}else i&&(i.has="miss");return!1}peek(e,t={}){const{allowStale:r=this.allowStale}=t,i=v(this,De).get(e);if(i!==void 0&&(r||!v(this,rt).call(this,i))){const s=v(this,J)[i];return Y(this,fe,Se).call(this,s)?s.__staleWhileFetching:s}}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:a=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:O=!1,status:b,signal:k}=t;if(!v(this,xn))return b&&(b.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:b});const y={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:l,size:a,sizeCalculation:c,noUpdateTTL:h,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:b,signal:k};let Q=v(this,De).get(e);if(Q===void 0){b&&(b.fetch="miss");const $=Y(this,kr,Ls).call(this,e,Q,y,m);return $.__returned=$}else{const $=v(this,J)[Q];if(Y(this,fe,Se).call(this,$)){const X=r&&$.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",X&&(b.returnedStale=!0)),X?$.__staleWhileFetching:$.__returned=$}const w=v(this,rt).call(this,Q);if(!O&&!w)return b&&(b.fetch="hit"),Y(this,Wn,li).call(this,Q),i&&v(this,Un).call(this,Q),b&&v(this,nn).call(this,b,Q),$;const A=Y(this,kr,Ls).call(this,e,Q,y,m),I=A.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=w?"stale":"refresh",I&&w&&(b.returnedStale=!0)),I?A.__staleWhileFetching:A.__returned=A}}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=t,l=v(this,De).get(e);if(l!==void 0){const a=v(this,J)[l],c=Y(this,fe,Se).call(this,a);return o&&v(this,nn).call(this,o,l),v(this,rt).call(this,l)?(o&&(o.get="stale"),c?(o&&r&&a.__staleWhileFetching!==void 0&&(o.returnedStale=!0),r?a.__staleWhileFetching:void 0):(s||this.delete(e),o&&r&&(o.returnedStale=!0),r?a:void 0)):(o&&(o.get="hit"),c?a.__staleWhileFetching:(Y(this,Wn,li).call(this,l),i&&v(this,Un).call(this,l),a))}else o&&(o.get="miss")}delete(e){var r,i,s,o;let t=!1;if(v(this,Xe)!==0){const l=v(this,De).get(e);if(l!==void 0)if(t=!0,v(this,Xe)===1)this.clear();else{v(this,Bn).call(this,l);const a=v(this,J)[l];Y(this,fe,Se).call(this,a)?a.__abortController.abort(new Error("deleted")):(v(this,Lt)||v(this,Je))&&(v(this,Lt)&&((r=v(this,qt))==null||r.call(this,a,e,"delete")),v(this,Je)&&((i=v(this,Ie))==null||i.push([a,e,"delete"]))),v(this,De).delete(e),v(this,pe)[l]=void 0,v(this,J)[l]=void 0,l===v(this,Ve)?j(this,Ve,v(this,nt)[l]):l===v(this,Be)?j(this,Be,v(this,je)[l]):(v(this,je)[v(this,nt)[l]]=v(this,je)[l],v(this,nt)[v(this,je)[l]]=v(this,nt)[l]),es(this,Xe)._--,v(this,wt).push(l)}}if(v(this,Je)&&((s=v(this,Ie))!=null&&s.length)){const l=v(this,Ie);let a;for(;a=l==null?void 0:l.shift();)(o=v(this,kt))==null||o.call(this,...a)}return t}clear(){var e,t,r;for(const i of Y(this,It,bn).call(this,{allowStale:!0})){const s=v(this,J)[i];if(Y(this,fe,Se).call(this,s))s.__abortController.abort(new Error("deleted"));else{const o=v(this,pe)[i];v(this,Lt)&&((e=v(this,qt))==null||e.call(this,s,o,"delete")),v(this,Je)&&((t=v(this,Ie))==null||t.push([s,o,"delete"]))}}if(v(this,De).clear(),v(this,J).fill(void 0),v(this,pe).fill(void 0),v(this,xt)&&v(this,tn)&&(v(this,xt).fill(0),v(this,tn).fill(0)),v(this,en)&&v(this,en).fill(0),j(this,Be,0),j(this,Ve,0),v(this,wt).length=0,j(this,yt,0),j(this,Xe,0),v(this,Je)&&v(this,Ie)){const i=v(this,Ie);let s;for(;s=i==null?void 0:i.shift();)(r=v(this,kt))==null||r.call(this,...s)}}};let _a=Xc;St=new WeakMap,tt=new WeakMap,qt=new WeakMap,kt=new WeakMap,br=new WeakMap,Xe=new WeakMap,yt=new WeakMap,De=new WeakMap,pe=new WeakMap,J=new WeakMap,je=new WeakMap,nt=new WeakMap,Be=new WeakMap,Ve=new WeakMap,wt=new WeakMap,Ie=new WeakMap,en=new WeakMap,tn=new WeakMap,xt=new WeakMap,Lt=new WeakMap,xn=new WeakMap,Je=new WeakMap,Ei=new WeakSet,Pa=function(){const e=new Rs(v(this,St)),t=new Rs(v(this,St));j(this,xt,e),j(this,tn,t),j(this,Xi,(s,o,l=ni.now())=>{if(t[s]=o!==0?l:0,e[s]=o,o!==0&&this.ttlAutopurge){const a=setTimeout(()=>{v(this,rt).call(this,s)&&this.delete(v(this,pe)[s])},o+1);a.unref&&a.unref()}}),j(this,Un,s=>{t[s]=e[s]!==0?ni.now():0}),j(this,nn,(s,o)=>{if(e[o]){const l=e[o],a=t[o];s.ttl=l,s.start=a,s.now=r||i(),s.remainingTTL=s.now+l-a}});let r=0;const i=()=>{const s=ni.now();if(this.ttlResolution>0){r=s;const o=setTimeout(()=>r=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{const o=v(this,De).get(s);return o===void 0?0:e[o]===0||t[o]===0?1/0:t[o]+e[o]-(r||i())},j(this,rt,s=>e[s]!==0&&t[s]!==0&&(r||i())-t[s]>e[s])},Un=new WeakMap,nn=new WeakMap,Xi=new WeakMap,rt=new WeakMap,co=new WeakSet,ug=function(){const e=new Rs(v(this,St));j(this,yt,0),j(this,en,e),j(this,Bn,t=>{j(this,yt,v(this,yt)-e[t]),e[t]=0}),j(this,Di,(t,r,i,s)=>{if(Y(this,fe,Se).call(this,r))return 0;if(!On(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(r,t),!On(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),j(this,vr,(t,r,i)=>{if(e[t]=r,v(this,tt)){const s=v(this,tt)-e[t];for(;v(this,yt)>s;)Y(this,Sr,qs).call(this,!0)}j(this,yt,v(this,yt)+e[t]),i&&(i.entrySize=r,i.totalCalculatedSize=v(this,yt))})},Bn=new WeakMap,vr=new WeakMap,Di=new WeakMap,Vt=new WeakSet,gn=function*({allowStale:e=this.allowStale}={}){if(v(this,Xe))for(let t=v(this,Ve);!(!Y(this,Ri,Ca).call(this,t)||((e||!v(this,rt).call(this,t))&&(yield t),t===v(this,Be)));)t=v(this,nt)[t]},It=new WeakSet,bn=function*({allowStale:e=this.allowStale}={}){if(v(this,Xe))for(let t=v(this,Be);!(!Y(this,Ri,Ca).call(this,t)||((e||!v(this,rt).call(this,t))&&(yield t),t===v(this,Ve)));)t=v(this,je)[t]},Ri=new WeakSet,Ca=function(e){return e!==void 0&&v(this,De).get(v(this,pe)[e])===e},Sr=new WeakSet,qs=function(e){var s,o;const t=v(this,Be),r=v(this,pe)[t],i=v(this,J)[t];return v(this,xn)&&Y(this,fe,Se).call(this,i)?i.__abortController.abort(new Error("evicted")):(v(this,Lt)||v(this,Je))&&(v(this,Lt)&&((s=v(this,qt))==null||s.call(this,i,r,"evict")),v(this,Je)&&((o=v(this,Ie))==null||o.push([i,r,"evict"]))),v(this,Bn).call(this,t),e&&(v(this,pe)[t]=void 0,v(this,J)[t]=void 0,v(this,wt).push(t)),v(this,Xe)===1?(j(this,Be,j(this,Ve,0)),v(this,wt).length=0):j(this,Be,v(this,je)[t]),v(this,De).delete(r),es(this,Xe)._--,t},kr=new WeakSet,Ls=function(e,t,r,i){const s=t===void 0?void 0:v(this,J)[t];if(Y(this,fe,Se).call(this,s))return s;const o=new AbortController,{signal:l}=r;l==null||l.addEventListener("abort",()=>o.abort(l.reason),{signal:o.signal});const a={signal:o.signal,options:r,context:i},c=(m,O=!1)=>{const{aborted:b}=o.signal,k=r.ignoreFetchAbort&&m!==void 0;if(r.status&&(b&&!O?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,k&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!k&&!O)return u(o.signal.reason);const y=d;return v(this,J)[t]===d&&(m===void 0?y.__staleWhileFetching?v(this,J)[t]=y.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,m,a.options))),m},h=m=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=m),u(m)),u=m=>{const{aborted:O}=o.signal,b=O&&r.allowStaleOnFetchAbort,k=b||r.allowStaleOnFetchRejection,y=k||r.noDeleteOnFetchRejection,Q=d;if(v(this,J)[t]===d&&(!y||Q.__staleWhileFetching===void 0?this.delete(e):b||(v(this,J)[t]=Q.__staleWhileFetching)),k)return r.status&&Q.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),Q.__staleWhileFetching;if(Q.__returned===Q)throw m},f=(m,O)=>{var k;const b=(k=v(this,br))==null?void 0:k.call(this,e,s,a);b&&b instanceof Promise&&b.then(y=>m(y),O),o.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(m(),r.allowStaleOnFetchAbort&&(m=y=>c(y,!0)))})};r.status&&(r.status.fetchDispatched=!0);const d=new Promise(f).then(c,h),p=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.set(e,p,{...a.options,status:void 0}),t=v(this,De).get(e)):v(this,J)[t]=p,p},fe=new WeakSet,Se=function(e){if(!v(this,xn))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AbortController},Zi=new WeakSet,Aa=function(e,t){v(this,nt)[t]=e,v(this,je)[e]=t},Wn=new WeakSet,li=function(e){e!==v(this,Ve)&&(e===v(this,Be)?j(this,Be,v(this,je)[e]):Y(this,Zi,Aa).call(this,v(this,nt)[e],v(this,je)[e]),Y(this,Zi,Aa).call(this,v(this,Ve),e),j(this,Ve,e))};const Ore=_a;var gre=Object.defineProperty,bre=(n,e,t)=>e in n?gre(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,vn=(n,e,t)=>(bre(n,typeof e!="symbol"?e+"":e,t),t);const x="md-editor",vre="md-editor-v3",Sre="https://at.alicdn.com/t/c/font_2605852_u82y61ve02.js",me="https://cdnjs.cloudflare.com/ajax/libs",kre=`${me}/highlight.js/11.7.0/highlight.min.js`,Df={main:`${me}/prettier/2.8.0/standalone.js`,markdown:`${me}/prettier/2.8.0/parser-markdown.js`},Rf={css:`${me}/cropperjs/1.5.13/cropper.min.css`,js:`${me}/cropperjs/1.5.13/cropper.min.js`},yre=`${me}/screenfull.js/5.2.0/screenfull.min.js`,fg=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],dg=["markdownTotal","=","scrollSwitch"],Zf={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述：",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址：",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制！",failTips:"复制失败！"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Word Count",scrollAuto:"Scroll Auto"}}},wre=`${me}/mermaid/9.4.0/mermaid.min.js`,qf={js:`${me}/KaTeX/0.16.3/katex.min.js`,css:`${me}/KaTeX/0.16.3/katex.min.css`},Lf={a11y:{light:`${me}/highlight.js/11.7.0/styles/a11y-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/a11y-dark.min.css`},atom:{light:`${me}/highlight.js/11.7.0/styles/atom-one-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/atom-one-dark.min.css`},github:{light:`${me}/highlight.js/11.7.0/styles/github.min.css`,dark:`${me}/highlight.js/11.7.0/styles/github-dark.min.css`},gradient:{light:`${me}/highlight.js/11.7.0/styles/gradient-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/gradient-dark.min.css`},kimbie:{light:`${me}/highlight.js/11.7.0/styles/kimbie-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/kimbie-dark.min.css`},paraiso:{light:`${me}/highlight.js/11.7.0/styles/paraiso-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/paraiso-dark.min.css`},qtcreator:{light:`${me}/highlight.js/11.7.0/styles/qtcreator-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${me}/highlight.js/11.7.0/styles/stackoverflow-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/stackoverflow-dark.min.css`}},we={editorExtensions:{},editorConfig:{},codeMirrorExtensions:(n,e)=>e,markdownItConfig:()=>{}},xre=n=>{if(n)for(const e in n){const t=n[e];t&&(we[e]=t)}},Qre=Te({setup(){return()=>S("div",{class:`${x}-divider`},null)}}),Ct=({instance:n,ctx:e,props:t={}},r="default")=>{const i=(n==null?void 0:n.$slots[r])||(e==null?void 0:e.slots[r]);return(i?i(n):"")||t[r]},$re={trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}},relative:{type:String,default:"html"}},lr=Te({props:$re,setup(n,e){const t=`${x}-dropdown-hidden`,r=pt({overlayClass:[t],overlayStyle:{},triggerHover:!1,overlayHover:!1}),i=$e(),s=$e(),o=()=>{var u;n.trigger==="hover"&&(r.triggerHover=!0);const f=i.value,d=s.value,p=f.getBoundingClientRect(),m=f.offsetTop,O=f.offsetLeft,b=p.height,k=p.width,y=((u=document.querySelector(n.relative))==null?void 0:u.scrollLeft)||0;r.overlayStyle={...r.overlayStyle,top:m+b+"px",left:O-d.offsetWidth/2+k/2-y+"px"},n.onChange(!0)},l=()=>{r.overlayHover=!0};le(()=>n.visible,u=>{u?r.overlayClass=r.overlayClass.filter(f=>f!==t):r.overlayClass.push(t)});const a=u=>{const f=i.value,d=s.value;!f.contains(u.target)&&!d.contains(u.target)&&n.onChange(!1)};let c=-1;const h=u=>{i.value===u.target?r.triggerHover=!1:r.overlayHover=!1,clearTimeout(c),c=window.setTimeout(()=>{!r.overlayHover&&!r.triggerHover&&n.onChange(!1)},10)};return xe(()=>{n.trigger==="click"?(i.value.addEventListener("click",o),document.addEventListener("click",a)):(i.value.addEventListener("mouseenter",o),i.value.addEventListener("mouseleave",h),s.value.addEventListener("mouseenter",l),s.value.addEventListener("mouseleave",h))}),Ra(()=>{n.trigger==="click"?(i.value.removeEventListener("click",o),document.removeEventListener("click",a)):(i.value.removeEventListener("mouseenter",o),i.value.removeEventListener("mouseleave",h),s.value.removeEventListener("mouseenter",l),s.value.removeEventListener("mouseleave",h))}),()=>{const u=Ct({ctx:e}),f=Ct({props:n,ctx:e},"overlay"),d=yg(u instanceof Array?u[0]:u,{ref:i}),p=S("div",{class:[`${x}-dropdown`,r.overlayClass],style:r.overlayStyle,ref:s},[S("div",{class:`${x}-dropdown-overlay`},[f instanceof Array?f[0]:f])]);return[d,p]}}});class _re{constructor(){vn(this,"pools",{})}remove(e,t,r){const i=this.pools[e]&&this.pools[e][t];i&&(this.pools[e][t]=i.filter(s=>s!==r))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...r){this.pools[e]||(this.pools[e]={});const i=this.pools[e][t];i&&i.forEach(s=>{try{s(...r)}catch(o){console.error(`${t} monitor event exception！`,o)}})}}const M=new _re,Pre=(n,e={newWindow:!0,nofollow:!0})=>{n||console.error("error link!");const t=document.createElement("a");t.href=n,t.style.display="none",e.newWindow&&(t.target="_blank"),e.nofollow&&(t.rel="noopener noreferrer"),document.body.appendChild(t),t.click(),document.body.removeChild(t)},Cre=(n,e="image.png")=>{const t=n.split(","),r=t[0].match(/:(.*?);/);if(r){const i=r[1],s=atob(t[1]);let o=s.length;const l=new Uint8Array(o);for(;o--;)l[o]=s.charCodeAt(o);return new File([l],e,{type:i})}return null},Are=n=>{if(!n)return n;const e=n.split(`
`),t=['<span rn-wrapper aria-hidden="true">'];return e.forEach(()=>{t.push("<span></span>")}),t.push("</span>"),`<span class="code-block">${n}</span>${t.join("")}`},qo=(n,e=200)=>{let t=0;return(...r)=>new Promise(i=>{t&&(clearTimeout(t),i("cancel")),t=window.setTimeout(()=>{n.apply(void 0,r),t=0,i("done")},e)})},Tre=(n,e=200)=>{let t=0,r=null;return(...i)=>{const s=o=>{t===0&&(t=o),o-t>=e?(n.apply(void 0,r),r=null,t=0):window.requestAnimationFrame(s)};r===null&&window.requestAnimationFrame(s),r=i}},Ere=(n,e)=>{const t=n==null?void 0:n.getBoundingClientRect();if(e===document.documentElement)return t.top-e.clientTop;const r=e==null?void 0:e.getBoundingClientRect();return t.top-r.top},Xre=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,Dre={noPrettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>{}},tableShape:{type:Array,default:()=>[6,4]},defToolbars:{type:Object},noUploadImg:{type:Boolean}},Lo="onSave",Tc="changeCatalogVisible",pg="changeFullscreen",Vf="pageFullscreenChanged",If="fullscreenChanged",Ta="previewChanged",Mf="htmlPreviewChanged",zf="catalogVisibleChanged",mg="textareaFocus",Uf=(n,e)=>{const t=r=>{const i=n.parentElement||document.body,s=i.offsetWidth,o=i.offsetHeight,{clientWidth:l}=document.documentElement,{clientHeight:a}=document.documentElement,c=r.offsetX,h=r.offsetY,u=d=>{let p=d.x+document.body.scrollLeft-document.body.clientLeft-c,m=d.y+document.body.scrollTop-document.body.clientTop-h;p=p<1?1:p<l-s-1?p:l-s-1,m=m<1?1:m<a-o-1?m:a-o-1,e?e(p,m):(i.style.left=`${p}px`,i.style.top=`${m}px`)};document.addEventListener("mousemove",u);const f=()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",f)};document.addEventListener("mouseup",f)};return n.addEventListener("mousedown",t),()=>{n.removeEventListener("mousedown",t)}},_t=(n,e="")=>{const t=document.getElementById(n.id),r=n.onload;n.onload=null;const i=function(s){typeof r=="function"&&r.bind(this)(s),n.removeEventListener("load",i)};t?e!==""&&(t.addEventListener("load",i),Reflect.get(window,e)&&t.dispatchEvent(new Event("load"))):(n.addEventListener("load",i),document.head.appendChild(n))},Rre=qo((n,e,t)=>{const r=document.getElementById(n);r&&r.setAttribute(e,t)},10),Zre=n=>{var e,t,r,i;const s=he("editorId");let o=(t=(e=we.editorExtensions)==null?void 0:e.screenfull)==null?void 0:t.instance;const l=(i=(r=we.editorExtensions)==null?void 0:r.screenfull)==null?void 0:i.js,a=$e(!1),c=f=>{if(!o){M.emit(s,"errorCatcher",{name:"fullscreen",message:"fullscreen is undefined"});return}o.isEnabled?(a.value=!0,(f===void 0?!o.isFullscreen:f)?o.request():o.exit()):console.error("browser does not support screenfull!")},h=()=>{o&&o.isEnabled&&o.on("change",()=>{(a.value||n.setting.fullscreen)&&(a.value=!1,n.updateSetting("fullscreen"))})},u=()=>{o=window.screenfull,h()};return xe(()=>{if(h(),!o){const f=document.createElement("script");f.src=l||yre,f.onload=u,f.id=`${x}-screenfull`,_t(f,"screenfull")}}),xe(()=>{M.on(s,{name:pg,callback:c})}),{fullscreenHandler:c}},qre={tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}},Lre=Te({name:"TableShape",props:qre,setup(n){const e=pt({x:-1,y:-1});return()=>S("div",{class:`${x}-table-shape`,onMouseleave:()=>{e.x=-1,e.y=-1}},[new Array(n.tableShape[1]).fill("").map((t,r)=>S("div",{class:`${x}-table-shape-row`,key:`table-shape-row-${r}`},[new Array(n.tableShape[0]).fill("").map((i,s)=>S("div",{class:`${x}-table-shape-col`,key:`table-shape-col-${s}`,onMouseenter:()=>{e.x=r,e.y=s},onClick:()=>{n.onSelected(e)}},[S("div",{class:[`${x}-table-shape-col-default`,r<=e.x&&s<=e.y&&`${x}-table-shape-col-include`]},null)]))]))])}}),Vre={title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function,default:()=>{}},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>{}},class:{type:String}},Ec=Te({props:Vre,setup(n,e){const t=$e(n.visible),r=$e([`${x}-modal`]),i=$e(),s=$e();let o=()=>{};const l=pt({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}}),a=ht(()=>n.isFullscreen?{width:"100%",height:"100%"}:{width:n.width,height:n.height});return xe(()=>{o=Uf(s.value,(c,h)=>{l.initPos.left=c+"px",l.initPos.top=h+"px"})}),Ra(()=>{o()}),le(()=>n.isFullscreen,c=>{c?o():o=Uf(s.value,(h,u)=>{l.initPos.left=h+"px",l.initPos.top=u+"px"})}),le(()=>n.visible,c=>{c?(r.value.push("zoom-in"),t.value=c,An(()=>{const h=i.value.offsetWidth/2,u=i.value.offsetHeight/2,f=document.documentElement.clientWidth/2,d=document.documentElement.clientHeight/2;l.initPos.left=f-h+"px",l.initPos.top=d-u+"px"}),setTimeout(()=>{r.value=r.value.filter(h=>h!=="zoom-in")},140)):(r.value.push("zoom-out"),setTimeout(()=>{r.value=r.value.filter(h=>h!=="zoom-out"),t.value=c},130))}),()=>{const c=Ct({ctx:e}),h=Ct({props:n,ctx:e},"title");return S("div",{class:[n.class],style:{display:t.value?"block":"none"}},[S("div",{class:`${x}-modal-mask`,onClick:n.onClose},null),S("div",{class:r.value,style:{...l.initPos,...a.value},ref:i},[S("div",{class:`${x}-modal-header`,ref:s},[h||""]),S("div",{class:`${x}-modal-body`},[c]),S("div",{class:`${x}-modal-func`},[n.showAdjust&&S("div",{class:`${x}-modal-adjust`,onClick:u=>{u.stopPropagation(),n.isFullscreen?l.initPos=l.historyPos:(l.historyPos=l.initPos,l.initPos={left:"0",top:"0"}),n.onAdjust(!n.isFullscreen)}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":`#md-editor-icon-${n.isFullscreen?"suoxiao":"fangda"}`},null)])]),S("div",{class:`${x}-modal-close`,onClick:u=>{u.stopPropagation(),n.onClose&&n.onClose()}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-close"},null)])])])])])}}}),Ire={type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}},Mre=Te({props:Ire,setup(n){const e=he("usedLanguageText"),t=he("editorId"),r=ht(()=>{var s,o;switch(n.type){case"link":return(s=e.value.linkModalTips)==null?void 0:s.linkTitle;case"image":return(o=e.value.linkModalTips)==null?void 0:o.imageTitle;default:return""}}),i=pt({desc:"",url:""});return le(()=>n.visible,s=>{s||setTimeout(()=>{i.desc="",i.url=""},200)}),()=>S(Ec,{title:r.value,visible:n.visible,onClose:n.onCancel},{default:()=>{var s,o,l,a,c;return[S("div",{class:`${x}-form-item`},[S("label",{class:`${x}-label`,for:`link-desc-${t}`},[(s=e.value.linkModalTips)==null?void 0:s.descLabel]),S("input",{placeholder:(o=e.value.linkModalTips)==null?void 0:o.descLabelPlaceHolder,class:`${x}-input`,id:`link-desc-${t}`,type:"text",value:i.desc,onChange:h=>{i.desc=h.target.value},autocomplete:"off"},null)]),S("div",{class:`${x}-form-item`},[S("label",{class:`${x}-label`,for:`link-url-${t}`},[(l=e.value.linkModalTips)==null?void 0:l.urlLabel]),S("input",{placeholder:(a=e.value.linkModalTips)==null?void 0:a.urlLabelPlaceHolder,class:`${x}-input`,id:`link-url-${t}`,type:"text",value:i.url,onChange:h=>{i.url=h.target.value},autocomplete:"off"},null)]),S("div",{class:`${x}-form-item`},[S("button",{class:[`${x}-btn`,`${x}-btn-row`],type:"button",onClick:()=>{n.onOk(i),i.desc="",i.url=""}},[(c=e.value.linkModalTips)==null?void 0:c.buttonOK])])]}})}}),zre={visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}},Ure=Te({props:zre,setup(n){var e,t;const r=he("usedLanguageText"),i=he("editorId");let s=(t=(e=we==null?void 0:we.editorExtensions)==null?void 0:e.cropper)==null?void 0:t.instance;const o=$e(),l=$e(),a=$e(),c=pt({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let h=null;le(()=>n.visible,()=>{n.visible&&!c.cropperInited&&(s=s||window.Cropper,o.value.onchange=()=>{if(!s){M.emit(i,"errorCatcher",{name:"Cropper",message:"Cropper is undefined"});return}const f=o.value.files||[];if(c.imgSelected=!0,(f==null?void 0:f.length)>0){const d=new FileReader;d.onload=p=>{c.imgSrc=p.target.result,An(()=>{h=new s(l.value,{viewMode:2,preview:`.${x}-clip-preview-target`})})},d.readAsDataURL(f[0])}})}),le(()=>[c.imgSelected],()=>{a.value.style=""}),le(()=>c.isFullscreen,()=>{An(()=>{h==null||h.destroy(),a.value.style="",l.value&&(h=new s(l.value,{viewMode:2,preview:`.${x}-clip-preview-target`}))})});const u=()=>{h.clear(),h.destroy(),h=null,o.value.value="",c.imgSelected=!1};return()=>{var f;return S(Ec,{class:`${x}-modal-clip`,title:(f=r.value.clipModalTips)==null?void 0:f.title,visible:n.visible,onClose:n.onCancel,showAdjust:!0,isFullscreen:c.isFullscreen,onAdjust:d=>{c.isFullscreen=d},width:"668px",height:"421px"},{default:()=>{var d,p;return[S("div",{class:`${x}-form-item ${x}-clip`},[S("div",{class:`${x}-clip-main`},[c.imgSelected?S("div",{class:`${x}-clip-cropper`},[S("img",{src:c.imgSrc,ref:l,style:{display:"none"},alt:""},null),S("div",{class:`${x}-clip-delete`,onClick:u},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-delete"},null)])])]):S("div",{class:`${x}-clip-upload`,onClick:()=>{o.value.click()}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-upload"},null)])])]),S("div",{class:`${x}-clip-preview`},[S("div",{class:`${x}-clip-preview-target`,ref:a},null)])]),S("div",{class:`${x}-form-item`},[S("button",{class:`${x}-btn`,type:"button",onClick:()=>{if(h){const m=h.getCroppedCanvas();M.emit(i,"uploadImage",[Cre(m.toDataURL("image/png"))],n.onOk),u()}}},[((d=r.value.clipModalTips)==null?void 0:d.buttonUpload)||((p=r.value.linkModalTips)==null?void 0:p.buttonOK)])]),S("input",{ref:o,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}}),Bre={type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}},Wre=Te({props:Bre,setup(n){return()=>S(Za,null,[S(Mre,{type:n.type,visible:n.linkVisible,onOk:n.onOk,onCancel:n.onCancel},null),S(Ure,{visible:n.clipVisible,onOk:n.onOk,onCancel:n.onCancel},null)])}}),Yre=Te({name:"MDEditorToolbar",props:Dre,setup(n){const e=he("editorId"),t=he("usedLanguageText"),{fullscreenHandler:r}=Zre(n),i=`${e}-toolbar-wrapper`,s=pt({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),o=(d,p)=>{M.emit(e,"replace",d,p)},l=pt({type:"link",linkVisible:!1,clipVisible:!1}),a=$e();xe(()=>{M.on(e,{name:"openModals",callback(d){l.type=d,l.linkVisible=!0}})});const c=ht(()=>{const d=n.toolbars.filter(b=>!n.toolbarsExclude.includes(b)),p=d.indexOf("="),m=p===-1?d:d.slice(0,p+1),O=p===-1?[]:d.slice(p,Number.MAX_SAFE_INTEGER);return[m,O]}),h=$e(),u=()=>{M.emit(e,"uploadImage",Array.from(h.value.files||[])),h.value.value=""};xe(()=>{h.value.addEventListener("change",u)});const f=d=>{var p,m,O,b,k,y,Q,$,w,A,P,I,X,V,q,z,T,U,R,H,ee,re,te,ve,Ee,ct,Jt,fn,Yi,ji,Rn,Ni,Fi,er,tr,Gi,Hi,nr,Ji,Ki,Wr,Dc,Rc;if(fg.includes(d))switch(d){case"-":return S(Qre,null,null);case"bold":return S("div",{class:`${x}-toolbar-item`,title:(p=t.value.toolbarTips)==null?void 0:p.bold,onClick:()=>{o("bold")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-bold"},null)])]);case"underline":return S("div",{class:`${x}-toolbar-item`,title:(m=t.value.toolbarTips)==null?void 0:m.underline,onClick:()=>{o("underline")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-underline"},null)])]);case"italic":return S("div",{class:`${x}-toolbar-item`,title:(O=t.value.toolbarTips)==null?void 0:O.italic,onClick:()=>{o("italic")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-italic"},null)])]);case"strikeThrough":return S("div",{class:`${x}-toolbar-item`,title:(b=t.value.toolbarTips)==null?void 0:b.strikeThrough,onClick:()=>{o("strikeThrough")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-strike-through"},null)])]);case"title":return S(lr,{relative:`#${i}`,visible:s.title,onChange:ue=>{s.title=ue},overlay:S("ul",{class:`${x}-menu`,onClick:()=>{s.title=!1}},[S("li",{class:`${x}-menu-item`,onClick:()=>{o("h1")}},[(k=t.value.titleItem)==null?void 0:k.h1]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("h2")}},[(y=t.value.titleItem)==null?void 0:y.h2]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("h3")}},[(Q=t.value.titleItem)==null?void 0:Q.h3]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("h4")}},[($=t.value.titleItem)==null?void 0:$.h4]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("h5")}},[(w=t.value.titleItem)==null?void 0:w.h5]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("h6")}},[(A=t.value.titleItem)==null?void 0:A.h6])])},{default:()=>{var ue;return[S("div",{class:`${x}-toolbar-item`,title:(ue=t.value.toolbarTips)==null?void 0:ue.title},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-title"},null)])])]}});case"sub":return S("div",{class:`${x}-toolbar-item`,title:(P=t.value.toolbarTips)==null?void 0:P.sub,onClick:()=>{o("sub")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-sub"},null)])]);case"sup":return S("div",{class:`${x}-toolbar-item`,title:(I=t.value.toolbarTips)==null?void 0:I.sup,onClick:()=>{o("sup")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-sup"},null)])]);case"quote":return S("div",{class:`${x}-toolbar-item`,title:(X=t.value.toolbarTips)==null?void 0:X.quote,onClick:()=>{o("quote")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-quote"},null)])]);case"unorderedList":return S("div",{class:`${x}-toolbar-item`,title:(V=t.value.toolbarTips)==null?void 0:V.unorderedList,onClick:()=>{o("unorderedList")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-unordered-list"},null)])]);case"orderedList":return S("div",{class:`${x}-toolbar-item`,title:(q=t.value.toolbarTips)==null?void 0:q.orderedList,onClick:()=>{o("orderedList")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-ordered-list"},null)])]);case"task":return S("div",{class:`${x}-toolbar-item`,title:(z=t.value.toolbarTips)==null?void 0:z.task,onClick:()=>{o("task")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-task"},null)])]);case"codeRow":return S("div",{class:`${x}-toolbar-item`,title:(T=t.value.toolbarTips)==null?void 0:T.codeRow,onClick:()=>{o("codeRow")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-code-row"},null)])]);case"code":return S("div",{class:`${x}-toolbar-item`,title:(U=t.value.toolbarTips)==null?void 0:U.code,onClick:()=>{o("code")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-code"},null)])]);case"link":return S("div",{class:`${x}-toolbar-item`,title:(R=t.value.toolbarTips)==null?void 0:R.link,onClick:()=>{l.type="link",l.linkVisible=!0}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-link"},null)])]);case"image":return n.noUploadImg?S("div",{class:`${x}-toolbar-item`,title:(H=t.value.toolbarTips)==null?void 0:H.image,onClick:()=>{l.type="image",l.linkVisible=!0}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-image"},null)])]):S(lr,{relative:`#${i}`,visible:s.image,onChange:ue=>{s.image=ue},overlay:S("ul",{class:`${x}-menu`,onClick:()=>{s.title=!1}},[S("li",{class:`${x}-menu-item`,onClick:()=>{l.type="image",l.linkVisible=!0}},[(ee=t.value.imgTitleItem)==null?void 0:ee.link]),S("li",{class:`${x}-menu-item`,onClick:()=>{h.value.click()}},[(re=t.value.imgTitleItem)==null?void 0:re.upload]),S("li",{class:`${x}-menu-item`,onClick:()=>{l.clipVisible=!0}},[(te=t.value.imgTitleItem)==null?void 0:te.clip2upload])])},{default:()=>{var ue;return[S("div",{class:`${x}-toolbar-item`,title:(ue=t.value.toolbarTips)==null?void 0:ue.image},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-image"},null)])])]}});case"table":return S(lr,{relative:`#${i}`,visible:s.table,onChange:ue=>{s.table=ue},key:"bar-table",overlay:S(Lre,{tableShape:n.tableShape,onSelected:ue=>{o("table",{selectedShape:ue})}},null)},{default:()=>{var ue;return[S("div",{class:`${x}-toolbar-item`,title:(ue=t.value.toolbarTips)==null?void 0:ue.table},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-table"},null)])])]}});case"revoke":return S("div",{class:`${x}-toolbar-item`,title:(ve=t.value.toolbarTips)==null?void 0:ve.revoke,onClick:()=>{M.emit(e,"ctrlZ")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-revoke"},null)])]);case"next":return S("div",{class:`${x}-toolbar-item`,title:(Ee=t.value.toolbarTips)==null?void 0:Ee.next,onClick:()=>{M.emit(e,"ctrlShiftZ")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-next"},null)])]);case"save":return S("div",{class:`${x}-toolbar-item`,title:(ct=t.value.toolbarTips)==null?void 0:ct.save,onClick:()=>{M.emit(e,Lo)}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-baocun"},null)])]);case"prettier":return n.noPrettier?"":S("div",{class:`${x}-toolbar-item`,title:(Jt=t.value.toolbarTips)==null?void 0:Jt.prettier,onClick:()=>{o("prettier")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-prettier"},null)])]);case"pageFullscreen":return!n.setting.fullscreen&&S("div",{class:`${x}-toolbar-item`,title:(fn=t.value.toolbarTips)==null?void 0:fn.pageFullscreen,onClick:()=>{n.updateSetting("pageFullscreen")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":`#md-editor-icon-${n.setting.pageFullscreen?"suoxiao":"fangda"}`},null)])]);case"fullscreen":return S("div",{class:`${x}-toolbar-item`,title:(Yi=t.value.toolbarTips)==null?void 0:Yi.fullscreen,onClick:()=>{r()}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":`#md-editor-icon-${n.setting.fullscreen?"fullscreen-exit":"fullscreen"}`},null)])]);case"preview":return S("div",{class:`${x}-toolbar-item`,title:(ji=t.value.toolbarTips)==null?void 0:ji.preview,onClick:()=>{n.updateSetting("preview")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-preview"},null)])]);case"htmlPreview":return S("div",{class:`${x}-toolbar-item`,title:(Rn=t.value.toolbarTips)==null?void 0:Rn.htmlPreview,onClick:()=>{n.updateSetting("htmlPreview")}},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-coding"},null)])]);case"catalog":return S("div",{class:`${x}-toolbar-item`,title:(Ni=t.value.toolbarTips)==null?void 0:Ni.catalog,onClick:()=>{M.emit(e,Tc)},key:"bar-catalog"},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-catalog"},null)])]);case"github":return S("div",{class:`${x}-toolbar-item`,title:(Fi=t.value.toolbarTips)==null?void 0:Fi.github,onClick:()=>Pre("https://github.com/imzbf/md-editor-v3")},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-github"},null)])]);case"mermaid":return S(lr,{relative:`#${i}`,visible:s.mermaid,onChange:ue=>{s.mermaid=ue},overlay:S("ul",{class:`${x}-menu`,onClick:()=>{s.mermaid=!1}},[S("li",{class:`${x}-menu-item`,onClick:()=>{o("flow")}},[(er=t.value.mermaid)==null?void 0:er.flow]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("sequence")}},[(tr=t.value.mermaid)==null?void 0:tr.sequence]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("gantt")}},[(Gi=t.value.mermaid)==null?void 0:Gi.gantt]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("class")}},[(Hi=t.value.mermaid)==null?void 0:Hi.class]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("state")}},[(nr=t.value.mermaid)==null?void 0:nr.state]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("pie")}},[(Ji=t.value.mermaid)==null?void 0:Ji.pie]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("relationship")}},[(Ki=t.value.mermaid)==null?void 0:Ki.relationship]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("journey")}},[(Wr=t.value.mermaid)==null?void 0:Wr.journey])]),key:"bar-mermaid"},{default:()=>{var ue;return[S("div",{class:`${x}-toolbar-item`,title:(ue=t.value.toolbarTips)==null?void 0:ue.mermaid},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-mermaid"},null)])])]}});case"katex":return S(lr,{relative:`#${i}`,visible:s.katex,onChange:ue=>{s.katex=ue},overlay:S("ul",{class:`${x}-menu`,onClick:()=>{s.katex=!1}},[S("li",{class:`${x}-menu-item`,onClick:()=>{o("katexInline")}},[(Dc=t.value.katex)==null?void 0:Dc.inline]),S("li",{class:`${x}-menu-item`,onClick:()=>{o("katexBlock")}},[(Rc=t.value.katex)==null?void 0:Rc.block])]),key:"bar-katex"},{default:()=>{var ue;return[S("div",{class:`${x}-toolbar-item`,title:(ue=t.value.toolbarTips)==null?void 0:ue.katex},[S("svg",{class:`${x}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-formula"},null)])])]}})}else return n.defToolbars instanceof Array?n.defToolbars[d]||"":n.defToolbars&&n.defToolbars.children instanceof Array&&n.defToolbars.children[d]||""};return()=>{const d=c.value[0].map(m=>f(m)),p=c.value[1].map(m=>f(m));return S(Za,null,[n.toolbars.length>0&&S("div",{class:`${x}-toolbar-wrapper`,id:i},[S("div",{class:`${x}-toolbar`},[S("div",{class:`${x}-toolbar-left`,ref:a},[d]),S("div",{class:`${x}-toolbar-right`},[p])])]),S("input",{ref:h,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),S(Wre,{linkVisible:l.linkVisible,clipVisible:l.clipVisible,type:l.type,onCancel:()=>{l.linkVisible=!1,l.clipVisible=!1},onOk:m=>{m&&o(l.type,{desc:m.desc,url:m.url}),l.linkVisible=!1,l.clipVisible=!1}},null)])}}}),Bf=(n,e,t)=>{let r=n.scrollTop;const i=()=>{const s=e-r;r=r+s/5,Math.abs(s)<1?(n.scrollTo(0,e),t&&setTimeout(t,100)):(n.scrollTo(0,r),requestAnimationFrame(i))};i()},jre=(n,e)=>{const t=qo(()=>{n.removeEventListener("scroll",r),n.addEventListener("scroll",r),e.removeEventListener("scroll",r),e.addEventListener("scroll",r)},50),r=i=>{const s=n.clientHeight,o=e.clientHeight,l=n.scrollHeight,a=e.scrollHeight,c=(l-s)/(a-o);i.target===n?(e.removeEventListener("scroll",r),e.scrollTo({top:n.scrollTop/c}),t()):(n.removeEventListener("scroll",r),n.scrollTo({top:e.scrollTop*c}),t())};return[()=>{t().finally(()=>{n.dispatchEvent(new Event("scroll"))})},()=>{n.removeEventListener("scroll",r),e.removeEventListener("scroll",r)}]},Nre=(n,e,t)=>{const{view:r}=t,i=u=>r.lineBlockAt(r.state.doc.line(u).from).top,s=u=>r.lineBlockAt(r.state.doc.line(u).from).height;let o=[];const l=()=>{o=[];const u=Array.from(e.querySelectorAll("[data-line]")).map(m=>Number(m.dataset.line)+1),{lines:f}=r.state.doc;let d=1,p=u.shift()??f;for(let m=1;m<=f;m++)m===p&&(d=m,p=u.shift()||f+1),o.push({start:d,end:p-1})};let a=0,c=0;const h=u=>{var f,d,p,m,O,b,k;if(!((f=e.firstElementChild)!=null&&f.firstElementChild))return;const y=r.lineBlockAtHeight(r.scrollDOM.scrollTop),{number:Q}=r.state.doc.lineAt(y.from);if(!(Q>o.length)&&!(r.state.doc.lines<o[o.length-1].end))if(u.target===n){if(c!==0)return;a++;const $=o[Q-1],w=i($.end)+s($.end);let A=0;const P=i($.start),I=e.querySelector(`[data-line="${$.start-1}"]`)||((d=e.firstElementChild)==null?void 0:d.firstElementChild),X=e.querySelector(`[data-line="${$.end}"]`)||((p=e.lastElementChild)==null?void 0:p.lastElementChild);let V=0,q=0;P===0?(A=(r.scrollDOM.scrollTop-P)/(w-P),V=X.offsetTop):w>r.scrollDOM.scrollHeight-r.scrollDOM.clientHeight?(A=(r.scrollDOM.scrollTop-P)/(r.scrollDOM.scrollHeight-r.scrollDOM.clientHeight-P),q=I.offsetTop,V=e.scrollHeight-e.clientHeight-q+10):(A=(r.scrollDOM.scrollTop-P)/(w-P),q=I.offsetTop,V=X.offsetTop-q);const z=q-10+V*A;Bf(e,z,()=>{a--})}else{if(a!==0)return;c++;const $=Array.from(e.querySelectorAll("[data-line]")),w=e.scrollTop,A=e.scrollHeight;let P=$.length===0?1:Math.ceil(Number($[$.length-1].dataset.line)*(w/A)),I=(m=e.firstElementChild)==null?void 0:m.firstElementChild;for(let ve=P;ve>=0;ve--){const Ee=e.querySelector(`[data-line="${ve}"]`);if(Ee){I=Ee,P=ve;break}}let X=(O=e.firstElementChild)==null?void 0:O.firstElementChild,V=(b=e.firstElementChild)==null?void 0:b.lastElementChild;for(;$.length>0;){const ve=$.indexOf(I);if(ve+1>=$.length)break;const Ee=$[ve+1],ct=I.offsetTop;if(ct>w){if(ve===0){X=I,V=Ee;break}I=$[ve-1];continue}const Jt=Ee.offsetTop;if(ct<=w&&Jt>w){X=I,V=Ee;break}I=Ee}const q=X.offsetTop,z=V.offsetTop;let T=0;const{start:U,end:R}=o[Number(X.dataset.line||0)],H=i(U);let ee=i(R);const re=s(R);let te=0;X===((k=e.firstElementChild)==null?void 0:k.firstElementChild)?(T=Math.max(w/z,0),te=ee+re-H):ee>r.scrollDOM.scrollHeight-r.scrollDOM.clientHeight?(T=Math.max((w-q)/(e.scrollHeight-q-e.clientHeight),0),ee=i(r.state.doc.lines)+s(r.state.doc.lines),te=8+ee-H-n.clientHeight):(T=Math.max((w-q)/(z-q),0),te=ee+re-H),Bf(n,H+te*T,()=>{c--})}};return[()=>{l(),n.addEventListener("scroll",h),e.addEventListener("scroll",h),n.dispatchEvent(new Event("scroll"))},()=>{o=[],n.removeEventListener("scroll",h),e.removeEventListener("scroll",h)}]},Fre=(n,e,t,r,i)=>{const s=he("previewOnly");let o=()=>{},l=()=>{};const a=()=>{o();const c=document.querySelector(".cm-scroller");!s&&(t.value||r.value)&&([l,o]=(t.value?Nre:jre)(c,t.value||r.value,i.value)),n.scrollAuto&&l()};le([e,ar(n.setting,"preview"),ar(n.setting,"htmlPreview"),ar(n.setting,"fullscreen"),ar(n.setting,"pageFullscreen")],()=>{An(a)}),le(()=>n.scrollAuto,c=>{c?l():o()}),xe(a)},Gre=(n,e,t)=>{var r,i,s,o,l,a;let c="",h=0,u=0,f=!0,d=!1;const p=e.getSelectedText(),m=(r=we.editorConfig)==null?void 0:r.mermaidTemplate;if(/^h[1-6]{1}$/.test(n)){const O=n.replace(/^h(\d)/,(b,k)=>new Array(Number(k)).fill("#",0,k).join(""));c=`${O} ${p}`,h=O.length+1}else if(n==="prettier"){const O=window.prettier||((s=(i=we.editorExtensions)==null?void 0:i.prettier)==null?void 0:s.prettierInstance),b=[((o=window.prettierPlugins)==null?void 0:o.markdown)||((a=(l=we.editorExtensions)==null?void 0:l.prettier)==null?void 0:a.parserMarkdownInstance)];!O||b[0]===void 0?(M.emit(t.editorId,"errorCatcher",{name:"prettier",message:"prettier is undefined"}),c=e.getValue()):c=O.format(e.getValue(),{parser:"markdown",plugins:b}),f=!1,d=!0}else switch(n){case"bold":{c=`**${p}**`,h=2,u=-2;break}case"underline":{c=`<u>${p}</u>`,h=3,u=-4;break}case"italic":{c=`*${p}*`,h=1,u=-1;break}case"strikeThrough":{c=`~~${p}~~`,h=2,u=-2;break}case"sub":{c=`<sub>${p}</sub>`,h=5,u=-6;break}case"sup":{c=`<sup>${p}</sup>`,h=5,u=-6;break}case"codeRow":{c="`"+p+"`",h=1,u=-1;break}case"quote":{c=`> ${p}`,h=2;break}case"orderedList":{c=`1. ${p}`,h=3;break}case"unorderedList":{c=`- ${p}`,h=2;break}case"task":{c=`- [ ] ${p}`,h=6;break}case"code":{const O=t.text||p||"",b=t.mode||"language";c=`\`\`\`${b}
${O}
\`\`\`
`,h=3,u=3+b.length-c.length;break}case"table":{c="|";const{selectedShape:O={x:1,y:1}}=t,{x:b,y:k}=O;for(let y=0;y<=k;y++)c+=" col |";c+=`
|`;for(let y=0;y<=k;y++)c+=" - |";for(let y=0;y<=b;y++){c+=`
|`;for(let Q=0;Q<=k;Q++)c+=" content |"}h=2,u=5-c.length;break}case"link":{const{desc:O,url:b}=t;c=`[${O}](${b})`,f=!1;break}case"image":{const{desc:O,url:b,urls:k}=t;k instanceof Array?c=k.reduce((y,Q)=>y+`![${O}](${Q})
`,""):c=`![${O}](${b})
`,f=!1;break}case"flow":{c=`\`\`\`mermaid
${(m==null?void 0:m.flow)||`flowchart TD 
  Start --> Stop`}
\`\`\`
`,h=3,u=10-c.length;break}case"sequence":{c=`\`\`\`mermaid
${(m==null?void 0:m.sequence)||`sequenceDiagram
  A->>B: hello!
  B-->>A: hi!
  A-)B: bye!`}
\`\`\`
`,h=3,u=10-c.length;break}case"gantt":{c=`\`\`\`mermaid
${(m==null?void 0:m.gantt)||`gantt
title A Gantt Diagram
dateFormat  YYYY-MM-DD
section Section
A task  :a1, 2014-01-01, 30d
Another task  :after a1, 20d`}
\`\`\`
`,h=3,u=10-c.length;break}case"class":{c=`\`\`\`mermaid
${(m==null?void 0:m.class)||`classDiagram
  class Animal
  Vehicle <|-- Car`}
\`\`\`
`,h=3,u=10-c.length;break}case"state":{c=`\`\`\`mermaid
${(m==null?void 0:m.state)||`stateDiagram-v2
  s1 --> s2`}
\`\`\`
`,h=3,u=10-c.length;break}case"pie":{c=`\`\`\`mermaid
${(m==null?void 0:m.pie)||`pie title Pets adopted by volunteers
  "Dogs" : 386
  "Cats" : 85
  "Rats" : 15`}
\`\`\`
`,h=3,u=10-c.length;break}case"relationship":{c=`\`\`\`mermaid
${(m==null?void 0:m.relationship)||`erDiagram
  CAR ||--o{ NAMED-DRIVER : allows
  PERSON ||--o{ NAMED-DRIVER : is`}
\`\`\`
`,h=3,u=10-c.length;break}case"journey":{c=`\`\`\`mermaid
${(m==null?void 0:m.journey)||`journey
  title My working day
  section Go to work
    Make tea: 5: Me
    Go upstairs: 3: Me
    Do work: 1: Me, Cat
  section Go home
    Go downstairs: 5: Me
    Sit down: 5: Me`}
\`\`\`
`,h=3,u=10-c.length;break}case"katexInline":{c="$$",h=1,u=-1;break}case"katexBlock":{c=`$$

$$
`,h=3,u=-4;break}case"universal":{const{generate:O}=t,b=O(p);c=b.targetValue,f=b.select,h=b.deviationStart,u=b.deviationEnd}}return{text:c,options:{select:f,deviationStart:h,deviationEnd:u,replaceAll:d}}},Hre="#e5c07b",Wf="var(--md-color)",Jre="#56b6c2",Kre="#ffffff",ai="var(--md-color)",Yf="#e5c07b",eie="#e5c07b",tie="var(--md-color)",jf="#d19a66",nie="#c678dd",rie="#21252b",Nf="#2c313a",Ff="#000",Pl="#353a42",iie="#ceedfa33",Gf="#528bff",sie=G.theme({"&":{color:ai,backgroundColor:Ff},".cm-content":{caretColor:Gf},".cm-cursor, .cm-dropCursor":{borderLeftColor:Gf},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:iie},".cm-panels":{backgroundColor:rie,color:ai},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#ceedfa33"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Ff,color:ai,borderRight:"1px solid",borderColor:"var(--md-border-color)"},".cm-activeLineGutter":{backgroundColor:Nf},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Pl},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Pl,borderBottomColor:Pl},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Nf,color:ai}}},{dark:!0}),oie=Vr.define([{tag:g.keyword,color:nie},{tag:[g.name,g.deleted,g.character,g.propertyName,g.macroName],color:Wf},{tag:[g.function(g.variableName),g.labelName],color:eie},{tag:[g.color,g.constant(g.name),g.standard(g.name)],color:jf},{tag:[g.definition(g.name),g.separator],color:ai},{tag:[g.typeName,g.className,g.number,g.changed,g.annotation,g.modifier,g.self,g.namespace],color:Hre},{tag:[g.operator,g.operatorKeyword,g.url,g.escape,g.regexp,g.link,g.special(g.string)],color:Jre},{tag:[g.meta,g.comment],color:Yf},{tag:g.strong,fontWeight:"bold"},{tag:g.emphasis,fontStyle:"italic"},{tag:g.strikethrough,textDecoration:"line-through"},{tag:g.link,color:Yf,textDecoration:"underline"},{tag:g.heading,fontWeight:"bold",color:Wf},{tag:[g.atom,g.bool,g.special(g.variableName)],color:jf},{tag:[g.processingInstruction,g.string,g.inserted],color:tie},{tag:g.invalid,color:Kre}]),lie=[sie,Ha(oie)],aie="#e5c07b",Hf="#3f4a54",cie="#56b6c2",hie="#fff",ci="#3f4a54",Jf="#2d8cf0",uie="#2d8cf0",fie="#3f4a54",Kf="#d19a66",die="#c678dd",pie="#21252b",ed="#ceedfa33",td="#fff",Cl="#353a42",mie="#bad5fa",nd="#3f4a54",Oie=G.theme({"&":{color:ci,backgroundColor:td},".cm-content":{caretColor:nd},".cm-cursor, .cm-dropCursor":{borderLeftColor:nd},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:mie},".cm-panels":{backgroundColor:pie,color:ci},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#ceedfa33"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:td,color:ci,borderRight:"1px solid",borderColor:"var(--md-border-color)"},".cm-activeLineGutter":{backgroundColor:ed},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Cl},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Cl,borderBottomColor:Cl},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:ed,color:ci}}},{dark:!0}),gie=Vr.define([{tag:g.keyword,color:die},{tag:[g.name,g.deleted,g.character,g.propertyName,g.macroName],color:Hf},{tag:[g.function(g.variableName),g.labelName],color:uie},{tag:[g.color,g.constant(g.name),g.standard(g.name)],color:Kf},{tag:[g.definition(g.name),g.separator],color:ci},{tag:[g.typeName,g.className,g.number,g.changed,g.annotation,g.modifier,g.self,g.namespace],color:aie},{tag:[g.operator,g.operatorKeyword,g.url,g.escape,g.regexp,g.link,g.special(g.string)],color:cie},{tag:[g.meta,g.comment],color:Jf},{tag:g.strong,fontWeight:"bold"},{tag:g.emphasis,fontStyle:"italic"},{tag:g.strikethrough,textDecoration:"line-through"},{tag:g.link,color:Jf,textDecoration:"underline"},{tag:g.heading,fontWeight:"bold",color:Hf},{tag:[g.atom,g.bool,g.special(g.variableName)],color:Kf},{tag:[g.processingInstruction,g.string,g.inserted],color:fie},{tag:g.invalid,color:hie}]),bie=[Oie,Ha(gie)],or=n=>{const e=new qi;return t=>(e.get(n.state)?n.dispatch({effects:e.reconfigure(t)}):n.dispatch({effects:ye.appendConfig.of(e.of(t))}),!0)};class vie{constructor(e){vn(this,"view"),vn(this,"toggleTabSize"),vn(this,"togglePlaceholder"),vn(this,"setExtensions"),vn(this,"toggleDisabled"),vn(this,"toggleReadOnly"),vn(this,"toggleMaxlength"),this.view=e,this.toggleTabSize=or(this.view),this.togglePlaceholder=or(this.view),this.setExtensions=or(this.view),this.toggleDisabled=or(this.view),this.toggleReadOnly=or(this.view),this.toggleMaxlength=or(this.view)}getValue(){return this.view.state.doc.toString()}setValue(e,t=0,r=this.view.state.doc.length){this.view.dispatch({changes:{from:t,to:r,insert:e}})}getSelectedText(){const{from:e,to:t}=this.view.state.selection.main;return this.view.state.sliceDoc(e,t)}replaceSelectedText(e,t={select:!0,deviationStart:0,deviationEnd:0,replaceAll:!1}){if(t.replaceAll){this.setValue(e);return}const{from:r}=this.view.state.selection.main;if(this.view.dispatch(this.view.state.replaceSelection(e)),t.select){const i=r+e.length+t.deviationEnd;this.view.dispatch({selection:D.create([D.range(r+t.deviationStart,i),D.cursor(i)],1)}),this.view.focus()}}setTabSize(e){this.toggleTabSize([ie.tabSize.of(e),Mi.of(" ".repeat(e))])}setPlaceholder(e){this.togglePlaceholder(Zb(e))}focus(){this.view.focus()}setDisabled(e){this.toggleDisabled([G.editable.of(!e)])}setReadOnly(e){this.toggleReadOnly([ie.readOnly.of(e)])}setMaxLength(e){this.toggleMaxlength([ie.changeFilter.of(t=>t.newDoc.length<=e)])}}const Sie=n=>{const e=he("editorId");return t=>{if(t.clipboardData){if(t.clipboardData.files.length>0){const{files:r}=t.clipboardData;M.emit(e,"uploadImage",Array.from(r).filter(i=>/image\/.*/.test(i.type))),t.preventDefault()}if(n.autoDetectCode&&t.clipboardData.types.includes("vscode-editor-data")){const r=JSON.parse(t.clipboardData.getData("vscode-editor-data"));M.emit(e,"replace","code",{mode:r.mode,text:t.clipboardData.getData("text/plain")}),t.preventDefault()}}}},kie=n=>{const e=he("editorId");xe(()=>{M.on(e,{name:mg,callback(){var t;(t=n.value)==null||t.focus()}})})},yie=(n,e)=>[{key:"Ctrl-b",mac:"Cmd-b",run:()=>(M.emit(n,"replace","bold"),!0)},{key:"Ctrl-d",mac:"Cmd-d",run:bm,preventDefault:!0},{key:"Ctrl-s",mac:"Cmd-s",run:t=>(M.emit(n,Lo,t.state.doc.toString()),!0),shift:()=>(M.emit(n,"replace","strikeThrough"),!0)},{key:"Ctrl-u",mac:"Cmd-u",run:()=>(M.emit(n,"replace","underline"),!0),shift:()=>(M.emit(n,"replace","unorderedList"),!0)},{key:"Ctrl-i",mac:"Cmd-i",run:()=>(M.emit(n,"replace","italic"),!0),shift:()=>(M.emit(n,"openModals","image"),!0)},{key:"Ctrl-1",mac:"Cmd-1",run:()=>(M.emit(n,"replace","h1"),!0)},{key:"Ctrl-2",mac:"Cmd-2",run:()=>(M.emit(n,"replace","h2"),!0)},{key:"Ctrl-3",mac:"Cmd-3",run:()=>(M.emit(n,"replace","h3"),!0)},{key:"Ctrl-4",mac:"Cmd-4",run:()=>(M.emit(n,"replace","h4"),!0)},{key:"Ctrl-5",mac:"Cmd-5",run:()=>(M.emit(n,"replace","h5"),!0)},{key:"Ctrl-6",mac:"Cmd-6",run:()=>(M.emit(n,"replace","h6"),!0)},{key:"Ctrl-ArrowUp",mac:"Cmd-ArrowUp",run:()=>(M.emit(n,"replace","sup"),!0)},{key:"Ctrl-ArrowDown",mac:"Cmd-ArrowDown",run:()=>(M.emit(n,"replace","sub"),!0)},{key:"Ctrl-o",mac:"Cmd-o",run:()=>(M.emit(n,"replace","orderedList"),!0)},{key:"Ctrl-c",mac:"Cmd-c",shift:()=>(M.emit(n,"replace","code"),!0),any(t,r){return(r.ctrlKey||r.metaKey)&&r.altKey&&r.code==="KeyC"?(M.emit(n,"replace","codeRow"),!0):!1}},{key:"Ctrl-l",mac:"Cmd-l",run:()=>(M.emit(n,"openModals","link"),!0)},{key:"Ctrl-f",mac:"Cmd-f",shift:()=>e.noPrettier?!1:(M.emit(n,"replace","prettier"),!0)},{any:(t,r)=>(r.ctrlKey||r.metaKey)&&r.altKey&&r.shiftKey&&r.code==="KeyT"?(M.emit(n,"replace","table"),!0):!1}],wie=n=>{const e=he("tabWidth"),t=he("editorId"),r=he("theme"),i=$e(),s=gi(),o=yie(t,n),l=Sie(n),a=[Vi.of([...o,ZS]),KS,qO({codeLanguages:ek}),G.lineWrapping,G.updateListener.of(h=>{h.docChanged&&n.onChange(h.state.doc.toString())}),G.domEventHandlers({paste:l,blur:n.onBlur,focus:n.onFocus})],c=()=>r.value==="light"?we.codeMirrorExtensions(r.value,[...a,bie],[...o]):we.codeMirrorExtensions(r.value,[...a,lie],[...o]);return xe(()=>{const h=ie.create({doc:n.value}),u=new G({state:h,parent:i.value});s.value=new vie(u),s.value.setTabSize(e),s.value.setExtensions(c()),s.value.setPlaceholder(n.placeholder),s.value.setDisabled(n.disabled),s.value.setReadOnly(n.readonly),n.autofocus&&u.focus(),n.maxlength&&s.value.setMaxLength(n.maxlength),M.on(t,{name:"ctrlZ",callback(){rc(u)}}),M.on(t,{name:"ctrlShiftZ",callback(){Js(u)}}),M.on(t,{name:"replace",callback(f,d={}){var p;const{text:m,options:O}=Gre(f,s.value,d);(p=s.value)==null||p.replaceSelectedText(m,O)}})}),le(()=>r.value,()=>{var h,u;r.value==="dark"?(h=s.value)==null||h.setExtensions(c()):(u=s.value)==null||u.setExtensions(c())}),le(()=>n.value,()=>{var h,u;((h=s.value)==null?void 0:h.getValue())!==n.value&&((u=s.value)==null||u.setValue(n.value))}),le(()=>n.value,()=>{var h;(h=s.value)==null||h.setPlaceholder(n.placeholder)}),le(()=>n.disabled,()=>{var h;(h=s.value)==null||h.setDisabled(n.disabled)}),le(()=>n.readonly,()=>{var h;(h=s.value)==null||h.setDisabled(n.readonly)}),le(()=>n.maxlength,()=>{var h;n.maxlength&&((h=s.value)==null||h.setMaxLength(n.maxlength))}),kie(s),{inputWrapperRef:i,codeMirrorUt:s}},xie=(n,e)=>{const t=he("editorId"),r=qo(()=>{const i=document.querySelectorAll(`#${t}-preview img`);i.length!==0&&Ry(i,{background:"#00000073"})});xe(r),le([e,ar(n.setting,"preview")],r)},Qie=(n,e)=>{const t=he("editorId"),r=he("usedLanguageText"),i=()=>{document.querySelectorAll(`#${t}-preview pre`).forEach(l=>{var a,c;let h=-1;(a=l.querySelector(".copy-button"))==null||a.remove();const u=((c=r.value.copyCode)==null?void 0:c.text)||"复制代码",f=document.createElement("span");f.setAttribute("class","copy-button"),f.dataset.tips=u,f.innerHTML=`<svg class="${x}-icon" aria-hidden="true"><use xlink:href="#${x}-icon-copy"></use></svg>`,f.addEventListener("click",()=>{var d,p;clearTimeout(h);const m=l.querySelector("code").innerText,O=zy(n.formatCopiedText(m)),b=((d=r.value.copyCode)==null?void 0:d.successTips)||"已复制！",k=((p=r.value.copyCode)==null?void 0:p.failTips)||"已复制！";f.dataset.tips=O?b:k,h=window.setTimeout(()=>{f.dataset.tips=u},1500)}),l.appendChild(f)})},s=()=>{An(i)},o=l=>{l&&An(i)};le(()=>e.value,s),le(()=>n.setting.preview,o),le(()=>n.setting.htmlPreview,o),le(()=>r.value,i),xe(i)},$ie=n=>{var e;const t=(e=we.editorExtensions)==null?void 0:e.highlight,r=t==null?void 0:t.instance,i=he("highlight"),s=gi(r);return xe(()=>{if(!n.noHighlight&&!s.value){const o=document.createElement("script");o.src=i.value.js,o.onload=()=>{s.value=window.hljs},o.id=`${x}-hljs`,_t(o,"hljs");const l=document.createElement("link");l.rel="stylesheet",l.href=i.value.css,l.id=`${x}-hlCss`,_t(l)}}),le(()=>i.value.css,o=>{Rre(`${x}-hlCss`,"href",o)}),s},_ie=n=>{const e=he("theme"),{editorExtensions:t}=we,r=t==null?void 0:t.mermaid,i=gi(r==null?void 0:r.instance),s=gi(!1),o=new Ore({max:1e3,ttl:6e5}),l=()=>{const a=(r==null?void 0:r.instance)||window.mermaid;!n.noMermaid&&a&&(a.initialize({startOnLoad:!1,theme:e.value==="dark"?"dark":"default"}),s.value=!s.value)};return le(()=>e.value,()=>{o.clear(),l()}),xe(()=>{if(!n.noMermaid&&!(r!=null&&r.instance)){const a=document.createElement("script");a.id=`${x}-mermaid`;const c=(r==null?void 0:r.js)||wre;/\.mjs/.test(c)?(a.setAttribute("type","module"),a.innerHTML=`import mermaid from "${c}";window.mermaid=mermaid;document.getElementById('${x}-mermaid').dispatchEvent(new Event('load'));`):a.src=c,a.onload=()=>{i.value=window.mermaid,l()},_t(a,"mermaid")}}),{mermaidRef:i,reRenderRef:s,replaceMermaid:()=>{An(()=>{!n.noMermaid&&i.value&&document.querySelectorAll(`div.${x}-mermaid`).forEach(async a=>{let c=o.get(a.innerText);if(!c){const u=Xre(),f=await(i.value.renderAsync||i.value.render)(u,a.innerText);c=typeof f=="string"?f:f.svg,o.set(a.innerText,c)}const h=document.createElement("p");h.className=`${x}-mermaid`,h.setAttribute("data-processed",""),h.innerHTML=c,a.dataset.line!==void 0&&(h.dataset.line=a.dataset.line),a.replaceWith(h)})})}}},Pie=n=>{var e;const t=(e=we.editorExtensions)==null?void 0:e.katex,r=t==null?void 0:t.instance,i=gi(r);return xe(()=>{if(!n.noKatex&&!i.value){const s=document.createElement("script");s.src=(t==null?void 0:t.js)||qf.js,s.onload=()=>{i.value=window.katex},s.id=`${x}-katex`;const o=document.createElement("link");o.rel="stylesheet",o.href=(t==null?void 0:t.css)||qf.css,o.id=`${x}-katexCss`,_t(s,"katex"),_t(o)}}),i},Cie=(n,e)=>{const t=n.renderer.rules.fence.bind(n.renderer.rules);n.renderer.rules.fence=(r,i,s,o,l)=>{const a=r[i],c=a.content.trim();if(a.info==="mermaid"){let h;return r[i].map&&r[i].level===0&&(h=r[i].map[0],r[i].attrSet("data-line",String(h))),`<div class="${x}-mermaid" ${h!==void 0?"data-line="+h:""} data-mermaid-theme=${e.themeRef.value}>${c}</div>`}return t(r,i,s,o,l)}},rd=(n,e)=>{let t=!0,r=!0;const i=n.posMax,s=e>0?n.src.charCodeAt(e-1):-1,o=e+1<=i?n.src.charCodeAt(e+1):-1;return(s===32||s===9||o>=48&&o<=57)&&(r=!1),(o===32||o===9)&&(t=!1),{can_open:t,can_close:r}},Aie=(n,e)=>{let t,r,i,s;if(n.src[n.pos]!=="$")return!1;if(i=rd(n,n.pos),!i.can_open)return e||(n.pending+="$"),n.pos+=1,!0;const o=n.pos+1;for(t=o;(t=n.src.indexOf("$",t))!==-1;){for(s=t-1;n.src[s]==="\\";)s-=1;if((t-s)%2==1)break;t+=1}return t===-1?(e||(n.pending+="$"),n.pos=o,!0):t-o===0?(e||(n.pending+="$$"),n.pos=o+1,!0):(i=rd(n,t),i.can_close?(e||(r=n.push("math_inline","math",0),r.markup="$",r.content=n.src.slice(o,t)),n.pos=t+1,!0):(e||(n.pending+="$"),n.pos=o,!0))},Tie=(n,e,t,r)=>{let i,s,o,l,a=!1,c=n.bMarks[e]+n.tShift[e],h=n.eMarks[e];if(c+2>h||n.src.slice(c,c+2)!=="$$")return!1;if(c+=2,i=n.src.slice(c,h),r)return!0;for(i.trim().slice(-2)==="$$"&&(i=i.trim().slice(0,-2),a=!0),o=e;!a&&(o++,!(o>=t||(c=n.bMarks[o]+n.tShift[o],h=n.eMarks[o],c<h&&n.tShift[o]<n.blkIndent)));)n.src.slice(c,h).trim().slice(-2)==="$$"&&(l=n.src.slice(0,h).lastIndexOf("$$"),s=n.src.slice(c,l),a=!0);n.line=o+1;const u=n.push("math_block","math",0);return u.block=!0,u.content=(i&&i.trim()?i+`
`:"")+n.getLines(e+1,o,n.tShift[e],!0)+(s&&s.trim()?s:""),u.map=[e,n.line],u.markup="$$",!0},Eie=(n,e)=>{const t=i=>{if(e.katexRef.value){const s=e.katexRef.value.renderToString(i,{throwOnError:!1});return`<span class="${x}-katex-inline" data-processed>${s}</span>`}else return`<span class="${x}-katex-inline">${i}</span>`},r=(i,s)=>{if(e.katexRef.value){const o=e.katexRef.value.renderToString(i,{throwOnError:!1,displayMode:!0});return`<p class="${x}-katex-block" data-line=${s} data-processed>${o}</p>`}else return`<p class="${x}-katex-block" data-line=${s}>${i}</p>`};n.inline.ruler.after("escape","math_inline",Aie),n.block.ruler.after("blockquote","math_block",Tie,{alt:["paragraph","reference","blockquote","list"]}),n.renderer.rules.math_inline=(i,s)=>t(i[s].content),n.renderer.rules.math_block=(i,s)=>r(i[s].content,i[s].map[0])+`
`},Xie=(n,e)=>{e=e||{};const t=3,r=e.marker||"!",i=r.charCodeAt(0),s=r.length;let o="",l="";const a=(h,u,f,d,p)=>{const m=h[u];return m.type==="admonition_open"?(h[u].attrPush(["class",`${x}-admonition ${x}-admonition-${m.info}`]),h[u].attrSet("data-line",String(h[u].map[0]))):m.type==="admonition_title_open"&&h[u].attrPush(["class",`${x}-admonition-title`]),p.renderToken(h,u,f)},c=h=>{const u=h.trim().split(" ",2);l="",o=u[0],u.length>1&&(l=h.substring(o.length+2)),(l===""||!l)&&(l=o)};n.block.ruler.before("code","admonition",(h,u,f,d)=>{let p,m,O,b=!1,k=h.bMarks[u]+h.tShift[u],y=h.eMarks[u];if(i!==h.src.charCodeAt(k))return!1;for(p=k+1;p<=y&&r[(p-k)%s]===h.src[p];p++);const Q=Math.floor((p-k)/s);if(Q!==t)return!1;p-=(p-k)%s;const $=h.src.slice(k,p),w=h.src.slice(p,y);if(c(w),d)return!0;for(m=u;m++,!(m>=f||(k=h.bMarks[m]+h.tShift[m],y=h.eMarks[m],k<y&&h.sCount[m]<h.blkIndent));)if(i===h.src.charCodeAt(k)&&!(h.sCount[m]-h.blkIndent>=4)){for(p=k+1;p<=y&&r[(p-k)%s]===h.src[p];p++);if(!(Math.floor((p-k)/s)<Q)&&(p-=(p-k)%s,p=h.skipSpaces(p),!(p<y))){b=!0;break}}const A=h.parentType,P=h.lineMax;return h.parentType="root",h.lineMax=m,O=h.push("admonition_open","div",1),O.markup=$,O.block=!0,O.info=o,O.map=[u,m],O=h.push("admonition_title_open","p",1),O.markup=$+" "+o,O.map=[u,m],O=h.push("inline","",0),O.content=l,O.map=[u,h.line-1],O.children=[],O=h.push("admonition_title_close","p",-1),O.markup=$+" "+o,h.md.block.tokenize(h,u+1,m),O=h.push("admonition_close","div",-1),O.markup=h.src.slice(k,p),O.block=!0,h.parentType=A,h.lineMax=P,h.line=m+(b?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),n.renderer.rules.admonition_open=a,n.renderer.rules.admonition_title_open=a,n.renderer.rules.admonition_title_close=a,n.renderer.rules.admonition_close=a},Die=(n,e)=>{let t;n.core.ruler.push("headingLinks",r=>{t||(t=r.Token)}),n.renderer.rules.heading_open=(r,i)=>{const s=r[i],o=r[i+1].content,l=s.markup.length;return e.headsRef.value.push({text:o,level:l}),s.map&&s.level===0&&(s.attrSet("data-line",String(s.map[0])),s.attrSet("id",e.mdHeadingId(o,l,e.headsRef.value.length))),n.renderer.renderToken(r,i,e)},n.renderer.rules.heading_close=(r,i,s,o,l)=>l.renderToken(r,i,s)},Rie=n=>{["paragraph_open","table_open","ordered_list_open","bullet_list_open","blockquote_open","hr"].forEach(e=>{n.renderer.rules[e]=(t,r,i,s,o)=>{let l;return t[r].map&&t[r].level===0&&(l=t[r].map[0],t[r].attrSet("data-line",String(l))),o.renderToken(t,r,i)}}),["html_block","fence"].forEach(e=>{const t=n.renderer.rules[e];n.renderer.rules[e]=(r,i,s,o,l)=>{let a;const c=t(r,i,s,o,l);return r[i].map&&r[i].level===0?(a=r[i].map[0],c.replace(/^(<[^>]*)/,`$1 data-line="${a}"`)):c}})},Zie=n=>{const{editorConfig:e,markdownItConfig:t}=we,r=he("editorId"),i=he("showCodeRowNumber"),s=he("previewOnly"),o=he("theme"),l=$e([]),a=$ie(n),c=Pie(n),{reRenderRef:h,replaceMermaid:u}=_ie(n),f=Gne({html:!0,breaks:!0});f.use(Eie,{katexRef:c}),f.use(Jne,{figcaption:!0}),f.use(Xie),f.use(ure),f.use(Die,{mdHeadingId:n.mdHeadingId,headsRef:l}),f.use(dre),n.noMermaid||f.use(Cie,{themeRef:o}),f.set({highlight:(O,b)=>{let k;!n.noHighlight&&a.value?a.value.getLanguage(b)?k=a.value.highlight(O,{language:b,ignoreIllegals:!0}).value:k=a.value.highlightAuto(O).value:k=f.utils.escapeHtml(O);const y=i?Are(k.trim()):`<span class="code-block">${k.trim()}</span>`;return`<pre><code class="language-${b}" language=${b}>${y}</code></pre>`}}),Rie(f),t(f);const d=$e(n.sanitize(f.render(n.value))),p=qo(async()=>{l.value=[],d.value=n.sanitize(f.render(n.value)),M.emit(r,"buildFinished",d.value),n.onHtmlChanged(d.value),u()},(e==null?void 0:e.renderDelay)!==void 0?e==null?void 0:e.renderDelay:s?0:500),m=ht(()=>n.noHighlight||a.value);return le([ar(n,"value"),m,h],p),le(()=>l.value,O=>{n.onGetCatalog(O),M.emit(r,"catalogChanged",O)}),xe(()=>{M.on(r,{name:"pushCatalog",callback(){M.emit(r,"catalogChanged",l.value)}})}),{html:d}},qie={value:{type:String,default:""},onChange:{type:Function,default:()=>{}},setting:{type:Object,default:()=>({})},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:n=>n},placeholder:{type:String,default:""},noKatex:{type:Boolean,default:!1},scrollAuto:{type:Boolean},formatCopiedText:{type:Function,default:n=>n},autofocus:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},maxlength:{type:Number},autoDetectCode:{type:Boolean},onBlur:{type:Function,default:()=>{}},onFocus:{type:Function,default:()=>{}},noPrettier:{type:Boolean},noHighlight:{type:Boolean,default:!1}},Lie=Te({name:"MDEditorContent",props:qie,setup(n){const e=he("previewOnly"),t=he("showCodeRowNumber"),r=he("previewTheme"),i=he("editorId"),s=$e(),o=$e(),{inputWrapperRef:l,codeMirrorUt:a}=wie(n),{html:c}=Zie(n);return Fre(n,c,s,o,a),Qie(n,c),xie(n,c),()=>S("div",{class:`${x}-content`},[!e&&S("div",{class:`${x}-input-wrapper`,ref:l},null),n.setting.preview&&S("div",{id:`${i}-preview-wrapper`,class:`${x}-preview-wrapper`,ref:s,key:"content-preview-wrapper"},[S("article",{id:`${i}-preview`,class:[`${x}-preview`,`${r==null?void 0:r.value}-theme`,t&&`${x}-scrn`],innerHTML:c.value},null)]),n.setting.htmlPreview&&S("div",{class:`${x}-preview-wrapper`,ref:o,key:"html-preview-wrapper"},[S("div",{class:`${x}-html`},[c.value])])])}}),Vie=Te({props:{modelValue:{type:String,default:""}},setup(n){const e=he("usedLanguageText");return()=>{var t,r;return S("div",{class:`${x}-footer-item`},[S("label",{class:`${x}-footer-label`},[`${(t=e.value.footer)==null?void 0:t.markdownTotal}:`]),S("span",null,[((r=n.modelValue)==null?void 0:r.length)||0])])}}}),Iie={checked:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}}},Mie=Te({props:Iie,setup(n){return()=>S("div",{class:[`${x}-checkbox`,n.checked&&`${x}-checkbox-checked`],onClick:()=>{n.onChange(!n.checked)}},null)}}),zie={scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}}},Uie=Te({props:zie,setup(n){const e=he("usedLanguageText");return()=>{var t;return S("div",{class:`${x}-footer-item`},[S("label",{class:`${x}-footer-label`,onClick:()=>{n.onScrollAutoChange(!n.scrollAuto)}},[(t=e.value.footer)==null?void 0:t.scrollAuto]),S(Mie,{checked:n.scrollAuto,onChange:n.onScrollAutoChange},null)])}}}),Bie={modelValue:{type:String,default:""},footers:{type:Array,default:[]},scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}},defFooters:{type:Object}},Wie=Te({name:"MDEditorFooter",props:Bie,setup(n){const e=ht(()=>{const r=n.footers.indexOf("="),i=r===-1?n.footers:n.footers.slice(0,r),s=r===-1?[]:n.footers.slice(r,Number.MAX_SAFE_INTEGER);return[i,s]}),t=r=>{if(dg.includes(r))switch(r){case"markdownTotal":return S(Vie,{modelValue:n.modelValue},null);case"scrollSwitch":return S(Uie,{scrollAuto:n.scrollAuto,onScrollAutoChange:n.onScrollAutoChange},null)}else return n.defFooters instanceof Array?n.defFooters[r]||"":n.defFooters&&n.defFooters.children instanceof Array&&n.defFooters.children[r]||""};return()=>{const r=e.value[0].map(s=>t(s)),i=e.value[1].map(s=>t(s));return S("div",{class:`${x}-footer`},[S("div",{class:`${x}-footer-left`},[r]),S("div",{class:`${x}-footer-right`},[i])])}}}),Yie={tocItem:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:()=>{}},scrollElement:{type:[String,Object],default:""},onClick:{type:Function,default:()=>{}},scrollElementOffsetTop:{type:Number,default:0}},Og=Te({props:Yie,setup(n){return()=>{const{tocItem:e,mdHeadingId:t,scrollElement:r,onClick:i,scrollElementOffsetTop:s}=n;return S("div",{class:[`${x}-catalog-link`,e.active&&`${x}-catalog-active`],onClick:o=>{i(o,e),o.stopPropagation();const l=t(e.text,e.level,e.index),a=document.getElementById(l),c=r instanceof Element?r:document.querySelector(r);if(a&&c){let h=a.offsetParent,u=a.offsetTop;if(c.contains(h))for(;h&&c!=h;)u+=h==null?void 0:h.offsetTop,h=h==null?void 0:h.offsetParent;c==null||c.scrollTo({top:u-s,behavior:"smooth"})}}},[S("span",{title:e.text},[e.text]),S("div",{class:`${x}-catalog-wrapper`},[e.children&&e.children.map(o=>S(Og,{mdHeadingId:t,key:`${e.text}-link-${o.level}-${o.text}`,tocItem:o,scrollElement:r,onClick:i,scrollElementOffsetTop:s},null))])])}}}),jie={editorId:{type:String},class:{type:String,default:""},mdHeadingId:{type:Function,default:n=>n},scrollElement:{type:[String,Object]},theme:{type:String,default:"light"},offsetTop:{type:Number,default:20},scrollElementOffsetTop:{type:Number,default:0},onClick:{type:Function}},ao=Te({name:"MdCatalog",props:jie,emits:["onClick"],setup(n,e){const t=n.editorId,r=pt({list:[],show:!1,scrollElement:n.scrollElement||`#${t}-preview-wrapper`}),i=ht(()=>{const o=[];return r.list.forEach(({text:l,level:a,active:c},h)=>{const u={level:a,text:l,index:h+1,active:!!c};if(o.length===0)o.push(u);else{let f=o[o.length-1];if(u.level>f.level)for(let d=f.level+1;d<=6;d++){const{children:p}=f;if(!p){f.children=[u];break}if(f=p[p.length-1],u.level<=f.level){p.push(u);break}}else o.push(u)}}),o});xe(()=>{M.on(t,{name:"catalogChanged",callback:o=>{r.list=o.map((l,a)=>a===0?{...l,active:!0}:{...l})}}),M.emit(t,"pushCatalog")});const s=()=>{var o;const l=r.scrollElement instanceof HTMLElement?r.scrollElement:document.querySelector(r.scrollElement);(o=l===document.documentElement?window:l)==null||o.addEventListener("scroll",Tre(()=>{if(r.list.length===0)return!1;const{activeHead:a}=r.list.reduce((c,h,u)=>{const f=document.getElementById(n.mdHeadingId(h.text,h.level,u+1));if(f instanceof HTMLElement){const d=Ere(f,l);if(d<n.offsetTop&&d>c.minTop)return{activeHead:h,minTop:d}}return c},{activeHead:r.list[0],minTop:Number.MIN_SAFE_INTEGER});r.list=r.list.map(c=>c===a?{...c,active:!0}:{...c,active:!1})}))};return xe(()=>{s(),M.on(t,{name:Ta,callback(o){o&&An(s)}})}),()=>S("div",{class:`${x}-catalog${n.theme==="dark"?"-dark":""} ${n.class}`},[i.value.map(o=>S(Og,{mdHeadingId:n.mdHeadingId,tocItem:o,key:`link-${o.level}-${o.text}`,scrollElement:r.scrollElement,onClick:(l,a)=>{n.onClick?n.onClick(l,a):e.emit("onClick",l,a)},scrollElementOffsetTop:n.scrollElementOffsetTop},null))])}}),Nie=(n,e)=>{const{editorId:t,previewOnly:r}=n,i=pt({buildFinished:!1,html:""});le(()=>n.modelValue,()=>{i.buildFinished=!1}),xe(()=>{r||(M.on(t,{name:"buildFinished",callback(s){i.buildFinished=!0,i.html=s}}),M.on(t,{name:Lo,callback(){const s=new Promise(o=>{if(i.buildFinished)o(i.html);else{const l=a=>{o(a),M.remove(t,"buildFinished",l)};M.on(t,{name:"buildFinished",callback:l})}});n.onSave?n.onSave(n.modelValue,s):e.emit("onSave",n.modelValue,s)}}))})},Fie=n=>{var e;const{editorId:t,previewOnly:r}=n,i=(e=we==null?void 0:we.editorExtensions)==null?void 0:e.highlight;dn("editorId",t),dn("tabWidth",n.tabWidth),dn("theme",ht(()=>n.theme)),dn("highlight",ht(()=>{const o={...Lf,...i==null?void 0:i.css},l=n.codeStyleReverse&&n.codeStyleReverseList.includes(n.previewTheme)?"dark":n.theme;return{js:(i==null?void 0:i.js)||kre,css:o[n.codeTheme]?o[n.codeTheme][l]:Lf.atom[l]}})),dn("previewOnly",r),dn("showCodeRowNumber",n.showCodeRowNumber);const s=ht(()=>{var o;const l={...Zf,...(o=we==null?void 0:we.editorConfig)==null?void 0:o.languageUserDefined};return l[n.language]?l[n.language]:Zf["zh-CN"]});dn("usedLanguageText",s),dn("previewTheme",ht(()=>n.previewTheme))},Gie=n=>{var e,t,r,i,s,o;const{noPrettier:l,previewOnly:a,noIconfont:c,noUploadImg:h}=n,{editorExtensions:u}=we,f=l||!!((t=(e=we.editorExtensions)==null?void 0:e.prettier)!=null&&t.prettierInstance),d=l||!!((i=(r=we.editorExtensions)==null?void 0:r.prettier)!=null&&i.parserMarkdownInstance),p=h||!!((o=(s=we.editorExtensions)==null?void 0:s.cropper)!=null&&o.instance);xe(()=>{var m,O,b,k;const y=document.createElement("script");y.src=(u==null?void 0:u.iconfont)||Sre,y.id=`${x}-icon`;const Q=document.createElement("script"),$=document.createElement("script");Q.src=((m=u==null?void 0:u.prettier)==null?void 0:m.standaloneJs)||Df.main,Q.id=`${x}-prettier`,$.src=((O=u==null?void 0:u.prettier)==null?void 0:O.parserMarkdownJs)||Df.markdown,$.id=`${x}-prettierMD`;const w=document.createElement("link");w.rel="stylesheet",w.href=((b=u==null?void 0:u.cropper)==null?void 0:b.css)||Rf.css,w.id=`${x}-cropperCss`;const A=document.createElement("script");A.src=((k=u==null?void 0:u.cropper)==null?void 0:k.js)||Rf.js,A.id=`${x}-cropper`,c||_t(y),a||(p||(_t(w),_t(A)),f||_t(Q),d||_t($))})},Hie=(n,e)=>{const{editorId:t,previewOnly:r}=n,i=pt({pageFullscreen:n.pageFullscreen,fullscreen:!1,preview:n.preview,htmlPreview:n.preview?!1:n.htmlPreview}),s=(a,c)=>{i[a]=c===void 0?!i[a]:c,a==="preview"&&i.preview?i.htmlPreview=!1:a==="htmlPreview"&&i.htmlPreview&&(i.preview=!1)};let o="";const l=()=>{i.pageFullscreen||i.fullscreen?document.body.style.overflow="hidden":document.body.style.overflow=o};return le(()=>[i.pageFullscreen,i.fullscreen],l),xe(()=>{r||M.on(t,{name:"uploadImage",callback(a,c){const h=u=>{M.emit(t,"replace","image",{desc:"",urls:u}),c&&c()};n.onUploadImg?n.onUploadImg(a,h):e.emit("onUploadImg",a,h)}}),o=document.body.style.overflow,l()}),[i,s]},Jie=n=>{const{editorId:e}=n,t=$e(!1);xe(()=>{M.on(e,{name:Tc,callback:i=>{i===void 0?t.value=!t.value:t.value=i}})});const r=ht(()=>!n.toolbarsExclude.includes("catalog")&&n.toolbars.includes("catalog"));return[t,r]},Kie=(n,e,t,r,i)=>{const{editorId:s}=n;le(()=>r.pageFullscreen,l=>{M.emit(s,Vf,l)}),le(()=>r.fullscreen,l=>{M.emit(s,If,l)}),le(()=>r.preview,l=>{M.emit(s,Ta,l)}),le(()=>r.htmlPreview,l=>{M.emit(s,Mf,l)}),le(t,l=>{M.emit(s,zf,l)});const o={on(l,a){switch(l){case"pageFullscreen":{M.on(s,{name:Vf,callback(c){a(c)}});break}case"fullscreen":{M.on(s,{name:If,callback(c){a(c)}});break}case"preview":{M.on(s,{name:Ta,callback(c){a(c)}});break}case"htmlPreview":{M.on(s,{name:Mf,callback(c){a(c)}});break}case"catalog":{M.on(s,{name:zf,callback(c){a(c)}});break}}},togglePageFullscreen(l){i("pageFullscreen",l)},toggleFullscreen(l){M.emit(s,pg,l)},togglePreview(l){i("preview",l)},toggleHtmlPreview(l){i("htmlPreview",l)},toggleCatalog(l){M.emit(s,Tc,l)},triggerSave(){M.emit(s,Lo)},insert(l){M.emit(s,"replace","universal",{generate:l})},focus(){M.emit(s,mg)}};e.expose(o)},ese=n=>n,tse={modelValue:{type:String,default:""},theme:{type:String,default:"light"},class:{type:String,default:""},onChange:{type:Function},onSave:{type:Function},onUploadImg:{type:Function},pageFullscreen:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},htmlPreview:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},language:{type:String,default:"zh-CN"},toolbars:{type:Array,default:fg},toolbarsExclude:{type:Array,default:[]},noPrettier:{type:Boolean,default:!1},onHtmlChanged:{type:Function},onGetCatalog:{type:Function},editorId:{type:String,default:vre},tabWidth:{type:Number,default:2},showCodeRowNumber:{type:Boolean,default:!1},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:ese},tableShape:{type:Array,default:()=>[6,4]},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:n=>n},placeholder:{type:String,default:""},noKatex:{type:Boolean,default:!1},defToolbars:{type:[String,Object]},onError:{type:Function},codeTheme:{type:String,default:"atom"},footers:{type:Array,default:dg},scrollAuto:{type:Boolean,default:!0},defFooters:{type:[String,Object]},noIconfont:{type:Boolean},formatCopiedText:{type:Function,default:n=>n},noUploadImg:{type:Boolean},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},autoFocus:{type:Boolean},disabled:{type:Boolean},readOnly:{type:Boolean},maxLength:{type:Number},autoDetectCode:{type:Boolean},onBlur:{type:Function},onFocus:{type:Function},noHighlight:{type:Boolean,default:!1}},nse=["onChange","onSave","onUploadImg","onHtmlChanged","onGetCatalog","onError","update:modelValue","onBlur","onFocus"],ln=Te({name:"MdEditorV3",props:tse,emits:nse,setup(n,e){const{editorId:t,previewOnly:r,noKatex:i,noMermaid:s,noPrettier:o,noUploadImg:l,noHighlight:a}=n,c=pt({scrollAuto:n.scrollAuto});Nie(n,e),Fie(n),Gie(n);const[h,u]=Hie(n,e),[f,d]=Jie(n);return Ra(()=>{M.clear(t)}),Kie(n,e,f,h,u),()=>{var p;const m=Ct({props:n,ctx:e},"defToolbars"),O=Ct({props:n,ctx:e},"defFooters");return S("div",{id:t,class:[x,n.class,n.theme==="dark"&&`${x}-dark`,h.fullscreen||h.pageFullscreen?`${x}-fullscreen`:"",r&&`${x}-previewOnly`],style:n.style},[!r&&S(Yre,{noPrettier:o,toolbars:n.toolbars,toolbarsExclude:n.toolbarsExclude,setting:h,updateSetting:u,tableShape:n.tableShape,defToolbars:m,noUploadImg:l},null),S(Lie,{value:n.modelValue,setting:h,mdHeadingId:n.mdHeadingId,noMermaid:s,noPrettier:o,sanitize:n.sanitize,placeholder:n.placeholder,noKatex:i,scrollAuto:c.scrollAuto,formatCopiedText:n.formatCopiedText,autofocus:n.autoFocus,disabled:n.disabled,readonly:n.readOnly,maxlength:n.maxLength,autoDetectCode:n.autoDetectCode,noHighlight:a,onChange:b=>{n.onChange?n.onChange(b):(e.emit("update:modelValue",b),e.emit("onChange",b))},onHtmlChanged:b=>{n.onHtmlChanged?n.onHtmlChanged(b):e.emit("onHtmlChanged",b)},onGetCatalog:b=>{n.onGetCatalog?n.onGetCatalog(b):e.emit("onGetCatalog",b)},onBlur:b=>{n.onBlur?n.onBlur(b):e.emit("onBlur",b)},onFocus:b=>{n.onFocus?n.onFocus(b):e.emit("onFocus",b)}},null),!r&&((p=n.footers)==null?void 0:p.length)>0&&S(Wie,{modelValue:n.modelValue,footers:n.footers,defFooters:O,scrollAuto:c.scrollAuto,onScrollAutoChange:b=>c.scrollAuto=b},null),d.value&&!r&&S(ao,{theme:n.theme,style:{display:f.value?"block":"none"},class:`${x}-catalog-editor`,editorId:t,mdHeadingId:n.mdHeadingId},null)])}}}),rse={title:{type:String,default:""},trigger:{type:[String,Object]},onClick:{type:Function}},Ea=Te({name:"NormalToolbar",props:rse,emits:["onClick"],setup(n,e){return()=>{const t=Ct({props:n,ctx:e},"trigger");return S("div",{class:`${x}-toolbar-item`,title:n.title,onClick:r=>{n.onClick instanceof Function?n.onClick(r):e.emit("onClick",r)}},[t])}}}),ise={title:{type:String,default:""},visible:{type:Boolean},trigger:{type:[String,Object]},onChange:{type:Function},overlay:{type:[String,Object]}},Xa=Te({name:"DropdownToolbar",props:ise,emits:["onChange"],setup(n,e){const t=he("editorId");return()=>{const r=Ct({props:n,ctx:e},"trigger"),i=Ct({props:n,ctx:e},"overlay");return S(lr,{relative:`#${t}-toolbar-wrapper`,visible:n.visible,onChange:s=>{n.onChange instanceof Function?n.onChange(s):e.emit("onChange",s)},overlay:i},{default:()=>[S("div",{class:`${x}-toolbar-item`,title:n.title||""},[r])]})}}});function sse(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!wg(n)}const ose={title:{type:String,default:""},modalTitle:{type:String,default:""},visible:{type:Boolean},width:{type:String,default:"auto"},height:{type:String,default:"auto"},trigger:{type:[String,Object]},onClick:{type:Function},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function}},Da=Te({name:"ModalToolbar",props:ose,emits:["onClick","onClose","onAdjust"],setup(n,e){return()=>{const t=Ct({props:n,ctx:e},"trigger"),r=Ct({props:n,ctx:e},"default");return S(Za,null,[S("div",{class:`${x}-toolbar-item`,title:n.title,onClick:()=>{n.onClick instanceof Function?n.onClick():e.emit("onClick")}},[t]),S(Ec,{width:n.width,height:n.height,title:n.modalTitle,visible:n.visible,onClose:()=>{n.onClose instanceof Function?n.onClose():e.emit("onClose")},showAdjust:n.showAdjust,isFullscreen:n.isFullscreen,onAdjust:i=>{n.onAdjust instanceof Function?n.onAdjust(i):e.emit("onAdjust",i)}},sse(r)?r:{default:()=>[r]})])}}});ln.install=n=>(n.component(ln.name,ln),n.component(Ea.name,Ea),n.component(Xa.name,Xa),n.component(ao.name,ao),n.component(Da.name,Da),n);ln.NormalToolbar=Ea;ln.DropdownToolbar=Xa;ln.MdCatalog=ao;ln.ModalToolbar=Da;ln.config=xre;const lse={class:"flex justify-between"},ase=id("b",null,"公共公告设置",-1),gg=Te({__name:"notice",setup(n){const e=xg(),t=pt({isAutoOpenNotice:"",noticeInfo:"",noticeTitle:""}),r=ht(()=>e.settings.app.colorScheme),i=$e({noticeTitle:[{required:!0,trigger:"blur",message:"请填写公告标题"}],noticeInfo:[{required:!0,trigger:"blur",message:"请填写公告具体信息"}]}),s=$e();async function o(){const f=await Lc.queryConfig({keys:["noticeInfo","noticeTitle","isAutoOpenNotice"]}),{noticeInfo:d,noticeTitle:p,isAutoOpenNotice:m}=f.data;d&&Object.assign(t,{noticeInfo:d,noticeTitle:p,isAutoOpenNotice:m})}function l(){var f;(f=s.value)==null||f.validate(async d=>{if(d){try{await Lc.setConfig({settings:c(t)}),Yr.success("变更配置信息成功")}catch{}o()}else Yr.error("请填写完整信息")})}const a=$e("/api/upload/file");function c(f){return Object.keys(f).map(d=>({configKey:d,configVal:f[d]}))}function h(f){}async function u(f,d){const p=await Promise.all(Array.from(f).map(m=>new Promise(async(O,b)=>{var y,Q,$;const k=new FormData;k.append("file",m);try{const w=await Pg.post(a.value,k,{headers:{"Content-Type":"multipart/form-data"}});(y=w==null?void 0:w.data)!=null&&y.data||Yr.error("图片上传失败、请检查您的配置信息！"),O(w.data.data)}catch(w){Yr.error((($=(Q=w==null?void 0:w.response)==null?void 0:Q.data)==null?void 0:$.message)||"图片上传失败、请检查您的配置信息！"),b(w)}})));d(p.map(m=>m)),Yr({message:"图片上传成功！",type:"success"})}return xe(()=>{o()}),(f,d)=>{const p=Et("el-alert"),m=Sg,O=Et("el-button"),b=Et("el-input"),k=Et("el-form-item"),y=Et("el-col"),Q=Et("el-switch"),$=Et("el-tooltip"),w=Et("el-row"),A=Et("el-form"),P=Et("el-card");return Qg(),$g("div",null,[S(m,null,{default:He(()=>[S(p,{closable:!1,"show-icon":"",title:"公告设置说明",description:"这里的公告设置是对应用户端的公告页面的、你可以使用MD语法或直接使用Html标签进行发布、您也可以直接粘贴上传图片、作为图床使用、其他地方比如上传商品等地方的图片也可以暂时在此作为临时方案。",type:"success"})]),_:1}),S(P,{style:{margin:"20px"}},{header:He(()=>[id("div",lse,[ase,S(O,{class:"button",text:"",onClick:l},{default:He(()=>[_g(" 保存设置 ")]),_:1})])]),default:He(()=>[S(A,{ref_key:"formRef",ref:s,rules:i.value,model:t,"label-width":"120px"},{default:He(()=>[S(w,null,{default:He(()=>[S(y,{xs:24,md:20,lg:15,xl:10},{default:He(()=>[S(k,{label:"公告标题",prop:"noticeTitle"},{default:He(()=>[S(b,{modelValue:t.noticeTitle,"onUpdate:modelValue":d[0]||(d[0]=I=>t.noticeTitle=I),rows:1,placeholder:"公告标题",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),S(y,{offset:2,xs:24,md:20,lg:15,xl:10},{default:He(()=>[S(k,{label:"自动打开公告",prop:"isAutoOpenNotice"},{default:He(()=>[S($,{content:"设为自动打开则网站初始化会打开、用户仍可以选择24小时不再查看、选择关闭则不会主动打开！",placement:"top","show-after":500},{default:He(()=>[S(Q,{modelValue:t.isAutoOpenNotice,"onUpdate:modelValue":d[1]||(d[1]=I=>t.isAutoOpenNotice=I),"active-value":"1","inactive-value":"0"},null,8,["modelValue"])]),_:1})]),_:1}),S(y,{xs:24,md:20,lg:15,xl:12})]),_:1})]),_:1}),S(w,null,{default:He(()=>[S(y,{span:24},{default:He(()=>[S(k,{label:"公告信息",prop:"noticeInfo"},{default:He(()=>[S(Zc(ln),{modelValue:t.noticeInfo,"onUpdate:modelValue":d[2]||(d[2]=I=>t.noticeInfo=I),style:{"min-height":"80vh"},theme:Zc(r),onOnChange:h,onOnUploadImg:u},null,8,["modelValue","theme"])]),_:1})]),_:1})]),_:1})]),_:1},8,["rules","model"])]),_:1})])}}});typeof qc=="function"&&qc(gg);const vse=Object.freeze(Object.defineProperty({__proto__:null,default:gg},Symbol.toStringTag,{value:"Module"}));export{Wm as C,Ft as E,ge as I,Cr as L,Qp as N,Er as a,Dr as b,Ts as c,VS as d,LS as e,So as f,_e as g,fv as h,zi as i,uv as j,Dp as k,oO as l,$O as m,bt as n,lO as o,$p as p,Zp as q,mi as r,Lr as s,g as t,Sa as u,Pt as v,vse as w};
