}var Qe,lu;function Hu(){if(lu)return Qe;lu=1;const i={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function T(p){return p[0].toUpperCase()+p.slice(1)}class w{constructor(b){this.builder=b}atrule(b,y){let o="@"+b.name,h=b.params?this.rawValue(b,"params"):"";if(typeof b.raws.afterName<"u"?o+=b.raws.afterName:h&&(o+=" "),b.nodes)this.block(b,o+h);else{let g=(b.raws.between||"")+(y?";":"");this.builder(o+h+g,b)}}beforeAfter(b,y){let o;b.type==="decl"?o=this.raw(b,null,"beforeDecl"):b.type==="comment"?o=this.raw(b,null,"beforeComment"):y==="before"?o=this.raw(b,null,"beforeRule"):o=this.raw(b,null,"beforeClose");let h=b.parent,g=0;for(;h&&h.type!=="root";)g+=1,h=h.parent;if(o.includes(`
`)){let r=this.raw(b,null,"indent");if(r.length)for(let u=0;u<g;u++)o+=r}return o}block(b,y){let o=this.raw(b,"between","beforeOpen");this.builder(y+o+"{",b,"start");let h;b.nodes&&b.nodes.length?(this.body(b),h=this.raw(b,"after")):h=this.raw(b,"after","emptyBody"),h&&this.builder(h),this.builder("}",b,"end")}body(b){let y=b.nodes.length-1;for(;y>0&&b.nodes[y].type==="comment";)y-=1;let o=this.raw(b,"semicolon");for(let h=0;h<b.nodes.length;h++){let g=b.nodes[h],r=this.raw(g,"before");r&&this.builder(r),this.stringify(g,y!==h||o)}}comment(b){let y=this.raw(b,"left","commentLeft"),o=this.raw(b,"right","commentRight");this.builder("/*"+y+b.text+o+"*/",b)}decl(b,y){let o=this.raw(b,"between","colon"),h=b.prop+o+this.rawValue(b,"value");b.important&&(h+=b.raws.important||" !important"),y&&(h+=";"),this.builder(h,b)}document(b){this.body(b)}raw(b,y,o){let h;if(o||(o=y),y&&(h=b.raws[y],typeof h<"u"))return h;let g=b.parent;if(o==="before"&&(!g||g.type==="root"&&g.first===b||g&&g.type==="document"))return"";if(!g)return i[o];let r=b.root();if(r.rawCache||(r.rawCache={}),typeof r.rawCache[o]<"u")return r.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(b,o);{let u="raw"+T(o);this[u]?h=this[u](r,b):r.walk(c=>{if(h=c.raws[y],typeof h<"u")return!1})}return typeof h>"u"&&(h=i[o]),r.rawCache[o]=h,h}rawBeforeClose(b){let y;return b.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return y=o.raws.after,y.includes(`
`)&&(y=y.replace(/[^\n]+$/,"")),!1}),y&&(y=y.replace(/\S/g,"")),y}rawBeforeComment(b,y){let o;return b.walkComments(h=>{if(typeof h.raws.before<"u")return o=h.raws.before,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(y,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(b,y){let o;return b.walkDecls(h=>{if(typeof h.raws.before<"u")return o=h.raws.before,o.includes(`
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(y,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(b){let y;return b.walk(o=>{if(o.type!=="decl"&&(y=o.raws.between,typeof y<"u"))return!1}),y}rawBeforeRule(b){let y;return b.walk(o=>{if(o.nodes&&(o.parent!==b||b.first!==o)&&typeof o.raws.before<"u")return y=o.raws.before,y.includes(`
`)&&(y=y.replace(/[^\n]+$/,"")),!1}),y&&(y=y.replace(/\S/g,"")),y}rawColon(b){let y;return b.walkDecls(o=>{if(typeof o.raws.between<"u")return y=o.raws.between.replace(/[^\s:]/g,""),!1}),y}rawEmptyBody(b){let y;return b.walk(o=>{if(o.nodes&&o.nodes.length===0&&(y=o.raws.after,typeof y<"u"))return!1}),y}rawIndent(b){if(b.raws.indent)return b.raws.indent;let y;return b.walk(o=>{let h=o.parent;if(h&&h!==b&&h.parent&&h.parent===b&&typeof o.raws.before<"u"){let g=o.raws.before.split(`
`);return y=g[g.length-1],y=y.replace(/\S/g,""),!1}}),y}rawSemicolon(b){let y;return b.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(y=o.raws.semicolon,typeof y<"u"))return!1}),y}rawValue(b,y){let o=b[y],h=b.raws[y];return h&&h.value===o?h.raw:o}root(b){this.body(b),b.raws.after&&this.builder(b.raws.after)}rule(b){this.block(b,this.rawValue(b,"selector")),b.raws.ownSemicolon&&this.builder(b.raws.ownSemicolon,b,"end")}stringify(b,y){if(!this[b.type])throw new Error("Unknown AST node type "+b.type+". Maybe you need to change PostCSS stringifier.");this[b.type](b,y)}}return Qe=w,w.default=w,Qe}var Je,fu;function Re(){if(fu)return Je;fu=1;let i=Hu();function T(w,p){new i(p).stringify(w)}return Je=T,T.default=T,Je}var qe={},du;function Tt(){return du||(du=1,qe.isClean=Symbol("isClean"),qe.my=Symbol("my")),qe}var Ze,hu;function Pe(){if(hu)return Ze;hu=1;let i=St(),T=Hu(),w=Re(),{isClean:p,my:b}=Tt();function y(g,r){let u=new g.constructor;for(let c in g){if(!Object.prototype.hasOwnProperty.call(g,c)||c==="proxyCache")continue;let e=g[c],t=typeof e;c==="parent"&&t==="object"?r&&(u[c]=r):c==="source"?u[c]=e:Array.isArray(e)?u[c]=e.map(n=>y(n,u)):(t==="object"&&e!==null&&(e=y(e)),u[c]=e)}return u}function o(g,r){if(r&&typeof r.offset<"u")return r.offset;let u=1,c=1,e=0;for(let t=0;t<g.length;t++){if(c===r.line&&u===r.column){e=t;break}g[t]===`
`?(u=1,c+=1):u+=1}return e}class h{get proxyOf(){return this}constructor(r={}){this.raws={},this[p]=!1,this[b]=!0;for(let u in r)if(u==="nodes"){this.nodes=[];for(let c of r[u])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[u]=r[u]}addToError(r){if(r.postcssNode=this,r.stack&&this.source&&/\n\s{4}at /.test(r.stack)){let u=this.source;r.stack=r.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return r}after(r){return this.parent.insertAfter(this,r),this}assign(r={}){for(let u in r)this[u]=r[u];return this}before(r){return this.parent.insertBefore(this,r),this}cleanRaws(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between}clone(r={}){let u=y(this);for(let c in r)u[c]=r[c];return u}cloneAfter(r={}){let u=this.clone(r);return this.parent.insertAfter(this,u),u}cloneBefore(r={}){let u=this.clone(r);return this.parent.insertBefore(this,u),u}error(r,u={}){if(this.source){let{end:c,start:e}=this.rangeBy(u);return this.source.input.error(r,{column:e.column,line:e.line},{column:c.column,line:c.line},u)}return new i(r)}getProxyProcessor(){return{get(r,u){return u==="proxyOf"?r:u==="root"?()=>r.root().toProxy():r[u]},set(r,u,c){return r[u]===c||(r[u]=c,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&r.markDirty()),!0}}}markClean(){this[p]=!0}markDirty(){if(this[p]){this[p]=!1;let r=this;for(;r=r.parent;)r[p]=!1}}next(){if(!this.parent)return;let r=this.parent.index(this);return this.parent.nodes[r+1]}positionBy(r){let u=this.source.start;if(r.index)u=this.positionInside(r.index);else if(r.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,t=c.slice(o(c,this.source.start),o(c,this.source.end)).indexOf(r.word);t!==-1&&(u=this.positionInside(t))}return u}positionInside(r){let u=this.source.start.column,c=this.source.start.line,e="document"in this.source.input?this.source.input.document:this.source.input.css,t=o(e,this.source.start),n=t+r;for(let f=t;f<n;f++)e[f]===`
`?(u=1,c+=1):u+=1;return{column:u,line:c}}prev(){if(!this.parent)return;let r=this.parent.index(this);return this.parent.nodes[r-1]}rangeBy(r){let u={column:this.source.start.column,line:this.source.start.line},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(r.word){let e="document"in this.source.input?this.source.input.document:this.source.input.css,n=e.slice(o(e,this.source.start),o(e,this.source.end)).indexOf(r.word);n!==-1&&(u=this.positionInside(n),c=this.positionInside(n+r.word.length))}else r.start?u={column:r.start.column,line:r.start.line}:r.index&&(u=this.positionInside(r.index)),r.end?c={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?c=this.positionInside(r.endIndex):r.index&&(c=this.positionInside(r.index+1));return(c.line<u.line||c.line===u.line&&c.column<=u.column)&&(c={column:u.column+1,line:u.line}),{end:c,start:u}}raw(r,u){return new T().raw(this,r,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...r){if(this.parent){let u=this,c=!1;for(let e of r)e===this?c=!0:c?(this.parent.insertAfter(u,e),u=e):this.parent.insertBefore(u,e);c||this.remove()}return this}root(){let r=this;for(;r.parent&&r.parent.type!=="document";)r=r.parent;return r}toJSON(r,u){let c={},e=u==null;u=u||new Map;let t=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let f=this[n];if(Array.isArray(f))c[n]=f.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,u):d);else if(typeof f=="object"&&f.toJSON)c[n]=f.toJSON(null,u);else if(n==="source"){let d=u.get(f.input);d==null&&(d=t,u.set(f.input,t),t++),c[n]={end:f.end,inputId:d,start:f.start}}else c[n]=f}return e&&(c.inputs=[...u.keys()].map(n=>n.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(r=w){r.stringify&&(r=r.stringify);let u="";return r(this,c=>{u+=c}),u}warn(r,u,c){let e={node:this};for(let t in c)e[t]=c[t];return r.warn(u,e)}}return Ze=h,h.default=h,Ze}var Ye,bu;function Le(){if(bu)return Ye;bu=1;let i=Pe();class T extends i{constructor(p){super(p),this.type="comment"}}return Ye=T,T.default=T,Ye}var Ke,pu;function Me(){if(pu)return Ke;pu=1;let i=Pe();class T extends i{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(p){p&&typeof p.value<"u"&&typeof p.value!="string"&&(p={...p,value:String(p.value)}),super(p),this.type="decl"}}return Ke=T,T.default=T,Ke}var et,mu;function ge(){if(mu)return et;mu=1;let i=Le(),T=Me(),w=Pe(),{isClean:p,my:b}=Tt(),y,o,h,g;function r(e){return e.map(t=>(t.nodes&&(t.nodes=r(t.nodes)),delete t.source,t))}function u(e){if(e[p]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)u(t)}class c extends w{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]}append(...t){for(let n of t){let f=this.normalize(n,this.last);for(let d of f)this.proxyOf.nodes.push(d)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),f,d;for(;this.indexes[n]<this.proxyOf.nodes.length&&(f=this.indexes[n],d=t(this.proxyOf.nodes[f],f),d!==!1);)this.indexes[n]+=1;return delete this.indexes[n],d}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:t[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...f)=>t[n](...f.map(d=>typeof d=="function"?(a,x)=>d(a.toProxy(),x):d)):n==="every"||n==="some"?f=>t[n]((d,...a)=>f(d.toProxy(),...a)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(f=>f.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]},set(t,n,f){return t[n]===f||(t[n]=f,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let f=this.index(t),d=this.normalize(n,this.proxyOf.nodes[f]).reverse();f=this.index(t);for(let x of d)this.proxyOf.nodes.splice(f+1,0,x);let a;for(let x in this.indexes)a=this.indexes[x],f<a&&(this.indexes[x]=a+d.length);return this.markDirty(),this}insertBefore(t,n){let f=this.index(t),d=f===0?"prepend":!1,a=this.normalize(n,this.proxyOf.nodes[f],d).reverse();f=this.index(t);for(let m of a)this.proxyOf.nodes.splice(f,0,m);let x;for(let m in this.indexes)x=this.indexes[m],f<=x&&(this.indexes[m]=x+a.length);return this.markDirty(),this}normalize(t,n){if(typeof t=="string")t=r(o(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let d of t)d.parent&&d.parent.removeChild(d,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let d of t)d.parent&&d.parent.removeChild(d,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new T(t)]}else if(t.selector||t.selectors)t=[new g(t)];else if(t.name)t=[new y(t)];else if(t.text)t=[new i(t)];else throw new Error("Unknown node type in node creation");return t.map(d=>(d[b]||c.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[p]&&u(d),d.raws||(d.raws={}),typeof d.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=this.proxyOf,d))}prepend(...t){t=t.reverse();for(let n of t){let f=this.normalize(n,this.first,"prepend").reverse();for(let d of f)this.proxyOf.nodes.unshift(d);for(let d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let f in this.indexes)n=this.indexes[f],n>=t&&(this.indexes[f]=n-1);return this.markDirty(),this}replaceValues(t,n,f){return f||(f=n,n={}),this.walkDecls(d=>{n.props&&!n.props.includes(d.prop)||n.fast&&!d.value.includes(n.fast)||(d.value=d.value.replace(t,f))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,f)=>{let d;try{d=t(n,f)}catch(a){throw n.addToError(a)}return d!==!1&&n.walk&&(d=n.walk(t)),d})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((f,d)=>{if(f.type==="atrule"&&t.test(f.name))return n(f,d)}):this.walk((f,d)=>{if(f.type==="atrule"&&f.name===t)return n(f,d)}):(n=t,this.walk((f,d)=>{if(f.type==="atrule")return n(f,d)}))}walkComments(t){return this.walk((n,f)=>{if(n.type==="comment")return t(n,f)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((f,d)=>{if(f.type==="decl"&&t.test(f.prop))return n(f,d)}):this.walk((f,d)=>{if(f.type==="decl"&&f.prop===t)return n(f,d)}):(n=t,this.walk((f,d)=>{if(f.type==="decl")return n(f,d)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((f,d)=>{if(f.type==="rule"&&t.test(f.selector))return n(f,d)}):this.walk((f,d)=>{if(f.type==="rule"&&f.selector===t)return n(f,d)}):(n=t,this.walk((f,d)=>{if(f.type==="rule")return n(f,d)}))}}return c.registerParse=e=>{o=e},c.registerRule=e=>{g=e},c.registerAtRule=e=>{y=e},c.registerRoot=e=>{h=e},et=c,c.default=c,c.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,y.prototype):e.type==="rule"?Object.setPrototypeOf(e,g.prototype):e.type==="decl"?Object.setPrototypeOf(e,T.prototype):e.type==="comment"?Object.setPrototypeOf(e,i.prototype):e.type==="root"&&Object.setPrototypeOf(e,h.prototype),e[b]=!0,e.nodes&&e.nodes.forEach(t=>{c.rebuild(t)})},et}var tt,gu;function Et(){if(gu)return tt;gu=1;let i=ge();class T extends i{constructor(p){super(p),this.type="atrule"}append(...p){return this.proxyOf.nodes||(this.nodes=[]),super.append(...p)}prepend(...p){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...p)}}return tt=T,T.default=T,i.registerAtRule(T),tt}var ut,yu;function At(){if(yu)return ut;yu=1;let i=ge(),T,w;class p extends i{constructor(y){super({type:"document",...y}),this.nodes||(this.nodes=[])}toResult(y={}){return new T(new w,this,y).stringify()}}return p.registerLazyResult=b=>{T=b},p.registerProcessor=b=>{w=b},ut=p,p.default=p,ut}var rt,xu;function br(){if(xu)return rt;xu=1;let i="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return rt={nanoid:(p=21)=>{let b="",y=p|0;for(;y--;)b+=i[Math.random()*64|0];return b},customAlphabet:(p,b=21)=>(y=b)=>{let o="",h=y|0;for(;h--;)o+=p[Math.random()*p.length|0];return o}},rt}var it,vu;function Fu(){if(vu)return it;vu=1;let{existsSync:i,readFileSync:T}=te,{dirname:w,join:p}=te,{SourceMapConsumer:b,SourceMapGenerator:y}=te;function o(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}class h{constructor(r,u){if(u.map===!1)return;this.loadAnnotation(r),this.inline=this.startWith(this.annotation,"data:");let c=u.map?u.map.prev:void 0,e=this.loadMap(u.from,c);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=w(this.mapFile)),e&&(this.text=e)}consumer(){return this.consumerCache||(this.consumerCache=new b(this.text)),this.consumerCache}decodeInline(r){let u=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,e=/^data:application\/json;charset=utf-?8,/,t=/^data:application\/json,/,n=r.match(e)||r.match(t);if(n)return decodeURIComponent(r.substr(n[0].length));let f=r.match(u)||r.match(c);if(f)return o(r.substr(f[0].length));let d=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(r){return r.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(r){return typeof r!="object"?!1:typeof r.mappings=="string"||typeof r._mappings=="string"||Array.isArray(r.sections)}loadAnnotation(r){let u=r.match(/\/\*\s*# sourceMappingURL=/g);if(!u)return;let c=r.lastIndexOf(u.pop()),e=r.indexOf("*/",c);c>-1&&e>-1&&(this.annotation=this.getAnnotationURL(r.substring(c,e)))}loadFile(r){if(this.root=w(r),i(r))return this.mapFile=r,T(r,"utf-8").toString().trim()}loadMap(r,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let c=u(r);if(c){let e=this.loadFile(c);if(!e)throw new Error("Unable to load previous source map: "+c.toString());return e}}else{if(u instanceof b)return y.fromSourceMap(u).toString();if(u instanceof y)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return r&&(c=p(w(r),c)),this.loadFile(c)}}}startWith(r,u){return r?r.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return it=h,h.default=h,it}var nt,wu;function ke(){if(wu)return nt;wu=1;let{nanoid:i}=br(),{isAbsolute:T,resolve:w}=te,{SourceMapConsumer:p,SourceMapGenerator:b}=te,{fileURLToPath:y,pathToFileURL:o}=te,h=St(),g=Fu(),r=te,u=Symbol("fromOffsetCache"),c=!!(p&&b),e=!!(w&&T);class t{get from(){return this.file||this.id}constructor(f,d={}){if(f===null||typeof f>"u"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,d.document&&(this.document=d.document.toString()),d.from&&(!e||/^\w+:\/\//.test(d.from)||T(d.from)?this.file=d.from:this.file=w(d.from)),e&&c){let a=new g(this.css,d);if(a.text){this.map=a;let x=a.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)}error(f,d,a,x={}){let m,l,s;if(d&&typeof d=="object"){let S=d,A=a;if(typeof S.offset=="number"){let q=this.fromOffset(S.offset);d=q.line,a=q.col}else d=S.line,a=S.column;if(typeof A.offset=="number"){let q=this.fromOffset(A.offset);l=q.line,m=q.col}else l=A.line,m=A.column}else if(!a){let S=this.fromOffset(d);d=S.line,a=S.col}let v=this.origin(d,a,l,m);return v?s=new h(f,v.endLine===void 0?v.line:{column:v.column,line:v.line},v.endLine===void 0?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,x.plugin):s=new h(f,l===void 0?d:{column:a,line:d},l===void 0?a:{column:m,line:l},this.css,this.file,x.plugin),s.input={column:a,endColumn:m,endLine:l,line:d,source:this.css},this.file&&(o&&(s.input.url=o(this.file).toString()),s.input.file=this.file),s}fromOffset(f){let d,a;if(this[u])a=this[u];else{let m=this.css.split(`
`);a=new Array(m.length);let l=0;for(let s=0,v=m.length;s<v;s++)a[s]=l,l+=m[s].length+1;this[u]=a}d=a[a.length-1];let x=0;if(f>=d)x=a.length-1;else{let m=a.length-2,l;for(;x<m;)if(l=x+(m-x>>1),f<a[l])m=l-1;else if(f>=a[l+1])x=l+1;else{x=l;break}}return{col:f-a[x]+1,line:x+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:w(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,d,a,x){if(!this.map)return!1;let m=this.map.consumer(),l=m.originalPositionFor({column:d,line:f});if(!l.source)return!1;let s;typeof a=="number"&&(s=m.originalPositionFor({column:x,line:a}));let v;T(l.source)?v=o(l.source):v=new URL(l.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let S={column:l.column,endColumn:s&&s.column,endLine:s&&s.line,line:l.line,url:v.toString()};if(v.protocol==="file:")if(y)S.file=y(v);else throw new Error("file: protocol is not available in this PostCSS build");let A=m.sourceContentFor(l.source);return A&&(S.source=A),S}toJSON(){let f={};for(let d of["hasBOM","css","file","id"])this[d]!=null&&(f[d]=this[d]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}}return nt=t,t.default=t,r&&r.registerInput&&r.registerInput(t),nt}var at,Su;function we(){if(Su)return at;Su=1;let i=ge(),T,w;class p extends i{constructor(y){super(y),this.type="root",this.nodes||(this.nodes=[])}normalize(y,o,h){let g=super.normalize(y);if(o){if(h==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let r of g)r.raws.before=o.raws.before}return g}removeChild(y,o){let h=this.index(y);return!o&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(y)}toResult(y={}){return new T(new w,this,y).stringify()}}return p.registerLazyResult=b=>{T=b},p.registerProcessor=b=>{w=b},at=p,p.default=p,i.registerRoot(p),at}var st,Tu;function Vu(){if(Tu)return st;Tu=1;let i={comma(T){return i.split(T,[","],!0)},space(T){let w=[" ",`
`,"	"];return i.split(T,w)},split(T,w,p){let b=[],y="",o=!1,h=0,g=!1,r="",u=!1;for(let c of T)u?u=!1:c==="\\"?u=!0:g?c===r&&(g=!1):c==='"'||c==="'"?(g=!0,r=c):c==="("?h+=1:c===")"?h>0&&(h-=1):h===0&&w.includes(c)&&(o=!0),o?(y!==""&&b.push(y.trim()),y="",o=!1):y+=c;return(p||y!=="")&&b.push(y.trim()),b}};return st=i,i.default=i,st}var ot,Eu;function Nt(){if(Eu)return ot;Eu=1;let i=ge(),T=Vu();class w extends i{get selectors(){return T.comma(this.selector)}set selectors(b){let y=this.selector?this.selector.match(/,\s*/):null,o=y?y[0]:","+this.raw("between","beforeOpen");this.selector=b.join(o)}constructor(b){super(b),this.type="rule",this.nodes||(this.nodes=[])}}return ot=w,w.default=w,i.registerRule(w),ot}var ct,Au;function pr(){if(Au)return ct;Au=1;let i=Et(),T=Le(),w=Me(),p=ke(),b=Fu(),y=we(),o=Nt();function h(g,r){if(Array.isArray(g))return g.map(e=>h(e));let{inputs:u,...c}=g;if(u){r=[];for(let e of u){let t={...e,__proto__:p.prototype};t.map&&(t.map={...t.map,__proto__:b.prototype}),r.push(t)}}if(c.nodes&&(c.nodes=g.nodes.map(e=>h(e,r))),c.source){let{inputId:e,...t}=c.source;c.source=t,e!=null&&(c.source.input=r[e])}if(c.type==="root")return new y(c);if(c.type==="decl")return new w(c);if(c.type==="rule")return new o(c);if(c.type==="comment")return new T(c);if(c.type==="atrule")return new i(c);throw new Error("Unknown node type: "+g.type)}return ct=h,h.default=h,ct}var lt,Nu;function zu(){if(Nu)return lt;Nu=1;let{dirname:i,relative:T,resolve:w,sep:p}=te,{SourceMapConsumer:b,SourceMapGenerator:y}=te,{pathToFileURL:o}=te,h=ke(),g=!!(b&&y),r=!!(i&&w&&T&&p);class u{constructor(e,t,n,f){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
`;this.css.includes(`\r
`)&&(t=`\r
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||i(e.file),f;this.mapOpts.sourcesContent===!1?(f=new b(e.text),f.sourcesContent&&(f.sourcesContent=null)):f=e.consumer(),this.map.applySourceMap(f,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),r&&g&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=y.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new y({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new y({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,n="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},d,a;this.stringify(this.root,(x,m,l)=>{if(this.css+=x,m&&l!=="end"&&(f.generated.line=e,f.generated.column=t-1,m.source&&m.source.start?(f.source=this.sourcePath(m),f.original.line=m.source.start.line,f.original.column=m.source.start.column-1,this.map.addMapping(f)):(f.source=n,f.original.line=1,f.original.column=0,this.map.addMapping(f))),a=x.match(/\n/g),a?(e+=a.length,d=x.lastIndexOf(`
`),t=x.length-d):t+=x.length,m&&l!=="start"){let s=m.parent||{raws:{}};(!(m.type==="decl"||m.type==="atrule"&&!m.nodes)||m!==s.last||s.raws.semicolon)&&(m.source&&m.source.end?(f.source=this.sourcePath(m),f.original.line=m.source.end.line,f.original.column=m.source.end.column-1,f.generated.line=e,f.generated.column=t-2,this.map.addMapping(f)):(f.source=n,f.original.line=1,f.original.column=0,f.generated.line=e,f.generated.column=t-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?i(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=i(w(n,this.mapOpts.annotation)));let f=T(n,e);return this.memoizedPaths.set(e,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new h(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let f=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(f,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(o){let n=o(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;p==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}return lt=u,lt}var ft,Ou;function mr(){if(Ou)return ft;Ou=1;const i=39,T=34,w=92,p=47,b=10,y=32,o=12,h=9,g=13,r=91,u=93,c=40,e=41,t=123,n=125,f=59,d=42,a=58,x=64,m=/[\t\n\f\r "#'()/;[\\\]{}]/g,l=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,s=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return ft=function(A,q={}){let D=A.css.valueOf(),E=q.ignoreErrors,N,C,P,O,B,j,F,G,W,ue,ye=D.length,L=0,re=[],fe=[];function Se(){return L}function xe(_){throw A.error("Unclosed "+_,L)}function Be(){return fe.length===0&&L>=ye}function je(_){if(fe.length)return fe.pop();if(L>=ye)return;let R=_?_.ignoreUnclosed:!1;switch(N=D.charCodeAt(L),N){case b:case y:case h:case g:case o:{O=L;do O+=1,N=D.charCodeAt(O);while(N===y||N===b||N===h||N===g||N===o);j=["space",D.slice(L,O)],L=O-1;break}case r:case u:case t:case n:case a:case f:case e:{let I=String.fromCharCode(N);j=[I,I,L];break}case c:{if(ue=re.length?re.pop()[1]:"",W=D.charCodeAt(L+1),ue==="url"&&W!==i&&W!==T&&W!==y&&W!==b&&W!==h&&W!==o&&W!==g){O=L;do{if(F=!1,O=D.indexOf(")",O+1),O===-1)if(E||R){O=L;break}else xe("bracket");for(G=O;D.charCodeAt(G-1)===w;)G-=1,F=!F}while(F);j=["brackets",D.slice(L,O+1),L,O],L=O}else O=D.indexOf(")",L+1),C=D.slice(L,O+1),O===-1||s.test(C)?j=["(","(",L]:(j=["brackets",C,L,O],L=O);break}case i:case T:{B=N===i?"'":'"',O=L;do{if(F=!1,O=D.indexOf(B,O+1),O===-1)if(E||R){O=L+1;break}else xe("string");for(G=O;D.charCodeAt(G-1)===w;)G-=1,F=!F}while(F);j=["string",D.slice(L,O+1),L,O],L=O;break}case x:{m.lastIndex=L+1,m.test(D),m.lastIndex===0?O=D.length-1:O=m.lastIndex-2,j=["at-word",D.slice(L,O+1),L,O],L=O;break}case w:{for(O=L,P=!0;D.charCodeAt(O+1)===w;)O+=1,P=!P;if(N=D.charCodeAt(O+1),P&&N!==p&&N!==y&&N!==b&&N!==h&&N!==g&&N!==o&&(O+=1,v.test(D.charAt(O)))){for(;v.test(D.charAt(O+1));)O+=1;D.charCodeAt(O+1)===y&&(O+=1)}j=["word",D.slice(L,O+1),L,O],L=O;break}default:{N===p&&D.charCodeAt(L+1)===d?(O=D.indexOf("*/",L+2)+1,O===0&&(E||R?O=D.length:xe("comment")),j=["comment",D.slice(L,O+1),L,O],L=O):(l.lastIndex=L+1,l.test(D),l.lastIndex===0?O=D.length-1:O=l.lastIndex-2,j=["word",D.slice(L,O+1),L,O],re.push(j),L=O);break}}return L++,j}function Te(_){fe.push(_)}return{back:Te,endOfFile:Be,nextToken:je,position:Se}},ft}var dt,_u;function gr(){if(_u)return dt;_u=1;let i=Et(),T=Le(),w=Me(),p=we(),b=Nt(),y=mr();const o={empty:!0,space:!0};function h(r){for(let u=r.length-1;u>=0;u--){let c=r[u],e=c[3]||c[2];if(e)return e}}class g{constructor(u){this.input=u,this.root=new p,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let c=new i;c.name=u[1].slice(1),c.name===""&&this.unnamedAtrule(c,u),this.init(c,u[2]);let e,t,n,f=!1,d=!1,a=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),e=u[0],e==="("||e==="["?x.push(e==="("?")":"]"):e==="{"&&x.length>0?x.push("}"):e===x[x.length-1]&&x.pop(),x.length===0)if(e===";"){c.source.end=this.getPosition(u[2]),c.source.end.offset++,this.semicolon=!0;break}else if(e==="{"){d=!0;break}else if(e==="}"){if(a.length>0){for(n=a.length-1,t=a[n];t&&t[0]==="space";)t=a[--n];t&&(c.source.end=this.getPosition(t[3]||t[2]),c.source.end.offset++)}this.end(u);break}else a.push(u);else a.push(u);if(this.tokenizer.endOfFile()){f=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(c.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(c,"params",a),f&&(u=a[a.length-1],c.source.end=this.getPosition(u[3]||u[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),d&&(c.nodes=[],this.current=c)}checkMissedSemicolon(u){let c=this.colon(u);if(c===!1)return;let e=0,t;for(let n=c-1;n>=0&&(t=u[n],!(t[0]!=="space"&&(e+=1,e===2)));n--);throw this.input.error("Missed semicolon",t[0]==="word"?t[3]+1:t[2])}colon(u){let c=0,e,t,n;for(let[f,d]of u.entries()){if(t=d,n=t[0],n==="("&&(c+=1),n===")"&&(c-=1),c===0&&n===":")if(!e)this.doubleColon(t);else{if(e[0]==="word"&&e[1]==="progid")continue;return f}e=t}return!1}comment(u){let c=new T;this.init(c,u[2]),c.source.end=this.getPosition(u[3]||u[2]),c.source.end.offset++;let e=u[1].slice(2,-2);if(/^\s*$/.test(e))c.text="",c.raws.left=e,c.raws.right="";else{let t=e.match(/^(\s*)([^]*\S)(\s*)$/);c.text=t[2],c.raws.left=t[1],c.raws.right=t[3]}}createTokenizer(){this.tokenizer=y(this.input)}decl(u,c){let e=new w;this.init(e,u[0][2]);let t=u[u.length-1];for(t[0]===";"&&(this.semicolon=!0,u.pop()),e.source.end=this.getPosition(t[3]||t[2]||h(u)),e.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),e.raws.before+=u.shift()[1];for(e.source.start=this.getPosition(u[0][2]),e.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;e.prop+=u.shift()[1]}e.raws.between="";let n;for(;u.length;)if(n=u.shift(),n[0]===":"){e.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),e.raws.between+=n[1];(e.prop[0]==="_"||e.prop[0]==="*")&&(e.raws.before+=e.prop[0],e.prop=e.prop.slice(1));let f=[],d;for(;u.length&&(d=u[0][0],!(d!=="space"&&d!=="comment"));)f.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(n=u[x],n[1].toLowerCase()==="!important"){e.important=!0;let m=this.stringFrom(u,x);m=this.spacesFromEnd(u)+m,m!==" !important"&&(e.raws.important=m);break}else if(n[1].toLowerCase()==="important"){let m=u.slice(0),l="";for(let s=x;s>0;s--){let v=m[s][0];if(l.trim().startsWith("!")&&v!=="space")break;l=m.pop()[1]+l}l.trim().startsWith("!")&&(e.important=!0,e.raws.important=l,u=m)}if(n[0]!=="space"&&n[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(e.raws.between+=f.map(x=>x[1]).join(""),f=[]),this.raw(e,"value",f.concat(u),c),e.value.includes(":")&&!c&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let c=new b;this.init(c,u[2]),c.selector="",c.raws.between="",this.current=c}end(u){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(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(u[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(u){let c=this.input.fromOffset(u);return{column:c.col,line:c.line,offset:u}}init(u,c){this.current.push(u),u.source={input:this.input,start:this.getPosition(c)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let c=!1,e=null,t=!1,n=null,f=[],d=u[1].startsWith("--"),a=[],x=u;for(;x;){if(e=x[0],a.push(x),e==="("||e==="[")n||(n=x),f.push(e==="("?")":"]");else if(d&&t&&e==="{")n||(n=x),f.push("}");else if(f.length===0)if(e===";")if(t){this.decl(a,d);return}else break;else if(e==="{"){this.rule(a);return}else if(e==="}"){this.tokenizer.back(a.pop()),c=!0;break}else e===":"&&(t=!0);else e===f[f.length-1]&&(f.pop(),f.length===0&&(n=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),f.length>0&&this.unclosedBracket(n),c&&t){if(!d)for(;a.length&&(x=a[a.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,d)}else this.unknownWord(a)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,c,e,t){let n,f,d=e.length,a="",x=!0,m,l;for(let s=0;s<d;s+=1)n=e[s],f=n[0],f==="space"&&s===d-1&&!t?x=!1:f==="comment"?(l=e[s-1]?e[s-1][0]:"empty",m=e[s+1]?e[s+1][0]:"empty",!o[l]&&!o[m]?a.slice(-1)===","?x=!1:a+=n[1]:x=!1):a+=n[1];if(!x){let s=e.reduce((v,S)=>v+S[1],"");u.raws[c]={raw:s,value:a}}u[c]=a}rule(u){u.pop();let c=new b;this.init(c,u[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(c,"selector",u),this.current=c}spacesAndCommentsFromEnd(u){let c,e="";for(;u.length&&(c=u[u.length-1][0],!(c!=="space"&&c!=="comment"));)e=u.pop()[1]+e;return e}spacesAndCommentsFromStart(u){let c,e="";for(;u.length&&(c=u[0][0],!(c!=="space"&&c!=="comment"));)e+=u.shift()[1];return e}spacesFromEnd(u){let c,e="";for(;u.length&&(c=u[u.length-1][0],c==="space");)e=u.pop()[1]+e;return e}stringFrom(u,c){let e="";for(let t=c;t<u.length;t++)e+=u[t][1];return u.splice(c,u.length-c),e}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word "+u[0][1],{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return dt=g,dt}var ht,Iu;function Ot(){if(Iu)return ht;Iu=1;let i=ge(),T=ke(),w=gr();function p(b,y){let o=new T(b,y),h=new w(o);try{h.parse()}catch(g){throw g}return h.root}return ht=p,p.default=p,i.registerParse(p),ht}var bt,qu;function Gu(){if(qu)return bt;qu=1;class i{constructor(w,p={}){if(this.type="warning",this.text=w,p.node&&p.node.source){let b=p.node.rangeBy(p);this.line=b.start.line,this.column=b.start.column,this.endLine=b.end.line,this.endColumn=b.end.column}for(let b in p)this[b]=p[b]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return bt=i,i.default=i,bt}var pt,Cu;function _t(){if(Cu)return pt;Cu=1;let i=Gu();class T{get content(){return this.css}constructor(p,b,y){this.processor=p,this.messages=[],this.root=b,this.opts=y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(p,b={}){b.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(b.plugin=this.lastPlugin.postcssPlugin);let y=new i(p,b);return this.messages.push(y),y}warnings(){return this.messages.filter(p=>p.type==="warning")}}return pt=T,T.default=T,pt}var mt,Du;function Wu(){if(Du)return mt;Du=1;let i=ge(),T=At(),w=zu(),p=Ot(),b=_t(),y=we(),o=Re(),{isClean:h,my:g}=Tt();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},e=0;function t(m){return typeof m=="object"&&typeof m.then=="function"}function n(m){let l=!1,s=r[m.type];return m.type==="decl"?l=m.prop.toLowerCase():m.type==="atrule"&&(l=m.name.toLowerCase()),l&&m.append?[s,s+"-"+l,e,s+"Exit",s+"Exit-"+l]:l?[s,s+"-"+l,s+"Exit",s+"Exit-"+l]:m.append?[s,e,s+"Exit"]:[s,s+"Exit"]}function f(m){let l;return m.type==="document"?l=["Document",e,"DocumentExit"]:m.type==="root"?l=["Root",e,"RootExit"]:l=n(m),{eventIndex:0,events:l,iterator:0,node:m,visitorIndex:0,visitors:[]}}function d(m){return m[h]=!1,m.nodes&&m.nodes.forEach(l=>d(l)),m}let a={};class x{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(l,s,v){this.stringified=!1,this.processed=!1;let S;if(typeof s=="object"&&s!==null&&(s.type==="root"||s.type==="document"))S=d(s);else if(s instanceof x||s instanceof b)S=d(s.root),s.map&&(typeof v.map>"u"&&(v.map={}),v.map.inline||(v.map.inline=!1),v.map.prev=s.map);else{let A=p;v.syntax&&(A=v.syntax.parse),v.parser&&(A=v.parser),A.parse&&(A=A.parse);try{S=A(s,v)}catch(q){this.processed=!0,this.error=q}S&&!S[g]&&i.rebuild(S)}this.result=new b(l,S,v),this.helpers={...a,postcss:a,result:this.result},this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?{...A,...A.prepare(this.result)}:A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(l,s){let v=this.result.lastPlugin;try{s&&s.addToError(l),this.error=l,l.name==="CssSyntaxError"&&!l.plugin?(l.plugin=v.postcssPlugin,l.setMessage()):v.postcssVersion}catch(S){console&&console.error&&console.error(S)}return l}prepareVisitors(){this.listeners={};let l=(s,v,S)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([s,S])};for(let s of this.plugins)if(typeof s=="object")for(let v in s){if(!u[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[v])if(typeof s[v]=="object")for(let S in s[v])S==="*"?l(s,v,s[v][S]):l(s,v+"-"+S.toLowerCase(),s[v][S]);else typeof s[v]=="function"&&l(s,v,s[v])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let l=0;l<this.plugins.length;l++){let s=this.plugins[l],v=this.runOnRoot(s);if(t(v))try{await v}catch(S){throw this.handleError(S)}}if(this.prepareVisitors(),this.hasListener){let l=this.result.root;for(;!l[h];){l[h]=!0;let s=[f(l)];for(;s.length>0;){let v=this.visitTick(s);if(t(v))try{await v}catch(S){let A=s[s.length-1].node;throw this.handleError(S,A)}}}if(this.listeners.OnceExit)for(let[s,v]of this.listeners.OnceExit){this.result.lastPlugin=s;try{if(l.type==="document"){let S=l.nodes.map(A=>v(A,this.helpers));await Promise.all(S)}else await v(l,this.helpers)}catch(S){throw this.handleError(S)}}}return this.processed=!0,this.stringify()}runOnRoot(l){this.result.lastPlugin=l;try{if(typeof l=="object"&&l.Once){if(this.result.root.type==="document"){let s=this.result.root.nodes.map(v=>l.Once(v,this.helpers));return t(s[0])?Promise.all(s):s}return l.Once(this.result.root,this.helpers)}else if(typeof l=="function")return l(this.result.root,this.result)}catch(s){throw this.handleError(s)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let l=this.result.opts,s=o;l.syntax&&(s=l.syntax.stringify),l.stringifier&&(s=l.stringifier),s.stringify&&(s=s.stringify);let S=new w(s,this.result.root,this.result.opts).generate();return this.result.css=S[0],this.result.map=S[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let l of this.plugins){let s=this.runOnRoot(l);if(t(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let l=this.result.root;for(;!l[h];)l[h]=!0,this.walkSync(l);if(this.listeners.OnceExit)if(l.type==="document")for(let s of l.nodes)this.visitSync(this.listeners.OnceExit,s);else this.visitSync(this.listeners.OnceExit,l)}return this.result}then(l,s){return this.async().then(l,s)}toString(){return this.css}visitSync(l,s){for(let[v,S]of l){this.result.lastPlugin=v;let A;try{A=S(s,this.helpers)}catch(q){throw this.handleError(q,s.proxyOf)}if(s.type!=="root"&&s.type!=="document"&&!s.parent)return!0;if(t(A))throw this.getAsyncError()}}visitTick(l){let s=l[l.length-1],{node:v,visitors:S}=s;if(v.type!=="root"&&v.type!=="document"&&!v.parent){l.pop();return}if(S.length>0&&s.visitorIndex<S.length){let[q,D]=S[s.visitorIndex];s.visitorIndex+=1,s.visitorIndex===S.length&&(s.visitors=[],s.visitorIndex=0),this.result.lastPlugin=q;try{return D(v.toProxy(),this.helpers)}catch(E){throw this.handleError(E,v)}}if(s.iterator!==0){let q=s.iterator,D;for(;D=v.nodes[v.indexes[q]];)if(v.indexes[q]+=1,!D[h]){D[h]=!0,l.push(f(D));return}s.iterator=0,delete v.indexes[q]}let A=s.events;for(;s.eventIndex<A.length;){let q=A[s.eventIndex];if(s.eventIndex+=1,q===e){v.nodes&&v.nodes.length&&(v[h]=!0,s.iterator=v.getIterator());return}else if(this.listeners[q]){s.visitors=this.listeners[q];return}}l.pop()}walkSync(l){l[h]=!0;let s=n(l);for(let v of s)if(v===e)l.nodes&&l.each(S=>{S[h]||this.walkSync(S)});else{let S=this.listeners[v];if(S&&this.visitSync(S,l.toProxy()))return}}warnings(){return this.sync().warnings()}}return x.registerPostcss=m=>{a=m},mt=x,x.default=x,y.registerLazyResult(x),T.registerLazyResult(x),mt}var gt,Ru;function yr(){if(Ru)return gt;Ru=1;let i=zu(),T=Ot();const w=_t();let p=Re();class b{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let o,h=T;try{o=h(this._css,this._opts)}catch(g){this.error=g}if(this.error)throw this.error;return this._root=o,o}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(o,h,g){h=h.toString(),this.stringified=!1,this._processor=o,this._css=h,this._opts=g,this._map=void 0;let r,u=p;this.result=new w(this._processor,r,this._opts),this.result.css=h;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let e=new i(u,r,this._opts,h);if(e.isMap()){let[t,n]=e.generate();t&&(this.result.css=t),n&&(this.result.map=n)}else e.clearAnnotation(),this.result.css=e.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(o){return this.async().catch(o)}finally(o){return this.async().then(o,o)}sync(){if(this.error)throw this.error;return this.result}then(o,h){return this.async().then(o,h)}toString(){return this._css}warnings(){return[]}}return gt=b,b.default=b,gt}var yt,Pu;function xr(){if(Pu)return yt;Pu=1;let i=At(),T=Wu(),w=yr(),p=we();class b{constructor(o=[]){this.version="8.5.3",this.plugins=this.normalize(o)}normalize(o){let h=[];for(let g of o)if(g.postcss===!0?g=g():g.postcss&&(g=g.postcss),typeof g=="object"&&Array.isArray(g.plugins))h=h.concat(g.plugins);else if(typeof g=="object"&&g.postcssPlugin)h.push(g);else if(typeof g=="function")h.push(g);else if(!(typeof g=="object"&&(g.parse||g.stringify)))throw new Error(g+" is not a PostCSS plugin");return h}process(o,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new w(this,o,h):new T(this,o,h)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return yt=b,b.default=b,p.registerProcessor(b),i.registerProcessor(b),yt}var xt,Lu;function vr(){if(Lu)return xt;Lu=1;var i={};let T=Et(),w=Le(),p=ge(),b=St(),y=Me(),o=At(),h=pr(),g=ke(),r=Wu(),u=Vu(),c=Pe(),e=Ot(),t=xr(),n=_t(),f=we(),d=Nt(),a=Re(),x=Gu();function m(...l){return l.length===1&&Array.isArray(l[0])&&(l=l[0]),new t(l)}return m.plugin=function(s,v){let S=!1;function A(...D){console&&console.warn&&!S&&(S=!0,console.warn(s+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),i.LANG&&i.LANG.startsWith("cn")&&console.warn(s+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let E=v(...D);return E.postcssPlugin=s,E.postcssVersion=new t().version,E}let q;return Object.defineProperty(A,"postcss",{get(){return q||(q=A()),q}}),A.process=function(D,E,N){return m([A(N)]).process(D,E)},A},m.stringify=a,m.parse=e,m.fromJSON=h,m.list=u,m.comment=l=>new w(l),m.atRule=l=>new T(l),m.decl=l=>new y(l),m.rule=l=>new d(l),m.root=l=>new f(l),m.document=l=>new o(l),m.CssSyntaxError=b,m.Declaration=y,m.Container=p,m.Processor=t,m.Document=o,m.Comment=w,m.Warning=x,m.AtRule=T,m.Result=n,m.Input=g,m.Rule=d,m.Root=f,m.Node=c,r.registerPostcss(m),xt=m,m.default=m,xt}var vt,Mu;function wr(){if(Mu)return vt;Mu=1;const i=sr(),T=or(),{isPlainObject:w}=cr(),p=lr(),b=dr(),{parse:y}=vr(),o=["img","audio","video","picture","svg","object","map","iframe","embed"],h=["script","style"];function g(d,a){d&&Object.keys(d).forEach(function(x){a(d[x],x)})}function r(d,a){return{}.hasOwnProperty.call(d,a)}function u(d,a){const x=[];return g(d,function(m){a(m)&&x.push(m)}),x}function c(d){for(const a in d)if(r(d,a))return!1;return!0}function e(d){return d.map(function(a){if(!a.url)throw new Error("URL missing");return a.url+(a.w?` ${a.w}w`:"")+(a.h?` ${a.h}h`:"")+(a.d?` ${a.d}x`:"")}).join(", ")}vt=n;const t=/^[^\0\t\n\f\r /<=>]+$/;function n(d,a,x){if(d==null)return"";typeof d=="number"&&(d=d.toString());let m="",l="";function s(_,R){const I=this;this.tag=_,this.attribs=R||{},this.tagPosition=m.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(B.length){const M=B[B.length-1];M.text+=I.text}},this.updateParentNodeMediaChildren=function(){B.length&&o.includes(this.tag)&&B[B.length-1].mediaChildren.push(this.tag)}}a=Object.assign({},n.defaults,a),a.parser=Object.assign({},f,a.parser);const v=function(_){return a.allowedTags===!1||(a.allowedTags||[]).indexOf(_)>-1};h.forEach(function(_){v(_)&&!a.allowVulnerableTags&&console.warn(`

⚠️ Your \`allowedTags\` option includes, \`${_}\`, which is inherently
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
Or, to disable this warning, add the \`allowVulnerableTags\` option
and ensure you are accounting for this risk.

`)});const S=a.nonTextTags||["script","style","textarea","option"];let A,q;a.allowedAttributes&&(A={},q={},g(a.allowedAttributes,function(_,R){A[R]=[];const I=[];_.forEach(function(M){typeof M=="string"&&M.indexOf("*")>=0?I.push(T(M).replace(/\\\*/g,".*")):A[R].push(M)}),I.length&&(q[R]=new RegExp("^("+I.join("|")+")$"))}));const D={},E={},N={};g(a.allowedClasses,function(_,R){if(A&&(r(A,R)||(A[R]=[]),A[R].push("class")),D[R]=_,Array.isArray(_)){const I=[];D[R]=[],N[R]=[],_.forEach(function(M){typeof M=="string"&&M.indexOf("*")>=0?I.push(T(M).replace(/\\\*/g,".*")):M instanceof RegExp?N[R].push(M):D[R].push(M)}),I.length&&(E[R]=new RegExp("^("+I.join("|")+")$"))}});const C={};let P;g(a.transformTags,function(_,R){let I;typeof _=="function"?I=_:typeof _=="string"&&(I=n.simpleTransform(_)),R==="*"?P=I:C[R]=I});let O,B,j,F,G,W,ue=!1;L();const ye=new i.Parser({onopentag:function(_,R){if(a.onOpenTag&&a.onOpenTag(_,R),a.enforceHtmlBoundary&&_==="html"&&L(),G){W++;return}const I=new s(_,R);B.push(I);let M=!1;const $=!!I.text;let X;if(r(C,_)&&(X=C[_](_,R),I.attribs=R=X.attribs,X.text!==void 0&&(I.innerText=X.text),_!==X.tagName&&(I.name=_=X.tagName,F[O]=X.tagName)),P&&(X=P(_,R),I.attribs=R=X.attribs,_!==X.tagName&&(I.name=_=X.tagName,F[O]=X.tagName)),(!v(_)||a.disallowedTagsMode==="recursiveEscape"&&!c(j)||a.nestingLimit!=null&&O>=a.nestingLimit)&&(M=!0,j[O]=!0,(a.disallowedTagsMode==="discard"||a.disallowedTagsMode==="completelyDiscard")&&S.indexOf(_)!==-1&&(G=!0,W=1)),O++,M){if(a.disallowedTagsMode==="discard"||a.disallowedTagsMode==="completelyDiscard"){if(I.innerText&&!$){const z=re(I.innerText);a.textFilter?m+=a.textFilter(z,_):m+=z,ue=!0}return}l=m,m=""}m+="<"+_,_==="script"&&(a.allowedScriptHostnames||a.allowedScriptDomains)&&(I.innerText=""),(!A||r(A,_)||A["*"])&&g(R,function(z,V){if(!t.test(V)){delete I.attribs[V];return}if(z===""&&!a.allowedEmptyAttributes.includes(V)&&(a.nonBooleanAttributes.includes(V)||a.nonBooleanAttributes.includes("*"))){delete I.attribs[V];return}let Ue=!1;if(!A||r(A,_)&&A[_].indexOf(V)!==-1||A["*"]&&A["*"].indexOf(V)!==-1||r(q,_)&&q[_].test(V)||q["*"]&&q["*"].test(V))Ue=!0;else if(A&&A[_]){for(const U of A[_])if(w(U)&&U.name&&U.name===V){Ue=!0;let H="";if(U.multiple===!0){const de=z.split(" ");for(const ne of de)U.values.indexOf(ne)!==-1&&(H===""?H=ne:H+=" "+ne)}else U.values.indexOf(z)>=0&&(H=z);z=H}}if(Ue){if(a.allowedSchemesAppliedToAttributes.indexOf(V)!==-1&&fe(_,z)){delete I.attribs[V];return}if(_==="script"&&V==="src"){let U=!0;try{const H=Se(z);if(a.allowedScriptHostnames||a.allowedScriptDomains){const de=(a.allowedScriptHostnames||[]).find(function(J){return J===H.url.hostname}),ne=(a.allowedScriptDomains||[]).find(function(J){return H.url.hostname===J||H.url.hostname.endsWith(`.${J}`)});U=de||ne}}catch{U=!1}if(!U){delete I.attribs[V];return}}if(_==="iframe"&&V==="src"){let U=!0;try{const H=Se(z);if(H.isRelativeUrl)U=r(a,"allowIframeRelativeUrls")?a.allowIframeRelativeUrls:!a.allowedIframeHostnames&&!a.allowedIframeDomains;else if(a.allowedIframeHostnames||a.allowedIframeDomains){const de=(a.allowedIframeHostnames||[]).find(function(J){return J===H.url.hostname}),ne=(a.allowedIframeDomains||[]).find(function(J){return H.url.hostname===J||H.url.hostname.endsWith(`.${J}`)});U=de||ne}}catch{U=!1}if(!U){delete I.attribs[V];return}}if(V==="srcset")try{let U=b(z);if(U.forEach(function(H){fe("srcset",H.url)&&(H.evil=!0)}),U=u(U,function(H){return!H.evil}),U.length)z=e(u(U,function(H){return!H.evil})),I.attribs[V]=z;else{delete I.attribs[V];return}}catch{delete I.attribs[V];return}if(V==="class"){const U=D[_],H=D["*"],de=E[_],ne=N[_],J=N["*"],$u=E["*"],It=[de,$u].concat(ne,J).filter(function(Xu){return Xu});if(U&&H?z=Te(z,p(U,H),It):z=Te(z,U||H,It),!z.length){delete I.attribs[V];return}}if(V==="style"){if(a.parseStyleAttributes)try{const U=y(_+" {"+z+"}",{map:!1}),H=xe(U,a.allowedStyles);if(z=Be(H),z.length===0){delete I.attribs[V];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+_+" {"+z+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete I.attribs[V];return}else if(a.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}m+=" "+V,z&&z.length?m+='="'+re(z,!0)+'"':a.allowedEmptyAttributes.includes(V)&&(m+='=""')}else delete I.attribs[V]}),a.selfClosing.indexOf(_)!==-1?m+=" />":(m+=">",I.innerText&&!$&&!a.textFilter&&(m+=re(I.innerText),ue=!0)),M&&(m=l+re(m),l=""),I.openingTagLength=m.length-I.tagPosition},ontext:function(_){if(G)return;const R=B[B.length-1];let I;if(R&&(I=R.tag,_=R.innerText!==void 0?R.innerText:_),a.disallowedTagsMode==="completelyDiscard"&&!v(I))_="";else if((a.disallowedTagsMode==="discard"||a.disallowedTagsMode==="completelyDiscard")&&(I==="script"||I==="style"))m+=_;else if(!ue){const M=re(_,!1);a.textFilter?m+=a.textFilter(M,I):m+=M}if(B.length){const M=B[B.length-1];M.text+=_}},onclosetag:function(_,R){if(a.onCloseTag&&a.onCloseTag(_,R),G)if(W--,!W)G=!1;else return;const I=B.pop();if(!I)return;if(I.tag!==_){B.push(I);return}G=a.enforceHtmlBoundary?_==="html":!1,O--;const M=j[O];if(M){if(delete j[O],a.disallowedTagsMode==="discard"||a.disallowedTagsMode==="completelyDiscard"){I.updateParentNodeText();return}l=m,m=""}if(F[O]&&(_=F[O],delete F[O]),a.exclusiveFilter){const $=a.exclusiveFilter(I);if($==="excludeTag"){M&&(m=l,l=""),m=m.substring(0,I.tagPosition)+m.substring(I.tagPosition+I.openingTagLength);return}else if($){m=m.substring(0,I.tagPosition);return}}if(I.updateParentNodeMediaChildren(),I.updateParentNodeText(),a.selfClosing.indexOf(_)!==-1||R&&!v(_)&&["escape","recursiveEscape"].indexOf(a.disallowedTagsMode)>=0){M&&(m=l,l="");return}m+="</"+_+">",M&&(m=l+re(m),l=""),ue=!1}},a.parser);return ye.write(d),ye.end(),m;function L(){m="",O=0,B=[],j={},F={},G=!1,W=0}function re(_,R){return typeof _!="string"&&(_=_+""),a.parser.decodeEntities&&(_=_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),R&&(_=_.replace(/"/g,"&quot;"))),_=_.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),R&&(_=_.replace(/"/g,"&quot;")),_}function fe(_,R){for(R=R.replace(/[\x00-\x20]+/g,"");;){const $=R.indexOf("<!--");if($===-1)break;const X=R.indexOf("-->",$+4);if(X===-1)break;R=R.substring(0,$)+R.substring(X+3)}const I=R.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!I)return R.match(/^[/\\]{2}/)?!a.allowProtocolRelative:!1;const M=I[1].toLowerCase();return r(a.allowedSchemesByTag,_)?a.allowedSchemesByTag[_].indexOf(M)===-1:!a.allowedSchemes||a.allowedSchemes.indexOf(M)===-1}function Se(_){if(_=_.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),_.startsWith("relative:"))throw new Error("relative: exploit attempt");let R="relative://relative-site";for(let $=0;$<100;$++)R+=`/${$}`;const I=new URL(_,R);return{isRelativeUrl:I&&I.hostname==="relative-site"&&I.protocol==="relative:",url:I}}function xe(_,R){if(!R)return _;const I=_.nodes[0];let M;return R[I.selector]&&R["*"]?M=p(R[I.selector],R["*"]):M=R[I.selector]||R["*"],M&&(_.nodes[0].nodes=I.nodes.reduce(je(M),[])),_}function Be(_){return _.nodes[0].nodes.reduce(function(R,I){return R.push(`${I.prop}:${I.value}${I.important?" !important":""}`),R},[]).join(";")}function je(_){return function(R,I){return r(_,I.prop)&&_[I.prop].some(function($){return $.test(I.value)})&&R.push(I),R}}function Te(_,R,I){return R?(_=_.split(/\s+/),_.filter(function(M){return R.indexOf(M)!==-1||I.some(function($){return $.test(M)})}).join(" ")):_}}const f={decodeEntities:!0};return n.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},n.simpleTransform=function(d,a,x){return x=x===void 0?!0:x,a=a||{},function(m,l){let s;if(x)for(s in a)l[s]=a[s];else l=a;return{tagName:d,attribs:l}}},vt}var Sr=wr();const Er=Qu(Sr);export{Er as o};
