PageSourceSearch

https://geomi.dev/_next/static/chunks/886.bf468de94f69aacd.js

js geomi.dev collected 2026-10-09 22:43:42 UTC 95,625 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[886],{3965:(t,e,n)=>{n.d(e,{bM:()=>m});var i=n(27537),r=n(29182),s=n(37059);let o="#e06c75",l="#abb2bf",h="#7d8799",a="#d19a66",c="#2c313a",f="#282c34",u="#353a42",d="#528bff",p=i.Lz.theme({"&":{color:l,backgroundColor:f},".cm-content":{caretColor:d},".cm-cursor, .cm-dropCursor":{borderLeftColor:d},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:l},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:f,color:h,border:"none"},".cm-activeLineGutter":{backgroundColor:c},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:u},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:u,borderBottomColor:u},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:c,color:l}}},{dark:!0}),g=r.cr.define([{tag:s._A.keyword,color:"#c678dd"},{tag:[s._A.name,s._A.deleted,s._A.character,s._A.propertyName,s._A.macroName],color:o},{tag:[s._A.function(s._A.variableName),s._A.labelName],color:"#61afef"},{tag:[s._A.color,s._A.constant(s._A.name),s._A.standard(s._A.name)],color:a},{tag:[s._A.definition(s._A.name),s._A.separator],color:l},{tag:[s._A.typeName,s._A.className,s._A.number,s._A.changed,s._A.annotation,s._A.modifier,s._A.self,s._A.namespace],color:"#e5c07b"},{tag:[s._A.operator,s._A.operatorKeyword,s._A.url,s._A.escape,s._A.regexp,s._A.link,s._A.special(s._A.string)],color:"#56b6c2"},{tag:[s._A.meta,s._A.comment],color:h},{tag:s._A.strong,fontWeight:"bold"},{tag:s._A.emphasis,fontStyle:"italic"},{tag:s._A.strikethrough,textDecoration:"line-through"},{tag:s._A.link,color:h,textDecoration:"underline"},{tag:s._A.heading,fontWeight:"bold",color:o},{tag:[s._A.atom,s._A.bool,s._A.special(s._A.variableName)],color:a},{tag:[s._A.processingInstruction,s._A.string,s._A.inserted],color:"#98c379"},{tag:s._A.invalid,color:"#ffffff"}]),m=[p,(0,r.y9)(g)]},10466:(t,e,n)=>{n.d(e,{BN:()=>r,E3:()=>i,xT:()=>a});for(var i={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},r={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),o="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)i[48+l]=i[96+l]=String(l);for(var l=1;l<=24;l++)i[l+111]="F"+l;for(var l=65;l<=90;l++)i[l]=String.fromCharCode(l+32),r[l]=String.fromCharCode(l);for(var h in i)r.hasOwnProperty(h)||(r[h]=i[h]);function a(t){var e=!(s&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||o&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?r:i)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}},15043:(t,e,n)=>{var i;n.d(e,{PH:()=>p,Qj:()=>i,Z6:()=>c,cF:()=>r,fI:()=>f,iX:()=>T,rr:()=>E,uY:()=>l});let r=1024,s=0;class o{constructor(t,e){this.from=t,this.to=e}}class l{constructor(t={}){this.id=s++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=c.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}l.closedBy=new l({deserialize:t=>t.split(" ")}),l.openedBy=new l({deserialize:t=>t.split(" ")}),l.group=new l({deserialize:t=>t.split(" ")}),l.isolate=new l({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw RangeError("Invalid value for isolate: "+t);return t||"auto"}}),l.contextHash=new l({perNode:!0}),l.lookAhead=new l({perNode:!0}),l.mounted=new l({perNode:!0});class h{constructor(t,e,n){this.tree=t,this.overlay=e,this.parser=n}static get(t){return t&&t.props&&t.props[l.mounted.id]}}let a=Object.create(null);class c{constructor(t,e,n,i=0){this.name=t,this.props=e,this.id=n,this.flags=i}static define(t){let e=t.props&&t.props.length?Object.create(null):a,n=!!t.top|2*!!t.skipped|4*!!t.error|8*(null==t.name),i=new c(t.name||"",e,t.id,n);if(t.props){for(let n of t.props)if(Array.isArray(n)||(n=n(i)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");e[n[0].id]=n[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(l.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let i of n.split(" "))e[i]=t[n];return t=>{for(let n=t.prop(l.group),i=-1;i<(n?n.length:0);i++){let r=e[i<0?t.name:n[i]];if(r)return r}}}}c.none=new c("",Object.create(null),0,8);class f{constructor(t){this.types=t;
1for(let e=0;e<t.length;e++)if(t[e].id!=e)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let n of this.types){let i=null;for(let e of t){let t=e(n);t&&(i||(i=Object.assign({},n.props)),i[t[0].id]=t[1])}e.push(i?new c(n.name,i,n.id,n.flags):n)}return new f(e)}}let u=new WeakMap,d=new WeakMap;!function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"}(i||(i={}));class p{constructor(t,e,n,i,r){if(this.type=t,this.children=e,this.positions=n,this.length=i,this.props=null,r&&r.length)for(let[t,e]of(this.props=Object.create(null),r))this.props["number"==typeof t?t:t.id]=e}toString(){let t=h.get(this);if(t&&!t.overlay)return t.tree.toString();let e="";for(let t of this.children){let n=t.toString();n&&(e&&(e+=","),e+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new I(this.topNode,t)}cursorAt(t,e=0,n=0){let i=new I(u.get(this)||this.topNode);return i.moveTo(t,e),u.set(this,i._tree),i}get topNode(){return new k(this,0,0,null)}resolve(t,e=0){let n=x(u.get(this)||this.topNode,t,e,!1);return u.set(this,n),n}resolveInner(t,e=0){let n=x(d.get(this)||this.topNode,t,e,!0);return d.set(this,n),n}resolveStack(t,e=0){return function(t,e,n){let i=t.resolveInner(e,n),r=null;for(let t=i instanceof k?i:i.context.parent;t;t=t.parent)if(t.index<0){let s=t.parent;(r||(r=[i])).push(s.resolve(e,n)),t=s}else{let s=h.get(t.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let o=new k(s.tree,s.overlay[0].from+t.from,-1,t);(r||(r=[i])).push(x(o,e,n,!1))}}return r?_(r):i}(this,t,e)}iterate(t){let{enter:e,leave:n,from:r=0,to:s=this.length}=t,o=t.mode||0,l=(o&i.IncludeAnonymous)>0;for(let t=this.cursor(o|i.IncludeAnonymous);;){let i=!1;if(t.from<=s&&t.to>=r&&(!l&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;i=!0}for(;i&&n&&(l||!t.type.isAnonymous)&&n(t),!t.nextSibling();){if(!t.parent())return;i=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:O(c.none,this.children,this.positions,0,this.children.length,0,this.length,(t,e,n)=>new p(this.type,t,e,n,this.propValues),t.makeTree||((t,e,n)=>new p(c.none,t,e,n)))}static build(t){return function(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:s=r,reused:o=[],minRepeatType:h=i.types.length}=t,a=Array.isArray(n)?new g(n,n.length):n,c=i.types,f=0,u=0;function d(t,e,n,r,s,o,l,h){let a=[],c=[];for(;t.length>r;)a.push(t.pop()),c.push(e.pop()+n-s);t.push(y(i.types[l],a,c,o-s,h-o)),e.push(s-n)}function y(t,e,n,i,r=0,s){if(f){let t=[l.contextHash,f];s=s?[t].concat(s):[t]}if(r>25){let t=[l.lookAhead,r];s=s?[t].concat(s):[t]}return new p(t,e,n,i,s)}let x=[],v=[];for(;a.pos>0;)!function t(e,n,r,g,x,v){let{id:k,start:w,end:b,size:S}=a,A=u;for(;S<0;){if(a.next(),-1==S){let t=o[k];r.push(t),g.push(w-e);return}if(-3==S){f=k;return}if(-4==S){u=k;return}else throw RangeError(`Unrecognized record size: ${S}`)}let _=c[k],C,I,N=w-e;if(b-w<=s&&(I=function(t,e){let n=a.fork(),i=0,r=0,o=0,l=n.end-s,c={size:0,start:0,skip:0};t:for(let s=n.pos-t;n.pos>s;){let t=n.size;if(n.id==e&&t>=0){c.size=i,c.start=r,c.skip=o,o+=4,i+=4,n.next();continue}let a=n.pos-t;if(t<0||a<s||n.start<l)break;let f=4*(n.id>=h),u=n.start;for(n.next();n.pos>a;){if(n.size<0)if(-3==n.size)f+=4;else break t;else n.id>=h&&(f+=4);n.next()}r=u,i+=t,o+=f}return(e<0||i==t)&&(c.size=i,c.start=r,c.skip=o),c.size>4?c:void 0}(a.pos-n,x))){let t=new Uint16Array(I.size-I.skip),n=a.pos-I.size,r=t.length;for(;a.pos>n;)r=function t(e,n,i){let{id:r,start:s,end:o,size:l}=a;if(a.next(),l>=0&&r<h){let h=i;if(l>4){let r=a.pos-(l-4);for(;a.pos>r;)i=t(e,n,i)}n[--i]=h,n[--i]=o-e,n[--i]=s-e,n[--i]=r}else -3==l?f=r:-4==l&&(u=r);return i}(I.start,t,r);C=new m(t,b-I.start,i),N=I.start-e}else{let e=a.pos-S;a.next();let n=[],r=[],o=k>=h?k:-1,c=0,f=b;for(;a.pos>e;)o>=0&&a.id==o&&a.size>=0?(a.end<=f-s&&(d(n,r,w,c,a.end,f,o,A),c=n.length,f=a.end),a.next()):v>2500?function(t,e,n,r){let o=[],l=0,h=-1;for(;a.pos>e;){let{id:t,start:e,end:n,size:i}=a;if(i>4)a.next();else if(h>-1&&e<h)break;else h<0&&(h=n-s),o.push(t,e,n),l++,a.next()}if(l){let e=new Uint16Array(4*l),s=o[o.length-2];for(let t=o.length-3,n=0;t>=0;t-=3)e[n++]=o[t],e[n++]=o[t+1]-s,e[n++]=o[t+2]-s,e[n++]=n;n.push(new m(e,o[2]-s,i)),r.push(s-t)}}(w,e,n,r):t(w,e,n,r,o,v+1);if(o>=0&&c>0&&c<n.length&&d(n,r,w,c,w,f,o,A),n.reverse(),r.reverse(),o>-1&&c>0){let t=function(t){return(e,n,i)=>{let r=0,s=e.length-1,o,h;
vendor: 11,516 bytes, line 1
1if(s>=0&&(o=e[s])instanceof p){if(!s&&o.type==t&&o.length==i)return o;(h=o.prop(l.lookAhead))&&(r=n[s]+o.length+h)}return y(t,e,n,i,r)}}(_);C=O(_,n,r,0,n.length,0,b-w,t,t)}else C=y(_,n,r,b-w,A-b)}r.push(C),g.push(N)}(t.start||0,t.bufferStart||0,x,v,-1,0);let k=null!=(e=t.length)?e:x.length?v[0]+x[0].length:0;return new p(c[t.topID],x.reverse(),v.reverse(),k)}(t)}}p.empty=new p(c.none,[],[],0);class g{constructor(t,e){this.buffer=t,this.index=e}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 g(this.buffer,this.index)}}class m{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return c.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],n=this.buffer[t+3],i=this.set.types[e],r=i.name;if(/\W/.test(r)&&!i.isError&&(r=JSON.stringify(r)),n==(t+=4))return r;let s=[];for(;t<n;)s.push(this.childString(t)),t=this.buffer[t+3];return r+"("+s.join(",")+")"}findChild(t,e,n,i,r){let{buffer:s}=this,o=-1;for(let l=t;l!=e&&(!y(r,i,s[l+1],s[l+2])||(o=l,!(n>0)));l=s[l+3]);return o}slice(t,e,n){let i=this.buffer,r=new Uint16Array(e-t),s=0;for(let o=t,l=0;o<e;){r[l++]=i[o++],r[l++]=i[o++]-n;let e=r[l++]=i[o++]-n;r[l++]=i[o++]-t,s=Math.max(s,e)}return new m(r,s,this.set)}}function y(t,e,n,i){switch(t){case -2:return n<e;case -1:return i>=e&&n<e;case 0:return n<e&&i>e;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function x(t,e,n,r){for(var s;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let e=!r&&t instanceof k&&t.index<0?null:t.parent;if(!e)return t;t=e}let o=r?0:i.IgnoreOverlays;if(r)for(let i=t,r=i.parent;r;r=(i=r).parent)i instanceof k&&i.index<0&&(null==(s=r.enter(e,n,o))?void 0:s.from)!=i.from&&(t=r);for(;;){let i=t.enter(e,n,o);if(!i)return t;t=i}}class v{cursor(t=0){return new I(this,t)}getChild(t,e=null,n=null){let i=w(this,t,e,n);return i.length?i[0]:null}getChildren(t,e=null,n=null){return w(this,t,e,n)}resolve(t,e=0){return x(this,t,e,!1)}resolveInner(t,e=0){return x(this,t,e,!0)}matchContext(t){return b(this,t)}enterUnfinishedNodesBefore(t){let e=this.childBefore(t),n=this;for(;e;){let t=e.lastChild;if(!t||t.to!=e.to)break;t.type.isError&&t.from==t.to?(n=e,e=t.prevSibling):e=t}return n}get node(){return this}get next(){return this.parent}}class k extends v{constructor(t,e,n,i){super(),this._tree=t,this.from=e,this.index=n,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(t,e,n,r,s=0){for(let o=this;;){for(let{children:l,positions:a}=o._tree,c=e>0?l.length:-1;t!=c;t+=e){let c=l[t],f=a[t]+o.from;if(y(r,n,f,f+c.length)){if(c instanceof m){if(s&i.ExcludeBuffers)continue;let l=c.findChild(0,c.buffer.length,e,n-f,r);if(l>-1)return new A(new S(o,c,t,f),null,l)}else if(s&i.IncludeAnonymous||!c.type.isAnonymous||N(c)){let l;if(!(s&i.IgnoreMounts)&&(l=h.get(c))&&!l.overlay)return new k(l.tree,f,t,o);let a=new k(c,f,t,o);return s&i.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(e<0?c.children.length-1:0,e,n,r)}}}if(s&i.IncludeAnonymous||!o.type.isAnonymous||(t=o.index>=0?o.index+e:e<0?-1:o._parent._tree.children.length,!(o=o._parent)))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(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,n=0){let r;if(!(n&i.IgnoreOverlays)&&(r=h.get(this._tree))&&r.overlay){let n=t-this.from;for(let{from:t,to:i}of r.overlay)if((e>0?t<=n:t<n)&&(e<0?i>=n:i>n))return new k(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}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 w(t,e,n,i){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(null!=n){for(let t=!1;!t;)if(t=r.type.is(n),!r.nextSibling())return s}for(;;){if(null!=i&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return null==i?s:[]}}function b(t,e,n=e.length-1){for(let i=t.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class S{constructor(t,e,n,i){this.parent=t,this.buffer=e,this.index=n,this.start=i}}class A extends v{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(t,e,n){super(),this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t,e-this.context.start,n);return r<0?null:new A(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,n=0){if(n&i.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return s<0?null:new A(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new A(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new A(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let s=n.buffer[this.index+1];t.push(n.slice(i,r,s)),e.push(0)}return new p(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function _(t){if(!t.length)return null;let e=0,n=t[0];for(let i=1;i<t.length;i++){let r=t[i];(r.from>n.from||r.to<n.to)&&(n=r,e=i)}let i=n instanceof k&&n.index<0?null:n.parent,r=t.slice();return i?r[e]=i:r.splice(e,1),new C(r,n)}class C{constructor(t,e){this.heads=t,this.node=e}get next(){return _(this.heads)}}class I{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof k)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let e=t._parent;e;e=e._parent)this.stack.unshift(e.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:n,buffer:i}=this.buffer;return this.type=e||i.set.types[i.buffer[t]],this.from=n+i.buffer[t+1],this.to=n+i.buffer[t+2],!0}yield(t){return!!t&&(t instanceof k?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],t,e-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,n=this.mode){return this.buffer?!(n&i.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&i.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&i.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,n=this.stack.length-1;if(t<0){let t=n<0?0:this.stack[n]+4;if(this.index!=t)return this.yieldBuf(e.findChild(t,this.index,-1,0,4))}else{let t=e.buffer[this.index+3];if(t<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(t)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,n,{buffer:r}=this;if(r){if(t>0){if(this.index<r.buffer.buffer.length)return!1}else for(let t=0;t<this.index;t++)if(r.buffer.buffer[t+3]<this.index)return!1;({index:e,parent:n}=r)}else({index:e,_parent:n}=this._tree);for(;n;{index:e,_parent:n}=n)if(e>-1)for(let r=e+t,s=t<0?-1:n._tree.children.length;r!=s;r+=t){let t=n._tree.children[r];if(this.mode&i.IncludeAnonymous||t instanceof m||!t.type.isAnonymous||N(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,e););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,n=0;if(t&&t.context==this.buffer)t:for(let i=this.index,r=this.stack.length;r>=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;e=s,n=r+1;break t}i=this.stack[--r]}for(let t=n;t<this.stack.length;t++)e=new A(this.buffer,e,this.stack[t]);return this.bufferNode=new A(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let n=0;;){let i=!1;if(this.type.isAnonymous||!1!==t(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;i&&e&&e(this),i=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,i=!0}}}matchContext(t){if(!this.buffer)return b(this.node,t);let{buffer:e}=this.buffer,{types:n}=e.set;for(let i=t.length-1,r=this.stack.length-1;i>=0;r--){if(r<0)return b(this.node,t,i);let s=n[e.buffer[this.stack[r]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function N(t){return t.children.some(t=>t instanceof m||!t.type.isAnonymous||N(t))}let P=new WeakMap;function M(t,e){if(!t.isAnonymous||e instanceof m||e.type!=t)return 1;let n=P.get(e);if(null==n){for(let i of(n=1,e.children)){if(i.type!=t||!(i instanceof p)){n=1;break}n+=M(t,i)}P.set(e,n)}return n}function O(t,e,n,i,r,s,o,l,h){let a=0;for(let n=i;n<r;n++)a+=M(t,e[n]);let c=Math.ceil(1.5*a/8),f=[],u=[];return!function e(n,i,r,o,l){for(let a=r;a<o;){let r=a,d=i[a],p=M(t,n[a]);for(a++;a<o;a++){let e=M(t,n[a]);if(p+e>=c)break;p+=e}
1if(a==r+1){if(p>c){let t=n[r];e(t.children,t.positions,0,t.children.length,i[r]+l);continue}f.push(n[r])}else{let e=i[a-1]+n[a-1].length-d;f.push(O(t,n,i,r,a,d,e,null,h))}u.push(d+l-s)}}(e,n,i,r,0),(l||h)(f,u,o)}class E{constructor(t,e,n,i,r=!1,s=!1){this.from=t,this.to=e,this.tree=n,this.offset=i,this.open=!!r|2*!!s}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let i=[new E(0,t.length,t,0,!1,n)];for(let n of e)n.to>t.length&&i.push(n);return i}static applyChanges(t,e,n=128){if(!e.length)return t;let i=[],r=1,s=t.length?t[0]:null;for(let o=0,l=0,h=0;;o++){let a=o<e.length?e[o]:null,c=a?a.fromA:1e9;if(c-l>=n)for(;s&&s.from<c;){let e=s;if(l>=e.from||c<=e.to||h){let t=Math.max(e.from,l)-h,n=Math.min(e.to,c)-h;e=t>=n?null:new E(t,n,e.tree,e.offset+h,o>0,!!a)}if(e&&i.push(e),s.to>c)break;s=r<t.length?t[r++]:null}if(!a)break;l=a.toA,h=a.toA-a.toB}return i}}class T{startParse(t,e,n){return"string"==typeof t&&(t=new R(t)),n=n?n.length?n.map(t=>new o(t.from,t.to)):[new o(0,0)]:[new o(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let i=this.startParse(t,e,n);for(;;){let t=i.advance();if(t)return t}}}class R{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new l({perNode:!0})},27779:(t,e,n)=>{let i;n.d(e,{YH:()=>tl,VR:()=>I,Je:()=>tm,OF:()=>B,$t:()=>tx,sj:()=>j,iR:()=>_,Nb:()=>Z,om:()=>t_,vB:()=>tC,FB:()=>tk,Pe:()=>tc,sU:()=>W,EY:()=>u,ZX:()=>tf,vS:()=>b,Fh:()=>S,QR:()=>tv,y$:()=>tL,zK:()=>w,kn:()=>tj});let r=[],s=[];function o(t){return t>=127462&&t<=127487}function l(t,e,n){if(e==t.length)return e;e&&a(t.charCodeAt(e))&&c(t.charCodeAt(e-1))&&e--;let i=h(t,e);for(e+=f(i);e<t.length;){let l=h(t,e);if(8205==i||8205==l||n&&function(t){if(t<768)return!1;for(let e=0,n=r.length;;){let i=e+n>>1;if(t<r[i])n=i;else{if(!(t>=s[i]))return!0;e=i+1}if(e==n)return!1}}(l))e+=f(l),i=l;else if(o(l)){let n=0,i=e-2;for(;i>=0&&o(h(t,i));)n++,i-=2;if(n%2==0)break;e+=2}else break}return e}function h(t,e){let n=t.charCodeAt(e);if(!c(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return a(i)?(n-55296<<10)+(i-56320)+65536:n}function a(t){return t>=56320&&t<57344}function c(t){return t>=55296&&t<56320}function f(t){return t<65536?1:2}(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?s:r).push(n+=t[e])})();class u{lineAt(t){if(t<0||t>this.length)throw RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){[t,e]=k(this,t,e);let i=[];return this.decompose(0,t,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(e,this.length,i,1),p.from(i,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=k(this,t,e);let n=[];return this.decompose(t,e,n,0),p.from(n,e-t)}eq(t){if(t==this)return!0;
vendor: 4,940 bytes, line 1
1if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),i=new m(this),r=new m(t);for(let t=e,s=e;;){if(i.next(t),r.next(t),t=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(s+=i.value.length,i.done||s>=n)return!0}}iter(t=1){return new m(this,t)}iterRange(t,e=this.length){return new y(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let i=this.line(t).from;n=this.iterRange(i,Math.max(i,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new x(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new d(t):p.from(d.split(t,[])):u.empty}}class d extends u{constructor(t,e=function(t){let e=-1;for(let n of t)e+=n.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,i){for(let r=0;;r++){let s=this.text[r],o=i+s.length;if((e?n:o)>=t)return new v(i,o,n,s);i=o+1,n++}}decompose(t,e,n,i){var r;let s=t<=0&&e>=this.length?this:new d((r=this.text,g(r,[""],t,e)),Math.min(e,this.length)-Math.max(0,t));if(1&i){let t=n.pop(),e=g(s.text,t.text.slice(),0,s.length);if(e.length<=32)n.push(new d(e,t.length+s.length));else{let t=e.length>>1;n.push(new d(e.slice(0,t)),new d(e.slice(t)))}}else n.push(s)}replace(t,e,n){var i;if(!(n instanceof d))return super.replace(t,e,n);[t,e]=k(this,t,e);let r=g(this.text,g(n.text,(i=this.text,g(i,[""],0,t))),e),s=this.length+n.length-(e-t);return r.length<=32?new d(r,s):p.from(d.split(r,[]),s)}sliceString(t,e=this.length,n="\n"){[t,e]=k(this,t,e);let i="";for(let r=0,s=0;r<=e&&s<this.text.length;s++){let o=this.text[s],l=r+o.length;r>t&&s&&(i+=n),t<l&&e>r&&(i+=o.slice(Math.max(0,t-r),e-r)),r=l+1}return i}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],i=-1;for(let r of t)n.push(r),i+=r.length+1,32==n.length&&(e.push(new d(n,i)),n=[],i=-1);return i>-1&&e.push(new d(n,i)),e}}class p extends u{constructor(t,e){for(let n of(super(),this.children=t,this.length=e,this.lines=0,t))this.lines+=n.lines}lineInner(t,e,n,i){for(let r=0;;r++){let s=this.children[r],o=i+s.length,l=n+s.lines-1;if((e?l:o)>=t)return s.lineInner(t,e,n,i);i=o+1,n=l+1}}decompose(t,e,n,i){for(let r=0,s=0;s<=e&&r<this.children.length;r++){let o=this.children[r],l=s+o.length;if(t<=l&&e>=s){let r=i&(s<=t|2*(l>=e));s>=t&&l<=e&&!r?n.push(o):o.decompose(t-s,e-s,n,r)}s=l+1}}replace(t,e,n){if([t,e]=k(this,t,e),n.lines<this.lines)for(let i=0,r=0;i<this.children.length;i++){let s=this.children[i],o=r+s.length;if(t>=r&&e<=o){let l=s.replace(t-r,e-r,n),h=this.lines-s.lines+l.lines;if(l.lines<h>>4&&l.lines>h>>6){let r=this.children.slice();return r[i]=l,new p(r,this.length-(e-t)+n.length)}return super.replace(r,o,l)}r=o+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){[t,e]=k(this,t,e);let i="";for(let r=0,s=0;r<this.children.length&&s<=e;r++){let o=this.children[r],l=s+o.length;s>t&&r&&(i+=n),t<l&&e>s&&(i+=o.sliceString(t-s,e-s,n)),s=l+1}return i}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof p))return 0;let n=0,[i,r,s,o]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=e,r+=e){if(i==s||r==o)return n;let l=this.children[i],h=t.children[r];if(l!=h)return n+l.scanIdentical(h,e);n+=l.length+1}}static from(t,e=t.reduce((t,e)=>t+e.length+1,-1)){let n=0;for(let e of t)n+=e.lines;if(n<32){let n=[];for(let e of t)e.flatten(n);return new d(n,e)}let i=Math.max(32,n>>5),r=i<<1,s=i>>1,o=[],l=0,h=-1,a=[];function c(){0!=l&&(o.push(1==a.length?a[0]:p.from(a,h)),h=-1,l=a.length=0)}for(let e of t)!function t(e){let n;if(e.lines>r&&e instanceof p)for(let n of e.children)t(n);else e.lines>s&&(l>s||!l)?(c(),o.push(e)):e instanceof d&&l&&(n=a[a.length-1])instanceof d&&e.lines+n.lines<=32?(l+=e.lines,h+=e.length+1,a[a.length-1]=new d(n.text.concat(e.text),n.length+1+e.length)):(l+e.lines>i&&c(),l+=e.lines,h+=e.length+1,a.push(e))}(e);return c(),1==o.length?o[0]:new p(o,e)}}function g(t,e,n=0,i=1e9){for(let r=0,s=0,o=!0;s<t.length&&r<=i;s++){let l=t[s],h=r+l.length;h>=n&&(h>i&&(l=l.slice(0,i-r)),r<n&&(l=l.slice(n-r)),o?(e[e.length-1]+=l,o=!1):e.push(l)),r=h+1}return e}u.empty=new d([""],0);class m{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof d?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],s=r>>1,o=i instanceof d?i.text.length:i.children.length;if(s==(e>0?o:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(e>
vendor: 5,963 bytes, line 1
10?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(i instanceof d){let r=i.text[s+(e<0?-1:0)];if(this.offsets[n]+=e,r.length>Math.max(0,t))return this.value=0==t?r:e>0?r.slice(t):r.slice(0,r.length-t),this;t-=r.length}else{let r=i.children[s+(e<0?-1:0)];t>r.length?(t-=r.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(r),this.offsets.push(e>0?1:(r instanceof d?r.text.length:r.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class y{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new m(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*e,this.value=i.length<=n?i:e<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class x{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:i}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(u.prototype[Symbol.iterator]=function(){return this.iter()},m.prototype[Symbol.iterator]=y.prototype[Symbol.iterator]=x.prototype[Symbol.iterator]=function(){return this});class v{constructor(t,e,n,i){this.from=t,this.to=e,this.number=n,this.text=i}get length(){return this.to-this.from}}function k(t,e,n){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,n))]}function w(t,e,n=!0,i=!0){return function(t,e,n=!0,i=!0){return(n?l:function(t,e,n){for(;e>0;){let i=l(t,e-2,n);if(i<e)return i;e--}return 0})(t,e,i)}(t,e,n,i)}function b(t,e){let n=t.charCodeAt(e);if(!(n>=55296&&n<56320)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return i>=56320&&i<57344?(n-55296<<10)+(i-56320)+65536:n}function S(t){return t<65536?1:2}let A=/\r\n?|\n/;var _=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(_||(_={}));class C{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e+1];t+=n<0?this.sections[e]:n}return t}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(t){for(let e=0,n=0,i=0;e<this.sections.length;){let r=this.sections[e++],s=this.sections[e++];s<0?(t(n,i,r),i+=r):i+=s,n+=r}}iterChangedRanges(t,e=!1){M(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],i=this.sections[e++];i<0?t.push(n,i):t.push(i,n)}return new C(t)}composeDesc(t){return this.empty?t:t.empty?this:E(this,t)}mapDesc(t,e=!1){return t.empty?this:O(this,t,e)}mapPos(t,e=-1,n=_.Simple){let i=0,r=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],l=this.sections[s++],h=i+o;if(l<0){if(h>t)return r+(t-i);r+=o}else{if(n!=_.Simple&&h>=t&&(n==_.TrackDel&&i<t&&h>t||n==_.TrackBefore&&i<t||n==_.TrackAfter&&h>t))return null;if(h>t||h==t&&e<0&&!o)return t==i||e<0?r:r+l;r+=l}i=h}if(t>i)throw RangeError(`Position ${t} is out of range for changeset of length ${i}`);return r}touchesRange(t,e=t){for(let n=0,i=0;n<this.sections.length&&i<=e;){let r=this.sections[n++],s=this.sections[n++],o=i+r;if(s>=0&&i<=e&&o>=t)return!(i<t)||!(o>e)||"cover";i=o}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let n=this.sections[e++],i=this.sections[e++];t+=(t?" ":"")+n+(i>=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(t=>"number"!=typeof t))throw RangeError("Invalid JSON representation of ChangeDesc");return new C(t)}static create(t){return new C(t)}}class I extends C{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw RangeError("Applying change set to a document with the wrong length");return M(this,(e,n,i,r,s)=>t=t.replace(i,i+(n-e),s),!1),t}mapDesc(t,e=!1){return O(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let i=0,r=0;i<e.length;i+=2){let s=e[i],o=e[i+1];if(o>=0){e[i]=o,e[i+1]=s;let l=i>>1;for(;n.length<l;)n.push(u.empty);n.push(s?t.slice(r,r+s):u.empty)}r+=s}return new I(e,n)}compose(t){return this.empty?t:t.empty?this:E(this,t,!0)}map(t,e=!1){return t.empty?this:O(this,t,e,!0)}iterChanges(t,e=!1){M(this,t,e)}get desc(){return C.create(this.sections)}filter(t){let e=[],n=[],i=[],r=new T(this);e:for(let s=0,o=0;;){let l=s==t.length?1e9:t[s++];for(;o<l||o==l&&0==r.len;){if(r.done)break e;let t=Math.min(r.len,l-o);N(i,t,-1);let s=-1==r.ins?-1:0==r.off?r.ins:0;N(e,t,s),s>0&&P(n,e,r.text),r.forward(t),o+=t}let h=t[s++];for(;o<h;){if(r.done)break e;let t=Math.min(r.len,h-o);N(e,t,-1),N(i,t,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(t),o+=t}}return{changes:new I(e,n),filtered:C.create(i)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e],i=this.sections[e+1];i<0?t.push(n):0==i?t.push([n]):t.push([n].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,n){let i=[],r=[],s=0,o=null;function l(t=!1){if(!t&&!i.length)return;s<e&&N(i,e-s,-1);let n=new I(i,r);o=o?o.compose(n.map(o)):n,i=[],r=[],s=0}return!function t(h){if(Array.isArray(h))for(let e of h)t(e);else if(h instanceof I){if(h.length!=e)throw RangeError(`Mismatched change set length (got ${h.length}, expected ${e})`);
1l(),o=o?o.compose(h.map(o)):h}else{let{from:t,to:o=t,insert:a}=h;if(t>o||t<0||o>e)throw RangeError(`Invalid change range ${t} to ${o} (in doc of length ${e})`);let c=a?"string"==typeof a?u.of(a.split(n||A)):a:u.empty,f=c.length;if(t==o&&0==f)return;t<s&&l(),t>s&&N(i,t-s,-1),N(i,o-t,f),P(r,i,c),s=o}}(t),l(!o),o}static empty(t){return new I(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let i=0;i<t.length;i++){let r=t[i];if("number"==typeof r)e.push(r,-1);else if(!Array.isArray(r)||"number"!=typeof r[0]||r.some((t,e)=>e&&"string"!=typeof t))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==r.length)e.push(r[0],0);else{for(;n.length<i;)n.push(u.empty);n[i]=u.of(r.slice(1)),e.push(r[0],n[i].length)}}return new I(e,n)}static createSet(t,e){return new I(t,e)}}function N(t,e,n,i=!1){if(0==e&&n<=0)return;let r=t.length-2;r>=0&&n<=0&&n==t[r+1]?t[r]+=e:r>=0&&0==e&&0==t[r]?t[r+1]+=n:i?(t[r]+=e,t[r+1]+=n):t.push(e,n)}function P(t,e,n){if(0==n.length)return;let i=e.length-2>>1;if(i<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<i;)t.push(u.empty);t.push(n)}}function M(t,e,n){let i=t.inserted;for(let r=0,s=0,o=0;o<t.sections.length;){let l=t.sections[o++],h=t.sections[o++];if(h<0)r+=l,s+=l;else{let a=r,c=s,f=u.empty;for(;a+=l,c+=h,h&&i&&(f=f.append(i[o-2>>1])),!n&&o!=t.sections.length&&!(t.sections[o+1]<0);)l=t.sections[o++],h=t.sections[o++];e(r,a,s,c,f),r=a,s=c}}}function O(t,e,n,i=!1){let r=[],s=i?[]:null,o=new T(t),l=new T(e);for(let t=-1;;)if(o.done&&l.len||l.done&&o.len)throw Error("Mismatched change set lengths");else if(-1==o.ins&&-1==l.ins){let t=Math.min(o.len,l.len);N(r,t,-1),o.forward(t),l.forward(t)}else if(l.ins>=0&&(o.ins<0||t==o.i||0==o.off&&(l.len<o.len||l.len==o.len&&!n))){let e=l.len;for(N(r,l.ins,-1);e;){let n=Math.min(o.len,e);o.ins>=0&&t<o.i&&o.len<=n&&(N(r,0,o.ins),s&&P(s,r,o.text),t=o.i),o.forward(n),e-=n}l.next()}else if(o.ins>=0){let e=0,n=o.len;for(;n;)if(-1==l.ins){let t=Math.min(n,l.len);e+=t,n-=t,l.forward(t)}else if(0==l.ins&&l.len<n)n-=l.len,l.next();else break;N(r,e,t<o.i?o.ins:0),s&&t<o.i&&P(s,r,o.text),t=o.i,o.forward(o.len-n)}else if(o.done&&l.done)return s?I.createSet(r,s):C.create(r);else throw Error("Mismatched change set lengths")}function E(t,e,n=!1){let i=[],r=n?[]:null,s=new T(t),o=new T(e);for(let t=!1;;)if(s.done&&o.done)return r?I.createSet(i,r):C.create(i);else if(0==s.ins)N(i,s.len,0,t),s.next();else if(0!=o.len||o.done)if(s.done||o.done)throw Error("Mismatched change set lengths");else{let e=Math.min(s.len2,o.len),n=i.length;if(-1==s.ins){let n=-1==o.ins?-1:o.off?0:o.ins;N(i,e,n,t),r&&n&&P(r,i,o.text)}else -1==o.ins?(N(i,s.off?0:s.len,e,t),r&&P(r,i,s.textBit(e))):(N(i,s.off?0:s.len,o.off?0:o.ins,t),r&&!o.off&&P(r,i,o.text));t=(s.ins>e||o.ins>=0&&o.len>e)&&(t||i.length>n),s.forward2(e),o.forward(e)}else N(i,0,o.ins,t),r&&P(r,i,o.text),o.next()}class T{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,e=this.i-2>>1;return e>=t.length?u.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?u.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class R{constructor(t,e,n){this.from=t,this.to=e,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let t=7&this.flags;return 7==t?null:t}get goalColumn(){let t=this.flags>>6;return 0xffffff==t?void 0:t}map(t,e=-1){let n,i;return this.empty?n=i=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new R(n,i,this.flags)}extend(t,e=t,n=0){if(t<=this.anchor&&e>=this.anchor)return B.range(t,e,void 0,void 0,n);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return B.range(this.anchor,i,void 0,void 0,n)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&this.goalColumn==t.goalColumn&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid JSON representation for SelectionRange");return B.range(t.anchor,t.head)}static create(t,e,n){return new R(t,e,n)}}class B{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:B.create(this.ranges.map(n=>n.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(t.ranges[n],e))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new B([this.main],0)}addRange(t,e=!0){return B.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let n=this.ranges.slice();return n[e]=t,B.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new B(t.ranges.map(t=>R.fromJSON(t)),t.main)}static single(t,e=t){return new B([B.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw RangeError("A selection needs at least one range");for(let n=0,i=0;i<t.length;i++){let r=t[i];if(r.empty?r.from<=n:r.from<n)return B.normalized(t.slice(),e);n=r.to}return new B(t,e)}static cursor(t,e=0,n,i){return R.create(t,t,(0==e?0:e<0?8:16)|(null==n?7:Math.min(6,n))|(null!=i?i:0xffffff)<<6)}static range(t,e,n,i,r){let s=(null!=n?n:0xffffff)<<6|(null==i?7:Math.min(6,i));return r||t==e||(r=e<t?1:-1),e<t?R.create(e,t,48|s):R.create(t,e,(r?r<0?8:16:0)|s)}static normalized(t,e=0){let n=t[e];t.sort((t,e)=>t.from-e.from),e=t.indexOf(n);for(let n=1;n<t.length;n++){let i=t[n],r=t[n-1];if(i.empty?i.from<=r.to:i.from<r.to){let s=r.from,o=Math.max(i.to,r.to);n<=e&&e--,t.splice(--n,2,i.anchor>i.head?B.range(o,s):B.range(s,o))}}return new B(t,e)}}function D(t,e){for(let n of t.ranges)if(n.to>e)throw RangeError("Selection points outside of document")}let L=0;class j{constructor(t,e,n,i,r){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=i,this.id=L++,this.default=t([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(t={}){return new j(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(!t.combine?z:(t,e)=>t===e),!!t.static,t.enables)}
1of(t){return new J([],this,0,t)}compute(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new J(t,this,1,e)}computeN(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new J(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],n=>e(n.field(t)))}}function z(t,e){return t==e||t.length==e.length&&t.every((t,n)=>t===e[n])}class J{constructor(t,e,n,i){this.dependencies=t,this.facet=e,this.type=n,this.value=i,this.id=L++}dynamicSlot(t){var e;let n=this.value,i=this.facet.compareInput,r=this.id,s=t[r]>>1,o=2==this.type,l=!1,h=!1,a=[];for(let n of this.dependencies)"doc"==n?l=!0:"selection"==n?h=!0:((null!=(e=t[n.id])?e:1)&1)==0&&a.push(t[n.id]);return{create:t=>(t.values[s]=n(t),1),update(t,e){if(l&&e.docChanged||h&&(e.docChanged||e.selection)||$(t,a)){let e=n(t);if(o?!F(e,t.values[s],i):!i(e,t.values[s]))return t.values[s]=e,1}return 0},reconfigure:(t,e)=>{let l,h=e.config.address[r];if(null!=h){let r=X(e,h);if(this.dependencies.every(n=>n instanceof j?e.facet(n)===t.facet(n):!(n instanceof W)||e.field(n,!1)==t.field(n,!1))||(o?F(l=n(t),r,i):i(l=n(t),r)))return t.values[s]=r,0}else l=n(t);return t.values[s]=l,1}}}}function F(t,e,n){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!n(t[i],e[i]))return!1;return!0}function $(t,e){let n=!1;for(let i of e)1&Q(t,i)&&(n=!0);return n}let q=j.define({static:!0});class W{constructor(t,e,n,i,r){this.id=t,this.createF=e,this.updateF=n,this.compareF=i,this.spec=r,this.provides=void 0}static define(t){let e=new W(L++,t.create,t.update,t.compare||((t,e)=>t===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(q).find(t=>t.field==this);return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,n)=>{let i=t.values[e],r=this.updateF(i,n);return this.compareF(i,r)?0:(t.values[e]=r,1)},reconfigure:(t,n)=>{let i=t.facet(q),r=n.facet(q),s;return(s=i.find(t=>t.field==this))&&s!=r.find(t=>t.field==this)?(t.values[e]=s.create(t),1):null!=n.config.address[this.id]?(t.values[e]=n.field(this),0):(t.values[e]=this.create(t),1)}}}init(t){return[this,q.of({field:this,create:t})]}get extension(){return this}}let V={lowest:4,low:3,default:2,high:1,highest:0};function U(t){return e=>new H(e,t)}let Z={highest:U(V.highest),high:U(V.high),default:U(V.default),low:U(V.low),lowest:U(V.lowest)};class H{constructor(t,e){this.inner=t,this.prec=e}}class K{of(t){return new Y(this,t)}reconfigure(t){return K.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Y{constructor(t,e){this.compartment=t,this.inner=e}}class G{constructor(t,e,n,i,r,s){for(this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return null==e?t.default:this.staticValues[e>>1]}static resolve(t,e,n){var i,r,s;let o,l,h=[],a=Object.create(null),c=new Map;for(let n of(i=t,r=e,s=c,o=[[],[],[],[],[]],l=new Map,!function t(e,n){let i=l.get(e);if(null!=i){if(i<=n)return;let t=o[i].indexOf(e);t>-1&&o[i].splice(t,1),e instanceof Y&&s.delete(e.compartment)}if(l.set(e,n),Array.isArray(e))for(let i of e)t(i,n);else if(e instanceof Y){if(s.has(e.compartment))throw RangeError("Duplicate use of compartment in extensions");let i=r.get(e.compartment)||e.inner;s.set(e.compartment,i),t(i,n)}else if(e instanceof H)t(e.inner,e.prec);else if(e instanceof W)o[n].push(e),e.provides&&t(e.provides,n);else if(e instanceof J)o[n].push(e),e.facet.extensions&&t(e.facet.extensions,V.default);else{let i=e.extension;if(!i)throw Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);t(i,n)}}(i,V.default),o.reduce((t,e)=>t.concat(e))))n instanceof W?h.push(n):(a[n.facet.id]||(a[n.facet.id]=[])).push(n);let f=Object.create(null),u=[],d=[];for(let t of h)f[t.id]=d.length<<1,d.push(e=>t.slot(e));let p=null==n?void 0:n.config.facets;for(let t in a){let e=a[t],i=e[0].facet,r=p&&p[t]||[];if(e.every(t=>0==t.type))if(f[i.id]=u.length<<1|1,z(r,e))u.push(n.facet(i));else{let t=i.combine(e.map(t=>t.value));u.push(n&&i.compare(t,n.facet(i))?n.facet(i):t)}else{for(let t of e)0==t.type?(f[t.id]=u.length<<1|1,u.push(t.value)):(f[t.id]=d.length<<1,d.push(e=>t.dynamicSlot(e)));f[i.id]=d.length<<1,d.push(t=>(function(t,e,n){let i=n.map(e=>
1t[e.id]),r=n.map(t=>t.type),s=i.filter(t=>!(1&t)),o=t[e.id]>>1;function l(t){let n=[];for(let e=0;e<i.length;e++){let s=X(t,i[e]);if(2==r[e])for(let t of s)n.push(t);else n.push(s)}return e.combine(n)}return{create(t){for(let e of i)Q(t,e);return t.values[o]=l(t),1},update(t,n){if(!$(t,s))return 0;let i=l(t);return e.compare(i,t.values[o])?0:(t.values[o]=i,1)},reconfigure(t,r){let s=$(t,i),h=r.config.facets[e.id],a=r.facet(e);if(h&&!s&&z(n,h))return t.values[o]=a,0;let c=l(t);return e.compare(c,a)?(t.values[o]=a,0):(t.values[o]=c,1)}}})(t,i,e))}}return new G(t,c,d.map(t=>t(f)),f,u,a)}}function Q(t,e){if(1&e)return 2;let n=e>>1,i=t.status[n];if(4==i)throw Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[n]=4;let r=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|r}function X(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}let tt=j.define(),te=j.define({combine:t=>t.some(t=>t),static:!0}),tn=j.define({combine:t=>t.length?t[0]:void 0,static:!0}),ti=j.define(),tr=j.define(),ts=j.define(),to=j.define({combine:t=>!!t.length&&t[0]});class tl{constructor(t,e){this.type=t,this.value=e}static define(){return new th}}class th{of(t){return new tl(this,t)}}class ta{constructor(t){this.map=t}of(t){return new tc(this,t)}}class tc{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new tc(this.type,e)}is(t){return this.type==t}static define(t={}){return new ta(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let i of t){let t=i.map(e);t&&n.push(t)}return n}}tc.reconfigure=tc.define(),tc.appendConfig=tc.define();class tf{constructor(t,e,n,i,r,s){this.startState=t,this.changes=e,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=s,this._doc=null,this._state=null,n&&D(n,e.newLength),r.some(t=>t.type==tf.time)||(this.annotations=r.concat(tf.time.of(Date.now())))}static create(t,e,n,i,r,s){return new tf(t,e,n,i,r,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(tf.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function tu(t,e,n){var i;let r,s,o;return n?(r=e.changes,s=I.empty(e.changes.length),o=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(s):null==(i=t.selection)?void 0:i.map(r),effects:tc.mapEffects(t.effects,r).concat(tc.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function td(t,e,n){let i=e.selection,r=tg(e.annotations);return e.userEvent&&(r=r.concat(tf.userEvent.of(e.userEvent))),{changes:e.changes instanceof I?e.changes:I.of(e.changes||[],n,t.facet(tn)),selection:i&&(i instanceof B?i:B.single(i.anchor,i.head)),effects:tg(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}tf.time=tl.define(),tf.userEvent=tl.define(),tf.addToHistory=tl.define(),tf.remote=tl.define();let tp=[];function tg(t){return null==t?tp:Array.isArray(t)?t:[t]}var tm=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(tm||(tm={}));let ty=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{i=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(t){}class tx{constructor(t,e,n,i,r,s){this.config=t,this.doc=e,this.selection=n,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=r,s&&(s._state=this);for(let t=0;t<this.config.dynamicSlots.length;t++)Q(this,t<<1);this.computeSlot=null}field(t,e=!0){let n=this.config.address[t.id];if(null==n){if(e)throw RangeError("Field is not present in this state");return}return Q(this,n),X(this,n)}update(...t){return function t(e,n,i){let r=td(e,n.length?n[0]:{},e.doc.length);n.length&&!1===n[0].filter&&(i=!1);for(let t=1;t<n.length;t++){!1===n[t].filter&&(i=!1);let s=!!n[t].sequential;r=tu(r,td(e,n[t],s?r.changes.newLength:e.doc.length),s)}let s=tf.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(t){let e=t.startState,n=e.facet(ts),i=t;for(let r=n.length-1;r>=0;r--){let s=n[r](t);s&&Object.keys(s).length&&(i=tu(i,td(e,s,t.changes.newLength),!0))}return i==t?t:tf.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}(i?function(e){let n=e.startState,i=!0;for(let t of n.facet(ti)){let n=t(e);
vendor: 5,253 bytes, line 1
1if(!1===n){i=!1;break}Array.isArray(n)&&(i=!0===i?n:function(t,e){let n=[];for(let i=0,r=0;;){let s,o;if(i<t.length&&(r==e.length||e[r]>=t[i]))s=t[i++],o=t[i++];else{if(!(r<e.length))return n;s=e[r++],o=e[r++]}!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}(i,n))}if(!0!==i){let t,r;if(!1===i)r=e.changes.invertedDesc,t=I.empty(n.doc.length);else{let n=e.changes.filter(i);t=n.changes,r=n.filtered.mapDesc(n.changes).invertedDesc}e=tf.create(n,t,e.selection&&e.selection.map(r),tc.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let r=n.facet(tr);for(let i=r.length-1;i>=0;i--){let s=r[i](e);e=s instanceof tf?s:Array.isArray(s)&&1==s.length&&s[0]instanceof tf?s[0]:t(n,tg(s),!1)}return e}(s):s)}(this,t,!0)}applyTransaction(t){let e,n=this.config,{base:i,compartments:r}=n;for(let e of t.effects)e.is(K.reconfigure)?(n&&(r=new Map,n.compartments.forEach((t,e)=>r.set(e,t)),n=null),r.set(e.value.compartment,e.value.extension)):e.is(tc.reconfigure)?(n=null,i=e.value):e.is(tc.appendConfig)&&(n=null,i=tg(i).concat(e.value));e=n?t.startState.values.slice():new tx(n=G.resolve(i,r,this),this.doc,this.selection,n.dynamicSlots.map(()=>null),(t,e)=>e.reconfigure(t,this),null).values;let s=t.startState.facet(te)?t.newSelection:t.newSelection.asSingle();new tx(n,t.newDoc,s,e,(e,n)=>n.update(e,t),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:B.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,n=t(e.ranges[0]),i=this.changes(n.changes),r=[n.range],s=tg(n.effects);for(let n=1;n<e.ranges.length;n++){let o=t(e.ranges[n]),l=this.changes(o.changes),h=l.map(i);for(let t=0;t<n;t++)r[t]=r[t].map(h);let a=i.mapDesc(l,!0);r.push(o.range.map(a)),i=i.compose(h),s=tc.mapEffects(s,h).concat(tc.mapEffects(tg(o.effects),a))}return{changes:i,selection:B.create(r,e.mainIndex),effects:s}}changes(t=[]){return t instanceof I?t:I.of(t,this.doc.length,this.facet(tx.lineSeparator))}toText(t){return u.of(t.split(this.facet(tx.lineSeparator)||A))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return null==e?t.default:(Q(this,e),X(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let n in t){let i=t[n];i instanceof W&&null!=this.config.address[i.id]&&(e[n]=i.spec.toJSON(this.field(t[n]),this))}return e}static fromJSON(t,e={},n){if(!t||"string"!=typeof t.doc)throw RangeError("Invalid JSON representation for EditorState");let i=[];if(n){for(let e in n)if(Object.prototype.hasOwnProperty.call(t,e)){let r=n[e],s=t[e];i.push(r.init(t=>r.spec.fromJSON(s,t)))}}return tx.create({doc:t.doc,selection:B.fromJSON(t.selection),extensions:e.extensions?i.concat([e.extensions]):i})}static create(t={}){let e=G.resolve(t.extensions||[],new Map),n=t.doc instanceof u?t.doc:u.of((t.doc||"").split(e.staticFacet(tx.lineSeparator)||A)),i=t.selection?t.selection instanceof B?t.selection:B.single(t.selection.anchor,t.selection.head):B.single(0);return D(i,n.length),e.staticFacet(te)||(i=i.asSingle()),new tx(e,n,i,e.dynamicSlots.map(()=>null),(t,e)=>e.create(t),null)}get tabSize(){return this.facet(tx.tabSize)}get lineBreak(){return this.facet(tx.lineSeparator)||"\n"}get readOnly(){return this.facet(to)}phrase(t,...e){for(let e of this.facet(tx.phrases))if(Object.prototype.hasOwnProperty.call(e,t)){t=e[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(t,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>e.length?t:e[i-1]})),t}languageDataAt(t,e,n=-1){let i=[];for(let r of this.facet(tt))for(let s of r(this,e,n))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){var e;let n=this.languageDataAt("wordChars",t);return e=n.length?n[0]:"",t=>{if(!/\S/.test(t))return tm.Space;if(function(t){if(i)return i.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ty.test(n)))return!0}return!1}(t))return tm.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return tm.Word;return tm.Other}}wordAt(t){let{text:e,from:n,length:i}=this.doc.lineAt(t),r=this.charCategorizer(t),s=t-n,o=t-n;for(;s>0;){let t=w(e,s,!1);if(r(e.slice(t,s))!=tm.Word)break;s=t}for(;o<i;){let t=w(e,o);if(r(e.slice(o,t))!=tm.Word)break;o=t}return s==o?null:B.range(s+n,o+n)}}function tv(t,e,n={}){let i={};for(let e of t)for(let t of Object.keys(e)){let r=e[t],s=i[t];if(void 0===s)i[t]=r;else if(s===r||void 0===r);else if(Object.hasOwnProperty.call(n,t))i[t]=n[t](s,r);else throw Error("Config merge conflict for field "+t)}for(let t in e)void 0===i[t]&&(i[t]=e[t]);return i}tx.allowMultipleSelections=te,tx.tabSize=j.define({combine:t=>t.length?t[0]:4}),tx.lineSeparator=tn,tx.readOnly=to,tx.phrases=j.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every(n=>t[n]==e[n])}}),tx.languageData=tt,tx.changeFilter=ti,tx.transactionFilter=tr,tx.transactionExtender=ts,K.reconfigure=tc.define();class tk{eq(t){return this==t}range(t,e=t){return tb.create(t,e,this)}}function tw(t,e){return t==e||t.constructor==e.constructor&&t.eq(e)}tk.prototype.startSide=tk.prototype.endSide=0,tk.prototype.point=!1,tk.prototype.mapM
vendor: 10,084 bytes, line 1
1ode=_.TrackDel;class tb{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new tb(t,e,n)}}function tS(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class tA{constructor(t,e,n,i){this.from=t,this.to=e,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,i=0){let r=n?this.to:this.from;for(let s=i,o=r.length;;){if(s==o)return s;let i=s+o>>1,l=r[i]-t||(n?this.value[i].endSide:this.value[i].startSide)-e;if(i==s)return l>=0?s:o;l>=0?o=i:s=i+1}}between(t,e,n,i){for(let r=this.findIndex(e,-1e9,!0),s=this.findIndex(n,1e9,!1,r);r<s;r++)if(!1===i(this.from[r]+t,this.to[r]+t,this.value[r]))return!1}map(t,e){let n=[],i=[],r=[],s=-1,o=-1;for(let l=0;l<this.value.length;l++){let h=this.value[l],a=this.from[l]+t,c=this.to[l]+t,f,u;if(a==c){let t=e.mapPos(a,h.startSide,h.mapMode);if(null==t||(f=u=t,h.startSide!=h.endSide&&(u=e.mapPos(a,h.endSide))<f))continue}else if((f=e.mapPos(a,h.startSide))>(u=e.mapPos(c,h.endSide))||f==u&&h.startSide>0&&h.endSide<=0)continue;0>(u-f||h.endSide-h.startSide)||(s<0&&(s=f),h.point&&(o=Math.max(o,u-f)),n.push(h),i.push(f-s),r.push(u-s))}return{mapped:n.length?new tA(i,r,n,o):null,pos:s}}}class t_{constructor(t,e,n,i){this.chunkPos=t,this.chunk=e,this.nextLayer=n,this.maxPoint=i}static create(t,e,n,i){return new t_(t,e,n,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=t,s=t.filter;if(0==e.length&&!s)return this;if(n&&(e=e.slice().sort(tS)),this.isEmpty)return e.length?t_.of(e):this;let o=new tN(this,null,-1).goto(0),l=0,h=[],a=new tC;for(;o.value||l<e.length;)if(l<e.length&&(o.from-e[l].from||o.startSide-e[l].value.startSide)>=0){let t=e[l++];a.addInner(t.from,t.to,t.value)||h.push(t)}else 1==o.rangeIndex&&o.chunkIndex<this.chunk.length&&(l==e.length||this.chunkEnd(o.chunkIndex)<e[l].from)&&(!s||i>this.chunkEnd(o.chunkIndex)||r<this.chunkPos[o.chunkIndex])&&a.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||i>o.to||r<o.from||s(o.from,o.to,o.value))&&!a.addInner(o.from,o.to,o.value)&&h.push(tb.create(o.from,o.to,o.value)),o.next());return a.finishInner(this.nextLayer.isEmpty&&!h.length?t_.empty:this.nextLayer.update({add:h,filter:s,filterFrom:i,filterTo:r}))}map(t){if(t.empty||this.isEmpty)return this;let e=[],n=[],i=-1;for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r],l=t.touchesRange(s,s+o.length);if(!1===l)i=Math.max(i,o.maxPoint),e.push(o),n.push(t.mapPos(s));else if(!0===l){let{mapped:r,pos:l}=o.map(s,t);r&&(i=Math.max(i,r.maxPoint),e.push(r),n.push(l))}}let r=this.nextLayer.map(t);return 0==e.length?r:new t_(n,e,r||t_.empty,i)}between(t,e,n){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let r=this.chunkPos[i],s=this.chunk[i];if(e>=r&&t<=r+s.length&&!1===s.between(r,t-r,e-r,n))return}this.nextLayer.between(t,e,n)}}iter(t=0){return tP.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return tP.from(t).goto(e)}static compare(t,e,n,i,r=-1){let s=t.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=r),o=e.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=r),l=tI(s,o,n),h=new tO(s,l,r),a=new tO(o,l,r);n.iterGaps((t,e,n)=>tE(h,t,a,e,n,i)),n.empty&&0==n.length&&tE(h,0,a,0,0,i)}static eq(t,e,n=0,i){null==i&&(i=0x3b9ac9ff);let r=t.filter(t=>!t.isEmpty&&0>e.indexOf(t)),s=e.filter(e=>!e.isEmpty&&0>t.indexOf(e));if(r.length!=s.length)return!1;if(!r.length)return!0;let o=tI(r,s),l=new tO(r,o,0).goto(n),h=new tO(s,o,0).goto(n);for(;;){if(l.to!=h.to||!tT(l.active,h.active)||l.point&&(!h.point||!tw(l.point,h.point)))return!1;if(l.to>i)return!0;l.next(),h.next()}}static spans(t,e,n,i,r=-1){let s=new tO(t,null,r).goto(e),o=e,l=s.openStart;for(;;){let t=Math.min(s.to,n);if(s.point){let n=s.activeForPoint(s.to),r=s.pointFrom<e?n.length+1:s.point.startSide<0?n.length:Math.min(n.length,l);i.point(o,t,s.point,n,r,s.pointRank),l=Math.min(s.openEnd(t),n.length)}else t>o&&(i.span(o,t,s.active,l),l=s.openEnd(t));if(s.to>n)return l+(s.point&&s.to>n?1:0);o=s.to,s.next()}}static of(t,e=!1){let n=new tC;for(let i of t instanceof tb?[t]:e?function(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let i=t[n];if(tS(e,i)>0)return t.slice().sort(tS);e=i}return t}(t):t)n.add(i.from,i.to,i.value);return n.finish()}static join(t){if(!t.length)return t_.empty;let e=t[t.length-1];for(let n=t.length-2;n>=0;n--)for(let i=t[n];i!=t_.empty;i=i.nextLayer)e=new t_(i.chunkPos,i.chunk,e,Math.max(i.maxPoint,e.maxPoint));return e}}t_.empty=new t_([],[],null,-1),t_.empty.nextLayer=t_.empty;class tC{finishChunk(t){this.chunks.push(new tA(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,n){this.addInner(t,e,n)||(this.nextLayer||(this.nextLayer=new tC)).add(t,e,n)}addInner(t,e,n){let i=t-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&0>(t-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if(0>(t-this.lastTo||e.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(t_.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=t_.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function tI(t,e,n){let i=new Map;for(let e of t)for(let t=0;t<e.chunk.length;t++)e.chunk[t].maxPoint<=0&&i.set(e.chunk[t],e.chunkPos[t]);let r=new Set;for(let t of e)for(let e=0;e<t.chunk.length;e++){let s=i.get(t.chunk[e]);null==s||(n?n.mapPos(s):s)!=t.chunkPos[e]||(null==n?void 0:n.touchesRange(s,s+t.chunk[e].length))||r.add(t.chunk[e])}return r}class tN{constructor(t,e,n,i=0){this.layer=t,this.skip=e,this.minPoint=n,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(t,e=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}gotoInner(t,e,n){for(;this.chunkIndex<this.layer.chunk.length;){let e=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(e)||this.layer.chunkEnd(this.chunkIndex)<t||e.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],e,!0);(!n||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(t,e){0>(this.to-t||this.endSide-e)&&this.gotoInner(t,e,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let t=this.layer.chunkPos[this.chunkIndex],e=this.layer.chunk[this.chunkIndex],n=t+e.from[this.rangeIndex];if(this.from=n,this.to=t+e.to[this.rangeIndex],this.value=e.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}class tP{constructor(t){this.heap=t}static from(t,e=null,n=-1){let i=[];for(let r=0;r<t.length;r++)for(let s=t[r];!s.isEmpty;s=s.nextLayer)s.maxPoint>=n&&i.push(new tN(s,e,n,r));return 1==i.length?i[0]:new tP(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let t=this.heap.length>>1;t>=0;t--)tM(this.heap,t);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let t=this.heap.length>>1;t>=0;t--)tM(this.heap,t);0>(this.to-t||this.value.endSide-e)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),tM(this.heap,0)}}}function tM(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let r=t[i];if(i+1<t.length&&r.compare(t[i+1])>=0&&(r=t[i+1],i++),0>n.compare(r))break;t[i]=n,t[e]=r,e=i}}class tO{constructor(t,e,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=tP.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e);)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){tR(this.active,t),tR(this.activeTo,t),tR(this.activeRank,t),this.minActive=tD(this.active,this.activeTo)}
1addActive(t){let e=0,{value:n,to:i,rank:r}=this.cursor;for(;e<this.activeRank.length&&(r-this.activeRank[e]||i-this.activeTo[e])>0;)e++;tB(this.active,e,n),tB(this.activeTo,e,i),tB(this.activeRank,e,r),t&&tB(t,e,this.cursor.from),this.minActive=tD(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&0>(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&tR(n,i)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let t=this.cursor.value;if(t.point)if(e&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=t,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=t.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}else this.addActive(n),this.cursor.next()}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let e=n.length-1;e>=0&&n[e]<t;e--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let e=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function tE(t,e,n,i,r,s){t.goto(e),n.goto(i);let o=i+r,l=i,h=i-e,a=!!s.boundChange;for(let e=!1;;){let i=t.to+h-n.to,r=i||t.endSide-n.endSide,c=r<0?t.to+h:n.to,f=Math.min(c,o);if(t.point||n.point?(t.point&&n.point&&tw(t.point,n.point)&&tT(t.activeForPoint(t.to),n.activeForPoint(n.to))||s.comparePoint(l,f,t.point,n.point),e=!1):(e&&s.boundChange(l),f>l&&!tT(t.active,n.active)&&s.compareRange(l,f,t.active,n.active),a&&f<o&&(i||t.openEnd(c)!=n.openEnd(c))&&(e=!0)),c>o)break;l=c,r<=0&&t.next(),r>=0&&n.next()}}function tT(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!tw(t[n],e[n]))return!1;return!0}function tR(t,e){for(let n=e,i=t.length-1;n<i;n++)t[n]=t[n+1];t.pop()}function tB(t,e,n){for(let n=t.length-1;n>=e;n--)t[n+1]=t[n];t[e]=n}function tD(t,e){let n=-1,i=1e9;for(let r=0;r<e.length;r++)0>(e[r]-i||t[r].endSide-t[n].endSide)&&(n=r,i=e[r]);return n}function tL(t,e,n=t.length){let i=0;for(let r=0;r<n&&r<t.length;)9==t.charCodeAt(r)?(i+=e-i%e,r++):(i++,r=w(t,r));return i}function tj(t,e,n,i){for(let i=0,r=0;;){if(r>=e)return i;if(i==t.length)break;r+=9==t.charCodeAt(i)?n-r%n:1,i=w(t,i)}return!0===i?-1:t.length}},29182:(t,e,n)=>{n.d(e,{Ay:()=>C,Oh:()=>_,Yy:()=>A,b_:()=>P,bj:()=>d,cr:()=>J,mz:()=>I,y9:()=>W,yd:()=>M});var i,r=n(15043),s=n(27779),o=n(27537),l=n(37059),h=n(68412);let a=new r.uY,c=new r.uY;class f{constructor(t,e,n=[],i=""){this.data=t,this.name=i,s.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(s.$t.prototype,"tree",{get(){return p(this)}}),this.parser=e,this.extension=[S.of(this),s.$t.languageData.of((t,e,n)=>{let i=u(t,e,n),r=i.type.prop(a);if(!r)return[];let s=t.facet(r),o=i.type.prop(c);if(o){let r=i.resolve(e-i.from,n);for(let e of o)if(e.test(r,t)){let n=t.facet(e.facet);return"replace"==e.type?n:n.concat(s)}}return s})].concat(n)}isActiveAt(t,e,n=-1){return u(t,e,n).type.prop(a)==this.data}findRegions(t){let e=t.facet(S);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],i=(t,e)=>{if(t.prop(a)==this.data)return void n.push({from:e,to:e+t.length});let s=t.prop(r.uY.mounted);if(s){if(s.tree.prop(a)==this.data){if(s.overlay)for(let t of s.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}else if(s.overlay){let t=n.length;if(i(s.tree,s.overlay[0].from+e),n.length>t)return}}for(let n=0;n<t.children.length;n++){let s=t.children[n];s instanceof r.PH&&i(s,t.positions[n]+e)}};return i(p(t),0),n}get allowsNesting(){return!0}}function u(t,e,n){let i=t.facet(S),s=p(t).topNode;if(!i||i.allowsNesting)for(let t=s;t;t=t.enter(e,n,r.Qj.ExcludeBuffers))t.type.isTop&&(s=t);return s}f.setState=s.Pe.define();class d extends f{constructor(t,e,n){super(t,e,[],n),this.parser=e}static define(t){var e;let n=(e=t.languageData,s.sj.define({combine:e?t=>t.concat(e):void 0}));return new d(n,t.parser.configure({props:[a.add(t=>t.isTop?n:void 0)]}),t.name)}
1configure(t,e){return new d(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function p(t){let e=t.field(f.state,!1);return e?e.tree:r.PH.empty}class g{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t<n||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let m=null;class y{constructor(t,e,n=[],i,r,s,o,l){this.parser=t,this.state=e,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new y(t,e,[],r.PH.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(t,e){return(null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=r.PH.empty&&this.isDone(null!=e?e:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let i=this.parse.advance();if(i){if(this.fragments=this.withoutTempSkipped(r.rr.addTree(i,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(n=this.parse.stoppedAt)?n:this.state.doc.length,this.tree=i,this.parse=null,!(this.treeLen<(null!=e?e:this.state.doc.length)))return!0;this.parse=this.startParse()}if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(r.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=m;m=this;try{return t()}finally{m=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=x(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:i,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let e=[];
vendor: 3,220 bytes, line 1
1if(t.iterChangedRanges((t,n,i,r)=>e.push({fromA:t,toA:n,fromB:i,toB:r})),n=r.rr.applyChanges(n,e),i=r.PH.empty,s=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length)for(let e of(l=[],this.skipped)){let n=t.mapPos(e.from,1),i=t.mapPos(e.to,-1);n<i&&l.push({from:n,to:i})}}return new y(this.parser,e,n,i,s,o,l,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let e=0;e<this.skipped.length;e++){let{from:n,to:i}=this.skipped[e];n<t.to&&i>t.from&&(this.fragments=x(this.fragments,n,i),this.skipped.splice(e--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends r.iX{createParse(e,n,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let e=m;if(e){for(let t of i)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=o,new r.PH(r.Z6.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return m}}function x(t,e,n){return r.rr.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class v{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new v(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=y.create(t.facet(S).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new v(n)}}f.state=s.sU.define({create:v.init,update(t,e){for(let t of e.effects)if(t.is(f.setState))return t.value;return e.startState.facet(S)!=e.state.facet(S)?v.init(e.state):t.apply(e)}});let k=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(k=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});let w="undefined"!=typeof navigator&&(null==(i=navigator.scheduling)?void 0:i.isInputPending)?()=>navigator.scheduling.isInputPending():null,b=o.Z9.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(f.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(f.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=k(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:i}}=this.view,r=n.field(f.state);
1if(r.tree==r.context.tree&&r.context.isDone(i+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,t&&!w?Math.max(25,t.timeRemaining()-5):1e9),o=r.context.treeLen<i&&n.doc.length>i+1e3,l=r.context.work(()=>w&&w()||Date.now()>s,i+1e5*!o);this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:f.setState.of(new v(r.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>(0,o.c_)(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),S=s.sj.define({combine:t=>t.length?t[0]:null,enables:t=>[f.state,b,o.Lz.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class A{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}let _=new r.uY;function C({closing:t,align:e=!0,units:n=1}){return i=>{var r,s,o,l;let h,a,c,f;return r=i,s=e,o=n,l=t,a=(h=r.textAfter).match(/^\s*/)[0].length,c=l&&h.slice(a,a+l.length)==l||void 0==r.pos+a,(f=s?function(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let r=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),o=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let t=n.to;;){let r=e.childAfter(t);if(!r||r==i)return null;if(!r.type.isSkipped)return r.from<o?n:null;t=r.to}}(r):null)?c?r.column(f.from):r.column(f.to):r.baseIndent+(c?0:r.unit*o)}}function I({except:t,units:e=1}={}){return n=>{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}let N=s.sj.define(),P=new r.uY;function M(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function O(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}let E=s.Pe.define({map:O}),T=s.Pe.define({map:O}),R=s.sU.define({create:()=>o.NZ.none,update(t,e){for(let n of(t=t.map(e.changes),e.effects))if(n.is(E)&&!function(t,e,n){let i=!1;return t.between(e,e,(t,r)=>{t==e&&r==n&&(i=!0)}),i}(t,n.value.from,n.value.to)){let{preparePlaceholder:i}=e.state.facet(D),r=i?o.NZ.replace({widget:new z(i(e.state,n.value))}):j;t=t.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(T)&&(t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:i}=e.selection.main;t.between(i,i,(t,e)=>{t<i&&e>i&&(n=!0)}),n&&(t=t.update({filterFrom:i,filterTo:i,filter:(t,e)=>e<=i||t>=i}))}return t},provide:t=>o.Lz.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(t,e)=>{n.push(t,e)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let i=t[n++],r=t[n++];if("number"!=typeof i||"number"!=typeof r)throw RangeError("Invalid JSON for fold state");e.push(j.range(i,r))}return o.NZ.set(e,!0)}}),B={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},D=s.sj.define({combine:t=>(0,s.QR)(t,B)});function L(t,e){let{state:n}=t,i=n.facet(D),r=e=>{var n,i,r,s;let o,l=t.lineBlockAt(t.posAtDOM(e.target)),h=(n=t.state,i=l.from,r=l.to,o=null,null==(s=n.field(R,!1))||s.between(i,r,(t,e)=>{(!o||o.from>t)&&(o={from:t,to:e})}),o);h&&t.dispatch({effects:T.of(h)}),e.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(t,r,e);let s=document.createElement("span");return s.textContent=i.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}let j=o.NZ.replace({widget:new class extends o.xO{toDOM(t){return L(t,null)}}});class z extends o.xO{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return L(t,this.value)}}o.wJ;class J{constructor(t,e){let n;function i(t){let e=h.G.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;let r="string"==typeof e.all?e.all:e.all?i(e.all):void 0,s=e.scope;this.scope=s instanceof f?t=>t.prop(a)==s.data:s?t=>t==s:void 0,this.style=(0,l.az)(t.map(t=>({tag:t.tag,class:t.class||i(Object.assign({},t,{tag:null}))})),{all:r}).style,this.module=n?new h.G(n):null,this.themeType=e.themeType}
1static define(t,e){return new J(t,e||{})}}let F=s.sj.define(),$=s.sj.define({combine:t=>t.length?[t[0]]:null});function q(t){let e=t.facet(F);return e.length?e:t.facet($)}function W(t,e){let n=[U],i;return t instanceof J&&(t.module&&n.push(o.Lz.styleModule.of(t.module)),i=t.themeType),(null==e?void 0:e.fallback)?n.push($.of(t)):i?n.push(F.computeN([o.Lz.darkTheme],e=>e.facet(o.Lz.darkTheme)==("dark"==i)?[t]:[])):n.push(F.of(t)),n}class V{constructor(t){this.markCache=Object.create(null),this.tree=p(t.state),this.decorations=this.buildDeco(t,q(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=p(t.state),n=q(t.state),i=n!=q(t.startState),{viewport:r}=t.view,s=t.changes.mapPos(this.decoratedTo,1);e.length<r.to&&!i&&e.type==this.tree.type&&s>=r.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=s):(e!=this.tree||t.viewportChanged||i)&&(this.tree=e,this.decorations=this.buildDeco(t.view,n),this.decoratedTo=r.to)}buildDeco(t,e){if(!e||!this.tree.length)return o.NZ.none;let n=new s.vB;for(let{from:i,to:r}of t.visibleRanges)(0,l.DM)(this.tree,e,(t,e,i)=>{n.add(t,e,this.markCache[i]||(this.markCache[i]=o.NZ.mark({class:i})))},i,r);return n.finish()}}let U=s.Nb.high(o.Z9.fromClass(V,{decorations:t=>t.decorations}));l._A.meta,l._A.link,l._A.heading,l._A.emphasis,l._A.strong,l._A.strikethrough,l._A.keyword,l._A.atom,l._A.bool,l._A.url,l._A.contentSeparator,l._A.labelName,l._A.literal,l._A.inserted,l._A.string,l._A.deleted,l._A.regexp,l._A.escape,l._A.string,l._A.variableName,l._A.variableName,l._A.typeName,l._A.namespace,l._A.className,l._A.variableName,l._A.macroName,l._A.propertyName,l._A.comment,l._A.invalid;let Z=Object.create(null),H=[r.Z6.none],K=[],Y=Object.create(null),G=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])G[t]=function(t,e){let n=[];for(let i of e.split(" ")){let e=[];for(let n of i.split(".")){let i=t[n]||l._A[n];i?"function"==typeof i?e.length?e=e.map(i):Q(n,`Modifier ${n} used at start of tag`):e.length?Q(n,`Tag ${n} used as modifier`):e=Array.isArray(i)?i:[i]:Q(n,`Unknown highlighting tag ${n}`)}for(let t of e)n.push(t)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),s=i+" "+n.map(t=>t.id),o=Y[s];if(o)return o.id;let h=Y[s]=r.Z6.define({id:H.length,name:i,props:[(0,l.pn)({[i]:n})]});return H.push(h),h.id}(Z,e);function Q(t,e){K.indexOf(t)>-1||(K.push(t),console.warn(e))}o.OP.RTL,o.OP.LTR},37059:(t,e,n)=>{n.d(e,{DM:()=>u,_A:()=>P,az:()=>f,pn:()=>h});var i=n(15043);let r=0;class s{constructor(t,e,n,i){this.name=t,this.set=e,this.base=n,this.modified=i,this.id=r++}toString(){let{name:t}=this;for(let e of this.modified)e.name&&(t=`${e.name}(${t})`);return t}static define(t,e){if(t instanceof s&&(e=t),null==e?void 0:e.base)throw Error("Can not derive from a modified tag");let n=new s("string"==typeof t?t:"?",[],null,[]);if(n.set.push(n),e)for(let t of e.set)n.set.push(t);return n}static defineModifier(t){let e=new l(t);return t=>t.modified.indexOf(e)>-1?t:l.get(t.base||t,t.modified.concat(e).sort((t,e)=>t.id-e.id))}}let o=0;class l{constructor(t){this.name=t,this.instances=[],this.id=o++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find(n=>{var i,r;return n.base==t&&(i=e,r=n.modified,i.length==r.length&&i.every((t,e)=>t==r[e]))});if(n)return n;let i=[],r=new s(t.name,i,t,e);for(let t of e)t.instances.push(r);let o=function(t){let e=[[]];for(let n=0;n<t.length;n++)for(let i=0,r=e.length;i<r;i++)e.push(e[i].concat(t[n]));return e.sort((t,e)=>e.length-t.length)}(e);for(let e of t.set)if(!e.modified.length)for(let t of o)i.push(l.get(e,t));return r}}function h(t){let e=Object.create(null);for(let n in t){let i=t[n];for(let t of(Array.isArray(i)||(i=[i]),n.split(" ")))if(t){let n=[],r=2,s=t;for(let e=0;;){if("..."==s&&e>0&&e+3==t.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!i)throw RangeError("Invalid path: "+t);if(n.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),(e+=i[0].length)==t.length)break;let o=t[e++];if(e==t.length&&"!"==o){r=0;break}if("/"!=o)throw RangeError("Invalid path: "+t);s=t.slice(e)}let o=n.length-1,l=n[o];if(!l)throw RangeError("Invalid path: "+t);let h=new c(i,r,o>0?n.slice(0,o):null);e[l]=h.sort(e[l])}}return a.add(e)}let a=new i.uY;class c{constructor(t,e,n,i){this.tags=t,this.mode=e,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}function f(t,e){let n=Object.create(null);for(let e of t)if(Array.isArray(e.tag))for(let t of e.tag)n[t.id]=e.class;else n[e.tag.id]=e.class;let{scope:i,all:r=null}=e||{};return{style:t=>{let e=r;
vendor: 1,238 bytes, line 1
1for(let i of t)for(let t of i.set){let i=n[t.id];if(i){e=e?e+" "+i:i;break}}return e},scope:i}}function u(t,e,n,i=0,r=t.length){let s=new d(i,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),i,r,"",s.highlighters),s.flush(r)}c.empty=new c([],2,null);class d{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,r,s){let{type:o,from:l,to:h}=t;if(l>=n||h<=e)return;o.isTop&&(s=this.highlighters.filter(t=>!t.scope||t.scope(o)));let f=r,u=function(t){let e=t.type.prop(a);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||c.empty,d=function(t,e){let n=null;for(let i of t){let t=i.style(e);t&&(n=n?n+" "+t:t)}return n}(s,u.tags);if(d&&(f&&(f+=" "),f+=d,1==u.mode&&(r+=(r?" ":"")+d)),this.startSpan(Math.max(e,l),f),u.opaque)return;let p=t.tree&&t.tree.prop(i.uY.mounted);if(p&&p.overlay){let i=t.node.enter(p.overlay[0].from+l,1),o=this.highlighters.filter(t=>!t.scope||t.scope(p.tree.type)),a=t.firstChild();for(let c=0,u=l;;c++){let d=c<p.overlay.length?p.overlay[c]:null,g=d?d.from+l:h,m=Math.max(e,u),y=Math.min(n,g);
1if(m<y&&a)for(;t.from<y&&(this.highlightRange(t,m,y,r,s),this.startSpan(Math.min(y,t.to),f),!(t.to>=g)&&t.nextSibling()););if(!d||g>n)break;(u=d.to+l)>e&&(this.highlightRange(i.cursor(),Math.max(e,d.from+l),Math.min(n,u),"",o),this.startSpan(Math.min(n,u),f))}a&&t.parent()}else if(t.firstChild()){p&&(r="");do{if(t.to<=e)continue;if(t.from>=n)break;this.highlightRange(t,e,n,r,s),this.startSpan(Math.min(n,t.to),f)}while(t.nextSibling());t.parent()}}}let p=s.define,g=p(),m=p(),y=p(m),x=p(m),v=p(),k=p(v),w=p(v),b=p(),S=p(b),A=p(),_=p(),C=p(),I=p(C),N=p(),P={comment:g,lineComment:p(g),blockComment:p(g),docComment:p(g),name:m,variableName:p(m),typeName:y,tagName:p(y),propertyName:x,attributeName:p(x),className:p(m),labelName:p(m),namespace:p(m),macroName:p(m),literal:v,string:k,docString:p(k),character:p(k),attributeValue:p(k),number:w,integer:p(w),float:p(w),bool:p(v),regexp:p(v),escape:p(v),color:p(v),url:p(v),keyword:A,self:p(A),null:p(A),atom:p(A),unit:p(A),modifier:p(A),operatorKeyword:p(A),controlKeyword:p(A),definitionKeyword:p(A),moduleKeyword:p(A),operator:_,derefOperator:p(_),arithmeticOperator:p(_),logicOperator:p(_),bitwiseOperator:p(_),compareOperator:p(_),updateOperator:p(_),definitionOperator:p(_),typeOperator:p(_),controlOperator:p(_),punctuation:C,separator:p(C),bracket:I,angleBracket:p(I),squareBracket:p(I),paren:p(I),brace:p(I),content:b,heading:S,heading1:p(S),heading2:p(S),heading3:p(S),heading4:p(S),heading5:p(S),heading6:p(S),contentSeparator:p(b),list:p(b),quote:p(b),emphasis:p(b),strong:p(b),link:p(b),monospace:p(b),strikethrough:p(b),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:N,documentMeta:p(N),annotation:p(N),processingInstruction:p(N),definition:s.defineModifier("definition"),constant:s.defineModifier("constant"),function:s.defineModifier("function"),standard:s.defineModifier("standard"),local:s.defineModifier("local"),special:s.defineModifier("special")};for(let t in P){let e=P[t];e instanceof s&&(e.name=t)}f([{tag:P.link,class:"tok-link"},{tag:P.heading,class:"tok-heading"},{tag:P.emphasis,class:"tok-emphasis"},{tag:P.strong,class:"tok-strong"},{tag:P.keyword,class:"tok-keyword"},{tag:P.atom,class:"tok-atom"},{tag:P.bool,class:"tok-bool"},{tag:P.url,class:"tok-url"},{tag:P.labelName,class:"tok-labelName"},{tag:P.inserted,class:"tok-inserted"},{tag:P.deleted,class:"tok-deleted"},{tag:P.literal,class:"tok-literal"},{tag:P.string,class:"tok-string"},{tag:P.number,class:"tok-number"},{tag:[P.regexp,P.escape,P.special(P.string)],class:"tok-string2"},{tag:P.variableName,class:"tok-variableName"},{tag:P.local(P.variableName),class:"tok-variableName tok-local"},{tag:P.definition(P.variableName),class:"tok-variableName tok-definition"},{tag:P.special(P.variableName),class:"tok-variableName2"},{tag:P.definition(P.propertyName),class:"tok-propertyName tok-definition"},{tag:P.typeName,class:"tok-typeName"},{tag:P.namespace,class:"tok-namespace"},{tag:P.className,class:"tok-className"},{tag:P.macroName,class:"tok-macroName"},{tag:P.propertyName,class:"tok-propertyName"},{tag:P.operator,class:"tok-operator"},{tag:P.comment,class:"tok-comment"},{tag:P.meta,class:"tok-meta"},{tag:P.invalid,class:"tok-invalid"},{tag:P.punctuation,class:"tok-punctuation"}])},68412:(t,e,n)=>{n.d(e,{G:()=>o});let i="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),r="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class o{constructor(t,e){this.rules=[];let{finish:n}=e||{};function i(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}for(let e in t)!function t(e,r,s,o){let l=[],h=/^@(\w+)\b/.exec(e[0]),a=h&&"keyframes"==h[1];if(h&&null==r)return s.push(e[0]+";");for(let n in r){let o=r[n];if(/&/.test(n))t(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((t,e)=>t.concat(e)),o,s);else if(o&&"object"==typeof o){if(!h)throw RangeError("The value of a property ("+n+") should be a primitive value.");t(i(n),o,l,a)}else null!=o&&l.push(n.replace(/_.*/,"").replace(/[A-Z]/g,t=>"-"+t.toLowerCase())+": "+o+";")}(l.length||a)&&s.push((n&&!h&&!o?e.map(n):e).join(", ")+" {"+l.join(" ")+"}")}(i(e),t[e],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=s[i]||1;return s[i]=t+1,"ͼ"+t.toString(36)}static mount(t,e,n){let i=t[r],s=n&&n.nonce;i?s&&i.setNonce(s):i=new h(t,s),i.mount(Array.isArray(e)?e:[e],t)}}let l=new Map;class h{constructor(t,e){let n=t.ownerDocument||t,i=n.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let e=l.get(n);if(e)return t[r]=e;this.sheet=new i.CSSStyleSheet,l.set(n,this)}else this.styleTag=n.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[r]=this}mount(t,e){let n=this.sheet,i=0,r=0;for(let e=0;e<t.length;e++){let s=t[e],o=this.modules.indexOf(s);if(o<r&&o>-1&&(this.modules.splice(o,1),r--,o=-1),-1==o){if(this.modules.splice(r++,0,s),n)for(let t=0;t<s.rules.length;t++)n.insertRule(s.rules[t],i++)}else{for(;r<o;)i+=this.modules[r++].rules.length;i+=s.rules.length,r++}}if(n)0>e.adoptedStyleSheets.indexOf(this.sheet)&&(e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets]);else{let t="";for(let e=0;e<this.modules.length;e++)t+=this.modules[e].getRules()+"\n";this.styleTag.textContent=t;let n=e.head||e;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}}}]);

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.