@vuetify/vue-repl 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/vue-repl.js +1850 -1760
- package/dist/vue-repl.js.map +1 -1
- package/package.json +1 -1
package/dist/vue-repl.js
CHANGED
|
@@ -468,6 +468,89 @@ var parserHtml$1 = {exports: {}};
|
|
|
468
468
|
|
|
469
469
|
const parserHtml = /*@__PURE__*/getDefaultExportFromCjs(parserHtml$1.exports);
|
|
470
470
|
|
|
471
|
+
var parserPostcss$1 = {exports: {}};
|
|
472
|
+
|
|
473
|
+
(function (module, exports) {
|
|
474
|
+
(function(e){module.exports=e();})(function(){var U=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var pe=U((wp,Gt)=>{var er=function(e){return e&&e.Math==Math&&e};Gt.exports=er(typeof globalThis=="object"&&globalThis)||er(typeof window=="object"&&window)||er(typeof self=="object"&&self)||er(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")();});var be=U((_p,Ht)=>{Ht.exports=function(e){try{return !!e()}catch{return !0}};});var Oe=U((bp,Jt)=>{var _a=be();Jt.exports=!_a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7});});var Tr=U((xp,Kt)=>{var ba=be();Kt.exports=!ba(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")});});var tr=U((Sp,Qt)=>{var xa=Tr(),rr=Function.prototype.call;Qt.exports=xa?rr.bind(rr):function(){return rr.apply(rr,arguments)};});var en=U(Zt=>{var Yt={}.propertyIsEnumerable,Xt=Object.getOwnPropertyDescriptor,Sa=Xt&&!Yt.call({1:2},1);Zt.f=Sa?function(n){var i=Xt(this,n);return !!i&&i.enumerable}:Yt;});var Er=U((Op,rn)=>{rn.exports=function(e,n){return {enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:n}};});var xe=U((Tp,sn)=>{var tn=Tr(),nn=Function.prototype,qr=nn.call,ka=tn&&nn.bind.bind(qr,qr);sn.exports=tn?ka:function(e){return function(){return qr.apply(e,arguments)}};});var un=U((Ep,an)=>{var on=xe(),Oa=on({}.toString),Ta=on("".slice);an.exports=function(e){return Ta(Oa(e),8,-1)};});var ln=U((qp,cn)=>{var Ea=xe(),qa=be(),Aa=un(),Ar=Object,Pa=Ea("".split);cn.exports=qa(function(){return !Ar("z").propertyIsEnumerable(0)})?function(e){return Aa(e)=="String"?Pa(e,""):Ar(e)}:Ar;});var Pr=U((Ap,fn)=>{fn.exports=function(e){return e==null};});var Ir=U((Pp,pn)=>{var Ia=Pr(),Ra=TypeError;pn.exports=function(e){if(Ia(e))throw Ra("Can't call method on "+e);return e};});var nr=U((Ip,hn)=>{var Ca=ln(),Na=Ir();hn.exports=function(e){return Ca(Na(e))};});var Cr=U((Rp,dn)=>{var Rr=typeof document=="object"&&document.all,ja=typeof Rr>"u"&&Rr!==void 0;dn.exports={all:Rr,IS_HTMLDDA:ja};});var he=U((Cp,mn)=>{var vn=Cr(),Ma=vn.all;mn.exports=vn.IS_HTMLDDA?function(e){return typeof e=="function"||e===Ma}:function(e){return typeof e=="function"};});var Me=U((Np,wn)=>{var gn=he(),yn=Cr(),Da=yn.all;wn.exports=yn.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:gn(e)||e===Da}:function(e){return typeof e=="object"?e!==null:gn(e)};});var ir=U((jp,_n)=>{var Nr=pe(),La=he(),za=function(e){return La(e)?e:void 0};_n.exports=function(e,n){return arguments.length<2?za(Nr[e]):Nr[e]&&Nr[e][n]};});var xn=U((Mp,bn)=>{var Ba=xe();bn.exports=Ba({}.isPrototypeOf);});var kn=U((Dp,Sn)=>{var Fa=ir();Sn.exports=Fa("navigator","userAgent")||"";});var In=U((Lp,Pn)=>{var An=pe(),jr=kn(),On=An.process,Tn=An.Deno,En=On&&On.versions||Tn&&Tn.version,qn=En&&En.v8,de,sr;qn&&(de=qn.split("."),sr=de[0]>0&&de[0]<4?1:+(de[0]+de[1]));!sr&&jr&&(de=jr.match(/Edge\/(\d+)/),(!de||de[1]>=74)&&(de=jr.match(/Chrome\/(\d+)/),de&&(sr=+de[1])));Pn.exports=sr;});var Mr=U((zp,Cn)=>{var Rn=In(),Ua=be();Cn.exports=!!Object.getOwnPropertySymbols&&!Ua(function(){var e=Symbol();return !String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Rn&&Rn<41});});var Dr=U((Bp,Nn)=>{var $a=Mr();Nn.exports=$a&&!Symbol.sham&&typeof Symbol.iterator=="symbol";});var Lr=U((Fp,jn)=>{var Wa=ir(),Va=he(),Ga=xn(),Ha=Dr(),Ja=Object;jn.exports=Ha?function(e){return typeof e=="symbol"}:function(e){var n=Wa("Symbol");return Va(n)&&Ga(n.prototype,Ja(e))};});var Dn=U((Up,Mn)=>{var Ka=String;Mn.exports=function(e){try{return Ka(e)}catch{return "Object"}};});var zn=U(($p,Ln)=>{var Qa=he(),Ya=Dn(),Xa=TypeError;Ln.exports=function(e){if(Qa(e))return e;throw Xa(Ya(e)+" is not a function")};});var Fn=U((Wp,Bn)=>{var Za=zn(),eu=Pr();Bn.exports=function(e,n){var i=e[n];return eu(i)?void 0:Za(i)};});var $n=U((Vp,Un)=>{var zr=tr(),Br=he(),Fr=Me(),ru=TypeError;Un.exports=function(e,n){var i,u;if(n==="string"&&Br(i=e.toString)&&!Fr(u=zr(i,e))||Br(i=e.valueOf)&&!Fr(u=zr(i,e))||n!=="string"&&Br(i=e.toString)&&!Fr(u=zr(i,e)))return u;throw ru("Can't convert object to primitive value")};});var Vn=U((Gp,Wn)=>{Wn.exports=!1;});var or=U((Hp,Hn)=>{var Gn=pe(),tu=Object.defineProperty;Hn.exports=function(e,n){try{tu(Gn,e,{value:n,configurable:!0,writable:!0});}catch{Gn[e]=n;}return n};});var ar=U((Jp,Kn)=>{var nu=pe(),iu=or(),Jn="__core-js_shared__",su=nu[Jn]||iu(Jn,{});Kn.exports=su;});var Ur=U((Kp,Yn)=>{var ou=Vn(),Qn=ar();(Yn.exports=function(e,n){return Qn[e]||(Qn[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.26.1",mode:ou?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});});var Zn=U((Qp,Xn)=>{var au=Ir(),uu=Object;Xn.exports=function(e){return uu(au(e))};});var Te=U((Yp,ei)=>{var cu=xe(),lu=Zn(),fu=cu({}.hasOwnProperty);ei.exports=Object.hasOwn||function(n,i){return fu(lu(n),i)};});var $r=U((Xp,ri)=>{var pu=xe(),hu=0,du=Math.random(),vu=pu(1 .toString);ri.exports=function(e){return "Symbol("+(e===void 0?"":e)+")_"+vu(++hu+du,36)};});var ai=U((Zp,oi)=>{var mu=pe(),gu=Ur(),ti=Te(),yu=$r(),ni=Mr(),si=Dr(),De=gu("wks"),Ee=mu.Symbol,ii=Ee&&Ee.for,wu=si?Ee:Ee&&Ee.withoutSetter||yu;oi.exports=function(e){if(!ti(De,e)||!(ni||typeof De[e]=="string")){var n="Symbol."+e;ni&&ti(Ee,e)?De[e]=Ee[e]:si&&ii?De[e]=ii(n):De[e]=wu(n);}return De[e]};});var fi=U((eh,li)=>{var _u=tr(),ui=Me(),ci=Lr(),bu=Fn(),xu=$n(),Su=ai(),ku=TypeError,Ou=Su("toPrimitive");li.exports=function(e,n){if(!ui(e)||ci(e))return e;var i=bu(e,Ou),u;if(i){if(n===void 0&&(n="default"),u=_u(i,e,n),!ui(u)||ci(u))return u;throw ku("Can't convert object to primitive value")}return n===void 0&&(n="number"),xu(e,n)};});var Wr=U((rh,pi)=>{var Tu=fi(),Eu=Lr();pi.exports=function(e){var n=Tu(e,"string");return Eu(n)?n:n+""};});var vi=U((th,di)=>{var qu=pe(),hi=Me(),Vr=qu.document,Au=hi(Vr)&&hi(Vr.createElement);di.exports=function(e){return Au?Vr.createElement(e):{}};});var Gr=U((nh,mi)=>{var Pu=Oe(),Iu=be(),Ru=vi();mi.exports=!Pu&&!Iu(function(){return Object.defineProperty(Ru("div"),"a",{get:function(){return 7}}).a!=7});});var Hr=U(yi=>{var Cu=Oe(),Nu=tr(),ju=en(),Mu=Er(),Du=nr(),Lu=Wr(),zu=Te(),Bu=Gr(),gi=Object.getOwnPropertyDescriptor;yi.f=Cu?gi:function(n,i){if(n=Du(n),i=Lu(i),Bu)try{return gi(n,i)}catch{}if(zu(n,i))return Mu(!Nu(ju.f,n,i),n[i])};});var _i=U((sh,wi)=>{var Fu=Oe(),Uu=be();wi.exports=Fu&&Uu(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42});});var Jr=U((oh,bi)=>{var $u=Me(),Wu=String,Vu=TypeError;bi.exports=function(e){if($u(e))return e;throw Vu(Wu(e)+" is not an object")};});var cr=U(Si=>{var Gu=Oe(),Hu=Gr(),Ju=_i(),ur=Jr(),xi=Wr(),Ku=TypeError,Kr=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,Qr="enumerable",Yr="configurable",Xr="writable";Si.f=Gu?Ju?function(n,i,u){if(ur(n),i=xi(i),ur(u),typeof n=="function"&&i==="prototype"&&"value"in u&&Xr in u&&!u[Xr]){var o=Qu(n,i);o&&o[Xr]&&(n[i]=u.value,u={configurable:Yr in u?u[Yr]:o[Yr],enumerable:Qr in u?u[Qr]:o[Qr],writable:!1});}return Kr(n,i,u)}:Kr:function(n,i,u){if(ur(n),i=xi(i),ur(u),Hu)try{return Kr(n,i,u)}catch{}if("get"in u||"set"in u)throw Ku("Accessors not supported");return "value"in u&&(n[i]=u.value),n};});var Zr=U((uh,ki)=>{var Yu=Oe(),Xu=cr(),Zu=Er();ki.exports=Yu?function(e,n,i){return Xu.f(e,n,Zu(1,i))}:function(e,n,i){return e[n]=i,e};});var Ei=U((ch,Ti)=>{var et=Oe(),ec=Te(),Oi=Function.prototype,rc=et&&Object.getOwnPropertyDescriptor,rt=ec(Oi,"name"),tc=rt&&function(){}.name==="something",nc=rt&&(!et||et&&rc(Oi,"name").configurable);Ti.exports={EXISTS:rt,PROPER:tc,CONFIGURABLE:nc};});var Ai=U((lh,qi)=>{var ic=xe(),sc=he(),tt=ar(),oc=ic(Function.toString);sc(tt.inspectSource)||(tt.inspectSource=function(e){return oc(e)});qi.exports=tt.inspectSource;});var Ri=U((fh,Ii)=>{var ac=pe(),uc=he(),Pi=ac.WeakMap;Ii.exports=uc(Pi)&&/native code/.test(String(Pi));});var ji=U((ph,Ni)=>{var cc=Ur(),lc=$r(),Ci=cc("keys");Ni.exports=function(e){return Ci[e]||(Ci[e]=lc(e))};});var nt=U((hh,Mi)=>{Mi.exports={};});var Bi=U((dh,zi)=>{var fc=Ri(),Li=pe(),pc=Me(),hc=Zr(),it=Te(),st=ar(),dc=ji(),vc=nt(),Di="Object already initialized",ot=Li.TypeError,mc=Li.WeakMap,lr,Fe,fr,gc=function(e){return fr(e)?Fe(e):lr(e,{})},yc=function(e){return function(n){var i;if(!pc(n)||(i=Fe(n)).type!==e)throw ot("Incompatible receiver, "+e+" required");return i}};fc||st.state?(ve=st.state||(st.state=new mc),ve.get=ve.get,ve.has=ve.has,ve.set=ve.set,lr=function(e,n){if(ve.has(e))throw ot(Di);return n.facade=e,ve.set(e,n),n},Fe=function(e){return ve.get(e)||{}},fr=function(e){return ve.has(e)}):(qe=dc("state"),vc[qe]=!0,lr=function(e,n){if(it(e,qe))throw ot(Di);return n.facade=e,hc(e,qe,n),n},Fe=function(e){return it(e,qe)?e[qe]:{}},fr=function(e){return it(e,qe)});var ve,qe;zi.exports={set:lr,get:Fe,has:fr,enforce:gc,getterFor:yc};});var $i=U((vh,Ui)=>{var wc=be(),_c=he(),pr=Te(),at=Oe(),bc=Ei().CONFIGURABLE,xc=Ai(),Fi=Bi(),Sc=Fi.enforce,kc=Fi.get,hr=Object.defineProperty,Oc=at&&!wc(function(){return hr(function(){},"length",{value:8}).length!==8}),Tc=String(String).split("String"),Ec=Ui.exports=function(e,n,i){String(n).slice(0,7)==="Symbol("&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(n="get "+n),i&&i.setter&&(n="set "+n),(!pr(e,"name")||bc&&e.name!==n)&&(at?hr(e,"name",{value:n,configurable:!0}):e.name=n),Oc&&i&&pr(i,"arity")&&e.length!==i.arity&&hr(e,"length",{value:i.arity});try{i&&pr(i,"constructor")&&i.constructor?at&&hr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0);}catch{}var u=Sc(e);return pr(u,"source")||(u.source=Tc.join(typeof n=="string"?n:"")),e};Function.prototype.toString=Ec(function(){return _c(this)&&kc(this).source||xc(this)},"toString");});var Vi=U((mh,Wi)=>{var qc=he(),Ac=cr(),Pc=$i(),Ic=or();Wi.exports=function(e,n,i,u){u||(u={});var o=u.enumerable,h=u.name!==void 0?u.name:n;if(qc(i)&&Pc(i,h,u),u.global)o?e[n]=i:Ic(n,i);else {try{u.unsafe?e[n]&&(o=!0):delete e[n];}catch{}o?e[n]=i:Ac.f(e,n,{value:i,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable});}return e};});var Hi=U((gh,Gi)=>{var Rc=Math.ceil,Cc=Math.floor;Gi.exports=Math.trunc||function(n){var i=+n;return (i>0?Cc:Rc)(i)};});var ut=U((yh,Ji)=>{var Nc=Hi();Ji.exports=function(e){var n=+e;return n!==n||n===0?0:Nc(n)};});var Qi=U((wh,Ki)=>{var jc=ut(),Mc=Math.max,Dc=Math.min;Ki.exports=function(e,n){var i=jc(e);return i<0?Mc(i+n,0):Dc(i,n)};});var Xi=U((_h,Yi)=>{var Lc=ut(),zc=Math.min;Yi.exports=function(e){return e>0?zc(Lc(e),9007199254740991):0};});var es=U((bh,Zi)=>{var Bc=Xi();Zi.exports=function(e){return Bc(e.length)};});var ns=U((xh,ts)=>{var Fc=nr(),Uc=Qi(),$c=es(),rs=function(e){return function(n,i,u){var o=Fc(n),h=$c(o),l=Uc(u,h),p;if(e&&i!=i){for(;h>l;)if(p=o[l++],p!=p)return !0}else for(;h>l;l++)if((e||l in o)&&o[l]===i)return e||l||0;return !e&&-1}};ts.exports={includes:rs(!0),indexOf:rs(!1)};});var os=U((Sh,ss)=>{var Wc=xe(),ct=Te(),Vc=nr(),Gc=ns().indexOf,Hc=nt(),is=Wc([].push);ss.exports=function(e,n){var i=Vc(e),u=0,o=[],h;for(h in i)!ct(Hc,h)&&ct(i,h)&&is(o,h);for(;n.length>u;)ct(i,h=n[u++])&&(~Gc(o,h)||is(o,h));return o};});var us=U((kh,as)=>{as.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];});var ls=U(cs=>{var Jc=os(),Kc=us(),Qc=Kc.concat("length","prototype");cs.f=Object.getOwnPropertyNames||function(n){return Jc(n,Qc)};});var ps=U(fs=>{fs.f=Object.getOwnPropertySymbols;});var ds=U((Eh,hs)=>{var Yc=ir(),Xc=xe(),Zc=ls(),el=ps(),rl=Jr(),tl=Xc([].concat);hs.exports=Yc("Reflect","ownKeys")||function(n){var i=Zc.f(rl(n)),u=el.f;return u?tl(i,u(n)):i};});var gs=U((qh,ms)=>{var vs=Te(),nl=ds(),il=Hr(),sl=cr();ms.exports=function(e,n,i){for(var u=nl(n),o=sl.f,h=il.f,l=0;l<u.length;l++){var p=u[l];!vs(e,p)&&!(i&&vs(i,p))&&o(e,p,h(n,p));}};});var ws=U((Ah,ys)=>{var ol=be(),al=he(),ul=/#|\.prototype\./,Ue=function(e,n){var i=ll[cl(e)];return i==pl?!0:i==fl?!1:al(n)?ol(n):!!n},cl=Ue.normalize=function(e){return String(e).replace(ul,".").toLowerCase()},ll=Ue.data={},fl=Ue.NATIVE="N",pl=Ue.POLYFILL="P";ys.exports=Ue;});var bs=U((Ph,_s)=>{var lt=pe(),hl=Hr().f,dl=Zr(),vl=Vi(),ml=or(),gl=gs(),yl=ws();_s.exports=function(e,n){var i=e.target,u=e.global,o=e.stat,h,l,p,m,c,t;if(u?l=lt:o?l=lt[i]||ml(i,{}):l=(lt[i]||{}).prototype,l)for(p in n){if(c=n[p],e.dontCallGetSet?(t=hl(l,p),m=t&&t.value):m=l[p],h=yl(u?p:i+(o?".":"#")+p,e.forced),!h&&m!==void 0){if(typeof c==typeof m)continue;gl(c,m);}(e.sham||m&&m.sham)&&dl(c,"sham",!0),vl(l,p,c,e);}};});var xs=U(()=>{var wl=bs(),ft=pe();wl({global:!0,forced:ft.globalThis!==ft},{globalThis:ft});});var Ss=U(()=>{xs();});var gp=U((Fh,wa)=>{Ss();var Et=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,qt=Object.getOwnPropertyNames,bl=Object.prototype.hasOwnProperty,Le=(e,n)=>function(){return e&&(n=(0, e[qt(e)[0]])(e=0)),n},P=(e,n)=>function(){return n||(0, e[qt(e)[0]])((n={exports:{}}).exports,n),n.exports},At=(e,n)=>{for(var i in n)Et(e,i,{get:n[i],enumerable:!0});},xl=(e,n,i,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of qt(n))!bl.call(e,o)&&o!==i&&Et(e,o,{get:()=>n[o],enumerable:!(u=_l(n,o))||u.enumerable});return e},Pt=e=>xl(Et({},"__esModule",{value:!0}),e),A=Le({"<define:process>"(){}}),Sl=P({"src/common/parser-create-error.js"(e,n){A();function i(u,o){let h=new SyntaxError(u+" ("+o.start.line+":"+o.start.column+")");return h.loc=o,h}n.exports=i;}}),Us=P({"src/utils/get-last.js"(e,n){A();var i=u=>u[u.length-1];n.exports=i;}}),$s=P({"src/utils/front-matter/parse.js"(e,n){A();var i=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function u(o){let h=o.match(i);if(!h)return {content:o};let{startDelimiter:l,language:p,value:m="",endDelimiter:c}=h.groups,t=p.trim()||"yaml";if(l==="+++"&&(t="toml"),t!=="yaml"&&l!==c)return {content:o};let[r]=h;return {frontMatter:{type:"front-matter",lang:t,value:m,startDelimiter:l,endDelimiter:c,raw:r.replace(/\n$/,"")},content:r.replace(/[^\n]/g," ")+o.slice(r.length)}}n.exports=u;}}),Ws={};At(Ws,{EOL:()=>bt,arch:()=>kl,cpus:()=>Ys,default:()=>to,endianness:()=>Vs,freemem:()=>Ks,getNetworkInterfaces:()=>ro,hostname:()=>Gs,loadavg:()=>Hs,networkInterfaces:()=>eo,platform:()=>Ol,release:()=>Zs,tmpDir:()=>wt,tmpdir:()=>_t,totalmem:()=>Qs,type:()=>Xs,uptime:()=>Js});function Vs(){if(typeof dr>"u"){var e=new ArrayBuffer(2),n=new Uint8Array(e),i=new Uint16Array(e);if(n[0]=1,n[1]=2,i[0]===258)dr="BE";else if(i[0]===513)dr="LE";else throw new Error("unable to figure out endianess")}return dr}function Gs(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function Hs(){return []}function Js(){return 0}function Ks(){return Number.MAX_VALUE}function Qs(){return Number.MAX_VALUE}function Ys(){return []}function Xs(){return "Browser"}function Zs(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function eo(){}function ro(){}function kl(){return "javascript"}function Ol(){return "browser"}function wt(){return "/tmp"}var dr,_t,bt,to,Tl=Le({"node-modules-polyfills:os"(){A(),_t=wt,bt=`
|
|
475
|
+
`,to={EOL:bt,tmpdir:_t,tmpDir:wt,networkInterfaces:eo,getNetworkInterfaces:ro,release:Zs,type:Xs,cpus:Ys,totalmem:Qs,freemem:Ks,uptime:Js,loadavg:Hs,hostname:Gs,endianness:Vs};}}),El=P({"node-modules-polyfills-commonjs:os"(e,n){A();var i=(Tl(),Pt(Ws));if(i&&i.default){n.exports=i.default;for(let u in i)n.exports[u]=i[u];}else i&&(n.exports=i);}}),ql=P({"node_modules/detect-newline/index.js"(e,n){A();var i=u=>{if(typeof u!="string")throw new TypeError("Expected a string");let o=u.match(/(?:\r?\n)/g)||[];if(o.length===0)return;let h=o.filter(p=>p===`\r
|
|
476
|
+
`).length,l=o.length-h;return h>l?`\r
|
|
477
|
+
`:`
|
|
478
|
+
`};n.exports=i,n.exports.graceful=u=>typeof u=="string"&&i(u)||`
|
|
479
|
+
`;}}),Al=P({"node_modules/jest-docblock/build/index.js"(e){A(),Object.defineProperty(e,"__esModule",{value:!0}),e.extract=s,e.parse=g,e.parseWithComments=v,e.print=y,e.strip=f;function n(){let d=El();return n=function(){return d},d}function i(){let d=u(ql());return i=function(){return d},d}function u(d){return d&&d.__esModule?d:{default:d}}var o=/\*\/$/,h=/^\/\*\*?/,l=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,p=/(^|\s+)\/\/([^\r\n]*)/g,m=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,t=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,r=/(\r?\n|^) *\* ?/g,a=[];function s(d){let _=d.match(l);return _?_[0].trimLeft():""}function f(d){let _=d.match(l);return _&&_[0]?d.substring(_[0].length):d}function g(d){return v(d).pragmas}function v(d){let _=(0, i().default)(d)||n().EOL;d=d.replace(h,"").replace(o,"").replace(r,"$1");let k="";for(;k!==d;)k=d,d=d.replace(c,`${_}$1 $2${_}`);d=d.replace(m,"").trimRight();let x=Object.create(null),N=d.replace(t,"").replace(m,"").trimRight(),I;for(;I=t.exec(d);){let W=I[2].replace(p,"");typeof x[I[1]]=="string"||Array.isArray(x[I[1]])?x[I[1]]=a.concat(x[I[1]],W):x[I[1]]=W;}return {comments:N,pragmas:x}}function y(d){let{comments:_="",pragmas:k={}}=d,x=(0, i().default)(_)||n().EOL,N="/**",I=" *",W=" */",$=Object.keys(k),H=$.map(V=>w(V,k[V])).reduce((V,B)=>V.concat(B),[]).map(V=>`${I} ${V}${x}`).join("");if(!_){if($.length===0)return "";if($.length===1&&!Array.isArray(k[$[0]])){let V=k[$[0]];return `${N} ${w($[0],V)[0]}${W}`}}let D=_.split(x).map(V=>`${I} ${V}`).join(x)+x;return N+x+(_?D:"")+(_&&$.length?I+x:"")+H+W}function w(d,_){return a.concat(_).map(k=>`@${d} ${k}`.trim())}}}),Pl=P({"src/common/end-of-line.js"(e,n){A();function i(l){let p=l.indexOf("\r");return p>=0?l.charAt(p+1)===`
|
|
480
|
+
`?"crlf":"cr":"lf"}function u(l){switch(l){case"cr":return "\r";case"crlf":return `\r
|
|
481
|
+
`;default:return `
|
|
482
|
+
`}}function o(l,p){let m;switch(p){case`
|
|
483
|
+
`:m=/\n/g;break;case"\r":m=/\r/g;break;case`\r
|
|
484
|
+
`:m=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(p)}.`)}let c=l.match(m);return c?c.length:0}function h(l){return l.replace(/\r\n?/g,`
|
|
485
|
+
`)}n.exports={guessEndOfLine:i,convertEndOfLineToChars:u,countEndOfLineChars:o,normalizeEndOfLine:h};}}),Il=P({"src/language-js/utils/get-shebang.js"(e,n){A();function i(u){if(!u.startsWith("#!"))return "";let o=u.indexOf(`
|
|
486
|
+
`);return o===-1?u:u.slice(0,o)}n.exports=i;}}),Rl=P({"src/language-js/pragma.js"(e,n){A();var{parseWithComments:i,strip:u,extract:o,print:h}=Al(),{normalizeEndOfLine:l}=Pl(),p=Il();function m(r){let a=p(r);a&&(r=r.slice(a.length+1));let s=o(r),{pragmas:f,comments:g}=i(s);return {shebang:a,text:r,pragmas:f,comments:g}}function c(r){let a=Object.keys(m(r).pragmas);return a.includes("prettier")||a.includes("format")}function t(r){let{shebang:a,text:s,pragmas:f,comments:g}=m(r),v=u(s),y=h({pragmas:Object.assign({format:""},f),comments:g.trimStart()});return (a?`${a}
|
|
487
|
+
`:"")+l(y)+(v.startsWith(`
|
|
488
|
+
`)?`
|
|
489
|
+
`:`
|
|
490
|
+
|
|
491
|
+
`)+v}n.exports={hasPragma:c,insertPragma:t};}}),Cl=P({"src/language-css/pragma.js"(e,n){A();var i=Rl(),u=$s();function o(l){return i.hasPragma(u(l).content)}function h(l){let{frontMatter:p,content:m}=u(l);return (p?p.raw+`
|
|
492
|
+
|
|
493
|
+
`:"")+i.insertPragma(m)}n.exports={hasPragma:o,insertPragma:h};}}),Nl=P({"src/utils/text/skip.js"(e,n){A();function i(p){return (m,c,t)=>{let r=t&&t.backwards;if(c===!1)return !1;let{length:a}=m,s=c;for(;s>=0&&s<a;){let f=m.charAt(s);if(p instanceof RegExp){if(!p.test(f))return s}else if(!p.includes(f))return s;r?s--:s++;}return s===-1||s===a?s:!1}}var u=i(/\s/),o=i(" "),h=i(",; "),l=i(/[^\n\r]/);n.exports={skipWhitespace:u,skipSpaces:o,skipToLineEnd:h,skipEverythingButNewLine:l};}}),jl=P({"src/utils/line-column-to-index.js"(e,n){A(),n.exports=function(i,u){let o=0;for(let h=0;h<i.line-1;++h)o=u.indexOf(`
|
|
494
|
+
`,o)+1;return o+i.column};}}),no=P({"src/language-css/loc.js"(e,n){A();var{skipEverythingButNewLine:i}=Nl(),u=Us(),o=jl();function h(s,f){return typeof s.sourceIndex=="number"?s.sourceIndex:s.source?o(s.source.start,f)-1:null}function l(s,f){if(s.type==="css-comment"&&s.inline)return i(f,s.source.startOffset);let g=s.nodes&&u(s.nodes);return g&&s.source&&!s.source.end&&(s=g),s.source&&s.source.end?o(s.source.end,f):null}function p(s,f){s.source&&(s.source.startOffset=h(s,f),s.source.endOffset=l(s,f));for(let g in s){let v=s[g];g==="source"||!v||typeof v!="object"||(v.type==="value-root"||v.type==="value-unknown"?m(v,c(s),v.text||v.value):p(v,f));}}function m(s,f,g){s.source&&(s.source.startOffset=h(s,g)+f,s.source.endOffset=l(s,g)+f);for(let v in s){let y=s[v];v==="source"||!y||typeof y!="object"||m(y,f,g);}}function c(s){let f=s.source.startOffset;return typeof s.prop=="string"&&(f+=s.prop.length),s.type==="css-atrule"&&typeof s.name=="string"&&(f+=1+s.name.length+s.raws.afterName.match(/^\s*:?\s*/)[0].length),s.type!=="css-atrule"&&s.raws&&typeof s.raws.between=="string"&&(f+=s.raws.between.length),f}function t(s){let f="initial",g="initial",v,y=!1,w=[];for(let d=0;d<s.length;d++){let _=s[d];switch(f){case"initial":if(_==="'"){f="single-quotes";continue}if(_==='"'){f="double-quotes";continue}if((_==="u"||_==="U")&&s.slice(d,d+4).toLowerCase()==="url("){f="url",d+=3;continue}if(_==="*"&&s[d-1]==="/"){f="comment-block";continue}if(_==="/"&&s[d-1]==="/"){f="comment-inline",v=d-1;continue}continue;case"single-quotes":if(_==="'"&&s[d-1]!=="\\"&&(f=g,g="initial"),_===`
|
|
495
|
+
`||_==="\r")return s;continue;case"double-quotes":if(_==='"'&&s[d-1]!=="\\"&&(f=g,g="initial"),_===`
|
|
496
|
+
`||_==="\r")return s;continue;case"url":if(_===")"&&(f="initial"),_===`
|
|
497
|
+
`||_==="\r")return s;if(_==="'"){f="single-quotes",g="url";continue}if(_==='"'){f="double-quotes",g="url";continue}continue;case"comment-block":_==="/"&&s[d-1]==="*"&&(f="initial");continue;case"comment-inline":(_==='"'||_==="'"||_==="*")&&(y=!0),(_===`
|
|
498
|
+
`||_==="\r")&&(y&&w.push([v,d]),f="initial",y=!1);continue}}for(let[d,_]of w)s=s.slice(0,d)+s.slice(d,_).replace(/["'*]/g," ")+s.slice(_);return s}function r(s){return s.source.startOffset}function a(s){return s.source.endOffset}n.exports={locStart:r,locEnd:a,calculateLoc:p,replaceQuotesInInlineComments:t};}}),Ml=P({"src/utils/is-non-empty-array.js"(e,n){A();function i(u){return Array.isArray(u)&&u.length>0}n.exports=i;}}),Dl=P({"src/language-css/utils/has-scss-interpolation.js"(e,n){A();var i=Ml();function u(o){if(i(o)){for(let h=o.length-1;h>0;h--)if(o[h].type==="word"&&o[h].value==="{"&&o[h-1].type==="word"&&o[h-1].value.endsWith("#"))return !0}return !1}n.exports=u;}}),Ll=P({"src/language-css/utils/has-string-or-function.js"(e,n){A();function i(u){return u.some(o=>o.type==="string"||o.type==="func")}n.exports=i;}}),zl=P({"src/language-css/utils/is-less-parser.js"(e,n){A();function i(u){return u.parser==="css"||u.parser==="less"}n.exports=i;}}),Bl=P({"src/language-css/utils/is-scss.js"(e,n){A();function i(u,o){return u==="less"||u==="scss"?u==="scss":/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(o)}n.exports=i;}}),Fl=P({"src/language-css/utils/is-scss-nested-property-node.js"(e,n){A();function i(u){return u.selector?u.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trim().endsWith(":"):!1}n.exports=i;}}),Ul=P({"src/language-css/utils/is-scss-variable.js"(e,n){A();function i(u){return Boolean((u==null?void 0:u.type)==="word"&&u.value.startsWith("$"))}n.exports=i;}}),$l=P({"src/language-css/utils/stringify-node.js"(e,n){A();function i(u){var o,h,l;if(u.groups){var p,m,c;let y=((p=u.open)===null||p===void 0?void 0:p.value)||"",w=u.groups.map(_=>i(_)).join(((m=u.groups[0])===null||m===void 0?void 0:m.type)==="comma_group"?",":""),d=((c=u.close)===null||c===void 0?void 0:c.value)||"";return y+w+d}let t=((o=u.raws)===null||o===void 0?void 0:o.before)||"",r=((h=u.raws)===null||h===void 0?void 0:h.quote)||"",a=u.type==="atword"?"@":"",s=u.value||"",f=u.unit||"",g=u.group?i(u.group):"",v=((l=u.raws)===null||l===void 0?void 0:l.after)||"";return t+r+a+s+r+f+g+v}n.exports=i;}}),Wl=P({"src/language-css/utils/is-module-rule-name.js"(e,n){A();var i=new Set(["import","use","forward"]);function u(o){return i.has(o)}n.exports=u;}}),we=P({"node_modules/postcss-values-parser/lib/node.js"(e,n){A();var i=function(u,o){let h=new u.constructor;for(let l in u){if(!u.hasOwnProperty(l))continue;let p=u[l],m=typeof p;l==="parent"&&m==="object"?o&&(h[l]=o):l==="source"?h[l]=p:p instanceof Array?h[l]=p.map(c=>i(c,h)):l!=="before"&&l!=="after"&&l!=="between"&&l!=="semicolon"&&(m==="object"&&p!==null&&(p=i(p)),h[l]=p);}return h};n.exports=class{constructor(o){o=o||{},this.raws={before:"",after:""};for(let h in o)this[h]=o[h];}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return [this.raws.before,String(this.value),this.raws.after].join("")}clone(o){o=o||{};let h=i(this);for(let l in o)h[l]=o[l];return h}cloneBefore(o){o=o||{};let h=this.clone(o);return this.parent.insertBefore(this,h),h}cloneAfter(o){o=o||{};let h=this.clone(o);return this.parent.insertAfter(this,h),h}replaceWith(){let o=Array.prototype.slice.call(arguments);if(this.parent){for(let h of o)this.parent.insertBefore(this,h);this.remove();}return this}moveTo(o){return this.cleanRaws(this.root()===o.root()),this.remove(),o.append(this),this}moveBefore(o){return this.cleanRaws(this.root()===o.root()),this.remove(),o.parent.insertBefore(o,this),this}moveAfter(o){return this.cleanRaws(this.root()===o.root()),this.remove(),o.parent.insertAfter(o,this),this}next(){let o=this.parent.index(this);return this.parent.nodes[o+1]}prev(){let o=this.parent.index(this);return this.parent.nodes[o-1]}toJSON(){let o={};for(let h in this){if(!this.hasOwnProperty(h)||h==="parent")continue;let l=this[h];l instanceof Array?o[h]=l.map(p=>typeof p=="object"&&p.toJSON?p.toJSON():p):typeof l=="object"&&l.toJSON?o[h]=l.toJSON():o[h]=l;}return o}root(){let o=this;for(;o.parent;)o=o.parent;return o}cleanRaws(o){delete this.raws.before,delete this.raws.after,o||delete this.raws.between;}positionInside(o){let h=this.toString(),l=this.source.start.column,p=this.source.start.line;for(let m=0;m<o;m++)h[m]===`
|
|
499
|
+
`?(l=1,p+=1):l+=1;return {line:p,column:l}}positionBy(o){let h=this.source.start;if(Object(o).index)h=this.positionInside(o.index);else if(Object(o).word){let l=this.toString().indexOf(o.word);l!==-1&&(h=this.positionInside(l));}return h}};}}),ae=P({"node_modules/postcss-values-parser/lib/container.js"(e,n){A();var i=we(),u=class extends i{constructor(o){super(o),this.nodes||(this.nodes=[]);}push(o){return o.parent=this,this.nodes.push(o),this}each(o){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach,l,p;if(this.indexes[h]=0,!!this.nodes){for(;this.indexes[h]<this.nodes.length&&(l=this.indexes[h],p=o(this.nodes[l],l),p!==!1);)this.indexes[h]+=1;return delete this.indexes[h],p}}walk(o){return this.each((h,l)=>{let p=o(h,l);return p!==!1&&h.walk&&(p=h.walk(o)),p})}walkType(o,h){if(!o||!h)throw new Error("Parameters {type} and {callback} are required.");let l=typeof o=="function";return this.walk((p,m)=>{if(l&&p instanceof o||!l&&p.type===o)return h.call(this,p,m)})}append(o){return o.parent=this,this.nodes.push(o),this}prepend(o){return o.parent=this,this.nodes.unshift(o),this}cleanRaws(o){if(super.cleanRaws(o),this.nodes)for(let h of this.nodes)h.cleanRaws(o);}insertAfter(o,h){let l=this.index(o),p;this.nodes.splice(l+1,0,h);for(let m in this.indexes)p=this.indexes[m],l<=p&&(this.indexes[m]=p+this.nodes.length);return this}insertBefore(o,h){let l=this.index(o),p;this.nodes.splice(l,0,h);for(let m in this.indexes)p=this.indexes[m],l<=p&&(this.indexes[m]=p+this.nodes.length);return this}removeChild(o){o=this.index(o),this.nodes[o].parent=void 0,this.nodes.splice(o,1);let h;for(let l in this.indexes)h=this.indexes[l],h>=o&&(this.indexes[l]=h-1);return this}removeAll(){for(let o of this.nodes)o.parent=void 0;return this.nodes=[],this}every(o){return this.nodes.every(o)}some(o){return this.nodes.some(o)}index(o){return typeof o=="number"?o:this.nodes.indexOf(o)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let o=this.nodes.map(String).join("");return this.value&&(o=this.value+o),this.raws.before&&(o=this.raws.before+o),this.raws.after&&(o+=this.raws.after),o}};u.registerWalker=o=>{let h="walk"+o.name;h.lastIndexOf("s")!==h.length-1&&(h+="s"),!u.prototype[h]&&(u.prototype[h]=function(l){return this.walkType(o,l)});},n.exports=u;}}),Vl=P({"node_modules/postcss-values-parser/lib/root.js"(e,n){A();var i=ae();n.exports=class extends i{constructor(o){super(o),this.type="root";}};}}),io=P({"node_modules/postcss-values-parser/lib/value.js"(e,n){A();var i=ae();n.exports=class extends i{constructor(o){super(o),this.type="value",this.unbalanced=0;}};}}),so=P({"node_modules/postcss-values-parser/lib/atword.js"(e,n){A();var i=ae(),u=class extends i{constructor(o){super(o),this.type="atword";}toString(){this.quoted?this.raws.quote:"";return [this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};i.registerWalker(u),n.exports=u;}}),oo=P({"node_modules/postcss-values-parser/lib/colon.js"(e,n){A();var i=ae(),u=we(),o=class extends u{constructor(h){super(h),this.type="colon";}};i.registerWalker(o),n.exports=o;}}),ao=P({"node_modules/postcss-values-parser/lib/comma.js"(e,n){A();var i=ae(),u=we(),o=class extends u{constructor(h){super(h),this.type="comma";}};i.registerWalker(o),n.exports=o;}}),uo=P({"node_modules/postcss-values-parser/lib/comment.js"(e,n){A();var i=ae(),u=we(),o=class extends u{constructor(h){super(h),this.type="comment",this.inline=Object(h).inline||!1;}toString(){return [this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};i.registerWalker(o),n.exports=o;}}),co=P({"node_modules/postcss-values-parser/lib/function.js"(e,n){A();var i=ae(),u=class extends i{constructor(o){super(o),this.type="func",this.unbalanced=-1;}};i.registerWalker(u),n.exports=u;}}),lo=P({"node_modules/postcss-values-parser/lib/number.js"(e,n){A();var i=ae(),u=we(),o=class extends u{constructor(h){super(h),this.type="number",this.unit=Object(h).unit||"";}toString(){return [this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};i.registerWalker(o),n.exports=o;}}),fo=P({"node_modules/postcss-values-parser/lib/operator.js"(e,n){A();var i=ae(),u=we(),o=class extends u{constructor(h){super(h),this.type="operator";}};i.registerWalker(o),n.exports=o;}}),po=P({"node_modules/postcss-values-parser/lib/paren.js"(e,n){A();var i=ae(),u=we(),o=class extends u{constructor(h){super(h),this.type="paren",this.parenType="";}};i.registerWalker(o),n.exports=o;}}),ho=P({"node_modules/postcss-values-parser/lib/string.js"(e,n){A();var i=ae(),u=we(),o=class extends u{constructor(h){super(h),this.type="string";}toString(){let h=this.quoted?this.raws.quote:"";return [this.raws.before,h,this.value+"",h,this.raws.after].join("")}};i.registerWalker(o),n.exports=o;}}),vo=P({"node_modules/postcss-values-parser/lib/word.js"(e,n){A();var i=ae(),u=we(),o=class extends u{constructor(h){super(h),this.type="word";}};i.registerWalker(o),n.exports=o;}}),mo=P({"node_modules/postcss-values-parser/lib/unicode-range.js"(e,n){A();var i=ae(),u=we(),o=class extends u{constructor(h){super(h),this.type="unicode-range";}};i.registerWalker(o),n.exports=o;}});function go(){throw new Error("setTimeout has not been defined")}function yo(){throw new Error("clearTimeout has not been defined")}function wo(e){if(Se===setTimeout)return setTimeout(e,0);if((Se===go||!Se)&&setTimeout)return Se=setTimeout,setTimeout(e,0);try{return Se(e,0)}catch{try{return Se.call(null,e,0)}catch{return Se.call(this,e,0)}}}function Gl(e){if(ke===clearTimeout)return clearTimeout(e);if((ke===yo||!ke)&&clearTimeout)return ke=clearTimeout,clearTimeout(e);try{return ke(e)}catch{try{return ke.call(null,e)}catch{return ke.call(this,e)}}}function Hl(){!Ne||!Ce||(Ne=!1,Ce.length?me=Ce.concat(me):We=-1,me.length&&_o());}function _o(){if(!Ne){var e=wo(Hl);Ne=!0;for(var n=me.length;n;){for(Ce=me,me=[];++We<n;)Ce&&Ce[We].run();We=-1,n=me.length;}Ce=null,Ne=!1,Gl(e);}}function Jl(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)n[i-1]=arguments[i];me.push(new bo(e,n)),me.length===1&&!Ne&&wo(_o);}function bo(e,n){this.fun=e,this.array=n;}function Ae(){}function Kl(e){throw new Error("process.binding is not supported")}function Ql(){return "/"}function Yl(e){throw new Error("process.chdir is not supported")}function Xl(){return 0}function Zl(e){var n=xo.call(Ie)*.001,i=Math.floor(n),u=Math.floor(n%1*1e9);return e&&(i=i-e[0],u=u-e[1],u<0&&(i--,u+=1e9)),[i,u]}function ef(){var e=new Date,n=e-So;return n/1e3}var Se,ke,me,Ne,Ce,We,ks,Os,Ts,Es,qs,As,Ps,Is,Rs,Cs,Ns,js,Ms,Ds,Ls,zs,Ie,xo,So,Bs,Ve,rf=Le({"node-modules-polyfills:process"(){A(),Se=go,ke=yo,typeof globalThis.setTimeout=="function"&&(Se=setTimeout),typeof globalThis.clearTimeout=="function"&&(ke=clearTimeout),me=[],Ne=!1,We=-1,bo.prototype.run=function(){this.fun.apply(null,this.array);},ks="browser",Os="browser",Ts=!0,Es={},qs=[],As="",Ps={},Is={},Rs={},Cs=Ae,Ns=Ae,js=Ae,Ms=Ae,Ds=Ae,Ls=Ae,zs=Ae,Ie=globalThis.performance||{},xo=Ie.now||Ie.mozNow||Ie.msNow||Ie.oNow||Ie.webkitNow||function(){return new Date().getTime()},So=new Date,Bs={nextTick:Jl,title:ks,browser:Ts,env:Es,argv:qs,version:As,versions:Ps,on:Cs,addListener:Ns,once:js,off:Ms,removeListener:Ds,removeAllListeners:Ls,emit:zs,binding:Kl,cwd:Ql,chdir:Yl,umask:Xl,hrtime:Zl,platform:Os,release:Is,config:Rs,uptime:ef},Ve=Bs;}}),pt,It,tf=Le({"node_modules/rollup-plugin-node-polyfills/polyfills/inherits.js"(){A(),typeof Object.create=="function"?pt=function(n,i){n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});}:pt=function(n,i){n.super_=i;var u=function(){};u.prototype=i.prototype,n.prototype=new u,n.prototype.constructor=n;},It=pt;}}),ko={};At(ko,{_extend:()=>Mt,debuglog:()=>Oo,default:()=>No,deprecate:()=>Rt,format:()=>wr,inherits:()=>It,inspect:()=>ye,isArray:()=>Ct,isBoolean:()=>_r,isBuffer:()=>Ao,isDate:()=>gr,isError:()=>He,isFunction:()=>Je,isNull:()=>Ke,isNullOrUndefined:()=>To,isNumber:()=>Nt,isObject:()=>je,isPrimitive:()=>qo,isRegExp:()=>Ge,isString:()=>Qe,isSymbol:()=>Eo,isUndefined:()=>ge,log:()=>Po});function wr(e){if(!Qe(e)){for(var n=[],i=0;i<arguments.length;i++)n.push(ye(arguments[i]));return n.join(" ")}for(var i=1,u=arguments,o=u.length,h=String(e).replace(Ro,function(p){if(p==="%%")return "%";if(i>=o)return p;switch(p){case"%s":return String(u[i++]);case"%d":return Number(u[i++]);case"%j":try{return JSON.stringify(u[i++])}catch{return "[Circular]"}default:return p}}),l=u[i];i<o;l=u[++i])Ke(l)||!je(l)?h+=" "+l:h+=" "+ye(l);return h}function Rt(e,n){if(ge(globalThis.process))return function(){return Rt(e,n).apply(this,arguments)};if(Ve.noDeprecation===!0)return e;var i=!1;function u(){if(!i){if(Ve.throwDeprecation)throw new Error(n);Ve.traceDeprecation?console.trace(n):console.error(n),i=!0;}return e.apply(this,arguments)}return u}function Oo(e){if(ge(vt)&&(vt=Ve.env.NODE_DEBUG||""),e=e.toUpperCase(),!$e[e])if(new RegExp("\\b"+e+"\\b","i").test(vt)){var n=0;$e[e]=function(){var i=wr.apply(null,arguments);console.error("%s %d: %s",e,n,i);};}else $e[e]=function(){};return $e[e]}function ye(e,n){var i={seen:[],stylize:sf};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),_r(n)?i.showHidden=n:n&&Mt(i,n),ge(i.showHidden)&&(i.showHidden=!1),ge(i.depth)&&(i.depth=2),ge(i.colors)&&(i.colors=!1),ge(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=nf),mr(i,e,i.depth)}function nf(e,n){var i=ye.styles[n];return i?"\x1B["+ye.colors[i][0]+"m"+e+"\x1B["+ye.colors[i][1]+"m":e}function sf(e,n){return e}function of(e){var n={};return e.forEach(function(i,u){n[i]=!0;}),n}function mr(e,n,i){if(e.customInspect&&n&&Je(n.inspect)&&n.inspect!==ye&&!(n.constructor&&n.constructor.prototype===n)){var u=n.inspect(i,e);return Qe(u)||(u=mr(e,u,i)),u}var o=af(e,n);if(o)return o;var h=Object.keys(n),l=of(h);if(e.showHidden&&(h=Object.getOwnPropertyNames(n)),He(n)&&(h.indexOf("message")>=0||h.indexOf("description")>=0))return ht(n);if(h.length===0){if(Je(n)){var p=n.name?": "+n.name:"";return e.stylize("[Function"+p+"]","special")}if(Ge(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(gr(n))return e.stylize(Date.prototype.toString.call(n),"date");if(He(n))return ht(n)}var m="",c=!1,t=["{","}"];if(Ct(n)&&(c=!0,t=["[","]"]),Je(n)){var r=n.name?": "+n.name:"";m=" [Function"+r+"]";}if(Ge(n)&&(m=" "+RegExp.prototype.toString.call(n)),gr(n)&&(m=" "+Date.prototype.toUTCString.call(n)),He(n)&&(m=" "+ht(n)),h.length===0&&(!c||n.length==0))return t[0]+m+t[1];if(i<0)return Ge(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var a;return c?a=uf(e,n,i,l,h):a=h.map(function(s){return xt(e,n,i,l,s,c)}),e.seen.pop(),cf(a,m,t)}function af(e,n){if(ge(n))return e.stylize("undefined","undefined");if(Qe(n)){var i="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(Nt(n))return e.stylize(""+n,"number");if(_r(n))return e.stylize(""+n,"boolean");if(Ke(n))return e.stylize("null","null")}function ht(e){return "["+Error.prototype.toString.call(e)+"]"}function uf(e,n,i,u,o){for(var h=[],l=0,p=n.length;l<p;++l)Io(n,String(l))?h.push(xt(e,n,i,u,String(l),!0)):h.push("");return o.forEach(function(m){m.match(/^\d+$/)||h.push(xt(e,n,i,u,m,!0));}),h}function xt(e,n,i,u,o,h){var l,p,m;if(m=Object.getOwnPropertyDescriptor(n,o)||{value:n[o]},m.get?m.set?p=e.stylize("[Getter/Setter]","special"):p=e.stylize("[Getter]","special"):m.set&&(p=e.stylize("[Setter]","special")),Io(u,o)||(l="["+o+"]"),p||(e.seen.indexOf(m.value)<0?(Ke(i)?p=mr(e,m.value,null):p=mr(e,m.value,i-1),p.indexOf(`
|
|
500
|
+
`)>-1&&(h?p=p.split(`
|
|
501
|
+
`).map(function(c){return " "+c}).join(`
|
|
502
|
+
`).substr(2):p=`
|
|
503
|
+
`+p.split(`
|
|
504
|
+
`).map(function(c){return " "+c}).join(`
|
|
505
|
+
`))):p=e.stylize("[Circular]","special")),ge(l)){if(h&&o.match(/^\d+$/))return p;l=JSON.stringify(""+o),l.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.substr(1,l.length-2),l=e.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=e.stylize(l,"string"));}return l+": "+p}function cf(e,n,i){var u=0,o=e.reduce(function(h,l){return u++,l.indexOf(`
|
|
506
|
+
`)>=0&&u++,h+l.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?i[0]+(n===""?"":n+`
|
|
507
|
+
`)+" "+e.join(`,
|
|
508
|
+
`)+" "+i[1]:i[0]+n+" "+e.join(", ")+" "+i[1]}function Ct(e){return Array.isArray(e)}function _r(e){return typeof e=="boolean"}function Ke(e){return e===null}function To(e){return e==null}function Nt(e){return typeof e=="number"}function Qe(e){return typeof e=="string"}function Eo(e){return typeof e=="symbol"}function ge(e){return e===void 0}function Ge(e){return je(e)&&jt(e)==="[object RegExp]"}function je(e){return typeof e=="object"&&e!==null}function gr(e){return je(e)&&jt(e)==="[object Date]"}function He(e){return je(e)&&(jt(e)==="[object Error]"||e instanceof Error)}function Je(e){return typeof e=="function"}function qo(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function Ao(e){return Buffer.isBuffer(e)}function jt(e){return Object.prototype.toString.call(e)}function dt(e){return e<10?"0"+e.toString(10):e.toString(10)}function lf(){var e=new Date,n=[dt(e.getHours()),dt(e.getMinutes()),dt(e.getSeconds())].join(":");return [e.getDate(),Co[e.getMonth()],n].join(" ")}function Po(){console.log("%s - %s",lf(),wr.apply(null,arguments));}function Mt(e,n){if(!n||!je(n))return e;for(var i=Object.keys(n),u=i.length;u--;)e[i[u]]=n[i[u]];return e}function Io(e,n){return Object.prototype.hasOwnProperty.call(e,n)}var Ro,$e,vt,Co,No,ff=Le({"node-modules-polyfills:util"(){A(),rf(),tf(),Ro=/%[sdj%]/g,$e={},ye.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ye.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Co=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],No={inherits:It,_extend:Mt,log:Po,isBuffer:Ao,isPrimitive:qo,isFunction:Je,isError:He,isDate:gr,isObject:je,isRegExp:Ge,isUndefined:ge,isSymbol:Eo,isString:Qe,isNumber:Nt,isNullOrUndefined:To,isNull:Ke,isBoolean:_r,isArray:Ct,inspect:ye,deprecate:Rt,format:wr,debuglog:Oo};}}),pf=P({"node-modules-polyfills-commonjs:util"(e,n){A();var i=(ff(),Pt(ko));if(i&&i.default){n.exports=i.default;for(let u in i)n.exports[u]=i[u];}else i&&(n.exports=i);}}),hf=P({"node_modules/postcss-values-parser/lib/errors/TokenizeError.js"(e,n){A();var i=class extends Error{constructor(u){super(u),this.name=this.constructor.name,this.message=u||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(u).stack;}};n.exports=i;}}),df=P({"node_modules/postcss-values-parser/lib/tokenize.js"(e,n){A();var i="{".charCodeAt(0),u="}".charCodeAt(0),o="(".charCodeAt(0),h=")".charCodeAt(0),l="'".charCodeAt(0),p='"'.charCodeAt(0),m="\\".charCodeAt(0),c="/".charCodeAt(0),t=".".charCodeAt(0),r=",".charCodeAt(0),a=":".charCodeAt(0),s="*".charCodeAt(0),f="-".charCodeAt(0),g="+".charCodeAt(0),v="#".charCodeAt(0),y=`
|
|
509
|
+
`.charCodeAt(0),w=" ".charCodeAt(0),d="\f".charCodeAt(0),_=" ".charCodeAt(0),k="\r".charCodeAt(0),x="@".charCodeAt(0),N="e".charCodeAt(0),I="E".charCodeAt(0),W="0".charCodeAt(0),$="9".charCodeAt(0),H="u".charCodeAt(0),D="U".charCodeAt(0),V=/[ \n\t\r\{\(\)'"\\;,/]/g,B=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,O=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,j=/^[a-z0-9]/i,C=/^[a-f0-9?\-]/i,R=pf(),X=hf();n.exports=function(Q,K){K=K||{};let J=[],M=Q.valueOf(),Y=M.length,G=-1,E=1,S=0,b=0,L=null,q,T,F,z,ee,te,le,re,ne,oe,ie;function ce(Ze){let _e=R.format("Unclosed %s at line: %d, column: %d, token: %d",Ze,E,S-G,S);throw new X(_e)}for(;S<Y;){switch(q=M.charCodeAt(S),q===y&&(G=S,E+=1),q){case y:case w:case _:case k:case d:T=S;do T+=1,q=M.charCodeAt(T),q===y&&(G=T,E+=1);while(q===w||q===y||q===_||q===k||q===d);J.push(["space",M.slice(S,T),E,S-G,E,T-G,S]),S=T-1;break;case a:T=S+1,J.push(["colon",M.slice(S,T),E,S-G,E,T-G,S]),S=T-1;break;case r:T=S+1,J.push(["comma",M.slice(S,T),E,S-G,E,T-G,S]),S=T-1;break;case i:J.push(["{","{",E,S-G,E,T-G,S]);break;case u:J.push(["}","}",E,S-G,E,T-G,S]);break;case o:b++,L=!L&&b===1&&J.length>0&&J[J.length-1][0]==="word"&&J[J.length-1][1]==="url",J.push(["(","(",E,S-G,E,T-G,S]);break;case h:b--,L=L&&b>0,J.push([")",")",E,S-G,E,T-G,S]);break;case l:case p:F=q===l?"'":'"',T=S;do for(ne=!1,T=M.indexOf(F,T+1),T===-1&&ce("quote"),oe=T;M.charCodeAt(oe-1)===m;)oe-=1,ne=!ne;while(ne);J.push(["string",M.slice(S,T+1),E,S-G,E,T-G,S]),S=T;break;case x:V.lastIndex=S+1,V.test(M),V.lastIndex===0?T=M.length-1:T=V.lastIndex-2,J.push(["atword",M.slice(S,T+1),E,S-G,E,T-G,S]),S=T;break;case m:T=S,q=M.charCodeAt(T+1),J.push(["word",M.slice(S,T+1),E,S-G,E,T-G,S]),S=T;break;case g:case f:case s:T=S+1,ie=M.slice(S+1,T+1);M.slice(S-1,S);if(q===f&&ie.charCodeAt(0)===f){T++,J.push(["word",M.slice(S,T),E,S-G,E,T-G,S]),S=T-1;break}J.push(["operator",M.slice(S,T),E,S-G,E,T-G,S]),S=T-1;break;default:if(q===c&&(M.charCodeAt(S+1)===s||K.loose&&!L&&M.charCodeAt(S+1)===c)){if(M.charCodeAt(S+1)===s)T=M.indexOf("*/",S+2)+1,T===0&&ce("comment");else {let Be=M.indexOf(`
|
|
510
|
+
`,S+2);T=Be!==-1?Be-1:Y;}te=M.slice(S,T+1),z=te.split(`
|
|
511
|
+
`),ee=z.length-1,ee>0?(le=E+ee,re=T-z[ee].length):(le=E,re=G),J.push(["comment",te,E,S-G,le,T-re,S]),G=re,E=le,S=T;}else if(q===v&&!j.test(M.slice(S+1,S+2)))T=S+1,J.push(["#",M.slice(S,T),E,S-G,E,T-G,S]),S=T-1;else if((q===H||q===D)&&M.charCodeAt(S+1)===g){T=S+2;do T+=1,q=M.charCodeAt(T);while(T<Y&&C.test(M.slice(T,T+1)));J.push(["unicoderange",M.slice(S,T),E,S-G,E,T-G,S]),S=T-1;}else if(q===c)T=S+1,J.push(["operator",M.slice(S,T),E,S-G,E,T-G,S]),S=T-1;else {let _e=B;if(q>=W&&q<=$&&(_e=O),_e.lastIndex=S+1,_e.test(M),_e.lastIndex===0?T=M.length-1:T=_e.lastIndex-2,_e===O||q===t){let Be=M.charCodeAt(T),Wt=M.charCodeAt(T+1),Vt=M.charCodeAt(T+2);(Be===N||Be===I)&&(Wt===f||Wt===g)&&Vt>=W&&Vt<=$&&(O.lastIndex=T+2,O.test(M),O.lastIndex===0?T=M.length-1:T=O.lastIndex-2);}J.push(["word",M.slice(S,T+1),E,S-G,E,T-G,S]),S=T;}break}S++;}return J};}}),jo=P({"node_modules/flatten/index.js"(e,n){A(),n.exports=function(u,o){if(o=typeof o=="number"?o:1/0,!o)return Array.isArray(u)?u.map(function(l){return l}):u;return h(u,1);function h(l,p){return l.reduce(function(m,c){return Array.isArray(c)&&p<o?m.concat(h(c,p+1)):m.concat(c)},[])}};}}),Mo=P({"node_modules/indexes-of/index.js"(e,n){A(),n.exports=function(i,u){for(var o=-1,h=[];(o=i.indexOf(u,o+1))!==-1;)h.push(o);return h};}}),Do=P({"node_modules/uniq/uniq.js"(e,n){A();function i(h,l){for(var p=1,m=h.length,c=h[0],t=h[0],r=1;r<m;++r)if(t=c,c=h[r],l(c,t)){if(r===p){p++;continue}h[p++]=c;}return h.length=p,h}function u(h){for(var l=1,p=h.length,m=h[0],c=h[0],t=1;t<p;++t,c=m)if(c=m,m=h[t],m!==c){if(t===l){l++;continue}h[l++]=m;}return h.length=l,h}function o(h,l,p){return h.length===0?h:l?(p||h.sort(l),i(h,l)):(p||h.sort(),u(h))}n.exports=o;}}),vf=P({"node_modules/postcss-values-parser/lib/errors/ParserError.js"(e,n){A();var i=class extends Error{constructor(u){super(u),this.name=this.constructor.name,this.message=u||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(u).stack;}};n.exports=i;}}),mf=P({"node_modules/postcss-values-parser/lib/parser.js"(e,n){A();var i=Vl(),u=io(),o=so(),h=oo(),l=ao(),p=uo(),m=co(),c=lo(),t=fo(),r=po(),a=ho(),s=vo(),f=mo(),g=df(),v=jo(),y=Mo(),w=Do(),d=vf();function _(k){return k.sort((x,N)=>x-N)}n.exports=class{constructor(x,N){let I={loose:!1};this.cache=[],this.input=x,this.options=Object.assign({},I,N),this.position=0,this.unbalanced=0,this.root=new i;let W=new u;this.root.append(W),this.current=W,this.tokens=g(x,this.options);}parse(){return this.loop()}colon(){let x=this.currToken;this.newNode(new h({value:x[1],source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6]})),this.position++;}comma(){let x=this.currToken;this.newNode(new l({value:x[1],source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6]})),this.position++;}comment(){let x=!1,N=this.currToken[1].replace(/\/\*|\*\//g,""),I;this.options.loose&&N.startsWith("//")&&(N=N.substring(2),x=!0),I=new p({value:N,inline:x,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(I),this.position++;}error(x,N){throw new d(x+` at line: ${N[2]}, column ${N[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return !this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let x=this.currToken[1],N;if(x==="+"||x==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return N=new t({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(N)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let x=1,N=this.position+1,I=this.currToken,W;for(;N<this.tokens.length&&x;){let $=this.tokens[N];$[0]==="("&&x++,$[0]===")"&&x--,N++;}if(x&&this.error("Expected closing parenthesis",I),W=this.current.last,W&&W.type==="func"&&W.unbalanced<0&&(W.unbalanced=0,this.current=W),this.current.unbalanced++,this.newNode(new r({value:I[1],source:{start:{line:I[2],column:I[3]},end:{line:I[4],column:I[5]}},sourceIndex:I[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let $=this.nextToken,H=this.currToken[1],D={line:this.currToken[2],column:this.currToken[3]};for(;$&&$[0]!==")"&&this.current.unbalanced;)this.position++,H+=this.currToken[1],$=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new s({value:H,source:{start:D,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})));}}parenClose(){let x=this.currToken;this.newNode(new r({value:x[1],source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",x),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()));}space(){let x=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=x[1],this.position++):(this.spaces=x[1],this.position++);}unicodeRange(){let x=this.currToken;this.newNode(new f({value:x[1],source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6]})),this.position++;}splitWord(){let x=this.nextToken,N=this.currToken[1],I=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,W=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,$,H;if(!W.test(N))for(;x&&x[0]==="word";){this.position++;let D=this.currToken[1];N+=D,x=this.nextToken;}$=y(N,"@"),H=_(w(v([[0],$]))),H.forEach((D,V)=>{let B=H[V+1]||N.length,O=N.slice(D,B),j;if(~$.indexOf(D))j=new o({value:O.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+D},end:{line:this.currToken[4],column:this.currToken[3]+(B-1)}},sourceIndex:this.currToken[6]+H[V]});else if(I.test(this.currToken[1])){let C=O.replace(I,"");j=new c({value:O.replace(C,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+D},end:{line:this.currToken[4],column:this.currToken[3]+(B-1)}},sourceIndex:this.currToken[6]+H[V],unit:C});}else j=new(x&&x[0]==="("?m:s)({value:O,source:{start:{line:this.currToken[2],column:this.currToken[3]+D},end:{line:this.currToken[4],column:this.currToken[3]+(B-1)}},sourceIndex:this.currToken[6]+H[V]}),j.type==="word"?(j.isHex=/^#(.+)/.test(O),j.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(O)):this.cache.push(this.current);this.newNode(j);}),this.position++;}string(){let x=this.currToken,N=this.currToken[1],I=/^(\"|\')/,W=I.test(N),$="",H;W&&($=N.match(I)[0],N=N.slice(1,N.length-1)),H=new a({value:N,source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6],quoted:W}),H.raws.quote=$,this.newNode(H),this.position++;}word(){return this.splitWord()}newNode(x){return this.spaces&&(x.raws.before+=this.spaces,this.spaces=""),this.current.append(x)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}};}}),gf=P({"node_modules/postcss-values-parser/lib/index.js"(e,n){A();var i=mf(),u=so(),o=oo(),h=ao(),l=uo(),p=co(),m=lo(),c=fo(),t=po(),r=ho(),a=mo(),s=io(),f=vo(),g=function(v,y){return new i(v,y)};g.atword=function(v){return new u(v)},g.colon=function(v){return new o(Object.assign({value:":"},v))},g.comma=function(v){return new h(Object.assign({value:","},v))},g.comment=function(v){return new l(v)},g.func=function(v){return new p(v)},g.number=function(v){return new m(v)},g.operator=function(v){return new c(v)},g.paren=function(v){return new t(Object.assign({value:"("},v))},g.string=function(v){return new r(Object.assign({quote:"'"},v))},g.value=function(v){return new s(v)},g.word=function(v){return new f(v)},g.unicodeRange=function(v){return new a(v)},n.exports=g;}}),ze=P({"node_modules/postcss-selector-parser/dist/selectors/node.js"(e,n){A(),e.__esModule=!0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};function u(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}var o=function l(p,m){if((typeof p>"u"?"undefined":i(p))!=="object")return p;var c=new p.constructor;for(var t in p)if(p.hasOwnProperty(t)){var r=p[t],a=typeof r>"u"?"undefined":i(r);t==="parent"&&a==="object"?m&&(c[t]=m):r instanceof Array?c[t]=r.map(function(s){return l(s,c)}):c[t]=l(r,c);}return c},h=function(){function l(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,l);for(var m in p)this[m]=p[m];var c=p.spaces;c=c===void 0?{}:c;var t=c.before,r=t===void 0?"":t,a=c.after,s=a===void 0?"":a;this.spaces={before:r,after:s};}return l.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},l.prototype.replaceWith=function(){if(this.parent){for(var m in arguments)this.parent.insertBefore(this,arguments[m]);this.remove();}return this},l.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},l.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},l.prototype.clone=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o(this);for(var t in m)c[t]=m[t];return c},l.prototype.toString=function(){return [this.spaces.before,String(this.value),this.spaces.after].join("")},l}();e.default=h,n.exports=e.default;}}),se=P({"node_modules/postcss-selector-parser/dist/selectors/types.js"(e){A(),e.__esModule=!0;e.TAG="tag";e.STRING="string";e.SELECTOR="selector";e.ROOT="root";e.PSEUDO="pseudo";e.NESTING="nesting";e.ID="id";e.COMMENT="comment";e.COMBINATOR="combinator";e.CLASS="class";e.ATTRIBUTE="attribute";e.UNIVERSAL="universal";}}),Dt=P({"node_modules/postcss-selector-parser/dist/selectors/container.js"(e,n){A(),e.__esModule=!0;var i=function(){function s(f,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(f,y.key,y);}}return function(f,g,v){return g&&s(f.prototype,g),v&&s(f,v),f}}(),u=ze(),o=m(u),h=se(),l=p(h);function p(s){if(s&&s.__esModule)return s;var f={};if(s!=null)for(var g in s)Object.prototype.hasOwnProperty.call(s,g)&&(f[g]=s[g]);return f.default=s,f}function m(s){return s&&s.__esModule?s:{default:s}}function c(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function t(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:s}function r(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f);}var a=function(s){r(f,s);function f(g){c(this,f);var v=t(this,s.call(this,g));return v.nodes||(v.nodes=[]),v}return f.prototype.append=function(v){return v.parent=this,this.nodes.push(v),this},f.prototype.prepend=function(v){return v.parent=this,this.nodes.unshift(v),this},f.prototype.at=function(v){return this.nodes[v]},f.prototype.index=function(v){return typeof v=="number"?v:this.nodes.indexOf(v)},f.prototype.removeChild=function(v){v=this.index(v),this.at(v).parent=void 0,this.nodes.splice(v,1);var y=void 0;for(var w in this.indexes)y=this.indexes[w],y>=v&&(this.indexes[w]=y-1);return this},f.prototype.removeAll=function(){for(var w=this.nodes,v=Array.isArray(w),y=0,w=v?w:w[Symbol.iterator]();;){var d;if(v){if(y>=w.length)break;d=w[y++];}else {if(y=w.next(),y.done)break;d=y.value;}var _=d;_.parent=void 0;}return this.nodes=[],this},f.prototype.empty=function(){return this.removeAll()},f.prototype.insertAfter=function(v,y){var w=this.index(v);this.nodes.splice(w+1,0,y);var d=void 0;for(var _ in this.indexes)d=this.indexes[_],w<=d&&(this.indexes[_]=d+this.nodes.length);return this},f.prototype.insertBefore=function(v,y){var w=this.index(v);this.nodes.splice(w,0,y);var d=void 0;for(var _ in this.indexes)d=this.indexes[_],w<=d&&(this.indexes[_]=d+this.nodes.length);return this},f.prototype.each=function(v){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var y=this.lastEach;if(this.indexes[y]=0,!!this.length){for(var w=void 0,d=void 0;this.indexes[y]<this.length&&(w=this.indexes[y],d=v(this.at(w),w),d!==!1);)this.indexes[y]+=1;if(delete this.indexes[y],d===!1)return !1}},f.prototype.walk=function(v){return this.each(function(y,w){var d=v(y,w);if(d!==!1&&y.length&&(d=y.walk(v)),d===!1)return !1})},f.prototype.walkAttributes=function(v){var y=this;return this.walk(function(w){if(w.type===l.ATTRIBUTE)return v.call(y,w)})},f.prototype.walkClasses=function(v){var y=this;return this.walk(function(w){if(w.type===l.CLASS)return v.call(y,w)})},f.prototype.walkCombinators=function(v){var y=this;return this.walk(function(w){if(w.type===l.COMBINATOR)return v.call(y,w)})},f.prototype.walkComments=function(v){var y=this;return this.walk(function(w){if(w.type===l.COMMENT)return v.call(y,w)})},f.prototype.walkIds=function(v){var y=this;return this.walk(function(w){if(w.type===l.ID)return v.call(y,w)})},f.prototype.walkNesting=function(v){var y=this;return this.walk(function(w){if(w.type===l.NESTING)return v.call(y,w)})},f.prototype.walkPseudos=function(v){var y=this;return this.walk(function(w){if(w.type===l.PSEUDO)return v.call(y,w)})},f.prototype.walkTags=function(v){var y=this;return this.walk(function(w){if(w.type===l.TAG)return v.call(y,w)})},f.prototype.walkUniversals=function(v){var y=this;return this.walk(function(w){if(w.type===l.UNIVERSAL)return v.call(y,w)})},f.prototype.split=function(v){var y=this,w=[];return this.reduce(function(d,_,k){var x=v.call(y,_);return w.push(_),x?(d.push(w),w=[]):k===y.length-1&&d.push(w),d},[])},f.prototype.map=function(v){return this.nodes.map(v)},f.prototype.reduce=function(v,y){return this.nodes.reduce(v,y)},f.prototype.every=function(v){return this.nodes.every(v)},f.prototype.some=function(v){return this.nodes.some(v)},f.prototype.filter=function(v){return this.nodes.filter(v)},f.prototype.sort=function(v){return this.nodes.sort(v)},f.prototype.toString=function(){return this.map(String).join("")},i(f,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),f}(o.default);e.default=a,n.exports=e.default;}}),Lo=P({"node_modules/postcss-selector-parser/dist/selectors/root.js"(e,n){A(),e.__esModule=!0;var i=Dt(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.ROOT,s}return r.prototype.toString=function(){var s=this.reduce(function(f,g){var v=String(g);return v?f+v+",":""},"").slice(0,-1);return this.trailingComma?s+",":s},r}(u.default);e.default=c,n.exports=e.default;}}),zo=P({"node_modules/postcss-selector-parser/dist/selectors/selector.js"(e,n){A(),e.__esModule=!0;var i=Dt(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.SELECTOR,s}return r}(u.default);e.default=c,n.exports=e.default;}}),Ye=P({"node_modules/postcss-selector-parser/dist/selectors/namespace.js"(e,n){A(),e.__esModule=!0;var i=function(){function t(r,a){for(var s=0;s<a.length;s++){var f=a[s];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,f.key,f);}}return function(r,a,s){return a&&t(r.prototype,a),s&&t(r,s),r}}(),u=ze(),o=h(u);function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(){return l(this,r),p(this,t.apply(this,arguments))}return r.prototype.toString=function(){return [this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},i(r,[{key:"ns",get:function(){var s=this.namespace;return s?(typeof s=="string"?s:"")+"|":""}}]),r}(o.default);e.default=c,n.exports=e.default;}}),Bo=P({"node_modules/postcss-selector-parser/dist/selectors/className.js"(e,n){A(),e.__esModule=!0;var i=Ye(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.CLASS,s}return r.prototype.toString=function(){return [this.spaces.before,this.ns,String("."+this.value),this.spaces.after].join("")},r}(u.default);e.default=c,n.exports=e.default;}}),Fo=P({"node_modules/postcss-selector-parser/dist/selectors/comment.js"(e,n){A(),e.__esModule=!0;var i=ze(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.COMMENT,s}return r}(u.default);e.default=c,n.exports=e.default;}}),Uo=P({"node_modules/postcss-selector-parser/dist/selectors/id.js"(e,n){A(),e.__esModule=!0;var i=Ye(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.ID,s}return r.prototype.toString=function(){return [this.spaces.before,this.ns,String("#"+this.value),this.spaces.after].join("")},r}(u.default);e.default=c,n.exports=e.default;}}),$o=P({"node_modules/postcss-selector-parser/dist/selectors/tag.js"(e,n){A(),e.__esModule=!0;var i=Ye(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.TAG,s}return r}(u.default);e.default=c,n.exports=e.default;}}),Wo=P({"node_modules/postcss-selector-parser/dist/selectors/string.js"(e,n){A(),e.__esModule=!0;var i=ze(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.STRING,s}return r}(u.default);e.default=c,n.exports=e.default;}}),Vo=P({"node_modules/postcss-selector-parser/dist/selectors/pseudo.js"(e,n){A(),e.__esModule=!0;var i=Dt(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.PSEUDO,s}return r.prototype.toString=function(){var s=this.length?"("+this.map(String).join(",")+")":"";return [this.spaces.before,String(this.value),s,this.spaces.after].join("")},r}(u.default);e.default=c,n.exports=e.default;}}),Go=P({"node_modules/postcss-selector-parser/dist/selectors/attribute.js"(e,n){A(),e.__esModule=!0;var i=Ye(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.ATTRIBUTE,s.raws={},s}return r.prototype.toString=function(){var s=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&s.push(this.operator),this.value&&s.push(this.value),this.raws.insensitive?s.push(this.raws.insensitive):this.insensitive&&s.push(" i"),s.push("]"),s.concat(this.spaces.after).join("")},r}(u.default);e.default=c,n.exports=e.default;}}),Ho=P({"node_modules/postcss-selector-parser/dist/selectors/universal.js"(e,n){A(),e.__esModule=!0;var i=Ye(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.UNIVERSAL,s.value="*",s}return r}(u.default);e.default=c,n.exports=e.default;}}),Jo=P({"node_modules/postcss-selector-parser/dist/selectors/combinator.js"(e,n){A(),e.__esModule=!0;var i=ze(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.COMBINATOR,s}return r}(u.default);e.default=c,n.exports=e.default;}}),Ko=P({"node_modules/postcss-selector-parser/dist/selectors/nesting.js"(e,n){A(),e.__esModule=!0;var i=ze(),u=h(i),o=se();function h(t){return t&&t.__esModule?t:{default:t}}function l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function p(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:t}function m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r);}var c=function(t){m(r,t);function r(a){l(this,r);var s=p(this,t.call(this,a));return s.type=o.NESTING,s.value="&",s}return r}(u.default);e.default=c,n.exports=e.default;}}),yf=P({"node_modules/postcss-selector-parser/dist/sortAscending.js"(e,n){A(),e.__esModule=!0,e.default=i;function i(u){return u.sort(function(o,h){return o-h})}n.exports=e.default;}}),wf=P({"node_modules/postcss-selector-parser/dist/tokenize.js"(e,n){A(),e.__esModule=!0,e.default=H;var i=39,u=34,o=92,h=47,l=10,p=32,m=12,c=9,t=13,r=43,a=62,s=126,f=124,g=44,v=40,y=41,w=91,d=93,_=59,k=42,x=58,N=38,I=64,W=/[ \n\t\r\{\(\)'"\\;/]/g,$=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function H(D){for(var V=[],B=D.css.valueOf(),O=void 0,j=void 0,C=void 0,R=void 0,X=void 0,Z=void 0,Q=void 0,K=void 0,J=void 0,M=void 0,Y=void 0,G=B.length,E=-1,S=1,b=0,L=function(T,F){if(D.safe)B+=F,j=B.length-1;else throw D.error("Unclosed "+T,S,b-E,b)};b<G;){switch(O=B.charCodeAt(b),O===l&&(E=b,S+=1),O){case l:case p:case c:case t:case m:j=b;do j+=1,O=B.charCodeAt(j),O===l&&(E=j,S+=1);while(O===p||O===l||O===c||O===t||O===m);V.push(["space",B.slice(b,j),S,b-E,b]),b=j-1;break;case r:case a:case s:case f:j=b;do j+=1,O=B.charCodeAt(j);while(O===r||O===a||O===s||O===f);V.push(["combinator",B.slice(b,j),S,b-E,b]),b=j-1;break;case k:V.push(["*","*",S,b-E,b]);break;case N:V.push(["&","&",S,b-E,b]);break;case g:V.push([",",",",S,b-E,b]);break;case w:V.push(["[","[",S,b-E,b]);break;case d:V.push(["]","]",S,b-E,b]);break;case x:V.push([":",":",S,b-E,b]);break;case _:V.push([";",";",S,b-E,b]);break;case v:V.push(["(","(",S,b-E,b]);break;case y:V.push([")",")",S,b-E,b]);break;case i:case u:C=O===i?"'":'"',j=b;do for(M=!1,j=B.indexOf(C,j+1),j===-1&&L("quote",C),Y=j;B.charCodeAt(Y-1)===o;)Y-=1,M=!M;while(M);V.push(["string",B.slice(b,j+1),S,b-E,S,j-E,b]),b=j;break;case I:W.lastIndex=b+1,W.test(B),W.lastIndex===0?j=B.length-1:j=W.lastIndex-2,V.push(["at-word",B.slice(b,j+1),S,b-E,S,j-E,b]),b=j;break;case o:for(j=b,Q=!0;B.charCodeAt(j+1)===o;)j+=1,Q=!Q;O=B.charCodeAt(j+1),Q&&O!==h&&O!==p&&O!==l&&O!==c&&O!==t&&O!==m&&(j+=1),V.push(["word",B.slice(b,j+1),S,b-E,S,j-E,b]),b=j;break;default:O===h&&B.charCodeAt(b+1)===k?(j=B.indexOf("*/",b+2)+1,j===0&&L("comment","*/"),Z=B.slice(b,j+1),R=Z.split(`
|
|
512
|
+
`),X=R.length-1,X>0?(K=S+X,J=j-R[X].length):(K=S,J=E),V.push(["comment",Z,S,b-E,K,j-J,b]),E=J,S=K,b=j):($.lastIndex=b+1,$.test(B),$.lastIndex===0?j=B.length-1:j=$.lastIndex-2,V.push(["word",B.slice(b,j+1),S,b-E,S,j-E,b]),b=j);break}b++;}return V}n.exports=e.default;}}),_f=P({"node_modules/postcss-selector-parser/dist/parser.js"(e,n){A(),e.__esModule=!0;var i=function(){function E(S,b){for(var L=0;L<b.length;L++){var q=b[L];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(S,q.key,q);}}return function(S,b,L){return b&&E(S.prototype,b),L&&E(S,L),S}}(),u=jo(),o=M(u),h=Mo(),l=M(h),p=Do(),m=M(p),c=Lo(),t=M(c),r=zo(),a=M(r),s=Bo(),f=M(s),g=Fo(),v=M(g),y=Uo(),w=M(y),d=$o(),_=M(d),k=Wo(),x=M(k),N=Vo(),I=M(N),W=Go(),$=M(W),H=Ho(),D=M(H),V=Jo(),B=M(V),O=Ko(),j=M(O),C=yf(),R=M(C),X=wf(),Z=M(X),Q=se(),K=J(Q);function J(E){if(E&&E.__esModule)return E;var S={};if(E!=null)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(S[b]=E[b]);return S.default=E,S}function M(E){return E&&E.__esModule?E:{default:E}}function Y(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}var G=function(){function E(S){Y(this,E),this.input=S,this.lossy=S.options.lossless===!1,this.position=0,this.root=new t.default;var b=new a.default;return this.root.append(b),this.current=b,this.lossy?this.tokens=(0, Z.default)({safe:S.safe,css:S.css.trim()}):this.tokens=(0, Z.default)(S),this.loop()}return E.prototype.attribute=function(){var b="",L=void 0,q=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)b+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~b.indexOf("]")&&this.error("Expected a closing square bracket.");var T=b.split(/((?:[*~^$|]?=))([^]*)/),F=T[0].split(/(\|)/g),z={operator:T[1],value:T[2],source:{start:{line:q[2],column:q[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:q[4]};if(F.length>1?(F[0]===""&&(F[0]=!0),z.attribute=this.parseValue(F[2]),z.namespace=this.parseNamespace(F[0])):z.attribute=this.parseValue(T[0]),L=new $.default(z),T[2]){var ee=T[2].split(/(\s+i\s*?)$/),te=ee[0].trim();L.value=this.lossy?te:ee[0],ee[1]&&(L.insensitive=!0,this.lossy||(L.raws.insensitive=ee[1])),L.quoted=te[0]==="'"||te[0]==='"',L.raws.unquoted=L.quoted?te.slice(1,-1):te;}this.newNode(L),this.position++;},E.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var b=new B.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(b.spaces.before=this.parseSpace(this.currToken[1]),b.source.start.line=this.nextToken[2],b.source.start.column=this.nextToken[3],b.source.end.column=this.nextToken[3],b.source.end.line=this.nextToken[2],b.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?b.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?b.value=this.currToken[1]:this.currToken[0]==="space"&&(b.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(b)},E.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var b=new a.default;this.current.parent.append(b),this.current=b,this.position++;},E.prototype.comment=function(){var b=new v.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(b),this.position++;},E.prototype.error=function(b){throw new this.input.error(b)},E.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},E.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},E.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},E.prototype.namespace=function(){var b=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(b);if(this.nextToken[0]==="*")return this.position++,this.universal(b)},E.prototype.nesting=function(){this.newNode(new j.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++;},E.prototype.parentheses=function(){var b=this.current.last;if(b&&b.type===K.PSEUDO){var L=new a.default,q=this.current;b.append(L),this.current=L;var T=1;for(this.position++;this.position<this.tokens.length&&T;)this.currToken[0]==="("&&T++,this.currToken[0]===")"&&T--,T?this.parse():(L.parent.source.end.line=this.currToken[2],L.parent.source.end.column=this.currToken[3],this.position++);T&&this.error("Expected closing parenthesis."),this.current=q;}else {var F=1;for(this.position++,b.value+="(";this.position<this.tokens.length&&F;)this.currToken[0]==="("&&F++,this.currToken[0]===")"&&F--,b.value+=this.parseParenthesisToken(this.currToken),this.position++;F&&this.error("Expected closing parenthesis.");}},E.prototype.pseudo=function(){for(var b=this,L="",q=this.currToken;this.currToken&&this.currToken[0]===":";)L+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var T=void 0;this.splitWord(!1,function(F,z){L+=F,T=new I.default({value:L,source:{start:{line:q[2],column:q[3]},end:{line:b.currToken[4],column:b.currToken[5]}},sourceIndex:q[4]}),b.newNode(T),z>1&&b.nextToken&&b.nextToken[0]==="("&&b.error("Misplaced parenthesis.");});}else this.error('Unexpected "'+this.currToken[0]+'" found.');},E.prototype.space=function(){var b=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(b[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(b[1]),this.position++):this.combinator();},E.prototype.string=function(){var b=this.currToken;this.newNode(new x.default({value:this.currToken[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++;},E.prototype.universal=function(b){var L=this.nextToken;if(L&&L[1]==="|")return this.position++,this.namespace();this.newNode(new D.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),b),this.position++;},E.prototype.splitWord=function(b,L){for(var q=this,T=this.nextToken,F=this.currToken[1];T&&T[0]==="word";){this.position++;var z=this.currToken[1];if(F+=z,z.lastIndexOf("\\")===z.length-1){var ee=this.nextToken;ee&&ee[0]==="space"&&(F+=this.parseSpace(ee[1]," "),this.position++);}T=this.nextToken;}var te=(0, l.default)(F,"."),ue=(0, l.default)(F,"#"),le=(0, l.default)(F,"#{");le.length&&(ue=ue.filter(function(ne){return !~le.indexOf(ne)}));var re=(0, R.default)((0, m.default)((0, o.default)([[0],te,ue])));re.forEach(function(ne,oe){var ie=re[oe+1]||F.length,ce=F.slice(ne,ie);if(oe===0&&L)return L.call(q,ce,re.length);var fe=void 0;~te.indexOf(ne)?fe=new f.default({value:ce.slice(1),source:{start:{line:q.currToken[2],column:q.currToken[3]+ne},end:{line:q.currToken[4],column:q.currToken[3]+(ie-1)}},sourceIndex:q.currToken[6]+re[oe]}):~ue.indexOf(ne)?fe=new w.default({value:ce.slice(1),source:{start:{line:q.currToken[2],column:q.currToken[3]+ne},end:{line:q.currToken[4],column:q.currToken[3]+(ie-1)}},sourceIndex:q.currToken[6]+re[oe]}):fe=new _.default({value:ce,source:{start:{line:q.currToken[2],column:q.currToken[3]+ne},end:{line:q.currToken[4],column:q.currToken[3]+(ie-1)}},sourceIndex:q.currToken[6]+re[oe]}),q.newNode(fe,b);}),this.position++;},E.prototype.word=function(b){var L=this.nextToken;return L&&L[1]==="|"?(this.position++,this.namespace()):this.splitWord(b)},E.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},E.prototype.parse=function(b){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":b&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},E.prototype.parseNamespace=function(b){if(this.lossy&&typeof b=="string"){var L=b.trim();return L.length?L:!0}return b},E.prototype.parseSpace=function(b,L){return this.lossy?L||"":b},E.prototype.parseValue=function(b){return this.lossy&&b&&typeof b=="string"?b.trim():b},E.prototype.parseParenthesisToken=function(b){return this.lossy?b[0]==="space"?this.parseSpace(b[1]," "):this.parseValue(b[1]):b[1]},E.prototype.newNode=function(b,L){return L&&(b.namespace=this.parseNamespace(L)),this.spaces&&(b.spaces.before=this.spaces,this.spaces=""),this.current.append(b)},i(E,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),E}();e.default=G,n.exports=e.default;}}),bf=P({"node_modules/postcss-selector-parser/dist/processor.js"(e,n){A(),e.__esModule=!0;var i=function(){function m(c,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(c,a.key,a);}}return function(c,t,r){return t&&m(c.prototype,t),r&&m(c,r),c}}(),u=_f(),o=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function l(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")}var p=function(){function m(c){return l(this,m),this.func=c||function(){},this}return m.prototype.process=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=new o.default({css:t,error:function(f){throw new Error(f)},options:r});return this.res=a,this.func(a),this},i(m,[{key:"result",get:function(){return String(this.res)}}]),m}();e.default=p,n.exports=e.default;}}),xf=P({"node_modules/postcss-selector-parser/dist/index.js"(e,n){A(),e.__esModule=!0;var i=bf(),u=O(i),o=Go(),h=O(o),l=Bo(),p=O(l),m=Jo(),c=O(m),t=Fo(),r=O(t),a=Uo(),s=O(a),f=Ko(),g=O(f),v=Vo(),y=O(v),w=Lo(),d=O(w),_=zo(),k=O(_),x=Wo(),N=O(x),I=$o(),W=O(I),$=Ho(),H=O($),D=se(),V=B(D);function B(C){if(C&&C.__esModule)return C;var R={};if(C!=null)for(var X in C)Object.prototype.hasOwnProperty.call(C,X)&&(R[X]=C[X]);return R.default=C,R}function O(C){return C&&C.__esModule?C:{default:C}}var j=function(R){return new u.default(R)};j.attribute=function(C){return new h.default(C)},j.className=function(C){return new p.default(C)},j.combinator=function(C){return new c.default(C)},j.comment=function(C){return new r.default(C)},j.id=function(C){return new s.default(C)},j.nesting=function(C){return new g.default(C)},j.pseudo=function(C){return new y.default(C)},j.root=function(C){return new d.default(C)},j.selector=function(C){return new k.default(C)},j.string=function(C){return new N.default(C)},j.tag=function(C){return new W.default(C)},j.universal=function(C){return new H.default(C)},Object.keys(V).forEach(function(C){C!=="__esModule"&&(j[C]=V[C]);}),e.default=j,n.exports=e.default;}}),Qo=P({"node_modules/postcss-media-query-parser/dist/nodes/Node.js"(e){A(),Object.defineProperty(e,"__esModule",{value:!0});function n(i){this.after=i.after,this.before=i.before,this.type=i.type,this.value=i.value,this.sourceIndex=i.sourceIndex;}e.default=n;}}),Yo=P({"node_modules/postcss-media-query-parser/dist/nodes/Container.js"(e){A(),Object.defineProperty(e,"__esModule",{value:!0});var n=Qo(),i=u(n);function u(h){return h&&h.__esModule?h:{default:h}}function o(h){var l=this;this.constructor(h),this.nodes=h.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(p){p.parent=l;});}o.prototype=Object.create(i.default.prototype),o.constructor=i.default,o.prototype.walk=function(l,p){for(var m=typeof l=="string"||l instanceof RegExp,c=m?p:l,t=typeof l=="string"?new RegExp(l):l,r=0;r<this.nodes.length;r++){var a=this.nodes[r],s=m?t.test(a.type):!0;if(s&&c&&c(a,r,this.nodes)===!1||a.nodes&&a.walk(l,p)===!1)return !1}return !0},o.prototype.each=function(){for(var l=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],p=0;p<this.nodes.length;p++){var m=this.nodes[p];if(l(m,p,this.nodes)===!1)return !1}return !0},e.default=o;}}),Sf=P({"node_modules/postcss-media-query-parser/dist/parsers.js"(e){A(),Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=l,e.parseMediaQuery=p,e.parseMediaList=m;var n=Qo(),i=h(n),u=Yo(),o=h(u);function h(c){return c&&c.__esModule?c:{default:c}}function l(c){var t=arguments.length<=1||arguments[1]===void 0?0:arguments[1],r=[{mode:"normal",character:null}],a=[],s=0,f="",g=null,v=null,y=t,w=c;c[0]==="("&&c[c.length-1]===")"&&(w=c.substring(1,c.length-1),y++);for(var d=0;d<w.length;d++){var _=w[d];if((_==="'"||_==='"')&&(r[s].isCalculationEnabled===!0?(r.push({mode:"string",isCalculationEnabled:!1,character:_}),s++):r[s].mode==="string"&&r[s].character===_&&w[d-1]!=="\\"&&(r.pop(),s--)),_==="{"?(r.push({mode:"interpolation",isCalculationEnabled:!0}),s++):_==="}"&&(r.pop(),s--),r[s].mode==="normal"&&_===":"){var k=w.substring(d+1);v={type:"value",before:/^(\s*)/.exec(k)[1],after:/(\s*)$/.exec(k)[1],value:k.trim()},v.sourceIndex=v.before.length+d+1+y,g={type:"colon",sourceIndex:d+y,after:v.before,value:":"};break}f+=_;}return f={type:"media-feature",before:/^(\s*)/.exec(f)[1],after:/(\s*)$/.exec(f)[1],value:f.trim()},f.sourceIndex=f.before.length+y,a.push(f),g!==null&&(g.before=f.after,a.push(g)),v!==null&&a.push(v),a}function p(c){var t=arguments.length<=1||arguments[1]===void 0?0:arguments[1],r=[],a=0,s=!1,f=void 0;function g(){return {before:"",after:"",value:""}}f=g();for(var v=0;v<c.length;v++){var y=c[v];s?(f.value+=y,(y==="{"||y==="(")&&a++,(y===")"||y==="}")&&a--):y.search(/\s/)!==-1?f.before+=y:(y==="("&&(f.type="media-feature-expression",a++),f.value=y,f.sourceIndex=t+v,s=!0),s&&a===0&&(y===")"||v===c.length-1||c[v+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(f.value)!==-1&&(f.type="keyword"),f.type==="media-feature-expression"&&(f.nodes=l(f.value,f.sourceIndex)),r.push(Array.isArray(f.nodes)?new o.default(f):new i.default(f)),f=g(),s=!1);}for(var w=0;w<r.length;w++)if(f=r[w],w>0&&(r[w-1].after=f.before),f.type===void 0){if(w>0){if(r[w-1].type==="media-feature-expression"){f.type="keyword";continue}if(r[w-1].value==="not"||r[w-1].value==="only"){f.type="media-type";continue}if(r[w-1].value==="and"){f.type="media-feature-expression";continue}r[w-1].type==="media-type"&&(r[w+1]?f.type=r[w+1].type==="media-feature-expression"?"keyword":"media-feature-expression":f.type="media-feature-expression");}if(w===0){if(!r[w+1]){f.type="media-type";continue}if(r[w+1]&&(r[w+1].type==="media-feature-expression"||r[w+1].type==="keyword")){f.type="media-type";continue}if(r[w+2]){if(r[w+2].type==="media-feature-expression"){f.type="media-type",r[w+1].type="keyword";continue}if(r[w+2].type==="keyword"){f.type="keyword",r[w+1].type="media-type";continue}}if(r[w+3]&&r[w+3].type==="media-feature-expression"){f.type="keyword",r[w+1].type="media-type",r[w+2].type="keyword";continue}}}return r}function m(c){var t=[],r=0,a=0,s=/^(\s*)url\s*\(/.exec(c);if(s!==null){for(var f=s[0].length,g=1;g>0;){var v=c[f];v==="("&&g++,v===")"&&g--,f++;}t.unshift(new i.default({type:"url",value:c.substring(0,f).trim(),sourceIndex:s[1].length,before:s[1],after:/^(\s*)/.exec(c.substring(f))[1]})),r=f;}for(var y=r;y<c.length;y++){var w=c[y];if(w==="("&&a++,w===")"&&a--,a===0&&w===","){var d=c.substring(r,y),_=/^(\s*)/.exec(d)[1];t.push(new o.default({type:"media-query",value:d.trim(),sourceIndex:r+_.length,nodes:p(d,r),before:_,after:/(\s*)$/.exec(d)[1]})),r=y+1;}}var k=c.substring(r),x=/^(\s*)/.exec(k)[1];return t.push(new o.default({type:"media-query",value:k.trim(),sourceIndex:r+x.length,nodes:p(k,r),before:x,after:/(\s*)$/.exec(k)[1]})),t}}}),kf=P({"node_modules/postcss-media-query-parser/dist/index.js"(e){A(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var n=Yo(),i=o(n),u=Sf();function o(l){return l&&l.__esModule?l:{default:l}}function h(l){return new i.default({nodes:(0, u.parseMediaList)(l),type:"media-query-list",value:l.trim()})}}}),Xo={};At(Xo,{basename:()=>na,default:()=>sa,delimiter:()=>kt,dirname:()=>ta,extname:()=>ia,isAbsolute:()=>zt,join:()=>ea,normalize:()=>Lt,relative:()=>ra,resolve:()=>yr,sep:()=>St});function Zo(e,n){for(var i=0,u=e.length-1;u>=0;u--){var o=e[u];o==="."?e.splice(u,1):o===".."?(e.splice(u,1),i++):i&&(e.splice(u,1),i--);}if(n)for(;i--;i)e.unshift("..");return e}function yr(){for(var e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var u=i>=0?arguments[i]:"/";if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!u)continue;e=u+"/"+e,n=u.charAt(0)==="/";}return e=Zo(Bt(e.split("/"),function(o){return !!o}),!n).join("/"),(n?"/":"")+e||"."}function Lt(e){var n=zt(e),i=oa(e,-1)==="/";return e=Zo(Bt(e.split("/"),function(u){return !!u}),!n).join("/"),!e&&!n&&(e="."),e&&i&&(e+="/"),(n?"/":"")+e}function zt(e){return e.charAt(0)==="/"}function ea(){var e=Array.prototype.slice.call(arguments,0);return Lt(Bt(e,function(n,i){if(typeof n!="string")throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))}function ra(e,n){e=yr(e).substr(1),n=yr(n).substr(1);function i(c){for(var t=0;t<c.length&&c[t]==="";t++);for(var r=c.length-1;r>=0&&c[r]==="";r--);return t>r?[]:c.slice(t,r-t+1)}for(var u=i(e.split("/")),o=i(n.split("/")),h=Math.min(u.length,o.length),l=h,p=0;p<h;p++)if(u[p]!==o[p]){l=p;break}for(var m=[],p=l;p<u.length;p++)m.push("..");return m=m.concat(o.slice(l)),m.join("/")}function ta(e){var n=br(e),i=n[0],u=n[1];return !i&&!u?".":(u&&(u=u.substr(0,u.length-1)),i+u)}function na(e,n){var i=br(e)[2];return n&&i.substr(-1*n.length)===n&&(i=i.substr(0,i.length-n.length)),i}function ia(e){return br(e)[3]}function Bt(e,n){if(e.filter)return e.filter(n);for(var i=[],u=0;u<e.length;u++)n(e[u],u,e)&&i.push(e[u]);return i}var Fs,br,St,kt,sa,oa,Of=Le({"node-modules-polyfills:path"(){A(),Fs=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,br=function(e){return Fs.exec(e).slice(1)},St="/",kt=":",sa={extname:ia,basename:na,dirname:ta,sep:St,delimiter:kt,relative:ra,join:ea,isAbsolute:zt,normalize:Lt,resolve:yr},oa="ab".substr(-1)==="b"?function(e,n,i){return e.substr(n,i)}:function(e,n,i){return n<0&&(n=e.length+n),e.substr(n,i)};}}),Tf=P({"node-modules-polyfills-commonjs:path"(e,n){A();var i=(Of(),Pt(Xo));if(i&&i.default){n.exports=i.default;for(let u in i)n.exports[u]=i[u];}else i&&(n.exports=i);}}),Ef=P({"node_modules/picocolors/picocolors.browser.js"(e,n){A();var i=String,u=function(){return {isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i}};n.exports=u(),n.exports.createColors=u;}}),qf=P({"(disabled):node_modules/postcss/lib/terminal-highlight"(){A();}}),aa=P({"node_modules/postcss/lib/css-syntax-error.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=o(Ef()),u=o(qf());function o(g){return g&&g.__esModule?g:{default:g}}function h(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function l(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,g.__proto__=v;}function p(g){var v=typeof Map=="function"?new Map:void 0;return p=function(w){if(w===null||!t(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof v<"u"){if(v.has(w))return v.get(w);v.set(w,d);}function d(){return m(w,arguments,a(this).constructor)}return d.prototype=Object.create(w.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),r(d,w)},p(g)}function m(g,v,y){return c()?m=Reflect.construct:m=function(d,_,k){var x=[null];x.push.apply(x,_);var N=Function.bind.apply(d,x),I=new N;return k&&r(I,k.prototype),I},m.apply(null,arguments)}function c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return !1}}function t(g){return Function.toString.call(g).indexOf("[native code]")!==-1}function r(g,v){return r=Object.setPrototypeOf||function(w,d){return w.__proto__=d,w},r(g,v)}function a(g){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},a(g)}var s=function(g){l(v,g);function v(w,d,_,k,x,N){var I;return I=g.call(this,w)||this,I.name="CssSyntaxError",I.reason=w,x&&(I.file=x),k&&(I.source=k),N&&(I.plugin=N),typeof d<"u"&&typeof _<"u"&&(I.line=d,I.column=_),I.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(h(I),v),I}var y=v.prototype;return y.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason;},y.showSourceCode=function(d){var _=this;if(!this.source)return "";var k=this.source;u.default&&(typeof d>"u"&&(d=i.default.isColorSupported),d&&(k=(0, u.default)(k)));var x=k.split(/\r?\n/),N=Math.max(this.line-3,0),I=Math.min(this.line+2,x.length),W=String(I).length;function $(D){return d&&i.default.red?i.default.red(i.default.bold(D)):D}function H(D){return d&&i.default.gray?i.default.gray(D):D}return x.slice(N,I).map(function(D,V){var B=N+1+V,O=" "+(" "+B).slice(-W)+" | ";if(B===_.line){var j=H(O.replace(/\d/g," "))+D.slice(0,_.column-1).replace(/[^\t]/g," ");return $(">")+H(O)+D+`
|
|
513
|
+
`+j+$("^")}return " "+H(O)+D}).join(`
|
|
514
|
+
`)},y.toString=function(){var d=this.showSourceCode();return d&&(d=`
|
|
515
|
+
|
|
516
|
+
`+d+`
|
|
517
|
+
`),this.name+": "+this.message+d},v}(p(Error)),f=s;e.default=f,n.exports=e.default;}}),Af=P({"node_modules/postcss/lib/previous-map.js"(e,n){A(),n.exports=class{};}}),xr=P({"node_modules/postcss/lib/input.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=h(Tf()),u=h(aa()),o=h(Af());function h(r){return r&&r.__esModule?r:{default:r}}function l(r,a){for(var s=0;s<a.length;s++){var f=a[s];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,f.key,f);}}function p(r,a,s){return a&&l(r.prototype,a),s&&l(r,s),r}var m=0,c=function(){function r(s,f){if(f===void 0&&(f={}),s===null||typeof s>"u"||typeof s=="object"&&!s.toString)throw new Error("PostCSS received "+s+" instead of CSS string");this.css=s.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,f.from&&(/^\w+:\/\//.test(f.from)||i.default.isAbsolute(f.from)?this.file=f.from:this.file=i.default.resolve(f.from));var g=new o.default(this.css,f);if(g.text){this.map=g;var v=g.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v));}this.file||(m+=1,this.id="<input css "+m+">"),this.map&&(this.map.file=this.from);}var a=r.prototype;return a.error=function(f,g,v,y){y===void 0&&(y={});var w,d=this.origin(g,v);return d?w=new u.default(f,d.line,d.column,d.source,d.file,y.plugin):w=new u.default(f,g,v,this.css,this.file,y.plugin),w.input={line:g,column:v,source:this.css},this.file&&(w.input.file=this.file),w},a.origin=function(f,g){if(!this.map)return !1;var v=this.map.consumer(),y=v.originalPositionFor({line:f,column:g});if(!y.source)return !1;var w={file:this.mapResolve(y.source),line:y.line,column:y.column},d=v.sourceContentFor(y.source);return d&&(w.source=d),w},a.mapResolve=function(f){return /^\w+:\/\//.test(f)?f:i.default.resolve(this.map.consumer().sourceRoot||".",f)},p(r,[{key:"from",get:function(){return this.file||this.id}}]),r}(),t=c;e.default=t,n.exports=e.default;}}),Sr=P({"node_modules/postcss/lib/stringifier.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i={colon:": ",indent:" ",beforeDecl:`
|
|
518
|
+
`,beforeRule:`
|
|
519
|
+
`,beforeOpen:" ",beforeClose:`
|
|
520
|
+
`,beforeComment:`
|
|
521
|
+
`,after:`
|
|
522
|
+
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function u(l){return l[0].toUpperCase()+l.slice(1)}var o=function(){function l(m){this.builder=m;}var p=l.prototype;return p.stringify=function(c,t){this[c.type](c,t);},p.root=function(c){this.body(c),c.raws.after&&this.builder(c.raws.after);},p.comment=function(c){var t=this.raw(c,"left","commentLeft"),r=this.raw(c,"right","commentRight");this.builder("/*"+t+c.text+r+"*/",c);},p.decl=function(c,t){var r=this.raw(c,"between","colon"),a=c.prop+r+this.rawValue(c,"value");c.important&&(a+=c.raws.important||" !important"),t&&(a+=";"),this.builder(a,c);},p.rule=function(c){this.block(c,this.rawValue(c,"selector")),c.raws.ownSemicolon&&this.builder(c.raws.ownSemicolon,c,"end");},p.atrule=function(c,t){var r="@"+c.name,a=c.params?this.rawValue(c,"params"):"";if(typeof c.raws.afterName<"u"?r+=c.raws.afterName:a&&(r+=" "),c.nodes)this.block(c,r+a);else {var s=(c.raws.between||"")+(t?";":"");this.builder(r+a+s,c);}},p.body=function(c){for(var t=c.nodes.length-1;t>0&&c.nodes[t].type==="comment";)t-=1;for(var r=this.raw(c,"semicolon"),a=0;a<c.nodes.length;a++){var s=c.nodes[a],f=this.raw(s,"before");f&&this.builder(f),this.stringify(s,t!==a||r);}},p.block=function(c,t){var r=this.raw(c,"between","beforeOpen");this.builder(t+r+"{",c,"start");var a;c.nodes&&c.nodes.length?(this.body(c),a=this.raw(c,"after")):a=this.raw(c,"after","emptyBody"),a&&this.builder(a),this.builder("}",c,"end");},p.raw=function(c,t,r){var a;if(r||(r=t),t&&(a=c.raws[t],typeof a<"u"))return a;var s=c.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===c))return "";if(!s)return i[r];var f=c.root();if(f.rawCache||(f.rawCache={}),typeof f.rawCache[r]<"u")return f.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(c,r);var g="raw"+u(r);return this[g]?a=this[g](f,c):f.walk(function(v){if(a=v.raws[t],typeof a<"u")return !1}),typeof a>"u"&&(a=i[r]),f.rawCache[r]=a,a},p.rawSemicolon=function(c){var t;return c.walk(function(r){if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return !1}),t},p.rawEmptyBody=function(c){var t;return c.walk(function(r){if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return !1}),t},p.rawIndent=function(c){if(c.raws.indent)return c.raws.indent;var t;return c.walk(function(r){var a=r.parent;if(a&&a!==c&&a.parent&&a.parent===c&&typeof r.raws.before<"u"){var s=r.raws.before.split(`
|
|
523
|
+
`);return t=s[s.length-1],t=t.replace(/[^\s]/g,""),!1}}),t},p.rawBeforeComment=function(c,t){var r;return c.walkComments(function(a){if(typeof a.raws.before<"u")return r=a.raws.before,r.indexOf(`
|
|
524
|
+
`)!==-1&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/[^\s]/g,"")),r},p.rawBeforeDecl=function(c,t){var r;return c.walkDecls(function(a){if(typeof a.raws.before<"u")return r=a.raws.before,r.indexOf(`
|
|
525
|
+
`)!==-1&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/[^\s]/g,"")),r},p.rawBeforeRule=function(c){var t;return c.walk(function(r){if(r.nodes&&(r.parent!==c||c.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.indexOf(`
|
|
526
|
+
`)!==-1&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/[^\s]/g,"")),t},p.rawBeforeClose=function(c){var t;return c.walk(function(r){if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.indexOf(`
|
|
527
|
+
`)!==-1&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/[^\s]/g,"")),t},p.rawBeforeOpen=function(c){var t;return c.walk(function(r){if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return !1}),t},p.rawColon=function(c){var t;return c.walkDecls(function(r){if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t},p.beforeAfter=function(c,t){var r;c.type==="decl"?r=this.raw(c,null,"beforeDecl"):c.type==="comment"?r=this.raw(c,null,"beforeComment"):t==="before"?r=this.raw(c,null,"beforeRule"):r=this.raw(c,null,"beforeClose");for(var a=c.parent,s=0;a&&a.type!=="root";)s+=1,a=a.parent;if(r.indexOf(`
|
|
528
|
+
`)!==-1){var f=this.raw(c,null,"indent");if(f.length)for(var g=0;g<s;g++)r+=f;}return r},p.rawValue=function(c,t){var r=c[t],a=c.raws[t];return a&&a.value===r?a.raw:r},l}(),h=o;e.default=h,n.exports=e.default;}}),ua=P({"node_modules/postcss/lib/stringify.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=u(Sr());function u(l){return l&&l.__esModule?l:{default:l}}function o(l,p){var m=new i.default(p);m.stringify(l);}var h=o;e.default=h,n.exports=e.default;}}),Ft=P({"node_modules/postcss/lib/node.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=h(aa()),u=h(Sr()),o=h(ua());function h(c){return c&&c.__esModule?c:{default:c}}function l(c,t){var r=new c.constructor;for(var a in c)if(c.hasOwnProperty(a)){var s=c[a],f=typeof s;a==="parent"&&f==="object"?t&&(r[a]=t):a==="source"?r[a]=s:s instanceof Array?r[a]=s.map(function(g){return l(g,r)}):(f==="object"&&s!==null&&(s=l(s)),r[a]=s);}return r}var p=function(){function c(r){r===void 0&&(r={}),this.raws={};for(var a in r)this[a]=r[a];}var t=c.prototype;return t.error=function(a,s){if(s===void 0&&(s={}),this.source){var f=this.positionBy(s);return this.source.input.error(a,f.line,f.column,s)}return new i.default(a)},t.warn=function(a,s,f){var g={node:this};for(var v in f)g[v]=f[v];return a.warn(s,g)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.toString=function(a){a===void 0&&(a=o.default),a.stringify&&(a=a.stringify);var s="";return a(this,function(f){s+=f;}),s},t.clone=function(a){a===void 0&&(a={});var s=l(this);for(var f in a)s[f]=a[f];return s},t.cloneBefore=function(a){a===void 0&&(a={});var s=this.clone(a);return this.parent.insertBefore(this,s),s},t.cloneAfter=function(a){a===void 0&&(a={});var s=this.clone(a);return this.parent.insertAfter(this,s),s},t.replaceWith=function(){if(this.parent){for(var a=arguments.length,s=new Array(a),f=0;f<a;f++)s[f]=arguments[f];for(var g=0,v=s;g<v.length;g++){var y=v[g];this.parent.insertBefore(this,y);}this.remove();}return this},t.next=function(){if(this.parent){var a=this.parent.index(this);return this.parent.nodes[a+1]}},t.prev=function(){if(this.parent){var a=this.parent.index(this);return this.parent.nodes[a-1]}},t.before=function(a){return this.parent.insertBefore(this,a),this},t.after=function(a){return this.parent.insertAfter(this,a),this},t.toJSON=function(){var a={};for(var s in this)if(this.hasOwnProperty(s)&&s!=="parent"){var f=this[s];f instanceof Array?a[s]=f.map(function(g){return typeof g=="object"&&g.toJSON?g.toJSON():g}):typeof f=="object"&&f.toJSON?a[s]=f.toJSON():a[s]=f;}return a},t.raw=function(a,s){var f=new u.default;return f.raw(this,a,s)},t.root=function(){for(var a=this;a.parent;)a=a.parent;return a},t.cleanRaws=function(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between;},t.positionInside=function(a){for(var s=this.toString(),f=this.source.start.column,g=this.source.start.line,v=0;v<a;v++)s[v]===`
|
|
529
|
+
`?(f=1,g+=1):f+=1;return {line:g,column:f}},t.positionBy=function(a){var s=this.source.start;if(a.index)s=this.positionInside(a.index);else if(a.word){var f=this.toString().indexOf(a.word);f!==-1&&(s=this.positionInside(f));}return s},c}(),m=p;e.default=m,n.exports=e.default;}}),kr=P({"node_modules/postcss/lib/comment.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=u(Ft());function u(p){return p&&p.__esModule?p:{default:p}}function o(p,m){p.prototype=Object.create(m.prototype),p.prototype.constructor=p,p.__proto__=m;}var h=function(p){o(m,p);function m(c){var t;return t=p.call(this,c)||this,t.type="comment",t}return m}(i.default),l=h;e.default=l,n.exports=e.default;}}),ca=P({"node_modules/postcss/lib/declaration.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=u(Ft());function u(p){return p&&p.__esModule?p:{default:p}}function o(p,m){p.prototype=Object.create(m.prototype),p.prototype.constructor=p,p.__proto__=m;}var h=function(p){o(m,p);function m(c){var t;return t=p.call(this,c)||this,t.type="decl",t}return m}(i.default),l=h;e.default=l,n.exports=e.default;}}),Ut=P({"node_modules/postcss/lib/tokenize.js"(e,n){A(),e.__esModule=!0,e.default=W;var i="'".charCodeAt(0),u='"'.charCodeAt(0),o="\\".charCodeAt(0),h="/".charCodeAt(0),l=`
|
|
530
|
+
`.charCodeAt(0),p=" ".charCodeAt(0),m="\f".charCodeAt(0),c=" ".charCodeAt(0),t="\r".charCodeAt(0),r="[".charCodeAt(0),a="]".charCodeAt(0),s="(".charCodeAt(0),f=")".charCodeAt(0),g="{".charCodeAt(0),v="}".charCodeAt(0),y=";".charCodeAt(0),w="*".charCodeAt(0),d=":".charCodeAt(0),_="@".charCodeAt(0),k=/[ \n\t\r\f{}()'"\\;/[\]#]/g,x=/[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g,N=/.[\\/("'\n]/,I=/[a-f0-9]/i;function W($,H){H===void 0&&(H={});var D=$.css.valueOf(),V=H.ignoreErrors,B,O,j,C,R,X,Z,Q,K,J,M,Y,G,E,S=D.length,b=-1,L=1,q=0,T=[],F=[];function z(){return q}function ee(re){throw $.error("Unclosed "+re,L,q-b)}function te(){return F.length===0&&q>=S}function ue(re){if(F.length)return F.pop();if(!(q>=S)){var ne=re?re.ignoreUnclosed:!1;switch(B=D.charCodeAt(q),(B===l||B===m||B===t&&D.charCodeAt(q+1)!==l)&&(b=q,L+=1),B){case l:case p:case c:case t:case m:O=q;do O+=1,B=D.charCodeAt(O),B===l&&(b=O,L+=1);while(B===p||B===l||B===c||B===t||B===m);E=["space",D.slice(q,O)],q=O-1;break;case r:case a:case g:case v:case d:case y:case f:var oe=String.fromCharCode(B);E=[oe,oe,L,q-b];break;case s:if(Y=T.length?T.pop()[1]:"",G=D.charCodeAt(q+1),Y==="url"&&G!==i&&G!==u&&G!==p&&G!==l&&G!==c&&G!==m&&G!==t){O=q;do{if(J=!1,O=D.indexOf(")",O+1),O===-1)if(V||ne){O=q;break}else ee("bracket");for(M=O;D.charCodeAt(M-1)===o;)M-=1,J=!J;}while(J);E=["brackets",D.slice(q,O+1),L,q-b,L,O-b],q=O;}else O=D.indexOf(")",q+1),X=D.slice(q,O+1),O===-1||N.test(X)?E=["(","(",L,q-b]:(E=["brackets",X,L,q-b,L,O-b],q=O);break;case i:case u:j=B===i?"'":'"',O=q;do{if(J=!1,O=D.indexOf(j,O+1),O===-1)if(V||ne){O=q+1;break}else ee("string");for(M=O;D.charCodeAt(M-1)===o;)M-=1,J=!J;}while(J);X=D.slice(q,O+1),C=X.split(`
|
|
531
|
+
`),R=C.length-1,R>0?(Q=L+R,K=O-C[R].length):(Q=L,K=b),E=["string",D.slice(q,O+1),L,q-b,Q,O-K],b=K,L=Q,q=O;break;case _:k.lastIndex=q+1,k.test(D),k.lastIndex===0?O=D.length-1:O=k.lastIndex-2,E=["at-word",D.slice(q,O+1),L,q-b,L,O-b],q=O;break;case o:for(O=q,Z=!0;D.charCodeAt(O+1)===o;)O+=1,Z=!Z;if(B=D.charCodeAt(O+1),Z&&B!==h&&B!==p&&B!==l&&B!==c&&B!==t&&B!==m&&(O+=1,I.test(D.charAt(O)))){for(;I.test(D.charAt(O+1));)O+=1;D.charCodeAt(O+1)===p&&(O+=1);}E=["word",D.slice(q,O+1),L,q-b,L,O-b],q=O;break;default:B===h&&D.charCodeAt(q+1)===w?(O=D.indexOf("*/",q+2)+1,O===0&&(V||ne?O=D.length:ee("comment")),X=D.slice(q,O+1),C=X.split(`
|
|
532
|
+
`),R=C.length-1,R>0?(Q=L+R,K=O-C[R].length):(Q=L,K=b),E=["comment",X,L,q-b,Q,O-K],b=K,L=Q,q=O):(x.lastIndex=q+1,x.test(D),x.lastIndex===0?O=D.length-1:O=x.lastIndex-2,E=["word",D.slice(q,O+1),L,q-b,L,O-b],T.push(E),q=O);break}return q++,E}}function le(re){F.push(re);}return {back:le,nextToken:ue,endOfFile:te,position:z}}n.exports=e.default;}}),la=P({"node_modules/postcss/lib/parse.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=o($t()),u=o(xr());function o(p){return p&&p.__esModule?p:{default:p}}function h(p,m){var c=new u.default(p,m),t=new i.default(c);try{t.parse();}catch(r){throw r}return t.root}var l=h;e.default=l,n.exports=e.default;}}),Pf=P({"node_modules/postcss/lib/list.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i={split:function(h,l,p){for(var m=[],c="",t=!1,r=0,a=!1,s=!1,f=0;f<h.length;f++){var g=h[f];a?s?s=!1:g==="\\"?s=!0:g===a&&(a=!1):g==='"'||g==="'"?a=g:g==="("?r+=1:g===")"?r>0&&(r-=1):r===0&&l.indexOf(g)!==-1&&(t=!0),t?(c!==""&&m.push(c.trim()),c="",t=!1):c+=g;}return (p||c!=="")&&m.push(c.trim()),m},space:function(h){var l=[" ",`
|
|
533
|
+
`," "];return i.split(h,l)},comma:function(h){return i.split(h,[","],!0)}},u=i;e.default=u,n.exports=e.default;}}),fa=P({"node_modules/postcss/lib/rule.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=o(Or()),u=o(Pf());function o(t){return t&&t.__esModule?t:{default:t}}function h(t,r){for(var a=0;a<r.length;a++){var s=r[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s);}}function l(t,r,a){return r&&h(t.prototype,r),a&&h(t,a),t}function p(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;}var m=function(t){p(r,t);function r(a){var s;return s=t.call(this,a)||this,s.type="rule",s.nodes||(s.nodes=[]),s}return l(r,[{key:"selectors",get:function(){return u.default.comma(this.selector)},set:function(s){var f=this.selector?this.selector.match(/,\s*/):null,g=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(g);}}]),r}(i.default),c=m;e.default=c,n.exports=e.default;}}),Or=P({"node_modules/postcss/lib/container.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=h(ca()),u=h(kr()),o=h(Ft());function h(g){return g&&g.__esModule?g:{default:g}}function l(g,v){var y;if(typeof Symbol>"u"||g[Symbol.iterator]==null){if(Array.isArray(g)||(y=p(g))||v&&g&&typeof g.length=="number"){y&&(g=y);var w=0;return function(){return w>=g.length?{done:!0}:{done:!1,value:g[w++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
534
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return y=g[Symbol.iterator](),y.next.bind(y)}function p(g,v){if(g){if(typeof g=="string")return m(g,v);var y=Object.prototype.toString.call(g).slice(8,-1);if(y==="Object"&&g.constructor&&(y=g.constructor.name),y==="Map"||y==="Set")return Array.from(g);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return m(g,v)}}function m(g,v){(v==null||v>g.length)&&(v=g.length);for(var y=0,w=new Array(v);y<v;y++)w[y]=g[y];return w}function c(g,v){for(var y=0;y<v.length;y++){var w=v[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w);}}function t(g,v,y){return v&&c(g.prototype,v),y&&c(g,y),g}function r(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,g.__proto__=v;}function a(g){return g.map(function(v){return v.nodes&&(v.nodes=a(v.nodes)),delete v.source,v})}var s=function(g){r(v,g);function v(){return g.apply(this,arguments)||this}var y=v.prototype;return y.push=function(d){return d.parent=this,this.nodes.push(d),this},y.each=function(d){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var _=this.lastEach;if(this.indexes[_]=0,!!this.nodes){for(var k,x;this.indexes[_]<this.nodes.length&&(k=this.indexes[_],x=d(this.nodes[k],k),x!==!1);)this.indexes[_]+=1;return delete this.indexes[_],x}},y.walk=function(d){return this.each(function(_,k){var x;try{x=d(_,k);}catch(I){if(I.postcssNode=_,I.stack&&_.source&&/\n\s{4}at /.test(I.stack)){var N=_.source;I.stack=I.stack.replace(/\n\s{4}at /,"$&"+N.input.from+":"+N.start.line+":"+N.start.column+"$&");}throw I}return x!==!1&&_.walk&&(x=_.walk(d)),x})},y.walkDecls=function(d,_){return _?d instanceof RegExp?this.walk(function(k,x){if(k.type==="decl"&&d.test(k.prop))return _(k,x)}):this.walk(function(k,x){if(k.type==="decl"&&k.prop===d)return _(k,x)}):(_=d,this.walk(function(k,x){if(k.type==="decl")return _(k,x)}))},y.walkRules=function(d,_){return _?d instanceof RegExp?this.walk(function(k,x){if(k.type==="rule"&&d.test(k.selector))return _(k,x)}):this.walk(function(k,x){if(k.type==="rule"&&k.selector===d)return _(k,x)}):(_=d,this.walk(function(k,x){if(k.type==="rule")return _(k,x)}))},y.walkAtRules=function(d,_){return _?d instanceof RegExp?this.walk(function(k,x){if(k.type==="atrule"&&d.test(k.name))return _(k,x)}):this.walk(function(k,x){if(k.type==="atrule"&&k.name===d)return _(k,x)}):(_=d,this.walk(function(k,x){if(k.type==="atrule")return _(k,x)}))},y.walkComments=function(d){return this.walk(function(_,k){if(_.type==="comment")return d(_,k)})},y.append=function(){for(var d=arguments.length,_=new Array(d),k=0;k<d;k++)_[k]=arguments[k];for(var x=0,N=_;x<N.length;x++)for(var I=N[x],W=this.normalize(I,this.last),$=l(W),H;!(H=$()).done;){var D=H.value;this.nodes.push(D);}return this},y.prepend=function(){for(var d=arguments.length,_=new Array(d),k=0;k<d;k++)_[k]=arguments[k];_=_.reverse();for(var x=l(_),N;!(N=x()).done;){for(var I=N.value,W=this.normalize(I,this.first,"prepend").reverse(),$=l(W),H;!(H=$()).done;){var D=H.value;this.nodes.unshift(D);}for(var V in this.indexes)this.indexes[V]=this.indexes[V]+W.length;}return this},y.cleanRaws=function(d){if(g.prototype.cleanRaws.call(this,d),this.nodes)for(var _=l(this.nodes),k;!(k=_()).done;){var x=k.value;x.cleanRaws(d);}},y.insertBefore=function(d,_){d=this.index(d);for(var k=d===0?"prepend":!1,x=this.normalize(_,this.nodes[d],k).reverse(),N=l(x),I;!(I=N()).done;){var W=I.value;this.nodes.splice(d,0,W);}var $;for(var H in this.indexes)$=this.indexes[H],d<=$&&(this.indexes[H]=$+x.length);return this},y.insertAfter=function(d,_){d=this.index(d);for(var k=this.normalize(_,this.nodes[d]).reverse(),x=l(k),N;!(N=x()).done;){var I=N.value;this.nodes.splice(d+1,0,I);}var W;for(var $ in this.indexes)W=this.indexes[$],d<W&&(this.indexes[$]=W+k.length);return this},y.removeChild=function(d){d=this.index(d),this.nodes[d].parent=void 0,this.nodes.splice(d,1);var _;for(var k in this.indexes)_=this.indexes[k],_>=d&&(this.indexes[k]=_-1);return this},y.removeAll=function(){for(var d=l(this.nodes),_;!(_=d()).done;){var k=_.value;k.parent=void 0;}return this.nodes=[],this},y.replaceValues=function(d,_,k){return k||(k=_,_={}),this.walkDecls(function(x){_.props&&_.props.indexOf(x.prop)===-1||_.fast&&x.value.indexOf(_.fast)===-1||(x.value=x.value.replace(d,k));}),this},y.every=function(d){return this.nodes.every(d)},y.some=function(d){return this.nodes.some(d)},y.index=function(d){return typeof d=="number"?d:this.nodes.indexOf(d)},y.normalize=function(d,_){var k=this;if(typeof d=="string"){var x=la();d=a(x(d).nodes);}else if(Array.isArray(d)){d=d.slice(0);for(var N=l(d),I;!(I=N()).done;){var W=I.value;W.parent&&W.parent.removeChild(W,"ignore");}}else if(d.type==="root"){d=d.nodes.slice(0);for(var $=l(d),H;!(H=$()).done;){var D=H.value;D.parent&&D.parent.removeChild(D,"ignore");}}else if(d.type)d=[d];else if(d.prop){if(typeof d.value>"u")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new i.default(d)];}else if(d.selector){var V=fa();d=[new V(d)];}else if(d.name){var B=pa();d=[new B(d)];}else if(d.text)d=[new u.default(d)];else throw new Error("Unknown node type in node creation");var O=d.map(function(j){return j.parent&&j.parent.removeChild(j),typeof j.raws.before>"u"&&_&&typeof _.raws.before<"u"&&(j.raws.before=_.raws.before.replace(/[^\s]/g,"")),j.parent=k,j});return O},t(v,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]),v}(o.default),f=s;e.default=f,n.exports=e.default;}}),pa=P({"node_modules/postcss/lib/at-rule.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=u(Or());function u(p){return p&&p.__esModule?p:{default:p}}function o(p,m){p.prototype=Object.create(m.prototype),p.prototype.constructor=p,p.__proto__=m;}var h=function(p){o(m,p);function m(t){var r;return r=p.call(this,t)||this,r.type="atrule",r}var c=m.prototype;return c.append=function(){var r;this.nodes||(this.nodes=[]);for(var a=arguments.length,s=new Array(a),f=0;f<a;f++)s[f]=arguments[f];return (r=p.prototype.append).call.apply(r,[this].concat(s))},c.prepend=function(){var r;this.nodes||(this.nodes=[]);for(var a=arguments.length,s=new Array(a),f=0;f<a;f++)s[f]=arguments[f];return (r=p.prototype.prepend).call.apply(r,[this].concat(s))},m}(i.default),l=h;e.default=l,n.exports=e.default;}}),If=P({"node_modules/postcss/lib/map-generator.js"(e,n){A(),n.exports=class{generate(){}};}}),Rf=P({"node_modules/postcss/lib/warn-once.js"(e,n){A(),e.__esModule=!0,e.default=u;var i={};function u(o){i[o]||(i[o]=!0,typeof console<"u"&&console.warn&&console.warn(o));}n.exports=e.default;}}),Cf=P({"node_modules/postcss/lib/warning.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=function(){function o(l,p){if(p===void 0&&(p={}),this.type="warning",this.text=l,p.node&&p.node.source){var m=p.node.positionBy(p);this.line=m.line,this.column=m.column;}for(var c in p)this[c]=p[c];}var h=o.prototype;return h.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},o}(),u=i;e.default=u,n.exports=e.default;}}),Nf=P({"node_modules/postcss/lib/result.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=u(Cf());function u(m){return m&&m.__esModule?m:{default:m}}function o(m,c){for(var t=0;t<c.length;t++){var r=c[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(m,r.key,r);}}function h(m,c,t){return c&&o(m.prototype,c),t&&o(m,t),m}var l=function(){function m(t,r,a){this.processor=t,this.messages=[],this.root=r,this.opts=a,this.css=void 0,this.map=void 0;}var c=m.prototype;return c.toString=function(){return this.css},c.warn=function(r,a){a===void 0&&(a={}),a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);var s=new i.default(r,a);return this.messages.push(s),s},c.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},h(m,[{key:"content",get:function(){return this.css}}]),m}(),p=l;e.default=p,n.exports=e.default;}}),ha=P({"node_modules/postcss/lib/lazy-result.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=p(If()),u=p(ua());p(Rf());var h=p(Nf()),l=p(la());function p(v){return v&&v.__esModule?v:{default:v}}function m(v,y){var w;if(typeof Symbol>"u"||v[Symbol.iterator]==null){if(Array.isArray(v)||(w=c(v))||y&&v&&typeof v.length=="number"){w&&(v=w);var d=0;return function(){return d>=v.length?{done:!0}:{done:!1,value:v[d++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
535
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return w=v[Symbol.iterator](),w.next.bind(w)}function c(v,y){if(v){if(typeof v=="string")return t(v,y);var w=Object.prototype.toString.call(v).slice(8,-1);if(w==="Object"&&v.constructor&&(w=v.constructor.name),w==="Map"||w==="Set")return Array.from(v);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return t(v,y)}}function t(v,y){(y==null||y>v.length)&&(y=v.length);for(var w=0,d=new Array(y);w<y;w++)d[w]=v[w];return d}function r(v,y){for(var w=0;w<y.length;w++){var d=y[w];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(v,d.key,d);}}function a(v,y,w){return y&&r(v.prototype,y),w&&r(v,w),v}function s(v){return typeof v=="object"&&typeof v.then=="function"}var f=function(){function v(w,d,_){this.stringified=!1,this.processed=!1;var k;if(typeof d=="object"&&d!==null&&d.type==="root")k=d;else if(d instanceof v||d instanceof h.default)k=d.root,d.map&&(typeof _.map>"u"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=d.map);else {var x=l.default;_.syntax&&(x=_.syntax.parse),_.parser&&(x=_.parser),x.parse&&(x=x.parse);try{k=x(d,_);}catch(N){this.error=N;}}this.result=new h.default(w,k,_);}var y=v.prototype;return y.warnings=function(){return this.sync().warnings()},y.toString=function(){return this.css},y.then=function(d,_){return this.async().then(d,_)},y.catch=function(d){return this.async().catch(d)},y.finally=function(d){return this.async().then(d,d)},y.handleError=function(d,_){try{if(this.error=d,d.name==="CssSyntaxError"&&!d.plugin)d.plugin=_.postcssPlugin,d.setMessage();else if(_.postcssVersion&&!1)var k,x,N,I,W;}catch($){console&&console.error&&console.error($);}},y.asyncTick=function(d,_){var k=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,d();try{var x=this.processor.plugins[this.plugin],N=this.run(x);this.plugin+=1,s(N)?N.then(function(){k.asyncTick(d,_);}).catch(function(I){k.handleError(I,x),k.processed=!0,_(I);}):this.asyncTick(d,_);}catch(I){this.processed=!0,_(I);}},y.async=function(){var d=this;return this.processed?new Promise(function(_,k){d.error?k(d.error):_(d.stringify());}):this.processing?this.processing:(this.processing=new Promise(function(_,k){if(d.error)return k(d.error);d.plugin=0,d.asyncTick(_,k);}).then(function(){return d.processed=!0,d.stringify()}),this.processing)},y.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;for(var d=m(this.result.processor.plugins),_;!(_=d()).done;){var k=_.value,x=this.run(k);if(s(x))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},y.run=function(d){this.result.lastPlugin=d;try{return d(this.result.root,this.result)}catch(_){throw this.handleError(_,d),_}},y.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var d=this.result.opts,_=u.default;d.syntax&&(_=d.syntax.stringify),d.stringifier&&(_=d.stringifier),_.stringify&&(_=_.stringify);var k=new i.default(_,this.result.root,this.result.opts),x=k.generate();return this.result.css=x[0],this.result.map=x[1],this.result},a(v,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),v}(),g=f;e.default=g,n.exports=e.default;}}),jf=P({"node_modules/postcss/lib/processor.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=u(ha());function u(c){return c&&c.__esModule?c:{default:c}}function o(c,t){var r;if(typeof Symbol>"u"||c[Symbol.iterator]==null){if(Array.isArray(c)||(r=h(c))||t&&c&&typeof c.length=="number"){r&&(c=r);var a=0;return function(){return a>=c.length?{done:!0}:{done:!1,value:c[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
536
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return r=c[Symbol.iterator](),r.next.bind(r)}function h(c,t){if(c){if(typeof c=="string")return l(c,t);var r=Object.prototype.toString.call(c).slice(8,-1);if(r==="Object"&&c.constructor&&(r=c.constructor.name),r==="Map"||r==="Set")return Array.from(c);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(c,t)}}function l(c,t){(t==null||t>c.length)&&(t=c.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=c[r];return a}var p=function(){function c(r){r===void 0&&(r=[]),this.version="7.0.39",this.plugins=this.normalize(r);}var t=c.prototype;return t.use=function(a){return this.plugins=this.plugins.concat(this.normalize([a])),this},t.process=function(r){function a(s){return r.apply(this,arguments)}return a.toString=function(){return r.toString()},a}(function(r,a){return a===void 0&&(a={}),this.plugins.length===0&&(a.parser,a.stringifier),new i.default(this,r,a)}),t.normalize=function(a){for(var s=[],f=o(a),g;!(g=f()).done;){var v=g.value;if(v.postcss===!0){var y=v();throw new Error("PostCSS plugin "+y.postcssPlugin+` requires PostCSS 8.
|
|
537
|
+
Migration guide for end-users:
|
|
538
|
+
https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users`)}if(v.postcss&&(v=v.postcss),typeof v=="object"&&Array.isArray(v.plugins))s=s.concat(v.plugins);else if(typeof v=="function")s.push(v);else if(!(typeof v=="object"&&(v.parse||v.stringify)))throw typeof v=="object"&&v.postcssPlugin?new Error("PostCSS plugin "+v.postcssPlugin+` requires PostCSS 8.
|
|
539
|
+
Migration guide for end-users:
|
|
540
|
+
https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users`):new Error(v+" is not a PostCSS plugin")}return s},c}(),m=p;e.default=m,n.exports=e.default;}}),Mf=P({"node_modules/postcss/lib/root.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=u(Or());function u(t){return t&&t.__esModule?t:{default:t}}function o(t,r){var a;if(typeof Symbol>"u"||t[Symbol.iterator]==null){if(Array.isArray(t)||(a=h(t))||r&&t&&typeof t.length=="number"){a&&(t=a);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
541
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return a=t[Symbol.iterator](),a.next.bind(a)}function h(t,r){if(t){if(typeof t=="string")return l(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return l(t,r)}}function l(t,r){(r==null||r>t.length)&&(r=t.length);for(var a=0,s=new Array(r);a<r;a++)s[a]=t[a];return s}function p(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;}var m=function(t){p(r,t);function r(s){var f;return f=t.call(this,s)||this,f.type="root",f.nodes||(f.nodes=[]),f}var a=r.prototype;return a.removeChild=function(f,g){var v=this.index(f);return !g&&v===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[v].raws.before),t.prototype.removeChild.call(this,f)},a.normalize=function(f,g,v){var y=t.prototype.normalize.call(this,f);if(g){if(v==="prepend")this.nodes.length>1?g.raws.before=this.nodes[1].raws.before:delete g.raws.before;else if(this.first!==g)for(var w=o(y),d;!(d=w()).done;){var _=d.value;_.raws.before=g.raws.before;}}return y},a.toResult=function(f){f===void 0&&(f={});var g=ha(),v=jf(),y=new g(new v,this,f);return y.stringify()},r}(i.default),c=m;e.default=c,n.exports=e.default;}}),$t=P({"node_modules/postcss/lib/parser.js"(e,n){A(),e.__esModule=!0,e.default=void 0;var i=m(ca()),u=m(Ut()),o=m(kr()),h=m(pa()),l=m(Mf()),p=m(fa());function m(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(a){this.input=a,this.root=new l.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{line:1,column:1}};}var r=t.prototype;return r.createTokenizer=function(){this.tokenizer=(0, u.default)(this.input);},r.parse=function(){for(var s;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile();},r.comment=function(s){var f=new o.default;this.init(f,s[2],s[3]),f.source.end={line:s[4],column:s[5]};var g=s[1].slice(2,-2);if(/^\s*$/.test(g))f.text="",f.raws.left=g,f.raws.right="";else {var v=g.match(/^(\s*)([^]*[^\s])(\s*)$/);f.text=v[2],f.raws.left=v[1],f.raws.right=v[3];}},r.emptyRule=function(s){var f=new p.default;this.init(f,s[2],s[3]),f.selector="",f.raws.between="",this.current=f;},r.other=function(s){for(var f=!1,g=null,v=!1,y=null,w=[],d=[],_=s;_;){if(g=_[0],d.push(_),g==="("||g==="[")y||(y=_),w.push(g==="("?")":"]");else if(w.length===0)if(g===";")if(v){this.decl(d);return}else break;else if(g==="{"){this.rule(d);return}else if(g==="}"){this.tokenizer.back(d.pop()),f=!0;break}else g===":"&&(v=!0);else g===w[w.length-1]&&(w.pop(),w.length===0&&(y=null));_=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(f=!0),w.length>0&&this.unclosedBracket(y),f&&v){for(;d.length&&(_=d[d.length-1][0],!(_!=="space"&&_!=="comment"));)this.tokenizer.back(d.pop());this.decl(d);}else this.unknownWord(d);},r.rule=function(s){s.pop();var f=new p.default;this.init(f,s[0][2],s[0][3]),f.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(f,"selector",s),this.current=f;},r.decl=function(s){var f=new i.default;this.init(f);var g=s[s.length-1];for(g[0]===";"&&(this.semicolon=!0,s.pop()),g[4]?f.source.end={line:g[4],column:g[5]}:f.source.end={line:g[2],column:g[3]};s[0][0]!=="word";)s.length===1&&this.unknownWord(s),f.raws.before+=s.shift()[1];for(f.source.start={line:s[0][2],column:s[0][3]},f.prop="";s.length;){var v=s[0][0];if(v===":"||v==="space"||v==="comment")break;f.prop+=s.shift()[1];}f.raws.between="";for(var y;s.length;)if(y=s.shift(),y[0]===":"){f.raws.between+=y[1];break}else y[0]==="word"&&/\w/.test(y[1])&&this.unknownWord([y]),f.raws.between+=y[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1)),f.raws.between+=this.spacesAndCommentsFromStart(s),this.precheckMissedSemicolon(s);for(var w=s.length-1;w>0;w--){if(y=s[w],y[1].toLowerCase()==="!important"){f.important=!0;var d=this.stringFrom(s,w);d=this.spacesFromEnd(s)+d,d!==" !important"&&(f.raws.important=d);break}else if(y[1].toLowerCase()==="important"){for(var _=s.slice(0),k="",x=w;x>0;x--){var N=_[x][0];if(k.trim().indexOf("!")===0&&N!=="space")break;k=_.pop()[1]+k;}k.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=k,s=_);}if(y[0]!=="space"&&y[0]!=="comment")break}this.raw(f,"value",s),f.value.indexOf(":")!==-1&&this.checkMissedSemicolon(s);},r.atrule=function(s){var f=new h.default;f.name=s[1].slice(1),f.name===""&&this.unnamedAtrule(f,s),this.init(f,s[2],s[3]);for(var g,v,y=!1,w=!1,d=[];!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),s[0]===";"){f.source.end={line:s[2],column:s[3]},this.semicolon=!0;break}else if(s[0]==="{"){w=!0;break}else if(s[0]==="}"){if(d.length>0){for(v=d.length-1,g=d[v];g&&g[0]==="space";)g=d[--v];g&&(f.source.end={line:g[4],column:g[5]});}this.end(s);break}else d.push(s);if(this.tokenizer.endOfFile()){y=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(f.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(f,"params",d),y&&(s=d[d.length-1],f.source.end={line:s[4],column:s[5]},this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),w&&(f.nodes=[],this.current=f);},r.end=function(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:s[2],column:s[3]},this.current=this.current.parent):this.unexpectedClose(s);},r.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;},r.freeSemicolon=function(s){if(this.spaces+=s[1],this.current.nodes){var f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="");}},r.init=function(s,f,g){this.current.push(s),s.source={start:{line:f,column:g},input:this.input},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1);},r.raw=function(s,f,g){for(var v,y,w=g.length,d="",_=!0,k,x,N=/^([.|#])?([\w])+/i,I=0;I<w;I+=1){if(v=g[I],y=v[0],y==="comment"&&s.type==="rule"){x=g[I-1],k=g[I+1],x[0]!=="space"&&k[0]!=="space"&&N.test(x[1])&&N.test(k[1])?d+=v[1]:_=!1;continue}y==="comment"||y==="space"&&I===w-1?_=!1:d+=v[1];}if(!_){var W=g.reduce(function($,H){return $+H[1]},"");s.raws[f]={value:d,raw:W};}s[f]=d;},r.spacesAndCommentsFromEnd=function(s){for(var f,g="";s.length&&(f=s[s.length-1][0],!(f!=="space"&&f!=="comment"));)g=s.pop()[1]+g;return g},r.spacesAndCommentsFromStart=function(s){for(var f,g="";s.length&&(f=s[0][0],!(f!=="space"&&f!=="comment"));)g+=s.shift()[1];return g},r.spacesFromEnd=function(s){for(var f,g="";s.length&&(f=s[s.length-1][0],f==="space");)g=s.pop()[1]+g;return g},r.stringFrom=function(s,f){for(var g="",v=f;v<s.length;v++)g+=s[v][1];return s.splice(f,s.length-f),g},r.colon=function(s){for(var f=0,g,v,y,w=0;w<s.length;w++){if(g=s[w],v=g[0],v==="("&&(f+=1),v===")"&&(f-=1),f===0&&v===":")if(!y)this.doubleColon(g);else {if(y[0]==="word"&&y[1]==="progid")continue;return w}y=g;}return !1},r.unclosedBracket=function(s){throw this.input.error("Unclosed bracket",s[2],s[3])},r.unknownWord=function(s){throw this.input.error("Unknown word",s[0][2],s[0][3])},r.unexpectedClose=function(s){throw this.input.error("Unexpected }",s[2],s[3])},r.unclosedBlock=function(){var s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)},r.doubleColon=function(s){throw this.input.error("Double colon",s[2],s[3])},r.unnamedAtrule=function(s,f){throw this.input.error("At-rule without name",f[2],f[3])},r.precheckMissedSemicolon=function(){},r.checkMissedSemicolon=function(s){var f=this.colon(s);if(f!==!1){for(var g=0,v,y=f-1;y>=0&&(v=s[y],!(v[0]!=="space"&&(g+=1,g===2)));y--);throw this.input.error("Missed semicolon",v[2],v[3])}},t}();e.default=c,n.exports=e.default;}}),Df=P({"node_modules/postcss-less/lib/nodes/inline-comment.js"(e,n){A();var i=Ut(),u=xr();n.exports={isInlineComment(o){if(o[0]==="word"&&o[1].slice(0,2)==="//"){let h=o,l=[],p;for(;o;){if(/\r?\n/.test(o[1])){if(/['"].*\r?\n/.test(o[1])){l.push(o[1].substring(0,o[1].indexOf(`
|
|
542
|
+
`)));let c=o[1].substring(o[1].indexOf(`
|
|
543
|
+
`));c+=this.input.css.valueOf().substring(this.tokenizer.position()),this.input=new u(c),this.tokenizer=i(this.input);}else this.tokenizer.back(o);break}l.push(o[1]),p=o,o=this.tokenizer.nextToken({ignoreUnclosed:!0});}let m=["comment",l.join(""),h[2],h[3],p[2],p[3]];return this.inlineComment(m),!0}else if(o[1]==="/"){let h=this.tokenizer.nextToken({ignoreUnclosed:!0});if(h[0]==="comment"&&/^\/\*/.test(h[1]))return h[0]="word",h[1]=h[1].slice(1),o[1]="//",this.tokenizer.back(h),n.exports.isInlineComment.bind(this)(o)}return !1}};}}),Lf=P({"node_modules/postcss-less/lib/nodes/interpolation.js"(e,n){A(),n.exports={interpolation(i){let u=i,o=[i],h=["word","{","}"];if(i=this.tokenizer.nextToken(),u[1].length>1||i[0]!=="{")return this.tokenizer.back(i),!1;for(;i&&h.includes(i[0]);)o.push(i),i=this.tokenizer.nextToken();let l=o.map(r=>r[1]);[u]=o;let p=o.pop(),m=[u[2],u[3]],c=[p[4]||p[2],p[5]||p[3]],t=["word",l.join("")].concat(m,c);return this.tokenizer.back(i),this.tokenizer.back(t),!0}};}}),zf=P({"node_modules/postcss-less/lib/nodes/mixin.js"(e,n){A();var i=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,u=/\.[0-9]/,o=h=>{let[,l]=h,[p]=l;return (p==="."||p==="#")&&i.test(l)===!1&&u.test(l)===!1};n.exports={isMixinToken:o};}}),Bf=P({"node_modules/postcss-less/lib/nodes/import.js"(e,n){A();var i=Ut(),u=/^url\((.+)\)/;n.exports=o=>{let{name:h,params:l=""}=o;if(h==="import"&&l.length){o.import=!0;let p=i({css:l});for(o.filename=l.replace(u,"$1");!p.endOfFile();){let[m,c]=p.nextToken();if(m==="word"&&c==="url")return;if(m==="brackets"){o.options=c,o.filename=l.replace(c,"").trim();break}}}};}}),Ff=P({"node_modules/postcss-less/lib/nodes/variable.js"(e,n){A();var i=/:$/,u=/^:(\s+)?/;n.exports=o=>{let{name:h,params:l=""}=o;if(o.name.slice(-1)===":"){if(i.test(h)){let[p]=h.match(i);o.name=h.replace(p,""),o.raws.afterName=p+(o.raws.afterName||""),o.variable=!0,o.value=o.params;}if(u.test(l)){let[p]=l.match(u);o.value=l.replace(p,""),o.raws.afterName=(o.raws.afterName||"")+p,o.variable=!0;}}};}}),Uf=P({"node_modules/postcss-less/lib/LessParser.js"(e,n){A();var i=kr(),u=$t(),{isInlineComment:o}=Df(),{interpolation:h}=Lf(),{isMixinToken:l}=zf(),p=Bf(),m=Ff(),c=/(!\s*important)$/i;n.exports=class extends u{constructor(){super(...arguments),this.lastNode=null;}atrule(r){h.bind(this)(r)||(super.atrule(r),p(this.lastNode),m(this.lastNode));}decl(){super.decl(...arguments),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0);}each(r){r[0][1]=` ${r[0][1]}`;let a=r.findIndex(y=>y[0]==="("),s=r.reverse().find(y=>y[0]===")"),f=r.reverse().indexOf(s),v=r.splice(a,f).map(y=>y[1]).join("");for(let y of r.reverse())this.tokenizer.back(y);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=v;}init(r,a,s){super.init(r,a,s),this.lastNode=r;}inlineComment(r){let a=new i,s=r[1].slice(2);if(this.init(a,r[2],r[3]),a.source.end={line:r[4],column:r[5]},a.inline=!0,a.raws.begin="//",/^\s*$/.test(s))a.text="",a.raws.left=s,a.raws.right="";else {let f=s.match(/^(\s*)([^]*[^\s])(\s*)$/);[,a.raws.left,a.text,a.raws.right]=f;}}mixin(r){let[a]=r,s=a[1].slice(0,1),f=r.findIndex(d=>d[0]==="brackets"),g=r.findIndex(d=>d[0]==="("),v="";if((f<0||f>3)&&g>0){let d=r.reduce((V,B,O)=>B[0]===")"?O:V),k=r.slice(g,d+g).map(V=>V[1]).join(""),[x]=r.slice(g),N=[x[2],x[3]],[I]=r.slice(d,d+1),W=[I[2],I[3]],$=["brackets",k].concat(N,W),H=r.slice(0,g),D=r.slice(d+1);r=H,r.push($),r=r.concat(D);}let y=[];for(let d of r)if((d[1]==="!"||y.length)&&y.push(d),d[1]==="important")break;if(y.length){let[d]=y,_=r.indexOf(d),k=y[y.length-1],x=[d[2],d[3]],N=[k[4],k[5]],W=["word",y.map($=>$[1]).join("")].concat(x,N);r.splice(_,y.length,W);}let w=r.findIndex(d=>c.test(d[1]));w>0&&([,v]=r[w],r.splice(w,1));for(let d of r.reverse())this.tokenizer.back(d);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=s,v&&(this.lastNode.important=!0,this.lastNode.raws.important=v);}other(r){o.bind(this)(r)||super.other(r);}rule(r){let a=r[r.length-1],s=r[r.length-2];if(s[0]==="at-word"&&a[0]==="{"&&(this.tokenizer.back(a),h.bind(this)(s))){let g=this.tokenizer.nextToken();r=r.slice(0,r.length-2).concat([g]);for(let v of r.reverse())this.tokenizer.back(v);return}super.rule(r),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0);}unknownWord(r){let[a]=r;if(r[0][1]==="each"&&r[1][0]==="("){this.each(r);return}if(l(a)){this.mixin(r);return}super.unknownWord(r);}};}}),$f=P({"node_modules/postcss-less/lib/LessStringifier.js"(e,n){A();var i=Sr();n.exports=class extends i{atrule(o,h){if(!o.mixin&&!o.variable&&!o.function){super.atrule(o,h);return}let p=`${o.function?"":o.raws.identifier||"@"}${o.name}`,m=o.params?this.rawValue(o,"params"):"",c=o.raws.important||"";if(o.variable&&(m=o.value),typeof o.raws.afterName<"u"?p+=o.raws.afterName:m&&(p+=" "),o.nodes)this.block(o,p+m+c);else {let t=(o.raws.between||"")+c+(h?";":"");this.builder(p+m+t,o);}}comment(o){if(o.inline){let h=this.raw(o,"left","commentLeft"),l=this.raw(o,"right","commentRight");this.builder(`//${h}${o.text}${l}`,o);}else super.comment(o);}};}}),Wf=P({"node_modules/postcss-less/lib/index.js"(e,n){A();var i=xr(),u=Uf(),o=$f();n.exports={parse(h,l){let p=new i(h,l),m=new u(p);return m.parse(),m.root},stringify(h,l){new o(l).stringify(h);},nodeToString(h){let l="";return n.exports.stringify(h,p=>{l+=p;}),l}};}}),Vf=P({"node_modules/postcss-scss/lib/scss-stringifier.js"(e,n){A();function i(h,l){h.prototype=Object.create(l.prototype),h.prototype.constructor=h,h.__proto__=l;}var u=Sr(),o=function(h){i(l,h);function l(){return h.apply(this,arguments)||this}var p=l.prototype;return p.comment=function(c){var t=this.raw(c,"left","commentLeft"),r=this.raw(c,"right","commentRight");if(c.raws.inline){var a=c.raws.text||c.text;this.builder("//"+t+a+r,c);}else this.builder("/*"+t+c.text+r+"*/",c);},p.decl=function(c,t){if(!c.isNested)h.prototype.decl.call(this,c,t);else {var r=this.raw(c,"between","colon"),a=c.prop+r+this.rawValue(c,"value");c.important&&(a+=c.raws.important||" !important"),this.builder(a+"{",c,"start");var s;c.nodes&&c.nodes.length?(this.body(c),s=this.raw(c,"after")):s=this.raw(c,"after","emptyBody"),s&&this.builder(s),this.builder("}",c,"end");}},p.rawValue=function(c,t){var r=c[t],a=c.raws[t];return a&&a.value===r?a.scss?a.scss:a.raw:r},l}(u);n.exports=o;}}),Gf=P({"node_modules/postcss-scss/lib/scss-stringify.js"(e,n){A();var i=Vf();n.exports=function(o,h){var l=new i(h);l.stringify(o);};}}),Hf=P({"node_modules/postcss-scss/lib/nested-declaration.js"(e,n){A();function i(h,l){h.prototype=Object.create(l.prototype),h.prototype.constructor=h,h.__proto__=l;}var u=Or(),o=function(h){i(l,h);function l(p){var m;return m=h.call(this,p)||this,m.type="decl",m.isNested=!0,m.nodes||(m.nodes=[]),m}return l}(u);n.exports=o;}}),Jf=P({"node_modules/postcss-scss/lib/scss-tokenize.js"(e,n){A();var i="'".charCodeAt(0),u='"'.charCodeAt(0),o="\\".charCodeAt(0),h="/".charCodeAt(0),l=`
|
|
544
|
+
`.charCodeAt(0),p=" ".charCodeAt(0),m="\f".charCodeAt(0),c=" ".charCodeAt(0),t="\r".charCodeAt(0),r="[".charCodeAt(0),a="]".charCodeAt(0),s="(".charCodeAt(0),f=")".charCodeAt(0),g="{".charCodeAt(0),v="}".charCodeAt(0),y=";".charCodeAt(0),w="*".charCodeAt(0),d=":".charCodeAt(0),_="@".charCodeAt(0),k=",".charCodeAt(0),x="#".charCodeAt(0),N=/[ \n\t\r\f{}()'"\\;/[\]#]/g,I=/[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g,W=/.[\\/("'\n]/,$=/[a-f0-9]/i,H=/[\r\f\n]/g;n.exports=function(V,B){B===void 0&&(B={});var O=V.css.valueOf(),j=B.ignoreErrors,C,R,X,Z,Q,K,J,M,Y,G,E,S,b,L,q=O.length,T=-1,F=1,z=0,ee=[],te=[];function ue(ie){throw V.error("Unclosed "+ie,F,z-T)}function le(){return te.length===0&&z>=q}function re(){for(var ie=1,ce=!1,fe=!1;ie>0;)R+=1,O.length<=R&&ue("interpolation"),C=O.charCodeAt(R),S=O.charCodeAt(R+1),ce?!fe&&C===ce?(ce=!1,fe=!1):C===o?fe=!G:fe&&(fe=!1):C===i||C===u?ce=C:C===v?ie-=1:C===x&&S===g&&(ie+=1);}function ne(){if(te.length)return te.pop();if(!(z>=q)){switch(C=O.charCodeAt(z),(C===l||C===m||C===t&&O.charCodeAt(z+1)!==l)&&(T=z,F+=1),C){case l:case p:case c:case t:case m:R=z;do R+=1,C=O.charCodeAt(R),C===l&&(T=R,F+=1);while(C===p||C===l||C===c||C===t||C===m);b=["space",O.slice(z,R)],z=R-1;break;case r:b=["[","[",F,z-T];break;case a:b=["]","]",F,z-T];break;case g:b=["{","{",F,z-T];break;case v:b=["}","}",F,z-T];break;case k:b=["word",",",F,z-T,F,z-T+1];break;case d:b=[":",":",F,z-T];break;case y:b=[";",";",F,z-T];break;case s:if(E=ee.length?ee.pop()[1]:"",S=O.charCodeAt(z+1),E==="url"&&S!==i&&S!==u){for(L=1,G=!1,R=z+1;R<=O.length-1;){if(S=O.charCodeAt(R),S===o)G=!G;else if(S===s)L+=1;else if(S===f&&(L-=1,L===0))break;R+=1;}K=O.slice(z,R+1),Z=K.split(`
|
|
545
|
+
`),Q=Z.length-1,Q>0?(M=F+Q,Y=R-Z[Q].length):(M=F,Y=T),b=["brackets",K,F,z-T,M,R-Y],T=Y,F=M,z=R;}else R=O.indexOf(")",z+1),K=O.slice(z,R+1),R===-1||W.test(K)?b=["(","(",F,z-T]:(b=["brackets",K,F,z-T,F,R-T],z=R);break;case f:b=[")",")",F,z-T];break;case i:case u:for(X=C,R=z,G=!1;R<q&&(R++,R===q&&ue("string"),C=O.charCodeAt(R),S=O.charCodeAt(R+1),!(!G&&C===X));)C===o?G=!G:G?G=!1:C===x&&S===g&&re();K=O.slice(z,R+1),Z=K.split(`
|
|
546
|
+
`),Q=Z.length-1,Q>0?(M=F+Q,Y=R-Z[Q].length):(M=F,Y=T),b=["string",O.slice(z,R+1),F,z-T,M,R-Y],T=Y,F=M,z=R;break;case _:N.lastIndex=z+1,N.test(O),N.lastIndex===0?R=O.length-1:R=N.lastIndex-2,b=["at-word",O.slice(z,R+1),F,z-T,F,R-T],z=R;break;case o:for(R=z,J=!0;O.charCodeAt(R+1)===o;)R+=1,J=!J;if(C=O.charCodeAt(R+1),J&&C!==h&&C!==p&&C!==l&&C!==c&&C!==t&&C!==m&&(R+=1,$.test(O.charAt(R)))){for(;$.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===p&&(R+=1);}b=["word",O.slice(z,R+1),F,z-T,F,R-T],z=R;break;default:S=O.charCodeAt(z+1),C===x&&S===g?(R=z,re(),K=O.slice(z,R+1),Z=K.split(`
|
|
547
|
+
`),Q=Z.length-1,Q>0?(M=F+Q,Y=R-Z[Q].length):(M=F,Y=T),b=["word",K,F,z-T,M,R-Y],T=Y,F=M,z=R):C===h&&S===w?(R=O.indexOf("*/",z+2)+1,R===0&&(j?R=O.length:ue("comment")),K=O.slice(z,R+1),Z=K.split(`
|
|
548
|
+
`),Q=Z.length-1,Q>0?(M=F+Q,Y=R-Z[Q].length):(M=F,Y=T),b=["comment",K,F,z-T,M,R-Y],T=Y,F=M,z=R):C===h&&S===h?(H.lastIndex=z+1,H.test(O),H.lastIndex===0?R=O.length-1:R=H.lastIndex-2,K=O.slice(z,R+1),b=["comment",K,F,z-T,F,R-T,"inline"],z=R):(I.lastIndex=z+1,I.test(O),I.lastIndex===0?R=O.length-1:R=I.lastIndex-2,b=["word",O.slice(z,R+1),F,z-T,F,R-T],ee.push(b),z=R);break}return z++,b}}function oe(ie){te.push(ie);}return {back:oe,nextToken:ne,endOfFile:le}};}}),Kf=P({"node_modules/postcss-scss/lib/scss-parser.js"(e,n){A();function i(m,c){m.prototype=Object.create(c.prototype),m.prototype.constructor=m,m.__proto__=c;}var u=kr(),o=$t(),h=Hf(),l=Jf(),p=function(m){i(c,m);function c(){return m.apply(this,arguments)||this}var t=c.prototype;return t.createTokenizer=function(){this.tokenizer=l(this.input);},t.rule=function(a){for(var s=!1,f=0,g="",w=a,v=Array.isArray(w),y=0,w=v?w:w[Symbol.iterator]();;){var d;if(v){if(y>=w.length)break;d=w[y++];}else {if(y=w.next(),y.done)break;d=y.value;}var _=d;if(s)_[0]!=="comment"&&_[0]!=="{"&&(g+=_[1]);else {if(_[0]==="space"&&_[1].indexOf(`
|
|
549
|
+
`)!==-1)break;_[0]==="("?f+=1:_[0]===")"?f-=1:f===0&&_[0]===":"&&(s=!0);}}if(!s||g.trim()===""||/^[a-zA-Z-:#]/.test(g))m.prototype.rule.call(this,a);else {a.pop();var k=new h;this.init(k);var x=a[a.length-1];for(x[4]?k.source.end={line:x[4],column:x[5]}:k.source.end={line:x[2],column:x[3]};a[0][0]!=="word";)k.raws.before+=a.shift()[1];for(k.source.start={line:a[0][2],column:a[0][3]},k.prop="";a.length;){var N=a[0][0];if(N===":"||N==="space"||N==="comment")break;k.prop+=a.shift()[1];}k.raws.between="";for(var I;a.length;)if(I=a.shift(),I[0]===":"){k.raws.between+=I[1];break}else k.raws.between+=I[1];(k.prop[0]==="_"||k.prop[0]==="*")&&(k.raws.before+=k.prop[0],k.prop=k.prop.slice(1)),k.raws.between+=this.spacesAndCommentsFromStart(a),this.precheckMissedSemicolon(a);for(var W=a.length-1;W>0;W--){if(I=a[W],I[1]==="!important"){k.important=!0;var $=this.stringFrom(a,W);$=this.spacesFromEnd(a)+$,$!==" !important"&&(k.raws.important=$);break}else if(I[1]==="important"){for(var H=a.slice(0),D="",V=W;V>0;V--){var B=H[V][0];if(D.trim().indexOf("!")===0&&B!=="space")break;D=H.pop()[1]+D;}D.trim().indexOf("!")===0&&(k.important=!0,k.raws.important=D,a=H);}if(I[0]!=="space"&&I[0]!=="comment")break}this.raw(k,"value",a),k.value.indexOf(":")!==-1&&this.checkMissedSemicolon(a),this.current=k;}},t.comment=function(a){if(a[6]==="inline"){var s=new u;this.init(s,a[2],a[3]),s.raws.inline=!0,s.source.end={line:a[4],column:a[5]};var f=a[1].slice(2);if(/^\s*$/.test(f))s.text="",s.raws.left=f,s.raws.right="";else {var g=f.match(/^(\s*)([^]*[^\s])(\s*)$/),v=g[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=v,s.raws.left=g[1],s.raws.right=g[3],s.raws.text=g[2];}}else m.prototype.comment.call(this,a);},t.raw=function(a,s,f){if(m.prototype.raw.call(this,a,s,f),a.raws[s]){var g=a.raws[s].raw;a.raws[s].raw=f.reduce(function(v,y){if(y[0]==="comment"&&y[6]==="inline"){var w=y[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return v+"/*"+w+"*/"}else return v+y[1]},""),g!==a.raws[s].raw&&(a.raws[s].scss=g);}},c}(o);n.exports=p;}}),Qf=P({"node_modules/postcss-scss/lib/scss-parse.js"(e,n){A();var i=xr(),u=Kf();n.exports=function(h,l){var p=new i(h,l),m=new u(p);return m.parse(),m.root};}}),Yf=P({"node_modules/postcss-scss/lib/scss-syntax.js"(e,n){A();var i=Gf(),u=Qf();n.exports={parse:u,stringify:i};}});A();var Xf=Sl(),mt=Us(),Zf=$s(),{hasPragma:ep}=Cl(),{locStart:rp,locEnd:tp}=no(),{calculateLoc:np,replaceQuotesInInlineComments:ip}=no(),sp=Dl(),op=Ll(),gt=zl(),da=Bl(),ap=Fl(),up=Ul(),cp=$l(),lp=Wl(),fp=e=>{for(;e.parent;)e=e.parent;return e};function pp(e,n){let{nodes:i}=e,u={open:null,close:null,groups:[],type:"paren_group"},o=[u],h=u,l={groups:[],type:"comma_group"},p=[l];for(let m=0;m<i.length;++m){let c=i[m];if(da(n.parser,c.value)&&c.type==="number"&&c.unit===".."&&mt(c.value)==="."&&(c.value=c.value.slice(0,-1),c.unit="..."),c.type==="func"&&c.value==="selector"&&(c.group.groups=[Re(fp(e).text.slice(c.group.open.sourceIndex+1,c.group.close.sourceIndex))]),c.type==="func"&&c.value==="url"){let t=c.group&&c.group.groups||[],r=[];for(let a=0;a<t.length;a++){let s=t[a];s.type==="comma_group"?r=[...r,...s.groups]:r.push(s);}if(sp(r)||!op(r)&&!up(r[0])){let a=cp({groups:c.group.groups});c.group.groups=[a.trim()];}}if(c.type==="paren"&&c.value==="(")u={open:c,close:null,groups:[],type:"paren_group"},o.push(u),l={groups:[],type:"comma_group"},p.push(l);else if(c.type==="paren"&&c.value===")"){if(l.groups.length>0&&u.groups.push(l),u.close=c,p.length===1)throw new Error("Unbalanced parenthesis");p.pop(),l=mt(p),l.groups.push(u),o.pop(),u=mt(o);}else c.type==="comma"?(u.groups.push(l),l={groups:[],type:"comma_group"},p[p.length-1]=l):l.groups.push(c);}return l.groups.length>0&&u.groups.push(l),h}function vr(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?vr(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?Object.assign(Object.assign({},e),{},{groups:e.groups.map(vr)}):e}function Xe(e,n,i){if(e&&typeof e=="object"){delete e.parent;for(let u in e)Xe(e[u],n,i),u==="type"&&typeof e[u]=="string"&&!e[u].startsWith(n)&&(!i||!i.test(e[u]))&&(e[u]=n+e[u]);}return e}function va(e){if(e&&typeof e=="object"){delete e.parent;for(let n in e)va(e[n]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown");}return e}function ma(e,n){if(e&&typeof e=="object"){for(let i in e)i!=="parent"&&(ma(e[i],n),i==="nodes"&&(e.group=vr(pp(e,n)),delete e[i]));delete e.parent;}return e}function Pe(e,n){let i=gf(),u=null;try{u=i(e,{loose:!0}).parse();}catch{return {type:"value-unknown",value:e}}u.text=e;let o=ma(u,n);return Xe(o,"value-",/^selector-/)}function Re(e){if(/\/\/|\/\*/.test(e))return {type:"selector-unknown",value:e.trim()};let n=xf(),i=null;try{n(u=>{i=u;}).process(e);}catch{return {type:"selector-unknown",value:e}}return Xe(i,"selector-")}function hp(e){let n=kf().default,i=null;try{i=n(e);}catch{return {type:"selector-unknown",value:e}}return Xe(va(i),"media-")}var dp=/(\s*)(!default).*$/,vp=/(\s*)(!global).*$/;function ga(e,n){if(e&&typeof e=="object"){delete e.parent;for(let m in e)ga(e[m],n);if(!e.type)return e;e.raws||(e.raws={});let h="";if(typeof e.selector=="string"){var i;h=e.raws.selector?(i=e.raws.selector.scss)!==null&&i!==void 0?i:e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(h+=e.raws.between),e.raws.selector=h;}let l="";if(typeof e.value=="string"){var u;l=e.raws.value?(u=e.raws.value.scss)!==null&&u!==void 0?u:e.raws.value.raw:e.value,l=l.trim(),e.raws.value=l;}let p="";if(typeof e.params=="string"){var o;p=e.raws.params?(o=e.raws.params.scss)!==null&&o!==void 0?o:e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(p=e.raws.afterName+p),e.raws.between&&e.raws.between.trim().length>0&&(p=p+e.raws.between),p=p.trim(),e.raws.params=p;}if(h.trim().length>0)return h.startsWith("@")&&h.endsWith(":")?e:e.mixin?(e.selector=Pe(h,n),e):(ap(e)&&(e.isSCSSNesterProperty=!0),e.selector=Re(h),e);if(l.length>0){let m=l.match(dp);m&&(l=l.slice(0,m.index),e.scssDefault=!0,m[0].trim()!=="!default"&&(e.raws.scssDefault=m[0]));let c=l.match(vp);if(c&&(l=l.slice(0,c.index),e.scssGlobal=!0,c[0].trim()!=="!global"&&(e.raws.scssGlobal=c[0])),l.startsWith("progid:"))return {type:"value-unknown",value:l};e.value=Pe(l,n);}if(gt(n)&&e.type==="css-decl"&&l.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=Re(l.slice(7,-1)))),e.type==="css-atrule"){if(gt(n)){if(e.mixin){let m=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=Re(m),delete e.params,e}if(e.function)return e}if(n.parser==="css"&&e.name==="custom-selector"){let m=e.params.match(/:--\S+\s+/)[0].trim();return e.customSelector=m,e.selector=Re(e.params.slice(m.length).trim()),delete e.params,e}if(gt(n)){if(e.name.includes(":")&&!e.params){e.variable=!0;let m=e.name.split(":");e.name=m[0],e.value=Pe(m.slice(1).join(":"),n);}if(!["page","nest","keyframes"].includes(e.name)&&e.params&&e.params[0]===":"){e.variable=!0;let m=e.params.slice(1);m&&(e.value=Pe(m,n)),e.raws.afterName+=":";}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&p.length>0){let{name:m}=e,c=e.name.toLowerCase();return m==="warn"||m==="error"?(e.params={type:"media-unknown",value:p},e):m==="extend"||m==="nest"?(e.selector=Re(p),delete e.params,e):m==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/s.test(p)?e.params=Pe(p,n):(e.selector=Re(p),delete e.params),e):lp(c)?(e.import=!0,delete e.filename,e.params=Pe(p,n),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(m)?(p=p.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),p=p.replace(/^(?!if)(\S+)(\s+)\(/,"$1($2"),e.value=Pe(p,n),delete e.params,e):["media","custom-media"].includes(c)?p.includes("#{")?{type:"media-unknown",value:p}:(e.params=hp(p),e):(e.params=p,e)}}return e}function ya(e,n,i){let u=Zf(n),{frontMatter:o}=u;n=u.content;let h;try{h=e(n);}catch(l){let{name:p,reason:m,line:c,column:t}=l;throw typeof c!="number"?l:Xf(`${p}: ${m}`,{start:{line:c,column:t}})}return h=ga(Xe(h,"css-"),i),np(h,n),o&&(o.source={startOffset:0,endOffset:o.raw.length},h.nodes.unshift(o)),h}function mp(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=da(i.parser,e)?[Tt,Ot]:[Ot,Tt],h;for(let l of o)try{return l(e,n,i)}catch(p){h=h||p;}if(h)throw h}function Ot(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Wf();return ya(o=>u.parse(ip(o)),e,i)}function Tt(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{parse:u}=Yf();return ya(u,e,i)}var yt={astFormat:"postcss",hasPragma:ep,locStart:rp,locEnd:tp};wa.exports={parsers:{css:Object.assign(Object.assign({},yt),{},{parse:mp}),less:Object.assign(Object.assign({},yt),{},{parse:Ot}),scss:Object.assign(Object.assign({},yt),{},{parse:Tt})}};});return gp();});
|
|
550
|
+
} (parserPostcss$1));
|
|
551
|
+
|
|
552
|
+
const parserPostcss = /*@__PURE__*/getDefaultExportFromCjs(parserPostcss$1.exports);
|
|
553
|
+
|
|
471
554
|
// DEFLATE is a complex format; to read this code, you should probably check the RFC first:
|
|
472
555
|
|
|
473
556
|
// aliases for shorter compressed code (most minifers don't do this)
|
|
@@ -11208,1835 +11291,1835 @@ const codemirror = '';
|
|
|
11208
11291
|
|
|
11209
11292
|
var javascript = {exports: {}};
|
|
11210
11293
|
|
|
11211
|
-
|
|
11294
|
+
(function (module, exports) {
|
|
11295
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
11296
|
+
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
11212
11297
|
|
|
11213
|
-
function
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
(function (module, exports) {
|
|
11217
|
-
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
11218
|
-
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
11298
|
+
(function(mod) {
|
|
11299
|
+
mod(requireCodemirror());
|
|
11300
|
+
})(function(CodeMirror) {
|
|
11219
11301
|
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11302
|
+
CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|
11303
|
+
var indentUnit = config.indentUnit;
|
|
11304
|
+
var statementIndent = parserConfig.statementIndent;
|
|
11305
|
+
var jsonldMode = parserConfig.jsonld;
|
|
11306
|
+
var jsonMode = parserConfig.json || jsonldMode;
|
|
11307
|
+
var trackScope = parserConfig.trackScope !== false;
|
|
11308
|
+
var isTS = parserConfig.typescript;
|
|
11309
|
+
var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
|
|
11223
11310
|
|
|
11224
|
-
|
|
11225
|
-
var indentUnit = config.indentUnit;
|
|
11226
|
-
var statementIndent = parserConfig.statementIndent;
|
|
11227
|
-
var jsonldMode = parserConfig.jsonld;
|
|
11228
|
-
var jsonMode = parserConfig.json || jsonldMode;
|
|
11229
|
-
var trackScope = parserConfig.trackScope !== false;
|
|
11230
|
-
var isTS = parserConfig.typescript;
|
|
11231
|
-
var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
|
|
11311
|
+
// Tokenizer
|
|
11232
11312
|
|
|
11233
|
-
|
|
11313
|
+
var keywords = function(){
|
|
11314
|
+
function kw(type) {return {type: type, style: "keyword"};}
|
|
11315
|
+
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"), D = kw("keyword d");
|
|
11316
|
+
var operator = kw("operator"), atom = {type: "atom", style: "atom"};
|
|
11234
11317
|
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11318
|
+
return {
|
|
11319
|
+
"if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
|
|
11320
|
+
"return": D, "break": D, "continue": D, "new": kw("new"), "delete": C, "void": C, "throw": C,
|
|
11321
|
+
"debugger": kw("debugger"), "var": kw("var"), "const": kw("var"), "let": kw("var"),
|
|
11322
|
+
"function": kw("function"), "catch": kw("catch"),
|
|
11323
|
+
"for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
|
|
11324
|
+
"in": operator, "typeof": operator, "instanceof": operator,
|
|
11325
|
+
"true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom,
|
|
11326
|
+
"this": kw("this"), "class": kw("class"), "super": kw("atom"),
|
|
11327
|
+
"yield": C, "export": kw("export"), "import": kw("import"), "extends": C,
|
|
11328
|
+
"await": C
|
|
11329
|
+
};
|
|
11330
|
+
}();
|
|
11331
|
+
|
|
11332
|
+
var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
|
|
11333
|
+
var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
|
|
11334
|
+
|
|
11335
|
+
function readRegexp(stream) {
|
|
11336
|
+
var escaped = false, next, inSet = false;
|
|
11337
|
+
while ((next = stream.next()) != null) {
|
|
11338
|
+
if (!escaped) {
|
|
11339
|
+
if (next == "/" && !inSet) return;
|
|
11340
|
+
if (next == "[") inSet = true;
|
|
11341
|
+
else if (inSet && next == "]") inSet = false;
|
|
11342
|
+
}
|
|
11343
|
+
escaped = !escaped && next == "\\";
|
|
11344
|
+
}
|
|
11345
|
+
}
|
|
11239
11346
|
|
|
11240
|
-
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11245
|
-
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11347
|
+
// Used as scratch variables to communicate multiple values without
|
|
11348
|
+
// consing up tons of objects.
|
|
11349
|
+
var type, content;
|
|
11350
|
+
function ret(tp, style, cont) {
|
|
11351
|
+
type = tp; content = cont;
|
|
11352
|
+
return style;
|
|
11353
|
+
}
|
|
11354
|
+
function tokenBase(stream, state) {
|
|
11355
|
+
var ch = stream.next();
|
|
11356
|
+
if (ch == '"' || ch == "'") {
|
|
11357
|
+
state.tokenize = tokenString(ch);
|
|
11358
|
+
return state.tokenize(stream, state);
|
|
11359
|
+
} else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
|
|
11360
|
+
return ret("number", "number");
|
|
11361
|
+
} else if (ch == "." && stream.match("..")) {
|
|
11362
|
+
return ret("spread", "meta");
|
|
11363
|
+
} else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
|
11364
|
+
return ret(ch);
|
|
11365
|
+
} else if (ch == "=" && stream.eat(">")) {
|
|
11366
|
+
return ret("=>", "operator");
|
|
11367
|
+
} else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
|
|
11368
|
+
return ret("number", "number");
|
|
11369
|
+
} else if (/\d/.test(ch)) {
|
|
11370
|
+
stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
|
|
11371
|
+
return ret("number", "number");
|
|
11372
|
+
} else if (ch == "/") {
|
|
11373
|
+
if (stream.eat("*")) {
|
|
11374
|
+
state.tokenize = tokenComment;
|
|
11375
|
+
return tokenComment(stream, state);
|
|
11376
|
+
} else if (stream.eat("/")) {
|
|
11377
|
+
stream.skipToEnd();
|
|
11378
|
+
return ret("comment", "comment");
|
|
11379
|
+
} else if (expressionAllowed(stream, state, 1)) {
|
|
11380
|
+
readRegexp(stream);
|
|
11381
|
+
stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
|
|
11382
|
+
return ret("regexp", "string-2");
|
|
11383
|
+
} else {
|
|
11384
|
+
stream.eat("=");
|
|
11385
|
+
return ret("operator", "operator", stream.current());
|
|
11386
|
+
}
|
|
11387
|
+
} else if (ch == "`") {
|
|
11388
|
+
state.tokenize = tokenQuasi;
|
|
11389
|
+
return tokenQuasi(stream, state);
|
|
11390
|
+
} else if (ch == "#" && stream.peek() == "!") {
|
|
11391
|
+
stream.skipToEnd();
|
|
11392
|
+
return ret("meta", "meta");
|
|
11393
|
+
} else if (ch == "#" && stream.eatWhile(wordRE)) {
|
|
11394
|
+
return ret("variable", "property")
|
|
11395
|
+
} else if (ch == "<" && stream.match("!--") ||
|
|
11396
|
+
(ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start)))) {
|
|
11397
|
+
stream.skipToEnd();
|
|
11398
|
+
return ret("comment", "comment")
|
|
11399
|
+
} else if (isOperatorChar.test(ch)) {
|
|
11400
|
+
if (ch != ">" || !state.lexical || state.lexical.type != ">") {
|
|
11401
|
+
if (stream.eat("=")) {
|
|
11402
|
+
if (ch == "!" || ch == "=") stream.eat("=");
|
|
11403
|
+
} else if (/[<>*+\-|&?]/.test(ch)) {
|
|
11404
|
+
stream.eat(ch);
|
|
11405
|
+
if (ch == ">") stream.eat(ch);
|
|
11406
|
+
}
|
|
11407
|
+
}
|
|
11408
|
+
if (ch == "?" && stream.eat(".")) return ret(".")
|
|
11409
|
+
return ret("operator", "operator", stream.current());
|
|
11410
|
+
} else if (wordRE.test(ch)) {
|
|
11411
|
+
stream.eatWhile(wordRE);
|
|
11412
|
+
var word = stream.current();
|
|
11413
|
+
if (state.lastType != ".") {
|
|
11414
|
+
if (keywords.propertyIsEnumerable(word)) {
|
|
11415
|
+
var kw = keywords[word];
|
|
11416
|
+
return ret(kw.type, kw.style, word)
|
|
11417
|
+
}
|
|
11418
|
+
if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
|
|
11419
|
+
return ret("async", "keyword", word)
|
|
11420
|
+
}
|
|
11421
|
+
return ret("variable", "variable", word)
|
|
11422
|
+
}
|
|
11423
|
+
}
|
|
11253
11424
|
|
|
11254
|
-
|
|
11255
|
-
|
|
11425
|
+
function tokenString(quote) {
|
|
11426
|
+
return function(stream, state) {
|
|
11427
|
+
var escaped = false, next;
|
|
11428
|
+
if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){
|
|
11429
|
+
state.tokenize = tokenBase;
|
|
11430
|
+
return ret("jsonld-keyword", "meta");
|
|
11431
|
+
}
|
|
11432
|
+
while ((next = stream.next()) != null) {
|
|
11433
|
+
if (next == quote && !escaped) break;
|
|
11434
|
+
escaped = !escaped && next == "\\";
|
|
11435
|
+
}
|
|
11436
|
+
if (!escaped) state.tokenize = tokenBase;
|
|
11437
|
+
return ret("string", "string");
|
|
11438
|
+
};
|
|
11439
|
+
}
|
|
11256
11440
|
|
|
11257
|
-
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11441
|
+
function tokenComment(stream, state) {
|
|
11442
|
+
var maybeEnd = false, ch;
|
|
11443
|
+
while (ch = stream.next()) {
|
|
11444
|
+
if (ch == "/" && maybeEnd) {
|
|
11445
|
+
state.tokenize = tokenBase;
|
|
11446
|
+
break;
|
|
11447
|
+
}
|
|
11448
|
+
maybeEnd = (ch == "*");
|
|
11449
|
+
}
|
|
11450
|
+
return ret("comment", "comment");
|
|
11451
|
+
}
|
|
11268
11452
|
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
return state.tokenize(stream, state);
|
|
11281
|
-
} else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
|
|
11282
|
-
return ret("number", "number");
|
|
11283
|
-
} else if (ch == "." && stream.match("..")) {
|
|
11284
|
-
return ret("spread", "meta");
|
|
11285
|
-
} else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
|
11286
|
-
return ret(ch);
|
|
11287
|
-
} else if (ch == "=" && stream.eat(">")) {
|
|
11288
|
-
return ret("=>", "operator");
|
|
11289
|
-
} else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
|
|
11290
|
-
return ret("number", "number");
|
|
11291
|
-
} else if (/\d/.test(ch)) {
|
|
11292
|
-
stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
|
|
11293
|
-
return ret("number", "number");
|
|
11294
|
-
} else if (ch == "/") {
|
|
11295
|
-
if (stream.eat("*")) {
|
|
11296
|
-
state.tokenize = tokenComment;
|
|
11297
|
-
return tokenComment(stream, state);
|
|
11298
|
-
} else if (stream.eat("/")) {
|
|
11299
|
-
stream.skipToEnd();
|
|
11300
|
-
return ret("comment", "comment");
|
|
11301
|
-
} else if (expressionAllowed(stream, state, 1)) {
|
|
11302
|
-
readRegexp(stream);
|
|
11303
|
-
stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
|
|
11304
|
-
return ret("regexp", "string-2");
|
|
11305
|
-
} else {
|
|
11306
|
-
stream.eat("=");
|
|
11307
|
-
return ret("operator", "operator", stream.current());
|
|
11308
|
-
}
|
|
11309
|
-
} else if (ch == "`") {
|
|
11310
|
-
state.tokenize = tokenQuasi;
|
|
11311
|
-
return tokenQuasi(stream, state);
|
|
11312
|
-
} else if (ch == "#" && stream.peek() == "!") {
|
|
11313
|
-
stream.skipToEnd();
|
|
11314
|
-
return ret("meta", "meta");
|
|
11315
|
-
} else if (ch == "#" && stream.eatWhile(wordRE)) {
|
|
11316
|
-
return ret("variable", "property")
|
|
11317
|
-
} else if (ch == "<" && stream.match("!--") ||
|
|
11318
|
-
(ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start)))) {
|
|
11319
|
-
stream.skipToEnd();
|
|
11320
|
-
return ret("comment", "comment")
|
|
11321
|
-
} else if (isOperatorChar.test(ch)) {
|
|
11322
|
-
if (ch != ">" || !state.lexical || state.lexical.type != ">") {
|
|
11323
|
-
if (stream.eat("=")) {
|
|
11324
|
-
if (ch == "!" || ch == "=") stream.eat("=");
|
|
11325
|
-
} else if (/[<>*+\-|&?]/.test(ch)) {
|
|
11326
|
-
stream.eat(ch);
|
|
11327
|
-
if (ch == ">") stream.eat(ch);
|
|
11328
|
-
}
|
|
11329
|
-
}
|
|
11330
|
-
if (ch == "?" && stream.eat(".")) return ret(".")
|
|
11331
|
-
return ret("operator", "operator", stream.current());
|
|
11332
|
-
} else if (wordRE.test(ch)) {
|
|
11333
|
-
stream.eatWhile(wordRE);
|
|
11334
|
-
var word = stream.current();
|
|
11335
|
-
if (state.lastType != ".") {
|
|
11336
|
-
if (keywords.propertyIsEnumerable(word)) {
|
|
11337
|
-
var kw = keywords[word];
|
|
11338
|
-
return ret(kw.type, kw.style, word)
|
|
11339
|
-
}
|
|
11340
|
-
if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
|
|
11341
|
-
return ret("async", "keyword", word)
|
|
11342
|
-
}
|
|
11343
|
-
return ret("variable", "variable", word)
|
|
11344
|
-
}
|
|
11345
|
-
}
|
|
11453
|
+
function tokenQuasi(stream, state) {
|
|
11454
|
+
var escaped = false, next;
|
|
11455
|
+
while ((next = stream.next()) != null) {
|
|
11456
|
+
if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
|
|
11457
|
+
state.tokenize = tokenBase;
|
|
11458
|
+
break;
|
|
11459
|
+
}
|
|
11460
|
+
escaped = !escaped && next == "\\";
|
|
11461
|
+
}
|
|
11462
|
+
return ret("quasi", "string-2", stream.current());
|
|
11463
|
+
}
|
|
11346
11464
|
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
|
|
11350
|
-
|
|
11351
|
-
|
|
11352
|
-
|
|
11353
|
-
|
|
11354
|
-
|
|
11355
|
-
|
|
11356
|
-
|
|
11357
|
-
|
|
11358
|
-
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
|
|
11465
|
+
var brackets = "([{}])";
|
|
11466
|
+
// This is a crude lookahead trick to try and notice that we're
|
|
11467
|
+
// parsing the argument patterns for a fat-arrow function before we
|
|
11468
|
+
// actually hit the arrow token. It only works if the arrow is on
|
|
11469
|
+
// the same line as the arguments and there's no strange noise
|
|
11470
|
+
// (comments) in between. Fallback is to only notice when we hit the
|
|
11471
|
+
// arrow, and not declare the arguments as locals for the arrow
|
|
11472
|
+
// body.
|
|
11473
|
+
function findFatArrow(stream, state) {
|
|
11474
|
+
if (state.fatArrowAt) state.fatArrowAt = null;
|
|
11475
|
+
var arrow = stream.string.indexOf("=>", stream.start);
|
|
11476
|
+
if (arrow < 0) return;
|
|
11477
|
+
|
|
11478
|
+
if (isTS) { // Try to skip TypeScript return type declarations after the arguments
|
|
11479
|
+
var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow));
|
|
11480
|
+
if (m) arrow = m.index;
|
|
11481
|
+
}
|
|
11362
11482
|
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11483
|
+
var depth = 0, sawSomething = false;
|
|
11484
|
+
for (var pos = arrow - 1; pos >= 0; --pos) {
|
|
11485
|
+
var ch = stream.string.charAt(pos);
|
|
11486
|
+
var bracket = brackets.indexOf(ch);
|
|
11487
|
+
if (bracket >= 0 && bracket < 3) {
|
|
11488
|
+
if (!depth) { ++pos; break; }
|
|
11489
|
+
if (--depth == 0) { if (ch == "(") sawSomething = true; break; }
|
|
11490
|
+
} else if (bracket >= 3 && bracket < 6) {
|
|
11491
|
+
++depth;
|
|
11492
|
+
} else if (wordRE.test(ch)) {
|
|
11493
|
+
sawSomething = true;
|
|
11494
|
+
} else if (/["'\/`]/.test(ch)) {
|
|
11495
|
+
for (;; --pos) {
|
|
11496
|
+
if (pos == 0) return
|
|
11497
|
+
var next = stream.string.charAt(pos - 1);
|
|
11498
|
+
if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break }
|
|
11499
|
+
}
|
|
11500
|
+
} else if (sawSomething && !depth) {
|
|
11501
|
+
++pos;
|
|
11502
|
+
break;
|
|
11503
|
+
}
|
|
11504
|
+
}
|
|
11505
|
+
if (sawSomething && !depth) state.fatArrowAt = pos;
|
|
11506
|
+
}
|
|
11374
11507
|
|
|
11375
|
-
|
|
11376
|
-
var escaped = false, next;
|
|
11377
|
-
while ((next = stream.next()) != null) {
|
|
11378
|
-
if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
|
|
11379
|
-
state.tokenize = tokenBase;
|
|
11380
|
-
break;
|
|
11381
|
-
}
|
|
11382
|
-
escaped = !escaped && next == "\\";
|
|
11383
|
-
}
|
|
11384
|
-
return ret("quasi", "string-2", stream.current());
|
|
11385
|
-
}
|
|
11386
|
-
|
|
11387
|
-
var brackets = "([{}])";
|
|
11388
|
-
// This is a crude lookahead trick to try and notice that we're
|
|
11389
|
-
// parsing the argument patterns for a fat-arrow function before we
|
|
11390
|
-
// actually hit the arrow token. It only works if the arrow is on
|
|
11391
|
-
// the same line as the arguments and there's no strange noise
|
|
11392
|
-
// (comments) in between. Fallback is to only notice when we hit the
|
|
11393
|
-
// arrow, and not declare the arguments as locals for the arrow
|
|
11394
|
-
// body.
|
|
11395
|
-
function findFatArrow(stream, state) {
|
|
11396
|
-
if (state.fatArrowAt) state.fatArrowAt = null;
|
|
11397
|
-
var arrow = stream.string.indexOf("=>", stream.start);
|
|
11398
|
-
if (arrow < 0) return;
|
|
11399
|
-
|
|
11400
|
-
if (isTS) { // Try to skip TypeScript return type declarations after the arguments
|
|
11401
|
-
var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow));
|
|
11402
|
-
if (m) arrow = m.index;
|
|
11403
|
-
}
|
|
11404
|
-
|
|
11405
|
-
var depth = 0, sawSomething = false;
|
|
11406
|
-
for (var pos = arrow - 1; pos >= 0; --pos) {
|
|
11407
|
-
var ch = stream.string.charAt(pos);
|
|
11408
|
-
var bracket = brackets.indexOf(ch);
|
|
11409
|
-
if (bracket >= 0 && bracket < 3) {
|
|
11410
|
-
if (!depth) { ++pos; break; }
|
|
11411
|
-
if (--depth == 0) { if (ch == "(") sawSomething = true; break; }
|
|
11412
|
-
} else if (bracket >= 3 && bracket < 6) {
|
|
11413
|
-
++depth;
|
|
11414
|
-
} else if (wordRE.test(ch)) {
|
|
11415
|
-
sawSomething = true;
|
|
11416
|
-
} else if (/["'\/`]/.test(ch)) {
|
|
11417
|
-
for (;; --pos) {
|
|
11418
|
-
if (pos == 0) return
|
|
11419
|
-
var next = stream.string.charAt(pos - 1);
|
|
11420
|
-
if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break }
|
|
11421
|
-
}
|
|
11422
|
-
} else if (sawSomething && !depth) {
|
|
11423
|
-
++pos;
|
|
11424
|
-
break;
|
|
11425
|
-
}
|
|
11426
|
-
}
|
|
11427
|
-
if (sawSomething && !depth) state.fatArrowAt = pos;
|
|
11428
|
-
}
|
|
11508
|
+
// Parser
|
|
11429
11509
|
|
|
11430
|
-
|
|
11510
|
+
var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true,
|
|
11511
|
+
"regexp": true, "this": true, "import": true, "jsonld-keyword": true};
|
|
11431
11512
|
|
|
11432
|
-
|
|
11433
|
-
|
|
11513
|
+
function JSLexical(indented, column, type, align, prev, info) {
|
|
11514
|
+
this.indented = indented;
|
|
11515
|
+
this.column = column;
|
|
11516
|
+
this.type = type;
|
|
11517
|
+
this.prev = prev;
|
|
11518
|
+
this.info = info;
|
|
11519
|
+
if (align != null) this.align = align;
|
|
11520
|
+
}
|
|
11434
11521
|
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11522
|
+
function inScope(state, varname) {
|
|
11523
|
+
if (!trackScope) return false
|
|
11524
|
+
for (var v = state.localVars; v; v = v.next)
|
|
11525
|
+
if (v.name == varname) return true;
|
|
11526
|
+
for (var cx = state.context; cx; cx = cx.prev) {
|
|
11527
|
+
for (var v = cx.vars; v; v = v.next)
|
|
11528
|
+
if (v.name == varname) return true;
|
|
11529
|
+
}
|
|
11530
|
+
}
|
|
11443
11531
|
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11532
|
+
function parseJS(state, style, type, content, stream) {
|
|
11533
|
+
var cc = state.cc;
|
|
11534
|
+
// Communicate our context to the combinators.
|
|
11535
|
+
// (Less wasteful than consing up a hundred closures on every call.)
|
|
11536
|
+
cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; cx.style = style;
|
|
11537
|
+
|
|
11538
|
+
if (!state.lexical.hasOwnProperty("align"))
|
|
11539
|
+
state.lexical.align = true;
|
|
11540
|
+
|
|
11541
|
+
while(true) {
|
|
11542
|
+
var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
|
|
11543
|
+
if (combinator(type, content)) {
|
|
11544
|
+
while(cc.length && cc[cc.length - 1].lex)
|
|
11545
|
+
cc.pop()();
|
|
11546
|
+
if (cx.marked) return cx.marked;
|
|
11547
|
+
if (type == "variable" && inScope(state, content)) return "variable-2";
|
|
11548
|
+
return style;
|
|
11549
|
+
}
|
|
11550
|
+
}
|
|
11551
|
+
}
|
|
11453
11552
|
|
|
11454
|
-
|
|
11455
|
-
var cc = state.cc;
|
|
11456
|
-
// Communicate our context to the combinators.
|
|
11457
|
-
// (Less wasteful than consing up a hundred closures on every call.)
|
|
11458
|
-
cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; cx.style = style;
|
|
11553
|
+
// Combinator utils
|
|
11459
11554
|
|
|
11460
|
-
|
|
11461
|
-
|
|
11555
|
+
var cx = {state: null, column: null, marked: null, cc: null};
|
|
11556
|
+
function pass() {
|
|
11557
|
+
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
|
11558
|
+
}
|
|
11559
|
+
function cont() {
|
|
11560
|
+
pass.apply(null, arguments);
|
|
11561
|
+
return true;
|
|
11562
|
+
}
|
|
11563
|
+
function inList(name, list) {
|
|
11564
|
+
for (var v = list; v; v = v.next) if (v.name == name) return true
|
|
11565
|
+
return false;
|
|
11566
|
+
}
|
|
11567
|
+
function register(varname) {
|
|
11568
|
+
var state = cx.state;
|
|
11569
|
+
cx.marked = "def";
|
|
11570
|
+
if (!trackScope) return
|
|
11571
|
+
if (state.context) {
|
|
11572
|
+
if (state.lexical.info == "var" && state.context && state.context.block) {
|
|
11573
|
+
// FIXME function decls are also not block scoped
|
|
11574
|
+
var newContext = registerVarScoped(varname, state.context);
|
|
11575
|
+
if (newContext != null) {
|
|
11576
|
+
state.context = newContext;
|
|
11577
|
+
return
|
|
11578
|
+
}
|
|
11579
|
+
} else if (!inList(varname, state.localVars)) {
|
|
11580
|
+
state.localVars = new Var(varname, state.localVars);
|
|
11581
|
+
return
|
|
11582
|
+
}
|
|
11583
|
+
}
|
|
11584
|
+
// Fall through means this is global
|
|
11585
|
+
if (parserConfig.globalVars && !inList(varname, state.globalVars))
|
|
11586
|
+
state.globalVars = new Var(varname, state.globalVars);
|
|
11587
|
+
}
|
|
11588
|
+
function registerVarScoped(varname, context) {
|
|
11589
|
+
if (!context) {
|
|
11590
|
+
return null
|
|
11591
|
+
} else if (context.block) {
|
|
11592
|
+
var inner = registerVarScoped(varname, context.prev);
|
|
11593
|
+
if (!inner) return null
|
|
11594
|
+
if (inner == context.prev) return context
|
|
11595
|
+
return new Context(inner, context.vars, true)
|
|
11596
|
+
} else if (inList(varname, context.vars)) {
|
|
11597
|
+
return context
|
|
11598
|
+
} else {
|
|
11599
|
+
return new Context(context.prev, new Var(varname, context.vars), false)
|
|
11600
|
+
}
|
|
11601
|
+
}
|
|
11462
11602
|
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
while(cc.length && cc[cc.length - 1].lex)
|
|
11467
|
-
cc.pop()();
|
|
11468
|
-
if (cx.marked) return cx.marked;
|
|
11469
|
-
if (type == "variable" && inScope(state, content)) return "variable-2";
|
|
11470
|
-
return style;
|
|
11471
|
-
}
|
|
11472
|
-
}
|
|
11473
|
-
}
|
|
11603
|
+
function isModifier(name) {
|
|
11604
|
+
return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly"
|
|
11605
|
+
}
|
|
11474
11606
|
|
|
11475
|
-
|
|
11607
|
+
// Combinators
|
|
11476
11608
|
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
|
11480
|
-
}
|
|
11481
|
-
function cont() {
|
|
11482
|
-
pass.apply(null, arguments);
|
|
11483
|
-
return true;
|
|
11484
|
-
}
|
|
11485
|
-
function inList(name, list) {
|
|
11486
|
-
for (var v = list; v; v = v.next) if (v.name == name) return true
|
|
11487
|
-
return false;
|
|
11488
|
-
}
|
|
11489
|
-
function register(varname) {
|
|
11490
|
-
var state = cx.state;
|
|
11491
|
-
cx.marked = "def";
|
|
11492
|
-
if (!trackScope) return
|
|
11493
|
-
if (state.context) {
|
|
11494
|
-
if (state.lexical.info == "var" && state.context && state.context.block) {
|
|
11495
|
-
// FIXME function decls are also not block scoped
|
|
11496
|
-
var newContext = registerVarScoped(varname, state.context);
|
|
11497
|
-
if (newContext != null) {
|
|
11498
|
-
state.context = newContext;
|
|
11499
|
-
return
|
|
11500
|
-
}
|
|
11501
|
-
} else if (!inList(varname, state.localVars)) {
|
|
11502
|
-
state.localVars = new Var(varname, state.localVars);
|
|
11503
|
-
return
|
|
11504
|
-
}
|
|
11505
|
-
}
|
|
11506
|
-
// Fall through means this is global
|
|
11507
|
-
if (parserConfig.globalVars && !inList(varname, state.globalVars))
|
|
11508
|
-
state.globalVars = new Var(varname, state.globalVars);
|
|
11509
|
-
}
|
|
11510
|
-
function registerVarScoped(varname, context) {
|
|
11511
|
-
if (!context) {
|
|
11512
|
-
return null
|
|
11513
|
-
} else if (context.block) {
|
|
11514
|
-
var inner = registerVarScoped(varname, context.prev);
|
|
11515
|
-
if (!inner) return null
|
|
11516
|
-
if (inner == context.prev) return context
|
|
11517
|
-
return new Context(inner, context.vars, true)
|
|
11518
|
-
} else if (inList(varname, context.vars)) {
|
|
11519
|
-
return context
|
|
11520
|
-
} else {
|
|
11521
|
-
return new Context(context.prev, new Var(varname, context.vars), false)
|
|
11522
|
-
}
|
|
11523
|
-
}
|
|
11609
|
+
function Context(prev, vars, block) { this.prev = prev; this.vars = vars; this.block = block; }
|
|
11610
|
+
function Var(name, next) { this.name = name; this.next = next; }
|
|
11524
11611
|
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11612
|
+
var defaultVars = new Var("this", new Var("arguments", null));
|
|
11613
|
+
function pushcontext() {
|
|
11614
|
+
cx.state.context = new Context(cx.state.context, cx.state.localVars, false);
|
|
11615
|
+
cx.state.localVars = defaultVars;
|
|
11616
|
+
}
|
|
11617
|
+
function pushblockcontext() {
|
|
11618
|
+
cx.state.context = new Context(cx.state.context, cx.state.localVars, true);
|
|
11619
|
+
cx.state.localVars = null;
|
|
11620
|
+
}
|
|
11621
|
+
pushcontext.lex = pushblockcontext.lex = true;
|
|
11622
|
+
function popcontext() {
|
|
11623
|
+
cx.state.localVars = cx.state.context.vars;
|
|
11624
|
+
cx.state.context = cx.state.context.prev;
|
|
11625
|
+
}
|
|
11626
|
+
popcontext.lex = true;
|
|
11627
|
+
function pushlex(type, info) {
|
|
11628
|
+
var result = function() {
|
|
11629
|
+
var state = cx.state, indent = state.indented;
|
|
11630
|
+
if (state.lexical.type == "stat") indent = state.lexical.indented;
|
|
11631
|
+
else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
|
|
11632
|
+
indent = outer.indented;
|
|
11633
|
+
state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
|
|
11634
|
+
};
|
|
11635
|
+
result.lex = true;
|
|
11636
|
+
return result;
|
|
11637
|
+
}
|
|
11638
|
+
function poplex() {
|
|
11639
|
+
var state = cx.state;
|
|
11640
|
+
if (state.lexical.prev) {
|
|
11641
|
+
if (state.lexical.type == ")")
|
|
11642
|
+
state.indented = state.lexical.indented;
|
|
11643
|
+
state.lexical = state.lexical.prev;
|
|
11644
|
+
}
|
|
11645
|
+
}
|
|
11646
|
+
poplex.lex = true;
|
|
11647
|
+
|
|
11648
|
+
function expect(wanted) {
|
|
11649
|
+
function exp(type) {
|
|
11650
|
+
if (type == wanted) return cont();
|
|
11651
|
+
else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass();
|
|
11652
|
+
else return cont(exp);
|
|
11653
|
+
} return exp;
|
|
11654
|
+
}
|
|
11655
|
+
|
|
11656
|
+
function statement(type, value) {
|
|
11657
|
+
if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
|
|
11658
|
+
if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
|
|
11659
|
+
if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
|
|
11660
|
+
if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
|
|
11661
|
+
if (type == "debugger") return cont(expect(";"));
|
|
11662
|
+
if (type == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
|
|
11663
|
+
if (type == ";") return cont();
|
|
11664
|
+
if (type == "if") {
|
|
11665
|
+
if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
|
|
11666
|
+
cx.state.cc.pop()();
|
|
11667
|
+
return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
|
|
11668
|
+
}
|
|
11669
|
+
if (type == "function") return cont(functiondef);
|
|
11670
|
+
if (type == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
|
|
11671
|
+
if (type == "class" || (isTS && value == "interface")) {
|
|
11672
|
+
cx.marked = "keyword";
|
|
11673
|
+
return cont(pushlex("form", type == "class" ? type : value), className, poplex)
|
|
11674
|
+
}
|
|
11675
|
+
if (type == "variable") {
|
|
11676
|
+
if (isTS && value == "declare") {
|
|
11677
|
+
cx.marked = "keyword";
|
|
11678
|
+
return cont(statement)
|
|
11679
|
+
} else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
|
|
11680
|
+
cx.marked = "keyword";
|
|
11681
|
+
if (value == "enum") return cont(enumdef);
|
|
11682
|
+
else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));
|
|
11683
|
+
else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex)
|
|
11684
|
+
} else if (isTS && value == "namespace") {
|
|
11685
|
+
cx.marked = "keyword";
|
|
11686
|
+
return cont(pushlex("form"), expression, statement, poplex)
|
|
11687
|
+
} else if (isTS && value == "abstract") {
|
|
11688
|
+
cx.marked = "keyword";
|
|
11689
|
+
return cont(statement)
|
|
11690
|
+
} else {
|
|
11691
|
+
return cont(pushlex("stat"), maybelabel);
|
|
11692
|
+
}
|
|
11693
|
+
}
|
|
11694
|
+
if (type == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext,
|
|
11695
|
+
block, poplex, poplex, popcontext);
|
|
11696
|
+
if (type == "case") return cont(expression, expect(":"));
|
|
11697
|
+
if (type == "default") return cont(expect(":"));
|
|
11698
|
+
if (type == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
|
|
11699
|
+
if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
|
|
11700
|
+
if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
|
|
11701
|
+
if (type == "async") return cont(statement)
|
|
11702
|
+
if (value == "@") return cont(expression, statement)
|
|
11703
|
+
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
|
11704
|
+
}
|
|
11705
|
+
function maybeCatchBinding(type) {
|
|
11706
|
+
if (type == "(") return cont(funarg, expect(")"))
|
|
11707
|
+
}
|
|
11708
|
+
function expression(type, value) {
|
|
11709
|
+
return expressionInner(type, value, false);
|
|
11710
|
+
}
|
|
11711
|
+
function expressionNoComma(type, value) {
|
|
11712
|
+
return expressionInner(type, value, true);
|
|
11713
|
+
}
|
|
11714
|
+
function parenExpr(type) {
|
|
11715
|
+
if (type != "(") return pass()
|
|
11716
|
+
return cont(pushlex(")"), maybeexpression, expect(")"), poplex)
|
|
11717
|
+
}
|
|
11718
|
+
function expressionInner(type, value, noComma) {
|
|
11719
|
+
if (cx.state.fatArrowAt == cx.stream.start) {
|
|
11720
|
+
var body = noComma ? arrowBodyNoComma : arrowBody;
|
|
11721
|
+
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);
|
|
11722
|
+
else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
|
|
11723
|
+
}
|
|
11724
|
+
|
|
11725
|
+
var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
|
|
11726
|
+
if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
|
|
11727
|
+
if (type == "function") return cont(functiondef, maybeop);
|
|
11728
|
+
if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword"; return cont(pushlex("form"), classExpression, poplex); }
|
|
11729
|
+
if (type == "keyword c" || type == "async") return cont(noComma ? expressionNoComma : expression);
|
|
11730
|
+
if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
|
|
11731
|
+
if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
|
|
11732
|
+
if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
|
|
11733
|
+
if (type == "{") return contCommasep(objprop, "}", null, maybeop);
|
|
11734
|
+
if (type == "quasi") return pass(quasi, maybeop);
|
|
11735
|
+
if (type == "new") return cont(maybeTarget(noComma));
|
|
11736
|
+
return cont();
|
|
11737
|
+
}
|
|
11738
|
+
function maybeexpression(type) {
|
|
11739
|
+
if (type.match(/[;\}\)\],]/)) return pass();
|
|
11740
|
+
return pass(expression);
|
|
11741
|
+
}
|
|
11742
|
+
|
|
11743
|
+
function maybeoperatorComma(type, value) {
|
|
11744
|
+
if (type == ",") return cont(maybeexpression);
|
|
11745
|
+
return maybeoperatorNoComma(type, value, false);
|
|
11746
|
+
}
|
|
11747
|
+
function maybeoperatorNoComma(type, value, noComma) {
|
|
11748
|
+
var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
|
|
11749
|
+
var expr = noComma == false ? expression : expressionNoComma;
|
|
11750
|
+
if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
|
|
11751
|
+
if (type == "operator") {
|
|
11752
|
+
if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
|
|
11753
|
+
if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false))
|
|
11754
|
+
return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
|
|
11755
|
+
if (value == "?") return cont(expression, expect(":"), expr);
|
|
11756
|
+
return cont(expr);
|
|
11757
|
+
}
|
|
11758
|
+
if (type == "quasi") { return pass(quasi, me); }
|
|
11759
|
+
if (type == ";") return;
|
|
11760
|
+
if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
|
|
11761
|
+
if (type == ".") return cont(property, me);
|
|
11762
|
+
if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
|
|
11763
|
+
if (isTS && value == "as") { cx.marked = "keyword"; return cont(typeexpr, me) }
|
|
11764
|
+
if (type == "regexp") {
|
|
11765
|
+
cx.state.lastType = cx.marked = "operator";
|
|
11766
|
+
cx.stream.backUp(cx.stream.pos - cx.stream.start - 1);
|
|
11767
|
+
return cont(expr)
|
|
11768
|
+
}
|
|
11769
|
+
}
|
|
11770
|
+
function quasi(type, value) {
|
|
11771
|
+
if (type != "quasi") return pass();
|
|
11772
|
+
if (value.slice(value.length - 2) != "${") return cont(quasi);
|
|
11773
|
+
return cont(maybeexpression, continueQuasi);
|
|
11774
|
+
}
|
|
11775
|
+
function continueQuasi(type) {
|
|
11776
|
+
if (type == "}") {
|
|
11777
|
+
cx.marked = "string-2";
|
|
11778
|
+
cx.state.tokenize = tokenQuasi;
|
|
11779
|
+
return cont(quasi);
|
|
11780
|
+
}
|
|
11781
|
+
}
|
|
11782
|
+
function arrowBody(type) {
|
|
11783
|
+
findFatArrow(cx.stream, cx.state);
|
|
11784
|
+
return pass(type == "{" ? statement : expression);
|
|
11785
|
+
}
|
|
11786
|
+
function arrowBodyNoComma(type) {
|
|
11787
|
+
findFatArrow(cx.stream, cx.state);
|
|
11788
|
+
return pass(type == "{" ? statement : expressionNoComma);
|
|
11789
|
+
}
|
|
11790
|
+
function maybeTarget(noComma) {
|
|
11791
|
+
return function(type) {
|
|
11792
|
+
if (type == ".") return cont(noComma ? targetNoComma : target);
|
|
11793
|
+
else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma)
|
|
11794
|
+
else return pass(noComma ? expressionNoComma : expression);
|
|
11795
|
+
};
|
|
11796
|
+
}
|
|
11797
|
+
function target(_, value) {
|
|
11798
|
+
if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
|
|
11799
|
+
}
|
|
11800
|
+
function targetNoComma(_, value) {
|
|
11801
|
+
if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
|
|
11802
|
+
}
|
|
11803
|
+
function maybelabel(type) {
|
|
11804
|
+
if (type == ":") return cont(poplex, statement);
|
|
11805
|
+
return pass(maybeoperatorComma, expect(";"), poplex);
|
|
11806
|
+
}
|
|
11807
|
+
function property(type) {
|
|
11808
|
+
if (type == "variable") {cx.marked = "property"; return cont();}
|
|
11809
|
+
}
|
|
11810
|
+
function objprop(type, value) {
|
|
11811
|
+
if (type == "async") {
|
|
11812
|
+
cx.marked = "property";
|
|
11813
|
+
return cont(objprop);
|
|
11814
|
+
} else if (type == "variable" || cx.style == "keyword") {
|
|
11815
|
+
cx.marked = "property";
|
|
11816
|
+
if (value == "get" || value == "set") return cont(getterSetter);
|
|
11817
|
+
var m; // Work around fat-arrow-detection complication for detecting typescript typed arrow params
|
|
11818
|
+
if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false)))
|
|
11819
|
+
cx.state.fatArrowAt = cx.stream.pos + m[0].length;
|
|
11820
|
+
return cont(afterprop);
|
|
11821
|
+
} else if (type == "number" || type == "string") {
|
|
11822
|
+
cx.marked = jsonldMode ? "property" : (cx.style + " property");
|
|
11823
|
+
return cont(afterprop);
|
|
11824
|
+
} else if (type == "jsonld-keyword") {
|
|
11825
|
+
return cont(afterprop);
|
|
11826
|
+
} else if (isTS && isModifier(value)) {
|
|
11827
|
+
cx.marked = "keyword";
|
|
11828
|
+
return cont(objprop)
|
|
11829
|
+
} else if (type == "[") {
|
|
11830
|
+
return cont(expression, maybetype, expect("]"), afterprop);
|
|
11831
|
+
} else if (type == "spread") {
|
|
11832
|
+
return cont(expressionNoComma, afterprop);
|
|
11833
|
+
} else if (value == "*") {
|
|
11834
|
+
cx.marked = "keyword";
|
|
11835
|
+
return cont(objprop);
|
|
11836
|
+
} else if (type == ":") {
|
|
11837
|
+
return pass(afterprop)
|
|
11838
|
+
}
|
|
11839
|
+
}
|
|
11840
|
+
function getterSetter(type) {
|
|
11841
|
+
if (type != "variable") return pass(afterprop);
|
|
11842
|
+
cx.marked = "property";
|
|
11843
|
+
return cont(functiondef);
|
|
11844
|
+
}
|
|
11845
|
+
function afterprop(type) {
|
|
11846
|
+
if (type == ":") return cont(expressionNoComma);
|
|
11847
|
+
if (type == "(") return pass(functiondef);
|
|
11848
|
+
}
|
|
11849
|
+
function commasep(what, end, sep) {
|
|
11850
|
+
function proceed(type, value) {
|
|
11851
|
+
if (sep ? sep.indexOf(type) > -1 : type == ",") {
|
|
11852
|
+
var lex = cx.state.lexical;
|
|
11853
|
+
if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
|
|
11854
|
+
return cont(function(type, value) {
|
|
11855
|
+
if (type == end || value == end) return pass()
|
|
11856
|
+
return pass(what)
|
|
11857
|
+
}, proceed);
|
|
11858
|
+
}
|
|
11859
|
+
if (type == end || value == end) return cont();
|
|
11860
|
+
if (sep && sep.indexOf(";") > -1) return pass(what)
|
|
11861
|
+
return cont(expect(end));
|
|
11862
|
+
}
|
|
11863
|
+
return function(type, value) {
|
|
11864
|
+
if (type == end || value == end) return cont();
|
|
11865
|
+
return pass(what, proceed);
|
|
11866
|
+
};
|
|
11867
|
+
}
|
|
11868
|
+
function contCommasep(what, end, info) {
|
|
11869
|
+
for (var i = 3; i < arguments.length; i++)
|
|
11870
|
+
cx.cc.push(arguments[i]);
|
|
11871
|
+
return cont(pushlex(end, info), commasep(what, end), poplex);
|
|
11872
|
+
}
|
|
11873
|
+
function block(type) {
|
|
11874
|
+
if (type == "}") return cont();
|
|
11875
|
+
return pass(statement, block);
|
|
11876
|
+
}
|
|
11877
|
+
function maybetype(type, value) {
|
|
11878
|
+
if (isTS) {
|
|
11879
|
+
if (type == ":") return cont(typeexpr);
|
|
11880
|
+
if (value == "?") return cont(maybetype);
|
|
11881
|
+
}
|
|
11882
|
+
}
|
|
11883
|
+
function maybetypeOrIn(type, value) {
|
|
11884
|
+
if (isTS && (type == ":" || value == "in")) return cont(typeexpr)
|
|
11885
|
+
}
|
|
11886
|
+
function mayberettype(type) {
|
|
11887
|
+
if (isTS && type == ":") {
|
|
11888
|
+
if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr)
|
|
11889
|
+
else return cont(typeexpr)
|
|
11890
|
+
}
|
|
11891
|
+
}
|
|
11892
|
+
function isKW(_, value) {
|
|
11893
|
+
if (value == "is") {
|
|
11894
|
+
cx.marked = "keyword";
|
|
11895
|
+
return cont()
|
|
11896
|
+
}
|
|
11897
|
+
}
|
|
11898
|
+
function typeexpr(type, value) {
|
|
11899
|
+
if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
|
|
11900
|
+
cx.marked = "keyword";
|
|
11901
|
+
return cont(value == "typeof" ? expressionNoComma : typeexpr)
|
|
11902
|
+
}
|
|
11903
|
+
if (type == "variable" || value == "void") {
|
|
11904
|
+
cx.marked = "type";
|
|
11905
|
+
return cont(afterType)
|
|
11906
|
+
}
|
|
11907
|
+
if (value == "|" || value == "&") return cont(typeexpr)
|
|
11908
|
+
if (type == "string" || type == "number" || type == "atom") return cont(afterType);
|
|
11909
|
+
if (type == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType)
|
|
11910
|
+
if (type == "{") return cont(pushlex("}"), typeprops, poplex, afterType)
|
|
11911
|
+
if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType)
|
|
11912
|
+
if (type == "<") return cont(commasep(typeexpr, ">"), typeexpr)
|
|
11913
|
+
if (type == "quasi") { return pass(quasiType, afterType); }
|
|
11914
|
+
}
|
|
11915
|
+
function maybeReturnType(type) {
|
|
11916
|
+
if (type == "=>") return cont(typeexpr)
|
|
11917
|
+
}
|
|
11918
|
+
function typeprops(type) {
|
|
11919
|
+
if (type.match(/[\}\)\]]/)) return cont()
|
|
11920
|
+
if (type == "," || type == ";") return cont(typeprops)
|
|
11921
|
+
return pass(typeprop, typeprops)
|
|
11922
|
+
}
|
|
11923
|
+
function typeprop(type, value) {
|
|
11924
|
+
if (type == "variable" || cx.style == "keyword") {
|
|
11925
|
+
cx.marked = "property";
|
|
11926
|
+
return cont(typeprop)
|
|
11927
|
+
} else if (value == "?" || type == "number" || type == "string") {
|
|
11928
|
+
return cont(typeprop)
|
|
11929
|
+
} else if (type == ":") {
|
|
11930
|
+
return cont(typeexpr)
|
|
11931
|
+
} else if (type == "[") {
|
|
11932
|
+
return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop)
|
|
11933
|
+
} else if (type == "(") {
|
|
11934
|
+
return pass(functiondecl, typeprop)
|
|
11935
|
+
} else if (!type.match(/[;\}\)\],]/)) {
|
|
11936
|
+
return cont()
|
|
11937
|
+
}
|
|
11938
|
+
}
|
|
11939
|
+
function quasiType(type, value) {
|
|
11940
|
+
if (type != "quasi") return pass();
|
|
11941
|
+
if (value.slice(value.length - 2) != "${") return cont(quasiType);
|
|
11942
|
+
return cont(typeexpr, continueQuasiType);
|
|
11943
|
+
}
|
|
11944
|
+
function continueQuasiType(type) {
|
|
11945
|
+
if (type == "}") {
|
|
11946
|
+
cx.marked = "string-2";
|
|
11947
|
+
cx.state.tokenize = tokenQuasi;
|
|
11948
|
+
return cont(quasiType);
|
|
11949
|
+
}
|
|
11950
|
+
}
|
|
11951
|
+
function typearg(type, value) {
|
|
11952
|
+
if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg)
|
|
11953
|
+
if (type == ":") return cont(typeexpr)
|
|
11954
|
+
if (type == "spread") return cont(typearg)
|
|
11955
|
+
return pass(typeexpr)
|
|
11956
|
+
}
|
|
11957
|
+
function afterType(type, value) {
|
|
11958
|
+
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
|
|
11959
|
+
if (value == "|" || type == "." || value == "&") return cont(typeexpr)
|
|
11960
|
+
if (type == "[") return cont(typeexpr, expect("]"), afterType)
|
|
11961
|
+
if (value == "extends" || value == "implements") { cx.marked = "keyword"; return cont(typeexpr) }
|
|
11962
|
+
if (value == "?") return cont(typeexpr, expect(":"), typeexpr)
|
|
11963
|
+
}
|
|
11964
|
+
function maybeTypeArgs(_, value) {
|
|
11965
|
+
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
|
|
11966
|
+
}
|
|
11967
|
+
function typeparam() {
|
|
11968
|
+
return pass(typeexpr, maybeTypeDefault)
|
|
11969
|
+
}
|
|
11970
|
+
function maybeTypeDefault(_, value) {
|
|
11971
|
+
if (value == "=") return cont(typeexpr)
|
|
11972
|
+
}
|
|
11973
|
+
function vardef(_, value) {
|
|
11974
|
+
if (value == "enum") {cx.marked = "keyword"; return cont(enumdef)}
|
|
11975
|
+
return pass(pattern, maybetype, maybeAssign, vardefCont);
|
|
11976
|
+
}
|
|
11977
|
+
function pattern(type, value) {
|
|
11978
|
+
if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) }
|
|
11979
|
+
if (type == "variable") { register(value); return cont(); }
|
|
11980
|
+
if (type == "spread") return cont(pattern);
|
|
11981
|
+
if (type == "[") return contCommasep(eltpattern, "]");
|
|
11982
|
+
if (type == "{") return contCommasep(proppattern, "}");
|
|
11983
|
+
}
|
|
11984
|
+
function proppattern(type, value) {
|
|
11985
|
+
if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
|
|
11986
|
+
register(value);
|
|
11987
|
+
return cont(maybeAssign);
|
|
11988
|
+
}
|
|
11989
|
+
if (type == "variable") cx.marked = "property";
|
|
11990
|
+
if (type == "spread") return cont(pattern);
|
|
11991
|
+
if (type == "}") return pass();
|
|
11992
|
+
if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern);
|
|
11993
|
+
return cont(expect(":"), pattern, maybeAssign);
|
|
11994
|
+
}
|
|
11995
|
+
function eltpattern() {
|
|
11996
|
+
return pass(pattern, maybeAssign)
|
|
11997
|
+
}
|
|
11998
|
+
function maybeAssign(_type, value) {
|
|
11999
|
+
if (value == "=") return cont(expressionNoComma);
|
|
12000
|
+
}
|
|
12001
|
+
function vardefCont(type) {
|
|
12002
|
+
if (type == ",") return cont(vardef);
|
|
12003
|
+
}
|
|
12004
|
+
function maybeelse(type, value) {
|
|
12005
|
+
if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
|
|
12006
|
+
}
|
|
12007
|
+
function forspec(type, value) {
|
|
12008
|
+
if (value == "await") return cont(forspec);
|
|
12009
|
+
if (type == "(") return cont(pushlex(")"), forspec1, poplex);
|
|
12010
|
+
}
|
|
12011
|
+
function forspec1(type) {
|
|
12012
|
+
if (type == "var") return cont(vardef, forspec2);
|
|
12013
|
+
if (type == "variable") return cont(forspec2);
|
|
12014
|
+
return pass(forspec2)
|
|
12015
|
+
}
|
|
12016
|
+
function forspec2(type, value) {
|
|
12017
|
+
if (type == ")") return cont()
|
|
12018
|
+
if (type == ";") return cont(forspec2)
|
|
12019
|
+
if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression, forspec2) }
|
|
12020
|
+
return pass(expression, forspec2)
|
|
12021
|
+
}
|
|
12022
|
+
function functiondef(type, value) {
|
|
12023
|
+
if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
|
|
12024
|
+
if (type == "variable") {register(value); return cont(functiondef);}
|
|
12025
|
+
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
|
|
12026
|
+
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef)
|
|
12027
|
+
}
|
|
12028
|
+
function functiondecl(type, value) {
|
|
12029
|
+
if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);}
|
|
12030
|
+
if (type == "variable") {register(value); return cont(functiondecl);}
|
|
12031
|
+
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
|
|
12032
|
+
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
|
|
12033
|
+
}
|
|
12034
|
+
function typename(type, value) {
|
|
12035
|
+
if (type == "keyword" || type == "variable") {
|
|
12036
|
+
cx.marked = "type";
|
|
12037
|
+
return cont(typename)
|
|
12038
|
+
} else if (value == "<") {
|
|
12039
|
+
return cont(pushlex(">"), commasep(typeparam, ">"), poplex)
|
|
12040
|
+
}
|
|
12041
|
+
}
|
|
12042
|
+
function funarg(type, value) {
|
|
12043
|
+
if (value == "@") cont(expression, funarg);
|
|
12044
|
+
if (type == "spread") return cont(funarg);
|
|
12045
|
+
if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(funarg); }
|
|
12046
|
+
if (isTS && type == "this") return cont(maybetype, maybeAssign)
|
|
12047
|
+
return pass(pattern, maybetype, maybeAssign);
|
|
12048
|
+
}
|
|
12049
|
+
function classExpression(type, value) {
|
|
12050
|
+
// Class expressions may have an optional name.
|
|
12051
|
+
if (type == "variable") return className(type, value);
|
|
12052
|
+
return classNameAfter(type, value);
|
|
12053
|
+
}
|
|
12054
|
+
function className(type, value) {
|
|
12055
|
+
if (type == "variable") {register(value); return cont(classNameAfter);}
|
|
12056
|
+
}
|
|
12057
|
+
function classNameAfter(type, value) {
|
|
12058
|
+
if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter)
|
|
12059
|
+
if (value == "extends" || value == "implements" || (isTS && type == ",")) {
|
|
12060
|
+
if (value == "implements") cx.marked = "keyword";
|
|
12061
|
+
return cont(isTS ? typeexpr : expression, classNameAfter);
|
|
12062
|
+
}
|
|
12063
|
+
if (type == "{") return cont(pushlex("}"), classBody, poplex);
|
|
12064
|
+
}
|
|
12065
|
+
function classBody(type, value) {
|
|
12066
|
+
if (type == "async" ||
|
|
12067
|
+
(type == "variable" &&
|
|
12068
|
+
(value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
|
|
12069
|
+
cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false))) {
|
|
12070
|
+
cx.marked = "keyword";
|
|
12071
|
+
return cont(classBody);
|
|
12072
|
+
}
|
|
12073
|
+
if (type == "variable" || cx.style == "keyword") {
|
|
12074
|
+
cx.marked = "property";
|
|
12075
|
+
return cont(classfield, classBody);
|
|
12076
|
+
}
|
|
12077
|
+
if (type == "number" || type == "string") return cont(classfield, classBody);
|
|
12078
|
+
if (type == "[")
|
|
12079
|
+
return cont(expression, maybetype, expect("]"), classfield, classBody)
|
|
12080
|
+
if (value == "*") {
|
|
12081
|
+
cx.marked = "keyword";
|
|
12082
|
+
return cont(classBody);
|
|
12083
|
+
}
|
|
12084
|
+
if (isTS && type == "(") return pass(functiondecl, classBody)
|
|
12085
|
+
if (type == ";" || type == ",") return cont(classBody);
|
|
12086
|
+
if (type == "}") return cont();
|
|
12087
|
+
if (value == "@") return cont(expression, classBody)
|
|
12088
|
+
}
|
|
12089
|
+
function classfield(type, value) {
|
|
12090
|
+
if (value == "!") return cont(classfield)
|
|
12091
|
+
if (value == "?") return cont(classfield)
|
|
12092
|
+
if (type == ":") return cont(typeexpr, maybeAssign)
|
|
12093
|
+
if (value == "=") return cont(expressionNoComma)
|
|
12094
|
+
var context = cx.state.lexical.prev, isInterface = context && context.info == "interface";
|
|
12095
|
+
return pass(isInterface ? functiondecl : functiondef)
|
|
12096
|
+
}
|
|
12097
|
+
function afterExport(type, value) {
|
|
12098
|
+
if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
|
|
12099
|
+
if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
|
|
12100
|
+
if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
|
|
12101
|
+
return pass(statement);
|
|
12102
|
+
}
|
|
12103
|
+
function exportField(type, value) {
|
|
12104
|
+
if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
|
|
12105
|
+
if (type == "variable") return pass(expressionNoComma, exportField);
|
|
12106
|
+
}
|
|
12107
|
+
function afterImport(type) {
|
|
12108
|
+
if (type == "string") return cont();
|
|
12109
|
+
if (type == "(") return pass(expression);
|
|
12110
|
+
if (type == ".") return pass(maybeoperatorComma);
|
|
12111
|
+
return pass(importSpec, maybeMoreImports, maybeFrom);
|
|
12112
|
+
}
|
|
12113
|
+
function importSpec(type, value) {
|
|
12114
|
+
if (type == "{") return contCommasep(importSpec, "}");
|
|
12115
|
+
if (type == "variable") register(value);
|
|
12116
|
+
if (value == "*") cx.marked = "keyword";
|
|
12117
|
+
return cont(maybeAs);
|
|
12118
|
+
}
|
|
12119
|
+
function maybeMoreImports(type) {
|
|
12120
|
+
if (type == ",") return cont(importSpec, maybeMoreImports)
|
|
12121
|
+
}
|
|
12122
|
+
function maybeAs(_type, value) {
|
|
12123
|
+
if (value == "as") { cx.marked = "keyword"; return cont(importSpec); }
|
|
12124
|
+
}
|
|
12125
|
+
function maybeFrom(_type, value) {
|
|
12126
|
+
if (value == "from") { cx.marked = "keyword"; return cont(expression); }
|
|
12127
|
+
}
|
|
12128
|
+
function arrayLiteral(type) {
|
|
12129
|
+
if (type == "]") return cont();
|
|
12130
|
+
return pass(commasep(expressionNoComma, "]"));
|
|
12131
|
+
}
|
|
12132
|
+
function enumdef() {
|
|
12133
|
+
return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex)
|
|
12134
|
+
}
|
|
12135
|
+
function enummember() {
|
|
12136
|
+
return pass(pattern, maybeAssign);
|
|
12137
|
+
}
|
|
11528
12138
|
|
|
11529
|
-
|
|
12139
|
+
function isContinuedStatement(state, textAfter) {
|
|
12140
|
+
return state.lastType == "operator" || state.lastType == "," ||
|
|
12141
|
+
isOperatorChar.test(textAfter.charAt(0)) ||
|
|
12142
|
+
/[,.]/.test(textAfter.charAt(0));
|
|
12143
|
+
}
|
|
11530
12144
|
|
|
11531
|
-
|
|
11532
|
-
|
|
12145
|
+
function expressionAllowed(stream, state, backUp) {
|
|
12146
|
+
return state.tokenize == tokenBase &&
|
|
12147
|
+
/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
|
|
12148
|
+
(state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
|
|
12149
|
+
}
|
|
11533
12150
|
|
|
11534
|
-
|
|
11535
|
-
function pushcontext() {
|
|
11536
|
-
cx.state.context = new Context(cx.state.context, cx.state.localVars, false);
|
|
11537
|
-
cx.state.localVars = defaultVars;
|
|
11538
|
-
}
|
|
11539
|
-
function pushblockcontext() {
|
|
11540
|
-
cx.state.context = new Context(cx.state.context, cx.state.localVars, true);
|
|
11541
|
-
cx.state.localVars = null;
|
|
11542
|
-
}
|
|
11543
|
-
pushcontext.lex = pushblockcontext.lex = true;
|
|
11544
|
-
function popcontext() {
|
|
11545
|
-
cx.state.localVars = cx.state.context.vars;
|
|
11546
|
-
cx.state.context = cx.state.context.prev;
|
|
11547
|
-
}
|
|
11548
|
-
popcontext.lex = true;
|
|
11549
|
-
function pushlex(type, info) {
|
|
11550
|
-
var result = function() {
|
|
11551
|
-
var state = cx.state, indent = state.indented;
|
|
11552
|
-
if (state.lexical.type == "stat") indent = state.lexical.indented;
|
|
11553
|
-
else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
|
|
11554
|
-
indent = outer.indented;
|
|
11555
|
-
state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
|
|
11556
|
-
};
|
|
11557
|
-
result.lex = true;
|
|
11558
|
-
return result;
|
|
11559
|
-
}
|
|
11560
|
-
function poplex() {
|
|
11561
|
-
var state = cx.state;
|
|
11562
|
-
if (state.lexical.prev) {
|
|
11563
|
-
if (state.lexical.type == ")")
|
|
11564
|
-
state.indented = state.lexical.indented;
|
|
11565
|
-
state.lexical = state.lexical.prev;
|
|
11566
|
-
}
|
|
11567
|
-
}
|
|
11568
|
-
poplex.lex = true;
|
|
11569
|
-
|
|
11570
|
-
function expect(wanted) {
|
|
11571
|
-
function exp(type) {
|
|
11572
|
-
if (type == wanted) return cont();
|
|
11573
|
-
else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass();
|
|
11574
|
-
else return cont(exp);
|
|
11575
|
-
} return exp;
|
|
11576
|
-
}
|
|
11577
|
-
|
|
11578
|
-
function statement(type, value) {
|
|
11579
|
-
if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
|
|
11580
|
-
if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
|
|
11581
|
-
if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
|
|
11582
|
-
if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
|
|
11583
|
-
if (type == "debugger") return cont(expect(";"));
|
|
11584
|
-
if (type == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
|
|
11585
|
-
if (type == ";") return cont();
|
|
11586
|
-
if (type == "if") {
|
|
11587
|
-
if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
|
|
11588
|
-
cx.state.cc.pop()();
|
|
11589
|
-
return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
|
|
11590
|
-
}
|
|
11591
|
-
if (type == "function") return cont(functiondef);
|
|
11592
|
-
if (type == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
|
|
11593
|
-
if (type == "class" || (isTS && value == "interface")) {
|
|
11594
|
-
cx.marked = "keyword";
|
|
11595
|
-
return cont(pushlex("form", type == "class" ? type : value), className, poplex)
|
|
11596
|
-
}
|
|
11597
|
-
if (type == "variable") {
|
|
11598
|
-
if (isTS && value == "declare") {
|
|
11599
|
-
cx.marked = "keyword";
|
|
11600
|
-
return cont(statement)
|
|
11601
|
-
} else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
|
|
11602
|
-
cx.marked = "keyword";
|
|
11603
|
-
if (value == "enum") return cont(enumdef);
|
|
11604
|
-
else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));
|
|
11605
|
-
else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex)
|
|
11606
|
-
} else if (isTS && value == "namespace") {
|
|
11607
|
-
cx.marked = "keyword";
|
|
11608
|
-
return cont(pushlex("form"), expression, statement, poplex)
|
|
11609
|
-
} else if (isTS && value == "abstract") {
|
|
11610
|
-
cx.marked = "keyword";
|
|
11611
|
-
return cont(statement)
|
|
11612
|
-
} else {
|
|
11613
|
-
return cont(pushlex("stat"), maybelabel);
|
|
11614
|
-
}
|
|
11615
|
-
}
|
|
11616
|
-
if (type == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext,
|
|
11617
|
-
block, poplex, poplex, popcontext);
|
|
11618
|
-
if (type == "case") return cont(expression, expect(":"));
|
|
11619
|
-
if (type == "default") return cont(expect(":"));
|
|
11620
|
-
if (type == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
|
|
11621
|
-
if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
|
|
11622
|
-
if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
|
|
11623
|
-
if (type == "async") return cont(statement)
|
|
11624
|
-
if (value == "@") return cont(expression, statement)
|
|
11625
|
-
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
|
11626
|
-
}
|
|
11627
|
-
function maybeCatchBinding(type) {
|
|
11628
|
-
if (type == "(") return cont(funarg, expect(")"))
|
|
11629
|
-
}
|
|
11630
|
-
function expression(type, value) {
|
|
11631
|
-
return expressionInner(type, value, false);
|
|
11632
|
-
}
|
|
11633
|
-
function expressionNoComma(type, value) {
|
|
11634
|
-
return expressionInner(type, value, true);
|
|
11635
|
-
}
|
|
11636
|
-
function parenExpr(type) {
|
|
11637
|
-
if (type != "(") return pass()
|
|
11638
|
-
return cont(pushlex(")"), maybeexpression, expect(")"), poplex)
|
|
11639
|
-
}
|
|
11640
|
-
function expressionInner(type, value, noComma) {
|
|
11641
|
-
if (cx.state.fatArrowAt == cx.stream.start) {
|
|
11642
|
-
var body = noComma ? arrowBodyNoComma : arrowBody;
|
|
11643
|
-
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);
|
|
11644
|
-
else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
|
|
11645
|
-
}
|
|
11646
|
-
|
|
11647
|
-
var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
|
|
11648
|
-
if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
|
|
11649
|
-
if (type == "function") return cont(functiondef, maybeop);
|
|
11650
|
-
if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword"; return cont(pushlex("form"), classExpression, poplex); }
|
|
11651
|
-
if (type == "keyword c" || type == "async") return cont(noComma ? expressionNoComma : expression);
|
|
11652
|
-
if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
|
|
11653
|
-
if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
|
|
11654
|
-
if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
|
|
11655
|
-
if (type == "{") return contCommasep(objprop, "}", null, maybeop);
|
|
11656
|
-
if (type == "quasi") return pass(quasi, maybeop);
|
|
11657
|
-
if (type == "new") return cont(maybeTarget(noComma));
|
|
11658
|
-
return cont();
|
|
11659
|
-
}
|
|
11660
|
-
function maybeexpression(type) {
|
|
11661
|
-
if (type.match(/[;\}\)\],]/)) return pass();
|
|
11662
|
-
return pass(expression);
|
|
11663
|
-
}
|
|
11664
|
-
|
|
11665
|
-
function maybeoperatorComma(type, value) {
|
|
11666
|
-
if (type == ",") return cont(maybeexpression);
|
|
11667
|
-
return maybeoperatorNoComma(type, value, false);
|
|
11668
|
-
}
|
|
11669
|
-
function maybeoperatorNoComma(type, value, noComma) {
|
|
11670
|
-
var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
|
|
11671
|
-
var expr = noComma == false ? expression : expressionNoComma;
|
|
11672
|
-
if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
|
|
11673
|
-
if (type == "operator") {
|
|
11674
|
-
if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
|
|
11675
|
-
if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false))
|
|
11676
|
-
return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
|
|
11677
|
-
if (value == "?") return cont(expression, expect(":"), expr);
|
|
11678
|
-
return cont(expr);
|
|
11679
|
-
}
|
|
11680
|
-
if (type == "quasi") { return pass(quasi, me); }
|
|
11681
|
-
if (type == ";") return;
|
|
11682
|
-
if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
|
|
11683
|
-
if (type == ".") return cont(property, me);
|
|
11684
|
-
if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
|
|
11685
|
-
if (isTS && value == "as") { cx.marked = "keyword"; return cont(typeexpr, me) }
|
|
11686
|
-
if (type == "regexp") {
|
|
11687
|
-
cx.state.lastType = cx.marked = "operator";
|
|
11688
|
-
cx.stream.backUp(cx.stream.pos - cx.stream.start - 1);
|
|
11689
|
-
return cont(expr)
|
|
11690
|
-
}
|
|
11691
|
-
}
|
|
11692
|
-
function quasi(type, value) {
|
|
11693
|
-
if (type != "quasi") return pass();
|
|
11694
|
-
if (value.slice(value.length - 2) != "${") return cont(quasi);
|
|
11695
|
-
return cont(maybeexpression, continueQuasi);
|
|
11696
|
-
}
|
|
11697
|
-
function continueQuasi(type) {
|
|
11698
|
-
if (type == "}") {
|
|
11699
|
-
cx.marked = "string-2";
|
|
11700
|
-
cx.state.tokenize = tokenQuasi;
|
|
11701
|
-
return cont(quasi);
|
|
11702
|
-
}
|
|
11703
|
-
}
|
|
11704
|
-
function arrowBody(type) {
|
|
11705
|
-
findFatArrow(cx.stream, cx.state);
|
|
11706
|
-
return pass(type == "{" ? statement : expression);
|
|
11707
|
-
}
|
|
11708
|
-
function arrowBodyNoComma(type) {
|
|
11709
|
-
findFatArrow(cx.stream, cx.state);
|
|
11710
|
-
return pass(type == "{" ? statement : expressionNoComma);
|
|
11711
|
-
}
|
|
11712
|
-
function maybeTarget(noComma) {
|
|
11713
|
-
return function(type) {
|
|
11714
|
-
if (type == ".") return cont(noComma ? targetNoComma : target);
|
|
11715
|
-
else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma)
|
|
11716
|
-
else return pass(noComma ? expressionNoComma : expression);
|
|
11717
|
-
};
|
|
11718
|
-
}
|
|
11719
|
-
function target(_, value) {
|
|
11720
|
-
if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
|
|
11721
|
-
}
|
|
11722
|
-
function targetNoComma(_, value) {
|
|
11723
|
-
if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
|
|
11724
|
-
}
|
|
11725
|
-
function maybelabel(type) {
|
|
11726
|
-
if (type == ":") return cont(poplex, statement);
|
|
11727
|
-
return pass(maybeoperatorComma, expect(";"), poplex);
|
|
11728
|
-
}
|
|
11729
|
-
function property(type) {
|
|
11730
|
-
if (type == "variable") {cx.marked = "property"; return cont();}
|
|
11731
|
-
}
|
|
11732
|
-
function objprop(type, value) {
|
|
11733
|
-
if (type == "async") {
|
|
11734
|
-
cx.marked = "property";
|
|
11735
|
-
return cont(objprop);
|
|
11736
|
-
} else if (type == "variable" || cx.style == "keyword") {
|
|
11737
|
-
cx.marked = "property";
|
|
11738
|
-
if (value == "get" || value == "set") return cont(getterSetter);
|
|
11739
|
-
var m; // Work around fat-arrow-detection complication for detecting typescript typed arrow params
|
|
11740
|
-
if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false)))
|
|
11741
|
-
cx.state.fatArrowAt = cx.stream.pos + m[0].length;
|
|
11742
|
-
return cont(afterprop);
|
|
11743
|
-
} else if (type == "number" || type == "string") {
|
|
11744
|
-
cx.marked = jsonldMode ? "property" : (cx.style + " property");
|
|
11745
|
-
return cont(afterprop);
|
|
11746
|
-
} else if (type == "jsonld-keyword") {
|
|
11747
|
-
return cont(afterprop);
|
|
11748
|
-
} else if (isTS && isModifier(value)) {
|
|
11749
|
-
cx.marked = "keyword";
|
|
11750
|
-
return cont(objprop)
|
|
11751
|
-
} else if (type == "[") {
|
|
11752
|
-
return cont(expression, maybetype, expect("]"), afterprop);
|
|
11753
|
-
} else if (type == "spread") {
|
|
11754
|
-
return cont(expressionNoComma, afterprop);
|
|
11755
|
-
} else if (value == "*") {
|
|
11756
|
-
cx.marked = "keyword";
|
|
11757
|
-
return cont(objprop);
|
|
11758
|
-
} else if (type == ":") {
|
|
11759
|
-
return pass(afterprop)
|
|
11760
|
-
}
|
|
11761
|
-
}
|
|
11762
|
-
function getterSetter(type) {
|
|
11763
|
-
if (type != "variable") return pass(afterprop);
|
|
11764
|
-
cx.marked = "property";
|
|
11765
|
-
return cont(functiondef);
|
|
11766
|
-
}
|
|
11767
|
-
function afterprop(type) {
|
|
11768
|
-
if (type == ":") return cont(expressionNoComma);
|
|
11769
|
-
if (type == "(") return pass(functiondef);
|
|
11770
|
-
}
|
|
11771
|
-
function commasep(what, end, sep) {
|
|
11772
|
-
function proceed(type, value) {
|
|
11773
|
-
if (sep ? sep.indexOf(type) > -1 : type == ",") {
|
|
11774
|
-
var lex = cx.state.lexical;
|
|
11775
|
-
if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
|
|
11776
|
-
return cont(function(type, value) {
|
|
11777
|
-
if (type == end || value == end) return pass()
|
|
11778
|
-
return pass(what)
|
|
11779
|
-
}, proceed);
|
|
11780
|
-
}
|
|
11781
|
-
if (type == end || value == end) return cont();
|
|
11782
|
-
if (sep && sep.indexOf(";") > -1) return pass(what)
|
|
11783
|
-
return cont(expect(end));
|
|
11784
|
-
}
|
|
11785
|
-
return function(type, value) {
|
|
11786
|
-
if (type == end || value == end) return cont();
|
|
11787
|
-
return pass(what, proceed);
|
|
11788
|
-
};
|
|
11789
|
-
}
|
|
11790
|
-
function contCommasep(what, end, info) {
|
|
11791
|
-
for (var i = 3; i < arguments.length; i++)
|
|
11792
|
-
cx.cc.push(arguments[i]);
|
|
11793
|
-
return cont(pushlex(end, info), commasep(what, end), poplex);
|
|
11794
|
-
}
|
|
11795
|
-
function block(type) {
|
|
11796
|
-
if (type == "}") return cont();
|
|
11797
|
-
return pass(statement, block);
|
|
11798
|
-
}
|
|
11799
|
-
function maybetype(type, value) {
|
|
11800
|
-
if (isTS) {
|
|
11801
|
-
if (type == ":") return cont(typeexpr);
|
|
11802
|
-
if (value == "?") return cont(maybetype);
|
|
11803
|
-
}
|
|
11804
|
-
}
|
|
11805
|
-
function maybetypeOrIn(type, value) {
|
|
11806
|
-
if (isTS && (type == ":" || value == "in")) return cont(typeexpr)
|
|
11807
|
-
}
|
|
11808
|
-
function mayberettype(type) {
|
|
11809
|
-
if (isTS && type == ":") {
|
|
11810
|
-
if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr)
|
|
11811
|
-
else return cont(typeexpr)
|
|
11812
|
-
}
|
|
11813
|
-
}
|
|
11814
|
-
function isKW(_, value) {
|
|
11815
|
-
if (value == "is") {
|
|
11816
|
-
cx.marked = "keyword";
|
|
11817
|
-
return cont()
|
|
11818
|
-
}
|
|
11819
|
-
}
|
|
11820
|
-
function typeexpr(type, value) {
|
|
11821
|
-
if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
|
|
11822
|
-
cx.marked = "keyword";
|
|
11823
|
-
return cont(value == "typeof" ? expressionNoComma : typeexpr)
|
|
11824
|
-
}
|
|
11825
|
-
if (type == "variable" || value == "void") {
|
|
11826
|
-
cx.marked = "type";
|
|
11827
|
-
return cont(afterType)
|
|
11828
|
-
}
|
|
11829
|
-
if (value == "|" || value == "&") return cont(typeexpr)
|
|
11830
|
-
if (type == "string" || type == "number" || type == "atom") return cont(afterType);
|
|
11831
|
-
if (type == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType)
|
|
11832
|
-
if (type == "{") return cont(pushlex("}"), typeprops, poplex, afterType)
|
|
11833
|
-
if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType)
|
|
11834
|
-
if (type == "<") return cont(commasep(typeexpr, ">"), typeexpr)
|
|
11835
|
-
if (type == "quasi") { return pass(quasiType, afterType); }
|
|
11836
|
-
}
|
|
11837
|
-
function maybeReturnType(type) {
|
|
11838
|
-
if (type == "=>") return cont(typeexpr)
|
|
11839
|
-
}
|
|
11840
|
-
function typeprops(type) {
|
|
11841
|
-
if (type.match(/[\}\)\]]/)) return cont()
|
|
11842
|
-
if (type == "," || type == ";") return cont(typeprops)
|
|
11843
|
-
return pass(typeprop, typeprops)
|
|
11844
|
-
}
|
|
11845
|
-
function typeprop(type, value) {
|
|
11846
|
-
if (type == "variable" || cx.style == "keyword") {
|
|
11847
|
-
cx.marked = "property";
|
|
11848
|
-
return cont(typeprop)
|
|
11849
|
-
} else if (value == "?" || type == "number" || type == "string") {
|
|
11850
|
-
return cont(typeprop)
|
|
11851
|
-
} else if (type == ":") {
|
|
11852
|
-
return cont(typeexpr)
|
|
11853
|
-
} else if (type == "[") {
|
|
11854
|
-
return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop)
|
|
11855
|
-
} else if (type == "(") {
|
|
11856
|
-
return pass(functiondecl, typeprop)
|
|
11857
|
-
} else if (!type.match(/[;\}\)\],]/)) {
|
|
11858
|
-
return cont()
|
|
11859
|
-
}
|
|
11860
|
-
}
|
|
11861
|
-
function quasiType(type, value) {
|
|
11862
|
-
if (type != "quasi") return pass();
|
|
11863
|
-
if (value.slice(value.length - 2) != "${") return cont(quasiType);
|
|
11864
|
-
return cont(typeexpr, continueQuasiType);
|
|
11865
|
-
}
|
|
11866
|
-
function continueQuasiType(type) {
|
|
11867
|
-
if (type == "}") {
|
|
11868
|
-
cx.marked = "string-2";
|
|
11869
|
-
cx.state.tokenize = tokenQuasi;
|
|
11870
|
-
return cont(quasiType);
|
|
11871
|
-
}
|
|
11872
|
-
}
|
|
11873
|
-
function typearg(type, value) {
|
|
11874
|
-
if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg)
|
|
11875
|
-
if (type == ":") return cont(typeexpr)
|
|
11876
|
-
if (type == "spread") return cont(typearg)
|
|
11877
|
-
return pass(typeexpr)
|
|
11878
|
-
}
|
|
11879
|
-
function afterType(type, value) {
|
|
11880
|
-
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
|
|
11881
|
-
if (value == "|" || type == "." || value == "&") return cont(typeexpr)
|
|
11882
|
-
if (type == "[") return cont(typeexpr, expect("]"), afterType)
|
|
11883
|
-
if (value == "extends" || value == "implements") { cx.marked = "keyword"; return cont(typeexpr) }
|
|
11884
|
-
if (value == "?") return cont(typeexpr, expect(":"), typeexpr)
|
|
11885
|
-
}
|
|
11886
|
-
function maybeTypeArgs(_, value) {
|
|
11887
|
-
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
|
|
11888
|
-
}
|
|
11889
|
-
function typeparam() {
|
|
11890
|
-
return pass(typeexpr, maybeTypeDefault)
|
|
11891
|
-
}
|
|
11892
|
-
function maybeTypeDefault(_, value) {
|
|
11893
|
-
if (value == "=") return cont(typeexpr)
|
|
11894
|
-
}
|
|
11895
|
-
function vardef(_, value) {
|
|
11896
|
-
if (value == "enum") {cx.marked = "keyword"; return cont(enumdef)}
|
|
11897
|
-
return pass(pattern, maybetype, maybeAssign, vardefCont);
|
|
11898
|
-
}
|
|
11899
|
-
function pattern(type, value) {
|
|
11900
|
-
if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) }
|
|
11901
|
-
if (type == "variable") { register(value); return cont(); }
|
|
11902
|
-
if (type == "spread") return cont(pattern);
|
|
11903
|
-
if (type == "[") return contCommasep(eltpattern, "]");
|
|
11904
|
-
if (type == "{") return contCommasep(proppattern, "}");
|
|
11905
|
-
}
|
|
11906
|
-
function proppattern(type, value) {
|
|
11907
|
-
if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
|
|
11908
|
-
register(value);
|
|
11909
|
-
return cont(maybeAssign);
|
|
11910
|
-
}
|
|
11911
|
-
if (type == "variable") cx.marked = "property";
|
|
11912
|
-
if (type == "spread") return cont(pattern);
|
|
11913
|
-
if (type == "}") return pass();
|
|
11914
|
-
if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern);
|
|
11915
|
-
return cont(expect(":"), pattern, maybeAssign);
|
|
11916
|
-
}
|
|
11917
|
-
function eltpattern() {
|
|
11918
|
-
return pass(pattern, maybeAssign)
|
|
11919
|
-
}
|
|
11920
|
-
function maybeAssign(_type, value) {
|
|
11921
|
-
if (value == "=") return cont(expressionNoComma);
|
|
11922
|
-
}
|
|
11923
|
-
function vardefCont(type) {
|
|
11924
|
-
if (type == ",") return cont(vardef);
|
|
11925
|
-
}
|
|
11926
|
-
function maybeelse(type, value) {
|
|
11927
|
-
if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
|
|
11928
|
-
}
|
|
11929
|
-
function forspec(type, value) {
|
|
11930
|
-
if (value == "await") return cont(forspec);
|
|
11931
|
-
if (type == "(") return cont(pushlex(")"), forspec1, poplex);
|
|
11932
|
-
}
|
|
11933
|
-
function forspec1(type) {
|
|
11934
|
-
if (type == "var") return cont(vardef, forspec2);
|
|
11935
|
-
if (type == "variable") return cont(forspec2);
|
|
11936
|
-
return pass(forspec2)
|
|
11937
|
-
}
|
|
11938
|
-
function forspec2(type, value) {
|
|
11939
|
-
if (type == ")") return cont()
|
|
11940
|
-
if (type == ";") return cont(forspec2)
|
|
11941
|
-
if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression, forspec2) }
|
|
11942
|
-
return pass(expression, forspec2)
|
|
11943
|
-
}
|
|
11944
|
-
function functiondef(type, value) {
|
|
11945
|
-
if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
|
|
11946
|
-
if (type == "variable") {register(value); return cont(functiondef);}
|
|
11947
|
-
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
|
|
11948
|
-
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef)
|
|
11949
|
-
}
|
|
11950
|
-
function functiondecl(type, value) {
|
|
11951
|
-
if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);}
|
|
11952
|
-
if (type == "variable") {register(value); return cont(functiondecl);}
|
|
11953
|
-
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
|
|
11954
|
-
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
|
|
11955
|
-
}
|
|
11956
|
-
function typename(type, value) {
|
|
11957
|
-
if (type == "keyword" || type == "variable") {
|
|
11958
|
-
cx.marked = "type";
|
|
11959
|
-
return cont(typename)
|
|
11960
|
-
} else if (value == "<") {
|
|
11961
|
-
return cont(pushlex(">"), commasep(typeparam, ">"), poplex)
|
|
11962
|
-
}
|
|
11963
|
-
}
|
|
11964
|
-
function funarg(type, value) {
|
|
11965
|
-
if (value == "@") cont(expression, funarg);
|
|
11966
|
-
if (type == "spread") return cont(funarg);
|
|
11967
|
-
if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(funarg); }
|
|
11968
|
-
if (isTS && type == "this") return cont(maybetype, maybeAssign)
|
|
11969
|
-
return pass(pattern, maybetype, maybeAssign);
|
|
11970
|
-
}
|
|
11971
|
-
function classExpression(type, value) {
|
|
11972
|
-
// Class expressions may have an optional name.
|
|
11973
|
-
if (type == "variable") return className(type, value);
|
|
11974
|
-
return classNameAfter(type, value);
|
|
11975
|
-
}
|
|
11976
|
-
function className(type, value) {
|
|
11977
|
-
if (type == "variable") {register(value); return cont(classNameAfter);}
|
|
11978
|
-
}
|
|
11979
|
-
function classNameAfter(type, value) {
|
|
11980
|
-
if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter)
|
|
11981
|
-
if (value == "extends" || value == "implements" || (isTS && type == ",")) {
|
|
11982
|
-
if (value == "implements") cx.marked = "keyword";
|
|
11983
|
-
return cont(isTS ? typeexpr : expression, classNameAfter);
|
|
11984
|
-
}
|
|
11985
|
-
if (type == "{") return cont(pushlex("}"), classBody, poplex);
|
|
11986
|
-
}
|
|
11987
|
-
function classBody(type, value) {
|
|
11988
|
-
if (type == "async" ||
|
|
11989
|
-
(type == "variable" &&
|
|
11990
|
-
(value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
|
|
11991
|
-
cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false))) {
|
|
11992
|
-
cx.marked = "keyword";
|
|
11993
|
-
return cont(classBody);
|
|
11994
|
-
}
|
|
11995
|
-
if (type == "variable" || cx.style == "keyword") {
|
|
11996
|
-
cx.marked = "property";
|
|
11997
|
-
return cont(classfield, classBody);
|
|
11998
|
-
}
|
|
11999
|
-
if (type == "number" || type == "string") return cont(classfield, classBody);
|
|
12000
|
-
if (type == "[")
|
|
12001
|
-
return cont(expression, maybetype, expect("]"), classfield, classBody)
|
|
12002
|
-
if (value == "*") {
|
|
12003
|
-
cx.marked = "keyword";
|
|
12004
|
-
return cont(classBody);
|
|
12005
|
-
}
|
|
12006
|
-
if (isTS && type == "(") return pass(functiondecl, classBody)
|
|
12007
|
-
if (type == ";" || type == ",") return cont(classBody);
|
|
12008
|
-
if (type == "}") return cont();
|
|
12009
|
-
if (value == "@") return cont(expression, classBody)
|
|
12010
|
-
}
|
|
12011
|
-
function classfield(type, value) {
|
|
12012
|
-
if (value == "!") return cont(classfield)
|
|
12013
|
-
if (value == "?") return cont(classfield)
|
|
12014
|
-
if (type == ":") return cont(typeexpr, maybeAssign)
|
|
12015
|
-
if (value == "=") return cont(expressionNoComma)
|
|
12016
|
-
var context = cx.state.lexical.prev, isInterface = context && context.info == "interface";
|
|
12017
|
-
return pass(isInterface ? functiondecl : functiondef)
|
|
12018
|
-
}
|
|
12019
|
-
function afterExport(type, value) {
|
|
12020
|
-
if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
|
|
12021
|
-
if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
|
|
12022
|
-
if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
|
|
12023
|
-
return pass(statement);
|
|
12024
|
-
}
|
|
12025
|
-
function exportField(type, value) {
|
|
12026
|
-
if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
|
|
12027
|
-
if (type == "variable") return pass(expressionNoComma, exportField);
|
|
12028
|
-
}
|
|
12029
|
-
function afterImport(type) {
|
|
12030
|
-
if (type == "string") return cont();
|
|
12031
|
-
if (type == "(") return pass(expression);
|
|
12032
|
-
if (type == ".") return pass(maybeoperatorComma);
|
|
12033
|
-
return pass(importSpec, maybeMoreImports, maybeFrom);
|
|
12034
|
-
}
|
|
12035
|
-
function importSpec(type, value) {
|
|
12036
|
-
if (type == "{") return contCommasep(importSpec, "}");
|
|
12037
|
-
if (type == "variable") register(value);
|
|
12038
|
-
if (value == "*") cx.marked = "keyword";
|
|
12039
|
-
return cont(maybeAs);
|
|
12040
|
-
}
|
|
12041
|
-
function maybeMoreImports(type) {
|
|
12042
|
-
if (type == ",") return cont(importSpec, maybeMoreImports)
|
|
12043
|
-
}
|
|
12044
|
-
function maybeAs(_type, value) {
|
|
12045
|
-
if (value == "as") { cx.marked = "keyword"; return cont(importSpec); }
|
|
12046
|
-
}
|
|
12047
|
-
function maybeFrom(_type, value) {
|
|
12048
|
-
if (value == "from") { cx.marked = "keyword"; return cont(expression); }
|
|
12049
|
-
}
|
|
12050
|
-
function arrayLiteral(type) {
|
|
12051
|
-
if (type == "]") return cont();
|
|
12052
|
-
return pass(commasep(expressionNoComma, "]"));
|
|
12053
|
-
}
|
|
12054
|
-
function enumdef() {
|
|
12055
|
-
return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex)
|
|
12056
|
-
}
|
|
12057
|
-
function enummember() {
|
|
12058
|
-
return pass(pattern, maybeAssign);
|
|
12059
|
-
}
|
|
12151
|
+
// Interface
|
|
12060
12152
|
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12070
|
-
|
|
12071
|
-
|
|
12153
|
+
return {
|
|
12154
|
+
startState: function(basecolumn) {
|
|
12155
|
+
var state = {
|
|
12156
|
+
tokenize: tokenBase,
|
|
12157
|
+
lastType: "sof",
|
|
12158
|
+
cc: [],
|
|
12159
|
+
lexical: new JSLexical((basecolumn || 0) - indentUnit, 0, "block", false),
|
|
12160
|
+
localVars: parserConfig.localVars,
|
|
12161
|
+
context: parserConfig.localVars && new Context(null, null, false),
|
|
12162
|
+
indented: basecolumn || 0
|
|
12163
|
+
};
|
|
12164
|
+
if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
|
|
12165
|
+
state.globalVars = parserConfig.globalVars;
|
|
12166
|
+
return state;
|
|
12167
|
+
},
|
|
12072
12168
|
|
|
12073
|
-
|
|
12169
|
+
token: function(stream, state) {
|
|
12170
|
+
if (stream.sol()) {
|
|
12171
|
+
if (!state.lexical.hasOwnProperty("align"))
|
|
12172
|
+
state.lexical.align = false;
|
|
12173
|
+
state.indented = stream.indentation();
|
|
12174
|
+
findFatArrow(stream, state);
|
|
12175
|
+
}
|
|
12176
|
+
if (state.tokenize != tokenComment && stream.eatSpace()) return null;
|
|
12177
|
+
var style = state.tokenize(stream, state);
|
|
12178
|
+
if (type == "comment") return style;
|
|
12179
|
+
state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
|
|
12180
|
+
return parseJS(state, style, type, content, stream);
|
|
12181
|
+
},
|
|
12074
12182
|
|
|
12075
|
-
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12183
|
+
indent: function(state, textAfter) {
|
|
12184
|
+
if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return CodeMirror.Pass;
|
|
12185
|
+
if (state.tokenize != tokenBase) return 0;
|
|
12186
|
+
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top;
|
|
12187
|
+
// Kludge to prevent 'maybelse' from blocking lexical scope pops
|
|
12188
|
+
if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
|
|
12189
|
+
var c = state.cc[i];
|
|
12190
|
+
if (c == poplex) lexical = lexical.prev;
|
|
12191
|
+
else if (c != maybeelse && c != popcontext) break;
|
|
12192
|
+
}
|
|
12193
|
+
while ((lexical.type == "stat" || lexical.type == "form") &&
|
|
12194
|
+
(firstChar == "}" || ((top = state.cc[state.cc.length - 1]) &&
|
|
12195
|
+
(top == maybeoperatorComma || top == maybeoperatorNoComma) &&
|
|
12196
|
+
!/^[,\.=+\-*:?[\(]/.test(textAfter))))
|
|
12197
|
+
lexical = lexical.prev;
|
|
12198
|
+
if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
|
|
12199
|
+
lexical = lexical.prev;
|
|
12200
|
+
var type = lexical.type, closing = firstChar == type;
|
|
12201
|
+
|
|
12202
|
+
if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);
|
|
12203
|
+
else if (type == "form" && firstChar == "{") return lexical.indented;
|
|
12204
|
+
else if (type == "form") return lexical.indented + indentUnit;
|
|
12205
|
+
else if (type == "stat")
|
|
12206
|
+
return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || indentUnit : 0);
|
|
12207
|
+
else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
|
|
12208
|
+
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);
|
|
12209
|
+
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
|
12210
|
+
else return lexical.indented + (closing ? 0 : indentUnit);
|
|
12211
|
+
},
|
|
12090
12212
|
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
if (state.tokenize != tokenComment && stream.eatSpace()) return null;
|
|
12099
|
-
var style = state.tokenize(stream, state);
|
|
12100
|
-
if (type == "comment") return style;
|
|
12101
|
-
state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
|
|
12102
|
-
return parseJS(state, style, type, content, stream);
|
|
12103
|
-
},
|
|
12213
|
+
electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
|
|
12214
|
+
blockCommentStart: jsonMode ? null : "/*",
|
|
12215
|
+
blockCommentEnd: jsonMode ? null : "*/",
|
|
12216
|
+
blockCommentContinue: jsonMode ? null : " * ",
|
|
12217
|
+
lineComment: jsonMode ? null : "//",
|
|
12218
|
+
fold: "brace",
|
|
12219
|
+
closeBrackets: "()[]{}''\"\"``",
|
|
12104
12220
|
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
(firstChar == "}" || ((top = state.cc[state.cc.length - 1]) &&
|
|
12117
|
-
(top == maybeoperatorComma || top == maybeoperatorNoComma) &&
|
|
12118
|
-
!/^[,\.=+\-*:?[\(]/.test(textAfter))))
|
|
12119
|
-
lexical = lexical.prev;
|
|
12120
|
-
if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
|
|
12121
|
-
lexical = lexical.prev;
|
|
12122
|
-
var type = lexical.type, closing = firstChar == type;
|
|
12123
|
-
|
|
12124
|
-
if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);
|
|
12125
|
-
else if (type == "form" && firstChar == "{") return lexical.indented;
|
|
12126
|
-
else if (type == "form") return lexical.indented + indentUnit;
|
|
12127
|
-
else if (type == "stat")
|
|
12128
|
-
return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || indentUnit : 0);
|
|
12129
|
-
else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
|
|
12130
|
-
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? indentUnit : 2 * indentUnit);
|
|
12131
|
-
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
|
12132
|
-
else return lexical.indented + (closing ? 0 : indentUnit);
|
|
12133
|
-
},
|
|
12221
|
+
helperType: jsonMode ? "json" : "javascript",
|
|
12222
|
+
jsonldMode: jsonldMode,
|
|
12223
|
+
jsonMode: jsonMode,
|
|
12224
|
+
|
|
12225
|
+
expressionAllowed: expressionAllowed,
|
|
12226
|
+
|
|
12227
|
+
skipExpression: function(state) {
|
|
12228
|
+
parseJS(state, "atom", "atom", "true", new CodeMirror.StringStream("", 2, null));
|
|
12229
|
+
}
|
|
12230
|
+
};
|
|
12231
|
+
});
|
|
12134
12232
|
|
|
12135
|
-
|
|
12136
|
-
blockCommentStart: jsonMode ? null : "/*",
|
|
12137
|
-
blockCommentEnd: jsonMode ? null : "*/",
|
|
12138
|
-
blockCommentContinue: jsonMode ? null : " * ",
|
|
12139
|
-
lineComment: jsonMode ? null : "//",
|
|
12140
|
-
fold: "brace",
|
|
12141
|
-
closeBrackets: "()[]{}''\"\"``",
|
|
12233
|
+
CodeMirror.registerHelper("wordChars", "javascript", /[\w$]/);
|
|
12142
12234
|
|
|
12143
|
-
|
|
12144
|
-
|
|
12145
|
-
|
|
12235
|
+
CodeMirror.defineMIME("text/javascript", "javascript");
|
|
12236
|
+
CodeMirror.defineMIME("text/ecmascript", "javascript");
|
|
12237
|
+
CodeMirror.defineMIME("application/javascript", "javascript");
|
|
12238
|
+
CodeMirror.defineMIME("application/x-javascript", "javascript");
|
|
12239
|
+
CodeMirror.defineMIME("application/ecmascript", "javascript");
|
|
12240
|
+
CodeMirror.defineMIME("application/json", { name: "javascript", json: true });
|
|
12241
|
+
CodeMirror.defineMIME("application/x-json", { name: "javascript", json: true });
|
|
12242
|
+
CodeMirror.defineMIME("application/manifest+json", { name: "javascript", json: true });
|
|
12243
|
+
CodeMirror.defineMIME("application/ld+json", { name: "javascript", jsonld: true });
|
|
12244
|
+
CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true });
|
|
12245
|
+
CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });
|
|
12146
12246
|
|
|
12147
|
-
|
|
12247
|
+
});
|
|
12248
|
+
} ());
|
|
12148
12249
|
|
|
12149
|
-
|
|
12150
|
-
parseJS(state, "atom", "atom", "true", new CodeMirror.StringStream("", 2, null));
|
|
12151
|
-
}
|
|
12152
|
-
};
|
|
12153
|
-
});
|
|
12250
|
+
var css$2 = {exports: {}};
|
|
12154
12251
|
|
|
12155
|
-
|
|
12252
|
+
var hasRequiredCss;
|
|
12156
12253
|
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
CodeMirror
|
|
12162
|
-
|
|
12163
|
-
CodeMirror.defineMIME("application/x-json", { name: "javascript", json: true });
|
|
12164
|
-
CodeMirror.defineMIME("application/manifest+json", { name: "javascript", json: true });
|
|
12165
|
-
CodeMirror.defineMIME("application/ld+json", { name: "javascript", jsonld: true });
|
|
12166
|
-
CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true });
|
|
12167
|
-
CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });
|
|
12254
|
+
function requireCss () {
|
|
12255
|
+
if (hasRequiredCss) return css$2.exports;
|
|
12256
|
+
hasRequiredCss = 1;
|
|
12257
|
+
(function (module, exports) {
|
|
12258
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
12259
|
+
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
12168
12260
|
|
|
12169
|
-
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
}
|
|
12261
|
+
(function(mod) {
|
|
12262
|
+
mod(requireCodemirror());
|
|
12263
|
+
})(function(CodeMirror) {
|
|
12173
12264
|
|
|
12174
|
-
|
|
12265
|
+
CodeMirror.defineMode("css", function(config, parserConfig) {
|
|
12266
|
+
var inline = parserConfig.inline;
|
|
12267
|
+
if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");
|
|
12268
|
+
|
|
12269
|
+
var indentUnit = config.indentUnit,
|
|
12270
|
+
tokenHooks = parserConfig.tokenHooks,
|
|
12271
|
+
documentTypes = parserConfig.documentTypes || {},
|
|
12272
|
+
mediaTypes = parserConfig.mediaTypes || {},
|
|
12273
|
+
mediaFeatures = parserConfig.mediaFeatures || {},
|
|
12274
|
+
mediaValueKeywords = parserConfig.mediaValueKeywords || {},
|
|
12275
|
+
propertyKeywords = parserConfig.propertyKeywords || {},
|
|
12276
|
+
nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
|
|
12277
|
+
fontProperties = parserConfig.fontProperties || {},
|
|
12278
|
+
counterDescriptors = parserConfig.counterDescriptors || {},
|
|
12279
|
+
colorKeywords = parserConfig.colorKeywords || {},
|
|
12280
|
+
valueKeywords = parserConfig.valueKeywords || {},
|
|
12281
|
+
allowNested = parserConfig.allowNested,
|
|
12282
|
+
lineComment = parserConfig.lineComment,
|
|
12283
|
+
supportsAtComponent = parserConfig.supportsAtComponent === true,
|
|
12284
|
+
highlightNonStandardPropertyKeywords = config.highlightNonStandardPropertyKeywords !== false;
|
|
12285
|
+
|
|
12286
|
+
var type, override;
|
|
12287
|
+
function ret(style, tp) { type = tp; return style; }
|
|
12175
12288
|
|
|
12176
|
-
|
|
12289
|
+
// Tokenizers
|
|
12177
12290
|
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12291
|
+
function tokenBase(stream, state) {
|
|
12292
|
+
var ch = stream.next();
|
|
12293
|
+
if (tokenHooks[ch]) {
|
|
12294
|
+
var result = tokenHooks[ch](stream, state);
|
|
12295
|
+
if (result !== false) return result;
|
|
12296
|
+
}
|
|
12297
|
+
if (ch == "@") {
|
|
12298
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
12299
|
+
return ret("def", stream.current());
|
|
12300
|
+
} else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
|
|
12301
|
+
return ret(null, "compare");
|
|
12302
|
+
} else if (ch == "\"" || ch == "'") {
|
|
12303
|
+
state.tokenize = tokenString(ch);
|
|
12304
|
+
return state.tokenize(stream, state);
|
|
12305
|
+
} else if (ch == "#") {
|
|
12306
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
12307
|
+
return ret("atom", "hash");
|
|
12308
|
+
} else if (ch == "!") {
|
|
12309
|
+
stream.match(/^\s*\w*/);
|
|
12310
|
+
return ret("keyword", "important");
|
|
12311
|
+
} else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
|
|
12312
|
+
stream.eatWhile(/[\w.%]/);
|
|
12313
|
+
return ret("number", "unit");
|
|
12314
|
+
} else if (ch === "-") {
|
|
12315
|
+
if (/[\d.]/.test(stream.peek())) {
|
|
12316
|
+
stream.eatWhile(/[\w.%]/);
|
|
12317
|
+
return ret("number", "unit");
|
|
12318
|
+
} else if (stream.match(/^-[\w\\\-]*/)) {
|
|
12319
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
12320
|
+
if (stream.match(/^\s*:/, false))
|
|
12321
|
+
return ret("variable-2", "variable-definition");
|
|
12322
|
+
return ret("variable-2", "variable");
|
|
12323
|
+
} else if (stream.match(/^\w+-/)) {
|
|
12324
|
+
return ret("meta", "meta");
|
|
12325
|
+
}
|
|
12326
|
+
} else if (/[,+>*\/]/.test(ch)) {
|
|
12327
|
+
return ret(null, "select-op");
|
|
12328
|
+
} else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
|
|
12329
|
+
return ret("qualifier", "qualifier");
|
|
12330
|
+
} else if (/[:;{}\[\]\(\)]/.test(ch)) {
|
|
12331
|
+
return ret(null, ch);
|
|
12332
|
+
} else if (stream.match(/^[\w-.]+(?=\()/)) {
|
|
12333
|
+
if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {
|
|
12334
|
+
state.tokenize = tokenParenthesized;
|
|
12335
|
+
}
|
|
12336
|
+
return ret("variable callee", "variable");
|
|
12337
|
+
} else if (/[\w\\\-]/.test(ch)) {
|
|
12338
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
12339
|
+
return ret("property", "word");
|
|
12340
|
+
} else {
|
|
12341
|
+
return ret(null, null);
|
|
12342
|
+
}
|
|
12343
|
+
}
|
|
12181
12344
|
|
|
12182
|
-
|
|
12183
|
-
|
|
12184
|
-
|
|
12345
|
+
function tokenString(quote) {
|
|
12346
|
+
return function(stream, state) {
|
|
12347
|
+
var escaped = false, ch;
|
|
12348
|
+
while ((ch = stream.next()) != null) {
|
|
12349
|
+
if (ch == quote && !escaped) {
|
|
12350
|
+
if (quote == ")") stream.backUp(1);
|
|
12351
|
+
break;
|
|
12352
|
+
}
|
|
12353
|
+
escaped = !escaped && ch == "\\";
|
|
12354
|
+
}
|
|
12355
|
+
if (ch == quote || !escaped && quote != ")") state.tokenize = null;
|
|
12356
|
+
return ret("string", "string");
|
|
12357
|
+
};
|
|
12358
|
+
}
|
|
12185
12359
|
|
|
12186
|
-
|
|
12187
|
-
|
|
12188
|
-
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
mediaFeatures = parserConfig.mediaFeatures || {},
|
|
12195
|
-
mediaValueKeywords = parserConfig.mediaValueKeywords || {},
|
|
12196
|
-
propertyKeywords = parserConfig.propertyKeywords || {},
|
|
12197
|
-
nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
|
|
12198
|
-
fontProperties = parserConfig.fontProperties || {},
|
|
12199
|
-
counterDescriptors = parserConfig.counterDescriptors || {},
|
|
12200
|
-
colorKeywords = parserConfig.colorKeywords || {},
|
|
12201
|
-
valueKeywords = parserConfig.valueKeywords || {},
|
|
12202
|
-
allowNested = parserConfig.allowNested,
|
|
12203
|
-
lineComment = parserConfig.lineComment,
|
|
12204
|
-
supportsAtComponent = parserConfig.supportsAtComponent === true,
|
|
12205
|
-
highlightNonStandardPropertyKeywords = config.highlightNonStandardPropertyKeywords !== false;
|
|
12206
|
-
|
|
12207
|
-
var type, override;
|
|
12208
|
-
function ret(style, tp) { type = tp; return style; }
|
|
12209
|
-
|
|
12210
|
-
// Tokenizers
|
|
12360
|
+
function tokenParenthesized(stream, state) {
|
|
12361
|
+
stream.next(); // Must be '('
|
|
12362
|
+
if (!stream.match(/^\s*[\"\')]/, false))
|
|
12363
|
+
state.tokenize = tokenString(")");
|
|
12364
|
+
else
|
|
12365
|
+
state.tokenize = null;
|
|
12366
|
+
return ret(null, "(");
|
|
12367
|
+
}
|
|
12211
12368
|
|
|
12212
|
-
|
|
12213
|
-
var ch = stream.next();
|
|
12214
|
-
if (tokenHooks[ch]) {
|
|
12215
|
-
var result = tokenHooks[ch](stream, state);
|
|
12216
|
-
if (result !== false) return result;
|
|
12217
|
-
}
|
|
12218
|
-
if (ch == "@") {
|
|
12219
|
-
stream.eatWhile(/[\w\\\-]/);
|
|
12220
|
-
return ret("def", stream.current());
|
|
12221
|
-
} else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
|
|
12222
|
-
return ret(null, "compare");
|
|
12223
|
-
} else if (ch == "\"" || ch == "'") {
|
|
12224
|
-
state.tokenize = tokenString(ch);
|
|
12225
|
-
return state.tokenize(stream, state);
|
|
12226
|
-
} else if (ch == "#") {
|
|
12227
|
-
stream.eatWhile(/[\w\\\-]/);
|
|
12228
|
-
return ret("atom", "hash");
|
|
12229
|
-
} else if (ch == "!") {
|
|
12230
|
-
stream.match(/^\s*\w*/);
|
|
12231
|
-
return ret("keyword", "important");
|
|
12232
|
-
} else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
|
|
12233
|
-
stream.eatWhile(/[\w.%]/);
|
|
12234
|
-
return ret("number", "unit");
|
|
12235
|
-
} else if (ch === "-") {
|
|
12236
|
-
if (/[\d.]/.test(stream.peek())) {
|
|
12237
|
-
stream.eatWhile(/[\w.%]/);
|
|
12238
|
-
return ret("number", "unit");
|
|
12239
|
-
} else if (stream.match(/^-[\w\\\-]*/)) {
|
|
12240
|
-
stream.eatWhile(/[\w\\\-]/);
|
|
12241
|
-
if (stream.match(/^\s*:/, false))
|
|
12242
|
-
return ret("variable-2", "variable-definition");
|
|
12243
|
-
return ret("variable-2", "variable");
|
|
12244
|
-
} else if (stream.match(/^\w+-/)) {
|
|
12245
|
-
return ret("meta", "meta");
|
|
12246
|
-
}
|
|
12247
|
-
} else if (/[,+>*\/]/.test(ch)) {
|
|
12248
|
-
return ret(null, "select-op");
|
|
12249
|
-
} else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
|
|
12250
|
-
return ret("qualifier", "qualifier");
|
|
12251
|
-
} else if (/[:;{}\[\]\(\)]/.test(ch)) {
|
|
12252
|
-
return ret(null, ch);
|
|
12253
|
-
} else if (stream.match(/^[\w-.]+(?=\()/)) {
|
|
12254
|
-
if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {
|
|
12255
|
-
state.tokenize = tokenParenthesized;
|
|
12256
|
-
}
|
|
12257
|
-
return ret("variable callee", "variable");
|
|
12258
|
-
} else if (/[\w\\\-]/.test(ch)) {
|
|
12259
|
-
stream.eatWhile(/[\w\\\-]/);
|
|
12260
|
-
return ret("property", "word");
|
|
12261
|
-
} else {
|
|
12262
|
-
return ret(null, null);
|
|
12263
|
-
}
|
|
12264
|
-
}
|
|
12369
|
+
// Context management
|
|
12265
12370
|
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
if (quote == ")") stream.backUp(1);
|
|
12272
|
-
break;
|
|
12273
|
-
}
|
|
12274
|
-
escaped = !escaped && ch == "\\";
|
|
12275
|
-
}
|
|
12276
|
-
if (ch == quote || !escaped && quote != ")") state.tokenize = null;
|
|
12277
|
-
return ret("string", "string");
|
|
12278
|
-
};
|
|
12279
|
-
}
|
|
12371
|
+
function Context(type, indent, prev) {
|
|
12372
|
+
this.type = type;
|
|
12373
|
+
this.indent = indent;
|
|
12374
|
+
this.prev = prev;
|
|
12375
|
+
}
|
|
12280
12376
|
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
else
|
|
12286
|
-
state.tokenize = null;
|
|
12287
|
-
return ret(null, "(");
|
|
12288
|
-
}
|
|
12377
|
+
function pushContext(state, stream, type, indent) {
|
|
12378
|
+
state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);
|
|
12379
|
+
return type;
|
|
12380
|
+
}
|
|
12289
12381
|
|
|
12290
|
-
|
|
12382
|
+
function popContext(state) {
|
|
12383
|
+
if (state.context.prev)
|
|
12384
|
+
state.context = state.context.prev;
|
|
12385
|
+
return state.context.type;
|
|
12386
|
+
}
|
|
12291
12387
|
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12388
|
+
function pass(type, stream, state) {
|
|
12389
|
+
return states[state.context.type](type, stream, state);
|
|
12390
|
+
}
|
|
12391
|
+
function popAndPass(type, stream, state, n) {
|
|
12392
|
+
for (var i = n || 1; i > 0; i--)
|
|
12393
|
+
state.context = state.context.prev;
|
|
12394
|
+
return pass(type, stream, state);
|
|
12395
|
+
}
|
|
12297
12396
|
|
|
12298
|
-
|
|
12299
|
-
state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);
|
|
12300
|
-
return type;
|
|
12301
|
-
}
|
|
12397
|
+
// Parser
|
|
12302
12398
|
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12399
|
+
function wordAsValue(stream) {
|
|
12400
|
+
var word = stream.current().toLowerCase();
|
|
12401
|
+
if (valueKeywords.hasOwnProperty(word))
|
|
12402
|
+
override = "atom";
|
|
12403
|
+
else if (colorKeywords.hasOwnProperty(word))
|
|
12404
|
+
override = "keyword";
|
|
12405
|
+
else
|
|
12406
|
+
override = "variable";
|
|
12407
|
+
}
|
|
12308
12408
|
|
|
12309
|
-
|
|
12310
|
-
return states[state.context.type](type, stream, state);
|
|
12311
|
-
}
|
|
12312
|
-
function popAndPass(type, stream, state, n) {
|
|
12313
|
-
for (var i = n || 1; i > 0; i--)
|
|
12314
|
-
state.context = state.context.prev;
|
|
12315
|
-
return pass(type, stream, state);
|
|
12316
|
-
}
|
|
12409
|
+
var states = {};
|
|
12317
12410
|
|
|
12318
|
-
|
|
12411
|
+
states.top = function(type, stream, state) {
|
|
12412
|
+
if (type == "{") {
|
|
12413
|
+
return pushContext(state, stream, "block");
|
|
12414
|
+
} else if (type == "}" && state.context.prev) {
|
|
12415
|
+
return popContext(state);
|
|
12416
|
+
} else if (supportsAtComponent && /@component/i.test(type)) {
|
|
12417
|
+
return pushContext(state, stream, "atComponentBlock");
|
|
12418
|
+
} else if (/^@(-moz-)?document$/i.test(type)) {
|
|
12419
|
+
return pushContext(state, stream, "documentTypes");
|
|
12420
|
+
} else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) {
|
|
12421
|
+
return pushContext(state, stream, "atBlock");
|
|
12422
|
+
} else if (/^@(font-face|counter-style)/i.test(type)) {
|
|
12423
|
+
state.stateArg = type;
|
|
12424
|
+
return "restricted_atBlock_before";
|
|
12425
|
+
} else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) {
|
|
12426
|
+
return "keyframes";
|
|
12427
|
+
} else if (type && type.charAt(0) == "@") {
|
|
12428
|
+
return pushContext(state, stream, "at");
|
|
12429
|
+
} else if (type == "hash") {
|
|
12430
|
+
override = "builtin";
|
|
12431
|
+
} else if (type == "word") {
|
|
12432
|
+
override = "tag";
|
|
12433
|
+
} else if (type == "variable-definition") {
|
|
12434
|
+
return "maybeprop";
|
|
12435
|
+
} else if (type == "interpolation") {
|
|
12436
|
+
return pushContext(state, stream, "interpolation");
|
|
12437
|
+
} else if (type == ":") {
|
|
12438
|
+
return "pseudo";
|
|
12439
|
+
} else if (allowNested && type == "(") {
|
|
12440
|
+
return pushContext(state, stream, "parens");
|
|
12441
|
+
}
|
|
12442
|
+
return state.context.type;
|
|
12443
|
+
};
|
|
12319
12444
|
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12445
|
+
states.block = function(type, stream, state) {
|
|
12446
|
+
if (type == "word") {
|
|
12447
|
+
var word = stream.current().toLowerCase();
|
|
12448
|
+
if (propertyKeywords.hasOwnProperty(word)) {
|
|
12449
|
+
override = "property";
|
|
12450
|
+
return "maybeprop";
|
|
12451
|
+
} else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
|
|
12452
|
+
override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
|
|
12453
|
+
return "maybeprop";
|
|
12454
|
+
} else if (allowNested) {
|
|
12455
|
+
override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
|
|
12456
|
+
return "block";
|
|
12457
|
+
} else {
|
|
12458
|
+
override += " error";
|
|
12459
|
+
return "maybeprop";
|
|
12460
|
+
}
|
|
12461
|
+
} else if (type == "meta") {
|
|
12462
|
+
return "block";
|
|
12463
|
+
} else if (!allowNested && (type == "hash" || type == "qualifier")) {
|
|
12464
|
+
override = "error";
|
|
12465
|
+
return "block";
|
|
12466
|
+
} else {
|
|
12467
|
+
return states.top(type, stream, state);
|
|
12468
|
+
}
|
|
12469
|
+
};
|
|
12329
12470
|
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
return pushContext(state, stream, "block");
|
|
12335
|
-
} else if (type == "}" && state.context.prev) {
|
|
12336
|
-
return popContext(state);
|
|
12337
|
-
} else if (supportsAtComponent && /@component/i.test(type)) {
|
|
12338
|
-
return pushContext(state, stream, "atComponentBlock");
|
|
12339
|
-
} else if (/^@(-moz-)?document$/i.test(type)) {
|
|
12340
|
-
return pushContext(state, stream, "documentTypes");
|
|
12341
|
-
} else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) {
|
|
12342
|
-
return pushContext(state, stream, "atBlock");
|
|
12343
|
-
} else if (/^@(font-face|counter-style)/i.test(type)) {
|
|
12344
|
-
state.stateArg = type;
|
|
12345
|
-
return "restricted_atBlock_before";
|
|
12346
|
-
} else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) {
|
|
12347
|
-
return "keyframes";
|
|
12348
|
-
} else if (type && type.charAt(0) == "@") {
|
|
12349
|
-
return pushContext(state, stream, "at");
|
|
12350
|
-
} else if (type == "hash") {
|
|
12351
|
-
override = "builtin";
|
|
12352
|
-
} else if (type == "word") {
|
|
12353
|
-
override = "tag";
|
|
12354
|
-
} else if (type == "variable-definition") {
|
|
12355
|
-
return "maybeprop";
|
|
12356
|
-
} else if (type == "interpolation") {
|
|
12357
|
-
return pushContext(state, stream, "interpolation");
|
|
12358
|
-
} else if (type == ":") {
|
|
12359
|
-
return "pseudo";
|
|
12360
|
-
} else if (allowNested && type == "(") {
|
|
12361
|
-
return pushContext(state, stream, "parens");
|
|
12362
|
-
}
|
|
12363
|
-
return state.context.type;
|
|
12364
|
-
};
|
|
12471
|
+
states.maybeprop = function(type, stream, state) {
|
|
12472
|
+
if (type == ":") return pushContext(state, stream, "prop");
|
|
12473
|
+
return pass(type, stream, state);
|
|
12474
|
+
};
|
|
12365
12475
|
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
return "maybeprop";
|
|
12372
|
-
} else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
|
|
12373
|
-
override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
|
|
12374
|
-
return "maybeprop";
|
|
12375
|
-
} else if (allowNested) {
|
|
12376
|
-
override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
|
|
12377
|
-
return "block";
|
|
12378
|
-
} else {
|
|
12379
|
-
override += " error";
|
|
12380
|
-
return "maybeprop";
|
|
12381
|
-
}
|
|
12382
|
-
} else if (type == "meta") {
|
|
12383
|
-
return "block";
|
|
12384
|
-
} else if (!allowNested && (type == "hash" || type == "qualifier")) {
|
|
12385
|
-
override = "error";
|
|
12386
|
-
return "block";
|
|
12387
|
-
} else {
|
|
12388
|
-
return states.top(type, stream, state);
|
|
12389
|
-
}
|
|
12390
|
-
};
|
|
12476
|
+
states.prop = function(type, stream, state) {
|
|
12477
|
+
if (type == ";") return popContext(state);
|
|
12478
|
+
if (type == "{" && allowNested) return pushContext(state, stream, "propBlock");
|
|
12479
|
+
if (type == "}" || type == "{") return popAndPass(type, stream, state);
|
|
12480
|
+
if (type == "(") return pushContext(state, stream, "parens");
|
|
12391
12481
|
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12395
|
-
|
|
12482
|
+
if (type == "hash" && !/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(stream.current())) {
|
|
12483
|
+
override += " error";
|
|
12484
|
+
} else if (type == "word") {
|
|
12485
|
+
wordAsValue(stream);
|
|
12486
|
+
} else if (type == "interpolation") {
|
|
12487
|
+
return pushContext(state, stream, "interpolation");
|
|
12488
|
+
}
|
|
12489
|
+
return "prop";
|
|
12490
|
+
};
|
|
12396
12491
|
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
|
|
12403
|
-
if (type == "hash" && !/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(stream.current())) {
|
|
12404
|
-
override += " error";
|
|
12405
|
-
} else if (type == "word") {
|
|
12406
|
-
wordAsValue(stream);
|
|
12407
|
-
} else if (type == "interpolation") {
|
|
12408
|
-
return pushContext(state, stream, "interpolation");
|
|
12409
|
-
}
|
|
12410
|
-
return "prop";
|
|
12411
|
-
};
|
|
12492
|
+
states.propBlock = function(type, _stream, state) {
|
|
12493
|
+
if (type == "}") return popContext(state);
|
|
12494
|
+
if (type == "word") { override = "property"; return "maybeprop"; }
|
|
12495
|
+
return state.context.type;
|
|
12496
|
+
};
|
|
12412
12497
|
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12498
|
+
states.parens = function(type, stream, state) {
|
|
12499
|
+
if (type == "{" || type == "}") return popAndPass(type, stream, state);
|
|
12500
|
+
if (type == ")") return popContext(state);
|
|
12501
|
+
if (type == "(") return pushContext(state, stream, "parens");
|
|
12502
|
+
if (type == "interpolation") return pushContext(state, stream, "interpolation");
|
|
12503
|
+
if (type == "word") wordAsValue(stream);
|
|
12504
|
+
return "parens";
|
|
12505
|
+
};
|
|
12418
12506
|
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
if (type == ")") return popContext(state);
|
|
12422
|
-
if (type == "(") return pushContext(state, stream, "parens");
|
|
12423
|
-
if (type == "interpolation") return pushContext(state, stream, "interpolation");
|
|
12424
|
-
if (type == "word") wordAsValue(stream);
|
|
12425
|
-
return "parens";
|
|
12426
|
-
};
|
|
12507
|
+
states.pseudo = function(type, stream, state) {
|
|
12508
|
+
if (type == "meta") return "pseudo";
|
|
12427
12509
|
|
|
12428
|
-
|
|
12429
|
-
|
|
12510
|
+
if (type == "word") {
|
|
12511
|
+
override = "variable-3";
|
|
12512
|
+
return state.context.type;
|
|
12513
|
+
}
|
|
12514
|
+
return pass(type, stream, state);
|
|
12515
|
+
};
|
|
12430
12516
|
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
|
|
12517
|
+
states.documentTypes = function(type, stream, state) {
|
|
12518
|
+
if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
|
|
12519
|
+
override = "tag";
|
|
12520
|
+
return state.context.type;
|
|
12521
|
+
} else {
|
|
12522
|
+
return states.atBlock(type, stream, state);
|
|
12523
|
+
}
|
|
12524
|
+
};
|
|
12437
12525
|
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
} else {
|
|
12443
|
-
return states.atBlock(type, stream, state);
|
|
12444
|
-
}
|
|
12445
|
-
};
|
|
12526
|
+
states.atBlock = function(type, stream, state) {
|
|
12527
|
+
if (type == "(") return pushContext(state, stream, "atBlock_parens");
|
|
12528
|
+
if (type == "}" || type == ";") return popAndPass(type, stream, state);
|
|
12529
|
+
if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
|
|
12446
12530
|
|
|
12447
|
-
|
|
12448
|
-
if (type == "(") return pushContext(state, stream, "atBlock_parens");
|
|
12449
|
-
if (type == "}" || type == ";") return popAndPass(type, stream, state);
|
|
12450
|
-
if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
|
|
12451
|
-
|
|
12452
|
-
if (type == "interpolation") return pushContext(state, stream, "interpolation");
|
|
12453
|
-
|
|
12454
|
-
if (type == "word") {
|
|
12455
|
-
var word = stream.current().toLowerCase();
|
|
12456
|
-
if (word == "only" || word == "not" || word == "and" || word == "or")
|
|
12457
|
-
override = "keyword";
|
|
12458
|
-
else if (mediaTypes.hasOwnProperty(word))
|
|
12459
|
-
override = "attribute";
|
|
12460
|
-
else if (mediaFeatures.hasOwnProperty(word))
|
|
12461
|
-
override = "property";
|
|
12462
|
-
else if (mediaValueKeywords.hasOwnProperty(word))
|
|
12463
|
-
override = "keyword";
|
|
12464
|
-
else if (propertyKeywords.hasOwnProperty(word))
|
|
12465
|
-
override = "property";
|
|
12466
|
-
else if (nonStandardPropertyKeywords.hasOwnProperty(word))
|
|
12467
|
-
override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
|
|
12468
|
-
else if (valueKeywords.hasOwnProperty(word))
|
|
12469
|
-
override = "atom";
|
|
12470
|
-
else if (colorKeywords.hasOwnProperty(word))
|
|
12471
|
-
override = "keyword";
|
|
12472
|
-
else
|
|
12473
|
-
override = "error";
|
|
12474
|
-
}
|
|
12475
|
-
return state.context.type;
|
|
12476
|
-
};
|
|
12531
|
+
if (type == "interpolation") return pushContext(state, stream, "interpolation");
|
|
12477
12532
|
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12533
|
+
if (type == "word") {
|
|
12534
|
+
var word = stream.current().toLowerCase();
|
|
12535
|
+
if (word == "only" || word == "not" || word == "and" || word == "or")
|
|
12536
|
+
override = "keyword";
|
|
12537
|
+
else if (mediaTypes.hasOwnProperty(word))
|
|
12538
|
+
override = "attribute";
|
|
12539
|
+
else if (mediaFeatures.hasOwnProperty(word))
|
|
12540
|
+
override = "property";
|
|
12541
|
+
else if (mediaValueKeywords.hasOwnProperty(word))
|
|
12542
|
+
override = "keyword";
|
|
12543
|
+
else if (propertyKeywords.hasOwnProperty(word))
|
|
12544
|
+
override = "property";
|
|
12545
|
+
else if (nonStandardPropertyKeywords.hasOwnProperty(word))
|
|
12546
|
+
override = highlightNonStandardPropertyKeywords ? "string-2" : "property";
|
|
12547
|
+
else if (valueKeywords.hasOwnProperty(word))
|
|
12548
|
+
override = "atom";
|
|
12549
|
+
else if (colorKeywords.hasOwnProperty(word))
|
|
12550
|
+
override = "keyword";
|
|
12551
|
+
else
|
|
12552
|
+
override = "error";
|
|
12553
|
+
}
|
|
12554
|
+
return state.context.type;
|
|
12555
|
+
};
|
|
12487
12556
|
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12557
|
+
states.atComponentBlock = function(type, stream, state) {
|
|
12558
|
+
if (type == "}")
|
|
12559
|
+
return popAndPass(type, stream, state);
|
|
12560
|
+
if (type == "{")
|
|
12561
|
+
return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
|
|
12562
|
+
if (type == "word")
|
|
12563
|
+
override = "error";
|
|
12564
|
+
return state.context.type;
|
|
12565
|
+
};
|
|
12493
12566
|
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
return "restricted_atBlock_before";
|
|
12500
|
-
}
|
|
12501
|
-
return pass(type, stream, state);
|
|
12502
|
-
};
|
|
12567
|
+
states.atBlock_parens = function(type, stream, state) {
|
|
12568
|
+
if (type == ")") return popContext(state);
|
|
12569
|
+
if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);
|
|
12570
|
+
return states.atBlock(type, stream, state);
|
|
12571
|
+
};
|
|
12503
12572
|
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
else
|
|
12514
|
-
override = "property";
|
|
12515
|
-
return "maybeprop";
|
|
12516
|
-
}
|
|
12517
|
-
return "restricted_atBlock";
|
|
12518
|
-
};
|
|
12573
|
+
states.restricted_atBlock_before = function(type, stream, state) {
|
|
12574
|
+
if (type == "{")
|
|
12575
|
+
return pushContext(state, stream, "restricted_atBlock");
|
|
12576
|
+
if (type == "word" && state.stateArg == "@counter-style") {
|
|
12577
|
+
override = "variable";
|
|
12578
|
+
return "restricted_atBlock_before";
|
|
12579
|
+
}
|
|
12580
|
+
return pass(type, stream, state);
|
|
12581
|
+
};
|
|
12519
12582
|
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12583
|
+
states.restricted_atBlock = function(type, stream, state) {
|
|
12584
|
+
if (type == "}") {
|
|
12585
|
+
state.stateArg = null;
|
|
12586
|
+
return popContext(state);
|
|
12587
|
+
}
|
|
12588
|
+
if (type == "word") {
|
|
12589
|
+
if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
|
|
12590
|
+
(state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))
|
|
12591
|
+
override = "error";
|
|
12592
|
+
else
|
|
12593
|
+
override = "property";
|
|
12594
|
+
return "maybeprop";
|
|
12595
|
+
}
|
|
12596
|
+
return "restricted_atBlock";
|
|
12597
|
+
};
|
|
12525
12598
|
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
return "at";
|
|
12532
|
-
};
|
|
12599
|
+
states.keyframes = function(type, stream, state) {
|
|
12600
|
+
if (type == "word") { override = "variable"; return "keyframes"; }
|
|
12601
|
+
if (type == "{") return pushContext(state, stream, "top");
|
|
12602
|
+
return pass(type, stream, state);
|
|
12603
|
+
};
|
|
12533
12604
|
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12605
|
+
states.at = function(type, stream, state) {
|
|
12606
|
+
if (type == ";") return popContext(state);
|
|
12607
|
+
if (type == "{" || type == "}") return popAndPass(type, stream, state);
|
|
12608
|
+
if (type == "word") override = "tag";
|
|
12609
|
+
else if (type == "hash") override = "builtin";
|
|
12610
|
+
return "at";
|
|
12611
|
+
};
|
|
12541
12612
|
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12613
|
+
states.interpolation = function(type, stream, state) {
|
|
12614
|
+
if (type == "}") return popContext(state);
|
|
12615
|
+
if (type == "{" || type == ";") return popAndPass(type, stream, state);
|
|
12616
|
+
if (type == "word") override = "variable";
|
|
12617
|
+
else if (type != "variable" && type != "(" && type != ")") override = "error";
|
|
12618
|
+
return "interpolation";
|
|
12619
|
+
};
|
|
12549
12620
|
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12557
|
-
override = style;
|
|
12558
|
-
if (type != "comment")
|
|
12559
|
-
state.state = states[state.state](type, stream, state);
|
|
12560
|
-
return override;
|
|
12561
|
-
},
|
|
12621
|
+
return {
|
|
12622
|
+
startState: function(base) {
|
|
12623
|
+
return {tokenize: null,
|
|
12624
|
+
state: inline ? "block" : "top",
|
|
12625
|
+
stateArg: null,
|
|
12626
|
+
context: new Context(inline ? "block" : "top", base || 0, null)};
|
|
12627
|
+
},
|
|
12562
12628
|
|
|
12563
|
-
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
// Dedent relative to current context.
|
|
12576
|
-
indent = Math.max(0, cx.indent - indentUnit);
|
|
12577
|
-
}
|
|
12578
|
-
}
|
|
12579
|
-
return indent;
|
|
12580
|
-
},
|
|
12629
|
+
token: function(stream, state) {
|
|
12630
|
+
if (!state.tokenize && stream.eatSpace()) return null;
|
|
12631
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
|
12632
|
+
if (style && typeof style == "object") {
|
|
12633
|
+
type = style[1];
|
|
12634
|
+
style = style[0];
|
|
12635
|
+
}
|
|
12636
|
+
override = style;
|
|
12637
|
+
if (type != "comment")
|
|
12638
|
+
state.state = states[state.state](type, stream, state);
|
|
12639
|
+
return override;
|
|
12640
|
+
},
|
|
12581
12641
|
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12642
|
+
indent: function(state, textAfter) {
|
|
12643
|
+
var cx = state.context, ch = textAfter && textAfter.charAt(0);
|
|
12644
|
+
var indent = cx.indent;
|
|
12645
|
+
if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
|
|
12646
|
+
if (cx.prev) {
|
|
12647
|
+
if (ch == "}" && (cx.type == "block" || cx.type == "top" ||
|
|
12648
|
+
cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
|
|
12649
|
+
// Resume indentation from parent context.
|
|
12650
|
+
cx = cx.prev;
|
|
12651
|
+
indent = cx.indent;
|
|
12652
|
+
} else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
|
|
12653
|
+
ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
|
|
12654
|
+
// Dedent relative to current context.
|
|
12655
|
+
indent = Math.max(0, cx.indent - indentUnit);
|
|
12656
|
+
}
|
|
12657
|
+
}
|
|
12658
|
+
return indent;
|
|
12659
|
+
},
|
|
12590
12660
|
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12661
|
+
electricChars: "}",
|
|
12662
|
+
blockCommentStart: "/*",
|
|
12663
|
+
blockCommentEnd: "*/",
|
|
12664
|
+
blockCommentContinue: " * ",
|
|
12665
|
+
lineComment: lineComment,
|
|
12666
|
+
fold: "brace"
|
|
12667
|
+
};
|
|
12668
|
+
});
|
|
12598
12669
|
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
], mediaTypes = keySet(mediaTypes_);
|
|
12607
|
-
|
|
12608
|
-
var mediaFeatures_ = [
|
|
12609
|
-
"width", "min-width", "max-width", "height", "min-height", "max-height",
|
|
12610
|
-
"device-width", "min-device-width", "max-device-width", "device-height",
|
|
12611
|
-
"min-device-height", "max-device-height", "aspect-ratio",
|
|
12612
|
-
"min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
|
|
12613
|
-
"min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
|
|
12614
|
-
"max-color", "color-index", "min-color-index", "max-color-index",
|
|
12615
|
-
"monochrome", "min-monochrome", "max-monochrome", "resolution",
|
|
12616
|
-
"min-resolution", "max-resolution", "scan", "grid", "orientation",
|
|
12617
|
-
"device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
|
|
12618
|
-
"pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme",
|
|
12619
|
-
"dynamic-range", "video-dynamic-range"
|
|
12620
|
-
], mediaFeatures = keySet(mediaFeatures_);
|
|
12621
|
-
|
|
12622
|
-
var mediaValueKeywords_ = [
|
|
12623
|
-
"landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
|
|
12624
|
-
"interlace", "progressive",
|
|
12625
|
-
"dark", "light",
|
|
12626
|
-
"standard", "high"
|
|
12627
|
-
], mediaValueKeywords = keySet(mediaValueKeywords_);
|
|
12628
|
-
|
|
12629
|
-
var propertyKeywords_ = [
|
|
12630
|
-
"align-content", "align-items", "align-self", "alignment-adjust",
|
|
12631
|
-
"alignment-baseline", "all", "anchor-point", "animation", "animation-delay",
|
|
12632
|
-
"animation-direction", "animation-duration", "animation-fill-mode",
|
|
12633
|
-
"animation-iteration-count", "animation-name", "animation-play-state",
|
|
12634
|
-
"animation-timing-function", "appearance", "azimuth", "backdrop-filter",
|
|
12635
|
-
"backface-visibility", "background", "background-attachment",
|
|
12636
|
-
"background-blend-mode", "background-clip", "background-color",
|
|
12637
|
-
"background-image", "background-origin", "background-position",
|
|
12638
|
-
"background-position-x", "background-position-y", "background-repeat",
|
|
12639
|
-
"background-size", "baseline-shift", "binding", "bleed", "block-size",
|
|
12640
|
-
"bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target",
|
|
12641
|
-
"border", "border-bottom", "border-bottom-color", "border-bottom-left-radius",
|
|
12642
|
-
"border-bottom-right-radius", "border-bottom-style", "border-bottom-width",
|
|
12643
|
-
"border-collapse", "border-color", "border-image", "border-image-outset",
|
|
12644
|
-
"border-image-repeat", "border-image-slice", "border-image-source",
|
|
12645
|
-
"border-image-width", "border-left", "border-left-color", "border-left-style",
|
|
12646
|
-
"border-left-width", "border-radius", "border-right", "border-right-color",
|
|
12647
|
-
"border-right-style", "border-right-width", "border-spacing", "border-style",
|
|
12648
|
-
"border-top", "border-top-color", "border-top-left-radius",
|
|
12649
|
-
"border-top-right-radius", "border-top-style", "border-top-width",
|
|
12650
|
-
"border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing",
|
|
12651
|
-
"break-after", "break-before", "break-inside", "caption-side", "caret-color",
|
|
12652
|
-
"clear", "clip", "color", "color-profile", "column-count", "column-fill",
|
|
12653
|
-
"column-gap", "column-rule", "column-rule-color", "column-rule-style",
|
|
12654
|
-
"column-rule-width", "column-span", "column-width", "columns", "contain",
|
|
12655
|
-
"content", "counter-increment", "counter-reset", "crop", "cue", "cue-after",
|
|
12656
|
-
"cue-before", "cursor", "direction", "display", "dominant-baseline",
|
|
12657
|
-
"drop-initial-after-adjust", "drop-initial-after-align",
|
|
12658
|
-
"drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size",
|
|
12659
|
-
"drop-initial-value", "elevation", "empty-cells", "fit", "fit-content", "fit-position",
|
|
12660
|
-
"flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow",
|
|
12661
|
-
"flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into",
|
|
12662
|
-
"font", "font-family", "font-feature-settings", "font-kerning",
|
|
12663
|
-
"font-language-override", "font-optical-sizing", "font-size",
|
|
12664
|
-
"font-size-adjust", "font-stretch", "font-style", "font-synthesis",
|
|
12665
|
-
"font-variant", "font-variant-alternates", "font-variant-caps",
|
|
12666
|
-
"font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric",
|
|
12667
|
-
"font-variant-position", "font-variation-settings", "font-weight", "gap",
|
|
12668
|
-
"grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows",
|
|
12669
|
-
"grid-column", "grid-column-end", "grid-column-gap", "grid-column-start",
|
|
12670
|
-
"grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start",
|
|
12671
|
-
"grid-template", "grid-template-areas", "grid-template-columns",
|
|
12672
|
-
"grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon",
|
|
12673
|
-
"image-orientation", "image-rendering", "image-resolution", "inline-box-align",
|
|
12674
|
-
"inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline",
|
|
12675
|
-
"inset-inline-end", "inset-inline-start", "isolation", "justify-content",
|
|
12676
|
-
"justify-items", "justify-self", "left", "letter-spacing", "line-break",
|
|
12677
|
-
"line-height", "line-height-step", "line-stacking", "line-stacking-ruby",
|
|
12678
|
-
"line-stacking-shift", "line-stacking-strategy", "list-style",
|
|
12679
|
-
"list-style-image", "list-style-position", "list-style-type", "margin",
|
|
12680
|
-
"margin-bottom", "margin-left", "margin-right", "margin-top", "marks",
|
|
12681
|
-
"marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed",
|
|
12682
|
-
"marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode",
|
|
12683
|
-
"mask-origin", "mask-position", "mask-repeat", "mask-size","mask-type",
|
|
12684
|
-
"max-block-size", "max-height", "max-inline-size",
|
|
12685
|
-
"max-width", "min-block-size", "min-height", "min-inline-size", "min-width",
|
|
12686
|
-
"mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right",
|
|
12687
|
-
"nav-up", "object-fit", "object-position", "offset", "offset-anchor",
|
|
12688
|
-
"offset-distance", "offset-path", "offset-position", "offset-rotate",
|
|
12689
|
-
"opacity", "order", "orphans", "outline", "outline-color", "outline-offset",
|
|
12690
|
-
"outline-style", "outline-width", "overflow", "overflow-style",
|
|
12691
|
-
"overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom",
|
|
12692
|
-
"padding-left", "padding-right", "padding-top", "page", "page-break-after",
|
|
12693
|
-
"page-break-before", "page-break-inside", "page-policy", "pause",
|
|
12694
|
-
"pause-after", "pause-before", "perspective", "perspective-origin", "pitch",
|
|
12695
|
-
"pitch-range", "place-content", "place-items", "place-self", "play-during",
|
|
12696
|
-
"position", "presentation-level", "punctuation-trim", "quotes",
|
|
12697
|
-
"region-break-after", "region-break-before", "region-break-inside",
|
|
12698
|
-
"region-fragment", "rendering-intent", "resize", "rest", "rest-after",
|
|
12699
|
-
"rest-before", "richness", "right", "rotate", "rotation", "rotation-point",
|
|
12700
|
-
"row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span",
|
|
12701
|
-
"scale", "scroll-behavior", "scroll-margin", "scroll-margin-block",
|
|
12702
|
-
"scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom",
|
|
12703
|
-
"scroll-margin-inline", "scroll-margin-inline-end",
|
|
12704
|
-
"scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right",
|
|
12705
|
-
"scroll-margin-top", "scroll-padding", "scroll-padding-block",
|
|
12706
|
-
"scroll-padding-block-end", "scroll-padding-block-start",
|
|
12707
|
-
"scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end",
|
|
12708
|
-
"scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right",
|
|
12709
|
-
"scroll-padding-top", "scroll-snap-align", "scroll-snap-type",
|
|
12710
|
-
"shape-image-threshold", "shape-inside", "shape-margin", "shape-outside",
|
|
12711
|
-
"size", "speak", "speak-as", "speak-header", "speak-numeral",
|
|
12712
|
-
"speak-punctuation", "speech-rate", "stress", "string-set", "tab-size",
|
|
12713
|
-
"table-layout", "target", "target-name", "target-new", "target-position",
|
|
12714
|
-
"text-align", "text-align-last", "text-combine-upright", "text-decoration",
|
|
12715
|
-
"text-decoration-color", "text-decoration-line", "text-decoration-skip",
|
|
12716
|
-
"text-decoration-skip-ink", "text-decoration-style", "text-emphasis",
|
|
12717
|
-
"text-emphasis-color", "text-emphasis-position", "text-emphasis-style",
|
|
12718
|
-
"text-height", "text-indent", "text-justify", "text-orientation",
|
|
12719
|
-
"text-outline", "text-overflow", "text-rendering", "text-shadow",
|
|
12720
|
-
"text-size-adjust", "text-space-collapse", "text-transform",
|
|
12721
|
-
"text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin",
|
|
12722
|
-
"transform-style", "transition", "transition-delay", "transition-duration",
|
|
12723
|
-
"transition-property", "transition-timing-function", "translate",
|
|
12724
|
-
"unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance",
|
|
12725
|
-
"voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate",
|
|
12726
|
-
"voice-stress", "voice-volume", "volume", "white-space", "widows", "width",
|
|
12727
|
-
"will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index",
|
|
12728
|
-
// SVG-specific
|
|
12729
|
-
"clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
|
|
12730
|
-
"flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
|
|
12731
|
-
"color-interpolation", "color-interpolation-filters",
|
|
12732
|
-
"color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
|
|
12733
|
-
"marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke",
|
|
12734
|
-
"stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
|
|
12735
|
-
"stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
|
|
12736
|
-
"baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
|
|
12737
|
-
"glyph-orientation-vertical", "text-anchor", "writing-mode",
|
|
12738
|
-
], propertyKeywords = keySet(propertyKeywords_);
|
|
12739
|
-
|
|
12740
|
-
var nonStandardPropertyKeywords_ = [
|
|
12741
|
-
"accent-color", "aspect-ratio", "border-block", "border-block-color", "border-block-end",
|
|
12742
|
-
"border-block-end-color", "border-block-end-style", "border-block-end-width",
|
|
12743
|
-
"border-block-start", "border-block-start-color", "border-block-start-style",
|
|
12744
|
-
"border-block-start-width", "border-block-style", "border-block-width",
|
|
12745
|
-
"border-inline", "border-inline-color", "border-inline-end",
|
|
12746
|
-
"border-inline-end-color", "border-inline-end-style",
|
|
12747
|
-
"border-inline-end-width", "border-inline-start", "border-inline-start-color",
|
|
12748
|
-
"border-inline-start-style", "border-inline-start-width",
|
|
12749
|
-
"border-inline-style", "border-inline-width", "content-visibility", "margin-block",
|
|
12750
|
-
"margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end",
|
|
12751
|
-
"margin-inline-start", "overflow-anchor", "overscroll-behavior", "padding-block", "padding-block-end",
|
|
12752
|
-
"padding-block-start", "padding-inline", "padding-inline-end",
|
|
12753
|
-
"padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color",
|
|
12754
|
-
"scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
|
|
12755
|
-
"scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
|
|
12756
|
-
"scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration",
|
|
12757
|
-
"searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom"
|
|
12758
|
-
], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
|
|
12759
|
-
|
|
12760
|
-
var fontProperties_ = [
|
|
12761
|
-
"font-display", "font-family", "src", "unicode-range", "font-variant",
|
|
12762
|
-
"font-feature-settings", "font-stretch", "font-weight", "font-style"
|
|
12763
|
-
], fontProperties = keySet(fontProperties_);
|
|
12764
|
-
|
|
12765
|
-
var counterDescriptors_ = [
|
|
12766
|
-
"additive-symbols", "fallback", "negative", "pad", "prefix", "range",
|
|
12767
|
-
"speak-as", "suffix", "symbols", "system"
|
|
12768
|
-
], counterDescriptors = keySet(counterDescriptors_);
|
|
12769
|
-
|
|
12770
|
-
var colorKeywords_ = [
|
|
12771
|
-
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
|
|
12772
|
-
"bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
|
|
12773
|
-
"burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
|
|
12774
|
-
"cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
|
|
12775
|
-
"darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen",
|
|
12776
|
-
"darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
|
|
12777
|
-
"darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet",
|
|
12778
|
-
"deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick",
|
|
12779
|
-
"floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
|
|
12780
|
-
"gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
|
|
12781
|
-
"hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
|
|
12782
|
-
"lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
|
|
12783
|
-
"lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink",
|
|
12784
|
-
"lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey",
|
|
12785
|
-
"lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
|
|
12786
|
-
"maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
|
|
12787
|
-
"mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
|
|
12788
|
-
"mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
|
|
12789
|
-
"navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
|
|
12790
|
-
"orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
|
|
12791
|
-
"papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
|
|
12792
|
-
"purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
|
|
12793
|
-
"salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
|
|
12794
|
-
"slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan",
|
|
12795
|
-
"teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
|
|
12796
|
-
"whitesmoke", "yellow", "yellowgreen"
|
|
12797
|
-
], colorKeywords = keySet(colorKeywords_);
|
|
12798
|
-
|
|
12799
|
-
var valueKeywords_ = [
|
|
12800
|
-
"above", "absolute", "activeborder", "additive", "activecaption", "afar",
|
|
12801
|
-
"after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
|
|
12802
|
-
"always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
|
|
12803
|
-
"arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
|
|
12804
|
-
"avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
|
|
12805
|
-
"bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box",
|
|
12806
|
-
"both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", "button-bevel",
|
|
12807
|
-
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
|
|
12808
|
-
"capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
|
|
12809
|
-
"cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
|
|
12810
|
-
"cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
|
|
12811
|
-
"col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse",
|
|
12812
|
-
"compact", "condensed", "conic-gradient", "contain", "content", "contents",
|
|
12813
|
-
"content-box", "context-menu", "continuous", "contrast", "copy", "counter", "counters", "cover", "crop",
|
|
12814
|
-
"cross", "crosshair", "cubic-bezier", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
|
|
12815
|
-
"decimal-leading-zero", "default", "default-button", "dense", "destination-atop",
|
|
12816
|
-
"destination-in", "destination-out", "destination-over", "devanagari", "difference",
|
|
12817
|
-
"disc", "discard", "disclosure-closed", "disclosure-open", "document",
|
|
12818
|
-
"dot-dash", "dot-dot-dash",
|
|
12819
|
-
"dotted", "double", "down", "drop-shadow", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
|
|
12820
|
-
"element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
|
|
12821
|
-
"ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
|
|
12822
|
-
"ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
|
|
12823
|
-
"ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
|
|
12824
|
-
"ethiopic-halehame-gez", "ethiopic-halehame-om-et",
|
|
12825
|
-
"ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
|
|
12826
|
-
"ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
|
|
12827
|
-
"ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed",
|
|
12828
|
-
"extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
|
|
12829
|
-
"forwards", "from", "geometricPrecision", "georgian", "grayscale", "graytext", "grid", "groove",
|
|
12830
|
-
"gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",
|
|
12831
|
-
"help", "hidden", "hide", "higher", "highlight", "highlighttext",
|
|
12832
|
-
"hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "hue-rotate", "icon", "ignore",
|
|
12833
|
-
"inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
|
|
12834
|
-
"infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
|
|
12835
|
-
"inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert",
|
|
12836
|
-
"italic", "japanese-formal", "japanese-informal", "justify", "kannada",
|
|
12837
|
-
"katakana", "katakana-iroha", "keep-all", "khmer",
|
|
12838
|
-
"korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
|
|
12839
|
-
"landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten",
|
|
12840
|
-
"line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",
|
|
12841
|
-
"local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
|
|
12842
|
-
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
|
|
12843
|
-
"lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d",
|
|
12844
|
-
"media-controls-background", "media-current-time-display",
|
|
12845
|
-
"media-fullscreen-button", "media-mute-button", "media-play-button",
|
|
12846
|
-
"media-return-to-realtime-button", "media-rewind-button",
|
|
12847
|
-
"media-seek-back-button", "media-seek-forward-button", "media-slider",
|
|
12848
|
-
"media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
|
|
12849
|
-
"media-volume-slider-container", "media-volume-sliderthumb", "medium",
|
|
12850
|
-
"menu", "menulist", "menulist-button", "menulist-text",
|
|
12851
|
-
"menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
|
|
12852
|
-
"mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
|
|
12853
|
-
"narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
|
|
12854
|
-
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
|
|
12855
|
-
"ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote",
|
|
12856
|
-
"optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
|
|
12857
|
-
"outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
|
|
12858
|
-
"painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter",
|
|
12859
|
-
"pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
|
|
12860
|
-
"progress", "push-button", "radial-gradient", "radio", "read-only",
|
|
12861
|
-
"read-write", "read-write-plaintext-only", "rectangle", "region",
|
|
12862
|
-
"relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient",
|
|
12863
|
-
"repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse",
|
|
12864
|
-
"rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
|
|
12865
|
-
"rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
|
|
12866
|
-
"s-resize", "sans-serif", "saturate", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen",
|
|
12867
|
-
"scroll", "scrollbar", "scroll-position", "se-resize", "searchfield",
|
|
12868
|
-
"searchfield-cancel-button", "searchfield-decoration",
|
|
12869
|
-
"searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end",
|
|
12870
|
-
"semi-condensed", "semi-expanded", "separate", "sepia", "serif", "show", "sidama",
|
|
12871
|
-
"simp-chinese-formal", "simp-chinese-informal", "single",
|
|
12872
|
-
"skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
|
|
12873
|
-
"slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
|
|
12874
|
-
"small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali",
|
|
12875
|
-
"source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square",
|
|
12876
|
-
"square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub",
|
|
12877
|
-
"subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table",
|
|
12878
|
-
"table-caption", "table-cell", "table-column", "table-column-group",
|
|
12879
|
-
"table-footer-group", "table-header-group", "table-row", "table-row-group",
|
|
12880
|
-
"tamil",
|
|
12881
|
-
"telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
|
|
12882
|
-
"thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
|
|
12883
|
-
"threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
|
|
12884
|
-
"tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
|
|
12885
|
-
"trad-chinese-formal", "trad-chinese-informal", "transform",
|
|
12886
|
-
"translate", "translate3d", "translateX", "translateY", "translateZ",
|
|
12887
|
-
"transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up",
|
|
12888
|
-
"upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
|
|
12889
|
-
"upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
|
|
12890
|
-
"var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted",
|
|
12891
|
-
"visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
|
|
12892
|
-
"window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",
|
|
12893
|
-
"xx-large", "xx-small"
|
|
12894
|
-
], valueKeywords = keySet(valueKeywords_);
|
|
12895
|
-
|
|
12896
|
-
var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
|
|
12897
|
-
.concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
|
|
12898
|
-
.concat(valueKeywords_);
|
|
12899
|
-
CodeMirror.registerHelper("hintWords", "css", allWords);
|
|
12900
|
-
|
|
12901
|
-
function tokenCComment(stream, state) {
|
|
12902
|
-
var maybeEnd = false, ch;
|
|
12903
|
-
while ((ch = stream.next()) != null) {
|
|
12904
|
-
if (maybeEnd && ch == "/") {
|
|
12905
|
-
state.tokenize = null;
|
|
12906
|
-
break;
|
|
12907
|
-
}
|
|
12908
|
-
maybeEnd = (ch == "*");
|
|
12909
|
-
}
|
|
12910
|
-
return ["comment", "comment"];
|
|
12911
|
-
}
|
|
12670
|
+
function keySet(array) {
|
|
12671
|
+
var keys = {};
|
|
12672
|
+
for (var i = 0; i < array.length; ++i) {
|
|
12673
|
+
keys[array[i].toLowerCase()] = true;
|
|
12674
|
+
}
|
|
12675
|
+
return keys;
|
|
12676
|
+
}
|
|
12912
12677
|
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12678
|
+
var documentTypes_ = [
|
|
12679
|
+
"domain", "regexp", "url", "url-prefix"
|
|
12680
|
+
], documentTypes = keySet(documentTypes_);
|
|
12681
|
+
|
|
12682
|
+
var mediaTypes_ = [
|
|
12683
|
+
"all", "aural", "braille", "handheld", "print", "projection", "screen",
|
|
12684
|
+
"tty", "tv", "embossed"
|
|
12685
|
+
], mediaTypes = keySet(mediaTypes_);
|
|
12686
|
+
|
|
12687
|
+
var mediaFeatures_ = [
|
|
12688
|
+
"width", "min-width", "max-width", "height", "min-height", "max-height",
|
|
12689
|
+
"device-width", "min-device-width", "max-device-width", "device-height",
|
|
12690
|
+
"min-device-height", "max-device-height", "aspect-ratio",
|
|
12691
|
+
"min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
|
|
12692
|
+
"min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
|
|
12693
|
+
"max-color", "color-index", "min-color-index", "max-color-index",
|
|
12694
|
+
"monochrome", "min-monochrome", "max-monochrome", "resolution",
|
|
12695
|
+
"min-resolution", "max-resolution", "scan", "grid", "orientation",
|
|
12696
|
+
"device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
|
|
12697
|
+
"pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme",
|
|
12698
|
+
"dynamic-range", "video-dynamic-range"
|
|
12699
|
+
], mediaFeatures = keySet(mediaFeatures_);
|
|
12700
|
+
|
|
12701
|
+
var mediaValueKeywords_ = [
|
|
12702
|
+
"landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
|
|
12703
|
+
"interlace", "progressive",
|
|
12704
|
+
"dark", "light",
|
|
12705
|
+
"standard", "high"
|
|
12706
|
+
], mediaValueKeywords = keySet(mediaValueKeywords_);
|
|
12707
|
+
|
|
12708
|
+
var propertyKeywords_ = [
|
|
12709
|
+
"align-content", "align-items", "align-self", "alignment-adjust",
|
|
12710
|
+
"alignment-baseline", "all", "anchor-point", "animation", "animation-delay",
|
|
12711
|
+
"animation-direction", "animation-duration", "animation-fill-mode",
|
|
12712
|
+
"animation-iteration-count", "animation-name", "animation-play-state",
|
|
12713
|
+
"animation-timing-function", "appearance", "azimuth", "backdrop-filter",
|
|
12714
|
+
"backface-visibility", "background", "background-attachment",
|
|
12715
|
+
"background-blend-mode", "background-clip", "background-color",
|
|
12716
|
+
"background-image", "background-origin", "background-position",
|
|
12717
|
+
"background-position-x", "background-position-y", "background-repeat",
|
|
12718
|
+
"background-size", "baseline-shift", "binding", "bleed", "block-size",
|
|
12719
|
+
"bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target",
|
|
12720
|
+
"border", "border-bottom", "border-bottom-color", "border-bottom-left-radius",
|
|
12721
|
+
"border-bottom-right-radius", "border-bottom-style", "border-bottom-width",
|
|
12722
|
+
"border-collapse", "border-color", "border-image", "border-image-outset",
|
|
12723
|
+
"border-image-repeat", "border-image-slice", "border-image-source",
|
|
12724
|
+
"border-image-width", "border-left", "border-left-color", "border-left-style",
|
|
12725
|
+
"border-left-width", "border-radius", "border-right", "border-right-color",
|
|
12726
|
+
"border-right-style", "border-right-width", "border-spacing", "border-style",
|
|
12727
|
+
"border-top", "border-top-color", "border-top-left-radius",
|
|
12728
|
+
"border-top-right-radius", "border-top-style", "border-top-width",
|
|
12729
|
+
"border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing",
|
|
12730
|
+
"break-after", "break-before", "break-inside", "caption-side", "caret-color",
|
|
12731
|
+
"clear", "clip", "color", "color-profile", "column-count", "column-fill",
|
|
12732
|
+
"column-gap", "column-rule", "column-rule-color", "column-rule-style",
|
|
12733
|
+
"column-rule-width", "column-span", "column-width", "columns", "contain",
|
|
12734
|
+
"content", "counter-increment", "counter-reset", "crop", "cue", "cue-after",
|
|
12735
|
+
"cue-before", "cursor", "direction", "display", "dominant-baseline",
|
|
12736
|
+
"drop-initial-after-adjust", "drop-initial-after-align",
|
|
12737
|
+
"drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size",
|
|
12738
|
+
"drop-initial-value", "elevation", "empty-cells", "fit", "fit-content", "fit-position",
|
|
12739
|
+
"flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow",
|
|
12740
|
+
"flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into",
|
|
12741
|
+
"font", "font-family", "font-feature-settings", "font-kerning",
|
|
12742
|
+
"font-language-override", "font-optical-sizing", "font-size",
|
|
12743
|
+
"font-size-adjust", "font-stretch", "font-style", "font-synthesis",
|
|
12744
|
+
"font-variant", "font-variant-alternates", "font-variant-caps",
|
|
12745
|
+
"font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric",
|
|
12746
|
+
"font-variant-position", "font-variation-settings", "font-weight", "gap",
|
|
12747
|
+
"grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows",
|
|
12748
|
+
"grid-column", "grid-column-end", "grid-column-gap", "grid-column-start",
|
|
12749
|
+
"grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start",
|
|
12750
|
+
"grid-template", "grid-template-areas", "grid-template-columns",
|
|
12751
|
+
"grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon",
|
|
12752
|
+
"image-orientation", "image-rendering", "image-resolution", "inline-box-align",
|
|
12753
|
+
"inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline",
|
|
12754
|
+
"inset-inline-end", "inset-inline-start", "isolation", "justify-content",
|
|
12755
|
+
"justify-items", "justify-self", "left", "letter-spacing", "line-break",
|
|
12756
|
+
"line-height", "line-height-step", "line-stacking", "line-stacking-ruby",
|
|
12757
|
+
"line-stacking-shift", "line-stacking-strategy", "list-style",
|
|
12758
|
+
"list-style-image", "list-style-position", "list-style-type", "margin",
|
|
12759
|
+
"margin-bottom", "margin-left", "margin-right", "margin-top", "marks",
|
|
12760
|
+
"marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed",
|
|
12761
|
+
"marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode",
|
|
12762
|
+
"mask-origin", "mask-position", "mask-repeat", "mask-size","mask-type",
|
|
12763
|
+
"max-block-size", "max-height", "max-inline-size",
|
|
12764
|
+
"max-width", "min-block-size", "min-height", "min-inline-size", "min-width",
|
|
12765
|
+
"mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right",
|
|
12766
|
+
"nav-up", "object-fit", "object-position", "offset", "offset-anchor",
|
|
12767
|
+
"offset-distance", "offset-path", "offset-position", "offset-rotate",
|
|
12768
|
+
"opacity", "order", "orphans", "outline", "outline-color", "outline-offset",
|
|
12769
|
+
"outline-style", "outline-width", "overflow", "overflow-style",
|
|
12770
|
+
"overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom",
|
|
12771
|
+
"padding-left", "padding-right", "padding-top", "page", "page-break-after",
|
|
12772
|
+
"page-break-before", "page-break-inside", "page-policy", "pause",
|
|
12773
|
+
"pause-after", "pause-before", "perspective", "perspective-origin", "pitch",
|
|
12774
|
+
"pitch-range", "place-content", "place-items", "place-self", "play-during",
|
|
12775
|
+
"position", "presentation-level", "punctuation-trim", "quotes",
|
|
12776
|
+
"region-break-after", "region-break-before", "region-break-inside",
|
|
12777
|
+
"region-fragment", "rendering-intent", "resize", "rest", "rest-after",
|
|
12778
|
+
"rest-before", "richness", "right", "rotate", "rotation", "rotation-point",
|
|
12779
|
+
"row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span",
|
|
12780
|
+
"scale", "scroll-behavior", "scroll-margin", "scroll-margin-block",
|
|
12781
|
+
"scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom",
|
|
12782
|
+
"scroll-margin-inline", "scroll-margin-inline-end",
|
|
12783
|
+
"scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right",
|
|
12784
|
+
"scroll-margin-top", "scroll-padding", "scroll-padding-block",
|
|
12785
|
+
"scroll-padding-block-end", "scroll-padding-block-start",
|
|
12786
|
+
"scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end",
|
|
12787
|
+
"scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right",
|
|
12788
|
+
"scroll-padding-top", "scroll-snap-align", "scroll-snap-type",
|
|
12789
|
+
"shape-image-threshold", "shape-inside", "shape-margin", "shape-outside",
|
|
12790
|
+
"size", "speak", "speak-as", "speak-header", "speak-numeral",
|
|
12791
|
+
"speak-punctuation", "speech-rate", "stress", "string-set", "tab-size",
|
|
12792
|
+
"table-layout", "target", "target-name", "target-new", "target-position",
|
|
12793
|
+
"text-align", "text-align-last", "text-combine-upright", "text-decoration",
|
|
12794
|
+
"text-decoration-color", "text-decoration-line", "text-decoration-skip",
|
|
12795
|
+
"text-decoration-skip-ink", "text-decoration-style", "text-emphasis",
|
|
12796
|
+
"text-emphasis-color", "text-emphasis-position", "text-emphasis-style",
|
|
12797
|
+
"text-height", "text-indent", "text-justify", "text-orientation",
|
|
12798
|
+
"text-outline", "text-overflow", "text-rendering", "text-shadow",
|
|
12799
|
+
"text-size-adjust", "text-space-collapse", "text-transform",
|
|
12800
|
+
"text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin",
|
|
12801
|
+
"transform-style", "transition", "transition-delay", "transition-duration",
|
|
12802
|
+
"transition-property", "transition-timing-function", "translate",
|
|
12803
|
+
"unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance",
|
|
12804
|
+
"voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate",
|
|
12805
|
+
"voice-stress", "voice-volume", "volume", "white-space", "widows", "width",
|
|
12806
|
+
"will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index",
|
|
12807
|
+
// SVG-specific
|
|
12808
|
+
"clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
|
|
12809
|
+
"flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
|
|
12810
|
+
"color-interpolation", "color-interpolation-filters",
|
|
12811
|
+
"color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
|
|
12812
|
+
"marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke",
|
|
12813
|
+
"stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
|
|
12814
|
+
"stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
|
|
12815
|
+
"baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
|
|
12816
|
+
"glyph-orientation-vertical", "text-anchor", "writing-mode",
|
|
12817
|
+
], propertyKeywords = keySet(propertyKeywords_);
|
|
12818
|
+
|
|
12819
|
+
var nonStandardPropertyKeywords_ = [
|
|
12820
|
+
"accent-color", "aspect-ratio", "border-block", "border-block-color", "border-block-end",
|
|
12821
|
+
"border-block-end-color", "border-block-end-style", "border-block-end-width",
|
|
12822
|
+
"border-block-start", "border-block-start-color", "border-block-start-style",
|
|
12823
|
+
"border-block-start-width", "border-block-style", "border-block-width",
|
|
12824
|
+
"border-inline", "border-inline-color", "border-inline-end",
|
|
12825
|
+
"border-inline-end-color", "border-inline-end-style",
|
|
12826
|
+
"border-inline-end-width", "border-inline-start", "border-inline-start-color",
|
|
12827
|
+
"border-inline-start-style", "border-inline-start-width",
|
|
12828
|
+
"border-inline-style", "border-inline-width", "content-visibility", "margin-block",
|
|
12829
|
+
"margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end",
|
|
12830
|
+
"margin-inline-start", "overflow-anchor", "overscroll-behavior", "padding-block", "padding-block-end",
|
|
12831
|
+
"padding-block-start", "padding-inline", "padding-inline-end",
|
|
12832
|
+
"padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color",
|
|
12833
|
+
"scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
|
|
12834
|
+
"scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
|
|
12835
|
+
"scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration",
|
|
12836
|
+
"searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom"
|
|
12837
|
+
], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
|
|
12838
|
+
|
|
12839
|
+
var fontProperties_ = [
|
|
12840
|
+
"font-display", "font-family", "src", "unicode-range", "font-variant",
|
|
12841
|
+
"font-feature-settings", "font-stretch", "font-weight", "font-style"
|
|
12842
|
+
], fontProperties = keySet(fontProperties_);
|
|
12843
|
+
|
|
12844
|
+
var counterDescriptors_ = [
|
|
12845
|
+
"additive-symbols", "fallback", "negative", "pad", "prefix", "range",
|
|
12846
|
+
"speak-as", "suffix", "symbols", "system"
|
|
12847
|
+
], counterDescriptors = keySet(counterDescriptors_);
|
|
12848
|
+
|
|
12849
|
+
var colorKeywords_ = [
|
|
12850
|
+
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
|
|
12851
|
+
"bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
|
|
12852
|
+
"burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
|
|
12853
|
+
"cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
|
|
12854
|
+
"darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen",
|
|
12855
|
+
"darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
|
|
12856
|
+
"darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet",
|
|
12857
|
+
"deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick",
|
|
12858
|
+
"floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
|
|
12859
|
+
"gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
|
|
12860
|
+
"hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
|
|
12861
|
+
"lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
|
|
12862
|
+
"lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink",
|
|
12863
|
+
"lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey",
|
|
12864
|
+
"lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
|
|
12865
|
+
"maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
|
|
12866
|
+
"mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
|
|
12867
|
+
"mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
|
|
12868
|
+
"navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
|
|
12869
|
+
"orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
|
|
12870
|
+
"papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
|
|
12871
|
+
"purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
|
|
12872
|
+
"salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
|
|
12873
|
+
"slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan",
|
|
12874
|
+
"teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
|
|
12875
|
+
"whitesmoke", "yellow", "yellowgreen"
|
|
12876
|
+
], colorKeywords = keySet(colorKeywords_);
|
|
12877
|
+
|
|
12878
|
+
var valueKeywords_ = [
|
|
12879
|
+
"above", "absolute", "activeborder", "additive", "activecaption", "afar",
|
|
12880
|
+
"after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
|
|
12881
|
+
"always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
|
|
12882
|
+
"arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
|
|
12883
|
+
"avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
|
|
12884
|
+
"bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box",
|
|
12885
|
+
"both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", "button-bevel",
|
|
12886
|
+
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
|
|
12887
|
+
"capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
|
|
12888
|
+
"cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
|
|
12889
|
+
"cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
|
|
12890
|
+
"col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse",
|
|
12891
|
+
"compact", "condensed", "conic-gradient", "contain", "content", "contents",
|
|
12892
|
+
"content-box", "context-menu", "continuous", "contrast", "copy", "counter", "counters", "cover", "crop",
|
|
12893
|
+
"cross", "crosshair", "cubic-bezier", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
|
|
12894
|
+
"decimal-leading-zero", "default", "default-button", "dense", "destination-atop",
|
|
12895
|
+
"destination-in", "destination-out", "destination-over", "devanagari", "difference",
|
|
12896
|
+
"disc", "discard", "disclosure-closed", "disclosure-open", "document",
|
|
12897
|
+
"dot-dash", "dot-dot-dash",
|
|
12898
|
+
"dotted", "double", "down", "drop-shadow", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
|
|
12899
|
+
"element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
|
|
12900
|
+
"ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
|
|
12901
|
+
"ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
|
|
12902
|
+
"ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
|
|
12903
|
+
"ethiopic-halehame-gez", "ethiopic-halehame-om-et",
|
|
12904
|
+
"ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
|
|
12905
|
+
"ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
|
|
12906
|
+
"ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed",
|
|
12907
|
+
"extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
|
|
12908
|
+
"forwards", "from", "geometricPrecision", "georgian", "grayscale", "graytext", "grid", "groove",
|
|
12909
|
+
"gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",
|
|
12910
|
+
"help", "hidden", "hide", "higher", "highlight", "highlighttext",
|
|
12911
|
+
"hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "hue-rotate", "icon", "ignore",
|
|
12912
|
+
"inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
|
|
12913
|
+
"infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
|
|
12914
|
+
"inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert",
|
|
12915
|
+
"italic", "japanese-formal", "japanese-informal", "justify", "kannada",
|
|
12916
|
+
"katakana", "katakana-iroha", "keep-all", "khmer",
|
|
12917
|
+
"korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
|
|
12918
|
+
"landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten",
|
|
12919
|
+
"line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",
|
|
12920
|
+
"local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
|
|
12921
|
+
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
|
|
12922
|
+
"lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d",
|
|
12923
|
+
"media-controls-background", "media-current-time-display",
|
|
12924
|
+
"media-fullscreen-button", "media-mute-button", "media-play-button",
|
|
12925
|
+
"media-return-to-realtime-button", "media-rewind-button",
|
|
12926
|
+
"media-seek-back-button", "media-seek-forward-button", "media-slider",
|
|
12927
|
+
"media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
|
|
12928
|
+
"media-volume-slider-container", "media-volume-sliderthumb", "medium",
|
|
12929
|
+
"menu", "menulist", "menulist-button", "menulist-text",
|
|
12930
|
+
"menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
|
|
12931
|
+
"mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
|
|
12932
|
+
"narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
|
|
12933
|
+
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
|
|
12934
|
+
"ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote",
|
|
12935
|
+
"optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
|
|
12936
|
+
"outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
|
|
12937
|
+
"painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter",
|
|
12938
|
+
"pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
|
|
12939
|
+
"progress", "push-button", "radial-gradient", "radio", "read-only",
|
|
12940
|
+
"read-write", "read-write-plaintext-only", "rectangle", "region",
|
|
12941
|
+
"relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient",
|
|
12942
|
+
"repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse",
|
|
12943
|
+
"rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
|
|
12944
|
+
"rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
|
|
12945
|
+
"s-resize", "sans-serif", "saturate", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen",
|
|
12946
|
+
"scroll", "scrollbar", "scroll-position", "se-resize", "searchfield",
|
|
12947
|
+
"searchfield-cancel-button", "searchfield-decoration",
|
|
12948
|
+
"searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end",
|
|
12949
|
+
"semi-condensed", "semi-expanded", "separate", "sepia", "serif", "show", "sidama",
|
|
12950
|
+
"simp-chinese-formal", "simp-chinese-informal", "single",
|
|
12951
|
+
"skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
|
|
12952
|
+
"slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
|
|
12953
|
+
"small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali",
|
|
12954
|
+
"source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square",
|
|
12955
|
+
"square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub",
|
|
12956
|
+
"subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table",
|
|
12957
|
+
"table-caption", "table-cell", "table-column", "table-column-group",
|
|
12958
|
+
"table-footer-group", "table-header-group", "table-row", "table-row-group",
|
|
12959
|
+
"tamil",
|
|
12960
|
+
"telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
|
|
12961
|
+
"thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
|
|
12962
|
+
"threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
|
|
12963
|
+
"tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
|
|
12964
|
+
"trad-chinese-formal", "trad-chinese-informal", "transform",
|
|
12965
|
+
"translate", "translate3d", "translateX", "translateY", "translateZ",
|
|
12966
|
+
"transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up",
|
|
12967
|
+
"upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
|
|
12968
|
+
"upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
|
|
12969
|
+
"var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted",
|
|
12970
|
+
"visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
|
|
12971
|
+
"window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",
|
|
12972
|
+
"xx-large", "xx-small"
|
|
12973
|
+
], valueKeywords = keySet(valueKeywords_);
|
|
12974
|
+
|
|
12975
|
+
var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
|
|
12976
|
+
.concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
|
|
12977
|
+
.concat(valueKeywords_);
|
|
12978
|
+
CodeMirror.registerHelper("hintWords", "css", allWords);
|
|
12979
|
+
|
|
12980
|
+
function tokenCComment(stream, state) {
|
|
12981
|
+
var maybeEnd = false, ch;
|
|
12982
|
+
while ((ch = stream.next()) != null) {
|
|
12983
|
+
if (maybeEnd && ch == "/") {
|
|
12984
|
+
state.tokenize = null;
|
|
12985
|
+
break;
|
|
12986
|
+
}
|
|
12987
|
+
maybeEnd = (ch == "*");
|
|
12988
|
+
}
|
|
12989
|
+
return ["comment", "comment"];
|
|
12990
|
+
}
|
|
12991
|
+
|
|
12992
|
+
CodeMirror.defineMIME("text/css", {
|
|
12993
|
+
documentTypes: documentTypes,
|
|
12994
|
+
mediaTypes: mediaTypes,
|
|
12995
|
+
mediaFeatures: mediaFeatures,
|
|
12996
|
+
mediaValueKeywords: mediaValueKeywords,
|
|
12997
|
+
propertyKeywords: propertyKeywords,
|
|
12998
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
12999
|
+
fontProperties: fontProperties,
|
|
13000
|
+
counterDescriptors: counterDescriptors,
|
|
13001
|
+
colorKeywords: colorKeywords,
|
|
13002
|
+
valueKeywords: valueKeywords,
|
|
13003
|
+
tokenHooks: {
|
|
13004
|
+
"/": function(stream, state) {
|
|
13005
|
+
if (!stream.eat("*")) return false;
|
|
13006
|
+
state.tokenize = tokenCComment;
|
|
13007
|
+
return tokenCComment(stream, state);
|
|
13008
|
+
}
|
|
13009
|
+
},
|
|
13010
|
+
name: "css"
|
|
13011
|
+
});
|
|
12933
13012
|
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
13013
|
+
CodeMirror.defineMIME("text/x-scss", {
|
|
13014
|
+
mediaTypes: mediaTypes,
|
|
13015
|
+
mediaFeatures: mediaFeatures,
|
|
13016
|
+
mediaValueKeywords: mediaValueKeywords,
|
|
13017
|
+
propertyKeywords: propertyKeywords,
|
|
13018
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
13019
|
+
colorKeywords: colorKeywords,
|
|
13020
|
+
valueKeywords: valueKeywords,
|
|
13021
|
+
fontProperties: fontProperties,
|
|
13022
|
+
allowNested: true,
|
|
13023
|
+
lineComment: "//",
|
|
13024
|
+
tokenHooks: {
|
|
13025
|
+
"/": function(stream, state) {
|
|
13026
|
+
if (stream.eat("/")) {
|
|
13027
|
+
stream.skipToEnd();
|
|
13028
|
+
return ["comment", "comment"];
|
|
13029
|
+
} else if (stream.eat("*")) {
|
|
13030
|
+
state.tokenize = tokenCComment;
|
|
13031
|
+
return tokenCComment(stream, state);
|
|
13032
|
+
} else {
|
|
13033
|
+
return ["operator", "operator"];
|
|
13034
|
+
}
|
|
13035
|
+
},
|
|
13036
|
+
":": function(stream) {
|
|
13037
|
+
if (stream.match(/^\s*\{/, false))
|
|
13038
|
+
return [null, null]
|
|
13039
|
+
return false;
|
|
13040
|
+
},
|
|
13041
|
+
"$": function(stream) {
|
|
13042
|
+
stream.match(/^[\w-]+/);
|
|
13043
|
+
if (stream.match(/^\s*:/, false))
|
|
13044
|
+
return ["variable-2", "variable-definition"];
|
|
13045
|
+
return ["variable-2", "variable"];
|
|
13046
|
+
},
|
|
13047
|
+
"#": function(stream) {
|
|
13048
|
+
if (!stream.eat("{")) return false;
|
|
13049
|
+
return [null, "interpolation"];
|
|
13050
|
+
}
|
|
13051
|
+
},
|
|
13052
|
+
name: "css",
|
|
13053
|
+
helperType: "scss"
|
|
13054
|
+
});
|
|
12976
13055
|
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
12997
|
-
|
|
12998
|
-
|
|
12999
|
-
|
|
13000
|
-
|
|
13001
|
-
|
|
13002
|
-
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13056
|
+
CodeMirror.defineMIME("text/x-less", {
|
|
13057
|
+
mediaTypes: mediaTypes,
|
|
13058
|
+
mediaFeatures: mediaFeatures,
|
|
13059
|
+
mediaValueKeywords: mediaValueKeywords,
|
|
13060
|
+
propertyKeywords: propertyKeywords,
|
|
13061
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
13062
|
+
colorKeywords: colorKeywords,
|
|
13063
|
+
valueKeywords: valueKeywords,
|
|
13064
|
+
fontProperties: fontProperties,
|
|
13065
|
+
allowNested: true,
|
|
13066
|
+
lineComment: "//",
|
|
13067
|
+
tokenHooks: {
|
|
13068
|
+
"/": function(stream, state) {
|
|
13069
|
+
if (stream.eat("/")) {
|
|
13070
|
+
stream.skipToEnd();
|
|
13071
|
+
return ["comment", "comment"];
|
|
13072
|
+
} else if (stream.eat("*")) {
|
|
13073
|
+
state.tokenize = tokenCComment;
|
|
13074
|
+
return tokenCComment(stream, state);
|
|
13075
|
+
} else {
|
|
13076
|
+
return ["operator", "operator"];
|
|
13077
|
+
}
|
|
13078
|
+
},
|
|
13079
|
+
"@": function(stream) {
|
|
13080
|
+
if (stream.eat("{")) return [null, "interpolation"];
|
|
13081
|
+
if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false)) return false;
|
|
13082
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
13083
|
+
if (stream.match(/^\s*:/, false))
|
|
13084
|
+
return ["variable-2", "variable-definition"];
|
|
13085
|
+
return ["variable-2", "variable"];
|
|
13086
|
+
},
|
|
13087
|
+
"&": function() {
|
|
13088
|
+
return ["atom", "atom"];
|
|
13089
|
+
}
|
|
13090
|
+
},
|
|
13091
|
+
name: "css",
|
|
13092
|
+
helperType: "less"
|
|
13093
|
+
});
|
|
13015
13094
|
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
|
|
13095
|
+
CodeMirror.defineMIME("text/x-gss", {
|
|
13096
|
+
documentTypes: documentTypes,
|
|
13097
|
+
mediaTypes: mediaTypes,
|
|
13098
|
+
mediaFeatures: mediaFeatures,
|
|
13099
|
+
propertyKeywords: propertyKeywords,
|
|
13100
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
13101
|
+
fontProperties: fontProperties,
|
|
13102
|
+
counterDescriptors: counterDescriptors,
|
|
13103
|
+
colorKeywords: colorKeywords,
|
|
13104
|
+
valueKeywords: valueKeywords,
|
|
13105
|
+
supportsAtComponent: true,
|
|
13106
|
+
tokenHooks: {
|
|
13107
|
+
"/": function(stream, state) {
|
|
13108
|
+
if (!stream.eat("*")) return false;
|
|
13109
|
+
state.tokenize = tokenCComment;
|
|
13110
|
+
return tokenCComment(stream, state);
|
|
13111
|
+
}
|
|
13112
|
+
},
|
|
13113
|
+
name: "css",
|
|
13114
|
+
helperType: "gss"
|
|
13115
|
+
});
|
|
13037
13116
|
|
|
13038
|
-
|
|
13117
|
+
});
|
|
13039
13118
|
} ());
|
|
13119
|
+
return css$2.exports;
|
|
13120
|
+
}
|
|
13121
|
+
|
|
13122
|
+
requireCss();
|
|
13040
13123
|
|
|
13041
13124
|
var htmlmixed = {exports: {}};
|
|
13042
13125
|
|
|
@@ -13468,7 +13551,7 @@ function requireXml () {
|
|
|
13468
13551
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
13469
13552
|
|
|
13470
13553
|
(function(mod) {
|
|
13471
|
-
mod(requireCodemirror(), requireXml(),
|
|
13554
|
+
mod(requireCodemirror(), requireXml(), javascript.exports, requireCss());
|
|
13472
13555
|
})(function(CodeMirror) {
|
|
13473
13556
|
|
|
13474
13557
|
var defaultTags = {
|
|
@@ -14085,7 +14168,7 @@ function requireSass () {
|
|
|
14085
14168
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
14086
14169
|
|
|
14087
14170
|
(function(mod) {
|
|
14088
|
-
mod(requireCodemirror(),
|
|
14171
|
+
mod(requireCodemirror(), requireCss());
|
|
14089
14172
|
})(function(CodeMirror) {
|
|
14090
14173
|
|
|
14091
14174
|
CodeMirror.defineMode("sass", function(config) {
|
|
@@ -15331,7 +15414,7 @@ function requirePug () {
|
|
|
15331
15414
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
15332
15415
|
|
|
15333
15416
|
(function(mod) {
|
|
15334
|
-
mod(requireCodemirror(),
|
|
15417
|
+
mod(requireCodemirror(), javascript.exports, requireCss(), htmlmixed.exports);
|
|
15335
15418
|
})(function(CodeMirror) {
|
|
15336
15419
|
|
|
15337
15420
|
CodeMirror.defineMode("pug", function (config) {
|
|
@@ -16365,9 +16448,9 @@ function requireHandlebars () {
|
|
|
16365
16448
|
mod(requireCodemirror(),
|
|
16366
16449
|
requireOverlay(),
|
|
16367
16450
|
requireXml(),
|
|
16368
|
-
|
|
16451
|
+
javascript.exports,
|
|
16369
16452
|
requireCoffeescript(),
|
|
16370
|
-
|
|
16453
|
+
requireCss(),
|
|
16371
16454
|
requireSass(),
|
|
16372
16455
|
requireStylus(),
|
|
16373
16456
|
requirePug(),
|
|
@@ -32993,7 +33076,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
32993
33076
|
props: {
|
|
32994
33077
|
mode: { default: "htmlmixed" },
|
|
32995
33078
|
value: { default: "" },
|
|
32996
|
-
readonly: { type: Boolean, default: false }
|
|
33079
|
+
readonly: { type: Boolean, default: false },
|
|
33080
|
+
extension: null
|
|
32997
33081
|
},
|
|
32998
33082
|
emits: ["change"],
|
|
32999
33083
|
setup(__props, { emit }) {
|
|
@@ -33033,11 +33117,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
33033
33117
|
emit("change", editor.getValue());
|
|
33034
33118
|
});
|
|
33035
33119
|
editor.on("blur", () => {
|
|
33120
|
+
const parser = props.mode === "vue" ? "html" : props.mode === "htmlmixed" ? "html" : props.mode === "javascript" ? "babel" : props.mode === "css" ? "postcss" : props.extension || props.mode;
|
|
33036
33121
|
emit("change", prettier.format(
|
|
33037
33122
|
editor.getValue(),
|
|
33038
33123
|
{
|
|
33039
|
-
parser
|
|
33040
|
-
plugins: [parserBabel, parserHtml],
|
|
33124
|
+
parser,
|
|
33125
|
+
plugins: [parserBabel, parserHtml, parserPostcss],
|
|
33041
33126
|
semi: false,
|
|
33042
33127
|
singleQuote: true,
|
|
33043
33128
|
arrowParens: "avoid"
|
|
@@ -33137,6 +33222,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
33137
33222
|
const { filename } = store.state.activeFile;
|
|
33138
33223
|
return filename.endsWith(".vue") ? "vue" : filename.endsWith(".html") ? "htmlmixed" : filename.endsWith(".css") ? "css" : "javascript";
|
|
33139
33224
|
});
|
|
33225
|
+
const extension = computed(() => {
|
|
33226
|
+
const { filename } = store.state.activeFile;
|
|
33227
|
+
return filename.split(".").pop();
|
|
33228
|
+
});
|
|
33140
33229
|
return (_ctx, _cache) => {
|
|
33141
33230
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
33142
33231
|
createVNode(FileSelector),
|
|
@@ -33144,8 +33233,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
33144
33233
|
createVNode(_sfc_main$5, {
|
|
33145
33234
|
onChange: unref(onChange),
|
|
33146
33235
|
value: unref(store).state.activeFile.code,
|
|
33147
|
-
mode: unref(activeMode)
|
|
33148
|
-
|
|
33236
|
+
mode: unref(activeMode),
|
|
33237
|
+
extension: unref(extension)
|
|
33238
|
+
}, null, 8, ["onChange", "value", "mode", "extension"]),
|
|
33149
33239
|
createVNode(Message, {
|
|
33150
33240
|
err: unref(store).state.errors[0]
|
|
33151
33241
|
}, null, 8, ["err"])
|
|
@@ -33155,9 +33245,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
33155
33245
|
}
|
|
33156
33246
|
});
|
|
33157
33247
|
|
|
33158
|
-
const
|
|
33248
|
+
const Editor_vue_vue_type_style_index_0_scoped_3d77b495_lang = '';
|
|
33159
33249
|
|
|
33160
|
-
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
33250
|
+
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-3d77b495"]]);
|
|
33161
33251
|
|
|
33162
33252
|
const srcdoc = "<!doctype html>\n<html>\n\t<head>\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\n\t\t\t\tOxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n\t\t\t}\n\t\t</style>\n\t\t<style id=\"__sfc-styles\"></style>\n\t\t<script>\n\t\t\t(() => {\n\t\t\t\tlet scriptEls = []\n\n\t\t\t\twindow.process = { env: {} }\n\t\t\t\twindow.__modules__ = {}\n\n\t\t\t\twindow.__export__ = (mod, key, get) => {\n\t\t\t\t\tObject.defineProperty(mod, key, {\n\t\t\t\t\t\tenumerable: true,\n\t\t\t\t\t\tconfigurable: true,\n\t\t\t\t\t\tget\n\t\t\t\t\t})\n\t\t\t\t}\n\n\t\t\t\twindow.__dynamic_import__ = key => {\n\t\t\t\t\treturn Promise.resolve(window.__modules__[key])\n\t\t\t\t}\n\n\t\t\t\tasync function handle_message(ev) {\n\t\t\t\t\tlet { action, cmd_id } = ev.data;\n\t\t\t\t\tconst send_message = (payload) => parent.postMessage( { ...payload }, ev.origin);\n\t\t\t\t\tconst send_reply = (payload) => send_message({ ...payload, cmd_id });\n\t\t\t\t\tconst send_ok = () => send_reply({ action: 'cmd_ok' });\n\t\t\t\t\tconst send_error = (message, stack) => send_reply({ action: 'cmd_error', message, stack });\n\n\t\t\t\t\tif (action === 'eval') {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (scriptEls.length) {\n\t\t\t\t\t\t\t\tscriptEls.forEach(el => {\n\t\t\t\t\t\t\t\t\tdocument.head.removeChild(el)\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tscriptEls.length = 0\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tlet { script: scripts } = ev.data.args\n\t\t\t\t\t\t\tif (typeof scripts === 'string') scripts = [scripts]\n\n\t\t\t\t\t\t\tfor (const script of scripts) {\n\t\t\t\t\t\t\t\tconst scriptEl = document.createElement('script')\n\t\t\t\t\t\t\t\tscriptEl.setAttribute('type', 'module')\n\t\t\t\t\t\t\t\t// send ok in the module script to ensure sequential evaluation\n\t\t\t\t\t\t\t\t// of multiple proxy.eval() calls\n\t\t\t\t\t\t\t\tconst done = new Promise((resolve) => {\n\t\t\t\t\t\t\t\t\twindow.__next__ = resolve\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tscriptEl.innerHTML = script + `\\nwindow.__next__()`\n\t\t\t\t\t\t\t\tdocument.head.appendChild(scriptEl)\n\t\t\t\t\t\t\t\tscriptEl.onerror = err => send_error(err.message, err.stack)\n\t\t\t\t\t\t\t\tscriptEls.push(scriptEl)\n\t\t\t\t\t\t\t\tawait done\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsend_ok()\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\tsend_error(e.message, e.stack);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (action === 'catch_clicks') {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconst top_origin = ev.origin;\n\t\t\t\t\t\t\tdocument.body.addEventListener('click', event => {\n\t\t\t\t\t\t\t\tif (event.which !== 1) return;\n\t\t\t\t\t\t\t\tif (event.metaKey || event.ctrlKey || event.shiftKey) return;\n\t\t\t\t\t\t\t\tif (event.defaultPrevented) return;\n\n\t\t\t\t\t\t\t\t// ensure target is a link\n\t\t\t\t\t\t\t\tlet el = event.target;\n\t\t\t\t\t\t\t\twhile (el && el.nodeName !== 'A') el = el.parentNode;\n\t\t\t\t\t\t\t\tif (!el || el.nodeName !== 'A') return;\n\n\t\t\t\t\t\t\t\tif (el.hasAttribute('download') || el.getAttribute('rel') === 'external' || el.target) return;\n\n\t\t\t\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t\t\t\tif (el.href.startsWith(top_origin)) {\n\t\t\t\t\t\t\t\t\tconst url = new URL(el.href);\n\t\t\t\t\t\t\t\t\tif (url.hash[0] === '#') {\n\t\t\t\t\t\t\t\t\t\twindow.location.hash = url.hash;\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\twindow.open(el.href, '_blank');\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tsend_ok();\n\t\t\t\t\t\t} catch(e) {\n\t\t\t\t\t\t\tsend_error(e.message, e.stack);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twindow.addEventListener('message', handle_message, false);\n\n\t\t\t\twindow.onerror = function (msg, url, lineNo, columnNo, error) {\n\t\t\t\t\tif (msg.includes('module specifier “vue”')) {\n\t\t\t\t\t\t// firefox only error, ignore\n\t\t\t\t\t\treturn false\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparent.postMessage({ action: 'error', value: error }, '*');\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tparent.postMessage({ action: 'error', value: msg }, '*');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twindow.addEventListener(\"unhandledrejection\", event => {\n\t\t\t\t\tif (event.reason.message.includes('Cross-origin')) {\n\t\t\t\t\t\tevent.preventDefault()\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tparent.postMessage({ action: 'unhandledrejection', value: event.reason }, '*');\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tparent.postMessage({ action: 'unhandledrejection', value: event.reason.message }, '*');\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tlet previous = { level: null, args: null };\n\n\t\t\t\t['clear', 'log', 'info', 'dir', 'warn', 'error', 'table'].forEach((level) => {\n\t\t\t\t\tconst original = console[level];\n\t\t\t\t\tconsole[level] = (...args) => {\n\t\t\t\t\t\tconst msg = String(args[0])\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tmsg.includes('You are running a development build of Vue') ||\n\t\t\t\t\t\t\tmsg.includes('You are running the esm-bundler build of Vue')\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst stringifiedArgs = stringify(args);\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tprevious.level === level &&\n\t\t\t\t\t\t\tprevious.args &&\n\t\t\t\t\t\t\tprevious.args === stringifiedArgs\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tparent.postMessage({ action: 'console', level, duplicate: true }, '*');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprevious = { level, args: stringifiedArgs };\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tparent.postMessage({ action: 'console', level, args }, '*');\n\t\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\t\tparent.postMessage({ action: 'console', level, args: args.map(a => {\n\t\t\t\t\t\t\t\t\treturn a instanceof Error ? a.message : String(a)\n\t\t\t\t\t\t\t\t}) }, '*');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\toriginal(...args);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t[\n\t\t\t\t\t{ method: 'group', action: 'console_group' },\n\t\t\t\t\t{ method: 'groupEnd', action: 'console_group_end' },\n\t\t\t\t\t{ method: 'groupCollapsed', action: 'console_group_collapsed' },\n\t\t\t\t].forEach((group_action) => {\n\t\t\t\t\tconst original = console[group_action.method];\n\t\t\t\t\tconsole[group_action.method] = (label) => {\n\t\t\t\t\t\tparent.postMessage({ action: group_action.action, label }, '*');\n\n\t\t\t\t\t\toriginal(label);\n\t\t\t\t\t};\n\t\t\t\t});\n\n\t\t\t\tconst timers = new Map();\n\t\t\t\tconst original_time = console.time;\n\t\t\t\tconst original_timelog = console.timeLog;\n\t\t\t\tconst original_timeend = console.timeEnd;\n\n\t\t\t\tconsole.time = (label = 'default') => {\n\t\t\t\t\toriginal_time(label);\n\t\t\t\t\ttimers.set(label, performance.now());\n\t\t\t\t}\n\t\t\t\tconsole.timeLog = (label = 'default') => {\n\t\t\t\t\toriginal_timelog(label);\n\t\t\t\t\tconst now = performance.now();\n\t\t\t\t\tif (timers.has(label)) {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-log', args: [`${label}: ${now - timers.get(label)}ms`] }, '*');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-warn', args: [`Timer '${label}' does not exist`] }, '*');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tconsole.timeEnd = (label = 'default') => {\n\t\t\t\t\toriginal_timeend(label);\n\t\t\t\t\tconst now = performance.now();\n\t\t\t\t\tif (timers.has(label)) {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-log', args: [`${label}: ${now - timers.get(label)}ms`] }, '*');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-warn', args: [`Timer '${label}' does not exist`] }, '*');\n\t\t\t\t\t}\n\t\t\t\t\ttimers.delete(label);\n\t\t\t\t};\n\n\t\t\t\tconst original_assert = console.assert;\n\t\t\t\tconsole.assert = (condition, ...args) => {\n\t\t\t\t\tif (condition) {\n\t\t\t\t\t\tconst stack = new Error().stack;\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'assert', args, stack }, '*');\n\t\t\t\t\t}\n\t\t\t\t\toriginal_assert(condition, ...args);\n\t\t\t\t};\n\n\t\t\t\tconst counter = new Map();\n\t\t\t\tconst original_count = console.count;\n\t\t\t\tconst original_countreset = console.countReset;\n\n\t\t\t\tconsole.count = (label = 'default') => {\n\t\t\t\t\tcounter.set(label, (counter.get(label) || 0) + 1);\n\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-log', args: `${label}: ${counter.get(label)}` }, '*');\n\t\t\t\t\toriginal_count(label);\n\t\t\t\t};\n\n\t\t\t\tconsole.countReset = (label = 'default') => {\n\t\t\t\t\tif (counter.has(label)) {\n\t\t\t\t\t\tcounter.set(label, 0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tparent.postMessage({ action: 'console', level: 'system-warn', args: `Count for '${label}' does not exist` }, '*');\n\t\t\t\t\t}\n\t\t\t\t\toriginal_countreset(label);\n\t\t\t\t};\n\n\t\t\t\tconst original_trace = console.trace;\n\n\t\t\t\tconsole.trace = (...args) => {\n\t\t\t\t\tconst stack = new Error().stack;\n\t\t\t\t\tparent.postMessage({ action: 'console', level: 'trace', args, stack }, '*');\n\t\t\t\t\toriginal_trace(...args);\n\t\t\t\t};\n\n\t\t\t\tfunction stringify(args) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn JSON.stringify(args);\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})()\n\t\t</script>\n\n\t\t<!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) -->\n\t\t<script async src=\"https://unpkg.com/es-module-shims@1.5.18/dist/es-module-shims.wasm.js\"></script>\n\t\t<script type=\"importmap\"><!--IMPORT_MAP--></script>\n\t\t<!--CSS-->\n\t</head>\n\t<body></body>\n</html>\n";
|
|
33163
33253
|
|