You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/json.worker.js

35 lines
280 KiB

(function(Ze){var z={};function Q(J){if(z[J])return z[J].exports;var Z=z[J]={i:J,l:!1,exports:{}};return Ze[J].call(Z.exports,Z,Z.exports,Q),Z.l=!0,Z.exports}return Q.m=Ze,Q.c=z,Q.d=function(J,Z,ie){Q.o(J,Z)||Object.defineProperty(J,Z,{enumerable:!0,get:ie})},Q.r=function(J){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(J,"__esModule",{value:!0})},Q.t=function(J,Z){if(Z&1&&(J=Q(J)),Z&8)return J;if(Z&4&&typeof J=="object"&&J&&J.__esModule)return J;var ie=Object.create(null);if(Q.r(ie),Object.defineProperty(ie,"default",{enumerable:!0,value:J}),Z&2&&typeof J!="string")for(var pe in J)Q.d(ie,pe,function(me){return J[me]}.bind(null,pe));return ie},Q.n=function(J){var Z=J&&J.__esModule?function(){return J.default}:function(){return J};return Q.d(Z,"a",Z),Z},Q.o=function(J,Z){return Object.prototype.hasOwnProperty.call(J,Z)},Q.p="/react/build/",Q(Q.s="8Z8O")})({"33yf":function(Ze,z,Q){(function(J){function Z(O,V){for(var q=0,H=O.length-1;H>=0;H--){var te=O[H];te==="."?O.splice(H,1):te===".."?(O.splice(H,1),q++):q&&(O.splice(H,1),q--)}if(V)for(;q--;q)O.unshift("..");return O}z.resolve=function(){for(var O="",V=!1,q=arguments.length-1;q>=-1&&!V;q--){var H=q>=0?arguments[q]:J.cwd();if(typeof H!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!H)continue;O=H+"/"+O,V=H.charAt(0)==="/"}return O=Z(pe(O.split("/"),function(te){return!!te}),!V).join("/"),(V?"/":"")+O||"."},z.normalize=function(O){var V=z.isAbsolute(O),q=me(O,-1)==="/";return O=Z(pe(O.split("/"),function(H){return!!H}),!V).join("/"),!O&&!V&&(O="."),O&&q&&(O+="/"),(V?"/":"")+O},z.isAbsolute=function(O){return O.charAt(0)==="/"},z.join=function(){var O=Array.prototype.slice.call(arguments,0);return z.normalize(pe(O,function(V,q){if(typeof V!="string")throw new TypeError("Arguments to path.join must be strings");return V}).join("/"))},z.relative=function(O,V){O=z.resolve(O).substr(1),V=z.resolve(V).substr(1);function q(D){for(var W=0;W<D.length&&!(D[W]!=="");W++);for(var j=D.length-1;j>=0&&!(D[j]!=="");j--);return W>j?[]:D.slice(W,j-W+1)}for(var H=q(O.split("/")),te=q(V.split("/")),le=Math.min(H.length,te.length),x=le,I=0;I<le;I++)if(H[I]!==te[I]){x=I;break}for(var R=[],I=x;I<H.length;I++)R.push("..");return R=R.concat(te.slice(x)),R.join("/")},z.sep="/",z.delimiter=":",z.dirname=function(O){if(typeof O!="string"&&(O=O+""),O.length===0)return".";for(var V=O.charCodeAt(0),q=V===47,H=-1,te=!0,le=O.length-1;le>=1;--le)if(V=O.charCodeAt(le),V===47){if(!te){H=le;break}}else te=!1;return H===-1?q?"/":".":q&&H===1?"/":O.slice(0,H)};function ie(O){typeof O!="string"&&(O=O+"");var V=0,q=-1,H=!0,te;for(te=O.length-1;te>=0;--te)if(O.charCodeAt(te)===47){if(!H){V=te+1;break}}else q===-1&&(H=!1,q=te+1);return q===-1?"":O.slice(V,q)}z.basename=function(O,V){var q=ie(O);return V&&q.substr(-1*V.length)===V&&(q=q.substr(0,q.length-V.length)),q},z.extname=function(O){typeof O!="string"&&(O=O+"");for(var V=-1,q=0,H=-1,te=!0,le=0,x=O.length-1;x>=0;--x){var I=O.charCodeAt(x);if(I===47){if(!te){q=x+1;break}continue}H===-1&&(te=!1,H=x+1),I===46?V===-1?V=x:le!==1&&(le=1):V!==-1&&(le=-1)}return V===-1||H===-1||le===0||le===1&&V===H-1&&V===q+1?"":O.slice(V,H)};function pe(O,V){if(O.filter)return O.filter(V);for(var q=[],H=0;H<O.length;H++)V(O[H],H,O)&&q.push(O[H]);return q}var me="ab".substr(-1)==="b"?function(O,V,q){return O.substr(V,q)}:function(O,V,q){return V<0&&(V=O.length+V),O.substr(V,q)}}).call(this,Q("Q2Ig"))},"8Z8O":function(Ze,z,Q){"use strict";Q.r(z);class J{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?new Error(e.message+`
`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const Z=new J;function ie(e){V(e)||Z.onUnexpectedError(e);return}function pe(e){V(e)||Z.onUnexpectedExternalError(e);return}function me(e){if(e instanceof Error){let{name:t,message:n}=e;const r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r}}return e}const O="Canceled";function V(e){return e instanceof Error&&e.name===O&&e.message===O}function q(){const e=new Error(O);return e.name=e.message,e}function H(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function te(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class le extends Error{constructor(e){super("NotSupported");e&&(this.message=e)}}function x(e){const t=this;let n=!1,r;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}var I;(function(e){function t(f){return f&&typeof f=="object"&&typeof f[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(f){yield f}e.single=i;function o(f){return f||n}e.from=o;function s(f){return!f||f[Symbol.iterator]().next().done===!0}e.isEmpty=s;function a(f){return f[Symbol.iterator]().next().value}e.first=a;function l(f,g){for(const w of f)if(g(w))return!0;return!1}e.some=l;function u(f,g){for(const w of f)if(g(w))return w;return}e.find=u;function*c(f,g){for(const w of f)g(w)&&(yield w)}e.filter=c;function*h(f,g){let w=0;for(const A of f)yield g(A,w++)}e.map=h;function*d(...f){for(const g of f)for(const w of g)yield w}e.concat=d;function*m(f){for(const g of f)for(const w of g)yield w}e.concatNested=m;function p(f,g,w){let A=w;for(const k of f)A=g(A,k);return A}e.reduce=p;function*C(f,g,w=f.length){for(g<0&&(g+=f.length),w<0?w+=f.length:w>f.length&&(w=f.length);g<w;g++)yield f[g]}e.slice=C;function v(f,g=Number.POSITIVE_INFINITY){const w=[];if(g===0)return[w,f];const A=f[Symbol.iterator]();for(let k=0;k<g;k++){const b=A.next();if(b.done)return[w,e.empty()];w.push(b.value)}return[w,{[Symbol.iterator](){return A}}]}e.consume=v;function _(f,g,w=(A,k)=>A===k){const A=f[Symbol.iterator](),k=g[Symbol.iterator]();for(;;){const b=A.next(),N=k.next();if(b.done!==N.done)return!1;if(b.done)return!0;if(!w(b.value,N.value))return!1}}e.equals=_})(I||(I={}));const R=!1;let D=null;function W(e){D=e}if(R){const e="__is_disposable_tracked__";W(new class{trackDisposable(t){const n=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==Qe.None)try{t[e]=!0}catch(r){}}markAsDisposed(t){if(t&&t!==Qe.None)try{t[e]=!0}catch(n){}}markAsSingleton(t){}})}function j(e){return D==null||D.trackDisposable(e),e}function X(e){D==null||D.markAsDisposed(e)}function B(e,t){D==null||D.setParent(e,t)}function se(e,t){if(!D)return;for(const n of e)D.setParent(n,t)}function ce(e){return D==null||D.markAsSingleton(e),e}class xe extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`);this.errors=e}}function Ye(e){return typeof e.dispose=="function"&&e.dispose.length===0}function Be(e){if(I.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new xe(t);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function qt(...e){const t=Lt(()=>Be(e));return se(e,t),t}function Lt(e){const t=j({dispose:x(()=>{X(t),e()})});return t}class st{constructor(){this._toDispose=new Set,this._isDisposed=!1,j(this)}dispose(){if(this._isDisposed)return;X(this),this._isDisposed=!0,this.clear()}clear(){try{Be(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return B(e,this),this._isDisposed?st.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}st.DISABLE_DISPOSED_WARNING=!1;class Qe{constructor(){this._store=new st,j(this),B(this._store,this)}dispose(){X(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}Qe.None=Object.freeze({dispose(){}});class wt{constructor(){this._isDisposed=!1,j(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;if(this._isDisposed||e===this._value)return;(t=this._value)===null||t===void 0||t.dispose(),e&&B(e,this),this._value=e}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,X(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&B(e,null),e}}class Et{constructor(e){this.object=e}dispose(){}}class ue{constructor(e){this.element=e,this.next=ue.Undefined,this.prev=ue.Undefined}}ue.Undefined=new ue(void 0);class Se{constructor(){this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ue.Undefined}clear(){let e=this._first;for(;e!==ue.Undefined;){const t=e.next;e.prev=ue.Undefined,e.next=ue.Undefined,e=t}this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new ue(e);if(this._first===ue.Undefined)this._first=n,this._last=n;else if(t){const i=this._last;this._last=n,n.prev=i,i.next=n}else{const i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first===ue.Undefined)return;{const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last===ue.Undefined)return;{const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ue.Undefined&&e.next!==ue.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ue.Undefined&&e.next===ue.Undefined?(this._first=ue.Undefined,this._last=ue.Undefined):e.next===ue.Undefined?(this._last=this._last.prev,this._last.next=ue.Undefined):e.prev===ue.Undefined&&(this._first=this._first.next,this._first.prev=ue.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ue.Undefined;)yield e.element,e=e.next}}var fe=Q("MNsG");const Me=fe.a.performance&&typeof fe.a.performance.now=="function";class at{constructor(e){this._highResolution=Me&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new at(e)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?fe.a.performance.now():Date.now()}}var _e;(function(e){e.None=()=>Qe.None;function t(f){return(g,w=null,A)=>{let k=!1,b;return b=f(N=>k?void 0:(b?b.dispose():k=!0,g.call(w,N)),null,A),k&&b.dispose(),b}}e.once=t;function n(f,g){return l((w,A=null,k)=>f(b=>w.call(A,g(b)),null,k))}e.map=n;function r(f,g){return l((w,A=null,k)=>f(b=>{g(b),w.call(A,b)},null,k))}e.forEach=r;function i(f,g){return l((w,A=null,k)=>f(b=>g(b)&&w.call(A,b),null,k))}e.filter=i;function o(f){return f}e.signal=o;function s(...f){return(g,w=null,A)=>qt(...f.map(k=>k(b=>g.call(w,b),null,A)))}e.any=s;function a(f,g,w){let A=w;return n(f,k=>(A=g(A,k),A))}e.reduce=a;function l(f){let g;const w=new U({onFirstListenerAdd(){g=f(w.fire,w)},onLastListenerRemove(){g.dispose()}});return w.event}function u(f,g,w=100,A=!1,k){let b,N,y,S=0;const L=new U({leakWarningThreshold:k,onFirstListenerAdd(){b=f(P=>{S++,N=g(N,P),A&&!y&&(L.fire(N),N=void 0),clearTimeout(y),y=setTimeout(()=>{const G=N;N=void 0,y=void 0,(!A||S>1)&&L.fire(G),S=0},w)})},onLastListenerRemove(){b.dispose()}});return L.event}e.debounce=u;function c(f,g=(w,A)=>w===A){let w=!0,A;return i(f,k=>{const b=w||!g(k,A);return w=!1,A=k,b})}e.latch=c;function h(f,g){return[e.filter(f,g),e.filter(f,w=>!g(w))]}e.split=h;function d(f,g=!1,w=[]){let A=w.slice(),k=f(y=>{A?A.push(y):N.fire(y)});const b=()=>{A&&A.forEach(y=>N.fire(y)),A=null},N=new U({onFirstListenerAdd(){k||(k=f(y=>N.fire(y)))},onFirstListenerDidAdd(){A&&(g?setTimeout(b):b())},onLastListenerRemove(){k&&k.dispose(),k=null}});return N.event}e.buffer=d;class m{constructor(f){this.event=f}map(f){return new m(n(this.event,f))}forEach(f){return new m(r(this.event,f))}filter(f){return new m(i(this.event,f))}reduce(f,g){return new m(a(this.event,f,g))}latch(){return new m(c(this.event))}debounce(f,g=100,w=!1,A){return new m(u(this.event,f,g,w,A))}on(f,g,w){return this.event(f,g,w)}once(f,g,w){return t(this.event)(f,g,w)}}function p(f){return new m(f)}e.chain=p;function C(f,g,w=A=>A){const A=(...y)=>N.fire(w(...y)),k=()=>f.on(g,A),b=()=>f.removeListener(g,A),N=new U({onFirstListenerAdd:k,onLastListenerRemove:b});return N.event}e.fromNodeEventEmitter=C;function v(f,g,w=A=>A){const A=(...y)=>N.fire(w(...y)),k=()=>f.addEventListener(g,A),b=()=>f.removeEventListener(g,A),N=new U({onFirstListenerAdd:k,onLastListenerRemove:b});return N.event}e.fromDOMEventEmitter=v;function _(f){return new Promise(g=>t(f)(g))}e.toPromise=_})(_e||(_e={}));class F{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${F._idPool++}`}start(e){this._stopWatch=new at(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}F._idPool=0;let E=-1;class M{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=E;if(typeof this.customThreshold=="number"&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);const n=new Error().stack.split(`
`).slice(3).join(`
`),r=this._stacks.get(n)||0;if(this._stacks.set(n,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=t*.5;let i,o=0;for(const[s,a]of this._stacks)(!i||o<a)&&(i=s,o=a);console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${o}):`),console.warn(i)}return()=>{const i=this._stacks.get(n)||0;this._stacks.set(n,i-1)}}}class U{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=E>0?new M(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((t=this._options)===null||t===void 0?void 0:t._profName)?new F(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var r;this._listeners||(this._listeners=new Se);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const s=(r=this._leakageMon)===null||r===void 0?void 0:r.check(this._listeners.size),a=Lt(()=>{if(s&&s(),!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){const l=this._listeners&&!this._listeners.isEmpty();l||this._options.onLastListenerRemove(this)}});return n instanceof st?n.add(a):Array.isArray(n)&&n.push(a),a}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Se);for(let r of this._listeners)this._deliveryQueue.push([r,e]);for((t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[r,i]=this._deliveryQueue.shift();try{typeof r=="function"?r.call(void 0,i):r[0].call(r[1],i)}catch(o){ie(o)}}(n=this._perfMon)===null||n===void 0||n.stop()}}dispose(){var e,t,n,r,i;this._disposed||(this._disposed=!0,(e=this._listeners)===null||e===void 0||e.clear(),(t=this._deliveryQueue)===null||t===void 0||t.clear(),(r=(n=this._options)===null||n===void 0?void 0:n.onLastListenerRemove)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}}class ae extends U{constructor(e){super(e);this._isPaused=0,this._eventQueue=new Se,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class ne extends ae{constructor(e){var t;super(e);this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class oe{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,r)=>e(i=>{const o=this.buffers[this.buffers.length-1];o?o.push(()=>t.call(n,i)):t.call(n,i)},void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(r=>r()),n}}class be{constructor(){this.listening=!1,this.inputEvent=_e.None,this.inputEventListener=Qe.None,this.emitter=new U({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}function Le(e){return Array.isArray(e)}function We(e){return typeof e=="string"}function $t(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function yt(e){return typeof e=="number"&&!isNaN(e)}function wl(e){return e===!0||e===!1}function zo(e){return typeof e=="undefined"}function yl(e){return!Mn(e)}function Mn(e){return zo(e)||e===null}function Cl(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function _l(e){if(Mn(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function Jo(e){return typeof e=="function"}function Al(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)Zo(e[r],t[r])}function Zo(e,t){if(We(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Jo(t)){try{if(e instanceof t)return}catch(n){}if(!Mn(e)&&e.constructor===t)return;if(t.length===1&&t.call(void 0,e)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Yo(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function ln(e){const t=[];for(const n of Yo(e))typeof e[n]=="function"&&t.push(n);return t}function Qo(e,t){const n=i=>function(){const o=Array.prototype.slice.call(arguments,0);return t(i,o)};let r={};for(const i of e)r[i]=n(i);return r}function Tl(e){return e===null?void 0:e}function kl(e,t="Unreachable"){throw new Error(t)}function Sl(e){return!e||typeof e!="string"?!0:e.trim().length===0}const Xo=/{(\d+)}/g;function Nl(e,...t){return t.length===0?e:e.replace(Xo,function(n,r){const i=parseInt(r,10);return isNaN(i)||i<0||i>=t.length?n:t[i]})}function Ll(e){return e.replace(/[<>&]/g,function(t){switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return t}})}function Ko(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function El(e,t=" "){const n=es(e,t);return ts(n,t)}function es(e,t){if(!e||!t)return e;const n=t.length;if(n===0||e.length===0)return e;let r=0;for(;e.indexOf(t,r)===r;)r=r+n;return e.substring(r)}function ts(e,t){if(!e||!t)return e;const n=t.length,r=e.length;if(n===0||r===0)return e;let i=r,o=-1;for(;!(o=e.lastIndexOf(t,i-1),o===-1||o+n!==i);){if(o===0)return"";i=o}return e.substring(0,i)}function xl(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Ml(e){return e.replace(/\*/g,"")}function Il(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=Ko(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e=e+"\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function Dl(e){if(e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$")return!1;const t=e.exec("");return!!(t&&e.lastIndex===0)}function Fl(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function ns(e){return e.split(/\r\n|\r|\n/)}function rs(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function Ol(e,t=0,n=e.length){for(let r=t;r<n;r++){const i=e.charCodeAt(r);if(i!==32&&i!==9)return e.substring(t,r)}return e.substring(t,n)}function is(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Pl(e,t){return e<t?-1:e>t?1:0}function os(e,t,n=0,r=e.length,i=0,o=t.length){for(;n<r&&i<o;n++,i++){let l=e.charCodeAt(n),u=t.charCodeAt(i);if(l<u)return-1;if(l>u)return 1}const s=r-n,a=o-i;return s<a?-1:s>a?1:0}function Rl(e,t){return In(e,t,0,e.length,0,t.length)}function In(e,t,n=0,r=e.length,i=0,o=t.length){for(;n<r&&i<o;n++,i++){let l=e.charCodeAt(n),u=t.charCodeAt(i);if(l===u)continue;if(l>=128||u>=128)return os(e.toLowerCase(),t.toLowerCase(),n,r,i,o);Ir(l)&&(l-=32),Ir(u)&&(u-=32);const c=l-u;if(c===0)continue;return c}const s=r-n,a=o-i;return s<a?-1:s>a?1:0}function Ir(e){return e>=97&&e<=122}function Dr(e){return e>=65&&e<=90}function Ul(e,t){return e.length===t.length&&In(e,t)===0}function jl(e,t){const n=t.length;return t.length>e.length?!1:In(e,t,0,n)===0}function Vl(e,t){let n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return r}function Bl(e,t){let n,r=Math.min(e.length,t.length);const i=e.length-1,o=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(o-n))return n;return r}function Dn(e){return 55296<=e&&e<=56319}function un(e){return 56320<=e&&e<=57343}function Fn(e,t){return(e-55296<<10)+(t-56320)+65536}function Fr(e,t,n){const r=e.charCodeAt(n);if(Dn(r)&&n+1<t){const i=e.charCodeAt(n+1);if(un(i))return Fn(r,i)}return r}function xt(e,t){const n=e.charCodeAt(t-1);if(un(n)&&t>1){const r=e.charCodeAt(t-2);if(Dn(r))return Fn(r,n)}return n}function Wl(e,t){const n=lt.getInstance(),r=t,i=e.length,o=Fr(e,i,t);t+=o>=65536?2:1;let s=n.getGraphemeBreakType(o);for(;t<i;){const a=Fr(e,i,t),l=n.getGraphemeBreakType(a);if(Or(s,l))break;t+=a>=65536?2:1,s=l}return t-r}function Hl(e,t){const n=lt.getInstance(),r=t,i=xt(e,t);t-=i>=65536?2:1;let o=n.getGraphemeBreakType(i);for(;t>0;){const s=xt(e,t),a=n.getGraphemeBreakType(s);if(Or(a,o))break;t-=s>=65536?2:1,o=a}return r-t}const ss=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function ql(e){return ss.test(e)}const as=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function $l(e){return as.test(e)}const ls=/^[\t\n\r\x20-\x7E]*$/;function Gl(e){return ls.test(e)}const us=/[\u2028\u2029]/;function zl(e){return us.test(e)}function Jl(e){for(let t=0,n=e.length;t<n;t++)if(cs(e.charCodeAt(t)))return!0;return!1}function cs(e){return e=+e,e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function hs(e){return e>=127462&&e<=127487||e===8986||e===8987||e===9200||e===9203||e>=9728&&e<=10175||e===11088||e===11093||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129750}const Zl=String.fromCharCode(65279);function Yl(e){return!!(e&&e.length>0&&e.charCodeAt(0)===65279)}function Ql(e,t=!1){return e?(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e):!1}function Xl(e){const t=90-65+1;return e=e%(2*t),e<t?String.fromCharCode(97+e):String.fromCharCode(65+e-t)}function Kl(e){const t=lt.getInstance();return t.getGraphemeBreakType(e)}function Or(e,t){return e===0?t!==5&&t!==7:e===2&&t===3?!1:e===4||e===2||e===3||(t===4||t===2||t===3)?!0:e===8&&(t===8||t===9||t===11||t===12)||((e===11||e===9)&&(t===9||t===10)||((e===12||e===10)&&t===10||(t===5||t===13||(t===7||(e===1||e===13&&t===14)))))?!1:!(e===6&&t===6)}class lt{constructor(){this._data=fs()}static getInstance(){return lt._INSTANCE||(lt._INSTANCE=new lt),lt._INSTANCE}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r=2*r;else if(e>t[3*r+1])r=2*r+1;else return t[3*r+2];return 0}}lt._INSTANCE=null;function fs(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function eu(e,t){if(e===0)return 0;const n=ds(e,t);if(n!==void 0)return n;const r=xt(t,e);return e-=cn(r),e}function ds(e,t){let n=xt(t,e);for(e-=cn(n);ms(n)||n===65039||n===8419;){if(e===0)return;n=xt(t,e),e-=cn(n)}if(!hs(n))return;if(e>=0){const r=xt(t,e);r===8205&&(e-=cn(r))}return e}function cn(e){return e>=65536?2:1}function ms(e){return 127995<=e&&e<=127999}const Pr="$initialize";let Rr=!1;function tu(e){if(!fe.c)return;Rr||(Rr=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message)}class gs{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.method=n,this.args=r,this.type=0}}class Ur{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class ps{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=r,this.type=2}}class vs{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class bs{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class jr{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise((r,i)=>{this._pendingReplies[n]={resolve:r,reject:i},this._send(new gs(this._workerId,n,e,t))})}listen(e,t){let n=null;const r=new U({onFirstListenerAdd:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new ps(this._workerId,n,e,t))},onLastListenerRemove:()=>{this._pendingEmitters.delete(n),this._send(new bs(this._workerId,n)),n=null}});return r.event}handleMessage(e){if(!e||!e.vsWorker)return;if(this._workerId!==-1&&e.vsWorker!==this._workerId)return;this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),t.reject(n);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req,n=this._handler.handleMessage(e.method,e.args);n.then(r=>{this._send(new Ur(this._workerId,t,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=me(r.detail)),this._send(new Ur(this._workerId,t,void 0,me(r)))})}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)(r=>{this._send(new vs(this._workerId,t,r))});this._pendingEvents.set(t,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else e.type===1&&(e.res instanceof ArrayBuffer&&t.push(e.res));this._handler.sendMessage(e,t)}}class nu extends Qe{constructor(e,t,n){super();let r=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",l=>{this._protocol.handleMessage(l)},l=>{r&&r(l)})),this._protocol=new jr({sendMessage:(l,u)=>{this._worker.postMessage(l,u)},handleMessage:(l,u)=>{if(typeof n[l]!="function")return Promise.reject(new Error("Missing method "+l+" on main thread host."));try{return Promise.resolve(n[l].apply(n,u))}catch(c){return Promise.reject(c)}},handleEvent:(l,u)=>{if(Pn(l)){const c=n[l].call(n,u);if(typeof c!="function")throw new Error(`Missing dynamic event ${l} on main thread host.`);return c}if(On(l)){const c=n[l];if(typeof c!="function")throw new Error(`Missing event ${l} on main thread host.`);return c}throw new Error(`Malformed event name ${l}`)}}),this._protocol.setWorkerId(this._worker.getId());let i=null;typeof fe.a.require!="undefined"&&typeof fe.a.require.getConfig=="function"?i=fe.a.require.getConfig():typeof fe.a.requirejs!="undefined"&&(i=fe.a.requirejs.s.contexts._.config);const o=ln(n);this._onModuleLoaded=this._protocol.sendMessage(Pr,[this._worker.getId(),JSON.parse(JSON.stringify(i)),t,o]);const s=(l,u)=>this._request(l,u),a=(l,u)=>this._protocol.listen(l,u);this._lazyProxy=new Promise((l,u)=>{r=u,this._onModuleLoaded.then(c=>{l(Vr(c,s,a))},c=>{u(c),this._onError("Worker failed to load "+t,c)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((n,r)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(n,r)},r)})}_onError(e,t){console.error(e),console.info(t)}}function On(e){return e[0]==="o"&&e[1]==="n"&&Dr(e.charCodeAt(2))}function Pn(e){return/^onDynamic/.test(e)&&Dr(e.charCodeAt(9))}function Vr(e,t,n){const r=s=>function(){const a=Array.prototype.slice.call(arguments,0);return t(s,a)},i=s=>function(a){return n(s,a)};let o={};for(const s of e){if(Pn(s)){o[s]=i(s);continue}if(On(s)){o[s]=n(s,void 0);continue}o[s]=r(s)}return o}class Br{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new jr({sendMessage:(n,r)=>{e(n,r)},handleMessage:(n,r)=>this._handleMessage(n,r),handleEvent:(n,r)=>this._handleEvent(n,r)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===Pr)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||typeof this._requestHandler[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(n){return Promise.reject(n)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Pn(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if(typeof n!="function")throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(On(e)){const n=this._requestHandler[e];if(typeof n!="function")throw new Error(`Missing event ${e} on request handler.`);return n}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,r){this._protocol.setWorkerId(e);const i=(a,l)=>this._protocol.sendMessage(a,l),o=(a,l)=>this._protocol.listen(a,l),s=Vr(r,i,o);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(s),Promise.resolve(ln(this._requestHandler))):(t&&(typeof t.baseUrl!="undefined"&&delete t.baseUrl,typeof t.paths!="undefined"&&(typeof t.paths.vs!="undefined"&&delete t.paths.vs),typeof t.trustedTypesPolicy!==void 0&&delete t.trustedTypesPolicy,t.catchError=!0,fe.a.require.config(t)),new Promise((a,l)=>{const u=fe.a.require;u([n],c=>{if(this._requestHandler=c.create(s),!this._requestHandler){l(new Error("No RequestHandler!"));return}a(ln(this._requestHandler))},l)}))}}function ru(e){return new Br(e,null)}class ut{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function iu(e){return Rn(e,0)}function Rn(e,t){switch(typeof e){case"object":return e===null?tt(349,t):Array.isArray(e)?ys(e,t):Cs(e,t);case"string":return Un(e,t);case"boolean":return ws(e,t);case"number":return tt(e,t);case"undefined":return tt(937,t);default:return tt(617,t)}}function tt(e,t){return(t<<5)-t+e|0}function ws(e,t){return tt(e?433:863,t)}function Un(e,t){t=tt(149417,t);for(let n=0,r=e.length;n<r;n++)t=tt(e.charCodeAt(n),t);return t}function ys(e,t){return t=tt(104579,t),e.reduce((n,r)=>Rn(r,n),t)}function Cs(e,t){return t=tt(181387,t),Object.keys(e).sort().reduce((n,r)=>(n=Un(r,n),Rn(e[r],n)),t)}function jn(e,t,n=32){const r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function Wr(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function _s(e,t,n="0"){for(;e.length<t;)e=n+e;return e}function Gt(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join(""):_s((e>>>0).toString(16),t/4)}class Hr{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const n=this._buff;let r=this._buffLen,i=this._leftoverHighSurrogate,o,s;for(i!==0?(o=i,s=-1,i=0):(o=e.charCodeAt(0),s=0);;){let a=o;if(Dn(o))if(s+1<t){const l=e.charCodeAt(s+1);un(l)?(s++,a=Fn(o,l)):a=65533}else{i=o;break}else un(o)&&(a=65533);if(r=this._push(n,r,a),s++,s<t)o=e.charCodeAt(s);else break}this._buffLen=r,this._leftoverHighSurrogate=i}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(n&1984)>>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Gt(this._h0)+Gt(this._h1)+Gt(this._h2)+Gt(this._h3)+Gt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Wr(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Wr(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Hr._bigBlock32,t=this._buffDV;for(let c=0;c<64;c+=4)e.setUint32(c,t.getUint32(c,!1),!1);for(let c=64;c<320;c+=4)e.setUint32(c,jn(e.getUint32(c-12,!1)^e.getUint32(c-32,!1)^e.getUint32(c-56,!1)^e.getUint32(c-64,!1),1),!1);let n=this._h0,r=this._h1,i=this._h2,o=this._h3,s=this._h4,a,l,u;for(let c=0;c<80;c++)c<20?(a=r&i|~r&o,l=1518500249):c<40?(a=r^i^o,l=1859775393):c<60?(a=r&i|r&o|i&o,l=2400959708):(a=r^i^o,l=3395469782),u=jn(n,5)+a+s+l+e.getUint32(c*4,!1)&4294967295,s=o,o=i,i=jn(r,30),r=n,n=u;this._h0=this._h0+n&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+i&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+s&4294967295}}Hr._bigBlock32=new DataView(new ArrayBuffer(320));class qr{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}}function As(e,t,n){return new Ct(new qr(e),new qr(t)).ComputeDiff(n).changes}class Mt{static Assert(e,t){if(!e)throw new Error(t)}}class It{static Copy(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[t+o]}static Copy2(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[t+o]}}class $r{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new ut(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ct{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,o]=Ct._getElements(e),[s,a,l]=Ct._getElements(t);this._hasStrings=o&&l,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(Ct._isStringArray(t)){const n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=Un(t[r],0);return[t,n,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[t]:!0}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;const n=Ct._getStrictElement(this._originalSequence,e),r=Ct._getStrictElement(this._modifiedSequence,t);return n===r}static _getStrictElement(e,t){return typeof e.getStrictElement=="function"?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[t]:!0}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[t]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){const o=[!1];let s=this.ComputeDiffRecursive(e,t,n,r,o);return i&&(s=this.PrettifyChanges(s)),{quitEarly:o[0],changes:s}}ComputeDiffRecursive(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let c;return n<=r?(Mt.Assert(e===t+1,"originalStart should only be one more than originalEnd"),c=[new ut(e,0,n,r-n+1)]):e<=t?(Mt.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),c=[new ut(e,t-e+1,n,0)]):(Mt.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Mt.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),c=[]),c}const o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,r,o,s,i),l=o[0],u=s[0];if(a!==null)return a;if(!i[0]){const c=this.ComputeDiffRecursive(e,l,n,u,i);let h=[];return i[0]?h=[new ut(l+1,t-(l+1)+1,u+1,r-(u+1)+1)]:h=this.ComputeDiffRecursive(l+1,t,u+1,r,i),this.ConcatenateChanges(c,h)}return[new ut(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,o,s,a,l,u,c,h,d,m,p,C,v,_){let f=null,g=null,w=new $r,A=t,k=n,b=d[0]-C[0]-r,N=-1073741824,y=this.m_forwardHistory.length-1;do{const S=b+e;S===A||S<k&&l[S-1]<l[S+1]?(c=l[S+1],m=c-b-r,c<N&&w.MarkNextChange(),N=c,w.AddModifiedElement(c+1,m),b=S+1-e):(c=l[S-1]+1,m=c-b-r,c<N&&w.MarkNextChange(),N=c-1,w.AddOriginalElement(c,m+1),b=S-1-e),y>=0&&(l=this.m_forwardHistory[y],e=l[0],A=1,k=l.length-1)}while(--y>=-1);if(f=w.getReverseChanges(),_[0]){let S=d[0]+1,L=C[0]+1;if(f!==null&&f.length>0){const P=f[f.length-1];S=Math.max(S,P.getOriginalEnd()),L=Math.max(L,P.getModifiedEnd())}g=[new ut(S,h-S+1,L,p-L+1)]}else{w=new $r,A=o,k=s,b=d[0]-C[0]-a,N=1073741824,y=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const S=b+i;S===A||S<k&&u[S-1]>=u[S+1]?(c=u[S+1]-1,m=c-b-a,c>N&&w.MarkNextChange(),N=c+1,w.AddOriginalElement(c+1,m+1),b=S+1-i):(c=u[S-1],m=c-b-a,c>N&&w.MarkNextChange(),N=c,w.AddModifiedElement(c+1,m+1),b=S-1-i),y>=0&&(u=this.m_reverseHistory[y],i=u[0],A=1,k=u.length-1)}while(--y>=-1);g=w.getChanges()}return this.ConcatenateChanges(f,g)}ComputeRecursionPoint(e,t,n,r,i,o,s){let a=0,l=0,u=0,c=0,h=0,d=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(r-n),p=m+1,C=new Int32Array(p),v=new Int32Array(p),_=r-n,f=t-e,g=e-n,w=t-r,A=f-_,k=A%2===0;C[_]=e,v[f]=t,s[0]=!1;for(let b=1;b<=m/2+1;b++){let N=0,y=0;u=this.ClipDiagonalBound(_-b,b,_,p),c=this.ClipDiagonalBound(_+b,b,_,p);for(let L=u;L<=c;L+=2){L===u||L<c&&C[L-1]<C[L+1]?a=C[L+1]:a=C[L-1]+1,l=a-(L-_)-g;const P=a;for(;a<t&&l<r&&this.ElementsAreEqual(a+1,l+1);)a++,l++;if(C[L]=a,a+l>N+y&&(N=a,y=l),!k&&Math.abs(L-f)<=b-1&&a>=v[L])return i[0]=a,o[0]=l,P<=v[L]&&1447>0&&b<=1447+1?this.WALKTRACE(_,u,c,g,f,h,d,w,C,v,a,t,i,l,r,o,k,s):null}const S=(N-e+(y-n)-b)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(N,S))return s[0]=!0,i[0]=N,o[0]=y,S>0&&1447>0&&b<=1447+1?this.WALKTRACE(_,u,c,g,f,h,d,w,C,v,a,t,i,l,r,o,k,s):(e++,n++,[new ut(e,t-e+1,n,r-n+1)]);h=this.ClipDiagonalBound(f-b,b,f,p),d=this.ClipDiagonalBound(f+b,b,f,p);for(let L=h;L<=d;L+=2){L===h||L<d&&v[L-1]>=v[L+1]?a=v[L+1]-1:a=v[L-1],l=a-(L-f)-w;const P=a;for(;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(v[L]=a,k&&Math.abs(L-_)<=b&&a<=C[L])return i[0]=a,o[0]=l,P>=C[L]&&1447>0&&b<=1447+1?this.WALKTRACE(_,u,c,g,f,h,d,w,C,v,a,t,i,l,r,o,k,s):null}if(b<=1447){let L=new Int32Array(c-u+2);L[0]=_-u+1,It.Copy2(C,u,L,1,c-u+1),this.m_forwardHistory.push(L),L=new Int32Array(d-h+2),L[0]=f-h+1,It.Copy2(v,h,L,1,d-h+1),this.m_reverseHistory.push(L)}}return this.WALKTRACE(_,u,c,g,f,h,d,w,C,v,a,t,i,l,r,o,k,s)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=n.originalLength>0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const l=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart),u=this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength);if(u&&!l)break;n.originalStart++,n.modifiedStart++}let a=[null];if(t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)){e[t]=a[0],e.splice(t+1,1),t--;continue}}for(let t=e.length-1;t>=0;t--){const n=e[t];let r=0,i=0;if(t>0){const c=e[t-1];r=c.originalStart+c.originalLength,i=c.modifiedStart+c.modifiedLength}const o=n.originalLength>0,s=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let c=1;;c++){const h=n.originalStart-c,d=n.modifiedStart-c;if(h<r||d<i)break;if(o&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(d,d+n.modifiedLength))break;const m=h===r&&d===i,p=(m?5:0)+this._boundaryScore(h,n.originalLength,d,n.modifiedLength);p>l&&(l=p,a=c)}n.originalStart-=a,n.modifiedStart-=a;const u=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],u)){e[t-1]=u[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const r=e[t-1],i=e[t],o=i.originalStart-r.originalStart-r.originalLength,s=r.originalStart,a=i.originalStart+i.originalLength,l=a-s,u=r.modifiedStart,c=i.modifiedStart+i.modifiedLength,h=c-u;if(o<5&&l<20&&h<20){const d=this._findBetterContiguousSequence(s,l,u,h,o);if(d){const[m,p]=d;(m!==r.originalStart+r.originalLength||p!==r.modifiedStart+r.modifiedLength)&&(r.originalLength=m-r.originalStart,r.modifiedLength=p-r.modifiedStart,i.originalStart=m+o,i.modifiedStart=p+o,i.originalLength=a-i.originalStart,i.modifiedLength=c-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;const o=e+t-i+1,s=n+r-i+1;let a=0,l=0,u=0;for(let c=e;c<o;c++)for(let h=n;h<s;h++){const d=this._contiguousSequenceScore(c,h,i);d>0&&d>a&&(a=d,l=c,u=h)}return a>0?[l,u]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<n;i++){if(!this.ElementsAreEqual(e+i,t+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){const i=this._OriginalRegionIsBoundary(e,t)?1:0,o=this._ModifiedRegionIsBoundary(n,r)?1:0;return i+o}ConcatenateChanges(e,t){let n=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return It.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],It.Copy(t,1,r,e.length,t.length-1),r}else{const r=new Array(e.length+t.length);return It.Copy(e,0,r,0,e.length),It.Copy(t,0,r,e.length,t.length),r}}ChangesOverlap(e,t,n){if(Mt.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Mt.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let i=e.originalLength;const o=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new ut(r,i,o,s),!0}else return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const i=n,o=r-n-1,s=t%2===0;if(e<0){const a=i%2===0;return s===a?0:1}else{const a=o%2===0;return s===a?r-1:r-2}}}var He=Q("wxcJ");const Ts=65,ks=97,Ss=90,Ns=122,ct=46,Ae=47,Ie=92,ht=58,Ls=63;class Gr extends Error{constructor(e,t,n){let r;typeof t=="string"&&t.indexOf("not ")===0?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=e.indexOf(".")!==-1?"property":"argument";let o=`The "${e}" ${i} ${r} of type ${t}`;o+=`. Received type ${typeof n}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function we(e,t){if(typeof e!="string")throw new Gr(t,"string",e)}function ee(e){return e===Ae||e===Ie}function Vn(e){return e===Ae}function ft(e){return e>=Ts&&e<=Ss||e>=ks&&e<=Ns}function hn(e,t,n,r){let i="",o=0,s=-1,a=0,l=0;for(let u=0;u<=e.length;++u){if(u<e.length)l=e.charCodeAt(u);else{if(r(l))break;l=Ae}if(r(l)){if(!(s===u-1||a===1))if(a===2){if(i.length<2||o!==2||i.charCodeAt(i.length-1)!==ct||i.charCodeAt(i.length-2)!==ct){if(i.length>2){const c=i.lastIndexOf(n);c===-1?(i="",o=0):(i=i.slice(0,c),o=i.length-1-i.lastIndexOf(n)),s=u,a=0;continue}else if(i.length!==0){i="",o=0,s=u,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",o=2)}else i.length>0?i+=`${n}${e.slice(s+1,u)}`:i=e.slice(s+1,u),o=u-s-1;s=u,a=0}else l===ct&&a!==-1?++a:a=-1}return i}function zr(e,t){if(t===null||typeof t!="object")throw new Gr("pathObject","Object",t);const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const Ee={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0){if(o=e[i],we(o,"path"),o.length===0)continue}else t.length===0?o=He.a():(o=He.b[`=${t}`]||He.a(),(o===void 0||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===Ie)&&(o=`${t}\\`));const s=o.length;let a=0,l="",u=!1;const c=o.charCodeAt(0);if(s===1)ee(c)&&(a=1,u=!0);else if(ee(c))if(u=!0,ee(o.charCodeAt(1))){let h=2,d=h;for(;h<s&&!ee(o.charCodeAt(h));)h++;if(h<s&&h!==d){const m=o.slice(d,h);for(d=h;h<s&&ee(o.charCodeAt(h));)h++;if(h<s&&h!==d){for(d=h;h<s&&!ee(o.charCodeAt(h));)h++;(h===s||h!==d)&&(l=`\\\\${m}\\${o.slice(d,h)}`,a=h)}}}else a=1;else ft(c)&&o.charCodeAt(1)===ht&&(l=o.slice(0,2),a=2,s>2&&ee(o.charCodeAt(2))&&(u=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(r){if(t.length>0)break}else if(n=`${o.slice(a)}\\${n}`,r=u,u&&t.length>0)break}return n=hn(n,!r,"\\",ee),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){we(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const o=e.charCodeAt(0);if(t===1)return Vn(o)?"\\":e;if(ee(o))if(i=!0,ee(e.charCodeAt(1))){let a=2,l=a;for(;a<t&&!ee(e.charCodeAt(a));)a++;if(a<t&&a!==l){const u=e.slice(l,a);for(l=a;a<t&&ee(e.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&!ee(e.charCodeAt(a));)a++;if(a===t)return`\\\\${u}\\${e.slice(l)}\\`;a!==l&&(r=`\\\\${u}\\${e.slice(l,a)}`,n=a)}}}else n=1;else ft(o)&&e.charCodeAt(1)===ht&&(r=e.slice(0,2),n=2,t>2&&ee(e.charCodeAt(2))&&(i=!0,n=3));let s=n<t?hn(e.slice(n),!i,"\\",ee):"";return s.length===0&&!i&&(s="."),s.length>0&&ee(e.charCodeAt(t-1))&&(s+="\\"),r===void 0?i?`\\${s}`:s:i?`${r}\\${s}`:`${r}${s}`},isAbsolute(e){we(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return ee(n)||t>2&&ft(n)&&e.charCodeAt(1)===ht&&ee(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let o=0;o<e.length;++o){const s=e[o];we(s,"path"),s.length>0&&(t===void 0?t=n=s:t+=`\\${s}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&ee(n.charCodeAt(0))){++i;const o=n.length;o>1&&ee(n.charCodeAt(1))&&(++i,o>2&&(ee(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&ee(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return Ee.normalize(t)},relative(e,t){if(we(e,"from"),we(t,"to"),e===t)return"";const n=Ee.resolve(e),r=Ee.resolve(t);if(n===r)return"";if(e=n.toLowerCase(),t=r.toLowerCase(),e===t)return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===Ie;)i++;let o=e.length;for(;o-1>i&&e.charCodeAt(o-1)===Ie;)o--;const s=o-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===Ie;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===Ie;)l--;const u=l-a,c=s<u?s:u;let h=-1,d=0;for(;d<c;d++){const p=e.charCodeAt(i+d);if(p!==t.charCodeAt(a+d))break;p===Ie&&(h=d)}if(d!==c){if(h===-1)return r}else{if(u>c){if(t.charCodeAt(a+d)===Ie)return r.slice(a+d+1);if(d===2)return r.slice(a+d)}s>c&&(e.charCodeAt(i+d)===Ie?h=d:d===2&&(h=3)),h===-1&&(h=0)}let m="";for(d=i+h+1;d<=o;++d)(d===o||e.charCodeAt(d)===Ie)&&(m+=m.length===0?"..":"\\..");return a+=h,m.length>0?`${m}${r.slice(a,l)}`:(r.charCodeAt(a)===Ie&&++a,r.slice(a,l))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const t=Ee.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Ie){if(t.charCodeAt(1)===Ie){const n=t.charCodeAt(2);if(n!==Ls&&n!==ct)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(ft(t.charCodeAt(0))&&t.charCodeAt(1)===ht&&t.charCodeAt(2)===Ie)return`\\\\?\\${t}`;return e},dirname(e){we(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return ee(i)?e:".";if(ee(i)){if(n=r=1,ee(e.charCodeAt(1))){let a=2,l=a;for(;a<t&&!ee(e.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&ee(e.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&!ee(e.charCodeAt(a));)a++;if(a===t)return e;a!==l&&(n=r=a+1)}}}}else ft(i)&&e.charCodeAt(1)===ht&&(n=t>2&&ee(e.charCodeAt(2))?3:2,r=n);let o=-1,s=!0;for(let a=t-1;a>=r;--a)if(ee(e.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(o===-1){if(n===-1)return".";o=n}return e.slice(0,o)},basename(e,t){t!==void 0&&we(t,"ext"),we(e,"path");let n=0,r=-1,i=!0,o;if(e.length>=2&&ft(e.charCodeAt(0))&&e.charCodeAt(1)===ht&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=n;--o){const l=e.charCodeAt(o);if(ee(l)){if(!i){n=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=n;--o)if(ee(e.charCodeAt(o))){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){we(e,"path");let t=0,n=-1,r=0,i=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===ht&&ft(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const l=e.charCodeAt(a);if(ee(l)){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),l===ct?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:zr.bind(null,"\\"),parse(e){we(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return ee(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(ee(i)){if(r=1,ee(e.charCodeAt(1))){let h=2,d=h;for(;h<n&&!ee(e.charCodeAt(h));)h++;if(h<n&&h!==d){for(d=h;h<n&&ee(e.charCodeAt(h));)h++;if(h<n&&h!==d){for(d=h;h<n&&!ee(e.charCodeAt(h));)h++;h===n?r=h:h!==d&&(r=h+1)}}}}else if(ft(i)&&e.charCodeAt(1)===ht){if(n<=2)return t.root=t.dir=e,t;if(r=2,ee(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let o=-1,s=r,a=-1,l=!0,u=e.length-1,c=0;for(;u>=r;--u){if(i=e.charCodeAt(u),ee(i)){if(!l){s=u+1;break}continue}a===-1&&(l=!1,a=u+1),i===ct?o===-1?o=u:c!==1&&(c=1):o!==-1&&(c=-1)}return a!==-1&&(o===-1||c===0||c===1&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==r?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},De={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:He.a();if(we(i,"path"),i.length===0)continue;t=`${i}/${t}`,n=i.charCodeAt(0)===Ae}return t=hn(t,!n,"/",Vn),n?`/${t}`:t.length>0?t:"."},normalize(e){if(we(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Ae,n=e.charCodeAt(e.length-1)===Ae;return e=hn(e,!t,"/",Vn),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return we(e,"path"),e.length>0&&e.charCodeAt(0)===Ae},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];we(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":De.normalize(t)},relative(e,t){if(we(e,"from"),we(t,"to"),e===t)return"";if(e=De.resolve(e),t=De.resolve(t),e===t)return"";const n=1,r=e.length,i=r-n,o=1,s=t.length-o,a=i<s?i:s;let l=-1,u=0;for(;u<a;u++){const h=e.charCodeAt(n+u);if(h!==t.charCodeAt(o+u))break;h===Ae&&(l=u)}if(u===a)if(s>a){if(t.charCodeAt(o+u)===Ae)return t.slice(o+u+1);if(u===0)return t.slice(o+u)}else i>a&&(e.charCodeAt(n+u)===Ae?l=u:u===0&&(l=0));let c="";for(u=n+l+1;u<=r;++u)(u===r||e.charCodeAt(u)===Ae)&&(c+=c.length===0?"..":"/..");return`${c}${t.slice(o+l)}`},toNamespacedPath(e){return e},dirname(e){if(we(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Ae;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Ae){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&we(t,"ext"),we(e,"path");let n=0,r=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=0;--o){const l=e.charCodeAt(o);if(l===Ae){if(!i){n=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===Ae){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){we(e,"path");let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a===Ae){if(!i){n=s+1;break}continue}r===-1&&(i=!1,r=s+1),a===ct?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:zr.bind(null,"/"),parse(e){we(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===Ae;let r;n?(t.root="/",r=1):r=0;let i=-1,o=0,s=-1,a=!0,l=e.length-1,u=0;for(;l>=r;--l){const c=e.charCodeAt(l);if(c===Ae){if(!a){o=l+1;break}continue}s===-1&&(a=!1,s=l+1),c===ct?i===-1?i=l:u!==1&&(u=1):i!==-1&&(u=-1)}if(s!==-1){const c=o===0&&n?1:o;i===-1||u===0||u===1&&i===s-1&&i===o+1?t.base=t.name=e.slice(c,s):(t.name=e.slice(c,i),t.base=e.slice(c,s),t.ext=e.slice(i,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};De.win32=Ee.win32=Ee,De.posix=Ee.posix=De;const ou=He.c==="win32"?Ee.normalize:De.normalize,su=He.c==="win32"?Ee.resolve:De.resolve,au=He.c==="win32"?Ee.relative:De.relative,lu=He.c==="win32"?Ee.dirname:De.dirname,uu=He.c==="win32"?Ee.basename:De.basename,cu=He.c==="win32"?Ee.extname:De.extname,hu=He.c==="win32"?Ee.sep:De.sep,Es=/^\w[\w\d+.-]*$/,xs=/^\//,Ms=/^\/\//;function Jr(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Es.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!xs.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Ms.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Is(e,t){return!e&&!t?"file":e}function Ds(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==qe&&(t=qe+t):t=qe;break}return t}const de="",qe="/",Fs=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Dt{constructor(e,t,n,r,i,o=!1){typeof e=="object"?(this.scheme=e.scheme||de,this.authority=e.authority||de,this.path=e.path||de,this.query=e.query||de,this.fragment=e.fragment||de):(this.scheme=Is(e,o),this.authority=t||de,this.path=Ds(this.scheme,n||de),this.query=r||de,this.fragment=i||de,Jr(this,o))}static isUri(e){return e instanceof Dt?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}get fsPath(){return Bn(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return t===void 0?t=this.scheme:t===null&&(t=de),n===void 0?n=this.authority:n===null&&(n=de),r===void 0?r=this.path:r===null&&(r=de),i===void 0?i=this.query:i===null&&(i=de),o===void 0?o=this.fragment:o===null&&(o=de),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new Ft(t,n,r,i,o)}static parse(e,t=!1){const n=Fs.exec(e);return n?new Ft(n[2]||de,fn(n[4]||de),fn(n[5]||de),fn(n[7]||de),fn(n[9]||de),t):new Ft(de,de,de,de,de)}static file(e){let t=de;if(fe.d&&(e=e.replace(/\\/g,qe)),e[0]===qe&&e[1]===qe){const n=e.indexOf(qe,2);n===-1?(t=e.substring(2),e=qe):(t=e.substring(2,n),e=e.substring(n)||qe)}return new Ft("file",t,e,de,de)}static from(e){const t=new Ft(e.scheme,e.authority,e.path,e.query,e.fragment);return Jr(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return fe.d&&e.scheme==="file"?n=Dt.file(Ee.join(Bn(e,!0),...t)).path:n=De.join(e.path,...t),e.with({path:n})}toString(e=!1){return Wn(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Dt)return e;{const t=new Ft(e);return t._formatted=e.external,t._fsPath=e._sep===Zr?e.fsPath:null,t}}else return e}}const Zr=fe.d?1:void 0;class Ft extends Dt{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Bn(this,!1)),this._fsPath}toString(e=!1){return e?Wn(this,!0):(this._formatted||(this._formatted=Wn(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Zr),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const Yr={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function Qr(e,t){let n,r=-1;for(let i=0;i<e.length;i++){const o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47)r!==-1&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n!==void 0&&(n+=e.charAt(i));else{n===void 0&&(n=e.substr(0,i));const s=Yr[o];s!==void 0?(r!==-1&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):r===-1&&(r=i)}}return r!==-1&&(n+=encodeURIComponent(e.substring(r))),n!==void 0?n:e}function Os(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=Yr[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function Bn(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,fe.d&&(n=n.replace(/\//g,"\\")),n}function Wn(e,t){const n=t?Os:Qr;let r="",{scheme:i,authority:o,path:s,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(o||i==="file")&&(r+=qe,r+=qe),o){let u=o.indexOf("@");if(u!==-1){const c=o.substr(0,u);o=o.substr(u+1),u=c.indexOf(":"),u===-1?r+=n(c,!1):(r+=n(c.substr(0,u),!1),r+=":",r+=n(c.substr(u+1),!1)),r+="@"}o=o.toLowerCase(),u=o.indexOf(":"),u===-1?r+=n(o,!1):(r+=n(o.substr(0,u),!1),r+=o.substr(u))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){const u=s.charCodeAt(1);u>=65&&u<=90&&(s=`/${String.fromCharCode(u+32)}:${s.substr(3)}`)}else if(s.length>=2&&s.charCodeAt(1)===58){const u=s.charCodeAt(0);u>=65&&u<=90&&(s=`${String.fromCharCode(u+32)}:${s.substr(2)}`)}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),l&&(r+="#",r+=t?l:Qr(l,!1)),r}function Xr(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Xr(e.substr(3)):e}}const Kr=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function fn(e){return e.match(Kr)?e.replace(Kr,t=>Xr(t)):e}class Ve{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Ve(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Ve.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Ve.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<t.column}isBeforeOrEqual(e){return Ve.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber?!0:t.lineNumber<e.lineNumber?!1:e.column<=t.column}static compare(e,t){let n=e.lineNumber|0,r=t.lineNumber|0;if(n===r){let i=e.column|0,o=t.column|0;return i-o}return n-r}clone(){return new Ve(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new Ve(e.lineNumber,e.column)}static isIPosition(e){return e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}}class ve{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return ve.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return ve.containsPosition(this,e)}static containsPosition(e,t){return t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn?!1:!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}containsRange(e){return ve.containsRange(this,e)}static containsRange(e,t){return t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)?!1:!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return ve.strictContainsRange(this,e)}static strictContainsRange(e,t){return t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)?!1:!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return ve.plusRange(this,e)}static plusRange(e,t){let n,r,i,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,o=e.endColumn),new ve(n,r,i,o)}intersectRanges(e){return ve.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,u=t.endColumn;return n<s?(n=s,r=a):n===s&&(r=Math.max(r,a)),i>l?(i=l,o=u):i===l&&(o=Math.min(o,u)),n>i||n===i&&r>o?null:new ve(n,r,i,o)}equalsRange(e){return ve.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return ve.getEndPosition(this)}static getEndPosition(e){return new Ve(e.endLineNumber,e.endColumn)}getStartPosition(){return ve.getStartPosition(this)}static getStartPosition(e){return new Ve(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new ve(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new ve(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return ve.collapseToStart(this)}static collapseToStart(e){return new ve(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new ve(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new ve(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn?!1:!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn?!1:!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const i=e.startLineNumber|0,o=t.startLineNumber|0;if(i===o){const s=e.startColumn|0,a=t.startColumn|0;if(s===a){const l=e.endLineNumber|0,u=t.endLineNumber|0;if(l===u){const c=e.endColumn|0,h=t.endColumn|0;return c-h}return l-u}return s-a}return i-o}const n=e?1:0,r=t?1:0;return n-r}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}}const Ps=3;function ei(e,t,n,r){const i=new Ct(e,t,n);return i.ComputeDiff(r)}class ti{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=Hn(e[r],1),n[r]=qn(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const r=[],i=[],o=[];let s=0;for(let a=t;a<=n;a++){const l=this.lines[a],u=e?this._startColumns[a]:1,c=e?this._endColumns[a]:l.length+1;for(let h=u;h<c;h++)r[s]=l.charCodeAt(h-1),i[s]=a+1,o[s]=h,s++}return new Rs(r,i,o)}}class Rs{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class dn{constructor(e,t,n,r,i,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){let r,i,o,s,a,l,u,c;return e.originalLength===0?(r=0,i=0,o=0,s=0):(r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1)),e.modifiedLength===0?(a=0,l=0,u=0,c=0):(a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),u=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new dn(r,i,o,s,a,l,u,c)}}function Us(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const o=e[r],s=o.originalStart-(n.originalStart+n.originalLength),a=o.modifiedStart-(n.modifiedStart+n.modifiedLength),l=Math.min(s,a);l<Ps?(n.originalLength=o.originalStart+o.originalLength-n.originalStart,n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart):(t.push(o),n=o)}return t}class mn{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,t,n,r,i,o,s){let a,l,u,c,h;if(t.originalLength===0?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),t.modifiedLength===0?(u=r.getStartLineNumber(t.modifiedStart)-1,c=0):(u=r.getStartLineNumber(t.modifiedStart),c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const d=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),m=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let p=ei(d,m,i,!0).changes;s&&(p=Us(p)),h=[];for(let C=0,v=p.length;C<v;C++)h.push(dn.createFromDiffChange(p[C],d,m))}return new mn(a,l,u,c,h)}}class js{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new ti(e),this.modified=new ti(t),this.continueLineDiff=ni(n.maxComputationTime),this.continueCharDiff=ni(n.maxComputationTime===0?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const e=ei(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const s=[];for(let a=0,l=t.length;a<l;a++)s.push(mn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[a],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:s}}const r=[];let i=0,o=0;for(let s=-1,a=t.length;s<a;s++){const l=s+1<a?t[s+1]:null,u=l?l.originalStart:this.originalLines.length,c=l?l.modifiedStart:this.modifiedLines.length;for(;i<u&&o<c;){const h=this.originalLines[i],d=this.modifiedLines[o];if(h!==d){{let m=Hn(h,1),p=Hn(d,1);for(;m>1&&p>1;){const C=h.charCodeAt(m-2),v=d.charCodeAt(p-2);if(C!==v)break;m--,p--}(m>1||p>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,m,o+1,1,p)}{let m=qn(h,1),p=qn(d,1);const C=h.length+1,v=d.length+1;for(;m<C&&p<v;){const _=h.charCodeAt(m-1),f=h.charCodeAt(p-1);if(_!==f)break;m++,p++}(m<C||p<v)&&this._pushTrimWhitespaceCharChange(r,i+1,m,C,o+1,p,v)}}i++,o++}l&&(r.push(mn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,l,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=l.originalLength,o+=l.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,o,s){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,o,s))return;let a;this.shouldComputeCharChanges&&(a=[new dn(t,n,t,r,i,o,i,s)]),e.push(new mn(t,t,i,i,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,o,s){const a=e.length;if(a===0)return!1;const l=e[a-1];return l.originalEndLineNumber===0||l.modifiedEndLineNumber===0?!1:l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===i?(l.originalEndLineNumber=t,l.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new dn(t,n,t,r,i,o,i,s)),!0):!1}}function Hn(e,t){const n=rs(e);return n===-1?t:n+1}function qn(e,t){const n=is(e);return n===-1?t:n+2}function ni(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function ri(e){return e<0?0:e>255?255:e|0}function Ot(e){return e<0?0:e>4294967295?4294967295:e|0}class Vs{constructor(e,t){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class Bs{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Ot(e);const n=this.values,r=this.prefixSum,i=t.length;return i===0?!1:(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Ot(e),t=Ot(t),this.values[e]===t?!1:(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=Ot(e),t=Ot(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),t===0?!1:(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Ot(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,o=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],o=i-this.values[r],e<o)n=r-1;else if(e>=i)t=r+1;else break;return new Vs(r,e-o)}}class Ws{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new Ve(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new Bs(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(t.length===0)return;let n=ns(t);if(n.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);let r=new Uint32Array(n.length-1);for(let i=1;i<n.length;i++)this._lines.splice(e.lineNumber+i-1,0,n[i]),r[i-1]=n[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const Hs="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function qs(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Hs){if(e.indexOf(n)>=0)continue;t+="\\"+n}return t+="\\s]+)",new RegExp(t,"g")}const $s=qs();function Gs(e){let t=$s;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const zs={maxLen:1e3,windowSize:15,timeBudget:150};function ii(e,t,n,r,i=zs){if(n.length>i.maxLen){let u=e-i.maxLen/2;return u<0?u=0:r+=u,n=n.substring(u,e+i.maxLen/2),ii(e,t,n,r,i)}const o=Date.now(),s=e-1-r;let a=-1,l=null;for(let u=1;!(Date.now()-o>=i.timeBudget);u++){const c=s-i.windowSize*u;t.lastIndex=Math.max(0,c);const h=Js(t,n,s,a);if(!h&&l)break;if(l=h,c<=0)break;a=c}if(l){let u={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return t.lastIndex=0,u}return null}function Js(e,t,n,r){let i;for(;i=e.exec(t);){const o=i.index||0;if(o<=n&&e.lastIndex>=n)return i;if(r>0&&o>r)return null}return null}class $n{constructor(e){let t=ri(e);this._defaultValue=t,this._asciiMap=$n._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=ri(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class fu{constructor(){this._actual=new $n(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}}class Zs{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,o=e*t;i<o;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class Ys{constructor(e){let t=0,n=0;for(let i=0,o=e.length;i<o;i++){let[s,a,l]=e[i];a>t&&(t=a),s>n&&(n=s),l>n&&(n=l)}t++,n++;let r=new Zs(n,t,0);for(let i=0,o=e.length;i<o;i++){let[s,a,l]=e[i];r.set(s,a,l)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let Gn=null;function Qs(){return Gn===null&&(Gn=new Ys([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Gn}let zt=null;function Xs(){if(zt===null){zt=new $n(0);const e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let n=0;n<e.length;n++)zt.set(e.charCodeAt(n),1);const t=".,;";for(let n=0;n<t.length;n++)zt.set(t.charCodeAt(n),2)}return zt}class zn{static _createLink(e,t,n,r,i){let o=i-1;do{const s=t.charCodeAt(o),a=e.get(s);if(a!==2)break;o--}while(o>r);if(r>0){const s=t.charCodeAt(r-1),a=t.charCodeAt(o);(s===40&&a===41||s===91&&a===93||s===123&&a===125)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}}static computeLinks(e,t=Qs()){const n=Xs();let r=[];for(let i=1,o=e.getLineCount();i<=o;i++){const s=e.getLineContent(i),a=s.length;let l=0,u=0,c=0,h=1,d=!1,m=!1,p=!1,C=!1;for(;l<a;){let v=!1;const _=s.charCodeAt(l);if(h===13){let f;switch(_){case 40:d=!0,f=0;break;case 41:f=d?0:1;break;case 91:p=!0,m=!0,f=0;break;case 93:p=!1,f=m?0:1;break;case 123:C=!0,f=0;break;case 125:f=C?0:1;break;case 39:f=c===34||c===96?0:1;break;case 34:f=c===39||c===96?0:1;break;case 96:f=c===39||c===34?0:1;break;case 42:f=c===42?1:0;break;case 124:f=c===124?1:0;break;case 32:f=p?0:1;break;default:f=n.get(_)}f===1&&(r.push(zn._createLink(n,s,i,u,l)),v=!0)}else if(h===12){let f;_===91?(m=!0,f=0):f=n.get(_),f===1?v=!0:h=13}else h=t.nextState(h,_),h===0&&(v=!0);v&&(h=1,d=!1,m=!1,C=!1,u=l+1,c=_),l++}h===13&&r.push(zn._createLink(n,s,i,u,a))}return r}}function Ks(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:zn.computeLinks(e)}class Jn{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,r,i){if(e&&t){let o=this.doNavigateValueSet(t,i);if(o)return{range:e,value:o}}if(n&&r){let o=this.doNavigateValueSet(r,i);if(o)return{range:n,value:o}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return n!==null?n:this.textReplace(e,t)}numberReplace(e,t){let n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),r=Number(e),i=parseFloat(e);return!isNaN(r)&&!isNaN(i)&&r===i?r===0&&!t?null:(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,o=e.length;r===null&&i<o;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}Jn.INSTANCE=new Jn;const oi=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var gn;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof pn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:_e.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:oi})})(gn||(gn={}));class pn{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?oi:(this._emitter||(this._emitter=new U),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class ea{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new pn),this._token}cancel(){this._token?this._token instanceof pn&&this._token.cancel():this._token=gn.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof pn&&this._token.dispose():this._token=gn.None}}class Zn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const vn=new Zn,Yn=new Zn,Qn=new Zn,ta=new Array(230),na={},ra=[],ia=Object.create(null),oa=Object.create(null),si=[],Xn=[];for(let e=0;e<=193;e++)si[e]=-1;for(let e=0;e<=126;e++)Xn[e]=-1;(function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let n=[],r=[];for(const i of t){const[o,s,a,l,u,c,h,d,m,p]=i;if(r[a]||(r[a]=!0,ra[a]=l,ia[l]=a,oa[l.toLowerCase()]=a,s&&(si[a]=u,u!==0&&u!==3&&u!==5&&u!==4&&u!==6&&u!==57&&(Xn[u]=a))),!n[u]){if(n[u]=!0,!c)throw new Error(`String representation missing for key code ${u} around scan code ${l}`);vn.define(u,c),Yn.define(u,m||c),Qn.define(u,p||m||c)}h&&(ta[h]=u),d&&(na[d]=u)}Xn[3]=46})();var ai;(function(e){function t(a){return vn.keyCodeToStr(a)}e.toString=t;function n(a){return vn.strToKeyCode(a)}e.fromString=n;function r(a){return Yn.keyCodeToStr(a)}e.toUserSettingsUS=r;function i(a){return Qn.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function o(a){return Yn.strToKeyCode(a)||Qn.strToKeyCode(a)}e.fromUserSettings=o;function s(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return vn.keyCodeToStr(a)}e.toElectronAccelerator=s})(ai||(ai={}));function sa(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class Xe extends ve{constructor(e,t,n,r){super(e,t,n,r);this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Xe.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new Xe(this.startLineNumber,this.startColumn,e,t):new Xe(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Ve(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return this.getDirection()===0?new Xe(e,t,this.endLineNumber,this.endColumn):new Xe(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new Xe(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new Xe(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,t,n,r,i){return i===0?new Xe(e,t,n,r):new Xe(n,r,e,t)}}class aa{constructor(e,t,n){this._tokenBrand=void 0,this.offset=e|0,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}class du{constructor(e,t){this._tokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}class mu{constructor(e,t){this._tokenizationResult2Brand=void 0,this.tokens=e,this.endState=t}}var li;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(li||(li={}));var ui;(function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(ui||(ui={}));var ci;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(ci||(ci={}));var hi;(function(e){e[e.Deprecated=1]="Deprecated"})(hi||(hi={}));var fi;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(fi||(fi={}));var di;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(di||(di={}));var mi;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(mi||(mi={}));var gi;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(gi||(gi={}));var pi;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(pi||(pi={}));var vi;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(vi||(vi={}));var bi;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.emptySelectionClipboard=32]="emptySelectionClipboard",e[e.extraEditorClassName=33]="extraEditorClassName",e[e.fastScrollSensitivity=34]="fastScrollSensitivity",e[e.find=35]="find",e[e.fixedOverflowWidgets=36]="fixedOverflowWidgets",e[e.folding=37]="folding",e[e.foldingStrategy=38]="foldingStrategy",e[e.foldingHighlight=39]="foldingHighlight",e[e.foldingImportsByDefault=40]="foldingImportsByDefault",e[e.unfoldOnClickAfterEndOfLine=41]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=42]="fontFamily",e[e.fontInfo=43]="fontInfo",e[e.fontLigatures=44]="fontLigatures",e[e.fontSize=45]="fontSize",e[e.fontWeight=46]="fontWeight",e[e.formatOnPaste=47]="formatOnPaste",e[e.formatOnType=48]="formatOnType",e[e.glyphMargin=49]="glyphMargin",e[e.gotoLocation=50]="gotoLocation",e[e.hideCursorInOverviewRuler=51]="hideCursorInOverviewRuler",e[e.hover=52]="hover",e[e.inDiffEditor=53]="inDiffEditor",e[e.inlineSuggest=54]="inlineSuggest",e[e.letterSpacing=55]="letterSpacing",e[e.lightbulb=56]="lightbulb",e[e.lineDecorationsWidth=57]="lineDecorationsWidth",e[e.lineHeight=58]="lineHeight",e[e.lineNumbers=59]="lineNumbers",e[e.lineNumbersMinChars=60]="lineNumbersMinChars",e[e.linkedEditing=61]="linkedEditing",e[e.links=62]="links",e[e.matchBrackets=63]="matchBrackets",e[e.minimap=64]="minimap",e[e.mouseStyle=65]="mouseStyle",e[e.mouseWheelScrollSensitivity=66]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=67]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=68]="multiCursorMergeOverlapping",e[e.multiCursorModifier=69]="multiCursorModifier",e[e.multiCursorPaste=70]="multiCursorPaste",e[e.occurrencesHighlight=71]="occurrencesHighlight",e[e.overviewRulerBorder=72]="overviewRulerBorder",e[e.overviewRulerLanes=73]="overviewRulerLanes",e[e.padding=74]="padding",e[e.parameterHints=75]="parameterHints",e[e.peekWidgetDefaultFocus=76]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=77]="definitionLinkOpensInPeek",e[e.quickSuggestions=78]="quickSuggestions",e[e.quickSuggestionsDelay=79]="quickSuggestionsDelay",e[e.readOnly=80]="readOnly",e[e.renameOnType=81]="renameOnType",e[e.renderControlCharacters=82]="renderControlCharacters",e[e.renderFinalNewline=83]="renderFinalNewline",e[e.renderLineHighlight=84]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=85]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=86]="renderValidationDecorations",e[e.renderWhitespace=87]="renderWhitespace",e[e.revealHorizontalRightPadding=88]="revealHorizontalRightPadding",e[e.roundedSelection=89]="roundedSelection",e[e.rulers=90]="rulers",e[e.scrollbar=91]="scrollbar",e[e.scrollBeyondLastColumn=92]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=93]="scrollBeyondLastLine",e[e.scrollPredominantAxis=94]="scrollPredominantAxis",e[e.selectionClipboard=95]="selectionClipboard",e[e.selectionHighlight=96]="selectionHighlight",e[e.selectOnLineNumbers=97]="selectOnLineNumbers",e[e.showFoldingControls=98]="showFoldingControls",e[e.showUnused=99]="showUnused",e[e.snippetSuggestions=100]="snippetSuggestions",e[e.smartSelect=101]="smartSelect",e[e.smoothScrolling=102]="smoothScrolling",e[e.stickyTabStops=103]="stickyTabStops",e[e.stopRenderingLineAfter=104]="stopRenderingLineAfter",e[e.suggest=105]="suggest",e[e.suggestFontSize=106]="suggestFontSize",e[e.suggestLineHeight=107]="suggestLineHeight",e[e.suggestOnTriggerCharacters=108]="suggestOnTriggerCharacters",e[e.suggestSelection=109]="suggestSelection",e[e.tabCompletion=110]="tabCompletion",e[e.tabIndex=111]="tabIndex",e[e.unusualLineTerminators=112]="unusualLineTerminators",e[e.useShadowDOM=113]="useShadowDOM",e[e.useTabStops=114]="useTabStops",e[e.wordSeparators=115]="wordSeparators",e[e.wordWrap=116]="wordWrap",e[e.wordWrapBreakAfterCharacters=117]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=118]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=119]="wordWrapColumn",e[e.wordWrapOverride1=120]="wordWrapOverride1",e[e.wordWrapOverride2=121]="wordWrapOverride2",e[e.wrappingIndent=122]="wrappingIndent",e[e.wrappingStrategy=123]="wrappingStrategy",e[e.showDeprecated=124]="showDeprecated",e[e.inlayHints=125]="inlayHints",e[e.editorClassName=126]="editorClassName",e[e.pixelRatio=127]="pixelRatio",e[e.tabFocusMode=128]="tabFocusMode",e[e.layoutInfo=129]="layoutInfo",e[e.wrappingInfo=130]="wrappingInfo"})(bi||(bi={}));var wi;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(wi||(wi={}));var yi;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(yi||(yi={}));var Ci;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Ci||(Ci={}));var _i;(function(e){e[e.Other=0]="Other",e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(_i||(_i={}));var Ai;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Ai||(Ai={}));var Kn;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.MAX_VALUE=126]="MAX_VALUE"})(Kn||(Kn={}));var er;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(er||(er={}));var tr;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(tr||(tr={}));var Ti;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Ti||(Ti={}));var ki;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(ki||(ki={}));var Si;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(Si||(Si={}));var Ni;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Ni||(Ni={}));var Li;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(Li||(Li={}));var Ei;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Ei||(Ei={}));var xi;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(xi||(xi={}));var Mi;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Mi||(Mi={}));var nr;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(nr||(nr={}));var Ii;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Ii||(Ii={}));var Di;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(Di||(Di={}));var Fi;(function(e){e[e.Deprecated=1]="Deprecated"})(Fi||(Fi={}));var Oi;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Oi||(Oi={}));var Pi;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(Pi||(Pi={}));var Ri;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Ri||(Ri={}));var Ui;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Ui||(Ui={}));class Jt{static chord(e,t){return sa(e,t)}}Jt.CtrlCmd=2048,Jt.Shift=1024,Jt.Alt=512,Jt.WinCtrl=256;function la(){return{editor:void 0,languages:void 0,CancellationTokenSource:ea,Emitter:U,KeyCode:Kn,KeyMod:Jt,Position:Ve,Range:ve,Selection:Xe,SelectionDirection:nr,MarkerSeverity:er,MarkerTag:tr,Uri:Dt,Token:aa}}var Pt=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(h){s(h)}}function l(c){try{u(r.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class ua extends Ws{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=ii(e.column,Gs(t),this._lines[e.lineNumber-1],0);return n?new ve(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",o=0,s=[];return{*[Symbol.iterator](){for(;;)if(o<s.length){const a=i.substring(s[o].start,s[o].end);o+=1,yield a}else if(r<t.length)i=t[r],s=n(i,e),o=0,r+=1;else break}}}getLineWords(e,t){let n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(const o of r)i.push({word:n.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return i}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&!(r[0].length===0);)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let o=n+1;o<r;o++)i.push(this._lines[o]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!Ve.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let i=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>i&&(n=i,r=!0)}return r?{lineNumber:t,column:n}:e}}class Rt{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new ua(Dt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;let n=this._models[e];n.onEvents(t)}acceptRemovedModel(e){if(!this._models[e])return;delete this._models[e]}computeDiff(e,t,n,r){return Pt(this,void 0,void 0,function*(){const i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;const s=i.getLinesContent(),a=o.getLinesContent(),l=new js(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:r}),u=l.computeDiff(),c=u.changes.length>0?!1:this._modelsAreIdentical(i,o);return{quitEarly:u.quitEarly,identical:c,changes:u.changes}})}_modelsAreIdentical(e,t){const n=e.getLineCount(),r=t.getLineCount();if(n!==r)return!1;for(let i=1;i<=n;i++){const o=e.getLineContent(i),s=t.getLineContent(i);if(o!==s)return!1}return!0}computeMoreMinimalEdits(e,t){return Pt(this,void 0,void 0,function*(){const n=this._getModel(e);if(!n)return t;const r=[];let i;t=t.slice(0).sort((o,s)=>{if(o.range&&s.range)return ve.compareRangesUsingStarts(o.range,s.range);let a=o.range?0:1,l=s.range?0:1;return a-l});for(let{range:o,text:s,eol:a}of t){if(typeof a=="number"&&(i=a),ve.isEmpty(o)&&!s)continue;const l=n.getValueInRange(o);if(s=s.replace(/\r\n|\n|\r/g,n.eol),l===s)continue;if(Math.max(s.length,l.length)>Rt._diffLimit){r.push({range:o,text:s});continue}const u=As(l,s,!1),c=n.offsetAt(ve.lift(o).getStartPosition());for(const h of u){const d=n.positionAt(c+h.originalStart),m=n.positionAt(c+h.originalStart+h.originalLength),p={text:s.substr(h.modifiedStart,h.modifiedLength),range:{startLineNumber:d.lineNumber,startColumn:d.column,endLineNumber:m.lineNumber,endColumn:m.column}};n.getValueInRange(p.range)!==p.text&&r.push(p)}}return typeof i=="number"&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r})}computeLinks(e){return Pt(this,void 0,void 0,function*(){let t=this._getModel(e);return t?Ks(t):null})}textualSuggest(e,t,n,r){return Pt(this,void 0,void 0,function*(){const i=new at(!0),o=new RegExp(n,r),s=new Set;e:for(let a of e){const l=this._getModel(a);if(!l)continue;for(let u of l.words(o)){if(u===t||!isNaN(Number(u)))continue;if(s.add(u),s.size>Rt._suggestionsLimit)break e}}return{words:Array.from(s),duration:i.elapsed()}})}computeWordRanges(e,t,n,r){return Pt(this,void 0,void 0,function*(){let i=this._getModel(e);if(!i)return Object.create(null);const o=new RegExp(n,r),s=Object.create(null);for(let a=t.startLineNumber;a<t.endLineNumber;a++){let l=i.getLineWords(a,o);for(const u of l){if(!isNaN(Number(u.word)))continue;let c=s[u.word];c||(c=[],s[u.word]=c),c.push({startLineNumber:a,startColumn:u.startColumn,endLineNumber:a,endColumn:u.endColumn})}}return s})}navigateValueSet(e,t,n,r,i){return Pt(this,void 0,void 0,function*(){let o=this._getModel(e);if(!o)return null;let s=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let a=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!l)return null;let u=o.getValueInRange(l),c=Jn.INSTANCE.navigateValueSet(t,a,l,u,n);return c})}loadForeignModule(e,t,n){const r=(s,a)=>this._host.fhr(s,a),i=Qo(n,r);let o={host:i,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve(ln(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}Rt._diffLimit=1e5,Rt._suggestionsLimit=1e4;function gu(e){return new Rt(e,null)}typeof importScripts=="function"&&(fe.a.monaco=la());let rr=!1;function ji(e){if(rr)return;rr=!0;const t=new Br(n=>{self.postMessage(n)},n=>new Rt(n,e));self.onmessage=n=>{t.onmessage(n.data)}}self.onmessage=e=>{rr||ji(null)};function bn(e,t){t===void 0&&(t=!1);var n=e.length,r=0,i="",o=0,s=16,a=0,l=0,u=0,c=0,h=0;function d(g,w){for(var A=0,k=0;A<g||!w;){var b=e.charCodeAt(r);if(b>=48&&b<=57)k=k*16+b-48;else if(b>=65&&b<=70)k=k*16+b-65+10;else if(b>=97&&b<=102)k=k*16+b-97+10;else break;r++,A++}return A<g&&(k=-1),k}function m(g){r=g,i="",o=0,s=16,h=0}function p(){var g=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Ut(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Ut(e.charCodeAt(r)))for(r++;r<e.length&&Ut(e.charCodeAt(r));)r++;else return h=3,e.substring(g,r);var w=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Ut(e.charCodeAt(r))){for(r++;r<e.length&&Ut(e.charCodeAt(r));)r++;w=r}else h=3;return e.substring(g,w)}function C(){for(var g="",w=r;;){if(r>=n){g+=e.substring(w,r),h=2;break}var A=e.charCodeAt(r);if(A===34){g+=e.substring(w,r),r++;break}if(A===92){if(g+=e.substring(w,r),r++,r>=n){h=2;break}var k=e.charCodeAt(r++);switch(k){case 34:g+='"';break;case 92:g+="\\";break;case 47:g+="/";break;case 98:g+="\b";break;case 102:g+="\f";break;case 110:g+=`
`;break;case 114:g+="\r";break;case 116:g+=" ";break;case 117:var b=d(4,!0);b>=0?g+=String.fromCharCode(b):h=4;break;default:h=5}w=r;continue}if(A>=0&&A<=31)if(Zt(A)){g+=e.substring(w,r),h=2;break}else h=6;r++}return g}function v(){if(i="",h=0,o=r,l=a,c=u,r>=n)return o=n,s=17;var g=e.charCodeAt(r);if(ir(g)){do r++,i+=String.fromCharCode(g),g=e.charCodeAt(r);while(ir(g));return s=15}if(Zt(g))return r++,i+=String.fromCharCode(g),g===13&&e.charCodeAt(r)===10&&(r++,i+=`
`),a++,u=r,s=14;switch(g){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=C(),s=10;case 47:var w=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Zt(e.charCodeAt(r));)r++;return i=e.substring(w,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;for(var A=n-1,k=!1;r<A;){var b=e.charCodeAt(r);if(b===42&&e.charCodeAt(r+1)===47){r+=2,k=!0;break}r++,Zt(b)&&(b===13&&e.charCodeAt(r)===10&&r++,a++,u=r)}return k||(r++,h=1),i=e.substring(w,r),s=13}return i+=String.fromCharCode(g),r++,s=16;case 45:if(i+=String.fromCharCode(g),r++,r===n||!Ut(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=p(),s=11;default:for(;r<n&&_(g);)r++,g=e.charCodeAt(r);if(o!==r){i=e.substring(o,r);switch(i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(g),r++,s=16}}function _(g){if(ir(g)||Zt(g))return!1;switch(g){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function f(){var g;do g=v();while(g>=12&&g<=15);return g}return{setPosition:m,getPosition:function(){return r},scan:t?f:v,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-c},getTokenError:function(){return h}}}function ir(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Zt(e){return e===10||e===13||e===8232||e===8233}function Ut(e){return e>=48&&e<=57}function Vi(e,t,n){var r,i,o,s,a;if(t){for(s=t.offset,a=s+t.length,o=s;o>0&&!wn(e,o-1);)o--;for(var l=a;l<e.length&&!wn(e,l);)l++;i=e.substring(o,l),r=ca(i,n)}else i=e,r=0,o=0,s=0,a=e.length;var u=ha(n,e),c=!1,h=0,d;n.insertSpaces?d=or(" ",n.tabSize||4):d=" ";var m=bn(i,!1),p=!1;function C(){return u+or(d,r+h)}function v(){var P=m.scan();for(c=!1;P===15||P===14;)c=c||P===14,P=m.scan();return p=P===16||m.getTokenError()!==0,P}var _=[];function f(P,G,K){!p&&(!t||G<a&&K>s)&&e.substring(G,K)!==P&&_.push({offset:G,length:K-G,content:P})}var g=v();if(g!==17){var w=m.getTokenOffset()+o,A=or(d,r);f(A,o,w)}for(;g!==17;){for(var k=m.getTokenOffset()+m.getTokenLength()+o,b=v(),N="",y=!1;!c&&(b===12||b===13);){var S=m.getTokenOffset()+o;f(" ",k,S),k=m.getTokenOffset()+m.getTokenLength()+o,y=b===12,N=y?C():"",b=v()}if(b===2)g!==1&&(h--,N=C());else if(b===4)g!==3&&(h--,N=C());else{switch(g){case 3:case 1:h++,N=C();break;case 5:case 12:N=C();break;case 13:c?N=C():y||(N=" ");break;case 6:y||(N=" ");break;case 10:if(b===6){y||(N="");break}case 7:case 8:case 9:case 11:case 2:case 4:b===12||b===13?y||(N=" "):b!==5&&b!==17&&(p=!0);break;case 16:p=!0;break}c&&(b===12||b===13)&&(N=C())}b===17&&(N=n.insertFinalNewline?u:"");var L=m.getTokenOffset()+o;f(N,k,L),g=b}return _}function or(e,t){for(var n="",r=0;r<t;r++)n+=e;return n}function ca(e,t){for(var n=0,r=0,i=t.tabSize||4;n<e.length;){var o=e.charAt(n);if(o===" ")r++;else if(o===" ")r+=i;else break;n++}return Math.floor(r/i)}function ha(e,t){for(var n=0;n<t.length;n++){var r=t.charAt(n);if(r==="\r")return n+1<t.length&&t.charAt(n+1)===`
`?`\r
`:"\r";if(r===`
`)return`
`}return e&&e.eol||`
`}function wn(e,t){return`\r
`.indexOf(e.charAt(t))!==-1}var Yt;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Yt||(Yt={}));function fa(e,t){var n=[],r=new Object,i=void 0,o={value:{},offset:0,length:0,type:"object",parent:void 0},s=!1;function a(l,u,c,h){o.value=l,o.offset=u,o.length=c,o.type=h,o.colonOffset=void 0,i=o}try{yn(e,{onObjectBegin:function(l,u){if(t<=l)throw r;i=void 0,s=t>l,n.push("")},onObjectProperty:function(l,u,c){if(t<u)throw r;if(a(l,u,c,"property"),n[n.length-1]=l,t<=u+c)throw r},onObjectEnd:function(l,u){if(t<=l)throw r;i=void 0,n.pop()},onArrayBegin:function(l,u){if(t<=l)throw r;i=void 0,n.push(0)},onArrayEnd:function(l,u){if(t<=l)throw r;i=void 0,n.pop()},onLiteralValue:function(l,u,c){if(t<u)throw r;if(a(l,u,c,qi(l)),t<=u+c)throw r},onSeparator:function(l,u,c){if(t<=u)throw r;if(l===":"&&i&&i.type==="property")i.colonOffset=u,s=!1,i=void 0;else if(l===","){var h=n[n.length-1];typeof h=="number"?n[n.length-1]=h+1:(s=!0,n[n.length-1]=""),i=void 0}}})}catch(l){if(l!==r)throw l}return{path:n,previousNode:i,isAtPropertyKey:s,matches:function(l){for(var u=0,c=0;u<l.length&&c<n.length;c++)if(l[u]===n[c]||l[u]==="*")u++;else if(l[u]!=="**")return!1;return u===l.length}}}function da(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=Yt.DEFAULT);var r=null,i=[],o=[];function s(l){Array.isArray(i)?i.push(l):r!==null&&(i[r]=l)}var a={onObjectBegin:function(){var l={};s(l),o.push(i),i=l,r=null},onObjectProperty:function(l){r=l},onObjectEnd:function(){i=o.pop()},onArrayBegin:function(){var l=[];s(l),o.push(i),i=l,r=null},onArrayEnd:function(){i=o.pop()},onLiteralValue:s,onError:function(l,u,c){t.push({error:l,offset:u,length:c})}};return yn(e,a,n),i[0]}function Bi(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=Yt.DEFAULT);var r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(l){r.type==="property"&&(r.length=l-r.offset,r=r.parent)}function o(l){return r.children.push(l),l}var s={onObjectBegin:function(l){r=o({type:"object",offset:l,length:-1,parent:r,children:[]})},onObjectProperty:function(l,u,c){r=o({type:"property",offset:u,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:l,offset:u,length:c,parent:r})},onObjectEnd:function(l,u){i(l+u),r.length=l+u-r.offset,r=r.parent,i(l+u)},onArrayBegin:function(l,u){r=o({type:"array",offset:l,length:-1,parent:r,children:[]})},onArrayEnd:function(l,u){r.length=l+u-r.offset,r=r.parent,i(l+u)},onLiteralValue:function(l,u,c){o({type:qi(l),offset:u,length:c,parent:r,value:l}),i(u+c)},onSeparator:function(l,u,c){r.type==="property"&&(l===":"?r.colonOffset=u:l===","&&i(u))},onError:function(l,u,c){t.push({error:l,offset:u,length:c})}};yn(e,s,n);var a=r.children[0];return a&&delete a.parent,a}function sr(e,t){if(!e)return;for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];if(typeof o=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var s=!1,a=0,l=n.children;a<l.length;a++){var u=l[a];if(Array.isArray(u.children)&&u.children[0].value===o){n=u.children[1],s=!0;break}}if(!s)return}else{var c=o;if(n.type!=="array"||c<0||!Array.isArray(n.children)||c>=n.children.length)return;n=n.children[c]}}return n}function Wi(e){if(!e.parent||!e.parent.children)return[];var t=Wi(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;t.push(n)}else if(e.parent.type==="array"){var r=e.parent.children.indexOf(e);r!==-1&&t.push(r)}return t}function ar(e){switch(e.type){case"array":return e.children.map(ar);case"object":for(var t=Object.create(null),n=0,r=e.children;n<r.length;n++){var i=r[n],o=i.children[1];o&&(t[i.children[0].value]=ar(o))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function ma(e,t,n){return n===void 0&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function Hi(e,t,n){if(n===void 0&&(n=!1),ma(e,t,n)){var r=e.children;if(Array.isArray(r))for(var i=0;i<r.length&&r[i].offset<=t;i++){var o=Hi(r[i],t,n);if(o)return o}return e}return}function yn(e,t,n){n===void 0&&(n=Yt.DEFAULT);var r=bn(e,!1);function i(y){return y?function(){return y(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function o(y){return y?function(S){return y(S,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var s=i(t.onObjectBegin),a=o(t.onObjectProperty),l=i(t.onObjectEnd),u=i(t.onArrayBegin),c=i(t.onArrayEnd),h=o(t.onLiteralValue),d=o(t.onSeparator),m=i(t.onComment),p=o(t.onError),C=n&&n.disallowComments,v=n&&n.allowTrailingComma;function _(){for(;;){var y=r.scan();switch(r.getTokenError()){case 4:f(14);break;case 5:f(15);break;case 3:f(13);break;case 1:C||f(11);break;case 2:f(12);break;case 6:f(16);break}switch(y){case 12:case 13:C?f(10):m();break;case 16:f(1);break;case 15:case 14:break;default:return y}}}function f(y,S,L){if(S===void 0&&(S=[]),L===void 0&&(L=[]),p(y),S.length+L.length>0)for(var P=r.getToken();P!==17;){if(S.indexOf(P)!==-1){_();break}else if(L.indexOf(P)!==-1)break;P=_()}}function g(y){var S=r.getTokenValue();return y?h(S):a(S),_(),!0}function w(){switch(r.getToken()){case 11:var y=r.getTokenValue(),S=Number(y);isNaN(S)&&(f(2),S=0),h(S);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return _(),!0}function A(){return r.getToken()!==10?(f(3,[],[2,5]),!1):(g(!1),r.getToken()===6?(d(":"),_(),N()||f(4,[],[2,5])):f(5,[],[2,5]),!0)}function k(){s(),_();for(var y=!1;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(y||f(4,[],[]),d(","),_(),r.getToken()===2&&v)break}else y&&f(6,[],[]);A()||f(4,[],[2,5]),y=!0}return l(),r.getToken()!==2?f(7,[2],[]):_(),!0}function b(){u(),_();for(var y=!1;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(y||f(4,[],[]),d(","),_(),r.getToken()===4&&v)break}else y&&f(6,[],[]);N()||f(4,[],[4,5]),y=!0}return c(),r.getToken()!==4?f(8,[4],[]):_(),!0}function N(){switch(r.getToken()){case 3:return b();case 1:return k();case 10:return g(!0);default:return w()}}return _(),r.getToken()===17?n.allowEmptyContent?!0:(f(4,[],[]),!1):N()?(r.getToken()!==17&&f(9,[],[]),!0):(f(4,[],[]),!1)}function ga(e,t){var n=bn(e),r=[],i,o=0,s;do{s=n.getPosition(),i=n.scan();switch(i){case 12:case 13:case 17:o!==s&&r.push(e.substring(o,s)),t!==void 0&&r.push(n.getTokenValue().replace(/[^\r\n]/g,t)),o=n.getPosition();break}}while(i!==17);return r.join("")}function qi(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function pu(e,t,n){return $i(e,t,void 0,n)}function $i(e,t,n,r){for(var i,o=t.slice(),s=[],a=Bi(e,s),l=void 0,u=void 0;o.length>0&&(u=o.pop(),l=sr(a,o),l===void 0&&n!==void 0);)typeof u=="string"?n=(i={},i[u]=n,i):n=[n];if(l)if(l.type==="object"&&typeof u=="string"&&Array.isArray(l.children)){var c=sr(l,[u]);if(c!==void 0)if(n===void 0){if(!c.parent)throw new Error("Malformed AST");var h=l.children.indexOf(c.parent),d=void 0,m=c.parent.offset+c.parent.length;if(h>0){var p=l.children[h-1];d=p.offset+p.length}else if(d=l.offset+1,l.children.length>1){var C=l.children[1];m=C.offset}return _t(e,{offset:d,length:m-d,content:""},r)}else return _t(e,{offset:c.offset,length:c.length,content:JSON.stringify(n)},r);else{if(n===void 0)return[];var v=JSON.stringify(u)+": "+JSON.stringify(n),_=r.getInsertionIndex?r.getInsertionIndex(l.children.map(function(y){return y.children[0].value})):l.children.length,f=void 0;if(_>0){var p=l.children[_-1];f={offset:p.offset+p.length,length:0,content:","+v}}else l.children.length===0?f={offset:l.offset+1,length:0,content:v}:f={offset:l.offset+1,length:0,content:v+","};return _t(e,f,r)}}else if(l.type==="array"&&typeof u=="number"&&Array.isArray(l.children)){var g=u;if(g===-1){var v=""+JSON.stringify(n),f=void 0;if(l.children.length===0)f={offset:l.offset+1,length:0,content:v};else{var p=l.children[l.children.length-1];f={offset:p.offset+p.length,length:0,content:","+v}}return _t(e,f,r)}else if(n===void 0&&l.children.length>=0){var w=u,A=l.children[w],f=void 0;if(l.children.length===1)f={offset:l.offset+1,length:l.length-2,content:""};else if(l.children.length-1===w){var p=l.children[w-1],k=p.offset+p.length,b=l.offset+l.length;f={offset:k,length:b-2-k,content:""}}else f={offset:A.offset,length:l.children[w+1].offset-A.offset,content:""};return _t(e,f,r)}else if(n!==void 0){var f=void 0,v=""+JSON.stringify(n);if(!r.isArrayInsertion&&l.children.length>u){var N=l.children[u];f={offset:N.offset,length:N.length,content:v}}else if(l.children.length===0||u===0)f={offset:l.offset+1,length:0,content:l.children.length===0?v:v+","};else{var _=u>l.children.length?l.children.length:u,p=l.children[_-1];f={offset:p.offset+p.length,length:0,content:","+v}}return _t(e,f,r)}else throw new Error("Can not "+(n===void 0?"remove":r.isArrayInsertion?"insert":"modify")+" Array index "+g+" as length is not sufficient")}else throw new Error("Can not add "+(typeof u!="number"?"index":"property")+" to parent of type "+l.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return _t(e,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(n)},r)}}function _t(e,t,n){if(!n.formattingOptions)return[t];var r=lr(e,t),i=t.offset,o=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;i>0&&!wn(r,i-1);)i--;for(;o<r.length&&!wn(r,o);)o++}for(var s=Vi(r,{offset:i,length:o-i},n.formattingOptions),a=s.length-1;a>=0;a--){var l=s[a];r=lr(r,l),i=Math.min(i,l.offset),o=Math.max(o,l.offset+l.length),o+=l.content.length-l.length}var u=e.length-(r.length-o)-i;return[{offset:i,length:u,content:r.substring(i,o)}]}function lr(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}function vu(e,t){return`\r
`.indexOf(e.charAt(t))!==-1}var jt=bn,bu=fa,pa=da,wu=Bi,yu=sr,va=Hi,ba=Wi,wa=ar,Cu=yn,_u=ga;function Au(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function ya(e,t,n){return Vi(e,t,n)}function Tu(e,t,n,r){return $i(e,t,n,r)}function ku(e,t){for(var n=t.length-1;n>=0;n--)e=lr(e,t[n]);return e}function Qt(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0)return!1;if(typeof e!==typeof t)return!1;if(typeof e!="object")return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Qt(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var o=[];for(r in t)o.push(r);if(o.sort(),!Qt(i,o))return!1;for(n=0;n<i.length;n++)if(!Qt(e[i[n]],t[i[n]]))return!1}return!0}function Re(e){return typeof e=="number"}function nt(e){return typeof e!="undefined"}function Ke(e){return typeof e=="boolean"}function Ca(e){return typeof e=="string"}function Gi(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Xt(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function Su(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Nu(e,t){for(var n="";t>0;)(t&1)===1&&(n+=e),e+=e,t=t>>>1;return n}function Cn(e){return Gi(e,"(?i)")?new RegExp(e.substring(4),"iu"):new RegExp(e,"u")}var zi;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(zi||(zi={}));var _n;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(_n||(_n={}));var $e;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=_n.MAX_VALUE),i===Number.MAX_VALUE&&(i=_n.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){var i=r;return T.objectLiteral(i)&&T.uinteger(i.line)&&T.uinteger(i.character)}e.is=n})($e||($e={}));var he;(function(e){function t(r,i,o,s){if(T.uinteger(r)&&T.uinteger(i)&&T.uinteger(o)&&T.uinteger(s))return{start:$e.create(r,i),end:$e.create(o,s)};if($e.is(r)&&$e.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+o+", "+s+"]")}e.create=t;function n(r){var i=r;return T.objectLiteral(i)&&$e.is(i.start)&&$e.is(i.end)}e.is=n})(he||(he={}));var Kt;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){var i=r;return T.defined(i)&&he.is(i.range)&&(T.string(i.uri)||T.undefined(i.uri))}e.is=n})(Kt||(Kt={}));var Ji;(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){var i=r;return T.defined(i)&&he.is(i.targetRange)&&T.string(i.targetUri)&&(he.is(i.targetSelectionRange)||T.undefined(i.targetSelectionRange))&&(he.is(i.originSelectionRange)||T.undefined(i.originSelectionRange))}e.is=n})(Ji||(Ji={}));var ur;(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){var i=r;return T.numberRange(i.red,0,1)&&T.numberRange(i.green,0,1)&&T.numberRange(i.blue,0,1)&&T.numberRange(i.alpha,0,1)}e.is=n})(ur||(ur={}));var Zi;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){var i=r;return he.is(i.range)&&ur.is(i.color)}e.is=n})(Zi||(Zi={}));var Yi;(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){var i=r;return T.string(i.label)&&(T.undefined(i.textEdit)||Ge.is(i))&&(T.undefined(i.additionalTextEdits)||T.typedArray(i.additionalTextEdits,Ge.is))}e.is=n})(Yi||(Yi={}));var en;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(en||(en={}));var Qi;(function(e){function t(r,i,o,s,a){var l={startLine:r,endLine:i};return T.defined(o)&&(l.startCharacter=o),T.defined(s)&&(l.endCharacter=s),T.defined(a)&&(l.kind=a),l}e.create=t;function n(r){var i=r;return T.uinteger(i.startLine)&&T.uinteger(i.startLine)&&(T.undefined(i.startCharacter)||T.uinteger(i.startCharacter))&&(T.undefined(i.endCharacter)||T.uinteger(i.endCharacter))&&(T.undefined(i.kind)||T.string(i.kind))}e.is=n})(Qi||(Qi={}));var cr;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){var i=r;return T.defined(i)&&Kt.is(i.location)&&T.string(i.message)}e.is=n})(cr||(cr={}));var Ue;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Ue||(Ue={}));var Xi;(function(e){e.Unnecessary=1,e.Deprecated=2})(Xi||(Xi={}));var Ki;(function(e){function t(n){var r=n;return r!=null&&T.string(r.href)}e.is=t})(Ki||(Ki={}));var rt;(function(e){function t(r,i,o,s,a,l){var u={range:r,message:i};return T.defined(o)&&(u.severity=o),T.defined(s)&&(u.code=s),T.defined(a)&&(u.source=a),T.defined(l)&&(u.relatedInformation=l),u}e.create=t;function n(r){var i,o=r;return T.defined(o)&&he.is(o.range)&&T.string(o.message)&&(T.number(o.severity)||T.undefined(o.severity))&&(T.integer(o.code)||T.string(o.code)||T.undefined(o.code))&&(T.undefined(o.codeDescription)||T.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(T.string(o.source)||T.undefined(o.source))&&(T.undefined(o.relatedInformation)||T.typedArray(o.relatedInformation,cr.is))}e.is=n})(rt||(rt={}));var tn;(function(e){function t(r,i){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a={title:r,command:i};return T.defined(o)&&o.length>0&&(a.arguments=o),a}e.create=t;function n(r){var i=r;return T.defined(i)&&T.string(i.title)&&T.string(i.command)}e.is=n})(tn||(tn={}));var Ge;(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){var s=o;return T.objectLiteral(s)&&T.string(s.newText)&&he.is(s.range)}e.is=i})(Ge||(Ge={}));var Vt;(function(e){function t(r,i,o){var s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){var i=r;return i!==void 0&&T.objectLiteral(i)&&T.string(i.label)&&(T.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(T.string(i.description)||i.description===void 0)}e.is=n})(Vt||(Vt={}));var Ne;(function(e){function t(n){var r=n;return typeof r=="string"}e.is=t})(Ne||(Ne={}));var dt;(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){var s=o;return Ge.is(s)&&(Vt.is(s.annotationId)||Ne.is(s.annotationId))}e.is=i})(dt||(dt={}));var An;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){var i=r;return T.defined(i)&&kn.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(An||(An={}));var nn;(function(e){function t(r,i,o){var s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){var i=r;return i&&i.kind==="create"&&T.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||T.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||T.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ne.is(i.annotationId))}e.is=n})(nn||(nn={}));var rn;(function(e){function t(r,i,o,s){var a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){var i=r;return i&&i.kind==="rename"&&T.string(i.oldUri)&&T.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||T.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||T.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ne.is(i.annotationId))}e.is=n})(rn||(rn={}));var on;(function(e){function t(r,i,o){var s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){var i=r;return i&&i.kind==="delete"&&T.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||T.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||T.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ne.is(i.annotationId))}e.is=n})(on||(on={}));var hr;(function(e){function t(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return T.string(i.kind)?nn.is(i)||rn.is(i)||on.is(i):An.is(i)}))}e.is=t})(hr||(hr={}));var Tn=function(){function e(t,n){this.edits=t,this.changeAnnotations=n}return e.prototype.insert=function(t,n,r){var i,o;if(r===void 0?i=Ge.insert(t,n):Ne.is(r)?(o=r,i=dt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=dt.insert(t,n,o)),this.edits.push(i),o!==void 0)return o},e.prototype.replace=function(t,n,r){var i,o;if(r===void 0?i=Ge.replace(t,n):Ne.is(r)?(o=r,i=dt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=dt.replace(t,n,o)),this.edits.push(i),o!==void 0)return o},e.prototype.delete=function(t,n){var r,i;if(n===void 0?r=Ge.del(t):Ne.is(n)?(i=n,r=dt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=dt.del(t,i)),this.edits.push(r),i!==void 0)return i},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),eo=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,n){var r;if(Ne.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),Lu=function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new eo(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(An.is(r)){var i=new Tn(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(r){var i=new Tn(t.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(kn.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){var i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Tn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var i=[];this._workspaceEdit.changes[t]=i,r=new Tn(i),this._textEditChanges[t]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new eo,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Vt.is(n)||Ne.is(n)?i=n:r=n;var o,s;if(i===void 0?o=nn.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=nn.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e.prototype.renameFile=function(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Vt.is(r)||Ne.is(r)?o=r:i=r;var s,a;if(o===void 0?s=rn.create(t,n,i):(a=Ne.is(o)?o:this._changeAnnotations.manage(o),s=rn.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},e.prototype.deleteFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Vt.is(n)||Ne.is(n)?i=n:r=n;var o,s;if(i===void 0?o=on.create(t,r):(s=Ne.is(i)?i:this._changeAnnotations.manage(i),o=on.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e}(),to;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)}e.is=n})(to||(to={}));var no;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)&&T.integer(i.version)}e.is=n})(no||(no={}));var kn;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)&&(i.version===null||T.integer(i.version))}e.is=n})(kn||(kn={}));var ro;(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)&&T.string(i.languageId)&&T.integer(i.version)&&T.string(i.text)}e.is=n})(ro||(ro={}));var it;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(it||(it={})),function(e){function t(n){var r=n;return r===e.PlainText||r===e.Markdown}e.is=t}(it||(it={}));var fr;(function(e){function t(n){var r=n;return T.objectLiteral(n)&&it.is(r.kind)&&T.string(r.value)}e.is=t})(fr||(fr={}));var Fe;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Fe||(Fe={}));var Ce;(function(e){e.PlainText=1,e.Snippet=2})(Ce||(Ce={}));var io;(function(e){e.Deprecated=1})(io||(io={}));var oo;(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){var i=r;return i&&T.string(i.newText)&&he.is(i.insert)&&he.is(i.replace)}e.is=n})(oo||(oo={}));var so;(function(e){e.asIs=1,e.adjustIndentation=2})(so||(so={}));var dr;(function(e){function t(n){return{label:n}}e.create=t})(dr||(dr={}));var ao;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(ao||(ao={}));var Sn;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){var i=r;return T.string(i)||T.objectLiteral(i)&&T.string(i.language)&&T.string(i.value)}e.is=n})(Sn||(Sn={}));var lo;(function(e){function t(n){var r=n;return!!r&&T.objectLiteral(r)&&(fr.is(r.contents)||Sn.is(r.contents)||T.typedArray(r.contents,Sn.is))&&(n.range===void 0||he.is(n.range))}e.is=t})(lo||(lo={}));var uo;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(uo||(uo={}));var co;(function(e){function t(n,r){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s={label:n};return T.defined(r)&&(s.documentation=r),T.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(co||(co={}));var ho;(function(e){e.Text=1,e.Read=2,e.Write=3})(ho||(ho={}));var fo;(function(e){function t(n,r){var i={range:n};return T.number(r)&&(i.kind=r),i}e.create=t})(fo||(fo={}));var et;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(et||(et={}));var mo;(function(e){e.Deprecated=1})(mo||(mo={}));var go;(function(e){function t(n,r,i,o,s){var a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(go||(go={}));var po;(function(e){function t(r,i,o,s,a,l){var u={name:r,detail:i,kind:o,range:s,selectionRange:a};return l!==void 0&&(u.children=l),u}e.create=t;function n(r){var i=r;return i&&T.string(i.name)&&T.number(i.kind)&&he.is(i.range)&&he.is(i.selectionRange)&&(i.detail===void 0||T.string(i.detail))&&(i.deprecated===void 0||T.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(po||(po={}));var vo;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(vo||(vo={}));var bo;(function(e){function t(r,i){var o={diagnostics:r};return i!=null&&(o.only=i),o}e.create=t;function n(r){var i=r;return T.defined(i)&&T.typedArray(i.diagnostics,rt.is)&&(i.only===void 0||T.typedArray(i.only,T.string))}e.is=n})(bo||(bo={}));var wo;(function(e){function t(r,i,o){var s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):tn.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){var i=r;return i&&T.string(i.title)&&(i.diagnostics===void 0||T.typedArray(i.diagnostics,rt.is))&&(i.kind===void 0||T.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||tn.is(i.command))&&(i.isPreferred===void 0||T.boolean(i.isPreferred))&&(i.edit===void 0||hr.is(i.edit))}e.is=n})(wo||(wo={}));var yo;(function(e){function t(r,i){var o={range:r};return T.defined(i)&&(o.data=i),o}e.create=t;function n(r){var i=r;return T.defined(i)&&he.is(i.range)&&(T.undefined(i.command)||tn.is(i.command))}e.is=n})(yo||(yo={}));var Co;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){var i=r;return T.defined(i)&&T.uinteger(i.tabSize)&&T.boolean(i.insertSpaces)}e.is=n})(Co||(Co={}));var _o;(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){var i=r;return T.defined(i)&&he.is(i.range)&&(T.undefined(i.target)||T.string(i.target))}e.is=n})(_o||(_o={}));var Nn;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){var i=r;return i!==void 0&&he.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Nn||(Nn={}));var Eu=[`
`,`\r
`,"\r"],Ao;(function(e){function t(o,s,a,l){return new _a(o,s,a,l)}e.create=t;function n(o){var s=o;return!!(T.defined(s)&&T.string(s.uri)&&(T.undefined(s.languageId)||T.string(s.languageId))&&T.uinteger(s.lineCount)&&T.func(s.getText)&&T.func(s.positionAt)&&T.func(s.offsetAt))}e.is=n;function r(o,s){for(var a=o.getText(),l=i(s,function(p,C){var v=p.range.start.line-C.range.start.line;return v===0?p.range.start.character-C.range.start.character:v}),u=a.length,c=l.length-1;c>=0;c--){var h=l[c],d=o.offsetAt(h.range.start),m=o.offsetAt(h.range.end);if(m<=u)a=a.substring(0,d)+h.newText+a.substring(m,a.length);else throw new Error("Overlapping edit");u=d}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;var a=o.length/2|0,l=o.slice(0,a),u=o.slice(a);i(l,s),i(u,s);for(var c=0,h=0,d=0;c<l.length&&h<u.length;){var m=s(l[c],u[h]);m<=0?o[d++]=l[c++]:o[d++]=u[h++]}for(;c<l.length;)o[d++]=l[c++];for(;h<u.length;)o[d++]=u[h++];return o}})(Ao||(Ao={}));var _a=function(){function e(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(t){if(t){var n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content},e.prototype.update=function(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var t=[],n=this._content,r=!0,i=0;i<n.length;i++){r&&(t.push(i),r=!1);var o=n.charAt(i);r=o==="\r"||o===`
`,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return $e.create(0,t);for(;r<i;){var o=Math.floor((r+i)/2);n[o]>t?i=o:r=o+1}var s=r-1;return $e.create(s,t-n[s])},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),T;(function(e){var t=Object.prototype.toString;function n(m){return typeof m!="undefined"}e.defined=n;function r(m){return typeof m=="undefined"}e.undefined=r;function i(m){return m===!0||m===!1}e.boolean=i;function o(m){return t.call(m)==="[object String]"}e.string=o;function s(m){return t.call(m)==="[object Number]"}e.number=s;function a(m,p,C){return t.call(m)==="[object Number]"&&p<=m&&m<=C}e.numberRange=a;function l(m){return t.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}e.integer=l;function u(m){return t.call(m)==="[object Number]"&&0<=m&&m<=2147483647}e.uinteger=u;function c(m){return t.call(m)==="[object Function]"}e.func=c;function h(m){return m!==null&&typeof m=="object"}e.objectLiteral=h;function d(m,p){return Array.isArray(m)&&m.every(p)}e.typedArray=d})(T||(T={}));var Aa=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},To=function(){function e(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(t){if(t){var n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content},e.prototype.update=function(t,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(e.isIncremental(o)){var s=So(o.range),a=this.offsetAt(s.start),l=this.offsetAt(s.end);this._content=this._content.substring(0,a)+o.text+this._content.substring(l,this._content.length);var u=Math.max(s.start.line,0),c=Math.max(s.end.line,0),h=this._lineOffsets,d=ko(o.text,!1,a);if(c-u===d.length)for(var m=0,p=d.length;m<p;m++)h[m+u+1]=d[m];else d.length<1e4?h.splice.apply(h,Aa([u+1,c-u],d,!1)):this._lineOffsets=h=h.slice(0,u+1).concat(d,h.slice(c+1));var C=o.text.length-(l-a);if(C!==0)for(var m=u+1+d.length,p=h.length;m<p;m++)h[m]=h[m]+C}else if(e.isFull(o))this._content=o.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=n},e.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=ko(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){var o=Math.floor((r+i)/2);n[o]>t?i=o:r=o+1}var s=r-1;return{line:s,character:t-n[s]}},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e.isIncremental=function(t){var n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")},e.isFull=function(t){var n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0},e}(),mr;(function(e){function t(i,o,s,a){return new To(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof To)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){for(var s=i.getText(),a=gr(o.map(Ta),function(p,C){var v=p.range.start.line-C.range.start.line;return v===0?p.range.start.character-C.range.start.character:v}),l=0,u=[],c=0,h=a;c<h.length;c++){var d=h[c],m=i.offsetAt(d.range.start);if(m<l)throw new Error("Overlapping edit");m>l&&u.push(s.substring(l,m)),d.newText.length&&u.push(d.newText),l=i.offsetAt(d.range.end)}return u.push(s.substr(l)),u.join("")}e.applyEdits=r})(mr||(mr={}));function gr(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);gr(r,t),gr(i,t);for(var o=0,s=0,a=0;o<r.length&&s<i.length;){var l=t(r[o],i[s]);l<=0?e[a++]=r[o++]:e[a++]=i[s++]}for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function ko(e,t,n){n===void 0&&(n=0);for(var r=t?[n]:[],i=0;i<e.length;i++){var o=e.charCodeAt(i);(o===13||o===10)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function So(e){var t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Ta(e){var t=So(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var re;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(re||(re={}));var No;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[it.Markdown,it.PlainText],commitCharactersSupport:!0}}}}})(No||(No={}));function ka(e,t){var n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,function(r,i){var o=i[0];return typeof t[o]!="undefined"?t[o]:r}),n}function Sa(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return ka(t,n)}function Bt(e){return Sa}function xu(e){return Bt}var At=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$=Bt(),Na={"color-hex":{errorMessage:$("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:$("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:$("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:$("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:$("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Tt=function(){function e(t,n,r){r===void 0&&(r=0),this.offset=n,this.length=r,this.parent=t}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),La=function(e){At(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="null",i.value=null,i}return t}(Tt),Lo=function(e){At(t,e);function t(n,r,i){var o=e.call(this,n,i)||this;return o.type="boolean",o.value=r,o}return t}(Tt),Ea=function(e){At(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="array",i.items=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(Tt),xa=function(e){At(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="number",i.isInteger=!0,i.value=Number.NaN,i}return t}(Tt),pr=function(e){At(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.type="string",o.value="",o}return t}(Tt),Ma=function(e){At(t,e);function t(n,r,i){var o=e.call(this,n,r)||this;return o.type="property",o.colonOffset=-1,o.keyNode=i,o}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(Tt),Ia=function(e){At(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="object",i.properties=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(Tt);function Oe(e){return Ke(e)?e?{}:{not:{}}:e}var Eo;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Eo||(Eo={}));var Da=function(){function e(t,n){t===void 0&&(t=-1),this.focusOffset=t,this.exclude=n,this.schemas=[]}return e.prototype.add=function(t){this.schemas.push(t)},e.prototype.merge=function(t){Array.prototype.push.apply(this.schemas,t.schemas)},e.prototype.include=function(t){return(this.focusOffset===-1||xo(t,this.focusOffset))&&t!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),vr=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Pe=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(t){for(var n=0,r=t;n<r.length;n++){var i=r[n];this.merge(i)}},e.prototype.merge=function(t){this.problems=this.problems.concat(t.problems)},e.prototype.mergeEnumValues=function(t){if(!this.enumValueMatch&&!t.enumValueMatch&&this.enumValues&&t.enumValues){this.enumValues=this.enumValues.concat(t.enumValues);for(var n=0,r=this.problems;n<r.length;n++){var i=r[n];i.code===re.EnumValueMismatch&&(i.message=$("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map(function(o){return JSON.stringify(o)}).join(", ")))}}},e.prototype.mergePropertyMatch=function(t){this.merge(t),this.propertiesMatches++,(t.enumValueMatch||!t.hasProblems()&&t.propertiesMatches)&&this.propertiesValueMatches++,t.enumValueMatch&&t.enumValues&&t.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(t){var n=this.hasProblems();return n!==t.hasProblems()?n?-1:1:this.enumValueMatch!==t.enumValueMatch?t.enumValueMatch?-1:1:this.primaryValueMatches!==t.primaryValueMatches?this.primaryValueMatches-t.primaryValueMatches:this.propertiesValueMatches!==t.propertiesValueMatches?this.propertiesValueMatches-t.propertiesValueMatches:this.propertiesMatches-t.propertiesMatches},e}();function Fa(e,t){return t===void 0&&(t=[]),new Mo(e,t,[])}function mt(e){return wa(e)}function br(e){return ba(e)}function xo(e,t,n){return n===void 0&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var Mo=function(){function e(t,n,r){n===void 0&&(n=[]),r===void 0&&(r=[]),this.root=t,this.syntaxErrors=n,this.comments=r}return e.prototype.getNodeFromOffset=function(t,n){return n===void 0&&(n=!1),this.root?va(this.root,t,n):void 0},e.prototype.visit=function(t){if(this.root){var n=function(r){var i=t(r),o=r.children;if(Array.isArray(o))for(var s=0;s<o.length&&i;s++)i=n(o[s]);return i};n(this.root)}},e.prototype.validate=function(t,n,r){if(r===void 0&&(r=Ue.Warning),this.root&&n){var i=new Pe;return ke(this.root,n,i,vr.instance),i.problems.map(function(o){var s,a=he.create(t.positionAt(o.location.offset),t.positionAt(o.location.offset+o.location.length));return rt.create(a,o.message,(s=o.severity)!==null&&s!==void 0?s:r,o.code)})}return},e.prototype.getMatchingSchemas=function(t,n,r){n===void 0&&(n=-1);var i=new Da(n,r);return this.root&&t&&ke(this.root,t,new Pe,i),i.schemas},e}();function ke(e,t,n,r){if(!e||!r.include(e))return;var i=e;switch(i.type){case"object":u(i,t,n,r);break;case"array":l(i,t,n,r);break;case"string":a(i,t,n,r);break;case"number":s(i,t,n,r);break;case"property":return ke(i.valueNode,t,n,r)}o(),r.add({node:i,schema:t});function o(){function c(G){return i.type===G||G==="integer"&&i.type==="number"&&i.isInteger}if(Array.isArray(t.type)?t.type.some(c)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||$("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(c(t.type)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||$("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var h=0,d=t.allOf;h<d.length;h++){var m=d[h];ke(i,Oe(m),n,r)}var p=Oe(t.not);if(p){var C=new Pe,v=r.newSub();ke(i,p,C,v),C.hasProblems()||n.problems.push({location:{offset:i.offset,length:i.length},message:$("notSchemaWarning","Matches a schema that is not allowed.")});for(var _=0,f=v.schemas;_<f.length;_++){var g=f[_];g.inverted=!g.inverted,r.add(g)}}var w=function(G,K){for(var Te=[],ge=void 0,ot=0,St=G;ot<St.length;ot++){var an=St[ot],Nt=Oe(an),je=new Pe,bt=r.newSub();if(ke(i,Nt,je,bt),je.hasProblems()||Te.push(Nt),!ge)ge={schema:Nt,validationResult:je,matchingSchemas:bt};else if(!K&&!je.hasProblems()&&!ge.validationResult.hasProblems())ge.matchingSchemas.merge(bt),ge.validationResult.propertiesMatches+=je.propertiesMatches,ge.validationResult.propertiesValueMatches+=je.propertiesValueMatches;else{var Ht=je.compare(ge.validationResult);Ht>0?ge={schema:Nt,validationResult:je,matchingSchemas:bt}:Ht===0&&(ge.matchingSchemas.merge(bt),ge.validationResult.mergeEnumValues(je))}}return Te.length>1&&K&&n.problems.push({location:{offset:i.offset,length:1},message:$("oneOfWarning","Matches multiple schemas when only one must validate.")}),ge&&(n.merge(ge.validationResult),n.propertiesMatches+=ge.validationResult.propertiesMatches,n.propertiesValueMatches+=ge.validationResult.propertiesValueMatches,r.merge(ge.matchingSchemas)),Te.length};Array.isArray(t.anyOf)&&w(t.anyOf,!1),Array.isArray(t.oneOf)&&w(t.oneOf,!0);var A=function(G){var K=new Pe,Te=r.newSub();ke(i,Oe(G),K,Te),n.merge(K),n.propertiesMatches+=K.propertiesMatches,n.propertiesValueMatches+=K.propertiesValueMatches,r.merge(Te)},k=function(G,K,Te){var ge=Oe(G),ot=new Pe,St=r.newSub();ke(i,ge,ot,St),r.merge(St),ot.hasProblems()?Te&&A(Te):K&&A(K)},b=Oe(t.if);if(b&&k(b,Oe(t.then),Oe(t.else)),Array.isArray(t.enum)){for(var N=mt(i),y=!1,S=0,L=t.enum;S<L.length;S++){var P=L[S];if(Qt(N,P)){y=!0;break}}n.enumValues=t.enum,n.enumValueMatch=y,y||n.problems.push({location:{offset:i.offset,length:i.length},code:re.EnumValueMismatch,message:t.errorMessage||$("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(function(G){return JSON.stringify(G)}).join(", "))})}if(nt(t.const)){var N=mt(i);Qt(N,t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:i.offset,length:i.length},code:re.EnumValueMismatch,message:t.errorMessage||$("constWarning","Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}t.deprecationMessage&&i.parent&&n.problems.push({location:{offset:i.parent.offset,length:i.parent.length},severity:Ue.Warning,message:t.deprecationMessage,code:re.Deprecated})}function s(c,h,d,m){var p=c.value;function C(S){var L,P=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(S.toString());return P&&{value:Number(P[1]+(P[2]||"")),multiplier:(((L=P[2])===null||L===void 0?void 0:L.length)||0)-(parseInt(P[3])||0)}}if(Re(h.multipleOf)){var v=-1;if(Number.isInteger(h.multipleOf))v=p%h.multipleOf;else{var _=C(h.multipleOf),f=C(p);if(_&&f){var g=Math.pow(10,Math.abs(f.multiplier-_.multiplier));f.multiplier<_.multiplier?f.value*=g:_.value*=g,v=f.value%_.value}}v!==0&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("multipleOfWarning","Value is not divisible by {0}.",h.multipleOf)})}function w(S,L){return Re(L)?L:Ke(L)&&L?S:void 0}function A(S,L){return!Ke(L)||!L?S:void 0}var k=w(h.minimum,h.exclusiveMinimum);Re(k)&&p<=k&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",k)});var b=w(h.maximum,h.exclusiveMaximum);Re(b)&&p>=b&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",b)});var N=A(h.minimum,h.exclusiveMinimum);Re(N)&&p<N&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("minimumWarning","Value is below the minimum of {0}.",N)});var y=A(h.maximum,h.exclusiveMaximum);Re(y)&&p>y&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("maximumWarning","Value is above the maximum of {0}.",y)})}function a(c,h,d,m){if(Re(h.minLength)&&c.value.length<h.minLength&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("minLengthWarning","String is shorter than the minimum length of {0}.",h.minLength)}),Re(h.maxLength)&&c.value.length>h.maxLength&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("maxLengthWarning","String is longer than the maximum length of {0}.",h.maxLength)}),Ca(h.pattern)){var p=Cn(h.pattern);p.test(c.value)||d.problems.push({location:{offset:c.offset,length:c.length},message:h.patternErrorMessage||h.errorMessage||$("patternWarning",'String does not match the pattern of "{0}".',h.pattern)})}if(h.format)switch(h.format){case"uri":case"uri-reference":{var C=void 0;if(!c.value)C=$("uriEmpty","URI expected.");else{var v=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(c.value);v?!v[2]&&h.format==="uri"&&(C=$("uriSchemeMissing","URI with a scheme is expected.")):C=$("uriMissing","URI is expected.")}C&&d.problems.push({location:{offset:c.offset,length:c.length},message:h.patternErrorMessage||h.errorMessage||$("uriFormatWarning","String is not a URI: {0}",C)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var _=Na[h.format];(!c.value||!_.pattern.exec(c.value))&&d.problems.push({location:{offset:c.offset,length:c.length},message:h.patternErrorMessage||h.errorMessage||_.errorMessage});default:}}function l(c,h,d,m){if(Array.isArray(h.items)){for(var p=h.items,C=0;C<p.length;C++){var v=p[C],_=Oe(v),f=new Pe,g=c.items[C];g?(ke(g,_,f,m),d.mergePropertyMatch(f)):c.items.length>=p.length&&d.propertiesValueMatches++}if(c.items.length>p.length)if(typeof h.additionalItems=="object")for(var w=p.length;w<c.items.length;w++){var f=new Pe;ke(c.items[w],h.additionalItems,f,m),d.mergePropertyMatch(f)}else h.additionalItems===!1&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",p.length)})}else{var A=Oe(h.items);if(A)for(var k=0,b=c.items;k<b.length;k++){var g=b[k],f=new Pe;ke(g,A,f,m),d.mergePropertyMatch(f)}}var N=Oe(h.contains);if(N){var y=c.items.some(function(P){var G=new Pe;return ke(P,N,G,vr.instance),!G.hasProblems()});y||d.problems.push({location:{offset:c.offset,length:c.length},message:h.errorMessage||$("requiredItemMissingWarning","Array does not contain required item.")})}if(Re(h.minItems)&&c.items.length<h.minItems&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("minItemsWarning","Array has too few items. Expected {0} or more.",h.minItems)}),Re(h.maxItems)&&c.items.length>h.maxItems&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("maxItemsWarning","Array has too many items. Expected {0} or fewer.",h.maxItems)}),h.uniqueItems===!0){var S=mt(c),L=S.some(function(P,G){return G!==S.lastIndexOf(P)});L&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("uniqueItemsWarning","Array has duplicate items.")})}}function u(c,h,d,m){for(var p=Object.create(null),C=[],v=0,_=c.properties;v<_.length;v++){var f=_[v],g=f.keyNode.value;p[g]=f.valueNode,C.push(g)}if(Array.isArray(h.required))for(var w=0,A=h.required;w<A.length;w++){var k=A[w];if(!p[k]){var b=c.parent&&c.parent.type==="property"&&c.parent.keyNode,N=b?{offset:b.offset,length:b.length}:{offset:c.offset,length:1};d.problems.push({location:N,message:$("MissingRequiredPropWarning",'Missing property "{0}".',k)})}}var y=function(Go){for(var Mr=C.indexOf(Go);Mr>=0;)C.splice(Mr,1),Mr=C.indexOf(Go)};if(h.properties)for(var S=0,L=Object.keys(h.properties);S<L.length;S++){var k=L[S];y(k);var P=h.properties[k],G=p[k];if(G)if(Ke(P))if(P)d.propertiesMatches++,d.propertiesValueMatches++;else{var f=G.parent;d.problems.push({location:{offset:f.keyNode.offset,length:f.keyNode.length},message:h.errorMessage||$("DisallowedExtraPropWarning","Property {0} is not allowed.",k)})}else{var K=new Pe;ke(G,P,K,m),d.mergePropertyMatch(K)}}if(h.patternProperties)for(var Te=0,ge=Object.keys(h.patternProperties);Te<ge.length;Te++)for(var ot=ge[Te],St=Cn(ot),an=0,Nt=C.slice(0);an<Nt.length;an++){var k=Nt[an];if(St.test(k)){y(k);var G=p[k];if(G){var P=h.patternProperties[ot];if(Ke(P))if(P)d.propertiesMatches++,d.propertiesValueMatches++;else{var f=G.parent;d.problems.push({location:{offset:f.keyNode.offset,length:f.keyNode.length},message:h.errorMessage||$("DisallowedExtraPropWarning","Property {0} is not allowed.",k)})}else{var K=new Pe;ke(G,P,K,m),d.mergePropertyMatch(K)}}}}if(typeof h.additionalProperties=="object")for(var je=0,bt=C;je<bt.length;je++){var k=bt[je],G=p[k];if(G){var K=new Pe;ke(G,h.additionalProperties,K,m),d.mergePropertyMatch(K)}}else if(h.additionalProperties===!1&&C.length>0)for(var Ht=0,Vo=C;Ht<Vo.length;Ht++){var k=Vo[Ht],G=p[k];if(G){var f=G.parent;d.problems.push({location:{offset:f.keyNode.offset,length:f.keyNode.length},message:h.errorMessage||$("DisallowedExtraPropWarning","Property {0} is not allowed.",k)})}}if(Re(h.maxProperties)&&(c.properties.length>h.maxProperties&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("MaxPropWarning","Object has more properties than limit of {0}.",h.maxProperties)})),Re(h.minProperties)&&(c.properties.length<h.minProperties&&d.problems.push({location:{offset:c.offset,length:c.length},message:$("MinPropWarning","Object has fewer properties than the required number of {0}",h.minProperties)})),h.dependencies)for(var Nr=0,Bo=Object.keys(h.dependencies);Nr<Bo.length;Nr++){var g=Bo[Nr],vl=p[g];if(vl){var Lr=h.dependencies[g];if(Array.isArray(Lr))for(var Er=0,Wo=Lr;Er<Wo.length;Er++){var Ho=Wo[Er];p[Ho]?d.propertiesValueMatches++:d.problems.push({location:{offset:c.offset,length:c.length},message:$("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",Ho,g)})}else{var P=Oe(Lr);if(P){var K=new Pe;ke(c,P,K,m),d.mergePropertyMatch(K)}}}}var qo=Oe(h.propertyNames);if(qo)for(var xr=0,$o=c.properties;xr<$o.length;xr++){var bl=$o[xr],g=bl.keyNode;g&&ke(g,qo,d,vr.instance)}}}function Oa(e,t){var n=[],r=-1,i=e.getText(),o=jt(i,!1),s=t&&t.collectComments?[]:void 0;function a(){for(;;){var b=o.scan();h();switch(b){case 12:case 13:Array.isArray(s)&&s.push(he.create(e.positionAt(o.getTokenOffset()),e.positionAt(o.getTokenOffset()+o.getTokenLength())));break;case 15:case 14:break;default:return b}}}function l(b){return o.getToken()===b?(a(),!0):!1}function u(b,N,y,S,L){if(L===void 0&&(L=Ue.Error),n.length===0||y!==r){var P=he.create(e.positionAt(y),e.positionAt(S));n.push(rt.create(P,b,L,N,e.languageId)),r=y}}function c(b,N,y,S,L){y===void 0&&(y=void 0),S===void 0&&(S=[]),L===void 0&&(L=[]);var P=o.getTokenOffset(),G=o.getTokenOffset()+o.getTokenLength();if(P===G&&P>0){for(P--;P>0&&/\s/.test(i.charAt(P));)P--;G=P+1}if(u(b,N,P,G),y&&d(y,!1),S.length+L.length>0)for(var K=o.getToken();K!==17;){if(S.indexOf(K)!==-1){a();break}else if(L.indexOf(K)!==-1)break;K=a()}return y}function h(){switch(o.getTokenError()){case 4:return c($("InvalidUnicode","Invalid unicode sequence in string."),re.InvalidUnicode),!0;case 5:return c($("InvalidEscapeCharacter","Invalid escape character in string."),re.InvalidEscapeCharacter),!0;case 3:return c($("UnexpectedEndOfNumber","Unexpected end of number."),re.UnexpectedEndOfNumber),!0;case 1:return c($("UnexpectedEndOfComment","Unexpected end of comment."),re.UnexpectedEndOfComment),!0;case 2:return c($("UnexpectedEndOfString","Unexpected end of string."),re.UnexpectedEndOfString),!0;case 6:return c($("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),re.InvalidCharacter),!0}return!1}function d(b,N){return b.length=o.getTokenOffset()+o.getTokenLength()-b.offset,N&&a(),b}function m(b){if(o.getToken()!==3)return;var N=new Ea(b,o.getTokenOffset());a();for(var y=0,S=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){S||c($("ValueExpected","Value expected"),re.ValueExpected);var L=o.getTokenOffset();if(a(),o.getToken()===4){S&&u($("TrailingComma","Trailing comma"),re.TrailingComma,L,L+1);continue}}else S&&c($("ExpectedComma","Expected comma"),re.CommaExpected);var P=w(N);P?N.items.push(P):c($("PropertyExpected","Value expected"),re.ValueExpected,void 0,[],[4,5]),S=!0}return o.getToken()!==4?c($("ExpectedCloseBracket","Expected comma or closing bracket"),re.CommaOrCloseBacketExpected,N):d(N,!0)}var p=new pr(void 0,0,0);function C(b,N){var y=new Ma(b,o.getTokenOffset(),p),S=_(y);if(!S)if(o.getToken()===16){c($("DoubleQuotesExpected","Property keys must be doublequoted"),re.Undefined);var L=new pr(y,o.getTokenOffset(),o.getTokenLength());L.value=o.getTokenValue(),S=L,a()}else return;y.keyNode=S;var P=N[S.value];if(P?(u($("DuplicateKeyWarning","Duplicate object key"),re.DuplicateKey,y.keyNode.offset,y.keyNode.offset+y.keyNode.length,Ue.Warning),typeof P=="object"&&u($("DuplicateKeyWarning","Duplicate object key"),re.DuplicateKey,P.keyNode.offset,P.keyNode.offset+P.keyNode.length,Ue.Warning),N[S.value]=!0):N[S.value]=y,o.getToken()===6)y.colonOffset=o.getTokenOffset(),a();else if(c($("ColonExpected","Colon expected"),re.ColonExpected),o.getToken()===10&&e.positionAt(S.offset+S.length).line<e.positionAt(o.getTokenOffset()).line)return y.length=S.length,y;var G=w(y);return G?(y.valueNode=G,y.length=G.offset+G.length-y.offset,y):c($("ValueExpected","Value expected"),re.ValueExpected,y,[],[2,5])}function v(b){if(o.getToken()!==1)return;var N=new Ia(b,o.getTokenOffset()),y=Object.create(null);a();for(var S=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){S||c($("PropertyExpected","Property expected"),re.PropertyExpected);var L=o.getTokenOffset();if(a(),o.getToken()===2){S&&u($("TrailingComma","Trailing comma"),re.TrailingComma,L,L+1);continue}}else S&&c($("ExpectedComma","Expected comma"),re.CommaExpected);var P=C(N,y);P?N.properties.push(P):c($("PropertyExpected","Property expected"),re.PropertyExpected,void 0,[],[2,5]),S=!0}return o.getToken()!==2?c($("ExpectedCloseBrace","Expected comma or closing brace"),re.CommaOrCloseBraceExpected,N):d(N,!0)}function _(b){if(o.getToken()!==10)return;var N=new pr(b,o.getTokenOffset());return N.value=o.getTokenValue(),d(N,!0)}function f(b){if(o.getToken()!==11)return;var N=new xa(b,o.getTokenOffset());if(o.getTokenError()===0){var y=o.getTokenValue();try{var S=JSON.parse(y);if(!Re(S))return c($("InvalidNumberFormat","Invalid number format."),re.Undefined,N);N.value=S}catch(L){return c($("InvalidNumberFormat","Invalid number format."),re.Undefined,N)}N.isInteger=y.indexOf(".")===-1}return d(N,!0)}function g(b){var N;switch(o.getToken()){case 7:return d(new La(b,o.getTokenOffset()),!0);case 8:return d(new Lo(b,!0,o.getTokenOffset()),!0);case 9:return d(new Lo(b,!1,o.getTokenOffset()),!0);default:return}}function w(b){return m(b)||v(b)||_(b)||f(b)||g(b)}var A=void 0,k=a();return k!==17&&(A=w(A),A?o.getToken()!==17&&c($("End of file expected","End of file expected."),re.Undefined):c($("Invalid symbol","Expected a JSON object, array or literal."),re.Undefined)),new Mo(A,n,s)}function wr(e,t,n){if(e!==null&&typeof e=="object"){var r=t+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var i=`[
`,o=0;o<e.length;o++)i+=r+wr(e[o],r,n),o<e.length-1&&(i+=","),i+=`
`;return i+=t+"]",i}else{var s=Object.keys(e);if(s.length===0)return"{}";for(var i=`{
`,o=0;o<s.length;o++){var a=s[o];i+=r+JSON.stringify(a)+": "+wr(e[a],r,n),o<s.length-1&&(i+=","),i+=`
`}return i+=t+"}",i}}return n(e)}var yr=Bt(),Pa=[",","}","]"],Ra=[":"],Ua=function(){function e(t,n,r,i){n===void 0&&(n=[]),r===void 0&&(r=Promise),i===void 0&&(i={}),this.schemaService=t,this.contributions=n,this.promiseConstructor=r,this.clientCapabilities=i}return e.prototype.doResolve=function(t){for(var n=this.contributions.length-1;n>=0;n--){var r=this.contributions[n].resolveCompletion;if(r){var i=r(t);if(i)return i}}return this.promiseConstructor.resolve(t)},e.prototype.doComplete=function(t,n,r){var i=this,o={items:[],isIncomplete:!1},s=t.getText(),a=t.offsetAt(n),l=r.getNodeFromOffset(a,!0);if(this.isInComment(t,l?l.offset:0,a))return Promise.resolve(o);if(l&&a===l.offset+l.length&&a>0){var u=s[a-1];(l.type==="object"&&u==="}"||l.type==="array"&&u==="]")&&(l=l.parent)}var c=this.getCurrentWord(t,a),h;if(l&&(l.type==="string"||l.type==="number"||l.type==="boolean"||l.type==="null"))h=he.create(t.positionAt(l.offset),t.positionAt(l.offset+l.length));else{var d=a-c.length;d>0&&s[d-1]==='"'&&d--,h=he.create(t.positionAt(d),n)}var m=!1,p={},C={add:function(v){var _=v.label,f=p[_];if(f)f.documentation||(f.documentation=v.documentation),f.detail||(f.detail=v.detail);else{if(_=_.replace(/[\n]/g,"\u21B5"),_.length>60){var g=_.substr(0,57).trim()+"...";p[g]||(_=g)}h&&v.insertText!==void 0&&(v.textEdit=Ge.replace(h,v.insertText)),m&&(v.commitCharacters=v.kind===Fe.Property?Ra:Pa),v.label=_,p[_]=v,o.items.push(v)}},setAsIncomplete:function(){o.isIncomplete=!0},error:function(v){console.error(v)},log:function(v){console.log(v)},getNumberOfProposals:function(){return o.items.length}};return this.schemaService.getSchemaForResource(t.uri,r).then(function(v){var _=[],f=!0,g="",w=void 0;if(l&&l.type==="string"){var A=l.parent;A&&A.type==="property"&&A.keyNode===l&&(f=!A.valueNode,w=A,g=s.substr(l.offset+1,l.length-2),A&&(l=A.parent))}if(l&&l.type==="object"){if(l.offset===a)return o;var k=l.properties;k.forEach(function(S){(!w||w!==S)&&(p[S.keyNode.value]=dr.create("__"))});var b="";f&&(b=i.evaluateSeparatorAfter(t,t.offsetAt(h.end))),v?i.getPropertyCompletions(v,r,l,f,b,C):i.getSchemaLessPropertyCompletions(r,l,g,C);var N=br(l);i.contributions.forEach(function(S){var L=S.collectPropertyCompletions(t.uri,N,c,f,b==="",C);L&&_.push(L)}),!v&&c.length>0&&s.charAt(a-c.length-1)!=='"'&&(C.add({kind:Fe.Property,label:i.getLabelForValue(c),insertText:i.getInsertTextForProperty(c,void 0,!1,b),insertTextFormat:Ce.Snippet,documentation:""}),C.setAsIncomplete())}var y={};return v?i.getValueCompletions(v,r,l,a,t,C,y):i.getSchemaLessValueCompletions(r,l,a,t,C),i.contributions.length>0&&i.getContributedValueCompletions(r,l,a,t,C,_),i.promiseConstructor.all(_).then(function(){if(C.getNumberOfProposals()===0){var S=a;l&&(l.type==="string"||l.type==="number"||l.type==="boolean"||l.type==="null")&&(S=l.offset+l.length);var L=i.evaluateSeparatorAfter(t,S);i.addFillerValueCompletions(y,L,C)}return o})})},e.prototype.getPropertyCompletions=function(t,n,r,i,o,s){var a=this,l=n.getMatchingSchemas(t.schema,r.offset);l.forEach(function(u){if(u.node===r&&!u.inverted){var c=u.schema.properties;c&&Object.keys(c).forEach(function(C){var v=c[C];if(typeof v=="object"&&!v.deprecationMessage&&!v.doNotSuggest){var _={kind:Fe.Property,label:C,insertText:a.getInsertTextForProperty(C,v,i,o),insertTextFormat:Ce.Snippet,filterText:a.getFilterTextForValue(C),documentation:a.fromMarkup(v.markdownDescription)||v.description||""};v.suggestSortText!==void 0&&(_.sortText=v.suggestSortText),_.insertText&&Xt(_.insertText,"$1"+o)&&(_.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(_)}});var h=u.schema.propertyNames;if(typeof h=="object"&&!h.deprecationMessage&&!h.doNotSuggest){var d=function(C,v){v===void 0&&(v=void 0);var _={kind:Fe.Property,label:C,insertText:a.getInsertTextForProperty(C,void 0,i,o),insertTextFormat:Ce.Snippet,filterText:a.getFilterTextForValue(C),documentation:v||a.fromMarkup(h.markdownDescription)||h.description||""};h.suggestSortText!==void 0&&(_.sortText=h.suggestSortText),_.insertText&&Xt(_.insertText,"$1"+o)&&(_.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(_)};if(h.enum)for(var m=0;m<h.enum.length;m++){var p=void 0;h.markdownEnumDescriptions&&m<h.markdownEnumDescriptions.length?p=a.fromMarkup(h.markdownEnumDescriptions[m]):h.enumDescriptions&&m<h.enumDescriptions.length&&(p=h.enumDescriptions[m]),d(h.enum[m],p)}h.const&&d(h.const)}}})},e.prototype.getSchemaLessPropertyCompletions=function(t,n,r,i){var o=this,s=function(l){l.properties.forEach(function(u){var c=u.keyNode.value;i.add({kind:Fe.Property,label:c,insertText:o.getInsertTextForValue(c,""),insertTextFormat:Ce.Snippet,filterText:o.getFilterTextForValue(c),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var a=n.parent.keyNode.value;t.visit(function(l){return l.type==="property"&&l!==n.parent&&l.keyNode.value===a&&l.valueNode&&l.valueNode.type==="object"&&s(l.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(l){l.type==="object"&&l!==n&&s(l)});else n.type==="object"&&i.add({kind:Fe.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:Ce.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(t,n,r,i,o){var s=this,a=r;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(a=n.offset+n.length,n=n.parent),!n){o.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Ce.Snippet,documentation:""}),o.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Ce.Snippet,documentation:""});return}var l=this.evaluateSeparatorAfter(i,a),u=function(m){m.parent&&!xo(m.parent,r,!0)&&o.add({kind:s.getSuggestionKind(m.type),label:s.getLabelTextForMatchingNode(m,i),insertText:s.getInsertTextForMatchingNode(m,i,l),insertTextFormat:Ce.Snippet,documentation:""}),m.type==="boolean"&&s.addBooleanValueCompletion(!m.value,l,o)};if(n.type==="property"&&r>(n.colonOffset||0)){var c=n.valueNode;if(c&&(r>c.offset+c.length||c.type==="object"||c.type==="array"))return;var h=n.keyNode.value;t.visit(function(m){return m.type==="property"&&m.keyNode.value===h&&m.valueNode&&u(m.valueNode),!0}),h==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(l,o)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var d=n.parent.keyNode.value;t.visit(function(m){return m.type==="property"&&m.keyNode.value===d&&m.valueNode&&m.valueNode.type==="array"&&m.valueNode.items.forEach(u),!0})}else n.items.forEach(u)},e.prototype.getValueCompletions=function(t,n,r,i,o,s,a){var l=i,u=void 0,c=void 0;if(r&&(r.type==="string"||r.type==="number"||r.type==="boolean"||r.type==="null")&&(l=r.offset+r.length,c=r,r=r.parent),!r){this.addSchemaValueCompletions(t.schema,"",s,a);return}if(r.type==="property"&&i>(r.colonOffset||0)){var h=r.valueNode;if(h&&i>h.offset+h.length)return;u=r.keyNode.value,r=r.parent}if(r&&(u!==void 0||r.type==="array")){for(var d=this.evaluateSeparatorAfter(o,l),m=n.getMatchingSchemas(t.schema,r.offset,c),p=0,C=m;p<C.length;p++){var v=C[p];if(v.node===r&&!v.inverted&&v.schema){if(r.type==="array"&&v.schema.items)if(Array.isArray(v.schema.items)){var _=this.findItemAtOffset(r,o,i);_<v.schema.items.length&&this.addSchemaValueCompletions(v.schema.items[_],d,s,a)}else this.addSchemaValueCompletions(v.schema.items,d,s,a);if(u!==void 0){var f=!1;if(v.schema.properties){var g=v.schema.properties[u];g&&(f=!0,this.addSchemaValueCompletions(g,d,s,a))}if(v.schema.patternProperties&&!f)for(var w=0,A=Object.keys(v.schema.patternProperties);w<A.length;w++){var k=A[w],b=Cn(k);if(b.test(u)){f=!0;var g=v.schema.patternProperties[k];this.addSchemaValueCompletions(g,d,s,a)}}if(v.schema.additionalProperties&&!f){var g=v.schema.additionalProperties;this.addSchemaValueCompletions(g,d,s,a)}}}}u==="$schema"&&!r.parent&&this.addDollarSchemaCompletions(d,s),a.boolean&&(this.addBooleanValueCompletion(!0,d,s),this.addBooleanValueCompletion(!1,d,s)),a.null&&this.addNullValueCompletion(d,s)}},e.prototype.getContributedValueCompletions=function(t,n,r,i,o,s){if(!n)this.contributions.forEach(function(c){var h=c.collectDefaultCompletions(i.uri,o);h&&s.push(h)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n&&n.type==="property"&&r>(n.colonOffset||0)){var a=n.keyNode.value,l=n.valueNode;if((!l||r<=l.offset+l.length)&&n.parent){var u=br(n.parent);this.contributions.forEach(function(c){var h=c.collectValueCompletions(i.uri,u,a,o);h&&s.push(h)})}}},e.prototype.addSchemaValueCompletions=function(t,n,r,i){var o=this;typeof t=="object"&&(this.addEnumValueCompletions(t,n,r),this.addDefaultValueCompletions(t,n,r),this.collectTypes(t,i),Array.isArray(t.allOf)&&t.allOf.forEach(function(s){return o.addSchemaValueCompletions(s,n,r,i)}),Array.isArray(t.anyOf)&&t.anyOf.forEach(function(s){return o.addSchemaValueCompletions(s,n,r,i)}),Array.isArray(t.oneOf)&&t.oneOf.forEach(function(s){return o.addSchemaValueCompletions(s,n,r,i)}))},e.prototype.addDefaultValueCompletions=function(t,n,r,i){var o=this;i===void 0&&(i=0);var s=!1;if(nt(t.default)){for(var a=t.type,l=t.default,u=i;u>0;u--)l=[l],a="array";r.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(l),insertText:this.getInsertTextForValue(l,n),insertTextFormat:Ce.Snippet,detail:yr("json.suggest.default","Default value")}),s=!0}Array.isArray(t.examples)&&t.examples.forEach(function(c){for(var h=t.type,d=c,m=i;m>0;m--)d=[d],h="array";r.add({kind:o.getSuggestionKind(h),label:o.getLabelForValue(d),insertText:o.getInsertTextForValue(d,n),insertTextFormat:Ce.Snippet}),s=!0}),Array.isArray(t.defaultSnippets)&&t.defaultSnippets.forEach(function(c){var h=t.type,d=c.body,m=c.label,p,C;if(nt(d)){for(var v=t.type,_=i;_>0;_--)d=[d],v="array";p=o.getInsertTextForSnippetValue(d,n),C=o.getFilterTextForSnippetValue(d),m=m||o.getLabelForSnippetValue(d)}else if(typeof c.bodyText=="string"){for(var f="",g="",w="",_=i;_>0;_--)f=f+w+`[
`,g=g+`
`+w+"]",w+=" ",h="array";p=f+w+c.bodyText.split(`
`).join(`
`+w)+g+n,m=m||p,C=p.replace(/[\n]/g,"")}else return;r.add({kind:o.getSuggestionKind(h),label:m,documentation:o.fromMarkup(c.markdownDescription)||c.description,insertText:p,insertTextFormat:Ce.Snippet,filterText:C}),s=!0}),!s&&typeof t.items=="object"&&!Array.isArray(t.items)&&i<5&&this.addDefaultValueCompletions(t.items,n,r,i+1)},e.prototype.addEnumValueCompletions=function(t,n,r){if(nt(t.const)&&r.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(t.const),insertText:this.getInsertTextForValue(t.const,n),insertTextFormat:Ce.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description}),Array.isArray(t.enum))for(var i=0,o=t.enum.length;i<o;i++){var s=t.enum[i],a=this.fromMarkup(t.markdownDescription)||t.description;t.markdownEnumDescriptions&&i<t.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?a=this.fromMarkup(t.markdownEnumDescriptions[i]):t.enumDescriptions&&i<t.enumDescriptions.length&&(a=t.enumDescriptions[i]),r.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,n),insertTextFormat:Ce.Snippet,documentation:a})}},e.prototype.collectTypes=function(t,n){if(Array.isArray(t.enum)||nt(t.const))return;var r=t.type;Array.isArray(r)?r.forEach(function(i){return n[i]=!0}):r&&(n[r]=!0)},e.prototype.addFillerValueCompletions=function(t,n,r){t.object&&r.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Ce.Snippet,detail:yr("defaults.object","New object"),documentation:""}),t.array&&r.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Ce.Snippet,detail:yr("defaults.array","New array"),documentation:""})},e.prototype.addBooleanValueCompletion=function(t,n,r){r.add({kind:this.getSuggestionKind("boolean"),label:t?"true":"false",insertText:this.getInsertTextForValue(t,n),insertTextFormat:Ce.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(t,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+t,insertTextFormat:Ce.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(t,n){var r=this,i=this.schemaService.getRegisteredSchemaIds(function(o){return o==="http"||o==="https"});i.forEach(function(o){return n.add({kind:Fe.Module,label:r.getLabelForValue(o),filterText:r.getFilterTextForValue(o),insertText:r.getInsertTextForValue(o,t),insertTextFormat:Ce.Snippet,documentation:""})})},e.prototype.getLabelForValue=function(t){return JSON.stringify(t)},e.prototype.getFilterTextForValue=function(t){return JSON.stringify(t)},e.prototype.getFilterTextForSnippetValue=function(t){return JSON.stringify(t).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(t){var n=JSON.stringify(t);return n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getInsertTextForPlainText=function(t){return t.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(t,n){var r=JSON.stringify(t,null," ");return r==="{}"?"{$1}"+n:r==="[]"?"[$1]"+n:this.getInsertTextForPlainText(r+n)},e.prototype.getInsertTextForSnippetValue=function(t,n){var r=function(i){return typeof i=="string"&&i[0]==="^"?i.substr(1):JSON.stringify(i)};return wr(t,"",r)+n},e.prototype.getInsertTextForGuessedValue=function(t,n){switch(typeof t){case"object":return t===null?"${1:null}"+n:this.getInsertTextForValue(t,n);case"string":var r=JSON.stringify(t);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),'"${1:'+r+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(t)+"}"+n}return this.getInsertTextForValue(t,n)},e.prototype.getSuggestionKind=function(t){if(Array.isArray(t)){var n=t;t=n.length>0?n[0]:void 0}if(!t)return Fe.Value;switch(t){case"string":return Fe.Value;case"object":return Fe.Module;case"property":return Fe.Property;default:return Fe.Value}},e.prototype.getLabelTextForMatchingNode=function(t,n){switch(t.type){case"array":return"[]";case"object":return"{}";default:var r=n.getText().substr(t.offset,t.length);return r}},e.prototype.getInsertTextForMatchingNode=function(t,n,r){switch(t.type){case"array":return this.getInsertTextForValue([],r);case"object":return this.getInsertTextForValue({},r);default:var i=n.getText().substr(t.offset,t.length)+r;return this.getInsertTextForPlainText(i)}},e.prototype.getInsertTextForProperty=function(t,n,r,i){var o=this.getInsertTextForValue(t,"");if(!r)return o;var s=o+": ",a,l=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var u=n.defaultSnippets[0].body;nt(u)&&(a=this.getInsertTextForSnippetValue(u,""))}l+=n.defaultSnippets.length}if(n.enum&&(!a&&n.enum.length===1&&(a=this.getInsertTextForGuessedValue(n.enum[0],"")),l+=n.enum.length),nt(n.default)&&(a||(a=this.getInsertTextForGuessedValue(n.default,"")),l++),Array.isArray(n.examples)&&n.examples.length&&(a||(a=this.getInsertTextForGuessedValue(n.examples[0],"")),l+=n.examples.length),l===0){var c=Array.isArray(n.type)?n.type[0]:n.type;c||(n.properties?c="object":n.items&&(c="array"));switch(c){case"boolean":a="$1";break;case"string":a='"$1"';break;case"object":a="{$1}";break;case"array":a="[$1]";break;case"number":case"integer":a="${1:0}";break;case"null":a="${1:null}";break;default:return o}}}return(!a||l>1)&&(a="$1"),s+a+i},e.prototype.getCurrentWord=function(t,n){for(var r=n-1,i=t.getText();r>=0&&`
\r\v":{[,]}`.indexOf(i.charAt(r))===-1;)r--;return i.substring(r+1,n)},e.prototype.evaluateSeparatorAfter=function(t,n){var r=jt(t.getText(),!0);r.setPosition(n);var i=r.scan();switch(i){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(t,n,r){for(var i=jt(n.getText(),!0),o=t.items,s=o.length-1;s>=0;s--){var a=o[s];if(r>a.offset+a.length){i.setPosition(a.offset+a.length);var l=i.scan();return l===5&&r>=i.getTokenOffset()+i.getTokenLength()?s+1:s}else if(r>=a.offset)return s}return 0},e.prototype.isInComment=function(t,n,r){var i=jt(t.getText(),!1);i.setPosition(n);for(var o=i.scan();o!==17&&i.getTokenOffset()+i.getTokenLength()<r;)o=i.scan();return(o===12||o===13)&&i.getTokenOffset()<=r},e.prototype.fromMarkup=function(t){return t&&this.doesSupportMarkdown()?{kind:it.Markdown,value:t}:void 0},e.prototype.doesSupportMarkdown=function(){if(!nt(this.supportsMarkdown)){var t=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=t&&t.completionItem&&Array.isArray(t.completionItem.documentationFormat)&&t.completionItem.documentationFormat.indexOf(it.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!nt(this.supportsCommitCharacters)){var t=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=t&&t.completionItem&&!!t.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),ja=function(){function e(t,n,r){n===void 0&&(n=[]),this.schemaService=t,this.contributions=n,this.promise=r||Promise}return e.prototype.doHover=function(t,n,r){var i=t.offsetAt(n),o=r.getNodeFromOffset(i);if(!o||(o.type==="object"||o.type==="array")&&i>o.offset+1&&i<o.offset+o.length-1)return this.promise.resolve(null);var s=o;if(o.type==="string"){var a=o.parent;if(a&&a.type==="property"&&a.keyNode===o&&(o=a.valueNode,!o))return this.promise.resolve(null)}for(var l=he.create(t.positionAt(s.offset),t.positionAt(s.offset+s.length)),u=function(p){var C={contents:p,range:l};return C},c=br(o),h=this.contributions.length-1;h>=0;h--){var d=this.contributions[h],m=d.getInfoContribution(t.uri,c);if(m)return m.then(function(p){return u(p)})}return this.schemaService.getSchemaForResource(t.uri,r).then(function(p){if(p&&o){var C=r.getMatchingSchemas(p.schema,o.offset),v=void 0,_=void 0,f=void 0,g=void 0;C.every(function(A){if(A.node===o&&!A.inverted&&A.schema&&(v=v||A.schema.title,_=_||A.schema.markdownDescription||Cr(A.schema.description),A.schema.enum)){var k=A.schema.enum.indexOf(mt(o));A.schema.markdownEnumDescriptions?f=A.schema.markdownEnumDescriptions[k]:A.schema.enumDescriptions&&(f=Cr(A.schema.enumDescriptions[k])),f&&(g=A.schema.enum[k],typeof g!="string"&&(g=JSON.stringify(g)))}return!0});var w="";return v&&(w=Cr(v)),_&&(w.length>0&&(w+=`
`),w+=_),f&&(w.length>0&&(w+=`
`),w+="`"+Va(g)+"`: "+f),u([w])}return null})},e}();function Cr(e){if(e){var t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
$3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}return}function Va(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var Wt=Q("xiP/");function Ba(e,t){if(typeof e!="string")throw new TypeError("Expected a string");for(var n=String(e),r="",i=t?!!t.extended:!1,o=t?!!t.globstar:!1,s=!1,a=t&&typeof t.flags=="string"?t.flags:"",l,u=0,c=n.length;u<c;u++){l=n[u];switch(l){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+l;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=l;break}case"{":if(i){s=!0,r+="(";break}case"}":if(i){s=!1,r+=")";break}case",":if(s){r+="|";break}r+="\\"+l;break;case"*":for(var h=n[u-1],d=1;n[u+1]==="*";)d++,u++;var m=n[u+1];if(!o)r+=".*";else{var p=d>1&&(h==="/"||h===void 0||h==="{"||h===",")&&(m==="/"||m===void 0||m===","||m==="}");p?(m==="/"?u++:h==="/"&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}break;default:r+=l}}return(!a||!~a.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,a)}var gt=Bt(),Wa="!",Ha="/",qa=function(){function e(t,n){this.globWrappers=[];try{for(var r=0,i=t;r<i.length;r++){var o=i[r],s=o[0]!==Wa;s||(o=o.substring(1)),o.length>0&&(o[0]===Ha&&(o=o.substring(1)),this.globWrappers.push({regexp:Ba("**/"+o,{extended:!0,globstar:!0}),include:s}))}this.uris=n}catch(a){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var n=!1,r=0,i=this.globWrappers;r<i.length;r++){var o=i[r],s=o.regexp,a=o.include;s.test(t)&&(n=a)}return n},e.prototype.getURIs=function(){return this.uris},e}(),$a=function(){function e(t,n,r){this.service=t,this.url=n,this.dependencies={},r&&(this.unresolvedSchema=this.service.promise.resolve(new kt(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return t.service.resolveSchemaContent(n,t.url,t.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),kt=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e}(),Io=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e.prototype.getSection=function(t){var n=this.getSectionRecursive(t,this.schema);return n?Oe(n):void 0},e.prototype.getSectionRecursive=function(t,n){if(!n||typeof n=="boolean"||t.length===0)return n;var r=t.shift();if(n.properties&&typeof n.properties[r])return this.getSectionRecursive(t,n.properties[r]);if(n.patternProperties)for(var i=0,o=Object.keys(n.patternProperties);i<o.length;i++){var s=o[i],a=Cn(s);if(a.test(r))return this.getSectionRecursive(t,n.patternProperties[s])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(t,n.additionalProperties);if(r.match("[0-9]+")){if(Array.isArray(n.items)){var l=parseInt(r,10);if(!isNaN(l)&&n.items[l])return this.getSectionRecursive(t,n.items[l])}else if(n.items)return this.getSectionRecursive(t,n.items)}}return},e}(),Ga=function(){function e(t,n,r){this.contextService=n,this.requestService=t,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(n){var r=Wt.a.parse(n).scheme;return r!=="schemaservice"&&(!t||t(r))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var n=this;this.cachedSchemaForResource=void 0;var r=!1;t=pt(t);for(var i=[t],o=Object.keys(this.schemasById).map(function(u){return n.schemasById[u]});i.length;)for(var s=i.pop(),a=0;a<o.length;a++){var l=o[a];l&&(l.url===s||l.dependencies[s])&&(l.url!==s&&i.push(l.url),l.clearSchema(),o[a]=void 0,r=!0)}return r},e.prototype.setSchemaContributions=function(t){if(t.schemas){var n=t.schemas;for(var r in n){var i=pt(r);this.contributionSchemas[i]=this.addSchemaHandle(i,n[r])}}if(Array.isArray(t.schemaAssociations))for(var o=t.schemaAssociations,s=0,a=o;s<a.length;s++){var l=a[s],u=l.uris.map(pt),c=this.addFilePatternAssociation(l.pattern,u);this.contributionAssociations.push(c)}},e.prototype.addSchemaHandle=function(t,n){var r=new $a(this,t,n);return this.schemasById[t]=r,r},e.prototype.getOrAddSchemaHandle=function(t,n){return this.schemasById[t]||this.addSchemaHandle(t,n)},e.prototype.addFilePatternAssociation=function(t,n){var r=new qa(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var i=pt(t);return this.registeredSchemasIds[i]=!0,this.cachedSchemaForResource=void 0,n&&this.addFilePatternAssociation(n,[i]),r?this.addSchemaHandle(i,r):this.getOrAddSchemaHandle(i)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var n=0,r=this.contributionAssociations;n<r.length;n++){var i=r[n];this.filePatternAssociations.push(i)}},e.prototype.getResolvedSchema=function(t){var n=pt(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=gt("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Ln(t));return this.promise.resolve(new kt({},[n]))}return this.requestService(t).then(function(r){if(!r){var i=gt("json.schema.nocontent","Unable to load schema from '{0}': No content.",Ln(t));return new kt({},[i])}var o={},s=[];o=pa(r,s);var a=s.length?[gt("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Ln(t),s[0].offset)]:[];return new kt(o,a)},function(r){var i=r.toString(),o=r.toString().split("Error: ");return o.length>1&&(i=o[1]),Xt(i,".")&&(i=i.substr(0,i.length-1)),new kt({},[gt("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Ln(t),i)])})},e.prototype.resolveSchemaContent=function(t,n,r){var i=this,o=t.errors.slice(0),s=t.schema;if(s.$schema){var a=pt(s.$schema);if(a==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Io({},[gt("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));a==="https://json-schema.org/draft/2019-09/schema"&&o.push(gt("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var l=this.contextService,u=function(m,p){if(!p)return m;var C=m;return p[0]==="/"&&(p=p.substr(1)),p.split("/").some(function(v){return v=v.replace(/~1/g,"/").replace(/~0/g,"~"),C=C[v],!C}),C},c=function(m,p,C,v){var _=v?decodeURIComponent(v):void 0,f=u(p,_);if(f)for(var g in f)f.hasOwnProperty(g)&&!m.hasOwnProperty(g)&&(m[g]=f[g]);else o.push(gt("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",_,C))},h=function(m,p,C,v,_){l&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(p)&&(p=l.resolveRelativePath(p,v)),p=pt(p);var f=i.getOrAddSchemaHandle(p);return f.getUnresolvedSchema().then(function(g){if(_[p]=!0,g.errors.length){var w=C?p+"#"+C:p;o.push(gt("json.schema.problemloadingref","Problems loading reference '{0}': {1}",w,g.errors[0]))}return c(m,g.schema,p,C),d(m,g.schema,p,f.dependencies)})},d=function(m,p,C,v){if(!m||typeof m!="object")return Promise.resolve(null);for(var _=[m],f=[],g=[],w=function(){for(var y=[],S=0;S<arguments.length;S++)y[S]=arguments[S];for(var L=0,P=y;L<P.length;L++){var G=P[L];typeof G=="object"&&_.push(G)}},A=function(){for(var y=[],S=0;S<arguments.length;S++)y[S]=arguments[S];for(var L=0,P=y;L<P.length;L++){var G=P[L];if(typeof G=="object")for(var K in G){var Te=K,ge=G[Te];typeof ge=="object"&&_.push(ge)}}},k=function(){for(var y=[],S=0;S<arguments.length;S++)y[S]=arguments[S];for(var L=0,P=y;L<P.length;L++){var G=P[L];if(Array.isArray(G))for(var K=0,Te=G;K<Te.length;K++){var ge=Te[K];typeof ge=="object"&&_.push(ge)}}},b=function(y){for(var S=[];y.$ref;){var L=y.$ref,P=L.split("#",2);if(delete y.$ref,P[0].length>0){g.push(h(y,P[0],P[1],C,v));return}else S.indexOf(L)===-1&&(c(y,p,C,P[1]),S.push(L))}w(y.items,y.additionalItems,y.additionalProperties,y.not,y.contains,y.propertyNames,y.if,y.then,y.else),A(y.definitions,y.properties,y.patternProperties,y.dependencies),k(y.anyOf,y.allOf,y.oneOf,y.items)};_.length;){var N=_.pop();if(f.indexOf(N)>=0)continue;f.push(N),b(N)}return i.promise.all(g)};return d(s,s,n,r).then(function(m){return new Io(s,o)})},e.prototype.getSchemaForResource=function(t,n){if(n&&n.root&&n.root.type==="object"){var r=n.root.properties.filter(function(_){return _.keyNode.value==="$schema"&&_.valueNode&&_.valueNode.type==="string"});if(r.length>0){var i=r[0].valueNode;if(i&&i.type==="string"){var o=mt(i);if(o&&Gi(o,".")&&this.contextService&&(o=this.contextService.resolveRelativePath(o,t)),o){var s=pt(o);return this.getOrAddSchemaHandle(s).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;for(var a=Object.create(null),l=[],u=Ja(t),c=0,h=this.filePatternAssociations;c<h.length;c++){var d=h[c];if(d.matchesPattern(u))for(var m=0,p=d.getURIs();m<p.length;m++){var C=p[m];a[C]||(l.push(C),a[C]=!0)}}var v=l.length>0?this.createCombinedSchema(t,l).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:v},v},e.prototype.createCombinedSchema=function(t,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:n.map(function(o){return{$ref:o}})};return this.addSchemaHandle(r,i)},e.prototype.getMatchingSchemas=function(t,n,r){if(r){var i=r.id||"schemaservice://untitled/matchingSchemas/"+za++;return this.resolveSchemaContent(new kt(r),i,{}).then(function(o){return n.getMatchingSchemas(o.schema).filter(function(s){return!s.inverted})})}return this.getSchemaForResource(t.uri,n).then(function(o){return o?n.getMatchingSchemas(o.schema).filter(function(s){return!s.inverted}):[]})},e}(),za=0;function pt(e){try{return Wt.a.parse(e).toString()}catch(t){return e}}function Ja(e){try{return Wt.a.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}function Ln(e){try{var t=Wt.a.parse(e);if(t.scheme==="file")return t.fsPath}catch(n){}return e}var Za=Bt(),Ya=function(){function e(t,n){this.jsonSchemaService=t,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:Ue.Error)},e.prototype.doValidation=function(t,n,r,i){var o=this;if(!this.validationEnabled)return this.promise.resolve([]);var s=[],a={},l=function(h){var d=h.range.start.line+" "+h.range.start.character+" "+h.message;a[d]||(a[d]=!0,s.push(h))},u=function(h){var d=(r==null?void 0:r.trailingCommas)?En(r.trailingCommas):Ue.Error,m=(r==null?void 0:r.comments)?En(r.comments):o.commentSeverity,p=(r==null?void 0:r.schemaValidation)?En(r.schemaValidation):Ue.Warning,C=(r==null?void 0:r.schemaRequest)?En(r.schemaRequest):Ue.Warning;if(h){if(h.errors.length&&n.root&&C){var v=n.root,_=v.type==="object"?v.properties[0]:void 0;if(_&&_.keyNode.value==="$schema"){var f=_.valueNode||_,g=he.create(t.positionAt(f.offset),t.positionAt(f.offset+f.length));l(rt.create(g,h.errors[0],C,re.SchemaResolveError))}else{var g=he.create(t.positionAt(v.offset),t.positionAt(v.offset+1));l(rt.create(g,h.errors[0],C,re.SchemaResolveError))}}else if(p){var w=n.validate(t,h.schema,p);w&&w.forEach(l)}Do(h.schema)&&(m=void 0),Fo(h.schema)&&(d=void 0)}for(var A=0,k=n.syntaxErrors;A<k.length;A++){var b=k[A];if(b.code===re.TrailingComma){if(typeof d!="number")continue;b.severity=d}l(b)}if(typeof m=="number"){var N=Za("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(y){l(rt.create(y,N,m,re.CommentNotPermitted))})}return s};if(i){var c=i.id||"schemaservice://untitled/"+Qa++;return this.jsonSchemaService.resolveSchemaContent(new kt(i),c,{}).then(function(h){return u(h)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(h){return u(h)})},e}(),Qa=0;function Do(e){if(e&&typeof e=="object"){if(Ke(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=Do(r);if(Ke(i))return i}}return}function Fo(e){if(e&&typeof e=="object"){if(Ke(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(Ke(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=r[n],o=Fo(i);if(Ke(o))return o}}return}function En(e){switch(e){case"error":return Ue.Error;case"warning":return Ue.Warning;case"ignore":return}return}var Oo=48,Xa=57,Ka=65,xn=97,el=102;function ye(e){return e<Oo?0:e<=Xa?e-Oo:(e<xn&&(e+=xn-Ka),e>=xn&&e<=el?e-xn+10:0)}function tl(e){if(e[0]!=="#")return;switch(e.length){case 4:return{red:ye(e.charCodeAt(1))*17/255,green:ye(e.charCodeAt(2))*17/255,blue:ye(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:ye(e.charCodeAt(1))*17/255,green:ye(e.charCodeAt(2))*17/255,blue:ye(e.charCodeAt(3))*17/255,alpha:ye(e.charCodeAt(4))*17/255};case 7:return{red:(ye(e.charCodeAt(1))*16+ye(e.charCodeAt(2)))/255,green:(ye(e.charCodeAt(3))*16+ye(e.charCodeAt(4)))/255,blue:(ye(e.charCodeAt(5))*16+ye(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(ye(e.charCodeAt(1))*16+ye(e.charCodeAt(2)))/255,green:(ye(e.charCodeAt(3))*16+ye(e.charCodeAt(4)))/255,blue:(ye(e.charCodeAt(5))*16+ye(e.charCodeAt(6)))/255,alpha:(ye(e.charCodeAt(7))*16+ye(e.charCodeAt(8)))/255}}return}function Mu(e,t,n,r){return r===void 0&&(r=1),{red:e/255,green:t/255,blue:n/255,alpha:r}}var nl=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var o=n.root;if(!o)return[];var s=r.resultLimit||Number.MAX_VALUE,a=t.uri;if((a==="vscode://defaultsettings/keybindings.json"||Xt(a.toLowerCase(),"/user/keybindings.json"))&&o.type==="array"){for(var l=[],u=0,c=o.items;u<c.length;u++){var h=c[u];if(h.type==="object")for(var d=0,m=h.properties;d<m.length;d++){var p=m[d];if(p.keyNode.value==="key"&&p.valueNode){var C=Kt.create(t.uri,vt(t,h));if(l.push({name:mt(p.valueNode),kind:et.Function,location:C}),s--,s<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(a),l}}}return l}for(var v=[{node:o,containerName:""}],_=0,f=!1,g=[],w=function(k,b){k.type==="array"?k.items.forEach(function(N){N&&v.push({node:N,containerName:b})}):k.type==="object"&&k.properties.forEach(function(N){var y=N.valueNode;if(y)if(s>0){s--;var S=Kt.create(t.uri,vt(t,N)),L=b?b+"."+N.keyNode.value:N.keyNode.value;g.push({name:i.getKeyLabel(N),kind:i.getSymbolKind(y.type),location:S,containerName:b}),v.push({node:y,containerName:L})}else f=!0})};_<v.length;){var A=v[_++];w(A.node,A.containerName)}return f&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(a),g},e.prototype.findDocumentSymbols2=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var o=n.root;if(!o)return[];var s=r.resultLimit||Number.MAX_VALUE,a=t.uri;if((a==="vscode://defaultsettings/keybindings.json"||Xt(a.toLowerCase(),"/user/keybindings.json"))&&o.type==="array"){for(var l=[],u=0,c=o.items;u<c.length;u++){var h=c[u];if(h.type==="object")for(var d=0,m=h.properties;d<m.length;d++){var p=m[d];if(p.keyNode.value==="key"&&p.valueNode){var C=vt(t,h),v=vt(t,p.keyNode);if(l.push({name:mt(p.valueNode),kind:et.Function,range:C,selectionRange:v}),s--,s<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(a),l}}}return l}for(var _=[],f=[{node:o,result:_}],g=0,w=!1,A=function(b,N){b.type==="array"?b.items.forEach(function(y,S){if(y)if(s>0){s--;var L=vt(t,y),P=L,G=String(S),K={name:G,kind:i.getSymbolKind(y.type),range:L,selectionRange:P,children:[]};N.push(K),f.push({result:K.children,node:y})}else w=!0}):b.type==="object"&&b.properties.forEach(function(y){var S=y.valueNode;if(S)if(s>0){s--;var L=vt(t,y),P=vt(t,y.keyNode),G=[],K={name:i.getKeyLabel(y),kind:i.getSymbolKind(S.type),range:L,selectionRange:P,children:G,detail:i.getDetail(S)};N.push(K),f.push({result:G,node:S})}else w=!0})};g<f.length;){var k=f[g++];A(k.node,k.result)}return w&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(a),_},e.prototype.getSymbolKind=function(t){switch(t){case"object":return et.Module;case"string":return et.String;case"number":return et.Number;case"array":return et.Array;case"boolean":return et.Boolean;default:return et.Variable}},e.prototype.getKeyLabel=function(t){var n=t.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.getDetail=function(t){return t?t.type==="boolean"||t.type==="number"||t.type==="null"||t.type==="string"?String(t.value):t.type==="array"?t.children.length?void 0:"[]":t.type==="object"?t.children.length?void 0:"{}":void 0:void 0},e.prototype.findDocumentColors=function(t,n,r){return this.schemaService.getSchemaForResource(t.uri,n).then(function(i){var o=[];if(i)for(var s=r&&typeof r.resultLimit=="number"?r.resultLimit:Number.MAX_VALUE,a=n.getMatchingSchemas(i.schema),l={},u=0,c=a;u<c.length;u++){var h=c[u];if(!h.inverted&&h.schema&&(h.schema.format==="color"||h.schema.format==="color-hex")&&h.node&&h.node.type==="string"){var d=String(h.node.offset);if(!l[d]){var m=tl(mt(h.node));if(m){var p=vt(t,h.node);o.push({color:m,range:p})}if(l[d]=!0,s--,s<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(t.uri),o}}}return o})},e.prototype.getColorPresentations=function(t,n,r,i){var o=[],s=Math.round(r.red*255),a=Math.round(r.green*255),l=Math.round(r.blue*255);function u(h){var d=h.toString(16);return d.length!==2?"0"+d:d}var c;return r.alpha===1?c="#"+u(s)+u(a)+u(l):c="#"+u(s)+u(a)+u(l)+u(Math.round(r.alpha*255)),o.push({label:c,textEdit:Ge.replace(i,JSON.stringify(c))}),o},e}();function vt(e,t){return he.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var Y=Bt(),_r={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},rl={id:Y("schema.json.id","A unique identifier for the schema."),$schema:Y("schema.json.$schema","The schema to verify this document against."),title:Y("schema.json.title","A descriptive title of the element."),description:Y("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:Y("schema.json.default","A default value. Used by suggestions."),multipleOf:Y("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:Y("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:Y("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:Y("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:Y("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:Y("schema.json.maxLength","The maximum length of a string."),minLength:Y("schema.json.minLength","The minimum length of a string."),pattern:Y("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:Y("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:Y("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:Y("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:Y("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:Y("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:Y("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:Y("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:Y("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:Y("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:Y("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:Y("schema.json.properties","A map of property names to schemas for each property."),patternProperties:Y("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:Y("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:Y("schema.json.enum","The set of literal values that are valid."),type:Y("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:Y("schema.json.format","Describes the format expected for the value."),allOf:Y("schema.json.allOf","An array of schemas, all of which must match."),anyOf:Y("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:Y("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:Y("schema.json.not","A schema which must not match."),$id:Y("schema.json.$id","A unique identifier for the schema."),$ref:Y("schema.json.$ref","Reference a definition hosted on any location."),$comment:Y("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:Y("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:Y("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:Y("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:Y("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:Y("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:Y("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:Y("schema.json.contentEncoding","Describes the content encoding of a string property."),if:Y("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:Y("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:Y("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(var il in _r.schemas){var Ar=_r.schemas[il];for(var sn in Ar.properties){var Tr=Ar.properties[sn];typeof Tr=="boolean"&&(Tr=Ar.properties[sn]={});var Po=rl[sn];Po?Tr.description=Po:console.log(sn+": localize('schema.json."+sn+`', "")`)}}function ol(e,t){var n=[],r=[],i=[],o=-1,s=jt(e.getText(),!1),a=s.scan();function l(S){n.push(S),r.push(i.length)}for(;a!==17;){switch(a){case 1:case 3:{var u=e.positionAt(s.getTokenOffset()).line,c={startLine:u,endLine:u,kind:a===1?"object":"array"};i.push(c);break}case 2:case 4:{var h=a===2?"object":"array";if(i.length>0&&i[i.length-1].kind===h){var c=i.pop(),d=e.positionAt(s.getTokenOffset()).line;c&&d>c.startLine+1&&o!==c.startLine&&(c.endLine=d-1,l(c),o=c.startLine)}break}case 13:{var u=e.positionAt(s.getTokenOffset()).line,m=e.positionAt(s.getTokenOffset()+s.getTokenLength()).line;s.getTokenError()===1&&u+1<e.lineCount?s.setPosition(e.offsetAt($e.create(u+1,0))):u<m&&(l({startLine:u,endLine:m,kind:en.Comment}),o=u);break}case 12:{var p=e.getText().substr(s.getTokenOffset(),s.getTokenLength()),C=p.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(C){var d=e.positionAt(s.getTokenOffset()).line;if(C[1]){var c={startLine:d,endLine:d,kind:en.Region};i.push(c)}else{for(var v=i.length-1;v>=0&&i[v].kind!==en.Region;)v--;if(v>=0){var c=i[v];i.length=v,d>c.startLine&&o!==c.startLine&&(c.endLine=d,l(c),o=c.startLine)}}}break}}a=s.scan()}var _=t&&t.rangeLimit;if(typeof _!="number"||n.length<=_)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var f=[],g=0,w=r;g<w.length;g++){var A=w[g];A<30&&(f[A]=(f[A]||0)+1)}for(var k=0,b=0,v=0;v<f.length;v++){var N=f[v];if(N){if(N+k>_){b=v;break}k+=N}}for(var y=[],v=0;v<n.length;v++){var A=r[v];typeof A=="number"&&((A<b||A===b&&k++<_)&&y.push(n[v]))}return y}function sl(e,t,n){function r(a){for(var l=e.offsetAt(a),u=n.getNodeFromOffset(l,!0),c=[];u;){switch(u.type){case"string":case"object":case"array":var h=u.offset+1,d=u.offset+u.length-1;h<d&&l>=h&&l<=d&&c.push(i(h,d)),c.push(i(u.offset,u.offset+u.length));break;case"number":case"boolean":case"null":case"property":c.push(i(u.offset,u.offset+u.length));break}if(u.type==="property"||u.parent&&u.parent.type==="array"){var m=s(u.offset+u.length,5);m!==-1&&c.push(i(u.offset,m))}u=u.parent}for(var p=void 0,C=c.length-1;C>=0;C--)p=Nn.create(c[C],p);return p||(p=Nn.create(he.create(a,a))),p}function i(a,l){return he.create(e.positionAt(a),e.positionAt(l))}var o=jt(e.getText(),!0);function s(a,l){o.setPosition(a);var u=o.scan();return u===l?o.getTokenOffset()+o.getTokenLength():-1}return t.map(r)}function al(e,t){var n=[];return t.visit(function(r){var i;if(r.type==="property"&&r.keyNode.value==="$ref"&&((i=r.valueNode)===null||i===void 0?void 0:i.type)==="string"){var o=r.valueNode.value,s=ul(t,o);if(s){var a=e.positionAt(s.offset);n.push({target:e.uri+"#"+(a.line+1)+","+(a.character+1),range:ll(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function ll(e,t){return he.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function ul(e,t){var n=cl(t);return n?kr(n,e.root):null}function kr(e,t){if(!t)return null;if(e.length===0)return t;var n=e.shift();if(t&&t.type==="object"){var r=t.properties.find(function(s){return s.keyNode.value===n});return r?kr(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),o=t.items[i];return o?kr(e,o):null}return null}function cl(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(hl)}function hl(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function fl(e){var t=e.promiseConstructor||Promise,n=new Ga(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(_r);var r=new Ua(n,e.contributions,t,e.clientCapabilities),i=new ja(n,e.contributions,t),o=new nl(n),s=new Ya(n,t);return{configure:function(a){n.clearExternalSchemas(),a.schemas&&a.schemas.forEach(function(l){n.registerExternalSchema(l.uri,l.fileMatch,l.schema)}),s.configure(a)},resetSchema:function(a){return n.onResourceChange(a)},doValidation:s.doValidation.bind(s),parseJSONDocument:function(a){return Oa(a,{collectComments:!0})},newJSONDocument:function(a,l){return Fa(a,l)},getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:o.findDocumentSymbols.bind(o),findDocumentSymbols2:o.findDocumentSymbols2.bind(o),findDocumentColors:o.findDocumentColors.bind(o),getColorPresentations:o.getColorPresentations.bind(o),doHover:i.doHover.bind(i),getFoldingRanges:ol,getSelectionRanges:sl,findDefinition:function(){return Promise.resolve([])},findLinks:al,format:function(a,l,u){var c=void 0;if(l){var h=a.offsetAt(l.start),d=a.offsetAt(l.end)-h;c={offset:h,length:d}}var m={tabSize:u?u.tabSize:4,insertSpaces:(u==null?void 0:u.insertSpaces)===!0,insertFinalNewline:(u==null?void 0:u.insertFinalNewline)===!0,eol:`
`};return ya(a.getText(),c,m).map(function(p){return Ge.replace(he.create(a.positionAt(p.offset),a.positionAt(p.offset+p.length)),p.content)})}}}var ze=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(h){s(h)}}function l(c){try{u(r.throw(c))}catch(h){s(h)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})},Je=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;(i=0,o)&&(u=[u[0]&2,o.value]);switch(u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ro;typeof fetch!="undefined"&&(Ro=function(e){return fetch(e).then(function(t){return t.text()})});var Uo=function(){function e(t,n){this._ctx=t,this._languageSettings=n.languageSettings,this._languageId=n.languageId,this._languageService=fl({workspaceContext:{resolveRelativePath:function(r,i){var o=i.substr(0,i.lastIndexOf("/")+1);return gl(o,r)}},schemaRequestService:n.enableSchemaRequest&&Ro}),this._languageService.configure(this._languageSettings)}return e.prototype.doValidation=function(t){return ze(this,void 0,void 0,function(){var n,r;return Je(this,function(i){return n=this._getTextDocument(t),n?(r=this._languageService.parseJSONDocument(n),[2,this._languageService.doValidation(n,r,this._languageSettings)]):[2,Promise.resolve([])]})})},e.prototype.doComplete=function(t,n){return ze(this,void 0,void 0,function(){var r,i;return Je(this,function(o){return r=this._getTextDocument(t),i=this._languageService.parseJSONDocument(r),[2,this._languageService.doComplete(r,n,i)]})})},e.prototype.doResolve=function(t){return ze(this,void 0,void 0,function(){return Je(this,function(n){return[2,this._languageService.doResolve(t)]})})},e.prototype.doHover=function(t,n){return ze(this,void 0,void 0,function(){var r,i;return Je(this,function(o){return r=this._getTextDocument(t),i=this._languageService.parseJSONDocument(r),[2,this._languageService.doHover(r,n,i)]})})},e.prototype.format=function(t,n,r){return ze(this,void 0,void 0,function(){var i,o;return Je(this,function(s){return i=this._getTextDocument(t),o=this._languageService.format(i,n,r),[2,Promise.resolve(o)]})})},e.prototype.resetSchema=function(t){return ze(this,void 0,void 0,function(){return Je(this,function(n){return[2,Promise.resolve(this._languageService.resetSchema(t))]})})},e.prototype.findDocumentSymbols=function(t){return ze(this,void 0,void 0,function(){var n,r,i;return Je(this,function(o){return n=this._getTextDocument(t),r=this._languageService.parseJSONDocument(n),i=this._languageService.findDocumentSymbols(n,r),[2,Promise.resolve(i)]})})},e.prototype.findDocumentColors=function(t){return ze(this,void 0,void 0,function(){var n,r,i;return Je(this,function(o){return n=this._getTextDocument(t),r=this._languageService.parseJSONDocument(n),i=this._languageService.findDocumentColors(n,r),[2,Promise.resolve(i)]})})},e.prototype.getColorPresentations=function(t,n,r){return ze(this,void 0,void 0,function(){var i,o,s;return Je(this,function(a){return i=this._getTextDocument(t),o=this._languageService.parseJSONDocument(i),s=this._languageService.getColorPresentations(i,o,n,r),[2,Promise.resolve(s)]})})},e.prototype.getFoldingRanges=function(t,n){return ze(this,void 0,void 0,function(){var r,i;return Je(this,function(o){return r=this._getTextDocument(t),i=this._languageService.getFoldingRanges(r,n),[2,Promise.resolve(i)]})})},e.prototype.getSelectionRanges=function(t,n){return ze(this,void 0,void 0,function(){var r,i,o;return Je(this,function(s){return r=this._getTextDocument(t),i=this._languageService.parseJSONDocument(r),o=this._languageService.getSelectionRanges(r,n,i),[2,Promise.resolve(o)]})})},e.prototype._getTextDocument=function(t){for(var n=this._ctx.getMirrorModels(),r=0,i=n;r<i.length;r++){var o=i[r];if(o.uri.toString()===t)return mr.create(t,this._languageId,o.version,o.getValue())}return null},e}(),dl="/".charCodeAt(0),Sr=".".charCodeAt(0);function ml(e){return e.charCodeAt(0)===dl}function gl(e,t){if(ml(t)){var n=Wt.a.parse(e),r=t.split("/");return n.with({path:jo(r)}).toString()}return pl(e,t)}function jo(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];i.length===0||i.length===1&&i.charCodeAt(0)===Sr||(i.length===2&&i.charCodeAt(0)===Sr&&i.charCodeAt(1)===Sr?t.pop():t.push(i))}e.length>1&&e[e.length-1].length===0&&t.push("");var o=t.join("/");return e[0].length===0&&(o="/"+o),o}function pl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=Wt.a.parse(e),i=r.path.split("/"),o=0,s=t;o<s.length;o++){var a=s[o];i.push.apply(i,a.split("/"))}return r.with({path:jo(i)}).toString()}function Iu(e,t){return new Uo(e,t)}self.onmessage=function(){ji(function(e,t){return new Uo(e,t)})}},IyRk:function(Ze,z){(function(Q){Ze.exports=function(){var J={873:function(pe){var me;me=function(){return this}();try{me=me||new Function("return this")()}catch(O){typeof window=="object"&&(me=window)}pe.exports=me}},Z={};function ie(pe){if(Z[pe])return Z[pe].exports;var me=Z[pe]={exports:{}},O=!0;try{J[pe](me,me.exports,ie),O=!1}finally{O&&delete Z[pe]}return me.exports}return ie.ab=Q+"/",ie(873)}()}).call(this,"/")},MNsG:function(Ze,z,Q){"use strict";(function(J,Z){Q.d(z,"a",function(){return W}),Q.d(z,"d",function(){return se}),Q.d(z,"b",function(){return ce}),Q.d(z,"c",function(){return Be}),Q.d(z,"e",function(){return st});var ie;const pe="en";let me=!1,O=!1,V=!1,q=!1,H=!1,te=!1,le=!1,x,I=pe,R,D;const W=typeof self=="object"?self:typeof J=="object"?J:{};let j;typeof W.vscode!="undefined"&&typeof W.vscode.process!="undefined"?j=W.vscode.process:typeof Z!="undefined"&&(j=Z);const X=typeof((ie=j==null?void 0:j.versions)===null||ie===void 0?void 0:ie.electron)=="string"&&j.type==="renderer";if(typeof navigator=="object"&&!X)D=navigator.userAgent,me=D.indexOf("Windows")>=0,O=D.indexOf("Macintosh")>=0,le=(D.indexOf("Macintosh")>=0||D.indexOf("iPad")>=0||D.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,V=D.indexOf("Linux")>=0,te=!0,x=navigator.language,I=x;else if(typeof j=="object"){me=j.platform==="win32",O=j.platform==="darwin",V=j.platform==="linux",q=V&&!!j.env.SNAP&&!!j.env.SNAP_REVISION,x=pe,I=pe;const Se=j.env.VSCODE_NLS_CONFIG;if(Se)try{const fe=JSON.parse(Se),Me=fe.availableLanguages["*"];x=fe.locale,I=Me||pe,R=fe._translationsConfigFile}catch(fe){}H=!0}else console.error("Unable to resolve platform.");let B=0;O?B=1:me?B=3:V&&(B=2);const se=me,ce=O,xe=V,Ye=H,Be=te,qt=le,Lt=D,st=function(){if(W.setImmediate)return W.setImmediate.bind(W);if(typeof W.postMessage=="function"&&!W.importScripts){let Me=[];W.addEventListener("message",_e=>{if(_e.data&&_e.data.vscodeSetImmediateId)for(let F=0,E=Me.length;F<E;F++){const M=Me[F];if(M.id===_e.data.vscodeSetImmediateId){Me.splice(F,1),M.callback();return}}});let at=0;return _e=>{const F=++at;Me.push({id:F,callback:_e}),W.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(j==null?void 0:j.nextTick)=="function")return j.nextTick.bind(j);const fe=Promise.resolve();return Me=>fe.then(Me)}(),Qe=O||le?2:me?1:3;let wt=!0,Et=!1;function ue(){if(!Et){Et=!0;const Se=new Uint8Array(2);Se[0]=1,Se[1]=2;const fe=new Uint16Array(Se.buffer);wt=fe[0]===(2<<8)+1}return wt}}).call(this,Q("IyRk"),Q("Q2Ig"))},Q2Ig:function(Ze,z,Q){z.nextTick=function(Z){var ie=Array.prototype.slice.call(arguments);ie.shift(),setTimeout(function(){Z.apply(null,ie)},0)},z.platform=z.arch=z.execPath=z.title="browser",z.pid=1,z.browser=!0,z.env={},z.argv=[],z.binding=function(J){throw new Error("No such module. (Possibly not yet loaded)")},function(){var J="/",Z;z.cwd=function(){return J},z.chdir=function(ie){Z||(Z=Q("33yf")),J=Z.resolve(ie,J)}}(),z.exit=z.kill=z.umask=z.dlopen=z.uptime=z.memoryUsage=z.uvCounters=function(){},z.features={}},wxcJ:function(Ze,z,Q){"use strict";(function(J){Q.d(z,"a",function(){return pe}),Q.d(z,"b",function(){return me}),Q.d(z,"c",function(){return O});var Z=Q("MNsG");let ie;if(typeof Z.a.vscode!="undefined"&&typeof Z.a.vscode.process!="undefined"){const V=Z.a.vscode.process;ie={get platform(){return V.platform},get arch(){return V.arch},get env(){return V.env},cwd(){return V.cwd()},nextTick(q){return Object(Z.e)(q)}}}else typeof J!="undefined"?ie={get platform(){return J.platform},get arch(){return J.arch},get env(){return Object({NODE_ENV:"production"})},cwd(){return Object({NODE_ENV:"production"}).VSCODE_CWD||J.cwd()},nextTick(V){return J.nextTick(V)}}:ie={get platform(){return Z.d?"win32":Z.b?"darwin":"linux"},get arch(){return},nextTick(V){return Object(Z.e)(V)},get env(){return{}},cwd(){return"/"}};const pe=ie.cwd,me=ie.env,O=ie.platform}).call(this,Q("Q2Ig"))},"xiP/":function(Ze,z,Q){"use strict";(function(J){Q.d(z,"a",function(){return ie});var Z;Z=(()=>{"use strict";var me={470:q=>{function H(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function te(x,I){for(var R,D="",W=0,j=-1,X=0,B=0;B<=x.length;++B){if(B<x.length)R=x.charCodeAt(B);else{if(R===47)break;R=47}if(R===47){if(!(j===B-1||X===1))if(j!==B-1&&X===2){if(D.length<2||W!==2||D.charCodeAt(D.length-1)!==46||D.charCodeAt(D.length-2)!==46){if(D.length>2){var se=D.lastIndexOf("/");if(se!==D.length-1){se===-1?(D="",W=0):W=(D=D.slice(0,se)).length-1-D.lastIndexOf("/"),j=B,X=0;continue}}else if(D.length===2||D.length===1){D="",W=0,j=B,X=0;continue}}I&&(D.length>0?D+="/..":D="..",W=2)}else D.length>0?D+="/"+x.slice(j+1,B):D=x.slice(j+1,B),W=B-j-1;j=B,X=0}else R===46&&X!==-1?++X:X=-1}return D}var le={resolve:function(){for(var x,I="",R=!1,D=arguments.length-1;D>=-1&&!R;D--){var W;D>=0?W=arguments[D]:(x===void 0&&(x=J.cwd()),W=x),H(W),W.length!==0&&(I=W+"/"+I,R=W.charCodeAt(0)===47)}return I=te(I,!R),R?I.length>0?"/"+I:"/":I.length>0?I:"."},normalize:function(x){if(H(x),x.length===0)return".";var I=x.charCodeAt(0)===47,R=x.charCodeAt(x.length-1)===47;return(x=te(x,!I)).length!==0||I||(x="."),x.length>0&&R&&(x+="/"),I?"/"+x:x},isAbsolute:function(x){return H(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,I=0;I<arguments.length;++I){var R=arguments[I];H(R),R.length>0&&(x===void 0?x=R:x+="/"+R)}return x===void 0?".":le.normalize(x)},relative:function(x,I){if(H(x),H(I),x===I)return"";if((x=le.resolve(x))===(I=le.resolve(I)))return"";for(var R=1;R<x.length&&x.charCodeAt(R)===47;++R);for(var D=x.length,W=D-R,j=1;j<I.length&&I.charCodeAt(j)===47;++j);for(var X=I.length-j,B=W<X?W:X,se=-1,ce=0;ce<=B;++ce){if(ce===B){if(X>B){if(I.charCodeAt(j+ce)===47)return I.slice(j+ce+1);if(ce===0)return I.slice(j+ce)}else W>B&&(x.charCodeAt(R+ce)===47?se=ce:ce===0&&(se=0));break}var xe=x.charCodeAt(R+ce);if(xe!==I.charCodeAt(j+ce))break;xe===47&&(se=ce)}var Ye="";for(ce=R+se+1;ce<=D;++ce)ce!==D&&x.charCodeAt(ce)!==47||(Ye.length===0?Ye+="..":Ye+="/..");return Ye.length>0?Ye+I.slice(j+se):(j+=se,I.charCodeAt(j)===47&&++j,I.slice(j))},_makeLong:function(x){return x},dirname:function(x){if(H(x),x.length===0)return".";for(var I=x.charCodeAt(0),R=I===47,D=-1,W=!0,j=x.length-1;j>=1;--j)if((I=x.charCodeAt(j))===47){if(!W){D=j;break}}else W=!1;return D===-1?R?"/":".":R&&D===1?"//":x.slice(0,D)},basename:function(x,I){if(I!==void 0&&typeof I!="string")throw new TypeError('"ext" argument must be a string');H(x);var R,D=0,W=-1,j=!0;if(I!==void 0&&I.length>0&&I.length<=x.length){if(I.length===x.length&&I===x)return"";var X=I.length-1,B=-1;for(R=x.length-1;R>=0;--R){var se=x.charCodeAt(R);if(se===47){if(!j){D=R+1;break}}else B===-1&&(j=!1,B=R+1),X>=0&&(se===I.charCodeAt(X)?--X==-1&&(W=R):(X=-1,W=B))}return D===W?W=B:W===-1&&(W=x.length),x.slice(D,W)}for(R=x.length-1;R>=0;--R)if(x.charCodeAt(R)===47){if(!j){D=R+1;break}}else W===-1&&(j=!1,W=R+1);return W===-1?"":x.slice(D,W)},extname:function(x){H(x);for(var I=-1,R=0,D=-1,W=!0,j=0,X=x.length-1;X>=0;--X){var B=x.charCodeAt(X);if(B!==47)D===-1&&(W=!1,D=X+1),B===46?I===-1?I=X:j!==1&&(j=1):I!==-1&&(j=-1);else if(!W){R=X+1;break}}return I===-1||D===-1||j===0||j===1&&I===D-1&&I===R+1?"":x.slice(I,D)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return function(I,R){var D=R.dir||R.root,W=R.base||(R.name||"")+(R.ext||"");return D?D===R.root?D+W:D+"/"+W:W}(0,x)},parse:function(x){H(x);var I={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return I;var R,D=x.charCodeAt(0),W=D===47;W?(I.root="/",R=1):R=0;for(var j=-1,X=0,B=-1,se=!0,ce=x.length-1,xe=0;ce>=R;--ce)if((D=x.charCodeAt(ce))!==47)B===-1&&(se=!1,B=ce+1),D===46?j===-1?j=ce:xe!==1&&(xe=1):j!==-1&&(xe=-1);else if(!se){X=ce+1;break}return j===-1||B===-1||xe===0||xe===1&&j===B-1&&j===X+1?B!==-1&&(I.base=I.name=X===0&&W?x.slice(1,B):x.slice(X,B)):(X===0&&W?(I.name=x.slice(1,j),I.base=x.slice(1,B)):(I.name=x.slice(X,j),I.base=x.slice(X,B)),I.ext=x.slice(j,B)),X>0?I.dir=x.slice(0,X-1):W&&(I.dir="/"),I},sep:"/",delimiter:":",win32:null,posix:null};le.posix=le,q.exports=le},447:(q,H,te)=>{var le;if(te.r(H),te.d(H,{URI:()=>xe,Utils:()=>fe}),typeof J=="object")le=J.platform==="win32";else if(typeof navigator=="object"){var x=navigator.userAgent;le=x.indexOf("Windows")>=0}var I,R,D=(I=function(F,E){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,U){M.__proto__=U}||function(M,U){for(var ae in U)Object.prototype.hasOwnProperty.call(U,ae)&&(M[ae]=U[ae])})(F,E)},function(F,E){function M(){this.constructor=F}I(F,E),F.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),W=/^\w[\w\d+.-]*$/,j=/^\//,X=/^\/\//,B="",se="/",ce=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,xe=function(){function F(E,M,U,ae,ne,oe){oe===void 0&&(oe=!1),typeof E=="object"?(this.scheme=E.scheme||B,this.authority=E.authority||B,this.path=E.path||B,this.query=E.query||B,this.fragment=E.fragment||B):(this.scheme=function(be,Le){return be||Le?be:"file"}(E,oe),this.authority=M||B,this.path=function(be,Le){switch(be){case"https":case"http":case"file":Le?Le[0]!==se&&(Le=se+Le):Le=se}return Le}(this.scheme,U||B),this.query=ae||B,this.fragment=ne||B,function(be,Le){if(!be.scheme&&Le)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+be.authority+'", path: "'+be.path+'", query: "'+be.query+'", fragment: "'+be.fragment+'"}');if(be.scheme&&!W.test(be.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(be.path){if(be.authority){if(!j.test(be.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(X.test(be.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,oe))}return F.isUri=function(E){return E instanceof F||!!E&&typeof E.authority=="string"&&typeof E.fragment=="string"&&typeof E.path=="string"&&typeof E.query=="string"&&typeof E.scheme=="string"&&typeof E.fsPath=="function"&&typeof E.with=="function"&&typeof E.toString=="function"},Object.defineProperty(F.prototype,"fsPath",{get:function(){return Qe(this,!1)},enumerable:!1,configurable:!0}),F.prototype.with=function(E){if(!E)return this;var M=E.scheme,U=E.authority,ae=E.path,ne=E.query,oe=E.fragment;return M===void 0?M=this.scheme:M===null&&(M=B),U===void 0?U=this.authority:U===null&&(U=B),ae===void 0?ae=this.path:ae===null&&(ae=B),ne===void 0?ne=this.query:ne===null&&(ne=B),oe===void 0?oe=this.fragment:oe===null&&(oe=B),M===this.scheme&&U===this.authority&&ae===this.path&&ne===this.query&&oe===this.fragment?this:new Be(M,U,ae,ne,oe)},F.parse=function(E,M){M===void 0&&(M=!1);var U=ce.exec(E);return U?new Be(U[2]||B,Se(U[4]||B),Se(U[5]||B),Se(U[7]||B),Se(U[9]||B),M):new Be(B,B,B,B,B)},F.file=function(E){var M=B;if(le&&(E=E.replace(/\\/g,se)),E[0]===se&&E[1]===se){var U=E.indexOf(se,2);U===-1?(M=E.substring(2),E=se):(M=E.substring(2,U),E=E.substring(U)||se)}return new Be("file",M,E,B,B)},F.from=function(E){return new Be(E.scheme,E.authority,E.path,E.query,E.fragment)},F.prototype.toString=function(E){return E===void 0&&(E=!1),wt(this,E)},F.prototype.toJSON=function(){return this},F.revive=function(E){if(E){if(E instanceof F)return E;var M=new Be(E);return M._formatted=E.external,M._fsPath=E._sep===Ye?E.fsPath:null,M}return E},F}(),Ye=le?1:void 0,Be=function(F){function E(){var M=F!==null&&F.apply(this,arguments)||this;return M._formatted=null,M._fsPath=null,M}return D(E,F),Object.defineProperty(E.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Qe(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),E.prototype.toString=function(M){return M===void 0&&(M=!1),M?wt(this,!0):(this._formatted||(this._formatted=wt(this,!1)),this._formatted)},E.prototype.toJSON=function(){var M={$mid:1};return this._fsPath&&(M.fsPath=this._fsPath,M._sep=Ye),this._formatted&&(M.external=this._formatted),this.path&&(M.path=this.path),this.scheme&&(M.scheme=this.scheme),this.authority&&(M.authority=this.authority),this.query&&(M.query=this.query),this.fragment&&(M.fragment=this.fragment),M},E}(xe),qt=((R={})[58]="%3A",R[47]="%2F",R[63]="%3F",R[35]="%23",R[91]="%5B",R[93]="%5D",R[64]="%40",R[33]="%21",R[36]="%24",R[38]="%26",R[39]="%27",R[40]="%28",R[41]="%29",R[42]="%2A",R[43]="%2B",R[44]="%2C",R[59]="%3B",R[61]="%3D",R[32]="%20",R);function Lt(F,E){for(var M=void 0,U=-1,ae=0;ae<F.length;ae++){var ne=F.charCodeAt(ae);if(ne>=97&&ne<=122||ne>=65&&ne<=90||ne>=48&&ne<=57||ne===45||ne===46||ne===95||ne===126||E&&ne===47)U!==-1&&(M+=encodeURIComponent(F.substring(U,ae)),U=-1),M!==void 0&&(M+=F.charAt(ae));else{M===void 0&&(M=F.substr(0,ae));var oe=qt[ne];oe!==void 0?(U!==-1&&(M+=encodeURIComponent(F.substring(U,ae)),U=-1),M+=oe):U===-1&&(U=ae)}}return U!==-1&&(M+=encodeURIComponent(F.substring(U))),M!==void 0?M:F}function st(F){for(var E=void 0,M=0;M<F.length;M++){var U=F.charCodeAt(M);U===35||U===63?(E===void 0&&(E=F.substr(0,M)),E+=qt[U]):E!==void 0&&(E+=F[M])}return E!==void 0?E:F}function Qe(F,E){var M;return M=F.authority&&F.path.length>1&&F.scheme==="file"?"//"+F.authority+F.path:F.path.charCodeAt(0)===47&&(F.path.charCodeAt(1)>=65&&F.path.charCodeAt(1)<=90||F.path.charCodeAt(1)>=97&&F.path.charCodeAt(1)<=122)&&F.path.charCodeAt(2)===58?E?F.path.substr(1):F.path[1].toLowerCase()+F.path.substr(2):F.path,le&&(M=M.replace(/\//g,"\\")),M}function wt(F,E){var M=E?st:Lt,U="",ae=F.scheme,ne=F.authority,oe=F.path,be=F.query,Le=F.fragment;if(ae&&(U+=ae,U+=":"),(ne||ae==="file")&&(U+=se,U+=se),ne){var We=ne.indexOf("@");if(We!==-1){var $t=ne.substr(0,We);ne=ne.substr(We+1),(We=$t.indexOf(":"))===-1?U+=M($t,!1):(U+=M($t.substr(0,We),!1),U+=":",U+=M($t.substr(We+1),!1)),U+="@"}(We=(ne=ne.toLowerCase()).indexOf(":"))===-1?U+=M(ne,!1):(U+=M(ne.substr(0,We),!1),U+=ne.substr(We))}if(oe){if(oe.length>=3&&oe.charCodeAt(0)===47&&oe.charCodeAt(2)===58)(yt=oe.charCodeAt(1))>=65&&yt<=90&&(oe="/"+String.fromCharCode(yt+32)+":"+oe.substr(3));else if(oe.length>=2&&oe.charCodeAt(1)===58){var yt;(yt=oe.charCodeAt(0))>=65&&yt<=90&&(oe=String.fromCharCode(yt+32)+":"+oe.substr(2))}U+=M(oe,!0)}return be&&(U+="?",U+=M(be,!1)),Le&&(U+="#",U+=E?Le:Lt(Le,!1)),U}function Et(F){try{return decodeURIComponent(F)}catch(E){return F.length>3?F.substr(0,3)+Et(F.substr(3)):F}}var ue=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Se(F){return F.match(ue)?F.replace(ue,function(E){return Et(E)}):F}var fe,Me=te(470),at=function(){for(var F=0,E=0,M=arguments.length;E<M;E++)F+=arguments[E].length;var U=Array(F),ae=0;for(E=0;E<M;E++)for(var ne=arguments[E],oe=0,be=ne.length;oe<be;oe++,ae++)U[ae]=ne[oe];return U},_e=Me.posix||Me;!function(F){F.joinPath=function(E){for(var M=[],U=1;U<arguments.length;U++)M[U-1]=arguments[U];return E.with({path:_e.join.apply(_e,at([E.path],M))})},F.resolvePath=function(E){for(var M=[],U=1;U<arguments.length;U++)M[U-1]=arguments[U];var ae=E.path||"/";return E.with({path:_e.resolve.apply(_e,at([ae],M))})},F.dirname=function(E){var M=_e.dirname(E.path);return M.length===1&&M.charCodeAt(0)===46?E:E.with({path:M})},F.basename=function(E){return _e.basename(E.path)},F.extname=function(E){return _e.extname(E.path)}}(fe||(fe={}))}},O={};function V(q){if(O[q])return O[q].exports;var H=O[q]={exports:{}};return me[q](H,H.exports,V),H.exports}return V.d=(q,H)=>{for(var te in H)V.o(H,te)&&!V.o(q,te)&&Object.defineProperty(q,te,{enumerable:!0,get:H[te]})},V.o=(q,H)=>Object.prototype.hasOwnProperty.call(q,H),V.r=q=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(q,"__esModule",{value:!0})},V(447)})();const{URI:ie,Utils:pe}=Z}).call(this,Q("Q2Ig"))}});