d.root().toProxy():d[g]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(d){if(d.postcssNode=this,d.stack&&this.source&&/\n\s{4}at /.test(d.stack)){let g=this.source;d.stack=d.stack.replace(/\n\s{4}at /,`$&${g.input.from}:${g.start.line}:${g.start.column}$&`);}return d}markDirty(){if(this[i]){this[i]=!1;let d=this;for(;d=d.parent;)d[i]=!1;}}get proxyOf(){return this}};e.exports=o,o.default=o;}),ko=ue((t,e)=>{var i=So(),r=class extends i{constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};e.exports=r,r.default=r;}),In=ue(()=>{}),Ln=ue(()=>{}),Gh=ue(()=>{}),tf=ue((t,e)=>{var i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",r=(a,n=21)=>(p=n)=>{let o="",d=p;for(;d--;)o+=a[Math.random()*a.length|0];return o},s=(a=21)=>{let n="",p=a;for(;p--;)n+=i[Math.random()*64|0];return n};e.exports={nanoid:s,customAlphabet:r};}),ef=ue(()=>{}),rf=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{existsSync:s,readFileSync:a}=ef(),{dirname:n,join:p}=Ln();function o(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}var d=class{constructor(g,f){if(f.map===!1)return;this.loadAnnotation(g),this.inline=this.startWith(this.annotation,"data:");let l=f.map?f.map.prev:void 0,b=this.loadMap(f.from,l);!this.mapFile&&f.from&&(this.mapFile=f.from),this.mapFile&&(this.root=n(this.mapFile)),b&&(this.text=b);}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(g,f){return g?g.substr(0,f.length)===f:!1}getAnnotationURL(g){return g.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(g){let f=g.match(/\/\*\s*# sourceMappingURL=/gm);if(!f)return;let l=g.lastIndexOf(f.pop()),b=g.indexOf("*/",l);l>-1&&b>-1&&(this.annotation=this.getAnnotationURL(g.substring(l,b)));}decodeInline(g){let f=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,b=/^data:application\/json;charset=utf-?8,/,v=/^data:application\/json,/;if(b.test(g)||v.test(g))return decodeURIComponent(g.substr(RegExp.lastMatch.length));if(f.test(g)||l.test(g))return o(g.substr(RegExp.lastMatch.length));let m=g.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}loadFile(g){if(this.root=n(g),s(g))return this.mapFile=g,a(g,"utf-8").toString().trim()}loadMap(g,f){if(f===!1)return !1;if(f){if(typeof f=="string")return f;if(typeof f=="function"){let l=f(g);if(l){let b=this.loadFile(l);if(!b)throw new Error("Unable to load previous source map: "+l.toString());return b}}else {if(f instanceof i)return r.fromSourceMap(f).toString();if(f instanceof r)return f.toString();if(this.isMap(f))return JSON.stringify(f);throw new Error("Unsupported previous source map format: "+f.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return g&&(l=p(n(g),l)),this.loadFile(l)}}}isMap(g){return typeof g!="object"?!1:typeof g.mappings=="string"||typeof g._mappings=="string"||Array.isArray(g.sections)}};e.exports=d,d.default=d;}),Eo=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{fileURLToPath:s,pathToFileURL:a}=Gh(),{resolve:n,isAbsolute:p}=Ln(),{nanoid:o}=tf(),d=Zp(),g=zh(),f=rf(),l=Symbol("fromOffsetCache"),b=!!(i&&r),v=!!(n&&p),m=class{constructor(E,c={}){if(E===null||typeof E>"u"||typeof E=="object"&&!E.toString)throw new Error(`PostCSS received ${E} instead of CSS string`);if(this.css=E.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,c.from&&(!v||/^\w+:\/\//.test(c.from)||p(c.from)?this.file=c.from:this.file=n(c.from)),v&&b){let u=new f(this.css,c);if(u.text){this.map=u;let y=u.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y));}}this.file||(this.id=""),this.map&&(this.map.file=this.from);}fromOffset(E){let c,u;if(this[l])u=this[l];else {let P=this.css.split(`
+`);u=new Array(P.length);let w=0;for(let F=0,B=P.length;F=c)y=u.length-1;else {let P=u.length-2,w;for(;y>1),E=u[w+1])y=w+1;else {y=w;break}}return {line:y+1,col:E-u[y]+1}}error(E,c,u,y={}){let P,w,F;if(c&&typeof c=="object"){let G=c,it=u;if(typeof G.offset=="number"){let ft=this.fromOffset(G.offset);c=ft.line,u=ft.col;}else c=G.line,u=G.column;if(typeof it.offset=="number"){let ft=this.fromOffset(it.offset);w=ft.line,F=ft.col;}else w=it.line,F=it.column;}else if(!u){let G=this.fromOffset(c);c=G.line,u=G.col;}let B=this.origin(c,u,w,F);return B?P=new g(E,B.endLine===void 0?B.line:{line:B.line,column:B.column},B.endLine===void 0?B.column:{line:B.endLine,column:B.endColumn},B.source,B.file,y.plugin):P=new g(E,w===void 0?c:{line:c,column:u},w===void 0?u:{line:w,column:F},this.css,this.file,y.plugin),P.input={line:c,column:u,endLine:w,endColumn:F,source:this.css},this.file&&(a&&(P.input.url=a(this.file).toString()),P.input.file=this.file),P}origin(E,c,u,y){if(!this.map)return !1;let P=this.map.consumer(),w=P.originalPositionFor({line:E,column:c});if(!w.source)return !1;let F;typeof u=="number"&&(F=P.originalPositionFor({line:u,column:y}));let B;p(w.source)?B=a(w.source):B=new URL(w.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let G={url:B.toString(),line:w.line,column:w.column,endLine:F&&F.line,endColumn:F&&F.column};if(B.protocol==="file:")if(s)G.file=s(B);else throw new Error("file: protocol is not available in this PostCSS build");let it=P.sourceContentFor(w.source);return it&&(G.source=it),G}mapResolve(E){return /^\w+:\/\//.test(E)?E:n(this.map.consumer().sourceRoot||this.map.root||".",E)}get from(){return this.file||this.id}toJSON(){let E={};for(let c of ["hasBOM","css","file","id"])this[c]!=null&&(E[c]=this[c]);return this.map&&(E.map={...this.map},E.map.consumerCache&&(E.map.consumerCache=void 0)),E}};e.exports=m,m.default=m,d&&d.registerInput&&d.registerInput(m);}),sf=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{dirname:s,resolve:a,relative:n,sep:p}=Ln(),{pathToFileURL:o}=Gh(),d=Eo(),g=!!(i&&r),f=!!(s&&a&&n&&p),l=class{constructor(b,v,m,E){this.stringify=b,this.mapOpts=m.map||{},this.root=v,this.opts=m,this.css=E,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute;}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(b=>{if(b.source&&b.source.input.map){let v=b.source.input.map;this.previousMaps.includes(v)||this.previousMaps.push(v);}});else {let b=new d(this.css,this.opts);b.map&&this.previousMaps.push(b.map);}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let b=this.mapOpts.annotation;return typeof b<"u"&&b!==!0?!1:this.previous().length?this.previous().some(v=>v.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(b=>b.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let b;for(let v=this.root.nodes.length-1;v>=0;v--)b=this.root.nodes[v],b.type==="comment"&&b.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(v);}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""));}setSourcesContent(){let b={};if(this.root)this.root.walk(v=>{if(v.source){let m=v.source.input.from;if(m&&!b[m]){b[m]=!0;let E=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(E,v.source.input.css);}}});else if(this.css){let v=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(v,this.css);}}applyPrevMaps(){for(let b of this.previous()){let v=this.toUrl(this.path(b.file)),m=b.root||s(b.file),E;this.mapOpts.sourcesContent===!1?(E=new i(b.text),E.sourcesContent&&(E.sourcesContent=E.sourcesContent.map(()=>null))):E=b.consumer(),this.map.applySourceMap(E,v,this.toUrl(this.path(m)));}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(b=>b.annotation):!0}toBase64(b){return Buffer?Buffer.from(b).toString("base64"):window.btoa(unescape(encodeURIComponent(b)))}addAnnotation(){let b;this.isInline()?b="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?b=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?b=this.mapOpts.annotation(this.opts.to,this.root):b=this.outputFile()+".map";let v=`
+`;this.css.includes(`\r
+`)&&(v=`\r
+`),this.css+=v+"/*# sourceMappingURL="+b+" */";}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let b=this.previous()[0].consumer();b.file=this.outputFile(),this.map=r.fromSourceMap(b);}else this.map=new r({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"",generated:{line:1,column:0},original:{line:1,column:0}});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]}path(b){if(b.indexOf("<")===0||/^\w+:\/\//.test(b)||this.mapOpts.absolute)return b;let v=this.opts.to?s(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(v=s(a(v,this.mapOpts.annotation))),b=n(v,b),b}toUrl(b){return p==="\\"&&(b=b.replace(/\\/g,"/")),encodeURI(b).replace(/[#?]/g,encodeURIComponent)}toFileUrl(b){if(o)return o(b).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(b){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(b.source.input.from):this.toUrl(this.path(b.source.input.from))}generateString(){this.css="",this.map=new r({file:this.outputFile()});let b=1,v=1,m="",E={source:"",generated:{line:0,column:0},original:{line:0,column:0}},c,u;this.stringify(this.root,(y,P,w)=>{if(this.css+=y,P&&w!=="end"&&(E.generated.line=b,E.generated.column=v-1,P.source&&P.source.start?(E.source=this.sourcePath(P),E.original.line=P.source.start.line,E.original.column=P.source.start.column-1,this.map.addMapping(E)):(E.source=m,E.original.line=1,E.original.column=0,this.map.addMapping(E))),c=y.match(/\n/g),c?(b+=c.length,u=y.lastIndexOf(`
+`),v=y.length-u):v+=y.length,P&&w!=="start"){let F=P.parent||{raws:{}};(!(P.type==="decl"||P.type==="atrule"&&!P.nodes)||P!==F.last||F.raws.semicolon)&&(P.source&&P.source.end?(E.source=this.sourcePath(P),E.original.line=P.source.end.line,E.original.column=P.source.end.column-1,E.generated.line=b,E.generated.column=v-2,this.map.addMapping(E)):(E.source=m,E.original.line=1,E.original.column=0,E.generated.line=b,E.generated.column=v-1,this.map.addMapping(E)));}});}generate(){if(this.clearAnnotation(),f&&g&&this.isMap())return this.generateMap();{let b="";return this.stringify(this.root,v=>{b+=v;}),[b]}}};e.exports=l;}),Ao=ue((t,e)=>{var i=So(),r=class extends i{constructor(s){super(s),this.type="comment";}};e.exports=r,r.default=r;}),$a=ue((t,e)=>{var{isClean:i,my:r}=Nh(),s=ko(),a=Ao(),n=So(),p,o,d,g;function f(v){return v.map(m=>(m.nodes&&(m.nodes=f(m.nodes)),delete m.source,m))}function l(v){if(v[i]=!1,v.proxyOf.nodes)for(let m of v.proxyOf.nodes)l(m);}var b=class af extends n{push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}each(m){if(!this.proxyOf.nodes)return;let E=this.getIterator(),c,u;for(;this.indexes[E]{let u;try{u=m(E,c);}catch(y){throw E.addToError(y)}return u!==!1&&E.walk&&(u=E.walk(m)),u})}walkDecls(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="decl"&&m.test(c.prop))return E(c,u)}):this.walk((c,u)=>{if(c.type==="decl"&&c.prop===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="decl")return E(c,u)}))}walkRules(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="rule"&&m.test(c.selector))return E(c,u)}):this.walk((c,u)=>{if(c.type==="rule"&&c.selector===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="rule")return E(c,u)}))}walkAtRules(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="atrule"&&m.test(c.name))return E(c,u)}):this.walk((c,u)=>{if(c.type==="atrule"&&c.name===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="atrule")return E(c,u)}))}walkComments(m){return this.walk((E,c)=>{if(E.type==="comment")return m(E,c)})}append(...m){for(let E of m){let c=this.normalize(E,this.last);for(let u of c)this.proxyOf.nodes.push(u);}return this.markDirty(),this}prepend(...m){m=m.reverse();for(let E of m){let c=this.normalize(E,this.first,"prepend").reverse();for(let u of c)this.proxyOf.nodes.unshift(u);for(let u in this.indexes)this.indexes[u]=this.indexes[u]+c.length;}return this.markDirty(),this}cleanRaws(m){if(super.cleanRaws(m),this.nodes)for(let E of this.nodes)E.cleanRaws(m);}insertBefore(m,E){let c=this.index(m),u=c===0?"prepend":!1,y=this.normalize(E,this.proxyOf.nodes[c],u).reverse();c=this.index(m);for(let w of y)this.proxyOf.nodes.splice(c,0,w);let P;for(let w in this.indexes)P=this.indexes[w],c<=P&&(this.indexes[w]=P+y.length);return this.markDirty(),this}insertAfter(m,E){let c=this.index(m),u=this.normalize(E,this.proxyOf.nodes[c]).reverse();c=this.index(m);for(let P of u)this.proxyOf.nodes.splice(c+1,0,P);let y;for(let P in this.indexes)y=this.indexes[P],c=m&&(this.indexes[c]=E-1);return this.markDirty(),this}removeAll(){for(let m of this.proxyOf.nodes)m.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(m,E,c){return c||(c=E,E={}),this.walkDecls(u=>{E.props&&!E.props.includes(u.prop)||E.fast&&!u.value.includes(E.fast)||(u.value=u.value.replace(m,c));}),this.markDirty(),this}every(m){return this.nodes.every(m)}some(m){return this.nodes.some(m)}index(m){return typeof m=="number"?m:(m.proxyOf&&(m=m.proxyOf),this.proxyOf.nodes.indexOf(m))}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]}normalize(m,E){if(typeof m=="string")m=f(p(m).nodes);else if(Array.isArray(m)){m=m.slice(0);for(let c of m)c.parent&&c.parent.removeChild(c,"ignore");}else if(m.type==="root"&&this.type!=="document"){m=m.nodes.slice(0);for(let c of m)c.parent&&c.parent.removeChild(c,"ignore");}else if(m.type)m=[m];else if(m.prop){if(typeof m.value>"u")throw new Error("Value field is missed in node creation");typeof m.value!="string"&&(m.value=String(m.value)),m=[new s(m)];}else if(m.selector)m=[new o(m)];else if(m.name)m=[new d(m)];else if(m.text)m=[new a(m)];else throw new Error("Unknown node type in node creation");return m.map(c=>(c[r]||af.rebuild(c),c=c.proxyOf,c.parent&&c.parent.removeChild(c),c[i]&&l(c),typeof c.raws.before>"u"&&E&&typeof E.raws.before<"u"&&(c.raws.before=E.raws.before.replace(/\S/g,"")),c.parent=this.proxyOf,c))}getProxyProcessor(){return {set(m,E,c){return m[E]===c||(m[E]=c,(E==="name"||E==="params"||E==="selector")&&m.markDirty()),!0},get(m,E){return E==="proxyOf"?m:m[E]?E==="each"||typeof E=="string"&&E.startsWith("walk")?(...c)=>m[E](...c.map(u=>typeof u=="function"?(y,P)=>u(y.toProxy(),P):u)):E==="every"||E==="some"?c=>m[E]((u,...y)=>c(u.toProxy(),...y)):E==="root"?()=>m.root().toProxy():E==="nodes"?m.nodes.map(c=>c.toProxy()):E==="first"||E==="last"?m[E].toProxy():m[E]:m[E]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let m=this.lastEach;return this.indexes[m]=0,m}};b.registerParse=v=>{p=v;},b.registerRule=v=>{o=v;},b.registerAtRule=v=>{d=v;},b.registerRoot=v=>{g=v;},e.exports=b,b.default=b,b.rebuild=v=>{v.type==="atrule"?Object.setPrototypeOf(v,d.prototype):v.type==="rule"?Object.setPrototypeOf(v,o.prototype):v.type==="decl"?Object.setPrototypeOf(v,s.prototype):v.type==="comment"?Object.setPrototypeOf(v,a.prototype):v.type==="root"&&Object.setPrototypeOf(v,g.prototype),v[r]=!0,v.nodes&&v.nodes.forEach(m=>{b.rebuild(m);});};}),jh=ue((t,e)=>{var i=$a(),r,s,a=class extends i{constructor(n){super({type:"document",...n}),this.nodes||(this.nodes=[]);}toResult(n={}){return new r(new s,this,n).stringify()}};a.registerLazyResult=n=>{r=n;},a.registerProcessor=n=>{s=n;},e.exports=a,a.default=a;}),nf=ue((t,e)=>{var i={};e.exports=function(r){i[r]||(i[r]=!0,typeof console<"u"&&console.warn&&console.warn(r));};}),of=ue((t,e)=>{var i=class{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let a=s.node.rangeBy(s);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column;}for(let a in s)this[a]=s[a];}toString(){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}};e.exports=i,i.default=i;}),Hh=ue((t,e)=>{var i=of(),r=class{constructor(s,a,n){this.processor=s,this.messages=[],this.root=a,this.opts=n,this.css=void 0,this.map=void 0;}toString(){return this.css}warn(s,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let n=new i(s,a);return this.messages.push(n),n}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}};e.exports=r,r.default=r;}),Rm=ue((t,e)=>{var i="'".charCodeAt(0),r='"'.charCodeAt(0),s="\\".charCodeAt(0),a="/".charCodeAt(0),n=`
+`.charCodeAt(0),p=" ".charCodeAt(0),o="\f".charCodeAt(0),d=" ".charCodeAt(0),g="\r".charCodeAt(0),f="[".charCodeAt(0),l="]".charCodeAt(0),b="(".charCodeAt(0),v=")".charCodeAt(0),m="{".charCodeAt(0),E="}".charCodeAt(0),c=";".charCodeAt(0),u="*".charCodeAt(0),y=":".charCodeAt(0),P="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,F=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\n"'(/\\]/,G=/[\da-f]/i;e.exports=function(it,ft={}){let ct=it.css.valueOf(),dt=ft.ignoreErrors,Pt,tt,vt,D,O,k,L,K,U,Ht,It=ct.length,Gt=0,Ot=[],ee=[];function ae(){return Gt}function le(pe){throw it.error("Unclosed "+pe,Gt)}function ye(){return ee.length===0&&Gt>=It}function ce(pe){if(ee.length)return ee.pop();if(Gt>=It)return;let Wt=pe?pe.ignoreUnclosed:!1;switch(Pt=ct.charCodeAt(Gt),Pt){case n:case p:case d:case g:case o:{tt=Gt;do tt+=1,Pt=ct.charCodeAt(tt);while(Pt===p||Pt===n||Pt===d||Pt===g||Pt===o);Ht=["space",ct.slice(Gt,tt)],Gt=tt-1;break}case f:case l:case m:case E:case y:case c:case v:{let Nt=String.fromCharCode(Pt);Ht=[Nt,Nt,Gt];break}case b:{if(K=Ot.length?Ot.pop()[1]:"",U=ct.charCodeAt(Gt+1),K==="url"&&U!==i&&U!==r&&U!==p&&U!==n&&U!==d&&U!==o&&U!==g){tt=Gt;do{if(k=!1,tt=ct.indexOf(")",tt+1),tt===-1)if(dt||Wt){tt=Gt;break}else le("bracket");for(L=tt;ct.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);Ht=["brackets",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;}else tt=ct.indexOf(")",Gt+1),D=ct.slice(Gt,tt+1),tt===-1||B.test(D)?Ht=["(","(",Gt]:(Ht=["brackets",D,Gt,tt],Gt=tt);break}case i:case r:{vt=Pt===i?"'":'"',tt=Gt;do{if(k=!1,tt=ct.indexOf(vt,tt+1),tt===-1)if(dt||Wt){tt=Gt+1;break}else le("string");for(L=tt;ct.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);Ht=["string",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}case P:{w.lastIndex=Gt+1,w.test(ct),w.lastIndex===0?tt=ct.length-1:tt=w.lastIndex-2,Ht=["at-word",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}case s:{for(tt=Gt,O=!0;ct.charCodeAt(tt+1)===s;)tt+=1,O=!O;if(Pt=ct.charCodeAt(tt+1),O&&Pt!==a&&Pt!==p&&Pt!==n&&Pt!==d&&Pt!==g&&Pt!==o&&(tt+=1,G.test(ct.charAt(tt)))){for(;G.test(ct.charAt(tt+1));)tt+=1;ct.charCodeAt(tt+1)===p&&(tt+=1);}Ht=["word",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}default:{Pt===a&&ct.charCodeAt(Gt+1)===u?(tt=ct.indexOf("*/",Gt+2)+1,tt===0&&(dt||Wt?tt=ct.length:le("comment")),Ht=["comment",ct.slice(Gt,tt+1),Gt,tt],Gt=tt):(F.lastIndex=Gt+1,F.test(ct),F.lastIndex===0?tt=ct.length-1:tt=F.lastIndex-2,Ht=["word",ct.slice(Gt,tt+1),Gt,tt],Ot.push(Ht),Gt=tt);break}}return Gt++,Ht}function Xt(pe){ee.push(pe);}return {back:Xt,nextToken:ce,endOfFile:ye,position:ae}};}),qh=ue((t,e)=>{var i=$a(),r=class extends i{constructor(s){super(s),this.type="atrule";}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}};e.exports=r,r.default=r,i.registerAtRule(r);}),Vn=ue((t,e)=>{var i=$a(),r,s,a=class extends i{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[]);}removeChild(n,p){let o=this.index(n);return !p&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(n)}normalize(n,p,o){let d=super.normalize(n);if(p){if(o==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let g of d)g.raws.before=p.raws.before;}return d}toResult(n={}){return new r(new s,this,n).stringify()}};a.registerLazyResult=n=>{r=n;},a.registerProcessor=n=>{s=n;},e.exports=a,a.default=a,i.registerRoot(a);}),hf=ue((t,e)=>{var i={split(r,s,a){let n=[],p="",o=!1,d=0,g=!1,f="",l=!1;for(let b of r)l?l=!1:b==="\\"?l=!0:g?b===f&&(g=!1):b==='"'||b==="'"?(g=!0,f=b):b==="("?d+=1:b===")"?d>0&&(d-=1):d===0&&s.includes(b)&&(o=!0),o?(p!==""&&n.push(p.trim()),p="",o=!1):p+=b;return (a||p!=="")&&n.push(p.trim()),n},space(r){let s=[" ",`
+`," "];return i.split(r,s)},comma(r){return i.split(r,[","],!0)}};e.exports=i,i.default=i;}),$h=ue((t,e)=>{var i=$a(),r=hf(),s=class extends i{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return r.comma(this.selector)}set selectors(a){let n=this.selector?this.selector.match(/,\s*/):null,p=n?n[0]:","+this.raw("between","beforeOpen");this.selector=a.join(p);}};e.exports=s,s.default=s,i.registerRule(s);}),Om=ue((t,e)=>{var i=ko(),r=Rm(),s=Ao(),a=qh(),n=Vn(),p=$h(),o={empty:!0,space:!0};function d(f){for(let l=f.length-1;l>=0;l--){let b=f[l],v=b[3]||b[2];if(v)return v}}var g=class{constructor(f){this.input=f,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:f,start:{offset:0,line:1,column:1}};}createTokenizer(){this.tokenizer=r(this.input);}parse(){let f;for(;!this.tokenizer.endOfFile();)switch(f=this.tokenizer.nextToken(),f[0]){case"space":this.spaces+=f[1];break;case";":this.freeSemicolon(f);break;case"}":this.end(f);break;case"comment":this.comment(f);break;case"at-word":this.atrule(f);break;case"{":this.emptyRule(f);break;default:this.other(f);break}this.endFile();}comment(f){let l=new s;this.init(l,f[2]),l.source.end=this.getPosition(f[3]||f[2]);let b=f[1].slice(2,-2);if(/^\s*$/.test(b))l.text="",l.raws.left=b,l.raws.right="";else {let v=b.match(/^(\s*)([^]*\S)(\s*)$/);l.text=v[2],l.raws.left=v[1],l.raws.right=v[3];}}emptyRule(f){let l=new p;this.init(l,f[2]),l.selector="",l.raws.between="",this.current=l;}other(f){let l=!1,b=null,v=!1,m=null,E=[],c=f[1].startsWith("--"),u=[],y=f;for(;y;){if(b=y[0],u.push(y),b==="("||b==="[")m||(m=y),E.push(b==="("?")":"]");else if(c&&v&&b==="{")m||(m=y),E.push("}");else if(E.length===0)if(b===";")if(v){this.decl(u,c);return}else break;else if(b==="{"){this.rule(u);return}else if(b==="}"){this.tokenizer.back(u.pop()),l=!0;break}else b===":"&&(v=!0);else b===E[E.length-1]&&(E.pop(),E.length===0&&(m=null));y=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(l=!0),E.length>0&&this.unclosedBracket(m),l&&v){if(!c)for(;u.length&&(y=u[u.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c);}else this.unknownWord(u);}rule(f){f.pop();let l=new p;this.init(l,f[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(f),this.raw(l,"selector",f),this.current=l;}decl(f,l){let b=new i;this.init(b,f[0][2]);let v=f[f.length-1];for(v[0]===";"&&(this.semicolon=!0,f.pop()),b.source.end=this.getPosition(v[3]||v[2]||d(f));f[0][0]!=="word";)f.length===1&&this.unknownWord(f),b.raws.before+=f.shift()[1];for(b.source.start=this.getPosition(f[0][2]),b.prop="";f.length;){let u=f[0][0];if(u===":"||u==="space"||u==="comment")break;b.prop+=f.shift()[1];}b.raws.between="";let m;for(;f.length;)if(m=f.shift(),m[0]===":"){b.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),b.raws.between+=m[1];(b.prop[0]==="_"||b.prop[0]==="*")&&(b.raws.before+=b.prop[0],b.prop=b.prop.slice(1));let E=[],c;for(;f.length&&(c=f[0][0],!(c!=="space"&&c!=="comment"));)E.push(f.shift());this.precheckMissedSemicolon(f);for(let u=f.length-1;u>=0;u--){if(m=f[u],m[1].toLowerCase()==="!important"){b.important=!0;let y=this.stringFrom(f,u);y=this.spacesFromEnd(f)+y,y!==" !important"&&(b.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=f.slice(0),P="";for(let w=u;w>0;w--){let F=y[w][0];if(P.trim().indexOf("!")===0&&F!=="space")break;P=y.pop()[1]+P;}P.trim().indexOf("!")===0&&(b.important=!0,b.raws.important=P,f=y);}if(m[0]!=="space"&&m[0]!=="comment")break}f.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(b.raws.between+=E.map(u=>u[1]).join(""),E=[]),this.raw(b,"value",E.concat(f),l),b.value.includes(":")&&!l&&this.checkMissedSemicolon(f);}atrule(f){let l=new a;l.name=f[1].slice(1),l.name===""&&this.unnamedAtrule(l,f),this.init(l,f[2]);let b,v,m,E=!1,c=!1,u=[],y=[];for(;!this.tokenizer.endOfFile();){if(f=this.tokenizer.nextToken(),b=f[0],b==="("||b==="["?y.push(b==="("?")":"]"):b==="{"&&y.length>0?y.push("}"):b===y[y.length-1]&&y.pop(),y.length===0)if(b===";"){l.source.end=this.getPosition(f[2]),this.semicolon=!0;break}else if(b==="{"){c=!0;break}else if(b==="}"){if(u.length>0){for(m=u.length-1,v=u[m];v&&v[0]==="space";)v=u[--m];v&&(l.source.end=this.getPosition(v[3]||v[2]));}this.end(f);break}else u.push(f);else u.push(f);if(this.tokenizer.endOfFile()){E=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(l.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(l,"params",u),E&&(f=u[u.length-1],l.source.end=this.getPosition(f[3]||f[2]),this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),c&&(l.nodes=[],this.current=l);}end(f){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(f[2]),this.current=this.current.parent):this.unexpectedClose(f);}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;}freeSemicolon(f){if(this.spaces+=f[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(f){let l=this.input.fromOffset(f);return {offset:f,line:l.line,column:l.col}}init(f,l){this.current.push(f),f.source={start:this.getPosition(l),input:this.input},f.raws.before=this.spaces,this.spaces="",f.type!=="comment"&&(this.semicolon=!1);}raw(f,l,b,v){let m,E,c=b.length,u="",y=!0,P,w;for(let F=0;FB+G[1],"");f.raws[l]={value:u,raw:F};}f[l]=u;}spacesAndCommentsFromEnd(f){let l,b="";for(;f.length&&(l=f[f.length-1][0],!(l!=="space"&&l!=="comment"));)b=f.pop()[1]+b;return b}spacesAndCommentsFromStart(f){let l,b="";for(;f.length&&(l=f[0][0],!(l!=="space"&&l!=="comment"));)b+=f.shift()[1];return b}spacesFromEnd(f){let l,b="";for(;f.length&&(l=f[f.length-1][0],l==="space");)b=f.pop()[1]+b;return b}stringFrom(f,l){let b="";for(let v=l;v=0&&(v=f[m],!(v[0]!=="space"&&(b+=1,b===2)));m--);throw this.input.error("Missed semicolon",v[0]==="word"?v[3]+1:v[2])}};e.exports=g;}),Wh=ue((t,e)=>{var i=$a(),r=Om(),s=Eo();function a(n,p){let o=new s(n,p),d=new r(o);try{d.parse();}catch(g){throw g}return d.root}e.exports=a,a.default=a,i.registerParse(a);}),lf=ue((t,e)=>{var{isClean:i,my:r}=Nh(),s=sf(),a=Po(),n=$a(),p=jh();nf();var o=Hh(),d=Wh(),g=Vn(),f={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},l={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},b={postcssPlugin:!0,prepare:!0,Once:!0},v=0;function m(w){return typeof w=="object"&&typeof w.then=="function"}function E(w){let F=!1,B=f[w.type];return w.type==="decl"?F=w.prop.toLowerCase():w.type==="atrule"&&(F=w.name.toLowerCase()),F&&w.append?[B,B+"-"+F,v,B+"Exit",B+"Exit-"+F]:F?[B,B+"-"+F,B+"Exit",B+"Exit-"+F]:w.append?[B,v,B+"Exit"]:[B,B+"Exit"]}function c(w){let F;return w.type==="document"?F=["Document",v,"DocumentExit"]:w.type==="root"?F=["Root",v,"RootExit"]:F=E(w),{node:w,events:F,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function u(w){return w[i]=!1,w.nodes&&w.nodes.forEach(F=>u(F)),w}var y={},P=class pf{constructor(F,B,G){this.stringified=!1,this.processed=!1;let it;if(typeof B=="object"&&B!==null&&(B.type==="root"||B.type==="document"))it=u(B);else if(B instanceof pf||B instanceof o)it=u(B.root),B.map&&(typeof G.map>"u"&&(G.map={}),G.map.inline||(G.map.inline=!1),G.map.prev=B.map);else {let ft=d;G.syntax&&(ft=G.syntax.parse),G.parser&&(ft=G.parser),ft.parse&&(ft=ft.parse);try{it=ft(B,G);}catch(ct){this.processed=!0,this.error=ct;}it&&!it[r]&&n.rebuild(it);}this.result=new o(F,it,G),this.helpers={...y,result:this.result,postcss:y},this.plugins=this.processor.plugins.map(ft=>typeof ft=="object"&&ft.prepare?{...ft,...ft.prepare(this.result)}:ft);}get[Symbol.toStringTag](){return "LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(F,B){return this.async().then(F,B)}catch(F){return this.async().catch(F)}finally(F){return this.async().then(F,F)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let F of this.plugins){let B=this.runOnRoot(F);if(m(B))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let F=this.result.root;for(;!F[i];)F[i]=!0,this.walkSync(F);if(this.listeners.OnceExit)if(F.type==="document")for(let B of F.nodes)this.visitSync(this.listeners.OnceExit,B);else this.visitSync(this.listeners.OnceExit,F);}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let F=this.result.opts,B=a;F.syntax&&(B=F.syntax.stringify),F.stringifier&&(B=F.stringifier),B.stringify&&(B=B.stringify);let G=new s(B,this.result.root,this.result.opts).generate();return this.result.css=G[0],this.result.map=G[1],this.result}walkSync(F){F[i]=!0;let B=E(F);for(let G of B)if(G===v)F.nodes&&F.each(it=>{it[i]||this.walkSync(it);});else {let it=this.listeners[G];if(it&&this.visitSync(it,F.toProxy()))return}}visitSync(F,B){for(let[G,it]of F){this.result.lastPlugin=G;let ft;try{ft=it(B,this.helpers);}catch(ct){throw this.handleError(ct,B.proxyOf)}if(B.type!=="root"&&B.type!=="document"&&!B.parent)return !0;if(m(ft))throw this.getAsyncError()}}runOnRoot(F){this.result.lastPlugin=F;try{if(typeof F=="object"&&F.Once){if(this.result.root.type==="document"){let B=this.result.root.nodes.map(G=>F.Once(G,this.helpers));return m(B[0])?Promise.all(B):B}return F.Once(this.result.root,this.helpers)}else if(typeof F=="function")return F(this.result.root,this.result)}catch(B){throw this.handleError(B)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(F,B){let G=this.result.lastPlugin;try{B&&B.addToError(F),this.error=F,F.name==="CssSyntaxError"&&!F.plugin?(F.plugin=G.postcssPlugin,F.setMessage()):G.postcssVersion;}catch(it){console&&console.error&&console.error(it);}return F}async runAsync(){this.plugin=0;for(let F=0;F0;){let G=this.visitTick(B);if(m(G))try{await G;}catch(it){let ft=B[B.length-1].node;throw this.handleError(it,ft)}}}if(this.listeners.OnceExit)for(let[B,G]of this.listeners.OnceExit){this.result.lastPlugin=B;try{if(F.type==="document"){let it=F.nodes.map(ft=>G(ft,this.helpers));await Promise.all(it);}else await G(F,this.helpers);}catch(it){throw this.handleError(it)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let F=(B,G,it)=>{this.listeners[G]||(this.listeners[G]=[]),this.listeners[G].push([B,it]);};for(let B of this.plugins)if(typeof B=="object")for(let G in B){if(!l[G]&&/^[A-Z]/.test(G))throw new Error(`Unknown event ${G} in ${B.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!b[G])if(typeof B[G]=="object")for(let it in B[G])it==="*"?F(B,G,B[G][it]):F(B,G+"-"+it.toLowerCase(),B[G][it]);else typeof B[G]=="function"&&F(B,G,B[G]);}this.hasListener=Object.keys(this.listeners).length>0;}visitTick(F){let B=F[F.length-1],{node:G,visitors:it}=B;if(G.type!=="root"&&G.type!=="document"&&!G.parent){F.pop();return}if(it.length>0&&B.visitorIndex{y=w;},e.exports=P,P.default=P,g.registerLazyResult(P),p.registerLazyResult(P);}),Bm=ue((t,e)=>{var i=sf(),r=Po();nf();var s=Wh(),a=Hh(),n=class{constructor(p,o,d){o=o.toString(),this.stringified=!1,this._processor=p,this._css=o,this._opts=d,this._map=void 0;let g,f=r;this.result=new a(this._processor,g,this._opts),this.result.css=o;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let b=new i(f,g,this._opts,o);if(b.isMap()){let[v,m]=b.generate();v&&(this.result.css=v),m&&(this.result.map=m);}}get[Symbol.toStringTag](){return "NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let p,o=s;try{p=o(this._css,this._opts);}catch(d){this.error=d;}if(this.error)throw this.error;return this._root=p,p}get messages(){return []}warnings(){return []}toString(){return this._css}then(p,o){return this.async().then(p,o)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};e.exports=n,n.default=n;}),zm=ue((t,e)=>{var i=Bm(),r=lf(),s=jh(),a=Vn(),n=class{constructor(p=[]){this.version="8.4.24",this.plugins=this.normalize(p);}use(p){return this.plugins=this.plugins.concat(this.normalize([p])),this}process(p,o={}){return this.plugins.length===0&&typeof o.parser>"u"&&typeof o.stringifier>"u"&&typeof o.syntax>"u"?new i(this,p,o):new r(this,p,o)}normalize(p){let o=[];for(let d of p)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))o=o.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)o.push(d);else if(typeof d=="function")o.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return o}};e.exports=n,n.default=n,a.registerProcessor(n),s.registerProcessor(n);}),Nm=ue((t,e)=>{var i=ko(),r=rf(),s=Ao(),a=qh(),n=Eo(),p=Vn(),o=$h();function d(g,f){if(Array.isArray(g))return g.map(v=>d(v));let{inputs:l,...b}=g;if(l){f=[];for(let v of l){let m={...v,__proto__:n.prototype};m.map&&(m.map={...m.map,__proto__:r.prototype}),f.push(m);}}if(b.nodes&&(b.nodes=g.nodes.map(v=>d(v,f))),b.source){let{inputId:v,...m}=b.source;b.source=m,v!=null&&(b.source.input=f[v]);}if(b.type==="root")return new p(b);if(b.type==="decl")return new i(b);if(b.type==="rule")return new o(b);if(b.type==="comment")return new s(b);if(b.type==="atrule")return new a(b);throw new Error("Unknown node type: "+g.type)}e.exports=d,d.default=d;}),Gm=ue((t,e)=>{var i=zh(),r=ko(),s=lf(),a=$a(),n=zm(),p=Po(),o=Nm(),d=jh(),g=of(),f=Ao(),l=qh(),b=Hh(),v=Eo(),m=Wh(),E=hf(),c=$h(),u=Vn(),y=So();function P(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new n(w)}P.plugin=function(w,F){let B=!1;function G(...ft){console&&console.warn&&!B&&(B=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide:
+https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(w+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
+https://www.w3ctech.com/topic/2226`));let ct=F(...ft);return ct.postcssPlugin=w,ct.postcssVersion=new n().version,ct}let it;return Object.defineProperty(G,"postcss",{get(){return it||(it=G()),it}}),G.process=function(ft,ct,dt){return P([G(dt)]).process(ft,ct)},G},P.stringify=p,P.parse=m,P.fromJSON=o,P.list=E,P.comment=w=>new f(w),P.atRule=w=>new l(w),P.decl=w=>new r(w),P.rule=w=>new c(w),P.root=w=>new u(w),P.document=w=>new d(w),P.CssSyntaxError=i,P.Declaration=r,P.Container=a,P.Processor=n,P.Document=d,P.Comment=f,P.Warning=g,P.AtRule=l,P.Result=b,P.Input=v,P.Rule=c,P.Root=u,P.Node=y,s.registerPostcss(P),e.exports=P,P.default=P;}),ff=ue(()=>{}),cf=ue((t,e)=>{var i=Yp(),r=ff(),s=class uf extends Error{constructor(n,p,o,d,g,f){super(n),this.name="CssSyntaxError",this.reason=n,g&&(this.file=g),d&&(this.source=d),f&&(this.plugin=f),typeof p<"u"&&typeof o<"u"&&(typeof p=="number"?(this.line=p,this.column=o):(this.line=p.line,this.column=p.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,uf);}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason;}showSourceCode(n){if(!this.source)return "";let p=this.source;n==null&&(n=i.isColorSupported),r&&n&&(p=r(p));let o=p.split(/\r?\n/),d=Math.max(this.line-3,0),g=Math.min(this.line+2,o.length),f=String(g).length,l,b;if(n){let{bold:v,red:m,gray:E}=i.createColors(!0);l=c=>v(m(c)),b=c=>E(c);}else l=b=v=>v;return o.slice(d,g).map((v,m)=>{let E=d+1+m,c=" "+(" "+E).slice(-f)+" | ";if(E===this.line){let u=b(c.replace(/\d/g," "))+v.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+b(c)+v+`
+ `+u+l("^")}return " "+b(c)+v}).join(`
+`)}toString(){let n=this.showSourceCode();return n&&(n=`
+
+`+n+`
+`),this.name+": "+this.message+n}};e.exports=s,s.default=s;}),jm=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{existsSync:s,readFileSync:a}=ef(),{dirname:n,join:p}=Ln();function o(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}var d=class{constructor(g,f){if(f.map===!1)return;this.loadAnnotation(g),this.inline=this.startWith(this.annotation,"data:");let l=f.map?f.map.prev:void 0,b=this.loadMap(f.from,l);!this.mapFile&&f.from&&(this.mapFile=f.from),this.mapFile&&(this.root=n(this.mapFile)),b&&(this.text=b);}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(g,f){return g?g.substr(0,f.length)===f:!1}getAnnotationURL(g){return g.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(g){let f=g.match(/\/\*\s*# sourceMappingURL=/gm);if(!f)return;let l=g.lastIndexOf(f.pop()),b=g.indexOf("*/",l);l>-1&&b>-1&&(this.annotation=this.getAnnotationURL(g.substring(l,b)));}decodeInline(g){let f=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,b=/^data:application\/json;charset=utf-?8,/,v=/^data:application\/json,/;if(b.test(g)||v.test(g))return decodeURIComponent(g.substr(RegExp.lastMatch.length));if(f.test(g)||l.test(g))return o(g.substr(RegExp.lastMatch.length));let m=g.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}loadFile(g){if(this.root=n(g),s(g))return this.mapFile=g,a(g,"utf-8").toString().trim()}loadMap(g,f){if(f===!1)return !1;if(f){if(typeof f=="string")return f;if(typeof f=="function"){let l=f(g);if(l){let b=this.loadFile(l);if(!b)throw new Error("Unable to load previous source map: "+l.toString());return b}}else {if(f instanceof i)return r.fromSourceMap(f).toString();if(f instanceof r)return f.toString();if(this.isMap(f))return JSON.stringify(f);throw new Error("Unsupported previous source map format: "+f.toString())}}else {if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return g&&(l=p(n(g),l)),this.loadFile(l)}}}isMap(g){return typeof g!="object"?!1:typeof g.mappings=="string"||typeof g._mappings=="string"||Array.isArray(g.sections)}};e.exports=d,d.default=d;}),df=ue((t,e)=>{var{SourceMapConsumer:i,SourceMapGenerator:r}=In(),{fileURLToPath:s,pathToFileURL:a}=Gh(),{resolve:n,isAbsolute:p}=Ln(),{nanoid:o}=tf(),d=ff(),g=cf(),f=jm(),l=Symbol("fromOffsetCache"),b=!!(i&&r),v=!!(n&&p),m=class{constructor(E,c={}){if(E===null||typeof E>"u"||typeof E=="object"&&!E.toString)throw new Error(`PostCSS received ${E} instead of CSS string`);if(this.css=E.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,c.from&&(!v||/^\w+:\/\//.test(c.from)||p(c.from)?this.file=c.from:this.file=n(c.from)),v&&b){let u=new f(this.css,c);if(u.text){this.map=u;let y=u.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y));}}this.file||(this.id=""),this.map&&(this.map.file=this.from);}fromOffset(E){let c,u;if(this[l])u=this[l];else {let P=this.css.split(`
+`);u=new Array(P.length);let w=0;for(let F=0,B=P.length;F=c)y=u.length-1;else {let P=u.length-2,w;for(;y>1),E=u[w+1])y=w+1;else {y=w;break}}return {line:y+1,col:E-u[y]+1}}error(E,c,u,y={}){let P,w,F;if(c&&typeof c=="object"){let G=c,it=u;if(typeof G.offset=="number"){let ft=this.fromOffset(G.offset);c=ft.line,u=ft.col;}else c=G.line,u=G.column;if(typeof it.offset=="number"){let ft=this.fromOffset(it.offset);w=ft.line,F=ft.col;}else w=it.line,F=it.column;}else if(!u){let G=this.fromOffset(c);c=G.line,u=G.col;}let B=this.origin(c,u,w,F);return B?P=new g(E,B.endLine===void 0?B.line:{line:B.line,column:B.column},B.endLine===void 0?B.column:{line:B.endLine,column:B.endColumn},B.source,B.file,y.plugin):P=new g(E,w===void 0?c:{line:c,column:u},w===void 0?u:{line:w,column:F},this.css,this.file,y.plugin),P.input={line:c,column:u,endLine:w,endColumn:F,source:this.css},this.file&&(a&&(P.input.url=a(this.file).toString()),P.input.file=this.file),P}origin(E,c,u,y){if(!this.map)return !1;let P=this.map.consumer(),w=P.originalPositionFor({line:E,column:c});if(!w.source)return !1;let F;typeof u=="number"&&(F=P.originalPositionFor({line:u,column:y}));let B;p(w.source)?B=a(w.source):B=new URL(w.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let G={url:B.toString(),line:w.line,column:w.column,endLine:F&&F.line,endColumn:F&&F.column};if(B.protocol==="file:")if(s)G.file=s(B);else throw new Error("file: protocol is not available in this PostCSS build");let it=P.sourceContentFor(w.source);return it&&(G.source=it),G}mapResolve(E){return /^\w+:\/\//.test(E)?E:n(this.map.consumer().sourceRoot||this.map.root||".",E)}get from(){return this.file||this.id}toJSON(){let E={};for(let c of ["hasBOM","css","file","id"])this[c]!=null&&(E[c]=this[c]);return this.map&&(E.map={...this.map},E.map.consumerCache&&(E.map.consumerCache=void 0)),E}};e.exports=m,m.default=m,d&&d.registerInput&&d.registerInput(m);}),mf=ue((t,e)=>{e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my");}),Uh=ue((t,e)=>{var i={colon:": ",indent:" ",beforeDecl:`
+`,beforeRule:`
+`,beforeOpen:" ",beforeClose:`
+`,beforeComment:`
+`,after:`
+`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function r(a){return a[0].toUpperCase()+a.slice(1)}var s=class{constructor(a){this.builder=a;}stringify(a,n){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,n);}document(a){this.body(a);}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after);}comment(a){let n=this.raw(a,"left","commentLeft"),p=this.raw(a,"right","commentRight");this.builder("/*"+n+a.text+p+"*/",a);}decl(a,n){let p=this.raw(a,"between","colon"),o=a.prop+p+this.rawValue(a,"value");a.important&&(o+=a.raws.important||" !important"),n&&(o+=";"),this.builder(o,a);}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end");}atrule(a,n){let p="@"+a.name,o=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?p+=a.raws.afterName:o&&(p+=" "),a.nodes)this.block(a,p+o);else {let d=(a.raws.between||"")+(n?";":"");this.builder(p+o+d,a);}}body(a){let n=a.nodes.length-1;for(;n>0&&a.nodes[n].type==="comment";)n-=1;let p=this.raw(a,"semicolon");for(let o=0;o{if(o=l.raws[n],typeof o<"u")return !1});}return typeof o>"u"&&(o=i[p]),g.rawCache[p]=o,o}rawSemicolon(a){let n;return a.walk(p=>{if(p.nodes&&p.nodes.length&&p.last.type==="decl"&&(n=p.raws.semicolon,typeof n<"u"))return !1}),n}rawEmptyBody(a){let n;return a.walk(p=>{if(p.nodes&&p.nodes.length===0&&(n=p.raws.after,typeof n<"u"))return !1}),n}rawIndent(a){if(a.raws.indent)return a.raws.indent;let n;return a.walk(p=>{let o=p.parent;if(o&&o!==a&&o.parent&&o.parent===a&&typeof p.raws.before<"u"){let d=p.raws.before.split(`
+`);return n=d[d.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(a,n){let p;return a.walkComments(o=>{if(typeof o.raws.before<"u")return p=o.raws.before,p.includes(`
+`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(n,null,"beforeDecl"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeDecl(a,n){let p;return a.walkDecls(o=>{if(typeof o.raws.before<"u")return p=o.raws.before,p.includes(`
+`)&&(p=p.replace(/[^\n]+$/,"")),!1}),typeof p>"u"?p=this.raw(n,null,"beforeRule"):p&&(p=p.replace(/\S/g,"")),p}rawBeforeRule(a){let n;return a.walk(p=>{if(p.nodes&&(p.parent!==a||a.first!==p)&&typeof p.raws.before<"u")return n=p.raws.before,n.includes(`
+`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(a){let n;return a.walk(p=>{if(p.nodes&&p.nodes.length>0&&typeof p.raws.after<"u")return n=p.raws.after,n.includes(`
+`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(a){let n;return a.walk(p=>{if(p.type!=="decl"&&(n=p.raws.between,typeof n<"u"))return !1}),n}rawColon(a){let n;return a.walkDecls(p=>{if(typeof p.raws.between<"u")return n=p.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(a,n){let p;a.type==="decl"?p=this.raw(a,null,"beforeDecl"):a.type==="comment"?p=this.raw(a,null,"beforeComment"):n==="before"?p=this.raw(a,null,"beforeRule"):p=this.raw(a,null,"beforeClose");let o=a.parent,d=0;for(;o&&o.type!=="root";)d+=1,o=o.parent;if(p.includes(`
+`)){let g=this.raw(a,null,"indent");if(g.length)for(let f=0;f{var i=Uh();function r(s,a){new i(a).stringify(s);}e.exports=r,r.default=r;}),Rn=ue((t,e)=>{var{isClean:i,my:r}=mf(),s=cf(),a=Uh(),n=Hm();function p(d,g){let f=new d.constructor;for(let l in d){if(!Object.prototype.hasOwnProperty.call(d,l)||l==="proxyCache")continue;let b=d[l],v=typeof b;l==="parent"&&v==="object"?g&&(f[l]=g):l==="source"?f[l]=b:Array.isArray(b)?f[l]=b.map(m=>p(m,f)):(v==="object"&&b!==null&&(b=p(b)),f[l]=b);}return f}var o=class{constructor(d={}){this.raws={},this[i]=!1,this[r]=!0;for(let g in d)if(g==="nodes"){this.nodes=[];for(let f of d[g])typeof f.clone=="function"?this.append(f.clone()):this.append(f);}else this[g]=d[g];}error(d,g={}){if(this.source){let{start:f,end:l}=this.rangeBy(g);return this.source.input.error(d,{line:f.line,column:f.column},{line:l.line,column:l.column},g)}return new s(d)}warn(d,g,f){let l={node:this};for(let b in f)l[b]=f[b];return d.warn(g,l)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(d=n){d.stringify&&(d=d.stringify);let g="";return d(this,f=>{g+=f;}),g}assign(d={}){for(let g in d)this[g]=d[g];return this}clone(d={}){let g=p(this);for(let f in d)g[f]=d[f];return g}cloneBefore(d={}){let g=this.clone(d);return this.parent.insertBefore(this,g),g}cloneAfter(d={}){let g=this.clone(d);return this.parent.insertAfter(this,g),g}replaceWith(...d){if(this.parent){let g=this,f=!1;for(let l of d)l===this?f=!0:f?(this.parent.insertAfter(g,l),g=l):this.parent.insertBefore(g,l);f||this.remove();}return this}next(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d+1]}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}before(d){return this.parent.insertBefore(this,d),this}after(d){return this.parent.insertAfter(this,d),this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}raw(d,g){return new a().raw(this,d,g)}cleanRaws(d){delete this.raws.before,delete this.raws.after,d||delete this.raws.between;}toJSON(d,g){let f={},l=g==null;g=g||new Map;let b=0;for(let v in this){if(!Object.prototype.hasOwnProperty.call(this,v)||v==="parent"||v==="proxyCache")continue;let m=this[v];if(Array.isArray(m))f[v]=m.map(E=>typeof E=="object"&&E.toJSON?E.toJSON(null,g):E);else if(typeof m=="object"&&m.toJSON)f[v]=m.toJSON(null,g);else if(v==="source"){let E=g.get(m.input);E==null&&(E=b,g.set(m.input,b),b++),f[v]={inputId:E,start:m.start,end:m.end};}else f[v]=m;}return l&&(f.inputs=[...g.keys()].map(v=>v.toJSON())),f}positionInside(d){let g=this.toString(),f=this.source.start.column,l=this.source.start.line;for(let b=0;bd.root().toProxy():d[g]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(d){if(d.postcssNode=this,d.stack&&this.source&&/\n\s{4}at /.test(d.stack)){let g=this.source;d.stack=d.stack.replace(/\n\s{4}at /,`$&${g.input.from}:${g.start.line}:${g.start.column}$&`);}return d}markDirty(){if(this[i]){this[i]=!1;let d=this;for(;d=d.parent;)d[i]=!1;}}get proxyOf(){return this}};e.exports=o,o.default=o;}),yf=ue((t,e)=>{var i=Rn(),r=class extends i{constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};e.exports=r,r.default=r;}),gf=ue((t,e)=>{var i="'".charCodeAt(0),r='"'.charCodeAt(0),s="\\".charCodeAt(0),a="/".charCodeAt(0),n=`
+`.charCodeAt(0),p=" ".charCodeAt(0),o="\f".charCodeAt(0),d=" ".charCodeAt(0),g="\r".charCodeAt(0),f="[".charCodeAt(0),l="]".charCodeAt(0),b="(".charCodeAt(0),v=")".charCodeAt(0),m="{".charCodeAt(0),E="}".charCodeAt(0),c=";".charCodeAt(0),u="*".charCodeAt(0),y=":".charCodeAt(0),P="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,F=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,B=/.[\n"'(/\\]/,G=/[\da-f]/i;e.exports=function(it,ft={}){let ct=it.css.valueOf(),dt=ft.ignoreErrors,Pt,tt,vt,D,O,k,L,K,U,Ht,It=ct.length,Gt=0,Ot=[],ee=[];function ae(){return Gt}function le(pe){throw it.error("Unclosed "+pe,Gt)}function ye(){return ee.length===0&&Gt>=It}function ce(pe){if(ee.length)return ee.pop();if(Gt>=It)return;let Wt=pe?pe.ignoreUnclosed:!1;switch(Pt=ct.charCodeAt(Gt),Pt){case n:case p:case d:case g:case o:{tt=Gt;do tt+=1,Pt=ct.charCodeAt(tt);while(Pt===p||Pt===n||Pt===d||Pt===g||Pt===o);Ht=["space",ct.slice(Gt,tt)],Gt=tt-1;break}case f:case l:case m:case E:case y:case c:case v:{let Nt=String.fromCharCode(Pt);Ht=[Nt,Nt,Gt];break}case b:{if(K=Ot.length?Ot.pop()[1]:"",U=ct.charCodeAt(Gt+1),K==="url"&&U!==i&&U!==r&&U!==p&&U!==n&&U!==d&&U!==o&&U!==g){tt=Gt;do{if(k=!1,tt=ct.indexOf(")",tt+1),tt===-1)if(dt||Wt){tt=Gt;break}else le("bracket");for(L=tt;ct.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);Ht=["brackets",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;}else tt=ct.indexOf(")",Gt+1),D=ct.slice(Gt,tt+1),tt===-1||B.test(D)?Ht=["(","(",Gt]:(Ht=["brackets",D,Gt,tt],Gt=tt);break}case i:case r:{vt=Pt===i?"'":'"',tt=Gt;do{if(k=!1,tt=ct.indexOf(vt,tt+1),tt===-1)if(dt||Wt){tt=Gt+1;break}else le("string");for(L=tt;ct.charCodeAt(L-1)===s;)L-=1,k=!k;}while(k);Ht=["string",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}case P:{w.lastIndex=Gt+1,w.test(ct),w.lastIndex===0?tt=ct.length-1:tt=w.lastIndex-2,Ht=["at-word",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}case s:{for(tt=Gt,O=!0;ct.charCodeAt(tt+1)===s;)tt+=1,O=!O;if(Pt=ct.charCodeAt(tt+1),O&&Pt!==a&&Pt!==p&&Pt!==n&&Pt!==d&&Pt!==g&&Pt!==o&&(tt+=1,G.test(ct.charAt(tt)))){for(;G.test(ct.charAt(tt+1));)tt+=1;ct.charCodeAt(tt+1)===p&&(tt+=1);}Ht=["word",ct.slice(Gt,tt+1),Gt,tt],Gt=tt;break}default:{Pt===a&&ct.charCodeAt(Gt+1)===u?(tt=ct.indexOf("*/",Gt+2)+1,tt===0&&(dt||Wt?tt=ct.length:le("comment")),Ht=["comment",ct.slice(Gt,tt+1),Gt,tt],Gt=tt):(F.lastIndex=Gt+1,F.test(ct),F.lastIndex===0?tt=ct.length-1:tt=F.lastIndex-2,Ht=["word",ct.slice(Gt,tt+1),Gt,tt],Ot.push(Ht),Gt=tt);break}}return Gt++,Ht}function Xt(pe){ee.push(pe);}return {back:Xt,nextToken:ce,endOfFile:ye,position:ae}};}),Jh=ue((t,e)=>{var i=Rn(),r=class extends i{constructor(s){super(s),this.type="comment";}};e.exports=r,r.default=r;}),On=ue((t,e)=>{var{isClean:i,my:r}=mf(),s=yf(),a=Jh(),n=Rn(),p,o,d,g;function f(v){return v.map(m=>(m.nodes&&(m.nodes=f(m.nodes)),delete m.source,m))}function l(v){if(v[i]=!1,v.proxyOf.nodes)for(let m of v.proxyOf.nodes)l(m);}var b=class vf extends n{push(m){return m.parent=this,this.proxyOf.nodes.push(m),this}each(m){if(!this.proxyOf.nodes)return;let E=this.getIterator(),c,u;for(;this.indexes[E]{let u;try{u=m(E,c);}catch(y){throw E.addToError(y)}return u!==!1&&E.walk&&(u=E.walk(m)),u})}walkDecls(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="decl"&&m.test(c.prop))return E(c,u)}):this.walk((c,u)=>{if(c.type==="decl"&&c.prop===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="decl")return E(c,u)}))}walkRules(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="rule"&&m.test(c.selector))return E(c,u)}):this.walk((c,u)=>{if(c.type==="rule"&&c.selector===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="rule")return E(c,u)}))}walkAtRules(m,E){return E?m instanceof RegExp?this.walk((c,u)=>{if(c.type==="atrule"&&m.test(c.name))return E(c,u)}):this.walk((c,u)=>{if(c.type==="atrule"&&c.name===m)return E(c,u)}):(E=m,this.walk((c,u)=>{if(c.type==="atrule")return E(c,u)}))}walkComments(m){return this.walk((E,c)=>{if(E.type==="comment")return m(E,c)})}append(...m){for(let E of m){let c=this.normalize(E,this.last);for(let u of c)this.proxyOf.nodes.push(u);}return this.markDirty(),this}prepend(...m){m=m.reverse();for(let E of m){let c=this.normalize(E,this.first,"prepend").reverse();for(let u of c)this.proxyOf.nodes.unshift(u);for(let u in this.indexes)this.indexes[u]=this.indexes[u]+c.length;}return this.markDirty(),this}cleanRaws(m){if(super.cleanRaws(m),this.nodes)for(let E of this.nodes)E.cleanRaws(m);}insertBefore(m,E){let c=this.index(m),u=c===0?"prepend":!1,y=this.normalize(E,this.proxyOf.nodes[c],u).reverse();c=this.index(m);for(let w of y)this.proxyOf.nodes.splice(c,0,w);let P;for(let w in this.indexes)P=this.indexes[w],c<=P&&(this.indexes[w]=P+y.length);return this.markDirty(),this}insertAfter(m,E){let c=this.index(m),u=this.normalize(E,this.proxyOf.nodes[c]).reverse();c=this.index(m);for(let P of u)this.proxyOf.nodes.splice(c+1,0,P);let y;for(let P in this.indexes)y=this.indexes[P],c=m&&(this.indexes[c]=E-1);return this.markDirty(),this}removeAll(){for(let m of this.proxyOf.nodes)m.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(m,E,c){return c||(c=E,E={}),this.walkDecls(u=>{E.props&&!E.props.includes(u.prop)||E.fast&&!u.value.includes(E.fast)||(u.value=u.value.replace(m,c));}),this.markDirty(),this}every(m){return this.nodes.every(m)}some(m){return this.nodes.some(m)}index(m){return typeof m=="number"?m:(m.proxyOf&&(m=m.proxyOf),this.proxyOf.nodes.indexOf(m))}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]}normalize(m,E){if(typeof m=="string")m=f(p(m).nodes);else if(Array.isArray(m)){m=m.slice(0);for(let c of m)c.parent&&c.parent.removeChild(c,"ignore");}else if(m.type==="root"&&this.type!=="document"){m=m.nodes.slice(0);for(let c of m)c.parent&&c.parent.removeChild(c,"ignore");}else if(m.type)m=[m];else if(m.prop){if(typeof m.value>"u")throw new Error("Value field is missed in node creation");typeof m.value!="string"&&(m.value=String(m.value)),m=[new s(m)];}else if(m.selector)m=[new o(m)];else if(m.name)m=[new d(m)];else if(m.text)m=[new a(m)];else throw new Error("Unknown node type in node creation");return m.map(c=>(c[r]||vf.rebuild(c),c=c.proxyOf,c.parent&&c.parent.removeChild(c),c[i]&&l(c),typeof c.raws.before>"u"&&E&&typeof E.raws.before<"u"&&(c.raws.before=E.raws.before.replace(/\S/g,"")),c.parent=this.proxyOf,c))}getProxyProcessor(){return {set(m,E,c){return m[E]===c||(m[E]=c,(E==="name"||E==="params"||E==="selector")&&m.markDirty()),!0},get(m,E){return E==="proxyOf"?m:m[E]?E==="each"||typeof E=="string"&&E.startsWith("walk")?(...c)=>m[E](...c.map(u=>typeof u=="function"?(y,P)=>u(y.toProxy(),P):u)):E==="every"||E==="some"?c=>m[E]((u,...y)=>c(u.toProxy(),...y)):E==="root"?()=>m.root().toProxy():E==="nodes"?m.nodes.map(c=>c.toProxy()):E==="first"||E==="last"?m[E].toProxy():m[E]:m[E]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let m=this.lastEach;return this.indexes[m]=0,m}};b.registerParse=v=>{p=v;},b.registerRule=v=>{o=v;},b.registerAtRule=v=>{d=v;},b.registerRoot=v=>{g=v;},e.exports=b,b.default=b,b.rebuild=v=>{v.type==="atrule"?Object.setPrototypeOf(v,d.prototype):v.type==="rule"?Object.setPrototypeOf(v,o.prototype):v.type==="decl"?Object.setPrototypeOf(v,s.prototype):v.type==="comment"?Object.setPrototypeOf(v,a.prototype):v.type==="root"&&Object.setPrototypeOf(v,g.prototype),v[r]=!0,v.nodes&&v.nodes.forEach(m=>{b.rebuild(m);});};}),qm=ue((t,e)=>{var i=On(),r=class extends i{constructor(s){super(s),this.type="atrule";}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}};e.exports=r,r.default=r,i.registerAtRule(r);}),$m=ue((t,e)=>{var i=On(),r,s,a=class extends i{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[]);}removeChild(n,p){let o=this.index(n);return !p&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(n)}normalize(n,p,o){let d=super.normalize(n);if(p){if(o==="prepend")this.nodes.length>1?p.raws.before=this.nodes[1].raws.before:delete p.raws.before;else if(this.first!==p)for(let g of d)g.raws.before=p.raws.before;}return d}toResult(n={}){return new r(new s,this,n).stringify()}};a.registerLazyResult=n=>{r=n;},a.registerProcessor=n=>{s=n;},e.exports=a,a.default=a,i.registerRoot(a);}),Wm=ue((t,e)=>{var i={split(r,s,a){let n=[],p="",o=!1,d=0,g=!1,f="",l=!1;for(let b of r)l?l=!1:b==="\\"?l=!0:g?b===f&&(g=!1):b==='"'||b==="'"?(g=!0,f=b):b==="("?d+=1:b===")"?d>0&&(d-=1):d===0&&s.includes(b)&&(o=!0),o?(p!==""&&n.push(p.trim()),p="",o=!1):p+=b;return (a||p!=="")&&n.push(p.trim()),n},space(r){let s=[" ",`
+`," "];return i.split(r,s)},comma(r){return i.split(r,[","],!0)}};e.exports=i,i.default=i;}),Um=ue((t,e)=>{var i=On(),r=Wm(),s=class extends i{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return r.comma(this.selector)}set selectors(a){let n=this.selector?this.selector.match(/,\s*/):null,p=n?n[0]:","+this.raw("between","beforeOpen");this.selector=a.join(p);}};e.exports=s,s.default=s,i.registerRule(s);}),Jm=ue((t,e)=>{var i=yf(),r=gf(),s=Jh(),a=qm(),n=$m(),p=Um(),o={empty:!0,space:!0};function d(f){for(let l=f.length-1;l>=0;l--){let b=f[l],v=b[3]||b[2];if(v)return v}}var g=class{constructor(f){this.input=f,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:f,start:{offset:0,line:1,column:1}};}createTokenizer(){this.tokenizer=r(this.input);}parse(){let f;for(;!this.tokenizer.endOfFile();)switch(f=this.tokenizer.nextToken(),f[0]){case"space":this.spaces+=f[1];break;case";":this.freeSemicolon(f);break;case"}":this.end(f);break;case"comment":this.comment(f);break;case"at-word":this.atrule(f);break;case"{":this.emptyRule(f);break;default:this.other(f);break}this.endFile();}comment(f){let l=new s;this.init(l,f[2]),l.source.end=this.getPosition(f[3]||f[2]);let b=f[1].slice(2,-2);if(/^\s*$/.test(b))l.text="",l.raws.left=b,l.raws.right="";else {let v=b.match(/^(\s*)([^]*\S)(\s*)$/);l.text=v[2],l.raws.left=v[1],l.raws.right=v[3];}}emptyRule(f){let l=new p;this.init(l,f[2]),l.selector="",l.raws.between="",this.current=l;}other(f){let l=!1,b=null,v=!1,m=null,E=[],c=f[1].startsWith("--"),u=[],y=f;for(;y;){if(b=y[0],u.push(y),b==="("||b==="[")m||(m=y),E.push(b==="("?")":"]");else if(c&&v&&b==="{")m||(m=y),E.push("}");else if(E.length===0)if(b===";")if(v){this.decl(u,c);return}else break;else if(b==="{"){this.rule(u);return}else if(b==="}"){this.tokenizer.back(u.pop()),l=!0;break}else b===":"&&(v=!0);else b===E[E.length-1]&&(E.pop(),E.length===0&&(m=null));y=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(l=!0),E.length>0&&this.unclosedBracket(m),l&&v){if(!c)for(;u.length&&(y=u[u.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c);}else this.unknownWord(u);}rule(f){f.pop();let l=new p;this.init(l,f[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(f),this.raw(l,"selector",f),this.current=l;}decl(f,l){let b=new i;this.init(b,f[0][2]);let v=f[f.length-1];for(v[0]===";"&&(this.semicolon=!0,f.pop()),b.source.end=this.getPosition(v[3]||v[2]||d(f));f[0][0]!=="word";)f.length===1&&this.unknownWord(f),b.raws.before+=f.shift()[1];for(b.source.start=this.getPosition(f[0][2]),b.prop="";f.length;){let u=f[0][0];if(u===":"||u==="space"||u==="comment")break;b.prop+=f.shift()[1];}b.raws.between="";let m;for(;f.length;)if(m=f.shift(),m[0]===":"){b.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),b.raws.between+=m[1];(b.prop[0]==="_"||b.prop[0]==="*")&&(b.raws.before+=b.prop[0],b.prop=b.prop.slice(1));let E=[],c;for(;f.length&&(c=f[0][0],!(c!=="space"&&c!=="comment"));)E.push(f.shift());this.precheckMissedSemicolon(f);for(let u=f.length-1;u>=0;u--){if(m=f[u],m[1].toLowerCase()==="!important"){b.important=!0;let y=this.stringFrom(f,u);y=this.spacesFromEnd(f)+y,y!==" !important"&&(b.raws.important=y);break}else if(m[1].toLowerCase()==="important"){let y=f.slice(0),P="";for(let w=u;w>0;w--){let F=y[w][0];if(P.trim().indexOf("!")===0&&F!=="space")break;P=y.pop()[1]+P;}P.trim().indexOf("!")===0&&(b.important=!0,b.raws.important=P,f=y);}if(m[0]!=="space"&&m[0]!=="comment")break}f.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(b.raws.between+=E.map(u=>u[1]).join(""),E=[]),this.raw(b,"value",E.concat(f),l),b.value.includes(":")&&!l&&this.checkMissedSemicolon(f);}atrule(f){let l=new a;l.name=f[1].slice(1),l.name===""&&this.unnamedAtrule(l,f),this.init(l,f[2]);let b,v,m,E=!1,c=!1,u=[],y=[];for(;!this.tokenizer.endOfFile();){if(f=this.tokenizer.nextToken(),b=f[0],b==="("||b==="["?y.push(b==="("?")":"]"):b==="{"&&y.length>0?y.push("}"):b===y[y.length-1]&&y.pop(),y.length===0)if(b===";"){l.source.end=this.getPosition(f[2]),this.semicolon=!0;break}else if(b==="{"){c=!0;break}else if(b==="}"){if(u.length>0){for(m=u.length-1,v=u[m];v&&v[0]==="space";)v=u[--m];v&&(l.source.end=this.getPosition(v[3]||v[2]));}this.end(f);break}else u.push(f);else u.push(f);if(this.tokenizer.endOfFile()){E=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(l.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(l,"params",u),E&&(f=u[u.length-1],l.source.end=this.getPosition(f[3]||f[2]),this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),c&&(l.nodes=[],this.current=l);}end(f){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(f[2]),this.current=this.current.parent):this.unexpectedClose(f);}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;}freeSemicolon(f){if(this.spaces+=f[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="");}}getPosition(f){let l=this.input.fromOffset(f);return {offset:f,line:l.line,column:l.col}}init(f,l){this.current.push(f),f.source={start:this.getPosition(l),input:this.input},f.raws.before=this.spaces,this.spaces="",f.type!=="comment"&&(this.semicolon=!1);}raw(f,l,b,v){let m,E,c=b.length,u="",y=!0,P,w;for(let F=0;FB+G[1],"");f.raws[l]={value:u,raw:F};}f[l]=u;}spacesAndCommentsFromEnd(f){let l,b="";for(;f.length&&(l=f[f.length-1][0],!(l!=="space"&&l!=="comment"));)b=f.pop()[1]+b;return b}spacesAndCommentsFromStart(f){let l,b="";for(;f.length&&(l=f[0][0],!(l!=="space"&&l!=="comment"));)b+=f.shift()[1];return b}spacesFromEnd(f){let l,b="";for(;f.length&&(l=f[f.length-1][0],l==="space");)b=f.pop()[1]+b;return b}stringFrom(f,l){let b="";for(let v=l;v=0&&(v=f[m],!(v[0]!=="space"&&(b+=1,b===2)));m--);throw this.input.error("Missed semicolon",v[0]==="word"?v[3]+1:v[2])}};e.exports=g;}),na=ue((t,e)=>{var i=On(),r=s=>{let a=`walk${s.name}`;a.lastIndexOf("s")!==a.length-1&&(a+="s"),!i.prototype[a]&&(i.prototype[a]=function(n){return this.walkType(s,n)});};i.prototype.walkType=function(s,a){if(!s||!a)throw new Error("Parameters {type} and {callback} are required.");let n=typeof s=="function";return this.walk((p,o)=>{if(n&&p instanceof s||!n&&p.type===s)return a.call(this,p,o)})},e.exports={registerWalker:r};}),Bn=ue((t,e)=>{var i=Uh();e.exports=class bf extends i{static stringify(s,a){new bf(a).stringify(s);}basic(s,a){let n=a||s.value,p=s.raws.after&&this.raw(s,"after")||"";this.builder(n,s,"start"),this.builder(p,s,"end");}atword(...s){this.atrule(...s);}comment(s){if(s.inline){let a=this.raw(s,"left","commentLeft"),n=this.raw(s,"right","commentRight");this.builder(`//${a}${s.text}${n}`,s);}else super.comment(s);}func(s){let a=this.raw(s,"after")||"";this.builder(`${s.name}(`,s,"start");for(let n of s.nodes){let p=n.raws.before?this.raw(n,"before"):"";p&&this.builder(p),this.stringify(n);}this.builder(`)${a}`,s,"end");}interpolation(s){this.basic(s,s.prefix+s.params);}numeric(s){let a=s.value+s.unit;this.basic(s,a);}operator(s){this.basic(s);}punctuation(s){this.basic(s);}quoted(s){this.basic(s);}unicodeRange(s){this.basic(s);}word(s){this.basic(s);}};}),Xm=ue((t,e)=>{var i=Rn(),{registerWalker:r}=na(),{stringify:s}=Bn(),a=class extends i{toString(n=s){return super.toString(n)}};r(a),e.exports=a;}),Ym=ue((t,e)=>{var i=Jh(),{stringify:r}=Bn(),s=/(\/\/)/,a=class extends i{static testInline(n){return s.test(n[1])}static tokenizeNext(n,p){let[o]=n,d=n.findIndex(m=>/\n/.test(m[1])),g=n,f=[];d>=0&&(g=n.slice(0,d),f=n.slice(d)),g=g.map(m=>m[1]);let l=g.concat("~~").join(""),b=g[g.length-1],v=["comment",l,o[2],o[3],b[2],b[3]];p.back([v,...f]);}static tokenizeInline(n,p){let[o,...d]=n,g=o[1].split(/(\/\/.+)/).filter(E=>!!E),f=[],[,,l,,b]=o,[,,,v,,m]=o;for(let E of g){let c=E.slice(0,2)==="//",u=c?"comment":"word";c&&(E+="~~"),E!==g[0]&&(v=m+1),m=v+E.length-1,f.push([u,E,l,v,b,m]);}p.back(f.concat(d));}toString(n=r){return super.toString(n)}};e.exports=a;}),_f=ue((t,e)=>{var i=df(),r=gf(),s=["*","-","%","+","/"],a=/([*/])/g,n=(f,l)=>{let[,,b,v,m,E]=f,c=f[1].slice(1,f[1].length-1),u=o(c);for(let P of u)if(P[0]!=="space"){let w=P[5]-P[3];P[2]=b,P[3]+=v,P[4]+=m-1,P[5]=P[3]+w;}let y=[["(","(",b,v,b,v],...u];y.push([")",")",b,E,m,E]);for(let P of y.reverse())l.back(P);},p=(f,l)=>{let b=f[1].split(/([,])/),v=[],[,,m,,E]=f,[,,,c,,u]=f;for(let y of b){y=y||",";let P=y===","?"comma":"word";y!==b[0]&&(c=u+1),u=c+y.length-1,v.push([P,y,m,c,E,u]);}for(let y of v.reverse())l.back(y);},o=f=>{let l=new i(f,{}),b=g(l),v=[];for(;!b.endOfFile();){let m=b.nextToken();v.push(m);}return v},d=(f,l)=>{let[,b,v,,m,E]=f,c=b.split(a),[,,,u]=f,y=c.map(P=>{let w=[s.includes(P)?"operator":"word",P,v,u,m,E];return u+=P.length,w});for(let P of y.reverse())l.back(P);},g=(...f)=>{let l=r(...f),b=l.nextToken;return l.nextToken=(...v)=>{let m=b(...v);if(!m)return m;let[E,c]=m;return E==="brackets"?(n(m,l),m=b(...v)):E==="word"&&(s.includes(c)?m[0]="operator":a.test(c)?(d(m,l),m=b(...v)):c.length>1&&c.includes(",")&&(p(m,l),m=b(...v))),m},l};e.exports={getTokens:o,tokenizer:g};}),xf=ue((t,e)=>{var i=On(),{stringify:r}=Bn(),s=class extends i{toString(a=r){return super.toString(a)}};e.exports=s;}),nn=ue((t,e)=>{var i=Rn(),{stringify:r}=Bn(),s=class extends i{toString(a=r){return super.toString(a||{})}};e.exports=s;}),Pf=ue((t,e)=>{var{getTokens:i}=_f(),{registerWalker:r}=na(),s=nn(),a=class Sf extends s{constructor(p){super(p),this.type="punctuation";}static get chars(){return [",",":","(",")","[","]","{","}"]}static fromTokens(p,o){o.fromFirst(p,Sf);}static tokenizeBrackets(p,o){let[d,...g]=p,f=d[1].split(/([()])/g).filter(c=>!!c),l=[],[,,b,,v]=d,[,,,m,,E]=d;for(let c of f){let u=c==="("?"(":c===")"?")":"word";if(/^\s+$/.test(c)&&(u="space"),c!==f[0]&&(m=E+1),E=m+c.length-1,u==="word"){let y=i(c);for(let P of y)P[3]+=m-1,l.push(P);}else l.push([u,c,b,m,v,E]);}o.back(l.concat(g));}static tokenizeCommas(p,o){let[d,...g]=p,f=d[1].split(/([,])/g).filter(c=>!!c),l=[],[,,b,,v]=d,[,,,m,,E]=d;for(let c of f)c!==f[0]&&(m=E+1),E=m+c.length-1,l.push(["word",c,b,m,v,E]);o.back(l.concat(g));}};r(a),e.exports=a;}),Zm=ue((t,e)=>{var{getTokens:i}=_f(),{registerWalker:r}=na(),s=xf(),a=Pf(),n=["annotation","attr","blur","brightness","calc","character-variant","circle","contrast","cubic-bezier","dir","drop-shadow","element","ellipse","grayscale","hsl","hsla","hue-rotate","image","inset","invert","lang","linear-gradient","matrix","matrix3d","minmax","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","opacity","ornaments","perspective","polygon","radial-gradient","rect","repeat","repeating-linear-gradient","repeating-radial-gradient","rgb","rgba","rotate","rotatex","rotatey","rotatez","rotate3d","saturate","scale","scalex","scaley","scalez","scale3d","sepia","skew","skewx","skewy","steps","styleset","stylistic","swash","symbols","translate","translatex","translatey","translatez","translate3d","url","var"],p=["-webkit-","-moz-","-ms-","-o-"],o=new RegExp(`^(${p.join("|")})?(${n.join("|")})`,"i"),d=new RegExp(`^(\\${a.chars.join("|\\")})`),g=/^(hsla?|hwb|lab|lch|rgba?)$/i,f=/^var$/i,l=/^--[^\s]+$/,b=class kf extends s{constructor(m={}){super(m),this.type="func",this.isColor=!1,this.isVar=!1,this.name=m.name||"",this.nodes||(this.nodes=[]);}static test(m){return m.length>1&&m[0][0]==="word"&&!d.test(m[0][1])&&(m[1][0]==="brackets"||m[1][0]==="(")}static fromTokens(m,E){let[[,,c,u]]=m,[y,P]=m.splice(0,2),w=new kf({name:y[1]}),F=0,B=1,G=P;if(!o.test(w.name)&&!/^[a-zA-Z\-\.]+$/.test(w.name)){let Pt=i(w.name);m.unshift(...Pt,P),E.back(m);return}E.init(w,c,u),E.current=w,P[0]==="brackets"&&(B=P[1].match(/[(]/g).length-1);let it=[];for(let Pt of m)F{var{registerWalker:i}=na(),r=xf(),s=class Ef extends r{constructor(n={}){super(n),this.type="interpolation",this.prefix=n.prefix||"",this.nodes||(this.nodes=[]);}static test(n,p){let{prefix:o}=p.options.interpolation,[d,g]=n;return n.length>1&&d[0]==="word"&&o===d[1]&&g[0]==="{"}static fromTokens(n,p){let[[,,o,d]]=n,[g]=n.splice(0,2),[,f]=g,l=new Ef({prefix:f}),b=[],v=!1,m,E="{";p.init(l,o,d),p.current=l;for(let u of n)v?b.push(u):(u[1]==="}"&&(v=!0),E+=u[1],m=u);v||p.unclosedBracket(g),l.params=E;let c=E.slice(1,-1);if(c.length){let{parse:u}=Xh(),{nodes:y}=u(c,p.options);for(let P of y)l.push(P);}p.end(m),p.back(b);}};i(s),e.exports=s;}),Qm=ue((t,e)=>{var{registerWalker:i}=na(),r=nn(),s=/^([+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)$/,a=/^(-?(?:[-A-Z_a-z]|[^\x00-\x7F]|\\[^\n\f\r])(?:[-\w]|[^\x00-\x7F]|\\[^\n\f\r])*|%)$/,n=new RegExp(`^${s.source.slice(1,-1)+a.source.slice(1,-1)}?$`),p=class Af extends r{constructor(d={}){super(d),this.type="numeric",this.unit=d.unit||"";}static fromTokens(d,g){g.fromFirst(d,Af);let[[,f]]=d,[,l,b=""]=f.match(n),{lastNode:v}=g;v.unit=b,v.value=l;}static test(d){return n.test(d)}};i(p),e.exports=p;}),t0=ue((t,e)=>{var{registerWalker:i}=na(),r=nn(),s=["+","-","/","*","%","=","<=",">=","<",">"],a=new RegExp("([/|*}])"),n=/^[*/]\b/,p=class Cf extends r{constructor(d){super(d),this.type="operator";}static get chars(){return s}static fromTokens(d,g){g.fromFirst(d,Cf);}static get regex(){return a}static test(d,g){let[f]=d,[,l]=f,{lastNode:b}=g;return b&&b.type==="func"&&n.test(l)}static tokenize(d,g){let[f,...l]=d,[,b,v,,m,E]=f,c=b.split(a).filter(P=>!!P),[,,,u]=f,y=c.map(P=>{let w=["word",P,v,u,m,E];return u+=P.length,w});g.back(y.concat(l));}};i(p),e.exports=p;}),e0=ue(t=>{var e=t.single=function(r){return "'"+r.replace(/\\|'/g,function(s){return "\\"+s})+"'"},i=t.double=function(r){return '"'+r.replace(/\\|"/g,function(s){return "\\"+s})+'"'};t.quote=function(r){return /'/.test(r)?i(r):e(r)},t.unquote=function(r){var s=r[0],a=s==="'";return r.substring(1,r.length-1).replace(/\\\\/g,"\\").replace(a?/\\'/g:/\\"/g,s)};}),i0=ue((t,e)=>{var{unquote:i}=e0(),{registerWalker:r}=na(),s=nn(),a=class wf extends s{constructor(p){super(p),this.type="quoted",p&&p.value&&(this.contents=i(p.value),[this.quote]=p.value);}static fromTokens(p,o){o.fromFirst(p,wf);}};r(a),e.exports=a;}),r0=ue((t,e)=>{var{registerWalker:i}=na(),r=nn(),s=class Tf extends r{constructor(n){super(n),this.type="unicodeRange";}static fromTokens(n,p){p.fromFirst(n,Tf);}static test(n){return /U\+(\d|\w)+(-\w+)?(\?+)?/.test(n)}};i(s),e.exports=s;}),s0=ue((t,e)=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};}),a0=ue((t,e)=>{e.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");try{return new URL(i),!0}catch{return !1}};}),n0=ue((t,e)=>{var i=s0(),r=a0(),{registerWalker:s}=na(),a=nn(),n=/^\\(.+)/,p=/^#(.+)/,o=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,d=Object.keys(i),g=class an extends a{constructor(l){super(l),this.type="word",this.isColor=!1,this.isHex=!1,this.isUrl=!1,this.isVariable=!1;}static fromTokens(l,b){b.fromFirst(l,an);let{lastNode:v}=b,{value:m}=v;v.isColor=o.test(m)||d.includes(m.toLowerCase()),v.isHex=p.test(m),v.isUrl=m.startsWith("//")?r(`http:${m}`):r(m),v.isVariable=an.testVariable(l[0],b);}static testEscaped(l){let[b,v]=l,[m,E]=b;return m==="word"&&(n.test(E)||E==="\\"&&v&&!/^\s+$/.test(v[1]))}static testHex(l){let[b,v]=l;return b==="word"&&p.test(v)}static testVariable(l,b){let[v,m]=l,{prefixes:E}=b.options.variables,c=new RegExp(`^(${E.join("|")})`);return v==="word"&&c.test(m)}static testWord(l,b){let[v]=l;return an.testEscaped(l)||an.testHex(v)||an.testVariable(v,b)}};s(g),e.exports=g;}),o0=ue((t,e)=>{var i=Jm(),r=Xm(),s=Ym(),a=Zm(),n=Km(),p=Qm(),o=t0(),d=Pf(),g=i0(),f=r0(),l=n0(),b={ignoreUnknownWords:!1,interpolation:!1,parentNode:null,variables:{prefixes:["--"]}};e.exports=class extends i{constructor(v,m={}){super(v),this.lastNode=null,this.options=Object.assign({},b,m),this.parentNode=this.options.parentNode;}back(v){for(let m of v.reverse())this.tokenizer.back(m);}comment(v){super.comment(v);let m=s.testInline(v),E=this.lastNode;E.inline=m,Object.setPrototypeOf(E,s.prototype);}fromFirst(v,m){let[E]=v,[,c,u,y]=E,P=new m({value:c});this.init(P,u,y),this.current=P,this.end(E),this.back(v.slice(1));}init(v,m,E){super.init(v,m,E),this.lastNode=v;}other(v){let m=[],E=[],c=v,u=null,y=null;for(;c;)[u]=c,E.push(c),u==="("||u==="["?(y||(y=c),m.push(u==="("?")":"]")):u===m[m.length-1]&&(m.pop(),m.length===0&&(y=null)),c=this.tokenizer.nextToken();m.length>0&&this.unclosedBracket(y),this.unknownWord(E);}parse(){let v;for(;!this.tokenizer.endOfFile();)switch(v=this.tokenizer.nextToken(),v[0]){case"space":this.spaces+=v[1];break;case"comment":this.comment(v);break;case"at-word":this.atrule(v),Object.setPrototypeOf(this.lastNode,r.prototype),this.lastNode.type="atword";break;default:this.other(v);break}this.endFile();}unknownWord(v){let[m]=v,[E,c]=m;if(d.chars.includes(E))d.fromTokens(v,this);else if(E==="word"&&o.test(v,this))o.fromTokens(v,this);else if(a.test(v))a.fromTokens(v,this);else if(this.options.interpolation&&n.test(v,this))n.fromTokens(v,this);else if(E==="brackets")d.tokenizeBrackets(v,this);else if(E==="comma")d.fromTokens(v,this);else if(E==="operator")o.fromTokens(v,this);else if(E==="string")g.fromTokens(v,this);else if(E==="word")if(c===",")d.fromTokens(v,this);else if(c==="//")s.tokenizeNext(v,this);else if(s.testInline(m)){let{parentNode:u}=this;u&&u.type==="func"&&u.name==="url"?l.fromTokens(v,this):s.tokenizeInline(v,this);}else c.includes(",")?d.tokenizeCommas(v,this):l.testWord(v,this)?l.fromTokens(v,this):p.test(c)?p.fromTokens(v,this):f.test(c)?f.fromTokens(v,this):o.chars.includes(c)?o.fromTokens(v,this):/^[\w-]+$/.test(c)?l.fromTokens(v,this):o.regex.test(c)?o.tokenize(v,this):this.options.ignoreUnknownWords?l.fromTokens(v,this):super.unknownWord(v);else super.unknownWord(v);}};}),Xh=ue((t,e)=>{var i=df(),r=o0(),{stringify:s}=Bn();e.exports={parse(a,n){let p=new i(a,n),o=new r(p,n);o.parse();let{root:d}=o,g=d.toString;function f(l){return g.bind(d)(l||e.exports.stringify)}return d.toString=f.bind(d),o.root},stringify:s,nodeToString(a){let n="";return e.exports.stringify(a,p=>{n+=p;}),n}};}),h0=ue(t=>{var e=e||{};e.stringify=function(){var i={"visit_linear-gradient":function(r){return i.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return i.visit_gradient(r)},"visit_radial-gradient":function(r){return i.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return i.visit_gradient(r)},visit_gradient:function(r){var s=i.visit(r.orientation);return s&&(s+=", "),r.type+"("+s+i.visit(r.colorStops)+")"},visit_shape:function(r){var s=r.value,a=i.visit(r.at),n=i.visit(r.style);return n&&(s+=" "+n),a&&(s+=" at "+a),s},"visit_default-radial":function(r){var s="",a=i.visit(r.at);return a&&(s+=a),s},"visit_extent-keyword":function(r){var s=r.value,a=i.visit(r.at);return a&&(s+=" at "+a),s},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return i.visit(r.value.x)+" "+i.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return i.visit_color(r.value,r)},visit_hex:function(r){return i.visit_color("#"+r.value,r)},visit_rgb:function(r){return i.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return i.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,s){var a=r,n=i.visit(s.length);return n&&(a+=" "+n),a},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return "to "+r.value},visit_array:function(r){var s="",a=r.length;return r.forEach(function(n,p){s+=i.visit(n),p0&&s("Invalid input not EOF"),L}function n(){return w(p)}function p(){return o("linear-gradient",i.linearGradient,g)||o("repeating-linear-gradient",i.repeatingLinearGradient,g)||o("radial-gradient",i.radialGradient,b)||o("repeating-radial-gradient",i.repeatingRadialGradient,b)}function o(L,K,U){return d(K,function(Ht){var It=U();return It&&(O(i.comma)||s("Missing comma before color stops")),{type:L,orientation:It,colorStops:w(F)}})}function d(L,K){var U=O(L);if(U){O(i.startCall)||s("Missing (");var Ht=K(U);return O(i.endCall)||s("Missing )"),Ht}}function g(){return f()||l()}function f(){return D("directional",i.sideOrCorner,1)}function l(){return D("angular",i.angleValue,1)}function b(){var L,K=v(),U;return K&&(L=[],L.push(K),U=r,O(i.comma)&&(K=v(),K?L.push(K):r=U)),L}function v(){var L=m()||E();if(L)L.at=u();else {var K=c();if(K){L=K;var U=u();U&&(L.at=U);}else {var Ht=y();Ht&&(L={type:"default-radial",at:Ht});}}return L}function m(){var L=D("shape",/^(circle)/i,0);return L&&(L.style=vt()||c()),L}function E(){var L=D("shape",/^(ellipse)/i,0);return L&&(L.style=Pt()||c()),L}function c(){return D("extent-keyword",i.extentKeywords,1)}function u(){if(D("position",/^at/,0)){var L=y();return L||s("Missing positioning value"),L}}function y(){var L=P();if(L.x||L.y)return {type:"position",value:L}}function P(){return {x:Pt(),y:Pt()}}function w(L){var K=L(),U=[];if(K)for(U.push(K);O(i.comma);)K=L(),K?U.push(K):s("One extra comma");return U}function F(){var L=B();return L||s("Expected color definition"),L.length=Pt(),L}function B(){return it()||ct()||ft()||G()}function G(){return D("literal",i.literalColor,0)}function it(){return D("hex",i.hexColor,1)}function ft(){return d(i.rgbColor,function(){return {type:"rgb",value:w(dt)}})}function ct(){return d(i.rgbaColor,function(){return {type:"rgba",value:w(dt)}})}function dt(){return O(i.number)[1]}function Pt(){return D("%",i.percentageValue,1)||tt()||vt()}function tt(){return D("position-keyword",i.positionKeywords,1)}function vt(){return D("px",i.pixelValue,1)||D("em",i.emValue,1)}function D(L,K,U){var Ht=O(K);if(Ht)return {type:L,value:Ht[U]}}function O(L){var K,U;return U=/^[\n\r\t\s]+/.exec(r),U&&k(U[0].length),K=L.exec(r),K&&k(K[0].length),K}function k(L){r=r.substr(L);}return function(L){return r=L.toString(),a()}}(),t.parse=e.parse,t.stringify=e.stringify;}),Bi=as(Gm(),1);Bi.default.stringify;Bi.default.fromJSON;Bi.default.plugin;l0=Bi.default.parse;Bi.default.list;Bi.default.document;Bi.default.comment;Bi.default.atRule;Bi.default.rule;Bi.default.decl;Bi.default.root;Bi.default.CssSyntaxError;Bi.default.Declaration;Bi.default.Container;Bi.default.Processor;Bi.default.Document;Bi.default.Comment;Bi.default.Warning;Bi.default.AtRule;Bi.default.Result;Bi.default.Input;Bi.default.Rule;Bi.default.Root;Bi.default.Node;Dh=function(t,e,i){let r={type:String(t)};return i==null&&(typeof e=="string"||Array.isArray(e))?i=e:Object.assign(r,e),Array.isArray(i)?r.children=i:i!=null&&(r.value=String(i)),r},p0="root",f0="rule",c0="declaration";d0={grad:.9,turn:360,rad:360/(2*Math.PI)},aa=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},ur=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},bs=function(t,e,i){return e===void 0&&(e=0),i===void 0&&(i=1),t>i?i:t>e?t:e},Mf=function(t){return (t=isFinite(t)?t%360:0)>0?t:t+360},Np=function(t){return {r:bs(t.r,0,255),g:bs(t.g,0,255),b:bs(t.b,0,255),a:bs(t.a)}},Fh=function(t){return {r:ur(t.r),g:ur(t.g),b:ur(t.b),a:ur(t.a,3)}},m0=/^#([0-9a-f]{3,8})$/i,vo=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Df=function(t){var e=t.r,i=t.g,r=t.b,s=t.a,a=Math.max(e,i,r),n=a-Math.min(e,i,r),p=n?a===e?(i-r)/n:a===i?2+(r-e)/n:4+(e-i)/n:0;return {h:60*(p<0?p+6:p),s:a?n/a*100:0,v:a/255*100,a:s}},Ff=function(t){var e=t.h,i=t.s,r=t.v,s=t.a;e=e/360*6,i/=100,r/=100;var a=Math.floor(e),n=r*(1-i),p=r*(1-(e-a)*i),o=r*(1-(1-e+a)*i),d=a%6;return {r:255*[r,p,n,n,o,r][d],g:255*[o,r,r,p,n,n][d],b:255*[n,n,o,r,r,p][d],a:s}},Gp=function(t){return {h:Mf(t.h),s:bs(t.s,0,100),l:bs(t.l,0,100),a:bs(t.a)}},jp=function(t){return {h:ur(t.h),s:ur(t.s),l:ur(t.l),a:ur(t.a,3)}},Hp=function(t){return Ff((i=(e=t).s,{h:e.h,s:(i*=((r=e.l)<50?r:100-r)/100)>0?2*i/(r+i)*100:0,v:r+i,a:e.a}));var e,i,r;},Dn=function(t){return {h:(e=Df(t)).h,s:(s=(200-(i=e.s))*(r=e.v)/100)>0&&s<200?i*r/100/(s<=100?s:200-s)*100:0,l:s/2,a:e.a};var e,i,r,s;},y0=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,g0=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v0=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b0=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rh={string:[[function(t){var e=m0.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?ur(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?ur(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=v0.exec(t)||b0.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Np({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=y0.exec(t)||g0.exec(t);if(!e)return null;var i,r,s=Gp({h:(i=e[1],r=e[2],r===void 0&&(r="deg"),Number(i)*(d0[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Hp(s)},"hsl"]],object:[[function(t){var e=t.r,i=t.g,r=t.b,s=t.a,a=s===void 0?1:s;return aa(e)&&aa(i)&&aa(r)?Np({r:Number(e),g:Number(i),b:Number(r),a:Number(a)}):null},"rgb"],[function(t){var e=t.h,i=t.s,r=t.l,s=t.a,a=s===void 0?1:s;if(!aa(e)||!aa(i)||!aa(r))return null;var n=Gp({h:Number(e),s:Number(i),l:Number(r),a:Number(a)});return Hp(n)},"hsl"],[function(t){var e=t.h,i=t.s,r=t.v,s=t.a,a=s===void 0?1:s;if(!aa(e)||!aa(i)||!aa(r))return null;var n=function(p){return {h:Mf(p.h),s:bs(p.s,0,100),v:bs(p.v,0,100),a:bs(p.a)}}({h:Number(e),s:Number(i),v:Number(r),a:Number(a)});return Ff(n)},"hsv"]]},qp=function(t,e){for(var i=0;i=.5},t.prototype.toHex=function(){return e=Fh(this.rgba),i=e.r,r=e.g,s=e.b,n=(a=e.a)<1?vo(ur(255*a)):"","#"+vo(i)+vo(r)+vo(s)+n;var e,i,r,s,a,n;},t.prototype.toRgb=function(){return Fh(this.rgba)},t.prototype.toRgbString=function(){return e=Fh(this.rgba),i=e.r,r=e.g,s=e.b,(a=e.a)<1?"rgba("+i+", "+r+", "+s+", "+a+")":"rgb("+i+", "+r+", "+s+")";var e,i,r,s,a;},t.prototype.toHsl=function(){return jp(Dn(this.rgba))},t.prototype.toHslString=function(){return e=jp(Dn(this.rgba)),i=e.h,r=e.s,s=e.l,(a=e.a)<1?"hsla("+i+", "+r+"%, "+s+"%, "+a+")":"hsl("+i+", "+r+"%, "+s+"%)";var e,i,r,s,a;},t.prototype.toHsv=function(){return e=Df(this.rgba),{h:ur(e.h),s:ur(e.s),v:ur(e.v),a:ur(e.a,3)};var e;},t.prototype.invert=function(){return Xr({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e;},t.prototype.saturate=function(e){return e===void 0&&(e=.1),Xr(Ih(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),Xr(Ih(this.rgba,-e))},t.prototype.grayscale=function(){return Xr(Ih(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),Xr($p(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),Xr($p(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?Xr({r:(i=this.rgba).r,g:i.g,b:i.b,a:e}):ur(this.rgba.a,3);var i;},t.prototype.hue=function(e){var i=Dn(this.rgba);return typeof e=="number"?Xr({h:e,s:i.s,l:i.l,a:i.a}):ur(i.h)},t.prototype.isEqual=function(e){return this.toHex()===Xr(e).toHex()},t}(),Xr=function(t){return t instanceof Oh?t:new Oh(t)},Wp=[],If=function(t){t.forEach(function(e){Wp.indexOf(e)<0&&(e(Oh,Rh),Wp.push(e));});};_o={attribute:/\[\s*(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)\s*(?:(?\W?=)\s*(?.+?)\s*(\s(?[iIsS]))?\s*)?\]/gu,id:/#(?[-\w\P{ASCII}]+)/gu,class:/\.(?[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s>+~]\s*/g,"pseudo-element":/::(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,"pseudo-class":/:(?[-\w\P{ASCII}]+)(?:\((?¶*)\))?/gu,universal:/(?:(?\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)/gu},x0=new Set(["combinator","comma"]),P0=new Set(["not","is","where","has","matches","-moz-any","-webkit-any","nth-child","nth-last-child"]),Up=/(?[\dn+-]+)\s+of\s+(?.+)/,S0={"nth-child":Up,"nth-last-child":Up},k0=t=>{switch(t){case"pseudo-element":case"pseudo-class":return new RegExp(_o[t].source.replace("(?\xB6*)","(?.*)"),"gu");default:return _o[t]}};C0=/(['"])([^\\\n]+?)\1/g,w0=/\\./g;D0=as(Xh(),1),Rf=function(t){if(t==null)return V0;if(typeof t=="string")return L0(t);if(typeof t=="object")return Array.isArray(t)?F0(t):I0(t);if(typeof t=="function")return Co(t);throw new Error("Expected function, string, or object as test")};Bh=!0,xo=!1,R0="skip",O0=function(t,e,i,r){typeof e=="function"&&typeof i!="function"&&(r=i,i=e,e=null);let s=Rf(e),a=r?-1:1;n(t,void 0,[])();function n(p,o,d){let g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){let l=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(p.type+(l?"<"+l+">":""))+")"});}return f;function f(){let l=[],b,v,m;if((!e||s(p,o,d[d.length-1]||null))&&(l=B0(i(p,d)),l[0]===xo))return l;if(p.children&&l[0]!==R0)for(v=(r?p.children.length:-1)+a,m=d.concat(p);v>-1&&v{try{if(!t.startsWith("linear-gradient"))return !1;let e=(0,Yh.parse)(t);if(e.length===0)return !1;let i=e[0];return (i==null?void 0:i.type)==="linear-gradient"}catch{return !1}},Bf=t=>{try{if(!t.startsWith("radial-gradient"))return !1;let e=(0,Yh.parse)(t);if(e.length===0)return !1;let i=e[0];return (i==null?void 0:i.type)==="radial-gradient"}catch{return !1}},Jp=t=>{let e=[],i=[];if(!(Of(t)||Bf(t)))return [];let r=(0, Yh.parse)(t)[0];return r==null||r.colorStops.forEach((s,a)=>{var n;let p=[],o=0;if(s.type==="hex"||s.type==="literal"){let g=Xr(s.value);p.push(parseFloat((g.rgba.r/255).toFixed(2)),parseFloat((g.rgba.g/255).toFixed(2)),parseFloat((g.rgba.b/255).toFixed(2))),o=g.rgba.a;}else if(["rgb","rgba"].includes(s.type)){let g=Xr({r:Number(s.value[0]),g:Number(s.value[1]),b:Number(s.value[2]),a:s.value[3]?Number(s.value[3]):1});p.push(parseFloat((g.rgba.r/255).toFixed(2)),parseFloat((g.rgba.g/255).toFixed(2)),parseFloat((g.rgba.b/255).toFixed(2))),o=g.rgba.a;}let d=parseFloat((a/(r.colorStops.length-1||1)).toFixed(2));(n=s.length)!=null&&n.value&&Number(s.length.value)>0&&(d=parseFloat((Number(s.length.value)/100).toFixed(2))),e.push(d,...p),i.push(d,o);}),e.push(...i),e},Xp=(t,e,i)=>{if(!["shape-gradient-fill","shape-gradient-stroke"].includes(t.title))return;let r=e.length/6;Nr(t,"attribute",s=>{s.title==="gradient-type"&&s.children[0]?s.children[0].value=i==="linear"?1:2:s.title==="count"&&s.children[0]&&(s.children[0].value=r);}),Nr(t,"collection",s=>{if(s.title==="static-values"&&typeof s.key=="object"&&s.key.value==="k"&&s.children[0]){let a=s.children[0];a.children=e.map(n=>({type:"primitive",valueType:"number",value:n}));}});};If([Lf]);bo=(t,e,i,r=!1)=>{let s=new Set,a=Array.isArray(t)?t:[t];for(let n of a)Nr(n,"attribute",(p,o,d)=>{var g;p.title===i&&((g=p.children[0])==null?void 0:g.value)===e&&d&&d.type!=="root"&&(r?d===n&&s.add(d):s.add(d));});return Array.from(s)},z0=(t,e)=>{let i=[];for(let r of e){let s=[],a=Vf(r);M0(a,(n,p)=>{let o=s.length>0?s:t;if(n.type==="id")s=bo(o,n.name,"layer-xml-id",(p==null?void 0:p.type)==="compound");else if(n.type==="class")s=bo(o,n.name,"css-class",(p==null?void 0:p.type)==="compound");else if(n.type==="type"){let d="",g=null;n.name==="FillShape"?(g="shape-type",d="fl"):n.name==="StrokeShape"?(g="shape-type",d="st"):n.name==="GradientFillShape"?(g="shape-type",d="gf"):n.name==="GradientStrokeShape"?(g="shape-type",d="gs"):n.name==="ShapeLayer"?(g="layer-type",d=4):n.name==="SolidColorLayer"?(g="layer-type",d=1):n.name==="ImageLayer"&&(g="layer-type",d=2),g&&d&&(s=bo(o,d,g));}else if(n.type==="attribute"){let d=null,g=n.value;n.name==="id"?d="layer-xml-id":n.name==="class"?d="css-class":n.name==="name"?d="name":n.name==="shape-type"?d="shape-type":n.name==="layer-type"&&(d="layer-type",g=Number(n.value)),d&&g&&["number","string"].includes(typeof g)&&(s=bo(o,g,d,(p==null?void 0:p.type)==="compound"));}}),i.push(...s);}return Array.from(new Set(i))},Vh=t=>t.includes("-color"),N0=t=>t==="nonzero"||t==="evenodd",G0=t=>t.endsWith("%")?parseFloat(t):parseFloat(t)*100,j0=t=>t==="nonzero"?1:2,H0=t=>{try{new URL(t);}catch{return !1}return !0},q0=t=>{let e=(0, D0.parse)(t).nodes;if(e.length===1){let i=e[0];if(i&&i.type==="func"&&i.name==="url"){let r=i.nodes;if(r.length===1){let s=r[0];if(s&&s.type==="quoted")return s.contents}}}return ""},$0=t=>{let e={};for(let i of t)if(Vh(i.property)&&Xr(i.value).isValid()){let r=Xr(i.value).rgba,s=[r.r/255,r.g/255,r.b/255,r.a];switch(i.property){case"fill-color":e["fill-color"]=s;break;case"stroke-color":e["stroke-color"]=s;break}}else if(Vh(i.property)&&Of(i.value)){let r=Jp(i.value);switch(i.property){case"fill-color":e["linear-gradient-fill-color"]=r;break;case"stroke-color":e["linear-gradient-stroke-color"]=r;break}}else if(Vh(i.property)&&Bf(i.value)){let r=Jp(i.value);switch(i.property){case"fill-color":e["radial-gradient-fill-color"]=r;break;case"stroke-color":e["radial-gradient-stroke-color"]=r;break}}else if(i.property==="stroke-width")e["stroke-width"]=Number(i.value);else if(i.property==="fill-rule"&&N0(i.value))e["fill-rule"]=j0(i.value);else if(i.property==="opacity"){let r=G0(i.value);if(Number.isNaN(r))continue;r<0?e.opacity=0:r>100?e.opacity=100:e.opacity=r;}else if(i.property==="visibility")e.hidden=i.value==="hidden";else if(i.property==="src"){let r=q0(i.value);H0(r)&&(e.src=r);}return e},W0=(t,e,i)=>{var r;for(let s in e)switch(s){case"fill-color":let a=e[s];t.title==="shape-fill"?Array.isArray(a)&&Nr(t,"array",n=>n.title==="color-rgba-children"&&n.children.length===4?(n.children=n.children.map((p,o)=>({...p,value:a[o]})),xo):Bh):t.title==="layer-solid-color"&&Nr(t,"attribute",n=>{var p;if(n.title==="hex-color"&&(p=n.children[0])!=null&&p.value&&(a==null?void 0:a.length)===4){let o=Xr({r:a[0]*255,g:a[1]*255,b:a[2]*255,a:a[3]}).toHex();n.children[0].value=o;}});break;case"stroke-color":if(t.title==="shape-stroke"){let n=e[s];Array.isArray(n)&&Nr(t,"array",p=>p.title==="static-values-children"&&p.children.length===4?(p.children=p.children.map((o,d)=>({...o,value:n[d]})),xo):Bh);}break;case"stroke-width":(t.title==="shape-stroke"||t.title==="shape-gradient-stroke")&&Nr(t,"element",n=>{n.title==="stroke-width"&&Nr(n,"attribute",(p,o,d)=>{var g;p.title==="static-value"&&(g=p.children[0])!=null&&g.value&&p.children[0].valueType==="number"&&(d==null?void 0:d.title)==="animated-value-static"&&(p.children[0].value=e[s]);});});break;case"fill-rule":["shape-fill","shape-gradient-fill"].includes(t.title)&&Nr(t,"attribute",n=>{var p;n.title==="fill-rule-value"&&(p=n.children[0])!=null&&p.value&&(n.children[0].value=e[s]);});break;case"opacity":["shape-stroke","shape-fill","shape-gradient-fill","shape-gradient-stroke"].includes(t.title)&&Nr(t,"element",n=>{["stroke-opacity","opacity"].includes(n.title)&&Nr(n,"attribute",(p,o,d)=>{var g;p.title==="static-value"&&(g=p.children[0])!=null&&g.value&&p.children[0].valueType==="number"&&(d==null?void 0:d.title)==="animated-value-static"&&(p.children[0].value=e[s]);});});break;case"hidden":(t.title.includes("shape")||t.title.includes("layer"))&&Nr(t,"attribute",n=>{n.title==="hidden"&&n.children[0]&&(n.children[0].value=e[s]);});break;case"linear-gradient-fill-color":case"linear-gradient-stroke-color":Xp(t,e[s],"linear");break;case"radial-gradient-fill-color":case"radial-gradient-stroke-color":Xp(t,e[s],"radial");break;case"src":if(t.title==="layer-image"){let n=t.children.find(p=>p.title==="image-id");if((n==null?void 0:n.type)==="attribute"){let p=(r=n.children[0])==null?void 0:r.value;Nr(i,"object",o=>{o.title==="asset-image"&&o.children.some(d=>{var g;return d.title==="id"&&((g=d.children[0])==null?void 0:g.type)==="primitive"&&d.children[0].value===p})&&Nr(o,"attribute",d=>{d.title==="embedded"&&d.children[0]?d.children[0].value=0:d.title==="path"&&d.children[0]?d.children[0].value="":d.title==="filename"&&d.children[0]&&(d.children[0].value=e[s]);});});}}break}},U0=(t={lss:""})=>async e=>{let i=u0(t.lss);Nr(i,"rule",r=>{let s=z0(e,r.selectors),a=$0(r.children);for(let n of s)W0(n,a,e);});},J0=U0;});async function Gf(t,e){let[{relottie:i},{default:r}]=await Promise.all([Promise.resolve().then(()=>(zp(),Bp)),Promise.resolve().then(()=>(Nf(),zf))]),s=await i().use(r,{lss:e}).process(JSON.stringify(t));return JSON.parse(s.value)}var wo=cr(()=>{});function Mo(){throw new Error("Cycle detected")}function Kh(){if(on>1)on--;else {for(var t,e=!1;zn!==void 0;){var i=zn;for(zn=void 0,Zh++;i!==void 0;){var r=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&Hf(i))try{i.c();}catch(s){e||(t=s,e=!0);}i=r;}}if(Zh=0,on--,e)throw t}}function jf(t){if(Wi!==void 0){var e=t.n;if(e===void 0||e.t!==Wi)return e={i:0,S:t,p:Wi.s,n:void 0,t:Wi,e:void 0,x:void 0,r:e},Wi.s!==void 0&&(Wi.s.n=e),Wi.s=e,t.n=e,32&Wi.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=Wi.s,e.n=void 0,Wi.s.n=e,Wi.s=e),e}}function Yr(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0;}function X0(t){return new Yr(t)}function Hf(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return !0;return !1}function qf(t){for(var e=t.s;e!==void 0;e=e.n){var i=e.S.n;if(i!==void 0&&(e.r=i),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function $f(t){for(var e=t.s,i=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):i=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r;}t.s=i;}function Wa(t){Yr.call(this,void 0),this.x=t,this.s=void 0,this.g=To-1,this.f=4;}function Wf(t){var e=t.u;if(t.u=void 0,typeof e=="function"){on++;var i=Wi;Wi=void 0;try{e();}catch(r){throw t.f&=-2,t.f|=8,Qh(t),r}finally{Wi=i,Kh();}}}function Qh(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Wf(t);}function Y0(t){if(Wi!==this)throw new Error("Out-of-order effect");$f(this),Wi=t,this.f&=-2,8&this.f&&Qh(this),Kh();}function Nn(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32;}function Z0(t){var e=new Nn(t);try{e.c();}catch(i){throw e.d(),i}return e.d.bind(e)}var Wi,zn,on,Zh,To,Uf,Do=cr(()=>{Wi=void 0,zn=void 0,on=0,Zh=0,To=0;Yr.prototype.h=function(){return !0};Yr.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t);};Yr.prototype.U=function(t){if(this.t!==void 0){var e=t.e,i=t.x;e!==void 0&&(e.x=i,t.e=void 0),i!==void 0&&(i.e=e,t.x=void 0),t===this.t&&(this.t=i);}};Yr.prototype.subscribe=function(t){var e=this;return Z0(function(){var i=e.value,r=32&this.f;this.f&=-33;try{t(i);}finally{this.f|=r;}})};Yr.prototype.valueOf=function(){return this.value};Yr.prototype.toString=function(){return this.value+""};Yr.prototype.toJSON=function(){return this.value};Yr.prototype.peek=function(){return this.v};Object.defineProperty(Yr.prototype,"value",{get:function(){var t=jf(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(Wi instanceof Wa&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Zh>100&&Mo(),this.v=t,this.i++,To++,on++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N();}finally{Kh();}}}});(Wa.prototype=new Yr).h=function(){if(this.f&=-3,1&this.f)return !1;if((36&this.f)==32||(this.f&=-5,this.g===To))return !0;if(this.g=To,this.f|=1,this.i>0&&!Hf(this))return this.f&=-2,!0;var t=Wi;try{qf(this),Wi=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++);}catch(i){this.v=i,this.f|=16,this.i++;}return Wi=t,$f(this),this.f&=-2,!0};Wa.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e);}Yr.prototype.S.call(this,t);};Wa.prototype.U=function(t){if(this.t!==void 0&&(Yr.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e);}};Wa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N();}};Wa.prototype.peek=function(){if(this.h()||Mo(),16&this.f)throw this.v;return this.v};Object.defineProperty(Wa.prototype,"value",{get:function(){1&this.f&&Mo();var t=jf(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});Nn.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e);}finally{t();}};Nn.prototype.S=function(){1&this.f&&Mo(),this.f|=1,this.f&=-9,Wf(this),qf(this),on++;var t=Wi;return Wi=this,Y0.bind(this,t)};Nn.prototype.N=function(){2&this.f||(this.f|=2,this.o=zn,zn=this);};Nn.prototype.d=function(){this.f|=8,1&this.f||Qh(this);};Uf=class{_state;_prevState;constructor(t){this._prevState=t,this._state=X0(t);}setState(t){this._prevState=this._state.value,this._state.value=t;}subscribe(t){return this._state.subscribe(e=>t(e,this._prevState))}};});var bc={};Ts(bc,{DotLottieStateMachineManager:()=>Uy});function pl(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ci(t,e){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var r=i.call(t),s,a=[],n;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)a.push(s.value);}catch(p){n={error:p};}finally{try{s&&!s.done&&(i=r.return)&&i.call(r);}finally{if(n)throw n.error}}return a}function Fi(t,e,i){if(i||arguments.length===2)for(var r=0,s=e.length,a;r"u"||typeof r=="string"||mn(r)?{target:r,event:t}:ke(ke({},r),{event:t})});return i}function dy(t){if(!(t===void 0||t===ry))return Is(t)}function pc(t,e,i,r,s){var a=t.options.guards,n={state:s,cond:e,_event:r};if(e.type===sl)return ((a==null?void 0:a[e.name])||e.predicate)(i,r.data,n);var p=a==null?void 0:a[e.type];if(!p)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return p(i,r.data,n)}function fc(t){return typeof t=="string"?{type:t}:t}function Bo(t,e,i){var r=function(){},s=typeof t=="object",a=s?t:null;return {next:((s?t.next:t)||r).bind(a),error:((s?t.error:e)||r).bind(a),complete:((s?t.complete:i)||r).bind(a)}}function Io(t,e){return "".concat(t,":invocation[").concat(e,"]")}function nl(t){return (t.type===Xn||t.type===$o&&t.to===dn.Internal)&&typeof t.delay!="number"}function ol(t,e){return e&&e[t]||void 0}function Un(t,e){var i;if(gi(t)||typeof t=="number"){var r=ol(t,e);di(r)?i={type:t,exec:r}:r?i=r:i={type:t,exec:void 0};}else if(di(t))i={type:t.name||t.toString(),exec:t};else {var r=ol(t.type,e);if(di(r))i=ke(ke({},t),{exec:r});else if(r){var s=r.type||t.type;i=ke(ke(ke({},r),t),{type:s});}else i=t;}return i}function ul(t){var e=Un(t);return ke(ke({id:gi(t)?t:e.id},e),{type:e.type})}function my(t,e){return {type:Xn,event:typeof t=="function"?t:Wo(t),delay:e?e.delay:void 0,id:e==null?void 0:e.id}}function yy(t,e,i,r){var s={_event:i},a=Sr(di(t.event)?t.event(e,i.data,s):t.event),n;if(gi(t.delay)){var p=r&&r[t.delay];n=di(p)?p(e,i.data,s):p;}else n=di(t.delay)?t.delay(e,i.data,s):t.delay;return ke(ke({},t),{type:Xn,_event:a,delay:n})}function gy(t,e){return {to:e?e.to:void 0,type:$o,event:di(t)?t:Wo(t),delay:e?e.delay:void 0,id:e&&e.id!==void 0?e.id:di(t)?t.name:nc(t)}}function vy(t,e,i,r){var s={_event:i},a=Sr(di(t.event)?t.event(e,i.data,s):t.event),n;if(gi(t.delay)){var p=r&&r[t.delay];n=di(p)?p(e,i.data,s):p;}else n=di(t.delay)?t.delay(e,i.data,s):t.delay;var o=di(t.to)?t.to(e,i.data,s):t.to;return ke(ke({},t),{to:o,_event:a,event:a.data,delay:n})}function xy(t){var e=ul(t);return {type:ki.Start,activity:e,exec:void 0}}function Py(t){var e=di(t)?t:ul(t);return {type:ki.Stop,activity:e,exec:void 0}}function Sy(t,e,i){var r=di(t.activity)?t.activity(e,i.data):t.activity,s=typeof r=="string"?{id:r}:r,a={type:ki.Stop,activity:s};return a}function ky(t,e){var i=e?"#".concat(e):"";return "".concat(ki.After,"(").concat(t,")").concat(i)}function Lo(t,e){var i="".concat(ki.DoneState,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function zo(t,e){var i="".concat(ki.DoneInvoke,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function Hn(t,e){var i="".concat(ki.ErrorPlatform,".").concat(t),r={type:i,data:e};return r.toString=function(){return i},r}function Ho(t,e,i,r,s,a,n){n===void 0&&(n=!1);var p=n?[]:Ey(s),o=p.length?Kf(i,r,p,e):i,d=n?[i]:void 0,g=[];function f(v,m){var E;switch(m.type){case Xn:{var c=yy(m,o,r,t.options.delays);return a&&typeof c.delay=="number"&&a(c,o,r),c}case $o:var u=vy(m,o,r,t.options.delays);return a&&u.to!==dn.Internal&&(v==="entry"?g.push(u):a(u,o,r)),u;case rc:{var y=by(m,o,r);return a==null||a(y,o,r),y}case ey:{var P=m,w=(E=P.conds.find(function(D){var O=lc(D.cond,t.options.guards);return !O||pc(t,O,o,r,a?void 0:e)}))===null||E===void 0?void 0:E.actions;if(!w)return [];var F=ci(Ho(t,e,o,r,[{type:v,actions:Sa(Is(w),t.options.actions)}],a,n),2),B=F[0],G=F[1];return o=G,d==null||d.push(o),B}case iy:{var w=m.get(o,r.data);if(!w)return [];var it=ci(Ho(t,e,o,r,[{type:v,actions:Sa(Is(w),t.options.actions)}],a,n),2),ft=it[0],ct=it[1];return o=ct,d==null||d.push(o),ft}case fl:{var y=Sy(m,o,r);return a==null||a(y,i,r),y}case ic:{o=Kf(o,r,[m],a?void 0:e),d==null||d.push(o);break}default:var dt=Un(m,t.options.actions),Pt=dt.exec;if(a)a(dt,o,r);else if(Pt&&d){var tt=d.length-1,vt=ke(ke({},dt),{exec:function(D){for(var O=[],k=1;k0;){var d=s.shift();i=t.transition(i,d,o),r.forEach(function(g){return g.next(i)});}a=!1;}},p=Ty({id:e.id,send:function(d){s.push(d),n();},getSnapshot:function(){return i},subscribe:function(d,g,f){var l=Bo(d,g,f);return r.add(l),l.next(i),{unsubscribe:function(){r.delete(l);}}}}),o={parent:e.parent,self:p,id:e.id||"anonymous",observers:r};return i=t.start?t.start(o):i,p}function vc(t,e){var i=new Gy(t,e);return i}function jy(t){if(typeof t=="string"){var e={type:t};return e.toString=function(){return t},e}return t}function Vo(t){return ke(ke({type:rl},t),{toJSON:function(){t.onDone,t.onError;var e=pl(t,["onDone","onError"]);return ke(ke({},e),{type:rl,src:jy(t.src)})}})}function $y(t,e){return new qy(t,e)}var ke,ki,dn,il,fl,Xn,$o,ec,K0,ic,rc,Q0,rl,Jf,ty,sc,ey,iy,ac,Xf,sl,ry,Fo,ay,fy,Pa,un,Sa,by,_y,Ey,fn,qo,Us,Vy,tc,tl,Ry,Gn,Ny,dr,Gy,Ro,ll,el,ln,pn,Hy,qy,cn,Wy,Uy,_c=cr(()=>{ml();co();Uo();wo();Do();en();ns();ke=function(){return ke=Object.assign||function(t){for(var e,i=1,r=arguments.length;i0});if(!m)return this.next(i,r);var E=Ni(Object.keys(n).map(function(c){return n[c].configuration}));return {transitions:v,exitSet:Ni(b.map(function(c){return c.exitSet})),configuration:E,source:i,actions:Ni(Object.keys(n).map(function(c){return n[c].actions}))}},t.prototype._transition=function(e,i,r){return gi(e)?this.transitionLeafNode(e,i,r):Object.keys(e).length===1?this.transitionCompoundNode(e,i,r):this.transitionParallelNode(e,i,r)},t.prototype.getTransitionData=function(e,i){return this._transition(e.value,e,Sr(i))},t.prototype.next=function(e,i){var r,s,a=this,n=i.name,p=[],o=[],d;try{for(var g=ii(this.getCandidates(n)),f=g.next();!f.done;f=g.next()){var l=f.value,b=l.cond,v=l.in,m=e.context,E=v?gi(v)&&pn(v)?e.matches(Wn(this.getStateNodeById(v).path,this.delimiter)):cl(Wn(v,this.delimiter),ay(this.path.slice(0,-2))(e.value)):!0,c=!1;try{c=!b||pc(this.machine,b,m,i,e);}catch(P){throw new Error("Unable to evaluate guard '".concat(b.name||b.type,"' in transition for event '").concat(n,"' in state node '").concat(this.id,`':
+`).concat(P.message))}if(c&&E){l.target!==void 0&&(o=l.target),p.push.apply(p,Fi([],ci(l.actions),!1)),d=l;break}}}catch(P){r={error:P};}finally{try{f&&!f.done&&(s=g.return)&&s.call(g);}finally{if(r)throw r.error}}if(d){if(!o.length)return {transitions:[d],exitSet:[],configuration:e.value?[this]:[],source:e,actions:p};var u=Ni(o.map(function(P){return a.getRelativeStateNodes(P,e.historyValue)})),y=!!d.internal;return {transitions:[d],exitSet:y?[]:Ni(o.map(function(P){return a.getPotentiallyReenteringNodes(P)})),configuration:u,source:e,actions:p}}},t.prototype.getPotentiallyReenteringNodes=function(e){if(this.order0,b=l?e.configuration:i?i.configuration:[],v=No(b,this),m=l?My(this.machine,f):void 0,E=i?i.historyValue?i.historyValue:e.source?this.machine.historyValue(i.value):void 0:void 0,c=this.getActions(new Set(b),v,e,r,a,i,s),u=i?ke({},i.activities):{};try{for(var y=ii(c),P=y.next();!P.done;P=y.next()){var w=P.value;try{for(var F=(o=void 0,ii(w.actions)),B=F.next();!B.done;B=F.next()){var G=B.value;G.type===il?u[G.activity.id||G.activity.type]=G:G.type===fl&&(u[G.activity.id||G.activity.type]=!1);}}catch(Gt){o={error:Gt};}finally{try{B&&!B.done&&(d=F.return)&&d.call(F);}finally{if(o)throw o.error}}}}catch(Gt){n={error:Gt};}finally{try{P&&!P.done&&(p=y.return)&&p.call(y);}finally{if(n)throw n.error}}var it=ci(Ho(this,i,r,a,c,s,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),ft=it[0],ct=it[1],dt=ci(ly(ft,nl),2),Pt=dt[0],tt=dt[1],vt=ft.filter(function(Gt){var Ot;return Gt.type===il&&((Ot=Gt.activity)===null||Ot===void 0?void 0:Ot.type)===rl}),D=vt.reduce(function(Gt,Ot){return Gt[Ot.activity.id]=Ay(Ot.activity,g.machine,ct,a),Gt},i?ke({},i.children):{}),O=new Us({value:m||i.value,context:ct,_event:a,_sessionid:i?i._sessionid:null,historyValue:m?E?py(E,m):void 0:i?i.historyValue:void 0,history:!m||e.source?i:void 0,actions:m?tt:[],activities:m?u:i?i.activities:{},events:[],configuration:b,transitions:e.transitions,children:D,done:v,tags:Qf(b),machine:this}),k=r!==ct;O.changed=a.name===sc||k;var L=O.history;L&&delete L.history;var K=!v&&(this._transient||f.some(function(Gt){return Gt._transient}));if(!l&&(!K||a.name===Ro))return O;var U=O;if(!v)for(K&&(U=this.resolveRaisedTransition(U,{type:K0},a,s));Pt.length;){var Ht=Pt.shift();U=this.resolveRaisedTransition(U,Ht._event,a,s);}var It=U.changed||(L?!!U.actions.length||k||typeof L.value!=typeof U.value||!gc(U.value,L.value):void 0);return U.changed=It,U.history=L,U},t.prototype.getStateNode=function(e){if(pn(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var i=this.states[e];if(!i)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return i},t.prototype.getStateNodeById=function(e){var i=pn(e)?e.slice(ll.length):e;if(i===this.id)return this;var r=this.machine.idMap[i];if(!r)throw new Error("Child state node '#".concat(i,"' does not exist on machine '").concat(this.id,"'"));return r},t.prototype.getStateNodeByPath=function(e){if(typeof e=="string"&&pn(e))try{return this.getStateNodeById(e.slice(1))}catch{}for(var i=al(e,this.delimiter).slice(),r=this;i.length;){var s=i.shift();if(!s.length)break;r=r.getStateNode(s);}return r},t.prototype.resolve=function(e){var i,r=this;if(!e)return this.initialStateValue||ln;switch(this.type){case"parallel":return jn(this.initialStateValue,function(a,n){return a?r.getStateNode(n).resolve(e[n]||a):ln});case"compound":if(gi(e)){var s=this.getStateNode(e);return s.type==="parallel"||s.type==="compound"?(i={},i[e]=s.initialStateValue,i):e}return Object.keys(e).length?jn(e,function(a,n){return a?r.getStateNode(n).resolve(a):ln}):this.initialStateValue||{};default:return e||ln}},t.prototype.getResolvedPath=function(e){if(pn(e)){var i=this.machine.idMap[e.slice(ll.length)];if(!i)throw new Error("Unable to find state node '".concat(e,"'"));return i.path}return al(e,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var i;if(this.type==="parallel")i=Yf(this.states,function(r){return r.initialStateValue||ln},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));i=qo(this.states[this.initial])?this.initial:(e={},e[this.initial]=this.states[this.initial].initialStateValue,e);}else i={};return this.__cache.initialStateValue=i,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(e,i){this._init();var r=this.getStateNodes(e);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,i!=null?i:this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var e;if(this.type==="history"){var i=this.config;gi(i.target)?e=pn(i.target)?Go(this.machine.getStateNodeById(i.target).path.slice(this.path.length-1)):i.target:e=i.target;}return e},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(e,i,r){return r===void 0&&(r=!0),r?e.type==="history"?e.resolveHistory(i):e.initialStateNodes:[e]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var e=this;if(qo(this))return [this];if(this.type==="compound"&&!this.initial)return [this];var i=Oo(this.initialStateValue);return Ni(i.map(function(r){return e.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(e){if(!e.length)return [this];var i=ci(e),r=i[0],s=i.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var a=this.getStateNode(r);if(a.type==="history")return a.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(s)},t.prototype.historyValue=function(e){if(Object.keys(this.states).length)return {current:e||this.initialStateValue,states:Yf(this.states,function(i,r){if(!e)return i.historyValue();var s=gi(e)?void 0:e[r];return i.historyValue(s||i.initialStateValue)},function(i){return !i.history})}},t.prototype.resolveHistory=function(e){var i=this;if(this.type!=="history")return [this];var r=this.parent;if(!e){var s=this.target;return s?Ni(Oo(s).map(function(n){return r.getFromRelativePath(n)})):r.initialStateNodes}var a=ny(r.path,"states")(e).current;return gi(a)?[r.getStateNode(a)]:Ni(Oo(a).map(function(n){return i.history==="deep"?r.getFromRelativePath(n):[r.states[n[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var e=this,i=Ni(Object.keys(this.states).map(function(r){return e.states[r].stateIds}));return [this.id].concat(i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var e,i,r,s;if(this.__cache.events)return this.__cache.events;var a=this.states,n=new Set(this.ownEvents);if(a)try{for(var p=ii(Object.keys(a)),o=p.next();!o.done;o=p.next()){var d=o.value,g=a[d];if(g.states)try{for(var f=(r=void 0,ii(g.events)),l=f.next();!l.done;l=f.next()){var b=l.value;n.add("".concat(b));}}catch(v){r={error:v};}finally{try{l&&!l.done&&(s=f.return)&&s.call(f);}finally{if(r)throw r.error}}}}catch(v){e={error:v};}finally{try{o&&!o.done&&(i=p.return)&&i.call(p);}finally{if(e)throw e.error}}return this.__cache.events=Array.from(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter(function(i){return !(!i.target&&!i.actions.length&&i.internal)}).map(function(i){return i.eventType}));return Array.from(e)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(e){var i=this;if(e!==void 0)return e.map(function(r){if(!gi(r))return r;var s=r[0]===i.delimiter;if(s&&!i.parent)return i.getStateNodeByPath(r.slice(1));var a=s?i.key+r:r;if(i.parent)try{var n=i.parent.getStateNodeByPath(a);return n}catch(p){throw new Error("Invalid transition definition for state node '".concat(i.id,`':
+`).concat(p.message))}else return i.getStateNodeByPath(a)})},t.prototype.formatTransition=function(e){var i=this,r=dy(e.target),s="internal"in e?e.internal:r?r.some(function(o){return gi(o)&&o[0]===i.delimiter}):!0,a=this.machine.options.guards,n=this.resolveTarget(r),p=ke(ke({},e),{actions:Sa(Is(e.actions)),cond:lc(e.cond,a),target:n,source:this,internal:s,eventType:e.event,toJSON:function(){return ke(ke({},p),{target:p.target?p.target.map(function(o){return "#".concat(o.id)}):void 0,source:"#".concat(i.id)})}});return p},t.prototype.formatTransitions=function(){var e,i,r=this,s;if(!this.config.on)s=[];else if(Array.isArray(this.config.on))s=this.config.on;else {var a=this.config.on,n=el,p=a[n],o=p===void 0?[]:p,d=pl(a,[typeof n=="symbol"?n:n+""]);s=Ni(Object.keys(d).map(function(u){var y=hn(u,d[u]);return y}).concat(hn(el,o)));}var g=this.config.always?hn("",this.config.always):[],f=this.config.onDone?hn(String(Lo(this.id)),this.config.onDone):[],l=Ni(this.invoke.map(function(u){var y=[];return u.onDone&&y.push.apply(y,Fi([],ci(hn(String(zo(u.id)),u.onDone)),!1)),u.onError&&y.push.apply(y,Fi([],ci(hn(String(Hn(u.id)),u.onError)),!1)),y})),b=this.after,v=Ni(Fi(Fi(Fi(Fi([],ci(f),!1),ci(l),!1),ci(s),!1),ci(g),!1).map(function(u){return Is(u).map(function(y){return r.formatTransition(y)})}));try{for(var m=ii(b),E=m.next();!E.done;E=m.next()){var c=E.value;v.push(c);}}catch(u){e={error:u};}finally{try{E&&!E.done&&(i=m.return)&&i.call(m);}finally{if(e)throw e.error}}return v},t}();cn={click:"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",complete:"onComplete",after:"onAfter",enter:"onEnter",show:"onShow"};Object.values(cn);Wy=Object.keys(cn),Uy=class{activeStateId="";_service;_domListeners=new Map;_domElement;_playerListeners=new Map;_player;_machineSchemas=new Map;_onShowPrevValue=0;constructor(t,e){this._player=e,this._machineSchemas=this._transformToXStateSchema(t),this._domElement=e.container;}start(t){this.stop();let e=this._machineSchemas.get(t);if(typeof e>"u")throw Ke(`invalid state machine id ${t}`);this._service=vc($y(e)),this._addEventListeners(),this._service.start();}stop(){var t;this._removeEventListeners(),(t=this._service)==null||t.stop(),this._player.stop();}_removeEventListeners(){var t;this._requiresDomElement();for(let[e,i]of this._domListeners)e==="visibilityChange"&&this._player.stopPlayOnShow(),(t=this._domElement)==null||t.removeEventListener(e,i),this._domListeners.delete(e);for(let[e,i]of this._playerListeners)this._player.removeEventListener(e,i),this._playerListeners.delete(e);}_addEventListeners(){this._requiresDomElement();let t=i=>{this._service.send({type:i});},e=i=>{function r(){t(i);}return r};this._service.subscribe(i=>{var r;if(typeof i.changed>"u"||i.changed){this._removeEventListeners();for(let s of i.nextEvents)if(Wy.filter(a=>a!=="complete"&&a!=="show").includes(s)){let a=e(s);this._domListeners.set(s,a),(r=this._domElement)==null||r.addEventListener(s,a,{once:!0});}else if(s==="complete"){let a=e(s);this._player.addEventListener(s,a),this._playerListeners.set(s,a);}else if(s==="show"){let a=e(s);this._player.addIntersectionObserver({callbackOnIntersect:n=>{n>0&&(n!==100&&this._onShowPrevValue!==n&&a(),this._onShowPrevValue=n);},threshold:[]}),this._domListeners.set("visibilityChange",a);}}});}subscribe(t){throw Ke(t.toString())}_transformToXStateSchema(t){var e,i,r;let s=new Map;for(let a of t){let n={},p={};if(p.id=a.descriptor.id,typeof a.descriptor.initial<"u"&&(p.initial=a.descriptor.initial),typeof a<"u"){let o=a.states;for(let d in o)if(typeof o[d]<"u"&&o[d]){let g=o[d],f=g.playbackSettings,l=Object.keys(g).filter(m=>m.startsWith("on")),b={},v={};for(let m of l)if(typeof g[m]<"u"){let E=g[m];if(m===cn.after){let c=E;v[c.ms]={target:(e=E==null?void 0:E.state)!=null?e:""};}else m===cn.enter?b[fo(cn,m)]={target:(i=E==null?void 0:E.state)!=null?i:""}:b[fo(cn,m)]={target:(r=E==null?void 0:E.state)!=null?r:""};}n[d]={entry:()=>{!this._player.getAnimationInstance()||g.animationId&&g.animationId!==this._player.currentAnimationId?this._player.play(g.animationId,()=>({...Gr,...f})).then(()=>{this._updatePlaybackSettings(f);}).catch(m=>{$s(`State machine error: ${m.message}`);}):this._updatePlaybackSettings(f);},exit:()=>{typeof f.segments<"u"&&this._player.resetSegments(!1),typeof f.playOnScroll<"u"&&this._player.stopPlayOnScroll();},on:b,after:v,meta:f};}}p.states=n,s.set(p.id,p);}return s}_handlePlaySegments(t){if(typeof t.segments=="string")this._player.goToAndPlay(t.segments,!0);else {let[e,i]=t.segments,r=e;e!==0&&e===i&&(r=e-1),e===0&&e===i?this._player.goToAndPlay(e,!0):this._player.playSegments([r,i],!0);}}_handlePlayOnScroll(t){let e=t.playOnScroll;if(t.segments&&typeof t.segments!="string"){let i=t.segments;this._player.playOnScroll({threshold:e,segments:i});}else this._player.playOnScroll({threshold:e});}_updatePlaybackSettings(t){if(!this._player.getAnimationInstance())throw new Error("Unable to update playbackSettings. Animations is not rendered yet.");typeof t.autoplay<"u"&&(this._player.setAutoplay(t.autoplay),t.autoplay?this._player.play():this._player.pause()),typeof t.direction<"u"&&this._player.setDirection(t.direction),typeof t.intermission<"u"&&this._player.setIntermission(t.intermission),typeof t.loop<"u"&&this._player.setLoop(t.loop),typeof t.playMode<"u"&&this._player.setMode(t.playMode),typeof t.speed<"u"&&this._player.setSpeed(t.speed),typeof t.defaultTheme<"u"&&this._player.setDefaultTheme(t.defaultTheme),typeof t.playOnScroll<"u"&&this._handlePlayOnScroll(t),t.segments&&this._handlePlaySegments(t),t.autoplay||this._player.pause();}_requiresDomElement(){if(!this._domElement)throw Ke("Requires a DOM element to attach events.")}};});async function xc(t,e){let[{DotLottieStateMachineManager:i}]=await Promise.all([Promise.resolve().then(()=>(_c(),bc))]);if(!t.length)throw Ke("No state machines available inside this .lottie!");return new i(t,e)}var Uo=cr(()=>{en();});var Pc={};Ts(Pc,{DotLottieAudio:()=>Yy});var Jy,Xy,Yy,Sc=cr(()=>{ns();Jy=ue(t=>{((function(){var e=function(){this.init();};e.prototype={init:function(){var f=this||i;return f._counter=1e3,f._html5AudioPool=[],f.html5PoolSize=10,f._codecs={},f._howls=[],f._muted=!1,f._volume=1,f._canPlayEvent="canplaythrough",f._navigator=typeof window<"u"&&window.navigator?window.navigator:null,f.masterGain=null,f.noAudio=!1,f.usingWebAudio=!0,f.autoSuspend=!0,f.ctx=null,f.autoUnlock=!0,f._setup(),f},volume:function(f){var l=this||i;if(f=parseFloat(f),l.ctx||g(),typeof f<"u"&&f>=0&&f<=1){if(l._volume=f,l._muted)return l;l.usingWebAudio&&l.masterGain.gain.setValueAtTime(f,i.ctx.currentTime);for(var b=0;b=0;l--)f._howls[l].unload();return f.usingWebAudio&&f.ctx&&typeof f.ctx.close<"u"&&(f.ctx.close(),f.ctx=null,g()),f},codecs:function(f){return (this||i)._codecs[f.replace(/^x-/,"")]},_setup:function(){var f=this||i;if(f.state=f.ctx&&f.ctx.state||"suspended",f._autoSuspend(),!f.usingWebAudio)if(typeof Audio<"u")try{var l=new Audio;typeof l.oncanplaythrough>"u"&&(f._canPlayEvent="canplay");}catch{f.noAudio=!0;}else f.noAudio=!0;try{var l=new Audio;l.muted&&(f.noAudio=!0);}catch{}return f.noAudio||f._setupCodecs(),f},_setupCodecs:function(){var f=this||i,l=null;try{l=typeof Audio<"u"?new Audio:null;}catch{return f}if(!l||typeof l.canPlayType!="function")return f;var b=l.canPlayType("audio/mpeg;").replace(/^no$/,""),v=f._navigator?f._navigator.userAgent:"",m=v.match(/OPR\/([0-6].)/g),E=m&&parseInt(m[0].split("/")[1],10)<33,c=v.indexOf("Safari")!==-1&&v.indexOf("Chrome")===-1,u=v.match(/Version\/(.*?) /),y=c&&u&&parseInt(u[1],10)<15;return f._codecs={mp3:!!(!E&&(b||l.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!b,opus:!!l.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!l.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!l.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(l.canPlayType('audio/wav; codecs="1"')||l.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!l.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!l.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(l.canPlayType("audio/x-m4a;")||l.canPlayType("audio/m4a;")||l.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(l.canPlayType("audio/x-m4b;")||l.canPlayType("audio/m4b;")||l.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(l.canPlayType("audio/x-mp4;")||l.canPlayType("audio/mp4;")||l.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!y&&l.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!y&&l.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!l.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(l.canPlayType("audio/x-flac;")||l.canPlayType("audio/flac;")).replace(/^no$/,"")},f},_unlockAudio:function(){var f=this||i;if(!(f._audioUnlocked||!f.ctx)){f._audioUnlocked=!1,f.autoUnlock=!1,!f._mobileUnloaded&&f.ctx.sampleRate!==44100&&(f._mobileUnloaded=!0,f.unload()),f._scratchBuffer=f.ctx.createBuffer(1,1,22050);var l=function(b){for(;f._html5AudioPool.length"u"?y.noteOn(0):y.start(0),typeof f.ctx.resume=="function"&&f.ctx.resume(),y.onended=function(){y.disconnect(0),f._audioUnlocked=!0,document.removeEventListener("touchstart",l,!0),document.removeEventListener("touchend",l,!0),document.removeEventListener("click",l,!0),document.removeEventListener("keydown",l,!0);for(var P=0;P"u"||!i.usingWebAudio)){for(var l=0;l"u"||!i.usingWebAudio))return f.state==="running"&&f.ctx.state!=="interrupted"&&f._suspendTimer?(clearTimeout(f._suspendTimer),f._suspendTimer=null):f.state==="suspended"||f.state==="running"&&f.ctx.state==="interrupted"?(f.ctx.resume().then(function(){f.state="running";for(var l=0;l"u"&&(f="__default",!b._playLock)){for(var m=0,E=0;E0?c._seek:b._sprite[f][0]/1e3),P=Math.max(0,(b._sprite[f][0]+b._sprite[f][1])/1e3-y),w=P*1e3/Math.abs(c._rate),F=b._sprite[f][0]/1e3,B=(b._sprite[f][0]+b._sprite[f][1])/1e3;c._sprite=f,c._ended=!1;var G=function(){c._paused=!1,c._seek=y,c._start=F,c._stop=B,c._loop=!!(c._loop||b._sprite[f][2]);};if(y>=B){b._ended(c);return}var it=c._node;if(b._webAudio){var ft=function(){b._playLock=!1,G(),b._refreshBuffer(c);var tt=c._muted||b._muted?0:c._volume;it.gain.setValueAtTime(tt,i.ctx.currentTime),c._playStart=i.ctx.currentTime,typeof it.bufferSource.start>"u"?c._loop?it.bufferSource.noteGrainOn(0,y,86400):it.bufferSource.noteGrainOn(0,y,P):c._loop?it.bufferSource.start(0,y,86400):it.bufferSource.start(0,y,P),w!==1/0&&(b._endTimers[c._id]=setTimeout(b._ended.bind(b,c),w)),l||setTimeout(function(){b._emit("play",c._id),b._loadQueue();},0);};i.state==="running"&&i.ctx.state!=="interrupted"?ft():(b._playLock=!0,b.once("resume",ft),b._clearTimer(c._id));}else {var ct=function(){it.currentTime=y,it.muted=c._muted||b._muted||i._muted||it.muted,it.volume=c._volume*i.volume(),it.playbackRate=c._rate;try{var tt=it.play();if(tt&&typeof Promise<"u"&&(tt instanceof Promise||typeof tt.then=="function")?(b._playLock=!0,G(),tt.then(function(){b._playLock=!1,it._unlocked=!0,l?b._loadQueue():b._emit("play",c._id);}).catch(function(){b._playLock=!1,b._emit("playerror",c._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),c._ended=!0,c._paused=!0;})):l||(b._playLock=!1,G(),b._emit("play",c._id)),it.playbackRate=c._rate,it.paused){b._emit("playerror",c._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}f!=="__default"||c._loop?b._endTimers[c._id]=setTimeout(b._ended.bind(b,c),w):(b._endTimers[c._id]=function(){b._ended(c),it.removeEventListener("ended",b._endTimers[c._id],!1);},it.addEventListener("ended",b._endTimers[c._id],!1));}catch(vt){b._emit("playerror",c._id,vt);}};it.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(it.src=b._src,it.load());var dt=window&&window.ejecta||!it.readyState&&i._navigator.isCocoonJS;if(it.readyState>=3||dt)ct();else {b._playLock=!0,b._state="loading";var Pt=function(){b._state="loaded",ct(),it.removeEventListener(i._canPlayEvent,Pt,!1);};it.addEventListener(i._canPlayEvent,Pt,!1),b._clearTimer(c._id);}}return c._id},pause:function(f){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"pause",action:function(){l.pause(f);}}),l;for(var b=l._getSoundIds(f),v=0;v"u"?m._node.bufferSource.noteOff(0):m._node.bufferSource.stop(0),l._cleanBuffer(m._node);}else (!isNaN(m._node.duration)||m._node.duration===1/0)&&m._node.pause();arguments[1]||l._emit("pause",m?m._id:null);}return l},stop:function(f,l){var b=this;if(b._state!=="loaded"||b._playLock)return b._queue.push({event:"stop",action:function(){b.stop(f);}}),b;for(var v=b._getSoundIds(f),m=0;m"u"?E._node.bufferSource.noteOff(0):E._node.bufferSource.stop(0),b._cleanBuffer(E._node)):(!isNaN(E._node.duration)||E._node.duration===1/0)&&(E._node.currentTime=E._start||0,E._node.pause(),E._node.duration===1/0&&b._clearSound(E._node))),l||b._emit("stop",E._id));}return b},mute:function(f,l){var b=this;if(b._state!=="loaded"||b._playLock)return b._queue.push({event:"mute",action:function(){b.mute(f,l);}}),b;if(typeof l>"u")if(typeof f=="boolean")b._muted=f;else return b._muted;for(var v=b._getSoundIds(l),m=0;m