import{S as Ze,i as Te,s as be,e as Xe,f as ke,T as gO,g as ye,y as ZO,o as _e,J as xe,K as we,L as Re}from"./index.159355d2.js";import{P as qe,N as ve,u as Ve,D as We,v as oO,T as j,I as FO,w as QO,x as l,y as Ye,L as cO,z as dO,A as z,B as uO,F as HO,G as hO,H as Y,J as Ce,K as Ge,E as y,M as W,O as Ue,Q as je,R as P,U as ze,a as q,h as Ae,b as Ie,c as De,d as Be,e as Ee,s as Ne,f as Me,g as Le,i as Je,r as Ke,j as Fe,k as He,l as Ot,m as et,n as tt,o as at,p as it,q as rt,t as TO,C}from"./index.22096e13.js";class B{constructor(O,t,a,i,r,n,s,Q,c,d=0,o){this.p=O,this.stack=t,this.state=a,this.reducePos=i,this.pos=r,this.score=n,this.buffer=s,this.bufferBase=Q,this.curContext=c,this.lookAhead=d,this.parent=o}toString(){return`[${this.stack.filter((O,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(O,t,a=0){let i=O.parser.context;return new B(O,[],t,a,a,0,[],0,i?new bO(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(O,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=O}reduce(O){let t=O>>19,a=O&65535,{parser:i}=this.p,r=i.dynamicPrecedence(a);if(r&&(this.score+=r),t==0){this.pushState(i.getGoto(this.state,a,!0),this.reducePos),an;)this.stack.pop();this.reduceContext(a,s)}storeNode(O,t,a,i=4,r=!1){if(O==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&n.buffer[s-4]==0&&n.buffer[s-1]>-1){if(t==a)return;if(n.buffer[s-2]>=t){n.buffer[s-2]=a;return}}}if(!r||this.pos==a)this.buffer.push(O,t,a,i);else{let n=this.buffer.length;if(n>0&&this.buffer[n-4]!=0)for(;n>0&&this.buffer[n-2]>a;)this.buffer[n]=this.buffer[n-4],this.buffer[n+1]=this.buffer[n-3],this.buffer[n+2]=this.buffer[n-2],this.buffer[n+3]=this.buffer[n-1],n-=4,i>4&&(i-=4);this.buffer[n]=O,this.buffer[n+1]=t,this.buffer[n+2]=a,this.buffer[n+3]=i}}shift(O,t,a){let i=this.pos;if(O&131072)this.pushState(O&65535,this.pos);else if((O&262144)==0){let r=O,{parser:n}=this.p;(a>this.pos||t<=n.maxNode)&&(this.pos=a,n.stateFlag(r,1)||(this.reducePos=a)),this.pushState(r,i),this.shiftContext(t,i),t<=n.maxNode&&this.buffer.push(t,i,a,4)}else this.pos=a,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,a,4)}apply(O,t,a){O&65536?this.reduce(O):this.shift(O,t,a)}useNode(O,t){let a=this.p.reused.length-1;(a<0||this.p.reused[a]!=O)&&(this.p.reused.push(O),a++);let i=this.pos;this.reducePos=this.pos=i+O.length,this.pushState(t,i),this.buffer.push(a,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,O,this,this.p.stream.reset(this.pos-O.length)))}split(){let O=this,t=O.buffer.length;for(;t>0&&O.buffer[t-2]>O.reducePos;)t-=4;let a=O.buffer.slice(t),i=O.bufferBase+t;for(;O&&i==O.bufferBase;)O=O.parent;return new B(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,a,i,this.curContext,this.lookAhead,O)}recoverByDelete(O,t){let a=O<=this.p.parser.maxNode;a&&this.storeNode(O,this.pos,t,4),this.storeNode(0,this.pos,t,a?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(O){for(let t=new nt(this);;){let a=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,O);if(a==0)return!1;if((a&65536)==0)return!0;t.reduce(a)}}recoverByInsert(O){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 r=0,n;rQ&1&&s==n)||i.push(t[r],n)}t=i}let a=[];for(let i=0;i>19,i=O&65535,r=this.stack.length-a*3;if(r<0||t.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(O),!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:O}=this.p;return O.data[O.stateSlot(this.state,1)]==65535&&!O.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(O){if(this.state!=O.state||this.stack.length!=O.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=O)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class bO{constructor(O,t){this.tracker=O,this.context=t,this.hash=O.strict?O.hash(t):0}}var XO;(function(e){e[e.Insert=200]="Insert",e[e.Delete=190]="Delete",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth"})(XO||(XO={}));class nt{constructor(O){this.start=O,this.state=O.state,this.stack=O.stack,this.base=this.stack.length}reduce(O){let t=O&65535,a=O>>19;a==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(a-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class E{constructor(O,t,a){this.stack=O,this.pos=t,this.index=a,this.buffer=O.buffer,this.index==0&&this.maybeNext()}static create(O,t=O.bufferBase+O.buffer.length){return new E(O,t,t-O.bufferBase)}maybeNext(){let O=this.stack.parent;O!=null&&(this.index=this.stack.bufferBase-O.bufferBase,this.stack=O,this.buffer=O.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 E(this.stack,this.pos,this.index)}}class A{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const kO=new A;class st{constructor(O,t){this.input=O,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=kO,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(O,t){let a=this.range,i=this.rangeIndex,r=this.pos+O;for(;ra.to:r>=a.to;){if(i==this.ranges.length-1)return null;let n=this.ranges[++i];r+=n.from-a.to,a=n}return r}clipPos(O){if(O>=this.range.from&&OO)return Math.max(O,t.from);return this.end}peek(O){let t=this.chunkOff+O,a,i;if(t>=0&&t=this.chunk2Pos&&as.to&&(this.chunk2=this.chunk2.slice(0,s.to-a)),i=this.chunk2.charCodeAt(0)}}return a>=this.token.lookAhead&&(this.token.lookAhead=a+1),i}acceptToken(O,t=0){let a=t?this.resolveOffset(t,-1):this.pos;if(a==null||a=this.chunk2Pos&&this.posthis.range.to?O.slice(0,this.range.to-this.pos):O,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(O=1){for(this.chunkOff+=O;this.pos+O>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();O-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=O,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(O,t){if(t?(this.token=t,t.start=O,t.lookAhead=O+1,t.value=t.extended=-1):this.token=kO,this.pos!=O){if(this.pos=O,O==this.end)return this.setDone(),this;for(;O=this.range.to;)this.range=this.ranges[++this.rangeIndex];O>=this.chunkPos&&O=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(O-this.chunkPos,t-this.chunkPos);if(O>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(O-this.chunk2Pos,t-this.chunk2Pos);if(O>=this.range.from&&t<=this.range.to)return this.input.read(O,t);let a="";for(let i of this.ranges){if(i.from>=t)break;i.to>O&&(a+=this.input.read(Math.max(i.from,O),Math.min(i.to,t)))}return a}}class I{constructor(O,t){this.data=O,this.id=t}token(O,t){lt(this.data,O,t,this.id)}}I.prototype.contextual=I.prototype.fallback=I.prototype.extend=!1;class Z{constructor(O,t={}){this.token=O,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function lt(e,O,t,a){let i=0,r=1<0){let f=e[h];if(s.allows(f)&&(O.token.value==-1||O.token.value==f||n.overrides(f,O.token.value))){O.acceptToken(f);break}}let c=O.next,d=0,o=e[i+2];if(O.next<0&&o>d&&e[Q+o*3-3]==65535&&e[Q+o*3-3]==65535){i=e[Q+o*3-1];continue O}for(;d>1,f=Q+h+(h<<1),p=e[f],T=e[f+1]||65536;if(c=T)d=h+1;else{i=e[f+2],O.advance();continue O}}break}}function G(e,O=Uint16Array){if(typeof e!="string")return e;let t=null;for(let a=0,i=0;a=92&&n--,n>=34&&n--;let Q=n-32;if(Q>=46&&(Q-=46,s=!0),r+=Q,s)break;r*=46}t?t[i++]=r:t=new O(r)}return t}const g=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let K=null;var yO;(function(e){e[e.Margin=25]="Margin"})(yO||(yO={}));function _O(e,O,t){let a=e.cursor(FO.IncludeAnonymous);for(a.moveTo(O);;)if(!(t<0?a.childBefore(O):a.childAfter(O)))for(;;){if((t<0?a.toO)&&!a.type.isError)return t<0?Math.max(0,Math.min(a.to-1,O-25)):Math.min(e.length,Math.max(a.from+1,O+25));if(t<0?a.prevSibling():a.nextSibling())break;if(!a.parent())return t<0?0:e.length}}class ot{constructor(O,t){this.fragments=O,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 O=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(O){for(this.safeFrom=O.openStart?_O(O.tree,O.from+O.offset,1)-O.offset:O.from,this.safeTo=O.openEnd?_O(O.tree,O.to+O.offset,-1)-O.offset:O.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(O.tree),this.start.push(-O.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(O){if(OO)return this.nextStart=n,null;if(r instanceof j){if(n==O){if(n=Math.max(this.safeFrom,O)&&(this.trees.push(r),this.start.push(n),this.index.push(0))}else this.index[t]++,this.nextStart=n+r.length}}}class Qt{constructor(O,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=O.tokenizers.map(a=>new A)}getActions(O){let t=0,a=null,{parser:i}=O.p,{tokenizers:r}=i,n=i.stateSlot(O.state,3),s=O.curContext?O.curContext.hash:0,Q=0;for(let c=0;co.end+25&&(Q=Math.max(o.lookAhead,Q)),o.value!=0)){let h=t;if(o.extended>-1&&(t=this.addActions(O,o.extended,o.end,t)),t=this.addActions(O,o.value,o.end,t),!d.extend&&(a=o,t>h))break}}for(;this.actions.length>t;)this.actions.pop();return Q&&O.setLookAhead(Q),!a&&O.pos==this.stream.end&&(a=new A,a.value=O.p.parser.eofTerm,a.start=a.end=O.pos,t=this.addActions(O,a.value,a.end,t)),this.mainToken=a,this.actions}getMainToken(O){if(this.mainToken)return this.mainToken;let t=new A,{pos:a,p:i}=O;return t.start=a,t.end=Math.min(a+1,i.stream.end),t.value=a==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(O,t,a){let i=this.stream.clipPos(a.pos);if(t.token(this.stream.reset(i,O),a),O.value>-1){let{parser:r}=a.p;for(let n=0;n=0&&a.p.parser.dialect.allows(s>>1)){(s&1)==0?O.value=s>>1:O.extended=s>>1;break}}}else O.value=0,O.end=this.stream.clipPos(i+1)}putAction(O,t,a,i){for(let r=0;rO.bufferLength*4?new ot(a,O.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let O=this.stacks,t=this.minStackPos,a=this.stacks=[],i,r;for(let n=0;nt)a.push(s);else{if(this.advanceStack(s,a,O))continue;{i||(i=[],r=[]),i.push(s);let Q=this.tokens.getMainToken(s);r.push(Q.value,Q.end)}}break}}if(!a.length){let n=i&&ut(i);if(n)return this.stackToTree(n);if(this.parser.strict)throw g&&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 n=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,r,a);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let n=this.recovering==1?1:this.recovering*3;if(a.length>n)for(a.sort((s,Q)=>Q.score-s.score);a.length>n;)a.pop();a.some(s=>s.reducePos>t)&&this.recovering--}else if(a.length>1){O:for(let n=0;n500&&c.buffer.length>500)if((s.score-c.score||s.buffer.length-c.buffer.length)>0)a.splice(Q--,1);else{a.splice(n--,1);continue O}}}}this.minStackPos=a[0].pos;for(let n=1;n ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return O.forceReduce()?O:null;if(this.fragments){let c=O.curContext&&O.curContext.tracker.strict,d=c?O.curContext.hash:0;for(let o=this.fragments.nodeAt(i);o;){let h=this.parser.nodeSet.types[o.type.id]==o.type?r.getGoto(O.state,o.type.id):-1;if(h>-1&&o.length&&(!c||(o.prop(oO.contextHash)||0)==d))return O.useNode(o,h),g&&console.log(n+this.stackID(O)+` (via reuse of ${r.getName(o.type.id)})`),!0;if(!(o instanceof j)||o.children.length==0||o.positions[0]>0)break;let f=o.children[0];if(f instanceof j&&o.positions[0]==0)o=f;else break}}let s=r.stateSlot(O.state,4);if(s>0)return O.reduce(s),g&&console.log(n+this.stackID(O)+` (via always-reduce ${r.getName(s&65535)})`),!0;if(O.stack.length>=15e3)for(;O.stack.length>9e3&&O.forceReduce(););let Q=this.tokens.getActions(O);for(let c=0;ci?t.push(p):a.push(p)}return!1}advanceFully(O,t){let a=O.pos;for(;;){if(!this.advanceStack(O,null,null))return!1;if(O.pos>a)return wO(O,t),!0}}runRecovery(O,t,a){let i=null,r=!1;for(let n=0;n ":"";if(s.deadEnd&&(r||(r=!0,s.restart(),g&&console.log(d+this.stackID(s)+" (restarted)"),this.advanceFully(s,a))))continue;let o=s.split(),h=d;for(let f=0;o.forceReduce()&&f<10&&(g&&console.log(h+this.stackID(o)+" (via force-reduce)"),!this.advanceFully(o,a));f++)g&&(h=this.stackID(o)+" -> ");for(let f of s.recoverByInsert(Q))g&&console.log(d+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,a);this.stream.end>s.pos?(c==s.pos&&(c++,Q=0),s.recoverByDelete(Q,c),g&&console.log(d+this.stackID(s)+` (via recover-delete ${this.parser.getName(Q)})`),wO(s,a)):(!i||i.scoree;class Oe{constructor(O){this.start=O.start,this.shift=O.shift||F,this.reduce=O.reduce||F,this.reuse=O.reuse||F,this.hash=O.hash||(()=>0),this.strict=O.strict!==!1}}class _ extends qe{constructor(O){if(super(),this.wrappers=[],O.version!=14)throw new RangeError(`Parser version (${O.version}) doesn't match runtime version (${14})`);let t=O.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let s=0;sO.topRules[s][1]),i=[];for(let s=0;s=0)r(d,Q,s[c++]);else{let o=s[c+-d];for(let h=-d;h>0;h--)r(s[c++],Q,o);c++}}}this.nodeSet=new ve(t.map((s,Q)=>Ve.define({name:Q>=this.minRepeatTerm?void 0:s,id:Q,props:i[Q],top:a.indexOf(Q)>-1,error:Q==0,skipped:O.skippedNodes&&O.skippedNodes.indexOf(Q)>-1}))),O.propSources&&(this.nodeSet=this.nodeSet.extend(...O.propSources)),this.strict=!1,this.bufferLength=We;let n=G(O.tokenData);this.context=O.context,this.specializerSpecs=O.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new I(n,s):s),this.topRules=O.topRules,this.dialects=O.dialects||{},this.dynamicPrecedences=O.dynamicPrecedences||null,this.tokenPrecTable=O.tokenPrec,this.termNames=O.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(O,t,a){let i=new ct(this,O,t,a);for(let r of this.wrappers)i=r(i,O,t,a);return i}getGoto(O,t,a=!1){let i=this.goto;if(t>=i[0])return-1;for(let r=i[t+1];;){let n=i[r++],s=n&1,Q=i[r++];if(s&&a)return Q;for(let c=r+(n>>1);r0}validAction(O,t){if(t==this.stateSlot(O,4))return!0;for(let a=this.stateSlot(O,1);;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=b(this.data,a+2);else return!1;if(t==b(this.data,a+1))return!0}}nextStates(O){let t=[];for(let a=this.stateSlot(O,1);;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=b(this.data,a+2);else break;if((this.data[a+2]&1)==0){let i=this.data[a+1];t.some((r,n)=>n&1&&r==i)||t.push(this.data[a],i)}}return t}overrides(O,t){let a=RO(this.data,this.tokenPrecTable,t);return a<0||RO(this.data,this.tokenPrecTable,O){let i=O.tokenizers.find(r=>r.from==a);return i?i.to:a})),O.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((a,i)=>{let r=O.specializers.find(s=>s.from==a.external);if(!r)return a;let n=Object.assign(Object.assign({},a),{external:r.to});return t.specializers[i]=qO(n),n})),O.contextTracker&&(t.context=O.contextTracker),O.dialect&&(t.dialect=this.parseDialect(O.dialect)),O.strict!=null&&(t.strict=O.strict),O.wrap&&(t.wrappers=t.wrappers.concat(O.wrap)),O.bufferLength!=null&&(t.bufferLength=O.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(O){return this.termNames?this.termNames[O]:String(O<=this.maxNode&&this.nodeSet.types[O].name||O)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(O){let t=this.dynamicPrecedences;return t==null?0:t[O]||0}parseDialect(O){let t=Object.keys(this.dialects),a=t.map(()=>!1);if(O)for(let r of O.split(" ")){let n=t.indexOf(r);n>=0&&(a[n]=!0)}let i=null;for(let r=0;ra)&&t.p.parser.stateFlag(t.state,2)&&(!O||O.scoree.external(t,a)<<1|O}return e.get}const ht=54,ft=1,pt=55,$t=2,St=56,mt=3,N=4,ee=5,te=6,ae=7,ie=8,Pt=9,gt=10,Zt=11,H=57,Tt=12,vO=58,bt=18,Xt=27,kt=30,yt=33,_t=35,xt=0,wt={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},Rt={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},VO={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 qt(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function re(e){return e==9||e==10||e==13||e==32}let WO=null,YO=null,CO=0;function nO(e,O){let t=e.pos+O;if(CO==t&&YO==e)return WO;let a=e.peek(O);for(;re(a);)a=e.peek(++O);let i="";for(;qt(a);)i+=String.fromCharCode(a),a=e.peek(++O);return YO=e,CO=t,WO=i?i.toLowerCase():a==vt||a==Vt?void 0:null}const ne=60,se=62,le=47,vt=63,Vt=33,Wt=45;function GO(e,O){this.name=e,this.parent=O,this.hash=O?O.hash:0;for(let t=0;t-1?new GO(nO(a,1)||"",e):e},reduce(e,O){return O==bt&&e?e.parent:e},reuse(e,O,t,a){let i=O.type.id;return i==N||i==_t?new GO(nO(a,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),Gt=new Z((e,O)=>{if(e.next!=ne){e.next<0&&O.context&&e.acceptToken(H);return}e.advance();let t=e.next==le;t&&e.advance();let a=nO(e,0);if(a===void 0)return;if(!a)return e.acceptToken(t?Tt:N);let i=O.context?O.context.name:null;if(t){if(a==i)return e.acceptToken(Pt);if(i&&Rt[i])return e.acceptToken(H,-2);if(O.dialectEnabled(xt))return e.acceptToken(gt);for(let r=O.context;r;r=r.parent)if(r.name==a)return;e.acceptToken(Zt)}else{if(a=="script")return e.acceptToken(ee);if(a=="style")return e.acceptToken(te);if(a=="textarea")return e.acceptToken(ae);if(wt.hasOwnProperty(a))return e.acceptToken(ie);i&&VO[i]&&VO[i][a]?e.acceptToken(H,-1):e.acceptToken(N)}},{contextual:!0}),Ut=new Z(e=>{for(let O=0,t=0;;t++){if(e.next<0){t&&e.acceptToken(vO);break}if(e.next==Wt)O++;else if(e.next==se&&O>=2){t>3&&e.acceptToken(vO,-2);break}else O=0;e.advance()}});function fO(e,O,t){let a=2+e.length;return new Z(i=>{for(let r=0,n=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(O);break}if(r==0&&i.next==ne||r==1&&i.next==le||r>=2&&rn?i.acceptToken(O,-n):i.acceptToken(t,-(n-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(O,1);break}else r=n=0;i.advance()}})}const jt=fO("script",ht,ft),zt=fO("style",pt,$t),At=fO("textarea",St,mt),It=QO({"Text RawText":l.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":l.angleBracket,TagName:l.tagName,"MismatchedCloseTag/TagName":[l.tagName,l.invalid],AttributeName:l.attributeName,"AttributeValue UnquotedAttributeValue":l.attributeValue,Is:l.definitionOperator,"EntityReference CharacterReference":l.character,Comment:l.blockComment,ProcessingInst:l.processingInstruction,DoctypeDecl:l.documentMeta}),Dt=_.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DTO$tQ!bO'#DVO$yQ!bO'#DWOOOW'#Dk'#DkOOOW'#DY'#DYQVOxOOO%OQ#tO,59ZO%WQ#tO,59eO%`Q#tO,59hO%hQ#tO,59kO%sQ#tO,59mOOOX'#D^'#D^O%{OXO'#CwO&WOXO,59YOOOY'#D_'#D_O&`OYO'#CzO&kOYO,59YOOO['#D`'#D`O&sO[O'#C}O'OO[O,59YOOOW'#Da'#DaO'WOxO,59YO'_Q!bO'#DQOOOW,59Y,59YOOO`'#Db'#DbO'dO!rO,59oOOOW,59o,59oO'lQ!bO,59qO'qQ!bO,59rOOOW-E7W-E7WO'vQ#tO'#CqOOQO'#DZ'#DZO(UQ#tO1G.uOOOX1G.u1G.uO(^Q#tO1G/POOOY1G/P1G/PO(fQ#tO1G/SOOO[1G/S1G/SO(nQ#tO1G/VOOOW1G/V1G/VOOOW1G/X1G/XO(yQ#tO1G/XOOOX-E7[-E7[O)RQ!bO'#CxOOOW1G.t1G.tOOOY-E7]-E7]O)WQ!bO'#C{OOO[-E7^-E7^O)]Q!bO'#DOOOOW-E7_-E7_O)bQ!bO,59lOOO`-E7`-E7`OOOW1G/Z1G/ZOOOW1G/]1G/]OOOW1G/^1G/^O)gQ&jO,59]OOQO-E7X-E7XOOOX7+$a7+$aOOOY7+$k7+$kOOO[7+$n7+$nOOOW7+$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`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:"\u26A0 StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag SelfClosingEndTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Ct,nodeProps:[["closedBy",-10,1,2,3,5,6,7,8,9,10,11,"EndTag",4,"EndTag SelfClosingEndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,39,40,41,42,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag",38,"StartTag"]],propSources:[It],skippedNodes:[0],repeatNodeCount:9,tokenData:"#(r!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q!!O!Q![-_![!]!$c!]!^-_!^!_!(k!_!`#'S!`!a#'z!a!c-_!c!}!$c!}#R-_#R#S!$c#S#T3V#T#o!$c#o#s-_#s$f$q$f%W-_%W%o!$c%o%p-_%p&a!$c&a&b-_&b1p!$c1p4U-_4U4d!$c4d4e-_4e$IS!$c$IS$I`-_$I`$Ib!$c$Ib$Kh-_$Kh%#t!$c%#t&/x-_&/x&Et!$c&Et&FV-_&FV;'S!$c;'S;:j!(e;:j;=`4s<%l?&r-_?&r?Ah!$c?Ah?BY$q?BY?Mn!$c?MnO$q!Z$|c^PiW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx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,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Jt=58,Kt=40,Qe=95,Ft=91,D=45,Ht=46,Oa=35,ea=37;function M(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function ta(e){return e>=48&&e<=57}const aa=new Z((e,O)=>{for(let t=!1,a=0,i=0;;i++){let{next:r}=e;if(M(r)||r==D||r==Qe||t&&ta(r))!t&&(r!=D||i>0)&&(t=!0),a===i&&r==D&&a++,e.advance();else{t&&e.acceptToken(r==Kt?Mt:a==2&&O.canShift(jO)?jO:Lt);break}}}),ia=new Z(e=>{if(oe.includes(e.peek(-1))){let{next:O}=e;(M(O)||O==Qe||O==Oa||O==Ht||O==Ft||O==Jt||O==D)&&e.acceptToken(Nt)}}),ra=new Z(e=>{if(!oe.includes(e.peek(-1))){let{next:O}=e;if(O==ea&&(e.advance(),e.acceptToken(UO)),M(O)){do e.advance();while(M(e.next));e.acceptToken(UO)}}}),na=QO({"AtKeyword import charset namespace keyframes media supports":l.definitionKeyword,"from to selector":l.keyword,NamespaceName:l.namespace,KeyframeName:l.labelName,TagName:l.tagName,ClassName:l.className,PseudoClassName:l.constant(l.className),IdName:l.labelName,"FeatureName PropertyName":l.propertyName,AttributeName:l.attributeName,NumberLiteral:l.number,KeywordQuery:l.keyword,UnaryQueryOp:l.operatorKeyword,"CallTag ValueName":l.atom,VariableName:l.variableName,Callee:l.operatorKeyword,Unit:l.unit,"UniversalSelector NestingSelector":l.definitionOperator,MatchOp:l.compareOperator,"ChildOp SiblingOp, LogicOp":l.logicOperator,BinOp:l.arithmeticOperator,Important:l.modifier,Comment:l.blockComment,ParenthesizedContent:l.special(l.name),ColorLiteral:l.color,StringLiteral:l.string,":":l.punctuation,"PseudoOp #":l.derefOperator,"; ,":l.separator,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace}),sa={__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},la={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},oa={__proto__:null,not:128,only:128,from:158,to:160},Qa=_.deserialize({version:14,states:"7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[O'#DyO$xQ[O'#EPO%WQ[O'#EROOQS'#Eb'#EbOOQS'#ES'#ESQYQ[OOOOQP'#Cg'#CgOOQP,59Q,59QO!ZQ[O,59QO%_Q[O'#EVO%yQWO,58{O&RQ[O,59SO#aQ[O,59kO#fQ[O,59oO%_Q[O,59sO%_Q[O,59uO%_Q[O,59vO'bQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO'iQWO,59SO'nQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO'sQ`O,59oOOQS'#Cp'#CpO#kQdO'#CqO'{QvO'#CsO)VQtO,5:POOQO'#Cx'#CxO'nQWO'#CwO)kQWO'#CyOOQS'#Ef'#EfOOQO'#Dh'#DhO)pQ[O'#DoO*OQWO'#EiO$xQ[O'#DmO*^QWO'#DpOOQO'#Ej'#EjO%|QWO,5:^O*cQpO,5:`OOQS'#Dx'#DxO*kQWO,5:bO*pQ[O,5:bOOQO'#D{'#D{O*xQWO,5:eO*}QWO,5:kO+VQWO,5:mOOQS-E8Q-E8QOOQP1G.l1G.lO+yQXO,5:qOOQO-E8T-E8TOOQS1G.g1G.gOOQP1G.n1G.nO'iQWO1G.nO'nQWO1G.nOOQP1G/V1G/VO,WQ`O1G/ZO,qQXO1G/_O-XQXO1G/aO-oQXO1G/bO.VQXO'#CdO.zQWO'#DaOOQS,59z,59zO/PQWO,59zO/XQ[O,59zO/`Q[O'#DOO/gQd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~%Q",tokenizers:[ia,ra,aa,0,1,2,3],topRules:{StyleSheet:[0,4]},specialized:[{term:94,get:e=>sa[e]||-1},{term:56,get:e=>la[e]||-1},{term:95,get:e=>oa[e]||-1}],tokenPrec:1078});let eO=null;function tO(){if(!eO&&typeof document=="object"&&document.body){let e=[];for(let O in document.body.style)/[A-Z]|^-|^(item|length)$/.test(O)||e.push(O);eO=e.sort().map(O=>({type:"property",label:O}))}return eO||[]}const zO=["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(e=>({type:"class",label:e})),AO=["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(e=>({type:"keyword",label:e})).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(e=>({type:"constant",label:e}))),ca=["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(e=>({type:"type",label:e})),X=/^[\w-]*/,da=e=>{let{state:O,pos:t}=e,a=Y(O).resolveInner(t,-1);if(a.name=="PropertyName")return{from:a.from,options:tO(),validFor:X};if(a.name=="ValueName")return{from:a.from,options:AO,validFor:X};if(a.name=="PseudoClassName")return{from:a.from,options:zO,validFor:X};if(a.name=="TagName"){for(let{parent:n}=a;n;n=n.parent)if(n.name=="Block")return{from:a.from,options:tO(),validFor:X};return{from:a.from,options:ca,validFor:X}}if(!e.explicit)return null;let i=a.resolve(t),r=i.childBefore(t);return r&&r.name==":"&&i.name=="PseudoClassSelector"?{from:t,options:zO,validFor:X}:r&&r.name==":"&&i.name=="Declaration"||i.name=="ArgList"?{from:t,options:AO,validFor:X}:i.name=="Block"?{from:t,options:tO(),validFor:X}:null},sO=cO.define({name:"css",parser:Qa.configure({props:[dO.add({Declaration:z()}),uO.add({Block:HO})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function ua(){return new hO(sO,sO.data.of({autocomplete:da}))}const ha=1,IO=287,DO=2,fa=3,U=288,pa=4,$a=289,BO=290,Sa=292,ma=293,Pa=5,ga=6,Za=1,Ta=[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],ce=125,ba=123,Xa=59,EO=47,ka=42,ya=43,_a=45,xa=36,wa=96,Ra=92,qa=new Oe({start:!1,shift(e,O){return O==Pa||O==ga||O==Sa?e:O==ma},strict:!1}),va=new Z((e,O)=>{let{next:t}=e;(t==ce||t==-1||O.context)&&O.canShift(BO)&&e.acceptToken(BO)},{contextual:!0,fallback:!0}),Va=new Z((e,O)=>{let{next:t}=e,a;Ta.indexOf(t)>-1||t==EO&&((a=e.peek(1))==EO||a==ka)||t!=ce&&t!=Xa&&t!=-1&&!O.context&&O.canShift(IO)&&e.acceptToken(IO)},{contextual:!0}),Wa=new Z((e,O)=>{let{next:t}=e;if((t==ya||t==_a)&&(e.advance(),t==e.next)){e.advance();let a=!O.context&&O.canShift(DO);e.acceptToken(a?DO:fa)}},{contextual:!0}),Ya=new Z(e=>{for(let O=!1,t=0;;t++){let{next:a}=e;if(a<0){t&&e.acceptToken(U);break}else if(a==wa){t?e.acceptToken(U):e.acceptToken($a,1);break}else if(a==ba&&O){t==1?e.acceptToken(pa,1):e.acceptToken(U,-1);break}else if(a==10&&t){e.advance(),e.acceptToken(U);break}else a==Ra&&e.advance();O=a==xa,e.advance()}}),Ca=new Z((e,O)=>{if(!(e.next!=101||!O.dialectEnabled(Za))){e.advance();for(let t=0;t<6;t++){if(e.next!="xtends".charCodeAt(t))return;e.advance()}e.next>=57&&e.next<=65||e.next>=48&&e.next<=90||e.next==95||e.next>=97&&e.next<=122||e.next>160||e.acceptToken(ha)}}),Ga=QO({"get set async static":l.modifier,"for while do if else switch try catch finally return throw break continue default case":l.controlKeyword,"in of await yield void typeof delete instanceof":l.operatorKeyword,"let var const function class extends":l.definitionKeyword,"import export from":l.moduleKeyword,"with debugger as new":l.keyword,TemplateString:l.special(l.string),super:l.atom,BooleanLiteral:l.bool,this:l.self,null:l.null,Star:l.modifier,VariableName:l.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":l.function(l.variableName),VariableDefinition:l.definition(l.variableName),Label:l.labelName,PropertyName:l.propertyName,PrivatePropertyName:l.special(l.propertyName),"CallExpression/MemberExpression/PropertyName":l.function(l.propertyName),"FunctionDeclaration/VariableDefinition":l.function(l.definition(l.variableName)),"ClassDeclaration/VariableDefinition":l.definition(l.className),PropertyDefinition:l.definition(l.propertyName),PrivatePropertyDefinition:l.definition(l.special(l.propertyName)),UpdateOp:l.updateOperator,LineComment:l.lineComment,BlockComment:l.blockComment,Number:l.number,String:l.string,ArithOp:l.arithmeticOperator,LogicOp:l.logicOperator,BitOp:l.bitwiseOperator,CompareOp:l.compareOperator,RegExp:l.regexp,Equals:l.definitionOperator,Arrow:l.function(l.punctuation),": Spread":l.punctuation,"( )":l.paren,"[ ]":l.squareBracket,"{ }":l.brace,"InterpolationStart InterpolationEnd":l.special(l.brace),".":l.derefOperator,", ;":l.separator,TypeName:l.typeName,TypeDefinition:l.definition(l.typeName),"type enum interface implements namespace module declare":l.definitionKeyword,"abstract global Privacy readonly override":l.modifier,"is keyof unique infer":l.operatorKeyword,JSXAttributeValue:l.attributeValue,JSXText:l.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":l.angleBracket,"JSXIdentifier JSXNameSpacedName":l.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":l.attributeName,"JSXBuiltin/JSXIdentifier":l.standard(l.tagName)}),Ua={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:50,true:58,false:58,null:68,void:72,typeof:76,super:92,new:126,await:143,yield:145,delete:146,class:156,extends:158,public:203,private:203,protected:203,readonly:205,instanceof:226,satisfies:229,in:230,const:232,import:264,keyof:319,unique:323,infer:329,is:363,abstract:383,implements:385,type:387,let:390,var:392,interface:399,enum:403,namespace:409,module:411,declare:415,global:419,for:440,of:449,while:452,with:456,do:460,if:464,else:466,switch:470,case:476,try:482,catch:486,finally:490,return:494,throw:498,break:502,continue:506,debugger:510},ja={__proto__:null,async:113,get:115,set:117,public:165,private:165,protected:165,static:167,abstract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&a&Ya&c&Ya&e&Ya&g&Ya&i&Ya'Y&Ya'c&Ya'k&Ya't&Ya(R&Ya!U&Ya&R&Ya`&Ya&W&Ya~O'c+UO~Oo+XO~O!Q&oa!T&oa~P!+lO!S+]O!Q&oX!T&oX~P*OO!T&PO!Q'oa~O!Q'oa~P>sO!T&eO!Q'ya~O!TzX!T!]X!UzX!U!]X!_zX!_!]X!f!]X#OzX'g!]X~O!_+bO#O+aO!T#WX!T'qX!U#WX!U'qX!_'qX!f'qX'g'qX~O!_+dO!f$`O'g$TO!T!XX!U!XX~O]&WOl&WO{+eO'l(qO~OQ9rOR9rO]cOb;uOc!jOicOk9rOlcOmcOrcOt9rOv9rO{RO!OcO!PcO!V!bO!a9tO!fUO!i9rO!j9rO!k9rO!l9rO!m9rO!p!iO#x!lO#|^O'kQO'tYO(R;sO~O'c:iO~P!=iO!T+iO!U'pX~O!U+kO~O!_+bO#O+aO!T#WX!U#WX~O!T+lO!U'{X~O!U+nO~O]&WOl&WO{+eO'd$iO'l(qO~O!Z+oO![+oO~P!@gO{$zO!S+qO!V${O'c$gO!Q&tX!T&tX~O_+uO!Y+xO!Z+tO![+tO!t+|O!u+zO!v+{O!w+yO!z+}O!{+}O'd$iO'l(qO't+rO~O!U+wO~P!AhOP,SO!V&iO!q,RO~O#O,YO!T'wa!e'wa_'wa'^'wa~O!_!wO~P!BuO!T&yO!e'va~O{$zO!S,]O!V${O#X,_O#Y,]O'c$gO!T&vX!e&vX~O_#Ri!T#Ri'^#Ri!Q#Ri!e#Rio#Ri!V#Ri%W#Ri!_#Ri~P!+lOP TypeParamList TypeDefinition ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class extends ClassBody MethodDeclaration Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression PrivatePropertyName 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 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 MethodDeclaration 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",maxTerm:337,context:qa,nodeProps:[["closedBy",4,"InterpolationEnd",43,"]",53,"}",68,")",136,"JSXSelfCloseEndTag JSXEndTag",152,"JSXEndTag"],["group",-26,8,15,17,60,190,194,197,198,200,203,206,217,219,225,227,229,231,234,240,246,248,250,252,254,256,257,"Statement",-30,12,13,25,28,29,34,44,46,47,49,54,62,70,76,77,94,95,104,106,123,126,128,129,130,131,133,134,154,155,157,"Expression",-23,24,26,30,33,35,37,158,160,162,163,165,166,167,169,170,171,173,174,175,184,186,188,189,"Type",-3,81,87,93,"ClassItem"],["openedBy",31,"InterpolationStart",48,"[",52,"{",67,"(",135,"JSXStartTag",147,"JSXStartTag JSXStartCloseTag"]],propSources:[Ga],skippedNodes:[0,5,6],repeatNodeCount:28,tokenData:"#2T~R!bOX%ZXY%uYZ'kZ[%u[]%Z]^'k^p%Zpq%uqr(Rrs)mst7]tu9guvlxyJcyzJyz{Ka{|Lm|}MW}!OLm!O!PMn!P!Q!$v!Q!R!Er!R![!G_![!]!Nc!]!^!N{!^!_# c!_!`#!`!`!a##d!a!b#%s!b!c%Z!c!}9g!}#O#'h#O#P%Z#P#Q#(O#Q#R#(f#R#S9g#S#T#)P#T#o#)g#o#p#,a#p#q#,f#q#r#-S#r#s#-l#s$f%Z$f$g%u$g#BY9g#BY#BZ#.S#BZ$IS9g$IS$I_#.S$I_$I|9g$I|$I}#0q$I}$JO#0q$JO$JT9g$JT$JU#.S$JU$KV9g$KV$KW#.S$KW&FU9g&FU&FV#.S&FV;'S9g;'S;=`Rw!^%Z!_!`YU$[W#m#vO!^%Z!_!`s]$[W]#eOY>lYZ?lZw>lwx,jx!^>l!^!_@|!_#O>l#O#PE_#P#o>l#o#p@|#p;'S>l;'S;=`J]<%lO>l&r?qX$[WOw?lwx+_x!^?l!^!_@^!_#o?l#o#p@^#p;'S?l;'S;=`@v<%lO?l&j@aTOw@^wx,Xx;'S@^;'S;=`@p<%lO@^&j@sP;=`<%l@^&r@yP;=`<%l?l)PARX]#eOY@|YZ@^Zw@|wx-tx#O@|#O#PAn#P;'S@|;'S;=`EX<%lO@|)PAqUOw@|wxBTx;'S@|;'S;=`Dg;=`<%lBt<%lO@|)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o#p!)o#p;'S!+T;'S;=`!,p<%lO!+T7Z!>vZ$[WOY!;lYZ!.wZz!;lz{!Ua[e]||-1},{term:304,get:e=>ja[e]||-1},{term:65,get:e=>za[e]||-1}],tokenPrec:12475}),Ia=[P("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),P("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),P("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),P("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),P("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),P(`try { \${} } catch (\${error}) { \${} }`,{label:"try",detail:"/ catch block",type:"keyword"}),P("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),P(`if (\${}) { \${} } else { \${} }`,{label:"if",detail:"/ else block",type:"keyword"}),P(`class \${name} { constructor(\${params}) { \${} } }`,{label:"class",detail:"definition",type:"keyword"}),P('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),P('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],NO=new ze,de=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function v(e){return(O,t)=>{let a=O.node.getChild("VariableDefinition");return a&&t(a,e),!0}}const Da=["FunctionDeclaration"],Ba={FunctionDeclaration:v("function"),ClassDeclaration:v("class"),ClassExpression:()=>!0,EnumDeclaration:v("constant"),TypeAliasDeclaration:v("type"),NamespaceDeclaration:v("namespace"),VariableDefinition(e,O){e.matchContext(Da)||O(e,"variable")},TypeDefinition(e,O){O(e,"type")},__proto__:null};function ue(e,O){let t=NO.get(O);if(t)return t;let a=[],i=!0;function r(n,s){let Q=e.sliceString(n.from,n.to);a.push({label:Q,type:s})}return O.cursor(FO.IncludeAnonymous).iterate(n=>{if(i)i=!1;else if(n.name){let s=Ba[n.name];if(s&&s(n,r)||de.has(n.name))return!1}else if(n.to-n.from>8192){for(let s of ue(e,n.node))a.push(s);return!1}}),NO.set(O,a),a}const MO=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,he=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function Ea(e){let O=Y(e.state).resolveInner(e.pos,-1);if(he.indexOf(O.name)>-1)return null;let t=O.name=="VariableName"||O.to-O.from<20&&MO.test(e.state.sliceDoc(O.from,O.to));if(!t&&!e.explicit)return null;let a=[];for(let i=O;i;i=i.parent)de.has(i.name)&&(a=a.concat(ue(e.state.doc,i)));return{options:a,from:t?O.from:e.pos,validFor:MO}}const k=cO.define({name:"javascript",parser:Aa.configure({props:[dO.add({IfStatement:z({except:/^\s*({|else\b)/}),TryStatement:z({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Ue,SwitchBody:e=>{let O=e.textAfter,t=/^\s*\}/.test(O),a=/^\s*(case|default)\b/.test(O);return e.baseIndent+(t?0:a?1:2)*e.unit},Block:je({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":z({except:/^{/}),JSXElement(e){let O=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(O?0:e.unit)},JSXEscape(e){let O=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(O?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),uO.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":HO,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),fe=k.configure({dialect:"ts"},"typescript"),pe=k.configure({dialect:"jsx"}),$e=k.configure({dialect:"jsx ts"},"typescript"),Na="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(e=>({label:e,type:"keyword"}));function Se(e={}){let O=e.jsx?e.typescript?$e:pe:e.typescript?fe:k;return new hO(O,[k.data.of({autocomplete:Ce(he,Ge(Ia.concat(Na)))}),k.data.of({autocomplete:Ea}),e.jsx?La:[]])}function LO(e,O,t=e.length){if(!O)return"";let a=O.getChild("JSXIdentifier");return a?e.sliceString(a.from,Math.min(a.to,t)):""}const Ma=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),La=y.inputHandler.of((e,O,t,a)=>{if((Ma?e.composing:e.compositionStarted)||e.state.readOnly||O!=t||a!=">"&&a!="/"||!k.isActiveAt(e.state,O,-1))return!1;let{state:i}=e,r=i.changeByRange(n=>{var s,Q,c;let{head:d}=n,o=Y(i).resolveInner(d,-1),h;if(o.name=="JSXStartTag"&&(o=o.parent),a==">"&&o.name=="JSXFragmentTag")return{range:W.cursor(d+1),changes:{from:d,insert:"><>"}};if(a==">"&&o.name=="JSXIdentifier"){if(((Q=(s=o.parent)===null||s===void 0?void 0:s.lastChild)===null||Q===void 0?void 0:Q.name)!="JSXEndTag"&&(h=LO(i.doc,o.parent,d)))return{range:W.cursor(d+1),changes:{from:d,insert:`>`}}}else if(a=="/"&&o.name=="JSXFragmentTag"){let f=o.parent,p=f==null?void 0:f.parent;if(f.from==d-1&&((c=p.lastChild)===null||c===void 0?void 0:c.name)!="JSXEndTag"&&(h=LO(i.doc,p==null?void 0:p.firstChild,d))){let T=`/${h}>`;return{range:W.cursor(d+T.length),changes:{from:d,insert:T}}}}return{range:n}});return r.changes.empty?!1:(e.dispatch(r,{userEvent:"input.type",scrollIntoView:!0}),!0)}),V=["_blank","_self","_top","_parent"],aO=["ascii","utf-8","utf-16","latin1","latin1"],iO=["get","post","put","delete"],rO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],S=["true","false"],u={},Ja={a:{attrs:{href:null,ping:null,type:null,media:null,target:V,hreflang:null}},abbr:u,address:u,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:u,aside:u,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:u,base:{attrs:{href:null,target:V}},bdi:u,bdo:u,blockquote:{attrs:{cite:null}},body:u,br:u,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:rO,formmethod:iO,formnovalidate:["novalidate"],formtarget:V,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:u,center:u,cite:u,code:u,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:u,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:u,div:u,dl:u,dt:u,em:u,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:u,figure:u,footer:u,form:{attrs:{action:null,name:null,"accept-charset":aO,autocomplete:["on","off"],enctype:rO,method:iO,novalidate:["novalidate"],target:V}},h1:u,h2:u,h3:u,h4:u,h5:u,h6:u,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:u,hgroup:u,hr:u,html:{attrs:{manifest:null}},i:u,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:rO,formmethod:iO,formnovalidate:["novalidate"],formtarget:V,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:u,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:u,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:u,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:aO,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:u,noscript:u,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:u,param:{attrs:{name:null,value:null}},pre:u,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:u,rt:u,ruby:u,samp:u,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:aO}},section:u,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:u,source:{attrs:{src:null,type:null,media:null}},span:u,strong:u,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:u,summary:u,sup:u,table:u,tbody:u,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:u,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:u,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:u,time:{attrs:{datetime:null}},title:u,tr:u,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:u,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:u},Ka={accesskey:null,class:null,contenteditable:S,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:S,autocorrect:S,autocapitalize:S,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,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":S,"aria-autocomplete":["inline","list","both","none"],"aria-busy":S,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":S,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":S,"aria-hidden":S,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":S,"aria-multiselectable":S,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":S,"aria-relevant":null,"aria-required":S,"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};class L{constructor(O,t){this.tags=Object.assign(Object.assign({},Ja),O),this.globalAttrs=Object.assign(Object.assign({},Ka),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}L.default=new L;function x(e,O,t=e.length){if(!O)return"";let a=O.firstChild,i=a&&a.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,t)):""}function J(e,O=!1){for(let t=e.parent;t;t=t.parent)if(t.name=="Element")if(O)O=!1;else return t;return null}function me(e,O,t){let a=t.tags[x(e,J(O,!0))];return(a==null?void 0:a.children)||t.allTags}function pO(e,O){let t=[];for(let a=O;a=J(a);){let i=x(e,a);if(i&&a.lastChild.name=="CloseTag")break;i&&t.indexOf(i)<0&&(O.name=="EndTag"||O.from>=a.firstChild.to)&&t.push(i)}return t}const Pe=/^[:\-\.\w\u00b7-\uffff]*$/;function JO(e,O,t,a,i){let r=/\s*>/.test(e.sliceDoc(i,i+5))?"":">";return{from:a,to:i,options:me(e.doc,t,O).map(n=>({label:n,type:"type"})).concat(pO(e.doc,t).map((n,s)=>({label:"/"+n,apply:"/"+n+r,type:"type",boost:99-s}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function KO(e,O,t,a){let i=/\s*>/.test(e.sliceDoc(a,a+5))?"":">";return{from:t,to:a,options:pO(e.doc,O).map((r,n)=>({label:r,apply:r+i,type:"type",boost:99-n})),validFor:Pe}}function Fa(e,O,t,a){let i=[],r=0;for(let n of me(e.doc,t,O))i.push({label:"<"+n,type:"type"});for(let n of pO(e.doc,t))i.push({label:"",type:"type",boost:99-r++});return{from:a,to:a,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Ha(e,O,t,a,i){let r=J(t),n=r?O.tags[x(e.doc,r)]:null,s=n&&n.attrs?Object.keys(n.attrs).concat(O.globalAttrNames):O.globalAttrNames;return{from:a,to:i,options:s.map(Q=>({label:Q,type:"property"})),validFor:Pe}}function Oi(e,O,t,a,i){var r;let n=(r=t.parent)===null||r===void 0?void 0:r.getChild("AttributeName"),s=[],Q;if(n){let c=e.sliceDoc(n.from,n.to),d=O.globalAttrs[c];if(!d){let o=J(t),h=o?O.tags[x(e.doc,o)]:null;d=(h==null?void 0:h.attrs)&&h.attrs[c]}if(d){let o=e.sliceDoc(a,i).toLowerCase(),h='"',f='"';/^['"]/.test(o)?(Q=o[0]=='"'?/^[^"]*$/:/^[^']*$/,h="",f=e.sliceDoc(i,i+1)==o[0]?"":o[0],o=o.slice(1),a++):Q=/^[^\s<>='"]*$/;for(let p of d)s.push({label:p,apply:h+p+f,type:"constant"})}}return{from:a,to:i,options:s,validFor:Q}}function ei(e,O){let{state:t,pos:a}=O,i=Y(t).resolveInner(a),r=i.resolve(a,-1);for(let n=a,s;i==r&&(s=r.childBefore(n));){let Q=s.lastChild;if(!Q||!Q.type.isError||Q.fromei(a,i)}const lO=cO.define({name:"html",parser:Dt.configure({props:[dO.add({Element(e){let O=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+O[0].length?e.continue():e.lineIndent(e.node.from)+(O[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.type=="text/typescript"||e.lang=="ts",parser:fe.parser},{tag:"script",attrs:e=>e.type=="text/jsx",parser:pe.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:$e.parser},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:k.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:sO.parser}])}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});function ai(e={}){let O=lO;return e.matchClosingTags===!1&&(O=O.configure({dialect:"noMatch"})),e.selfClosingTags===!0&&(O=O.configure({dialect:"selfClosing"})),new hO(O,[lO.data.of({autocomplete:ti(e)}),e.autoCloseTags!==!1?ii:[],Se().support,ua().support])}const ii=y.inputHandler.of((e,O,t,a)=>{if(e.composing||e.state.readOnly||O!=t||a!=">"&&a!="/"||!lO.isActiveAt(e.state,O,-1))return!1;let{state:i}=e,r=i.changeByRange(n=>{var s,Q,c;let{head:d}=n,o=Y(i).resolveInner(d,-1),h;if((o.name=="TagName"||o.name=="StartTag")&&(o=o.parent),a==">"&&o.name=="OpenTag"){if(((Q=(s=o.parent)===null||s===void 0?void 0:s.lastChild)===null||Q===void 0?void 0:Q.name)!="CloseTag"&&(h=x(i.doc,o.parent,d))){let f=e.state.doc.sliceString(d,d+1)===">",p=`${f?"":">"}`;return{range:W.cursor(d+1),changes:{from:d+(f?1:0),insert:p}}}}else if(a=="/"&&o.name=="OpenTag"){let f=o.parent,p=f==null?void 0:f.parent;if(f.from==d-1&&((c=p.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(h=x(i.doc,p,d))){let T=e.state.doc.sliceString(d,d+1)===">",w=`/${h}${T?"":">"}`,R=d+w.length+(T?1:0);return{range:W.cursor(R),changes:{from:d,insert:w}}}}return{range:n}});return r.changes.empty?!1:(e.dispatch(r,{userEvent:"input.type",scrollIntoView:!0}),!0)});function ri(e){let O;return{c(){O=Xe("div"),ke(O,"class","code-editor"),gO(O,"max-height",e[0]?e[0]+"px":"auto")},m(t,a){ye(t,O,a),e[10](O)},p(t,[a]){a&1&&gO(O,"max-height",t[0]?t[0]+"px":"auto")},i:ZO,o:ZO,d(t){t&&_e(O),e[10](null)}}}function ni(e,O,t){const a=xe();let{id:i=""}=O,{value:r=""}=O,{maxHeight:n=null}=O,{disabled:s=!1}=O,{placeholder:Q=""}=O,{language:c="javascript"}=O,{singleLine:d=!1}=O,o,h,f=new C,p=new C,T=new C,w=new C;function R(){o==null||o.focus()}function $O(){h==null||h.dispatchEvent(new CustomEvent("change",{detail:{value:r},bubbles:!0}))}function SO(){if(!i)return;const $=document.querySelectorAll('[for="'+i+'"]');for(let m of $)m.removeEventListener("click",R)}function mO(){if(!i)return;SO();const $=document.querySelectorAll('[for="'+i+'"]');for(let m of $)m.addEventListener("click",R)}function PO(){return c==="html"?ai():Se()}we(()=>{const $={key:"Enter",run:m=>{d&&a("submit",r)}};return mO(),t(9,o=new y({parent:h,state:q.create({doc:r,extensions:[Ae(),Ie(),De(),Be(),Ee(),q.allowMultipleSelections.of(!0),Ne(Me,{fallback:!0}),Le(),Je(),Ke(),Fe(),He.of([$,...Ot,...et,tt.find(m=>m.key==="Mod-d"),...at,...it]),y.lineWrapping,rt({icons:!1}),f.of(PO()),w.of(TO(Q)),p.of(y.editable.of(!0)),T.of(q.readOnly.of(!1)),q.transactionFilter.of(m=>d&&m.newDoc.lines>1?[]:m),y.updateListener.of(m=>{!m.docChanged||s||(t(2,r=m.state.doc.toString()),$O())})]})})),()=>{SO(),o==null||o.destroy()}});function ge($){Re[$?"unshift":"push"](()=>{h=$,t(1,h)})}return e.$$set=$=>{"id"in $&&t(3,i=$.id),"value"in $&&t(2,r=$.value),"maxHeight"in $&&t(0,n=$.maxHeight),"disabled"in $&&t(4,s=$.disabled),"placeholder"in $&&t(5,Q=$.placeholder),"language"in $&&t(6,c=$.language),"singleLine"in $&&t(7,d=$.singleLine)},e.$$.update=()=>{e.$$.dirty&8&&i&&mO(),e.$$.dirty&576&&o&&c&&o.dispatch({effects:[f.reconfigure(PO())]}),e.$$.dirty&528&&o&&typeof s<"u"&&(o.dispatch({effects:[p.reconfigure(y.editable.of(!s)),T.reconfigure(q.readOnly.of(s))]}),$O()),e.$$.dirty&516&&o&&r!=o.state.doc.toString()&&o.dispatch({changes:{from:0,to:o.state.doc.length,insert:r}}),e.$$.dirty&544&&o&&typeof Q<"u"&&o.dispatch({effects:[w.reconfigure(TO(Q))]})},[n,h,r,i,s,Q,c,d,R,o,ge]}class oi extends Ze{constructor(O){super(),Te(this,O,ni,ri,be,{id:3,value:2,maxHeight:0,disabled:4,placeholder:5,language:6,singleLine:7,focus:8})}get focus(){return this.$$.ctx[8]}}export{oi as default};