(function(){var ll={671:function(rt){var Q=rt.exports={},ye,Le;function kt(){throw new Error("setTimeout has not been defined")}function ft(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ye=setTimeout:ye=kt}catch(Z){ye=kt}try{typeof clearTimeout=="function"?Le=clearTimeout:Le=ft}catch(Z){Le=ft}})();function Ht(Z){if(ye===setTimeout)return setTimeout(Z,0);if((ye===kt||!ye)&&setTimeout)return ye=setTimeout,setTimeout(Z,0);try{return ye(Z,0)}catch(xe){try{return ye.call(null,Z,0)}catch(Oe){return ye.call(this,Z,0)}}}function Gi(Z){if(Le===clearTimeout)return clearTimeout(Z);if((Le===ft||!Le)&&clearTimeout)return Le=clearTimeout,clearTimeout(Z);try{return Le(Z)}catch(xe){try{return Le.call(null,Z)}catch(Oe){return Le.call(this,Z)}}}var $e=[],mt=!1,it,_t=-1;function Gt(){!mt||!it||(mt=!1,it.length?$e=it.concat($e):_t=-1,$e.length&&Sn())}function Sn(){if(!mt){var Z=Ht(Gt);mt=!0;for(var xe=$e.length;xe;){for(it=$e,$e=[];++_t1)for(var Oe=1;Oe{throw t.stack?new Error(t.message+` `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Q=new rt;function ye(e){Ht(e)||Q.onUnexpectedError(e)}function Le(e){Ht(e)||Q.onUnexpectedExternalError(e)}function kt(e){if(e instanceof Error){let{name:t,message:n}=e;const r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r}}return e}const ft="Canceled";function Ht(e){return e instanceof Error&&e.name===ft&&e.message===ft}function Gi(){const e=new Error(ft);return e.name=e.message,e}function $e(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function mt(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class it extends null{constructor(t){super("NotSupported"),t&&(this.message=t)}}function _t(e){const t=this;let n=!1,r;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}var Gt;(function(e){function t(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(v){yield v}e.single=i;function s(v){return v||n}e.from=s;function o(v){return!v||v[Symbol.iterator]().next().done===!0}e.isEmpty=o;function a(v){return v[Symbol.iterator]().next().value}e.first=a;function c(v,y){for(const k of v)if(y(k))return!0;return!1}e.some=c;function l(v,y){for(const k of v)if(y(k))return k}e.find=l;function*h(v,y){for(const k of v)y(k)&&(yield k)}e.filter=h;function*u(v,y){let k=0;for(const F of v)yield y(F,k++)}e.map=u;function*p(...v){for(const y of v)for(const k of y)yield k}e.concat=p;function*m(v){for(const y of v)for(const k of y)yield k}e.concatNested=m;function g(v,y,k){let F=k;for(const N of v)F=y(F,N);return F}e.reduce=g;function*x(v,y,k=v.length){for(y<0&&(y+=v.length),k<0?k+=v.length:k>v.length&&(k=v.length);yF===N){const F=v[Symbol.iterator](),N=y[Symbol.iterator]();for(;;){const T=F.next(),P=N.next();if(T.done!==P.done)return!1;if(T.done)return!0;if(!k(T.value,P.value))return!1}}e.equals=D})(Gt||(Gt={}));const Sn=!1;let pe=null;function We(e){pe=e}if(Sn){const e="__is_disposable_tracked__";We(new class{trackDisposable(t){const n=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==Cn.None)try{t[e]=!0}catch(r){}}markAsDisposed(t){if(t&&t!==Cn.None)try{t[e]=!0}catch(n){}}markAsSingleton(t){}})}function Z(e){return pe==null||pe.trackDisposable(e),e}function xe(e){pe==null||pe.markAsDisposed(e)}function Oe(e,t){pe==null||pe.setParent(e,t)}function cl(e,t){if(pe)for(const n of e)pe.setParent(n,t)}function _u(e){return pe==null||pe.markAsSingleton(e),e}class hl extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`),this.errors=t}}function Fu(e){return typeof e.dispose=="function"&&e.dispose.length===0}function Ji(e){if(Gt.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new hl(t);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function dl(...e){const t=Yi(()=>Ji(e));return cl(e,t),t}function Yi(e){const t=Z({dispose:_t(()=>{xe(t),e()})});return t}class Jt{constructor(){this._toDispose=new Set,this._isDisposed=!1,Z(this)}dispose(){this._isDisposed||(xe(this),this._isDisposed=!0,this.clear())}clear(){try{Ji(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Oe(t,this),this._isDisposed?Jt.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(t),t}}Jt.DISABLE_DISPOSED_WARNING=!1;class Cn{constructor(){this._store=new Jt,Z(this),Oe(this._store,this)}dispose(){xe(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}Cn.None=Object.freeze({dispose(){}});class Eu{constructor(){this._isDisposed=!1,Z(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var n;this._isDisposed||t===this._value||((n=this._value)===null||n===void 0||n.dispose(),t&&Oe(t,this),this._value=t)}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,xe(this),(t=this._value)===null||t===void 0||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&Oe(t,null),t}}class Du{constructor(t){this.object=t}dispose(){}}class Y{constructor(t){this.element=t,this.next=Y.Undefined,this.prev=Y.Undefined}}Y.Undefined=new Y(void 0);class Xi{constructor(){this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Y.Undefined}clear(){let t=this._first;for(;t!==Y.Undefined;){const n=t.next;t.prev=Y.Undefined,t.next=Y.Undefined,t=n}this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new Y(t);if(this._first===Y.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!==Y.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==Y.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==Y.Undefined&&t.next!==Y.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===Y.Undefined&&t.next===Y.Undefined?(this._first=Y.Undefined,this._last=Y.Undefined):t.next===Y.Undefined?(this._last=this._last.prev,this._last.next=Y.Undefined):t.prev===Y.Undefined&&(this._first=this._first.next,this._first.prev=Y.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==Y.Undefined;)yield t.element,t=t.next}}var Ki=pt(671),dr;const ur="en";let kn=!1,_n=!1,Fn=!1,ul=!1,pl=!1,fl=!1,ml=!1,En,pr=null,gl=null,gt;const he=typeof self=="object"?self:typeof pt.g=="object"?pt.g:{};let fe;typeof he.vscode!="undefined"&&typeof he.vscode.process!="undefined"?fe=he.vscode.process:typeof Ki!="undefined"&&(fe=Ki);const bl=typeof((dr=fe==null?void 0:fe.versions)===null||dr===void 0?void 0:dr.electron)=="string"&&fe.type==="renderer";if(typeof navigator=="object"&&!bl)gt=navigator.userAgent,kn=gt.indexOf("Windows")>=0,_n=gt.indexOf("Macintosh")>=0,ml=(gt.indexOf("Macintosh")>=0||gt.indexOf("iPad")>=0||gt.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Fn=gt.indexOf("Linux")>=0,fl=!0,En=navigator.language,pr=En;else if(typeof fe=="object"){kn=fe.platform==="win32",_n=fe.platform==="darwin",Fn=fe.platform==="linux",ul=Fn&&!!fe.env.SNAP&&!!fe.env.SNAP_REVISION,En=ur,pr=ur;const e=fe.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];En=t.locale,pr=n||ur,gl=t._translationsConfigFile}catch(t){}pl=!0}else console.error("Unable to resolve platform.");let fr=0;_n?fr=1:kn?fr=3:Fn&&(fr=2);const Yt=kn,vl=_n,Ru=null,Au=null,zu=null,Mu=null,Nu=null,Qi=function(){if(he.setImmediate)return he.setImmediate.bind(he);if(typeof he.postMessage=="function"&&!he.importScripts){let n=[];he.addEventListener("message",i=>{if(i.data&&i.data.vscodeSetImmediateId)for(let s=0,o=n.length;s{const s=++r;n.push({id:s,callback:i}),he.postMessage({vscodeSetImmediateId:s},"*")}}if(typeof(fe==null?void 0:fe.nextTick)=="function")return fe.nextTick.bind(fe);const t=Promise.resolve();return n=>t.then(n)}(),Pu=null;let Zi=!0,es=!1;function Iu(){if(!es){es=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2,Zi=new Uint16Array(e.buffer)[0]===513}return Zi}const yl=he.performance&&typeof he.performance.now=="function";class Dn{constructor(t){this._highResolution=yl&&t,this._startTime=this._now(),this._stopTime=-1}static create(t=!0){return new Dn(t)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?he.performance.now():Date.now()}}var Rn;(function(e){e.None=()=>Cn.None;function t(v){return(y,k=null,F)=>{let N=!1,T;return T=v(P=>{if(!N)return T?T.dispose():N=!0,y.call(k,P)},null,F),N&&T.dispose(),T}}e.once=t;function n(v,y){return c((k,F=null,N)=>v(T=>k.call(F,y(T)),null,N))}e.map=n;function r(v,y){return c((k,F=null,N)=>v(T=>{y(T),k.call(F,T)},null,N))}e.forEach=r;function i(v,y){return c((k,F=null,N)=>v(T=>y(T)&&k.call(F,T),null,N))}e.filter=i;function s(v){return v}e.signal=s;function o(...v){return(y,k=null,F)=>dl(...v.map(N=>N(T=>y.call(k,T),null,F)))}e.any=o;function a(v,y,k){let F=k;return n(v,N=>(F=y(F,N),F))}e.reduce=a;function c(v){let y;const k=new Ye({onFirstListenerAdd(){y=v(k.fire,k)},onLastListenerRemove(){y.dispose()}});return k.event}function l(v,y,k=100,F=!1,N){let T,P,B,se=0;const j=new Ye({leakWarningThreshold:N,onFirstListenerAdd(){T=v(W=>{se++,P=y(P,W),F&&!B&&(j.fire(P),P=void 0),clearTimeout(B),B=setTimeout(()=>{const ue=P;P=void 0,B=void 0,(!F||se>1)&&j.fire(ue),se=0},k)})},onLastListenerRemove(){T.dispose()}});return j.event}e.debounce=l;function h(v,y=(k,F)=>k===F){let k=!0,F;return i(v,N=>{const T=k||!y(N,F);return k=!1,F=N,T})}e.latch=h;function u(v,y){return[e.filter(v,y),e.filter(v,k=>!y(k))]}e.split=u;function p(v,y=!1,k=[]){let F=k.slice(),N=v(B=>{F?F.push(B):P.fire(B)});const T=()=>{F&&F.forEach(B=>P.fire(B)),F=null},P=new Ye({onFirstListenerAdd(){N||(N=v(B=>P.fire(B)))},onFirstListenerDidAdd(){F&&(y?setTimeout(T):T())},onLastListenerRemove(){N&&N.dispose(),N=null}});return P.event}e.buffer=p;class m{constructor(y){this.event=y}map(y){return new m(n(this.event,y))}forEach(y){return new m(r(this.event,y))}filter(y){return new m(i(this.event,y))}reduce(y,k){return new m(a(this.event,y,k))}latch(){return new m(h(this.event))}debounce(y,k=100,F=!1,N){return new m(l(this.event,y,k,F,N))}on(y,k,F){return this.event(y,k,F)}once(y,k,F){return t(this.event)(y,k,F)}}function g(v){return new m(v)}e.chain=g;function x(v,y,k=F=>F){const F=(...B)=>P.fire(k(...B)),N=()=>v.on(y,F),T=()=>v.removeListener(y,F),P=new Ye({onFirstListenerAdd:N,onLastListenerRemove:T});return P.event}e.fromNodeEventEmitter=x;function S(v,y,k=F=>F){const F=(...B)=>P.fire(k(...B)),N=()=>v.addEventListener(y,F),T=()=>v.removeEventListener(y,F),P=new Ye({onFirstListenerAdd:N,onLastListenerRemove:T});return P.event}e.fromDOMEventEmitter=S;function D(v){return new Promise(y=>t(v)(y))}e.toPromise=D})(Rn||(Rn={}));class An{constructor(t){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${t}_${An._idPool++}`}start(t){this._stopWatch=new Dn(!0),this._listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this._elapsedOverall+=t,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${t.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}An._idPool=0;let ts=-1;class wl{constructor(t,n=Math.random().toString(18).slice(2,5)){this.customThreshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(t){let n=ts;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||t{const s=this._stacks.get(r)||0;this._stacks.set(r,s-1)}}}class Ye{constructor(t){var n;this._disposed=!1,this._options=t,this._leakageMon=ts>0?new wl(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((n=this._options)===null||n===void 0)&&n._profName?new An(this._options._profName):void 0}get event(){return this._event||(this._event=(t,n,r)=>{var i;this._listeners||(this._listeners=new Xi);const s=this._listeners.isEmpty();s&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(n?[t,n]:t);s&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,t,n);const a=(i=this._leakageMon)===null||i===void 0?void 0:i.check(this._listeners.size),c=Yi(()=>{a&&a(),this._disposed||(o(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return r instanceof Jt?r.add(c):Array.isArray(r)&&r.push(c),c}),this._event}fire(t){var n,r;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Xi);for(let i of this._listeners)this._deliveryQueue.push([i,t]);for((n=this._perfMon)===null||n===void 0||n.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[i,s]=this._deliveryQueue.shift();try{typeof i=="function"?i.call(void 0,s):i[0].call(i[1],s)}catch(o){ye(o)}}(r=this._perfMon)===null||r===void 0||r.stop()}}dispose(){var t,n,r,i,s;this._disposed||(this._disposed=!0,(t=this._listeners)===null||t===void 0||t.clear(),(n=this._deliveryQueue)===null||n===void 0||n.clear(),(i=(r=this._options)===null||r===void 0?void 0:r.onLastListenerRemove)===null||i===void 0||i.call(r),(s=this._leakageMon)===null||s===void 0||s.dispose())}}class Tu extends null{constructor(t){super(t),this._isPaused=0,this._eventQueue=new LinkedList,this._mergeFn=t==null?void 0:t.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const t=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(t))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(t){this._listeners&&(this._isPaused!==0?this._eventQueue.push(t):super.fire(t))}}class Lu extends null{constructor(t){var n;super(t),this._delay=(n=t.delay)!==null&&n!==void 0?n:100}fire(t){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(t)}}class Wu{constructor(){this.buffers=[]}wrapEvent(t){return(n,r,i)=>t(s=>{const o=this.buffers[this.buffers.length-1];o?o.push(()=>n.call(r,s)):n.call(r,s)},void 0,i)}bufferEvents(t){const n=[];this.buffers.push(n);const r=t();return this.buffers.pop(),n.forEach(i=>i()),r}}class Ou{constructor(){this.listening=!1,this.inputEvent=Rn.None,this.inputEventListener=Disposable.None,this.emitter=new Ye({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(t){this.inputEvent=t,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=t(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}function Uu(e){return Array.isArray(e)}function xl(e){return typeof e=="string"}function Vu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Bu(e){return typeof e=="number"&&!isNaN(e)}function ju(e){return e===!0||e===!1}function Sl(e){return typeof e=="undefined"}function qu(e){return!mr(e)}function mr(e){return Sl(e)||e===null}function $u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function Hu(e){if(mr(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function Cl(e){return typeof e=="function"}function Gu(e,t){const n=Math.min(e.length,t.length);for(let r=0;rfunction(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)};let r={};for(const i of e)r[i]=n(i);return r}function Ju(e){return e===null?void 0:e}function Yu(e,t="Unreachable"){throw new Error(t)}function Xu(e){return!e||typeof e!="string"?!0:e.trim().length===0}const El=/{(\d+)}/g;function Ku(e,...t){return t.length===0?e:e.replace(El,function(n,r){const i=parseInt(r,10);return isNaN(i)||i<0||i>=t.length?n:t[i]})}function Qu(e){return e.replace(/[<>&]/g,function(t){switch(t){case"<":return"<";case">":return">";case"&":return"&";default:return t}})}function Dl(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Zu(e,t=" "){const n=Rl(e,t);return Al(n,t)}function Rl(e,t){if(!e||!t)return e;const n=t.length;if(n===0||e.length===0)return e;let r=0;for(;e.indexOf(t,r)===r;)r=r+n;return e.substring(r)}function Al(e,t){if(!e||!t)return e;const n=t.length,r=e.length;if(n===0||r===0)return e;let i=r,s=-1;for(;s=e.lastIndexOf(t,i-1),!(s===-1||s+n!==i);){if(s===0)return"";i=s}return e.substring(0,i)}function ep(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function tp(e){return e.replace(/\*/g,"")}function np(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=Dl(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e=e+"\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function rp(e){return e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$"?!1:!!(e.exec("")&&e.lastIndex===0)}function ip(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function zl(e){return e.split(/\r\n|\r|\n/)}function Ml(e){for(let t=0,n=e.length;t=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function op(e,t){return et?1:0}function Pl(e,t,n=0,r=e.length,i=0,s=t.length){for(;nl)return 1}const o=r-n,a=s-i;return oa?1:0}function ap(e,t){return br(e,t,0,e.length,0,t.length)}function br(e,t,n=0,r=e.length,i=0,s=t.length){for(;n=128||l>=128)return Pl(e.toLowerCase(),t.toLowerCase(),n,r,i,s);ns(c)&&(c-=32),ns(l)&&(l-=32);const h=c-l;if(h!==0)return h}const o=r-n,a=s-i;return oa?1:0}function ns(e){return e>=97&&e<=122}function rs(e){return e>=65&&e<=90}function lp(e,t){return e.length===t.length&&br(e,t)===0}function cp(e,t){const n=t.length;return t.length>e.length?!1:br(e,t,0,n)===0}function hp(e,t){let n,r=Math.min(e.length,t.length);for(n=0;n1){const r=e.charCodeAt(t-2);if(vr(r))return yr(r,n)}return n}function up(e,t){const n=Xe.getInstance(),r=t,i=e.length,s=is(e,i,t);t+=s>=65536?2:1;let o=n.getGraphemeBreakType(s);for(;t=65536?2:1,o=c}return t-r}function pp(e,t){const n=Xe.getInstance(),r=t,i=Ft(e,t);t-=i>=65536?2:1;let s=n.getGraphemeBreakType(i);for(;t>0;){const o=Ft(e,t),a=n.getGraphemeBreakType(o);if(ss(a,s))break;t-=o>=65536?2:1,s=a}return r-t}const Il=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function fp(e){return Il.test(e)}const Tl=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function mp(e){return Tl.test(e)}const Ll=/^[\t\n\r\x20-\x7E]*$/;function gp(e){return Ll.test(e)}const Wl=/[\u2028\u2029]/;function bp(e){return Wl.test(e)}function vp(e){for(let t=0,n=e.length;t=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Ul(e){return e>=127462&&e<=127487||e===8986||e===8987||e===9200||e===9203||e>=9728&&e<=10175||e===11088||e===11093||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129750}const yp="\uFEFF";function wp(e){return!!(e&&e.length>0&&e.charCodeAt(0)===65279)}function xp(e,t=!1){return e?(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e):!1}function Sp(e){return e=e%(2*26),e<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function Cp(e){return Xe.getInstance().getGraphemeBreakType(e)}function ss(e,t){return e===0?t!==5&&t!==7:e===2&&t===3?!1:e===4||e===2||e===3||t===4||t===2||t===3?!0:!(e===8&&(t===8||t===9||t===11||t===12)||(e===11||e===9)&&(t===9||t===10)||(e===12||e===10)&&t===10||t===5||t===13||t===7||e===1||e===13&&t===14||e===6&&t===6)}class Xe{constructor(){this._data=Vl()}static getInstance(){return Xe._INSTANCE||(Xe._INSTANCE=new Xe),Xe._INSTANCE}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;const n=this._data,r=n.length/3;let i=1;for(;i<=r;)if(tn[3*i+1])i=2*i+1;else return n[3*i+2];return 0}}Xe._INSTANCE=null;function Vl(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function kp(e,t){if(e===0)return 0;const n=Bl(e,t);if(n!==void 0)return n;const r=Ft(t,e);return e-=Mn(r),e}function Bl(e,t){let n=Ft(t,e);for(e-=Mn(n);jl(n)||n===65039||n===8419;){if(e===0)return;n=Ft(t,e),e-=Mn(n)}if(Ul(n)){if(e>=0){const r=Ft(t,e);r===8205&&(e-=Mn(r))}return e}}function Mn(e){return e>=65536?2:1}function jl(e){return 127995<=e&&e<=127999}const os="$initialize";let as=!1;function _p(e){isWeb&&(as||(as=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class ql{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.method=r,this.args=i,this.type=0}}class ls{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class $l{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class Hl{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class Gl{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class cs{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new ql(this._workerId,r,t,n))})}listen(t,n){let r=null;const i=new Ye({onFirstListenerAdd:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new $l(this._workerId,r,t,n))},onLastListenerRemove:()=>{this._pendingEmitters.delete(r),this._send(new Gl(this._workerId,r)),r=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){let n=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new ls(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=kt(i.detail)),this._send(new ls(this._workerId,n,void 0,kt(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new Hl(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){let n=[];if(t.type===0)for(let r=0;r{this._protocol.handleMessage(l)},l=>{i&&i(l)})),this._protocol=new cs({sendMessage:(l,h)=>{this._worker.postMessage(l,h)},handleMessage:(l,h)=>{if(typeof r[l]!="function")return Promise.reject(new Error("Missing method "+l+" on main thread host."));try{return Promise.resolve(r[l].apply(r,h))}catch(u){return Promise.reject(u)}},handleEvent:(l,h)=>{if(xr(l)){const u=r[l].call(r,h);if(typeof u!="function")throw new Error(`Missing dynamic event ${l} on main thread host.`);return u}if(wr(l)){const u=r[l];if(typeof u!="function")throw new Error(`Missing event ${l} on main thread host.`);return u}throw new Error(`Malformed event name ${l}`)}}),this._protocol.setWorkerId(this._worker.getId());let s=null;typeof globals.require!="undefined"&&typeof globals.require.getConfig=="function"?s=globals.require.getConfig():typeof globals.requirejs!="undefined"&&(s=globals.requirejs.s.contexts._.config);const o=types.getAllMethodNames(r);this._onModuleLoaded=this._protocol.sendMessage(os,[this._worker.getId(),JSON.parse(JSON.stringify(s)),n,o]);const a=(l,h)=>this._request(l,h),c=(l,h)=>this._protocol.listen(l,h);this._lazyProxy=new Promise((l,h)=>{i=h,this._onModuleLoaded.then(u=>{l(hs(u,a,c))},u=>{h(u),this._onError("Worker failed to load "+n,u)})})}getProxyObject(){return this._lazyProxy}_request(t,n){return new Promise((r,i)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(t,n).then(r,i)},i)})}_onError(t,n){console.error(t),console.info(n)}}function wr(e){return e[0]==="o"&&e[1]==="n"&&rs(e.charCodeAt(2))}function xr(e){return/^onDynamic/.test(e)&&rs(e.charCodeAt(9))}function hs(e,t,n){const r=o=>function(){const a=Array.prototype.slice.call(arguments,0);return t(o,a)},i=o=>function(a){return n(o,a)};let s={};for(const o of e){if(xr(o)){s[o]=i(o);continue}if(wr(o)){s[o]=n(o,void 0);continue}s[o]=r(o)}return s}class ds{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new cs({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===os)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(xr(t)){const r=this._requestHandler[t].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return r}if(wr(t)){const r=this._requestHandler[t];if(typeof r!="function")throw new Error(`Missing event ${t} on request handler.`);return r}throw new Error(`Malformed event name ${t}`)}initialize(t,n,r,i){this._protocol.setWorkerId(t);const a=hs(i,(c,l)=>this._protocol.sendMessage(c,l),(c,l)=>this._protocol.listen(c,l));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(a),Promise.resolve(gr(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&typeof n.paths.vs!="undefined"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,he.require.config(n)),new Promise((c,l)=>{const h=he.require;h([r],u=>{if(this._requestHandler=u.create(a),!this._requestHandler){l(new Error("No RequestHandler!"));return}c(gr(this._requestHandler))},l)}))}}function Ep(e){return new ds(e,null)}class st{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Dp(e){return Sr(e,0)}function Sr(e,t){switch(typeof e){case"object":return e===null?Ke(349,t):Array.isArray(e)?Yl(e,t):Xl(e,t);case"string":return Cr(e,t);case"boolean":return Jl(e,t);case"number":return Ke(e,t);case"undefined":return Ke(937,t);default:return Ke(617,t)}}function Ke(e,t){return(t<<5)-t+e|0}function Jl(e,t){return Ke(e?433:863,t)}function Cr(e,t){t=Ke(149417,t);for(let n=0,r=e.length;nSr(r,n),t)}function Xl(e,t){return t=Ke(181387,t),Object.keys(e).sort().reduce((n,r)=>(n=Cr(r,n),Sr(e[r],n)),t)}function kr(e,t,n=32){const r=n-t,i=~((1<>>r)>>>0}function us(e,t=0,n=e.byteLength,r=0){for(let i=0;in.toString(16).padStart(2,"0")).join(""):Kl((e>>>0).toString(16),t/4)}class _r{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(t){const n=t.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=t.charCodeAt(0),a=0);;){let c=o;if(vr(o))if(a+1>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[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()),Xt(this._h0)+Xt(this._h1)+Xt(this._h2)+Xt(this._h3)+Xt(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,us(this._buff,this._buffLen),this._buffLen>56&&(this._step(),us(this._buff));const t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){const t=_r._bigBlock32,n=this._buffDV;for(let u=0;u<64;u+=4)t.setUint32(u,n.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)t.setUint32(u,kr(t.getUint32(u-12,!1)^t.getUint32(u-32,!1)^t.getUint32(u-56,!1)^t.getUint32(u-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,o=this._h3,a=this._h4,c,l,h;for(let u=0;u<80;u++)u<20?(c=i&s|~i&o,l=1518500249):u<40?(c=i^s^o,l=1859775393):u<60?(c=i&s|i&o|s&o,l=2400959708):(c=i^s^o,l=3395469782),h=kr(r,5)+c+a+l+t.getUint32(u*4,!1)&4294967295,a=o,o=s,s=kr(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}}_r._bigBlock32=new DataView(new ArrayBuffer(320));class ps{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r0||this.m_modifiedCount>0)&&this.m_changes.push(new st(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(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),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 ot{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,o]=ot._getElements(t),[a,c,l]=ot._getElements(n);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=a,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(ot._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let u;return r<=i?(Et.Assert(t===n+1,"originalStart should only be one more than originalEnd"),u=[new st(t,0,r,i-r+1)]):t<=n?(Et.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new st(t,n-t+1,r,0)]):(Et.Assert(t===n+1,"originalStart should only be one more than originalEnd"),Et.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const o=[0],a=[0],c=this.ComputeRecursionPoint(t,n,r,i,o,a,s),l=o[0],h=a[0];if(c!==null)return c;if(!s[0]){const u=this.ComputeDiffRecursive(t,l,r,h,s);let p=[];return s[0]?p=[new st(l+1,n-(l+1)+1,h+1,i-(h+1)+1)]:p=this.ComputeDiffRecursive(l+1,n,h+1,i,s),this.ConcatenateChanges(u,p)}return[new st(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,o,a,c,l,h,u,p,m,g,x,S,D,v){let y=null,k=null,F=new fs,N=n,T=r,P=m[0]-S[0]-i,B=-1073741824,se=this.m_forwardHistory.length-1;do{const j=P+t;j===N||j=0&&(l=this.m_forwardHistory[se],t=l[0],N=1,T=l.length-1)}while(--se>=-1);if(y=F.getReverseChanges(),v[0]){let j=m[0]+1,W=S[0]+1;if(y!==null&&y.length>0){const ue=y[y.length-1];j=Math.max(j,ue.getOriginalEnd()),W=Math.max(W,ue.getModifiedEnd())}k=[new st(j,p-j+1,W,x-W+1)]}else{F=new fs,N=o,T=a,P=m[0]-S[0]-c,B=1073741824,se=D?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const j=P+s;j===N||j=h[j+1]?(u=h[j+1]-1,g=u-P-c,u>B&&F.MarkNextChange(),B=u+1,F.AddOriginalElement(u+1,g+1),P=j+1-s):(u=h[j-1],g=u-P-c,u>B&&F.MarkNextChange(),B=u,F.AddModifiedElement(u+1,g+1),P=j-1-s),se>=0&&(h=this.m_reverseHistory[se],s=h[0],N=1,T=h.length-1)}while(--se>=-1);k=F.getChanges()}return this.ConcatenateChanges(y,k)}ComputeRecursionPoint(t,n,r,i,s,o,a){let c=0,l=0,h=0,u=0,p=0,m=0;t--,r--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-t+(i-r),x=g+1,S=new Int32Array(x),D=new Int32Array(x),v=i-r,y=n-t,k=t-r,F=n-i,T=(y-v)%2===0;S[v]=t,D[y]=n,a[0]=!1;for(let P=1;P<=g/2+1;P++){let B=0,se=0;h=this.ClipDiagonalBound(v-P,P,v,x),u=this.ClipDiagonalBound(v+P,P,v,x);for(let W=h;W<=u;W+=2){W===h||WB+se&&(B=c,se=l),!T&&Math.abs(W-y)<=P-1&&c>=D[W])return s[0]=c,o[0]=l,ue<=D[W]&&P<=1448?this.WALKTRACE(v,h,u,k,y,p,m,F,S,D,c,n,s,l,i,o,T,a):null}const j=(B-t+(se-r)-P)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(B,j))return a[0]=!0,s[0]=B,o[0]=se,j>0&&P<=1448?this.WALKTRACE(v,h,u,k,y,p,m,F,S,D,c,n,s,l,i,o,T,a):(t++,r++,[new st(t,n-t+1,r,i-r+1)]);p=this.ClipDiagonalBound(y-P,P,y,x),m=this.ClipDiagonalBound(y+P,P,y,x);for(let W=p;W<=m;W+=2){W===p||W=D[W+1]?c=D[W+1]-1:c=D[W-1],l=c-(W-y)-F;const ue=c;for(;c>t&&l>r&&this.ElementsAreEqual(c,l);)c--,l--;if(D[W]=c,T&&Math.abs(W-v)<=P&&c<=S[W])return s[0]=c,o[0]=l,ue>=S[W]&&P<=1448?this.WALKTRACE(v,h,u,k,y,p,m,F,S,D,c,n,s,l,i,o,T,a):null}if(P<=1447){let W=new Int32Array(u-h+2);W[0]=v-h+1,Dt.Copy2(S,h,W,1,u-h+1),this.m_forwardHistory.push(W),W=new Int32Array(m-p+2),W[0]=y-p+1,Dt.Copy2(D,p,W,1,m-p+1),this.m_reverseHistory.push(W)}}return this.WALKTRACE(v,h,u,k,y,p,m,F,S,D,c,n,s,l,i,o,T,a)}PrettifyChanges(t){for(let n=0;n0,a=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;n--){const r=t[n];let i=0,s=0;if(n>0){const u=t[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const o=r.originalLength>0,a=r.modifiedLength>0;let c=0,l=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const p=r.originalStart-u,m=r.modifiedStart-u;if(pl&&(l=x,c=u)}r.originalStart-=c,r.modifiedStart-=c;const h=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],h)){t[n-1]=h[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n0&&m>c&&(c=m,l=u,h=p)}return c>0?[l,h]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){const s=this._OriginalRegionIsBoundary(t,n)?1:0,o=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+o}ConcatenateChanges(t,n){let r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const i=new Array(t.length+n.length-1);return Dt.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],Dt.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return Dt.Copy(t,0,i,0,t.length),Dt.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(Et.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Et.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const i=t.originalStart;let s=t.originalLength;const o=t.modifiedStart;let a=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(a=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new st(i,s,o,a),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t=Zl&&e<=tc||e>=ec&&e<=nc}function Nn(e,t,n,r){let i="",s=0,o=-1,a=0,c=0;for(let l=0;l<=e.length;++l){if(l2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),o=l,a=0;continue}else if(i.length!==0){i="",s=0,o=l,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),s=l-o-1;o=l,a=0}else c===at&&a!==-1?++a:a=-1}return i}function gs(e,t){if(t===null||typeof t!="object")throw new ms("pathObject","Object",t);const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const Se={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],ie(s,"path"),s.length===0)continue}else t.length===0?s=Fr():(s={NODE_ENV:"production",PUBLIC_PATH:"/react/build/"}[`=${t}`]||Fr(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===ke)&&(s=`${t}\\`));const o=s.length;let a=0,c="",l=!1;const h=s.charCodeAt(0);if(o===1)U(h)&&(a=1,l=!0);else if(U(h))if(l=!0,U(s.charCodeAt(1))){let u=2,p=u;for(;u2&&U(s.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${s.slice(a)}\\${n}`,r=l,l&&t.length>0)break}return n=Nn(n,!r,"\\",U),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){ie(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const s=e.charCodeAt(0);if(t===1)return Er(s)?"\\":e;if(U(s))if(i=!0,U(e.charCodeAt(1))){let a=2,c=a;for(;a2&&U(e.charCodeAt(2))&&(i=!0,n=3));let o=n0&&U(e.charCodeAt(t-1))&&(o+="\\"),r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){ie(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return U(n)||t>2&&ct(n)&&e.charCodeAt(1)===lt&&U(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s0&&(t===void 0?t=n=o:t+=`\\${o}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&U(n.charCodeAt(0))){++i;const s=n.length;s>1&&U(n.charCodeAt(1))&&(++i,s>2&&(U(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t=`\\${t.slice(i)}`)}return Se.normalize(t)},relative(e,t){if(ie(e,"from"),ie(t,"to"),e===t)return"";const n=Se.resolve(e),r=Se.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;ii&&e.charCodeAt(s-1)===ke;)s--;const o=s-i;let a=0;for(;aa&&t.charCodeAt(c-1)===ke;)c--;const l=c-a,h=oh){if(t.charCodeAt(a+p)===ke)return r.slice(a+p+1);if(p===2)return r.slice(a+p)}o>h&&(e.charCodeAt(i+p)===ke?u=p:p===2&&(u=3)),u===-1&&(u=0)}let m="";for(p=i+u+1;p<=s;++p)(p===s||e.charCodeAt(p)===ke)&&(m+=m.length===0?"..":"\\..");return a+=u,m.length>0?`${m}${r.slice(a,c)}`:(r.charCodeAt(a)===ke&&++a,r.slice(a,c))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const t=Se.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===ke){if(t.charCodeAt(1)===ke){const n=t.charCodeAt(2);if(n!==rc&&n!==at)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(ct(t.charCodeAt(0))&&t.charCodeAt(1)===lt&&t.charCodeAt(2)===ke)return`\\\\?\\${t}`;return e},dirname(e){ie(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return U(i)?e:".";if(U(i)){if(n=r=1,U(e.charCodeAt(1))){let a=2,c=a;for(;a2&&U(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let a=t-1;a>=r;--a)if(U(e.charCodeAt(a))){if(!o){s=a;break}}else o=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&ie(t,"ext"),ie(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&ct(e.charCodeAt(0))&&e.charCodeAt(1)===lt&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(s=e.length-1;s>=n;--s){const c=e.charCodeAt(s);if(U(c)){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(U(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){ie(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===lt&&ct(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const c=e.charCodeAt(a);if(U(c)){if(!s){r=a+1;break}continue}i===-1&&(s=!1,i=a+1),c===at?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?"":e.slice(n,i)},format:gs.bind(null,"\\"),parse(e){ie(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return U(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(U(i)){if(r=1,U(e.charCodeAt(1))){let u=2,p=u;for(;u0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,c=!0,l=e.length-1,h=0;for(;l>=r;--l){if(i=e.charCodeAt(l),U(i)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),i===at?s===-1?s=l:h!==1&&(h=1):s!==-1&&(h=-1)}return a!==-1&&(s===-1||h===0||h===1&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),o>0&&o!==r?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_e={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:Fr();ie(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===me)}return t=Nn(t,!n,"/",Er),n?`/${t}`:t.length>0?t:"."},normalize(e){if(ie(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===me,n=e.charCodeAt(e.length-1)===me;return e=Nn(e,!t,"/",Er),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return ie(e,"path"),e.length>0&&e.charCodeAt(0)===me},join(...e){if(e.length===0)return".";let t;for(let n=0;n0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":_e.normalize(t)},relative(e,t){if(ie(e,"from"),ie(t,"to"),e===t||(e=_e.resolve(e),t=_e.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,o=t.length-s,a=ia){if(t.charCodeAt(s+l)===me)return t.slice(s+l+1);if(l===0)return t.slice(s+l)}else i>a&&(e.charCodeAt(n+l)===me?c=l:l===0&&(c=0));let h="";for(l=n+c+1;l<=r;++l)(l===r||e.charCodeAt(l)===me)&&(h+=h.length===0?"..":"/..");return`${h}${t.slice(s+c)}`},toNamespacedPath(e){return e},dirname(e){if(ie(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===me;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===me){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&ie(t,"ext"),ie(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(s=e.length-1;s>=0;--s){const c=e.charCodeAt(s);if(c===me){if(!i){n=s+1;break}}else a===-1&&(i=!1,a=s+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=s):(o=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===me){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){ie(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a===me){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),a===at?t===-1?t=o:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:gs.bind(null,"/"),parse(e){ie(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===me;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,c=e.length-1,l=0;for(;c>=r;--c){const h=e.charCodeAt(c);if(h===me){if(!a){s=c+1;break}continue}o===-1&&(a=!1,o=c+1),h===at?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){const h=s===0&&n?1:s;i===-1||l===0||l===1&&i===o-1&&i===s+1?t.base=t.name=e.slice(h,o):(t.name=e.slice(h,i),t.base=e.slice(h,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};_e.win32=Se.win32=Se,_e.posix=Se.posix=_e;const Ap=bt==="win32"?Se.normalize:_e.normalize,zp=bt==="win32"?Se.resolve:_e.resolve,Mp=bt==="win32"?Se.relative:_e.relative,Np=bt==="win32"?Se.dirname:_e.dirname,Pp=bt==="win32"?Se.basename:_e.basename,Ip=bt==="win32"?Se.extname:_e.extname,Tp=bt==="win32"?Se.sep:_e.sep,ic=/^\w[\w\d+.-]*$/,sc=/^\//,oc=/^\/\//;function bs(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ic.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!sc.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(oc.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function ac(e,t){return!e&&!t?"file":e}function lc(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Ue&&(t=Ue+t):t=Ue;break}return t}const ee="",Ue="/",cc=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class vt{constructor(t,n,r,i,s,o=!1){typeof t=="object"?(this.scheme=t.scheme||ee,this.authority=t.authority||ee,this.path=t.path||ee,this.query=t.query||ee,this.fragment=t.fragment||ee):(this.scheme=ac(t,o),this.authority=n||ee,this.path=lc(this.scheme,r||ee),this.query=i||ee,this.fragment=s||ee,bs(this,o))}static isUri(t){return t instanceof vt?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}get fsPath(){return Dr(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:o}=t;return n===void 0?n=this.scheme:n===null&&(n=ee),r===void 0?r=this.authority:r===null&&(r=ee),i===void 0?i=this.path:i===null&&(i=ee),s===void 0?s=this.query:s===null&&(s=ee),o===void 0?o=this.fragment:o===null&&(o=ee),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&o===this.fragment?this:new At(n,r,i,s,o)}static parse(t,n=!1){const r=cc.exec(t);return r?new At(r[2]||ee,Pn(r[4]||ee),Pn(r[5]||ee),Pn(r[7]||ee),Pn(r[9]||ee),n):new At(ee,ee,ee,ee,ee)}static file(t){let n=ee;if(Yt&&(t=t.replace(/\\/g,Ue)),t[0]===Ue&&t[1]===Ue){const r=t.indexOf(Ue,2);r===-1?(n=t.substring(2),t=Ue):(n=t.substring(2,r),t=t.substring(r)||Ue)}return new At("file",n,t,ee,ee)}static from(t){const n=new At(t.scheme,t.authority,t.path,t.query,t.fragment);return bs(n,!0),n}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Yt&&t.scheme==="file"?r=vt.file(Se.join(Dr(t,!0),...n)).path:r=_e.join(t.path,...n),t.with({path:r})}toString(t=!1){return Rr(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof vt)return t;{const n=new At(t);return n._formatted=t.external,n._fsPath=t._sep===vs?t.fsPath:null,n}}else return t}}const vs=Yt?1:void 0;class At extends vt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Dr(this,!1)),this._fsPath}toString(t=!1){return t?Rr(this,!0):(this._formatted||(this._formatted=Rr(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=vs),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const ys={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 ws(e,t){let n,r=-1;for(let i=0;i=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===45||s===46||s===95||s===126||t&&s===47)r!==-1&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n!==void 0&&(n+=e.charAt(i));else{n===void 0&&(n=e.substr(0,i));const o=ys[s];o!==void 0?(r!==-1&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=o):r===-1&&(r=i)}}return r!==-1&&(n+=encodeURIComponent(e.substring(r))),n!==void 0?n:e}function hc(e){let t;for(let n=0;n1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Yt&&(n=n.replace(/\//g,"\\")),n}function Rr(e,t){const n=t?hc:ws;let r="",{scheme:i,authority:s,path:o,query:a,fragment:c}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Ue,r+=Ue),s){let l=s.indexOf("@");if(l!==-1){const h=s.substr(0,l);s=s.substr(l+1),l=h.indexOf(":"),l===-1?r+=n(h,!1):(r+=n(h.substr(0,l),!1),r+=":",r+=n(h.substr(l+1),!1)),r+="@"}s=s.toLowerCase(),l=s.indexOf(":"),l===-1?r+=n(s,!1):(r+=n(s.substr(0,l),!1),r+=s.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}r+=n(o,!0)}return a&&(r+="?",r+=n(a,!1)),c&&(r+="#",r+=t?c:ws(c,!1)),r}function xs(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+xs(e.substr(3)):e}}const Ss=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Pn(e){return e.match(Ss)?e.replace(Ss,t=>xs(t)):e}class Fe{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new Fe(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return Fe.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return Fe.isBefore(this,t)}static isBefore(t,n){return t.lineNumberr||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return te.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return te.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.columnt.endColumn)}containsRange(t){return te.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumnt.endColumn)}strictContainsRange(t){return te.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return te.plusRange(this,t)}static plusRange(t,n){let r,i,s,o;return n.startLineNumbert.endLineNumber?(s=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,o=t.endColumn),new te(r,i,s,o)}intersectRanges(t){return te.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,o=t.endColumn,a=n.startLineNumber,c=n.startColumn,l=n.endLineNumber,h=n.endColumn;return rl?(s=l,o=h):s===l&&(o=Math.min(o,h)),r>s||r===s&&i>o?null:new te(r,i,s,o)}equalsRange(t){return te.equalsRange(this,t)}static equalsRange(t,n){return!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return te.getEndPosition(this)}static getEndPosition(t){return new Fe(t.endLineNumber,t.endColumn)}getStartPosition(){return te.getStartPosition(this)}static getStartPosition(t){return new Fe(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new te(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new te(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return te.collapseToStart(this)}static collapseToStart(t){return new te(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}static fromPositions(t,n=t){return new te(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new te(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumbert.startLineNumber}}const dc=3;function Cs(e,t,n,r){return new ot(e,t,n).ComputeDiff(r)}class ks{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const m=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);let x=Cs(m,g,s,!0).changes;a&&(x=pc(x)),p=[];for(let S=0,D=x.length;S1&&x>1;){const S=p.charCodeAt(g-2),D=m.charCodeAt(x-2);if(S!==D)break;g--,x--}(g>1||x>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,o+1,1,x)}{let g=zr(p,1),x=zr(m,1);const S=p.length+1,D=m.length+1;for(;g!0;const t=Date.now();return()=>Date.now()-t255?255:e|0}function zt(e){return e<0?0:e>4294967295?4294967295:e|0}class mc{constructor(t,n){this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class gc{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=zt(t);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,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(t,n){return t=zt(t),n=zt(n),this.values[t]===n?!1:(this.values[t]=n,t-1=r.length)return!1;let s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-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(t){return t<0?0:(t=zt(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),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],t=s)n=i+1;else break;return new mc(i,t-o)}}class bc{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Fe(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i/?";function yc(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of vc)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const wc=yc();function xc(e){let t=wc;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Sc={maxLen:1e3,windowSize:15,timeBudget:150};function Es(e,t,n,r,i=Sc){if(n.length>i.maxLen){let l=e-i.maxLen/2;return l<0?l=0:r+=l,n=n.substring(l,e+i.maxLen/2),Es(e,t,n,r,i)}const s=Date.now(),o=e-1-r;let a=-1,c=null;for(let l=1;!(Date.now()-s>=i.timeBudget);l++){const h=o-i.windowSize*l;t.lastIndex=Math.max(0,h);const u=Cc(t,n,o,a);if(!u&&c||(c=u,h<=0))break;a=h}if(c){let l={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return t.lastIndex=0,l}return null}function Cc(e,t,n,r){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class In{constructor(t){let n=Fs(t);this._defaultValue=n,this._asciiMap=In._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){let n=new Uint8Array(256);for(let r=0;r<256;r++)n[r]=t;return n}set(t,n){let r=Fs(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}}class Lp{constructor(){this._actual=new In(0)}add(t){this._actual.set(t,1)}has(t){return this._actual.get(t)===1}}class kc{constructor(t,n,r){const i=new Uint8Array(t*n);for(let s=0,o=t*n;sn&&(n=c),a>r&&(r=a),l>r&&(r=l)}n++,r++;let i=new kc(r,n,0);for(let s=0,o=t.length;s=this._maxCharCode?0:this._states.get(t,n)}}let Mr=null;function Fc(){return Mr===null&&(Mr=new _c([[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]])),Mr}let en=null;function Ec(){if(en===null){en=new In(0);const e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let n=0;ni);if(i>0){const a=n.charCodeAt(i-1),c=n.charCodeAt(o);(a===40&&c===41||a===91&&c===93||a===123&&c===125)&&o--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:o+2},url:n.substring(i,o+1)}}static computeLinks(t,n=Fc()){const r=Ec();let i=[];for(let s=1,o=t.getLineCount();s<=o;s++){const a=t.getLineContent(s),c=a.length;let l=0,h=0,u=0,p=1,m=!1,g=!1,x=!1,S=!1;for(;l=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}}Nr.INSTANCE=new Nr;const Ds=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Ln;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Wn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Rn.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ds})})(Ln||(Ln={}));class Wn{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?Ds:(this._emitter||(this._emitter=new Ye),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Rc{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Wn),this._token}cancel(){this._token?this._token instanceof Wn&&this._token.cancel():this._token=Ln.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Wn&&this._token.dispose():this._token=Ln.None}}class Pr{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const On=new Pr,Ir=new Pr,Tr=new Pr,Ac=new Array(230),zc={},Mc=[],Nc=Object.create(null),Pc=Object.create(null),Rs=[],Lr=[];for(let e=0;e<=193;e++)Rs[e]=-1;for(let e=0;e<=126;e++)Lr[e]=-1;(function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let n=[],r=[];for(const i of t){const[s,o,a,c,l,h,u,p,m,g]=i;if(r[a]||(r[a]=!0,Mc[a]=c,Nc[c]=a,Pc[c.toLowerCase()]=a,o&&(Rs[a]=l,l!==0&&l!==3&&l!==5&&l!==4&&l!==6&&l!==57&&(Lr[l]=a))),!n[l]){if(n[l]=!0,!h)throw new Error(`String representation missing for key code ${l} around scan code ${c}`);On.define(l,h),Ir.define(l,m||h),Tr.define(l,g||m||h)}u&&(Ac[u]=l),p&&(zc[p]=l)}Lr[3]=46})();var As;(function(e){function t(a){return On.keyCodeToStr(a)}e.toString=t;function n(a){return On.strToKeyCode(a)}e.fromString=n;function r(a){return Ir.keyCodeToStr(a)}e.toUserSettingsUS=r;function i(a){return Tr.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function s(a){return Ir.strToKeyCode(a)||Tr.strToKeyCode(a)}e.fromUserSettings=s;function o(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return On.keyCodeToStr(a)}e.toElectronAccelerator=o})(As||(As={}));function Ic(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class Ve extends te{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return Ve.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new Ve(this.startLineNumber,this.startColumn,t,n):new Ve(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Fe(this.positionLineNumber,this.positionColumn)}setStartPosition(t,n){return this.getDirection()===0?new Ve(t,n,this.endLineNumber,this.endColumn):new Ve(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new Ve(t.lineNumber,t.column,n.lineNumber,n.column)}static liftSelection(t){return new Ve(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;rthis._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{let 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}:t}}class yt{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new Wc(vt.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}computeDiff(t,n,r,i){return Mt(this,void 0,void 0,function*(){const s=this._getModel(t),o=this._getModel(n);if(!s||!o)return null;const a=s.getLinesContent(),c=o.getLinesContent(),h=new fc(a,c,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:r,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),u=h.changes.length>0?!1:this._modelsAreIdentical(s,o);return{quitEarly:h.quitEarly,identical:u,changes:h.changes}})}_modelsAreIdentical(t,n){const r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const o=t.getLineContent(s),a=n.getLineContent(s);if(o!==a)return!1}return!0}computeMoreMinimalEdits(t,n){return Mt(this,void 0,void 0,function*(){const r=this._getModel(t);if(!r)return n;const i=[];let s;n=n.slice(0).sort((o,a)=>{if(o.range&&a.range)return te.compareRangesUsingStarts(o.range,a.range);let c=o.range?0:1,l=a.range?0:1;return c-l});for(let{range:o,text:a,eol:c}of n){if(typeof c=="number"&&(s=c),te.isEmpty(o)&&!a)continue;const l=r.getValueInRange(o);if(a=a.replace(/\r\n|\n|\r/g,r.eol),l===a)continue;if(Math.max(a.length,l.length)>yt._diffLimit){i.push({range:o,text:a});continue}const h=Ql(l,a,!1),u=r.offsetAt(te.lift(o).getStartPosition());for(const p of h){const m=r.positionAt(u+p.originalStart),g=r.positionAt(u+p.originalStart+p.originalLength),x={text:a.substr(p.modifiedStart,p.modifiedLength),range:{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:g.lineNumber,endColumn:g.column}};r.getValueInRange(x.range)!==x.text&&i.push(x)}}return typeof s=="number"&&i.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i})}computeLinks(t){return Mt(this,void 0,void 0,function*(){let n=this._getModel(t);return n?Dc(n):null})}textualSuggest(t,n,r,i){return Mt(this,void 0,void 0,function*(){const s=new Dn(!0),o=new RegExp(r,i),a=new Set;e:for(let c of t){const l=this._getModel(c);if(l){for(let h of l.words(o))if(!(h===n||!isNaN(Number(h)))&&(a.add(h),a.size>yt._suggestionsLimit))break e}}return{words:Array.from(a),duration:s.elapsed()}})}computeWordRanges(t,n,r,i){return Mt(this,void 0,void 0,function*(){let s=this._getModel(t);if(!s)return Object.create(null);const o=new RegExp(r,i),a=Object.create(null);for(let c=n.startLineNumber;cthis._host.fhr(a,c)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,n),Promise.resolve(gr(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}}yt._diffLimit=1e5,yt._suggestionsLimit=1e4;function Up(e){return new yt(e,null)}typeof importScripts=="function"&&(he.monaco=Lc());let Br=!1;function lo(e){if(Br)return;Br=!0;const t=new ds(n=>{self.postMessage(n)},n=>new yt(n,e));self.onmessage=n=>{t.onmessage(n.data)}}self.onmessage=e=>{Br||lo(null)};var d;(function(e){e[e.Ident=0]="Ident",e[e.AtKeyword=1]="AtKeyword",e[e.String=2]="String",e[e.BadString=3]="BadString",e[e.UnquotedString=4]="UnquotedString",e[e.Hash=5]="Hash",e[e.Num=6]="Num",e[e.Percentage=7]="Percentage",e[e.Dimension=8]="Dimension",e[e.UnicodeRange=9]="UnicodeRange",e[e.CDO=10]="CDO",e[e.CDC=11]="CDC",e[e.Colon=12]="Colon",e[e.SemiColon=13]="SemiColon",e[e.CurlyL=14]="CurlyL",e[e.CurlyR=15]="CurlyR",e[e.ParenthesisL=16]="ParenthesisL",e[e.ParenthesisR=17]="ParenthesisR",e[e.BracketL=18]="BracketL",e[e.BracketR=19]="BracketR",e[e.Whitespace=20]="Whitespace",e[e.Includes=21]="Includes",e[e.Dashmatch=22]="Dashmatch",e[e.SubstringOperator=23]="SubstringOperator",e[e.PrefixOperator=24]="PrefixOperator",e[e.SuffixOperator=25]="SuffixOperator",e[e.Delim=26]="Delim",e[e.EMS=27]="EMS",e[e.EXS=28]="EXS",e[e.Length=29]="Length",e[e.Angle=30]="Angle",e[e.Time=31]="Time",e[e.Freq=32]="Freq",e[e.Exclamation=33]="Exclamation",e[e.Resolution=34]="Resolution",e[e.Comma=35]="Comma",e[e.Charset=36]="Charset",e[e.EscapedJavaScript=37]="EscapedJavaScript",e[e.BadEscapedJavaScript=38]="BadEscapedJavaScript",e[e.Comment=39]="Comment",e[e.SingleLineComment=40]="SingleLineComment",e[e.EOF=41]="EOF",e[e.CustomToken=42]="CustomToken"})(d||(d={}));var co=function(){function e(t){this.source=t,this.len=t.length,this.position=0}return e.prototype.substring=function(t,n){return n===void 0&&(n=this.position),this.source.substring(t,n)},e.prototype.eos=function(){return this.len<=this.position},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(t){this.position=t},e.prototype.goBack=function(t){this.position-=t},e.prototype.advance=function(t){this.position+=t},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(t){return t===void 0&&(t=0),this.source.charCodeAt(this.position+t)||0},e.prototype.lookbackChar=function(t){return t===void 0&&(t=0),this.source.charCodeAt(this.position-t)||0},e.prototype.advanceIfChar=function(t){return t===this.source.charCodeAt(this.position)?(this.position++,!0):!1},e.prototype.advanceIfChars=function(t){if(this.position+t.length>this.source.length)return!1;for(var n=0;n=Un&&n<=Vn?(this.stream.advance(t+1),this.stream.advanceWhileChar(function(r){return r>=Un&&r<=Vn||t===0&&r===yo}),!0):!1},e.prototype._newline=function(t){var n=this.stream.peekChar();switch(n){case It:case rn:case Pt:return this.stream.advance(1),t.push(String.fromCharCode(n)),n===It&&this.stream.advanceIfChar(Pt)&&t.push(` `),!0}return!1},e.prototype._escape=function(t,n){var r=this.stream.peekChar();if(r===Hr){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=Un&&r<=Vn||r>=jr&&r<=Oc||r>=qr&&r<=Uc);)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&&t.push(String.fromCharCode(s))}catch(o){}return r===Gr||r===Jr?this.stream.advance(1):this._newline([]),!0}if(r!==It&&r!==rn&&r!==Pt)return this.stream.advance(1),t.push(String.fromCharCode(r)),!0;if(n)return this._newline(t)}return!1},e.prototype._stringChar=function(t,n){var r=this.stream.peekChar();return r!==0&&r!==t&&r!==Hr&&r!==It&&r!==rn&&r!==Pt?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1},e.prototype._string=function(t){if(this.stream.peekChar()===vo||this.stream.peekChar()===bo){var n=this.stream.nextChar();for(t.push(String.fromCharCode(n));this._stringChar(n,t)||this._escape(t,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),t.push(String.fromCharCode(n)),d.String):d.BadString}return null},e.prototype._unquotedChar=function(t){var n=this.stream.peekChar();return n!==0&&n!==Hr&&n!==vo&&n!==bo&&n!==fo&&n!==mo&&n!==Gr&&n!==Jr&&n!==Pt&&n!==rn&&n!==It?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1},e.prototype._unquotedString=function(t){for(var n=!1;this._unquotedChar(t)||this._escape(t);)n=!0;return n},e.prototype._whitespace=function(){var t=this.stream.advanceWhileChar(function(n){return n===Gr||n===Jr||n===Pt||n===rn||n===It});return t>0},e.prototype._name=function(t){for(var n=!1;this._identChar(t)||this._escape(t);)n=!0;return n},e.prototype.ident=function(t){var n=this.stream.pos(),r=this._minus(t);if(r){if(this._minus(t)||this._identFirstChar(t)||this._escape(t)){for(;this._identChar(t)||this._escape(t););return!0}}else if(this._identFirstChar(t)||this._escape(t)){for(;this._identChar(t)||this._escape(t););return!0}return this.stream.goBackTo(n),!1},e.prototype._identFirstChar=function(t){var n=this.stream.peekChar();return n===po||n>=jr&&n<=ho||n>=qr&&n<=uo||n>=128&&n<=65535?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1},e.prototype._minus=function(t){var n=this.stream.peekChar();return n===Nt?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1},e.prototype._identChar=function(t){var n=this.stream.peekChar();return n===po||n===Nt||n>=jr&&n<=ho||n>=qr&&n<=uo||n>=Un&&n<=Vn||n>=128&&n<=65535?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1},e}();function le(e,t){if(e.length0?e.lastIndexOf(t)===n:n===0?e===t:!1}function rh(e,t,n){n===void 0&&(n=4);var r=Math.abs(e.length-t.length);if(r>n)return 0;var i=[],s=[],o,a;for(o=0;oe.end?null:(e.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=t&&r.end>=t?(n?r.length<=n.length&&(n=r):n=r,!0):!1}),n)}function Xr(e,t){for(var n=Yr(e,t),r=[];n;)r.unshift(n),n=n.parent;return r}function sh(e){var t=e.findParent(f.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}var M=function(){function e(t,n,r){t===void 0&&(t=-1),n===void 0&&(n=-1),this.parent=null,this.offset=t,this.length=n,r&&(this.nodeType=r)}return Object.defineProperty(e.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.nodeType||f.Undefined},set:function(t){this.nodeType=t},enumerable:!1,configurable:!0}),e.prototype.getTextProvider=function(){for(var t=this;t&&!t.textProvider;)t=t.parent;return t?t.textProvider:function(){return"unknown"}},e.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},e.prototype.matches=function(t){return this.length===t.length&&this.getTextProvider()(this.offset,this.length)===t},e.prototype.startsWith=function(t){return this.length>=t.length&&this.getTextProvider()(this.offset,t.length)===t},e.prototype.endsWith=function(t){return this.length>=t.length&&this.getTextProvider()(this.end-t.length,t.length)===t},e.prototype.accept=function(t){if(t(this)&&this.children)for(var n=0,r=this.children;n=0&&t.parent.children.splice(r,1)}t.parent=this;var i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,t):i.push(t),t},e.prototype.attachTo=function(t,n){return n===void 0&&(n=-1),t&&t.adoptChild(this,n),this},e.prototype.collectIssues=function(t){this.issues&&t.push.apply(t,this.issues)},e.prototype.addIssue=function(t){this.issues||(this.issues=[]),this.issues.push(t)},e.prototype.hasIssue=function(t){return Array.isArray(this.issues)&&this.issues.some(function(n){return n.getRule()===t})},e.prototype.isErroneous=function(t){return t===void 0&&(t=!1),this.issues&&this.issues.length>0?!0:t&&Array.isArray(this.children)&&this.children.some(function(n){return n.isErroneous(!0)})},e.prototype.setNode=function(t,n,r){return r===void 0&&(r=-1),n?(n.attachTo(this,r),this[t]=n,!0):!1},e.prototype.addChild=function(t){return t?(this.children||(this.children=[]),t.attachTo(this),this.updateOffsetAndLength(t),!0):!1},e.prototype.updateOffsetAndLength=function(t){(t.offsetthis.end||this.length===-1)&&(this.length=n-this.offset)},e.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},e.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},e.prototype.getChild=function(t){return this.children&&t=0;r--)if(n=this.children[r],n.offset<=t)return n}return null},e.prototype.findChildAtOffset=function(t,n){var r=this.findFirstChildBeforeOffset(t);return r&&r.end>=t?n&&r.findChildAtOffset(t,!0)||r:null},e.prototype.encloses=function(t){return this.offset<=t.offset&&this.offset+this.length>=t.offset+t.length},e.prototype.getParent=function(){for(var t=this.parent;t instanceof ge;)t=t.parent;return t},e.prototype.findParent=function(t){for(var n=this;n&&n.type!==t;)n=n.parent;return n},e.prototype.findAParent=function(){for(var t=[],n=0;n/g,">")}function Uh(e,t){if(!e.description||e.description==="")return"";if(typeof e.description!="string")return e.description.value;var n="";if((t==null?void 0:t.documentation)!==!1){e.status&&(n+=To(e.status)),n+=e.description;var r=Lo(e.browsers);r&&(n+=` (`+r+")"),"syntax"in e&&(n+=` Syntax: `+e.syntax)}return e.references&&e.references.length>0&&(t==null?void 0:t.references)!==!1&&(n.length>0&&(n+=` `),n+=e.references.map(function(i){return i.name+": "+i.url}).join(" | ")),n}function Vh(e,t){if(!e.description||e.description==="")return"";var n="";if((t==null?void 0:t.documentation)!==!1){e.status&&(n+=To(e.status));var r=typeof e.description=="string"?e.description:e.description.value;n+=oi(r);var i=Lo(e.browsers);i&&(n+=` (`+oi(i)+")"),"syntax"in e&&e.syntax&&(n+=` Syntax: `+oi(e.syntax))}return e.references&&e.references.length>0&&(t==null?void 0:t.references)!==!1&&(n.length>0&&(n+=` `),n+=e.references.map(function(s){return"["+s.name+"]("+s.url+")"}).join(" | ")),n}function Lo(e){return e===void 0&&(e=[]),e.length===0?null:e.map(function(t){var n="",r=t.match(/([A-Z]+)(\d+)?/),i=r[1],s=r[2];return i in Io&&(n+=Io[i]),s&&(n+=" "+s),n}).join(", ")}var Hn=Pe(),Bh=[{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.")}],dn={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"},Wo={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 Ot(e,t){var n=e.getText(),r=n.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(t=100);var i=parseFloat(r[1])/t;if(i>=0&&i<=1)return i}throw new Error}function jh(e){var t=e.getText(),n=t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/);if(n)return parseFloat(t)%360;throw new Error}function Oo(e){var t=e.getName();return t?/^(rgb|rgba|hsl|hsla)$/gi.test(t):!1}function qp(e){if(e.type===nodes.NodeType.HexColorValue)return!0;if(e.type===nodes.NodeType.Function)return Oo(e);if(e.type===nodes.NodeType.Identifier){if(e.parent&&e.parent.type!==nodes.NodeType.Term)return!1;var t=e.getText().toLowerCase();if(t==="none")return!1;if(dn[t])return!0}return!1}var Uo=48,qh=57,$h=65,$p=70,Gn=97,Hh=102;function oe(e){return e=Gn&&e<=Hh?e-Gn+10:0)}function Vo(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:oe(e.charCodeAt(1))*17/255,green:oe(e.charCodeAt(2))*17/255,blue:oe(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:oe(e.charCodeAt(1))*17/255,green:oe(e.charCodeAt(2))*17/255,blue:oe(e.charCodeAt(3))*17/255,alpha:oe(e.charCodeAt(4))*17/255};case 7:return{red:(oe(e.charCodeAt(1))*16+oe(e.charCodeAt(2)))/255,green:(oe(e.charCodeAt(3))*16+oe(e.charCodeAt(4)))/255,blue:(oe(e.charCodeAt(5))*16+oe(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(oe(e.charCodeAt(1))*16+oe(e.charCodeAt(2)))/255,green:(oe(e.charCodeAt(3))*16+oe(e.charCodeAt(4)))/255,blue:(oe(e.charCodeAt(5))*16+oe(e.charCodeAt(6)))/255,alpha:(oe(e.charCodeAt(7))*16+oe(e.charCodeAt(8)))/255}}return null}function Hp(e,t,n,r){return r===void 0&&(r=1),{red:e/255,green:t/255,blue:n/255,alpha:r}}function Gh(e,t,n,r){if(r===void 0&&(r=1),e=e/60,t===0)return{red:n,green:n,blue:n,alpha:r};var i=function(a,c,l){for(;l<0;)l+=6;for(;l>=6;)l-=6;return l<1?(c-a)*l+a:l<3?c:l<4?(c-a)*(4-l)+a:a},s=n<=.5?n*(t+1):n+t-n*t,o=n*2-s;return{red:i(o,s,e+2),green:i(o,s,e),blue:i(o,s,e-2),alpha:r}}function Jh(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,s=Math.max(t,n,r),o=Math.min(t,n,r),a=0,c=0,l=(o+s)/2,h=s-o;if(h>0){switch(c=Math.min(l<=.5?h/(2*l):h/(2-2*l),1),s){case t:a=(n-r)/h+(n4)return null;try{var s=i.length===4?Ot(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:Ot(i[0],255),green:Ot(i[1],255),blue:Ot(i[2],255),alpha:s};if(r==="hsl"||r==="hsla"){var o=jh(i[0]),a=Ot(i[1],100),c=Ot(i[2],100);return Gh(o,a,c,s)}}catch(m){return null}}else if(e.type===f.Identifier){if(e.parent&&e.parent.type!==f.Term)return null;var l=e.parent;if(l&&l.parent&&l.parent.type===f.BinaryExpression){var h=l.parent;if(h.parent&&h.parent.type===f.ListEntry&&h.parent.key===h)return null}var u=e.getText().toLowerCase();if(u==="none")return null;var p=dn[u];if(p)return Vo(p)}return null}var Bo={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."},jo={"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."},qo={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."},Xh=["medium","thick","thin"],$o={"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."},Ho={"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."},Go={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."},Jo={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Yo={"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."},Xo={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."},Ko={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Qo={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"]},Kh=["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"],Qh=["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"],Zh=["@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 Jn(e){return Object.keys(e).map(function(t){return e[t]})}function Ie(e){return typeof e!="undefined"}var Zo=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;rt.offset?s-t.offset:0}return t},e.prototype.markError=function(t,n,r,i){this.token!==this.lastErrorToken&&(t.addIssue(new Po(t,n,Ee.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},e.prototype.parseStylesheet=function(t){var n=t.version,r=t.getText(),i=function(s,o){if(t.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)},e.prototype.internalParse=function(t,n,r){this.scanner.setSource(t),this.token=this.scanner.scan();var i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(s,o){return t.substr(s,o)}),i},e.prototype._parseStylesheet=function(){for(var t=this.create(oh);t.addChild(this._parseStylesheetStart()););var n=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(t.addChild(i),r=!0,n=!1,!this.peek(d.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(d.SemiColon)&&this.markError(t,b.SemiColonExpected));this.accept(d.SemiColon)||this.accept(d.CDO)||this.accept(d.CDC);)r=!0,n=!1}while(r);if(this.peek(d.EOF))break;n||(this.peek(d.AtKeyword)?this.markError(t,b.UnknownAtRule):this.markError(t,b.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(d.EOF));return this.finish(t)},e.prototype._parseStylesheetStart=function(){return this._parseCharset()},e.prototype._parseStylesheetStatement=function(t){return t===void 0&&(t=!1),this.peek(d.AtKeyword)?this._parseStylesheetAtStatement(t):this._parseRuleset(t)},e.prototype._parseStylesheetAtStatement=function(t){return t===void 0&&(t=!1),this._parseImport()||this._parseMedia(t)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(t)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},e.prototype._tryParseRuleset=function(t){var n=this.mark();if(this._parseSelector(t)){for(;this.accept(d.Comma)&&this._parseSelector(t););if(this.accept(d.CurlyL))return this.restoreAtMark(n),this._parseRuleset(t)}return this.restoreAtMark(n),null},e.prototype._parseRuleset=function(t){t===void 0&&(t=!1);var n=this.create(Tt),r=n.getSelectors();if(!r.addChild(this._parseSelector(t)))return null;for(;this.accept(d.Comma);)if(!r.addChild(this._parseSelector(t)))return this.finish(n,b.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},e.prototype._parseRuleSetDeclaration=function(){return this.peek(d.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},e.prototype._needsSemicolonAfter=function(t){switch(t.type){case f.Keyframe:case f.ViewPort:case f.Media:case f.Ruleset:case f.Namespace:case f.If:case f.For:case f.Each:case f.While:case f.MixinDeclaration:case f.FunctionDeclaration:case f.MixinContentDeclaration:return!1;case f.ExtendsReference:case f.MixinContentReference:case f.ReturnStatement:case f.MediaQuery:case f.Debug:case f.Import:case f.AtApplyRule:case f.CustomPropertyDeclaration:return!0;case f.VariableDeclaration:return t.needsSemicolon;case f.MixinReference:return!t.getContent();case f.Declaration:return!t.getNestedProperties()}return!1},e.prototype._parseDeclarations=function(t){var n=this.create(Kr);if(!this.accept(d.CurlyL))return null;for(var r=t();n.addChild(r)&&!this.peek(d.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(d.SemiColon))return this.finish(n,b.SemiColonExpected,[d.SemiColon,d.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===d.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(d.SemiColon););r=t()}return this.accept(d.CurlyR)?this.finish(n):this.finish(n,b.RightCurlyExpected,[d.CurlyR,d.SemiColon])},e.prototype._parseBody=function(t,n){return t.setDeclarations(this._parseDeclarations(n))?this.finish(t):this.finish(t,b.LeftCurlyExpected,[d.CurlyR,d.SemiColon])},e.prototype._parseSelector=function(t){var n=this.create(on),r=!1;for(t&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null},e.prototype._parseDeclaration=function(t){var n=this._tryParseCustomPropertyDeclaration(t);if(n)return n;var r=this.create(Ge);return r.setProperty(this._parseProperty())?this.accept(d.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(d.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,b.PropertyValueExpected)):this.finish(r,b.ColonExpected,[d.Colon],t||[d.SemiColon]):null},e.prototype._tryParseCustomPropertyDeclaration=function(t){if(!this.peekRegExp(d.Ident,/^--/))return null;var n=this.create(lh);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(d.Colon))return this.finish(n,b.ColonExpected,[d.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(d.CurlyL)){var i=this.create(ah),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(s)&&!s.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(d.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,Zo(Zo([],t||[],!1),[d.SemiColon,d.EOF],!1)))?(n.setValue(o),this.peek(d.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(t)),n.addChild(this._parsePrio()),Ie(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,b.PropertyValueExpected):this.finish(n))},e.prototype._parseCustomPropertyValue=function(t){var n=this;t===void 0&&(t=[d.CurlyR]);var r=this.create(M),i=function(){return o===0&&a===0&&c===0},s=function(){return t.indexOf(n.token.type)!==-1},o=0,a=0,c=0;e:for(;;){switch(this.token.type){case d.SemiColon:if(i())break e;break;case d.Exclamation:if(i())break e;break;case d.CurlyL:o++;break;case d.CurlyR:if(o--,o<0){if(s()&&a===0&&c===0)break e;return this.finish(r,b.LeftCurlyExpected)}break;case d.ParenthesisL:a++;break;case d.ParenthesisR:if(a--,a<0){if(s()&&c===0&&o===0)break e;return this.finish(r,b.LeftParenthesisExpected)}break;case d.BracketL:c++;break;case d.BracketR:if(c--,c<0)return this.finish(r,b.LeftSquareBracketExpected);break;case d.BadString:break e;case d.EOF:var l=b.RightCurlyExpected;return c>0?l=b.RightSquareBracketExpected:a>0&&(l=b.RightParenthesisExpected),this.finish(r,l)}this.consumeToken()}return this.finish(r)},e.prototype._tryToParseDeclaration=function(t){var n=this.mark();return this._parseProperty()&&this.accept(d.Colon)?(this.restoreAtMark(n),this._parseDeclaration(t)):(this.restoreAtMark(n),null)},e.prototype._parseProperty=function(){var t=this.create(Zr),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):t.setIdentifier(this._parsePropertyIdentifier())?this.finish(t):null},e.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},e.prototype._parseCharset=function(){if(!this.peek(d.Charset))return null;var t=this.create(M);return this.consumeToken(),this.accept(d.String)?this.accept(d.SemiColon)?this.finish(t):this.finish(t,b.SemiColonExpected):this.finish(t,b.IdentifierExpected)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var t=this.create(ei);return this.consumeToken(),!t.addChild(this._parseURILiteral())&&!t.addChild(this._parseStringLiteral())?this.finish(t,b.URIOrStringExpected):(!this.peek(d.SemiColon)&&!this.peek(d.EOF)&&t.setMedialist(this._parseMediaQueryList()),this.finish(t))},e.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var t=this.create(wh);return this.consumeToken(),!t.addChild(this._parseURILiteral())&&(t.addChild(this._parseIdent()),!t.addChild(this._parseURILiteral())&&!t.addChild(this._parseStringLiteral()))?this.finish(t,b.URIExpected,[d.SemiColon]):this.accept(d.SemiColon)?this.finish(t):this.finish(t,b.SemiColonExpected)},e.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var t=this.create(Co);return this.consumeToken(),this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var t=this.create(mh);return this.consumeToken(),this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseKeyframe=function(){if(!this.peekRegExp(d.AtKeyword,this.keyframeRegex))return null;var t=this.create(_o),n=this.create(M);return this.consumeToken(),t.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,b.UnknownKeyword),t.setIdentifier(this._parseKeyframeIdent())?this._parseBody(t,this._parseKeyframeSelector.bind(this)):this.finish(t,b.IdentifierExpected,[d.CurlyR])},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([q.Keyframe])},e.prototype._parseKeyframeSelector=function(){var t=this.create(Fo);if(!t.addChild(this._parseIdent())&&!this.accept(d.Percentage))return null;for(;this.accept(d.Comma);)if(!t.addChild(this._parseIdent())&&!this.accept(d.Percentage))return this.finish(t,b.PercentageExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._tryParseKeyframeSelector=function(){var t=this.create(Fo),n=this.mark();if(!t.addChild(this._parseIdent())&&!this.accept(d.Percentage))return null;for(;this.accept(d.Comma);)if(!t.addChild(this._parseIdent())&&!this.accept(d.Percentage))return this.restoreAtMark(n),null;return this.peek(d.CurlyL)?this._parseBody(t,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)},e.prototype._parseSupports=function(t){if(t===void 0&&(t=!1),!this.peekKeyword("@supports"))return null;var n=this.create(ti);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,t))},e.prototype._parseSupportsDeclaration=function(t){return t===void 0&&(t=!1),t?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},e.prototype._parseSupportsCondition=function(){var t=this.create(ln);if(this.acceptIdent("not"))t.addChild(this._parseSupportsConditionInParens());else if(t.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(d.Ident,/^(and|or)$/i))for(var n=this.token.text.toLowerCase();this.acceptIdent(n);)t.addChild(this._parseSupportsConditionInParens());return this.finish(t)},e.prototype._parseSupportsConditionInParens=function(){var t=this.create(ln);if(this.accept(d.ParenthesisL))return this.prevToken&&(t.lParent=this.prevToken.offset),!t.addChild(this._tryToParseDeclaration([d.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(t,b.ConditionExpected):this.accept(d.ParenthesisR)?(this.prevToken&&(t.rParent=this.prevToken.offset),this.finish(t)):this.finish(t,b.RightParenthesisExpected,[d.ParenthesisR],[]);if(this.peek(d.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(d.ParenthesisL)){for(var r=1;this.token.type!==d.EOF&&r!==0;)this.token.type===d.ParenthesisL?r++:this.token.type===d.ParenthesisR&&r--,this.consumeToken();return this.finish(t)}else this.restoreAtMark(n)}return this.finish(t,b.LeftParenthesisExpected,[],[d.ParenthesisL])},e.prototype._parseMediaDeclaration=function(t){return t===void 0&&(t=!1),t?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},e.prototype._parseMedia=function(t){if(t===void 0&&(t=!1),!this.peekKeyword("@media"))return null;var n=this.create(Eo);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,t)):this.finish(n,b.MediaQueryExpected)},e.prototype._parseMediaQueryList=function(){var t=this.create(Do);if(!t.addChild(this._parseMediaQuery()))return this.finish(t,b.MediaQueryExpected);for(;this.accept(d.Comma);)if(!t.addChild(this._parseMediaQuery()))return this.finish(t,b.MediaQueryExpected);return this.finish(t)},e.prototype._parseMediaQuery=function(){var t=this.create(Ro),n=this.mark();if(this.acceptIdent("not"),this.peek(d.ParenthesisL))this.restoreAtMark(n),t.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!t.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&t.addChild(this._parseMediaCondition())}return this.finish(t)},e.prototype._parseRatio=function(){var t=this.mark(),n=this.create(Dh);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,b.NumberExpected):(this.restoreAtMark(t),null):null},e.prototype._parseMediaCondition=function(){var t=this.create(Sh);this.acceptIdent("not");for(var n=!0;n;){if(!this.accept(d.ParenthesisL))return this.finish(t,b.LeftParenthesisExpected,[],[d.CurlyL]);if(this.peek(d.ParenthesisL)||this.peekIdent("not")?t.addChild(this._parseMediaCondition()):t.addChild(this._parseMediaFeature()),!this.accept(d.ParenthesisR))return this.finish(t,b.RightParenthesisExpected,[],[d.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(t)},e.prototype._parseMediaFeature=function(){var t=this,n=[d.ParenthesisR],r=this.create(Ch),i=function(){return t.acceptDelim("<")||t.acceptDelim(">")?(t.hasWhitespace()||t.acceptDelim("="),!0):!!t.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(d.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,b.TermExpected,[],n)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,b.TermExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,b.TermExpected,[],n)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,b.OperatorExpected,[],n);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,b.IdentifierExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,b.TermExpected,[],n)}else return this.finish(r,b.IdentifierExpected,[],n);return this.finish(r)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()},e.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},e.prototype._parseMedium=function(){var t=this.create(M);return t.addChild(this._parseIdent())?this.finish(t):null},e.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},e.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var t=this.create(kh);if(this.consumeToken(),t.addChild(this._parsePageSelector())){for(;this.accept(d.Comma);)if(!t.addChild(this._parsePageSelector()))return this.finish(t,b.IdentifierExpected)}return this._parseBody(t,this._parsePageDeclaration.bind(this))},e.prototype._parsePageMarginBox=function(){if(!this.peek(d.AtKeyword))return null;var t=this.create(_h);return this.acceptOneKeyword(Zh)||this.markError(t,b.UnknownAtRule,[],[d.CurlyL]),this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._parsePageSelector=function(){if(!this.peek(d.Ident)&&!this.peek(d.Colon))return null;var t=this.create(M);return t.addChild(this._parseIdent()),this.accept(d.Colon)&&!t.addChild(this._parseIdent())?this.finish(t,b.IdentifierExpected):this.finish(t)},e.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var t=this.create(xh);return this.consumeToken(),this.resync([],[d.CurlyL]),this._parseBody(t,this._parseStylesheetStatement.bind(this))},e.prototype._parseUnknownAtRule=function(){if(!this.peek(d.AtKeyword))return null;var t=this.create(Mo);t.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 d.SemiColon:if(n())break e;break;case d.EOF:return i>0?this.finish(t,b.RightCurlyExpected):o>0?this.finish(t,b.RightSquareBracketExpected):s>0?this.finish(t,b.RightParenthesisExpected):this.finish(t);case d.CurlyL:r++,i++;break;case d.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),o>0)return this.finish(t,b.RightSquareBracketExpected);if(s>0)return this.finish(t,b.RightParenthesisExpected);break e}if(i<0){if(s===0&&o===0)break e;return this.finish(t,b.LeftCurlyExpected)}break;case d.ParenthesisL:s++;break;case d.ParenthesisR:if(s--,s<0)return this.finish(t,b.LeftParenthesisExpected);break;case d.BracketL:o++;break;case d.BracketR:if(o--,o<0)return this.finish(t,b.LeftSquareBracketExpected);break}this.consumeToken()}return t},e.prototype._parseUnknownAtRuleName=function(){var t=this.create(M);return this.accept(d.AtKeyword)?this.finish(t):t},e.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(d.Dashmatch)||this.peek(d.Includes)||this.peek(d.SubstringOperator)||this.peek(d.PrefixOperator)||this.peek(d.SuffixOperator)||this.peekDelim("=")){var t=this.createNode(f.Operator);return this.consumeToken(),this.finish(t)}else return null},e.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var t=this.create(M);return this.consumeToken(),this.finish(t)},e.prototype._parseCombinator=function(){if(this.peekDelim(">")){var t=this.create(M);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return t.type=f.SelectorCombinatorShadowPiercingDescendant,this.finish(t);this.restoreAtMark(n)}return t.type=f.SelectorCombinatorParent,this.finish(t)}else if(this.peekDelim("+")){var t=this.create(M);return this.consumeToken(),t.type=f.SelectorCombinatorSibling,this.finish(t)}else if(this.peekDelim("~")){var t=this.create(M);return this.consumeToken(),t.type=f.SelectorCombinatorAllSiblings,this.finish(t)}else if(this.peekDelim("/")){var t=this.create(M);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return t.type=f.SelectorCombinatorShadowPiercingDescendant,this.finish(t);this.restoreAtMark(n)}return null},e.prototype._parseSimpleSelector=function(){var t=this.create(Lt),n=0;for(t.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&t.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(t):null},e.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},e.prototype._parseSelectorIdent=function(){return this._parseIdent()},e.prototype._parseHash=function(){if(!this.peek(d.Hash)&&!this.peekDelim("#"))return null;var t=this.createNode(f.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!t.addChild(this._parseSelectorIdent()))return this.finish(t,b.IdentifierExpected)}else this.consumeToken();return this.finish(t)},e.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var t=this.createNode(f.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!t.addChild(this._parseSelectorIdent())?this.finish(t,b.IdentifierExpected):this.finish(t)},e.prototype._parseElementName=function(){var t=this.mark(),n=this.createNode(f.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(t),null):this.finish(n)},e.prototype._parseNamespacePrefix=function(){var t=this.mark(),n=this.createNode(f.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(t),null)},e.prototype._parseAttrib=function(){if(!this.peek(d.BracketL))return null;var t=this.create(Eh);return this.consumeToken(),t.setNamespacePrefix(this._parseNamespacePrefix()),t.setIdentifier(this._parseIdent())?(t.setOperator(this._parseOperator())&&(t.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(d.BracketR)?this.finish(t):this.finish(t,b.RightSquareBracketExpected)):this.finish(t,b.IdentifierExpected)},e.prototype._parsePseudo=function(){var t=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(d.ParenthesisL)){var r=function(){var i=t.create(M);if(!i.addChild(t._parseSelector(!1)))return null;for(;t.accept(d.Comma)&&i.addChild(t._parseSelector(!1)););return t.peek(d.ParenthesisR)?t.finish(i):null};if(n.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(d.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}return this.finish(n)}return null},e.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(d.Colon))return null;var t=this.mark(),n=this.createNode(f.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(t),null):(this.accept(d.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,b.IdentifierExpected):this.finish(n))},e.prototype._tryParsePrio=function(){var t=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(t),null)},e.prototype._parsePrio=function(){if(!this.peek(d.Exclamation))return null;var t=this.createNode(f.Prio);return this.accept(d.Exclamation)&&this.acceptIdent("important")?this.finish(t):null},e.prototype._parseExpr=function(t){t===void 0&&(t=!1);var n=this.create(Ao);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(d.Comma)){if(t)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},e.prototype._parseNamedLine=function(){if(!this.peek(d.BracketL))return null;var t=this.createNode(f.GridLine);for(this.consumeToken();t.addChild(this._parseIdent()););return this.accept(d.BracketR)?this.finish(t):this.finish(t,b.RightSquareBracketExpected)},e.prototype._parseBinaryExpr=function(t,n){var r=this.create(zo);if(!r.setLeft(t||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,b.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},e.prototype._parseTerm=function(){var t=this.create(Fh);return t.setOperator(this._parseUnaryOperator()),t.setExpression(this._parseTermExpression())?this.finish(t):null},e.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},e.prototype._parseOperation=function(){if(!this.peek(d.ParenthesisL))return null;var t=this.create(M);return this.consumeToken(),t.addChild(this._parseExpr()),this.accept(d.ParenthesisR)?this.finish(t):this.finish(t,b.RightParenthesisExpected)},e.prototype._parseNumeric=function(){if(this.peek(d.Num)||this.peek(d.Percentage)||this.peek(d.Resolution)||this.peek(d.Length)||this.peek(d.EMS)||this.peek(d.EXS)||this.peek(d.Angle)||this.peek(d.Time)||this.peek(d.Dimension)||this.peek(d.Freq)){var t=this.create(ri);return this.consumeToken(),this.finish(t)}return null},e.prototype._parseStringLiteral=function(){if(!this.peek(d.String)&&!this.peek(d.BadString))return null;var t=this.createNode(f.StringLiteral);return this.consumeToken(),this.finish(t)},e.prototype._parseURILiteral=function(){if(!this.peekRegExp(d.Ident,/^url(-prefix)?$/i))return null;var t=this.mark(),n=this.createNode(f.URILiteral);return this.accept(d.Ident),this.hasWhitespace()||!this.peek(d.ParenthesisL)?(this.restoreAtMark(t),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected))},e.prototype._parseURLArgument=function(){var t=this.create(M);return!this.accept(d.String)&&!this.accept(d.BadString)&&!this.acceptUnquotedString()?null:this.finish(t)},e.prototype._parseIdent=function(t){if(!this.peek(d.Ident))return null;var n=this.create(Ne);return t&&(n.referenceTypes=t),n.isCustomProperty=this.peekRegExp(d.Ident,/^--/),this.consumeToken(),this.finish(n)},e.prototype._parseFunction=function(){var t=this.mark(),n=this.create(an);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(d.ParenthesisL))return this.restoreAtMark(t),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,b.ExpressionExpected);return this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(!this.peek(d.Ident))return null;var t=this.create(Ne);if(t.referenceTypes=[q.Function],this.acceptIdent("progid")){if(this.accept(d.Colon))for(;this.accept(d.Ident)&&this.acceptDelim("."););return this.finish(t)}return this.consumeToken(),this.finish(t)},e.prototype._parseFunctionArgument=function(){var t=this.create(Wt);return t.setValue(this._parseExpr(!0))?this.finish(t):null},e.prototype._parseHexColor=function(){if(this.peekRegExp(d.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var t=this.create(ni);return this.consumeToken(),this.finish(t)}else return null},e}();function ed(e,t){var n=0,r=e.length;if(r===0)return 0;for(;nt+n||this.offset===t&&this.length===n?this.findInScope(t,n):null},e.prototype.findInScope=function(t,n){n===void 0&&(n=0);var r=t+n,i=ed(this.children,function(o){return o.offset>r});if(i===0)return this;var s=this.children[i-1];return s.offset<=t&&s.offset+s.length>=t+n?s.findInScope(t,n):this},e.prototype.addSymbol=function(t){this.symbols.push(t)},e.prototype.getSymbol=function(t,n){for(var r=0;r0&&(a.arguments=s),a}e.create=t;function n(r){var i=r;return w.defined(i)&&w.string(i.title)&&w.string(i.command)}e.is=n})(Ut||(Ut={}));var O;(function(e){function t(s,o){return{range:s,newText:o}}e.replace=t;function n(s,o){return{range:{start:s,end:s},newText:o}}e.insert=n;function r(s){return{range:s,newText:""}}e.del=r;function i(s){var o=s;return w.objectLiteral(o)&&w.string(o.newText)&&X.is(o.range)}e.is=i})(O||(O={}));var Vt;(function(e){function t(r,i,s){var o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}e.create=t;function n(r){var i=r;return i!==void 0&&w.objectLiteral(i)&&w.string(i.label)&&(w.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(w.string(i.description)||i.description===void 0)}e.is=n})(Vt||(Vt={}));var we;(function(e){function t(n){var r=n;return typeof r=="string"}e.is=t})(we||(we={}));var dt;(function(e){function t(s,o,a){return{range:s,newText:o,annotationId:a}}e.replace=t;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}e.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}e.del=r;function i(s){var o=s;return O.is(o)&&(Vt.is(o.annotationId)||we.is(o.annotationId))}e.is=i})(dt||(dt={}));var pn;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){var i=r;return w.defined(i)&&tr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(pn||(pn={}));var fn;(function(e){function t(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}e.create=t;function n(r){var i=r;return i&&i.kind==="create"&&w.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||w.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||w.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||we.is(i.annotationId))}e.is=n})(fn||(fn={}));var mn;(function(e){function t(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}e.create=t;function n(r){var i=r;return i&&i.kind==="rename"&&w.string(i.oldUri)&&w.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||w.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||w.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||we.is(i.annotationId))}e.is=n})(mn||(mn={}));var gn;(function(e){function t(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}e.create=t;function n(r){var i=r;return i&&i.kind==="delete"&&w.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||w.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||w.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||we.is(i.annotationId))}e.is=n})(gn||(gn={}));var di;(function(e){function t(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return w.string(i.kind)?fn.is(i)||mn.is(i)||gn.is(i):pn.is(i)}))}e.is=t})(di||(di={}));var er=function(){function e(t,n){this.edits=t,this.changeAnnotations=n}return e.prototype.insert=function(t,n,r){var i,s;if(r===void 0?i=O.insert(t,n):we.is(r)?(s=r,i=dt.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=dt.insert(t,n,s)),this.edits.push(i),s!==void 0)return s},e.prototype.replace=function(t,n,r){var i,s;if(r===void 0?i=O.replace(t,n):we.is(r)?(s=r,i=dt.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=dt.replace(t,n,s)),this.edits.push(i),s!==void 0)return s},e.prototype.delete=function(t,n){var r,i;if(n===void 0?r=O.del(t):we.is(n)?(i=n,r=dt.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=dt.del(t,i)),this.edits.push(r),i!==void 0)return i},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ha=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,n){var r;if(we.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),Gp=function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ha(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(pn.is(r)){var i=new er(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(r){var i=new er(t.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(tr.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){var i=[],s={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(s),r=new er(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var i=[];this._workspaceEdit.changes[t]=i,r=new er(i),this._textEditChanges[t]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ha,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Vt.is(n)||we.is(n)?i=n:r=n;var s,o;if(i===void 0?s=fn.create(t,r):(o=we.is(i)?i:this._changeAnnotations.manage(i),s=fn.create(t,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o},e.prototype.renameFile=function(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Vt.is(r)||we.is(r)?s=r:i=r;var o,a;if(s===void 0?o=mn.create(t,n,i):(a=we.is(s)?s:this._changeAnnotations.manage(s),o=mn.create(t,n,i,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},e.prototype.deleteFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Vt.is(n)||we.is(n)?i=n:r=n;var s,o;if(i===void 0?s=gn.create(t,r):(o=we.is(i)?i:this._changeAnnotations.manage(i),s=gn.create(t,r,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o},e}(),da;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){var i=r;return w.defined(i)&&w.string(i.uri)}e.is=n})(da||(da={}));var ui;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return w.defined(i)&&w.string(i.uri)&&w.integer(i.version)}e.is=n})(ui||(ui={}));var tr;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return w.defined(i)&&w.string(i.uri)&&(i.version===null||w.integer(i.version))}e.is=n})(tr||(tr={}));var ua;(function(e){function t(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}e.create=t;function n(r){var i=r;return w.defined(i)&&w.string(i.uri)&&w.string(i.languageId)&&w.integer(i.version)&&w.string(i.text)}e.is=n})(ua||(ua={}));var Be;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(Be||(Be={})),function(e){function t(n){var r=n;return r===e.PlainText||r===e.Markdown}e.is=t}(Be||(Be={}));var pi;(function(e){function t(n){var r=n;return w.objectLiteral(n)&&Be.is(r.kind)&&w.string(r.value)}e.is=t})(pi||(pi={}));var L;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(L||(L={}));var Re;(function(e){e.PlainText=1,e.Snippet=2})(Re||(Re={}));var wt;(function(e){e.Deprecated=1})(wt||(wt={}));var pa;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){var i=r;return i&&w.string(i.newText)&&X.is(i.insert)&&X.is(i.replace)}e.is=n})(pa||(pa={}));var fa;(function(e){e.asIs=1,e.adjustIndentation=2})(fa||(fa={}));var ma;(function(e){function t(n){return{label:n}}e.create=t})(ma||(ma={}));var ga;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(ga||(ga={}));var nr;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){var i=r;return w.string(i)||w.objectLiteral(i)&&w.string(i.language)&&w.string(i.value)}e.is=n})(nr||(nr={}));var ba;(function(e){function t(n){var r=n;return!!r&&w.objectLiteral(r)&&(pi.is(r.contents)||nr.is(r.contents)||w.typedArray(r.contents,nr.is))&&(n.range===void 0||X.is(n.range))}e.is=t})(ba||(ba={}));var va;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(va||(va={}));var ya;(function(e){function t(n,r){for(var i=[],s=2;s=0;h--){var u=c[h],p=s.offsetAt(u.range.start),m=s.offsetAt(u.range.end);if(m<=l)a=a.substring(0,p)+u.newText+a.substring(m,a.length);else throw new Error("Overlapping edit");l=p}return a}e.applyEdits=r;function i(s,o){if(s.length<=1)return s;var a=s.length/2|0,c=s.slice(0,a),l=s.slice(a);i(c,o),i(l,o);for(var h=0,u=0,p=0;h0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return De.create(0,t);for(;rt?i=s:r=s+1}var o=r-1;return De.create(o,t-n[o])},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1t?i=s:r=s+1}var o=r-1;return{line:o,character:t-n[o]}},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1c&&l.push(o.substring(c,m)),p.newText.length&&l.push(p.newText),c=i.offsetAt(p.range.end)}return l.push(o.substr(c)),l.join("")}e.applyEdits=r})(gi||(gi={}));function bi(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);bi(r,t),bi(i,t);for(var s=0,o=0,a=0;sn.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function od(e){var t=za(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Ma;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Be.Markdown,Be.PlainText]}},hover:{contentFormat:[Be.Markdown,Be.PlainText]}}}})(Ma||(Ma={}));var bn;(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(bn||(bn={}));var vi=pt(671),Na;Na=(()=>{"use strict";var e={470:r=>{function i(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function s(a,c){for(var l,h="",u=0,p=-1,m=0,g=0;g<=a.length;++g){if(g2){var x=h.lastIndexOf("/");if(x!==h.length-1){x===-1?(h="",u=0):u=(h=h.slice(0,x)).length-1-h.lastIndexOf("/"),p=g,m=0;continue}}else if(h.length===2||h.length===1){h="",u=0,p=g,m=0;continue}}c&&(h.length>0?h+="/..":h="..",u=2)}else h.length>0?h+="/"+a.slice(p+1,g):h=a.slice(p+1,g),u=g-p-1;p=g,m=0}else l===46&&m!==-1?++m:m=-1}return h}var o={resolve:function(){for(var a,c="",l=!1,h=arguments.length-1;h>=-1&&!l;h--){var u;h>=0?u=arguments[h]:(a===void 0&&(a=vi.cwd()),u=a),i(u),u.length!==0&&(c=u+"/"+c,l=u.charCodeAt(0)===47)}return c=s(c,!l),l?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(a){if(i(a),a.length===0)return".";var c=a.charCodeAt(0)===47,l=a.charCodeAt(a.length-1)===47;return(a=s(a,!c)).length!==0||c||(a="."),a.length>0&&l&&(a+="/"),c?"/"+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,c=0;c0&&(a===void 0?a=l:a+="/"+l)}return a===void 0?".":o.normalize(a)},relative:function(a,c){if(i(a),i(c),a===c||(a=o.resolve(a))===(c=o.resolve(c)))return"";for(var l=1;lg){if(c.charCodeAt(p+S)===47)return c.slice(p+S+1);if(S===0)return c.slice(p+S)}else u>g&&(a.charCodeAt(l+S)===47?x=S:S===0&&(x=0));break}var D=a.charCodeAt(l+S);if(D!==c.charCodeAt(p+S))break;D===47&&(x=S)}var v="";for(S=l+x+1;S<=h;++S)S!==h&&a.charCodeAt(S)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+c.slice(p+x):(p+=x,c.charCodeAt(p)===47&&++p,c.slice(p))},_makeLong:function(a){return a},dirname:function(a){if(i(a),a.length===0)return".";for(var c=a.charCodeAt(0),l=c===47,h=-1,u=!0,p=a.length-1;p>=1;--p)if((c=a.charCodeAt(p))===47){if(!u){h=p;break}}else u=!1;return h===-1?l?"/":".":l&&h===1?"//":a.slice(0,h)},basename:function(a,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');i(a);var l,h=0,u=-1,p=!0;if(c!==void 0&&c.length>0&&c.length<=a.length){if(c.length===a.length&&c===a)return"";var m=c.length-1,g=-1;for(l=a.length-1;l>=0;--l){var x=a.charCodeAt(l);if(x===47){if(!p){h=l+1;break}}else g===-1&&(p=!1,g=l+1),m>=0&&(x===c.charCodeAt(m)?--m==-1&&(u=l):(m=-1,u=g))}return h===u?u=g:u===-1&&(u=a.length),a.slice(h,u)}for(l=a.length-1;l>=0;--l)if(a.charCodeAt(l)===47){if(!p){h=l+1;break}}else u===-1&&(p=!1,u=l+1);return u===-1?"":a.slice(h,u)},extname:function(a){i(a);for(var c=-1,l=0,h=-1,u=!0,p=0,m=a.length-1;m>=0;--m){var g=a.charCodeAt(m);if(g!==47)h===-1&&(u=!1,h=m+1),g===46?c===-1?c=m:p!==1&&(p=1):c!==-1&&(p=-1);else if(!u){l=m+1;break}}return c===-1||h===-1||p===0||p===1&&c===h-1&&c===l+1?"":a.slice(c,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(c,l){var h=l.dir||l.root,u=l.base||(l.name||"")+(l.ext||"");return h?h===l.root?h+u:h+"/"+u:u}(0,a)},parse:function(a){i(a);var c={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return c;var l,h=a.charCodeAt(0),u=h===47;u?(c.root="/",l=1):l=0;for(var p=-1,m=0,g=-1,x=!0,S=a.length-1,D=0;S>=l;--S)if((h=a.charCodeAt(S))!==47)g===-1&&(x=!1,g=S+1),h===46?p===-1?p=S:D!==1&&(D=1):p!==-1&&(D=-1);else if(!x){m=S+1;break}return p===-1||g===-1||D===0||D===1&&p===g-1&&p===m+1?g!==-1&&(c.base=c.name=m===0&&u?a.slice(1,g):a.slice(m,g)):(m===0&&u?(c.name=a.slice(1,p),c.base=a.slice(1,g)):(c.name=a.slice(m,p),c.base=a.slice(m,g)),c.ext=a.slice(p,g)),m>0?c.dir=a.slice(0,m-1):u&&(c.dir="/"),c},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:()=>D,Utils:()=>W}),typeof vi=="object")o=vi.platform==="win32";else if(typeof navigator=="object"){var a=navigator.userAgent;o=a.indexOf("Windows")>=0}var c,l,h=(c=function(R,C){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var H in A)Object.prototype.hasOwnProperty.call(A,H)&&(E[H]=A[H])})(R,C)},function(R,C){function E(){this.constructor=R}c(R,C),R.prototype=C===null?Object.create(C):(E.prototype=C.prototype,new E)}),u=/^\w[\w\d+.-]*$/,p=/^\//,m=/^\/\//,g="",x="/",S=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,D=function(){function R(C,E,A,H,V,$){$===void 0&&($=!1),typeof C=="object"?(this.scheme=C.scheme||g,this.authority=C.authority||g,this.path=C.path||g,this.query=C.query||g,this.fragment=C.fragment||g):(this.scheme=function(re,ve){return re||ve?re:"file"}(C,$),this.authority=E||g,this.path=function(re,ve){switch(re){case"https":case"http":case"file":ve?ve[0]!==x&&(ve=x+ve):ve=x}return ve}(this.scheme,A||g),this.query=H||g,this.fragment=V||g,function(re,ve){if(!re.scheme&&ve)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+re.authority+'", path: "'+re.path+'", query: "'+re.query+'", fragment: "'+re.fragment+'"}');if(re.scheme&&!u.test(re.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(re.path){if(re.authority){if(!p.test(re.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(re.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,$))}return R.isUri=function(C){return C instanceof R||!!C&&typeof C.authority=="string"&&typeof C.fragment=="string"&&typeof C.path=="string"&&typeof C.query=="string"&&typeof C.scheme=="string"&&typeof C.fsPath=="function"&&typeof C.with=="function"&&typeof C.toString=="function"},Object.defineProperty(R.prototype,"fsPath",{get:function(){return T(this,!1)},enumerable:!1,configurable:!0}),R.prototype.with=function(C){if(!C)return this;var E=C.scheme,A=C.authority,H=C.path,V=C.query,$=C.fragment;return E===void 0?E=this.scheme:E===null&&(E=g),A===void 0?A=this.authority:A===null&&(A=g),H===void 0?H=this.path:H===null&&(H=g),V===void 0?V=this.query:V===null&&(V=g),$===void 0?$=this.fragment:$===null&&($=g),E===this.scheme&&A===this.authority&&H===this.path&&V===this.query&&$===this.fragment?this:new y(E,A,H,V,$)},R.parse=function(C,E){E===void 0&&(E=!1);var A=S.exec(C);return A?new y(A[2]||g,j(A[4]||g),j(A[5]||g),j(A[7]||g),j(A[9]||g),E):new y(g,g,g,g,g)},R.file=function(C){var E=g;if(o&&(C=C.replace(/\\/g,x)),C[0]===x&&C[1]===x){var A=C.indexOf(x,2);A===-1?(E=C.substring(2),C=x):(E=C.substring(2,A),C=C.substring(A)||x)}return new y("file",E,C,g,g)},R.from=function(C){return new y(C.scheme,C.authority,C.path,C.query,C.fragment)},R.prototype.toString=function(C){return C===void 0&&(C=!1),P(this,C)},R.prototype.toJSON=function(){return this},R.revive=function(C){if(C){if(C instanceof R)return C;var E=new y(C);return E._formatted=C.external,E._fsPath=C._sep===v?C.fsPath:null,E}return C},R}(),v=o?1:void 0,y=function(R){function C(){var E=R!==null&&R.apply(this,arguments)||this;return E._formatted=null,E._fsPath=null,E}return h(C,R),Object.defineProperty(C.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=T(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),C.prototype.toString=function(E){return E===void 0&&(E=!1),E?P(this,!0):(this._formatted||(this._formatted=P(this,!1)),this._formatted)},C.prototype.toJSON=function(){var E={$mid:1};return this._fsPath&&(E.fsPath=this._fsPath,E._sep=v),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},C}(D),k=((l={})[58]="%3A",l[47]="%2F",l[63]="%3F",l[35]="%23",l[91]="%5B",l[93]="%5D",l[64]="%40",l[33]="%21",l[36]="%24",l[38]="%26",l[39]="%27",l[40]="%28",l[41]="%29",l[42]="%2A",l[43]="%2B",l[44]="%2C",l[59]="%3B",l[61]="%3D",l[32]="%20",l);function F(R,C){for(var E=void 0,A=-1,H=0;H=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===45||V===46||V===95||V===126||C&&V===47)A!==-1&&(E+=encodeURIComponent(R.substring(A,H)),A=-1),E!==void 0&&(E+=R.charAt(H));else{E===void 0&&(E=R.substr(0,H));var $=k[V];$!==void 0?(A!==-1&&(E+=encodeURIComponent(R.substring(A,H)),A=-1),E+=$):A===-1&&(A=H)}}return A!==-1&&(E+=encodeURIComponent(R.substring(A))),E!==void 0?E:R}function N(R){for(var C=void 0,E=0;E1&&R.scheme==="file"?"//"+R.authority+R.path:R.path.charCodeAt(0)===47&&(R.path.charCodeAt(1)>=65&&R.path.charCodeAt(1)<=90||R.path.charCodeAt(1)>=97&&R.path.charCodeAt(1)<=122)&&R.path.charCodeAt(2)===58?C?R.path.substr(1):R.path[1].toLowerCase()+R.path.substr(2):R.path,o&&(E=E.replace(/\//g,"\\")),E}function P(R,C){var E=C?N:F,A="",H=R.scheme,V=R.authority,$=R.path,re=R.query,ve=R.fragment;if(H&&(A+=H,A+=":"),(V||H==="file")&&(A+=x,A+=x),V){var Me=V.indexOf("@");if(Me!==-1){var ut=V.substr(0,Me);V=V.substr(Me+1),(Me=ut.indexOf(":"))===-1?A+=E(ut,!1):(A+=E(ut.substr(0,Me),!1),A+=":",A+=E(ut.substr(Me+1),!1)),A+="@"}(Me=(V=V.toLowerCase()).indexOf(":"))===-1?A+=E(V,!1):(A+=E(V.substr(0,Me),!1),A+=V.substr(Me))}if($){if($.length>=3&&$.charCodeAt(0)===47&&$.charCodeAt(2)===58)(nt=$.charCodeAt(1))>=65&&nt<=90&&($="/"+String.fromCharCode(nt+32)+":"+$.substr(3));else if($.length>=2&&$.charCodeAt(1)===58){var nt;(nt=$.charCodeAt(0))>=65&&nt<=90&&($=String.fromCharCode(nt+32)+":"+$.substr(2))}A+=E($,!0)}return re&&(A+="?",A+=E(re,!1)),ve&&(A+="#",A+=C?ve:F(ve,!1)),A}function B(R){try{return decodeURIComponent(R)}catch(C){return R.length>3?R.substr(0,3)+B(R.substr(3)):R}}var se=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function j(R){return R.match(se)?R.replace(se,function(C){return B(C)}):R}var W,ue=s(470),Ce=function(){for(var R=0,C=0,E=arguments.length;C{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!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();const{URI:yi,Utils:wi}=Na;var ad=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=0;o--){var a=this.nodePath[o];if(a instanceof Zr)this.getCompletionsForDeclarationProperty(a.getParent(),s);else if(a instanceof Ao)a.parent instanceof ii?this.getVariableProposals(null,s):this.getCompletionsForExpression(a,s);else if(a instanceof Lt){var c=a.findAParent(f.ExtendsReference,f.Ruleset);if(c)if(c.type===f.ExtendsReference)this.getCompletionsForExtendsReference(c,a,s);else{var l=c;this.getCompletionsForSelector(l,l&&l.isNested(),s)}}else if(a instanceof Wt)this.getCompletionsForFunctionArgument(a,a.getParent(),s);else if(a instanceof Kr)this.getCompletionsForDeclarations(a,s);else if(a instanceof qn)this.getCompletionsForVariableDeclaration(a,s);else if(a instanceof Tt)this.getCompletionsForRuleSet(a,s);else if(a instanceof ii)this.getCompletionsForInterpolation(a,s);else if(a instanceof jn)this.getCompletionsForFunctionDeclaration(a,s);else if(a instanceof $n)this.getCompletionsForMixinReference(a,s);else if(a instanceof an)this.getCompletionsForFunctionArgument(null,a,s);else if(a instanceof ti)this.getCompletionsForSupports(a,s);else if(a instanceof ln)this.getCompletionsForSupportsCondition(a,s);else if(a instanceof cn)this.getCompletionsForExtendsReference(a,null,s);else if(a.type===f.URILiteral)this.getCompletionForUriLiteralValue(a,s);else if(a.parent===null)this.getCompletionForTopLevel(s);else if(a.type===f.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}},e.prototype.isImportPathParent=function(t){return t===f.Import},e.prototype.finalize=function(t){return t},e.prototype.findInNodePath=function(){for(var t=[],n=0;n=0;r--){var i=this.nodePath[r];if(t.indexOf(i.type)!==-1)return i}return null},e.prototype.getCompletionsForDeclarationProperty=function(t,n){return this.getPropertyProposals(t,n)},e.prototype.getPropertyProposals=function(t,n){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,s=this.isCompletePropertyWithSemicolonEnabled,o=this.cssDataManager.getProperties();return o.forEach(function(a){var c,l,h=!1;t?(c=r.getCompletionRange(t.getProperty()),l=a.name,Ie(t.colonPosition)||(l+=": ",h=!0)):(c=r.getCompletionRange(null),l=a.name+": ",h=!0),!t&&s&&(l+="$0;"),t&&!t.semicolonPosition&&s&&r.offset>=r.textDocument.offsetAt(c.end)&&(l+="$0;");var u={label:a.name,documentation:ht(a,r.doesSupportMarkdown()),tags:vn(a)?[wt.Deprecated]:[],textEdit:O.replace(c,l),insertTextFormat:Re.Snippet,kind:L.Property};a.restrictions||(h=!1),i&&h&&(u.command=Ta);var p=typeof a.relevance=="number"?Math.min(Math.max(a.relevance,0),99):50,m=(255-p).toString(16),g=le(a.name,"-")?Je.VendorPrefixed:Je.Normal;u.sortText=g+"_"+m,n.items.push(u)}),this.completionParticipants.forEach(function(a){a.onCssProperty&&a.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),n},Object.defineProperty(e.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var t,n;return(n=(t=this.documentSettings)===null||t===void 0?void 0:t.triggerPropertyValueCompletion)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var t,n;return(n=(t=this.documentSettings)===null||t===void 0?void 0:t.completePropertyWithSemicolon)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),e.prototype.getCompletionsForDeclarationValue=function(t,n){for(var r=this,i=t.getFullPropertyName(),s=this.cssDataManager.getProperty(i),o=t.getValue()||null;o&&o.hasChildren();)o=o.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(g){g.onCssPropertyValue&&g.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(o)})}),s){if(s.restrictions)for(var a=0,c=s.restrictions;a=t.offset+2&&this.getVariableProposals(null,n),n},e.prototype.getVariableProposals=function(t,n){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,q.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===f.Term&&(n=n.getParent()),t.restrictions)for(var o=0,a=t.restrictions;o=r.end;if(i)return this.getCompletionForTopLevel(n);var s=!r||this.offset<=r.offset;return s?this.getCompletionsForSelector(t,t.isNested(),n):this.getCompletionsForDeclarations(t.getDeclarations(),n)},e.prototype.getCompletionsForSelector=function(t,n,r){var i=this,s=this.findInNodePath(f.PseudoSelector,f.IdentifierSelector,f.ClassSelector,f.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=X.create(De.create(this.position.line,this.position.character-this.currentWord.length),this.position));var o=this.cssDataManager.getPseudoClasses();o.forEach(function(S){var D=jt(S.name),v={label:S.name,textEdit:O.replace(i.getCompletionRange(s),D),documentation:ht(S,i.doesSupportMarkdown()),tags:vn(S)?[wt.Deprecated]:[],kind:L.Function,insertTextFormat:S.name!==D?Qe:void 0};le(S.name,":-")&&(v.sortText=Je.VendorPrefixed),r.items.push(v)});var a=this.cssDataManager.getPseudoElements();if(a.forEach(function(S){var D=jt(S.name),v={label:S.name,textEdit:O.replace(i.getCompletionRange(s),D),documentation:ht(S,i.doesSupportMarkdown()),tags:vn(S)?[wt.Deprecated]:[],kind:L.Function,insertTextFormat:S.name!==D?Qe:void 0};le(S.name,"::-")&&(v.sortText=Je.VendorPrefixed),r.items.push(v)}),!n){for(var c=0,l=Kh;c0){var D=g.substr(S.offset,S.length);return D.charAt(0)==="."&&!m[D]&&(m[D]=!0,r.items.push({label:D,textEdit:O.replace(i.getCompletionRange(s),D),kind:L.Keyword})),!1}return!0}),t&&t.isNested()){var x=t.getSelectors().findFirstChildBeforeOffset(this.offset);x&&t.getSelectors().getChildren().indexOf(x)===0&&this.getPropertyProposals(null,r)}return r},e.prototype.getCompletionsForDeclarations=function(t,n){if(!t||this.offset===t.offset)return n;var r=t.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof Qr){var i=r;if(!Ie(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(Ie(i.semicolonPosition)&&i.semicolonPositiont.colonPosition&&this.getVariableProposals(t.getValue(),n),n},e.prototype.getCompletionsForExpression=function(t,n){var r=t.getParent();if(r instanceof Wt)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;var i=t.findParent(f.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;var s=t.findChildAtOffset(this.offset,!0);return s?s instanceof ri||s instanceof Ne?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)},e.prototype.getCompletionsForFunctionArgument=function(t,n,r){var i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===t)&&this.getVariableProposalsForCSSVarFunction(r),r},e.prototype.getCompletionsForFunctionDeclaration=function(t,n){var r=t.getDeclarations();return r&&this.offset>r.offset&&this.offsett.lParent&&(!Ie(t.rParent)||this.offset<=t.rParent)?this.getCompletionsForDeclarationProperty(null,n):n},e.prototype.getCompletionsForSupports=function(t,n){var r=t.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var s=t.findFirstChildBeforeOffset(this.offset);return s instanceof ln?this.getCompletionsForSupportsCondition(s,n):n}return this.getCompletionForTopLevel(n)},e.prototype.getCompletionsForExtendsReference=function(t,n,r){return r},e.prototype.getCompletionForUriLiteralValue=function(t,n){var r,i,s;if(t.hasChildren()){var a=t.getChild(0);r=a.getText(),i=this.position,s=this.getCompletionRange(a)}else{r="",i=this.position;var o=this.textDocument.positionAt(t.offset+4);s=X.create(o,o)}return this.completionParticipants.forEach(function(c){c.onCssURILiteralValue&&c.onCssURILiteralValue({uriValue:r,position:i,range:s})}),n},e.prototype.getCompletionForImportPath=function(t,n){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:t.getText(),position:r.position,range:r.getCompletionRange(t)})}),n},e.prototype.hasCharacterAtPosition=function(t,n){var r=this.textDocument.getText();return t>=0&&t=0&&` \r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}function La(e){return e.toLowerCase()in dn||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)}var Wa=function(){var e=function(t,n){return e=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])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wd=Pe(),Fi=function(){function e(){this.parent=null,this.children=null,this.attributes=null}return e.prototype.findAttribute=function(t){if(this.attributes)for(var n=0,r=this.attributes;n"),this.writeLine(n,i.join(""))},e}(),Ze;(function(e){function t(r,i){return i+n(r)+i}e.ensure=t;function n(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}e.remove=n})(Ze||(Ze={}));var xd=function(){function e(){this.id=0,this.attr=0,this.tag=0}return e}();function Ua(e,t){for(var n=new Fi,r=0,i=e.getChildren();r1){var l=t.cloneWithParent();n.addChild(l.findRoot()),n=l}n.append(o[c])}}break;case f.SelectorPlaceholder:if(s.matches("@at-root"))return n;case f.ElementNameSelector:var h=s.getText();n.addAttr("name",h==="*"?"element":Te(h));break;case f.ClassSelector:n.addAttr("class",Te(s.getText().substring(1)));break;case f.IdentifierSelector:n.addAttr("id",Te(s.getText().substring(1)));break;case f.MixinDeclaration:n.addAttr("class",s.getName());break;case f.PseudoSelector:n.addAttr(Te(s.getText()),"");break;case f.AttributeSelector:var u=s,p=u.getIdentifier();if(p){var m=u.getValue(),g=u.getOperator(),x=void 0;if(m&&g)switch(Te(g.getText())){case"|=":x=Ze.remove(Te(m.getText()))+"-\u2026";break;case"^=":x=Ze.remove(Te(m.getText()))+"\u2026";break;case"$=":x="\u2026"+Ze.remove(Te(m.getText()));break;case"~=":x=" \u2026 "+Ze.remove(Te(m.getText()))+" \u2026 ";break;case"*=":x="\u2026"+Ze.remove(Te(m.getText()))+"\u2026";break;default:x=Ze.remove(Te(m.getText()));break}n.addAttr(Te(p.getText()),x)}break}}return n}function Te(e){var t=new sn;t.setSource(e);var n=t.scanUnquotedString();return n?n.text:e}var Sd=function(){function e(t){this.cssDataManager=t}return e.prototype.selectorToMarkedString=function(t){var n=_d(t);if(n){var r=new Oa('"').print(n);return r.push(this.selectorToSpecificityMarkedString(t)),r}else return[]},e.prototype.simpleSelectorToMarkedString=function(t){var n=Ua(t),r=new Oa('"').print(n);return r.push(this.selectorToSpecificityMarkedString(t)),r},e.prototype.isPseudoElementIdentifier=function(t){var n=t.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1},e.prototype.selectorToSpecificityMarkedString=function(t){var n=this,r=function(s){for(var o=0,a=s.getChildren();o0&&r(c)}},i=new xd;return r(t),wd("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},e}(),Cd=function(){function e(t){this.prev=null,this.element=t}return e.prototype.processSelector=function(t){var n=null;if(!(this.element instanceof qt)&&t.getChildren().some(function(h){return h.hasChildren()&&h.getChild(0).type===f.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof qt&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,s=t.getChildren();i=0;o--){var a=n[o].getSelectors().getChild(0);a&&s.processSelector(a)}return s.processSelector(e),t}var Di=function(){function e(t,n){this.clientCapabilities=t,this.cssDataManager=n,this.selectorPrinting=new Sd(n)}return e.prototype.configure=function(t){this.defaultSettings=t},e.prototype.doHover=function(t,n,r,i){i===void 0&&(i=this.defaultSettings);function s(S){return X.create(t.positionAt(S.offset),t.positionAt(S.end))}for(var o=t.offsetAt(n),a=Xr(r,o),c=null,l=0;l0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=s.length/2&&o.push({property:D.name,score:v})}),o.sort(function(D,v){return v.score-D.score||D.property.localeCompare(v.property)});for(var a=3,c=0,l=o;c=0;c--){var l=a[c];if(l instanceof Ge){var h=l.getProperty();if(h&&h.offset===s&&h.end===o){this.getFixesForUnknownProperty(t,h,r,i);return}}}},e}(),Nd=function(){function e(t){this.fullPropertyName=t.getFullPropertyName().toLowerCase(),this.node=t}return e}();function yn(e,t,n,r){var i=e[t];i.value=n,n&&(ea(i.properties,r)||i.properties.push(r))}function Pd(e,t,n){yn(e,"top",t,n),yn(e,"right",t,n),yn(e,"bottom",t,n),yn(e,"left",t,n)}function be(e,t,n,r){t==="top"||t==="right"||t==="bottom"||t==="left"?yn(e,t,n,r):Pd(e,n,r)}function zi(e,t,n){switch(t.length){case 1:be(e,void 0,t[0],n);break;case 2:be(e,"top",t[0],n),be(e,"bottom",t[0],n),be(e,"right",t[1],n),be(e,"left",t[1],n);break;case 3:be(e,"top",t[0],n),be(e,"right",t[1],n),be(e,"left",t[1],n),be(e,"bottom",t[2],n);break;case 4:be(e,"top",t[0],n),be(e,"right",t[1],n),be(e,"bottom",t[2],n),be(e,"left",t[3],n);break}}function Mi(e,t){for(var n=0,r=t;n0)for(var x=this.fetch(r,"float"),S=0;S0)for(var x=this.fetch(r,"vertical-align"),S=0;S1)for(var N=0;N")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var n=this.createNode(f.Operator);return this.consumeToken(),this.finish(n)}return e.prototype._parseOperator.call(this)},t.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var n=this.create(M);return this.consumeToken(),this.finish(n)}return e.prototype._parseUnaryOperator.call(this)},t.prototype._parseRuleSetDeclaration=function(){return this.peek(d.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)||e.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||e.prototype._parseRuleSetDeclaration.call(this)},t.prototype._parseDeclaration=function(n){var r=this._tryParseCustomPropertyDeclaration(n);if(r)return r;var i=this.create(Ge);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(d.Colon))return this.finish(i,b.ColonExpected,[d.Colon],n||[d.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var s=!1;if(i.setValue(this._parseExpr())&&(s=!0,i.addChild(this._parsePrio())),this.peek(d.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!s)return this.finish(i,b.PropertyValueExpected);return this.peek(d.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},t.prototype._parseNestedProperties=function(){var n=this.create(ko);return this._parseBody(n,this._parseDeclaration.bind(this))},t.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var n=this.create(cn);if(this.consumeToken(),!n.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(n,b.SelectorExpected);for(;this.accept(d.Comma);)n.getSelectors().addChild(this._parseSimpleSelector());return this.accept(d.Exclamation)&&!this.acceptIdent("optional")?this.finish(n,b.UnknownKeyword):this.finish(n)}return null},t.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||e.prototype._parseSimpleSelectorBody.call(this)},t.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(f.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(d.Num)||this.accept(d.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},t.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var n=this.createNode(f.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(n)}else if(this.peekKeyword("@at-root")){var n=this.createNode(f.SelectorPlaceholder);return this.consumeToken(),this.finish(n)}return null},t.prototype._parseElementName=function(){var n=this.mark(),r=e.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(d.ParenthesisL)?(this.restoreAtMark(n),null):r},t.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||e.prototype._tryParsePseudoIdentifier.call(this)},t.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var n=this.createNode(f.Debug);return this.consumeToken(),n.addChild(this._parseExpr()),this.finish(n)},t.prototype._parseControlStatement=function(n){return n===void 0&&(n=this._parseRuleSetDeclaration.bind(this)),this.peek(d.AtKeyword)?this._parseIfStatement(n)||this._parseForStatement(n)||this._parseEachStatement(n)||this._parseWhileStatement(n):null},t.prototype._parseIfStatement=function(n){return this.peekKeyword("@if")?this._internalParseIfStatement(n):null},t.prototype._internalParseIfStatement=function(n){var r=this.create(hh);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,b.ExpressionExpected);if(this._parseBody(r,n),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(n));else if(this.peek(d.CurlyL)){var i=this.create(fh);this._parseBody(i,n),r.setElseClause(i)}}return this.finish(r)},t.prototype._parseForStatement=function(n){if(!this.peekKeyword("@for"))return null;var r=this.create(dh);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,Wi.ThroughOrToExpected,[d.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,b.ExpressionExpected,[d.CurlyR]):this.finish(r,b.ExpressionExpected,[d.CurlyR]):this.finish(r,Wi.FromExpected,[d.CurlyR]):this.finish(r,b.VariableNameExpected,[d.CurlyR])},t.prototype._parseEachStatement=function(n){if(!this.peekKeyword("@each"))return null;var r=this.create(uh);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,b.VariableNameExpected,[d.CurlyR]);for(;this.accept(d.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,b.VariableNameExpected,[d.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,n):this.finish(r,b.ExpressionExpected,[d.CurlyR]):this.finish(r,Wi.InExpected,[d.CurlyR])},t.prototype._parseWhileStatement=function(n){if(!this.peekKeyword("@while"))return null;var r=this.create(ph);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,b.ExpressionExpected,[d.CurlyR])},t.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},t.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var n=this.create(jn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([q.Function])))return this.finish(n,b.IdentifierExpected,[d.CurlyR]);if(!this.accept(d.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected,[d.CurlyR]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,b.VariableNameExpected)}return this.accept(d.ParenthesisR)?this._parseBody(n,this._parseFunctionBodyDeclaration.bind(this)):this.finish(n,b.RightParenthesisExpected,[d.CurlyR])},t.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var n=this.createNode(f.ReturnStatement);return this.consumeToken(),n.addChild(this._parseExpr())?this.finish(n):this.finish(n,b.ExpressionExpected)},t.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var n=this.create(hn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([q.Mixin])))return this.finish(n,b.IdentifierExpected,[d.CurlyR]);if(this.accept(d.ParenthesisL)){if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,b.VariableNameExpected)}if(!this.accept(d.ParenthesisR))return this.finish(n,b.RightParenthesisExpected,[d.CurlyR])}return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseParameterDeclaration=function(){var n=this.create(Bn);return n.setIdentifier(this._parseVariable())?(this.accept(hr),this.accept(d.Colon)&&!n.setDefaultValue(this._parseExpr(!0))?this.finish(n,b.VariableValueExpected,[],[d.Comma,d.ParenthesisR]):this.finish(n)):null},t.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var n=this.create(Mh);if(this.consumeToken(),this.accept(d.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,b.ExpressionExpected)}if(!this.accept(d.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}return this.finish(n)},t.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var n=this.create($n);this.consumeToken();var r=this._parseIdent([q.Mixin]);if(!n.setIdentifier(r))return this.finish(n,b.IdentifierExpected,[d.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([q.Mixin]);if(!i)return this.finish(n,b.IdentifierExpected,[d.CurlyR]);var s=this.create(No);r.referenceTypes=[q.Module],s.setIdentifier(r),n.setIdentifier(i),n.addChild(s)}if(this.accept(d.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,b.ExpressionExpected)}if(!this.accept(d.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(d.CurlyL))&&n.setContent(this._parseMixinContentDeclaration()),this.finish(n)},t.prototype._parseMixinContentDeclaration=function(){var n=this.create(Nh);if(this.acceptIdent("using")){if(!this.accept(d.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected,[d.CurlyL]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,b.VariableNameExpected)}if(!this.accept(d.ParenthesisR))return this.finish(n,b.RightParenthesisExpected,[d.CurlyL])}return this.peek(d.CurlyL)&&this._parseBody(n,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(n)},t.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},t.prototype._parseFunctionArgument=function(){var n=this.create(Wt),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(d.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},t.prototype._parseURLArgument=function(){var n=this.mark(),r=e.prototype._parseURLArgument.call(this);if(!r||!this.peek(d.ParenthesisR)){this.restoreAtMark(n);var i=this.create(M);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},t.prototype._parseOperation=function(){if(!this.peek(d.ParenthesisL))return null;var n=this.create(M);for(this.consumeToken();n.addChild(this._parseListElement());)this.accept(d.Comma);return this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected)},t.prototype._parseListElement=function(){var n=this.create(Ph),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(d.Colon)){if(n.setKey(r),!n.setValue(this._parseBinaryExpr()))return this.finish(n,b.ExpressionExpected)}else n.setValue(r);return this.finish(n)},t.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var n=this.create(gh);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,b.StringLiteralExpected);if(!this.peek(d.SemiColon)&&!this.peek(d.EOF)){if(!this.peekRegExp(d.Ident,/as|with/))return this.finish(n,b.UnknownKeyword);if(this.acceptIdent("as")&&!n.setIdentifier(this._parseIdent([q.Module]))&&!this.acceptDelim("*"))return this.finish(n,b.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(d.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected,[d.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,b.VariableNameExpected);for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,b.VariableNameExpected);if(!this.accept(d.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}}return!this.accept(d.SemiColon)&&!this.accept(d.EOF)?this.finish(n,b.SemiColonExpected):this.finish(n)},t.prototype._parseModuleConfigDeclaration=function(){var n=this.create(bh);return n.setIdentifier(this._parseVariable())?!this.accept(d.Colon)||!n.setValue(this._parseExpr(!0))?this.finish(n,b.VariableValueExpected,[],[d.Comma,d.ParenthesisR]):this.accept(d.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(n,b.UnknownKeyword):this.finish(n):null},t.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var n=this.create(vh);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,b.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(d.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected,[d.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,b.VariableNameExpected);for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,b.VariableNameExpected);if(!this.accept(d.ParenthesisR))return this.finish(n,b.RightParenthesisExpected)}if(!this.peek(d.SemiColon)&&!this.peek(d.EOF)){if(!this.peekRegExp(d.Ident,/as|hide|show/))return this.finish(n,b.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([q.Forward]);if(!n.setIdentifier(r))return this.finish(n,b.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(n,b.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!n.addChild(this._parseForwardVisibility()))return this.finish(n,b.IdentifierOrVariableExpected)}return!this.accept(d.SemiColon)&&!this.accept(d.EOF)?this.finish(n,b.SemiColonExpected):this.finish(n)},t.prototype._parseForwardVisibility=function(){var n=this.create(yh);for(n.setIdentifier(this._parseIdent());n.addChild(this._parseVariable()||this._parseIdent());)this.accept(d.Comma);return n.getChildren().length>1?n:null},t.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||e.prototype._parseSupportsCondition.call(this)},t}(ai),Kd=function(){var e=function(t,n){return e=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])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=Pe(),Qd=function(e){Kd(t,e);function t(n,r){var i=e.call(this,"$",n,r)||this;return el(t.scssModuleLoaders),el(t.scssModuleBuiltIns),i}return t.prototype.isImportPathParent=function(n){return n===f.Forward||n===f.Use||e.prototype.isImportPathParent.call(this,n)},t.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===f.Forward||i===f.Use)for(var s=0,o=t.scssModuleBuiltIns;s0){var n=typeof t.documentation=="string"?{kind:"markdown",value:t.documentation}:{kind:"markdown",value:t.documentation.value};n.value+=` `,n.value+=t.references.map(function(r){return"["+r.name+"]("+r.url+")"}).join(" | "),t.documentation=n}})}var Zd=function(){var e=function(t,n){return e=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])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tl=47,eu=10,tu=13,nu=12,Oi=96,Ui=46,ru=d.CustomToken,Vi=ru++,nl=function(e){Zd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.scanNext=function(n){var r=this.escapedJavaScript();return r!==null?this.finishToken(n,r):this.stream.advanceIfChars([Ui,Ui,Ui])?this.finishToken(n,Vi):e.prototype.scanNext.call(this,n)},t.prototype.comment=function(){return e.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([tl,tl])?(this.stream.advanceWhileChar(function(n){switch(n){case eu:case tu:case nu:return!1;default:return!0}}),!0):!1},t.prototype.escapedJavaScript=function(){var n=this.stream.peekChar();return n===Oi?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==Oi}),this.stream.advanceIfChar(Oi)?d.EscapedJavaScript:d.BadEscapedJavaScript):null},t}(sn),iu=function(){var e=function(t,n){return e=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])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),su=function(e){iu(t,e);function t(){return e.call(this,new nl)||this}return t.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(d.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||e.prototype._parseStylesheetAtStatement.call(this,n):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var n=this.create(ei);if(this.consumeToken(),this.accept(d.ParenthesisL)){if(!this.accept(d.Ident))return this.finish(n,b.IdentifierExpected,[d.SemiColon]);do if(!this.accept(d.Comma))break;while(this.accept(d.Ident));if(!this.accept(d.ParenthesisR))return this.finish(n,b.RightParenthesisExpected,[d.SemiColon])}return!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral())?this.finish(n,b.URIOrStringExpected,[d.SemiColon]):(!this.peek(d.SemiColon)&&!this.peek(d.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n))},t.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var n=this.createNode(f.Plugin);return this.consumeToken(),n.addChild(this._parseStringLiteral())?this.accept(d.SemiColon)?this.finish(n):this.finish(n,b.SemiColonExpected):this.finish(n,b.StringLiteralExpected)},t.prototype._parseMediaQuery=function(){var n=e.prototype._parseMediaQuery.call(this);if(!n){var r=this.create(Ro);return r.addChild(this._parseVariable())?this.finish(r):null}return n},t.prototype._parseMediaDeclaration=function(n){return n===void 0&&(n=!1),this._tryParseRuleset(n)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(n)},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},t.prototype._parseVariableDeclaration=function(n){n===void 0&&(n=[]);var r=this.create(qn),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(d.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,b.VariableValueExpected,[],n);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(d.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},t.prototype._parseDetachedRuleSet=function(){var n=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(d.ParenthesisL)){var r=this.create(hn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(d.Comma)||this.accept(d.SemiColon))&&!this.peek(d.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,b.IdentifierExpected,[],[d.ParenthesisR]);if(!this.accept(d.ParenthesisR))return this.restoreAtMark(n),null}else return this.restoreAtMark(n),null;if(!this.peek(d.CurlyL))return null;var i=this.create(ne);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},t.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},t.prototype._addLookupChildren=function(n){if(!n.addChild(this._parseLookupValue()))return!1;for(var r=!1;this.peek(d.BracketL)&&(r=!0),!!n.addChild(this._parseLookupValue());)r=!1;return!r},t.prototype._parseLookupValue=function(){var n=this.create(M),r=this.mark();return this.accept(d.BracketL)?(n.addChild(this._parseVariable(!1,!0))||n.addChild(this._parsePropertyIdentifier()))&&this.accept(d.BracketR)||this.accept(d.BracketR)?n:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},t.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(d.AtKeyword))return null;for(var s=this.create(si),o=this.mark();this.acceptDelim("@")||!n&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(o),null;return!this.accept(d.AtKeyword)&&!this.accept(d.Ident)?(this.restoreAtMark(o),null):!r&&this.peek(d.BracketL)&&!this._addLookupChildren(s)?(this.restoreAtMark(o),null):s},t.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||e.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},t.prototype._parseEscaped=function(){if(this.peek(d.EscapedJavaScript)||this.peek(d.BadEscapedJavaScript)){var n=this.createNode(f.EscapedValue);return this.consumeToken(),this.finish(n)}if(this.peekDelim("~")){var n=this.createNode(f.EscapedValue);return this.consumeToken(),this.accept(d.String)||this.accept(d.EscapedJavaScript)?this.finish(n):this.finish(n,b.TermExpected)}return null},t.prototype._parseOperator=function(){var n=this._parseGuardOperator();return n||e.prototype._parseOperator.call(this)},t.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var n=this.createNode(f.Operator);return this.consumeToken(),this.acceptDelim("="),n}else if(this.peekDelim("=")){var n=this.createNode(f.Operator);return this.consumeToken(),this.acceptDelim("<"),n}else if(this.peekDelim("<")){var n=this.createNode(f.Operator);return this.consumeToken(),this.acceptDelim("="),n}return null},t.prototype._parseRuleSetDeclaration=function(){return this.peek(d.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||e.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||e.prototype._parseRuleSetDeclaration.call(this)},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([q.Keyframe])||this._parseVariable()},t.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||e.prototype._parseKeyframeSelector.call(this)},t.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||e.prototype._parseSimpleSelectorBody.call(this)},t.prototype._parseSelector=function(n){var r=this.create(on),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(d.CurlyL))break;this.restoreAtMark(s),r.addChild(this._parseCombinator())}return i?this.finish(r):null},t.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(f.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(d.Num)||this.accept(d.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},t.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var n=this.createNode(f.SelectorInterpolation),r=this._acceptInterpolatedIdent(n);return r?this.finish(n):null},t.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(Ne);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)},t.prototype.peekInterpolatedIdent=function(){return this.peek(d.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},t.prototype._acceptInterpolatedIdent=function(n,r){for(var i=this,s=!1,o=function(){var c=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(c),null):i._parseInterpolation()},a=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(d.Ident)};(a()||n.addChild(this._parseInterpolation()||this.try(o)))&&(s=!0,!this.hasWhitespace()););return s},t.prototype._parseInterpolation=function(){var n=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(f.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(d.CurlyL)?(this.restoreAtMark(n),null):r.addChild(this._parseIdent())?this.accept(d.CurlyR)?this.finish(r):this.finish(r,b.RightCurlyExpected):this.finish(r,b.IdentifierExpected)}return null},t.prototype._tryParseMixinDeclaration=function(){var n=this.mark(),r=this.create(hn);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(d.ParenthesisL))return this.restoreAtMark(n),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(d.Comma)||this.accept(d.SemiColon))&&!this.peek(d.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,b.IdentifierExpected,[],[d.ParenthesisR]);return this.accept(d.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(d.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(n),null)):(this.restoreAtMark(n),null)},t.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},t.prototype._parseMixinDeclarationIdentifier=function(){var n;if(this.peekDelim("#")||this.peekDelim(".")){if(n=this.create(Ne),this.consumeToken(),this.hasWhitespace()||!n.addChild(this._parseIdent()))return null}else if(this.peek(d.Hash))n=this.create(Ne),this.consumeToken();else return null;return n.referenceTypes=[q.Mixin],this.finish(n)},t.prototype._parsePseudo=function(){if(!this.peek(d.Colon))return null;var n=this.mark(),r=this.create(cn);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(n),e.prototype._parsePseudo.call(this))},t.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var n=this.mark(),r=this.create(cn);return this.consumeToken(),this.hasWhitespace()||!this.accept(d.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(n),null):this._completeExtends(r)},t.prototype._completeExtends=function(n){if(!this.accept(d.ParenthesisL))return this.finish(n,b.LeftParenthesisExpected);var r=n.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(n,b.SelectorExpected);for(;this.accept(d.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(n,b.SelectorExpected);return this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected)},t.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(d.AtKeyword))return null;var n=this.mark(),r=this.create($n);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(d.ParenthesisL))?(this.restoreAtMark(n),null):this.accept(d.ParenthesisR)?this.finish(r):this.finish(r,b.RightParenthesisExpected)},t.prototype._tryParseMixinReference=function(n){n===void 0&&(n=!0);for(var r=this.mark(),i=this.create($n),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(d.ParenthesisL)){if(a=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(d.Comma)||this.accept(d.SemiColon))&&!this.peek(d.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,b.ExpressionExpected)}if(!this.accept(d.ParenthesisR))return this.finish(i,b.RightParenthesisExpected);s.referenceTypes=[q.Mixin]}else s.referenceTypes=[q.Mixin,q.Rule];return this.peek(d.BracketL)?n||this._addLookupChildren(i):i.addChild(this._parsePrio()),!a&&!this.peek(d.SemiColon)&&!this.peek(d.CurlyR)&&!this.peek(d.EOF)?(this.restoreAtMark(r),null):this.finish(i)},t.prototype._parseMixinArgument=function(){var n=this.create(Wt),r=this.mark(),i=this._parseVariable();return i&&(this.accept(d.Colon)?n.setIdentifier(i):this.restoreAtMark(r)),n.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(n):(this.restoreAtMark(r),null)},t.prototype._parseMixinParameter=function(){var n=this.create(Bn);if(this.peekKeyword("@rest")){var r=this.create(M);return this.consumeToken(),this.accept(Vi)?(n.setIdentifier(this.finish(r)),this.finish(n)):this.finish(n,b.DotExpected,[],[d.Comma,d.ParenthesisR])}if(this.peek(Vi)){var i=this.create(M);return this.consumeToken(),n.setIdentifier(this.finish(i)),this.finish(n)}var s=!1;return n.setIdentifier(this._parseVariable())&&(this.accept(d.Colon),s=!0),!n.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!s?null:this.finish(n)},t.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var n=this.create(Ih);if(this.consumeToken(),n.isNegated=this.acceptIdent("not"),!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,b.ConditionExpected);for(;this.acceptIdent("and")||this.accept(d.Comma);)if(!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,b.ConditionExpected);return this.finish(n)},t.prototype._parseGuardCondition=function(){if(!this.peek(d.ParenthesisL))return null;var n=this.create(Th);return this.consumeToken(),n.addChild(this._parseExpr()),this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,b.RightParenthesisExpected)},t.prototype._parseFunction=function(){var n=this.mark(),r=this.create(an);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(d.ParenthesisL))return this.restoreAtMark(n),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(d.Comma)||this.accept(d.SemiColon))&&!this.peek(d.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,b.ExpressionExpected)}return this.accept(d.ParenthesisR)?this.finish(r):this.finish(r,b.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var n=this.create(Ne);return n.referenceTypes=[q.Function],this.consumeToken(),this.finish(n)}return e.prototype._parseFunctionIdentifier.call(this)},t.prototype._parseURLArgument=function(){var n=this.mark(),r=e.prototype._parseURLArgument.call(this);if(!r||!this.peek(d.ParenthesisR)){this.restoreAtMark(n);var i=this.create(M);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},t}(ai),ou=function(){var e=function(t,n){return e=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])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=Pe(),au=function(e){ou(t,e);function t(n,r){return e.call(this,"@",n,r)||this}return t.prototype.createFunctionProposals=function(n,r,i,s){for(var o=0,a=n;o 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:I("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:I("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:I("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:I("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:I("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:I("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:I("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:I("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:I("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:I("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],t.colorProposals=[{name:"argb",example:"argb(@color);",description:I("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:I("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:I("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:I("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:I("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:I("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:I("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:I("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:I("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:I("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:I("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:I("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:I("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:I("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:I("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:I("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:I("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:I("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:I("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:I("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:I("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:I("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:I("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:I("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:I("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:I("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:I("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);"}],t}(ki);function lu(e,t){var n=cu(e);return hu(n,t)}function cu(e){function t(u){return e.positionAt(u.offset).line}function n(u){return e.positionAt(u.offset+u.len).line}function r(){switch(e.languageId){case"scss":return new Za;case"less":return new nl;default:return new sn}}function i(u,p){var m=t(u),g=n(u);return m!==g?{startLine:m,endLine:g,kind:p}:null}var s=[],o=[],a=r();a.ignoreComment=!1,a.setSource(e.getText());for(var c=a.scan(),l=null,h=function(){switch(c.type){case d.CurlyL:case cr:{o.push({line:t(c),type:"brace",isStart:!0});break}case d.CurlyR:{if(o.length!==0){var u=rl(o,"brace");if(!u)break;var p=n(c);u.type==="brace"&&(l&&n(l)!==p&&p--,u.line!==p&&s.push({startLine:u.line,endLine:p,kind:void 0}))}break}case d.Comment:{var m=function(D){return D==="#region"?{line:t(c),type:"comment",isStart:!0}:{line:n(c),type:"comment",isStart:!1}},g=function(D){var v=D.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(v)return m(v[1]);if(e.languageId==="scss"||e.languageId==="less"){var y=D.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(y)return m(y[1])}return null},x=g(c);if(x)if(x.isStart)o.push(x);else{var u=rl(o,"comment");if(!u)break;u.type==="comment"&&u.line!==x.line&&s.push({startLine:u.line,endLine:x.line,kind:"region"})}else{var S=i(c,"comment");S&&s.push(S)}break}}l=c,c=a.scan()};c.type!==d.EOF;)h();return s}function rl(e,t){if(e.length===0)return null;for(var n=e.length-1;n>=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}function hu(e,t){var n=t&&t.rangeLimit||Number.MAX_VALUE,r=e.sort(function(o,a){var c=o.startLine-a.startLine;return c===0&&(c=o.endLine-a.endLine),c}),i=[],s=-1;return r.forEach(function(o){o.startLine && ]#",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:61,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:51,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:52,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:70,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:52,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:"