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

17 lines
194 KiB

var csso=(()=>{var Bl=Object.create;var Bt=Object.defineProperty;var _l=Object.getOwnPropertyDescriptor;var Ul=Object.getOwnPropertyNames;var jl=Object.getPrototypeOf,ql=Object.prototype.hasOwnProperty;var Ue=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b=(e,t)=>{for(var r in t)Bt(e,r,{get:t[r],enumerable:!0})},Ui=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ul(t))!ql.call(e,o)&&o!==r&&Bt(e,o,{get:()=>t[o],enumerable:!(n=_l(t,o))||n.enumerable});return e};var Hl=(e,t,r)=>(r=e!=null?Bl(jl(e)):{},Ui(t||!e||!e.__esModule?Bt(r,"default",{value:e,enumerable:!0}):r,e)),Wl=e=>Ui(Bt({},"__esModule",{value:!0}),e);var ta=Ue(Nr=>{var ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Nr.encode=function(e){if(0<=e&&e<ea.length)return ea[e];throw new TypeError("Must be between 0 and 63: "+e)};Nr.decode=function(e){var t=65,r=90,n=97,o=122,i=48,a=57,l=43,c=47,s=26,u=52;return t<=e&&e<=r?e-t:n<=e&&e<=o?e-n+s:i<=e&&e<=a?e-i+u:e==l?62:e==c?63:-1}});var aa=Ue(Rr=>{var ra=ta(),Mr=5,na=1<<Mr,oa=na-1,ia=na;function rc(e){return e<0?(-e<<1)+1:(e<<1)+0}function nc(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Rr.encode=function(t){var r="",n,o=rc(t);do n=o&oa,o>>>=Mr,o>0&&(n|=ia),r+=ra.encode(n);while(o>0);return r};Rr.decode=function(t,r,n){var o=t.length,i=0,a=0,l,c;do{if(r>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(c=ra.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));l=!!(c&ia),c&=oa,i=i+(c<<a),a+=Mr}while(l);n.value=nc(i),n.rest=r}});var Kt=Ue(X=>{function oc(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}X.getArg=oc;var sa=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ic=/^data:.+\,.+$/;function dt(e){var t=e.match(sa);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}X.urlParse=dt;function Ve(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}X.urlGenerate=Ve;var ac=32;function sc(e){var t=[];return function(r){for(var n=0;n<t.length;n++)if(t[n].input===r){var o=t[0];return t[0]=t[n],t[n]=o,t[0].result}var i=e(r);return t.unshift({input:r,result:i}),t.length>ac&&t.pop(),i}}var zr=sc(function(t){var r=t,n=dt(t);if(n){if(!n.path)return t;r=n.path}for(var o=X.isAbsolute(r),i=[],a=0,l=0;;)if(a=l,l=r.indexOf("/",a),l===-1){i.push(r.slice(a));break}else for(i.push(r.slice(a,l));l<r.length&&r[l]==="/";)l++;for(var c,s=0,l=i.length-1;l>=0;l--)c=i[l],c==="."?i.splice(l,1):c===".."?s++:s>0&&(c===""?(i.splice(l+1,s),s=0):(i.splice(l,2),s--));return r=i.join("/"),r===""&&(r=o?"/":"."),n?(n.path=r,Ve(n)):r});X.normalize=zr;function la(e,t){e===""&&(e="."),t===""&&(t=".");var r=dt(t),n=dt(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Ve(r);if(r||t.match(ic))return t;if(n&&!n.host&&!n.path)return n.host=t,Ve(n);var o=t.charAt(0)==="/"?t:zr(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=o,Ve(n)):o}X.join=la;X.isAbsolute=function(e){return e.charAt(0)==="/"||sa.test(e)};function lc(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}X.relative=lc;var ca=function(){var e=Object.create(null);return!("__proto__"in e)}();function ua(e){return e}function cc(e){return pa(e)?"$"+e:e}X.toSetString=ca?ua:cc;function uc(e){return pa(e)?e.slice(1):e}X.fromSetString=ca?ua:uc;function pa(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function pc(e,t,r){var n=we(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r
`)}})}var Pr=100,Vi=60,Gi=" ";function Ki({source:e,line:t,column:r},n){function o(u,p){return i.slice(u,p).map((h,m)=>String(u+m+1).padStart(c)+" |"+h).join(`
`)}let i=e.split(/\r\n?|\n|\f/),a=Math.max(1,t-n)-1,l=Math.min(t+n,i.length+1),c=Math.max(4,String(l).length)+1,s=0;r+=(Gi.length-1)*(i[t-1].substr(0,r-1).match(/\t/g)||[]).length,r>Pr&&(s=r-Vi+3,r=Vi-2);for(let u=a;u<=l;u++)u>=0&&u<i.length&&(i[u]=i[u].replace(/\t/g,Gi),i[u]=(s>0&&i[u].length>s?"\u2026":"")+i[u].substr(s,Pr-2)+(i[u].length>s+Pr-1?"\u2026":""));return[o(a,t),new Array(r+c+2).join("-")+"^",o(t,l)].filter(Boolean).join(`
`)}function Ir(e,t,r,n,o){return Object.assign(Re("SyntaxError",e),{source:t,offset:r,line:n,column:o,sourceFragment(a){return Ki({source:t,line:n,column:o},isNaN(a)?0:a)},get formattedMessage(){return`Parse error: ${e}
`+Ki({source:t,line:n,column:o},2)}})}function Qi(e){let t=this.createList(),r=!1,n={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:r=!0,this.next();continue}let o=e.getNode.call(this,n);if(o===void 0)break;r&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,o,t,n),r=!1),t.push(o)}return r&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,n),t}var $i=()=>{},Zl=33,Jl=35,Or=59,Xi=123,Zi=0;function ec(e){return function(){return this[e]()}}function Dr(e){let t=Object.create(null);for(let r in e){let n=e[r],o=n.parse||n;o&&(t[r]=o)}return t}function tc(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Dr(e.atrule),pseudo:Dr(e.pseudo),node:Dr(e.node)};for(let r in e.parseContext)switch(typeof e.parseContext[r]){case"function":t.context[r]=e.parseContext[r];break;case"string":t.context[r]=ec(e.parseContext[r]);break}return{config:t,...t,...t.node}}function Ji(e){let t="",r="<unknown>",n=!1,o=$i,i=!1,a=new Gt,l=Object.assign(new mt,tc(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Qi,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(s){return s===Xi?1:0},consumeUntilLeftCurlyBracketOrSemicolon(s){return s===Xi||s===Or?1:0},consumeUntilExclamationMarkOrSemicolon(s){return s===Zl||s===Or?1:0},consumeUntilSemicolonIncluded(s){return s===Or?2:0},createList(){return new w},createSingleNodeList(s){return new w().appendData(s)},getFirstListNode(s){return s&&s.first},getLastListNode(s){return s&&s.last},parseWithFallback(s,u){let p=this.tokenIndex;try{return s.call(this)}catch(h){if(i)throw h;let m=u.call(this,p);return i=!0,o(h,m),i=!1,m}},lookupNonWSType(s){let u;do if(u=this.lookupType(s++),u!==13)return u;while(u!==Zi);return Zi},charCodeAt(s){return s>=0&&s<t.length?t.charCodeAt(s):0},substring(s,u){return t.substring(s,u)},substrToCursor(s){return this.source.substring(s,this.tokenStart)},cmpChar(s,u){return xe(t,s,u)},cmpStr(s,u,p){return ke(t,s,u,p)},consume(s){let u=this.tokenStart;return this.eat(s),this.substrToCursor(u)},consumeFunctionName(){let s=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),s},consumeNumber(s){let u=t.substring(this.tokenStart,Me(t,this.tokenStart));return this.eat(s),u},eat(s){if(this.tokenType!==s){let u=He[s].slice(0,-6).replace(/-/g," ").replace(/^./,m=>m.toUpperCase()),p=`${/[[\](){}]/.test(u)?`"${u}"`:u} is expected`,h=this.tokenStart;switch(s){case 1:this.tokenType===2||this.tokenType===7?(h=this.tokenEnd-1,p="Identifier is expected but function found"):p="Identifier is expected";break;case 4:this.isDelim(Jl)&&(this.next(),h++,p="Name is expected");break;case 11:this.tokenType===10&&(h=this.tokenEnd,p="Percent sign is expected");break}this.error(p,h)}this.next()},eatIdent(s){(this.tokenType!==1||this.lookupValue(0,s)===!1)&&this.error(`Identifier "${s}" is expected`),this.next()},eatDelim(s){this.isDelim(s)||this.error(`Delim "${String.fromCharCode(s)}" is expected`),this.next()},getLocation(s,u){return n?a.getLocationRange(s,u,r):null},getLocationFromList(s){if(n){let u=this.getFirstListNode(s),p=this.getLastListNode(s);return a.getLocationRange(u!==null?u.loc.start.offset-a.startOffset:this.tokenStart,p!==null?p.loc.end.offset-a.startOffset:this.tokenStart,r)}return null},error(s,u){let p=typeof u<"u"&&u<t.length?a.getLocation(u):this.eof?a.getLocation(qi(t,t.length-1)):a.getLocation(this.tokenStart);throw new Ir(s||"Unexpected input",t,p.offset,p.line,p.column)}});return Object.assign(function(s,u){t=s,u=u||{},l.setSource(t,Le),a.setSource(t,u.offset,u.line,u.column),r=u.filename||"<unknown>",n=Boolean(u.positions),o=typeof u.onParseError=="function"?u.onParseError:$i,i=!1,l.parseAtrulePrelude="parseAtrulePrelude"in u?Boolean(u.parseAtrulePrelude):!0,l.parseRulePrelude="parseRulePrelude"in u?Boolean(u.parseRulePrelude):!0,l.parseValue="parseValue"in u?Boolean(u.parseValue):!0,l.parseCustomProperty="parseCustomProperty"in u?Boolean(u.parseCustomProperty):!1;let{context:p="default",onComment:h}=u;if(!(p in l.context))throw new Error("Unkno
`,13,!0)},emit(c){o+=c},result(){return o}};n&&(typeof n.decorator=="function"&&(a=n.decorator(a)),n.sourceMap&&(a=wa(a)),n.mode in Xt&&(a.tokenBefore=Xt[n.mode]));let l={node:c=>a.node(c),children:Ac,token:(c,s)=>a.token(c,s),tokenize:Ec};return a.node(r),a.result()}}function Aa(e){return{fromPlainObject(t){return e(t,{enter(r){r.children&&!(r.children instanceof w)&&(r.children=new w().fromArray(r.children))}}),t},toPlainObject(t){return e(t,{leave(r){r.children&&r.children instanceof w&&(r.children=r.children.toArray())}}),t}}}var{hasOwnProperty:jr}=Object.prototype,bt=function(){};function Ea(e){return typeof e=="function"?e:bt}function Ta(e,t){return function(r,n,o){r.type===t&&e.call(this,r,n,o)}}function Tc(e,t){let r=t.structure,n=[];for(let o in r){if(jr.call(r,o)===!1)continue;let i=r[o],a={name:o,type:!1,nullable:!1};Array.isArray(i)||(i=[i]);for(let l of i)l===null?a.nullable=!0:typeof l=="string"?a.type="node":Array.isArray(l)&&(a.type="list");a.type&&n.push(a)}return n.length?{context:t.walkContext,fields:n}:null}function Lc(e){let t={};for(let r in e.node)if(jr.call(e.node,r)){let n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=Tc(r,n)}return t}function La(e,t){let r=e.fields.slice(),n=e.context,o=typeof n=="string";return t&&r.reverse(),function(i,a,l,c){let s;o&&(s=a[n],a[n]=i);for(let u of r){let p=i[u.name];if(!u.nullable||p){if(u.type==="list"){if(t?p.reduceRight(c,!1):p.reduce(c,!1))return!0}else if(l(p))return!0}}o&&(a[n]=s)}}function Pa({StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Rule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Declaration:{StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:o}}}function Ia(e){let t=Lc(e),r={},n={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let s in t)jr.call(t,s)&&t[s]!==null&&(r[s]=La(t[s],!1),n[s]=La(t[s],!0));let a=Pa(r),l=Pa(n),c=function(s,u){function p(C,D,Ae){let B=h.call(N,C,D,Ae);return B===o?!0:B===i?!1:!!(y.hasOwnProperty(C.type)&&y[C.type](C,N,p,T)||m.call(N,C,D,Ae)===o)}let h=bt,m=bt,y=r,T=(C,D,Ae,B)=>C||p(D,Ae,B),N={break:o,skip:i,root:s,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof u=="function")h=u;else if(u&&(h=Ea(u.enter),m=Ea(u.leave),u.reverse&&(y=n),u.visit)){if(a.hasOwnProperty(u.visit))y=u.reverse?l[u.visit]:a[u.visit];else if(!t.hasOwnProperty(u.visit))throw new Error("Bad value `"+u.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");h=Ta(h,u.visit),m=Ta(m,u.visit)}if(h===bt&&m===bt)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");p(s)};return c.break=o,c.skip=i,c.find=function(s,u){let p=null;return c(s,function(h,m,y){if(u.call(this,h,m,y))return p=h,o}),p},c.findLast=function(s,u){let p=null;return c(s,{reverse:!0,enter(h,m,y){if(u.call(this,h,m,y))return p=h,o}}),p},c.findAll=function(s,u){let p=[];return c(s,function(h,m,y){u.call(this,h,m,y)&&p.push(h)}),p},c}function Pc(e){return e}function Ic(e){let{min:t,max:r,comma:n}=e;return t===0&&r===0?n?"#?":"*":t===0&&r===1?"?":t===1&&r===0?n?"#":"+":t===1&&r===1?"":(n?"#":"")+(t===r?"{"+t+"}":"{"+t+","+(r!==0?r:"")+"}")}function Oc(e){switch(e.type){case"Range":return" ["+(e.min===null?"-\u221E":e.min)+","+(e.max===null?"\u221E":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function Dc(e,t,r,n){let o=e.combinator===" "||n?e.combinator:" "+e.combinator+" ",i=e.terms.map(a=>qr(a,t,r,n)).join(o);return e.explicit||r?(n||i[0]===","?"[":"[ ")+i+(n?"]":" ]"):i}function qr(e,t,r,n){let o;switch(e.type){case"Group":o=Dc(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return qr(e.term,t,r,n)+t(Ic(e),e);case"Type":o="<"+e.name+(e.opts?t(Oc(e.opts),e.opts):"")+">";break;case"Property":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Err
syntax: `+o.syntax+`
value: `+(i||"<empty string>")+`
--------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,c),o.loc={source:r&&r.loc&&r.loc.source||"<unknown>",start:c,end:s},o};var Jt=new Map,Qe=new Map,er=45,Z=Mc,me=Rc;function tr(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===er&&e.charCodeAt(t+1)===er}function Na(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===er&&e.charCodeAt(t+1)!==er){let r=e.indexOf("-",t+2);if(r!==-1)return e.substring(t,r+1)}return""}function Mc(e){if(Jt.has(e))return Jt.get(e);let t=e.toLowerCase(),r=Jt.get(t);if(r===void 0){let n=tr(t,0),o=n?"":Na(t,0);r=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:n})}return Jt.set(e,r),r}function Rc(e){if(Qe.has(e))return Qe.get(e);let t=e,r=e[0];r==="/"?r=e[1]==="/"?"//":"/":r!=="_"&&r!=="*"&&r!=="$"&&r!=="#"&&r!=="+"&&r!=="&"&&(r="");let n=tr(t,r.length);if(!n&&(t=t.toLowerCase(),Qe.has(t))){let l=Qe.get(t);return Qe.set(e,l),l}let o=n?"":Na(t,r.length),i=t.substr(0,r.length+o.length),a=Object.freeze({basename:t.substr(i.length),name:t.substr(r.length),hack:r,vendor:o,prefix:i,custom:n});return Qe.set(e,a),a}var rr=["initial","inherit","unset","revert","revert-layer"];var kt=43,de=45,Hr=110,$e=!0,Fc=!1;function Yr(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function xt(e,t,r){for(;e!==null&&(e.type===13||e.type===25);)e=r(++t);return t}function Pe(e,t,r,n){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===kt||o===de){if(r)return 0;t++}for(;t<e.value.length;t++)if(!j(e.value.charCodeAt(t)))return 0;return n+1}function Wr(e,t,r){let n=!1,o=xt(e,t,r);if(e=r(o),e===null)return t;if(e.type!==10)if(Yr(e,kt)||Yr(e,de)){if(n=!0,o=xt(r(++o),o,r),e=r(o),e===null||e.type!==10)return 0}else return t;if(!n){let i=e.value.charCodeAt(0);if(i!==kt&&i!==de)return 0}return Pe(e,n?0:1,n,o)}function Vr(e,t){let r=0;if(!e)return 0;if(e.type===10)return Pe(e,0,Fc,r);if(e.type===1&&e.value.charCodeAt(0)===de){if(!xe(e.value,1,Hr))return 0;switch(e.value.length){case 2:return Wr(t(++r),r,t);case 3:return e.value.charCodeAt(2)!==de?0:(r=xt(t(++r),r,t),e=t(r),Pe(e,0,$e,r));default:return e.value.charCodeAt(2)!==de?0:Pe(e,3,$e,r)}}else if(e.type===1||Yr(e,kt)&&t(r+1).type===1){if(e.type!==1&&(e=t(++r)),e===null||!xe(e.value,0,Hr))return 0;switch(e.value.length){case 1:return Wr(t(++r),r,t);case 2:return e.value.charCodeAt(1)!==de?0:(r=xt(t(++r),r,t),e=t(r),Pe(e,0,$e,r));default:return e.value.charCodeAt(1)!==de?0:Pe(e,2,$e,r)}}else if(e.type===12){let n=e.value.charCodeAt(0),o=n===kt||n===de?1:0,i=o;for(;i<e.value.length&&j(e.value.charCodeAt(i));i++);return i===o||!xe(e.value,i,Hr)?0:i+1===e.value.length?Wr(t(++r),r,t):e.value.charCodeAt(i+1)!==de?0:i+2===e.value.length?(r=xt(t(++r),r,t),e=t(r),Pe(e,0,$e,r)):Pe(e,i+2,$e,r)}return 0}var Bc=43,Ma=45,Ra=63,_c=117;function Gr(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Uc(e,t){return e.value.charCodeAt(0)===t}function wt(e,t,r){let n=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===Ma&&r&&n!==0)return wt(e,t+n+1,!1),6;if(!oe(i)||++n>6)return 0}return n}function nr(e,t,r){if(!e)return 0;for(;Gr(r(t),Ra);){if(++e>6)return 0;t++}return t}function Kr(e,t){let r=0;if(e===null||e.type!==1||!xe(e.value,0,_c)||(e=t(++r),e===null))return 0;if(Gr(e,Bc))return e=t(++r),e===null?0:e.type===1?nr(wt(e,0,!0),++r,t):Gr(e,Ra)?nr(1,++r,t):0;if(e.type===10){let n=wt(e,1,!0);return n===0?0:(e=t(++r),e===null?r:e.type===12||e.type===10?!Uc(e,Ma)||!wt(e,1,!1)?0:r+1:nr(n,r,t))}return e.type===12?nr(wt(e,1,!0),++r,t):0}var jc=["calc(","-moz-calc(","-webkit-calc("],Qr=new Map([[2,22],[21,22],[19,20],[23,24]]),qc=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],Hc=["deg","grad","rad","turn"],Wc=["s","ms"],Yc=["hz","khz"],Vc=["dpi","dpcm","dppx","x"],Gc=["fr"],Kc=["db"],Qc=["st"];function ue(e,t){return t<e.length?e.charCodeAt(t):0}function Fa(e,t){retur
`+t+`
--`+new Array((r||t.length)+1).join("-")+"^"})}var au=9,su=10,lu=12,cu=13,uu=32,ir=class{constructor(t){this.str=t,this.pos=0}charCodeAt(t){return t<this.str.length?this.str.charCodeAt(t):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(t){return this.charCodeAt(this.findWsEnd(t))}findWsEnd(t){for(;t<this.str.length;t++){let r=this.str.charCodeAt(t);if(r!==cu&&r!==su&&r!==lu&&r!==uu&&r!==au)break}return t}substringToPos(t){return this.str.substring(this.pos,this.pos=t)}eat(t){this.charCode()!==t&&this.error("Expect `"+String.fromCharCode(t)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(t){throw new Xr(t,this.str,this.pos)}};var pu=9,hu=10,fu=12,mu=13,du=32,Ga=33,en=35,Ua=38,ar=39,Ka=40,gu=41,Qa=42,tn=43,rn=44,ja=45,nn=60,$a=62,Jr=63,bu=64,ur=91,on=93,sr=123,qa=124,Ha=125,Wa=8734,vt=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Ya={" ":1,"&&":2,"||":3,"|":4};function lr(e){return e.substringToPos(e.findWsEnd(e.pos))}function Xe(e){let t=e.pos;for(;t<e.str.length;t++){let r=e.str.charCodeAt(t);if(r>=128||vt[r]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function cr(e){let t=e.pos;for(;t<e.str.length;t++){let r=e.str.charCodeAt(t);if(r<48||r>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function yu(e){let t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function Va(e){let t=null,r=null;return e.eat(sr),t=cr(e),e.charCode()===rn?(e.pos++,e.charCode()!==Ha&&(r=cr(e))):r=t,e.eat(Ha),{min:Number(t),max:r?Number(r):0}}function xu(e){let t=null,r=!1;switch(e.charCode()){case Qa:e.pos++,t={min:0,max:0};break;case tn:e.pos++,t={min:1,max:0};break;case Jr:e.pos++,t={min:0,max:1};break;case en:e.pos++,r=!0,e.charCode()===sr?t=Va(e):e.charCode()===Jr?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case sr:t=Va(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}function Ze(e,t){let r=xu(e);return r!==null?(r.term=t,e.charCode()===en&&e.charCodeAt(e.pos-1)===tn?Ze(e,r):r):t}function Zr(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function ku(e){let t;return e.eat(nn),e.eat(ar),t=Xe(e),e.eat(ar),e.eat($a),Ze(e,{type:"Property",name:t})}function wu(e){let t=null,r=null,n=1;return e.eat(ur),e.charCode()===ja&&(e.peek(),n=-1),n==-1&&e.charCode()===Wa?e.peek():(t=n*Number(cr(e)),vt[e.charCode()]!==0&&(t+=Xe(e))),lr(e),e.eat(rn),lr(e),e.charCode()===Wa?e.peek():(n=1,e.charCode()===ja&&(e.peek(),n=-1),r=n*Number(cr(e)),vt[e.charCode()]!==0&&(r+=Xe(e))),e.eat(on),{type:"Range",min:t,max:r}}function vu(e){let t,r=null;return e.eat(nn),t=Xe(e),e.charCode()===Ka&&e.nextCharCode()===gu&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===ur&&(lr(e),r=wu(e)),e.eat($a),Ze(e,{type:"Type",name:t,opts:r})}function Su(e){let t=Xe(e);return e.charCode()===Ka?(e.pos++,{type:"Function",name:t}):Ze(e,{type:"Keyword",name:t})}function Cu(e,t){function r(o,i){return{type:"Group",terms:o,combinator:i,disallowEmpty:!1,explicit:!1}}let n;for(t=Object.keys(t).sort((o,i)=>Ya[o]-Ya[i]);t.length>0;){n=t.shift();let o=0,i=0;for(;o<e.length;o++){let a=e[o];a.type==="Combinator"&&(a.value===n?(i===-1&&(i=o-1),e.splice(o,1),o--):(i!==-1&&o-i>1&&(e.splice(i,o-i,r(e.slice(i,o),n)),o=i+1),i=-1))}i!==-1&&t.length&&e.splice(i,o-i,r(e.slice(i,o),n))}return n}function Xa(e){let t=[],r={},n,o=null,i=e.pos;for(;n=Eu(e);)n.type!=="Spaces"&&(n.type==="Combinator"?((o===null||o.type==="Combinator")&&(e.pos=i,e.error("Unexpected combinator")),r[n.value]=!0):o!==null&&o.type!=="Combinator"&&(r[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(n),o=n,i=e.pos);return o!==null&&o.type==="Combinator"&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:Cu(t,r)||" ",disallowEmpty:!1,explicit:!1}}function Au(e){let t;return e.eat(ur),t=Xa(e),e.eat(on),t.explicit=!0,e.charCode()===Ga&&(e.pos++,t.disallowEmpty=!0),t}function Eu(e){let t=e
`})),n.insert(w.createItem(l.comment)),s.isEmpty||n.insert(w.createItem({type:"Raw",value:`
`}))),i&&!s.isEmpty){let u=s.last;(u.type!=="Atrule"||u.name!=="import"&&u.name!=="charset")&&(i=!1)}o!=="exclamation"&&(o=!1),n.appendList(s)}while(!a.isEmpty);return{ast:e}}function Rl(e){let t=nt.encode(e,!0),r=nt.encode(e);return t.length<r.length?t:r}var{lexer:od,tokenize:id,parse:ad,generate:sd,walk:ld,find:cd,findLast:ud,findAll:pd,fromPlainObject:hd,toPlainObject:fd}=nl({node:{String:{generate(e){this.token(Ee.String,Rl(e.value))}},Url:{generate(e){let t=Pt.encode(e.value),r=Rl(e.value);this.token(Ee.Url,t.length<=r.length+5?t:"url("+r+")")}}}});var Bi={};b(Bi,{addSelectors:()=>Oe,compareDeclarations:()=>Ei,hasSimilarSelectors:()=>vr,isEqualDeclarations:()=>zt,isEqualSelectors:()=>Rt,processSelector:()=>Mt,unsafeToSkipNode:()=>De});var{parse:md,generate:_i,compress:dd}=Cr;function at(e,t,r,n){return t.debug&&console.error(`## ${e} done in %d ms
`,Date.now()-r),n}function gd(e){let t;return function(n,o){let i=n;if(o&&(i=`[${((Date.now()-t)/1e3).toFixed(3)}s] ${i}`),e>1&&o){let a=_i(o);e===2&&a.length>256&&(a=a.substr(0,256)+"..."),i+=`
${a}
`}console.error(i),t=Date.now()}}function bd(e){return e={...e},typeof e.logger!="function"&&e.debug&&(e.logger=gd(e.debug)),e}function zl(e,t,r){Array.isArray(r)||(r=[r]),r.forEach(n=>n(e,t))}function Fl(e,t,r){r=r||{};let n=r.filename||"<unknown>",o,i=at("parsing",r,Date.now(),md(t,{context:e,filename:n,positions:Boolean(r.sourceMap)}));r.beforeCompress&&at("beforeCompress",r,Date.now(),zl(i,r,r.beforeCompress));let a=at("compress",r,Date.now(),dd(i,bd(r)));return r.afterCompress&&at("afterCompress",r,Date.now(),zl(a,r,r.afterCompress)),r.sourceMap?o=at("generate(sourceMap: true)",r,Date.now(),(()=>{let l=_i(a.ast,{sourceMap:!0});return l.map._file=n,l.map.setSourceContent(n,t),l})()):o=at("generate",r,Date.now(),{css:_i(a.ast),map:null}),o}function yd(e,t){return Fl("stylesheet",e,t)}function xd(e,t){return Fl("declarationList",e,t)}return Wl(kd);})();