vendor: 6,527 bytes, line 1
1const et=1024;let De=0;class pe{constructor(e,t){this.from=e,this.to=t}}class C{constructor(e={}){this.id=De++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=K.match(e)),t=>{let r=e(t);return r===void 0?null:[this,r]}}}C.closedBy=new C({deserialize:l=>l.split(" ")});C.openedBy=new C({deserialize:l=>l.split(" ")});C.group=new C({deserialize:l=>l.split(" ")});C.isolate=new C({deserialize:l=>{if(l&&l!="rtl"&&l!="ltr"&&l!="auto")throw new RangeError("Invalid value for isolate: "+l);return l||"auto"}});C.contextHash=new C({perNode:!0});C.lookAhead=new C({perNode:!0});C.mounted=new C({perNode:!0});class ie{constructor(e,t,r,i=!1){this.tree=e,this.overlay=t,this.parser=r,this.bracketed=i}static get(e){return e&&e.props&&e.props[C.mounted.id]}}const He=Object.create(null);class K{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):He,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new K(e.name||"",t,e.id,r);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(i)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[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(C.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(C.group),n=-1;n<(i?i.length:0);n++){let s=t[n<0?r.name:i[n]];if(s)return s}}}}K.none=new K("",Object.create(null),0,8);class Ie{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 n of e){let s=n(r);if(s){i||(i=Object.assign({},r.props));let o=s[1],a=s[0];a.combine&&a.id in i&&(o=a.combine(i[a.id],o)),i[a.id]=o}}t.push(i?new K(r.name,i,r.id,r.flags):r)}return new Ie(t)}}const he=new WeakMap,Ce=new WeakMap;var z;(function(l){l[l.ExcludeBuffers=1]="ExcludeBuffers",l[l.IncludeAnonymous=2]="IncludeAnonymous",l[l.IgnoreMounts=4]="IgnoreMounts",l[l.IgnoreOverlays=8]="IgnoreOverlays",l[l.EnterBracketed=16]="EnterBracketed"})(z||(z={}));class T{constructor(e,t,r,i,n){if(this.type=e,this.children=t,this.positions=r,this.length=i,this.props=null,n&&n.length){this.props=Object.create(null);for(let[s,o]of n)this.props[typeof s=="number"?s:s.id]=o}}toString(){let e=ie.get(this);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 xe(this.topNode,e)}cursorAt(e,t=0,r=0){let i=he.get(this)||this.topNode,n=new xe(i);return n.moveTo(e,t),he.set(this,n._tree),n}get topNode(){return new E(this,0,0,null)}resolve(e,t=0){let r=ne(he.get(this)||this.topNode,e,t,!1);return he.set(this,r),r}resolveInner(e,t=0){let r=ne(Ce.get(this)||this.topNode,e,t,!0);return Ce.set(this,r),r}resolveStack(e,t=0){return Ue(this,e,t)}iterate(e){let{enter:t,leave:r,from:i=0,to:n=this.length}=e,s=e.mode||0,o=(s&z.IncludeAnonymous)>0;for(let a=this.cursor(s|z.IncludeAnonymous);;){let c=!1;if(a.from<=n&&a.to>=i&&(!o&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;c=!0}for(;c&&r&&(o||!a.type.isAnonymous)&&r(a),!a.nextSibling();){if(!a.parent())return;c=!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:ve(K.none,this.children,this.positions,0,this.children.length,0,this.length,(t,r,i)=>new T(this.type,t,r,i,this.propValues),e.makeTree||((t,r,i)=>new T(K.none,t,r,i)))}static build(e){return qe(e)}}T.empty=new T(K.none,[],[],0);class ke{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 ke(this.buffer,this.index)}}class Q{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return K.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],n=i.name;if(/\W/.test(n)&&!i.isError&&(n=JSON.stringify(n)),e+=4,r==e)return n;let s=[];for(;e<r;)s.push(this.childString(e)),e=this.buffer[e+3];return n+"("+s.join(",")+")"}findChild(e,t,r,i,n){let{buffer:s}=this,o=-1;for(let a=e;a!=t&&!(Ee(n,i,s[a+1],s[a+2])&&(o=a,r>0));a=s[a+3]);return o}slice(e,t,r){let i=this.buffer,n=new Uint16Array(t-e),s=0;for(let o=e,a=0;o<t;){n[a++]=i[o++],n[a++]=i[o++]-r;let c=n[a++]=i[o++]-r;n[a++]=i[o++]-e,s=Math.max(s,c)}return new Q(n,s,this.set)}}function Ee(l,e,t,r){switch(l){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 ne(l,e,t,r){for(var i;l.from==l.to||(t<1?l.from>=e:l.from>e)||(t>-1?l.to<=e:l.to<e);){let s=!r&&l instanceof E&&l.index<0?null:l.parent;if(!s)return l;l=s}let n=r?0:z.IgnoreOverlays;if(r)for(let s=l,o=s.parent;o;s=o,o=s.parent)s instanceof E&&s.index<0&&((i=o.enter(e,t,n))===null||i===void 0?void 0:i.from)!=s.from&&(l=o);for(;;){let s=l.enter(e,t,n);if(!s)return l;l=s}}class Oe{cursor(e=0){return new xe(this,e)}getChild(e,t=null,r=null){let i=Ae(this,e,t,r);return i.length?i[0]:null}getChildren(e,t=null,r=null){return Ae(this,e,t,r)}resolve(e,t=0){return ne(this,e,t,!1)}resolveInner(e,t=0){return ne(this,e,t,!0)}matchContext(e){return me(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;for(;t;){let i=t.lastChild;if(!i||i.to!=t.to)break;i.type.isError&&i.from==i.to?(r=t,t=i.prevSibling):t=i}return r}get node(){return this}get next(){return this.parent}}
vendor: 2,466 bytes, line 1
1class E extends Oe{constructor(e,t,r,i){super(),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,n=0){for(let s=this;;){for(let{children:o,positions:a}=s._tree,c=t>0?o.length:-1;e!=c;e+=t){let g=o[e],p=a[e]+s.from,m;if(!(!(n&z.EnterBracketed&&g instanceof T&&(m=ie.get(g))&&!m.overlay&&m.bracketed&&r>=p&&r<=p+g.length)&&!Ee(i,r,p,p+g.length))){if(g instanceof Q){if(n&z.ExcludeBuffers)continue;let b=g.findChild(0,g.buffer.length,t,r-p,i);if(b>-1)return new F(new Le(s,g,e,p),null,b)}else if(n&z.IncludeAnonymous||!g.type.isAnonymous||we(g)){let b;if(!(n&z.IgnoreMounts)&&(b=ie.get(g))&&!b.overlay)return new E(b.tree,p,e,s);let w=new E(g,p,e,s);return n&z.IncludeAnonymous||!w.type.isAnonymous?w:w.nextChild(t<0?g.children.length-1:0,t,r,i,n)}}}if(n&z.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+t:e=t<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,r=0){let i;if(!(r&z.IgnoreOverlays)&&(i=ie.get(this._tree))&&i.overlay){let n=e-this.from,s=r&z.EnterBracketed&&i.bracketed;for(let{from:o,to:a}of i.overlay)if((t>0||s?o<=n:o<n)&&(t<0||s?a>=n:a>n))return new E(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}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Ae(l,e,t,r){let i=l.cursor(),n=[];if(!i.firstChild())return n;if(t!=null){for(let s=!1;!s;)if(s=i.type.is(t),!i.nextSibling())return n}for(;;){if(r!=null&&i.type.is(r))return n;if(i.type.is(e)&&n.push(i.node),!i.nextSibling())return r==null?n:[]}}function me(l,e,t=e.length-1){for(let r=l;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}
vendor: 2,775 bytes, line 1
1class Le{constructor(e,t,r,i){this.parent=e,this.buffer=t,this.index=r,this.start=i}}class F extends Oe{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){super(),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,n=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,r);return n<0?null:new F(this.context,this,n)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,r=0){if(r&z.ExcludeBuffers)return null;let{buffer:i}=this.context,n=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return n<0?null:new F(this.context,this,n)}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 F(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 F(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,i=this.index+4,n=r.buffer[this.index+3];if(n>i){let s=r.buffer[this.index+1];e.push(r.slice(i,n,s)),t.push(0)}return new T(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Pe(l){if(!l.length)return null;let e=0,t=l[0];for(let n=1;n<l.length;n++){let s=l[n];(s.from>t.from||s.to<t.to)&&(t=s,e=n)}let r=t instanceof E&&t.index<0?null:t.parent,i=l.slice();return r?i[e]=r:i.splice(e,1),new We(i,t)}class We{constructor(e,t){this.heads=e,this.node=t}get next(){return Pe(this.heads)}}function Ue(l,e,t){let r=l.resolveInner(e,t),i=null;for(let n=r instanceof E?r:r.context.parent;n;n=n.parent)if(n.index<0){let s=n.parent;(i||(i=[r])).push(s.resolve(e,t)),n=s}else{let s=ie.get(n.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let o=new E(s.tree,s.overlay[0].from+n.from,-1,n);(i||(i=[r])).push(ne(o,e,t,!1))}}return i?Pe(i):r}class xe{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~z.EnterBracketed,e instanceof E)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;
vendor: 2,343 bytes, line 1
1for(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 E?(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,n=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,r);return n<0?!1:(this.stack.push(this.index),this.yieldBuf(n))}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&z.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&z.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&z.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 n=0;n<this.index;n++)if(i.buffer.buffer[n+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>
vendor: 6,738 bytes, line 1
1-1)for(let n=t+e,s=e<0?-1:r._tree.children.length;n!=s;n+=e){let o=r._tree.children[n];if(this.mode&z.IncludeAnonymous||o instanceof Q||!o.type.isAnonymous||we(o))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,n=this.stack.length;n>=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;t=s,r=n+1;break e}i=this.stack[--n]}for(let i=r;i<this.stack.length;i++)t=new F(this.buffer,t,this.stack[i]);return this.bufferNode=new F(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(;;){if(i&&t&&t(this),i=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,i=!0}}}matchContext(e){if(!this.buffer)return me(this.node.parent,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let i=e.length-1,n=this.stack.length-1;i>=0;n--){if(n<0)return me(this._tree,e,i);let s=r[t.buffer[this.stack[n]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}}function we(l){return l.children.some(e=>e instanceof Q||!e.type.isAnonymous||we(e))}function qe(l){var e;let{buffer:t,nodeSet:r,maxBufferLength:i=1024,reused:n=[],minRepeatType:s=r.types.length}=l,o=Array.isArray(t)?new ke(t,t.length):t,a=r.types,c=0,g=0;function p(y,S,f,A,k,_){let{id:x,start:u,end:v,size:N}=o,I=g,V=c;if(N<0)if(o.next(),N==-1){let J=n[x];f.push(J),A.push(u-y);return}else if(N==-3){c=x;return}else if(N==-4){g=x;return}else throw new RangeError(`Unrecognized record size: ${N}`);let te=a[x],le,X,Se=u-y;if(v-u<=i&&(X=D(o.pos-S,k))){let J=new Uint16Array(X.size-X.skip),M=o.pos-X.size,L=J.length;for(;o.pos>M;)L=j(X.start,J,L);le=new Q(J,v-X.start,r),Se=X.start-y}else{let J=o.pos-N;o.next();let M=[],L=[],Y=x>=s?x:-1,ee=0,oe=v;for(;o.pos>J;)Y>=0&&o.id==Y&&o.size>=0?(o.end<=oe-i&&(w(M,L,u,ee,o.end,oe,Y,I,V),ee=M.length,oe=o.end),o.next()):_>2500?m(u,J,M,L):p(u,J,M,L,Y,_+1);if(Y>=0&&ee>0&&ee<M.length&&w(M,L,u,ee,u,oe,Y,I,V),M.reverse(),L.reverse(),Y>-1&&ee>0){let Ne=b(te,V);le=ve(te,M,L,0,M.length,0,v-u,Ne,Ne)}else le=R(te,M,L,v-u,I-v,V)}f.push(le),A.push(Se)}function m(y,S,f,A){let k=[],_=0,x=-1;for(;o.pos>S;){let{id:u,start:v,end:N,size:I}=o;if(I>4)o.next();else{if(x>-1&&v<x)break;x<0&&(x=N-i),k.push(u,v,N),_++,o.next()}}if(_){let u=new Uint16Array(_*4),v=k[k.length-2];for(let N=k.length-3,I=0;N>=0;N-=3)u[I++]=k[N],u[I++]=k[N+1]-v,u[I++]=k[N+2]-v,u[I++]=I;f.push(new Q(u,k[2]-v,r)),A.push(v-y)}}function b(y,S){return(f,A,k)=>{let _=0,x=f.length-1,u,v;if(x>=0&&(u=f[x])instanceof T){if(!x&&u.type==y&&u.length==k)return u;(v=u.prop(C.lookAhead))&&(_=A[x]+u.length+v)}return R(y,f,A,k,_,S)}}function w(y,S,f,A,k,_,x,u,v){let N=[],I=[];for(;y.length>A;)N.push(y.pop()),I.push(S.pop()+f-k);y.push(R(r.types[x],N,I,_-k,u-_,v)),S.push(k-f)}function R(y,S,f,A,k,_,x){if(_){let u=[C.contextHash,_];x=x?[u].concat(x):[u]}if(k>25){let u=[C.lookAhead,k];x=x?[u].concat(x):[u]}return new T(y,S,f,A,x)}function D(y,S){let f=o.fork(),A=0,k=0,_=0,x=f.end-i,u={size:0,start:0,skip:0};e:for(let v=f.pos-y;f.pos>v;){let N=f.size;if(f.id==S&&N>=0){u.size=A,u.start=k,u.skip=_,_+=4,A+=4,f.next();continue}let I=f.pos-N;if(N<0||I<v||f.start<x)break;let V=f.id>=s?4:0,te=f.start;for(f.next();f.pos>I;){if(f.size<0)if(f.size==-3||f.size==-4)V+=4;else break e;else f.id>=s&&(V+=4);f.next()}k=te,A+=N,_+=V}return(S<0||A==y)&&(u.size=A,u.start=k,u.skip=_),u.size>4?u:void 0}function j(y,S,f){let{id:A,start:k,end:_,size:x}=o;if(o.next(),x>=0&&A<s){let u=f;if(x>4){let v=o.pos-(x-4);for(;o.pos>v;)f=j(y,S,f)}S[--f]=u,S[--f]=_-y,S[--f]=k-y,S[--f]=A}else x==-3?c=A:x==-4&&(g=A);return f}let O=[],B=[];for(;o.pos>0;)p(l.start||0,l.bufferStart||0,O,B,-1,0);let H=(e=l.length)!==null&&e!==void 0?e:O.length?B[0]+O[0].length:0;return new T(a[l.topID],O.reverse(),B.reverse(),H)}const _e=new WeakMap;function ce(l,e){if(!l.isAnonymous||e instanceof Q||e.type!=l)return 1;let t=_e.get(e);if(t==null){t=1;for(let r of e.children){if(r.type!=l||!(r instanceof T)){t=1;break}t+=ce(l,r)}_e.set(e,t)}return t}function ve(l,e,t,r,i,n,s,o,a){let c=0;for(let w=r;w<i;w++)c+=ce(l,e[w]);let g=Math.ceil(c*1.5/8),p=[],m=[];function b(w,R,D,j,O){for(let B=D;B<j;){let H=B,y=R[B],S=ce(l,w[B]);for(B++;B<j;B++){let f=ce(l,w[B]);if(S+f>=g)break;S+=f}if(B==H+1){if(S>g){let f=w[H];b(f.children,f.positions,0,f.children.length,R[H]+O);continue}p.push(w[H])}else{let f=R[B-1]+w[B-1].length-y;p.push(ve(l,w,R,H,B,y,f,null,a))}m.push(y+O-n)}}return b(e,t,r,i,0),(o||a)(p,m,s)}class tt{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 F?this.setBuffer(e.context.buffer,e.index,t):e instanceof E&&this.map.set(e.tree,t)}get(e){return e instanceof F?this.getBuffer(e.context.buffer,e.index):e instanceof E?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 ye{constructor(e,t,r,i,n=!1,s=!1){this.from=e,this.to=t,this.tree=r,this.offset=i,this.open=(n?1:0)|(s?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 ye(0,e.length,e,0,!1,r)];for(let n of t)n.to>e.length&&i.push(n);return i}static applyChanges(e,t,r=128){if(!t.length)return e;let i=[],n=1,s=e.length?e[0]:null;for(let o=0,a=0,c=0;;o++){let g=o<t.length?t[o]:null,p=g?g.fromA:1e9;if(p-a>=r)for(;s&&s.from<p;){let m=s;if(a>=m.from||p<=m.to||c){let b=Math.max(m.from,a)-c,w=Math.min(m.to,p)-c;m=b>=w?null:new ye(b,w,m.tree,m.offset+c,o>0,!!g)}if(m&&i.push(m),s.to>p)break;s=n<e.length?e[n++]:null}if(!g)break;a=g.toA,c=g.toA-g.toB}return i}}class rt{startParse(e,t,r){return typeof e=="string"&&(e=new Fe(e)),r=r?r.length?r.map(i=>new pe(i.from,i.to)):[new pe(0,0)]:[new pe(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let i=this.startParse(e,t,r);for(;;){let n=i.advance();if(n)return n}}}class Fe{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)}}new C({perNode:!0});let Ke=0;
1class P{constructor(e,t,r,i){this.name=e,this.set=t,this.base=r,this.modified=i,this.id=Ke++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let r=typeof e=="string"?e:"?";if(e instanceof P&&(t=e),t?.base)throw new Error("Can not derive from a modified tag");let i=new P(r,[],null,[]);if(i.set.push(i),t)for(let n of t.set)i.set.push(n);return i}static defineModifier(e){let t=new de(e);return r=>r.modified.indexOf(t)>-1?r:de.get(r.base||r,r.modified.concat(t).sort((i,n)=>i.id-n.id))}}let Je=0;class de{constructor(e){this.name=e,this.instances=[],this.id=Je++}static get(e,t){if(!t.length)return e;let r=t[0].instances.find(o=>o.base==e&&Ve(t,o.modified));if(r)return r;let i=[],n=new P(e.name,i,e,t);for(let o of t)o.instances.push(n);let s=$e(t);for(let o of e.set)if(!o.modified.length)for(let a of s)i.push(de.get(o,a));return n}}function Ve(l,e){return l.length==e.length&&l.every((t,r)=>t==e[r])}function $e(l){let e=[[]];for(let t=0;t<l.length;t++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(l[t]));return e.sort((t,r)=>r.length-t.length)}function Ge(l){let e=Object.create(null);for(let t in l){let r=l[t];Array.isArray(r)||(r=[r]);for(let i of t.split(" "))if(i){let n=[],s=2,o=i;for(let p=0;;){if(o=="..."&&p>0&&p+3==i.length){s=1;break}let m=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!m)throw new RangeError("Invalid path: "+i);if(n.push(m[0]=="*"?"":m[0][0]=='"'?JSON.parse(m[0]):m[0]),p+=m[0].length,p==i.length)break;let b=i[p++];if(p==i.length&&b=="!"){s=0;break}if(b!="/")throw new RangeError("Invalid path: "+i);o=i.slice(p)}let a=n.length-1,c=n[a];if(!c)throw new RangeError("Invalid path: "+i);let g=new se(r,s,a>0?n.slice(0,a):null);e[c]=g.sort(e[c])}}return Me.add(e)}const Me=new C({combine(l,e){let t,r,i;for(;l||e;){if(!l||e&&l.depth>=e.depth?(i=e,e=e.next):(i=l,l=l.next),t&&t.mode==i.mode&&!i.context&&!t.context)continue;let n=new se(i.tags,i.mode,i.context);t?t.next=n:r=n,t=n}return r}});
vendor: 4,138 bytes, lines 1-2
1class se{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}}se.empty=new se([],2,null);function Re(l,e){let t=Object.create(null);for(let n of l)if(!Array.isArray(n.tag))t[n.tag.id]=n.class;else for(let s of n.tag)t[s.id]=n.class;let{scope:r,all:i=null}=e||{};return{style:n=>{let s=i;for(let o of n)for(let a of o.set){let c=t[a.id];if(c){s=s?s+" "+c:c;break}}return s},scope:r}}function Qe(l,e){let t=null;for(let r of l){let i=r.style(e);i&&(t=t?t+" "+i:i)}return t}function je(l,e,t,r=0,i=l.length){let n=new Ye(r,Array.isArray(e)?e:[e],t);n.highlightRange(l.cursor(),r,i,"",n.highlighters),n.flush(i)}function Xe(l,e,t,r,i,n=0,s=l.length){let o=n;function a(c,g){if(!(c<=o)){for(let p=l.slice(o,c),m=0;;){let b=p.indexOf(` 2`,m),w=b<0?p.length:b;if(w>m&&r(p.slice(m,w),g),b<0)break;i(),m=b+1}o=c}}je(e,t,(c,g,p)=>{a(c,""),a(g,p)},n,s),a(s,"")}class Ye{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,n){let{type:s,from:o,to:a}=e;if(o>=r||a<=t)return;s.isTop&&(n=this.highlighters.filter(b=>!b.scope||b.scope(s)));let c=i,g=Te(e)||se.empty,p=Qe(n,g.tags);if(p&&(c&&(c+=" "),c+=p,g.mode==1&&(i+=(i?" ":"")+p)),this.startSpan(Math.max(t,o),c),g.opaque)return;let m=e.tree&&e.tree.prop(C.mounted);if(m&&m.overlay){let b=e.node.enter(m.overlay[0].from+o,1),w=this.highlighters.filter(D=>!D.scope||D.scope(m.tree.type)),R=e.firstChild();for(let D=0,j=o;;D++){let O=D<m.overlay.length?m.overlay[D]:null,B=O?O.from+o:a,H=Math.max(t,j),y=Math.min(r,B);if(H<y&&R)for(;e.from<y&&(this.highlightRange(e,H,y,i,n),this.startSpan(Math.min(y,e.to),c),!(e.to>=B||!e.nextSibling())););if(!O||B>r)break;j=O.to+o,j>t&&(this.highlightRange(b.cursor(),Math.max(t,O.from+o),Math.min(r,j),"",w),this.startSpan(Math.min(r,j),c))}R&&e.parent()}else if(e.firstChild()){m&&(i="");do if(!(e.to<=t)){if(e.from>=r)break;this.highlightRange(e,t,r,i,n),this.startSpan(Math.min(r,e.to),c)}while(e.nextSibling());e.parent()}}}function Te(l){let e=l.type.prop(Me);for(;e&&e.context&&!l.matchContext(e.context);)e=e.next;return e||null}const h=P.define,ae=h(),$=h(),Be=h($),ze=h($),G=h(),fe=h(G),ge=h(G),q=h(),Z=h(q),W=h(),U=h(),be=h(),re=h(be),ue=h(),d={comment:ae,lineComment:h(ae),blockComment:h(ae),docComment:h(ae),name:$,variableName:h($),typeName:Be,tagName:h(Be),propertyName:ze,attributeName:h(ze),className:h($),labelName:h($),namespace:h($),macroName:h($),literal:G,string:fe,docString:h(fe),character:h(fe),attributeValue:h(fe),number:ge,integer:h(ge),float:h(ge),bool:h(G),regexp:h(G),escape:h(G),color:h(G),url:h(G),keyword:W,self:h(W),null:h(W),atom:h(W),unit:h(W),modifier:h(W),operatorKeyword:h(W),controlKeyword:h(W),definitionKeyword:h(W),moduleKeyword:h(W),operator:U,derefOperator:h(U),arithmeticOperator:h(U),logicOperator:h(U),bitwiseOperator:h(U),compareOperator:h(U),updateOperator:h(U),definitionOperator:h(U),typeOperator:h(U),controlOperator:h(U),punctuation:be,separator:h(be),bracket:re,angleBracket:h(re),squareBracket:h(re),paren:h(re),brace:h(re),content:q,heading:Z,heading1:h(Z),heading2:h(Z),heading3:h(Z),heading4:h(Z),heading5:h(Z),heading6:h(Z),contentSeparator:h(q),list:h(q),quote:h(q),emphasis:h(q),strong:h(q),link:h(q),monospace:h(q),strikethrough:h(q),inserted:h(),deleted:h(),changed:h(),invalid:h(),meta:ue,documentMeta:h(ue),annotation:h(ue),processingInstruction:h(ue),definition:P.defineModifier("definition"),constant:P.defineModifier("constant"),function:P.defineModifier("function"),standard:P.defineModifier("standard"),local:P.defineModifier("local"),special:P.defineModifier("special")};for(let l in d){let e=d[l];e instanceof P&&(e.name=l)}const Ze=Re([{tag:d.link,class:"tok-link"},{tag:d.heading,class:"tok-heading"},{tag:d.emphasis,class:"tok-emphasis"},{tag:d.strong,class:"tok-strong"}
2,{tag:d.keyword,class:"tok-keyword"},{tag:d.atom,class:"tok-atom"},{tag:d.bool,class:"tok-bool"},{tag:d.url,class:"tok-url"},{tag:d.labelName,class:"tok-labelName"},{tag:d.inserted,class:"tok-inserted"},{tag:d.deleted,class:"tok-deleted"},{tag:d.literal,class:"tok-literal"},{tag:d.string,class:"tok-string"},{tag:d.number,class:"tok-number"},{tag:[d.regexp,d.escape,d.special(d.string)],class:"tok-string2"},{tag:d.variableName,class:"tok-variableName"},{tag:d.local(d.variableName),class:"tok-variableName tok-local"},{tag:d.definition(d.variableName),class:"tok-variableName tok-definition"},{tag:d.special(d.variableName),class:"tok-variableName2"},{tag:d.definition(d.propertyName),class:"tok-propertyName tok-definition"},{tag:d.typeName,class:"tok-typeName"},{tag:d.namespace,class:"tok-namespace"},{tag:d.className,class:"tok-className"},{tag:d.macroName,class:"tok-macroName"},{tag:d.propertyName,class:"tok-propertyName"},{tag:d.operator,class:"tok-operator"},{tag:d.comment,class:"tok-comment"},{tag:d.meta,class:"tok-meta"},{tag:d.invalid,class:"tok-invalid"},{tag:d.punctuation,class:"tok-punctuation"}]),it=Object.freeze(Object.defineProperty({__proto__:null,Tag:P,classHighlighter:Ze,getStyleTags:Te,highlightCode:Xe,highlightTree:je,styleTags:Ge,tagHighlighter:Re,tags:d},Symbol.toStringTag,{value:"Module"}));export{et as D,z as I,C as N,rt as P,T,ye as a,d as b,K as c,Ie as d,tt as e,je as h,it as i,Ge as s,Re as t}; 3//# sourceMappingURL=index.CiUcxtKb.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.