(function(){"use strict";class gh{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?zt.isErrorNoTelemetry(e)?new zt(e.message+` `+e.stack):new Error(e.message+` `+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const Us=new gh;function Bs(t){qs(t)||Us.onUnexpectedError(t)}function c1(t){qs(t)||Us.onUnexpectedExternalError(t)}function Vs(t){if(t instanceof Error){const{name:e,message:n}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:zt.isErrorNoTelemetry(t)}}return t}const Zn="Canceled";function qs(t){return t instanceof bh?!0:t instanceof Error&&t.name===Zn&&t.message===Zn}class bh extends Error{constructor(){super(Zn),this.name=this.message}}function h1(){const t=new Error(Zn);return t.name=t.message,t}function u1(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function d1(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class p1 extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class zt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof zt)return e;const n=new zt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class tt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,tt.prototype)}}function vh(t,e){const n=this;let r=!1,i;return function(){if(r)return i;if(r=!0,e)try{i=t.apply(n,arguments)}finally{e()}else i=t.apply(n,arguments);return i}}var er;(function(t){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function r(){return n}t.empty=r;function*i(w){yield w}t.single=i;function s(w){return e(w)?w:i(w)}t.wrap=s;function o(w){return w||n}t.from=o;function*a(w){for(let C=w.length-1;C>=0;C--)yield w[C]}t.reverse=a;function l(w){return!w||w[Symbol.iterator]().next().done===!0}t.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}t.first=c;function h(w,C){for(const R of w)if(C(R))return!0;return!1}t.some=h;function d(w,C){for(const R of w)if(C(R))return R}t.find=d;function*f(w,C){for(const R of w)C(R)&&(yield R)}t.filter=f;function*m(w,C){let R=0;for(const z of w)yield C(z,R++)}t.map=m;function*b(...w){for(const C of w)yield*C}t.concat=b;function g(w,C,R){let z=R;for(const W of w)z=C(z,W);return z}t.reduce=g;function*y(w,C,R=w.length){for(C<0&&(C+=w.length),R<0?R+=w.length:R>w.length&&(R=w.length);C{e[t]||console.log(n)},3e3)}setParent(e,n){if(e&&e!==pt.None)try{e[t]=!0}catch{}}markAsDisposed(e){if(e&&e!==pt.None)try{e[t]=!0}catch{}}markAsSingleton(e){}})}function an(t){return Fe?.trackDisposable(t),t}function ln(t){Fe?.markAsDisposed(t)}function tr(t,e){Fe?.setParent(t,e)}function xh(t,e){if(Fe)for(const n of t)Fe.setParent(n,e)}function f1(t){return Fe?.markAsSingleton(t),t}function m1(t){return typeof t.dispose=="function"&&t.dispose.length===0}function Gr(t){if(er.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(r){e.push(r)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function Sh(...t){const e=nr(()=>Gr(t));return xh(t,e),e}function nr(t){const e=an({dispose:vh(()=>{ln(e),t()})});return e}class It{constructor(){this._toDispose=new Set,this._isDisposed=!1,an(this)}dispose(){this._isDisposed||(ln(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Gr(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return tr(e,this),this._isDisposed?It.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}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),tr(e,null))}}It.DISABLE_DISPOSED_WARNING=!1;class pt{constructor(){this._store=new It,an(this),tr(this._store,this)}dispose(){ln(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}pt.None=Object.freeze({dispose(){}});class g1{constructor(){this._isDisposed=!1,an(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var n;this._isDisposed||e===this._value||((n=this._value)===null||n===void 0||n.dispose(),e&&tr(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,ln(this),(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}}class b1{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class v1{constructor(e){this.object=e}dispose(){}}class y1{constructor(){this._store=new Map,this._isDisposed=!1,an(this)}dispose(){ln(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{Gr(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,n,r=!1){var i;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),r||(i=this._store.get(e))===null||i===void 0||i.dispose(),this._store.set(e,n)}deleteAndDispose(e){var n;(n=this._store.get(e))===null||n===void 0||n.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}class ae{constructor(e){this.element=e,this.next=ae.Undefined,this.prev=ae.Undefined}}ae.Undefined=new ae(void 0);class js{constructor(){this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ae.Undefined}clear(){let e=this._first;for(;e!==ae.Undefined;){const n=e.next;e.prev=ae.Undefined,e.next=ae.Undefined,e=n}this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const r=new ae(e);if(this._first===ae.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==ae.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ae.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ae.Undefined&&e.next!==ae.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===ae.Undefined&&e.next===ae.Undefined?(this._first=ae.Undefined,this._last=ae.Undefined):e.next===ae.Undefined?(this._last=this._last.prev,this._last.next=ae.Undefined):e.prev===ae.Undefined&&(this._first=this._first.next,this._first.prev=ae.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ae.Undefined;)yield e.element,e=e.next}}const _h=globalThis.performance&&typeof globalThis.performance.now=="function";class rr{static create(e){return new rr(e)}constructor(e){this._now=_h&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}const Ch=!1,$s=!1,kh=!1;var ir;(function(t){t.None=()=>pt.None;function e(A){if(kh){const{onDidAddListener:M}=A,I=cn.create();let P=0;A.onDidAddListener=()=>{++P===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),I.print()),M?.()}}}function n(A,M){return f(A,()=>{},0,void 0,!0,void 0,M)}t.defer=n;function r(A){return(M,I=null,P)=>{let O=!1,k;return k=A(x=>{if(!O)return k?k.dispose():O=!0,M.call(I,x)},null,P),O&&k.dispose(),k}}t.once=r;function i(A,M,I){return h((P,O=null,k)=>A(x=>P.call(O,M(x)),null,k),I)}t.map=i;function s(A,M,I){return h((P,O=null,k)=>A(x=>{M(x),P.call(O,x)},null,k),I)}t.forEach=s;function o(A,M,I){return h((P,O=null,k)=>A(x=>M(x)&&P.call(O,x),null,k),I)}t.filter=o;function a(A){return A}t.signal=a;function l(...A){return(M,I=null,P)=>{const O=Sh(...A.map(k=>k(x=>M.call(I,x))));return d(O,P)}}t.any=l;function c(A,M,I,P){let O=I;return i(A,k=>(O=M(O,k),O),P)}t.reduce=c;function h(A,M){let I;const P={onWillAddFirstListener(){I=A(O.fire,O)},onDidRemoveLastListener(){I?.dispose()}};M||e(P);const O=new Re(P);return M?.add(O),O.event}function d(A,M){return M instanceof Array?M.push(A):M&&M.add(A),A}function f(A,M,I=100,P=!1,O=!1,k,x){let D,L,H,X=0,ee;const We={leakWarningThreshold:k,onWillAddFirstListener(){D=A(Me=>{X++,L=M(L,Me),P&&!H&&(me.fire(L),L=void 0),ee=()=>{const ut=L;L=void 0,H=void 0,(!P||X>1)&&me.fire(ut),X=0},typeof I=="number"?(clearTimeout(H),H=setTimeout(ee,I)):H===void 0&&(H=0,queueMicrotask(ee))})},onWillRemoveListener(){O&&X>0&&ee?.()},onDidRemoveLastListener(){ee=void 0,D.dispose()}};x||e(We);const me=new Re(We);return x?.add(me),me.event}t.debounce=f;function m(A,M=0,I){return t.debounce(A,(P,O)=>P?(P.push(O),P):[O],M,void 0,!0,void 0,I)}t.accumulate=m;function b(A,M=(P,O)=>P===O,I){let P=!0,O;return o(A,k=>{const x=P||!M(k,O);return P=!1,O=k,x},I)}t.latch=b;function g(A,M,I){return[t.filter(A,M,I),t.filter(A,P=>!M(P),I)]}t.split=g;function y(A,M=!1,I=[],P){let O=I.slice(),k=A(L=>{O?O.push(L):D.fire(L)});P&&P.add(k);const x=()=>{O?.forEach(L=>D.fire(L)),O=null},D=new Re({onWillAddFirstListener(){k||(k=A(L=>D.fire(L)),P&&P.add(k))},onDidAddFirstListener(){O&&(M?setTimeout(x):x())},onDidRemoveLastListener(){k&&k.dispose(),k=null}});return P&&P.add(D),D.event}t.buffer=y;function _(A,M){return(P,O,k)=>{const x=M(new w);return A(function(D){const L=x.evaluate(D);L!==E&&P.call(O,L)},void 0,k)}}t.chain=_;const E=Symbol("HaltChainable");class w{constructor(){this.steps=[]}map(M){return this.steps.push(M),this}forEach(M){return this.steps.push(I=>(M(I),I)),this}filter(M){return this.steps.push(I=>M(I)?I:E),this}reduce(M,I){let P=I;return this.steps.push(O=>(P=M(P,O),P)),this}latch(M=(I,P)=>I===P){let I=!0,P;return this.steps.push(O=>{const k=I||!M(O,P);return I=!1,P=O,k?O:E}),this}evaluate(M){for(const I of this.steps)if(M=I(M),M===E)break;return M}}function C(A,M,I=P=>P){const P=(...D)=>x.fire(I(...D)),O=()=>A.on(M,P),k=()=>A.removeListener(M,P),x=new Re({onWillAddFirstListener:O,onDidRemoveLastListener:k});return x.event}t.fromNodeEventEmitter=C;function R(A,M,I=P=>P){const P=(...D)=>x.fire(I(...D)),O=()=>A.addEventListener(M,P),k=()=>A.removeEventListener(M,P),x=new Re({onWillAddFirstListener:O,onDidRemoveLastListener:k});return x.event}t.fromDOMEventEmitter=R;function z(A){return new Promise(M=>r(A)(M))}t.toPromise=z;function W(A){const M=new Re;return A.then(I=>{M.fire(I)},()=>{M.fire(void 0)}).finally(()=>{M.dispose()}),M.event}t.fromPromise=W;function T(A,M,I){return M(I),A(P=>M(P))}t.runAndSubscribe=T;class G{constructor(M,I){this._observable=M,this._counter=0,this._hasChanged=!1;const P={onWillAddFirstListener:()=>{M.addObserver(this)},onDidRemoveLastListener:()=>{M.removeObserver(this)}};I||e(P),this.emitter=new Re(P),I&&I.add(this.emitter)}beginUpdate(M){this._counter++}handlePossibleChange(M){}handleChange(M,I){this._hasChanged=!0}endUpdate(M){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function se(A,M){return new G(A,M).emitter.event}t.fromObservable=se;function J(A){return(M,I,P)=>{let O=0,k=!1;const x={beginUpdate(){O++},endUpdate(){O--,O===0&&(A.reportChanges(),k&&(k=!1,M.call(I)))},handlePossibleChange(){},handleChange(){k=!0}};A.addObserver(x),A.reportChanges();const D={dispose(){A.removeObserver(x)}};return P instanceof It?P.add(D):Array.isArray(P)&&P.push(D),D}}t.fromObservableLight=J})(ir||(ir={}));class Pt{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${Pt._idPool++}`,Pt.all.add(this)}start(e){this._stopWatch=new rr,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}Pt.all=new Set,Pt._idPool=0;let Hs=-1;class Eh{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,n){const r=this.threshold;if(r<=0||n{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}}class cn{static create(){var e;return new cn((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class sr{constructor(e){this.value=e}}const Fh=2,Rh=(t,e)=>{if(t instanceof sr)e(t);else for(let n=0;n{typeof t=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(t))}):void 0;class Re{constructor(e){var n,r,i,s,o;this._size=0,this._options=e,this._leakageMon=Hs>0||!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new Eh((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:Hs):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new Pt(this._options._profName):void 0,this._deliveryQueue=(o=this._options)===null||o===void 0?void 0:o.deliveryQueue}dispose(){var e,n,r,i;if(!this._disposed){if(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners){if($s){const s=this._listeners;queueMicrotask(()=>{Rh(s,o=>{var a;return(a=o.stack)===null||a===void 0?void 0:a.print()})})}this._listeners=void 0,this._size=0}(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose()}}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(n,r,i)=>{var s,o,a,l,c;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),pt.None;if(this._disposed)return pt.None;r&&(n=n.bind(r));const h=new sr(n);let d,f;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(h.stack=cn.create(),d=this._leakageMon.check(h.stack,this._size+1)),$s&&(h.stack=f??cn.create()),this._listeners?this._listeners instanceof sr?((c=this._deliveryQueue)!==null&&c!==void 0||(this._deliveryQueue=new Gs),this._listeners=[this._listeners,h]):this._listeners.push(h):((o=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||o===void 0||o.call(s,this),this._listeners=h,(l=(a=this._options)===null||a===void 0?void 0:a.onDidAddFirstListener)===null||l===void 0||l.call(a,this)),this._size++;const m=nr(()=>{hn?.unregister(m),d?.(),this._removeListener(h)});if(i instanceof It?i.add(m):Array.isArray(i)&&i.push(m),hn){const b=new Error().stack.split(` `).slice(2).join(` `).trim();hn.register(m,b,m)}return m}),this._event}_removeListener(e){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}const o=this._listeners,a=o.indexOf(e);if(a===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,o[a]=void 0;const l=this._deliveryQueue.current===this;if(this._size*Fh<=o.length){let c=0;for(let h=0;h0}}const w1=()=>new Gs;class Gs{constructor(){this.i=-1,this.end=0}enqueue(e,n,r){this.i=0,this.end=r,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class Dh extends Re{constructor(e){super(e),this._isPaused=0,this._eventQueue=new js,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){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._size&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class x1 extends Dh{constructor(e){var n;super(e),this._delay=(n=e.delay)!==null&&n!==void 0?n:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class S1 extends Re{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(n=>super.fire(n)),this._queuedEvents=[]}))}}class _1{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new Re({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);const r=()=>{this.hasListeners&&this.unhook(n);const i=this.events.indexOf(n);this.events.splice(i,1)};return toDisposable(createSingleCallFunction(r))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(n=>this.emitter.fire(n))}unhook(e){var n;(n=e.listener)===null||n===void 0||n.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const n of this.events)(e=n.listener)===null||e===void 0||e.dispose();this.events=[]}}class C1{constructor(){this.buffers=[]}wrapEvent(e){return(n,r,i)=>e(s=>{const o=this.buffers[this.buffers.length-1];o?o.push(()=>n.call(r,s)):n.call(r,s)},void 0,i)}bufferEvents(e){const n=[];this.buffers.push(n);const r=e();return this.buffers.pop(),n.forEach(i=>i()),r}}class k1{constructor(){this.listening=!1,this.inputEvent=ir.None,this.inputEventListener=Disposable.None,this.emitter=new Re({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{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 Ah(t){if(!t||typeof t!="object"||t instanceof RegExp)return t;const e=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([n,r])=>{e[n]=r&&typeof r=="object"?Ah(r):r}),e}function E1(t){if(!t||typeof t!="object")return t;const e=[t];for(;e.length>0;){const n=e.shift();Object.freeze(n);for(const r in n)if(Js.call(n,r)){const i=n[r];typeof i=="object"&&!Object.isFrozen(i)&&!isTypedArray(i)&&e.push(i)}}return t}const Js=Object.prototype.hasOwnProperty;function F1(t,e){return Jr(t,e,new Set)}function Jr(t,e,n){if(isUndefinedOrNull(t))return t;const r=e(t);if(typeof r<"u")return r;if(Array.isArray(t)){const i=[];for(const s of t)i.push(Jr(s,e,n));return i}if(isObject(t)){if(n.has(t))throw new Error("Cannot clone recursive data-structure");n.add(t);const i={};for(const s in t)Js.call(t,s)&&(i[s]=Jr(t[s],e,n));return n.delete(t),i}return t}function Mh(t,e,n=!0){return isObject(t)?(isObject(e)&&Object.keys(e).forEach(r=>{r in t?n&&(isObject(t[r])&&isObject(e[r])?Mh(t[r],e[r],n):t[r]=e[r]):t[r]=e[r]}),t):e}function Xr(t,e){if(t===e)return!0;if(t==null||e===null||e===void 0||typeof t!=typeof e||typeof t!="object"||Array.isArray(t)!==Array.isArray(e))return!1;let n,r;if(Array.isArray(t)){if(t.length!==e.length)return!1;for(n=0;nfunction(){const s=Array.prototype.slice.call(arguments,0);return e(i,s)},r={};for(const i of t)r[i]=n(i);return r}let Xs=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const zh="i-default";function un(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],o=e[s];let a=r;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),Xs&&(n="\uFF3B"+n.replace(/[aouei]/g,"$&$&")+"\uFF3D"),n}function Ih(t,e){let n=t[e];return n||(n=t["*"],n)?n:null}function Yr(t){return t.charAt(t.length-1)==="/"?t:t+"/"}async function Ys(t,e,n){const r=Yr(t)+Yr(e)+"vscode/"+Yr(n),i=await fetch(r);if(i.ok)return await i.json();throw new Error(`${i.status} - ${i.statusText}`)}function Kr(t){return function(e,n){const r=Array.prototype.slice.call(arguments,2);return un(t[e],r)}}function Qr(t){return(e,n,...r)=>({value:un(t[e],r),original:un(n,r)})}function le(t,e,...n){return un(e,n)}function Ph(t,e,...n){const r=un(e,n);return{value:r,original:r}}function R1(t){}function D1(t){Xs=t}function A1(t,e){var n;return{localize:Kr(e[t]),localize2:Qr(e[t]),getConfiguredDefaultLocale:(n=e.getConfiguredDefaultLocale)!==null&&n!==void 0?n:r=>{}}}function M1(t,e,n,r){var i;const s=(i=r["vs/nls"])!==null&&i!==void 0?i:{};if(!t||t.length===0)return n({localize:le,localize2:Ph,getConfiguredDefaultLocale:()=>{var h;return(h=s.availableLanguages)===null||h===void 0?void 0:h["*"]}});const o=s.availableLanguages?Ih(s.availableLanguages,t):null,a=o===null||o===zh;let l=".nls";a||(l=l+"."+o);const c=h=>{Array.isArray(h)?(h.localize=Kr(h),h.localize2=Qr(h)):(h.localize=Kr(h[t]),h.localize2=Qr(h[t])),h.getConfiguredDefaultLocale=()=>{var d;return(d=s.availableLanguages)===null||d===void 0?void 0:d["*"]},n(h)};typeof s.loadBundle=="function"?s.loadBundle(t,o,(h,d)=>{h?e([t+".nls"],c):c(d)}):s.translationServiceUrl&&!a?(async()=>{var h;try{const d=await Ys(s.translationServiceUrl,o,t);return c(d)}catch(d){if(!o.includes("-"))return console.error(d),e([t+".nls"],c);try{const f=o.split("-")[0],m=await Ys(s.translationServiceUrl,f,t);return(h=s.availableLanguages)!==null&&h!==void 0||(s.availableLanguages={}),s.availableLanguages["*"]=f,c(m)}catch(f){return console.error(f),e([t+".nls"],c)}}})():e([t+l],c,h=>{if(l===".nls"){console.error("Failed trying to load default language strings",h);return}console.error(`Failed to load message bundle for language ${o}. Falling back to the default language:`,h),e([t+".nls"],c)})}var Zr,ei;const ar="en";let lr=!1,cr=!1,hr=!1,Th=!1,Wh=!1,Ks=!1,Oh=!1,Uh=!1,Bh=!1,Vh=!1,ur,ti=null,Qs=null,qh=null,je;const nt=globalThis;let Se;typeof nt.vscode<"u"&&typeof nt.vscode.process<"u"?Se=nt.vscode.process:typeof process<"u"&&typeof((Zr=process==null?void 0:process.versions)===null||Zr===void 0?void 0:Zr.node)=="string"&&(Se=process);const Zs=typeof((ei=Se?.versions)===null||ei===void 0?void 0:ei.electron)=="string",jh=Zs&&Se?.type==="renderer";if(typeof Se=="object"){lr=Se.platform==="win32",cr=Se.platform==="darwin",hr=Se.platform==="linux",Th=hr&&!!Se.env.SNAP&&!!Se.env.SNAP_REVISION,Oh=Zs,Bh=!!Se.env.CI||!!Se.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ur=ar,ti=ar;const t=Se.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];ur=e.locale,Qs=e.osLocale,ti=n||ar,qh=e._translationsConfigFile}catch{}Wh=!0}else typeof navigator=="object"&&!jh?(je=navigator.userAgent,lr=je.indexOf("Windows")>=0,cr=je.indexOf("Macintosh")>=0,Uh=(je.indexOf("Macintosh")>=0||je.indexOf("iPad")>=0||je.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,hr=je.indexOf("Linux")>=0,Vh=je?.indexOf("Mobi")>=0,Ks=!0,ur=(le({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||ar,ti=ur,Qs=navigator.language):console.error("Unable to resolve platform.");let ni=0;cr?ni=1:lr?ni=3:hr&&(ni=2);const dn=lr,$h=cr,N1=null,L1=null,z1=null,P1=Ks&&typeof nt.importScripts=="function"?nt.origin:void 0,T1=null,W1=null,Ye=je,O1=null,Hh=typeof nt.postMessage=="function"&&!nt.importScripts,U1=(()=>{if(Hh){const t=[];nt.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r{const r=++e;t.push({id:r,callback:n}),nt.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})(),B1=null;let eo=!0,to=!1;function V1(){if(!to){to=!0;const t=new Uint8Array(2);t[0]=1,t[1]=2,eo=new Uint16Array(t.buffer)[0]===513}return eo}const Gh=!!(Ye&&Ye.indexOf("Chrome")>=0),q1=!!(Ye&&Ye.indexOf("Firefox")>=0),j1=!!(!Gh&&Ye&&Ye.indexOf("Safari")>=0),$1=!!(Ye&&Ye.indexOf("Edg/")>=0),H1=!!(Ye&&Ye.indexOf("Android")>=0);class Jh{constructor(e,n=JSON.stringify){this.fn=e,this._computeKey=n,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(e)),this.lastCache}}class G1{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const n=this.fn(e);return this._map.set(e,n),n}}class no{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var Tt;function J1(t){return!t||typeof t!="string"?!0:t.trim().length===0}const Xh=/{(\d+)}/g;function X1(t,...e){return e.length===0?t:t.replace(Xh,function(n,r){const i=parseInt(r,10);return isNaN(i)||i<0||i>=e.length?n:e[i]})}function Y1(t){return t.replace(/[<>"'&]/g,e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e})}function K1(t){return t.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function ro(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Q1(t,e=" "){const n=Yh(t,e);return Kh(n,e)}function Yh(t,e){if(!t||!e)return t;const n=e.length;if(n===0||t.length===0)return t;let r=0;for(;t.indexOf(e,r)===r;)r=r+n;return t.substring(r)}function Kh(t,e){if(!t||!e)return t;const n=e.length,r=t.length;if(n===0||r===0)return t;let i=r,s=-1;for(;s=t.lastIndexOf(e,i-1),!(s===-1||s+n!==i);){if(s===0)return"";i=s}return t.substring(0,i)}function Z1(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function eg(t){return t.replace(/\*/g,"")}function tg(t,e,n={}){if(!t)throw new Error("Cannot create regex from empty string");e||(t=ro(t)),n.wholeWord&&(/\B/.test(t.charAt(0))||(t="\\b"+t),/\B/.test(t.charAt(t.length-1))||(t=t+"\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(t,r)}function ng(t){return t.source==="^"||t.source==="^$"||t.source==="$"||t.source==="^\\s*$"?!1:!!(t.exec("")&&t.lastIndex===0)}function Qh(t){return t.split(/\r\n|\r|\n/)}function rg(t){var e;const n=[],r=t.split(/(\r\n|\r|\n)/);for(let i=0;i=0;n--){const r=t.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function sg(t,e){return te?1:0}function tu(t,e,n=0,r=t.length,i=0,s=e.length){for(;nc)return 1}const o=r-n,a=s-i;return oa?1:0}function og(t,e){return ri(t,e,0,t.length,0,e.length)}function ri(t,e,n=0,r=t.length,i=0,s=e.length){for(;n=128||c>=128)return tu(t.toLowerCase(),e.toLowerCase(),n,r,i,s);io(l)&&(l-=32),io(c)&&(c-=32);const h=l-c;if(h!==0)return h}const o=r-n,a=s-i;return oa?1:0}function ag(t){return t>=48&&t<=57}function io(t){return t>=97&&t<=122}function so(t){return t>=65&&t<=90}function lg(t,e){return t.length===e.length&&ri(t,e)===0}function cg(t,e){const n=e.length;return e.length>t.length?!1:ri(t,e,0,n)===0}function hg(t,e){const n=Math.min(t.length,e.length);let r;for(r=0;r1){const r=t.charCodeAt(e-2);if(pn(r))return ii(r,n)}return n}class si{get offset(){return this._offset}constructor(e,n=0){this._str=e,this._len=e.length,this._offset=n}setOffset(e){this._offset=e}prevCodePoint(){const e=nu(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=oo(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class ao{get offset(){return this._iterator.offset}constructor(e,n=0){this._iterator=new si(e,n)}nextGraphemeLength(){const e=ft.getInstance(),n=this._iterator,r=n.offset;let i=e.getGraphemeBreakType(n.nextCodePoint());for(;!n.eol();){const s=n.offset,o=e.getGraphemeBreakType(n.nextCodePoint());if(lo(i,o)){n.setOffset(s);break}i=o}return n.offset-r}prevGraphemeLength(){const e=ft.getInstance(),n=this._iterator,r=n.offset;let i=e.getGraphemeBreakType(n.prevCodePoint());for(;n.offset>0;){const s=n.offset,o=e.getGraphemeBreakType(n.prevCodePoint());if(lo(o,i)){n.setOffset(s);break}i=o}return r-n.offset}eol(){return this._iterator.eol()}}function ru(t,e){return new ao(t,e).nextGraphemeLength()}function iu(t,e){return new ao(t,e).prevGraphemeLength()}function dg(t,e){e>0&&fn(t.charCodeAt(e))&&e--;const n=e+ru(t,e);return[n-iu(t,n),n]}let oi=null;function su(){return/(?:[\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\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function pg(t){return oi||(oi=su()),oi.test(t)}const ou=/^[\t\n\r\x20-\x7E]*$/;function au(t){return ou.test(t)}const lu=/[\u2028\u2029]/;function fg(t){return lu.test(t)}function mg(t){return t>=11904&&t<=55215||t>=63744&&t<=64255||t>=65281&&t<=65374}function cu(t){return t>=127462&&t<=127487||t===8986||t===8987||t===9200||t===9203||t>=9728&&t<=10175||t===11088||t===11093||t>=127744&&t<=128591||t>=128640&&t<=128764||t>=128992&&t<=129008||t>=129280&&t<=129535||t>=129648&&t<=129782}const gg="\uFEFF";function bg(t){return!!(t&&t.length>0&&t.charCodeAt(0)===65279)}function vg(t,e=!1){return t?(e&&(t=t.replace(/\\./g,"")),t.toLowerCase()!==t):!1}function yg(t){return t=t%(2*26),t<26?String.fromCharCode(97+t):String.fromCharCode(65+t-26)}function lo(t,e){return t===0?e!==5&&e!==7:t===2&&e===3?!1:t===4||t===2||t===3||e===4||e===2||e===3?!0:!(t===8&&(e===8||e===9||e===11||e===12)||(t===11||t===9)&&(e===9||e===10)||(t===12||t===10)&&e===10||e===5||e===13||e===7||t===1||t===13&&e===14||t===6&&e===6)}class ft{static getInstance(){return ft._INSTANCE||(ft._INSTANCE=new ft),ft._INSTANCE}constructor(){this._data=hu()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const n=this._data,r=n.length/3;let i=1;for(;i<=r;)if(en[3*i+1])i=2*i+1;else return n[3*i+2];return 0}}ft._INSTANCE=null;function hu(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,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,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,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,129008,129008,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,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,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,2192,2193,1,2250,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,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,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,6862,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,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,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,9775,9775,14,9784,9785,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,9874,14,9876,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,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,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,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,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,118528,118573,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,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function wg(t,e){if(t===0)return 0;const n=uu(t,e);if(n!==void 0)return n;const r=new si(e,t);return r.prevCodePoint(),r.offset}function uu(t,e){const n=new si(e,t);let r=n.prevCodePoint();for(;du(r)||r===65039||r===8419;){if(n.offset===0)return;r=n.prevCodePoint()}if(!cu(r))return;let i=n.offset;return i>0&&n.prevCodePoint()===8205&&(i=n.offset),i}function du(t){return 127995<=t&&t<=127999}const xg="\xA0";class Ft{static getInstance(e){return Tt.cache.get(Array.from(e))}static getLocales(){return Tt._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}Tt=Ft,Ft.ambiguousCharacterData=new no(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Ft.cache=new Jh(t=>{function e(c){const h=new Map;for(let d=0;d!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let o;for(const c of s){const h=e(i[c]);o=r(o,h)}const a=e(i._common),l=n(a,o);return new Tt(l)}),Ft._locales=new no(()=>Object.keys(Tt.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));class mt{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(mt.getRawData())),this._data}static isInvisibleCharacter(e){return mt.getData().has(e)}static get codePoints(){return mt.getData()}}mt._data=void 0;const co="$initialize";let ho=!1;function Sg(t){isWeb&&(ho||(ho=!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(t.message))}class pu{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.method=r,this.args=i,this.type=0}}class uo{constructor(e,n,r,i){this.vsWorker=e,this.seq=n,this.res=r,this.err=i,this.type=1}}class fu{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class mu{constructor(e,n,r){this.vsWorker=e,this.req=n,this.event=r,this.type=3}}class gu{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class po{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,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new pu(this._workerId,r,e,n))})}listen(e,n){let r=null;const i=new Re({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new fu(this._workerId,r,e,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new gu(this._workerId,r)),r=null}});return i.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||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}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let r=e.err;e.err.$isError&&(r=new Error,r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack),n.reject(r);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.method,e.args).then(i=>{this._send(new uo(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Vs(i.detail)),this._send(new uo(this._workerId,n,void 0,Vs(i)))})}_handleSubscribeEventMessage(e){const n=e.req,r=this._handler.handleEvent(e.eventName,e.arg)(i=>{this._send(new mu(this._workerId,n,i))});this._pendingEvents.set(n,r)}_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){const n=[];if(e.type===0)for(let r=0;r{this._protocol.handleMessage(h)},h=>{i?.(h)})),this._protocol=new po({sendMessage:(h,d)=>{this._worker.postMessage(h,d)},handleMessage:(h,d)=>{if(typeof r[h]!="function")return Promise.reject(new Error("Missing method "+h+" on main thread host."));try{return Promise.resolve(r[h].apply(r,d))}catch(f){return Promise.reject(f)}},handleEvent:(h,d)=>{if(li(h)){const f=r[h].call(r,d);if(typeof f!="function")throw new Error(`Missing dynamic event ${h} on main thread host.`);return f}if(ai(h)){const f=r[h];if(typeof f!="function")throw new Error(`Missing event ${h} on main thread host.`);return f}throw new Error(`Malformed event name ${h}`)}}),this._protocol.setWorkerId(this._worker.getId());let s=null;const o=globalThis.require;typeof o<"u"&&typeof o.getConfig=="function"?s=o.getConfig():typeof globalThis.requirejs<"u"&&(s=globalThis.requirejs.s.contexts._.config);const a=or(r);this._onModuleLoaded=this._protocol.sendMessage(co,[this._worker.getId(),JSON.parse(JSON.stringify(s)),n,a]);const l=(h,d)=>this._request(h,d),c=(h,d)=>this._protocol.listen(h,d);this._lazyProxy=new Promise((h,d)=>{i=d,this._onModuleLoaded.then(f=>{h(fo(f,l,c))},f=>{d(f),this._onError("Worker failed to load "+n,f)})})}getProxyObject(){return this._lazyProxy}_request(e,n){return new Promise((r,i)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,n).then(r,i)},i)})}_onError(e,n){console.error(e),console.info(n)}}function ai(t){return t[0]==="o"&&t[1]==="n"&&so(t.charCodeAt(2))}function li(t){return/^onDynamic/.test(t)&&so(t.charCodeAt(9))}function fo(t,e,n){const r=o=>function(){const a=Array.prototype.slice.call(arguments,0);return e(o,a)},i=o=>function(a){return n(o,a)},s={};for(const o of t){if(li(o)){s[o]=i(o);continue}if(ai(o)){s[o]=n(o,void 0);continue}s[o]=r(o)}return s}class mo{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new po({sendMessage:(r,i)=>{e(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if(e===co)return this.initialize(n[0],n[1],n[2],n[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,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(li(e)){const r=this._requestHandler[e].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${e} on request handler.`);return r}if(ai(e)){const r=this._requestHandler[e];if(typeof r!="function")throw new Error(`Missing event ${e} on request handler.`);return r}throw new Error(`Malformed event name ${e}`)}initialize(e,n,r,i){this._protocol.setWorkerId(e);const a=fo(i,(l,c)=>this._protocol.sendMessage(l,c),(l,c)=>this._protocol.listen(l,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(a),Promise.resolve(or(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,c)=>{const h=globalThis.require;h([r],d=>{if(this._requestHandler=d.create(a),!this._requestHandler){c(new Error("No RequestHandler!"));return}l(or(this._requestHandler))},c)}))}}function Cg(t){return new mo(t,null)}class gt{constructor(e,n,r,i){this.originalStart=e,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function kg(t){return ci(t,0)}function ci(t,e){switch(typeof t){case"object":return t===null?rt(349,e):Array.isArray(t)?vu(t,e):yu(t,e);case"string":return hi(t,e);case"boolean":return bu(t,e);case"number":return rt(t,e);case"undefined":return rt(937,e);default:return rt(617,e)}}function rt(t,e){return(e<<5)-e+t|0}function bu(t,e){return rt(t?433:863,e)}function hi(t,e){e=rt(149417,e);for(let n=0,r=t.length;nci(r,n),e)}function yu(t,e){return e=rt(181387,e),Object.keys(t).sort().reduce((n,r)=>(n=hi(r,n),ci(t[r],n)),e)}function ui(t,e,n=32){const r=n-e,i=~((1<>>r)>>>0}function go(t,e=0,n=t.byteLength,r=0){for(let i=0;in.toString(16).padStart(2,"0")).join(""):wu((t>>>0).toString(16),e/4)}class di{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const n=e.length;if(n===0)return;const r=this._buff;let i=this._buffLen,s=this._leftoverHighSurrogate,o,a;for(s!==0?(o=s,a=-1,s=0):(o=e.charCodeAt(0),a=0);;){let l=o;if(pn(o))if(a+1>>6,e[n++]=128|(r&63)>>>0):r<65536?(e[n++]=224|(r&61440)>>>12,e[n++]=128|(r&4032)>>>6,e[n++]=128|(r&63)>>>0):(e[n++]=240|(r&1835008)>>>18,e[n++]=128|(r&258048)>>>12,e[n++]=128|(r&4032)>>>6,e[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),n}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()),mn(this._h0)+mn(this._h1)+mn(this._h2)+mn(this._h3)+mn(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,go(this._buff,this._buffLen),this._buffLen>56&&(this._step(),go(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=di._bigBlock32,n=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,n.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,ui(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,o=this._h3,a=this._h4,l,c,h;for(let d=0;d<80;d++)d<20?(l=i&s|~i&o,c=1518500249):d<40?(l=i^s^o,c=1859775393):d<60?(l=i&s|i&o|s&o,c=2400959708):(l=i^s^o,c=3395469782),h=ui(r,5)+l+a+c+e.getUint32(d*4,!1)&4294967295,a=o,o=s,s=ui(i,30),i=r,r=h;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+a&4294967295}}di._bigBlock32=new DataView(new ArrayBuffer(320));class bo{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let r=0,i=e.length;r0||this.m_modifiedCount>0)&&this.m_changes.push(new gt(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,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),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 bt{constructor(e,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=e,this._modifiedSequence=n;const[i,s,o]=bt._getElements(e),[a,l,c]=bt._getElements(n);this._hasStrings=o&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=a,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(bt._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i=e&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(e>n||r>i){let d;return r<=i?(Wt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),d=[new gt(e,0,r,i-r+1)]):e<=n?(Wt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),d=[new gt(e,n-e+1,r,0)]):(Wt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),Wt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const o=[0],a=[0],l=this.ComputeRecursionPoint(e,n,r,i,o,a,s),c=o[0],h=a[0];if(l!==null)return l;if(!s[0]){const d=this.ComputeDiffRecursive(e,c,r,h,s);let f=[];return s[0]?f=[new gt(c+1,n-(c+1)+1,h+1,i-(h+1)+1)]:f=this.ComputeDiffRecursive(c+1,n,h+1,i,s),this.ConcatenateChanges(d,f)}return[new gt(e,n-e+1,r,i-r+1)]}WALKTRACE(e,n,r,i,s,o,a,l,c,h,d,f,m,b,g,y,_,E){let w=null,C=null,R=new vo,z=n,W=r,T=m[0]-y[0]-i,G=-1073741824,se=this.m_forwardHistory.length-1;do{const J=T+e;J===z||J=0&&(c=this.m_forwardHistory[se],e=c[0],z=1,W=c.length-1)}while(--se>=-1);if(w=R.getReverseChanges(),E[0]){let J=m[0]+1,A=y[0]+1;if(w!==null&&w.length>0){const M=w[w.length-1];J=Math.max(J,M.getOriginalEnd()),A=Math.max(A,M.getModifiedEnd())}C=[new gt(J,f-J+1,A,g-A+1)]}else{R=new vo,z=o,W=a,T=m[0]-y[0]-l,G=1073741824,se=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const J=T+s;J===z||J=h[J+1]?(d=h[J+1]-1,b=d-T-l,d>G&&R.MarkNextChange(),G=d+1,R.AddOriginalElement(d+1,b+1),T=J+1-s):(d=h[J-1],b=d-T-l,d>G&&R.MarkNextChange(),G=d,R.AddModifiedElement(d+1,b+1),T=J-1-s),se>=0&&(h=this.m_reverseHistory[se],s=h[0],z=1,W=h.length-1)}while(--se>=-1);C=R.getChanges()}return this.ConcatenateChanges(w,C)}ComputeRecursionPoint(e,n,r,i,s,o,a){let l=0,c=0,h=0,d=0,f=0,m=0;e--,r--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const b=n-e+(i-r),g=b+1,y=new Int32Array(g),_=new Int32Array(g),E=i-r,w=n-e,C=e-r,R=n-i,W=(w-E)%2===0;y[E]=e,_[w]=n,a[0]=!1;for(let T=1;T<=b/2+1;T++){let G=0,se=0;h=this.ClipDiagonalBound(E-T,T,E,g),d=this.ClipDiagonalBound(E+T,T,E,g);for(let A=h;A<=d;A+=2){A===h||AG+se&&(G=l,se=c),!W&&Math.abs(A-w)<=T-1&&l>=_[A])return s[0]=l,o[0]=c,M<=_[A]&&T<=1448?this.WALKTRACE(E,h,d,C,w,f,m,R,y,_,l,n,s,c,i,o,W,a):null}const J=(G-e+(se-r)-T)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(G,J))return a[0]=!0,s[0]=G,o[0]=se,J>0&&T<=1448?this.WALKTRACE(E,h,d,C,w,f,m,R,y,_,l,n,s,c,i,o,W,a):(e++,r++,[new gt(e,n-e+1,r,i-r+1)]);f=this.ClipDiagonalBound(w-T,T,w,g),m=this.ClipDiagonalBound(w+T,T,w,g);for(let A=f;A<=m;A+=2){A===f||A=_[A+1]?l=_[A+1]-1:l=_[A-1],c=l-(A-w)-R;const M=l;for(;l>e&&c>r&&this.ElementsAreEqual(l,c);)l--,c--;if(_[A]=l,W&&Math.abs(A-E)<=T&&l<=y[A])return s[0]=l,o[0]=c,M>=y[A]&&T<=1448?this.WALKTRACE(E,h,d,C,w,f,m,R,y,_,l,n,s,c,i,o,W,a):null}if(T<=1447){let A=new Int32Array(d-h+2);A[0]=E-h+1,Ot.Copy2(y,h,A,1,d-h+1),this.m_forwardHistory.push(A),A=new Int32Array(m-f+2),A[0]=w-f+1,Ot.Copy2(_,f,A,1,m-f+1),this.m_reverseHistory.push(A)}}return this.WALKTRACE(E,h,d,C,w,f,m,R,y,_,l,n,s,c,i,o,W,a)}PrettifyChanges(e){for(let n=0;n0,a=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;n--){const r=e[n];let i=0,s=0;if(n>0){const d=e[n-1];i=d.originalStart+d.originalLength,s=d.modifiedStart+d.modifiedLength}const o=r.originalLength>0,a=r.modifiedLength>0;let l=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let d=1;;d++){const f=r.originalStart-d,m=r.modifiedStart-d;if(fc&&(c=g,l=d)}r.originalStart-=l,r.modifiedStart-=l;const h=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],h)){e[n-1]=h[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=e.length;n0&&m>l&&(l=m,c=d,h=f)}return l>0?[c,h]:null}_contiguousSequenceScore(e,n,r){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(e,n,r,i){const s=this._OriginalRegionIsBoundary(e,n)?1:0,o=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+o}ConcatenateChanges(e,n){const r=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],r)){const i=new Array(e.length+n.length-1);return Ot.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],Ot.Copy(n,1,i,e.length,n.length-1),i}else{const i=new Array(e.length+n.length);return Ot.Copy(e,0,i,0,e.length),Ot.Copy(n,0,i,e.length,n.length),i}}ChangesOverlap(e,n,r){if(Wt.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Wt.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const i=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(a=n.modifiedStart+n.modifiedLength-e.modifiedStart),r[0]=new gt(i,s,o,a),!0}else return r[0]=null,!1}ClipDiagonalBound(e,n,r,i){if(e>=0&&e=Cu&&t<=Eu||t>=ku&&t<=Fu}function pr(t,e,n,r){let i="",s=0,o=-1,a=0,l=0;for(let c=0;c<=t.length;++c){if(c2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),o=c,a=0;continue}else if(i.length!==0){i="",s=0,o=c,a=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(o+1,c)}`:i=t.slice(o+1,c),s=c-o-1;o=c,a=0}else l===vt&&a!==-1?++a:a=-1}return i}function wo(t,e){Du(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const De={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],pe(s,"path"),s.length===0)continue}else e.length===0?s=dr():(s=Su[`=${e}`]||dr(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===Ne)&&(s=`${e}\\`));const o=s.length;let a=0,l="",c=!1;const h=s.charCodeAt(0);if(o===1)Y(h)&&(a=1,c=!0);else if(Y(h))if(c=!0,Y(s.charCodeAt(1))){let d=2,f=d;for(;d2&&Y(s.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(n=`${s.slice(a)}\\${n}`,r=c,c&&e.length>0)break}return n=pr(n,!r,"\\",Y),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){pe(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return fi(s)?"\\":t;if(Y(s))if(i=!0,Y(t.charCodeAt(1))){let a=2,l=a;for(;a2&&Y(t.charCodeAt(2))&&(i=!0,n=3));let o=n0&&Y(t.charCodeAt(e-1))&&(o+="\\"),r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(t){pe(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return Y(n)||e>2&&xt(n)&&t.charCodeAt(1)===yt&&Y(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s0&&(e===void 0?e=n=o:e+=`\\${o}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&Y(n.charCodeAt(0))){++i;const s=n.length;s>1&&Y(n.charCodeAt(1))&&(++i,s>2&&(Y(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(e=`\\${e.slice(i)}`)}return De.normalize(e)},relative(t,e){if(pe(t,"from"),pe(e,"to"),t===e)return"";const n=De.resolve(t),r=De.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";let i=0;for(;ii&&t.charCodeAt(s-1)===Ne;)s--;const o=s-i;let a=0;for(;aa&&e.charCodeAt(l-1)===Ne;)l--;const c=l-a,h=oh){if(e.charCodeAt(a+f)===Ne)return r.slice(a+f+1);if(f===2)return r.slice(a+f)}o>h&&(t.charCodeAt(i+f)===Ne?d=f:f===2&&(d=3)),d===-1&&(d=0)}let m="";for(f=i+d+1;f<=s;++f)(f===s||t.charCodeAt(f)===Ne)&&(m+=m.length===0?"..":"\\..");return a+=d,m.length>0?`${m}${r.slice(a,l)}`:(r.charCodeAt(a)===Ne&&++a,r.slice(a,l))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=De.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===Ne){if(e.charCodeAt(1)===Ne){const n=e.charCodeAt(2);if(n!==Ru&&n!==vt)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(xt(e.charCodeAt(0))&&e.charCodeAt(1)===yt&&e.charCodeAt(2)===Ne)return`\\\\?\\${e}`;return t},dirname(t){pe(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return Y(i)?t:".";if(Y(i)){if(n=r=1,Y(t.charCodeAt(1))){let a=2,l=a;for(;a2&&Y(t.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=e-1;a>=r;--a)if(Y(t.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&pe(e,"ext"),pe(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&&xt(t.charCodeAt(0))&&t.charCodeAt(1)===yt&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=n;--s){const l=t.charCodeAt(s);if(Y(l)){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(l===e.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(Y(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){pe(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,o=0;t.length>=2&&t.charCodeAt(1)===yt&&xt(t.charCodeAt(0))&&(e=r=2);for(let a=t.length-1;a>=e;--a){const l=t.charCodeAt(a);if(Y(l)){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),l===vt?n===-1?n=a:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:wo.bind(null,"\\"),parse(t){pe(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return Y(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(Y(i)){if(r=1,Y(t.charCodeAt(1))){let d=2,f=d;for(;d0&&(e.root=t.slice(0,r));let s=-1,o=r,a=-1,l=!0,c=t.length-1,h=0;for(;c>=r;--c){if(i=t.charCodeAt(c),Y(i)){if(!l){o=c+1;break}continue}a===-1&&(l=!1,a=c+1),i===vt?s===-1?s=c:h!==1&&(h=1):s!==-1&&(h=-1)}return a!==-1&&(s===-1||h===0||h===1&&s===a-1&&s===o+1?e.base=e.name=t.slice(o,a):(e.name=t.slice(o,s),e.base=t.slice(o,a),e.ext=t.slice(s,a))),o>0&&o!==r?e.dir=t.slice(0,o-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},Au=(()=>{if(wt){const t=/\\/g;return()=>{const e=dr().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>dr()})(),Le={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:Au();pe(i,"path"),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===xe)}return e=pr(e,!n,"/",fi),n?`/${e}`:e.length>0?e:"."},normalize(t){if(pe(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===xe,n=t.charCodeAt(t.length-1)===xe;return t=pr(t,!e,"/",fi),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return pe(t,"path"),t.length>0&&t.charCodeAt(0)===xe},join(...t){if(t.length===0)return".";let e;for(let n=0;n0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":Le.normalize(e)},relative(t,e){if(pe(t,"from"),pe(e,"to"),t===e||(t=Le.resolve(t),e=Le.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,o=e.length-s,a=ia){if(e.charCodeAt(s+c)===xe)return e.slice(s+c+1);if(c===0)return e.slice(s+c)}else i>a&&(t.charCodeAt(n+c)===xe?l=c:c===0&&(l=0));let h="";for(c=n+l+1;c<=r;++c)(c===r||t.charCodeAt(c)===xe)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+l)}`},toNamespacedPath(t){return t},dirname(t){if(pe(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===xe;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===xe){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&pe(e,"ext"),pe(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let o=e.length-1,a=-1;for(s=t.length-1;s>=0;--s){const l=t.charCodeAt(s);if(l===xe){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(l===e.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===xe){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){pe(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let o=t.length-1;o>=0;--o){const a=t.charCodeAt(o);if(a===xe){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),a===vt?e===-1?e=o:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:wo.bind(null,"/"),parse(t){pe(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===xe;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,l=t.length-1,c=0;for(;l>=r;--l){const h=t.charCodeAt(l);if(h===xe){if(!a){s=l+1;break}continue}o===-1&&(a=!1,o=l+1),h===vt?i===-1?i=l:c!==1&&(c=1):i!==-1&&(c=-1)}if(o!==-1){const h=s===0&&n?1:s;i===-1||c===0||c===1&&i===o-1&&i===s+1?e.base=e.name=t.slice(h,o):(e.name=t.slice(h,i),e.base=t.slice(h,o),e.ext=t.slice(i,o))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Le.win32=De.win32=De,Le.posix=De.posix=Le;const Eg=wt?De.normalize:Le.normalize,Fg=wt?De.resolve:Le.resolve,Rg=wt?De.relative:Le.relative,Dg=wt?De.dirname:Le.dirname,Ag=wt?De.basename:Le.basename,Mg=wt?De.extname:Le.extname,Ng=wt?De.sep:Le.sep,Mu=/^\w[\w\d+.-]*$/,Nu=/^\//,Lu=/^\/\//;function zu(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!Mu.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Nu.test(t.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(Lu.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Iu(t,e){return!t&&!e?"file":t}function Pu(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==$e&&(e=$e+e):e=$e;break}return e}const he="",$e="/",Tu=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Rt{static isUri(e){return e instanceof Rt?!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}constructor(e,n,r,i,s,o=!1){typeof e=="object"?(this.scheme=e.scheme||he,this.authority=e.authority||he,this.path=e.path||he,this.query=e.query||he,this.fragment=e.fragment||he):(this.scheme=Iu(e,o),this.authority=n||he,this.path=Pu(this.scheme,r||he),this.query=i||he,this.fragment=s||he,zu(this,o))}get fsPath(){return mi(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:o}=e;return n===void 0?n=this.scheme:n===null&&(n=he),r===void 0?r=this.authority:r===null&&(r=he),i===void 0?i=this.path:i===null&&(i=he),s===void 0?s=this.query:s===null&&(s=he),o===void 0?o=this.fragment:o===null&&(o=he),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&o===this.fragment?this:new Bt(n,r,i,s,o)}static parse(e,n=!1){const r=Tu.exec(e);return r?new Bt(r[2]||he,fr(r[4]||he),fr(r[5]||he),fr(r[7]||he),fr(r[9]||he),n):new Bt(he,he,he,he,he)}static file(e){let n=he;if(dn&&(e=e.replace(/\\/g,$e)),e[0]===$e&&e[1]===$e){const r=e.indexOf($e,2);r===-1?(n=e.substring(2),e=$e):(n=e.substring(2,r),e=e.substring(r)||$e)}return new Bt("file",n,e,he,he)}static from(e,n){return new Bt(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return dn&&e.scheme==="file"?r=Rt.file(De.join(mi(e,!0),...n)).path:r=Le.join(e.path,...n),e.with({path:r})}toString(e=!1){return gi(this,e)}toJSON(){return this}static revive(e){var n,r;if(e){if(e instanceof Rt)return e;{const i=new Bt(e);return i._formatted=(n=e.external)!==null&&n!==void 0?n:null,i._fsPath=e._sep===xo&&(r=e.fsPath)!==null&&r!==void 0?r:null,i}}else return e}}const xo=dn?1:void 0;class Bt extends Rt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=mi(this,!1)),this._fsPath}toString(e=!1){return e?gi(this,!0):(this._formatted||(this._formatted=gi(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=xo),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 So={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 _o(t,e,n){let r,i=-1;for(let s=0;s=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const a=So[o];a!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=a):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function Wu(t){let e;for(let n=0;n1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,dn&&(n=n.replace(/\//g,"\\")),n}function gi(t,e){const n=e?Wu:_o;let r="",{scheme:i,authority:s,path:o,query:a,fragment:l}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=$e,r+=$e),s){let c=s.indexOf("@");if(c!==-1){const h=s.substr(0,c);s=s.substr(c+1),c=h.lastIndexOf(":"),c===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,c),!1,!1),r+=":",r+=n(h.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const c=o.charCodeAt(1);c>=65&&c<=90&&(o=`/${String.fromCharCode(c+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const c=o.charCodeAt(0);c>=65&&c<=90&&(o=`${String.fromCharCode(c+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=e?l:_o(l,!1,!1)),r}function Co(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+Co(t.substr(3)):t}}const ko=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function fr(t){return t.match(ko)?t.replace(ko,e=>Co(e)):t}class _e{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new _e(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return _e.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return _e.isBefore(this,e)}static isBefore(e,n){return e.lineNumberr||e===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return K.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return K.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.columne.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return K.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumne.endColumn)}strictContainsRange(e){return K.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return K.plusRange(this,e)}static plusRange(e,n){let r,i,s,o;return n.startLineNumbere.endLineNumber?(s=n.endLineNumber,o=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,o=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new K(r,i,s,o)}intersectRanges(e){return K.intersectRanges(this,e)}static intersectRanges(e,n){let r=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,h=n.endColumn;return rc?(s=c,o=h):s===c&&(o=Math.min(o,h)),r>s||r===s&&i>o?null:new K(r,i,s,o)}equalsRange(e){return K.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return K.getEndPosition(this)}static getEndPosition(e){return new _e(e.endLineNumber,e.endColumn)}getStartPosition(){return K.getStartPosition(this)}static getStartPosition(e){return new _e(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new K(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new K(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return K.collapseToStart(this)}static collapseToStart(e){return new K(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return K.collapseToEnd(this)}static collapseToEnd(e){return new K(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new K(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,n=e){return new K(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new K(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,n){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}function Lg(t,e=0){return t[t.length-(1+e)]}function zg(t){if(t.length===0)throw new Error("Invalid tail call");return[t.slice(0,t.length-1),t[t.length-1]]}function Ou(t,e,n=(r,i)=>r===i){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let r=0,i=t.length;rn(t[r],e))}function Uu(t,e){let n=0,r=t-1;for(;n<=r;){const i=(n+r)/2|0,s=e(i);if(s<0)n=i+1;else if(s>0)r=i-1;else return i}return-(n+1)}function Eo(t,e,n){if(t=t|0,t>=e.length)throw new TypeError("invalid index");const r=e[Math.floor(e.length*Math.random())],i=[],s=[],o=[];for(const a of e){const l=n(a,r);l<0?i.push(a):l>0?s.push(a):o.push(a)}return t!!e)}function Og(t){let e=0;for(let n=0;n0}function Vg(t,e=n=>n){const n=new Set;return t.filter(r=>{const i=e(r);return n.has(i)?!1:(n.add(i),!0)})}function qg(t,e){return t.length>0?t[0]:e}function jg(t,e){let n=typeof e=="number"?t:0;typeof e=="number"?n=t:(n=0,e=t);const r=[];if(n<=e)for(let i=n;ie;i--)r.push(i);return r}function $g(t,e,n){const r=t.slice(0,e),i=t.slice(e);return r.concat(n,i)}function Hg(t,e){const n=t.indexOf(e);n>-1&&(t.splice(n,1),t.unshift(e))}function Gg(t,e){const n=t.indexOf(e);n>-1&&(t.splice(n,1),t.push(e))}function ju(t,e){for(const n of e)t.push(n)}function Jg(t){return Array.isArray(t)?t:[t]}function $u(t,e,n){const r=Fo(t,e),i=t.length,s=n.length;t.length=i+s;for(let o=i-1;o>=r;o--)t[o+s]=t[o];for(let o=0;o0}t.isGreaterThan=r;function i(s){return s===0}t.isNeitherLessOrGreaterThan=i,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(gn||(gn={}));function mr(t,e){return(n,r)=>e(t(n),t(r))}function Yg(...t){return(e,n)=>{for(const r of t){const i=r(e,n);if(!gn.isNeitherLessOrGreaterThan(i))return i}return gn.neitherLessOrGreaterThan}}const bn=(t,e)=>t-e,Kg=(t,e)=>bn(t?1:0,e?1:0);function Hu(t){return(e,n)=>-t(e,n)}class Qg{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let n=this.firstIdx;for(;n=0&&e(this.items[n]);)n--;const r=n===this.lastIdx?null:this.items.slice(n+1,this.lastIdx+1);return this.lastIdx=n,r}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const n=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,n}}class vn{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new vn(n=>this.iterate(r=>e(r)?n(r):!0))}map(e){return new vn(n=>this.iterate(r=>n(e(r))))}findLast(e){let n;return this.iterate(r=>(e(r)&&(n=r),!0)),n}findLastMaxBy(e){let n,r=!0;return this.iterate(i=>((r||gn.isGreaterThan(e(i,n)))&&(r=!1,n=i),!0)),n}}vn.empty=new vn(t=>{});class bi{constructor(e){this._indexMap=e}static createSortPermutation(e,n){const r=Array.from(e.keys()).sort((i,s)=>n(e[i],e[s]));return new bi(r)}apply(e){return e.map((n,r)=>e[this._indexMap[r]])}inverse(){const e=this._indexMap.slice();for(let n=0;n255?255:t|0}function Vt(t){return t<0?0:t>4294967295?4294967295:t|0}class Gu{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=Vt(e);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+s),this.values.set(n,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=Vt(e),n=Vt(n),this.values[e]===n?!1:(this.values[e]=n,e-1=r.length)return!1;const s=r.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.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=Vt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let r=n;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,o=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],o=s-this.values[i],e=s)n=i+1;else break;return new Do(i,e-o)}}class Zg{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const n=this._indexBySum[e],r=n>0?this._prefixSum[n-1]:0;return new Do(n,e-r)}removeValues(e,n){this._values.splice(e,n),this._invalidate(e)}insertValues(e,n){this._values=arrayInsert(this._values,e,n),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,n=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+r;for(let s=0;s/?";function Yu(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of Xu)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const Ao=Yu();function Mo(t){let e=Ao;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const No=new js;No.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function vi(t,e,n,r,i){if(e=Mo(e),i||(i=er.first(No)),n.length>i.maxLen){let c=t-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,t+i.maxLen/2),vi(t,e,n,r,i)}const s=Date.now(),o=t-1-r;let a=-1,l=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const h=o-i.windowSize*c;e.lastIndex=Math.max(0,h);const d=Ku(e,n,o,a);if(!d&&l||(l=d,h<=0))break;a=h}if(l){const c={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function Ku(t,e,n,r){let i;for(;i=t.exec(e);){const s=i.index||0;if(s<=n&&t.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class yn{constructor(e){const n=Ro(e);this._defaultValue=n,this._asciiMap=yn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const r=Ro(n);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class e0{constructor(){this._actual=new yn(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}class Qu{constructor(e,n,r){const i=new Uint8Array(e*n);for(let s=0,o=e*n;sn&&(n=l),a>r&&(r=a),c>r&&(r=c)}n++,r++;const i=new Qu(r,n,0);for(let s=0,o=e.length;s=this._maxCharCode?0:this._states.get(e,n)}}let yi=null;function ed(){return yi===null&&(yi=new Zu([[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]])),yi}let wn=null;function td(){if(wn===null){wn=new yn(0);const t=` <>'"\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;ni);if(i>0){const a=n.charCodeAt(i-1),l=n.charCodeAt(o);(a===40&&l===41||a===91&&l===93||a===123&&l===125)&&o--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:o+2},url:n.substring(i,o+1)}}static computeLinks(e,n=ed()){const r=td(),i=[];for(let s=1,o=e.getLineCount();s<=o;s++){const a=e.getLineContent(s),l=a.length;let c=0,h=0,d=0,f=1,m=!1,b=!1,g=!1,y=!1;for(;c=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}wi.INSTANCE=new wi;const Lo=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var br;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof vr?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ir.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Lo})})(br||(br={}));class vr{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?Lo:(this._emitter||(this._emitter=new Re),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class rd{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 vr),this._token}cancel(){this._token?this._token instanceof vr&&this._token.cancel():this._token=br.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof vr&&this._token.dispose():this._token=br.None}}class xi{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const yr=new xi,Si=new xi,_i=new xi,id=new Array(230),sd={},od=[],ad=Object.create(null),ld=Object.create(null),zo=[],Ci=[];for(let t=0;t<=193;t++)zo[t]=-1;for(let t=0;t<=132;t++)Ci[t]=-1;(function(){const t="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",t,t],[1,1,"Hyper",0,t,0,t,t,t],[1,2,"Super",0,t,0,t,t,t],[1,3,"Fn",0,t,0,t,t,t],[1,4,"FnLock",0,t,0,t,t,t],[1,5,"Suspend",0,t,0,t,t,t],[1,6,"Resume",0,t,0,t,t,t],[1,7,"Turbo",0,t,0,t,t,t],[1,8,"Sleep",0,t,0,"VK_SLEEP",t,t],[1,9,"WakeUp",0,t,0,t,t,t],[0,10,"KeyA",31,"A",65,"VK_A",t,t],[0,11,"KeyB",32,"B",66,"VK_B",t,t],[0,12,"KeyC",33,"C",67,"VK_C",t,t],[0,13,"KeyD",34,"D",68,"VK_D",t,t],[0,14,"KeyE",35,"E",69,"VK_E",t,t],[0,15,"KeyF",36,"F",70,"VK_F",t,t],[0,16,"KeyG",37,"G",71,"VK_G",t,t],[0,17,"KeyH",38,"H",72,"VK_H",t,t],[0,18,"KeyI",39,"I",73,"VK_I",t,t],[0,19,"KeyJ",40,"J",74,"VK_J",t,t],[0,20,"KeyK",41,"K",75,"VK_K",t,t],[0,21,"KeyL",42,"L",76,"VK_L",t,t],[0,22,"KeyM",43,"M",77,"VK_M",t,t],[0,23,"KeyN",44,"N",78,"VK_N",t,t],[0,24,"KeyO",45,"O",79,"VK_O",t,t],[0,25,"KeyP",46,"P",80,"VK_P",t,t],[0,26,"KeyQ",47,"Q",81,"VK_Q",t,t],[0,27,"KeyR",48,"R",82,"VK_R",t,t],[0,28,"KeyS",49,"S",83,"VK_S",t,t],[0,29,"KeyT",50,"T",84,"VK_T",t,t],[0,30,"KeyU",51,"U",85,"VK_U",t,t],[0,31,"KeyV",52,"V",86,"VK_V",t,t],[0,32,"KeyW",53,"W",87,"VK_W",t,t],[0,33,"KeyX",54,"X",88,"VK_X",t,t],[0,34,"KeyY",55,"Y",89,"VK_Y",t,t],[0,35,"KeyZ",56,"Z",90,"VK_Z",t,t],[0,36,"Digit1",22,"1",49,"VK_1",t,t],[0,37,"Digit2",23,"2",50,"VK_2",t,t],[0,38,"Digit3",24,"3",51,"VK_3",t,t],[0,39,"Digit4",25,"4",52,"VK_4",t,t],[0,40,"Digit5",26,"5",53,"VK_5",t,t],[0,41,"Digit6",27,"6",54,"VK_6",t,t],[0,42,"Digit7",28,"7",55,"VK_7",t,t],[0,43,"Digit8",29,"8",56,"VK_8",t,t],[0,44,"Digit9",30,"9",57,"VK_9",t,t],[0,45,"Digit0",21,"0",48,"VK_0",t,t],[1,46,"Enter",3,"Enter",13,"VK_RETURN",t,t],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",t,t],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",t,t],[1,49,"Tab",2,"Tab",9,"VK_TAB",t,t],[1,50,"Space",10,"Space",32,"VK_SPACE",t,t],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,t,0,t,t,t],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",t,t],[1,64,"F1",59,"F1",112,"VK_F1",t,t],[1,65,"F2",60,"F2",113,"VK_F2",t,t],[1,66,"F3",61,"F3",114,"VK_F3",t,t],[1,67,"F4",62,"F4",115,"VK_F4",t,t],[1,68,"F5",63,"F5",116,"VK_F5",t,t],[1,69,"F6",64,"F6",117,"VK_F6",t,t],[1,70,"F7",65,"F7",118,"VK_F7",t,t],[1,71,"F8",66,"F8",119,"VK_F8",t,t],[1,72,"F9",67,"F9",120,"VK_F9",t,t],[1,73,"F10",68,"F10",121,"VK_F10",t,t],[1,74,"F11",69,"F11",122,"VK_F11",t,t],[1,75,"F12",70,"F12",123,"VK_F12",t,t],[1,76,"PrintScreen",0,t,0,t,t,t],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",t,t],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",t,t],[1,79,"Insert",19,"Insert",45,"VK_INSERT",t,t],[1,80,"Home",14,"Home",36,"VK_HOME",t,t],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",t,t],[1,82,"Delete",20,"Delete",46,"VK_DELETE",t,t],[1,83,"End",13,"End",35,"VK_END",t,t],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",t,t],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",t],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",t],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",t],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",t],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",t,t],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",t,t],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",t,t],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",t,t],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",t,t],[1,94,"NumpadEnter",3,t,0,t,t,t],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",t,t],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",t,t],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",t,t],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",t,t],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",t,t],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",t,t],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",t,t],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",t,t],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",t,t],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",t,t],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",t,t],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",t,t],[1,107,"ContextMenu",58,"ContextMenu",93,t,t,t],[1,108,"Power",0,t,0,t,t,t],[1,109,"NumpadEqual",0,t,0,t,t,t],[1,110,"F13",71,"F13",124,"VK_F13",t,t],[1,111,"F14",72,"F14",125,"VK_F14",t,t],[1,112,"F15",73,"F15",126,"VK_F15",t,t],[1,113,"F16",74,"F16",127,"VK_F16",t,t],[1,114,"F17",75,"F17",128,"VK_F17",t,t],[1,115,"F18",76,"F18",129,"VK_F18",t,t],[1,116,"F19",77,"F19",130,"VK_F19",t,t],[1,117,"F20",78,"F20",131,"VK_F20",t,t],[1,118,"F21",79,"F21",132,"VK_F21",t,t],[1,119,"F22",80,"F22",133,"VK_F22",t,t],[1,120,"F23",81,"F23",134,"VK_F23",t,t],[1,121,"F24",82,"F24",135,"VK_F24",t,t],[1,122,"Open",0,t,0,t,t,t],[1,123,"Help",0,t,0,t,t,t],[1,124,"Select",0,t,0,t,t,t],[1,125,"Again",0,t,0,t,t,t],[1,126,"Undo",0,t,0,t,t,t],[1,127,"Cut",0,t,0,t,t,t],[1,128,"Copy",0,t,0,t,t,t],[1,129,"Paste",0,t,0,t,t,t],[1,130,"Find",0,t,0,t,t,t],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",t,t],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",t,t],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",t,t],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",t,t],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",t,t],[1,136,"KanaMode",0,t,0,t,t,t],[0,137,"IntlYen",0,t,0,t,t,t],[1,138,"Convert",0,t,0,t,t,t],[1,139,"NonConvert",0,t,0,t,t,t],[1,140,"Lang1",0,t,0,t,t,t],[1,141,"Lang2",0,t,0,t,t,t],[1,142,"Lang3",0,t,0,t,t,t],[1,143,"Lang4",0,t,0,t,t,t],[1,144,"Lang5",0,t,0,t,t,t],[1,145,"Abort",0,t,0,t,t,t],[1,146,"Props",0,t,0,t,t,t],[1,147,"NumpadParenLeft",0,t,0,t,t,t],[1,148,"NumpadParenRight",0,t,0,t,t,t],[1,149,"NumpadBackspace",0,t,0,t,t,t],[1,150,"NumpadMemoryStore",0,t,0,t,t,t],[1,151,"NumpadMemoryRecall",0,t,0,t,t,t],[1,152,"NumpadMemoryClear",0,t,0,t,t,t],[1,153,"NumpadMemoryAdd",0,t,0,t,t,t],[1,154,"NumpadMemorySubtract",0,t,0,t,t,t],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",t,t],[1,156,"NumpadClearEntry",0,t,0,t,t,t],[1,0,t,5,"Ctrl",17,"VK_CONTROL",t,t],[1,0,t,4,"Shift",16,"VK_SHIFT",t,t],[1,0,t,6,"Alt",18,"VK_MENU",t,t],[1,0,t,57,"Meta",91,"VK_COMMAND",t,t],[1,157,"ControlLeft",5,t,0,"VK_LCONTROL",t,t],[1,158,"ShiftLeft",4,t,0,"VK_LSHIFT",t,t],[1,159,"AltLeft",6,t,0,"VK_LMENU",t,t],[1,160,"MetaLeft",57,t,0,"VK_LWIN",t,t],[1,161,"ControlRight",5,t,0,"VK_RCONTROL",t,t],[1,162,"ShiftRight",4,t,0,"VK_RSHIFT",t,t],[1,163,"AltRight",6,t,0,"VK_RMENU",t,t],[1,164,"MetaRight",57,t,0,"VK_RWIN",t,t],[1,165,"BrightnessUp",0,t,0,t,t,t],[1,166,"BrightnessDown",0,t,0,t,t,t],[1,167,"MediaPlay",0,t,0,t,t,t],[1,168,"MediaRecord",0,t,0,t,t,t],[1,169,"MediaFastForward",0,t,0,t,t,t],[1,170,"MediaRewind",0,t,0,t,t,t],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",t,t],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",t,t],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",t,t],[1,174,"Eject",0,t,0,t,t,t],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",t,t],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",t,t],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",t,t],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",t,t],[1,179,"LaunchApp1",0,t,0,"VK_MEDIA_LAUNCH_APP1",t,t],[1,180,"SelectTask",0,t,0,t,t,t],[1,181,"LaunchScreenSaver",0,t,0,t,t,t],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",t,t],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",t,t],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",t,t],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",t,t],[1,186,"BrowserStop",0,t,0,"VK_BROWSER_STOP",t,t],[1,187,"BrowserRefresh",0,t,0,"VK_BROWSER_REFRESH",t,t],[1,188,"BrowserFavorites",0,t,0,"VK_BROWSER_FAVORITES",t,t],[1,189,"ZoomToggle",0,t,0,t,t,t],[1,190,"MailReply",0,t,0,t,t,t],[1,191,"MailForward",0,t,0,t,t,t],[1,192,"MailSend",0,t,0,t,t,t],[1,0,t,114,"KeyInComposition",229,t,t,t],[1,0,t,116,"ABNT_C2",194,"VK_ABNT_C2",t,t],[1,0,t,96,"OEM_8",223,"VK_OEM_8",t,t],[1,0,t,0,t,0,"VK_KANA",t,t],[1,0,t,0,t,0,"VK_HANGUL",t,t],[1,0,t,0,t,0,"VK_JUNJA",t,t],[1,0,t,0,t,0,"VK_FINAL",t,t],[1,0,t,0,t,0,"VK_HANJA",t,t],[1,0,t,0,t,0,"VK_KANJI",t,t],[1,0,t,0,t,0,"VK_CONVERT",t,t],[1,0,t,0,t,0,"VK_NONCONVERT",t,t],[1,0,t,0,t,0,"VK_ACCEPT",t,t],[1,0,t,0,t,0,"VK_MODECHANGE",t,t],[1,0,t,0,t,0,"VK_SELECT",t,t],[1,0,t,0,t,0,"VK_PRINT",t,t],[1,0,t,0,t,0,"VK_EXECUTE",t,t],[1,0,t,0,t,0,"VK_SNAPSHOT",t,t],[1,0,t,0,t,0,"VK_HELP",t,t],[1,0,t,0,t,0,"VK_APPS",t,t],[1,0,t,0,t,0,"VK_PROCESSKEY",t,t],[1,0,t,0,t,0,"VK_PACKET",t,t],[1,0,t,0,t,0,"VK_DBE_SBCSCHAR",t,t],[1,0,t,0,t,0,"VK_DBE_DBCSCHAR",t,t],[1,0,t,0,t,0,"VK_ATTN",t,t],[1,0,t,0,t,0,"VK_CRSEL",t,t],[1,0,t,0,t,0,"VK_EXSEL",t,t],[1,0,t,0,t,0,"VK_EREOF",t,t],[1,0,t,0,t,0,"VK_PLAY",t,t],[1,0,t,0,t,0,"VK_ZOOM",t,t],[1,0,t,0,t,0,"VK_NONAME",t,t],[1,0,t,0,t,0,"VK_PA1",t,t],[1,0,t,0,t,0,"VK_OEM_CLEAR",t,t]],n=[],r=[];for(const i of e){const[s,o,a,l,c,h,d,f,m]=i;if(r[o]||(r[o]=!0,od[o]=a,ad[a]=o,ld[a.toLowerCase()]=o,s&&(zo[o]=l,l!==0&&l!==3&&l!==5&&l!==4&&l!==6&&l!==57&&(Ci[l]=o))),!n[l]){if(n[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${a}`);yr.define(l,c),Si.define(l,f||c),_i.define(l,m||f||c)}h&&(id[h]=l),d&&(sd[d]=l)}Ci[3]=46})();var Io;(function(t){function e(a){return yr.keyCodeToStr(a)}t.toString=e;function n(a){return yr.strToKeyCode(a)}t.fromString=n;function r(a){return Si.keyCodeToStr(a)}t.toUserSettingsUS=r;function i(a){return _i.keyCodeToStr(a)}t.toUserSettingsGeneral=i;function s(a){return Si.strToKeyCode(a)||_i.strToKeyCode(a)}t.fromUserSettings=s;function o(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return yr.keyCodeToStr(a)}t.toElectronAccelerator=o})(Io||(Io={}));function cd(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}class ze extends K{constructor(e,n,r,i){super(e,n,r,i),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return ze.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new ze(this.startLineNumber,this.startColumn,e,n):new ze(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new _e(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new _e(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new ze(e,n,this.endLineNumber,this.endColumn):new ze(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new ze(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new ze(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new ze(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new ze(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let r=0,i=e.length;r"u"}function o0(t){return!ki(t)}function ki(t){return hd(t)||t===null}function a0(t,e){if(!t)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function l0(t){if(ki(t))throw new Error("Assertion Failed: argument is undefined or null");return t}function ud(t){return typeof t=="function"}function c0(t,e){const n=Math.min(t.length,e.length);for(let r=0;r{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){var r;(r=this._factories.get(e))===null||r===void 0||r.dispose();const i=new gd(this,e,n);return this._factories.set(e,i),nr(()=>{const s=this._factories.get(e);!s||s!==i||(this._factories.delete(e),s.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const r=this._factories.get(e);return!r||r.isResolved?null:(await r.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const r=this._factories.get(e);return!!(!r||r.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class gd extends pt{get isResolved(){return this._isResolved}constructor(e,n,r){super(),this._registry=e,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class bd{constructor(e,n,r){this.offset=e,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class u0{constructor(e,n){this.tokens=e,this.endState=n,this._tokenizationResultBrand=void 0}}class d0{constructor(e,n){this.tokens=e,this.endState=n,this._encodedTokenizationResultBrand=void 0}}var To;(function(t){const e=new Map;e.set(0,V.symbolMethod),e.set(1,V.symbolFunction),e.set(2,V.symbolConstructor),e.set(3,V.symbolField),e.set(4,V.symbolVariable),e.set(5,V.symbolClass),e.set(6,V.symbolStruct),e.set(7,V.symbolInterface),e.set(8,V.symbolModule),e.set(9,V.symbolProperty),e.set(10,V.symbolEvent),e.set(11,V.symbolOperator),e.set(12,V.symbolUnit),e.set(13,V.symbolValue),e.set(15,V.symbolEnum),e.set(14,V.symbolConstant),e.set(15,V.symbolEnum),e.set(16,V.symbolEnumMember),e.set(17,V.symbolKeyword),e.set(27,V.symbolSnippet),e.set(18,V.symbolText),e.set(19,V.symbolColor),e.set(20,V.symbolFile),e.set(21,V.symbolReference),e.set(22,V.symbolCustomColor),e.set(23,V.symbolFolder),e.set(24,V.symbolTypeParameter),e.set(25,V.account),e.set(26,V.issues);function n(s){let o=e.get(s);return o||(console.info("No codicon found for CompletionItemKind "+s),o=V.symbolProperty),o}t.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,o){let a=r.get(s);return typeof a>"u"&&!o&&(a=9),a}t.fromString=i})(To||(To={}));var Wo;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Wo||(Wo={}));class p0{constructor(e,n,r,i){this.range=e,this.text=n,this.completionKind=r,this.isSnippetText=i}equals(e){return Range.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}var Oo;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Oo||(Oo={}));var Uo;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(Uo||(Uo={}));var Bo;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Bo||(Bo={}));function f0(t){return t&&URI.isUri(t.uri)&&Range.isIRange(t.range)&&(Range.isIRange(t.originSelectionRange)||Range.isIRange(t.targetSelectionRange))}const vd={17:le("Array","array"),16:le("Boolean","boolean"),4:le("Class","class"),13:le("Constant","constant"),8:le("Constructor","constructor"),9:le("Enum","enumeration"),21:le("EnumMember","enumeration member"),23:le("Event","event"),7:le("Field","field"),0:le("File","file"),11:le("Function","function"),10:le("Interface","interface"),19:le("Key","key"),5:le("Method","method"),1:le("Module","module"),2:le("Namespace","namespace"),20:le("Null","null"),15:le("Number","number"),18:le("Object","object"),24:le("Operator","operator"),3:le("Package","package"),6:le("Property","property"),14:le("String","string"),22:le("Struct","struct"),25:le("TypeParameter","type parameter"),12:le("Variable","variable")};function m0(t,e){return localize("symbolAriaLabel","{0} ({1})",t,vd[e])}var Vo;(function(t){const e=new Map;e.set(0,V.symbolFile),e.set(1,V.symbolModule),e.set(2,V.symbolNamespace),e.set(3,V.symbolPackage),e.set(4,V.symbolClass),e.set(5,V.symbolMethod),e.set(6,V.symbolProperty),e.set(7,V.symbolField),e.set(8,V.symbolConstructor),e.set(9,V.symbolEnum),e.set(10,V.symbolInterface),e.set(11,V.symbolFunction),e.set(12,V.symbolVariable),e.set(13,V.symbolConstant),e.set(14,V.symbolString),e.set(15,V.symbolNumber),e.set(16,V.symbolBoolean),e.set(17,V.symbolArray),e.set(18,V.symbolObject),e.set(19,V.symbolKey),e.set(20,V.symbolNull),e.set(21,V.symbolEnumMember),e.set(22,V.symbolStruct),e.set(23,V.symbolEvent),e.set(24,V.symbolOperator),e.set(25,V.symbolTypeParameter);function n(r){let i=e.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=V.symbolProperty),i}t.toIcon=n})(Vo||(Vo={}));class g0{}class He{static fromValue(e){switch(e){case"comment":return He.Comment;case"imports":return He.Imports;case"region":return He.Region}return new He(e)}constructor(e){this.value=e}}He.Comment=new He("comment"),He.Imports=new He("imports"),He.Region=new He("region");var qo;(function(t){t[t.AIGenerated=1]="AIGenerated"})(qo||(qo={}));var jo;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(jo||(jo={}));var $o;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})($o||($o={}));class b0{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const v0=new md;var Ho;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Ho||(Ho={}));var Go;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Go||(Go={}));var Jo;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(Jo||(Jo={}));var Xo;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(Xo||(Xo={}));var Yo;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(Yo||(Yo={}));var Ko;(function(t){t[t.Deprecated=1]="Deprecated"})(Ko||(Ko={}));var Qo;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Qo||(Qo={}));var Zo;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Zo||(Zo={}));var ea;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(ea||(ea={}));var ta;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(ta||(ta={}));var na;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(na||(na={}));var ra;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(ra||(ra={}));var ia;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.ariaRequired=5]="ariaRequired",t[t.autoClosingBrackets=6]="autoClosingBrackets",t[t.autoClosingComments=7]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=9]="autoClosingDelete",t[t.autoClosingOvertype=10]="autoClosingOvertype",t[t.autoClosingQuotes=11]="autoClosingQuotes",t[t.autoIndent=12]="autoIndent",t[t.automaticLayout=13]="automaticLayout",t[t.autoSurround=14]="autoSurround",t[t.bracketPairColorization=15]="bracketPairColorization",t[t.guides=16]="guides",t[t.codeLens=17]="codeLens",t[t.codeLensFontFamily=18]="codeLensFontFamily",t[t.codeLensFontSize=19]="codeLensFontSize",t[t.colorDecorators=20]="colorDecorators",t[t.colorDecoratorsLimit=21]="colorDecoratorsLimit",t[t.columnSelection=22]="columnSelection",t[t.comments=23]="comments",t[t.contextmenu=24]="contextmenu",t[t.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",t[t.cursorBlinking=26]="cursorBlinking",t[t.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",t[t.cursorStyle=28]="cursorStyle",t[t.cursorSurroundingLines=29]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",t[t.cursorWidth=31]="cursorWidth",t[t.disableLayerHinting=32]="disableLayerHinting",t[t.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",t[t.domReadOnly=34]="domReadOnly",t[t.dragAndDrop=35]="dragAndDrop",t[t.dropIntoEditor=36]="dropIntoEditor",t[t.emptySelectionClipboard=37]="emptySelectionClipboard",t[t.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",t[t.extraEditorClassName=39]="extraEditorClassName",t[t.fastScrollSensitivity=40]="fastScrollSensitivity",t[t.find=41]="find",t[t.fixedOverflowWidgets=42]="fixedOverflowWidgets",t[t.folding=43]="folding",t[t.foldingStrategy=44]="foldingStrategy",t[t.foldingHighlight=45]="foldingHighlight",t[t.foldingImportsByDefault=46]="foldingImportsByDefault",t[t.foldingMaximumRegions=47]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=49]="fontFamily",t[t.fontInfo=50]="fontInfo",t[t.fontLigatures=51]="fontLigatures",t[t.fontSize=52]="fontSize",t[t.fontWeight=53]="fontWeight",t[t.fontVariations=54]="fontVariations",t[t.formatOnPaste=55]="formatOnPaste",t[t.formatOnType=56]="formatOnType",t[t.glyphMargin=57]="glyphMargin",t[t.gotoLocation=58]="gotoLocation",t[t.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",t[t.hover=60]="hover",t[t.inDiffEditor=61]="inDiffEditor",t[t.inlineSuggest=62]="inlineSuggest",t[t.inlineEdit=63]="inlineEdit",t[t.letterSpacing=64]="letterSpacing",t[t.lightbulb=65]="lightbulb",t[t.lineDecorationsWidth=66]="lineDecorationsWidth",t[t.lineHeight=67]="lineHeight",t[t.lineNumbers=68]="lineNumbers",t[t.lineNumbersMinChars=69]="lineNumbersMinChars",t[t.linkedEditing=70]="linkedEditing",t[t.links=71]="links",t[t.matchBrackets=72]="matchBrackets",t[t.minimap=73]="minimap",t[t.mouseStyle=74]="mouseStyle",t[t.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=76]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",t[t.multiCursorModifier=78]="multiCursorModifier",t[t.multiCursorPaste=79]="multiCursorPaste",t[t.multiCursorLimit=80]="multiCursorLimit",t[t.occurrencesHighlight=81]="occurrencesHighlight",t[t.overviewRulerBorder=82]="overviewRulerBorder",t[t.overviewRulerLanes=83]="overviewRulerLanes",t[t.padding=84]="padding",t[t.pasteAs=85]="pasteAs",t[t.parameterHints=86]="parameterHints",t[t.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",t[t.quickSuggestions=89]="quickSuggestions",t[t.quickSuggestionsDelay=90]="quickSuggestionsDelay",t[t.readOnly=91]="readOnly",t[t.readOnlyMessage=92]="readOnlyMessage",t[t.renameOnType=93]="renameOnType",t[t.renderControlCharacters=94]="renderControlCharacters",t[t.renderFinalNewline=95]="renderFinalNewline",t[t.renderLineHighlight=96]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=98]="renderValidationDecorations",t[t.renderWhitespace=99]="renderWhitespace",t[t.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",t[t.roundedSelection=101]="roundedSelection",t[t.rulers=102]="rulers",t[t.scrollbar=103]="scrollbar",t[t.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=105]="scrollBeyondLastLine",t[t.scrollPredominantAxis=106]="scrollPredominantAxis",t[t.selectionClipboard=107]="selectionClipboard",t[t.selectionHighlight=108]="selectionHighlight",t[t.selectOnLineNumbers=109]="selectOnLineNumbers",t[t.showFoldingControls=110]="showFoldingControls",t[t.showUnused=111]="showUnused",t[t.snippetSuggestions=112]="snippetSuggestions",t[t.smartSelect=113]="smartSelect",t[t.smoothScrolling=114]="smoothScrolling",t[t.stickyScroll=115]="stickyScroll",t[t.stickyTabStops=116]="stickyTabStops",t[t.stopRenderingLineAfter=117]="stopRenderingLineAfter",t[t.suggest=118]="suggest",t[t.suggestFontSize=119]="suggestFontSize",t[t.suggestLineHeight=120]="suggestLineHeight",t[t.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",t[t.suggestSelection=122]="suggestSelection",t[t.tabCompletion=123]="tabCompletion",t[t.tabIndex=124]="tabIndex",t[t.unicodeHighlighting=125]="unicodeHighlighting",t[t.unusualLineTerminators=126]="unusualLineTerminators",t[t.useShadowDOM=127]="useShadowDOM",t[t.useTabStops=128]="useTabStops",t[t.wordBreak=129]="wordBreak",t[t.wordSegmenterLocales=130]="wordSegmenterLocales",t[t.wordSeparators=131]="wordSeparators",t[t.wordWrap=132]="wordWrap",t[t.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=135]="wordWrapColumn",t[t.wordWrapOverride1=136]="wordWrapOverride1",t[t.wordWrapOverride2=137]="wordWrapOverride2",t[t.wrappingIndent=138]="wrappingIndent",t[t.wrappingStrategy=139]="wrappingStrategy",t[t.showDeprecated=140]="showDeprecated",t[t.inlayHints=141]="inlayHints",t[t.editorClassName=142]="editorClassName",t[t.pixelRatio=143]="pixelRatio",t[t.tabFocusMode=144]="tabFocusMode",t[t.layoutInfo=145]="layoutInfo",t[t.wrappingInfo=146]="wrappingInfo",t[t.defaultColorDecorators=147]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(ia||(ia={}));var sa;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(sa||(sa={}));var oa;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(oa||(oa={}));var aa;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(aa||(aa={}));var la;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(la||(la={}));var ca;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(ca||(ca={}));var ha;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(ha||(ha={}));var ua;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(ua||(ua={}));var da;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(da||(da={}));var Fi;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(Fi||(Fi={}));var Ri;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(Ri||(Ri={}));var Di;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Di||(Di={}));var pa;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(pa||(pa={}));var fa;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(fa||(fa={}));var ma;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(ma||(ma={}));var ga;(function(t){t[t.AIGenerated=1]="AIGenerated"})(ga||(ga={}));var ba;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(ba||(ba={}));var va;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(va||(va={}));var ya;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(ya||(ya={}));var wa;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(wa||(wa={}));var xa;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(xa||(xa={}));var Sa;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(Sa||(Sa={}));var _a;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(_a||(_a={}));var Ca;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(Ca||(Ca={}));var Ai;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(Ai||(Ai={}));var ka;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(ka||(ka={}));var Ea;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(Ea||(Ea={}));var Fa;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(Fa||(Fa={}));var Ra;(function(t){t[t.Deprecated=1]="Deprecated"})(Ra||(Ra={}));var Da;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(Da||(Da={}));var Aa;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(Aa||(Aa={}));var Ma;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Ma||(Ma={}));var Na;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(Na||(Na={}));class xn{static chord(e,n){return cd(e,n)}}xn.CtrlCmd=2048,xn.Shift=1024,xn.Alt=512,xn.WinCtrl=256;function yd(){return{editor:void 0,languages:void 0,CancellationTokenSource:rd,Emitter:Re,KeyCode:Fi,KeyMod:xn,Position:_e,Range:K,Selection:ze,SelectionDirection:Ai,MarkerSeverity:Ri,MarkerTag:Di,Uri:Rt,Token:bd}}var La,za;class wd{constructor(e,n){this.uri=e,this.value=n}}function xd(t){return Array.isArray(t)}class qt{constructor(e,n){if(this[La]="ResourceMap",e instanceof qt)this.map=new Map(e.map),this.toKey=n??qt.defaultToKey;else if(xd(e)){this.map=new Map,this.toKey=n??qt.defaultToKey;for(const[r,i]of e)this.set(r,i)}else this.map=new Map,this.toKey=e??qt.defaultToKey}set(e,n){return this.map.set(this.toKey(e),new wd(e,n)),this}get(e){var n;return(n=this.map.get(this.toKey(e)))===null||n===void 0?void 0:n.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,n){typeof n<"u"&&(e=e.bind(n));for(const[r,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(La=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}qt.defaultToKey=t=>t.toString();class Sd{constructor(){this[za]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const r=this._map.get(e);if(r)return n!==0&&this.touch(r,n),r.value}set(e,n,r=0){let i=this._map.get(e);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const r=this._state;let i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(za=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(const[n,r]of e)this.set(n,r)}}class _d extends Sd{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class y0{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[n,r]of e)this.set(n,r)}clear(){this._m1.clear(),this._m2.clear()}set(e,n){this._m1.set(e,n),this._m2.set(n,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const n=this._m1.get(e);return n===void 0?!1:(this._m1.delete(e),this._m2.delete(n),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class Cd{constructor(){this.map=new Map}add(e,n){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(n)}delete(e,n){const r=this.map.get(e);r&&(r.delete(n),r.size===0&&this.map.delete(e))}forEach(e,n){const r=this.map.get(e);r&&r.forEach(n)}get(e){const n=this.map.get(e);return n||new Set}}class kd extends yn{constructor(e,n){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=n,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let r=0,i=e.length;rn)break;r=i}return r}findNextIntlWordAtOrAfterOffset(e,n){for(const r of this._getIntlSegmenterWordsOnLine(e))if(!(r.index=0;let n=null;try{n=strings.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!n)return null;let r=!this.isRegex&&!e;return r&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(r=this.matchCase),new SearchData(n,this.wordSeparators?getMapForWordSeparators(this.wordSeparators,[]):null,r?this.searchString:null)}}function Fd(t){if(!t||t.length===0)return!1;for(let e=0,n=t.length;e=n)break;const i=t.charCodeAt(e);if(i===110||i===114||i===87)return!0}}return!1}function Sn(t,e,n){if(!n)return new FindMatch(t,null);const r=[];for(let i=0,s=e.length;i>0);n[s]>=e?i=s-1:n[s+1]>=e?(r=s,i=s):r=s+1}return r+1}}class D0{static findMatches(e,n,r,i,s){const o=n.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,r,new _n(o.wordSeparators,o.regex),i,s):this._doFindMatchesLineByLine(e,r,o,i,s):[]}static _getMultilineMatchRange(e,n,r,i,s,o){let a,l=0;i?(l=i.findLineFeedCountBeforeOffset(s),a=n+s+l):a=n+s;let c;if(i){const m=i.findLineFeedCountBeforeOffset(s+o.length)-l;c=a+o.length+m}else c=a+o.length;const h=e.getPositionAt(a),d=e.getPositionAt(c);return new Range(h.lineNumber,h.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,n,r,i,s){const o=e.getOffsetAt(n.getStartPosition()),a=e.getValueInRange(n,1),l=e.getEOL()===`\r `?new Oa(a):null,c=[];let h=0,d;for(r.reset(0);d=r.next(a);)if(c[h++]=Sn(this._getMultilineMatchRange(e,o,a,l,d.index,d[0]),d,i),h>=s)return c;return c}static _doFindMatchesLineByLine(e,n,r,i,s){const o=[];let a=0;if(n.startLineNumber===n.endLineNumber){const c=e.getLineContent(n.startLineNumber).substring(n.startColumn-1,n.endColumn-1);return a=this._findMatchesInLine(r,c,n.startLineNumber,n.startColumn-1,a,o,i,s),o}const l=e.getLineContent(n.startLineNumber).substring(n.startColumn-1);a=this._findMatchesInLine(r,l,n.startLineNumber,n.startColumn-1,a,o,i,s);for(let c=n.startLineNumber+1;c=l))return s;return s}const h=new _n(e.wordSeparators,e.regex);let d;h.reset(0);do if(d=h.next(n),d&&(o[s++]=Sn(new Range(r,d.index+1+i,r,d.index+1+d[0].length+i),d,a),s>=l))return s;while(d);return s}static findNextMatch(e,n,r,i){const s=n.parseSearchRequest();if(!s)return null;const o=new _n(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindNextMatchMultiline(e,r,o,i):this._doFindNextMatchLineByLine(e,r,o,i)}static _doFindNextMatchMultiline(e,n,r,i){const s=new Position(n.lineNumber,1),o=e.getOffsetAt(s),a=e.getLineCount(),l=e.getValueInRange(new Range(s.lineNumber,s.column,a,e.getLineMaxColumn(a)),1),c=e.getEOL()===`\r `?new Oa(l):null;r.reset(n.column-1);const h=r.next(l);return h?Sn(this._getMultilineMatchRange(e,o,l,c,h.index,h[0]),h,i):n.lineNumber!==1||n.column!==1?this._doFindNextMatchMultiline(e,new Position(1,1),r,i):null}static _doFindNextMatchLineByLine(e,n,r,i){const s=e.getLineCount(),o=n.lineNumber,a=e.getLineContent(o),l=this._findFirstMatchInLine(r,a,o,n.column,i);if(l)return l;for(let c=1;c<=s;c++){const h=(o+c-1)%s,d=e.getLineContent(h+1),f=this._findFirstMatchInLine(r,d,h+1,1,i);if(f)return f}return null}static _findFirstMatchInLine(e,n,r,i,s){e.reset(i-1);const o=e.next(n);return o?Sn(new Range(r,o.index+1,r,o.index+1+o[0].length),o,s):null}static findPreviousMatch(e,n,r,i){const s=n.parseSearchRequest();if(!s)return null;const o=new _n(s.wordSeparators,s.regex);return s.regex.multiline?this._doFindPreviousMatchMultiline(e,r,o,i):this._doFindPreviousMatchLineByLine(e,r,o,i)}static _doFindPreviousMatchMultiline(e,n,r,i){const s=this._doFindMatchesMultiline(e,new Range(1,1,n.lineNumber,n.column),r,i,10*Ed);if(s.length>0)return s[s.length-1];const o=e.getLineCount();return n.lineNumber!==o||n.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new Position(o,e.getLineMaxColumn(o)),r,i):null}static _doFindPreviousMatchLineByLine(e,n,r,i){const s=e.getLineCount(),o=n.lineNumber,a=e.getLineContent(o).substring(0,n.column-1),l=this._findLastMatchInLine(r,a,o,i);if(l)return l;for(let c=1;c<=s;c++){const h=(s+o-c-1)%s,d=e.getLineContent(h+1),f=this._findLastMatchInLine(r,d,h+1,i);if(f)return f}return null}static _findLastMatchInLine(e,n,r,i){let s=null,o;for(e.reset(0);o=e.next(n);)s=Sn(new Range(r,o.index+1,r,o.index+1+o[0].length),o,i);return s}}function Rd(t,e,n,r,i){if(r===0)return!0;const s=e.charCodeAt(r-1);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const o=e.charCodeAt(r);if(t.get(o)!==0)return!0}return!1}function Dd(t,e,n,r,i){if(r+i===n)return!0;const s=e.charCodeAt(r+i);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const o=e.charCodeAt(r+i-1);if(t.get(o)!==0)return!0}return!1}function Ua(t,e,n,r,i){return Rd(t,e,n,r,i)&&Dd(t,e,n,r,i)}class _n{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(e),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){oo(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Ua(this._wordSeparators,e,n,i,s))return r}while(r);return null}}function A0(t,e){if(!t)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function Ad(t,e="Unreachable"){throw new Error(e)}function M0(t){t||onUnexpectedError(new BugIndicatingError("Soft Assertion Failed"))}function wr(t){if(!t()){debugger;t(),Bs(new tt("Assertion Failed"))}}function Ba(t,e){let n=0;for(;n0){const G=E.charCodeAt(C-1);pn(G)&&C--}if(R+1=1e3){d=!0;break e}h.push(new K(y,C+1,y,R+1))}}while(f)}return{ranges:h,hasMore:d,ambiguousCharacterCount:m,invisibleCharacterCount:b,nonBasicAsciiCharacterCount:g}}static computeUnicodeHighlightReason(e,n){const r=new Va(n);switch(r.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),o=r.ambiguousCharacters.getPrimaryConfusable(s),a=Ft.getLocales().filter(l=>!Ft.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}function Nd(t,e){return`[${ro(t.map(r=>String.fromCodePoint(r)).join(""))}]`}class Va{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Ft.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of mt.codePoints)qa(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const r=e.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const o of n){const a=o.codePointAt(0),l=au(o);i=i||l,!l&&!this.ambiguousCharacters.isAmbiguous(a)&&!mt.isInvisibleCharacter(a)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!qa(e)&&mt.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function qa(t){return t===" "||t===` `||t===" "}class xr{constructor(e,n,r){this.changes=e,this.moves=n,this.hitTimeout=r}}class Ld{constructor(e,n){this.lineRangeMapping=e,this.changes=n}}class Q{static addRange(e,n){let r=0;for(;rn))return new Q(e,n)}static ofLength(e){return new Q(0,e)}static ofStartAndLength(e,n){return new Q(e,e+n)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new tt(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Q(this.start+e,this.endExclusive+e)}deltaStart(e){return new Q(this.start+e,this.endExclusive)}deltaEnd(e){return new Q(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new tt(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new tt(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;ne.toString()).join(", ")}intersectsStrict(e){let n=0;for(;ne+n.length,0)}}function N0(t,e,n){const r=zd(t,e);if(r!==-1)return t[r]}function zd(t,e,n=t.length-1){for(let r=n;r>=0;r--){const i=t[r];if(e(i))return r}return-1}function jt(t,e){const n=Cn(t,e);return n===-1?void 0:t[n]}function Cn(t,e,n=0,r=t.length){let i=n,s=r;for(;i0&&(n=i)}return n}function L0(t,e){if(t.length===0)return;let n=t[0];for(let r=1;r=0&&(n=i)}return n}function z0(t,e){return Pd(t,(n,r)=>-e(n,r))}function I0(t,e){if(t.length===0)return-1;let n=0;for(let r=1;r0&&(n=r)}return n}function P0(t,e){for(const n of t){const r=e(n);if(r!==void 0)return r}}class Z{static fromRangeInclusive(e){return new Z(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let n=new Ke(e[0].slice());for(let r=1;rn)throw new tt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&ei.endLineNumberExclusive>=e.startLineNumber),r=Cn(this._normalizedRanges,i=>i.startLineNumber<=e.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,e);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(e)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(e);this._normalizedRanges.splice(n,r-n,i)}}contains(e){const n=jt(this._normalizedRanges,r=>r.startLineNumber<=e);return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=jt(this._normalizedRanges,r=>r.startLineNumbere.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r=o.startLineNumber?s=new Z(s.startLineNumber,Math.max(s.endLineNumberExclusive,o.endLineNumberExclusive)):(n.push(s),s=o)}return s!==null&&n.push(s),new Ke(n)}subtractFrom(e){const n=Mi(this._normalizedRanges,o=>o.endLineNumberExclusive>=e.startLineNumber),r=Cn(this._normalizedRanges,o=>o.startLineNumber<=e.endLineNumberExclusive)+1;if(n===r)return new Ke([e]);const i=[];let s=e.startLineNumber;for(let o=n;os&&i.push(new Z(s,a.startLineNumber)),s=a.endLineNumberExclusive}return se.toString()).join(", ")}getIntersection(e){const n=[];let r=0,i=0;for(;rn.delta(e)))}}class Ge{static inverse(e,n,r){const i=[];let s=1,o=1;for(const l of e){const c=new Ge(new Z(s,l.original.startLineNumber),new Z(o,l.modified.startLineNumber));c.modified.isEmpty||i.push(c),s=l.original.endLineNumberExclusive,o=l.modified.endLineNumberExclusive}const a=new Ge(new Z(s,n+1),new Z(o,r+1));return a.modified.isEmpty||i.push(a),i}static clip(e,n,r){const i=[];for(const s of e){const o=s.original.intersect(n),a=s.modified.intersect(r);o&&!o.isEmpty&&a&&!a.isEmpty&&i.push(new Ge(o,a))}return i}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Ge(this.modified,this.original)}join(e){return new Ge(this.original.join(e.original),this.modified.join(e.modified))}}class it extends Ge{static fromRangeMappings(e){const n=Z.join(e.map(i=>Z.fromRangeInclusive(i.originalRange))),r=Z.join(e.map(i=>Z.fromRangeInclusive(i.modifiedRange)));return new it(n,r,e)}constructor(e,n,r){super(e,n),this.innerChanges=r}flip(){var e;return new it(this.modified,this.original,(e=this.innerChanges)===null||e===void 0?void 0:e.map(n=>n.flip()))}withInnerChangesFromLineRanges(){return new it(this.original,this.modified,[new $t(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class $t{constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new $t(this.modifiedRange,this.originalRange)}}const Td=3;class Wd{computeDiff(e,n,r){var i;const o=new Bd(e,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const c of o.changes){let h;c.originalEndLineNumber===0?h=new Z(c.originalStartLineNumber+1,c.originalStartLineNumber+1):h=new Z(c.originalStartLineNumber,c.originalEndLineNumber+1);let d;c.modifiedEndLineNumber===0?d=new Z(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):d=new Z(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let f=new it(h,d,(i=c.charChanges)===null||i===void 0?void 0:i.map(m=>new $t(new K(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new K(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===f.modified.startLineNumber||l.original.endLineNumberExclusive===f.original.startLineNumber)&&(f=new it(l.original.join(f.original),l.modified.join(f.modified),l.innerChanges&&f.innerChanges?l.innerChanges.concat(f.innerChanges):void 0),a.pop()),a.push(f),l=f}return wr(()=>Ba(a,(c,h)=>h.original.startLineNumber-c.original.endLineNumberExclusive===h.modified.startLineNumber-c.modified.endLineNumberExclusive&&c.original.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class Ht{constructor(e,n,r,i,s,o,a,l){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=o,this.modifiedEndLineNumber=a,this.modifiedEndColumn=l}static createFromDiffChange(e,n,r){const i=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),o=n.getEndLineNumber(e.originalStart+e.originalLength-1),a=n.getEndColumn(e.originalStart+e.originalLength-1),l=r.getStartLineNumber(e.modifiedStart),c=r.getStartColumn(e.modifiedStart),h=r.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=r.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new Ht(i,s,o,a,l,c,h,d)}}function Ud(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let r=1,i=t.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const m=r.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),b=i.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&b.getElements().length>0){let g=$a(m,b,s,!0).changes;a&&(g=Ud(g)),f=[];for(let y=0,_=g.length;y<_;y++)f.push(Ht.createFromDiffChange(g[y],m,b))}}return new En(l,c,h,d,f)}}class Bd{constructor(e,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=n,this.original=new Ha(e),this.modified=new Ha(n),this.continueLineDiff=Ga(r.maxComputationTime),this.continueCharDiff=Ga(r.maxComputationTime===0?0:Math.min(r.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:void 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:void 0}]};const e=$a(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,r=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const a=[];for(let l=0,c=n.length;l1&&g>1;){const y=f.charCodeAt(b-2),_=m.charCodeAt(g-2);if(y!==_)break;b--,g--}(b>1||g>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,b,o+1,1,g)}{let b=Li(f,1),g=Li(m,1);const y=f.length+1,_=m.length+1;for(;b!0;const e=Date.now();return()=>Date.now()-e{r.push(ue.fromOffsetPairs(i?i.getEndExclusives():Ie.zero,s?s.getStarts():new Ie(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(e,n){return new ue(new Q(e.offset1,n.offset1),new Q(e.offset2,n.offset2))}constructor(e,n){this.seq1Range=e,this.seq2Range=n}swap(){return new ue(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new ue(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new ue(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new ue(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new ue(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const n=this.seq1Range.intersect(e.seq1Range),r=this.seq2Range.intersect(e.seq2Range);if(!(!n||!r))return new ue(n,r)}getStarts(){return new Ie(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Ie(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Ie{constructor(e,n){this.offset1=e,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new Ie(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}Ie.zero=new Ie(0,0),Ie.max=new Ie(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class Fn{isValid(){return!0}}Fn.instance=new Fn;class Vd{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new tt("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&g>0&&o.get(b-1,g-1)===3&&(E+=a.get(b-1,g-1)),E+=i?i(b,g):1):E=-1;const w=Math.max(y,_,E);if(w===E){const C=b>0&&g>0?a.get(b-1,g-1):0;a.set(b,g,C+1),o.set(b,g,3)}else w===y?(a.set(b,g,0),o.set(b,g,1)):w===_&&(a.set(b,g,0),o.set(b,g,2));s.set(b,g,w)}const l=[];let c=e.length,h=n.length;function d(b,g){(b+1!==c||g+1!==h)&&l.push(new ue(new Q(b+1,c),new Q(g+1,h))),c=b,h=g}let f=e.length-1,m=n.length-1;for(;f>=0&&m>=0;)o.get(f,m)===3?(d(f,m),f--,m--):o.get(f,m)===1?f--:m--;return d(-1,-1),l.reverse(),new st(l,!1)}}class Ja{compute(e,n,r=Fn.instance){if(e.length===0||n.length===0)return st.trivial(e,n);const i=e,s=n;function o(g,y){for(;gi.length||R>s.length)continue;const z=o(C,R);l.set(h,z);const W=C===E?c.get(h+1):c.get(h-1);if(c.set(h,z!==C?new Xa(W,C,R,z-C):W),l.get(h)===i.length&&l.get(h)-h===s.length)break e}}let d=c.get(h);const f=[];let m=i.length,b=s.length;for(;;){const g=d?d.x+d.length:0,y=d?d.y+d.length:0;if((g!==m||y!==b)&&f.push(new ue(new Q(g,m),new Q(y,b))),!d)break;m=d.x,b=d.y,d=d.prev}return f.reverse(),new st(f,!1)}}class Xa{constructor(e,n,r,i){this.prev=e,this.x=n,this.y=r,this.length=i}}class jd{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[e]=n}}}class $d{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class Sr{constructor(e,n,r){this.lines=e,this.considerWhitespaceChanges=r,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;n.start>0&&n.endExclusive>=e.length&&(n=new Q(n.start-1,n.endExclusive),i=!0),this.lineRange=n,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;sString.fromCharCode(n)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=Ka(e>0?this.elements[e-1]:-1),r=Ka(er<=e);return new _e(this.lineRange.start+n+1,e-this.firstCharOffsetByLine[n]+this.additionalOffsetByLine[n]+1)}translateRange(e){return K.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!Pi(this.elements[e]))return;let n=e;for(;n>0&&Pi(this.elements[n-1]);)n--;let r=e;for(;ro<=e.start))!==null&&n!==void 0?n:0,s=(r=Id(this.firstCharOffsetByLine,o=>e.endExclusive<=o))!==null&&r!==void 0?r:this.elements.length;return new Q(i,s)}}function Pi(t){return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57}const Hd={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Ya(t){return Hd[t]}function Ka(t){return t===10?8:t===13?7:Ii(t)?6:t>=97&&t<=122?0:t>=65&&t<=90?1:t>=48&&t<=57?2:t===-1?3:t===44||t===59?5:4}function Gd(t,e,n,r,i,s){let{moves:o,excludedChanges:a}=Xd(t,e,n,s);if(!s.isValid())return[];const l=t.filter(h=>!a.has(h)),c=Yd(l,r,i,e,n,s);return ju(o,c),o=Kd(o),o=o.filter(h=>{const d=h.original.toOffsetRange().slice(e).map(m=>m.trim());return d.join(` `).length>=15&&Jd(d,m=>m.length>=2)>=2}),o=Qd(t,o),o}function Jd(t,e){let n=0;for(const r of t)e(r)&&n++;return n}function Xd(t,e,n,r){const i=[],s=t.filter(l=>l.modified.isEmpty&&l.original.length>=3).map(l=>new Gt(l.original,e,l)),o=new Set(t.filter(l=>l.original.isEmpty&&l.modified.length>=3).map(l=>new Gt(l.modified,n,l))),a=new Set;for(const l of s){let c=-1,h;for(const d of o){const f=l.computeSimilarity(d);f>c&&(c=f,h=d)}if(c>.9&&h&&(o.delete(h),i.push(new Ge(l.range,h.range)),a.add(l.source),a.add(h.source)),!r.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}function Yd(t,e,n,r,i,s){const o=[],a=new Cd;for(const f of t)for(let m=f.original.startLineNumber;mf.modified.startLineNumber,bn));for(const f of t){let m=[];for(let b=f.modified.startLineNumber;b{for(const C of m)if(C.originalLineRange.endLineNumberExclusive+1===E.endLineNumberExclusive&&C.modifiedLineRange.endLineNumberExclusive+1===y.endLineNumberExclusive){C.originalLineRange=new Z(C.originalLineRange.startLineNumber,E.endLineNumberExclusive),C.modifiedLineRange=new Z(C.modifiedLineRange.startLineNumber,y.endLineNumberExclusive),_.push(C);return}const w={modifiedLineRange:y,originalLineRange:E};l.push(w),_.push(w)}),m=_}if(!s.isValid())return[]}l.sort(Hu(mr(f=>f.modifiedLineRange.length,bn)));const c=new Ke,h=new Ke;for(const f of l){const m=f.modifiedLineRange.startLineNumber-f.originalLineRange.startLineNumber,b=c.subtractFrom(f.modifiedLineRange),g=h.subtractFrom(f.originalLineRange).getWithDelta(m),y=b.getIntersection(g);for(const _ of y.ranges){if(_.length<3)continue;const E=_,w=_.delta(-m);o.push(new Ge(w,E)),c.addRange(E),h.addRange(w)}}o.sort(mr(f=>f.original.startLineNumber,bn));const d=new kn(t);for(let f=0;fz.original.startLineNumber<=m.original.startLineNumber),g=jt(t,z=>z.modified.startLineNumber<=m.modified.startLineNumber),y=Math.max(m.original.startLineNumber-b.original.startLineNumber,m.modified.startLineNumber-g.modified.startLineNumber),_=d.findLastMonotonous(z=>z.original.startLineNumberz.modified.startLineNumberr.length||W>i.length||c.contains(W)||h.contains(z)||!Qa(r[z-1],i[W-1],s))break}C>0&&(h.addRange(new Z(m.original.startLineNumber-C,m.original.startLineNumber)),c.addRange(new Z(m.modified.startLineNumber-C,m.modified.startLineNumber)));let R;for(R=0;Rr.length||W>i.length||c.contains(W)||h.contains(z)||!Qa(r[z-1],i[W-1],s))break}R>0&&(h.addRange(new Z(m.original.endLineNumberExclusive,m.original.endLineNumberExclusive+R)),c.addRange(new Z(m.modified.endLineNumberExclusive,m.modified.endLineNumberExclusive+R))),(C>0||R>0)&&(o[f]=new Ge(new Z(m.original.startLineNumber-C,m.original.endLineNumberExclusive+R),new Z(m.modified.startLineNumber-C,m.modified.endLineNumberExclusive+R)))}return o}function Qa(t,e,n){if(t.trim()===e.trim())return!0;if(t.length>300&&e.length>300)return!1;const i=new Ja().compute(new Sr([t],new Q(0,1),!1),new Sr([e],new Q(0,1),!1),n);let s=0;const o=ue.invert(i.diffs,t.length);for(const h of o)h.seq1Range.forEach(d=>{Ii(t.charCodeAt(d))||s++});function a(h){let d=0;for(let f=0;fe.length?t:e);return s/l>.6&&l>10}function Kd(t){if(t.length===0)return t;t.sort(mr(n=>n.original.startLineNumber,bn));const e=[t[0]];for(let n=1;n=0&&o>=0&&s+o<=2){e[e.length-1]=r.join(i);continue}e.push(i)}return e}function Qd(t,e){const n=new kn(t);return e=e.filter(r=>{const i=n.findLastMonotonous(a=>a.original.startLineNumbera.modified.startLineNumber0&&(a=a.delta(c))}i.push(a)}return r.length>0&&i.push(r[r.length-1]),i}function Zd(t,e,n){if(!t.getBoundaryScore||!e.getBoundaryScore)return n;for(let r=0;r0?n[r-1]:void 0,s=n[r],o=r+1=r.start&&t.seq2Range.start-o>=i.start&&n.isStronglyEqual(t.seq2Range.start-o,t.seq2Range.endExclusive-o)&&o<100;)o++;o--;let a=0;for(;t.seq1Range.start+ac&&(c=b,l=h)}return t.delta(l)}function ep(t,e,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new ue(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function tp(t,e,n){const r=ue.invert(n,t.length),i=[];let s=new Ie(0,0);function o(l,c){if(l.offset10;){const y=r[0];if(!(y.seq1Range.intersects(f.seq1Range)||y.seq2Range.intersects(f.seq2Range)))break;const E=t.findWordContaining(y.seq1Range.start),w=e.findWordContaining(y.seq2Range.start),C=new ue(E,w),R=C.intersect(y);if(b+=R.seq1Range.length,g+=R.seq2Range.length,f=f.join(C),f.seq1Range.endExclusive>=y.seq1Range.endExclusive)r.shift();else break}b+g<(f.seq1Range.length+f.seq2Range.length)*2/3&&i.push(f),s=f.getEndExclusives()}for(;r.length>0;){const l=r.shift();l.seq1Range.isEmpty||(o(l.getStarts(),l),o(l.getEndExclusives().delta(-1),l))}return np(n,i)}function np(t,e){const n=[];for(;t.length>0||e.length>0;){const r=t[0],i=e[0];let s;r&&(!i||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function rp(t,e,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const o=[r[0]];for(let a=1;a5||m.seq1Range.length+m.seq2Range.length>5)};const l=r[a],c=o[o.length-1];h(c,l)?(s=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}r=o}while(i++<10&&s);return r}function ip(t,e,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let l=1;l5||g.length>500)return!1;const _=t.getText(g).trim();if(_.length>20||_.split(/\r\n|\r|\n/).length>1)return!1;const E=t.countLinesIn(m.seq1Range),w=m.seq1Range.length,C=e.countLinesIn(m.seq2Range),R=m.seq2Range.length,z=t.countLinesIn(b.seq1Range),W=b.seq1Range.length,T=e.countLinesIn(b.seq2Range),G=b.seq2Range.length,se=2*40+50;function J(A){return Math.min(A,se)}return Math.pow(Math.pow(J(E*40+w),1.5)+Math.pow(J(C*40+R),1.5),1.5)+Math.pow(Math.pow(J(z*40+W),1.5)+Math.pow(J(T*40+G),1.5),1.5)>(se**1.5)**1.5*1.3};const c=r[l],h=a[a.length-1];d(h,c)?(s=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}r=a}while(i++<10&&s);const o=[];return qu(r,(a,l,c)=>{let h=l;function d(_){return _.length>0&&_.trim().length<=3&&l.seq1Range.length+l.seq2Range.length>100}const f=t.extendToFullLines(l.seq1Range),m=t.getText(new Q(f.start,l.seq1Range.start));d(m)&&(h=h.deltaStart(-m.length));const b=t.getText(new Q(l.seq1Range.endExclusive,f.endExclusive));d(b)&&(h=h.deltaEnd(b.length));const g=ue.fromOffsetPairs(a?a.getEndExclusives():Ie.zero,c?c.getStarts():Ie.max),y=h.intersect(g);o.length>0&&y.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(y):o.push(y)}),o}class nl{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:rl(this.lines[e-1]),r=e===this.lines.length?0:rl(this.lines[e]);return 1e3-(n+r)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(` `)}isStronglyEqual(e,n){return this.lines[e]===this.lines[n]}}function rl(t){let e=0;for(;eR===z))return new xr([],[],!1);if(e.length===1&&e[0].length===0||n.length===1&&n[0].length===0)return new xr([new it(new Z(1,e.length+1),new Z(1,n.length+1),[new $t(new K(1,1,e.length,e[0].length+1),new K(1,1,n.length,n[0].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?Fn.instance:new Vd(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,o=new Map;function a(R){let z=o.get(R);return z===void 0&&(z=o.size,o.set(R,z)),z}const l=e.map(R=>a(R.trim())),c=n.map(R=>a(R.trim())),h=new nl(l,e),d=new nl(c,n),f=h.length+d.length<1700?this.dynamicProgrammingDiffing.compute(h,d,i,(R,z)=>e[R]===n[z]?n[z].length===0?.1:1+Math.log(1+n[z].length):.99):this.myersDiffingAlgorithm.compute(h,d);let m=f.diffs,b=f.hitTimeout;m=Za(h,d,m),m=rp(h,d,m);const g=[],y=R=>{if(s)for(let z=0;zR.seq1Range.start-_===R.seq2Range.start-E);const z=R.seq1Range.start-_;y(z),_=R.seq1Range.endExclusive,E=R.seq2Range.endExclusive;const W=this.refineDiff(e,n,R,i,s);W.hitTimeout&&(b=!0);for(const T of W.mappings)g.push(T)}y(e.length-_);const w=il(g,e,n);let C=[];return r.computeMoves&&(C=this.computeMoves(w,e,n,l,c,i,s)),wr(()=>{function R(W,T){if(W.lineNumber<1||W.lineNumber>T.length)return!1;const G=T[W.lineNumber-1];return!(W.column<1||W.column>G.length+1)}function z(W,T){return!(W.startLineNumber<1||W.startLineNumber>T.length+1||W.endLineNumberExclusive<1||W.endLineNumberExclusive>T.length+1)}for(const W of w){if(!W.innerChanges)return!1;for(const T of W.innerChanges)if(!(R(T.modifiedRange.getStartPosition(),n)&&R(T.modifiedRange.getEndPosition(),n)&&R(T.originalRange.getStartPosition(),e)&&R(T.originalRange.getEndPosition(),e)))return!1;if(!z(W.modified,n)||!z(W.original,e))return!1}return!0}),new xr(w,C,b)}computeMoves(e,n,r,i,s,o,a){return Gd(e,n,r,i,s,o).map(h=>{const d=this.refineDiff(n,r,new ue(h.original.toOffsetRange(),h.modified.toOffsetRange()),o,a),f=il(d.mappings,n,r,!0);return new Ld(h,f)})}refineDiff(e,n,r,i,s){const o=new Sr(e,r.seq1Range,s),a=new Sr(n,r.seq2Range,s),l=o.length+a.length<500?this.dynamicProgrammingDiffing.compute(o,a,i):this.myersDiffingAlgorithm.compute(o,a,i);let c=l.diffs;return c=Za(o,a,c),c=tp(o,a,c),c=ep(o,a,c),c=ip(o,a,c),{mappings:c.map(d=>new $t(o.translateRange(d.seq1Range),a.translateRange(d.seq2Range))),hitTimeout:l.hitTimeout}}}function il(t,e,n,r=!1){const i=[];for(const s of Bu(t.map(o=>op(o,e,n)),(o,a)=>o.original.overlapOrTouch(a.original)||o.modified.overlapOrTouch(a.modified))){const o=s[0],a=s[s.length-1];i.push(new it(o.original.join(a.original),o.modified.join(a.modified),s.map(l=>l.innerChanges[0])))}return wr(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length-i[i.length-1].modified.endLineNumberExclusive!==e.length-i[i.length-1].original.endLineNumberExclusive)?!1:Ba(i,(s,o)=>o.original.startLineNumber-s.original.endLineNumberExclusive===o.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive=n[t.modifiedRange.startLineNumber-1].length&&t.originalRange.startColumn-1>=e[t.originalRange.startLineNumber-1].length&&t.originalRange.startLineNumber<=t.originalRange.endLineNumber+i&&t.modifiedRange.startLineNumber<=t.modifiedRange.endLineNumber+i&&(r=1);const s=new Z(t.originalRange.startLineNumber+r,t.originalRange.endLineNumber+1+i),o=new Z(t.modifiedRange.startLineNumber+r,t.modifiedRange.endLineNumber+1+i);return new it(s,o,[t])}const sl={getLegacy:()=>new Wd,getDefault:()=>new sp};function St(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class ye{constructor(e,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=St(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Oe{constructor(e,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=St(Math.max(Math.min(1,n),0),3),this.l=St(Math.max(Math.min(1,r),0),3),this.a=St(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=e.a,o=Math.max(n,r,i),a=Math.min(n,r,i);let l=0,c=0;const h=(a+o)/2,d=o-a;if(d>0){switch(c=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),o){case n:l=(r-i)/d+(r1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}static toRGBA(e){const n=e.h/360,{s:r,l:i,a:s}=e;let o,a,l;if(r===0)o=a=l=i;else{const c=i<.5?i*(1+r):i+r-i*r,h=2*i-c;o=Oe._hue2rgb(h,c,n+1/3),a=Oe._hue2rgb(h,c,n),l=Oe._hue2rgb(h,c,n-1/3)}return new ye(Math.round(o*255),Math.round(a*255),Math.round(l*255),s)}}class Jt{constructor(e,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=St(Math.max(Math.min(1,n),0),3),this.v=St(Math.max(Math.min(1,r),0),3),this.a=St(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=Math.max(n,r,i),o=Math.min(n,r,i),a=s-o,l=s===0?0:a/s;let c;return a===0?c=0:s===n?c=((r-i)/a%6+6)%6:s===r?c=(i-n)/a+2:c=(n-r)/a+4,new Jt(Math.round(c*60),l,s,e.a)}static toRGBA(e){const{h:n,s:r,v:i,a:s}=e,o=i*r,a=o*(1-Math.abs(n/60%2-1)),l=i-o;let[c,h,d]=[0,0,0];return n<60?(c=o,h=a):n<120?(c=a,h=o):n<180?(h=o,d=a):n<240?(h=a,d=o):n<300?(c=a,d=o):n<=360&&(c=o,d=a),c=Math.round((c+l)*255),h=Math.round((h+l)*255),d=Math.round((d+l)*255),new ye(c,h,d,s)}}class ie{static fromHex(e){return ie.Format.CSS.parseHex(e)||ie.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:Oe.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Jt.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof ye)this.rgba=e;else if(e instanceof Oe)this._hsla=e,this.rgba=Oe.toRGBA(e);else if(e instanceof Jt)this._hsva=e,this.rgba=Jt.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&ye.equals(this.rgba,e.rgba)&&Oe.equals(this.hsla,e.hsla)&&Jt.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=ie._relativeLuminanceForComponent(this.rgba.r),n=ie._relativeLuminanceForComponent(this.rgba.g),r=ie._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*n+.0722*r;return St(i,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n>r}isDarkerThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n0)for(const i of r){const s=i.filter(c=>c!==void 0),o=s[1],a=s[2];if(!a)continue;let l;if(o==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=al(Rn(t,i),Dn(a,c),!1)}else if(o==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=al(Rn(t,i),Dn(a,c),!0)}else if(o==="hsl"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=ll(Rn(t,i),Dn(a,c),!1)}else if(o==="hsla"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=ll(Rn(t,i),Dn(a,c),!0)}else o==="#"&&(l=ap(Rn(t,i),o+a));l&&e.push(l)}return e}function cp(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:lp(t)}const cl=new RegExp("\\bMARK:\\s*(.*)$","d"),hp=/^-+|-+$/g;function up(t,e){var n;let r=[];if(e.findRegionSectionHeaders&&(!((n=e.foldingRules)===null||n===void 0)&&n.markers)){const i=dp(t,e);r=r.concat(i)}if(e.findMarkSectionHeaders){const i=pp(t);r=r.concat(i)}return r}function dp(t,e){const n=[],r=t.getLineCount();for(let i=1;i<=r;i++){const s=t.getLineContent(i),o=s.match(e.foldingRules.markers.start);if(o){const a={startLineNumber:i,startColumn:o[0].length+1,endLineNumber:i,endColumn:s.length+1};if(a.endColumn>a.startColumn){const l={range:a,...hl(s.substring(o[0].length)),shouldBeInComments:!1};(l.text||l.hasSeparatorLine)&&n.push(l)}}}return n}function pp(t){const e=[],n=t.getLineCount();for(let r=1;r<=n;r++){const i=t.getLineContent(r);fp(i,r,e)}return e}function fp(t,e,n){cl.lastIndex=0;const r=cl.exec(t);if(r){const i=r.indices[1][0]+1,s=r.indices[1][1]+1,o={startLineNumber:e,startColumn:i,endLineNumber:e,endColumn:s};if(o.endColumn>o.startColumn){const a={range:o,...hl(r[1]),shouldBeInComments:!0};(a.text||a.hasSeparatorLine)&&n.push(a)}}}function hl(t){t=t.trim();const e=t.startsWith("-");return t=t.replace(hp,""),{text:t,hasSeparatorLine:e}}class mp extends Ju{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let r=0;rthis._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:e}}class _t{constructor(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}acceptNewModel(e){this._models[e.url]=new mp(Rt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,n,r){const i=this._getModel(e);return i?Md.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,n){const r=this._getModel(e);return r?up(r,n):[]}async computeDiff(e,n,r,i){const s=this._getModel(e),o=this._getModel(n);return!s||!o?null:_t.computeDiff(s,o,r,i)}static computeDiff(e,n,r,i){const s=i==="advanced"?sl.getDefault():sl.getLegacy(),o=e.getLinesContent(),a=n.getLinesContent(),l=s.computeDiff(o,a,r),c=l.changes.length>0?!1:this._modelsAreIdentical(e,n);function h(d){return d.map(f=>{var m;return[f.original.startLineNumber,f.original.endLineNumberExclusive,f.modified.startLineNumber,f.modified.endLineNumberExclusive,(m=f.innerChanges)===null||m===void 0?void 0:m.map(b=>[b.originalRange.startLineNumber,b.originalRange.startColumn,b.originalRange.endLineNumber,b.originalRange.endColumn,b.modifiedRange.startLineNumber,b.modifiedRange.startColumn,b.modifiedRange.endLineNumber,b.modifiedRange.endColumn])]})}return{identical:c,quitEarly:l.hitTimeout,changes:h(l.changes),moves:l.moves.map(d=>[d.lineRangeMapping.original.startLineNumber,d.lineRangeMapping.original.endLineNumberExclusive,d.lineRangeMapping.modified.startLineNumber,d.lineRangeMapping.modified.endLineNumberExclusive,h(d.changes)])}}static _modelsAreIdentical(e,n){const r=e.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const o=e.getLineContent(s),a=n.getLineContent(s);if(o!==a)return!1}return!0}async computeMoreMinimalEdits(e,n,r){const i=this._getModel(e);if(!i)return n;const s=[];let o;n=n.slice(0).sort((l,c)=>{if(l.range&&c.range)return K.compareRangesUsingStarts(l.range,c.range);const h=l.range?0:1,d=c.range?0:1;return h-d});let a=0;for(let l=1;l_t._diffLimit){s.push({range:l,text:c});continue}const f=xu(d,c,r),m=i.offsetAt(K.lift(l).getStartPosition());for(const b of f){const g=i.positionAt(m+b.originalStart),y=i.positionAt(m+b.originalStart+b.originalLength),_={text:c.substr(b.modifiedStart,b.modifiedLength),range:{startLineNumber:g.lineNumber,startColumn:g.column,endLineNumber:y.lineNumber,endColumn:y.column}};i.getValueInRange(_.range)!==_.text&&s.push(_)}}return typeof o=="number"&&s.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(e){const n=this._getModel(e);return n?nd(n):null}async computeDefaultDocumentColors(e){const n=this._getModel(e);return n?cp(n):null}async textualSuggest(e,n,r,i){const s=new rr,o=new RegExp(r,i),a=new Set;e:for(const l of e){const c=this._getModel(l);if(c){for(const h of c.words(o))if(!(h===n||!isNaN(Number(h)))&&(a.add(h),a.size>_t._suggestionsLimit))break e}}return{words:Array.from(a),duration:s.elapsed()}}async computeWordRanges(e,n,r,i){const s=this._getModel(e);if(!s)return Object.create(null);const o=new RegExp(r,i),a=Object.create(null);for(let l=n.startLineNumber;lthis._host.fhr(a,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,n),Promise.resolve(or(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,n){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,n))}catch(r){return Promise.reject(r)}}}_t._diffLimit=1e5,_t._suggestionsLimit=1e4;function T0(t){return new _t(t,null)}typeof importScripts=="function"&&(globalThis.monaco=yd());let Wi=!1;function ul(t){if(Wi)return;Wi=!0;const e=new mo(n=>{globalThis.postMessage(n)},n=>new _t(n,t));globalThis.onmessage=n=>{e.onmessage(n.data)}}globalThis.onmessage=t=>{Wi||ul(null)};var p;(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken"})(p||(p={}));var dl=function(){function t(e){this.source=e,this.len=e.length,this.position=0}return t.prototype.substring=function(e,n){return n===void 0&&(n=this.position),this.source.substring(e,n)},t.prototype.eos=function(){return this.len<=this.position},t.prototype.pos=function(){return this.position},t.prototype.goBackTo=function(e){this.position=e},t.prototype.goBack=function(e){this.position-=e},t.prototype.advance=function(e){this.position+=e},t.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},t.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},t.prototype.lookbackChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position-e)||0},t.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},t.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var n=0;n=An&&n<=Mn?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=An&&r<=Mn||e===0&&r===_l}),!0):!1},t.prototype._newline=function(e){var n=this.stream.peekChar();switch(n){case Yt:case Ln:case Xt:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===Yt&&this.stream.advanceIfChar(Xt)&&e.push(` `),!0}return!1},t.prototype._escape=function(e,n){var r=this.stream.peekChar();if(r===Ui){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=An&&r<=Mn||r>=_r&&r<=pl||r>=Cr&&r<=ml);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var s=parseInt(this.stream.substring(this.stream.pos()-i),16);s&&e.push(String.fromCharCode(s))}catch{}return r===Bi||r===Vi?this.stream.advance(1):this._newline([]),!0}if(r!==Yt&&r!==Ln&&r!==Xt)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1},t.prototype._stringChar=function(e,n){var r=this.stream.peekChar();return r!==0&&r!==e&&r!==Ui&&r!==Yt&&r!==Ln&&r!==Xt?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1},t.prototype._string=function(e){if(this.stream.peekChar()===Sl||this.stream.peekChar()===xl){var n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),p.String):p.BadString}return null},t.prototype._unquotedChar=function(e){var n=this.stream.peekChar();return n!==0&&n!==Ui&&n!==Sl&&n!==xl&&n!==vl&&n!==yl&&n!==Bi&&n!==Vi&&n!==Xt&&n!==Ln&&n!==Yt?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unquotedString=function(e){for(var n=!1;this._unquotedChar(e)||this._escape(e);)n=!0;return n},t.prototype._whitespace=function(){var e=this.stream.advanceWhileChar(function(n){return n===Bi||n===Vi||n===Xt||n===Ln||n===Yt});return e>0},t.prototype._name=function(e){for(var n=!1;this._identChar(e)||this._escape(e);)n=!0;return n},t.prototype.ident=function(e){var n=this.stream.pos(),r=this._minus(e);if(r){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(n),!1},t.prototype._identFirstChar=function(e){var n=this.stream.peekChar();return n===bl||n>=_r&&n<=fl||n>=Cr&&n<=gl||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._minus=function(e){var n=this.stream.peekChar();return n===Dt?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._identChar=function(e){var n=this.stream.peekChar();return n===bl||n===Dt||n>=_r&&n<=fl||n>=Cr&&n<=gl||n>=An&&n<=Mn||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unicodeRange=function(){if(this.stream.advanceIfChar(Lp)){var e=function(i){return i>=An&&i<=Mn||i>=_r&&i<=pl||i>=Cr&&i<=ml},n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(function(i){return i===Np});if(n>=1&&n<=6)if(this.stream.advanceIfChar(Dt)){var r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1},t}();function be(t,e){if(t.length0?t.lastIndexOf(e)===n:n===0?t===e:!1}function zp(t,e,n){n===void 0&&(n=4);var r=Math.abs(t.length-e.length);if(r>n)return 0;var i=[],s=[],o,a;for(o=0;o0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var U=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),v;(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange"})(v||(v={}));var te;(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility"})(te||(te={}));function qi(t,e){var n=null;return!t||et.end?null:(t.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1}),n)}function ji(t,e){for(var n=qi(t,e),r=[];n;)r.unshift(n),n=n.parent;return r}function Pp(t){var e=t.findParent(v.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var B=function(){function t(e,n,r){e===void 0&&(e=-1),n===void 0&&(n=-1),this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}return Object.defineProperty(t.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.nodeType||v.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),t.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},t.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},t.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},t.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},t.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},t.prototype.accept=function(e){if(e(this)&&this.children)for(var n=0,r=this.children;n=0&&e.parent.children.splice(r,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,e):i.push(e),e},t.prototype.attachTo=function(e,n){return n===void 0&&(n=-1),e&&e.adoptChild(this,n),this},t.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},t.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},t.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some(function(n){return n.getRule()===e})},t.prototype.isErroneous=function(e){return e===void 0&&(e=!1),this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(function(n){return n.isErroneous(!0)})},t.prototype.setNode=function(e,n,r){return r===void 0&&(r=-1),n?(n.attachTo(this,r),this[e]=n,!0):!1},t.prototype.addChild=function(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1},t.prototype.updateOffsetAndLength=function(e){(e.offsetthis.end||this.length===-1)&&(this.length=n-this.offset)},t.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},t.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},t.prototype.getChild=function(e){return this.children&&e=0;r--)if(n=this.children[r],n.offset<=e)return n}return null},t.prototype.findChildAtOffset=function(e,n){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null},t.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},t.prototype.getParent=function(){for(var e=this.parent;e instanceof Ce;)e=e.parent;return e},t.prototype.findParent=function(e){for(var n=this;n&&n.type!==e;)n=n.parent;return n},t.prototype.findAParent=function(){for(var e=[],n=0;n{let s=i[0];return typeof e[s]<"u"?e[s]:r}),n}function vf(t,e,...n){return bf(e,n)}function Je(t){return vf}var ne=Je(),re=function(){function t(e,n){this.id=e,this.message=n}return t}(),S={NumberExpected:new re("css-numberexpected",ne("expected.number","number expected")),ConditionExpected:new re("css-conditionexpected",ne("expected.condt","condition expected")),RuleOrSelectorExpected:new re("css-ruleorselectorexpected",ne("expected.ruleorselector","at-rule or selector expected")),DotExpected:new re("css-dotexpected",ne("expected.dot","dot expected")),ColonExpected:new re("css-colonexpected",ne("expected.colon","colon expected")),SemiColonExpected:new re("css-semicolonexpected",ne("expected.semicolon","semi-colon expected")),TermExpected:new re("css-termexpected",ne("expected.term","term expected")),ExpressionExpected:new re("css-expressionexpected",ne("expected.expression","expression expected")),OperatorExpected:new re("css-operatorexpected",ne("expected.operator","operator expected")),IdentifierExpected:new re("css-identifierexpected",ne("expected.ident","identifier expected")),PercentageExpected:new re("css-percentageexpected",ne("expected.percentage","percentage expected")),URIOrStringExpected:new re("css-uriorstringexpected",ne("expected.uriorstring","uri or string expected")),URIExpected:new re("css-uriexpected",ne("expected.uri","URI expected")),VariableNameExpected:new re("css-varnameexpected",ne("expected.varname","variable name expected")),VariableValueExpected:new re("css-varvalueexpected",ne("expected.varvalue","variable value expected")),PropertyValueExpected:new re("css-propertyvalueexpected",ne("expected.propvalue","property value expected")),LeftCurlyExpected:new re("css-lcurlyexpected",ne("expected.lcurly","{ expected")),RightCurlyExpected:new re("css-rcurlyexpected",ne("expected.rcurly","} expected")),LeftSquareBracketExpected:new re("css-rbracketexpected",ne("expected.lsquare","[ expected")),RightSquareBracketExpected:new re("css-lbracketexpected",ne("expected.rsquare","] expected")),LeftParenthesisExpected:new re("css-lparentexpected",ne("expected.lparen","( expected")),RightParenthesisExpected:new re("css-rparentexpected",ne("expected.rparent",") expected")),CommaExpected:new re("css-commaexpected",ne("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new re("css-pagedirordeclexpected",ne("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new re("css-unknownatrule",ne("unknown.atrule","at-rule unknown")),UnknownKeyword:new re("css-unknownkeyword",ne("unknown.keyword","unknown keyword")),SelectorExpected:new re("css-selectorexpected",ne("expected.selector","selector expected")),StringLiteralExpected:new re("css-stringliteralexpected",ne("expected.stringliteral","string literal expected")),WhitespaceExpected:new re("css-whitespaceexpected",ne("expected.whitespace","whitespace expected")),MediaQueryExpected:new re("css-mediaqueryexpected",ne("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new re("css-idorwildcardexpected",ne("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new re("css-wildcardexpected",ne("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new re("css-idorvarexpected",ne("expected.idorvar","identifier or variable expected"))},Ol;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Ol||(Ol={}));var Dr;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Dr||(Dr={}));var Ae;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=Dr.MAX_VALUE),i===Number.MAX_VALUE&&(i=Dr.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return F.objectLiteral(i)&&F.uinteger(i.line)&&F.uinteger(i.character)}t.is=n})(Ae||(Ae={}));var oe;(function(t){function e(r,i,s,o){if(F.uinteger(r)&&F.uinteger(i)&&F.uinteger(s)&&F.uinteger(o))return{start:Ae.create(r,i),end:Ae.create(s,o)};if(Ae.is(r)&&Ae.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+s+", "+o+"]")}t.create=e;function n(r){var i=r;return F.objectLiteral(i)&&Ae.is(i.start)&&Ae.is(i.end)}t.is=n})(oe||(oe={}));var Un;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return F.defined(i)&&oe.is(i.range)&&(F.string(i.uri)||F.undefined(i.uri))}t.is=n})(Un||(Un={}));var Ul;(function(t){function e(r,i,s,o){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(r){var i=r;return F.defined(i)&&oe.is(i.targetRange)&&F.string(i.targetUri)&&(oe.is(i.targetSelectionRange)||F.undefined(i.targetSelectionRange))&&(oe.is(i.originSelectionRange)||F.undefined(i.originSelectionRange))}t.is=n})(Ul||(Ul={}));var ts;(function(t){function e(r,i,s,o){return{red:r,green:i,blue:s,alpha:o}}t.create=e;function n(r){var i=r;return F.numberRange(i.red,0,1)&&F.numberRange(i.green,0,1)&&F.numberRange(i.blue,0,1)&&F.numberRange(i.alpha,0,1)}t.is=n})(ts||(ts={}));var Bl;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return oe.is(i.range)&&ts.is(i.color)}t.is=n})(Bl||(Bl={}));var Vl;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){var i=r;return F.string(i.label)&&(F.undefined(i.textEdit)||$.is(i))&&(F.undefined(i.additionalTextEdits)||F.typedArray(i.additionalTextEdits,$.is))}t.is=n})(Vl||(Vl={}));var ql;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(ql||(ql={}));var jl;(function(t){function e(r,i,s,o,a){var l={startLine:r,endLine:i};return F.defined(s)&&(l.startCharacter=s),F.defined(o)&&(l.endCharacter=o),F.defined(a)&&(l.kind=a),l}t.create=e;function n(r){var i=r;return F.uinteger(i.startLine)&&F.uinteger(i.startLine)&&(F.undefined(i.startCharacter)||F.uinteger(i.startCharacter))&&(F.undefined(i.endCharacter)||F.uinteger(i.endCharacter))&&(F.undefined(i.kind)||F.string(i.kind))}t.is=n})(jl||(jl={}));var ns;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return F.defined(i)&&Un.is(i.location)&&F.string(i.message)}t.is=n})(ns||(ns={}));var Ar;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ar||(Ar={}));var $l;(function(t){t.Unnecessary=1,t.Deprecated=2})($l||($l={}));var Hl;(function(t){function e(n){var r=n;return r!=null&&F.string(r.href)}t.is=e})(Hl||(Hl={}));var Mr;(function(t){function e(r,i,s,o,a,l){var c={range:r,message:i};return F.defined(s)&&(c.severity=s),F.defined(o)&&(c.code=o),F.defined(a)&&(c.source=a),F.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(r){var i,s=r;return F.defined(s)&&oe.is(s.range)&&F.string(s.message)&&(F.number(s.severity)||F.undefined(s.severity))&&(F.integer(s.code)||F.string(s.code)||F.undefined(s.code))&&(F.undefined(s.codeDescription)||F.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(F.string(s.source)||F.undefined(s.source))&&(F.undefined(s.relatedInformation)||F.typedArray(s.relatedInformation,ns.is))}t.is=n})(Mr||(Mr={}));var en;(function(t){function e(r,i){for(var s=[],o=2;o0&&(a.arguments=s),a}t.create=e;function n(r){var i=r;return F.defined(i)&&F.string(i.title)&&F.string(i.command)}t.is=n})(en||(en={}));var $;(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){var o=s;return F.objectLiteral(o)&&F.string(o.newText)&&oe.is(o.range)}t.is=i})($||($={}));var tn;(function(t){function e(r,i,s){var o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}t.create=e;function n(r){var i=r;return i!==void 0&&F.objectLiteral(i)&&F.string(i.label)&&(F.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(F.string(i.description)||i.description===void 0)}t.is=n})(tn||(tn={}));var Ee;(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})(Ee||(Ee={}));var Ct;(function(t){function e(s,o,a){return{range:s,newText:o,annotationId:a}}t.replace=e;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}t.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}t.del=r;function i(s){var o=s;return $.is(o)&&(tn.is(o.annotationId)||Ee.is(o.annotationId))}t.is=i})(Ct||(Ct={}));var Bn;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return F.defined(i)&&Lr.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Bn||(Bn={}));var Vn;(function(t){function e(r,i,s){var o={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&F.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||F.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||F.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ee.is(i.annotationId))}t.is=n})(Vn||(Vn={}));var qn;(function(t){function e(r,i,s,o){var a={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&F.string(i.oldUri)&&F.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||F.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||F.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ee.is(i.annotationId))}t.is=n})(qn||(qn={}));var jn;(function(t){function e(r,i,s){var o={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&F.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||F.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||F.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ee.is(i.annotationId))}t.is=n})(jn||(jn={}));var rs;(function(t){function e(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return F.string(i.kind)?Vn.is(i)||qn.is(i)||jn.is(i):Bn.is(i)}))}t.is=e})(rs||(rs={}));var Nr=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,s;if(r===void 0?i=$.insert(e,n):Ee.is(r)?(s=r,i=Ct.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=Ct.insert(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.replace=function(e,n,r){var i,s;if(r===void 0?i=$.replace(e,n):Ee.is(r)?(s=r,i=Ct.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=Ct.replace(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=$.del(e):Ee.is(n)?(i=n,r=Ct.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Ct.del(e,i)),this.edits.push(r),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Gl=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var r;if(Ee.is(e)?r=e:(r=this.nextId(),n=e),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},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),B0=function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Gl(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(Bn.is(r)){var i=new Nr(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new Nr(e.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(t.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}),t.prototype.getTextEditChange=function(e){if(Lr.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},r=this._textEditChanges[n.uri];if(!r){var i=[],s={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(s),r=new Nr(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[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new Nr(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Gl,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;tn.is(n)||Ee.is(n)?i=n:r=n;var s,o;if(i===void 0?s=Vn.create(e,r):(o=Ee.is(i)?i:this._changeAnnotations.manage(i),s=Vn.create(e,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o},t.prototype.renameFile=function(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;tn.is(r)||Ee.is(r)?s=r:i=r;var o,a;if(s===void 0?o=qn.create(e,n,i):(a=Ee.is(s)?s:this._changeAnnotations.manage(s),o=qn.create(e,n,i,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},t.prototype.deleteFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;tn.is(n)||Ee.is(n)?i=n:r=n;var s,o;if(i===void 0?s=jn.create(e,r):(o=Ee.is(i)?i:this._changeAnnotations.manage(i),s=jn.create(e,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o},t}(),Jl;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return F.defined(i)&&F.string(i.uri)}t.is=n})(Jl||(Jl={}));var is;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return F.defined(i)&&F.string(i.uri)&&F.integer(i.version)}t.is=n})(is||(is={}));var Lr;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return F.defined(i)&&F.string(i.uri)&&(i.version===null||F.integer(i.version))}t.is=n})(Lr||(Lr={}));var Xl;(function(t){function e(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}t.create=e;function n(r){var i=r;return F.defined(i)&&F.string(i.uri)&&F.string(i.languageId)&&F.integer(i.version)&&F.string(i.text)}t.is=n})(Xl||(Xl={}));var Be;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(Be||(Be={})),function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e}(Be||(Be={}));var ss;(function(t){function e(n){var r=n;return F.objectLiteral(n)&&Be.is(r.kind)&&F.string(r.value)}t.is=e})(ss||(ss={}));var j;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(j||(j={}));var Te;(function(t){t.PlainText=1,t.Snippet=2})(Te||(Te={}));var At;(function(t){t.Deprecated=1})(At||(At={}));var Yl;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){var i=r;return i&&F.string(i.newText)&&oe.is(i.insert)&&oe.is(i.replace)}t.is=n})(Yl||(Yl={}));var Kl;(function(t){t.asIs=1,t.adjustIndentation=2})(Kl||(Kl={}));var Ql;(function(t){function e(n){return{label:n}}t.create=e})(Ql||(Ql={}));var Zl;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(Zl||(Zl={}));var zr;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return F.string(i)||F.objectLiteral(i)&&F.string(i.language)&&F.string(i.value)}t.is=n})(zr||(zr={}));var ec;(function(t){function e(n){var r=n;return!!r&&F.objectLiteral(r)&&(ss.is(r.contents)||zr.is(r.contents)||F.typedArray(r.contents,zr.is))&&(n.range===void 0||oe.is(n.range))}t.is=e})(ec||(ec={}));var tc;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(tc||(tc={}));var nc;(function(t){function e(n,r){for(var i=[],s=2;s=0;h--){var d=l[h],f=s.offsetAt(d.range.start),m=s.offsetAt(d.range.end);if(m<=c)a=a.substring(0,f)+d.newText+a.substring(m,a.length);else throw new Error("Overlapping edit");c=f}return a}t.applyEdits=r;function i(s,o){if(s.length<=1)return s;var a=s.length/2|0,l=s.slice(0,a),c=s.slice(a);i(l,o),i(c,o);for(var h=0,d=0,f=0;h0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Ae.create(0,e);for(;re?i=s:r=s+1}var o=r-1;return Ae.create(o,e-n[o])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var r=n[e.line],i=e.line+1"u"}t.undefined=r;function i(m){return m===!0||m===!1}t.boolean=i;function s(m){return e.call(m)==="[object String]"}t.string=s;function o(m){return e.call(m)==="[object Number]"}t.number=o;function a(m,b,g){return e.call(m)==="[object Number]"&&b<=m&&m<=g}t.numberRange=a;function l(m){return e.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}t.integer=l;function c(m){return e.call(m)==="[object Number]"&&0<=m&&m<=2147483647}t.uinteger=c;function h(m){return e.call(m)==="[object Function]"}t.func=h;function d(m){return m!==null&&typeof m=="object"}t.objectLiteral=d;function f(m,b){return Array.isArray(m)&&m.every(b)}t.typedArray=f})(F||(F={}));var dc=class Os{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(let r of e)if(Os.isIncremental(r)){const i=fc(r.range),s=this.offsetAt(i.start),o=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(o,this._content.length);const a=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let c=this._lineOffsets;const h=pc(r.text,!1,s);if(l-a===h.length)for(let f=0,m=h.length;fe?i=o:r=o+1}let s=r-1;return{line:s,character:e-n[s]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1{let f=h.range.start.line-d.range.start.line;return f===0?h.range.start.character-d.range.start.character:f}),l=0;const c=[];for(const h of a){let d=i.offsetAt(h.range.start);if(dl&&c.push(o.substring(l,d)),h.newText.length&&c.push(h.newText),l=i.offsetAt(h.range.end)}return c.push(o.substr(l)),c.join("")}t.applyEdits=r})(ls||(ls={}));function cs(t,e){if(t.length<=1)return t;const n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);cs(r,e),cs(i,e);let s=0,o=0,a=0;for(;sn.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function wf(t){const e=fc(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var mc;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Be.Markdown,Be.PlainText]}},hover:{contentFormat:[Be.Markdown,Be.PlainText]}}}})(mc||(mc={}));var $n;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})($n||($n={}));var gc={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function bc(t){switch(t){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F `;case"nonstandard":return`\u{1F6A8}\uFE0F Property is nonstandard. Avoid using it. `;case"obsolete":return`\u{1F6A8}\uFE0F\uFE0F\uFE0F Property is obsolete. Avoid using it. `;default:return""}}function kt(t,e,n){var r;if(e?r={kind:"markdown",value:Sf(t,n)}:r={kind:"plaintext",value:xf(t,n)},r.value!=="")return r}function Pr(t){return t=t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),t.replace(//g,">")}function xf(t,e){if(!t.description||t.description==="")return"";if(typeof t.description!="string")return t.description.value;var n="";if(e?.documentation!==!1){t.status&&(n+=bc(t.status)),n+=t.description;var r=vc(t.browsers);r&&(n+=` (`+r+")"),"syntax"in t&&(n+=` Syntax: `.concat(t.syntax))}return t.references&&t.references.length>0&&e?.references!==!1&&(n.length>0&&(n+=` `),n+=t.references.map(function(i){return"".concat(i.name,": ").concat(i.url)}).join(" | ")),n}function Sf(t,e){if(!t.description||t.description==="")return"";var n="";if(e?.documentation!==!1){t.status&&(n+=bc(t.status)),typeof t.description=="string"?n+=Pr(t.description):n+=t.description.kind===Be.Markdown?t.description.value:Pr(t.description.value);var r=vc(t.browsers);r&&(n+=` (`+Pr(r)+")"),"syntax"in t&&t.syntax&&(n+=` Syntax: `.concat(Pr(t.syntax)))}return t.references&&t.references.length>0&&e?.references!==!1&&(n.length>0&&(n+=` `),n+=t.references.map(function(i){return"[".concat(i.name,"](").concat(i.url,")")}).join(" | ")),n}function vc(t){return t===void 0&&(t=[]),t.length===0?null:t.map(function(e){var n="",r=e.match(/([A-Z]+)(\d+)?/),i=r[1],s=r[2];return i in gc&&(n+=gc[i]),s&&(n+=" "+s),n}).join(", ")}var Hn=Je(),_f=[{func:"rgb($red, $green, $blue)",desc:Hn("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:Hn("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:Hn("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:Hn("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")},{func:"hwb($hue $white $black)",desc:Hn("css.builtin.hwb","Creates a Color from hue, white and black.")}],Tr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},yc={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function Et(t,e){var n=t.getText(),r=n.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);var i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function wc(t){var e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(e)%360;case"rad":return parseFloat(e)*180/Math.PI%360;case"grad":return parseFloat(e)*.9%360;case"turn":return parseFloat(e)*360%360;default:if(typeof n[2]>"u")return parseFloat(e)%360}throw new Error}function Cf(t){var e=t.getName();return e?/^(rgb|rgba|hsl|hsla|hwb)$/gi.test(e):!1}var xc=48,kf=57,Ef=65,Wr=97,Ff=102;function fe(t){return t=Wr&&t<=Ff?t-Wr+10:0)}function Sc(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:fe(t.charCodeAt(1))*17/255,green:fe(t.charCodeAt(2))*17/255,blue:fe(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:fe(t.charCodeAt(1))*17/255,green:fe(t.charCodeAt(2))*17/255,blue:fe(t.charCodeAt(3))*17/255,alpha:fe(t.charCodeAt(4))*17/255};case 7:return{red:(fe(t.charCodeAt(1))*16+fe(t.charCodeAt(2)))/255,green:(fe(t.charCodeAt(3))*16+fe(t.charCodeAt(4)))/255,blue:(fe(t.charCodeAt(5))*16+fe(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(fe(t.charCodeAt(1))*16+fe(t.charCodeAt(2)))/255,green:(fe(t.charCodeAt(3))*16+fe(t.charCodeAt(4)))/255,blue:(fe(t.charCodeAt(5))*16+fe(t.charCodeAt(6)))/255,alpha:(fe(t.charCodeAt(7))*16+fe(t.charCodeAt(8)))/255}}return null}function _c(t,e,n,r){if(r===void 0&&(r=1),t=t/60,e===0)return{red:n,green:n,blue:n,alpha:r};var i=function(a,l,c){for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(l-a)*c+a:c<3?l:c<4?(l-a)*(4-c)+a:a},s=n<=.5?n*(e+1):n+e-n*e,o=n*2-s;return{red:i(o,s,t+2),green:i(o,s,t),blue:i(o,s,t-2),alpha:r}}function Cc(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,s=Math.max(e,n,r),o=Math.min(e,n,r),a=0,l=0,c=(o+s)/2,h=s-o;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case e:a=(n-r)/h+(n=1){var i=e/(e+n);return{red:i,green:i,blue:i,alpha:r}}var s=_c(t,1,.5,r),o=s.red;o*=1-e-n,o+=e;var a=s.green;a*=1-e-n,a+=e;var l=s.blue;return l*=1-e-n,l+=e,{red:o,green:a,blue:l,alpha:r}}function Df(t){var e=Cc(t),n=Math.min(t.red,t.green,t.blue),r=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:r,a:e.a}}function Af(t){if(t.type===v.HexColorValue){var e=t.getText();return Sc(e)}else if(t.type===v.Function){var n=t,r=n.getName(),i=n.getArguments().getChildren();if(i.length===1){var s=i[0].getChildren();if(s.length===1&&s[0].type===v.Expression&&(i=s[0].getChildren(),i.length===3)){var o=i[2];if(o instanceof Yi){var a=o.getLeft(),l=o.getRight(),c=o.getOperator();a&&l&&c&&c.matches("/")&&(i=[i[0],i[1],a,l])}}}if(!r||i.length<3||i.length>4)return null;try{var h=i.length===4?Et(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:Et(i[0],255),green:Et(i[1],255),blue:Et(i[2],255),alpha:h};if(r==="hsl"||r==="hsla"){var d=wc(i[0]),f=Et(i[1],100),m=Et(i[2],100);return _c(d,f,m,h)}else if(r==="hwb"){var d=wc(i[0]),b=Et(i[1],100),g=Et(i[2],100);return Rf(d,b,g,h)}}catch{return null}}else if(t.type===v.Identifier){if(t.parent&&t.parent.type!==v.Term)return null;var y=t.parent;if(y&&y.parent&&y.parent.type===v.BinaryExpression){var _=y.parent;if(_.parent&&_.parent.type===v.ListEntry&&_.parent.key===_)return null}var E=t.getText().toLowerCase();if(E==="none")return null;var w=Tr[E];if(w)return Sc(w)}return null}var kc={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Ec={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Fc={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Mf=["medium","thick","thin"],Rc={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},Dc={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},Ac={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Mc={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Nc={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},Lc={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201Cstart\u201D or \u201Cend\u201D.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},zc={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Ic={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},Nf=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],Lf=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],zf=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function Or(t){return Object.keys(t).map(function(e){return t[e]})}function Ve(t){return typeof t<"u"}var Pc=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;re.offset?s-e.offset:0}return e},t.prototype.markError=function(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new Wl(e,n,Pe.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},t.prototype.parseStylesheet=function(e){var n=e.version,r=e.getText(),i=function(s,o){if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(s,o)};return this.internalParse(r,this._parseStylesheet,i)},t.prototype.internalParse=function(e,n,r){this.scanner.setSource(e),this.token=this.scanner.scan();var i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(s,o){return e.substr(s,o)}),i},t.prototype._parseStylesheet=function(){for(var e=this.create(Wp);e.addChild(this._parseStylesheetStart()););var n=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,n=!1,!this.peek(p.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(p.SemiColon)&&this.markError(e,S.SemiColonExpected));this.accept(p.SemiColon)||this.accept(p.CDO)||this.accept(p.CDC);)r=!0,n=!1}while(r);if(this.peek(p.EOF))break;n||(this.peek(p.AtKeyword)?this.markError(e,S.UnknownAtRule):this.markError(e,S.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(p.EOF));return this.finish(e)},t.prototype._parseStylesheetStart=function(){return this._parseCharset()},t.prototype._parseStylesheetStatement=function(e){return e===void 0&&(e=!1),this.peek(p.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},t.prototype._parseStylesheetAtStatement=function(e){return e===void 0&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},t.prototype._tryParseRuleset=function(e){var n=this.mark();if(this._parseSelector(e)){for(;this.accept(p.Comma)&&this._parseSelector(e););if(this.accept(p.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null},t.prototype._parseRuleset=function(e){e===void 0&&(e=!1);var n=this.create(Kt),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,S.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},t.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},t.prototype._needsSemicolonAfter=function(e){switch(e.type){case v.Keyframe:case v.ViewPort:case v.Media:case v.Ruleset:case v.Namespace:case v.If:case v.For:case v.Each:case v.While:case v.MixinDeclaration:case v.FunctionDeclaration:case v.MixinContentDeclaration:return!1;case v.ExtendsReference:case v.MixinContentReference:case v.ReturnStatement:case v.MediaQuery:case v.Debug:case v.Import:case v.AtApplyRule:case v.CustomPropertyDeclaration:return!0;case v.VariableDeclaration:return e.needsSemicolon;case v.MixinReference:return!e.getContent();case v.Declaration:return!e.getNestedProperties()}return!1},t.prototype._parseDeclarations=function(e){var n=this.create($i);if(!this.accept(p.CurlyL))return null;for(var r=e();n.addChild(r)&&!this.peek(p.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(p.SemiColon))return this.finish(n,S.SemiColonExpected,[p.SemiColon,p.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===p.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(p.SemiColon););r=e()}return this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.RightCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseBody=function(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,S.LeftCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseSelector=function(e){var n=this.create(In),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null},t.prototype._parseDeclaration=function(e){var n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;var r=this.create(Ze);return r.setProperty(this._parseProperty())?this.accept(p.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,S.PropertyValueExpected)):this.finish(r,S.ColonExpected,[p.Colon],e||[p.SemiColon]):null},t.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(p.Ident,/^--/))return null;var n=this.create(Up);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(n,S.ColonExpected,[p.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(p.CurlyL)){var i=this.create(Op),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(s)&&!s.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(p.SemiColon)))return this.finish(i),n.setPropertySet(i),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}var o=this._parseExpr();return o&&!o.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,Pc(Pc([],e||[],!1),[p.SemiColon,p.EOF],!1)))?(n.setValue(o),this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),Ve(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,S.PropertyValueExpected):this.finish(n))},t.prototype._parseCustomPropertyValue=function(e){var n=this;e===void 0&&(e=[p.CurlyR]);var r=this.create(B),i=function(){return o===0&&a===0&&l===0},s=function(){return e.indexOf(n.token.type)!==-1},o=0,a=0,l=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(i())break e;break;case p.Exclamation:if(i())break e;break;case p.CurlyL:o++;break;case p.CurlyR:if(o--,o<0){if(s()&&a===0&&l===0)break e;return this.finish(r,S.LeftCurlyExpected)}break;case p.ParenthesisL:a++;break;case p.ParenthesisR:if(a--,a<0){if(s()&&l===0&&o===0)break e;return this.finish(r,S.LeftParenthesisExpected)}break;case p.BracketL:l++;break;case p.BracketR:if(l--,l<0)return this.finish(r,S.LeftSquareBracketExpected);break;case p.BadString:break e;case p.EOF:var c=S.RightCurlyExpected;return l>0?c=S.RightSquareBracketExpected:a>0&&(c=S.RightParenthesisExpected),this.finish(r,c)}this.consumeToken()}return this.finish(r)},t.prototype._tryToParseDeclaration=function(e){var n=this.mark();return this._parseProperty()&&this.accept(p.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)},t.prototype._parseProperty=function(){var e=this.create(Gi),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},t.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},t.prototype._parseCharset=function(){if(!this.peek(p.Charset))return null;var e=this.create(B);return this.consumeToken(),this.accept(p.String)?this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected):this.finish(e,S.IdentifierExpected)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(Ji);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,S.URIOrStringExpected):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))},t.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(Qp);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,S.URIExpected,[p.SemiColon]):this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected)},t.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(Rl);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(Gp);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseKeyframe=function(){if(!this.peekRegExp(p.AtKeyword,this.keyframeRegex))return null;var e=this.create(Al),n=this.create(B);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,S.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,S.IdentifierExpected,[p.CurlyR])},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([te.Keyframe])},t.prototype._parseKeyframeSelector=function(){var e=this.create(Ml);if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.finish(e,S.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._tryParseKeyframeSelector=function(){var e=this.create(Ml),n=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.restoreAtMark(n),null;return this.peek(p.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)},t.prototype._parseSupports=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@supports"))return null;var n=this.create(Xi);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))},t.prototype._parseSupportsDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseSupportsCondition=function(){var e=this.create(Tn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(p.Ident,/^(and|or)$/i))for(var n=this.token.text.toLowerCase();this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},t.prototype._parseSupportsConditionInParens=function(){var e=this.create(Tn);if(this.accept(p.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([p.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,S.ConditionExpected):this.accept(p.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,S.RightParenthesisExpected,[p.ParenthesisR],[]);if(this.peek(p.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){for(var r=1;this.token.type!==p.EOF&&r!==0;)this.token.type===p.ParenthesisL?r++:this.token.type===p.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,S.LeftParenthesisExpected,[],[p.ParenthesisL])},t.prototype._parseMediaDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseMedia=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@media"))return null;var n=this.create(Nl);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,S.MediaQueryExpected)},t.prototype._parseMediaQueryList=function(){var e=this.create(Ll);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);return this.finish(e)},t.prototype._parseMediaQuery=function(){var e=this.create(zl),n=this.mark();if(this.acceptIdent("not"),this.peek(p.ParenthesisL))this.restoreAtMark(n),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)},t.prototype._parseRatio=function(){var e=this.mark(),n=this.create(af);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,S.NumberExpected):(this.restoreAtMark(e),null):null},t.prototype._parseMediaCondition=function(){var e=this.create(ef);this.acceptIdent("not");for(var n=!0;n;){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[],[p.CurlyL]);if(this.peek(p.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[],[p.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},t.prototype._parseMediaFeature=function(){var e=this,n=[p.ParenthesisR],r=this.create(tf),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(p.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,S.OperatorExpected,[],n);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,S.IdentifierExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else return this.finish(r,S.IdentifierExpected,[],n);return this.finish(r)},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()},t.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},t.prototype._parseMedium=function(){var e=this.create(B);return e.addChild(this._parseIdent())?this.finish(e):null},t.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},t.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(nf);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(p.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,S.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))},t.prototype._parsePageMarginBox=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(rf);return this.acceptOneKeyword(zf)||this.markError(e,S.UnknownAtRule,[],[p.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parsePageSelector=function(){if(!this.peek(p.Ident)&&!this.peek(p.Colon))return null;var e=this.create(B);return e.addChild(this._parseIdent()),this.accept(p.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(Zp);return this.consumeToken(),this.resync([],[p.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},t.prototype._parseUnknownAtRule=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(Pl);e.addChild(this._parseUnknownAtRuleName());var n=function(){return i===0&&s===0&&o===0},r=0,i=0,s=0,o=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(n())break e;break;case p.EOF:return i>0?this.finish(e,S.RightCurlyExpected):o>0?this.finish(e,S.RightSquareBracketExpected):s>0?this.finish(e,S.RightParenthesisExpected):this.finish(e);case p.CurlyL:r++,i++;break;case p.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),o>0)return this.finish(e,S.RightSquareBracketExpected);if(s>0)return this.finish(e,S.RightParenthesisExpected);break e}if(i<0){if(s===0&&o===0)break e;return this.finish(e,S.LeftCurlyExpected)}break;case p.ParenthesisL:s++;break;case p.ParenthesisR:if(s--,s<0)return this.finish(e,S.LeftParenthesisExpected);break;case p.BracketL:o++;break;case p.BracketR:if(o--,o<0)return this.finish(e,S.LeftSquareBracketExpected);break}this.consumeToken()}return e},t.prototype._parseUnknownAtRuleName=function(){var e=this.create(B);return this.accept(p.AtKeyword)?this.finish(e):e},t.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(p.Dashmatch)||this.peek(p.Includes)||this.peek(p.SubstringOperator)||this.peek(p.PrefixOperator)||this.peek(p.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(v.Operator);return this.consumeToken(),this.finish(e)}else return null},t.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(B);return this.consumeToken(),this.finish(e)},t.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(B);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=v.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){var e=this.create(B);return this.consumeToken(),e.type=v.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){var e=this.create(B);return this.consumeToken(),e.type=v.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){var e=this.create(B);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null},t.prototype._parseSimpleSelector=function(){var e=this.create(Qt),n=0;for(e.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null},t.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},t.prototype._parseSelectorIdent=function(){return this._parseIdent()},t.prototype._parseHash=function(){if(!this.peek(p.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(v.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,S.IdentifierExpected)}else this.consumeToken();return this.finish(e)},t.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(v.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseElementName=function(){var e=this.mark(),n=this.createNode(v.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(n)},t.prototype._parseNamespacePrefix=function(){var e=this.mark(),n=this.createNode(v.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)},t.prototype._parseAttrib=function(){if(!this.peek(p.BracketL))return null;var e=this.create(of);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)):this.finish(e,S.IdentifierExpected)},t.prototype._parsePseudo=function(){var e=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=function(){var i=e.create(B);if(!i.addChild(e._parseSelector(!1)))return null;for(;e.accept(p.Comma)&&i.addChild(e._parseSelector(!1)););return e.peek(p.ParenthesisR)?e.finish(i):null};if(n.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)}return null},t.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(p.Colon))return null;var e=this.mark(),n=this.createNode(v.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(p.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,S.IdentifierExpected):this.finish(n))},t.prototype._tryParsePrio=function(){var e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)},t.prototype._parsePrio=function(){if(!this.peek(p.Exclamation))return null;var e=this.createNode(v.Prio);return this.accept(p.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},t.prototype._parseExpr=function(e){e===void 0&&(e=!1);var n=this.create(Il);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(p.Comma)){if(e)return this.finish(n);this.consumeToken()}else if(!this.hasWhitespace())break;if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},t.prototype._parseUnicodeRange=function(){if(!this.peekIdent("u"))return null;var e=this.create(Tp);return this.acceptUnicodeRange()?this.finish(e):null},t.prototype._parseNamedLine=function(){if(!this.peek(p.BracketL))return null;var e=this.createNode(v.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)},t.prototype._parseBinaryExpr=function(e,n){var r=this.create(Yi);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,S.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},t.prototype._parseTerm=function(){var e=this.create(sf);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},t.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},t.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var e=this.create(B);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,S.RightParenthesisExpected)},t.prototype._parseNumeric=function(){if(this.peek(p.Num)||this.peek(p.Percentage)||this.peek(p.Resolution)||this.peek(p.Length)||this.peek(p.EMS)||this.peek(p.EXS)||this.peek(p.Angle)||this.peek(p.Time)||this.peek(p.Dimension)||this.peek(p.Freq)){var e=this.create(Qi);return this.consumeToken(),this.finish(e)}return null},t.prototype._parseStringLiteral=function(){if(!this.peek(p.String)&&!this.peek(p.BadString))return null;var e=this.createNode(v.StringLiteral);return this.consumeToken(),this.finish(e)},t.prototype._parseURILiteral=function(){if(!this.peekRegExp(p.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),n=this.createNode(v.URILiteral);return this.accept(p.Ident),this.hasWhitespace()||!this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected))},t.prototype._parseURLArgument=function(){var e=this.create(B);return!this.accept(p.String)&&!this.accept(p.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)},t.prototype._parseIdent=function(e){if(!this.peek(p.Ident))return null;var n=this.create(Ue);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(p.Ident,/^--/),this.consumeToken(),this.finish(n)},t.prototype._parseFunction=function(){var e=this.mark(),n=this.create(Pn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,S.ExpressionExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(!this.peek(p.Ident))return null;var e=this.create(Ue);if(e.referenceTypes=[te.Function],this.acceptIdent("progid")){if(this.accept(p.Colon))for(;this.accept(p.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},t.prototype._parseFunctionArgument=function(){var e=this.create(Zt);return e.setValue(this._parseExpr(!0))?this.finish(e):null},t.prototype._parseHexColor=function(){if(this.peekRegExp(p.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var e=this.create(Ki);return this.consumeToken(),this.finish(e)}else return null},t}();function If(t,e){var n=0,r=t.length;if(r===0)return 0;for(;ne+n||this.offset===e&&this.length===n?this.findInScope(e,n):null},t.prototype.findInScope=function(e,n){n===void 0&&(n=0);var r=e+n,i=If(this.children,function(o){return o.offset>r});if(i===0)return this;var s=this.children[i-1];return s.offset<=e&&s.offset+s.length>=e+n?s.findInScope(e,n):this},t.prototype.addSymbol=function(e){this.symbols.push(e)},t.prototype.getSymbol=function(e,n){for(var r=0;r{"use strict";var t={470:r=>{function i(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function s(a,l){for(var c,h="",d=0,f=-1,m=0,b=0;b<=a.length;++b){if(b2){var g=h.lastIndexOf("/");if(g!==h.length-1){g===-1?(h="",d=0):d=(h=h.slice(0,g)).length-1-h.lastIndexOf("/"),f=b,m=0;continue}}else if(h.length===2||h.length===1){h="",d=0,f=b,m=0;continue}}l&&(h.length>0?h+="/..":h="..",d=2)}else h.length>0?h+="/"+a.slice(f+1,b):h=a.slice(f+1,b),d=b-f-1;f=b,m=0}else c===46&&m!==-1?++m:m=-1}return h}var o={resolve:function(){for(var a,l="",c=!1,h=arguments.length-1;h>=-1&&!c;h--){var d;h>=0?d=arguments[h]:(a===void 0&&(a=process.cwd()),d=a),i(d),d.length!==0&&(l=d+"/"+l,c=d.charCodeAt(0)===47)}return l=s(l,!c),c?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(a){if(i(a),a.length===0)return".";var l=a.charCodeAt(0)===47,c=a.charCodeAt(a.length-1)===47;return(a=s(a,!l)).length!==0||l||(a="."),a.length>0&&c&&(a+="/"),l?"/"+a:a},isAbsolute:function(a){return i(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,l=0;l0&&(a===void 0?a=c:a+="/"+c)}return a===void 0?".":o.normalize(a)},relative:function(a,l){if(i(a),i(l),a===l||(a=o.resolve(a))===(l=o.resolve(l)))return"";for(var c=1;cb){if(l.charCodeAt(f+y)===47)return l.slice(f+y+1);if(y===0)return l.slice(f+y)}else d>b&&(a.charCodeAt(c+y)===47?g=y:y===0&&(g=0));break}var _=a.charCodeAt(c+y);if(_!==l.charCodeAt(f+y))break;_===47&&(g=y)}var E="";for(y=c+g+1;y<=h;++y)y!==h&&a.charCodeAt(y)!==47||(E.length===0?E+="..":E+="/..");return E.length>0?E+l.slice(f+g):(f+=g,l.charCodeAt(f)===47&&++f,l.slice(f))},_makeLong:function(a){return a},dirname:function(a){if(i(a),a.length===0)return".";for(var l=a.charCodeAt(0),c=l===47,h=-1,d=!0,f=a.length-1;f>=1;--f)if((l=a.charCodeAt(f))===47){if(!d){h=f;break}}else d=!1;return h===-1?c?"/":".":c&&h===1?"//":a.slice(0,h)},basename:function(a,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');i(a);var c,h=0,d=-1,f=!0;if(l!==void 0&&l.length>0&&l.length<=a.length){if(l.length===a.length&&l===a)return"";var m=l.length-1,b=-1;for(c=a.length-1;c>=0;--c){var g=a.charCodeAt(c);if(g===47){if(!f){h=c+1;break}}else b===-1&&(f=!1,b=c+1),m>=0&&(g===l.charCodeAt(m)?--m==-1&&(d=c):(m=-1,d=b))}return h===d?d=b:d===-1&&(d=a.length),a.slice(h,d)}for(c=a.length-1;c>=0;--c)if(a.charCodeAt(c)===47){if(!f){h=c+1;break}}else d===-1&&(f=!1,d=c+1);return d===-1?"":a.slice(h,d)},extname:function(a){i(a);for(var l=-1,c=0,h=-1,d=!0,f=0,m=a.length-1;m>=0;--m){var b=a.charCodeAt(m);if(b!==47)h===-1&&(d=!1,h=m+1),b===46?l===-1?l=m:f!==1&&(f=1):l!==-1&&(f=-1);else if(!d){c=m+1;break}}return l===-1||h===-1||f===0||f===1&&l===h-1&&l===c+1?"":a.slice(l,h)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return function(l,c){var h=c.dir||c.root,d=c.base||(c.name||"")+(c.ext||"");return h?h===c.root?h+d:h+"/"+d:d}(0,a)},parse:function(a){i(a);var l={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return l;var c,h=a.charCodeAt(0),d=h===47;d?(l.root="/",c=1):c=0;for(var f=-1,m=0,b=-1,g=!0,y=a.length-1,_=0;y>=c;--y)if((h=a.charCodeAt(y))!==47)b===-1&&(g=!1,b=y+1),h===46?f===-1?f=y:_!==1&&(_=1):f!==-1&&(_=-1);else if(!g){m=y+1;break}return f===-1||b===-1||_===0||_===1&&f===b-1&&f===m+1?b!==-1&&(l.base=l.name=m===0&&d?a.slice(1,b):a.slice(m,b)):(m===0&&d?(l.name=a.slice(1,f),l.base=a.slice(1,b)):(l.name=a.slice(m,f),l.base=a.slice(m,b)),l.ext=a.slice(f,b)),m>0?l.dir=a.slice(0,m-1):d&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,r.exports=o},447:(r,i,s)=>{var o;if(s.r(i),s.d(i,{URI:()=>E,Utils:()=>M}),typeof process=="object")o=process.platform==="win32";else if(typeof navigator=="object"){var a=navigator.userAgent;o=a.indexOf("Windows")>=0}var l,c,h=(l=function(k,x){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,L){D.__proto__=L}||function(D,L){for(var H in L)Object.prototype.hasOwnProperty.call(L,H)&&(D[H]=L[H])})(k,x)},function(k,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function D(){this.constructor=k}l(k,x),k.prototype=x===null?Object.create(x):(D.prototype=x.prototype,new D)}),d=/^\w[\w\d+.-]*$/,f=/^\//,m=/^\/\//;function b(k,x){if(!k.scheme&&x)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(k.authority,'", path: "').concat(k.path,'", query: "').concat(k.query,'", fragment: "').concat(k.fragment,'"}'));if(k.scheme&&!d.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!f.test(k.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(m.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var g="",y="/",_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,E=function(){function k(x,D,L,H,X,ee){ee===void 0&&(ee=!1),typeof x=="object"?(this.scheme=x.scheme||g,this.authority=x.authority||g,this.path=x.path||g,this.query=x.query||g,this.fragment=x.fragment||g):(this.scheme=function(We,me){return We||me?We:"file"}(x,ee),this.authority=D||g,this.path=function(We,me){switch(We){case"https":case"http":case"file":me?me[0]!==y&&(me=y+me):me=y}return me}(this.scheme,L||g),this.query=H||g,this.fragment=X||g,b(this,ee))}return k.isUri=function(x){return x instanceof k||!!x&&typeof x.authority=="string"&&typeof x.fragment=="string"&&typeof x.path=="string"&&typeof x.query=="string"&&typeof x.scheme=="string"&&typeof x.fsPath=="string"&&typeof x.with=="function"&&typeof x.toString=="function"},Object.defineProperty(k.prototype,"fsPath",{get:function(){return T(this,!1)},enumerable:!1,configurable:!0}),k.prototype.with=function(x){if(!x)return this;var D=x.scheme,L=x.authority,H=x.path,X=x.query,ee=x.fragment;return D===void 0?D=this.scheme:D===null&&(D=g),L===void 0?L=this.authority:L===null&&(L=g),H===void 0?H=this.path:H===null&&(H=g),X===void 0?X=this.query:X===null&&(X=g),ee===void 0?ee=this.fragment:ee===null&&(ee=g),D===this.scheme&&L===this.authority&&H===this.path&&X===this.query&&ee===this.fragment?this:new C(D,L,H,X,ee)},k.parse=function(x,D){D===void 0&&(D=!1);var L=_.exec(x);return L?new C(L[2]||g,A(L[4]||g),A(L[5]||g),A(L[7]||g),A(L[9]||g),D):new C(g,g,g,g,g)},k.file=function(x){var D=g;if(o&&(x=x.replace(/\\/g,y)),x[0]===y&&x[1]===y){var L=x.indexOf(y,2);L===-1?(D=x.substring(2),x=y):(D=x.substring(2,L),x=x.substring(L)||y)}return new C("file",D,x,g,g)},k.from=function(x){var D=new C(x.scheme,x.authority,x.path,x.query,x.fragment);return b(D,!0),D},k.prototype.toString=function(x){return x===void 0&&(x=!1),G(this,x)},k.prototype.toJSON=function(){return this},k.revive=function(x){if(x){if(x instanceof k)return x;var D=new C(x);return D._formatted=x.external,D._fsPath=x._sep===w?x.fsPath:null,D}return x},k}(),w=o?1:void 0,C=function(k){function x(){var D=k!==null&&k.apply(this,arguments)||this;return D._formatted=null,D._fsPath=null,D}return h(x,k),Object.defineProperty(x.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=T(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),x.prototype.toString=function(D){return D===void 0&&(D=!1),D?G(this,!0):(this._formatted||(this._formatted=G(this,!1)),this._formatted)},x.prototype.toJSON=function(){var D={$mid:1};return this._fsPath&&(D.fsPath=this._fsPath,D._sep=w),this._formatted&&(D.external=this._formatted),this.path&&(D.path=this.path),this.scheme&&(D.scheme=this.scheme),this.authority&&(D.authority=this.authority),this.query&&(D.query=this.query),this.fragment&&(D.fragment=this.fragment),D},x}(E),R=((c={})[58]="%3A",c[47]="%2F",c[63]="%3F",c[35]="%23",c[91]="%5B",c[93]="%5D",c[64]="%40",c[33]="%21",c[36]="%24",c[38]="%26",c[39]="%27",c[40]="%28",c[41]="%29",c[42]="%2A",c[43]="%2B",c[44]="%2C",c[59]="%3B",c[61]="%3D",c[32]="%20",c);function z(k,x){for(var D=void 0,L=-1,H=0;H=97&&X<=122||X>=65&&X<=90||X>=48&&X<=57||X===45||X===46||X===95||X===126||x&&X===47)L!==-1&&(D+=encodeURIComponent(k.substring(L,H)),L=-1),D!==void 0&&(D+=k.charAt(H));else{D===void 0&&(D=k.substr(0,H));var ee=R[X];ee!==void 0?(L!==-1&&(D+=encodeURIComponent(k.substring(L,H)),L=-1),D+=ee):L===-1&&(L=H)}}return L!==-1&&(D+=encodeURIComponent(k.substring(L))),D!==void 0?D:k}function W(k){for(var x=void 0,D=0;D1&&k.scheme==="file"?"//".concat(k.authority).concat(k.path):k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?x?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,o&&(D=D.replace(/\//g,"\\")),D}function G(k,x){var D=x?W:z,L="",H=k.scheme,X=k.authority,ee=k.path,We=k.query,me=k.fragment;if(H&&(L+=H,L+=":"),(X||H==="file")&&(L+=y,L+=y),X){var Me=X.indexOf("@");if(Me!==-1){var ut=X.substr(0,Me);X=X.substr(Me+1),(Me=ut.indexOf(":"))===-1?L+=D(ut,!1):(L+=D(ut.substr(0,Me),!1),L+=":",L+=D(ut.substr(Me+1),!1)),L+="@"}(Me=(X=X.toLowerCase()).indexOf(":"))===-1?L+=D(X,!1):(L+=D(X.substr(0,Me),!1),L+=X.substr(Me))}if(ee){if(ee.length>=3&&ee.charCodeAt(0)===47&&ee.charCodeAt(2)===58)(dt=ee.charCodeAt(1))>=65&&dt<=90&&(ee="/".concat(String.fromCharCode(dt+32),":").concat(ee.substr(3)));else if(ee.length>=2&&ee.charCodeAt(1)===58){var dt;(dt=ee.charCodeAt(0))>=65&&dt<=90&&(ee="".concat(String.fromCharCode(dt+32),":").concat(ee.substr(2)))}L+=D(ee,!0)}return We&&(L+="?",L+=D(We,!1)),me&&(L+="#",L+=x?me:z(me,!1)),L}function se(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+se(k.substr(3)):k}}var J=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function A(k){return k.match(J)?k.replace(J,function(x){return se(x)}):k}var M,I=s(470),P=function(k,x,D){if(D||arguments.length===2)for(var L,H=0,X=x.length;H{for(var s in i)n.o(i,s)&&!n.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:i[s]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();var{URI:ds,Utils:ps}=Oc,Of=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=0;o--){var a=this.nodePath[o];if(a instanceof Gi)this.getCompletionsForDeclarationProperty(a.getParent(),s);else if(a instanceof Il)a.parent instanceof Zi?this.getVariableProposals(null,s):this.getCompletionsForExpression(a,s);else if(a instanceof Qt){var l=a.findAParent(v.ExtendsReference,v.Ruleset);if(l)if(l.type===v.ExtendsReference)this.getCompletionsForExtendsReference(l,a,s);else{var c=l;this.getCompletionsForSelector(c,c&&c.isNested(),s)}}else if(a instanceof Zt)this.getCompletionsForFunctionArgument(a,a.getParent(),s);else if(a instanceof $i)this.getCompletionsForDeclarations(a,s);else if(a instanceof Fr)this.getCompletionsForVariableDeclaration(a,s);else if(a instanceof Kt)this.getCompletionsForRuleSet(a,s);else if(a instanceof Zi)this.getCompletionsForInterpolation(a,s);else if(a instanceof Er)this.getCompletionsForFunctionDeclaration(a,s);else if(a instanceof Rr)this.getCompletionsForMixinReference(a,s);else if(a instanceof Pn)this.getCompletionsForFunctionArgument(null,a,s);else if(a instanceof Xi)this.getCompletionsForSupports(a,s);else if(a instanceof Tn)this.getCompletionsForSupportsCondition(a,s);else if(a instanceof Wn)this.getCompletionsForExtendsReference(a,null,s);else if(a.type===v.URILiteral)this.getCompletionForUriLiteralValue(a,s);else if(a.parent===null)this.getCompletionForTopLevel(s);else if(a.type===v.StringLiteral&&this.isImportPathParent(a.parent.type))this.getCompletionForImportPath(a,s);else continue;if(s.items.length>0||this.offset>a.offset)return this.finalize(s)}return this.getCompletionsForStylesheet(s),s.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,s),this.finalize(s)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},t.prototype.isImportPathParent=function(e){return e===v.Import},t.prototype.finalize=function(e){return e},t.prototype.findInNodePath=function(){for(var e=[],n=0;n=0;r--){var i=this.nodePath[r];if(e.indexOf(i.type)!==-1)return i}return null},t.prototype.getCompletionsForDeclarationProperty=function(e,n){return this.getPropertyProposals(e,n)},t.prototype.getPropertyProposals=function(e,n){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,s=this.isCompletePropertyWithSemicolonEnabled,o=this.cssDataManager.getProperties();return o.forEach(function(a){var l,c,h=!1;e?(l=r.getCompletionRange(e.getProperty()),c=a.name,Ve(e.colonPosition)||(c+=": ",h=!0)):(l=r.getCompletionRange(null),c=a.name+": ",h=!0),!e&&s&&(c+="$0;"),e&&!e.semicolonPosition&&s&&r.offset>=r.textDocument.offsetAt(l.end)&&(c+="$0;");var d={label:a.name,documentation:kt(a,r.doesSupportMarkdown()),tags:Gn(a)?[At.Deprecated]:[],textEdit:$.replace(l,c),insertTextFormat:Te.Snippet,kind:j.Property};a.restrictions||(h=!1),i&&h&&(d.command=Vc);var f=typeof a.relevance=="number"?Math.min(Math.max(a.relevance,0),99):50,m=(255-f).toString(16),b=be(a.name,"-")?et.VendorPrefixed:et.Normal;d.sortText=b+"_"+m,n.items.push(d)}),this.completionParticipants.forEach(function(a){a.onCssProperty&&a.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),n},Object.defineProperty(t.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.triggerPropertyValueCompletion)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.completePropertyWithSemicolon)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),t.prototype.getCompletionsForDeclarationValue=function(e,n){for(var r=this,i=e.getFullPropertyName(),s=this.cssDataManager.getProperty(i),o=e.getValue()||null;o&&o.hasChildren();)o=o.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(b){b.onCssPropertyValue&&b.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(o)})}),s){if(s.restrictions)for(var a=0,l=s.restrictions;a=e.offset+2&&this.getVariableProposals(null,n),n},t.prototype.getVariableProposals=function(e,n){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,te.Variable),i=0,s=r;i0){var s=this.currentWord.match(/^-?\d[\.\d+]*/);s&&(i=s[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===v.Term&&(n=n.getParent()),e.restrictions)for(var o=0,a=e.restrictions;o=r.end;if(i)return this.getCompletionForTopLevel(n);var s=!r||this.offset<=r.offset;return s?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)},t.prototype.getCompletionsForSelector=function(e,n,r){var i=this,s=this.findInNodePath(v.PseudoSelector,v.IdentifierSelector,v.ClassSelector,v.ElementNameSelector);!s&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=oe.create(Ae.create(this.position.line,this.position.character-this.currentWord.length),this.position));var o=this.cssDataManager.getPseudoClasses();o.forEach(function(y){var _=rn(y.name),E={label:y.name,textEdit:$.replace(i.getCompletionRange(s),_),documentation:kt(y,i.doesSupportMarkdown()),tags:Gn(y)?[At.Deprecated]:[],kind:j.Function,insertTextFormat:y.name!==_?ot:void 0};be(y.name,":-")&&(E.sortText=et.VendorPrefixed),r.items.push(E)});var a=this.cssDataManager.getPseudoElements();if(a.forEach(function(y){var _=rn(y.name),E={label:y.name,textEdit:$.replace(i.getCompletionRange(s),_),documentation:kt(y,i.doesSupportMarkdown()),tags:Gn(y)?[At.Deprecated]:[],kind:j.Function,insertTextFormat:y.name!==_?ot:void 0};be(y.name,"::-")&&(E.sortText=et.VendorPrefixed),r.items.push(E)}),!n){for(var l=0,c=Nf;l0){var _=b.substr(y.offset,y.length);return _.charAt(0)==="."&&!m[_]&&(m[_]=!0,r.items.push({label:_,textEdit:$.replace(i.getCompletionRange(s),_),kind:j.Keyword})),!1}return!0}),e&&e.isNested()){var g=e.getSelectors().findFirstChildBeforeOffset(this.offset);g&&e.getSelectors().getChildren().indexOf(g)===0&&this.getPropertyProposals(null,r)}return r},t.prototype.getCompletionsForDeclarations=function(e,n){if(!e||this.offset===e.offset)return n;var r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof Hi){var i=r;if(!Ve(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(Ve(i.semicolonPosition)&&i.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue(),n),n},t.prototype.getCompletionsForExpression=function(e,n){var r=e.getParent();if(r instanceof Zt)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;var i=e.findParent(v.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;var s=e.findChildAtOffset(this.offset,!0);return s?s instanceof Qi||s instanceof Ue?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)},t.prototype.getCompletionsForFunctionArgument=function(e,n,r){var i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r},t.prototype.getCompletionsForFunctionDeclaration=function(e,n){var r=e.getDeclarations();return r&&this.offset>r.offset&&this.offsete.lParent&&(!Ve(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n},t.prototype.getCompletionsForSupports=function(e,n){var r=e.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var s=e.findFirstChildBeforeOffset(this.offset);return s instanceof Tn?this.getCompletionsForSupportsCondition(s,n):n}return this.getCompletionForTopLevel(n)},t.prototype.getCompletionsForExtendsReference=function(e,n,r){return r},t.prototype.getCompletionForUriLiteralValue=function(e,n){var r,i,s;if(e.hasChildren()){var a=e.getChild(0);r=a.getText(),i=this.position,s=this.getCompletionRange(a)}else{r="",i=this.position;var o=this.textDocument.positionAt(e.offset+4);s=oe.create(o,o)}return this.completionParticipants.forEach(function(l){l.onCssURILiteralValue&&l.onCssURILiteralValue({uriValue:r,position:i,range:s})}),n},t.prototype.getCompletionForImportPath=function(e,n){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})}),n},t.prototype.hasCharacterAtPosition=function(e,n){var r=this.textDocument.getText();return e>=0&&e=0&&` \r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,e)}function qc(t){return t.toLowerCase()in Tr||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}var jc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qf=Je(),ys=function(){function t(){this.parent=null,this.children=null,this.attributes=null}return t.prototype.findAttribute=function(e){if(this.attributes)for(var n=0,r=this.attributes;n"),this.writeLine(n,i.join(""))},t}(),at;(function(t){function e(r,i){return i+n(r)+i}t.ensure=e;function n(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}t.remove=n})(at||(at={}));var Hc=function(){function t(){this.id=0,this.attr=0,this.tag=0}return t}();function Gc(t,e){for(var n=new ys,r=0,i=t.getChildren();r1){var c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(o[l])}}break;case v.SelectorPlaceholder:if(s.matches("@at-root"))return n;case v.ElementNameSelector:var h=s.getText();n.addAttr("name",h==="*"?"element":qe(h));break;case v.ClassSelector:n.addAttr("class",qe(s.getText().substring(1)));break;case v.IdentifierSelector:n.addAttr("id",qe(s.getText().substring(1)));break;case v.MixinDeclaration:n.addAttr("class",s.getName());break;case v.PseudoSelector:n.addAttr(qe(s.getText()),"");break;case v.AttributeSelector:var d=s,f=d.getIdentifier();if(f){var m=d.getValue(),b=d.getOperator(),g=void 0;if(m&&b)switch(qe(b.getText())){case"|=":g="".concat(at.remove(qe(m.getText())),"-\u2026");break;case"^=":g="".concat(at.remove(qe(m.getText())),"\u2026");break;case"$=":g="\u2026".concat(at.remove(qe(m.getText())));break;case"~=":g=" \u2026 ".concat(at.remove(qe(m.getText()))," \u2026 ");break;case"*=":g="\u2026".concat(at.remove(qe(m.getText())),"\u2026");break;default:g=at.remove(qe(m.getText()));break}n.addAttr(qe(f.getText()),g)}break}}return n}function qe(t){var e=new zn;e.setSource(t);var n=e.scanUnquotedString();return n?n.text:t}var Zf=function(){function t(e){this.cssDataManager=e}return t.prototype.selectorToMarkedString=function(e){var n=nm(e);if(n){var r=new $c('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]},t.prototype.simpleSelectorToMarkedString=function(e){var n=Gc(e),r=new $c('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r},t.prototype.isPseudoElementIdentifier=function(e){var n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1},t.prototype.selectorToSpecificityMarkedString=function(e){var n=this,r=function(s){var o=new Hc;e:for(var a=0,l=s.getChildren();a0){for(var d=new Hc,f=0,m=c.getChildren();fd.id){d=w;continue}else if(w.idd.attr){d=w;continue}else if(w.attrd.tag){d=w;continue}}}o.id+=d.id,o.attr+=d.attr,o.tag+=d.tag;continue e}o.attr++;break}if(c.getChildren().length>0){var w=r(c);o.id+=w.id,o.attr+=w.attr,o.tag+=w.tag}}return o},i=r(e);return Qf("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},t}(),em=function(){function t(e){this.prev=null,this.element=e}return t.prototype.processSelector=function(e){var n=null;if(!(this.element instanceof sn)&&e.getChildren().some(function(h){return h.hasChildren()&&h.getChild(0).type===v.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof sn&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,s=e.getChildren();i=0;o--){var a=n[o].getSelectors().getChild(0);a&&s.processSelector(a)}return s.processSelector(t),e}var xs=function(){function t(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new Zf(n)}return t.prototype.configure=function(e){this.defaultSettings=e},t.prototype.doHover=function(e,n,r,i){i===void 0&&(i=this.defaultSettings);function s(y){return oe.create(e.positionAt(y.offset),e.positionAt(y.end))}for(var o=e.offsetAt(n),a=ji(r,o),l=null,c=0;c0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=s.length/2&&o.push({property:_.name,score:E})}),o.sort(function(_,E){return E.score-_.score||_.property.localeCompare(E.property)});for(var a=3,l=0,c=o;l=0;l--){var c=a[l];if(c instanceof Ze){var h=c.getProperty();if(h&&h.offset===s&&h.end===o){this.getFixesForUnknownProperty(e,h,r,i);return}}}},t}(),hm=function(){function t(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}return t}();function Yn(t,e,n,r){var i=t[e];i.value=n,n&&(Tc(i.properties,r)||i.properties.push(r))}function um(t,e,n){Yn(t,"top",e,n),Yn(t,"right",e,n),Yn(t,"bottom",e,n),Yn(t,"left",e,n)}function ke(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?Yn(t,e,n,r):um(t,n,r)}function Cs(t,e,n){switch(e.length){case 1:ke(t,void 0,e[0],n);break;case 2:ke(t,"top",e[0],n),ke(t,"bottom",e[0],n),ke(t,"right",e[1],n),ke(t,"left",e[1],n);break;case 3:ke(t,"top",e[0],n),ke(t,"right",e[1],n),ke(t,"left",e[1],n),ke(t,"bottom",e[2],n);break;case 4:ke(t,"top",e[0],n),ke(t,"right",e[1],n),ke(t,"bottom",e[2],n),ke(t,"left",e[3],n);break}}function ks(t,e){for(var n=0,r=e;n"u"))switch(i.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":e.width=i;break;case"height":e.height=i;break;default:var o=i.fullPropertyName.split("-");switch(o[0]){case"border":switch(o[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(o[2]){case void 0:ke(e,o[1],pm(s),i);break;case"width":ke(e,o[1],Kn(s,!1),i);break;case"style":ke(e,o[1],jr(s,!0),i);break}break;case"width":Cs(e,Zc(s.getChildren(),!1),i);break;case"style":Cs(e,dm(s.getChildren(),!0),i);break}break;case"padding":o.length===1?Cs(e,Zc(s.getChildren(),!0),i):ke(e,o[1],Kn(s,!0),i);break}break}}return e}var lt=Je(),eh=function(){function t(){this.data={}}return t.prototype.add=function(e,n,r){var i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(n),r&&i.nodes.push(r)},t}(),mm=function(){function t(e,n,r){var i=this;this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new eh,this.validProperties={};var s=n.getSetting(om.ValidProperties);Array.isArray(s)&&s.forEach(function(o){if(typeof o=="string"){var a=o.trim().toLowerCase();a.length&&(i.validProperties[a]=!0)}})}return t.entries=function(e,n,r,i,s){var o=new t(n,r,i);return e.acceptVisitor(o),o.completeValidations(),o.getEntries(s)},t.prototype.isValidPropertyDeclaration=function(e){var n=e.fullPropertyName;return this.validProperties[n]},t.prototype.fetch=function(e,n){for(var r=[],i=0,s=e;i0)for(var g=this.fetch(r,"float"),y=0;y0)for(var g=this.fetch(r,"vertical-align"),y=0;y1)for(var z=0;z")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var n=this.createNode(v.Operator);return this.consumeToken(),this.finish(n)}return t.prototype._parseOperator.call(this)},e.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var n=this.create(B);return this.consumeToken(),this.finish(n)}return t.prototype._parseUnaryOperator.call(this)},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseDeclaration=function(n){var r=this._tryParseCustomPropertyDeclaration(n);if(r)return r;var i=this.create(Ze);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(i,S.ColonExpected,[p.Colon],n||[p.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var s=!1;if(i.setValue(this._parseExpr())&&(s=!0,i.addChild(this._parsePrio())),this.peek(p.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!s)return this.finish(i,S.PropertyValueExpected);return this.peek(p.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},e.prototype._parseNestedProperties=function(){var n=this.create(Dl);return this._parseBody(n,this._parseDeclaration.bind(this))},e.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var n=this.create(Wn);if(this.consumeToken(),!n.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)n.getSelectors().addChild(this._parseSimpleSelector());return this.accept(p.Exclamation)&&!this.acceptIdent("optional")?this.finish(n,S.UnknownKeyword):this.finish(n)}return null},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var n=this.createNode(v.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(n)}else if(this.peekKeyword("@at-root")){var n=this.createNode(v.SelectorPlaceholder);return this.consumeToken(),this.finish(n)}return null},e.prototype._parseElementName=function(){var n=this.mark(),r=t.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(p.ParenthesisL)?(this.restoreAtMark(n),null):r},e.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||t.prototype._tryParsePseudoIdentifier.call(this)},e.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var n=this.createNode(v.Debug);return this.consumeToken(),n.addChild(this._parseExpr()),this.finish(n)},e.prototype._parseControlStatement=function(n){return n===void 0&&(n=this._parseRuleSetDeclaration.bind(this)),this.peek(p.AtKeyword)?this._parseIfStatement(n)||this._parseForStatement(n)||this._parseEachStatement(n)||this._parseWhileStatement(n):null},e.prototype._parseIfStatement=function(n){return this.peekKeyword("@if")?this._internalParseIfStatement(n):null},e.prototype._internalParseIfStatement=function(n){var r=this.create(Vp);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,S.ExpressionExpected);if(this._parseBody(r,n),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(n));else if(this.peek(p.CurlyL)){var i=this.create(Hp);this._parseBody(i,n),r.setElseClause(i)}}return this.finish(r)},e.prototype._parseForStatement=function(n){if(!this.peekKeyword("@for"))return null;var r=this.create(qp);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,Ms.ThroughOrToExpected,[p.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,Ms.FromExpected,[p.CurlyR]):this.finish(r,S.VariableNameExpected,[p.CurlyR])},e.prototype._parseEachStatement=function(n){if(!this.peekKeyword("@each"))return null;var r=this.create(jp);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);for(;this.accept(p.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,Ms.InExpected,[p.CurlyR])},e.prototype._parseWhileStatement=function(n){if(!this.peekKeyword("@while"))return null;var r=this.create($p);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR])},e.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},e.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var n=this.create(Er);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([te.Function])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyR]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}return this.accept(p.ParenthesisR)?this._parseBody(n,this._parseFunctionBodyDeclaration.bind(this)):this.finish(n,S.RightParenthesisExpected,[p.CurlyR])},e.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var n=this.createNode(v.ReturnStatement);return this.consumeToken(),n.addChild(this._parseExpr())?this.finish(n):this.finish(n,S.ExpressionExpected)},e.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var n=this.create(On);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([te.Mixin])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(this.accept(p.ParenthesisL)){if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyR])}return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseParameterDeclaration=function(){var n=this.create(kr);return n.setIdentifier(this._parseVariable())?(this.accept(Hr),this.accept(p.Colon)&&!n.setDefaultValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.finish(n)):null},e.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var n=this.create(uf);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)},e.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var n=this.create(Rr);this.consumeToken();var r=this._parseIdent([te.Mixin]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([te.Mixin]);if(!i)return this.finish(n,S.IdentifierExpected,[p.CurlyR]);var s=this.create(Tl);r.referenceTypes=[te.Module],s.setIdentifier(r),n.setIdentifier(i),n.addChild(s)}if(this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(p.CurlyL))&&n.setContent(this._parseMixinContentDeclaration()),this.finish(n)},e.prototype._parseMixinContentDeclaration=function(){var n=this.create(df);if(this.acceptIdent("using")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyL]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyL])}return this.peek(p.CurlyL)&&this._parseBody(n,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(n)},e.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._parseFunctionArgument=function(){var n=this.create(Zt),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(p.Colon))n.setIdentifier(i);else{if(this.accept(Hr))return n.setValue(i),this.finish(n);this.restoreAtMark(r)}return n.setValue(this._parseExpr(!0))?(this.accept(Hr),n.addChild(this._parsePrio()),this.finish(n)):n.setValue(this._tryParsePrio())?this.finish(n):null},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(B);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(B);for(this.consumeToken();n.addChild(this._parseListElement());)this.accept(p.Comma);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseListElement=function(){var n=this.create(pf),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(p.Colon)){if(n.setKey(r),!n.setValue(this._parseBinaryExpr()))return this.finish(n,S.ExpressionExpected)}else n.setValue(r);return this.finish(n)},e.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var n=this.create(Jp);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|with/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")&&!n.setIdentifier(this._parseIdent([te.Module]))&&!this.acceptDelim("*"))return this.finish(n,S.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseModuleConfigDeclaration=function(){var n=this.create(Xp);return n.setIdentifier(this._parseVariable())?!this.accept(p.Colon)||!n.setValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.accept(p.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(n,S.UnknownKeyword):this.finish(n):null},e.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var n=this.create(Yp);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|hide|show/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([te.Forward]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(n,S.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!n.addChild(this._parseForwardVisibility()))return this.finish(n,S.IdentifierOrVariableExpected)}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseForwardVisibility=function(){var n=this.create(Kp);for(n.setIdentifier(this._parseIdent());n.addChild(this._parseVariable()||this._parseIdent());)this.accept(p.Comma);return n.getChildren().length>1?n:null},e.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||t.prototype._parseSupportsCondition.call(this)},e}(hs),Rm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=Je(),Dm=function(t){Rm(e,t);function e(n,r){var i=t.call(this,"$",n,r)||this;return ah(e.scssModuleLoaders),ah(e.scssModuleBuiltIns),i}return e.prototype.isImportPathParent=function(n){return n===v.Forward||n===v.Use||t.prototype.isImportPathParent.call(this,n)},e.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===v.Forward||i===v.Use)for(var s=0,o=e.scssModuleBuiltIns;s0){var n=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};n.value+=` `,n.value+=e.references.map(function(r){return"[".concat(r.name,"](").concat(r.url,")")}).join(" | "),e.documentation=n}})}var Am=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lh=47,Mm=10,Nm=13,Lm=12,Ns=96,Ls=46,zm=p.CustomToken,zs=zm++,ch=function(t){Am(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){var r=this.escapedJavaScript();return r!==null?this.finishToken(n,r):this.stream.advanceIfChars([Ls,Ls,Ls])?this.finishToken(n,zs):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([lh,lh])?(this.stream.advanceWhileChar(function(n){switch(n){case Mm:case Nm:case Lm:return!1;default:return!0}}),!0):!1},e.prototype.escapedJavaScript=function(){var n=this.stream.peekChar();return n===Ns?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==Ns}),this.stream.advanceIfChar(Ns)?p.EscapedJavaScript:p.BadEscapedJavaScript):null},e}(zn),Im=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pm=function(t){Im(e,t);function e(){return t.call(this,new ch)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(p.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||t.prototype._parseStylesheetAtStatement.call(this,n):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var n=this.create(Ji);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.accept(p.Ident))return this.finish(n,S.IdentifierExpected,[p.SemiColon]);do if(!this.accept(p.Comma))break;while(this.accept(p.Ident));if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.SemiColon])}return!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral())?this.finish(n,S.URIOrStringExpected,[p.SemiColon]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n))},e.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var n=this.createNode(v.Plugin);return this.consumeToken(),n.addChild(this._parseStringLiteral())?this.accept(p.SemiColon)?this.finish(n):this.finish(n,S.SemiColonExpected):this.finish(n,S.StringLiteralExpected)},e.prototype._parseMediaQuery=function(){var n=t.prototype._parseMediaQuery.call(this);if(!n){var r=this.create(zl);return r.addChild(this._parseVariable())?this.finish(r):null}return n},e.prototype._parseMediaDeclaration=function(n){return n===void 0&&(n=!1),this._tryParseRuleset(n)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(n)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},e.prototype._parseVariableDeclaration=function(n){n===void 0&&(n=[]);var r=this.create(Fr),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(p.Colon)){if(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseDetachedRuleSet()))r.needsSemicolon=!1;else if(!r.setValue(this._parseExpr()))return this.finish(r,S.VariableValueExpected,[],n);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseDetachedRuleSet=function(){var n=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=this.create(On);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);if(!this.accept(p.ParenthesisR))return this.restoreAtMark(n),null}else return this.restoreAtMark(n),null;if(!this.peek(p.CurlyL))return null;var i=this.create(de);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},e.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._addLookupChildren=function(n){if(!n.addChild(this._parseLookupValue()))return!1;for(var r=!1;this.peek(p.BracketL)&&(r=!0),!!n.addChild(this._parseLookupValue());)r=!1;return!r},e.prototype._parseLookupValue=function(){var n=this.create(B),r=this.mark();return this.accept(p.BracketL)?(n.addChild(this._parseVariable(!1,!0))||n.addChild(this._parsePropertyIdentifier()))&&this.accept(p.BracketR)||this.accept(p.BracketR)?n:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},e.prototype._parseVariable=function(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=!n&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(p.AtKeyword))return null;for(var s=this.create(es),o=this.mark();this.acceptDelim("@")||!n&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(o),null;return!this.accept(p.AtKeyword)&&!this.accept(p.Ident)?(this.restoreAtMark(o),null):!r&&this.peek(p.BracketL)&&!this._addLookupChildren(s)?(this.restoreAtMark(o),null):s},e.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||t.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},e.prototype._parseEscaped=function(){if(this.peek(p.EscapedJavaScript)||this.peek(p.BadEscapedJavaScript)){var n=this.createNode(v.EscapedValue);return this.consumeToken(),this.finish(n)}if(this.peekDelim("~")){var n=this.createNode(v.EscapedValue);return this.consumeToken(),this.accept(p.String)||this.accept(p.EscapedJavaScript)?this.finish(n):this.finish(n,S.TermExpected)}return null},e.prototype._parseOperator=function(){var n=this._parseGuardOperator();return n||t.prototype._parseOperator.call(this)},e.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),n}else if(this.peekDelim("=")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("<"),n}else if(this.peekDelim("<")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),n}return null},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([te.Keyframe])||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||t.prototype._parseKeyframeSelector.call(this)},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelector=function(n){var r=this.create(In),i=!1;for(n&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var s=this.mark();if(r.addChild(this._parseGuard())&&this.peek(p.CurlyL))break;this.restoreAtMark(s),r.addChild(this._parseCombinator())}return i?this.finish(r):null},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var n=this.createNode(v.SelectorInterpolation),r=this._acceptInterpolatedIdent(n);return r?this.finish(n):null},e.prototype._parsePropertyIdentifier=function(n){n===void 0&&(n=!1);var r=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,r))return null;var i=this.mark(),s=this.create(Ue);s.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var o=!1;return n?s.isCustomProperty?o=s.addChild(this._parseIdent()):o=s.addChild(this._parseRegexp(r)):s.isCustomProperty?o=this._acceptInterpolatedIdent(s):o=this._acceptInterpolatedIdent(s,r),o?(!n&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(s)):(this.restoreAtMark(i),null)},e.prototype.peekInterpolatedIdent=function(){return this.peek(p.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},e.prototype._acceptInterpolatedIdent=function(n,r){for(var i=this,s=!1,o=function(){var l=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(l),null):i._parseInterpolation()},a=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(p.Ident)};(a()||n.addChild(this._parseInterpolation()||this.try(o)))&&(s=!0,!this.hasWhitespace()););return s},e.prototype._parseInterpolation=function(){var n=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(v.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.CurlyL)?(this.restoreAtMark(n),null):r.addChild(this._parseIdent())?this.accept(p.CurlyR)?this.finish(r):this.finish(r,S.RightCurlyExpected):this.finish(r,S.IdentifierExpected)}return null},e.prototype._tryParseMixinDeclaration=function(){var n=this.mark(),r=this.create(On);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);return this.accept(p.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(p.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(n),null)):(this.restoreAtMark(n),null)},e.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},e.prototype._parseMixinDeclarationIdentifier=function(){var n;if(this.peekDelim("#")||this.peekDelim(".")){if(n=this.create(Ue),this.consumeToken(),this.hasWhitespace()||!n.addChild(this._parseIdent()))return null}else if(this.peek(p.Hash))n=this.create(Ue),this.consumeToken();else return null;return n.referenceTypes=[te.Mixin],this.finish(n)},e.prototype._parsePseudo=function(){if(!this.peek(p.Colon))return null;var n=this.mark(),r=this.create(Wn);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(n),t.prototype._parsePseudo.call(this))},e.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var n=this.mark(),r=this.create(Wn);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(n),null):this._completeExtends(r)},e.prototype._completeExtends=function(n){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected);var r=n.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(p.AtKeyword))return null;var n=this.mark(),r=this.create(Rr);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(p.ParenthesisL))?(this.restoreAtMark(n),null):this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._tryParseMixinReference=function(n){n===void 0&&(n=!0);for(var r=this.mark(),i=this.create(Rr),s=this._parseMixinDeclarationIdentifier();s;){this.acceptDelim(">");var o=this._parseMixinDeclarationIdentifier();if(o)i.getNamespaces().addChild(s),s=o;else break}if(!i.setIdentifier(s))return this.restoreAtMark(r),null;var a=!1;if(this.accept(p.ParenthesisL)){if(a=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(i,S.RightParenthesisExpected);s.referenceTypes=[te.Mixin]}else s.referenceTypes=[te.Mixin,te.Rule];return this.peek(p.BracketL)?n||this._addLookupChildren(i):i.addChild(this._parsePrio()),!a&&!this.peek(p.SemiColon)&&!this.peek(p.CurlyR)&&!this.peek(p.EOF)?(this.restoreAtMark(r),null):this.finish(i)},e.prototype._parseMixinArgument=function(){var n=this.create(Zt),r=this.mark(),i=this._parseVariable();return i&&(this.accept(p.Colon)?n.setIdentifier(i):this.restoreAtMark(r)),n.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(n):(this.restoreAtMark(r),null)},e.prototype._parseMixinParameter=function(){var n=this.create(kr);if(this.peekKeyword("@rest")){var r=this.create(B);return this.consumeToken(),this.accept(zs)?(n.setIdentifier(this.finish(r)),this.finish(n)):this.finish(n,S.DotExpected,[],[p.Comma,p.ParenthesisR])}if(this.peek(zs)){var i=this.create(B);return this.consumeToken(),n.setIdentifier(this.finish(i)),this.finish(n)}var s=!1;return n.setIdentifier(this._parseVariable())&&(this.accept(p.Colon),s=!0),!n.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!s?null:this.finish(n)},e.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var n=this.create(ff);if(this.consumeToken(),n.isNegated=this.acceptIdent("not"),!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);for(;this.acceptIdent("and")||this.accept(p.Comma);)if(!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);return this.finish(n)},e.prototype._parseGuardCondition=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(mf);return this.consumeToken(),n.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseFunction=function(){var n=this.mark(),r=this.create(Pn);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,S.ExpressionExpected)}return this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var n=this.create(Ue);return n.referenceTypes=[te.Function],this.consumeToken(),this.finish(n)}return t.prototype._parseFunctionIdentifier.call(this)},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(B);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e}(hs),Tm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=Je(),Wm=function(t){Tm(e,t);function e(n,r){return t.call(this,"@",n,r)||this}return e.prototype.createFunctionProposals=function(n,r,i,s){for(var o=0,a=n;o 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:q("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:q("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:q("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:q("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:q("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:q("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:q("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:q("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:q("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:q("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],e.colorProposals=[{name:"argb",example:"argb(@color);",description:q("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:q("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:q("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:q("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:q("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:q("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:q("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:q("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:q("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:q("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:q("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:q("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:q("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:q("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:q("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:q("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:q("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:q("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:q("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:q("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:q("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:q("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:q("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:q("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:q("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:q("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:q("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],e}(bs);function Om(t,e){var n=Um(t);return Bm(n,e)}function Um(t){function e(d){return t.positionAt(d.offset).line}function n(d){return t.positionAt(d.offset+d.len).line}function r(){switch(t.languageId){case"scss":return new oh;case"less":return new ch;default:return new zn}}function i(d,f){var m=e(d),b=n(d);return m!==b?{startLine:m,endLine:b,kind:f}:null}var s=[],o=[],a=r();a.ignoreComment=!1,a.setSource(t.getText());for(var l=a.scan(),c=null,h=function(){switch(l.type){case p.CurlyL:case $r:{o.push({line:e(l),type:"brace",isStart:!0});break}case p.CurlyR:{if(o.length!==0){var d=hh(o,"brace");if(!d)break;var f=n(l);d.type==="brace"&&(c&&n(c)!==f&&f--,d.line!==f&&s.push({startLine:d.line,endLine:f,kind:void 0}))}break}case p.Comment:{var m=function(_){return _==="#region"?{line:e(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1}},b=function(_){var E=_.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(E)return m(E[1]);if(t.languageId==="scss"||t.languageId==="less"){var w=_.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(w)return m(w[1])}return null},g=b(l);if(g)if(g.isStart)o.push(g);else{var d=hh(o,"comment");if(!d)break;d.type==="comment"&&d.line!==g.line&&s.push({startLine:d.line,endLine:g.line,kind:"region"})}else{var y=i(l,"comment");y&&s.push(y)}break}}c=l,l=a.scan()};l.type!==p.EOF;)h();return s}function hh(t,e){if(t.length===0)return null;for(var n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function Bm(t,e){var n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort(function(o,a){var l=o.startLine-a.startLine;return l===0&&(l=o.endLine-a.endLine),l}),i=[],s=-1;return r.forEach(function(o){o.startLine=0;c--)if(this.__items[c].match(l))return!0;return!1},s.prototype.set_indent=function(l,c){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(l){this.__items.push(l);var c=l.lastIndexOf(` `);c!==-1?this.__character_count=l.length-c:this.__character_count+=l.length},s.prototype.pop=function(){var l=null;return this.is_empty()||(l=this.__items.pop(),this.__character_count-=l.length),l},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var l="";return this.is_empty()?this.__parent.indent_empty_lines&&(l=this.__parent.get_indent_string(this.__indent_count)):(l=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),l+=this.__items.join("")),l};function o(l,c){this.__cache=[""],this.__indent_size=l.indent_size,this.__indent_string=l.indent_char,l.indent_with_tabs||(this.__indent_string=new Array(l.indent_size+1).join(l.indent_char)),c=c||"",l.indent_level>0&&(c=new Array(l.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}o.prototype.get_indent_size=function(l,c){var h=this.__base_string_length;return c=c||0,l<0&&(h=0),h+=l*this.__indent_size,h+=c,h},o.prototype.get_indent_string=function(l,c){var h=this.__base_string;return c=c||0,l<0&&(l=0,h=""),c+=l*this.__indent_size,this.__ensure_cache(c),h+=this.__cache[c],h},o.prototype.__ensure_cache=function(l){for(;l>=this.__cache.length;)this.__add_column()},o.prototype.__add_column=function(){var l=this.__cache.length,c=0,h="";this.__indent_size&&l>=this.__indent_size&&(c=Math.floor(l/this.__indent_size),l-=c*this.__indent_size,h=new Array(c+1).join(this.__indent_string)),l&&(h+=new Array(l+1).join(" ")),this.__cache.push(h)};function a(l,c){this.__indent_cache=new o(l,c),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(l,c){return this.__indent_cache.get_indent_string(l,c)},a.prototype.get_indent_size=function(l,c){return this.__indent_cache.get_indent_size(l,c)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(l){return this.is_empty()||!l&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(l){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===` `&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(` `);return l!==` `&&(h=h.replace(/[\n]/g,l)),h},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(l,c){return l=l||0,c=c||0,this.next_line.set_indent(l,c),this.__lines.length>1?(this.current_line.set_indent(l,c),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(l){for(var c=0;c1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(l,c){for(var h=this.__lines.length-2;h>=0;){var d=this.__lines[h];if(d.is_empty())break;if(d.item(0).indexOf(l)!==0&&d.item(-1)!==c){this.__lines.splice(h+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},i.exports.Output=a},,,,function(i){function s(l,c){this.raw_options=o(l,c),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(l,c){var h=this.raw_options[l],d=c||[];return typeof h=="object"?h!==null&&typeof h.concat=="function"&&(d=h.concat()):typeof h=="string"&&(d=h.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(l,c){var h=this.raw_options[l],d=h===void 0?!!c:!!h;return d},s.prototype._get_characters=function(l,c){var h=this.raw_options[l],d=c||"";return typeof h=="string"&&(d=h.replace(/\\r/,"\r").replace(/\\n/,` `).replace(/\\t/," ")),d},s.prototype._get_number=function(l,c){var h=this.raw_options[l];c=parseInt(c,10),isNaN(c)&&(c=0);var d=parseInt(h,10);return isNaN(d)&&(d=c),d},s.prototype._get_selection=function(l,c,h){var d=this._get_selection_list(l,c,h);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+l+`' can only be one of the following values: `+c+` You passed in: '`+this.raw_options[l]+"'");return d[0]},s.prototype._get_selection_list=function(l,c,h){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[c[0]],!this._is_valid_selection(h,c))throw new Error("Invalid Default Value!");var d=this._get_array(l,h);if(!this._is_valid_selection(d,c))throw new Error("Invalid Option Value: The option '"+l+`' can contain only the following values: `+c+` You passed in: '`+this.raw_options[l]+"'");return d},s.prototype._is_valid_selection=function(l,c){return l.length&&c.length&&!l.some(function(h){return c.indexOf(h)===-1})};function o(l,c){var h={};l=a(l);var d;for(d in l)d!==c&&(h[d]=l[d]);if(c&&l[c])for(d in l[c])h[d]=l[c][d];return h}function a(l){var c={},h;for(h in l){var d=h.replace(/-/g,"_");c[d]=l[h]}return c}i.exports.Options=s,i.exports.normalizeOpts=a,i.exports.mergeOpts=o},,function(i){var s=RegExp.prototype.hasOwnProperty("sticky");function o(a){this.__input=a||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position=0&&a=0&&l=a.length&&this.__input.substring(l-a.length,l).toLowerCase()===a},i.exports.InputScanner=o},,,,,function(i){function s(o,a){o=typeof o=="string"?o:o.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(o+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(o+/\sbeautify\signore:end\s/.source+a,"g")}s.prototype.get_directives=function(o){if(!o.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var l=this.__directive_pattern.exec(o);l;)a[l[1]]=l[2],l=this.__directive_pattern.exec(o);return a},s.prototype.readIgnored=function(o){return o.readUntilAfter(this.__directives_end_ignore_pattern)},i.exports.Directives=s},,function(i,s,o){var a=o(16).Beautifier,l=o(17).Options;function c(h,d){var f=new a(h,d);return f.beautify()}i.exports=c,i.exports.defaultOptions=function(){return new l}},function(i,s,o){var a=o(17).Options,l=o(2).Output,c=o(8).InputScanner,h=o(13).Directives,d=new h(/\/\*/,/\*\//),f=/\r\n|[\r\n]/,m=/\r\n|[\r\n]/g,b=/\s/,g=/(?:\s|\n)+/g,y=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,_=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function E(w,C){this._source_text=w||"",this._options=new a(C),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}E.prototype.eatString=function(w){var C="";for(this._ch=this._input.next();this._ch;){if(C+=this._ch,this._ch==="\\")C+=this._input.next();else if(w.indexOf(this._ch)!==-1||this._ch===` `)break;this._ch=this._input.next()}return C},E.prototype.eatWhitespace=function(w){for(var C=b.test(this._input.peek()),R=0;b.test(this._input.peek());)this._ch=this._input.next(),w&&this._ch===` `&&(R===0||R0&&this._indentLevel--},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var w=this._source_text,C=this._options.eol;C==="auto"&&(C=` `,w&&f.test(w||"")&&(C=w.match(f)[0])),w=w.replace(m,` `);var R=w.match(/^[\t ]*/)[0];this._output=new l(this._options,R),this._input=new c(w),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var z=0,W=!1,T=!1,G=!1,se=!1,J=!1,A=this._ch,M,I,P;M=this._input.read(g),I=M!=="",P=A,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),A=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var O=this._input.read(y),k=d.get_directives(O);k&&k.ignore==="start"&&(O+=d.readIgnored(this._input)),this.print_string(O),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(_)),this.eatWhitespace(!0);else if(this._ch==="@")if(this.preserveSingleSpace(I),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var x=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);x.match(/[ :]$/)&&(x=this.eatString(": ").replace(/\s$/,""),this.print_string(x),this._output.space_before_token=!0),x=x.replace(/\s$/,""),x==="extend"?se=!0:x==="import"&&(J=!0),x in this.NESTED_AT_RULE?(this._nestedLevel+=1,x in this.CONDITIONAL_GROUP_RULE&&(G=!0)):!W&&z===0&&x.indexOf(":")!==-1&&(T=!0,this.indent())}else this._ch==="#"&&this._input.peek()==="{"?(this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"))):this._ch==="{"?(T&&(T=!1,this.outdent()),G?(G=!1,W=this._indentLevel>=this._nestedLevel):W=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&W&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):this._ch==="}"?(this.outdent(),this._output.add_new_line(),P==="{"&&this._output.trim(!0),J=!1,se=!1,T&&(this.outdent(),T=!1),this.print_string(this._ch),W=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0)):this._ch===":"?(W||G)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!se&&z===0?(this.print_string(":"),T||(T=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):this._ch==='"'||this._ch==="'"?(this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):this._ch===";"?z===0?(T&&(this.outdent(),T=!1),se=!1,J=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):this._ch==="("?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),z++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),z&&(z--,this.outdent()))):(this.preserveSingleSpace(I),this.print_string(this._ch),this.eatWhitespace(),z++,this.indent()):this._ch===")"?(z&&(z--,this.outdent()),this.print_string(this._ch)):this._ch===","?(this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&!T&&z===0&&!J&&!se?this._output.add_new_line():this._output.space_before_token=!0):(this._ch===">"||this._ch==="+"||this._ch==="~")&&!T&&z===0?this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&b.test(this._ch)&&(this._ch="")):this._ch==="]"?this.print_string(this._ch):this._ch==="["?(this.preserveSingleSpace(I),this.print_string(this._ch)):this._ch==="="?(this.eatWhitespace(),this.print_string("="),b.test(this._ch)&&(this._ch="")):this._ch==="!"&&!this._input.lookBack("\\")?(this.print_string(" "),this.print_string(this._ch)):(this.preserveSingleSpace(I),this.print_string(this._ch));var D=this._output.get_code(C);return D},i.exports.Beautifier=E},function(i,s,o){var a=o(6).Options;function l(c){a.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var h=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||h;var d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var f=0;f0&&fh(r,c-1);)c--;c===0||ph(r,c-1)?l=c:c0){var g=n.insertSpaces?Fl(" ",a*s):Fl(" ",s);b=b.split(` `).join(` `+g),e.start.character===0&&(b=g+b)}return[{range:e,newText:b}]}function dh(t){return t.replace(/^\s+/,"")}var jm=123,$m=125;function Hm(t,e){for(;e>=0;){var n=t.charCodeAt(e);if(n===jm)return!0;if(n===$m)return!1;e--}return!1}function ht(t,e,n){if(t&&t.hasOwnProperty(e)){var r=t[e];if(r!==null)return r}return n}function Gm(t,e,n){for(var r=e,i=0,s=n.tabSize||4;r && ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | | | ? ",relevance:62,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | | [ ? ]",relevance:85,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]",relevance:53,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | | ? [ | left | right ]",relevance:53,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | | ? ",relevance:72,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"