rrweb-player
Version:
rrweb's replayer UI
37 lines (36 loc) • 133 kB
JavaScript
(function (g, f) {
if ("object" == typeof exports && "object" == typeof module) {
module.exports = f();
} else if ("function" == typeof define && define.amd) {
define("rrwebPlayer", [], f);
} else if ("object" == typeof exports) {
exports["rrwebPlayer"] = f();
} else {
g["rrwebPlayer"] = f();
}
}(this, () => {
var exports = {};
var module = { exports };
"use strict";var Ei=Object.defineProperty,Ai=Object.defineProperties;var ki=Object.getOwnPropertyDescriptors;var Ie=Object.getOwnPropertySymbols;var Ar=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable;var Er=(e,i,u)=>i in e?Ei(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,Q=(e,i)=>{for(var u in i||(i={}))Ar.call(i,u)&&Er(e,u,i[u]);if(Ie)for(var u of Ie(i))kr.call(i,u)&&Er(e,u,i[u]);return e},ie=(e,i)=>Ai(e,ki(i));var Re=(e,i)=>{var u={};for(var d in e)Ar.call(e,d)&&i.indexOf(d)<0&&(u[d]=e[d]);if(e!=null&&Ie)for(var d of Ie(e))i.indexOf(d)<0&&kr.call(e,d)&&(u[d]=e[d]);return u};var Mi=Object.defineProperty,Ni=(e,i,u)=>i in e?Mi(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,Mr=(e,i,u)=>Ni(e,typeof i!="symbol"?i+"":i,u);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function Pe(){}function Nr(e,i){for(const u in i)e[u]=i[u];return e}function ti(e){return e()}function Ir(){return Object.create(null)}function xe(e){e.forEach(ti)}function ri(e){return typeof e=="function"}function ar(e,i){return e!=e?i==i:e!==i||e&&typeof e=="object"||typeof e=="function"}function Ii(e){return Object.keys(e).length===0}function Lr(e){const i={};for(const u in e)u[0]!=="$"&&(i[u]=e[u]);return i}function z(e,i){e.appendChild(i)}function oe(e,i,u){e.insertBefore(i,u||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function tt(e,i){for(let u=0;u<e.length;u+=1)e[u]&&e[u].d(i)}function H(e){return document.createElement(e)}function Te(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function he(e){return document.createTextNode(e)}function ee(){return he(" ")}function Li(){return he("")}function ye(e,i,u,d){return e.addEventListener(i,u,d),()=>e.removeEventListener(i,u,d)}function L(e,i,u){u==null?e.removeAttribute(i):e.getAttribute(i)!==u&&e.setAttribute(i,u)}function Ui(e){return Array.from(e.childNodes)}function je(e,i){i=""+i,e.data!==i&&(e.data=i)}function J(e,i,u,d){u==null?e.style.removeProperty(i):e.style.setProperty(i,u,"")}function be(e,i,u){e.classList.toggle(i,!!u)}function Di(e,i,{bubbles:u=!1,cancelable:d=!1}={}){return new CustomEvent(e,{detail:i,bubbles:u,cancelable:d})}let Ee;function _e(e){Ee=e}function si(){if(!Ee)throw new Error("Function called outside component initialization");return Ee}function ii(e){si().$$.on_destroy.push(e)}function Fi(){const e=si();return(i,u,{cancelable:d=!1}={})=>{const s=e.$$.callbacks[i];if(s){const c=Di(i,u,{cancelable:d});return s.slice().forEach(p=>{p.call(e,c)}),!c.defaultPrevented}return!0}}const ge=[],fe=[];let ve=[];const sr=[],zi=Promise.resolve();let ir=!1;function qi(){ir||(ir=!0,zi.then(ni))}function nr(e){ve.push(e)}function Bi(e){sr.push(e)}const rt=new Set;let de=0;function ni(){if(de!==0)return;const e=Ee;do{try{for(;de<ge.length;){const i=ge[de];de++,_e(i),Ti(i.$$)}}catch(i){throw ge.length=0,de=0,i}for(_e(null),ge.length=0,de=0;fe.length;)fe.pop()();for(let i=0;i<ve.length;i+=1){const u=ve[i];rt.has(u)||(rt.add(u),u())}ve.length=0}while(ge.length);for(;sr.length;)sr.pop()();ir=!1,rt.clear(),_e(e)}function Ti(e){if(e.fragment!==null){e.update(),xe(e.before_update);const i=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,i),e.after_update.forEach(nr)}}function ji(e){const i=[],u=[];ve.forEach(d=>e.indexOf(d)===-1?i.push(d):u.push(d)),u.forEach(d=>d()),ve=i}const Be=new Set;let ue;function oi(){ue={r:0,c:[],p:ue}}function li(){ue.r||xe(ue.c),ue=ue.p}function ne(e,i){e&&e.i&&(Be.delete(e),e.i(i))}function Se(e,i,u,d){if(e&&e.o){if(Be.has(e))return;Be.add(e),ue.c.push(()=>{Be.delete(e),d&&(u&&e.d(1),d())}),e.o(i)}else d&&d()}function me(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Wi(e,i,u){const d=e.$$.props[i];d!==void 0&&(e.$$.bound[d]=u,u(e.$$.ctx[d]))}function ai(e){e&&e.c()}function ur(e,i,u){const{fragment:d,after_update:s}=e.$$;d&&d.m(i,u),nr(()=>{const c=e.$$.on_mount.map(ti).filter(ri);e.$$.on_destroy?e.$$.on_destroy.push(...c):xe(c),e.$$.on_mount=[]}),s.forEach(nr)}function fr(e,i){const u=e.$$;u.fragment!==null&&(ji(u.after_update),xe(u.on_destroy),u.fragment&&u.fragment.d(i),u.on_destroy=u.fragment=null,u.ctx=[])}function $i(e,i){e.$$.dirty[0]===-1&&(ge.push(e),qi(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31}function hr(e,i,u,d,s,c,p=null,m=[-1]){const a=Ee;_e(e);const h=e.$$={fragment:null,ctx:[],props:c,update:Pe,not_equal:s,bound:Ir(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(a?a.$$.context:[])),callbacks:Ir(),dirty:m,skip_bound:!1,root:i.target||a.$$.root};p&&p(h.root);let t=!1;if(h.ctx=u?u(e,i.props||{},(o,n,...r)=>{const f=r.length?r[0]:n;return h.ctx&&s(h.ctx[o],h.ctx[o]=f)&&(!h.skip_bound&&h.bound[o]&&h.bound[o](f),t&&$i(e,o)),n}):[],h.update(),t=!0,xe(h.before_update),h.fragment=d?d(h.ctx):!1,i.target){if(i.hydrate){const o=Ui(i.target);h.fragment&&h.fragment.l(o),o.forEach(se)}else h.fragment&&h.fragment.c();i.intro&&ne(e.$$.fragment),ur(e,i.target,i.anchor),ni()}_e(a)}class cr{constructor(){Mr(this,"$$"),Mr(this,"$$set")}$destroy(){fr(this,1),this.$destroy=Pe}$on(i,u){if(!ri(u))return Pe;const d=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return d.push(u),()=>{const s=d.indexOf(u);s!==-1&&d.splice(s,1)}}$set(i){this.$$set&&!Ii(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const Vi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vi);var Ur,Gi=Object.defineProperty,Ji=(e,i,u)=>i in e?Gi(e,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[i]=u,Dr=(e,i,u)=>Ji(e,typeof i!="symbol"?i+"":i,u);Date.now().toString();class Hi{constructor(){Dr(this,"idNodeMap",new Map),Dr(this,"nodeMetaMap",new WeakMap)}getId(i){var u;if(!i)return-1;const d=(u=this.getMeta(i))==null?void 0:u.id;return d!=null?d:-1}getNode(i){return this.idNodeMap.get(i)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(i){return this.nodeMetaMap.get(i)||null}removeNodeFromMap(i){const u=this.getId(i);this.idNodeMap.delete(u),i.childNodes&&i.childNodes.forEach(d=>this.removeNodeFromMap(d))}has(i){return this.idNodeMap.has(i)}hasNode(i){return this.nodeMetaMap.has(i)}add(i,u){const d=u.id;this.idNodeMap.set(d,i),this.nodeMetaMap.set(i,u)}replace(i,u){const d=this.getNode(i);if(d){const s=this.nodeMetaMap.get(d);s&&this.nodeMetaMap.set(u,s)}this.idNodeMap.set(i,u)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Yi(){return new Hi}function Qi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ki(e){if(e.__esModule)return e;var i=e.default;if(typeof i=="function"){var u=function d(){return this instanceof d?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};u.prototype=i.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(u,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),u}var Le={exports:{}},Fr;function Xi(){if(Fr)return Le.exports;Fr=1;var e=String,i=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Le.exports=i(),Le.exports.createColors=i,Le.exports}const Zi={},en=Object.freeze(Object.defineProperty({__proto__:null,default:Zi},Symbol.toStringTag,{value:"Module"})),te=Ki(en);var st,zr;function pr(){if(zr)return st;zr=1;let e=Xi(),i=te;class u extends Error{constructor(s,c,p,m,a,h){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),h&&(this.plugin=h),typeof c!="undefined"&&typeof p!="undefined"&&(typeof c=="number"?(this.line=c,this.column=p):(this.line=c.line,this.column=c.column,this.endLine=p.line,this.endColumn=p.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let c=this.source;s==null&&(s=e.isColorSupported),i&&s&&(c=i(c));let p=c.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,p.length),h=String(a).length,t,o;if(s){let{bold:n,gray:r,red:f}=e.createColors(!0);t=l=>n(f(l)),o=l=>r(l)}else t=o=n=>n;return p.slice(m,a).map((n,r)=>{let f=m+1+r,l=" "+(" "+f).slice(-h)+" | ";if(f===this.line){let g=o(l.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+o(l)+n+`
`+g+t("^")}return" "+o(l)+n}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`
`+s+`
`),this.name+": "+this.message+s}}return st=u,u.default=u,st}var Ue={},qr;function dr(){return qr||(qr=1,Ue.isClean=Symbol("isClean"),Ue.my=Symbol("my")),Ue}var it,Br;function ui(){if(Br)return it;Br=1;const e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i(d){return d[0].toUpperCase()+d.slice(1)}class u{constructor(s){this.builder=s}atrule(s,c){let p="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?p+=s.raws.afterName:m&&(p+=" "),s.nodes)this.block(s,p+m);else{let a=(s.raws.between||"")+(c?";":"");this.builder(p+m+a,s)}}beforeAfter(s,c){let p;s.type==="decl"?p=this.raw(s,null,"beforeDecl"):s.type==="comment"?p=this.raw(s,null,"beforeComment"):c==="before"?p=this.raw(s,null,"beforeRule"):p=this.raw(s,null,"beforeClose");let m=s.parent,a=0;for(;m&&m.type!=="root";)a+=1,m=m.parent;if(p.includes(`
`)){let h=this.raw(s,null,"indent");if(h.length)for(let t=0;t<a;t++)p+=h}return p}block(s,c){let p=this.raw(s,"between","beforeOpen");this.builder(c+p+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let c=s.nodes.length-1;for(;c>0&&s.nodes[c].type==="comment";)c-=1;let p=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let a=s.nodes[m],h=this.raw(a,"before");h&&this.builder(h),this.stringify(a,c!==m||p)}}comment(s){let c=this.raw(s,"left","commentLeft"),p=this.raw(s,"right","commentRight");this.builder("/*"+c+s.text+p+"*/",s)}decl(s,c){let p=this.raw(s,"between","colon"),m=s.prop+p+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),c&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,c,p){let m;if(p||(p=c),c&&(m=s.raws[c],typeof m!="undefined"))return m;let a=s.parent;if(p==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[p];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[p]!="undefined")return h.rawCache[p];if(p==="before"||p==="after")return this.beforeAfter(s,p);{let t="raw"+i(p);this[t]?m=this[t](h,s):h.walk(o=>{if(m=o.raws[c],typeof m!="undefined")return!1})}return typeof m=="undefined"&&(m=e[p]),h.rawCache[p]=m,m}rawBeforeClose(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after!="undefined")return c=p.raws.after,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(s,c){let p;return s.walkComments(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(s,c){let p;return s.walkDecls(m=>{if(typeof m.raws.before!="undefined")return p=m.raws.before,p.includes(`
`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p=="undefined"?p=this.raw(c,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeOpen(s){let c;return s.walk(p=>{if(p.type!=="decl"&&(c=p.raws.between,typeof c!="undefined"))return!1}),c}rawBeforeRule(s){let c;return s.walk(p=>{if(p.nodes&&(p.parent!==s||s.first!==p)&&typeof p.raws.before!="undefined")return c=p.raws.before,c.includes(`
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(s){let c;return s.walkDecls(p=>{if(typeof p.raws.between!="undefined")return c=p.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length===0&&(c=p.raws.after,typeof c!="undefined"))return!1}),c}rawIndent(s){if(s.raws.indent)return s.raws.indent;let c;return s.walk(p=>{let m=p.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof p.raws.before!="undefined"){let a=p.raws.before.split(`
`);return c=a[a.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(s){let c;return s.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(c=p.raws.semicolon,typeof c!="undefined"))return!1}),c}rawValue(s,c){let p=s[c],m=s.raws[c];return m&&m.value===p?m.raw:p}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,c){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,c)}}return it=u,u.default=u,it}var nt,Tr;function We(){if(Tr)return nt;Tr=1;let e=ui();function i(u,d){new e(d).stringify(u)}return nt=i,i.default=i,nt}var ot,jr;function $e(){if(jr)return ot;jr=1;let{isClean:e,my:i}=dr(),u=pr(),d=ui(),s=We();function c(m,a){let h=new m.constructor;for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t)||t==="proxyCache")continue;let o=m[t],n=typeof o;t==="parent"&&n==="object"?a&&(h[t]=a):t==="source"?h[t]=o:Array.isArray(o)?h[t]=o.map(r=>c(r,h)):(n==="object"&&o!==null&&(o=c(o)),h[t]=o)}return h}class p{constructor(a={}){this.raws={},this[e]=!1,this[i]=!0;for(let h in a)if(h==="nodes"){this.nodes=[];for(let t of a[h])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[h]=a[h]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let h=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let h in a)this[h]=a[h];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let h=c(this);for(let t in a)h[t]=a[t];return h}cloneAfter(a={}){let h=this.clone(a);return this.parent.insertAfter(this,h),h}cloneBefore(a={}){let h=this.clone(a);return this.parent.insertBefore(this,h),h}error(a,h={}){if(this.source){let{end:t,start:o}=this.rangeBy(h);return this.source.input.error(a,{column:o.column,line:o.line},{column:t.column,line:t.line},h)}return new u(a)}getProxyProcessor(){return{get(a,h){return h==="proxyOf"?a:h==="root"?()=>a.root().toProxy():a[h]},set(a,h,t){return a[h]===t||(a[h]=t,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,h){let t=this.source.start;if(a.index)t=this.positionInside(a.index,h);else if(a.word){h=this.toString();let o=h.indexOf(a.word);o!==-1&&(t=this.positionInside(o,h))}return t}positionInside(a,h){let t=h||this.toString(),o=this.source.start.column,n=this.source.start.line;for(let r=0;r<a;r++)t[r]===`
`?(o=1,n+=1):o+=1;return{column:o,line:n}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let h={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(a.word){let o=this.toString(),n=o.indexOf(a.word);n!==-1&&(h=this.positionInside(n,o),t=this.positionInside(n+a.word.length,o))}else a.start?h={column:a.start.column,line:a.start.line}:a.index&&(h=this.positionInside(a.index)),a.end?t={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?t=this.positionInside(a.endIndex):a.index&&(t=this.positionInside(a.index+1));return(t.line<h.line||t.line===h.line&&t.column<=h.column)&&(t={column:h.column+1,line:h.line}),{end:t,start:h}}raw(a,h){return new d().raw(this,a,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let h=this,t=!1;for(let o of a)o===this?t=!0:t?(this.parent.insertAfter(h,o),h=o):this.parent.insertBefore(h,o);t||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,h){let t={},o=h==null;h=h||new Map;let n=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let f=this[r];if(Array.isArray(f))t[r]=f.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,h):l);else if(typeof f=="object"&&f.toJSON)t[r]=f.toJSON(null,h);else if(r==="source"){let l=h.get(f.input);l==null&&(l=n,h.set(f.input,n),n++),t[r]={end:f.end,inputId:l,start:f.start}}else t[r]=f}return o&&(t.inputs=[...h.keys()].map(r=>r.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let h="";return a(this,t=>{h+=t}),h}warn(a,h,t){let o={node:this};for(let n in t)o[n]=t[n];return a.warn(h,o)}get proxyOf(){return this}}return ot=p,p.default=p,ot}var lt,Wr;function Ve(){if(Wr)return lt;Wr=1;let e=$e();class i extends e{constructor(d){d&&typeof d.value!="undefined"&&typeof d.value!="string"&&(d=ie(Q({},d),{value:String(d.value)})),super(d),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return lt=i,i.default=i,lt}var at,$r;function tn(){if($r)return at;$r=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return at={nanoid:(d=21)=>{let s="",c=d;for(;c--;)s+=e[Math.random()*64|0];return s},customAlphabet:(d,s=21)=>(c=s)=>{let p="",m=c;for(;m--;)p+=d[Math.random()*d.length|0];return p}},at}var ut,Vr;function fi(){if(Vr)return ut;Vr=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=te,{existsSync:u,readFileSync:d}=te,{dirname:s,join:c}=te;function p(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class m{constructor(h,t){if(t.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let o=t.map?t.map.prev:void 0,n=this.loadMap(t.from,o);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let t=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(n.test(h)||r.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(t.test(h)||o.test(h))return p(h.substr(RegExp.lastMatch.length));let f=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+f)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let t=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let o=h.lastIndexOf(t.pop()),n=h.indexOf("*/",o);o>-1&&n>-1&&(this.annotation=this.getAnnotationURL(h.substring(o,n)))}loadFile(h){if(this.root=s(h),u(h))return this.mapFile=h,d(h,"utf-8").toString().trim()}loadMap(h,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let o=t(h);if(o){let n=this.loadFile(o);if(!n)throw new Error("Unable to load previous source map: "+o.toString());return n}}else{if(t instanceof e)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let o=this.annotation;return h&&(o=c(s(h),o)),this.loadFile(o)}}}startWith(h,t){return h?h.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ut=m,m.default=m,ut}var ft,Gr;function Ge(){if(Gr)return ft;Gr=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=te,{fileURLToPath:u,pathToFileURL:d}=te,{isAbsolute:s,resolve:c}=te,{nanoid:p}=tn(),m=te,a=pr(),h=fi(),t=Symbol("fromOffsetCache"),o=!!(e&&i),n=!!(c&&s);class r{constructor(l,g={}){if(l===null||typeof l=="undefined"||typeof l=="object"&&!l.toString)throw new Error(`PostCSS received ${l} instead of CSS string`);if(this.css=l.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!n||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=c(g.from)),n&&o){let x=new h(this.css,g);if(x.text){this.map=x;let v=x.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+p(6)+">"),this.map&&(this.map.file=this.from)}error(l,g,x,v={}){let b,C,y;if(g&&typeof g=="object"){let S=g,_=x;if(typeof S.offset=="number"){let A=this.fromOffset(S.offset);g=A.line,x=A.col}else g=S.line,x=S.column;if(typeof _.offset=="number"){let A=this.fromOffset(_.offset);C=A.line,y=A.col}else C=_.line,y=_.column}else if(!x){let S=this.fromOffset(g);g=S.line,x=S.col}let w=this.origin(g,x,C,y);return w?b=new a(l,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,v.plugin):b=new a(l,C===void 0?g:{column:x,line:g},C===void 0?x:{column:y,line:C},this.css,this.file,v.plugin),b.input={column:x,endColumn:y,endLine:C,line:g,source:this.css},this.file&&(d&&(b.input.url=d(this.file).toString()),b.input.file=this.file),b}fromOffset(l){let g,x;if(this[t])x=this[t];else{let b=this.css.split(`
`);x=new Array(b.length);let C=0;for(let y=0,w=b.length;y<w;y++)x[y]=C,C+=b[y].length+1;this[t]=x}g=x[x.length-1];let v=0;if(l>=g)v=x.length-1;else{let b=x.length-2,C;for(;v<b;)if(C=v+(b-v>>1),l<x[C])b=C-1;else if(l>=x[C+1])v=C+1;else{v=C;break}}return{col:l-x[v]+1,line:v+1}}mapResolve(l){return/^\w+:\/\//.test(l)?l:c(this.map.consumer().sourceRoot||this.map.root||".",l)}origin(l,g,x,v){if(!this.map)return!1;let b=this.map.consumer(),C=b.originalPositionFor({column:g,line:l});if(!C.source)return!1;let y;typeof x=="number"&&(y=b.originalPositionFor({column:v,line:x}));let w;s(C.source)?w=d(C.source):w=new URL(C.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let S={column:C.column,endColumn:y&&y.column,endLine:y&&y.line,line:C.line,url:w.toString()};if(w.protocol==="file:")if(u)S.file=u(w);else throw new Error("file: protocol is not available in this PostCSS build");let _=b.sourceContentFor(C.source);return _&&(S.source=_),S}toJSON(){let l={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(l[g]=this[g]);return this.map&&(l.map=Q({},this.map),l.map.consumerCache&&(l.map.consumerCache=void 0)),l}get from(){return this.file||this.id}}return ft=r,r.default=r,m&&m.registerInput&&m.registerInput(r),ft}var ht,Jr;function hi(){if(Jr)return ht;Jr=1;let{SourceMapConsumer:e,SourceMapGenerator:i}=te,{dirname:u,relative:d,resolve:s,sep:c}=te,{pathToFileURL:p}=te,m=Ge(),a=!!(e&&i),h=!!(u&&s&&d&&c);class t{constructor(n,r,f,l){this.stringify=n,this.mapOpts=f.map||{},this.root=r,this.opts=f,this.css=l,this.originalCSS=l,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let r=`
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let r=this.toUrl(this.path(n.file)),f=n.root||u(n.file),l;this.mapOpts.sourcesContent===!1?(l=new e(n.text),l.sourcesContent&&(l.sourcesContent=null)):l=n.consumer(),this.map.applySourceMap(l,r,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let r=this.root.nodes.length-1;r>=0;r--)n=this.root.nodes[r],n.type==="comment"&&n.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&a&&this.isMap())return this.generateMap();{let n="";return this.stringify(this.root,r=>{n+=r}),[n]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=i.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0});let n=1,r=1,f="<no source>",l={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,x;this.stringify(this.root,(v,b,C)=>{if(this.css+=v,b&&C!=="end"&&(l.generated.line=n,l.generated.column=r-1,b.source&&b.source.start?(l.source=this.sourcePath(b),l.original.line=b.source.start.line,l.original.column=b.source.start.column-1,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,this.map.addMapping(l))),g=v.match(/\n/g),g?(n+=g.length,x=v.lastIndexOf(`
`),r=v.length-x):r+=v.length,b&&C!=="start"){let y=b.parent||{raws:{}};(!(b.type==="decl"||b.type==="atrule"&&!b.nodes)||b!==y.last||y.raws.semicolon)&&(b.source&&b.source.end?(l.source=this.sourcePath(b),l.original.line=b.source.end.line,l.original.column=b.source.end.column-1,l.generated.line=n,l.generated.column=r-2,this.map.addMapping(l)):(l.source=f,l.original.line=1,l.original.column=0,l.generated.line=n,l.generated.column=r-1,this.map.addMapping(l)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let r=this.memoizedPaths.get(n);if(r)return r;let f=this.opts.to?u(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=u(s(f,this.mapOpts.annotation)));let l=d(f,n);return this.memoizedPaths.set(n,l),l}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let r=n.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let n=new m(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(r=>{if(r.source){let f=r.source.input.from;if(f&&!n[f]){n[f]=!0;let l=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(l,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let r=this.memoizedFileURLs.get(n);if(r)return r;if(p){let f=p(n).toString();return this.memoizedFileURLs.set(n,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let r=this.memoizedURLs.get(n);if(r)return r;c==="\\"&&(n=n.replace(/\\/g,"/"));let f=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,f),f}}return ht=t,ht}var ct,Hr;function Je(){if(Hr)return ct;Hr=1;let e=$e();class i extends e{constructor(d){super(d),this.type="comment"}}return ct=i,i.default=i,ct}var pt,Yr;function ce(){if(Yr)return pt;Yr=1;let{isClean:e,my:i}=dr(),u=Ve(),d=Je(),s=$e(),c,p,m,a;function h(n){return n.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(n){if(n[e]=!1,n.proxyOf.nodes)for(let r of n.proxyOf.nodes)t(r)}class o extends s{append(...r){for(let f of r){let l=this.normalize(f,this.last);for(let g of l)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let f of this.nodes)f.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let f=this.getIterator(),l,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(l=this.indexes[f],g=r(this.proxyOf.nodes[l],l),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,f){return f==="proxyOf"?r:r[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...l)=>r[f](...l.map(g=>typeof g=="function"?(x,v)=>g(x.toProxy(),v):g)):f==="every"||f==="some"?l=>r[f]((g,...x)=>l(g.toProxy(),...x)):f==="root"?()=>r.root().toProxy():f==="nodes"?r.nodes.map(l=>l.toProxy()):f==="first"||f==="last"?r[f].toProxy():r[f]:r[f]},set(r,f,l){return r[f]===l||(r[f]=l,(f==="name"||f==="params"||f==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,f){let l=this.index(r),g=this.normalize(f,this.proxyOf.nodes[l]).reverse();l=this.index(r);for(let v of g)this.proxyOf.nodes.splice(l+1,0,v);let x;for(let v in this.indexes)x=this.indexes[v],l<x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}insertBefore(r,f){let l=this.index(r),g=l===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[l],g).reverse();l=this.index(r);for(let b of x)this.proxyOf.nodes.splice(l,0,b);let v;for(let b in this.indexes)v=this.indexes[b],l<=v&&(this.indexes[b]=v+x.length);return this.markDirty(),this}normalize(r,f){if(typeof r=="string")r=h(c(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new u(r)]}else if(r.selector)r=[new p(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[i]||o.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before=="undefined"&&f&&typeof f.raws.before!="undefined"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let f of r){let l=this.normalize(f,this.first,"prepend").reverse();for(let g of l)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+l.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let f;for(let l in this.indexes)f=this.indexes[l],f>=r&&(this.indexes[l]=f-1);return this.markDirty(),this}replaceValues(r,f,l){return l||(l=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(r,l))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((f,l)=>{let g;try{g=r(f,l)}catch(x){throw f.addToError(x)}return g!==!1&&f.walk&&(g=f.walk(r)),g})}walkAtRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="atrule"&&r.test(l.name))return f(l,g)}):this.walk((l,g)=>{if(l.type==="atrule"&&l.name===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="atrule")return f(l,g)}))}walkComments(r){return this.walk((f,l)=>{if(f.type==="comment")return r(f,l)})}walkDecls(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="decl"&&r.test(l.prop))return f(l,g)}):this.walk((l,g)=>{if(l.type==="decl"&&l.prop===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="decl")return f(l,g)}))}walkRules(r,f){return f?r instanceof RegExp?this.walk((l,g)=>{if(l.type==="rule"&&r.test(l.selector))return f(l,g)}):this.walk((l,g)=>{if(l.type==="rule"&&l.selector===r)return f(l,g)}):(f=r,this.walk((l,g)=>{if(l.type==="rule")return f(l,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return o.registerParse=n=>{c=n},o.registerRule=n=>{p=n},o.registerAtRule=n=>{m=n},o.registerRoot=n=>{a=n},pt=o,o.default=o,o.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,m.prototype):n.type==="rule"?Object.setPrototypeOf(n,p.prototype):n.type==="decl"?Object.setPrototypeOf(n,u.prototype):n.type==="comment"?Object.setPrototypeOf(n,d.prototype):n.type==="root"&&Object.setPrototypeOf(n,a.prototype),n[i]=!0,n.nodes&&n.nodes.forEach(r=>{o.rebuild(r)})},pt}var dt,Qr;function mr(){if(Qr)return dt;Qr=1;let e=ce(),i,u;class d extends e{constructor(c){super(Q({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},dt=d,d.default=d,dt}var mt,Kr;function ci(){if(Kr)return mt;Kr=1;let e={};return mt=function(u){e[u]||(e[u]=!0,typeof console!="undefined"&&console.warn&&console.warn(u))},mt}var gt,Xr;function pi(){if(Xr)return gt;Xr=1;class e{constructor(u,d={}){if(this.type="warning",this.text=u,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return gt=e,e.default=e,gt}var wt,Zr;function gr(){if(Zr)return wt;Zr=1;let e=pi();class i{constructor(d,s,c){this.processor=d,this.messages=[],this.root=s,this.opts=c,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let c=new e(d,s);return this.messages.push(c),c}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return wt=i,i.default=i,wt}var yt,es;function rn(){if(es)return yt;es=1;const e=39,i=34,u=92,d=47,s=10,c=32,p=12,m=9,a=13,h=91,t=93,o=40,n=41,r=123,f=125,l=59,g=42,x=58,v=64,b=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return yt=function(_,A={}){let P=_.css.valueOf(),U=A.ignoreErrors,I,O,j,Y,q,$,k,T,D,M,K=P.length,R=0,E=[],F=[];function B(){return R}function N(Z){throw _.error("Unclosed "+Z,R)}function X(){return F.length===0&&R>=K}function Me(Z){if(F.length)return F.pop();if(R>=K)return;let ae=Z?Z.ignoreUnclosed:!1;switch(I=P.charCodeAt(R),I){case s:case c:case m:case a:case p:{O=R;do O+=1,I=P.charCodeAt(O);while(I===c||I===s||I===m||I===a||I===p);M=["space",P.slice(R,O)],R=O-1;break}case h:case t:case r:case f:case x:case l:case n:{let Ce=String.fromCharCode(I);M=[Ce,Ce,R];break}case o:{if(T=E.length?E.pop()[1]:"",D=P.charCodeAt(R+1),T==="url"&&D!==e&&D!==i&&D!==c&&D!==s&&D!==m&&D!==p&&D!==a){O=R;do{if($=!1,O=P.indexOf(")",O+1),O===-1)if(U||ae){O=R;break}else N("bracket");for(k=O;P.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["brackets",P.slice(R,O+1),R,O],R=O}else O=P.indexOf(")",R+1),Y=P.slice(R,O+1),O===-1||y.test(Y)?M=["(","(",R]:(M=["brackets",Y,R,O],R=O);break}case e:case i:{j=I===e?"'":'"',O=R;do{if($=!1,O=P.indexOf(j,O+1),O===-1)if(U||ae){O=R+1;break}else N("string");for(k=O;P.charCodeAt(k-1)===u;)k-=1,$=!$}while($);M=["string",P.slice(R,O+1),R,O],R=O;break}case v:{b.lastIndex=R+1,b.test(P),b.lastIndex===0?O=P.length-1:O=b.lastIndex-2,M=["at-word",P.slice(R,O+1),R,O],R=O;break}case u:{for(O=R,q=!0;P.charCodeAt(O+1)===u;)O+=1,q=!q;if(I=P.charCodeAt(O+1),q&&I!==d&&I!==c&&I!==s&&I!==m&&I!==a&&I!==p&&(O+=1,w.test(P.charAt(O)))){for(;w.test(P.charAt(O+1));)O+=1;P.charCodeAt(O+1)===c&&(O+=1)}M=["word",P.slice(R,O+1),R,O],R=O;break}default:{I===d&&P.charCodeAt(R+1)===g?(O=P.indexOf("*/",R+2)+1,O===0&&(U||ae?O=P.length:N("comment")),M=["comment",P.slice(R,O+1),R,O],R=O):(C.lastIndex=R+1,C.test(P),C.lastIndex===0?O=P.length-1:O=C.lastIndex-2,M=["word",P.slice(R,O+1),R,O],E.push(M),R=O);break}}return R++,M}function Ne(Z){F.push(Z)}return{back:Ne,endOfFile:X,nextToken:Me,position:B}},yt}var vt,ts;function wr(){if(ts)return vt;ts=1;let e=ce();class i extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return vt=i,i.default=i,e.registerAtRule(i),vt}var bt,rs;function Ae(){if(rs)return bt;rs=1;let e=ce(),i,u;class d extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,p,m){let a=super.normalize(c);if(p){if(m==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let h of a)h.raws.before=p.raws.before}return a}removeChild(c,p){let m=this.index(c);return!p&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(c)}toResult(c={}){return new i(new u,this,c).stringify()}}return d.registerLazyResult=s=>{i=s},d.registerProcessor=s=>{u=s},bt=d,d.default=d,e.registerRoot(d),bt}var St,ss;function di(){if(ss)return St;ss=1;let e={comma(i){return e.split(i,[","],!0)},space(i){let u=[" ",`
`," "];return e.split(i,u)},split(i,u,d){let s=[],c="",p=!1,m=0,a=!1,h="",t=!1;for(let o of i)t?t=!1:o==="\\"?t=!0:a?o===h&&(a=!1):o==='"'||o==="'"?(a=!0,h=o):o==="("?m+=1:o===")"?m>0&&(m-=1):m===0&&u.includes(o)&&(p=!0),p?(c!==""&&s.push(c.trim()),c="",p=!1):c+=o;return(d||c!=="")&&s.push(c.trim()),s}};return St=e,e.default=e,St}var xt,is;function yr(){if(is)return xt;is=1;let e=ce(),i=di();class u extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(s){let c=this.selector?this.selector.match(/,\s*/):null,p=c?c[0]:","+this.raw("between","beforeOpen");this.selector=s.join(p)}}return xt=u,u.default=u,e.registerRule(u),xt}var Ct,ns;function sn(){if(ns)return Ct;ns=1;let e=Ve(),i=rn(),u=Je(),d=wr(),s=Ae(),c=yr();const p={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let o=h[t],n=o[3]||o[2];if(n)return n}}class a{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let o=new d;o.name=t[1].slice(1),o.name===""&&this.unnamedAtrule(o,t),this.init(o,t[2]);let n,r,f,l=!1,g=!1,x=[],v=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?v.push(n==="("?")":"]"):n==="{"&&v.length>0?v.push("}"):n===v[v.length-1]&&v.pop(),v.length===0)if(n===";"){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){g=!0;break}else if(n==="}"){if(x.length>0){for(f=x.length-1,r=x[f];r&&r[0]==="space";)r=x[--f];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}else x.push(t);else x.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(o.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(o,"params",x),l&&(t=x[x.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),g&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let o=this.colon(t);if(o===!1)return;let n=0,r;for(let f=o-1;f>=0&&(r=t[f],!(r[0]!=="space"&&(n+=1,n===2)));f--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let o=0,n,r,f;for(let[l,g]of t.entries()){if(n=g,r=n[0],r==="("&&(o+=1),r===")"&&(o-=1),o===0&&r===":")if(!f)this.doubleColon(n);else{if(f[0]==="word"&&f[1]==="progid")continue;return l}f=n}return!1}comment(t){let o=new u;this.init(o,t[2]),o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))o.text="",o.raws.left=n,o.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);o.text=r[2],o.raws.left=r[1],o.raws.right=r[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(t,o){let n=new e;this.init(n,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(r[3]||r[2]||m(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let v=t[0][0];if(v===":"||v==="space"||v==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let f;for(;t.length;)if(f=t.shift(),f[0]===":"){n.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),n.raws.between+=f[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)l.push(t.shift());this.precheckMissedSemicolon(t);for(let v=t.length-1;v>=0;v--){if(f=t[v],f[1].toLowerCase()==="!important"){n.important=!0;let b=this.stringFrom(t,v);b=this.spacesFromEnd(t)+b,b!==" !important"&&(n.raws.important=b);break}else if(f[1].toLowerCase()==="important"){let b=t.slice(0),C="";for(let y=v;y>0;y--){let w=b[y][0];if(C.trim().indexOf("!")===0&&w!=="space")break;C=b.pop()[1]+C}C.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=C,t=b)}if(f[0]!=="space"&&f[0]!=="comment")break}t.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(n.raws.between+=l.map(v=>v[1]).join(""),l=[]),this.raw(n,"value",l.concat(t),o),n.value.includes(":")&&!o&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let o=new c;this.init(o,t[2]),o.selector="",o.raws.between="",this.current=o}end(t){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=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){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,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let o=this.current.nodes[this.current.nodes.length-1];o&&o.type==="rule"&&!o.raws.ownSemicolon&&(o.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let o=this.input.fromOffset(t);return{column:o.col,line:o.line,offset:t}}init(t,o){this.current.push(t),t.source={input:this.input,start:this.getPosition(o)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let o=!1,n=null,r=!1,f=null,l=[],g=t[1].startsWith("--"),x=[],v=t;for(;v;){if(n=v[0],x.push(v),n==="("||n==="[")f||(f=v),l.push(n==="("?")":"]");else if(g&&r&&n==="{")f||(f=v),l.push("}");else if(l.length===0)if(n===";")if(r){this.decl(x,g);return}else break;else if(n==="{"){this.rule(x);return}else if(n==="}"){this.tokenizer.back(x.pop()),o=!0;break}else n===":"&&(r=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(f=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(o=!0),l.length>0&&this.unclosedBracket(f),o&&r){if(!g)for(;x.length&&(v=x[x.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,g)}else this.unknownWord(x)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,o,n,r){let f,l,g=n.length,x="",v=!0,b,C;for(let y=0;y<g;y+=1)f=n[y],l=f[0],l==="space"&&y===g-1&&!r?v=!1:l==="comment"?(C=n[y-1]?n[y-1][0]:"empty",b=n[y+1]?n[y+1][0]:"empty",!p[C]&&!p[b]?x.slice(-1)===","?v=!1:x+=f[1]:v=!1):x+=f[1];if(!v){let y=n.reduce((w,S)=>w+S[1],"");t.raws[o]={raw:y,value:x}}t[o]=x}rule(t){t.pop();let o=new c;this.init(o,t[0][2]),o.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(o,"selector",t),this.current=o}spacesAndCommentsFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],!(o!=="space"&&o!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let o,n="";for(;t.length&&(o=t[0][0],!(o!=="space"&&o!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let o,n="";for(;t.length&&(o=t[t.length-1][0],o==="space");)n=t.pop()[1]+n;return n}stringFrom(t,o){let n="";for(let r=o;r<t.length;r++)n+=t[r][1];return t.splice(o,t.length-o),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,o){throw this.input.error("At-rule without name",{offset:o[2]},{offset:o[2]+o[1].length})}}return Ct=a,Ct}var Rt,os;function vr(){if(os)return Rt;os=1;let e=ce(),i=sn(),u=Ge();function d(s,c){let p=new u(s,c),m=new i(p);try{m.parse()}catch(a){throw a}return m.root}return Rt=d,d.default=d,e.registerParse(d),Rt}var Ot,ls;function mi(){if(ls)return Ot;ls=1;let{isClean:e,my:i}=dr(),u=hi(),d=We(),s=ce(),c=mr(),p=ci(),m=gr(),a=vr(),h=Ae();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},n={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function f(C){return typeof C=="object"&&typeof C.then=="function"}function l(C){let y=!1,w=t[C.type];return C.type==="decl"?y=C.prop.toLowerCase():C.type==="atrule"&&(y=C.name.toLowerCase()),y&&C.append?[w,w+"-"+y,r,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:C.append?[w,r,w+"Exit"]:[w,w+"Exit"]}function g(C){let y;return C.type==="document"?y=["Document",r,"DocumentExit"]:C.type==="root"?y=["Root",r,"RootExit"]:y=l(C),{eventIndex:0,events:y,iterator:0,node:C,visitorIndex:0,visitors:[]}}function x(C){return C[e]=!1,C.nodes&&C.nodes.forEach(y=>x(y)),C}let v={};class b{constructor(y,w,S){this.stringified=!1,this.processed=!1;let _;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))_=x(w);else if(w instanceof b||w instanceof m)_=x(w.root),w.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=w.map);else{let A=a;S.syntax&&(A=S.syntax.parse),S.parser&&(A=S.parser),A.parse&&(A=A.parse);try{_=A(w,S)}catch(P){this.processed=!0,this.error=P}_&&!_[i]&&s.rebuild(_)}this.result=new m(y,_,S),this.helpers=ie(Q({},v),{postcss:v,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let S=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(_){console&&console.error&&consol