code-server
Version:
Run VS Code on a remote server.
27 lines • 233 kB
JavaScript
"use strict";var Rf=Object.create;var en=Object.defineProperty;var _f=Object.getOwnPropertyDescriptor;var Lf=Object.getOwnPropertyNames;var jf=Object.getPrototypeOf,Ff=Object.prototype.hasOwnProperty;var J=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var X=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},_r=(e,t)=>{for(var n in t)en(e,n,{get:t[n],enumerable:!0})},Ho=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Lf(t))!Ff.call(e,i)&&i!==n&&en(e,i,{get:()=>t[i],enumerable:!(r=_f(t,i))||r.enumerable});return e};var G=(e,t,n)=>(n=e!=null?Rf(jf(e)):{},Ho(t||!e||!e.__esModule?en(n,"default",{value:e,enumerable:!0}):n,e)),Go=e=>Ho(en({},"__esModule",{value:!0}),e);var Lr,Je,jr=J(()=>{Lr=class{constructor(t,n,r){r==null&&typeof t=="string"&&(r=t.length),this.string=t,this.pos=this.start=n||0,this.end=r}eof(){return this.pos>=this.end}limit(t,n){return new this.constructor(this.string,t,n)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(t){let n=this.peek(),r=typeof t=="function"?t(n):n===t;return r&&this.next(),r}eatWhile(t){let n=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==n}backUp(t){this.pos-=t||1}current(){return this.substring(this.start,this.pos)}substring(t,n){return this.string.slice(t,n)}error(t){let n=new Error(`${t} at char ${this.pos+1}`);return n.originalMessage=t,n.pos=this.pos,n.string=this.string,n}},Je=Lr});function Xe(e){return e===39||e===34}function ze(e){return e>47&&e<58}function tn(e,t,n){return t=t||65,n=n||90,e&=-33,e>=t&&e<=n}function Jo(e){return ze(e)||tn(e)}function zf(e){return e===32||e===9||e===160}function Re(e){return zf(e)||e===10||e===13}function _e(e,t,n,r){r=r?Object.assign({},Yo,r):Yo;let i=e.pos;if(e.eat(t)){let o=1,s;for(;!e.eof();)if(!Fr(e,r))if(s=e.next(),s===t)o++;else if(s===n){if(o--,!o)return e.start=i,!0}else s===r.escape&&e.next();if(e.pos=i,r.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}var Qo,Fr,Yo,zr=J(()=>{Qo={escape:92,throws:!1},Fr=function(e,t){t=t?Object.assign({},Qo,t):Qo;let n=e.pos,r=e.peek();if(e.eat(Xe)){for(;!e.eof();)switch(e.next()){case r:return e.start=n,!0;case t.escape:e.next();break}if(e.pos=n,t.throws)throw e.error("Unable to consume quoted string")}return!1};Yo={escape:92,throws:!1}});function Df(e,t){let n=e.pos;if(e.eatWhile(t))return new rn(e,n,e.pos);e.pos=n}function Xf(e){return Ko(e)||Le(e,Kf)}function Zf(e){let t=e.pos;if(Fr(e)){let n=e.pos,r,i;e.pos=t,e.next(),r=e.start=e.pos,e.pos=n,e.backUp(1),i=e.pos;let o=Le(e,r,i);return e.pos=n,o}return Ko(e)||ed(e)}function Kf(e){return e!==es&&!Ur(e)&&!Re(e)}function Ur(e){return e===Yf||e===Qf}function ed(e){return Le(e,td)}function td(e){return!isNaN(e)&&!Xe(e)&&!Re(e)&&!Ur(e)}function ld(e){return Le(e,ud)}function ud(e){return Jo(e)||e===id||e===rd||e===nd||e===ad}function Dr(e,t){let n=e.pos;for(let r=0;r<t.length;r++)if(!e.eat(t[r]))return e.pos=n,!1;return e.start=n,!0}function ns(e,t,n,r){let i=e.pos;if(Dr(e,t)){for(;!e.eof();){if(Dr(e,n))return!0;e.next()}return r?!0:(e.pos=i,!1)}return e.pos=i,null}function Tt(e){return e.split("").map(t=>t.charCodeAt(0))}function bd(e,t){t=Object.assign({},gd,t);let n=typeof e=="string"?new Je(e):e,r=new St(n,"root"),i=new Set(t.empty),o=t.special.reduce((f,h)=>f.set(h,Tt(`</${h}>`)),new Map),s=(f,h)=>f.selfClosing||!t.xml&&i.has(h),a,l,u,c=[r];for(;!n.eof();)if(a=vd(n))if(u=yd(a),a.type==="open")l=new St(n,"tag",a),Zo(c).addChild(l),o.has(u)?l.close=xd(n,o.get(u)):s(a,u)||c.push(l);else if(a.type==="close"){for(let f=c.length-1;f>0;f--)if(c[f].name.toLowerCase()===u){c[f].close=a,c=c.slice(0,f);break}}else Zo(c).addChild(new St(n,a.type,a));else n.next();return r}function vd(e){if(e.peek()===60)return dd(e)||md(e)||ts(e)}function xd(e,t){let n=e.pos,r;for(;!e.eof();){if(Dr(e,t))return e.pos=e.start,ts(e);e.next()}return e.pos=n,null}function yd(e){return e.name?e.name.value.toLowerCase():`#${e.type}`}function Zo(e){return e[e.length-1]}var St,Le,rn,Uf,Bf,Mf,qf,Vf,Wf,Hf,Gf,nn,Ko,Qf,es,Yf,Jf,nd,rd,Xo,id,od,sd,ad,ts,cd,fd,dd,pd,hd,md,gd,Et,Br=J(()=>{jr();zr();St=class{constructor(t,n,r,i){this.stream=t,this.type=n,this.open=r,this.close=i,this.children=[],this.parent=null}get name(){return this.type==="tag"&&this.open?this.open&&this.open.name&&this.open.name.value:"#"+this.type}get attributes(){return this.open&&this.open.attributes}get start(){return this.open&&this.open.start}get end(){return this.close?this.close.end:this.open&&this.open.end}get firstChild(){return this.children[0]}get nextSibling(){let t=this.getIndex();return t!==-1?this.parent.children[t+1]:null}get previousSibling(){let t=this.getIndex();return t!==-1?this.parent.children[t-1]:null}getIndex(){return this.parent?this.parent.children.indexOf(this):-1}addChild(t){return this.removeChild(t),this.children.push(t),t.parent=this,this}removeChild(t){let n=this.children.indexOf(t);return n!==-1&&(this.children.splice(n,1),t.parent=null),this}},Le=function(e,t,n){return typeof t=="function"?Df(e,t):new rn(e,t,n)};rn=class{constructor(t,n,r){this.stream=t,this.start=n??t.start,this.end=r??t.pos,this._value=null}get value(){if(this._value===null){let t=this.stream.start,n=this.stream.pos;this.stream.start=this.start,this.stream.pos=this.end,this._value=this.stream.current(),this.stream.start=t,this.stream.pos=n}return this._value}toString(){return this.value}valueOf(){return`${this.value} [${this.start}; ${this.end}]`}},Uf=60,Bf=62,Mf=91,qf=93,Vf=40,Wf=41,Hf=123,Gf=125,nn={throws:!0},Ko=function(e){let t=e.pos;if(_e(e,Uf,Bf,nn)||_e(e,Mf,qf,nn)||_e(e,Vf,Wf,nn)||_e(e,Hf,Gf,nn))return Le(e,t)},Qf=47,es=61,Yf=62,Jf=function(e){let t=[],n,r,i;for(;!e.eof();)if(e.eatWhile(Re),i={start:e.pos},i.name=Xf(e))e.eat(es)?i.value=Zf(e):i.boolean=!0,i.end=e.pos,t.push(i);else{if(Ur(e.peek()))break;e.next()}return t};nd=45,rd=46,Xo=47,id=58,od=60,sd=62,ad=95,ts=function(e){let t=e.pos;if(e.eat(od)){let n={type:e.eat(Xo)?"close":"open"};if((n.name=ld(e))&&(n.type!=="close"&&(n.attributes=Jf(e),e.eatWhile(Re),n.selfClosing=e.eat(Xo)),e.eat(sd)))return Object.assign(Le(e,t),n)}return e.pos=t,null};cd=Tt("<!--"),fd=Tt("-->"),dd=function(e){let t=e.pos;if(ns(e,cd,fd,!0)){let n=Le(e,t);return n.type="comment",n}return null},pd=Tt("<![CDATA["),hd=Tt("]]>"),md=function(e){let t=e.pos;if(ns(e,pd,hd,!0)){let n=Le(e,t);return n.type="cdata",n}return null},gd={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};Et=bd});function wd(e){e=e.slice();let t;for(;t!==e.length;)t=e.length,Vr(e[0])&&e.shift(),Vr(et(e))&&e.pop();return e}function cs(e){return wd(e,Vr)}function Vr(e){let t=e&&e.type;return t==="whitespace"||t==="comment"}function fs(e,t){let n=e.pos;for(let r=0,i=t.length;r<i;r++)if(!e.eat(t.charCodeAt(r)))return e.pos=n,!1;return!0}function Wr(e,t){let n=e.pos;return e.eat(t)?(e.start=n,!0):!1}function At(e,t){let n=e.pos;return e.eatWhile(t)?(e.start=n,!0):!1}function et(e){return e[e.length-1]}function De(e){return e&&e.valueOf()}function Sd(e){if(Td(e.peek())){let t=e.pos,n=kd.get(e.next()),r=new j(e,"separator",t);return r.property("type",n),r}}function Td(e){return e===ds||e===ps||e===hs||e===Ke||e===tt}function Cd(e){return e===Ke||e===tt}function Nd(e,t,n){let r=new j(e,"arguments"),i=n?ms:Pd,o=[];for(let s=0,a=t.length,l;s<a;s++)l=t[s],i(l)?(r.add(is(e,o)||Id(e,l.start)),o.length=0):o.push(l);return o.length&&r.add(is(e,o)),r}function is(e,t){if(t=cs(t),t.length){let n=new j(e,"argument",t[0].start,et(t).end);for(let r=0;r<t.length;r++)n.add(t[r]);return n}}function Id(e,t){let n=new j(e,"argument",t,t);return n.property("empty",!0),n}function Pd(e){return e.property("type")==="comma"}function ms(e){return e.property("type")==="propertyTerminator"}function Ee(e){return bs(e)&&new j(e,"ident")}function bs(e){let t=e.pos;return e.eat(gs),e.eat(vs)?(e.eatWhile(xs),e.start=t,!0):(e.pos=t,!1)}function vs(e){return e===Od||e===gs||tn(e)||e>=128}function xs(e){return ze(e)||vs(e)}function nt(e,t,n,r,i){let o=e.pos;if(e.eat(n)){let s=r(e,o);if(s||i)return e.start=o,new j(e,t,o).add(s)}e.pos=o}function Yr(e){return nt(e,"at-keyword",$d,Ee)}function Jr(e,t){let n=e.pos;if(t=t||_d,(e.eat(ys)||e.eat(ws))&&e.eat(Ke)){let r=new j(e,"interpolation",n),i=1,o;for(;!e.eof();)if(e.eat(Ke))i++;else if(e.eat(tt)){if(i--,!i)return r.end=e.pos,r}else if(o=t(e))r.add(o);else break}e.pos=n}function Rd(e){let t=e.pos;return(e.eat(ys)||e.eat(ws))&&_e(e,Ke,tt)?(e.start=t,!0):(e.pos=t,!1)}function _d(e){let t=e.pos;for(;!e.eof()&&e.peek()!==tt;)Ct(e)||e.next();if(t!==e.pos)return new j(e,"expression",t)}function Xr(e){return Ct(e,!0)}function Ct(e,t){let n=e.peek(),r,i,o;if(Xe(n)){e.start=e.pos,e.next();let s=n,a=e.pos;for(;!e.eof()&&(r=e.pos,!(e.eat(s)||e.eat(os)));)e.eat(92)?e.eat(os):t&&(o=Jr(e))&&(i?i.push(o):i=[o]),e.next();if(t){let l=new j(e,"string"),u=new j(e,"unquoted",a,r);return u.add(i),l.add(u),l.property("quote",s),l}return!0}return!1}function os(e){return e===10||e===13}function Ld(e){if(ks(e)){let t=new j(e,"comment");return t.property("type","single-line"),t}}function jd(e){if(Ss(e)){let t=new j(e,"comment");return t.property("type","multiline"),t}}function Fd(e){return ks(e)||Ss(e)}function ks(e){let t=e.pos;if(e.eat(sn)&&e.eat(sn)){for(e.start=t;!e.eof()&&!zd(e.next()););return!0}return e.pos=t,!1}function Ss(e){let t=e.pos;if(e.eat(sn)&&e.eat(ss)){for(;!e.eof()&&!(e.next()===ss&&e.eat(sn)););return e.start=t,!0}return e.pos=t,!1}function zd(e){return e===10||e===13}function Dd(e){return Ue(e)&&new j(e,"whitespace")}function Ue(e){return At(e,Re)}function Md(e){let t=e.pos;if(e.eat(Ud)){on(e);let n=Ee(e);on(e);let r=qd(e);on(e);let i=Xr(e)||Ee(e);return on(e),e.eat(Bd),new j(e,"attribute",t).add(n).add(r).add(i)}}function on(e){for(;!e.eof();)if(!Ue(e)&&!Fd(e))return!0}function qd(e){return At(e,Vd)&&new j(e,"operator")}function Vd(e){return e===126||e===124||e===94||e===36||e===42||e===61}function Kr(e){if(Ts(e))return new j(e,"backtick")}function Ts(e){let t=e.pos;return _e(e,as,as)?(e.start=t,!0):!1}function Hd(e){return nt(e,"class",Wd,Ee)}function Yd(e){return e===Es||e===As||e===Ns||e===Cs}function Xd(e){return nt(e,"hash",Jd,Zd,!0)}function Zd(e){if(Kd(e))return new j(e,"hash-value")}function Kd(e){return At(e,ep)}function ep(e){return ze(e)||tn(e,65,70)||e===95||e===45||e>128}function np(e){return nt(e,"id",tp,Ee)}function ip(e){return nt(e,"important",rp,Ee)}function op(e){if(sp(e)){let t=e.start,n=new j(e,"value"),r=ap(e)?new j(e,"unit"):null;return new j(e,"number",t).add(n).add(r)}}function sp(e){let t=e.pos;if(e.eat(up),e.eatWhile(ze)){e.start=t;let n=e.pos;return e.eat(ls)&&e.eatWhile(ze)||(e.pos=n),!0}else if(e.eat(ls)&&e.eatWhile(ze))return e.start=t,!0;return e.pos=t,!1}function ap(e){return bs(e)||lp(e)}function lp(e){return Wr(e,37)}function up(e){return e===45||e===43}function bp(e){return vp(e)&&new j(e,"operator")}function vp(e){return Wr(e,Ps)?(e.eatWhile(Is),!0):!!Wr(e,xp)}function Ps(e){return e===cp||e===mp||e===Is||e===gp}function xp(e){return e===fp||e===dp||e===pp||e===hp||Ps(e)}function Os(e){return At(e,Sp)}function Sp(e){return!isNaN(e)&&!Xe(e)&&!Re(e)&&e!==40&&e!==41&&e!==92&&!Tp(e)}function Tp(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function $s(e){let t=e.pos;if(fs(e,"url(")){Ue(e);let n=Xr(e)||kp(e);return Ue(e),e.eat(41),new j(e,"url",t).add(n)}e.pos=t}function Rs(e){let t=e.pos;return fs(e,"url(")?(Ue(e),Ct(e)||Os(e),Ue(e),e.eat(41),e.start=t,!0):(e.pos=t,!1)}function Ep(e){return nt(e,"variable",_s,Ap)}function Ap(e){if(Cp(e))return new j(e,"name")}function Cp(e){return At(e,Np)}function Np(e){return e===_s||xs(e)}function an(e){let t=Ip(e)||rs(e,an);if(t&&t.type==="ident"){let n=rs(e,an);if(n)return new j(e,"function",t.start,n.end).add(t).add(n)}return t||_p(e)}function Ip(e){return Rp(e)||$s(e)||Pp(e)||Op(e)||Sd(e)}function Pp(e){return Jr(e)||Kr(e)||Ee(e)||Yr(e)||Hd(e)||np(e)||wp(e)||Md(e)||Qd(e)}function Op(e){return $s(e)||Xr(e)||Jr(e)||Kr(e)||op(e)||Xd(e)||$p(e)||ip(e)||bp(e)}function $p(e){return Kr(e)||Ep(e)||Yr(e)||Ee(e)}function Rp(e){return Zr(e)||Dd(e)}function _p(e){if(e.start=e.pos,e.next()!=null)return new j(e,"unknown")}function Lp(e){return ei(e,"selector")}function jp(e){let t=typeof e=="string"?new Je(e):e,n=[];for(;!t.eof();)n.push(an(t));let r;if(n.length===1)r=n[0];else{r=new j(t,"property-name",t.start,t.end);for(let i=0,o=n.length;i<o;i++)r.add(n[i])}return r}function Fp(e){return ei(e)}function zp(e){return ei(e)}function ei(e,t){t=t||"item";let n=typeof e=="string"?new Je(e):e,r=[],i=[],o=()=>{let a=cs(i);if(a.length){let l=new j(n,t,a[0].start,et(a).end);for(let u=0;u<a.length;u++)l.add(a[u]);r.push(l)}i.length=0},s;for(;!n.eof();)if(n.eat(44))o();else if(s=an(n))s.type!=="comment"&&i.push(s);else throw n.error("Unexpected character");return o(),r}function Dp(e,t,n,r){if(!t.length)return null;let i=t[0];return i.end=et(t).end,new Hr(e,i,n,r)}function Up(e,t,n,r){if(!t.length)return null;let i=0,o,s=t[i++];return i<t.length?(o=t[i++],o.type="expression",o.end=et(t).end):o=new j(e,"expression",s.end,s.end),new Gr(e,s,o,n,r)}function Mr(e,t,n){if(!t.length)return null;let r,i,o=0,s=t[o++];return o<t.length&&(i=t[o++],i.type="value",i.end=et(t).end),s&&i&&(r=new j(e,"separator",s.end,i.start)),new Qr(e,s,i,r,n)}function Hp(e){let t=typeof e=="string"?new Je(e):e,n=new qr,r=n,i,o,s,a=[],l=()=>{o&&(a.push(o),o=null)};for(;!t.eof();)if(!Ue(t)){if(s=Zr(t)){n.addComment(s);continue}if(t.start=t.pos,t.eatWhile(Mp))a.length||(o?l():o=new j(t,"preparse"));else if(t.eat(qp))l(),r.add(Mr(t,a,new j(t,"termintator"))),a.length=0;else if(t.eat(Vp))l(),a.length>0&&(i=a[0].type==="at-keyword"?Up(t,a,new j(t,"body-start")):Dp(t,a,new j(t,"body-start")),r.add(i),r=i,a.length=0);else if(t.eat(Wp))l(),r.add(Mr(t,a)),r.type!=="stylesheet"&&(r.contentEndToken=new j(t,"body-end"),r=r.parent),a.length=0;else if(s=Yr(t))l(),a.push(s);else if(Rs(t)||Rd(t)||Ts(t)||Gp(t,n)||Ct(t)||t.next())o=o||new j(t,"preparse"),o.end=t.pos;else throw new Error(`Unexpected end-of-stream at ${t.pos}`)}for(o&&a.push(o),r.add(Mr(t,a)),t.start=t.pos;r&&r!==n;)r.contentEndToken=new j(t,"body-end"),r=r.parent;return n}function Gp(e,t){if(e.eat(us)){let n=1,r;for(;!e.eof();)if(e.eat(Bp)){if(n--,!n)break}else if(e.eat(us))n++;else{if(Rs(e)||Ct(e))continue;if(r=Zr(e)){t.addComment(r);continue}else e.next()}return!0}return!1}var Ze,qr,j,ds,ps,hs,Ke,tt,kd,Ed,Ad,rs,gs,Od,$d,ys,ws,ss,sn,Zr,Ud,Bd,as,Wd,Es,As,Cs,Ns,Gd,Qd,Jd,tp,rp,ls,cp,fp,dp,pp,hp,mp,Is,gp,yp,wp,kp,_s,Hr,Gr,Qr,us,Bp,Mp,qp,Vp,Wp,we,Nt=J(()=>{jr();zr();Ze=class{constructor(t){this.type=t,this.children=[],this.parent=null}get firstChild(){return this.children[0]}get nextSibling(){let t=this.index();return t!==-1?this.parent.children[t+1]:null}get previousSibling(){let t=this.index();return t!==-1?this.parent.children[t-1]:null}index(){return this.parent?this.parent.children.indexOf(this):-1}add(t){return t&&(t.remove(),this.children.push(t),t.parent=this),this}remove(){if(this.parent){let t=this.index();t!==-1&&(this.parent.children.splice(t,1),this.parent=null)}return this}},qr=class extends Ze{constructor(){super("stylesheet"),this.comments=[]}get start(){let t=this.firstChild;return t&&t.start}get end(){let t=this.children[this.children.length-1];return t&&t.end}addComment(t){this.comments.push(t)}};j=class{constructor(t,n,r,i){this.stream=t,this.start=r??t.start,this.end=i??t.pos,this.type=n,this._props=null,this._value=null,this._items=null}get size(){return this._items?this._items.length:0}get items(){return this._items}clone(t,n){return new this.constructor(this.stream,this.type,t??this.start,n??this.end)}add(t){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)this.add(t[n]);else t&&(this._items?this._items.push(t):this._items=[t]);return this}remove(t){if(this._items){let n=this._items.indexOf(t);n!==-1&&this._items.splice(n,1)}return this}item(t){let n=this.size;return this._items&&this._items[(n+t)%n]}limit(){return this.stream.limit(this.start,this.end)}slice(t,n){let r=this.clone(),i=this._items&&this._items.slice(t,n);return i&&i.length?(r.start=i[0].start,r.end=i[i.length-1].end,r.add(i)):i&&(r.start=r.end),r}property(t,n){return typeof n<"u"&&(this._props||(this._props={}),this._props[t]=n),this._props&&this._props[t]}toString(){return`${this.valueOf()} [${this.start}, ${this.end}] (${this.type})`}valueOf(){return this._value===null&&(this._value=this.stream.substring(this.start,this.end)),this._value}},ds=44,ps=58,hs=59,Ke=123,tt=125,kd=new Map().set(ds,"comma").set(ps,"propertyDelimiter").set(hs,"propertyTerminator").set(Ke,"ruleStart").set(tt,"ruleEnd");Ed=40,Ad=41,rs=function(e,t){if(e.peek()===Ed){let n=e.pos;e.next();let r=[],i,o=!1;for(;!e.eof()&&!(Cd(e.peek())||e.eat(Ad)||(i=t(e),!i));)ms(i)&&(o=!0),r.push(i);return e.start=n,Nd(e,r,o)}};gs=45,Od=95;$d=64;ys=35,ws=64;ss=42,sn=47,Zr=function(e){return Ld(e)||jd(e)};Ud=91,Bd=93;as=96;Wd=46;Es=43,As=126,Cs=62,Ns=38,Gd={[Es]:"adjacentSibling",[As]:"generalSibling",[Cs]:"child",[Ns]:"nesting"},Qd=function(e){if(Yd(e.peek())){let t=e.pos,n=Gd[e.next()],r=new j(e,"combinator",t);return r.property("type",n),r}};Jd=35;tp=35;rp=33;ls=46;cp=33,fp=42,dp=43,pp=45,hp=47,mp=60,Is=61,gp=62;yp=58,wp=function(e){let t=e.pos;if(e.eatWhile(yp)){let n=Ee(e);if(n)return new j(e,"pseudo",t).add(n)}e.pos=t},kp=function(e){return Os(e)&&new j(e,"unquoted")};_s=36;Hr=class extends Ze{constructor(t,n,r,i){super("rule"),this.stream=t,this.selectorToken=n,this.contentStartToken=r,this.contentEndToken=i||r,this._parsedSelector=null}get selector(){return De(this.selectorToken)}get parsedSelector(){return this._parsedSelector||(this._parsedSelector=Lp(this.selectorToken.limit())),this._parsedSelector}get start(){return this.selectorToken&&this.selectorToken.start}get end(){let t=this.contentEndToken||this.contentStartToken||this.nameToken;return t&&t.end}};Gr=class extends Ze{constructor(t,n,r,i,o){super("at-rule"),this.stream=t,this.nameToken=n,this.expressionToken=r,this.contentStartToken=i,this.contentEndToken=o||i,this._parsedExpression=null}get name(){return De(this.nameToken&&this.nameToken.item(0))}get expression(){return De(this.expressionToken)}get parsedExpression(){return this._parsedExpression||(this._parsedExpression=zp(this.expressionToken.limit())),this._parsedExpression}get start(){return this.nameToken&&this.nameToken.start}get end(){let t=this.contentEndToken||this.contentStartToken||this.nameToken;return t&&t.end}};Qr=class extends Ze{constructor(t,n,r,i,o){super("property"),this.stream=t,this.nameToken=n,this.valueToken=r,this._parsedName=null,this._parsedValue=null,this.separatorToken=i,this.terminatorToken=o}get name(){return De(this.nameToken)}get parsedName(){return this._parsedName||(this._parsedName=jp(this.nameToken.limit())),this._parsedName}get value(){return De(this.valueToken)}get parsedValue(){return this._parsedValue||(this._parsedValue=Fp(this.valueToken.limit())),this._parsedValue}get separator(){return De(this.separatorToken)}get terminator(){return De(this.terminatorToken)}get start(){let t=this.nameToken||this.separatorToken||this.valueToken||this.terminatorToken;return t&&t.start}get end(){let t=this.terminatorToken||this.valueToken||this.separatorToken||this.nameToken;return t&&t.end}},us=40,Bp=41,Mp=58,qp=59,Vp=123,Wp=125;we=Hp});var ln,Ls=J(()=>{"use strict";ln=class e{document;start;_eof;_sof;pos;constructor(t,n,r){this.document=t,this.start=this.pos=n||0,this._sof=r?r[0]:0,this._eof=r?r[1]:t.getText().length}sof(){return this.pos<=this._sof}eof(){return this.pos>=this._eof}limit(t,n){return new e(this.document,t,[t,n])}peek(){return this.eof()?NaN:this.document.getText().charCodeAt(this.pos)}next(){if(this.eof())return NaN;let t=this.document.getText().charCodeAt(this.pos);return this.pos++,this.eof()&&(this.pos=this._eof),t}backUp(t){return this.pos-=t,this.pos<0&&(this.pos=0),this.peek()}current(){return this.substring(this.start,this.pos)}substring(t,n){return this.document.getText().substring(t,n)}error(t){return new Error(`${t} at offset ${this.pos}`)}eat(t){let n=this.peek(),r=typeof t=="function"?t(n):n===t;return r&&this.next(),r}eatWhile(t){let n=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==n}}});function ti(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ti(r,t),ti(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function js(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Fs(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Fs(e){return e===13||e===10}function zs(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Qp(e){let t=zs(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var un,cn,Ds=J(()=>{"use strict";un=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=zs(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),l=Math.max(i.end.line,0),u=this._lineOffsets,c=js(r.text,!1,o);if(l-a===c.length)for(let h=0,d=c.length;h<d;h++)u[h+a+1]=c[h];else c.length<1e4?u.splice(a+1,l-a,...c):this._lineOffsets=u=u.slice(0,a+1).concat(c,u.slice(l+1));let f=r.text.length-(s-o);if(f!==0)for(let h=a+1+c.length,d=u.length;h<d;h++)u[h]=u[h]+f}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=js(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&Fs(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};(function(e){function t(i,o,s,a){return new un(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof un)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=ti(o.map(Qp),(c,f)=>{let h=c.range.start.line-f.range.start.line;return h===0?c.range.start.character-f.range.start.character:h}),l=0,u=[];for(let c of a){let f=i.offsetAt(c.range.start);if(f<l)throw new Error("Overlapping edit");f>l&&u.push(s.substring(l,f)),c.newText.length&&u.push(c.newText),l=i.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}e.applyEdits=r})(cn||(cn={}))});function U(e,t){let n=e.uri.toString(),r=fn.get(n),i=e.version;if(t&&r&&i===r.key)return r.value;let s=(te(e.languageId)?we:Et)(e.getText());return t&&fn.set(n,{key:i,value:s}),s}function Us(e){let t=e.uri.toString();fn.set(t,void 0)}function Bs(e){let t=e.uri.toString();fn.delete(t)}var fn,ce=J(()=>{"use strict";Br();Nt();re();fn=new Map});function dn(e,t){t===void 0&&(t=!1);var n=e.length,r=0,i="",o=0,s=16,a=0,l=0,u=0,c=0,f=0;function h(g,S){for(var k=0,y=0;k<g||!S;){var C=e.charCodeAt(r);if(C>=48&&C<=57)y=y*16+C-48;else if(C>=65&&C<=70)y=y*16+C-65+10;else if(C>=97&&C<=102)y=y*16+C-97+10;else break;r++,k++}return k<g&&(y=-1),y}function d(g){r=g,i="",o=0,s=16,f=0}function v(){var g=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&rt(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&rt(e.charCodeAt(r)))for(r++;r<e.length&&rt(e.charCodeAt(r));)r++;else return f=3,e.substring(g,r);var S=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&rt(e.charCodeAt(r))){for(r++;r<e.length&&rt(e.charCodeAt(r));)r++;S=r}else f=3;return e.substring(g,S)}function b(){for(var g="",S=r;;){if(r>=n){g+=e.substring(S,r),f=2;break}var k=e.charCodeAt(r);if(k===34){g+=e.substring(S,r),r++;break}if(k===92){if(g+=e.substring(S,r),r++,r>=n){f=2;break}var y=e.charCodeAt(r++);switch(y){case 34:g+='"';break;case 92:g+="\\";break;case 47:g+="/";break;case 98:g+="\b";break;case 102:g+="\f";break;case 110:g+=`
`;break;case 114:g+="\r";break;case 116:g+=" ";break;case 117:var C=h(4,!0);C>=0?g+=String.fromCharCode(C):f=4;break;default:f=5}S=r;continue}if(k>=0&&k<=31)if(It(k)){g+=e.substring(S,r),f=2;break}else f=6;r++}return g}function w(){if(i="",f=0,o=r,l=a,c=u,r>=n)return o=n,s=17;var g=e.charCodeAt(r);if(ni(g)){do r++,i+=String.fromCharCode(g),g=e.charCodeAt(r);while(ni(g));return s=15}if(It(g))return r++,i+=String.fromCharCode(g),g===13&&e.charCodeAt(r)===10&&(r++,i+=`
`),a++,u=r,s=14;switch(g){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=b(),s=10;case 47:var S=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!It(e.charCodeAt(r));)r++;return i=e.substring(S,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;for(var k=n-1,y=!1;r<k;){var C=e.charCodeAt(r);if(C===42&&e.charCodeAt(r+1)===47){r+=2,y=!0;break}r++,It(C)&&(C===13&&e.charCodeAt(r)===10&&r++,a++,u=r)}return y||(r++,f=1),i=e.substring(S,r),s=13}return i+=String.fromCharCode(g),r++,s=16;case 45:if(i+=String.fromCharCode(g),r++,r===n||!rt(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=v(),s=11;default:for(;r<n&&x(g);)r++,g=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(g),r++,s=16}}function x(g){if(ni(g)||It(g))return!1;switch(g){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function T(){var g;do g=w();while(g>=12&&g<=15);return g}return{setPosition:d,getPosition:function(){return r},scan:t?T:w,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-c},getTokenError:function(){return f}}}function ni(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function It(e){return e===10||e===13||e===8232||e===8233}function rt(e){return e>=48&&e<=57}var pn=J(()=>{"use strict"});var ri=J(()=>{"use strict";pn()});function Ms(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=hn.DEFAULT);var r=null,i=[],o=[];function s(l){Array.isArray(i)?i.push(l):r!==null&&(i[r]=l)}var a={onObjectBegin:function(){var l={};s(l),o.push(i),i=l,r=null},onObjectProperty:function(l){r=l},onObjectEnd:function(){i=o.pop()},onArrayBegin:function(){var l=[];s(l),o.push(i),i=l,r=null},onArrayEnd:function(){i=o.pop()},onLiteralValue:s,onError:function(l,u,c){t.push({error:l,offset:u,length:c})}};return qs(e,a,n),i[0]}function qs(e,t,n){n===void 0&&(n=hn.DEFAULT);var r=dn(e,!1);function i(I){return I?function(){return I(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function o(I){return I?function($){return I($,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var s=i(t.onObjectBegin),a=o(t.onObjectProperty),l=i(t.onObjectEnd),u=i(t.onArrayBegin),c=i(t.onArrayEnd),f=o(t.onLiteralValue),h=o(t.onSeparator),d=i(t.onComment),v=o(t.onError),b=n&&n.disallowComments,w=n&&n.allowTrailingComma;function x(){for(;;){var I=r.scan();switch(r.getTokenError()){case 4:T(14);break;case 5:T(15);break;case 3:T(13);break;case 1:b||T(11);break;case 2:T(12);break;case 6:T(16);break}switch(I){case 12:case 13:b?T(10):d();break;case 16:T(1);break;case 15:case 14:break;default:return I}}}function T(I,$,E){if($===void 0&&($=[]),E===void 0&&(E=[]),v(I),$.length+E.length>0)for(var m=r.getToken();m!==17;){if($.indexOf(m)!==-1){x();break}else if(E.indexOf(m)!==-1)break;m=x()}}function g(I){var $=r.getTokenValue();return I?f($):a($),x(),!0}function S(){switch(r.getToken()){case 11:var I=r.getTokenValue(),$=Number(I);isNaN($)&&(T(2),$=0),f($);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return x(),!0}function k(){return r.getToken()!==10?(T(3,[],[2,5]),!1):(g(!1),r.getToken()===6?(h(":"),x(),P()||T(4,[],[2,5])):T(5,[],[2,5]),!0)}function y(){s(),x();for(var I=!1;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(I||T(4,[],[]),h(","),x(),r.getToken()===2&&w)break}else I&&T(6,[],[]);k()||T(4,[],[2,5]),I=!0}return l(),r.getToken()!==2?T(7,[2],[]):x(),!0}function C(){u(),x();for(var I=!1;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(I||T(4,[],[]),h(","),x(),r.getToken()===4&&w)break}else I&&T(6,[],[]);P()||T(4,[],[4,5]),I=!0}return c(),r.getToken()!==4?T(8,[4],[]):x(),!0}function P(){switch(r.getToken()){case 3:return C();case 1:return y();case 10:return g(!0);default:return S()}}return x(),r.getToken()===17?n.allowEmptyContent?!0:(T(4,[],[]),!1):P()?(r.getToken()!==17&&T(9,[],[]),!0):(T(4,[],[]),!1)}var hn,ii=J(()=>{"use strict";pn();(function(e){e.DEFAULT={allowTrailingComma:!1}})(hn||(hn={}))});var Vs=J(()=>{"use strict";ri();ii()});function Hs(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}var Ws,Gs=J(()=>{"use strict";ri();Vs();pn();ii();Ws=Ms});var Qs,oi,Ys,mn,be,Z,gn,Js,si,Xs,Zs,Ks,ea,ai,ta,na,ra,bn,it,ke,li,ot,ia,ui,ci,fi,di,pi,oa,sa,hi,aa,mi,Pt,vn,Ot,la,ua,ca,fa,$t,Rt,xn,da,pa,ha,ma,ga,ba,va,xa,ya,wa,ka,yn,Sa,Ta,Ea,Aa,Ca,Na,Ia,Pa,Oa,$a,Ra,_a,La,gi,bi,ja,Fa,za,Da,Ua,Ba,Ma,qa,Va,vi,p,Wa=J(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Qs||(Qs={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(oi||(oi={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ys||(Ys={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(mn||(mn={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=mn.MAX_VALUE),i===Number.MAX_VALUE&&(i=mn.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.uinteger(i.line)&&p.uinteger(i.character)}e.is=n})(be||(be={}));(function(e){function t(r,i,o,s){if(p.uinteger(r)&&p.uinteger(i)&&p.uinteger(o)&&p.uinteger(s))return{start:be.create(r,i),end:be.create(o,s)};if(be.is(r)&&be.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&be.is(i.start)&&be.is(i.end)}e.is=n})(Z||(Z={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&Z.is(i.range)&&(p.string(i.uri)||p.undefined(i.uri))}e.is=n})(gn||(gn={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&Z.is(i.targetRange)&&p.string(i.targetUri)&&Z.is(i.targetSelectionRange)&&(Z.is(i.originSelectionRange)||p.undefined(i.originSelectionRange))}e.is=n})(Js||(Js={}));(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.numberRange(i.red,0,1)&&p.numberRange(i.green,0,1)&&p.numberRange(i.blue,0,1)&&p.numberRange(i.alpha,0,1)}e.is=n})(si||(si={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&Z.is(i.range)&&si.is(i.color)}e.is=n})(Xs||(Xs={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.undefined(i.textEdit)||ke.is(i))&&(p.undefined(i.additionalTextEdits)||p.typedArray(i.additionalTextEdits,ke.is))}e.is=n})(Zs||(Zs={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Ks||(Ks={}));(function(e){function t(r,i,o,s,a,l){let u={startLine:r,endLine:i};return p.defined(o)&&(u.startCharacter=o),p.defined(s)&&(u.endCharacter=s),p.defined(a)&&(u.kind=a),p.defined(l)&&(u.collapsedText=l),u}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.uinteger(i.startLine)&&p.uinteger(i.startLine)&&(p.undefined(i.startCharacter)||p.uinteger(i.startCharacter))&&(p.undefined(i.endCharacter)||p.uinteger(i.endCharacter))&&(p.undefined(i.kind)||p.string(i.kind))}e.is=n})(ea||(ea={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&gn.is(i.location)&&p.string(i.message)}e.is=n})(ai||(ai={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ta||(ta={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(na||(na={}));(function(e){function t(n){let r=n;return p.objectLiteral(r)&&p.string(r.href)}e.is=t})(ra||(ra={}));(function(e){function t(r,i,o,s,a,l){let u={range:r,message:i};return p.defined(o)&&(u.severity=o),p.defined(s)&&(u.code=s),p.defined(a)&&(u.source=a),p.defined(l)&&(u.relatedInformation=l),u}e.create=t;function n(r){var i;let o=r;return p.defined(o)&&Z.is(o.range)&&p.string(o.message)&&(p.number(o.severity)||p.undefined(o.severity))&&(p.integer(o.code)||p.string(o.code)||p.undefined(o.code))&&(p.undefined(o.codeDescription)||p.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(p.string(o.source)||p.undefined(o.source))&&(p.undefined(o.relatedInformation)||p.typedArray(o.relatedInformation,ai.is))}e.is=n})(bn||(bn={}));(function(e){function t(r,i,...o){let s={title:r,command:i};return p.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.title)&&p.string(i.command)}e.is=n})(it||(it={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return p.objectLiteral(s)&&p.string(s.newText)&&Z.is(s.range)}e.is=i})(ke||(ke={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(p.string(i.description)||i.description===void 0)}e.is=n})(li||(li={}));(function(e){function t(n){let r=n;return p.string(r)}e.is=t})(ot||(ot={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return ke.is(s)&&(li.is(s.annotationId)||ot.is(s.annotationId))}e.is=i})(ia||(ia={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&hi.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(ui||(ui={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&p.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ot.is(i.annotationId))}e.is=n})(ci||(ci={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&p.string(i.oldUri)&&p.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ot.is(i.annotationId))}e.is=n})(fi||(fi={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&p.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||p.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||p.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||ot.is(i.annotationId))}e.is=n})(di||(di={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>p.string(i.kind)?ci.is(i)||fi.is(i)||di.is(i):ui.is(i)))}e.is=t})(pi||(pi={}));(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)}e.is=n})(oa||(oa={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.integer(i.version)}e.is=n})(sa||(sa={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)&&(i.version===null||p.integer(i.version))}e.is=n})(hi||(hi={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.string(i.languageId)&&p.integer(i.version)&&p.string(i.text)}e.is=n})(aa||(aa={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(mi||(mi={}));(function(e){function t(n){let r=n;return p.objectLiteral(n)&&mi.is(r.kind)&&p.string(r.value)}e.is=t})(Pt||(Pt={}));(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})(vn||(vn={}));(function(e){e.PlainText=1,e.Snippet=2})(Ot||(Ot={}));(function(e){e.Deprecated=1})(la||(la={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&p.string(i.newText)&&Z.is(i.insert)&&Z.is(i.replace)}e.is=n})(ua||(ua={}));(function(e){e.asIs=1,e.adjustIndentation=2})(ca||(ca={}));(function(e){function t(n){let r=n;return r&&(p.string(r.detail)||r.detail===void 0)&&(p.string(r.description)||r.description===void 0)}e.is=t})(fa||(fa={}));(function(e){function t(n){return{label:n}}e.create=t})($t||($t={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Rt||(Rt={}));(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return p.string(i)||p.objectLiteral(i)&&p.string(i.language)&&p.string(i.value)}e.is=n})(xn||(xn={}));(function(e){function t(n){let r=n;return!!r&&p.objectLiteral(r)&&(Pt.is(r.contents)||xn.is(r.contents)||p.typedArray(r.contents,xn.is))&&(n.range===void 0||Z.is(n.range))}e.is=t})(da||(da={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(pa||(pa={}));(function(e){function t(n,r,...i){let o={label:n};return p.defined(r)&&(o.documentation=r),p.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(ha||(ha={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(ma||(ma={}));(function(e){function t(n,r){let i={range:n};return p.number(r)&&(i.kind=r),i}e.create=t})(ga||(ga={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(ba||(ba={}));(function(e){e.Deprecated=1})(va||(va={}));(function(e){function t(n,r,i,o,s){let a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(xa||(xa={}));(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(ya||(ya={}));(function(e){function t(r,i,o,s,a,l){let u={name:r,detail:i,kind:o,range:s,selectionRange:a};return l!==void 0&&(u.children=l),u}e.create=t;function n(r){let i=r;return i&&p.string(i.name)&&p.number(i.kind)&&Z.is(i.range)&&Z.is(i.selectionRange)&&(i.detail===void 0||p.string(i.detail))&&(i.deprecated===void 0||p.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(wa||(wa={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(ka||(ka={}));(function(e){e.Invoked=1,e.Automatic=2})(yn||(yn={}));(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return p.defined(i)&&p.typedArray(i.diagnostics,bn.is)&&(i.only===void 0||p.typedArray(i.only,p.string))&&(i.triggerKind===void 0||i.triggerKind===yn.Invoked||i.triggerKind===yn.Automatic)}e.is=n})(Sa||(Sa={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):it.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&p.string(i.title)&&(i.diagnostics===void 0||p.typedArray(i.diagnostics,bn.is))&&(i.kind===void 0||p.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||it.is(i.command))&&(i.isPreferred===void 0||p.boolean(i.isPreferred))&&(i.edit===void 0||pi.is(i.edit))}e.is=n})(Ta||(Ta={}));(function(e){function t(r,i){let o={range:r};return p.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return p.defined(i)&&Z.is(i.range)&&(p.undefined(i.command)||it.is(i.command))}e.is=n})(Ea||(Ea={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.uinteger(i.tabSize)&&p.boolean(i.insertSpaces)}e.is=n})(Aa||(Aa={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return p.defined(i)&&Z.is(i.range)&&(p.undefined(i.target)||p.string(i.target))}e.is=n})(Ca||(Ca={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&Z.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Na||(Na={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ia||(Ia={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Pa||(Pa={}));(function(e){function t(n){let r=n;return p.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(Oa||(Oa={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&Z.is(i.range)&&p.string(i.text)}e.is=n})($a||($a={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&Z.is(i.range)&&p.boolean(i.caseSensitiveLookup)&&(p.string(i.variableName)||i.variableName===void 0)}e.is=n})(Ra||(Ra={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&Z.is(i.range)&&(p.string(i.expression)||i.expression===void 0)}e.is=n})(_a||(_a={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&Z.is(r.stoppedLocation)}e.is=n})(La||(La={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(gi||(gi={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&(i.tooltip===void 0||p.string(i.tooltip)||Pt.is(i.tooltip))&&(i.location===void 0||gn.is(i.location))&&(i.command===void 0||it.is(i.command))}e.is=n})(bi||(bi={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&be.is(i.position)&&(p.string(i.label)||p.typedArray(i.label,bi.is))&&(i.kind===void 0||gi.is(i.kind))&&i.textEdits===void 0||p.typedArray(i.textEdits,ke.is)&&(i.tooltip===void 0||p.string(i.tooltip)||Pt.is(i.tooltip))&&(i.paddingLeft===void 0||p.boolean(i.paddingLeft))&&(i.paddingRight===void 0||p.boolean(i.paddingRight))}e.is=n})(ja||(ja={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Fa||(Fa={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(za||(za={}));(function(e){function t(n){return{items:n}}e.create=t})(Da||(Da={}));(function(e){e.Invoked=0,e.Automatic=1})(Ua||(Ua={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Ba||(Ba={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Ma||(Ma={}));(function(e){function t(n){let r=n;return p.objectLiteral(r)&&oi.is(r.uri)&&p.string(r.name)}e.is=t})(qa||(qa={}));(function(e){function t(o,s,a,l){return new vi(o,s,a,l)}e.create=t;function n(o){let s=o;return!!(p.defined(s)&&p.string(s.uri)&&(p.undefined(s.languageId)||p.string(s.languageId))&&p.uinteger(s.lineCount)&&p.func(s.getText)&&p.func(s.positionAt)&&p.func(s.offsetAt))}e.is=n;function r(o,s){let a=o.getText(),l=i(s,(c,f)=>{let h=c.range.start.line-f.range.start.line;return h===0?c.range.start.character-f.range.start.character:h}),u=a.length;for(let c=l.length-1;c>=0;c--){let f=l[c],h=o.offsetAt(f.range.start),d=o.offsetAt(f.range.end);if(d<=u)a=a.substring(0,h)+f.newText+a.substring(d,a.length);else throw new Error("Overlapping edit");u=h}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,l=o.slice(0,a),u=o.slice(a);i(l,s),i(u,s);let c=0,f=0,h=0;for(;c<l.length&&f<u.length;)s(l[c],u[f])<=0?o[h++]=l[c++]:o[h++]=u[f++];for(;c<l.length;)o[h++]=l[c++];for(;f<u.length;)o[h++]=u[f++];return o}})(Va||(Va={}));vi=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===`
`,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return be.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return be.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(d){return typeof d<"u"}e.defined=n;function r(d){return typeof d>"u"}e.undefined=r;function i(d){return d===!0||d===!1}e.boolean=i;function o(d){return t.call(d)==="[object String]"}e.string=o;function s(d){return t.call(d)==="[object Number]"}e.number=s;function a(d,v,b){return t.call(d)==="[object Number]"&&v<=d&&d<=b}e.numberRange=a;function l(d){return t.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}e.integer=l;function u(d){return t.call(d)==="[object Number]"&&0<=d&&d<=2147483647}e.uinteger=u;function c(d){return t.call(d)==="[object Function]"}e.func=c;function f(d){return d!==null&&typeof d=="object"}e.objectLiteral=f;function h(d,v){return Array.isArray(d)&&d.every(v)}e.typedArray=h})(p||(p={}))});var Ha,Ga,Xy,Qa=J(()=>{(()=>{"use strict";var e={470:i=>{function o(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function s(l,u){for(var c,f="",h=0,d=-1,v=0,b=0;b<=l.length;++b){if(b<l.length)c=l.charCodeAt(b);else{if(c===47)break;c=47}if(c===47){if(!(d===b-1||v===1))if(d!==b-1&&v===2){if(f.length<2||h!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var w=f.lastIndexOf("/");if(w!==f.length-1){w===-1?(f="",h=0):h=(f=f.slice(0,w)).length-1-f.lastIndexOf("/"),d=b,v=0;continue}}else if(f.length===2||f.length===1){f="",h=0,d=b,v=0;continue}}u&&(f.length>0?f+="/..":f="..",h=2)}else f.length>0?f+="/"+l.slice(d+1,b):f=l.slice(d+1,b),h=b-d-1;d=b,v=0}else c===46&&v!==-1?++v:v=-1}return f}var a={resolve:function(){for(var l,u="",c=!1,f=arguments.length-1;f>=-1&&!c;f--){var h;f>=0?h=arguments[f]:(l===void 0&&(l=process.cwd()),h=l),o(h),h.length!==0&&(u=h+"/"+u,c=h.charCodeAt(0)===47)}return u=s(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(l){if(o(l),l.length===0)return".";var u=l.charCodeAt(0)===47,c=l.charCodeAt(l.length-1)===47;return(l=s(l,!u)).length!==0||u||(l="."),l.length>0&&c&&(l+="/"),u?"/"+l:l},isAbsolute:function(l){return o(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,u=0;u<arguments.length;++u){var c=arguments[u];o(c),c.length>0&&(l===void 0?l=c:l+="/"+c)}return l===void 0?".":a.normalize(l)},relative:function(l,u){if(o(l),o(u),l===u||(l=a.resolve(l))===(u=a.resolve(u)))return"";for(var c=1;c<l.length&&l.charCodeAt(c)===47;++c);for(var f=l.length,h=f-c,d=1;d<u.length&&u.charCodeAt(d)===47;++d);for(var v=u.length-d,b=h<v?h:v,w=-1,x=0;x<=b;++x){if(x===b){if(v>b){if(u.charCodeAt(d+x)===47)return u.slice(d+x+1);if(x===0)return u.slice(d+x)}else h>b&&(l.charCodeAt(c+x)===47?w=x:x===0&&(w=0));break}var T=l.charCodeAt(c+x);if(T!==u.charCodeAt(d+x))break;T===47&&(w=x)}var g="";for(x=c+w+1;x<=f;++x)x!==f&&l.charCodeAt(x)!==47||(g.length===0?g+="..":g+="/..");return g.length>0?g+u.slice(d+w):(d+=w,u.charCodeAt(d)===47&&++d,u.slice(d))},_makeLong:function(l){return l},dirname:function(l){if(o(l),l.length===0)return".";for(var u=l.charCodeAt(0),c=u===47,f=-1,h=!0,d=l.length-1;d>=1;--d)if((u=l.charCodeAt(d))===47){if(!h){f=d;break}}else h=!1;return f===-1?c?"/":".":c&&f===1?"//":l.slice(0,f)},basename:function(l,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');o(l);var c,f=0,h=-1,d=!0;if(u!==void 0&&u.length>0&&u.length<=l.length){if(u.length===l.length&&u===l)return"";var v=u.length-1,b=-1;for(c=l.length-1;c>=0;--c){var w=l.charCodeAt(c);if(w===47){if(!d){f=c+1;break}}else b===-1&&(d=!1,b=c+1),v>=0&&(w===u.charCodeAt(v)?--v==-1&&(h=c):(v=-1,h=b))}return f===h?h=b:h===-1&&(h=l.length),l.slice(f,h)}for(c=l.length-1;c>=0;--c)if(l.charCodeAt(c)===47){if(!d){f=c+1;break}}else h===-1&&(d=!1,h=c+1);return h===-1?"":l.slice(f,h)},extname:function(l){o(l);for(var u=-1,c=0,f=-1,h=!0,d=0,v=l.length-1;v>=0;--v){var b=l.charCodeAt(v);if(b!==47)f===-1&&(h=!1,f=v+1),b===46?u===-1?u=v:d!==1&&(d=1):u!==-1&&(d=-1);else if(!h){c=v+1;break}}return u===-1||f===-1||d===0||d===1&&u===f-1&&u===c+1?"":l.slice(u,f)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return(function(u,c){var f=c.dir||c.root,h=c.base||(c.name||"")+(c.ext||"");return f?f===c.root?f+h:f+"/"+h:h})(0,l)},parse:function(l){o(l);var u={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return u;var c,f=l.charCodeAt(0),h=f===47;h?(u.root="/",c=1):c=0;for(var d=-1,v=0,b=-1,w=!0,x=l.length-1,T=0;x>=c;--x)if((f=l.charCodeAt(x))!==47)b===-1&&(w=!1,b=x+1),f===46?d===-1?d=x:T!==1&&(T=1):d!==-1&&(T=-1);else if(!w){v=x+1;break}return d===-1||b===-1||T===0||T===1&&d===b-1&&d===v+1?b!==-1&&(u.base=u.name=v===0&&h?l.slice(1,b):l.slice(v,b)):(v===0&&h?(u.name=l.slice(1,d),u.base=l.slice(1,b)):(u.name=l.slice(v,d),u.base=l.slice(v,b)),u.ext=l.slice(d,b)),v>0?u.dir=l.slice(0,v-1):h&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,i.exports=a}},t={};function n(i){var o=t[i];if(o!==void 0)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(i,o)=>{for(var s in o)n.o(o,s)&&!n.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>h,Utils:()=>$}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function l(E,m){if(!E.scheme&&m)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${E.authority}", path: "${E.path}", query: "${E.query}", fragment: "${E.fragment}"}`);if(E.scheme&&!o.test(E.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(E.path){if(E.authority){if(!s.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(a.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 ("//")')}}let u="",c="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(m){return m instanceof h||!!m&&typeof m.authority=="string"&&typeof m.fragment=="string"&&typeof m.path=="string"&&typeof m.query=="string"&&typeof m.scheme=="string"&&typeof m.fsPath=="string"&&typeof m.with=="function"&&typeof m.toString=="function"}scheme;authority;path;query;fragment;constructor(m,N,A,R,O,_=!1){typeof m=="object"?(this.scheme=m.scheme||u,this.authority=m.authority||u,this.path=m.path||u,this.query=m.query||u,this.fragment=m.fragment||u):(this.scheme=(function(ae,le){return ae||le?ae:"file"})(m,_),this.authority=N||u,this.path=(function(ae,le){switch(ae){case"https":case"http":case"file":le?le[0]!==c&&(le=c+le):le=c}return le})(this.scheme,A||u),this.query=R||u,this.fragment=O||u,l(this,_))}get fsPath(){return T(this,!1)}with(m){if(!m)return this;let{scheme:N,authority:A,path:R,query:O,fragment:_}=m;return N===void 0?N=this.scheme:N===null&&(N=u),A===void 0?A=this.authority:A===null&&(A=u),R===void 0?R=this.path:R===null&&(R=u),O===void 0?O=this.query:O===null&&(O=u),_===void 0?_=this.fragment:_===null&&(_=u),N===this.scheme&&A===this.authority&&R===this.path&&O===this.query&&_===this.fragment?this:new v(N,A,R,O,_)}static parse(m,N=!1){let A=f.exec(m);return A?new v(A[2]||u,y(A[4]||u),y(A[5]||u),y(A[7]||u),y(A[9]||u),N):new v(u,u,u,u,u)}static file(m){let N=u;if(i&&(m=m.replace(/\\/g,c)),m[0]===c&&m[1]===c){let A=m.indexOf(c,2);A===-1?(N=m.substring(2),m=c):(N=m.substring(2,A),m=m.substring(A)||c)}return new v("file",N,m,u,u)}static from(m){let N=new v(m.scheme,m.authority,m.path,m.query,m.fragment);return l(N,!0),N}toString(m=!1){return g(this,m)}toJSON(){return this}static revive(m){if(m){if(m instanceof h)return m;{let N=new v(m);return N._formatted=m.external,N._fsPath=m._sep===d?m.fsPath:null,N}}return m}}let d=i?1:void 0;class v extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=T(this,!1)),this._fsPath}toString(m=!1){return m?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let m={$mid:1};return this._fsPath&&(m.fsPath=this._fsPath,m._sep=d),this._formatted&&(m.external=this._formatted),this.path&&(m.path=this.path),this.scheme&&(m.scheme=this.scheme),this.authority&&(m.authority=this.authority),this.query&&(m.query=this.query),this.fragment&&(m.fragment=this.fragment),m}}let b={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 w(E,m,N){let A,R=-1;for(let O=0;O<E.length;O++){let _=E.charCodeAt(O);if(_>=97&&_<=122||_>=65&&_<=90||_>=48&&_<=57||_===45||_===46||_===95||_===126||m&&_===47||N&&_===91||N&&_===93||N&&_===58)R!==-1&&(A+=encodeURIComponent(E.substring(R,O)),R=-1),A!==void 0&&(A+=E.charAt(O));else{A===void 0&&(A=E.substr(0,O));let ae=b[_];ae!==void 0?(R!==-1&&(A+=encodeURIComponent(E.substring(R,O)),R=-1),A+=ae):R===-1&&(R=O)}}return R!==-1&&(A+=encodeURIComponent(E.substring(R))),A!==void 0?A:E}function x(E){let m;for(let N=0;N<E.length;N++){let A=E.charCodeAt(N);A===35||A===63?(m===void 0&&(m=E.substr(0,N)),m+=b[A]):m!==void 0&&(m+=E[N])}return m!==void 0?m:E}function T(E,m){let N;return N=E.authority&&E.path.length>1&&E.scheme==="file"?`//${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?m?E.path.substr(1):E.path[1].toLowerCase()+E.path.substr(2):E.path,i&&(N=N.replace(/\//g,"\\")),N}function g(E,m){let N=m?x:w,A="",{scheme:R,authority:O,path:_,query:ae,fragment:le}=E;if(R&&(A+=R,A+=":"),(O||R==="file")&&(A+=c,A+=c),O){let Y=O.indexOf("@");if(Y!==-1){let kt=O.substr(0,Y);O=O.substr(Y+1),Y=kt.lastIndexOf(":"),Y===-1?A+=N(kt,!1,!1):(A+=N(kt.substr(0,Y),!1,!1),A+=":",A+=N(kt.substr(Y+1),!1,!0)),A+="@"}O=O.toLowerCase(),Y=O.lastIndexOf(":"),Y===-1?A+=N(O,!1,!0):(A+=N(O.substr(0,Y),!1,!0),A+=O.substr(Y))}if(_){if(_.length>=3&&_.charCodeAt(0)===47&&_.charCodeAt(2)===58){let Y=_.charCodeAt(1);Y>=65&&Y<=90&&(_=`/${String.fromCharCode(Y+32)}:${_.substr(3)}`)}else if(_.length>=2&&_.charCodeAt(1)===58){let Y=_.charCodeAt(0);Y>=65&&Y<=90&&(_=`${String.fromCharCode(Y+32)}:${_.substr(2)}`)}A+=N(_,!0,!1)}return ae&&(A+="?",A+=N(ae,!1,!1)),le&&(A+="#",A+=m?le:w(le,!1,!1)),A}function S(E){try{return decodeURIComponent(E)}catch{return E.length>3?E.substr(0,3)+S(E.substr(3)):E}}let k=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function y(E){return E.match(k)?E.replace(k,(m=>S(m))):E}var C=n(470);let P=C.posix||C,I="/";var $;(function(E){E.joinPath=function(m,...N){return m.with({path:P.join(m.path,...N)})},E.resolvePath=function(m,...N){let A=m.path,R=!1;A[0]!==I&&(A=I+A,R=!0);let O=P.resolve(A,...N);return R&&O[0]===I&&!m.authority&&(O=O.substring(1)),m.with({path:O})},E.dirname=function(m){if(m.path.length===0||m.path===I)return m;let N=P.dirname(m.path);return N.length===1&&N.charCodeAt(0)===46&&(N=""),m.with({path:N})},E.basename=function(m){return P.basename(m.path)},E.extname=function(m){return P.extname(m.path)}})($||($={}))})(),Ha=r})();({URI:Ga,Utils:Xy}=Ha)});var Ya,xi,Ja=J(()=>{Ya={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},xi={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary","audio","bdi","data","datalist","dialog","embed","mark","math","meter","output","picture","portal","progress","rp","rt","ruby","search","slot","source","template","time","track","video","wbr"]}});function Xa(e){return rh.test(e)}function ih(e){let t=[];for(let r of e)r.length===0||r.length===1&&r.charCodeAt(0)===yi||(r.length===2&&r.charCodeAt(0)===yi&&r.charCodeAt(1)===yi?t.pop():t.push(r));e.length>1&&e[e.length-1].length===0&&t.push("");let n=t.join("/");return e[0].length===0&&(n="/"+n),n}function Lt(e,...t){let n=e.path.split("/");for(let r of t)n.push(...r.split("/"));return e.with({path:ih(n)})}var _t,rh,yi,Za=J(()=>{(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(_t||(_t={}));rh=new RegExp("^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))"),yi=46});function ve(e){return e>47&&e<58}function On(e,t,n){return t=t||65,n=n||90,e&=-33,e>=t&&e<=n}function El(e){return ve(e)||$n(e)}function $n(e){return e===95||On(e)}function oh(e){return e===196||e==214||e===220||e===228||e===246||e===252}function sh(e){return e===32||e===9||e===160}function _i(e){return sh(e)||e===10||e===13}function Li(e){return e===39||e===34}function ah(e){return{tokens:e,start:0,pos:0,size:e.length}}function Fe(e){return e.tokens[e.pos]}function ji(e){return e.tokens[e.pos++]}function st(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function Ce(e){return e.pos<e.size}function oe(e,t){let n=Fe(e);return n&&t(n)?(e.pos++,!0):!1}function Fi(e,t,n=Fe(e)){n&&n.start!=null&&(t+=` at ${n.start}`);let r=new Error(t);return r.pos=n&&n.start,r}function lh(e,t={}){let n=ah(e),r=Al(n,t);if(Ce(n))throw Fi(n,"Unexpected character");return r}function Al(e,t){let n={type:"TokenGroup",elements:[]},r=n,i,o=[];for(;Ce(e)&&(i=ch(e,t)||uh(e,t));)if(r.elements.push(i),oe(e,Th))o.push(r),r=i;else{if(oe(e,Eh))continue;if(oe(e,nl))do o.length&&(r=o.pop());while(oe(e,nl))}return n}function uh(e,t){if(oe(e,kh)){let n=Al(e,t),r=ji(e);return ge(r,"group",!1)&&(n.repeat=ph(e)),n}}function ch(e,t){let n,r={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(hh(e,t)&&(r.name=st(e));Ce(e);)if(e.start=e.pos,!r.repeat&&!wi(r)&&oe(e,En))r.repeat=e.tokens[e.pos-1];else if(!r.value&&Cl(e))r.value=Nl(e);else if(n=Ka(e,"id",t)||Ka(e,"class",t)||fh(e))r.attributes?r.attributes=r.attributes.concat(n):r.attributes=Array.isArray(n)?n.slice():[n];else{!wi(r)&&oe(e,Ah)&&(r.selfClose=!0,!r.repeat&&oe(e,En)&&(r.repeat=e.tokens[e.pos-1]));break}return wi(r)?void 0:r}function fh(e){if(oe(e,xh)){let t=[],n;for(;Ce(e);)if(n=dh(e))t.push(n);else{if(oe(e,yh))break;if(!oe(e,Il))throw Fi(e,`Unexpected "${Fe(e).type}" token`)}return t}}function Ka(e,t,n){if(Ne(Fe(e),t)){e.pos++;let r=1;for(;Ne(Fe(e),t);)e.pos++,r++;let i={name:[Sh(t)]};return r>1&&(i.multiple=!0),n.jsx&&Cl(e)?(i.value=Nl(e),i.expression=!0):i.value=Ci(e)?st(e):void 0,i}}function dh(e){if(el(e))return{value:st(e)};if(Ci(e,!0)){let t=st(e),n;return oe(e,mh)&&(el(e)||Ci(e,!0))&&(n=st(e)),{name:t,value:n}}}function ph(e){return En(Fe(e))?e.tokens[e.pos++]:void 0}function el(e){let t=e.pos,n=Fe(e);if(Tn(n)){for(e.pos++;Ce(e);)if(Tn(ji(e),n.single))return e.start=t,!0;throw Fi(e,"Unclosed quote",n)}return!1}function Ci(e,t){let n=e.pos,r={attribute:0,expression:0,group:0};for(;Ce(e);){let i=Fe(e);if(r.expression)ge(i,"expression")&&(r[i.context]+=i.open?1:-1);else{if(Tn(i)||Ne(i)||Il(i)||En(i))break;if(ge(i)){if(!t)break;if(i.open)r[i.context]++;else if(r[i.context])r[i.context]--;else break}}e.pos++}return n!==e.pos?(e.start=n,!0):!1}function hh(e,t){let n=e.pos;if(t.jsx&&oe(e,tl))for(;Ce(e);){let{pos:r}=e;if(!oe(e,vh)||!oe(e,tl)){e.pos=r;break}}for(;Ce(e)&&oe(e,bh););return e.pos!==n?(e.start=n,!0):!1}function Cl(e){let t=e.pos;if(oe(e,wh)){let n=0;for(;Ce(e);){let r=ji(e);if(ge(r,"expression"))if(r.open)n++;else if(n)n--;else break}return e.start=t,!0}return!1}function Nl(e){let t=e.start,n=e.pos;return ge(e.tokens[t],"expression",!0)&&t++,ge(e.tokens[n-1],"expression",!1)&&n--,st(e,t,n)}function ge(e,t,n){return!!(e&&e.type==="Bracket"&&(!t||e.context===t)&&(n==null||e.open===n))}function Ne(e,t){return!!(e&&e.type==="Operator"&&(!t||e.operator===t))}function Tn(e,t){return!!(e&&e.type==="Quote"&&(t==null||e.single===t))}function Il(e){return!!(e&&e.type==="WhiteSpace")}function mh(e){return Ne(e,"equal")}function En(e){return!!(e&&e.type==="Repeater")}function gh(e){return e.type==="Literal"}function tl(e){if(gh(e)){let t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function bh(e){return e.type==="Literal"||e.type==="RepeaterNumber"||e.type==="RepeaterPlaceholder"}function vh(e){return Ne(e,"class")}function xh(e){return ge(e,"attribute",!0)}function yh(e){return ge(e,"attribute",!1)}function wh(e){return ge(e,"expression",!0)}function kh(e){return ge(e,"group",!0)}function Sh(e){return{type:"Literal",value:e}}function wi(e){return!e.name&&!e.value&&!e.attributes}function Th(e){return Ne(e,"child")}function Eh(e){return Ne(e,"sibling")}function nl(e){return Ne(e,"climb")}function Ah(e){return Ne(e,"close")}function Ch(e){return e.eat(F.Escape)?(e.start=e.pos,e.eof()||e.pos++,!0):!1}function Nh(e){let t=new Sn(e),n=[],r={group:0,attribute:0,expression:0,quote:0},i=0,o;for(;!t.eof();)if(i=t.peek(),o=Ih(t,r),o)n.push(o),o.type==="Quote"?r.quote=i===r.quote?0:i:o.type==="Bracket"&&(r[o.context]+=o.open?1:-1);else throw t.error("Unexpected character");return n}function Ih(e,t){return zh(e,t)||jh(e)||Fh(e)||Lh(e)||Oh(e)||Ph(e,t)||_h(e)||$h(e)||Rh(e)}function Ph(e,t){let n=e.pos,r=t.expression,i="";for(;!e.eof();){if(Ch(e)){i+=e.current();continue}let o=e.peek();if(o===F.Slash&&!t.quote&&!t.expression&&!t.attribute){let s=e.string.charCodeAt(e.pos-1),a=e.string.charCodeAt(e.pos+1);if(ve(s)&&ve(a)){i+=e.string[e.pos++];continue}}if(o===t.quote||o===F.Dollar||Dh(o,t))break;if(r){if(o===F.CurlyBracketOpen)t.expression++;else if(o===F.CurlyBracketClose)if(t.expression>r)t.expression--;else break}else if(!t.quote&&(!t.attribute&&!qh(o)||Uh(o,t)||Bh(o,t)||Li(o)||Pl(o)))break;i+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:i,start:n,end:e.pos}}function Oh(e){let t=e.pos;if(e.eatWhile(_i))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}function $h(e){let t=e.peek();if(Li(t))return{type:"Quote",single:t===F.SingleQuote,start:e.pos++,end:e.pos}}function Rh(e){let t=e.peek(),n=Pl(t);if(n)return{type:"Bracket",open:Mh(t),context:n,start:e.pos++,end:e.pos}}function _h(e){let t=Ol(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Lh(e){let t=e.pos;if(e.eat(F.Asterisk)){e.start=e.pos;let n=1,r=!1;return e.eatWhile(ve)?n=Number(e.current()):r=!0,{type:"Repeater",count:n,value:0,implicit:r,start:t,end:e.pos}}}function jh(e){let t=e.pos;if(e.eat(F.Dollar)&&e.eat(F.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}function Fh(e){let t=e.pos;if(e.eatWhile(F.Dollar)){let n=e.pos-t,r=!1,i=1,o=0;if(e.eat(F.At)){for(;e.eat(F.Climb);)o++;r=e.eat(F.Dash),e.start=e.pos,e.eatWhile(ve)&&(i=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:r,base:i,parent:o,start:t,end:e.pos}}}function zh(e,t){let n=e.pos;if((t.expression||t.attribute)&&e.eat(F.Dollar)&&e.eat(F.CurlyBracketOpen)){e.start=e.pos;let r,i="";if(e.eatWhile(ve)?(r=Number(e.current()),i=e.eat(F.Colon)?rl(e):""):On(e.peek())&&(i=rl(e)),e.eat(F.CurlyBracketClose))return{type:"Field",index:r,name:i,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}function rl(e){let t=[];for(e.start=e.pos;!e.eof();)if(e.eat(F.CurlyBracketOpen))t.push(e.pos);else if(e.eat(F.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Dh(e,t){let n=Ol(e);return!n||t.quote||t.expression?!1:!t.attribute||n==="equal"}function Uh(e,t){return _i(e)&&!t.expression}function Bh(e,t){return e===F.Asterisk&&!t.attribute&&!t.expression}function Pl(e){if(e===F.RoundBracketOpen||e===F.RoundBracketClose)return"group";if(e===F.SquareBracketOpen||e===F.SquareBracketClose)return"attribute";if(e===F.CurlyBracketOpen||e===F.CurlyBracketClose)return"expression"}function Ol(e){return e===F.Child&&"child"||e===F.Sibling&&"sibling"||e===F.Climb&&"climb"||e===F.Dot&&"class"||e===F.Hash&&"id"||e===F.Slash&&"close"||e===F.Equals&&"equal"||void 0}function Mh(e){return e===F.CurlyBracketOpen||e===F.SquareBracketOpen||e===F.RoundBracketOpen}function qh(e){return El(e)||oh(e)||e===F.Dash||e===F.Colon||e===F.Excl}function $l(e,t){if(!il[e.type])throw new Error(`Unknown token ${e.type}`);return il[e.type](e,t)}function Gh(e,t={}){let n=!1,r;t.text&&(Array.isArray(t.text)?r=t.text.filter(o=>o.trim()):r=t.text);let i={type:"Abbreviation",children:Ni(e,{inserted:!1,repeaters:[],text:t.text,cleanText:r,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(o){var s;n=!0;let a;if(Array.isArray(t.text)){if(o!==void 0&&o>=0&&o<r.length)return r[o];a=o!==void 0?t.text[o]:t.text.join(`
`)}else a=(s=t.text)!==null&&s!==void 0?s:"";return a},getVariable(o){let s=t.variables&&t.variables[o];return s??o}})};if(t.text!=null&&!n){let o=zi(ut(i.children));if(o){let s=Array.isArray(t.text)?t.text.join(`
`):t.text;Fl(o,s),o.name==="a"&&t.href&&Yh(o,s)}}return i}function Rl(e,t){let n=[];if(e.repeat){let r=e.repeat,i=Object.assign({},r);i.count=i.implicit&&Array.isArray(t.text)?t.cleanText.length:i.count||1;let o;t.repeaters.push(i);for(let s=0;s<i.count;s++){if(i.value=s,e.repeat=i,o=sl(e)?Ni(e,t):ol(e,t),i.implicit&&!t.inserted){let a=ut(o),l=a&&zi(a);l&&Fl(l,t.getText(i.value))}if(n=n.concat(o),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=r,i.implicit&&(t.inserted=!0)}else n=n.concat(sl(e)?Ni(e,t):ol(e,t));return n}function ol(e,t){let n=[],r={type:"AbbreviationNode",name:e.name&&_l(e.name,t),value:e.value&&Ll(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose},i=[r];for(let o of e.elements)n=n.concat(Rl(o,t));if(e.attributes){r.attributes=[];for(let o of e.attributes)r.attributes.push(Qh(o,t))}return!r.name&&!r.attributes&&r.value&&!r.value.some(jl)?i=i.concat(n):r.children=n,i}function Ni(e,t){let n=[];for(let r of e.elements)n=n.concat(Rl(r,t));return e.repeat&&(n=Jh(n,e.repeat)),n}function Qh(e,t){let n=!1,r=!1,i=e.expression?"expression":"raw",o,s=e.name&&_l(e.name,t);if(s&&s[0]==="!"&&(n=!0),s&&s[s.length-1]==="."&&(r=!0),e.value){let a=e.value.slice();if(Tn(a[0])){let l=a.shift();a.length&&ut(a).type===l.type&&a.pop(),i=l.single?"singleQuote":"doubleQuote"}else ge(a[0],"expression",!0)&&(i="expression",a.shift(),ge(ut(a),"expression",!1)&&a.pop());o=Ll(a,t)}return{name:r||n?s.slice(n?1:0,r?-1:void 0):s,value:o,boolean:r,implied:n,valueType:i,multiple:e.multiple}}function _l(e,t){let n="";for(let r=0;r<e.length;r++)n+=$l(e[r],t);return n}function Ll(e,t){let n=[],r="";for(let i=0,o;i<e.length;i++)o=e[i],jl(o)?(r&&(n.push(r),r=""),n.push(o)):r+=$l(o,t);return r&&n.push(r),n}function sl(e){return e.type==="TokenGroup"}function jl(e){return typeof e=="object"&&e.type==="Field"&&e.index!=null}function ut(e){return e[e.length-1]}function zi(e){return e.children.length?zi(ut(e.children)):e}function Fl(e,t){e.value?typeof ut(e.value)=="string"?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function Yh(e,t){var n;let r="";Wh.test(t)?(r=t,!/\w+:/.test(r)&&!r.startsWith("//")&&(r=`http://${r}`)):Hh.test(t)&&(r=`mailto:${t}`);let i=(n=e.attributes)===null||n===void 0?void 0:n.find(o=>o.name==="href");i?i.value||(i.value=[r]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[r],valueType:"doubleQuote"}))}function Jh(e,t){for(let n of e)n.repeat||(n.repeat=Object.assign({},t));return e}function zl(e,t){try{let n=typeof e=="string"?Nh(e):e;return Gh(lh(n,t),t)}catch(n){throw n instanceof jt&&typeof e=="string"&&(n.message+=`
${e}
${"-".repeat(n.pos)}^`),n}}function Xh(e,t){let n=0,r,i=new Sn(e),o=[];for(;!i.eof();){if(r=Zh(i,n===0&&!t),!r)throw i.error("Unexpected character");if(r.type==="Bracket"&&(!n&&r.open&&hm(i,o),n+=r.open?1:-1,n<0))throw i.error("Unexpected bracket",r.start);o.push(r),pm(r)&&(r=Dl(i))&&o.push(r)}return o}function Zh(e,t){return Kh(e)||om(e)||tm(e)||rm(e)||nm(e)||sm(e)||Dl(e)||im(e)||em(e,t)}function Kh(e){let t=e.pos;if(e.eat(D.Dollar)&&e.eat(D.CurlyBracketOpen)){e.start=e.pos;let n,r="";if(e.eatWhile(ve)?(n=Number(e.current()),r=e.eat(D.Colon)?al(e):""):On(e.peek())&&(r=al(e)),e.eat(D.CurlyBracketClose))return{type:"Field",index:n,name:r,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}function al(e){let t=[];for(e.start=e.pos;!e.eof();)if(e.eat(D.CurlyBracketOpen))t.push(e.pos);else if(e.eat(D.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function em(e,t){let n=e.pos;if(e.eat(lm)?e.eatWhile(n?Ii:Si):e.eat($n)?e.eatWhile(t?Si:Ii):(e.eat(D.Dot),e.eatWhile(Si)),n!==e.pos)return e.start=n,Di(e,e.start=n)}function Di(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function tm(e){let t=e.pos;if(am(e)){e.start=t;let n=e.current();return e.start=e.pos,e.eat(D.Percent)||e.eatWhile($n),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}function nm(e){let t=e.peek(),n=e.pos,r=!1;if(Li(t)){for(e.pos++;!e.eof();)if(e.eat(t)){r=!0;break}else e.pos++;return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(r?1:0)),quote:t===D.SingleQuote?"single":"double",start:n,end:e.pos}}}function rm(e){let t=e.pos;if(e.eat(D.Hash)){let n=e.pos,r="",i="";if(e.eatWhile(cm)?(r=e.substring(n,e.pos),i=ki(e)):e.eat(D.Transparent)?(r="0",i=ki(e)||"0"):i=ki(e),r||i||e.eof()){let{r:o,g:s,b:a,a:l}=dm(r,i);return{type:"ColorValue",r:o,g:s,b:a,a:l,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}else return Di(e,t)}e.pos=t}function ki(e){let t=e.pos;return e.eat(D.Dot)?(e.start=t,e.eatWhile(ve)?e.current():"1"):""}function im(e){let t=e.pos;if(e.eatWhile(_i))return{type:"WhiteSpace",start:t,end:e.pos}}function om(e){let t=e.pos;if(e.eat(D.Dash)&&e.eat(D.Dash))return e.start=t,e.eatWhile(Ii),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}function sm(e){let t=e.peek();if(fm(t))return{type:"Bracket",open:t===D.RoundBracketOpen,start:e.pos++,end:e.pos}}function Dl(e){let t=um(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function am(e){let t=e.pos;e.eat(D.Dash);let n=e.pos,r=e.eatWhile(ve),i=e.pos;if(e.eat(D.Dot)){let o=e.eatWhile(ve);!r&&!o&&(e.pos=i)}return e.pos===n&&(e.pos=t),e.pos!==t}function lm(e){return e===D.At||e===D.Dollar}function um(e){return e===D.Sibling&&he.Sibling||e===D.Excl&&he.Important||e===D.Comma&&he.ArgumentDelimiter||e===D.Colon&&he.PropertyDelimiter||e===D.Dash&&he.ValueDelimiter||void 0}function cm(e){return ve(e)||On(e,65,70)}function Ii(e){return El(e)||e===D.Dash}function fm(e){return e===D.RoundBracketOpen||e===D.RoundBracketClose}function Si(e){return $n(e)||e===D.Percent||e===D.Slash}function dm(e,t){let n="0",r="0",i="0",o=Number(t!=null&&t!==""?t:1);if(e==="t")o=0;else switch(e.length){case 0:break;case 1:n=r=i=e+e;break;case 2:n=r=i=e;break;case 3:n=e[0]+e[0],r=e[1]+e[1],i=e[2]+e[2];break;default:e+=e,n=e.slice(0,2),r=e.slice(2,4),i=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(r,16),b:parseInt(i,16),a:o}}function pm(e){return e.type==="ColorValue"||e.type==="NumberValue"&&!e.unit}function hm(e,t){let n=0,r=0;for(;t.length;){let i=mm(t);if(i.type==="Literal"||i.type==="NumberValue")n=i.start,r||(r=i.end),t.pop();else break}n!==r&&t.push(Di(e,n,r))}function mm(e){return e[e.length-1]}function gm(e){return{tokens:e,start:0,pos:0,size:e.length}}function Rn(e){return e.tokens[e.pos]}function _n(e){return e.pos<e.size}function Ae(e,t){return t(Rn(e))?(e.pos++,!0):!1}function Ul(e,t,n=Rn(e)){n&&n.start!=null&&(t+=` at ${n.start}`);let r=new Error(t);return r.pos=n&&n.start,r}function bm(e,t={}){let n=gm(e),r=[],i;for(;_n(n);)if(i=vm(n,t))r.push(i);else if(!Ae(n,km))throw Ul(n,"Unexpected token");return r}function vm(e,t){let n,r=!1,i,o=[],s=Rn(e),a=!!t.value;for(!a&&Ui(s)&&!Am(e)&&(e.pos++,n=s.value,Ae(e,Vl)),a&&Ae(e,Bi);_n(e);)if(Ae(e,Tm))r=!0;else if(i=Bl(e,a))o.push(i);else if(!Ae(e,Sm))break;if(n||o.length||r)return{name:n,value:o,important:r}}function Bl(e,t){let n=[],r,i;for(;_n(e);)if(r=Rn(e),Em(r))e.pos++,Ui(r)&&(i=xm(e))?n.push({type:"FunctionCall",name:r.value,arguments:i}):n.push(r);else if(Vl(r)||t&&Bi(r))e.pos++;else break;return n.length?{type:"CSSValue",value:n}:void 0}function xm(e){let t=e.pos;if(Ae(e,ym)){let n=[],r;for(;_n(e)&&!Ae(e,wm);)if(r=Bl(e,!0))n.push(r);else if(!Ae(e,Bi)&&!Ae(e,ql))throw Ul(e,"Unexpected token");return e.start=t,n}}function Ui(e){return e&&e.type==="Literal"}function Ml(e,t){return e&&e.type==="Bracket"&&(t==null||e.open===t)}function ym(e){return Ml(e,!0)}function wm(e){return Ml(e,!1)}function Bi(e){return e&&e.type==="WhiteSpace"}function Ft(e,t){return e&&e.type==="Operator"&&(!t||e.operator===t)}function km(e){return Ft(e,he.Sibling)}function ql(e){return Ft(e,he.ArgumentDelimiter)}function Sm(e){return ql(e)}function Tm(e){return Ft(e,he.Important)}function Em(e){return e.type==="StringValue"||e.type==="ColorValue"||e.type==="NumberValue"||e.type==="Literal"||e.type==="Field"||e.type==="CustomProperty"}function Vl(e){return Ft(e,he.PropertyDelimiter)||Ft(e,he.ValueDelimiter)}function Am(e){let t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&Ui(t)&&n.type==="Bracket"}function Wl(e,t){try{let n=typeof e=="string"?Xh(e,t&&t.value):e;return bm(n,t)}catch(n){throw n instanceof jt&&typeof e=="string"&&(n.message+=`
${e}
${"-".repeat(n.pos)}^`),n}}function Cm(e,t){if(!e.attributes)return;let n=[],r={};for(let i of e.attributes)if(i.name){let o=i.name;if(o in r){let s=r[o];o==="class"?s.value=Nm(s.value,i.value," "):Im(s,i,t)}else n.push(r[o]=Object.assign({},i))}else n.push(i);e.attributes=n}function Nm(e,t,n){if(e&&t){e.length&&n&&ll(e,n);for(let i of t)ll(e,i);return e}let r=e||t;return r&&r.slice()}function Im(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),e.valueType!=="expression"&&(e.valueType=t.valueType),e}function ll(e,t){let n=e.length-1;typeof e[n]=="string"&&typeof t=="string"?e[n]+=t:e.push(t)}function Pm(e,t,n){let r=[e],i=o=>{t(o,r,n),r.push(o),o.children.forEach(i),r.pop()};e.children.forEach(i)}function Hl(e,t){for(let n=0;n<e.children.length;n++){let r=e.children[n];if(t(r))return r;let i=Hl(r,t);if(i)return i}}function Om(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function Gl(e){return e.type==="AbbreviationNode"}function $m(e,t){let n=[],r=t.options["output.reverseAttributes"],{warn:i}=t,o=s=>{let a=s.name&&t.snippets[s.name];if(!a||n.includes(a))return null;let l;try{l=zl(a,t)}catch(u){return i?.(`Unable to parse "${a}" snippet`,u),null}n.push(a),An(l,o),n.pop();for(let u of l.children){if(s.attributes){let c=u.attributes||[],f=s.attributes||[];u.attributes=r?f.concat(c):c.concat(f)}Rm(s,u)}return l};return An(e,o),e}function An(e,t,n){let r=[];for(let i of e.children){let o=t(i);if(o){r=r.concat(o.children);let s=Om(o);Gl(s.node)&&(s.node.children=s.node.children.concat(An(i,t)))}else r.push(i),i.children=An(i,t)}return e.children=r}function Rm(e,t){e.selfClosing&&(t.selfClosing=!0),e.value!=null&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}function Ql(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function ne(e,t){let n=e.options["output.text"];Xl(e,n(t,e.offset,e.line,e.column))}function M(e,t){let n=Fm(t);for(let r=0,i=n.length-1;r<=i;r++)ne(e,n[r]),r!==i&&Se(e,!0)}function Se(e,t){let n=e.options["output.baseIndent"],r=e.options["output.newline"];ne(e,r+n),e.line++,e.column=n.length,t&&_m(e,t===!0?e.level:t)}function _m(e,t=e.level){let n=e.options["output.indent"];ne(e,n.repeat(Math.max(t,0)))}function Mi(e,t,n){let r=e.options["output.field"];Xl(e,r(t,n,e.offset,e.line,e.column))}function Lm(e,t){return Zl(e,t.options["output.tagCase"])}function Yl(e,t){return Zl(e,t.options["output.attributeCase"])}function Cn(e,t,n){return e.valueType==="expression"?n?Pi:Oi:t.options["output.attributeQuotes"]==="single"?"'":'"'}function Jl(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function jm(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}function at(e,t){return typeof e=="string"?t.options.inlineElements.includes(e.toLowerCase()):e.name?at(e.name,t):!!(e.value&&!e.attributes)}function Fm(e){return e.split(/\r\n|\r|\n/g)}function Xl(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function Zl(e,t){return t?t==="upper"?e.toUpperCase():e.toLowerCase():e}function Dm(e,t,n){!e.name&&e.attributes&&Kl(e,t,n)}function Kl(e,t,n){let r=Bm(t),i=n.context?n.context.name:"",o=Um(r?r.name:i);e.name=zm[o]||(at(o,n)?"span":"div")}function Um(e){return(e||"").toLowerCase()}function Bm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Gl(n))return n}}function Hm(e,t,n){let r;if(e.name&&(r=e.name.match(Wm))){let i=ul[r[1]]||ul.latin,o=r[2]?Math.max(1,Number(r[2])):30,s=r[3]?Math.max(o,Number(r[3].slice(1))):o,a=je(o,s),l=e.repeat||Xm(t);e.name=e.attributes=void 0,e.value=[Jm(i,a,!l||l.value===0)],e.repeat&&t.length>1&&Kl(e,t,n)}}function je(e,t){return Math.floor(Math.random()*(t-e)+e)}function Gm(e,t){let n=e.length,r=Math.min(n,t),i=[];for(;i.length<r;){let o=e[je(0,n)];i.includes(o)||i.push(o)}return i}function Qm(e){return e[je(0,e.length-1)]}function cl(e,t){return e.length&&(e=[Ym(e[0])].concat(e.slice(1))),e.join(" ")+(t||Qm("?!..."))}function Ym(e){return e[0].toUpperCase()+e.slice(1)}function fl(e){if(e.length<2)return e;e=e.slice();let t=e.length,n=/,$/,r=0;t>3&&t<=6?r=je(0,1):t>6&&t<=12?r=je(0,2):r=je(1,4);for(let i=0,o;i<r;i++)o=je(0,t-2),n.test(e[o])||(e[o]+=",");return e}function Jm(e,t,n){let r=[],i=0,o;for(n&&e.common&&(o=e.common.slice(0,t),i+=o.length,r.push(cl(fl(o),".")));i<t;)o=Gm(e.words,Math.min(je(2,30),t-i)),i+=o.length,r.push(cl(fl(o)));return r.join(" ")}function Xm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n.type==="AbbreviationNode"&&n.repeat)return n.repeat}}function Zm(e){eg(e.name)&&e.attributes&&(e.children.length||e.value)&&(e.attributes=e.attributes.filter(Km))}function Km(e){return e.name!=="select"}function eg(e){return e==="xsl:variable"||e==="xsl:with-param"}function rg(e,t,n){ig(e),og(e,t,n)}function ig(e){let t=qi(e),n=[];for(let r of t.classNames){let i=r.indexOf("_");i>0&&!r.startsWith("-")?(n.push(r.slice(0,i)),n.push(r.slice(i))):n.push(r)}n.length&&(t.classNames=n.filter(ou),t.block=ru(t.classNames),iu(e,t.classNames.join(" ")))}function og(e,t,n){let r=qi(e),i=[],{options:o}=n,s=t.slice(1).concat(e);for(let l of r.classNames){let u="",c,f=l;(c=l.match(eu))&&(u=dl(s,c[1].length,n.context)+o["bem.element"]+c[2],i.push(u),l=l.slice(c[0].length)),(c=l.match(tu))&&(u||(u=dl(s,c[1].length),i.push(u)),i.push(`${u}${o["bem.modifier"]}${c[2]}`),l=l.slice(c[0].length)),l===f&&i.push(f)}let a=i.filter(ou);a.length&&iu(e,a.join(" "))}function qi(e){if(!e._bem){let t="";if(e.attributes){for(let n of e.attributes)if(n.name==="class"&&n.value){t=ag(n.value);break}}e._bem=nu(t)}return e._bem}function sg(e){return e._bem||(e._bem=nu(e.attributes&&e.attributes.class||"")),e._bem}function nu(e){let t=e?e.split(/\s+/):[];return{classNames:t,block:ru(t)}}function dl(e,t=0,n){let i=Math.max(e.length-t,0);do{let o=e[i];if(o){let s=qi(o);if(s.block)return s.block}}while(0<i--);if(n){let o=sg(n);if(o.block)return o.block}return""}function ru(e){return pl(e,tg)||pl(e,ng)||void 0}function pl(e,t){for(let n of e){if(eu.test(n)||tu.test(n))break;if(t(n))return n}}function iu(e,t){for(let n of e.attributes)if(n.name==="class"){n.value=[t];break}}function ag(e){let t="";for(let n of e)t+=typeof n=="string"?n:n.name;return t}function ou(e,t,n){return!!e&&n.indexOf(e)===t}function lg(e){if(e.name==="label"){let t=Hl(e,n=>n.name==="input"||n.name==="textarea");t&&(e.attributes&&(e.attributes=e.attributes.filter(n=>!(n.name==="for"&&hl(n)))),t.attributes&&(t.attributes=t.attributes.filter(n=>!(n.name==="id"&&hl(n)))))}}function hl(e){if(!e.value)return!0;if(e.value.length===1){let t=e.value[0];if(t&&typeof t!="string"&&!t.name)return!0}return!1}function su(e,t,n){let r=(o,s,a)=>{let{parent:l,current:u}=n;n.parent=u,n.current=o,t(o,s,a,n,i),n.current=u,n.parent=l},i=(o,s,a)=>{n.ancestors.push(n.current),r(o,s,a),n.ancestors.pop()};e.children.forEach(r)}function au(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:Ql(e.options)}}function Me(e){return e?!e.name&&!e.attributes:!1}function ml(e,t){return e?at(e,t):!1}function lu(e){return typeof e=="object"&&e.type==="Field"}function me(e,t){let{out:n}=t,r=-1;for(let i of e)typeof i=="string"?M(n,i):(Mi(n,t.field+i.index,i.name),i.index>r&&(r=i.index));r!==-1&&(t.field+=r+1)}function ug(e){let t=[],n=[];for(let r of e)if(typeof r=="string"){let i=r.split(/\r\n?|\n/g);for(n.push(i.shift()||"");i.length;)t.push(n),n=[i.shift()||""]}else n.push(r);return n.length&&t.push(n),t}function uu(e){return!e.implied||e.valueType!=="raw"||!!e.value&&e.value.length>0}function gl(e){let t=[],n={pos:0,text:e},r,i=n.pos,o=n.pos;for(;n.pos<n.text.length;)o=n.pos,(r=cg(n))?(i!==n.pos&&t.push(e.slice(i,o)),t.push(r),i=n.pos):n.pos++;return i!==n.pos&&t.push(e.slice(i)),t}function cg(e){if(Ti(e)===qe.Start){let t=++e.pos,n=t,r=t,i=1;for(;e.pos<e.text.length;){let o=Ti(e);if(cu(o)){for(n=e.pos;fg(Ti(e));)e.pos++;r=e.pos}else{if(o===qe.Start)i++;else if(o===qe.End&&--i===0)return{before:e.text.slice(t,n),after:e.text.slice(r,e.pos++),name:e.text.slice(n,r)};e.pos++}}}}function Ti(e,t=e.pos){return e.text.charCodeAt(t)}function cu(e){return e>=65&&e<=90}function fg(e){return cu(e)||e>47&&e<58||e===qe.Underscore||e===qe.Dash}function dg(e){let{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?gl(t["comment.before"]):void 0,after:t["comment.after"]?gl(t["comment.after"]):void 0}}function pg(e,t){fu(e,t)&&t.comment.before&&du(e,t.comment.before,t)}function hg(e,t){fu(e,t)&&t.comment.after&&du(e,t.comment.after,t)}function fu(e,t){let{comment:n}=t;if(!n.enabled||!n.trigger||!e.name||!e.attributes)return!1;for(let r of e.attributes)if(r.name&&n.trigger.includes(r.name))return!0;return!1}function du(e,t,n){let r={},{out:i}=n;for(let o of e.attributes)o.name&&o.value&&(r[o.name.toUpperCase()]=o.value);for(let o of t)typeof o=="string"?M(i,o):r[o.name]&&(M(i,o.before),me(r[o.name],n),M(i,o.after))}function pu(e,t){let n=au(t);return n.comment=dg(t),su(e,bg,n),n.out.value}function bg(e,t,n,r,i){let{out:o,config:s}=r,a=hu(e,t,n,r),l=xg(r);if(o.level+=l,a&&Se(o,!0),e.name){let u=Lm(e.name,s);if(pg(e,r),M(o,`<${u}`),e.attributes)for(let c of e.attributes)uu(c)&&vg(c,r);if(e.selfClosing&&!e.children.length&&!e.value)M(o,`${jm(s)}>`);else{if(M(o,">"),!bl(e,r,i)){if(e.value){let c=e.value.some(mu)||yg(e.value,s);c&&Se(r.out,++o.level),me(e.value,r),c&&Se(r.out,--o.level)}if(e.children.forEach(i),!e.value&&!e.children.length){let c=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(e.name);c&&Se(r.out,++o.level),me(Ln,r),c&&Se(r.out,--o.level)}}M(o,`</${u}>`),hg(e,r)}}else!bl(e,r,i)&&e.value&&(me(e.value,r),e.children.forEach(i));if(a&&t===n.length-1&&r.parent){let u=Me(r.parent)?0:1;Se(o,o.level-u)}o.level-=l}function vg(e,t){let{out:n,config:r}=t;if(e.name){let i=r.options["markup.attributes"],o=r.options["markup.valuePrefix"],{name:s,value:a}=e,l=Cn(e,r,!0),u=Cn(e,r);i&&(s=vl(s,i,e.multiple)||s),s=Yl(s,r),r.options["jsx.enabled"]&&e.multiple&&(l=Pi,u=Oi);let c=o?vl(e.name,o,e.multiple):null;if(c&&a?.length===1&&typeof a[0]=="string"){let f=a[0];a=[wg(f)?`${c}.${f}`:`${c}['${f}']`],r.options["jsx.enabled"]&&(l=Pi,u=Oi)}Jl(e,r)&&!a?r.options["output.compactBoolean"]||(a=[s]):a||(a=Ln),M(n," "+s),a?(M(n,"="+l),me(a,t),M(n,u)):r.options["output.selfClosingStyle"]!=="html"&&M(n,"="+l+u)}}function bl(e,t,n){if(e.value&&e.children.length){let r=e.value.findIndex(lu);if(r!==-1){me(e.value.slice(0,r),t);let i=t.out.line,o=r+1;return e.children.forEach(n),t.out.line!==i&&typeof e.value[o]=="string"&&M(t.out,e.value[o++].trimLeft()),me(e.value.slice(o),t),!0}}return!1}function hu(e,t,n,r){let{config:i,parent:o}=r;if(!i.options["output.format"]||t===0&&!o||o&&Me(o)&&n.length===1)return!1;if(Me(e)&&(Me(n[t-1])||Me(n[t+1])||e.value.some(mu)||e.value.some(lu)&&e.children.length))return!0;if(at(e,i)){if(t===0){for(let s=0;s<n.length;s++)if(!at(n[s],i))return!0}else if(!at(n[t-1],i))return!0;if(i.options["output.inlineBreak"]){let s=1,a=t,l=t;for(;ml(n[--a],i);)s++;for(;ml(n[++l],i);)s++;if(s>=i.options["output.inlineBreak"])return!0}for(let s=0,a=e.children.length;s<a;s++)if(hu(e.children[s],s,e.children,r))return!0;return!1}return!0}function xg(e){let{config:t,parent:n}=e;return!n||Me(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}function mu(e){return typeof e=="string"&&/\r|\n/.test(e)}function yg(e,t){if(e.length&&typeof e[0]=="string"){let n=mg.exec(e[0]);if(n?.length&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}function vl(e,t,n){return n&&t[`${e}*`]||t[e]}function wg(e){return!gg.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function Vi(e,t,n){let r=au(t);return r.options=n||{},su(e,kg,r),r.out.value}function kg(e,t,n,r,i){let{out:o,options:s}=r,{primary:a,secondary:l}=Sg(e),u=r.parent?1:0;o.level+=u,Ig(e,t,n,r)&&Se(o,!0),e.name&&(e.name!=="div"||!a.length)&&M(o,(s.beforeName||"")+e.name+(s.afterName||"")),Tg(a,r),Eg(l.filter(uu),r),e.selfClosing&&!e.value&&!e.children.length?r.options.selfClose&&M(o,r.options.selfClose):(Ag(e,r),e.children.forEach(i)),o.level-=u}function Sg(e){let t=[],n=[];if(e.attributes)for(let r of e.attributes)Cg(r)?t.push(r):n.push(r);return{primary:t,secondary:n}}function Tg(e,t){for(let n of e)if(n.value)if(n.name==="class"){M(t.out,".");let r=n.value.map(i=>typeof i=="string"?i.replace(/\s+/g,"."):i);me(r,t)}else M(t.out,"#"),me(n.value,t)}function Eg(e,t){if(e.length){let{out:n,config:r,options:i}=t;i.beforeAttribute&&M(n,i.beforeAttribute);for(let o=0;o<e.length;o++){let s=e[o];M(n,Yl(s.name||"",r)),Jl(s,r)&&!s.value?!r.options["output.compactBoolean"]&&i.booleanValue&&M(n,"="+i.booleanValue):(M(n,"="+Cn(s,r,!0)),me(s.value||Ln,t),M(n,Cn(s,r))),o!==e.length-1&&i.glueAttribute&&M(n,i.glueAttribute)}i.afterAttribute&&M(n,i.afterAttribute)}}function Ag(e,t){if(!e.value&&e.children.length)return;let n=e.value||Ln,r=ug(n),{out:i,options:o}=t;if(r.length===1)(e.name||e.attributes)&&ne(i," "),me(n,t);else{let s=[],a=0;for(let l of r){let u=Ng(l);s.push(u),u>a&&(a=u)}i.level++;for(let l=0;l<r.length;l++)Se(i,!0),o.beforeTextLine&&ne(i,o.beforeTextLine),me(r[l],t),o.afterTextLine&&(ne(i," ".repeat(a-s[l])),ne(i,o.afterTextLine));i.level--}}function Cg(e){return e.name==="class"||e.name==="id"}function Ng(e){let t=0;for(let n of e)t+=typeof n=="string"?n.length:n.name.length;return t}function Ig(e,t,n,r){return!r.parent&&t===0?!1:!Me(e)}function Pg(e,t){return Vi(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})}function Og(e,t){return Vi(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})}function $g(e,t){return Vi(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:t.options["output.selfClosingStyle"]==="xml"?"/":""})}function Wi(e,t){let n;if(typeof e=="string"){let r=Object.assign({},t);t.options["jsx.enabled"]&&(r.jsx=!0),t.options["markup.href"]&&(r.href=!0),e=zl(e,r),n=t.text,t.text=void 0}return e=$m(e,t),Pm(e,_g,t),t.text=n??t.text,e}function Hi(e,t){return(Rg[t.syntax]||pu)(e,t)}function _g(e,t,n){Dm(e,t,n),Cm(e,n),Hm(e,t,n),n.syntax==="xsl"&&Zm(e),n.type==="markup"&&lg(e),n.options["bem.enabled"]&&rg(e,t,n)}function Fg(e,t){let n=t.match(Lg);if(n){let r={},i=n[2]?n[2].split("|").map(Ug):[];for(let o of i)for(let s of o)Mg(s,r);return{type:Ie.Property,key:e,property:n[1],value:i,keywords:r,dependencies:[]}}return{type:Ie.Raw,key:e,value:t}}function zg(e){e=e.slice().sort(Dg);let t=[],n;for(let r of e.filter(Bg)){for(;t.length;){if(n=t[t.length-1],r.property.startsWith(n.property)&&r.property.charCodeAt(n.property.length)===45){n.dependencies.push(r),t.push(r);break}t.pop()}t.length||t.push(r)}return e}function Dg(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function Ug(e){return Wl(e.trim(),jg)[0].value}function Bg(e){return e.type===Ie.Property}function Mg(e,t){for(let n of e.value)if(n.type==="Literal")t[n.value]=n;else if(n.type==="FunctionCall")t[n.name]=n;else if(n.type==="Field"){let r=n.name.trim();r&&(t[r]={type:"Literal",value:r})}}function qg(e,t,n=!1){if(e=e.toLowerCase(),t=t.toLowerCase(),e===t)return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;let r=e.length,i=t.length;if(!n&&r>i)return 0;let o=Math.min(r,i),s=Math.max(r,i),a=1,l=1,u=s,c=0,f=0,h=!1,d=!1;for(;a<r;){for(c=e.charCodeAt(a),h=!1,d=!1;l<i;){if(f=t.charCodeAt(l),c===f){h=!0,u+=s-(d?a:l);break}d=f===45,l++}if(!h){if(!n)return 0;break}a++}let v=a/s,b=s-o,w=xl(s)-xl(b);return u*v/w}function xl(e){return e*(e+1)/2}function gu(e,t){return!e.r&&!e.g&&!e.b&&!e.a?"transparent":e.a===1?Vg(e,t):Wg(e)}function Vg(e,t){let n=t&&Ei(e.r)&&Ei(e.g)&&Ei(e.b)?Hg:Gg;return"#"+n(e.r)+n(e.g)+n(e.b)}function Wg(e){let t=[e.r,e.g,e.b];return e.a!==1&&t.push(bu(e.a,8)),`${t.length===3?"rgb":"rgba"}(${t.join(", ")})`}function bu(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Ei(e){return!(e%17)}function Hg(e){return(e>>4).toString(16)}function Gg(e){return Qg(e.toString(16),2)}function Qg(e,t){for(;e.length<t;)e="0"+e;return e}function Gi(e,t){var n;let r=Ql(t.options),i=t.options["output.format"];((n=t.context)===null||n===void 0?void 0:n.name)===Nn.Section&&(e=e.filter(o=>o.snippet));for(let o=0;o<e.length;o++)i&&o!==0&&Se(r,!0),Yg(e[o],r,t);return r.value}function Yg(e,t,n){let r=n.options["stylesheet.json"];if(e.name){let i=r?Zg(e.name):e.name;M(t,i+n.options["stylesheet.between"]),e.value.length?Jg(e,t,n):Mi(t,0,""),r?ne(t,","):(yl(e,t,!0),ne(t,n.options["stylesheet.after"]))}else{for(let i of e.value)for(let o of i.value)xu(o,t,n);yl(e,t,e.value.length>0)}}function Jg(e,t,n){let r=n.options["stylesheet.json"],i=r?Xg(e):null;if(i&&(!i.unit||i.unit==="px"))ne(t,String(i.value));else{let o=Kg(n);r&&ne(t,o);for(let s=0;s<e.value.length;s++)s!==0&&ne(t,", "),vu(e.value[s],t,n);r&&ne(t,o)}}function yl(e,t,n){e.important&&(n&&ne(t," "),ne(t,"!important"))}function vu(e,t,n){for(let r=0,i=-1;r<e.value.length;r++){let o=e.value[r];r!==0&&(o.type!=="Field"||o.start!==i)&&ne(t," "),xu(o,t,n),i=o.end}}function xu(e,t,n){if(e.type==="ColorValue")ne(t,gu(e,n.options["stylesheet.shortHex"]));else if(e.type==="Literal"||e.type==="CustomProperty")M(t,e.value);else if(e.type==="NumberValue")M(t,bu(e.value,4)+e.unit);else if(e.type==="StringValue"){let r=e.quote==="double"?'"':"'";M(t,r+e.value+r)}else if(e.type==="Field")Mi(t,e.index,e.name);else if(e.type==="FunctionCall"){ne(t,e.name+"(");for(let r=0;r<e.arguments.length;r++)r&&ne(t,", "),vu(e.arguments[r],t,n);ne(t,")")}}function Xg(e){if(e.value.length===1){let t=e.value[0];if(t.value.length===1&&t.value[0].type==="NumberValue")return t.value[0]}}function Zg(e){return e.replace(/\-(\w)/g,(t,n)=>n.toUpperCase())}function Kg(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}function Qi(e,t){var n;let r=((n=t.cache)===null||n===void 0?void 0:n.stylesheetSnippets)||eb(t.snippets),i=[];t.cache&&(t.cache.stylesheetSnippets=r),typeof e=="string"&&(e=Wl(e,{value:Su(t)}));let o=lb(r,t);for(let s of e){let a=tb(s,o,t);a&&i.push(a)}return i}function eb(e){let t=[];for(let n of Object.keys(e))t.push(Fg(n,e[n]));return zg(t)}function tb(e,t,n){if(!nb(e,n)){let r=n.options["stylesheet.fuzzySearchMinScore"];if(Su(n)){let i=n.context.name,o=t.find(s=>s.type===Ie.Property&&s.property===i);yu(e,n,o,r),e.snippet=o}else if(e.name){let i=kn(e.name,t,r,!0);if(e.snippet=i,i){let o=i.type===Ie.Property?rb(e,i,n):ib(e,i);if(o)e=o;else if(n.options["stylesheet.strictMatch"])return null}}}return(e.name||n.context)&&ab(e,n),e}function nb(e,t){let n=null,r=e.value.length===1?e.value[0]:null;if(r&&r.value.length===1){let i=r.value[0];i.type==="FunctionCall"&&i.name===wl&&(n=i)}return n||e.name===wl?(n?n=Object.assign(Object.assign({},n),{name:"linear-gradient"}):n={type:"FunctionCall",name:"linear-gradient",arguments:[In(Be(0,""))]},t.context||(e.name="background-image"),e.value=[In(n)],!0):!1}function rb(e,t,n){let r=e.name,i=sb(r,t.key);if(i){if(e.value.length)return null;let o=$i(i,n,t);if(!o)return null;e.value.push(In(o))}if(e.name=t.property,e.value.length)yu(e,n,t);else if(t.value.length){let o=t.value[0];e.value=t.value.length===1||o.some(wu)?o:o.map(s=>ku(s,n))}return e}function yu(e,t,n,r){for(let i of e.value){let o=[];for(let s of i.value)if(s.type==="Literal")o.push($i(s.value,t,n,r)||s);else if(s.type==="FunctionCall"){let a=$i(s.name,t,n,r);a&&a.type==="FunctionCall"?o.push(Object.assign(Object.assign({},a),{arguments:s.arguments.concat(a.arguments.slice(s.arguments.length))})):o.push(s)}else o.push(s);i.value=o}}function ib(e,t){let n=0,r,i=/\$\{(\d+)(:[^}]+)?\}/g,o=e.value[0],s=[];for(;r=i.exec(t.value);)n!==r.index&&s.push(lt(t.value.slice(n,r.index))),n=r.index+r[0].length,o&&o.value.length?s.push(o.value.shift()):s.push(Be(Number(r[1]),r[2]?r[2].slice(1):""));let a=t.value.slice(n);return a&&s.push(lt(a)),e.name=void 0,e.value=[In(...s)],e}function kn(e,t,n=0,r=!1){let i=null,o=0;for(let s of t){let a=qg(e,ob(s),r);if(a===1)return s;a&&a>=o&&(o=a,i=s)}return o>=n?i:null}function ob(e){return typeof e=="string"?e:e.key}function sb(e,t){for(let n=0,r=0;n<e.length;n++){if(r=t.indexOf(e[n],r),r===-1)return e.slice(n);r++}return""}function $i(e,t,n,r){let i;if(n){if(i=kn(e,Object.keys(n.keywords),r))return n.keywords[i];for(let o of n.dependencies)if(i=kn(e,Object.keys(o.keywords),r))return o.keywords[i]}return(i=kn(e,t.options["stylesheet.keywords"],r))?lt(i):null}function ab(e,t){let n=t.options["stylesheet.unitAliases"],r=t.options["stylesheet.unitless"];for(let i of e.value)for(let o of i.value)o.type==="NumberValue"&&(o.unit?o.unit=n[o.unit]||o.unit:o.value!==0&&!r.includes(e.name)&&(o.unit=o.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}function In(...e){return{type:"CSSValue",value:e}}function lt(e){return{type:"Literal",value:e}}function Be(e,t){return{type:"Field",index:e,name:t}}function wu(e){for(let t of e.value)if(t.type==="Field"||t.type==="FunctionCall"&&t.arguments.some(wu))return!0;return!1}function ku(e,t,n={index:1}){let r=[];for(let i of e.value)switch(i.type){case"ColorValue":r.push(Be(n.index++,gu(i,t.options["stylesheet.shortHex"])));break;case"Literal":r.push(Be(n.index++,i.value));break;case"NumberValue":r.push(Be(n.index++,`${i.value}${i.unit}`));break;case"StringValue":let o=i.quote==="single"?"'":'"';r.push(Be(n.index++,o+i.value+o));break;case"FunctionCall":r.push(Be(n.index++,i.name),lt("("));for(let s=0,a=i.arguments.length;s<a;s++)r=r.concat(ku(i.arguments[s],t,n).value),s!==a-1&&r.push(lt(", "));r.push(lt(")"));break;default:r.push(i)}return Object.assign(Object.assign({},e),{value:r})}function Su(e){return e.context?e.context.name===Nn.Value||!e.context.name.startsWith("@@"):!1}function lb(e,t){if(t.context){if(t.context.name===Nn.Section)return e.filter(n=>n.type===Ie.Raw);if(t.context.name===Nn.Property)return e.filter(n=>n.type===Ie.Property)}return e}function wn(e){let t={};return Object.keys(e).forEach(n=>{for(let r of n.split("|"))t[r]=e[n]}),t}function Ut(e={},t={}){let n=e.type||"markup",r=e.syntax||hb[n];return Object.assign(Object.assign(Object.assign({},Tu),e),{type:n,syntax:r,variables:Ai(n,r,"variables",e,t),snippets:Ai(n,r,"snippets",e,t),options:Ai(n,r,"options",e,t)})}function Ai(e,t,n,r,i={}){let o=kl[e],s=i[e],a=kl[t],l=i[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tu[n]),o&&o[n]),a&&a[n]),s&&s[n]),l&&l[n]),r[n])}function Eu(e,t=0){return{text:e,start:t,pos:e.length}}function Pe(e){return e.pos===e.start}function zt(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function Sl(e){if(!Pe(e))return e.text.charCodeAt(--e.pos)}function de(e,t){if(Pe(e))return!1;let n=typeof t=="function"?t(zt(e)):t===zt(e);return n&&e.pos--,!!n}function Au(e,t){let n=e.pos;for(;de(e,t););return e.pos<n}function Yi(e){return e===Dt.SingleQuote||e===Dt.DoubleQuote}function gb(e){let t=e.pos,n=Sl(e);if(Yi(n)){for(;!Pe(e);)if(Sl(e)===n&&zt(e)!==Dt.Escape)return!0}return e.pos=t,!1}function bb(e){let t=e.pos;if(!de(e,ue.AngleRight))return!1;let n=!1;for(de(e,ue.Slash);!Pe(e);){if(Au(e,Ri),Pn(e)){if(de(e,ue.Slash)){n=de(e,ue.AngleLeft);break}else if(de(e,ue.AngleLeft)){n=!0;break}else{if(de(e,Ri))continue;if(de(e,ue.Equals)){if(Pn(e))continue;break}else if(Nu(e)){n=!0;break}}break}if(!vb(e))break}return e.pos=t,n}function vb(e){return xb(e)||Nu(e)}function xb(e){let t=e.pos;return gb(e)&&de(e,ue.Equals)&&Pn(e)?!0:(e.pos=t,!1)}function Nu(e){let t=e.pos,n=[];for(;!Pe(e);){let r=zt(e);if(Eb(r))n.push(r);else if(Tb(r)){if(n.pop()!==Cu[r])break}else if(!Sb(r))break;e.pos--}return t!==e.pos&&de(e,ue.Equals)&&Pn(e)?!0:(e.pos=t,!1)}function Pn(e){return Au(e,yb)}function yb(e){return e===ue.Colon||e===ue.Dash||wb(e)||kb(e)}function wb(e){return e&=-33,e>=65&&e<=90}function kb(e){return e>47&&e<58}function Ri(e){return e===ue.Space||e===ue.Tab}function Sb(e){return!isNaN(e)&&e!==ue.Equals&&!Ri(e)&&!Yi(e)}function Tb(e){return e===B.CurlyL||e===B.RoundL||e===B.SquareL}function Eb(e){return e===B.CurlyR||e===B.RoundR||e===B.SquareR}function Ji(e,t=e.length,n={}){let r=Object.assign(Object.assign({},Cb),n);t=Math.min(e.length,Math.max(0,t??e.length)),r.lookAhead&&(t=Nb(e,t,r));let i,o=Ib(e,t,r.prefix||"");if(o===-1)return;let s=Eu(e,o);s.pos=t;let a=[];for(;!Pe(s);){if(i=zt(s),a.includes(B.CurlyR)){if(i===B.CurlyR){a.push(i),s.pos--;continue}if(i!==B.CurlyL){s.pos--;continue}}if(Pu(i,r.type))a.push(i);else if($b(i,r.type)){if(a.pop()!==Cu[i])break}else if(a.includes(B.SquareR)||a.includes(B.CurlyR)){s.pos--;continue}else if(bb(s)||!Ob(i))break;s.pos--}if(!a.length&&s.pos!==t){let l=e.slice(s.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:l,location:t-l.length,start:n.prefix?o-n.prefix.length:t-l.length,end:t}}}function Nb(e,t,n){for(Yi(e.charCodeAt(t))&&t++;Pu(e.charCodeAt(t),n.type);)t++;return t}function Ib(e,t,n){if(!n)return 0;let r=Eu(e),i=n.split("").map(Iu);r.pos=t;let o;for(;!Pe(r);)if(!(Tl(r,B.SquareR,B.SquareL)||Tl(r,B.CurlyR,B.CurlyL))){if(o=r.pos,Pb(r,i))return o;r.pos--}return-1}function Tl(e,t,n){let r=e.pos;if(de(e,t))for(;!Pe(e);){if(de(e,n))return!0;e.pos--}return e.pos=r,!1}function Pb(e,t){let n=e.pos,r=!1;for(let i=t.length-1;i>=0&&!Pe(e)&&de(e,t[i]);i--)r=i===0;return r||(e.pos=n),r}function Ob(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Ab.includes(e)}function $b(e,t){return e===B.RoundL||t==="markup"&&(e===B.SquareL||e===B.CurlyL)}function Pu(e,t){return e===B.RoundR||t==="markup"&&(e===B.SquareR||e===B.CurlyR)}function Bt(e,t){let n=Ut(t);return n.type==="stylesheet"?_b(e,n):Rb(e,n)}function Rb(e,t){return Hi(Wi(e,t),t)}function _b(e,t){return Gi(Qi(e,t),t)}var Sn,jt,F,Vh,il,Wh,Hh,he,D,Pi,Oi,zm,Mm,qm,Vm,ul,Wm,eu,tu,tg,ng,Ln,qe,mg,gg,Rg,Ie,Lg,jg,Nn,wl,ub,cb,fb,db,pb,hb,mb,Tu,kl,Dt,B,Cu,ue,Iu,Ab,Cb,Ou=J(()=>{Sn=class e{constructor(t,n,r){r==null&&typeof t=="string"&&(r=t.length),this.string=t,this.pos=this.start=n||0,this.end=r||0}eof(){return this.pos>=this.end}limit(t,n){return new e(this.string,t,n)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(t){let n=this.peek(),r=typeof t=="function"?t(n):n===t;return r&&this.next(),r}eatWhile(t){let n=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==n}backUp(t){this.pos-=t||1}current(){return this.substring(this.start,this.pos)}substring(t,n){return this.string.slice(t,n)}error(t,n=this.pos){return new jt(`${t} at ${n+1}`,n,this.string)}},jt=class extends Error{constructor(t,n,r){super(t),this.pos=n,this.string=r}};(function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"})(F||(F={}));Vh={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},il={Literal(e){return e.value},Quote(e){return e.single?"'":'"'},Bracket(e){return e.context==="attribute"?e.open?"[":"]":e.context==="expression"?e.open?"{":"}":e.open?"(":"}"},Operator(e){return Vh[e.operator]},Field(e,t){return e.index!=null?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):""},RepeaterPlaceholder(e,t){let n;for(let r=t.repeaters.length-1;r>=0;r--)if(t.repeaters[r].implicit){n=t.repeaters[r];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1,r=t.repeaters.length-1,i=t.repeaters[r];if(i&&(n=e.reverse?e.base+i.count-i.value-1:e.base+i.value,e.parent)){let s=Math.max(0,r-e.parent);if(s!==r){let a=t.repeaters[s];n+=i.count*a.value}}let o=String(n);for(;o.length<e.size;)o="0"+o;return o},WhiteSpace(e){return e.value}};Wh=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Hh=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;(function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"})(he||(he={}));(function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"})(D||(D={}));Pi="{",Oi="}";zm={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};Mm={common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]},qm={common:["\u0434\u0430\u043B\u0435\u043A\u043E-\u0434\u0430\u043B\u0435\u043A\u043E","\u0437\u0430","\u0441\u043B\u043E\u0432\u0435\u0441\u043D\u044B\u043C\u0438","\u0433\u043E\u0440\u0430\u043C\u0438","\u0432 \u0441\u0442\u0440\u0430\u043D\u0435","\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0438 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0436\u0438\u0432\u0443\u0442","\u0440\u044B\u0431\u043D\u044B\u0435","\u0442\u0435\u043A\u0441\u0442\u044B"],words:["\u0432\u0434\u0430\u043B\u0438","\u043E\u0442 \u0432\u0441\u0435\u0445","\u043E\u043D\u0438","\u0431\u0443\u043A\u0432\u0435\u043D\u043D\u044B\u0445","\u0434\u043E\u043C\u0430\u0445","\u043D\u0430 \u0431\u0435\u0440\u0435\u0433\u0443","\u0441\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430","\u0431\u043E\u043B\u044C\u0448\u043E\u0433\u043E","\u044F\u0437\u044B\u043A\u043E\u0432\u043E\u0433\u043E","\u043E\u043A\u0435\u0430\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0439","\u0440\u0443\u0447\u0435\u0435\u043A","\u0434\u0430\u043B\u044C","\u0436\u0443\u0440\u0447\u0438\u0442","\u043F\u043E \u0432\u0441\u0435\u0439","\u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0435\u0442","\u0435\u0435","\u0432\u0441\u0435\u043C\u0438","\u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438","\u043F\u0440\u0430\u0432\u0438\u043B\u0430\u043C\u0438","\u044D\u0442\u0430","\u043F\u0430\u0440\u0430\u0434\u0438\u0433\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F","\u0441\u0442\u0440\u0430\u043D\u0430","\u043A\u043E\u0442\u043E\u0440\u043E\u0439","\u0436\u0430\u0440\u0435\u043D\u043D\u044B\u0435","\u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F","\u0437\u0430\u043B\u0435\u0442\u0430\u044E\u0442","\u043F\u0440\u044F\u043C\u043E","\u0440\u043E\u0442","\u0434\u0430\u0436\u0435","\u0432\u0441\u0435\u043C\u043E\u0433\u0443\u0449\u0430\u044F","\u043F\u0443\u043D\u043A\u0442\u0443\u0430\u0446\u0438\u044F","\u043D\u0435","\u0438\u043C\u0435\u0435\u0442","\u0432\u043B\u0430\u0441\u0442\u0438","\u043D\u0430\u0434","\u0440\u044B\u0431\u043D\u044B\u043C\u0438","\u0442\u0435\u043A\u0441\u0442\u0430\u043C\u0438","\u0432\u0435\u0434\u0443\u0449\u0438\u043C\u0438","\u0431\u0435\u0437\u043E\u0440\u0444\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u043D\u044B\u0439","\u043E\u0431\u0440\u0430\u0437","\u0436\u0438\u0437\u043D\u0438","\u043E\u0434\u043D\u0430\u0436\u0434\u044B","\u043E\u0434\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0430\u044F","\u0441\u0442\u0440\u043E\u0447\u043A\u0430","\u0440\u044B\u0431\u043D\u043E\u0433\u043E","\u0442\u0435\u043A\u0441\u0442\u0430","\u0438\u043C\u0435\u043D\u0438","lorem","ipsum","\u0440\u0435\u0448\u0438\u043B\u0430","\u0432\u044B\u0439\u0442\u0438","\u0431\u043E\u043B\u044C\u0448\u043E\u0439","\u043C\u0438\u0440","\u0433\u0440\u0430\u043C\u043C\u0430\u0442\u0438\u043A\u0438","\u0432\u0435\u043B\u0438\u043A\u0438\u0439","\u043E\u043A\u0441\u043C\u043E\u043A\u0441","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0430\u043B","\u043E","\u0437\u043B\u044B\u0445","\u0437\u0430\u043F\u044F\u0442\u044B\u0445","\u0434\u0438\u043A\u0438\u0445","\u0437\u043D\u0430\u043A\u0430\u0445","\u0432\u043E\u043F\u0440\u043E\u0441\u0430","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0445","\u0442\u043E\u0447\u043A\u0430\u0445","\u0437\u0430\u043F\u044F\u0442\u043E\u0439","\u043D\u043E","\u0442\u0435\u043A\u0441\u0442","\u0434\u0430\u043B","\u0441\u0431\u0438\u0442\u044C","\u0441\u0435\u0431\u044F","\u0442\u043E\u043B\u043A\u0443","\u043E\u043D","\u0441\u043E\u0431\u0440\u0430\u043B","\u0441\u0435\u043C\u044C","\u0441\u0432\u043E\u0438\u0445","\u0437\u0430\u0433\u043B\u0430\u0432\u043D\u044B\u0445","\u0431\u0443\u043A\u0432","\u043F\u043E\u0434\u043F\u043E\u044F\u0441\u0430\u043B","\u0438\u043D\u0438\u0446\u0438\u0430\u043B","\u0437\u0430","\u043F\u043E\u044F\u0441","\u043F\u0443\u0441\u0442\u0438\u043B\u0441\u044F","\u0434\u043E\u0440\u043E\u0433\u0443","\u0432\u0437\u043E\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044C","\u043F\u0435\u0440\u0432\u0443\u044E","\u0432\u0435\u0440\u0448\u0438\u043D\u0443","\u043A\u0443\u0440\u0441\u0438\u0432\u043D\u044B\u0445","\u0433\u043E\u0440","\u0431\u0440\u043E\u0441\u0438\u043B","\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439","\u0432\u0437\u0433\u043B\u044F\u0434","\u043D\u0430\u0437\u0430\u0434","\u0441\u0438\u043B\u0443\u044D\u0442","\u0441\u0432\u043E\u0435\u0433\u043E","\u0440\u043E\u0434\u043D\u043E\u0433\u043E","\u0433\u043E\u0440\u043E\u0434\u0430","\u0431\u0443\u043A\u0432\u043E\u0433\u0440\u0430\u0434","\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0434\u0435\u0440\u0435\u0432\u043D\u0438","\u0430\u043B\u0444\u0430\u0432\u0438\u0442","\u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0441\u0432\u043E\u0435\u0433\u043E","\u043F\u0435\u0440\u0435\u0443\u043B\u043A\u0430","\u0433\u0440\u0443\u0441\u0442\u043D\u044B\u0439","\u0440\u0435\u0442\u043E\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439","\u0432\u043E\u043F\u0440\u043E\u0441","\u0441\u043A\u0430\u0442\u0438\u043B\u0441\u044F","\u0435\u0433\u043E","\u0449\u0435\u043A\u0435","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0434\u043E\u0440\u043E\u0433\u0435","\u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043B","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u044C","\u043E\u043D\u0430","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0434\u0438\u043B\u0430","\u043C\u043E\u0435\u0439","\u0432\u0441\u0435","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F","\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E","\u0440\u0430\u0437","\u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435","\u0447\u0442\u043E","\u043C\u0435\u043D\u044F","\u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C","\u044D\u0442\u043E","\u043F\u0440\u0438\u0441\u0442\u0430\u0432\u043A\u0430","\u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0439\u0441\u044F","\u0442\u044B","\u043B\u0443\u0447\u0448\u0435","\u0441\u0432\u043E\u044E","\u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u0443\u044E","\u0441\u0442\u0440\u0430\u043D\u0443","\u043F\u043E\u0441\u043B\u0443\u0448\u0430\u0432\u0448\u0438\u0441\u044C","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u0438","\u043D\u0430\u0448","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0432\u0441\u043A\u043E\u0440\u0435","\u0435\u043C\u0443","\u043F\u043E\u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043B\u0441\u044F","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0439","\u0441\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C","\u0440\u0435\u043A\u043B\u0430\u043C\u043D\u044B\u0445","\u0442\u0435\u043A\u0441\u0442\u043E\u0432","\u043D\u0430\u043F\u043E\u0438\u0432\u0448\u0438\u0439","\u044F\u0437\u044B\u043A\u043E\u043C","\u0440\u0435\u0447\u044C\u044E","\u0437\u0430\u043C\u0430\u043D\u0438\u0432\u0448\u0438\u0439","\u0441\u0432\u043E\u0435","\u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E","\u043A\u043E\u0442\u043E\u0440\u043E\u0435","\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u043E","\u0441\u043D\u043E\u0432\u0430","\u0441\u043D\u043E\u0432\u0430","\u0441\u0432\u043E\u0438\u0445","\u043F\u0440\u043E\u0435\u043A\u0442\u0430\u0445","\u0435\u0441\u043B\u0438","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u0430\u043B\u0438","\u0442\u043E","\u0436\u0438\u0432\u0435\u0442","\u0442\u0430\u043C","\u0434\u043E","\u0441\u0438\u0445","\u043F\u043E\u0440"]},Vm={common:["mujer","uno","dolor","m\xE1s","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","pa\xF1o","suntuoso","molde","namibia","planeador","mirar","dem\xE1s","oficinista","excepci\xF3n","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cu\xF3rum","dign\xEDsimo","facilismo","letra","nihilista","expedici\xF3n","alma","alveolar","aparte","le\xF3n","animal","como","paria","belleza","modo","natividad","justo","ataque","s\xE9quito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunci\xF3n","incidente","marejada","placenta","amanecer","fuga","previsor","presentaci\xF3n","lejos","necesariamente","sospechoso","adiposidad","quind\xEDo","p\xF3cima","voluble","d\xE9bito","sinti\xF3","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","m\xEDnima","mayores","repugnante","dulce","obcecado","monta\xF1a","enigma","total","delet\xE9reo","d\xE9cima","c\xE1bala","fotograf\xEDa","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magn\xEDfico","distinci\xF3n","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crep\xFAsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abad\xEDa","analfabeto","remo","fugacidad","oficio","en","alm\xE1cigo","vos","pan","represi\xF3n","n\xFAmeros","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patr\xF3n","expl\xEDcito","paloma","s\xEDndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","ap\xE9ndice","arquitecto","columna","yugo","computador","mula","a","prop\xF3sito","fantas\xEDa","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},ul={ru:qm,sp:Vm,latin:Mm},Wm=/^lorem([a-z]*)(\d*)(-\d*)?$/i;eu=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,tu=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,tg=e=>/^[a-z]\-/i.test(e),ng=e=>/^[a-z]/i.test(e);Ln=[{type:"Field",index:0,name:""}];(function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"})(qe||(qe={}));mg=/^<([\w\-:]+)[\s>]/,gg=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);Rg={html:pu,haml:Pg,slim:Og,pug:$g};(function(e){e.Raw="Raw",e.Property="Property"})(Ie||(Ie={}));Lg=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,jg={value:!0};Nn={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};wl="lg";ub={a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:b|button:b|button:button":"button[type=button]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{<!-- ${0} -->}","cc:ie":"{<!--[if IE]>${0}<![endif]-->}","cc:noie":"{<!--[if !IE]><!-->${0}<!--<![endif]-->}"},cb={"@f":`@font-face {
font-family: \${1};
src: url(\${2});
}`,"@ff":"@font-face {\n font-family: '${1:FontName}';\n src: url('${2:FileName}.eot');\n src: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n url('${2:FileName}.woff') format('woff'),\n url('${2:FileName}.ttf') format('truetype'),\n url('${2:FileName}.svg#${1:FontName}') format('svg');\n font-style: ${3:normal};\n font-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n ${2}\n}","@m|@media":"@media ${1:screen} {\n ${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:${1:#fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bs:"block-size",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cg:"column-gap",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|contents|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",g:"gap",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",is:"inline-size",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width:thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub","w|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"},fb={"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:`!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{
|}`,"!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'},db={"!!!":"{doctype html}"},pb={lang:"en",locale:"en-US",charset:"UTF-8",indentation:" ",newline:`
`},hb={markup:"html",stylesheet:"css"},mb={inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":" ","output.baseIndent":"","output.newline":`
`,"output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1},Tu={type:"markup",syntax:"html",variables:pb,snippets:{},options:mb},kl={markup:{snippets:wn(ub)},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:wn(fb),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:wn(db)},stylesheet:{snippets:wn(cb)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};(function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"})(Dt||(Dt={}));(function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"})(B||(B={}));Cu={[B.SquareL]:B.SquareR,[B.RoundL]:B.RoundR,[B.CurlyL]:B.CurlyR};(function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"})(ue||(ue={}));Iu=e=>e.charCodeAt(0),Ab="#.*:$-_!@%^+>/".split("").map(Iu),Cb={type:"markup",lookAhead:!0,prefix:""}});function $u(e){let t={};return Object.keys(e).forEach(n=>{for(let r of n.split("|"))t[r]=e[n]}),t}var Mt,Ru=J(()=>{Mt={markup:["html","xml","xsl","jsx","js","pug","slim","haml","vue"],stylesheet:["css","sass","scss","less","sss","stylus"]}});var Vu={};_r(Vu,{FileType:()=>_t,doComplete:()=>Ub,emmetSnippetField:()=>no,expandAbbreviation:()=>Gb,extractAbbreviation:()=>Uu,extractAbbreviationFromText:()=>qb,getDefaultSnippets:()=>zu,getDefaultSyntax:()=>io,getEmmetMode:()=>qu,getExpandOptions:()=>Mu,getSyntaxType:()=>ro,isAbbreviationValid:()=>Bu,isStyleSheet:()=>xe,parseAbbreviation:()=>Hb,updateExtensionsPath:()=>Xb});function Ub(e,t,n,r){var i,o;if(r.showExpandedAbbreviation==="never"||!qu(n,r.excludeLanguages))return;let s=xe(n);if(!s){if(!Dn.has(n)){let g=Object.assign(Object.assign({},zu(n)),Ve[n]);Dn.set(n,Object.keys(g))}eo=(i=Dn.get(n))!==null&&i!==void 0?i:[]}let l=Uu(e,t,{lookAhead:!s,type:s?"stylesheet":"markup"});if(!l)return;let{abbreviationRange:u,abbreviation:c,filter:f}=l,h=Fu(e,t).substr(0,t.character);if(Bb(h)===c&&h.endsWith(`<${c}`)&&Mt.markup.includes(n))return;let v=Mu(n,r,f),b="",w,x=[],T=(g,S)=>{if(Bu(g,c)){try{b=Bt(S,v),s&&"!important".startsWith(S)&&(b="!important")}catch{}!b||Vb(g,S,b,v.options)||(w=$t.create(S),w.textEdit=ke.replace(u,Un(Bn(b))),w.documentation=to(b),w.insertTextFormat=Ot.Snippet,w.detail=ft.t("Emmet Abbreviation"),w.label=c,w.label+=f?"|"+f.replace(",","|"):"",x=[w])}};if(xe(n)){if(T(n,c),c.length>4&&Ya.properties.find(g=>g.startsWith(c)))return Rt.create([],!0);if(w&&b.length){w.textEdit=ke.replace(u,Un(Bn(b))),w.documentation=to(b),w.label=Mb(b),w.filterText=c;let g=ct.has(n)?ct.get(n):ct.get("css");if(x=Zi(g??[],c,c,u,v,"Emmet Custom Snippet",!1),!x.find(S=>{var k,y,C;return((k=S.textEdit)===null||k===void 0?void 0:k.newText)&&((y=S.textEdit)===null||y===void 0?void 0:y.newText)===((C=w?.textEdit)===null||C===void 0?void 0:C.newText)})){let S=new RegExp(".*"+c.split("").map(k=>k==="$"||k==="+"?"\\"+k:k).join(".*")+".*","i");(/\d/.test(c)||S.test(w.label))&&x.push(w)}}}else{T(n,c);let g=c,S=c.match(/(>|\+)([\w:-]+)$/);if(S&&S.length===3&&(g=S[2]),n!=="xml"){let k=Zi(qt,g,c,u,v,"Emmet Abbreviation");x=x.concat(k)}if(r.showAbbreviationSuggestions===!0){let k=Zi(eo.filter(y=>!qt.includes(y)),g,c,u,v,"Emmet Abbreviation");w&&k.length>0&&g!==c&&(w.sortText="0"+w.label,k.forEach(y=>{y.filterText=c,y.sortText="9"+c})),x=x.concat(k)}n==="html"&&x.length>=2&&c.includes(":")&&((o=w?.textEdit)===null||o===void 0?void 0:o.newText)===`<${c}>\${0}</${c}>`&&(x=x.filter(k=>k.label!==c))}return r.showSuggestionsAsSnippets===!0&&x.forEach(g=>g.kind=vn.Snippet),x.length?Rt.create(x,!0):void 0}function Zi(e,t,n,r,i,o,s=!0){if(!t||!e)return[];let a=[];return e.forEach(l=>{if(!l.startsWith(t.toLowerCase())||s&&l===t.toLowerCase())return;let u=n+l.substr(t.length),c;try{c=Bt(u,i)}catch{}if(!c)return;let f=$t.create(t+l.substr(t.length));f.documentation=to(c),f.detail=o,f.textEdit=ke.replace(r,Un(Bn(c))),f.insertTextFormat=Ot.Snippet,a.push(f)}),a}function Bb(e){if(e){let t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}function to(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function Mb(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function Un(e){return e&&e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3")}function Bn(e){if(!e||!e.trim())return e;let t=-1,n=[],r=!1,i=!1,o=0,s=e.length;try{for(;o<s&&!r;){if(e[o++]!="$"||e[o++]!="{")continue;let a=-1,l=-1;for(;o<s&&/\d/.test(e[o]);)a=a<0?o:a,l=o+1,o++;if(a===-1||l===-1||o>=s||e[o]!="}"&&e[o]!=":")continue;let u=e.substring(a,l);if(r=u==="0",r)break;let c=!1;if(e[o++]==":")for(;o<s;){if(e[o]=="}"){c=!0;break}o++}Number(u)>Number(t)?(t=Number(u),n=[{numberStart:a,numberEnd:l}],i=!c):Number(u)===t&&n.push({numberStart:a,numberEnd:l})}}catch{}if(i&&!r)for(let a=0;a<n.length;a++){let l=n[a].numberStart,u=n[a].numberEnd;e=e.substr(0,l)+"0"+e.substr(u)}return e}function Fu(e,t){let n=e.offsetAt(t),r=e.getText(),i=0,o=r.length;for(let s=n-1;s>=0;s--)if(r[s]===`
`){i=s+1;break}for(let s=n;s<r.length;s++)if(r[s]===`
`){o=s;break}return r.substring(i,o)}function xe(e){return Mt.stylesheet.includes(e)}function ro(e){return xe(e)?"stylesheet":"markup"}function io(e){return xe(e)?"css":"html"}function zu(e){let n={type:ro(e),syntax:e},r=Ut(n);return e==="xml"?{}:r.snippets}function Du(e,t){let n;for(let r=0;r<Db;r++)if(e.endsWith(`${Xi}${jn}`,t))t-=jn.length+1,n=n?jn+","+n:jn;else if(e.endsWith(`${Xi}${zn}`,t))t-=zn.length+1,n=n?zn+","+n:zn;else if(e.endsWith(`${Xi}${Fn}`,t))t-=Fn.length+1,n=n?Fn+","+n:Fn;else break;return{pos:t,filter:n}}function Uu(e,t,n){let r=Fu(e,t),i=r.substr(0,t.character),{pos:o,filter:s}=Du(i,t.character),a=s?s.length+1:0,l=Ji(r,o,n);return l?{abbreviationRange:Z.create(t.line,l.location,t.line,l.location+l.abbreviation.length+a),abbreviation:l.abbreviation,filter:s}:void 0}function qb(e,t){if(!e)return;let{pos:n,filter:r}=Du(e,e.length),i=xe(t)||t==="stylesheet"?{syntax:"stylesheet",lookAhead:!1}:{lookAhead:!0},o=Ji(e,n,i);if(o)return{abbreviation:o.abbreviation,filter:r}}function Bu(e,t){if(!t)return!1;if(xe(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(qt.includes(t.substring(0,t.indexOf("#"))))return!1}return zb.test(t)}return t.startsWith("!")?!/[^!]/.test(t):(/\(/.test(t)||/\)/.test(t))&&!/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)&&!/\(.*\)[>\+\*\^]/.test(t)&&!/\[[^\[\]\(\)]+=".*"\]/.test(t)&&!/[>\+\*\^]\(.*\)/.test(t)?!1:e==="jsx"?Fb.test(t)&&_u.test(t):/^{%|{#|{{/.test(t)?!1:jb.test(t)&&_u.test(t)}function Vb(e,t,n,r){var i,o;if(xe(e)&&r){let a=(i=r["stylesheet.between"])!==null&&i!==void 0?i:": ",l=(o=r["stylesheet.after"])!==null&&o!==void 0?o:";",u=t.indexOf(a[0],Math.max(t.length-a.length,0));u=u>=0?u:t.length;let c=t.substring(0,u);return n===`${c}${a}\${0}${l}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+l}if(e==="xml"&&qt.some(a=>a.startsWith(t.toLowerCase())))return!0;if(qt.includes(t.toLowerCase())||eo.includes(t)||/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if(/^\.{2,}$/.test(t))return!0;if(t===".")return!1;let s=t.match(/^([a-z,A-Z,\d]*)\.$/);return s?!(s[1]&&xi.tags.includes(s[1])):e==="jsx"&&/^([A-Z][A-Za-z0-9]*)+$/.test(t)?!1:n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}function Mu(e,t,n){var r,i,o,s,a,l,u,c,f,h;t=t??{},t.preferences=(r=t.preferences)!==null&&r!==void 0?r:{};let d=t.preferences,v=xe(e)?e:"css",b=Qb(e,(i=t.syntaxProfiles)!==null&&i!==void 0?i:{}),x=(b&&b.filters?b.filters.split(","):[]).map(A=>A.trim()),T=n&&n.split(",").some(A=>A.trim()==="bem")||x.includes("bem"),g=n&&n.split(",").some(A=>A.trim()==="c")||x.includes("c"),S=Jb(e,t.preferences),k=S?.stylesheet&&S.stylesheet.unitAliases||{},y={"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"output.field":no,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":e==="jsx","stylesheet.shortHex":!0,"stylesheet.between":e==="stylus"?" ":": ","stylesheet.after":e==="sass"||e==="stylus"?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3},C={"output.tagCase":b.tagCase,"output.attributeCase":b.attributeCase,"output.attributeQuotes":b.attributeQuotes,"output.format":(o=b.format)!==null&&o!==void 0?o:!0,"output.formatSkip":d["format.noIndentTags"],"output.formatForce":d["format.forceIndentationForTags"],"output.inlineBreak":(s=b.inlineBreak)!==null&&s!==void 0?s:d["output.inlineBreak"],"output.compactBoolean":(a=b.compactBooleanAttributes)!==null&&a!==void 0?a:d["profile.allowCompactBoolean"],"output.reverseAttributes":d["output.reverseAttributes"],"output.selfClosingStyle":(u=(l=b.selfClosingStyle)!==null&&l!==void 0?l:d["output.selfClosingStyle"])!==null&&u!==void 0?u:Wb(e),"output.field":no,"comment.enabled":g,"comment.trigger":d["filter.commentTrigger"],"comment.before":d["filter.commentBefore"],"comment.after":d["filter.commentAfter"],"bem.enabled":T,"bem.element":(c=d["bem.elementSeparator"])!==null&&c!==void 0?c:"__","bem.modifier":(f=d["bem.modifierSeparator"])!==null&&f!==void 0?f:"_","jsx.enabled":e==="jsx","stylesheet.shortHex":d["css.color.short"],"stylesheet.between":d[`${v}.valueSeparator`],"stylesheet.after":d[`${v}.propertyEnd`],"stylesheet.intUnit":d["css.intUnit"],"stylesheet.floatUnit":d["css.floatUnit"],"stylesheet.unitAliases":k,"stylesheet.fuzzySearchMinScore":d["css.fuzzySearchMinScore"]};if(e==="jsx"){let A={class:"className","class*":"styleName",for:"htmlFor"},R={"class*":"styles"};b["markup.attributes"]&&(C["markup.attributes"]=Object.assign(Object.assign({},A),b["markup.attributes"])),b["markup.valuePrefix"]&&(C["markup.valuePrefix"]=Object.assign(Object.assign({},R),b["markup.valuePrefix"]))}if(e==="vue"){let A={"class*":":class"},R={"class*":"$style"};b["markup.attributes"]&&(C["markup.attributes"]=Object.assign(Object.assign({},A),b["markup.attributes"])),b["markup.valuePrefix"]&&(C["markup.valuePrefix"]=Object.assign(Object.assign({},R),b["markup.valuePrefix"]))}let P={};[...Object.keys(y),...Object.keys(C)].forEach(A=>{var R;let O=A;P[O]=(R=C[O])!==null&&R!==void 0?R:y[O]});let I=Object.assign(Object.assign({},y["stylesheet.unitAliases"]),C["stylesheet.unitAliases"]);P["stylesheet.unitAliases"]=I;let $=ro(e),E=Yb(t.variables),m=io(e),N=$==="stylesheet"?(h=Ve[e])!==null&&h!==void 0?h:Ve[m]:Ve[e];return{type:$,options:P,variables:E,snippets:N,syntax:e,text:void 0,maxRepeat:1e3}}function Wb(e){switch(e){case"xhtml":return"xhtml";case"xml":return"xml";case"xsl":return"xml";case"jsx":return"xhtml";default:return"html"}}function Hb(e,t){let n=Ut(t);return t.type==="stylesheet"?Qi(e,n):Wi(e,n)}function Gb(e,t){let n,r=Ut(t);return t.type==="stylesheet"?typeof e=="string"?n=Bt(e,r):n=Gi(e,r):typeof e=="string"?n=Bt(e,r):n=Hi(e,r),Un(Bn(n))}function Qb(e,t){t||(t={});let r=Object.assign({},Mn,t)[e];if(!r||typeof r=="string")return r==="xhtml"?{selfClosingStyle:"xhtml"}:{};let i={};for(let o in r)switch(o){case"tag_case":i.tagCase=r[o]==="lower"||r[o]==="upper"?r[o]:"";break;case"attr_case":i.attributeCase=r[o]==="lower"||r[o]==="upper"?r[o]:"";break;case"attr_quotes":i.attributeQuotes=r[o];break;case"tag_nl":i.format=r[o]===!0||r[o]===!1?r[o]:!0;break;case"inline_break":i.inlineBreak=r[o];break;case"self_closing_tag":if(r[o]===!0){i.selfClosingStyle="xml";break}if(r[o]===!1){i.selfClosingStyle="html";break}i.selfClosingStyle=r[o];break;case"compact_bool":i.compactBooleanAttributes=r[o];break;default:i[o]=r[o];break}return i}function Yb(e){return e?Object.assign({},Vt,e):Vt}function Jb(e,t){if(!t||typeof t!="object")return{};if(!xe(e)){let i={};for(let o in t)switch(o){case"filter.commentAfter":i.after=t[o];break;case"filter.commentBefore":i.before=t[o];break;case"filter.commentTrigger":i.trigger=t[o];break;default:break}return{comment:i}}let n=typeof t?.["css.fuzzySearchMinScore"]=="number"?t["css.fuzzySearchMinScore"]:.3;n>1?n=1:n<0&&(n=0);let r={fuzzySearchMinScore:n};for(let i in t)switch(i){case"css.floatUnit":r.floatUnit=t[i];break;case"css.intUnit":r.intUnit=t[i];break;case"css.unitAliases":let o={};t[i].split(",").forEach(s=>{if(!s||!s.trim()||!s.includes(":"))return;let a=s.substr(0,s.indexOf(":")),l=s.substr(a.length+1);!a.trim()||!l||(o[a.trim()]=l)}),r.unitAliases=o;break;case`${e}.valueSeparator`:r.between=t[i];break;case`${e}.propertyEnd`:r.after=t[i];break;default:break}return{stylesheet:r}}function Xb(e,t,n,r){return Lb(this,void 0,void 0,function*(){if(Ki(),!e.length)return;let i=[];for(let o of e){if(typeof o!="string"){console.warn("The following emmetExtensionsPath isn't a string: "+JSON.stringify(o));continue}if(o=o.trim(),o.length&&o[0]==="~")r&&i.push(Lt(r,o.substring(1)));else if(Xa(o))i.push(Ga.file(o));else if(n)for(let s of n)i.push(Lt(s,o))}for(let o of i){try{if((yield t.stat(o)).type!==_t.Directory)continue}catch{continue}let s=Lt(o,"snippets.json"),a=Lt(o,"syntaxProfiles.json"),l;typeof globalThis.TextDecoder=="function"?l=new globalThis.TextDecoder:l=new ju.TextDecoder;let u="";try{let f=yield t.readFile(s);u=l.decode(f)}catch{}if(u.length)try{let f=Lu(s,u);f.variables&&Zb(f.variables),ev(f)}catch(f){throw Ki(),f}let c="";try{let f=yield t.readFile(a);c=l.decode(f)}catch{}if(c.length)try{let f=Lu(a,c);Kb(f)}catch(f){throw Ki(),f}}})}function Lu(e,t){let n=[],r=Ws(t,n);if(n.length)throw new Error(`Found error ${Hs(n[0].error)} while parsing the file ${e} at offset ${n[0].offset}`);return r}function Zb(e){if(typeof e=="object"&&e)Vt=Object.assign({},Vt,e);else throw new Error(ft.t("Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function Kb(e){if(typeof e=="object"&&e)Mn=Object.assign({},Mn,e);else throw new Error(ft.t("Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function ev(e){if(typeof e=="object"&&e)Object.keys(e).forEach(t=>{if(!e[t].snippets)return;let n=io(t),r=e[t].snippets;if(e[n]&&e[n].snippets&&n!==t&&(r=Object.assign({},e[n].snippets,e[t].snippets)),xe(t)){let a=ct.get(t),l=Object.assign([],a,Object.keys(r));ct.set(t,l)}else for(let a in r)r.hasOwnProperty(a)&&r[a].startsWith("<")&&r[a].endsWith(">")&&(r[a]=`{${r[a]}}`);let i=Ve[t],o=$u(r),s=Object.assign({},i,o);Ve[t]=s});else throw new Error(ft.t("Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."))}function Ki(){Ve={},Dn.clear(),ct.clear(),Mn={},Vt={}}function qu(e,t=[]){if(!(!e||t.includes(e))){if(/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e))return"jsx";if(e==="sass-indented")return"sass";if(e==="jade")return"pug";if(Mt.markup.includes(e)||Mt.stylesheet.includes(e))return e}}var ju,Lb,ft,Dn,eo,ct,jb,Fb,zb,_u,qt,jn,Xi,Fn,zn,Db,Ve,Vt,Mn,no,Wu=J(()=>{Gs();ju=require("util");Wa();Qa();Ja();Za();Ou();Ru();Lb=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};try{ft=require("vscode").l10n}catch{ft={t:t=>t}}Dn=new Map,ct=new Map,jb=/^[a-z,A-Z,!,(,[,#,\.\{]/,Fb=/^[a-z,A-Z,!,(,[,#,\.]/,zb=/^-?[a-z,A-Z,!,@,#]/,_u=/[a-z,A-Z\.]/,qt=[...xi.tags,"lorem"],jn="bem",Xi="|",Fn="t",zn="c",Db=3;Ve={},Vt={},Mn={},no=(e,t)=>`\${${e}${t?":"+t:""}}`});function Ju(e){Yu=e}function We(){return oo||(oo=(Wu(),Go(Vu))),oo}function Vn(e=!1){let t=We(),n=W.workspace.getConfiguration("emmet").get("extensionsPath");if(n||(n=[]),e||Hu!==n){Hu=n;let r=W.workspace.workspaceFolders?.length?W.workspace.workspaceFolders.map(o=>o.uri):void 0,i=W.workspace.fs;t.updateExtensionsPath(n,i,r,Yu).catch(o=>{Array.isArray(n)&&n.length&&W.window.showErrorMessage(o.message)})}}function Xu(){let e=W.workspace.getConfiguration().inspect("emmet.extensionsPath");typeof e?.globalValue=="string"?W.workspace.getConfiguration().update("emmet.extensionsPath",[e.globalValue],!0):e?.globalValue===null&&W.workspace.getConfiguration().update("emmet.extensionsPath",[],!0),typeof e?.workspaceValue=="string"?W.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceValue],!1):e?.workspaceValue===null&&W.workspace.getConfiguration().update("emmet.extensionsPath",[],!1),typeof e?.workspaceFolderValue=="string"?W.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceFolderValue]):e?.workspaceFolderValue===null&&W.workspace.getConfiguration().update("emmet.extensionsPath",[])}function te(e){return["css","scss","sass","less","stylus"].includes(e)}function K(e=!0){let t=W.window.activeTextEditor;return t?!(!e&&te(t.document.languageId)):(W.window.showInformationMessage("No editor is active"),!1)}function pt(){let e={handlebars:"html",php:"html"},t={},n=W.workspace.getConfiguration("emmet").get("includeLanguages"),r=Object.assign({},e,n??{});return Object.keys(r).forEach(i=>{typeof r[i]=="string"&&Wt[r[i]]&&(t[i]=r[i])}),t}function Te(e,t,n){if(!e||n.includes(e))return;e==="jsx-tags"&&(e="javascriptreact"),t[e]&&(e=t[e]),/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?e="jsx":e==="sass-indented"?e="sass":(e==="jade"||e==="pug")&&(e="pug");let r=Yn();if(r.markup.includes(e)||r.stylesheet.includes(e))return e}function Wn(e,t){let n=e.languageId==="css",r=e.offsetAt(t),i=0,o=e.getText().length,s=r-5e3,a=s>0?s:i,l=new ln(e,r);function u(T){let S=e.getText().substring(0,T).lastIndexOf("/*");if(S!==-1)return S}function c(T){let S=e.getText().substring(T).indexOf("*/");if(S!==-1)return S+=2+T,S}function f(){let T=e.positionAt(l.pos).line;if(!n&&b!==T){b=T;let g=e.lineAt(b).text.indexOf("//");g>-1&&(l.pos=e.offsetAt(new W.Position(b,g)))}}function h(){!l.sof()&&l.peek()===dt&&(l.backUp(1)===Qu?l.pos=u(l.pos)??i:l.next())}function d(){if(l.eat(dt))if(l.eat(dt)&&!n){let T=e.positionAt(l.pos).line;l.pos=e.offsetAt(new W.Position(T+1,0))}else l.eat(Qu)&&(l.pos=c(l.pos)??o)}for(;!l.eof()&&!l.eat(so);)l.peek()===dt?d():l.next();l.eof()||(o=l.pos),l.pos=r;let v=1,b=t.line,w=!1;for(;!w&&v>0&&!l.sof();){switch(f(),l.backUp(1)){case Gu:v--;break;case so:n?(l.next(),i=l.pos,w=!0):v++;break;case dt:h();break;default:break}(t.line-e.positionAt(l.pos).line>100||l.pos<=a)&&(w=!0)}b=e.positionAt(l.pos).line,v=0;let x=!1;for(;!w&&!l.sof()&&!x&&v>=0;){f();let T=l.backUp(1);if(!/\s/.test(String.fromCharCode(T))){switch(T){case dt:h();break;case so:v++;break;case Gu:v--;break;default:v||(x=!0);break}!l.sof()&&x&&(i=l.pos)}}try{let T=" ".repeat(i)+e.getText().substring(i,o);return we(T)}catch{return}}function H(e,t,n){if(!e)return;function r(o){if(!o)return;let s=o.start,a=o.end;if(s<t&&a>t||n&&s<=t&&a>=t)return i(o.children)??o;if("close"in o){let l=o;if(l.open&&!l.close)return i(l.children)}}function i(o){for(let s=0;s<o.length;s++){let a=r(o[s]);if(a)return a}}return i(e.children)}function Q(e,t,n,r){let i=H(t,n,r);if(i){if(i.name==="script"&&i.children.length===0){let o=tv(e,i);o&&(i=Q(o,i,n,r)??i)}else if(i.type==="cdata"){let o=nv(e,i);i=Q(o,i,n,r)??i}return i}}function tv(e,t){if(t.name==="script"&&t.attributes&&t.attributes.some(r=>r.name.toString()==="type"&&Ht.includes(r.value.toString()))&&t.open){let r=" ".repeat(t.open.end),i=t.close?t.close.start:t.end,o=r+e.substring(t.open.end,i);return Et(o).children.forEach(a=>{t.children.push(a),a.parent=t}),o}return""}function nv(e,t){let i=t.start+"<![CDATA[".length,o=t.end-3,a=" ".repeat(i)+e.substring(i,o);return Et(a).children.forEach(u=>{t.children.push(u),u.parent=t}),a}function ao(e,t){let n=e;return!!(n.open&&t>n.open.start&&t<n.open.end||n.close&&t>n.close.start&&t<n.close.end)}function q(e,t,n){let r=e.positionAt(t),i=e.positionAt(n);return new W.Selection(r,i)}function V(e,t,n){let r=e.positionAt(t),i=e.positionAt(n);return new W.Range(r,i)}function ht(e){if(!e||!e.children||e.children.length===0||!e.children.find(t=>t.type!=="comment"))return e;for(let t=e.children.length-1;t>=0;t--)if(e.children[t].type!=="comment")return ht(e.children[t])}function Hn(e,t){let n=t===-1,r=!1,i=!1,o,s;for(;t<e.length-1;){if(t++,!n){e[t]===" "&&(n=!0);continue}if(!(n&&!r&&e[t]===" ")){if(!r){o=t,r=!0;continue}if(e[t]===" "){s=t,i=!0;break}}}return r&&!i&&(s=e.length),[o,s]}function Gn(e,t){let n=t===e.length,r=!1,i=!1,o,s;for(;t>-1;){if(t--,!n){e[t]===" "&&(n=!0);continue}if(!(n&&!i&&e[t]===" ")){if(!i){s=t+1,i=!0;continue}if(e[t]===" "){o=t+1,r=!0;break}}}return i&&!r&&(o=0),[o,s]}function Zu(e,t){if(qn(e,t))return[e];if(!qn(e.parent,t.parent)){if(t.start<e.start)return[t];if(t.start<e.end)return[e];for(;e.parent&&e.parent.end<t.start;)e=e.parent;for(;t.parent&&t.parent.start>e.start;)t=t.parent}let n=[],r=e,i=t.end;for(;r&&i>r.start;)n.push(r),r=r.nextSibling;return n}function qn(e,t){return!e&&!t?!0:!e||!t?!1:e.start===t.start&&e.end===t.end}function mt(e){let t=W.workspace.getConfiguration("emmet"),n=Object.assign({},t.syntaxProfiles||{}),r=Object.assign({},t.preferences||{});return(e==="jsx"||e==="xml"||e==="xsl")&&(n[e]=n[e]||{},typeof n[e]=="object"&&!n[e].hasOwnProperty("self_closing_tag")&&!n[e].hasOwnProperty("selfClosingStyle")&&(n[e]={...n[e],selfClosingStyle:e==="jsx"?"xhtml":"xml"})),{preferences:r,showExpandedAbbreviation:t.showExpandedAbbreviation,showAbbreviationSuggestions:t.showAbbreviationSuggestions,syntaxProfiles:n,variables:t.variables,excludeLanguages:t.excludeLanguages,showSuggestionsAsSnippets:t.showSuggestionsAsSnippets}}function lo(e,t){for(let n=0,r=e.size;n<r;n++)if(t(e.item(n))===!1||lo(e.item(n),t)===!1)return!1;return!0}function Gt(e,t){return e.children.find(n=>n.type==="property"&&n.name===t)}function Ku(e,t){let n=e.document,r=U(n,!0),i=n.offsetAt(t),o=H(r,i,!0);if(te(e.document.languageId))return o&&o.type==="property"?o:null;let s=o;if(s&&s.name==="style"&&s.open&&s.close&&s.open.end<i&&s.close.start>i){let a=" ".repeat(s.start)+n.getText().substring(s.start,s.end),l=we(a),u=H(l,i,!0);return u&&u.type==="property"?u:null}return null}function Qn(e,t,n){if(!t)return;let r=t;if(r&&r.open&&r.close){let i=e.offsetAt(n);if(r.open.end<i&&i<=r.close.start&&r.name==="style"){let o=" ".repeat(r.open.end)+e.getText().substring(r.open.end,r.close.start);return we(o)}}}function ec(e,t){if(!e)return!1;let n=e,r=(n.attributes||[]).findIndex(o=>o.name.toString()==="style");if(r===-1)return!1;let i=n.attributes[r];return t>=i.value.start&&t<=i.value.end}function Qt(e){return cn.create(e.uri.toString(),e.languageId,e.version,e.getText())}function tc(e){let t=e.split("/").pop();return(t?t.split("\\").pop():"")??""}function Yn(){return{markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]}}var W,oo,Hu,Yu,Wt,so,Gu,dt,Qu,Ht,re=J(()=>{"use strict";W=G(require("vscode"));Br();Nt();Ls();Ds();ce();Wt={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]};so=125,Gu=123,dt=47,Qu=42;Ht=["text/html","text/plain","text/x-template","text/template","text/ng-template"]});var _c=X((N0,Co)=>{typeof Object.create=="function"?Co.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Co.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var Lc=X((I0,Io)=>{try{if(No=require("util"),typeof No.inherits!="function")throw"";Io.exports=No.inherits}catch{Io.exports=_c()}var No});var Fc=X((P0,Oo)=>{var Dv=Lc(),jc=require("events").EventEmitter;Oo.exports=pe;Oo.exports.default=pe;function pe(e){if(!(this instanceof pe))return new pe(e);jc.call(this),e=e||{},this.concurrency=e.concurrency||1/0,this.timeout=e.timeout||0,this.autostart=e.autostart||!1,this.results=e.results||null,this.pending=0,this.session=0,this.running=!1,this.jobs=[],this.timers={}}Dv(pe,jc);var Uv=["pop","shift","indexOf","lastIndexOf"];Uv.forEach(function(e){pe.prototype[e]=function(){return Array.prototype[e].apply(this.jobs,arguments)}});pe.prototype.slice=function(e,t){return this.jobs=this.jobs.slice(e,t),this};pe.prototype.reverse=function(){return this.jobs.reverse(),this};var Bv=["push","unshift","splice"];Bv.forEach(function(e){pe.prototype[e]=function(){var t=Array.prototype[e].apply(this.jobs,arguments);return this.autostart&&this.start(),t}});Object.defineProperty(pe.prototype,"length",{get:function(){return this.pending+this.jobs.length}});pe.prototype.start=function(e){if(e&&qv.call(this,e),this.running=!0,this.pending>=this.concurrency)return;if(this.jobs.length===0){this.pending===0&&Po.call(this);return}var t=this,n=this.jobs.shift(),r=!0,i=this.session,o=null,s=!1,a=null,l=n.hasOwnProperty("timeout")?n.timeout:this.timeout;function u(f,h){r&&t.session===i&&(r=!1,t.pending--,o!==null&&(delete t.timers[o],clearTimeout(o)),f?t.emit("error",f,n):s===!1&&(a!==null&&(t.results[a]=Array.prototype.slice.call(arguments,1)),t.emit("success",h,n)),t.session===i&&(t.pending===0&&t.jobs.length===0?Po.call(t):t.running&&t.start()))}l&&(o=setTimeout(function(){s=!0,t.listeners("timeout").length>0?t.emit("timeout",u,n):u()},l),this.timers[o]=o),this.results&&(a=this.results.length,this.results[a]=null),this.pending++,t.emit("start",n);var c=n(u);c&&c.then&&typeof c.then=="function"&&c.then(function(f){return u(null,f)}).catch(function(f){return u(f||!0)}),this.running&&this.jobs.length>0&&this.start()};pe.prototype.stop=function(){this.running=!1};pe.prototype.end=function(e){Mv.call(this),this.jobs.length=0,this.pending=0,Po.call(this,e)};function Mv(){for(var e in this.timers){var t=this.timers[e];delete this.timers[e],clearTimeout(t)}}function qv(e){var t=this;this.on("error",n),this.on("end",r);function n(i){t.end(i)}function r(i){t.removeListener("error",n),t.removeListener("end",r),e(i,this.results)}}function Po(e){this.session++,this.running=!1,this.emit("end",e)}});var zc=X(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.BMP=void 0;ar.BMP={validate(e){return e.toString("ascii",0,2)==="BM"},calculate(e){return{height:Math.abs(e.readInt32LE(22)),width:e.readUInt32LE(18)}}}});var $o=X(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.ICO=void 0;var Vv=1,Wv=6,Hv=16;function Dc(e,t){let n=e.readUInt8(t);return n===0?256:n}function Uc(e,t){let n=Wv+t*Hv;return{height:Dc(e,n+1),width:Dc(e,n)}}lr.ICO={validate(e){return e.readUInt16LE(0)!==0?!1:e.readUInt16LE(2)===Vv},calculate(e){let t=e.readUInt16LE(4),n=Uc(e,0);if(t===1)return n;let r=[n];for(let o=1;o<t;o+=1)r.push(Uc(e,o));return{height:n.height,images:r,width:n.width}}}});var Bc=X(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.CUR=void 0;var Gv=$o(),Qv=2;ur.CUR={validate(e){return e.readUInt16LE(0)!==0?!1:e.readUInt16LE(2)===Qv},calculate(e){return Gv.ICO.calculate(e)}}});var Mc=X(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.DDS=void 0;cr.DDS={validate(e){return e.readUInt32LE(0)===542327876},calculate(e){return{height:e.readUInt32LE(12),width:e.readUInt32LE(16)}}}});var qc=X(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.GIF=void 0;var Yv=/^GIF8[79]a/;fr.GIF={validate(e){let t=e.toString("ascii",0,6);return Yv.test(t)},calculate(e){return{height:e.readUInt16LE(8),width:e.readUInt16LE(6)}}}});var Hc=X(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.ICNS=void 0;var Jv=8,Xv=4,Zv=4,Kv={ICON:32,"ICN#":32,"icm#":16,icm4:16,icm8:16,"ics#":16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function Vc(e,t){let n=t+Zv;return[e.toString("ascii",t,n),e.readUInt32BE(n)]}function Wc(e){let t=Kv[e];return{width:t,height:t,type:e}}dr.ICNS={validate(e){return e.toString("ascii",0,4)==="icns"},calculate(e){let t=e.length,n=e.readUInt32BE(Xv),r=Jv,i=Vc(e,r),o=Wc(i[0]);if(r+=i[1],r===n)return o;let s={height:o.height,images:[o],width:o.width};for(;r<n&&r<t;)i=Vc(e,r),o=Wc(i[0]),r+=i[1],s.images.push(o);return s}}});var Gc=X(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.J2C=void 0;pr.J2C={validate(e){return e.toString("hex",0,4)==="ff4fff51"},calculate(e){return{height:e.readUInt32BE(12),width:e.readUInt32BE(8)}}}});var Yc=X(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.JP2=void 0;var hr={ftyp:"66747970",ihdr:"69686472",jp2h:"6a703268",jp__:"6a502020",rreq:"72726571",xml_:"786d6c20"},ex=e=>{let t=e.readUInt8(0),n=1+2*t,i=e.readUInt16BE(n)*(2+t);n=n+2+i;let s=e.readUInt16BE(n)*(16+t);return n+2+s},Qc=e=>({height:e.readUInt32BE(4),width:e.readUInt32BE(8)});mr.JP2={validate(e){let t=e.toString("hex",4,8),n=e.readUInt32BE(0);if(t!==hr.jp__||n<1)return!1;let r=n+4,i=e.readUInt32BE(n);return e.slice(r,r+i).toString("hex",0,4)===hr.ftyp},calculate(e){let t=e.readUInt32BE(0),n=e.readUInt16BE(t+2),r=t+4+n;switch(e.toString("hex",r,r+4)){case hr.rreq:return r=r+4+4+ex(e.slice(r+4)),Qc(e.slice(r+8,r+24));case hr.jp2h:return Qc(e.slice(r+8,r+24));default:throw new TypeError("Unsupported header found: "+e.toString("ascii",r,r+4))}}}});var Ro=X(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.readUInt=void 0;function tx(e,t,n,r){n=n||0;let i=r?"BE":"LE",o="readUInt"+t+i;return e[o].call(e,n)}gr.readUInt=tx});var Xc=X(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.JPG=void 0;var Kt=Ro(),nx="45786966",rx=2,_o=6,ix=2,ox="4d4d",sx="4949",Jc=12,ax=2;function lx(e){return e.toString("hex",2,6)===nx}function ux(e,t){return{height:e.readUInt16BE(t),width:e.readUInt16BE(t+2)}}function cx(e,t){let r=_o+8,i=Kt.readUInt(e,16,r,t);for(let o=0;o<i;o++){let s=r+ax+o*Jc,a=s+Jc;if(s>e.length)return;let l=e.slice(s,a);if(Kt.readUInt(l,16,0,t)===274)return Kt.readUInt(l,16,2,t)!==3||Kt.readUInt(l,32,4,t)!==1?void 0:Kt.readUInt(l,16,8,t)}}function fx(e,t){let n=e.slice(rx,t),r=n.toString("hex",_o,_o+ix),i=r===ox;if(i||r===sx)return cx(n,i)}function dx(e,t){if(t>e.length)throw new TypeError("Corrupt JPG, exceeded buffer limits");if(e[t]!==255)throw new TypeError("Invalid JPG, marker table corrupted")}br.JPG={validate(e){return e.toString("hex",0,2)==="ffd8"},calculate(e){e=e.slice(4);let t,n;for(;e.length;){let r=e.readUInt16BE(0);if(lx(e)&&(t=fx(e,r)),dx(e,r),n=e[r+1],n===192||n===193||n===194){let i=ux(e,r+5);return t?{height:i.height,orientation:t,width:i.width}:i}e=e.slice(r+2)}throw new TypeError("Invalid JPG, no size found")}}});var Zc=X(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.KTX=void 0;var px="KTX 11";vr.KTX={validate(e){return px===e.toString("ascii",1,7)},calculate(e){return{height:e.readUInt32LE(40),width:e.readUInt32LE(36)}}}});var ef=X(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.PNG=void 0;var hx=`PNG\r
`,mx="IHDR",Kc="CgBI";xr.PNG={validate(e){if(hx===e.toString("ascii",1,8)){let t=e.toString("ascii",12,16);if(t===Kc&&(t=e.toString("ascii",28,32)),t!==mx)throw new TypeError("Invalid PNG");return!0}return!1},calculate(e){return e.toString("ascii",12,16)===Kc?{height:e.readUInt32BE(36),width:e.readUInt32BE(32)}:{height:e.readUInt32BE(20),width:e.readUInt32BE(16)}}}});var rf=X(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.PNM=void 0;var nf={P1:"pbm/ascii",P2:"pgm/ascii",P3:"ppm/ascii",P4:"pbm",P5:"pgm",P6:"ppm",P7:"pam",PF:"pfm"},gx=Object.keys(nf),tf={default:e=>{let t=[];for(;e.length>0;){let n=e.shift();if(n[0]!=="#"){t=n.split(" ");break}}if(t.length===2)return{height:parseInt(t[1],10),width:parseInt(t[0],10)};throw new TypeError("Invalid PNM")},pam:e=>{let t={};for(;e.length>0;){let n=e.shift();if(n.length>16||n.charCodeAt(0)>128)continue;let[r,i]=n.split(" ");if(r&&i&&(t[r.toLowerCase()]=parseInt(i,10)),t.height&&t.width)break}if(t.height&&t.width)return{height:t.height,width:t.width};throw new TypeError("Invalid PAM")}};yr.PNM={validate(e){let t=e.toString("ascii",0,2);return gx.includes(t)},calculate(e){let t=e.toString("ascii",0,2),n=nf[t],r=e.toString("ascii",3).split(/[\r\n]+/);return(tf[n]||tf.default)(r)}}});var of=X(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.PSD=void 0;wr.PSD={validate(e){return e.toString("ascii",0,4)==="8BPS"},calculate(e){return{height:e.readUInt32BE(14),width:e.readUInt32BE(18)}}}});var lf=X(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.SVG=void 0;var sf=/<svg\s([^>"']|"[^"]*"|'[^']*')*>/,kr={height:/\sheight=(['"])([^%]+?)\1/,root:sf,viewbox:/\sviewBox=(['"])(.+?)\1/i,width:/\swidth=(['"])([^%]+?)\1/},Lo=2.54,af={in:96,cm:96/Lo,em:16,ex:8,m:96/Lo*100,mm:96/Lo/10,pc:96/72/12,pt:96/72,px:1},bx=new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(af).join("|")})?$`);function Sr(e){let t=bx.exec(e);if(t)return Math.round(Number(t[1])*(af[t[2]]||1))}function vx(e){let t=e.split(" ");return{height:Sr(t[3]),width:Sr(t[2])}}function xx(e){let t=e.match(kr.width),n=e.match(kr.height),r=e.match(kr.viewbox);return{height:n&&Sr(n[2]),viewbox:r&&vx(r[2]),width:t&&Sr(t[2])}}function yx(e){return{height:e.height,width:e.width}}function wx(e,t){let n=t.width/t.height;return e.width?{height:Math.floor(e.width/n),width:e.width}:e.height?{height:e.height,width:Math.floor(e.height*n)}:{height:t.height,width:t.width}}Tr.SVG={validate(e){let t=String(e);return sf.test(t)},calculate(e){let t=e.toString("utf8").match(kr.root);if(t){let n=xx(t[0]);if(n.width&&n.height)return yx(n);if(n.viewbox)return wx(n,n.viewbox)}throw new TypeError("Invalid SVG")}}});var uf=X(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.TIFF=void 0;var Er=require("fs"),yt=Ro();function kx(e,t,n){let r=yt.readUInt(e,32,4,n),i=1024,o=Er.statSync(t).size;r+i>o&&(i=o-r-10);let s=Buffer.alloc(i),a=Er.openSync(t,"r");return Er.readSync(a,s,0,i,r),Er.closeSync(a),s.slice(2)}function Sx(e,t){let n=yt.readUInt(e,16,8,t);return(yt.readUInt(e,16,10,t)<<16)+n}function Tx(e){if(e.length>24)return e.slice(12)}function Ex(e,t){let n={},r=e;for(;r&&r.length;){let i=yt.readUInt(r,16,0,t),o=yt.readUInt(r,16,2,t),s=yt.readUInt(r,32,4,t);if(i===0)break;s===1&&(o===3||o===4)&&(n[i]=Sx(r,t)),r=Tx(r)}return n}function Ax(e){let t=e.toString("ascii",0,2);if(t==="II")return"LE";if(t==="MM")return"BE"}var Cx=["49492a00","4d4d002a"];Ar.TIFF={validate(e){return Cx.includes(e.toString("hex",0,4))},calculate(e,t){if(!t)throw new TypeError("Tiff doesn't support buffer");let n=Ax(e)==="BE",r=kx(e,t,n),i=Ex(r,n),o=i[256],s=i[257];if(!o||!s)throw new TypeError("Invalid Tiff. Missing tags");return{height:s,width:o}}}});var cf=X(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.WEBP=void 0;function Nx(e){return{height:1+e.readUIntLE(7,3),width:1+e.readUIntLE(4,3)}}function Ix(e){return{height:1+((e[4]&15)<<10|e[3]<<2|(e[2]&192)>>6),width:1+((e[2]&63)<<8|e[1])}}function Px(e){return{height:e.readInt16LE(8)&16383,width:e.readInt16LE(6)&16383}}Cr.WEBP={validate(e){let t=e.toString("ascii",0,4)==="RIFF",n=e.toString("ascii",8,12)==="WEBP",r=e.toString("ascii",12,15)==="VP8";return t&&n&&r},calculate(e){let t=e.toString("ascii",12,16);if(e=e.slice(20,30),t==="VP8X"){let r=e[0],i=(r&192)===0,o=(r&1)===0;if(i&&o)return Nx(e);throw new TypeError("Invalid WebP")}if(t==="VP8 "&&e[0]!==47)return Px(e);let n=e.toString("hex",3,6);if(t==="VP8L"&&n!=="9d012a")return Ix(e);throw new TypeError("Invalid WebP")}}});var jo=X(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.typeHandlers=void 0;var Ox=zc(),$x=Bc(),Rx=Mc(),_x=qc(),Lx=Hc(),jx=$o(),Fx=Gc(),zx=Yc(),Dx=Xc(),Ux=Zc(),Bx=ef(),Mx=rf(),qx=of(),Vx=lf(),Wx=uf(),Hx=cf();Nr.typeHandlers={bmp:Ox.BMP,cur:$x.CUR,dds:Rx.DDS,gif:_x.GIF,icns:Lx.ICNS,ico:jx.ICO,j2c:Fx.J2C,jp2:zx.JP2,jpg:Dx.JPG,ktx:Ux.KTX,png:Bx.PNG,pnm:Mx.PNM,psd:qx.PSD,svg:Vx.SVG,tiff:Wx.TIFF,webp:Hx.WEBP}});var df=X(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.detector=void 0;var Fo=jo(),Gx=Object.keys(Fo.typeHandlers),ff={56:"psd",66:"bmp",68:"dds",71:"gif",73:"tiff",77:"tiff",82:"webp",105:"icns",137:"png",255:"jpg"};function Qx(e){let t=e[0];if(t in ff){let r=ff[t];if(r&&Fo.typeHandlers[r].validate(e))return r}let n=r=>Fo.typeHandlers[r].validate(e);return Gx.find(n)}Ir.detector=Qx});var gf=X((se,mf)=>{"use strict";var Yx=se&&se.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(se,"__esModule",{value:!0});se.types=se.setConcurrency=se.disableTypes=se.disableFS=se.imageSize=void 0;var wt=require("fs"),Jx=require("path"),Xx=Fc(),Do=jo(),Zx=df(),pf=512*1024,hf=new Xx.default({concurrency:100,autostart:!0}),Pr={disabledFS:!1,disabledTypes:[]};function zo(e,t){let n=Zx.detector(e);if(typeof n<"u"){if(Pr.disabledTypes.indexOf(n)>-1)throw new TypeError("disabled file type: "+n);if(n in Do.typeHandlers){let r=Do.typeHandlers[n].calculate(e,t);if(r!==void 0)return r.type=n,r}}throw new TypeError("unsupported file type: "+n+" (file: "+t+")")}function Kx(e){return Yx(this,void 0,void 0,function*(){let t=yield wt.promises.open(e,"r"),{size:n}=yield t.stat();if(n<=0)throw yield t.close(),new Error("Empty file");let r=Math.min(n,pf),i=Buffer.alloc(r);return yield t.read(i,0,r,0),yield t.close(),i})}function ey(e){let t=wt.openSync(e,"r"),{size:n}=wt.fstatSync(t);if(n<=0)throw wt.closeSync(t),new Error("Empty file");let r=Math.min(n,pf),i=Buffer.alloc(r);return wt.readSync(t,i,0,r,0),wt.closeSync(t),i}mf.exports=se=Uo;se.default=Uo;function Uo(e,t){if(Buffer.isBuffer(e))return zo(e);if(typeof e!="string"||Pr.disabledFS)throw new TypeError("invalid invocation. input should be a Buffer");let n=Jx.resolve(e);if(typeof t=="function")hf.push(()=>Kx(n).then(r=>process.nextTick(t,null,zo(r,n))).catch(t));else{let r=ey(n);return zo(r,n)}}se.imageSize=Uo;var ty=e=>{Pr.disabledFS=e};se.disableFS=ty;var ny=e=>{Pr.disabledTypes=e};se.disableTypes=ny;var ry=e=>{hf.concurrency=e};se.setConcurrency=ry;se.types=Object.keys(Do.typeHandlers)});function qo(e){return e=e.replace(/^file:\/\//,""),iy.test(e)?sy(e):oy(e)}function oy(e){return new Promise((t,n)=>{let r=e.match(/^data:.+?;base64,/);if(r)try{let i=Buffer.from(e.slice(r[0].length),"base64");return t(Bo("",(0,Or.imageSize)(i)))}catch(i){return n(i)}(0,Or.imageSize)(e,(i,o)=>{i?n(i):t(Bo(Mo.basename(e),o))})})}function sy(e){return new Promise((t,n)=>{let r=new xf.URL(e),i=r.protocol==="https:"?vf.get:bf.get;if(!r.pathname)return n("Given url doesnt have pathname property");let o=r.pathname;i(r,s=>{let a=[],l=0,u=f=>{try{let h=(0,Or.imageSize)(Buffer.concat(f,l));s.removeListener("data",c),s.destroy(),t(Bo(Mo.basename(o),h))}catch{}},c=f=>{l+=f.length,a.push(f),u(a)};s.on("data",c).on("end",()=>u(a)).once("error",f=>{s.removeListener("data",c),n(f)})}).once("error",n)})}function Bo(e,t){let n=e.match(/@(\d+)x\./),r=n?+n[1]:1;if(!(!t||!t.width||!t.height))return{realWidth:t.width,realHeight:t.height,width:Math.floor(t.width/r),height:Math.floor(t.height/r)}}var Mo,bf,vf,xf,Or,iy,yf=J(()=>{"use strict";Mo=G(require("path")),bf=G(require("http")),vf=G(require("https")),xf=require("url"),Or=G(gf()),iy=/^https?:/});function Vo(e,t){return/^\w+:/.test(t)?Promise.resolve(t):(t=$e.normalize(t),kf.test(t)?cy(e,t):uy(e,t))}function uy(e,t){return Sf($e.resolve(e,t))}function cy(e,t){return new Promise((n,r)=>{t=t.replace(kf,"");let i=o=>{Sf($e.resolve(o,t)).then(n,()=>{let s=$e.dirname(o);if(!s||s===o)return r(`Unable to locate absolute file ${t}`);i(s)})};i(e)})}function Sf(e){return new Promise((t,n)=>{wf.stat(e,(r,i)=>{if(r)return n(r);if(!i.isFile())return n(new Error(`${e} is not a file`));t(e)})})}var $e,wf,ay,ly,kf,Tf=J(()=>{"use strict";$e=G(require("path")),wf=G(require("fs")),ay=/^\/+/,ly=/^\\+/,kf=$e.sep==="/"?ay:ly});var If={};_r(If,{updateImageSize:()=>fy});function fy(){if(!K()||!ye.window.activeTextEditor)return;let e=ye.window.activeTextEditor,t=Array.from(e.selections).reverse().map(n=>{let r=n.isReversed?n.active:n.anchor;return te(e.document.languageId)?hy(e,r):dy(e,r)});return Promise.all(t).then(n=>e.edit(r=>{n.forEach(i=>{i.forEach(o=>{r.replace(o.range,o.newText)})})}))}function dy(e,t){let n=Ef(e,t),r=n&&Af(n);return r?Vo(Wo.dirname(e.document.fileName),r).then(qo).then(i=>{let o=Ef(e,t);return o&&Af(o)===r?gy(e,o,i.width,i.height):[]}).catch(i=>(console.warn("Error while updating image size:",i),[])):py(e,t)}function py(e,t){return Nf(e,t,r=>{let i=r.document,o=U(i,!0),s=i.offsetAt(t),a=H(o,s,!0);if(a&&a.name==="style"&&a.open&&a.close&&a.open.end<s&&a.close.start>s){let l=" ".repeat(a.open.end)+i.getText().substring(a.open.end,a.close.start),u=we(l),c=H(u,s,!0);return c&&c.type==="property"?c:null}return null})}function hy(e,t){return Nf(e,t,my)}function Nf(e,t,n){let r=n(e,t),i=r&&Cf(e,r,t);return i?Vo(Wo.dirname(e.document.fileName),i).then(qo).then(o=>{let s=n(e,t);return o&&s&&Cf(e,s,t)===i?by(e,s,o.width,o.height):[]}).catch(o=>(console.warn("Error while updating image size:",o),[])):Promise.reject(new Error("No valid image source"))}function Ef(e,t){let n=e.document,r=U(n,!0),i=n.offsetAt(t),o=H(r,i,!0);return o&&o.name.toLowerCase()==="img"?o:null}function my(e,t){let n=e.document,r=U(n,!0),i=n.offsetAt(t),o=H(r,i,!0);return o&&o.type==="property"?o:null}function Af(e){let t=$r(e,"src");if(t)return t.value.value}function Cf(e,t,n){if(!t)return;let r=xy(e,t,n);if(!r)return;let i=r.item(0);return i&&i.type==="string"&&(i=i.item(0)),i&&i.valueOf()}function gy(e,t,n,r){let i=e.document,o=$r(t,"src");if(!o)return[];let s=$r(t,"width"),a=$r(t,"height"),l=vy(e,o),u=t.attributes[t.attributes.length-1].end,c=[],f="";return s?c.push(new ye.TextEdit(V(i,s.value.start,s.value.end),String(n))):f+=` width=${l}${n}${l}`,a?c.push(new ye.TextEdit(V(i,a.value.start,a.value.end),String(r))):f+=` height=${l}${r}${l}`,f&&c.push(new ye.TextEdit(V(i,u,u),f)),c}function by(e,t,n,r){let i=e.document,o=t.parent,s=Gt(o,"width"),a=Gt(o,"height"),l=t.separator||": ",u=yy(e,t),c=[];t.terminatorToken||c.push(new ye.TextEdit(V(i,t.end,t.end),";"));let f="";return s?c.push(new ye.TextEdit(V(i,s.valueToken.start,s.valueToken.end),`${n}px`)):f+=`${u}width${l}${n}px;`,a?c.push(new ye.TextEdit(V(i,a.valueToken.start,a.valueToken.end),`${r}px`)):f+=`${u}height${l}${r}px;`,f&&c.push(new ye.TextEdit(V(i,t.end,t.end),f)),c}function $r(e,t){return t=t.toLowerCase(),e&&e.attributes.find(n=>n.name.toString().toLowerCase()===t)}function vy(e,t){let n=t.value?t.value.end:t.end,r=t.end;return n===r?"":e.document.getText().substring(n,r)}function xy(e,t,n){let r=e.document.offsetAt(n);if(!(!("parsedValue"in t)||!Array.isArray(t.parsedValue))){for(let i=0,o=t.parsedValue.length,s;i<o;i++)if(lo(t.parsedValue[i],a=>a.type==="url"&&a.start<=r&&a.end>=r?(s=a,!1):!0),s)return s}}function yy(e,t){let n;return(n=t.previousSibling||t.parent.contentStartToken)?e.document.getText().substring(n.end,t.start):(n=t.nextSibling||t.parent.contentEndToken)?e.document.getText().substring(t.end,n.start):""}var ye,Wo,Pf=J(()=>{"use strict";ye=require("vscode"),Wo=G(require("path"));yf();re();Tf();Nt();ce()});var ky={};_r(ky,{activate:()=>wy});module.exports=Go(ky);var Rr=G(require("vscode")),Of=require("os");var z=G(require("vscode"));var ee=G(require("vscode"));var L=G(require("vscode"));re();ce();var rv=/[\u00a0]*[\d#\-\*\u2022]+\.?/,uo=/^#[\da-fA-F]{0,6}$/;async function nc(e){if(!K(!1))return!1;let t=L.window.activeTextEditor,n=t.document;e=e||{},e.language||(e.language=n.languageId);let r=Yt(e)||"html",i=U(n,!0),o=We(),s=Array.from(t.selections).sort((k,y)=>k.start.compareTo(y.start)).map(k=>{let y=k;{let{start:P,end:I}=y,$=n.offsetAt(P),E=n.getText(),m=Q(E,i,$,!0);if(m&&ao(m,$)){P=n.positionAt(m.start);let R=n.positionAt(m.end);I=R.isAfter(I)?R:I}let N=n.offsetAt(I),A=Q(E,i,N,!0);if(A&&ao(A,N)){let R=n.positionAt(A.start);P=R.isBefore(P)?R:P;let O=n.positionAt(A.end);I=O.isAfter(I)?O:I}y=new L.Range(P,I)}if(!y.isSingleLine&&y.end.character===0){let P=y.end.line-1;y=new L.Range(y.start,n.lineAt(P).range.end)}y.isEmpty&&(y=n.lineAt(y.start).range);let C=n.lineAt(y.start);return!C.isEmptyOrWhitespace&&C.firstNonWhitespaceCharacterIndex>y.start.character&&(y=y.with(new L.Position(y.start.line,C.firstNonWhitespaceCharacterIndex))),y}).reduce((k,y)=>(k.length>0&&y.intersection(k[k.length-1])?k.push(y.union(k.pop())):k.push(y),k),[]),a=t.selections;t.selections=s.map(k=>new L.Selection(k.start,k.end));let l=s.map(k=>{let y,C=n.getText(k),I=n.lineAt(k.start).text.match(/^(\s*)/),$=I?I[1]:"";return y=k.isSingleLine?[C]:C.split(`
`+$).map(E=>E.trimEnd()),y=y.map(E=>E.replace(/(\$\d)/g,"\\$1")),{previewRange:k,originalRange:k,originalContent:C,textToWrapInPreview:y,baseIndent:$}}),{tabSize:u,insertSpaces:c}=t.options,f=c?" ".repeat(u):" ";function h(){return t.edit(k=>{for(let y of l)k.replace(y.previewRange,y.originalContent),y.previewRange=y.originalRange},{undoStopBefore:!1,undoStopAfter:!1})}function d(k){let y=new L.Range(0,0,0,0),C=new L.Range(0,0,0,0),P=0;return t.edit(I=>{for(let $=0;$<l.length;$++){let E=co(k[$])||"";if(!E)break;let m=l[$].previewRange,N=E.replace(/\$\{[\d]*\}/g,"|").replace(/\$\{[\d]*:([^}]*)\}/g,(kt,$f)=>$f).replace(/\\\$/g,"$");I.replace(m,N);let A=N.split(`
`),R=m.end.line-m.start.line+1,O=A.length-R,_=m.start.line+P,ae=m.start.character,le=m.end.line+P+O,Y=A[A.length-1].length;$>0&&le===C.end.line?(ae=C.end.character+(m.start.character-y.end.character),Y+=ae):$>0&&_===C.end.line?ae=C.end.character+(m.start.character-y.end.character):A.length===1&&(Y+=m.start.character),y=l[$].previewRange,C=new L.Range(_,ae,le,Y),l[$].previewRange=C,P+=O}},{undoStopBefore:!1,undoStopAfter:!1})}let v=!1;async function b(k,y){let P=!!k&&!!k.trim()&&o.isAbbreviationValid(r,k)?o.extractAbbreviationFromText(k,r):void 0;if(!P)return v&&(v=!1,await h()),!1;let{abbreviation:I,filter:$}=P;if(y){let m=l.map(N=>({syntax:r,abbreviation:I,rangeToReplace:N.originalRange,textToWrap:N.textToWrapInPreview,filter:$,indent:f,baseIndent:N.baseIndent}));return v=!0,d(m)}let E=l.map(m=>({syntax:r,abbreviation:I,rangeToReplace:m.originalRange,textToWrap:m.textToWrapInPreview,filter:$,indent:f}));return v&&(v=!1,await h()),ic(t,E,!1)}let w="";async function x(k){return k!==w&&(w=k,await b(k,!0)),""}let T=L.l10n.t("Enter Abbreviation"),g=e&&e.abbreviation?e.abbreviation:await L.window.showInputBox({prompt:T,validateInput:x}),S=await b(g,!1);return S||(t.selections=a),S}function rc(e){if(!K()||!L.window.activeTextEditor)return He();if(L.window.activeTextEditor.selections.length===1&&L.window.activeTextEditor.selection.isEmpty){let f=L.window.activeTextEditor.selection.anchor;if(f.character===0)return He();let h=f.translate(0,-1),d=L.window.activeTextEditor.document.getText(new L.Range(h,f));if(d===" "||d===" ")return He()}if(e=e||{},!e.language)e.language=L.window.activeTextEditor.document.languageId;else if((L.workspace.getConfiguration("emmet").excludeLanguages?L.workspace.getConfiguration("emmet").excludeLanguages:[]).includes(L.window.activeTextEditor.document.languageId))return He();let t=Yt(e);if(!t)return He();let n=L.window.activeTextEditor;if(L.workspace.getConfiguration("emmet").triggerExpansionOnTab===!0&&n.selections.find(f=>!f.isEmpty))return He();let r=[],i,o=!0,s=We(),a=(f,h,d,v)=>{d=f.validatePosition(d);let b=h,w=f.getText(b);if(!b.isEmpty){let C=s.extractAbbreviationFromText(w,v);return C?[b,C.abbreviation,C.filter]:[null,"",""]}let T=n.document.lineAt(d.line).text.substr(0,d.character);if(v==="html"){let C=T.match(/<(\w+)$/);if(C)return w=C[1],b=new L.Range(d.translate(0,-(w.length+1)),d),[b,w,""]}let g=s.extractAbbreviation(Qt(n.document),d,{lookAhead:!1});if(!g)return[null,"",""];let{abbreviationRange:S,abbreviation:k,filter:y}=g;return[new L.Range(S.start.line,S.start.character,S.end.line,S.end.character),k,y]},l=n.selections.slice(0);l.sort((f,h)=>{let d=f.isReversed?f.anchor:f.active,v=h.isReversed?h.anchor:h.active;return d.compareTo(v)*-1});let u;function c(){if(u)return u;let f=L.workspace.getConfiguration("emmet").optimizeStylesheetParsing===!0;return n.selections.length===1&&te(n.document.languageId)&&f&&n.document.lineCount>1e3?u=Wn(n.document,n.selection.isReversed?n.selection.anchor:n.selection.active):u=U(n.document,!0),u}return l.forEach(f=>{let h=f.isReversed?f.anchor:f.active,[d,v,b]=a(n.document,f,h,t);if(!d||!s.isAbbreviationValid(t,v)||te(t)&&v.endsWith(":"))return;let w=n.document.offsetAt(h),x=H(c(),w,!0),T=!0,g=t;if(n.document.languageId==="html")if(ec(x,w))g="css",T=!1;else{let S=Qn(n.document,x,h);S&&(x=H(S,w,!0),g="css")}T&&!fo(n.document,c(),x,g,w,d)||(i?o&&i!==v&&(o=!1):i=v,r.push({syntax:g,abbreviation:v,rangeToReplace:d,filter:b}))}),ic(n,r,o).then(f=>f?Promise.resolve(void 0):He())}function He(){return L.workspace.getConfiguration("emmet").triggerExpansionOnTab===!0?L.commands.executeCommand("tab"):Promise.resolve(!0)}function fo(e,t,n,r,i,o){if(te(r)){let x=t;if(x&&(x.comments||[]).some(S=>i>=S.start&&i<=S.end))return!1;if(!n)return!0;let T=e.getText(new L.Range(o.start.line,o.start.character,o.end.line,o.end.character));if(T.startsWith("@"))return!0;if(r!=="sass"&&r!=="stylus"&&n.type==="property"){if(n.parent&&n.parent.type!=="rule"&&n.parent.type!=="at-rule")return!1;let S=n;if(S.terminatorToken&&S.separator&&i>=S.separatorToken.end&&i<=S.terminatorToken.start&&!T.includes(":")||!S.terminatorToken&&S.separator&&i>=S.separatorToken.end&&!T.includes(":"))return uo.test(T)||T==="!";if(uo.test(T)||T==="!")return!1}if(n.type!=="rule"&&n.type!=="at-rule")return!0;let g=n;if(i>g.contentStartToken.end)return!0;if(g.parent&&(g.parent.type==="rule"||g.parent.type==="at-rule")&&g.selectorToken){let S=e.positionAt(i),k=e.positionAt(g.selectorToken.start),y=e.positionAt(g.selectorToken.end);if(S.line!==y.line&&k.character===o.start.character&&k.line===o.start.line)return!0}return!1}let s="<",a=">",l="\\",u="?",c=n,f=0;if(c){if(c.name==="script"){let T=(c.attributes||[]).filter(k=>k.name.toString()==="type")[0],g=T?T.value.toString():"";return Ht.includes(g)?!0:!g||g==="application/javascript"||g==="text/javascript"?!!Yt({language:"javascript"}):!1}if(!c.open||!c.close||!(c.open.end<=i&&i<=c.close.start))return!1;f=c.open.end;let x=c.firstChild;for(;x&&!(x.end>i);)f=x.end,x=x.nextSibling}let h=e.positionAt(f),d=e.getText(new L.Range(h.line,h.character,o.start.line,o.start.character));if(d.length>500&&(d=d.substr(d.length-500)),!d.trim())return!0;let v=!0,b=!1,w=d.length-1;if(d[w]===s)return!1;for(;w>=0;){let x=d[w];if(w--,!b&&/\s/.test(x)){b=!0;continue}if(x===u&&d[w]===s){w--;continue}if(/\s/.test(x)&&d[w]===s){w--;continue}if(!(x!==s&&x!==a)){if(w>=0&&d[w]===l){w--;continue}if(x===a){if(w>=0&&d[w]==="=")continue;break}if(x===s){v=!b;break}}}return v}async function ic(e,t,n){if(!t||t.length===0)return!1;let r=0;if(!n){t.sort((a,l)=>l.rangeToReplace.start.compareTo(a.rangeToReplace.start));for(let a of t){let l=co(a);l&&(await e.insertSnippet(new L.SnippetString(l),a.rangeToReplace,{undoStopBefore:!1,undoStopAfter:!1}),r++)}return r>0}let i=t[0],o=co(i),s=t.map(a=>a.rangeToReplace);return o?e.insertSnippet(new L.SnippetString(o),s):!1}function co(e){let t=We(),n=t.getExpandOptions(e.syntax,mt(e.syntax),e.filter);e.textToWrap&&(e.textToWrap=e.textToWrap.map(i=>i.replace(/\$\{/g,"\\${")),e.filter&&e.filter.includes("t")&&(e.textToWrap=e.textToWrap.map(i=>i.replace(rv,"").trim())),n.text=e.textToWrap,n.options&&(e.rangeToReplace.isSingleLine||(n.options["output.inlineBreak"]=1),e.indent&&(n.options["output.indent"]=e.indent),e.baseIndent&&(n.options["output.baseIndent"]=e.baseIndent)));let r;try{r=t.expandAbbreviation(e.abbreviation,n)}catch{L.window.showErrorMessage("Failed to expand abbreviation")}return r}function Yt(e){let t=pt(),n=e.language,r=e.parentMode,i=L.workspace.getConfiguration("emmet").excludeLanguages?L.workspace.getConfiguration("emmet").excludeLanguages:[];if(i.includes(n))return;let o=Te(t[n]??n,t,i);return o||(o=Te(t[r]??r,t,i)),o}re();ce();var Jn=class{lastCompletionType;provideCompletionItems(t,n,r,i){let o=this.provideCompletionItemsInternal(t,n,i);if(!o){this.lastCompletionType=void 0;return}return o.then(s=>{if(!s||!s.items.length)return this.lastCompletionType=void 0,s;let a=s.items[0],l=a.documentation?a.documentation.toString():"";return l.startsWith("<")?this.lastCompletionType="html":l.indexOf(":")>0&&l.endsWith(";")?this.lastCompletionType="css":this.lastCompletionType=void 0,s})}provideCompletionItemsInternal(t,n,r){let i=ee.workspace.getConfiguration("emmet"),o=i.excludeLanguages?i.excludeLanguages:[];if(o.includes(t.languageId))return;let s=pt(),a=!!s[t.languageId],l=Te(a?s[t.languageId]:t.languageId,s,o);if(!l||i.showExpandedAbbreviation==="never"||(a||l==="jsx")&&i.showExpandedAbbreviation!=="always")return;let u=l,c=u==="html"||u==="jsx"||u==="xml",f,h,d=Qt(t);n=t.validatePosition(n);let v=new ee.Range(n.line,0,n.line,n.character);if(t.getText(v).trimStart().startsWith("//"))return;let b=We();if(u==="html"){if(r.triggerKind===ee.CompletionTriggerKind.TriggerForIncompleteCompletions)switch(this.lastCompletionType){case"html":c=!1;break;case"css":c=!1,u="css";break;default:break}if(c){let S=t.offsetAt(n),k=U(t,!0),y=Q(t.getText(),k,S,!1);if(y)if(y.name==="script"){let C=y.attributes.find(P=>P.name.toString()==="type");if(C){let P=C.value.toString();if(P==="application/javascript"||P==="text/javascript")if(Yt({language:"javascript"}))c=!1;else return;else Ht.includes(P)&&(c=!1)}else return}else if(y.name==="style")u="css",c=!1;else{let C=y.attributes.find(P=>P.name.toString()==="style");C&&C.value.start<=S&&S<=C.value.end&&(u="css",c=!1)}}}let w=te(u)?{lookAhead:!1,syntax:"stylesheet"}:{lookAhead:!0,syntax:"markup"},x=b.extractAbbreviation(d,n,w);if(!x||!b.isAbbreviationValid(u,x.abbreviation))return;let T=t.offsetAt(n);if(te(t.languageId)&&r.triggerKind!==ee.CompletionTriggerKind.TriggerForIncompleteCompletions){if(c=!0,f=ee.workspace.getConfiguration("emmet").optimizeStylesheetParsing===!0&&t.lineCount>1e3?Wn(t,n):U(t,!0),!f)return;h=H(f,T,!0)}if(!te(t.languageId)&&te(u)&&r.triggerKind!==ee.CompletionTriggerKind.TriggerForIncompleteCompletions){if(c=!0,f=U(t,!0),!f)return;let S=H(f,T,!0),k=Qn(t,S,n);h=H(k,T,!0)}if(c&&!fo(t,f,h,u,T,iv(x.abbreviationRange)))return;let g=Promise.resolve(!1);if(!te(u)&&(t.languageId==="javascript"||t.languageId==="javascriptreact"||t.languageId==="typescript"||t.languageId==="typescriptreact")){let S=x.abbreviation;S.startsWith("this.")||/\[[^\]=]*\]/.test(S)?g=Promise.resolve(!0):g=ee.commands.executeCommand("vscode.executeDocumentSymbolProvider",t.uri).then(k=>!!k&&k.some(y=>S===y.name||S.startsWith(y.name+".")&&!/>|\*|\+/.test(S)))}return g.then(S=>{if(S)return;let k=mt(u),y=b.doComplete(Qt(t),n,u,k),C=[];return y&&y.items&&y.items.forEach(P=>{let I=new ee.CompletionItem(P.label);I.documentation=P.documentation,I.detail=P.detail,I.insertText=new ee.SnippetString(P.textEdit.newText);let $=P.textEdit.range;I.range=new ee.Range($.start.line,$.start.character,$.end.line,$.end.character),I.filterText=P.filterText,I.sortText=P.sortText,i.showSuggestionsAsSnippets===!0&&(I.kind=ee.CompletionItemKind.Snippet),C.push(I)}),new ee.CompletionList(C,!0)})}};function iv(e){return new ee.Range(e.start.line,e.start.character,e.end.line,e.end.character)}var Oe=G(require("vscode"));ce();re();function sc(){if(!K(!1)||!Oe.window.activeTextEditor)return;let e=Oe.window.activeTextEditor,t=e.document,n=U(t,!0);if(!n)return;let r=Array.from(e.selections).reverse().reduce((i,o)=>i.concat(ov(e.document,n,o)),[]);return e.edit(i=>{r.forEach(o=>{i.delete(o)})})}function ov(e,t,n){let r=e.offsetAt(n.start),i=Q(e.getText(),t,r,!0);if(!i)return[];let o;i.open&&(o=V(e,i.open.start,i.open.end));let s;if(i.close&&(s=V(e,i.close.start,i.close.end)),o&&s){let l=new Oe.Range(o.end.line,o.end.character,s.start.line,s.start.character),u=new Oe.Range(o.start.line,o.start.character,s.end.line,s.end.character);if(e.getText(l).trim()===""&&i.name!=="pre")return[u]}let a=[];if(o&&(a.push(o),s)){let l=sv(e,o,s),u,c;for(let f=o.start.line+1;f<s.start.line;f++)e.lineAt(f).isEmptyOrWhitespace||(a.push(new Oe.Range(f,0,f,l)),u===void 0&&(u=f),c=f);oc(e,s)&&c?a.push(new Oe.Range(c,e.lineAt(c).range.end.character,s.end.line,s.end.character)):a.push(s),oc(e,o)&&u&&(a[1]=new Oe.Range(o.start.line,o.start.character,u,e.lineAt(u).firstNonWhitespaceCharacterIndex),a.shift())}return a}function oc(e,t){if(t.start.line===t.end.line){let n=e.lineAt(t.start).text,r=e.getText(t);if(n.trim()===r)return!0}return!1}function sv(e,t,n){let r=t.start.line,i=n.start.line,o=e.lineAt(r).firstNonWhitespaceCharacterIndex,s=e.lineAt(i).firstNonWhitespaceCharacterIndex,a;for(let u=r+1;u<i;u++){let c=e.lineAt(u);if(!c.isEmptyOrWhitespace){let f=c.firstNonWhitespaceCharacterIndex;a=a?Math.min(a,f):f}}let l=0;return a&&(a<o||a<s?l=0:l=Math.min(a-o,a-s)),l}var Ge=G(require("vscode"));re();ce();async function po(e){if(!K(!1)||!Ge.window.activeTextEditor)return;let t=Ge.window.activeTextEditor,n=t.document,r=U(n,!0);if(!r)return;let i=t.selections.reduceRight((a,l)=>a.concat(lv(n,l,r)),[]);if(!i.length)return;let o=i[0].name,s=i.every(a=>a.name===o);return e===void 0&&(e=await Ge.window.showInputBox({prompt:"Enter Tag",value:s?o:void 0}),!e)?!1:t.edit(a=>{i.forEach(l=>{a.replace(l.range,e)})})}function av(e,t){let n=[];if(e.open){let r=t.positionAt(e.open.start);n.push({name:e.name,range:new Ge.Range(r.translate(0,1),r.translate(0,1).translate(0,e.name.length))})}if(e.close){let r=t.positionAt(e.close.start),i=t.positionAt(e.close.end);n.push({name:e.name,range:new Ge.Range(r.translate(0,2),i.translate(0,-1))})}return n}function lv(e,t,n){let r=e.getText(),i=e.offsetAt(t.start),o=Q(r,n,i,!0);return o?av(o,e):[]}var ho=G(require("vscode"));re();ce();function ac(){if(!K(!1)||!ho.window.activeTextEditor)return;let e=ho.window.activeTextEditor,t=e.document,n=U(t,!0);if(!n)return;let r=[];e.selections.forEach(i=>{let o=uv(t,n,i.start);o&&r.push(o)}),r.length&&(e.selections=r,e.revealRange(e.selections[r.length-1]))}function uv(e,t,n){let r=e.offsetAt(n),i=Q(e.getText(),t,r,!0);if(!i||!i.open||!i.close||r>i.open.end&&r<i.close.start)return;let o=r<=i.open.end?i.close.start+2:i.start+1;return q(e,o,o)}var mo=G(require("vscode"));re();ce();var Xn=[],lc=[];function cc(){dc(!0)}function fc(){dc(!1)}function dc(e){if(!K(!1)||!mo.window.activeTextEditor)return;let t=mo.window.activeTextEditor,n=t.document,r=U(n,!0);if(!r)return;let i=e?cv:fv,o=t.selections.map(s=>i(n,r,s));uc(lc,t.selections)?e?uc(t.selections,o)||Xn.push(t.selections):Xn.length&&(o=Xn.pop()):Xn=e?[t.selections]:[],t.selections=o,lc=t.selections}function cv(e,t,n){let r=e.offsetAt(n.start),i=Q(e.getText(),t,r,!1);if(!i)return n;if(!i.open||!i.close)return q(e,i.start,i.end);let o,s;return i.close.start<=r&&i.close.end>r?(o=q(e,i.close.start,i.open.end),s=q(e,i.close.end,i.open.start)):(o=q(e,i.open.end,i.close.start),s=q(e,i.open.start,i.close.end)),o.contains(n)&&!o.isEqual(n)?o:s.contains(n)&&!s.isEqual(n)?s:n}function fv(e,t,n){let r=e.offsetAt(n.start),i=Q(e.getText(),t,r,!0);if(!i)return n;let o=e.offsetAt(n.start),s=e.offsetAt(n.end);if(i.open&&i.close){let l=o===i.start&&s===i.end,u=o>i.open.start&&o<i.open.end,c=o>i.close.start&&o<i.close.end;if(l||u||c)return q(e,i.open.end,i.close.start)}if(!i.firstChild)return n;let a=i.firstChild;return o===a.start&&s===a.end&&a.open&&a.close?q(e,a.open.end,a.close.start):q(e,a.start,a.end)}function uc(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].isEqual(t[n]))return!1;return!0}var Jt=G(require("vscode"));re();ce();function pc(){if(!K(!1)||!Jt.window.activeTextEditor)return;let e=Jt.window.activeTextEditor,t=e.document,n=U(e.document,!0);if(n)return e.edit(r=>{Array.from(e.selections).reverse().forEach(i=>{let o=t.getText(),s=t.offsetAt(i.start),a=Q(o,n,s,!0);if(a){let l=dv(t,a);r.replace(l.range,l.newText)}})})}function dv(e,t){let n,r;if(!t.open||!t.close){let o=e.getText().substring(t.start,t.end).match(/(\s*\/)?>$/),s=t.end,a=o?s-o[0].length:s;n=V(e,a,s),r=`></${t.name}>`}else{let i=t.open.end-1,o=t.end;n=V(e,i,o),r="/>";let s=Te(e.languageId,{},[])??"",a=mt(s);s&&a.syntaxProfiles[s]&&(a.syntaxProfiles[s].selfClosingStyle==="xhtml"||a.syntaxProfiles[s].self_closing_tag==="xhtml")&&(r=" "+r)}return new Jt.TextEdit(n,r)}var Xt=G(require("vscode"));re();ce();function hc(){if(!K(!1)||!Xt.window.activeTextEditor)return;let e=Xt.window.activeTextEditor,t=U(e.document,!0);if(t)return e.edit(n=>{Array.from(e.selections).reverse().forEach(r=>{let i=pv(e.document,r,t);i&&n.replace(i.range,i.newText)})})}function pv(e,t,n){let r,i,o=e.offsetAt(t.start),s=e.offsetAt(t.end);if(t.isEmpty?r=i=H(n,o,!0):(r=H(n,o,!0),i=H(n,s,!0)),!r||!i)return;let a=e.positionAt(r.start),l=a.line,u=a.character,f=e.positionAt(i.end).line;if(l===f)return;let h=V(e,r.start,i.end),d=e.lineAt(l).text.substr(u);for(let v=l+1;v<=f;v++)d+=e.lineAt(v).text.trim();return new Xt.TextEdit(h,d)}var ie=G(require("vscode"));re();Nt();ce();var Zn,Kn,er,tr;function mc(){if(!K()||!ie.window.activeTextEditor)return;mv();let e=ie.window.activeTextEditor,t=U(e.document,!0);if(t)return e.edit(n=>{let r=[];Array.from(e.selections).reverse().forEach(o=>{let s=te(e.document.languageId)?bc(e.document,o,t):hv(e.document,o,t);s.length>0&&r.push(s)}),r.sort((o,s)=>{let a=o[0].range.start.line-s[0].range.start.line;return a===0?o[0].range.start.character-s[0].range.start.character:a});let i=new ie.Position(0,0);for(let o of r)o[0].range.end.isAfterOrEqual(i)&&o.forEach(s=>{n.replace(s.range,s.newText),i=s.range.end})})}function hv(e,t,n){let r=t.isReversed?t.active:t.anchor,i=t.isReversed?t.anchor:t.active,o=e.offsetAt(r),s=e.offsetAt(i),a=e.getText(),l=Q(a,n,o,!0),u=Q(a,n,s,!0);if(!l||!u)return[];if(qn(l,u)&&l.name==="style"&&l.open&&l.close&&l.open.end<o&&l.close.start>s){let h=" ".repeat(l.open.end)+a.substring(l.open.end,l.close.start),d=we(h);return bc(e,t,d)}let c=Zu(l,u),f=[];return c.forEach(h=>{f=f.concat(gc(h,e))}),l.type==="comment"||(f.push(new ie.TextEdit(V(e,c[0].start,c[0].start),er)),f.push(new ie.TextEdit(V(e,c[c.length-1].end,c[c.length-1].end),tr))),f}function gc(e,t){let n=[];return e.type==="comment"?(n.push(new ie.TextEdit(V(t,e.start,e.start+er.length),"")),n.push(new ie.TextEdit(V(t,e.end-tr.length,e.end),"")),n):(e.children.forEach(r=>{n=n.concat(gc(r,t))}),n)}function bc(e,t,n){let r=t.isReversed?t.active:t.anchor,i=t.isReversed?t.anchor:t.active,o=e.offsetAt(r),s=e.offsetAt(i),a=H(n,o,!0),l=H(n,s,!0);t.isEmpty?a&&(o=a.start,s=a.end,t=q(e,o,s)):(o=gv(a,o,n),s=bv(l,s,n),t=q(e,o,s));let u=[],c=[];return n.comments.forEach(f=>{let h=V(e,f.start,f.end);t.intersection(h)&&(u.push(h),c.push(new ie.TextEdit(V(e,f.start,f.start+Zn.length),"")),c.push(new ie.TextEdit(V(e,f.end-Kn.length,f.end),"")))}),c.length>0?c:[new ie.TextEdit(new ie.Range(t.start,t.start),Zn),new ie.TextEdit(new ie.Range(t.end,t.end),Kn)]}function mv(){ie.workspace.getConfiguration("editor.comments").get("insertSpace")?(Zn="/* ",Kn=" */",er="<!-- ",tr=" -->"):(Zn="/*",Kn="*/",er="<!--",tr="-->")}function gv(e,t,n){for(let o of n.comments)if(o.start<=t&&t<=o.end)return t;if(!e)return t;if(e.type==="property")return e.start;let r=e;if(t<r.contentStartToken.end||!r.firstChild)return r.start;if(t<r.firstChild.start)return t;let i=r.firstChild;for(;i.nextSibling&&t>i.end;)i=i.nextSibling;return i.start}function bv(e,t,n){for(let o of n.comments)if(o.start<=t&&t<=o.end)return t;if(!e)return t;if(e.type==="property")return e.end;let r=e;if(t===r.contentEndToken.end||!r.firstChild)return r.end;if(t>r.children[r.children.length-1].end)return t;let i=r.children[r.children.length-1];for(;i.previousSibling&&t<i.start;)i=i.previousSibling;return i.end}var gt=G(require("vscode"));re();function go(e){if(!K()||!gt.window.activeTextEditor)return;let t=gt.window.activeTextEditor,n=[];t.selections.forEach(r=>{let i=e==="next"?vv(r,t):xv(r,t);n.push(i)}),t.selections=n,t.revealRange(t.selections[t.selections.length-1])}function vv(e,t){for(let n=e.anchor.line;n<t.document.lineCount;n++){let r=vc(n,t,e.anchor,"next");if(r)return r}return e}function xv(e,t){for(let n=e.anchor.line;n>=0;n--){let r=vc(n,t,e.anchor,"prev");if(r)return r}return e}function vc(e,t,n,r){let i=t.document.lineAt(e),o=i.text;if(e!==n.line&&i.isEmptyOrWhitespace&&o.length)return new gt.Selection(e,o.length,e,o.length);e===n.line&&r==="prev"&&(o=o.substr(0,n.character));let s=r==="next"?o.indexOf('""',e===n.line?n.character:0):o.lastIndexOf('""'),a=r==="next"?o.indexOf("><",e===n.line?n.character:0):o.lastIndexOf("><"),l=-1;if(s>-1&&a>-1?l=r==="next"?Math.min(s,a):Math.max(s,a):s>-1?l=s:l=a,l>-1)return new gt.Selection(e,l+1,e,l+1)}var vo=G(require("vscode"));re();re();function xc(e,t,n,r){let i=e.offsetAt(n),o=Q(e.getText(),r,i,!1),s;if(o){if(o.type!=="comment"){if(o.open&&i<=o.open.start+o.name.length)return bo(e,o);if(o.open&&i<o.open.end){let a=e.offsetAt(t),l=yv(e,a,i,o);if(l)return l}for(s=o.firstChild;s&&(i>=s.end||s.type==="comment");)s=s.nextSibling}for(;!s&&o;)o.nextSibling?o.nextSibling.type!=="comment"?s=o.nextSibling:o=o.nextSibling:o=o.parent;return s&&bo(e,s)}}function yc(e,t,n,r){let i=e.offsetAt(t),o=Q(e.getText(),r,i,!1),s;if(!o)return;let a=e.offsetAt(n);if(o.open&&o.type!=="comment"&&i-1>o.open.start)if(i<o.open.end||!o.firstChild||a<=o.firstChild.start)s=o;else{s=o.firstChild;let u;for(;s.nextSibling&&i>=s.nextSibling.end;)s&&s.type!=="comment"&&(u=s),s=s.nextSibling;s=ht(s&&s.type!=="comment"?s:u)}for(;!s&&o;)o.previousSibling?o.previousSibling.type!=="comment"?s=ht(o.previousSibling):o=o.previousSibling:s=o.parent;if(!s)return;let l=wv(e,i,a,s);return l||bo(e,s)}function bo(e,t){if(t&&t.open){let n=t.open.start+1,r=n+t.name.length;return q(e,n,r)}}function yv(e,t,n,r){if(!(!r.attributes||r.attributes.length===0||r.type==="comment"))for(let i of r.attributes){if(n<i.start)return q(e,i.start,i.end);if(!i.value||i.value.start===i.value.end)continue;if(t===i.start&&n===i.end||n<i.value.start)return q(e,i.value.start,i.value.end);if(!i.value.toString().includes(" "))continue;let o;if(t===i.value.start&&n===i.value.end&&(o=-1),o===void 0&&n<i.end){let s=e.positionAt(n).character,a=e.positionAt(i.value.start).character;o=s-a-1}if(o!==void 0){let[s,a]=Hn(i.value.toString(),o);if(s===void 0||a===void 0)return;if(s>=0&&a>=0){let l=i.value.start+s,u=i.value.start+a;return q(e,l,u)}}}}function wv(e,t,n,r){if(!(!r.attributes||r.attributes.length===0||r.type==="comment"))for(let i=r.attributes.length-1;i>=0;i--){let o=r.attributes[i];if(t<=o.start)continue;if(!o.value||o.value.start===o.value.end||t<o.value.start)return q(e,o.start,o.end);if(t===o.value.start)return n>=o.value.end?q(e,o.start,o.end):q(e,o.value.start,o.value.end);let s=e.positionAt(t).character,a=e.positionAt(o.value.start).character,l=t>o.value.end?o.value.toString().length:s-a,[u,c]=Gn(o.value.toString(),l);if(u===void 0||c===void 0)return;if(u>=0&&c>=0){let f=o.value.start+u,h=o.value.start+c;return q(e,f,h)}}}var wc=G(require("vscode"));re();function kc(e,t,n,r){let i=e.offsetAt(t),o=e.offsetAt(n),s=H(r,o,!0);if(s||(s=r),!s)return;if(s.type==="property"&&i===s.start&&o===s.end)return rr(e,s,i,o,!0,"next");if(s.type==="property"&&i>=s.valueToken.start&&o<=s.valueToken.end){let l=rr(e,s,i,o,!1,"next");if(l)return l}if(s.type==="rule"&&o<s.selectorToken.end||s.type==="property"&&o<s.valueToken.end)return nr(e,s);let a=s.firstChild;for(;a&&o>=a.end;)a=a.nextSibling;for(;!a&&s;)a=s.nextSibling,s=s.parent;return a?nr(e,a):void 0}function Sc(e,t,n,r){let i=e.offsetAt(t),o=e.offsetAt(n),s=H(r,i,!1);if(s||(s=r),!s)return;if(s.type==="property"&&i===s.valueToken.start&&o===s.valueToken.end)return nr(e,s);if(s.type==="property"&&i>=s.valueToken.start&&o<=s.valueToken.end){let l=rr(e,s,i,o,!1,"prev");if(l)return l}if(s.type==="property"||!s.firstChild||s.type==="rule"&&i<=s.firstChild.start)return nr(e,s);let a=s.firstChild;for(;a.nextSibling&&i>=a.nextSibling.end;)a=a.nextSibling;return a=ht(a),rr(e,a,i,o,!1,"prev")}function nr(e,t){if(!t)return;let n=t.type==="rule"?t.selectorToken:t;return q(e,n.start,n.end)}function rr(e,t,n,r,i,o){if(!t||t.type!=="property")return;let s=t,a=s.valueToken.stream.substring(s.valueToken.start,s.valueToken.end);if(i=i||o==="prev"&&n===s.valueToken.start&&r<s.valueToken.end,i)return q(e,s.valueToken.start,s.valueToken.end);let l=-1;if(o==="prev"){if(n===s.valueToken.start)return;let v=e.positionAt(n).character,b=e.positionAt(s.valueToken.start).character;l=n>s.valueToken.end?a.length:v-b}else if(o==="next"){if(r===s.valueToken.end&&(n>s.valueToken.start||!a.includes(" ")))return;let v=e.positionAt(r).character,b=e.positionAt(s.valueToken.start).character;l=r===s.valueToken.end?-1:v-b-1}let[u,c]=o==="prev"?Gn(a,l):Hn(a,l);if(!u&&!c)return;let f=e.positionAt(s.valueToken.start),h=f.translate(0,u),d=f.translate(0,c);return new wc.Selection(h,d)}ce();function xo(e){if(!K()||!vo.window.activeTextEditor)return;let t=vo.window.activeTextEditor,n=t.document,r=U(n,!0);if(!r)return;let i=[];t.selections.forEach(o=>{let s=o.isReversed?o.active:o.anchor,a=o.isReversed?o.anchor:o.active,l;te(t.document.languageId)?l=e==="next"?kc(n,s,a,r):Sc(n,s,a,r):l=e==="next"?xc(n,s,a,r):yc(n,s,a,r),i.push(l||o)}),t.selections=i,t.revealRange(t.selections[t.selections.length-1])}var fe=G(require("vscode"));function bt(e){return e>47&&e<58}function wo(e){return e===32||e===9||e===160}function or(e){return wo(e)||e===10||e===13}var ir=class e{constructor(t,n,r){r==null&&typeof t=="string"&&(r=t.length),this.string=t,this.pos=this.start=n||0,this.end=r||0}eof(){return this.pos>=this.end}limit(t,n){return new e(this.string,t,n)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(t){let n=this.peek(),r=typeof t=="function"?t(n):n===t;return r&&this.next(),r}eatWhile(t){let n=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==n}backUp(t){this.pos-=t||1}current(){return this.substring(this.start,this.pos)}substring(t,n){return this.string.slice(t,n)}error(t,n=this.pos){return new yo(`${t} at ${n+1}`,n,this.string)}},yo=class extends Error{constructor(t,n,r){super(t),this.pos=n,this.string=r}};var kv=sr("null",0);function Sv(e){let t=typeof e=="string"?new ir(e):e,n,r=0,i=21,o=[];for(;!t.eof();)t.eatWhile(wo),t.start=t.pos,Tv(t)?((i&1)===0&&Qe("Unexpected number",t),o.push(Av(t.current())),i=10):Ac(t.peek())?(n=t.next(),Tc(n)&&i&16?(Ec(n)&&o.push(Cv(n,r)),i=21):((i&2)===0&&Qe("Unexpected operator",t),o.push(Nv(n,r)),i=21)):t.eat(40)?((i&4)===0&&Qe('Unexpected "("',t),r+=10,i=53):t.eat(41)?(r-=10,i&32?o.push(kv):(i&8)===0&&Qe('Unexpected ")"',t),i=14):Qe("Unknown character",t);(r<0||r>=10)&&Qe('Unmatched "()"',t);let s=Ev(o);return s===null&&Qe("Parity",t),s}function Tv(e){let t=e.pos;return e.eat(46)&&e.eatWhile(bt)||e.eatWhile(bt)&&(!e.eat(46)||e.eatWhile(bt))?!0:(e.pos=t,!1)}function Ev(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];if(o.type==="num")n.push(o);else{for(r+=o.type==="op1"?1:2;t.length&&o.priority<=t[t.length-1].priority;)n.push(t.pop());t.push(o)}}return r+1===n.length+t.length?n.concat(t.reverse()):null}function Av(e,t){return sr("num",parseFloat(e),t)}function Cv(e,t=0){return e===45&&(t+=2),sr("op1",e,t)}function Nv(e,t=0){return e===42?t+=1:(e===47||e===92)&&(t+=2),sr("op2",e,t)}function Qe(e,t){throw t&&(e+=` at column ${t.pos} of expression`),new Error(e)}function Tc(e){return Iv(e)||Ec(e)}function Iv(e){return e===43}function Ec(e){return e===45}function Ac(e){return e===43||e===45||e===42||e===47||e===92}function sr(e,t,n=0){return{type:e,value:t,priority:n}}var Pv={lookAhead:!0,whitespace:!0};function Cc(e,t=e.length,n){let r=Object.assign(Object.assign({},Pv),n),i={text:e,pos:t},o;if(r.lookAhead&&ko(i)===41){i.pos++;let l=e.length;for(;i.pos<l&&(o=ko(i),!(o!==41&&!(r.whitespace&&or(o))));)i.pos++}let s=i.pos,a=0;for(;i.pos>=0;)if(!Ov(i)){if(o=So(i),o===41)a++;else if(o===40){if(!a)break;a--}else if(!(r.whitespace&&or(o)||Tc(o)||Ac(o)))break;i.pos--}if(i.pos!==s&&!a){for(;or(ko(i));)i.pos++;return[i.pos,s]}return null}function Ov(e){if(bt(So(e))){e.pos--;let t=!1,n;for(;e.pos>=0;){if(n=So(e),n===46){if(t)break;t=!0}else if(!bt(n))break;e.pos--}return!0}return!1}function So(e){return e.text.charCodeAt(e.pos-1)}function ko(e){return e.text.charCodeAt(e.pos)}var $v={45:e=>-e},Rv={43:(e,t)=>e+t,45:(e,t)=>e-t,42:(e,t)=>e*t,47:(e,t)=>e/t,92:(e,t)=>Math.floor(e/t)};function _v(e){if(Array.isArray(e)||(e=Sv(e)),!e||!e.length)return null;let t=[],n,r,i;for(let o=0,s=e.length;o<s;o++){let a=e[o];if(a.type==="num")t.push(a.value);else if(a.type==="op2")r=t.pop(),n=t.pop(),i=Rv[a.value],t.push(i(n,r));else if(a.type==="op1")n=t.pop(),i=$v[a.value],t.push(i(n));else throw new Error("Invalid expression")}if(t.length>1)throw new Error("Invalid Expression (parity)");return t[0]}var To=_v;function Nc(){if(!fe.window.activeTextEditor)return fe.window.showInformationMessage("No editor is active"),Promise.resolve(!1);let e=fe.window.activeTextEditor;return e.edit(t=>{e.selections.forEach(n=>{let r=n.isReversed?n.active:n.anchor,i=n.isReversed?n.anchor:n.active,o=e.document.getText(new fe.Range(r,i));try{if(o){let s=String(To(o));t.replace(new fe.Range(r,i),s)}else{let s=e.document.getText(new fe.Range(new fe.Position(n.end.line,0),i)),a=Cc(s);if(!a)throw new Error("Invalid extracted indices");let l=String(To(s.substr(a[0],a[1]))),u=new fe.Range(new fe.Position(n.end.line,a[0]),new fe.Position(n.end.line,a[1]));t.replace(u,l)}}catch(s){fe.window.showErrorMessage("Could not evaluate expression"),console.warn("Math evaluation error",s)}})})}var vt=G(require("vscode")),Eo=/[0-9]/;function Ye(e){if(!vt.window.activeTextEditor){vt.window.showInformationMessage("No editor is active");return}let t=vt.window.activeTextEditor;return t.edit(n=>{t.selections.forEach(r=>{let i=jv(t.document,r.isReversed?r.anchor:r.active);if(!i)return;let o=t.document.getText(i);Ic(o)&&n.replace(i,Lv(o,e))})})}function Lv(e,t){let n,r=(n=e.match(/\.(\d+)$/))?n[1].length:1,i=String((parseFloat(e)+t).toFixed(r)).replace(/\.0+$/,"");return(n=e.match(/^\-?(0\d+)/))&&(i=i.replace(/^(\-?)(\d+)/,(o,s,a)=>s+"0".repeat(Math.max(0,(n?n[1].length:0)-a.length))+a)),/^\-?\./.test(e)&&(i=i.replace(/^(\-?)0+/,"$1")),i}function jv(e,t){let n=e.lineAt(t.line).text,r=t.character,i=t.character,o=!1,s=!1,a;for(;r>0;)if(a=n[--r],a==="-"){s=!0;break}else if(a==="."&&!o)o=!0;else if(!Eo.test(a)){r++;break}for(n[i]==="-"&&!s&&i++;i<n.length;)if(a=n[i++],a==="."&&!o&&Eo.test(n[i]))o=!0;else if(!Eo.test(a)){i--;break}if(r!==i&&Ic(n.slice(r,i)))return new vt.Range(t.line,r,t.line,i)}function Ic(e){return e?!isNaN(parseFloat(e)):!1}re();var Ao=require("vscode");re();var Pc=["-webkit-","-moz-","-ms-","-o-",""];function Oc(){let e=Ao.window.activeTextEditor;if(!e){Ao.window.showInformationMessage("No editor is active.");return}let t=Ku(e,e.selection.active);if(t)return Fv(e,t)}function Fv(e,t){let n=t.parent,r="";for(let s of Pc)if(t.name.startsWith(s)){r=s;break}let i=t.name.substr(r.length),o=t.value;return e.edit(s=>{Pc.forEach(a=>{if(a===r)return;let l=Gt(n,a+i);if(l){let u=V(e.document,l.valueToken.start,l.valueToken.end);s.replace(u,o)}})})}ce();function Rc(e){Xu(),$c(e),Vn(),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.wrapWithAbbreviation",t=>{nc(t)})),e.subscriptions.push(z.commands.registerCommand("emmet.expandAbbreviation",t=>{rc(t)})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.removeTag",()=>sc())),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.updateTag",t=>t&&typeof t=="string"?po(t):po(void 0))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.matchTag",()=>{ac()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.balanceOut",()=>{cc()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.balanceIn",()=>{fc()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.splitJoinTag",()=>pc())),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.mergeLines",()=>{hc()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.toggleComment",()=>{mc()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.nextEditPoint",()=>{go("next")})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.prevEditPoint",()=>{go("prev")})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.selectNextItem",()=>{xo("next")})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.selectPrevItem",()=>{xo("prev")})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.evaluateMathExpression",()=>{Nc()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.incrementNumberByOneTenth",()=>Ye(.1))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.incrementNumberByOne",()=>Ye(1))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.incrementNumberByTen",()=>Ye(10))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.decrementNumberByOneTenth",()=>Ye(-.1))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.decrementNumberByOne",()=>Ye(-1))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.decrementNumberByTen",()=>Ye(-10))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.reflectCSSValue",()=>Oc())),e.subscriptions.push(z.commands.registerCommand("workbench.action.showEmmetCommands",()=>{z.commands.executeCommand("workbench.action.quickOpen",">Emmet: ")})),e.subscriptions.push(z.workspace.onDidChangeConfiguration(t=>{(t.affectsConfiguration("emmet.includeLanguages")||t.affectsConfiguration("emmet.useInlineCompletions"))&&$c(e),t.affectsConfiguration("emmet.extensionsPath")&&Vn()})),e.subscriptions.push(z.workspace.onDidSaveTextDocument(t=>{let n=tc(t.fileName);n.startsWith("snippets")&&n.endsWith(".json")&&Vn(!0)})),e.subscriptions.push(z.workspace.onDidOpenTextDocument(t=>{let n=Te(t.languageId,{},[])??"",r=Yn();(r.markup.includes(n)||r.stylesheet.includes(n))&&Us(t)})),e.subscriptions.push(z.workspace.onDidCloseTextDocument(t=>{let n=Te(t.languageId,{},[])??"",r=Yn();(r.markup.includes(n)||r.stylesheet.includes(n))&&Bs(t)}))}var xt=new Map,Zt=[];function $c(e){zv();let t=new Jn,n={async provideInlineCompletionItems(o,s,a,l){let u=await t.provideCompletionItems(o,s,l,{triggerCharacter:void 0,triggerKind:z.CompletionTriggerKind.Invoke});if(!u)return;let c=u.items[0];if(!c||!c.insertText)return;let f=c.range;if(o.getText(f)===c.label)return[{insertText:c.insertText,filterText:c.label,range:f}]}},r=z.workspace.getConfiguration("emmet").get("useInlineCompletions"),i=pt();Object.keys(i).forEach(o=>{if(xt.has(o)&&xt.get(o)===i[o])return;if(r){let a=z.languages.registerInlineCompletionItemProvider({language:o,scheme:"*"},n);Zt.push(a)}let s=z.languages.registerCompletionItemProvider({language:o,scheme:"*"},t,...Wt[i[o]]);Zt.push(s),xt.set(o,i[o])}),Object.keys(Wt).forEach(o=>{if(!xt.has(o)){if(r){let a=z.languages.registerInlineCompletionItemProvider({language:o,scheme:"*"},n);Zt.push(a)}let s=z.languages.registerCompletionItemProvider({language:o,scheme:"*"},t,...Wt[o]);Zt.push(s),xt.set(o,o)}})}function zv(){xt.clear();let e;for(;e=Zt.pop();)e.dispose()}re();function wy(e){e.subscriptions.push(Rr.commands.registerCommand("editor.emmet.action.updateImageSize",()=>Promise.resolve().then(()=>(Pf(),If)).then(t=>t.updateImageSize()))),Ju(Rr.Uri.file((0,Of.homedir)())),Rc(e)}0&&(module.exports={activate});
//# sourceMappingURL=emmetNodeMain.js.map