From c344e4d72327640a8b743a6cc4b0ce1691bace4b Mon Sep 17 00:00:00 2001 From: Leonardo Date: Fri, 11 Feb 2022 18:59:49 -0300 Subject: [PATCH] Prepare for v0.2.0 release. --- .npmignore | 3 ++- dist/vue-sanitize-directive.esm.js | 2 +- dist/vue-sanitize-directive.umd.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.npmignore b/.npmignore index 0bd3623..2d42d2b 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1,2 @@ -/docs-src/ +docs-src/ +.editorconfig diff --git a/dist/vue-sanitize-directive.esm.js b/dist/vue-sanitize-directive.esm.js index 5755554..14eda34 100644 --- a/dist/vue-sanitize-directive.esm.js +++ b/dist/vue-sanitize-directive.esm.js @@ -5,4 +5,4 @@ var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?windo * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -function xr(t){return"[object Object]"===Object.prototype.toString.call(t)}Object.defineProperty(wr,"__esModule",{value:!0}),wr.isPlainObject=function(t){var e,r;return!1!==xr(t)&&(void 0===(e=t.constructor)||!1!==xr(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))};var Sr=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===_r}(t)}(t)};var _r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Tr(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Ar((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function Cr(t,e,r){return t.concat(e).map((function(t){return Tr(t,r)}))}function Or(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function kr(t,e){try{return e in t}catch(t){return!1}}function Er(t,e,r){var n={};return r.isMergeableObject(t)&&Or(t).forEach((function(e){n[e]=Tr(t[e],r)})),Or(e).forEach((function(i){(function(t,e){return kr(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(kr(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return Ar;var r=e.customMerge(t);return"function"==typeof r?r:Ar}(i,r)(t[i],e[i],r):n[i]=Tr(e[i],r))})),n}function Ar(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Cr,r.isMergeableObject=r.isMergeableObject||Sr,r.cloneUnlessOtherwiseSpecified=Tr;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):Er(t,e,r):Tr(e,r)}Ar.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Ar(t,r,e)}),{})};var Dr,Pr=Ar,Lr={exports:{}};Dr=Lr,function(t,e){Dr.exports?Dr.exports=e():t.parseSrcset=e()}(t,(function(){return function(t){function e(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}function r(e){var r,n=e.exec(t.substring(m));if(n)return r=n[0],m+=r.length,r}for(var n,i,s,o,a,l=t.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,d=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(r(u),m>=l)return g;n=r(h),i=[],","===n.slice(-1)?(n=n.replace(p,""),y()):b()}function b(){for(r(c),s="",o="in descriptor";;){if(a=t.charAt(m),"in descriptor"===o)if(e(a))s&&(i.push(s),s="",o="after descriptor");else{if(","===a)return m+=1,s&&i.push(s),void y();if("("===a)s+=a,o="in parens";else{if(""===a)return s&&i.push(s),void y();s+=a}}else if("in parens"===o)if(")"===a)s+=a,o="in descriptor";else{if(""===a)return i.push(s),void y();s+=a}else if("after descriptor"===o)if(e(a));else{if(""===a)return void y();o="in descriptor",m-=1}m+=1}}function y(){var e,r,s,o,a,l,c,u,h,p=!1,m={};for(o=0;o",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=Ir.isColorSupported),Rr&&t&&(e=Rr(e));let r,n,i=e.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),a=String(o).length;if(t){let{bold:t,red:e,gray:i}=Ir.createColors(!0);r=r=>t(e(r)),n=t=>i(t)}else r=n=t=>t;return i.slice(s,o).map(((t,e)=>{let i=s+1+e,o=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let e=n(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+t+"\n "+e+r("^")}return" "+n(o)+t})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}var Ur=Br;Br.default=Br;var Hr={};Hr.isClean=Symbol("isClean"),Hr.my=Symbol("my");const Fr={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class Vr{constructor(t){this.builder=t}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}document(t){this.body(t)}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}comment(t){let e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){let r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=t.raws.important||" !important"),e&&(n+=";"),this.builder(n,t)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}atrule(t,e){let r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{let i=(t.raws.between||"")+(e?";":"");this.builder(r+n+i,t)}}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let r=this.raw(t,"semicolon");for(let n=0;n{if(n=t.raws[e],void 0!==n)return!1}))}var o;return void 0===n&&(n=Fr[r]),s.rawCache[r]=n,n}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&void 0!==r.raws.before){let t=r.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawBeforeComment(t,e){let r;return t.walkComments((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){let r;return t.walkDecls((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(t){let e;return t.walk((r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return e=r.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}beforeAfter(t,e){let r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");let n=t.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;tKr(t,r))):("object"===s&&null!==i&&(i=Kr(i)),r[n]=i)}return r}class tn{constructor(t={}){this.raws={},this[Xr]=!1,this[Yr]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let r of t[e])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[e]=t[e]}error(t,e={}){if(this.source){let{start:r,end:n}=this.rangeBy(e);return this.source.input.error(t,{line:r.line,column:r.column},{line:n.line,column:n.column},e)}return new Jr(t)}warn(t,e,r){let n={node:this};for(let t in r)n[t]=r[t];return t.warn(e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(t=Qr){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}assign(t={}){for(let e in t)this[e]=t[e];return this}clone(t={}){let e=Kr(this);for(let r in t)e[r]=t[r];return e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}replaceWith(...t){if(this.parent){let e=this,r=!1;for(let n of t)n===this?r=!0:r?(this.parent.insertAfter(e,n),e=n):this.parent.insertBefore(e,n);r||this.remove()}return this}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}before(t){return this.parent.insertBefore(this,t),this}after(t){return this.parent.insertAfter(this,t),this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}raw(t,e){return(new Zr).raw(this,t,e)}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}toJSON(t,e){let r={},n=null==e;e=e||new Map;let i=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let n=this[t];if(Array.isArray(n))r[t]=n.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof n&&n.toJSON)r[t]=n.toJSON(null,e);else if("source"===t){let s=e.get(n.input);null==s&&(s=i,e.set(n.input,i),i++),r[t]={inputId:s,start:n.start,end:n.end}}else r[t]=n}return n&&(r.inputs=[...e.keys()].map((t=>t.toJSON()))),r}positionInside(t){let e=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0),get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}markDirty(){if(this[Xr]){this[Xr]=!1;let t=this;for(;t=t.parent;)t[Xr]=!1}}get proxyOf(){return this}}var en=tn;tn.default=tn;let rn=en;class nn extends rn{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var sn=nn;nn.default=nn;var on={nanoid:(t=21)=>{let e="",r=t;for(;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e)=>()=>{let r="",n=e;for(;n--;)r+=t[Math.random()*t.length|0];return r}};let{SourceMapConsumer:an,SourceMapGenerator:ln}=jr,{existsSync:cn,readFileSync:un}=jr,{dirname:hn,join:pn}=jr;class dn{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=e.map?e.map.prev:void 0,n=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=hn(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new an(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(t,e){return!!t&&t.substr(0,e.length)===e}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let r=t.lastIndexOf(e.pop()),n=t.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,n)))}decodeInline(t){if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var e;let r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(t){if(this.root=hn(t),cn(t))return this.mapFile=t,un(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof an)return ln.fromSourceMap(e).toString();if(e instanceof ln)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let r=e(t);if(r){let t=this.loadFile(r);if(!t)throw new Error("Unable to load previous source map: "+r.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=pn(hn(t),e)),this.loadFile(e)}}}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}}var fn=dn;dn.default=dn;let{SourceMapConsumer:mn,SourceMapGenerator:gn}=jr,{fileURLToPath:bn,pathToFileURL:yn}=jr,{resolve:vn,isAbsolute:wn}=jr,{nanoid:xn}=on,Sn=jr,_n=Ur,Tn=fn,Cn=Symbol("fromOffsetCache"),On=Boolean(mn&&gn),kn=Boolean(vn&&wn);class En{constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!kn||/^\w+:\/\//.test(e.from)||wn(e.from)?this.file=e.from:this.file=vn(e.from)),kn&&On){let t=new Tn(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}fromOffset(t){let e,r;if(this[Cn])r=this[Cn];else{let t=this.css.split("\n");r=new Array(t.length);let e=0;for(let n=0,i=t.length;n=e)n=r.length-1;else{let e,i=r.length-2;for(;n>1),t=r[e+1])){n=e;break}n=e+1}}return{line:n+1,col:t-r[n]+1}}error(t,e,r,n={}){let i,s,o;if(e&&"object"==typeof e){let t=e,n=r;if("number"==typeof e.offset){let n=this.fromOffset(t.offset);e=n.line,r=n.col}else e=t.line,r=t.column;if("number"==typeof n.offset){let t=this.fromOffset(n.offset);s=t.line,o=t.col}else s=n.line,o=n.column}else if(!r){let t=this.fromOffset(e);e=t.line,r=t.col}let a=this.origin(e,r,s,o);return i=a?new _n(t,void 0===a.endLine?a.line:{line:a.line,column:a.column},void 0===a.endLine?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,n.plugin):new _n(t,void 0===s?e:{line:e,column:r},void 0===s?r:{line:s,column:o},this.css,this.file,n.plugin),i.input={line:e,column:r,endLine:s,endColumn:o,source:this.css},this.file&&(yn&&(i.input.url=yn(this.file).toString()),i.input.file=this.file),i}origin(t,e,r,n){if(!this.map)return!1;let i,s,o=this.map.consumer(),a=o.originalPositionFor({line:t,column:e});if(!a.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({line:r,column:n})),s=wn(a.source)?yn(a.source):new URL(a.source,this.map.consumer().sourceRoot||yn(this.map.mapFile));let l={url:s.toString(),line:a.line,column:a.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===s.protocol){if(!bn)throw new Error("file: protocol is not available in this PostCSS build");l.file=bn(s)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}mapResolve(t){return/^\w+:\/\//.test(t)?t:vn(this.map.consumer().sourceRoot||this.map.root||".",t)}get from(){return this.file||this.id}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}var An=En;En.default=En,Sn&&Sn.registerInput&&Sn.registerInput(En);let{SourceMapConsumer:Dn,SourceMapGenerator:Pn}=jr,{dirname:Ln,resolve:Mn,relative:qn,sep:Nn}=jr,{pathToFileURL:jn}=jr,In=An,Rn=Boolean(Dn&&Pn),Bn=Boolean(Ln&&Mn&&qn&&Nn);var Un=class{constructor(t,e,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new In(this.css,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let r=e.source.input.from;r&&!t[r]&&(t[r]=!0,this.map.setSourceContent(this.toUrl(this.path(r)),e.source.input.css))}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(t,this.css)}}applyPrevMaps(){for(let t of this.previous()){let e,r=this.toUrl(this.path(t.file)),n=t.root||Ln(t.file);!1===this.mapOpts.sourcesContent?(e=new Dn(t.text),e.sourcesContent&&(e.sourcesContent=e.sourcesContent.map((()=>null)))):e=t.consumer(),this.map.applySourceMap(e,r,this.toUrl(this.path(n)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}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(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Pn.fromSourceMap(t)}else this.map=new Pn({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(t){if(0===t.indexOf("<"))return t;if(/^\w+:\/\//.test(t))return t;if(this.mapOpts.absolute)return t;let e=this.opts.to?Ln(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(e=Ln(Mn(e,this.mapOpts.annotation))),t=qn(e,t)}toUrl(t){return"\\"===Nn&&(t=t.replace(/\\/g,"/")),encodeURI(t).replace(/[#?]/g,encodeURIComponent)}sourcePath(t){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(jn)return jn(t.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(t.source.input.from))}generateString(){this.css="",this.map=new Pn({file:this.outputFile()});let t,e,r=1,n=1,i="",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),t=o.match(/\n/g),t?(r+=t.length,e=o.lastIndexOf("\n"),n=o.length-e):n+=o.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"!==a.type||a!==t.last||t.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),Bn&&Rn&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}};let Hn=en;class Fn extends Hn{constructor(t){super(t),this.type="comment"}}var Vn=Fn;Fn.default=Fn;let zn,Gn,$n,{isClean:Wn,my:Xn}=Hr,Yn=sn,Jn=Vn,Zn=en;function Qn(t){return t.map((t=>(t.nodes&&(t.nodes=Qn(t.nodes)),delete t.source,t)))}function Kn(t){if(t[Wn]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Kn(e)}class ti extends Zn{push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}each(t){if(!this.proxyOf.nodes)return;let e,r,n=this.getIterator();for(;this.indexes[n]{let n;try{n=t(e,r)}catch(t){throw e.addToError(t)}return!1!==n&&e.walk&&(n=e.walk(t)),n}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&t.test(r.prop))return e(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("decl"===t.type)return e(t,r)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&t.test(r.selector))return e(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("rule"===t.type)return e(t,r)})))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&t.test(r.name))return e(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("atrule"===t.type)return e(t,r)})))}walkComments(t){return this.walk(((e,r)=>{if("comment"===e.type)return t(e,r)}))}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}insertBefore(t,e){let r,n=0===(t=this.index(t))&&"prepend",i=this.normalize(e,this.proxyOf.nodes[t],n).reverse();for(let e of i)this.proxyOf.nodes.splice(t,0,e);for(let e in this.indexes)r=this.indexes[e],t<=r&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertAfter(t,e){t=this.index(t);let r,n=this.normalize(e,this.proxyOf.nodes[t]).reverse();for(let e of n)this.proxyOf.nodes.splice(t+1,0,e);for(let e in this.indexes)r=this.indexes[e],t=t&&(this.indexes[r]=e-1);return this.markDirty(),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls((n=>{e.props&&!e.props.includes(n.prop)||e.fast&&!n.value.includes(e.fast)||(n.value=n.value.replace(t,r))})),this.markDirty(),this}every(t){return this.nodes.every(t)}some(t){return this.nodes.some(t)}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}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(t,e){if("string"==typeof t)t=Qn(zn(t).nodes);else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Yn(t)]}else if(t.selector)t=[new Gn(t)];else if(t.name)t=[new $n(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Jn(t)]}return t.map((t=>(t[Xn]||ti.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Wn]&&Kn(t),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this,t)))}getProxyProcessor(){return{set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0),get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...r)=>t[e](...r.map((t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))):"every"===e||"some"===e?r=>t[e](((t,...e)=>r(t.toProxy(),...e))):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}}ti.registerParse=t=>{zn=t},ti.registerRule=t=>{Gn=t},ti.registerAtRule=t=>{$n=t};var ei=ti;ti.default=ti,ti.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,$n.prototype):"rule"===t.type?Object.setPrototypeOf(t,Gn.prototype):"decl"===t.type?Object.setPrototypeOf(t,Yn.prototype):"comment"===t.type&&Object.setPrototypeOf(t,Jn.prototype),t[Xn]=!0,t.nodes&&t.nodes.forEach((t=>{ti.rebuild(t)}))};let ri,ni,ii=ei;class si extends ii{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new ri(new ni,this,t).stringify()}}si.registerLazyResult=t=>{ri=t},si.registerProcessor=t=>{ni=t};var oi=si;si.default=si;let ai={};var li=function(t){ai[t]||(ai[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))};class ci{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}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}}var ui=ci;ci.default=ci;let hi=ui;class pi{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let r=new hi(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var di=pi;pi.default=pi;const fi="'".charCodeAt(0),mi='"'.charCodeAt(0),gi="\\".charCodeAt(0),bi="/".charCodeAt(0),yi="\n".charCodeAt(0),vi=" ".charCodeAt(0),wi="\f".charCodeAt(0),xi="\t".charCodeAt(0),Si="\r".charCodeAt(0),_i="[".charCodeAt(0),Ti="]".charCodeAt(0),Ci="(".charCodeAt(0),Oi=")".charCodeAt(0),ki="{".charCodeAt(0),Ei="}".charCodeAt(0),Ai=";".charCodeAt(0),Di="*".charCodeAt(0),Pi=":".charCodeAt(0),Li="@".charCodeAt(0),Mi=/[\t\n\f\r "#'()/;[\\\]{}]/g,qi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ni=/.[\n"'(/\\]/,ji=/[\da-f]/i;let Ii=ei;class Ri extends Ii{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}var Bi=Ri;Ri.default=Ri,Ii.registerAtRule(Ri);let Ui,Hi,Fi=ei;class Vi extends Fi{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}removeChild(t,e){let r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}normalize(t,e,r){let n=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of n)t.raws.before=e.raws.before;return n}toResult(t={}){return new Ui(new Hi,this,t).stringify()}}Vi.registerLazyResult=t=>{Ui=t},Vi.registerProcessor=t=>{Hi=t};var zi=Vi;Vi.default=Vi;let Gi={split(t,e,r){let n=[],i="",s=!1,o=0,a=!1,l=!1;for(let r of t)l?l=!1:"\\"===r?l=!0:a?r===a&&(a=!1):'"'===r||"'"===r?a=r:"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&e.includes(r)&&(s=!0),s?(""!==i&&n.push(i.trim()),i="",s=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n},space:t=>Gi.split(t,[" ","\n","\t"]),comma:t=>Gi.split(t,[","],!0)};var $i=Gi;Gi.default=Gi;let Wi=ei,Xi=$i;class Yi extends Wi{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Xi.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}}var Ji=Yi;Yi.default=Yi,Wi.registerRule(Yi);let Zi=sn,Qi=function(t,e={}){let r,n,i,s,o,a,l,c,u,h,p=t.css.valueOf(),d=e.ignoreErrors,f=p.length,m=0,g=[],b=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(t){b.push(t)},nextToken:function(t){if(b.length)return b.pop();if(m>=f)return;let e=!!t&&t.ignoreUnclosed;switch(r=p.charCodeAt(m),r){case yi:case vi:case xi:case Si:case wi:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===vi||r===yi||r===xi||r===Si||r===wi);h=["space",p.slice(m,n)],m=n-1;break;case _i:case Ti:case ki:case Ei:case Pi:case Ai:case Oi:{let t=String.fromCharCode(r);h=[t,t,m];break}case Ci:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==fi&&u!==mi&&u!==vi&&u!==yi&&u!==xi&&u!==wi&&u!==Si){n=m;do{if(a=!1,n=p.indexOf(")",n+1),-1===n){if(d||e){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===gi;)l-=1,a=!a}while(a);h=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),s=p.slice(m,n+1),-1===n||Ni.test(s)?h=["(","(",m]:(h=["brackets",s,m,n],m=n);break;case fi:case mi:i=r===fi?"'":'"',n=m;do{if(a=!1,n=p.indexOf(i,n+1),-1===n){if(d||e){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===gi;)l-=1,a=!a}while(a);h=["string",p.slice(m,n+1),m,n],m=n;break;case Li:Mi.lastIndex=m+1,Mi.test(p),n=0===Mi.lastIndex?p.length-1:Mi.lastIndex-2,h=["at-word",p.slice(m,n+1),m,n],m=n;break;case gi:for(n=m,o=!0;p.charCodeAt(n+1)===gi;)n+=1,o=!o;if(r=p.charCodeAt(n+1),o&&r!==bi&&r!==vi&&r!==yi&&r!==xi&&r!==Si&&r!==wi&&(n+=1,ji.test(p.charAt(n)))){for(;ji.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===vi&&(n+=1)}h=["word",p.slice(m,n+1),m,n],m=n;break;default:r===bi&&p.charCodeAt(m+1)===Di?(n=p.indexOf("*/",m+2)+1,0===n&&(d||e?n=p.length:y("comment")),h=["comment",p.slice(m,n+1),m,n],m=n):(qi.lastIndex=m+1,qi.test(p),n=0===qi.lastIndex?p.length-1:qi.lastIndex-2,h=["word",p.slice(m,n+1),m,n],g.push(h),m=n)}return m++,h},endOfFile:function(){return 0===b.length&&m>=f},position:function(){return m}}},Ki=Vn,ts=Bi,es=zi,rs=Ji;var ns=class{constructor(t){this.input=t,this.root=new es,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Qi(this.input)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}comment(t){let e=new Ki;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]);let r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{let t=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}emptyRule(t){let e=new rs;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}other(t){let e=!1,r=null,n=!1,i=null,s=[],o=t[1].startsWith("--"),a=[],l=t;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=l),s.push("}");else if(0===s.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(n=!0)}else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),s.length>0&&this.unclosedBracket(i),e&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}rule(t){t.pop();let e=new rs;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}decl(t,e){let r=new Zi;this.init(r,t[0][2]);let n,i=t[t.length-1];for(";"===i[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(i[3]||i[2]);"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(n=t.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,o=[];for(;t.length&&(s=t[0][0],"space"===s||"comment"===s);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(n=t[e],"!important"===n[1].toLowerCase()){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n," !important"!==n&&(r.raws.important=n);break}if("important"===n[1].toLowerCase()){let n=t.slice(0),i="";for(let t=e;t>0;t--){let e=n[t][0];if(0===i.trim().indexOf("!")&&"space"!==e)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(r.important=!0,r.raws.important=i,t=n)}if("space"!==n[0]&&"comment"!==n[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(r.raws.between+=o.map((t=>t[1])).join(""),o=[]),this.raw(r,"value",o.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}atrule(t){let e,r,n,i=new ts;i.name=t[1].slice(1),""===i.name&&this.unnamedAtrule(i,t),this.init(i,t[2]);let s=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?l.push("("===e?")":"]"):"{"===e&&l.length>0?l.push("}"):e===l[l.length-1]&&l.pop(),0===l.length){if(";"===e){i.source.end=this.getPosition(t[2]),this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]))}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),s&&(t=a[a.length-1],i.source.end=this.getPosition(t[3]||t[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{offset:t,line:e.line,column:e.col}}init(t,e){this.current.push(t),t.source={start:this.getPosition(e),input:this.input},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}raw(t,e,r,n){let i,s,o,a,l=r.length,c="",u=!0;for(let t=0;tt+e[1]),"");t.raws[e]={value:c,raw:n}}t[e]=c}spacesAndCommentsFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let e,r="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)r=t.pop()[1]+r;return r}stringFrom(t,e){let r="";for(let n=e;n=0&&(r=t[i],"space"===r[0]||(n+=1,2!==n));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}};let is=ei,ss=ns,os=An;function as(t,e){let r=new os(t,e),n=new ss(r);try{n.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return n.root}var ls=as;as.default=as,is.registerParse(as);let{isClean:cs,my:us}=Hr,hs=Un,ps=Wr,ds=ei,fs=oi,ms=li,gs=di,bs=ls,ys=zi;const vs={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},ws={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},xs={postcssPlugin:!0,prepare:!0,Once:!0};function Ss(t){return"object"==typeof t&&"function"==typeof t.then}function _s(t){let e=!1,r=vs[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Ts(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:_s(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Cs(t){return t[cs]=!1,t.nodes&&t.nodes.forEach((t=>Cs(t))),t}let Os={};class ks{constructor(t,e,r){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof ks||e instanceof gs)n=Cs(e.root),e.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{let t=bs;r.syntax&&(t=r.syntax.parse),r.parser&&(t=r.parser),t.parse&&(t=t.parse);try{n=t(e,r)}catch(t){this.processed=!0,this.error=t}n&&!n[us]&&ds.rebuild(n)}else n=Cs(e);this.result=new gs(t,n,r),this.helpers={...Os,result:this.result,postcss:Os},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}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(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||ms("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}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 t of this.plugins){if(Ss(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[cs];)t[cs]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=ps;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let r=new hs(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}walkSync(t){t[cs]=!0;let e=_s(t);for(let r of e)if(0===r)t.nodes&&t.each((t=>{t[cs]||this.walkSync(t)}));else{let e=this.listeners[r];if(e&&this.visitSync(e,t.toProxy()))return}}visitSync(t,e){for(let[r,n]of t){let t;this.result.lastPlugin=r;try{t=n(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Ss(t))throw this.getAsyncError()}}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return Ss(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let t=r.postcssPlugin,e=r.postcssVersion,n=this.result.processor.version,i=e.split("."),s=n.split(".");(i[0]!==s[0]||parseInt(i[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}async runAsync(){this.plugin=0;for(let t=0;t0;){let t=this.visitTick(e);if(Ss(t))try{await t}catch(t){let r=e[e.length-1].node;throw this.handleError(t,r)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>r(t,this.helpers)));await Promise.all(e)}else await r(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(let e of this.plugins)if("object"==typeof e)for(let r in e){if(!ws[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!xs[r])if("object"==typeof e[r])for(let n in e[r])t(e,"*"===n?r:r+"-"+n.toLowerCase(),e[r][n]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(t){let e=t[t.length-1],{node:r,visitors:n}=e;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(n.length>0&&e.visitorIndex{Os=t};var Es=ks;ks.default=ks,ys.registerLazyResult(ks),fs.registerLazyResult(ks);let As=Un,Ds=Wr,Ps=li,Ls=ls;const Ms=di;class qs{constructor(t,e,r){let n;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;let i=Ds;this.result=new Ms(this._processor,n,this._opts),this.result.css=e;let s=this;Object.defineProperty(this.result,"root",{get:()=>s.root});let o=new As(i,n,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}}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 t,e=Ls;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Ps("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var Ns=qs;qs.default=qs;let js=Ns,Is=Es,Rs=oi,Bs=zi;class Us{constructor(t=[]){this.version="8.4.6",this.plugins=this.normalize(t)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}process(t,e={}){return 0===this.plugins.length&&void 0===e.parser&&void 0===e.stringifier&&void 0===e.syntax?new js(this,t,e):new Is(this,t,e)}normalize(t){let e=[];for(let r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}}var Hs=Us;Us.default=Us,Bs.registerProcessor(Us),Rs.registerProcessor(Us);let Fs=sn,Vs=fn,zs=Vn,Gs=Bi,$s=An,Ws=zi,Xs=Ji;function Ys(t,e){if(Array.isArray(t))return t.map((t=>Ys(t)));let{inputs:r,...n}=t;if(r){e=[];for(let t of r){let r={...t,__proto__:$s.prototype};r.map&&(r.map={...r.map,__proto__:Vs.prototype}),e.push(r)}}if(n.nodes&&(n.nodes=t.nodes.map((t=>Ys(t,e)))),n.source){let{inputId:t,...r}=n.source;n.source=r,null!=t&&(n.source.input=e[t])}if("root"===n.type)return new Ws(n);if("decl"===n.type)return new Fs(n);if("rule"===n.type)return new Xs(n);if("comment"===n.type)return new zs(n);if("atrule"===n.type)return new Gs(n);throw new Error("Unknown node type: "+t.type)}var Js=Ys;Ys.default=Ys;let Zs=Ur,Qs=sn,Ks=Es,to=ei,eo=Hs,ro=Wr,no=Js,io=oi,so=ui,oo=Vn,ao=Bi,lo=di,co=An,uo=ls,ho=$i,po=Ji,fo=zi,mo=en;function go(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new eo(t)}go.plugin=function(t,e){function r(...r){let n=e(...r);return n.postcssPlugin=t,n.postcssVersion=(new eo).version,n}let n;return console&&console.warn&&(console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(t,e,n){return go([r(n)]).process(t,e)},r},go.stringify=ro,go.parse=uo,go.fromJSON=no,go.list=ho,go.comment=t=>new oo(t),go.atRule=t=>new ao(t),go.decl=t=>new Qs(t),go.rule=t=>new po(t),go.root=t=>new fo(t),go.document=t=>new io(t),go.CssSyntaxError=Zs,go.Declaration=Qs,go.Container=to,go.Processor=eo,go.Document=io,go.Comment=oo,go.Warning=so,go.AtRule=ao,go.Result=lo,go.Input=co,go.Rule=po,go.Root=fo,go.Node=mo,Ks.registerPostcss(go);var bo=go;go.default=go;const yo=r,vo=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},{isPlainObject:wo}=wr,xo=Pr,So=Lr.exports,{parse:_o}=bo,To=["img","audio","video","picture","svg","object","map","iframe","embed"],Co=["script","style"];function Oo(t,e){t&&Object.keys(t).forEach((function(r){e(t[r],r)}))}function ko(t,e){return{}.hasOwnProperty.call(t,e)}function Eo(t,e){const r=[];return Oo(t,(function(t){e(t)&&r.push(t)})),r}var Ao=Po;const Do=/^[^\0\t\n\f\r /<=>]+$/;function Po(t,e,r){if(null==t)return"";let n="",i="";function s(t,e){const r=this;this.tag=t,this.attribs=e||{},this.tagPosition=n.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(m.length){m[m.length-1].text+=r.text}},this.updateParentNodeMediaChildren=function(){if(m.length&&To.includes(this.tag)){m[m.length-1].mediaChildren.push(this.tag)}}}(e=Object.assign({},Po.defaults,e)).parser=Object.assign({},Lo,e.parser),Co.forEach((function(t){e.allowedTags&&e.allowedTags.indexOf(t)>-1&&!e.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${t}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},Oo(e.allowedAttributes,(function(t,e){a[e]=[];const r=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?r.push(vo(t).replace(/\\\*/g,".*")):a[e].push(t)})),r.length&&(l[e]=new RegExp("^("+r.join("|")+")$"))})));const c={},u={},h={};Oo(e.allowedClasses,(function(t,e){a&&(ko(a,e)||(a[e]=[]),a[e].push("class")),c[e]=[],h[e]=[];const r=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?r.push(vo(t).replace(/\\\*/g,".*")):t instanceof RegExp?h[e].push(t):c[e].push(t)})),r.length&&(u[e]=new RegExp("^("+r.join("|")+")$"))}));const p={};let d,f,m,g,b,y,v;Oo(e.transformTags,(function(t,e){let r;"function"==typeof t?r=t:"string"==typeof t&&(r=Po.simpleTransform(t)),"*"===e?d=r:p[e]=r}));let w=!1;S();const x=new yo.Parser({onopentag:function(t,r){if(e.enforceHtmlBoundary&&"html"===t&&S(),y)return void v++;const x=new s(t,r);m.push(x);let O=!1;const k=!!x.text;let E;if(ko(p,t)&&(E=p[t](t,r),x.attribs=r=E.attribs,void 0!==E.text&&(x.innerText=E.text),t!==E.tagName&&(x.name=t=E.tagName,b[f]=E.tagName)),d&&(E=d(t,r),x.attribs=r=E.attribs,t!==E.tagName&&(x.name=t=E.tagName,b[f]=E.tagName)),(e.allowedTags&&-1===e.allowedTags.indexOf(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(ko(t,e))return!1;return!0}(g)||null!=e.nestingLimit&&f>=e.nestingLimit)&&(O=!0,g[f]=!0,"discard"===e.disallowedTagsMode&&-1!==o.indexOf(t)&&(y=!0,v=1),g[f]=!0),f++,O){if("discard"===e.disallowedTagsMode)return;i=n,n=""}n+="<"+t,"script"===t&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(x.innerText=""),(!a||ko(a,t)||a["*"])&&Oo(r,(function(r,i){if(!Do.test(i))return void delete x.attribs[i];let s,o=!1;if(!a||ko(a,t)&&-1!==a[t].indexOf(i)||a["*"]&&-1!==a["*"].indexOf(i)||ko(l,t)&&l[t].test(i)||l["*"]&&l["*"].test(i))o=!0;else if(a&&a[t])for(const e of a[t])if(wo(e)&&e.name&&e.name===i){o=!0;let t="";if(!0===e.multiple){const n=r.split(" ");for(const r of n)-1!==e.values.indexOf(r)&&(""===t?t=r:t+=" "+r)}else e.values.indexOf(r)>=0&&(t=r);r=t}if(o){if(-1!==e.allowedSchemesAppliedToAttributes.indexOf(i)&&T(t,r))return void delete x.attribs[i];if("script"===t&&"src"===i){let t=!0;try{const n=new URL(r);if(e.allowedScriptHostnames||e.allowedScriptDomains){const r=(e.allowedScriptHostnames||[]).find((function(t){return t===n.hostname})),i=(e.allowedScriptDomains||[]).find((function(t){return n.hostname===t||n.hostname.endsWith(`.${t}`)}));t=r||i}}catch(e){t=!1}if(!t)return void delete x.attribs[i]}if("iframe"===t&&"src"===i){let t=!0;try{if((r=r.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let n="relative://relative-site";for(let t=0;t<100;t++)n+=`/${t}`;const i=new URL(r,n);if(i&&"relative-site"===i.hostname&&"relative:"===i.protocol)t=ko(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const r=(e.allowedIframeHostnames||[]).find((function(t){return t===i.hostname})),n=(e.allowedIframeDomains||[]).find((function(t){return i.hostname===t||i.hostname.endsWith(`.${t}`)}));t=r||n}}catch(e){t=!1}if(!t)return void delete x.attribs[i]}if("srcset"===i)try{if(s=So(r),s.forEach((function(t){T("srcset",t.url)&&(t.evil=!0)})),s=Eo(s,(function(t){return!t.evil})),!s.length)return void delete x.attribs[i];r=Eo(s,(function(t){return!t.evil})).map((function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")})).join(", "),x.attribs[i]=r}catch(t){return void delete x.attribs[i]}if("class"===i){const e=c[t],n=c["*"],s=u[t],o=h[t],a=[s,u["*"]].concat(o).filter((function(t){return t}));if(!(r=C(r,e&&n?xo(e,n):e||n,a)).length)return void delete x.attribs[i]}if("style"===i)try{const n=function(t,e){if(!e)return t;const r=t.nodes[0];let n;n=e[r.selector]&&e["*"]?xo(e[r.selector],e["*"]):e[r.selector]||e["*"];n&&(t.nodes[0].nodes=r.nodes.reduce(function(t){return function(e,r){if(ko(t,r.prop)){t[r.prop].some((function(t){return t.test(r.value)}))&&e.push(r)}return e}}(n),[]));return t}(_o(t+" {"+r+"}"),e.allowedStyles);if(0===(r=function(t){return t.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")}(n)).length)return void delete x.attribs[i]}catch(t){return void delete x.attribs[i]}n+=" "+i,r&&r.length&&(n+='="'+_(r,!0)+'"')}else delete x.attribs[i]})),-1!==e.selfClosing.indexOf(t)?n+=" />":(n+=">",!x.innerText||k||e.textFilter||(n+=_(x.innerText),w=!0)),O&&(n=i+_(n),i="")},ontext:function(t){if(y)return;const r=m[m.length-1];let i;if(r&&(i=r.tag,t=void 0!==r.innerText?r.innerText:t),"discard"!==e.disallowedTagsMode||"script"!==i&&"style"!==i){const r=_(t,!1);e.textFilter&&!w?n+=e.textFilter(r,i):w||(n+=r)}else n+=t;if(m.length){m[m.length-1].text+=t}},onclosetag:function(t){if(y){if(v--,v)return;y=!1}const r=m.pop();if(!r)return;y=!!e.enforceHtmlBoundary&&"html"===t,f--;const s=g[f];if(s){if(delete g[f],"discard"===e.disallowedTagsMode)return void r.updateParentNodeText();i=n,n=""}b[f]&&(t=b[f],delete b[f]),e.exclusiveFilter&&e.exclusiveFilter(r)?n=n.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1===e.selfClosing.indexOf(t)?(n+="",s&&(n=i+_(n),i=""),w=!1):s&&(n=i,i=""))}},e.parser);return x.write(t),x.end(),n;function S(){n="",f=0,m=[],g={},b={},y=!1,v=0}function _(t,r){return"string"!=typeof t&&(t+=""),e.parser.decodeEntities&&(t=t.replace(/&/g,"&").replace(//g,">"),r&&(t=t.replace(/"/g,"""))),t=t.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),r&&(t=t.replace(/"/g,""")),t}function T(t,r){const n=(r=(r=r.replace(/[\x00-\x20]+/g,"")).replace(//g,"")).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!r.match(/^[/\\]{2}/)&&!e.allowProtocolRelative;const i=n[1].toLowerCase();return ko(e.allowedSchemesByTag,t)?-1===e.allowedSchemesByTag[t].indexOf(i):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(i)}function C(t,e,r){return e?(t=t.split(/\s+/)).filter((function(t){return-1!==e.indexOf(t)||r.some((function(e){return e.test(t)}))})).join(" "):t}}const Lo={decodeEntities:!0};Po.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","main","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"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},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},Po.simpleTransform=function(t,e,r){return r=void 0===r||r,e=e||{},function(n,i){let s;if(r)for(s in e)i[s]=e[s];else i=e;return{tagName:t,attribs:i}}};var Mo=Ao;const qo=Mo.defaults,No={allowedTags:["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"],allowedAttributes:{a:["href","name","target"],span:["style"]},allowedSchemes:["ftp","http","https","mailto"],selfClosing:["br"],parser:{decodeEntities:!0}},jo={allowedTags:!1,allowedAttributes:!1},Io={allowedTags:[],allowedAttributes:[]};function Ro(t,e){return Array.isArray(e)?{config:e[0],input:e[1]}:t.strip?{config:Io,input:e}:t.basic?{config:qo,input:e}:t.inline?{config:No,input:e}:t.nothing?{config:jo,input:e}:{config:qo,input:e}}function Bo(t,{modifiers:e,oldValue:r,value:n}){if(n!==r){const{config:r,input:i}=Ro(e,n);t.innerHTML=Mo(i,r)}}function Uo(t,{modifiers:e,value:r}){const{config:n,input:i}=Ro(e,r);t.data.domProps=t.data.domProps||{},t.data.domProps.innerHTML=Mo(i,n)}const Ho={getSSRProps:function({modifiers:t,value:e}){const{config:r,input:n}=Ro(t,e);return{innerHTML:Mo(n,r)}},inserted:Bo,mounted:Bo,update:Bo,updated:Bo};var Fo={install(t,{name:e="sanitize"}={}){t.directive(e,Ho)}};export{qo as FILTER_BASIC,No as FILTER_INLINE,jo as FILTER_NOTHING,Io as FILTER_STRIP,Fo as default,Ho as directive,Uo as directiveSSR}; +function xr(t){return"[object Object]"===Object.prototype.toString.call(t)}Object.defineProperty(wr,"__esModule",{value:!0}),wr.isPlainObject=function(t){var e,r;return!1!==xr(t)&&(void 0===(e=t.constructor)||!1!==xr(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))};var Sr=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===_r}(t)}(t)};var _r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Tr(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Ar((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function Cr(t,e,r){return t.concat(e).map((function(t){return Tr(t,r)}))}function Or(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function kr(t,e){try{return e in t}catch(t){return!1}}function Er(t,e,r){var n={};return r.isMergeableObject(t)&&Or(t).forEach((function(e){n[e]=Tr(t[e],r)})),Or(e).forEach((function(i){(function(t,e){return kr(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(kr(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return Ar;var r=e.customMerge(t);return"function"==typeof r?r:Ar}(i,r)(t[i],e[i],r):n[i]=Tr(e[i],r))})),n}function Ar(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Cr,r.isMergeableObject=r.isMergeableObject||Sr,r.cloneUnlessOtherwiseSpecified=Tr;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):Er(t,e,r):Tr(e,r)}Ar.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Ar(t,r,e)}),{})};var Dr,Pr=Ar,Lr={exports:{}};Dr=Lr,function(t,e){Dr.exports?Dr.exports=e():t.parseSrcset=e()}(t,(function(){return function(t){function e(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}function r(e){var r,n=e.exec(t.substring(m));if(n)return r=n[0],m+=r.length,r}for(var n,i,s,o,a,l=t.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,d=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(r(u),m>=l)return g;n=r(h),i=[],","===n.slice(-1)?(n=n.replace(p,""),y()):b()}function b(){for(r(c),s="",o="in descriptor";;){if(a=t.charAt(m),"in descriptor"===o)if(e(a))s&&(i.push(s),s="",o="after descriptor");else{if(","===a)return m+=1,s&&i.push(s),void y();if("("===a)s+=a,o="in parens";else{if(""===a)return s&&i.push(s),void y();s+=a}}else if("in parens"===o)if(")"===a)s+=a,o="in descriptor";else{if(""===a)return i.push(s),void y();s+=a}else if("after descriptor"===o)if(e(a));else{if(""===a)return void y();o="in descriptor",m-=1}m+=1}}function y(){var e,r,s,o,a,l,c,u,h,p=!1,m={};for(o=0;o",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=Ir.isColorSupported),Rr&&t&&(e=Rr(e));let r,n,i=e.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),a=String(o).length;if(t){let{bold:t,red:e,gray:i}=Ir.createColors(!0);r=r=>t(e(r)),n=t=>i(t)}else r=n=t=>t;return i.slice(s,o).map(((t,e)=>{let i=s+1+e,o=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let e=n(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+t+"\n "+e+r("^")}return" "+n(o)+t})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}var Ur=Br;Br.default=Br;var Hr={};Hr.isClean=Symbol("isClean"),Hr.my=Symbol("my");const Fr={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class Vr{constructor(t){this.builder=t}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}document(t){this.body(t)}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}comment(t){let e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){let r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=t.raws.important||" !important"),e&&(n+=";"),this.builder(n,t)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}atrule(t,e){let r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{let i=(t.raws.between||"")+(e?";":"");this.builder(r+n+i,t)}}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let r=this.raw(t,"semicolon");for(let n=0;n{if(n=t.raws[e],void 0!==n)return!1}))}var o;return void 0===n&&(n=Fr[r]),s.rawCache[r]=n,n}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&void 0!==r.raws.before){let t=r.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawBeforeComment(t,e){let r;return t.walkComments((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){let r;return t.walkDecls((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(t){let e;return t.walk((r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return e=r.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}beforeAfter(t,e){let r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");let n=t.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;tKr(t,r))):("object"===s&&null!==i&&(i=Kr(i)),r[n]=i)}return r}class tn{constructor(t={}){this.raws={},this[Xr]=!1,this[Yr]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let r of t[e])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[e]=t[e]}error(t,e={}){if(this.source){let{start:r,end:n}=this.rangeBy(e);return this.source.input.error(t,{line:r.line,column:r.column},{line:n.line,column:n.column},e)}return new Jr(t)}warn(t,e,r){let n={node:this};for(let t in r)n[t]=r[t];return t.warn(e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(t=Qr){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}assign(t={}){for(let e in t)this[e]=t[e];return this}clone(t={}){let e=Kr(this);for(let r in t)e[r]=t[r];return e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}replaceWith(...t){if(this.parent){let e=this,r=!1;for(let n of t)n===this?r=!0:r?(this.parent.insertAfter(e,n),e=n):this.parent.insertBefore(e,n);r||this.remove()}return this}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}before(t){return this.parent.insertBefore(this,t),this}after(t){return this.parent.insertAfter(this,t),this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}raw(t,e){return(new Zr).raw(this,t,e)}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}toJSON(t,e){let r={},n=null==e;e=e||new Map;let i=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let n=this[t];if(Array.isArray(n))r[t]=n.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof n&&n.toJSON)r[t]=n.toJSON(null,e);else if("source"===t){let s=e.get(n.input);null==s&&(s=i,e.set(n.input,i),i++),r[t]={inputId:s,start:n.start,end:n.end}}else r[t]=n}return n&&(r.inputs=[...e.keys()].map((t=>t.toJSON()))),r}positionInside(t){let e=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0),get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}markDirty(){if(this[Xr]){this[Xr]=!1;let t=this;for(;t=t.parent;)t[Xr]=!1}}get proxyOf(){return this}}var en=tn;tn.default=tn;let rn=en;class nn extends rn{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var sn=nn;nn.default=nn;var on={nanoid:(t=21)=>{let e="",r=t;for(;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e)=>()=>{let r="",n=e;for(;n--;)r+=t[Math.random()*t.length|0];return r}};let{SourceMapConsumer:an,SourceMapGenerator:ln}=jr,{existsSync:cn,readFileSync:un}=jr,{dirname:hn,join:pn}=jr;class dn{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=e.map?e.map.prev:void 0,n=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=hn(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new an(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(t,e){return!!t&&t.substr(0,e.length)===e}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let r=t.lastIndexOf(e.pop()),n=t.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,n)))}decodeInline(t){if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var e;let r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(t){if(this.root=hn(t),cn(t))return this.mapFile=t,un(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof an)return ln.fromSourceMap(e).toString();if(e instanceof ln)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let r=e(t);if(r){let t=this.loadFile(r);if(!t)throw new Error("Unable to load previous source map: "+r.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=pn(hn(t),e)),this.loadFile(e)}}}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}}var fn=dn;dn.default=dn;let{SourceMapConsumer:mn,SourceMapGenerator:gn}=jr,{fileURLToPath:bn,pathToFileURL:yn}=jr,{resolve:vn,isAbsolute:wn}=jr,{nanoid:xn}=on,Sn=jr,_n=Ur,Tn=fn,Cn=Symbol("fromOffsetCache"),On=Boolean(mn&&gn),kn=Boolean(vn&&wn);class En{constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!kn||/^\w+:\/\//.test(e.from)||wn(e.from)?this.file=e.from:this.file=vn(e.from)),kn&&On){let t=new Tn(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}fromOffset(t){let e,r;if(this[Cn])r=this[Cn];else{let t=this.css.split("\n");r=new Array(t.length);let e=0;for(let n=0,i=t.length;n=e)n=r.length-1;else{let e,i=r.length-2;for(;n>1),t=r[e+1])){n=e;break}n=e+1}}return{line:n+1,col:t-r[n]+1}}error(t,e,r,n={}){let i,s,o;if(e&&"object"==typeof e){let t=e,n=r;if("number"==typeof e.offset){let n=this.fromOffset(t.offset);e=n.line,r=n.col}else e=t.line,r=t.column;if("number"==typeof n.offset){let t=this.fromOffset(n.offset);s=t.line,o=t.col}else s=n.line,o=n.column}else if(!r){let t=this.fromOffset(e);e=t.line,r=t.col}let a=this.origin(e,r,s,o);return i=a?new _n(t,void 0===a.endLine?a.line:{line:a.line,column:a.column},void 0===a.endLine?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,n.plugin):new _n(t,void 0===s?e:{line:e,column:r},void 0===s?r:{line:s,column:o},this.css,this.file,n.plugin),i.input={line:e,column:r,endLine:s,endColumn:o,source:this.css},this.file&&(yn&&(i.input.url=yn(this.file).toString()),i.input.file=this.file),i}origin(t,e,r,n){if(!this.map)return!1;let i,s,o=this.map.consumer(),a=o.originalPositionFor({line:t,column:e});if(!a.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({line:r,column:n})),s=wn(a.source)?yn(a.source):new URL(a.source,this.map.consumer().sourceRoot||yn(this.map.mapFile));let l={url:s.toString(),line:a.line,column:a.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===s.protocol){if(!bn)throw new Error("file: protocol is not available in this PostCSS build");l.file=bn(s)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}mapResolve(t){return/^\w+:\/\//.test(t)?t:vn(this.map.consumer().sourceRoot||this.map.root||".",t)}get from(){return this.file||this.id}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}var An=En;En.default=En,Sn&&Sn.registerInput&&Sn.registerInput(En);let{SourceMapConsumer:Dn,SourceMapGenerator:Pn}=jr,{dirname:Ln,resolve:Mn,relative:qn,sep:Nn}=jr,{pathToFileURL:jn}=jr,In=An,Rn=Boolean(Dn&&Pn),Bn=Boolean(Ln&&Mn&&qn&&Nn);var Un=class{constructor(t,e,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new In(this.css,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let r=e.source.input.from;r&&!t[r]&&(t[r]=!0,this.map.setSourceContent(this.toUrl(this.path(r)),e.source.input.css))}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(t,this.css)}}applyPrevMaps(){for(let t of this.previous()){let e,r=this.toUrl(this.path(t.file)),n=t.root||Ln(t.file);!1===this.mapOpts.sourcesContent?(e=new Dn(t.text),e.sourcesContent&&(e.sourcesContent=e.sourcesContent.map((()=>null)))):e=t.consumer(),this.map.applySourceMap(e,r,this.toUrl(this.path(n)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}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(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Pn.fromSourceMap(t)}else this.map=new Pn({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(t){if(0===t.indexOf("<"))return t;if(/^\w+:\/\//.test(t))return t;if(this.mapOpts.absolute)return t;let e=this.opts.to?Ln(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(e=Ln(Mn(e,this.mapOpts.annotation))),t=qn(e,t)}toUrl(t){return"\\"===Nn&&(t=t.replace(/\\/g,"/")),encodeURI(t).replace(/[#?]/g,encodeURIComponent)}sourcePath(t){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(jn)return jn(t.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(t.source.input.from))}generateString(){this.css="",this.map=new Pn({file:this.outputFile()});let t,e,r=1,n=1,i="",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),t=o.match(/\n/g),t?(r+=t.length,e=o.lastIndexOf("\n"),n=o.length-e):n+=o.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"!==a.type||a!==t.last||t.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),Bn&&Rn&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}};let Hn=en;class Fn extends Hn{constructor(t){super(t),this.type="comment"}}var Vn=Fn;Fn.default=Fn;let zn,Gn,$n,{isClean:Wn,my:Xn}=Hr,Yn=sn,Jn=Vn,Zn=en;function Qn(t){return t.map((t=>(t.nodes&&(t.nodes=Qn(t.nodes)),delete t.source,t)))}function Kn(t){if(t[Wn]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Kn(e)}class ti extends Zn{push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}each(t){if(!this.proxyOf.nodes)return;let e,r,n=this.getIterator();for(;this.indexes[n]{let n;try{n=t(e,r)}catch(t){throw e.addToError(t)}return!1!==n&&e.walk&&(n=e.walk(t)),n}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&t.test(r.prop))return e(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("decl"===t.type)return e(t,r)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&t.test(r.selector))return e(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("rule"===t.type)return e(t,r)})))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&t.test(r.name))return e(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("atrule"===t.type)return e(t,r)})))}walkComments(t){return this.walk(((e,r)=>{if("comment"===e.type)return t(e,r)}))}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}insertBefore(t,e){let r,n=0===(t=this.index(t))&&"prepend",i=this.normalize(e,this.proxyOf.nodes[t],n).reverse();for(let e of i)this.proxyOf.nodes.splice(t,0,e);for(let e in this.indexes)r=this.indexes[e],t<=r&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertAfter(t,e){t=this.index(t);let r,n=this.normalize(e,this.proxyOf.nodes[t]).reverse();for(let e of n)this.proxyOf.nodes.splice(t+1,0,e);for(let e in this.indexes)r=this.indexes[e],t=t&&(this.indexes[r]=e-1);return this.markDirty(),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls((n=>{e.props&&!e.props.includes(n.prop)||e.fast&&!n.value.includes(e.fast)||(n.value=n.value.replace(t,r))})),this.markDirty(),this}every(t){return this.nodes.every(t)}some(t){return this.nodes.some(t)}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}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(t,e){if("string"==typeof t)t=Qn(zn(t).nodes);else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Yn(t)]}else if(t.selector)t=[new Gn(t)];else if(t.name)t=[new $n(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Jn(t)]}return t.map((t=>(t[Xn]||ti.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Wn]&&Kn(t),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this,t)))}getProxyProcessor(){return{set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0),get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...r)=>t[e](...r.map((t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))):"every"===e||"some"===e?r=>t[e](((t,...e)=>r(t.toProxy(),...e))):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}}ti.registerParse=t=>{zn=t},ti.registerRule=t=>{Gn=t},ti.registerAtRule=t=>{$n=t};var ei=ti;ti.default=ti,ti.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,$n.prototype):"rule"===t.type?Object.setPrototypeOf(t,Gn.prototype):"decl"===t.type?Object.setPrototypeOf(t,Yn.prototype):"comment"===t.type&&Object.setPrototypeOf(t,Jn.prototype),t[Xn]=!0,t.nodes&&t.nodes.forEach((t=>{ti.rebuild(t)}))};let ri,ni,ii=ei;class si extends ii{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new ri(new ni,this,t).stringify()}}si.registerLazyResult=t=>{ri=t},si.registerProcessor=t=>{ni=t};var oi=si;si.default=si;let ai={};var li=function(t){ai[t]||(ai[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))};class ci{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}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}}var ui=ci;ci.default=ci;let hi=ui;class pi{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let r=new hi(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var di=pi;pi.default=pi;const fi="'".charCodeAt(0),mi='"'.charCodeAt(0),gi="\\".charCodeAt(0),bi="/".charCodeAt(0),yi="\n".charCodeAt(0),vi=" ".charCodeAt(0),wi="\f".charCodeAt(0),xi="\t".charCodeAt(0),Si="\r".charCodeAt(0),_i="[".charCodeAt(0),Ti="]".charCodeAt(0),Ci="(".charCodeAt(0),Oi=")".charCodeAt(0),ki="{".charCodeAt(0),Ei="}".charCodeAt(0),Ai=";".charCodeAt(0),Di="*".charCodeAt(0),Pi=":".charCodeAt(0),Li="@".charCodeAt(0),Mi=/[\t\n\f\r "#'()/;[\\\]{}]/g,qi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ni=/.[\n"'(/\\]/,ji=/[\da-f]/i;let Ii=ei;class Ri extends Ii{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}var Bi=Ri;Ri.default=Ri,Ii.registerAtRule(Ri);let Ui,Hi,Fi=ei;class Vi extends Fi{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}removeChild(t,e){let r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}normalize(t,e,r){let n=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of n)t.raws.before=e.raws.before;return n}toResult(t={}){return new Ui(new Hi,this,t).stringify()}}Vi.registerLazyResult=t=>{Ui=t},Vi.registerProcessor=t=>{Hi=t};var zi=Vi;Vi.default=Vi;let Gi={split(t,e,r){let n=[],i="",s=!1,o=0,a=!1,l=!1;for(let r of t)l?l=!1:"\\"===r?l=!0:a?r===a&&(a=!1):'"'===r||"'"===r?a=r:"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&e.includes(r)&&(s=!0),s?(""!==i&&n.push(i.trim()),i="",s=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n},space:t=>Gi.split(t,[" ","\n","\t"]),comma:t=>Gi.split(t,[","],!0)};var $i=Gi;Gi.default=Gi;let Wi=ei,Xi=$i;class Yi extends Wi{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Xi.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}}var Ji=Yi;Yi.default=Yi,Wi.registerRule(Yi);let Zi=sn,Qi=function(t,e={}){let r,n,i,s,o,a,l,c,u,h,p=t.css.valueOf(),d=e.ignoreErrors,f=p.length,m=0,g=[],b=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(t){b.push(t)},nextToken:function(t){if(b.length)return b.pop();if(m>=f)return;let e=!!t&&t.ignoreUnclosed;switch(r=p.charCodeAt(m),r){case yi:case vi:case xi:case Si:case wi:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===vi||r===yi||r===xi||r===Si||r===wi);h=["space",p.slice(m,n)],m=n-1;break;case _i:case Ti:case ki:case Ei:case Pi:case Ai:case Oi:{let t=String.fromCharCode(r);h=[t,t,m];break}case Ci:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==fi&&u!==mi&&u!==vi&&u!==yi&&u!==xi&&u!==wi&&u!==Si){n=m;do{if(a=!1,n=p.indexOf(")",n+1),-1===n){if(d||e){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===gi;)l-=1,a=!a}while(a);h=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),s=p.slice(m,n+1),-1===n||Ni.test(s)?h=["(","(",m]:(h=["brackets",s,m,n],m=n);break;case fi:case mi:i=r===fi?"'":'"',n=m;do{if(a=!1,n=p.indexOf(i,n+1),-1===n){if(d||e){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===gi;)l-=1,a=!a}while(a);h=["string",p.slice(m,n+1),m,n],m=n;break;case Li:Mi.lastIndex=m+1,Mi.test(p),n=0===Mi.lastIndex?p.length-1:Mi.lastIndex-2,h=["at-word",p.slice(m,n+1),m,n],m=n;break;case gi:for(n=m,o=!0;p.charCodeAt(n+1)===gi;)n+=1,o=!o;if(r=p.charCodeAt(n+1),o&&r!==bi&&r!==vi&&r!==yi&&r!==xi&&r!==Si&&r!==wi&&(n+=1,ji.test(p.charAt(n)))){for(;ji.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===vi&&(n+=1)}h=["word",p.slice(m,n+1),m,n],m=n;break;default:r===bi&&p.charCodeAt(m+1)===Di?(n=p.indexOf("*/",m+2)+1,0===n&&(d||e?n=p.length:y("comment")),h=["comment",p.slice(m,n+1),m,n],m=n):(qi.lastIndex=m+1,qi.test(p),n=0===qi.lastIndex?p.length-1:qi.lastIndex-2,h=["word",p.slice(m,n+1),m,n],g.push(h),m=n)}return m++,h},endOfFile:function(){return 0===b.length&&m>=f},position:function(){return m}}},Ki=Vn,ts=Bi,es=zi,rs=Ji;var ns=class{constructor(t){this.input=t,this.root=new es,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Qi(this.input)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}comment(t){let e=new Ki;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]);let r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{let t=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}emptyRule(t){let e=new rs;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}other(t){let e=!1,r=null,n=!1,i=null,s=[],o=t[1].startsWith("--"),a=[],l=t;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=l),s.push("}");else if(0===s.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(n=!0)}else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),s.length>0&&this.unclosedBracket(i),e&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}rule(t){t.pop();let e=new rs;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}decl(t,e){let r=new Zi;this.init(r,t[0][2]);let n,i=t[t.length-1];for(";"===i[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(i[3]||i[2]);"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(n=t.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,o=[];for(;t.length&&(s=t[0][0],"space"===s||"comment"===s);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(n=t[e],"!important"===n[1].toLowerCase()){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n," !important"!==n&&(r.raws.important=n);break}if("important"===n[1].toLowerCase()){let n=t.slice(0),i="";for(let t=e;t>0;t--){let e=n[t][0];if(0===i.trim().indexOf("!")&&"space"!==e)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(r.important=!0,r.raws.important=i,t=n)}if("space"!==n[0]&&"comment"!==n[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(r.raws.between+=o.map((t=>t[1])).join(""),o=[]),this.raw(r,"value",o.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}atrule(t){let e,r,n,i=new ts;i.name=t[1].slice(1),""===i.name&&this.unnamedAtrule(i,t),this.init(i,t[2]);let s=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?l.push("("===e?")":"]"):"{"===e&&l.length>0?l.push("}"):e===l[l.length-1]&&l.pop(),0===l.length){if(";"===e){i.source.end=this.getPosition(t[2]),this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]))}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),s&&(t=a[a.length-1],i.source.end=this.getPosition(t[3]||t[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{offset:t,line:e.line,column:e.col}}init(t,e){this.current.push(t),t.source={start:this.getPosition(e),input:this.input},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}raw(t,e,r,n){let i,s,o,a,l=r.length,c="",u=!0;for(let t=0;tt+e[1]),"");t.raws[e]={value:c,raw:n}}t[e]=c}spacesAndCommentsFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let e,r="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)r=t.pop()[1]+r;return r}stringFrom(t,e){let r="";for(let n=e;n=0&&(r=t[i],"space"===r[0]||(n+=1,2!==n));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}};let is=ei,ss=ns,os=An;function as(t,e){let r=new os(t,e),n=new ss(r);try{n.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return n.root}var ls=as;as.default=as,is.registerParse(as);let{isClean:cs,my:us}=Hr,hs=Un,ps=Wr,ds=ei,fs=oi,ms=li,gs=di,bs=ls,ys=zi;const vs={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},ws={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},xs={postcssPlugin:!0,prepare:!0,Once:!0};function Ss(t){return"object"==typeof t&&"function"==typeof t.then}function _s(t){let e=!1,r=vs[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Ts(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:_s(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Cs(t){return t[cs]=!1,t.nodes&&t.nodes.forEach((t=>Cs(t))),t}let Os={};class ks{constructor(t,e,r){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof ks||e instanceof gs)n=Cs(e.root),e.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{let t=bs;r.syntax&&(t=r.syntax.parse),r.parser&&(t=r.parser),t.parse&&(t=t.parse);try{n=t(e,r)}catch(t){this.processed=!0,this.error=t}n&&!n[us]&&ds.rebuild(n)}else n=Cs(e);this.result=new gs(t,n,r),this.helpers={...Os,result:this.result,postcss:Os},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}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(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||ms("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}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 t of this.plugins){if(Ss(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[cs];)t[cs]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=ps;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let r=new hs(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}walkSync(t){t[cs]=!0;let e=_s(t);for(let r of e)if(0===r)t.nodes&&t.each((t=>{t[cs]||this.walkSync(t)}));else{let e=this.listeners[r];if(e&&this.visitSync(e,t.toProxy()))return}}visitSync(t,e){for(let[r,n]of t){let t;this.result.lastPlugin=r;try{t=n(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Ss(t))throw this.getAsyncError()}}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return Ss(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let t=r.postcssPlugin,e=r.postcssVersion,n=this.result.processor.version,i=e.split("."),s=n.split(".");(i[0]!==s[0]||parseInt(i[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}async runAsync(){this.plugin=0;for(let t=0;t0;){let t=this.visitTick(e);if(Ss(t))try{await t}catch(t){let r=e[e.length-1].node;throw this.handleError(t,r)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>r(t,this.helpers)));await Promise.all(e)}else await r(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(let e of this.plugins)if("object"==typeof e)for(let r in e){if(!ws[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!xs[r])if("object"==typeof e[r])for(let n in e[r])t(e,"*"===n?r:r+"-"+n.toLowerCase(),e[r][n]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(t){let e=t[t.length-1],{node:r,visitors:n}=e;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(n.length>0&&e.visitorIndex{Os=t};var Es=ks;ks.default=ks,ys.registerLazyResult(ks),fs.registerLazyResult(ks);let As=Un,Ds=Wr,Ps=li,Ls=ls;const Ms=di;class qs{constructor(t,e,r){let n;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;let i=Ds;this.result=new Ms(this._processor,n,this._opts),this.result.css=e;let s=this;Object.defineProperty(this.result,"root",{get:()=>s.root});let o=new As(i,n,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}}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 t,e=Ls;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Ps("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var Ns=qs;qs.default=qs;let js=Ns,Is=Es,Rs=oi,Bs=zi;class Us{constructor(t=[]){this.version="8.4.6",this.plugins=this.normalize(t)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}process(t,e={}){return 0===this.plugins.length&&void 0===e.parser&&void 0===e.stringifier&&void 0===e.syntax?new js(this,t,e):new Is(this,t,e)}normalize(t){let e=[];for(let r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}}var Hs=Us;Us.default=Us,Bs.registerProcessor(Us),Rs.registerProcessor(Us);let Fs=sn,Vs=fn,zs=Vn,Gs=Bi,$s=An,Ws=zi,Xs=Ji;function Ys(t,e){if(Array.isArray(t))return t.map((t=>Ys(t)));let{inputs:r,...n}=t;if(r){e=[];for(let t of r){let r={...t,__proto__:$s.prototype};r.map&&(r.map={...r.map,__proto__:Vs.prototype}),e.push(r)}}if(n.nodes&&(n.nodes=t.nodes.map((t=>Ys(t,e)))),n.source){let{inputId:t,...r}=n.source;n.source=r,null!=t&&(n.source.input=e[t])}if("root"===n.type)return new Ws(n);if("decl"===n.type)return new Fs(n);if("rule"===n.type)return new Xs(n);if("comment"===n.type)return new zs(n);if("atrule"===n.type)return new Gs(n);throw new Error("Unknown node type: "+t.type)}var Js=Ys;Ys.default=Ys;let Zs=Ur,Qs=sn,Ks=Es,to=ei,eo=Hs,ro=Wr,no=Js,io=oi,so=ui,oo=Vn,ao=Bi,lo=di,co=An,uo=ls,ho=$i,po=Ji,fo=zi,mo=en;function go(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new eo(t)}go.plugin=function(t,e){function r(...r){let n=e(...r);return n.postcssPlugin=t,n.postcssVersion=(new eo).version,n}let n;return console&&console.warn&&(console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(t,e,n){return go([r(n)]).process(t,e)},r},go.stringify=ro,go.parse=uo,go.fromJSON=no,go.list=ho,go.comment=t=>new oo(t),go.atRule=t=>new ao(t),go.decl=t=>new Qs(t),go.rule=t=>new po(t),go.root=t=>new fo(t),go.document=t=>new io(t),go.CssSyntaxError=Zs,go.Declaration=Qs,go.Container=to,go.Processor=eo,go.Document=io,go.Comment=oo,go.Warning=so,go.AtRule=ao,go.Result=lo,go.Input=co,go.Rule=po,go.Root=fo,go.Node=mo,Ks.registerPostcss(go);var bo=go;go.default=go;const yo=r,vo=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},{isPlainObject:wo}=wr,xo=Pr,So=Lr.exports,{parse:_o}=bo,To=["img","audio","video","picture","svg","object","map","iframe","embed"],Co=["script","style"];function Oo(t,e){t&&Object.keys(t).forEach((function(r){e(t[r],r)}))}function ko(t,e){return{}.hasOwnProperty.call(t,e)}function Eo(t,e){const r=[];return Oo(t,(function(t){e(t)&&r.push(t)})),r}var Ao=Po;const Do=/^[^\0\t\n\f\r /<=>]+$/;function Po(t,e,r){if(null==t)return"";let n="",i="";function s(t,e){const r=this;this.tag=t,this.attribs=e||{},this.tagPosition=n.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(m.length){m[m.length-1].text+=r.text}},this.updateParentNodeMediaChildren=function(){if(m.length&&To.includes(this.tag)){m[m.length-1].mediaChildren.push(this.tag)}}}(e=Object.assign({},Po.defaults,e)).parser=Object.assign({},Lo,e.parser),Co.forEach((function(t){e.allowedTags&&e.allowedTags.indexOf(t)>-1&&!e.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${t}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},Oo(e.allowedAttributes,(function(t,e){a[e]=[];const r=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?r.push(vo(t).replace(/\\\*/g,".*")):a[e].push(t)})),r.length&&(l[e]=new RegExp("^("+r.join("|")+")$"))})));const c={},u={},h={};Oo(e.allowedClasses,(function(t,e){a&&(ko(a,e)||(a[e]=[]),a[e].push("class")),c[e]=[],h[e]=[];const r=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?r.push(vo(t).replace(/\\\*/g,".*")):t instanceof RegExp?h[e].push(t):c[e].push(t)})),r.length&&(u[e]=new RegExp("^("+r.join("|")+")$"))}));const p={};let d,f,m,g,b,y,v;Oo(e.transformTags,(function(t,e){let r;"function"==typeof t?r=t:"string"==typeof t&&(r=Po.simpleTransform(t)),"*"===e?d=r:p[e]=r}));let w=!1;S();const x=new yo.Parser({onopentag:function(t,r){if(e.enforceHtmlBoundary&&"html"===t&&S(),y)return void v++;const x=new s(t,r);m.push(x);let O=!1;const k=!!x.text;let E;if(ko(p,t)&&(E=p[t](t,r),x.attribs=r=E.attribs,void 0!==E.text&&(x.innerText=E.text),t!==E.tagName&&(x.name=t=E.tagName,b[f]=E.tagName)),d&&(E=d(t,r),x.attribs=r=E.attribs,t!==E.tagName&&(x.name=t=E.tagName,b[f]=E.tagName)),(e.allowedTags&&-1===e.allowedTags.indexOf(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(ko(t,e))return!1;return!0}(g)||null!=e.nestingLimit&&f>=e.nestingLimit)&&(O=!0,g[f]=!0,"discard"===e.disallowedTagsMode&&-1!==o.indexOf(t)&&(y=!0,v=1),g[f]=!0),f++,O){if("discard"===e.disallowedTagsMode)return;i=n,n=""}n+="<"+t,"script"===t&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(x.innerText=""),(!a||ko(a,t)||a["*"])&&Oo(r,(function(r,i){if(!Do.test(i))return void delete x.attribs[i];let s,o=!1;if(!a||ko(a,t)&&-1!==a[t].indexOf(i)||a["*"]&&-1!==a["*"].indexOf(i)||ko(l,t)&&l[t].test(i)||l["*"]&&l["*"].test(i))o=!0;else if(a&&a[t])for(const e of a[t])if(wo(e)&&e.name&&e.name===i){o=!0;let t="";if(!0===e.multiple){const n=r.split(" ");for(const r of n)-1!==e.values.indexOf(r)&&(""===t?t=r:t+=" "+r)}else e.values.indexOf(r)>=0&&(t=r);r=t}if(o){if(-1!==e.allowedSchemesAppliedToAttributes.indexOf(i)&&T(t,r))return void delete x.attribs[i];if("script"===t&&"src"===i){let t=!0;try{const n=new URL(r);if(e.allowedScriptHostnames||e.allowedScriptDomains){const r=(e.allowedScriptHostnames||[]).find((function(t){return t===n.hostname})),i=(e.allowedScriptDomains||[]).find((function(t){return n.hostname===t||n.hostname.endsWith(`.${t}`)}));t=r||i}}catch(e){t=!1}if(!t)return void delete x.attribs[i]}if("iframe"===t&&"src"===i){let t=!0;try{if((r=r.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let n="relative://relative-site";for(let t=0;t<100;t++)n+=`/${t}`;const i=new URL(r,n);if(i&&"relative-site"===i.hostname&&"relative:"===i.protocol)t=ko(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const r=(e.allowedIframeHostnames||[]).find((function(t){return t===i.hostname})),n=(e.allowedIframeDomains||[]).find((function(t){return i.hostname===t||i.hostname.endsWith(`.${t}`)}));t=r||n}}catch(e){t=!1}if(!t)return void delete x.attribs[i]}if("srcset"===i)try{if(s=So(r),s.forEach((function(t){T("srcset",t.url)&&(t.evil=!0)})),s=Eo(s,(function(t){return!t.evil})),!s.length)return void delete x.attribs[i];r=Eo(s,(function(t){return!t.evil})).map((function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")})).join(", "),x.attribs[i]=r}catch(t){return void delete x.attribs[i]}if("class"===i){const e=c[t],n=c["*"],s=u[t],o=h[t],a=[s,u["*"]].concat(o).filter((function(t){return t}));if(!(r=C(r,e&&n?xo(e,n):e||n,a)).length)return void delete x.attribs[i]}if("style"===i)try{const n=function(t,e){if(!e)return t;const r=t.nodes[0];let n;n=e[r.selector]&&e["*"]?xo(e[r.selector],e["*"]):e[r.selector]||e["*"];n&&(t.nodes[0].nodes=r.nodes.reduce(function(t){return function(e,r){if(ko(t,r.prop)){t[r.prop].some((function(t){return t.test(r.value)}))&&e.push(r)}return e}}(n),[]));return t}(_o(t+" {"+r+"}"),e.allowedStyles);if(0===(r=function(t){return t.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")}(n)).length)return void delete x.attribs[i]}catch(t){return void delete x.attribs[i]}n+=" "+i,r&&r.length&&(n+='="'+_(r,!0)+'"')}else delete x.attribs[i]})),-1!==e.selfClosing.indexOf(t)?n+=" />":(n+=">",!x.innerText||k||e.textFilter||(n+=_(x.innerText),w=!0)),O&&(n=i+_(n),i="")},ontext:function(t){if(y)return;const r=m[m.length-1];let i;if(r&&(i=r.tag,t=void 0!==r.innerText?r.innerText:t),"discard"!==e.disallowedTagsMode||"script"!==i&&"style"!==i){const r=_(t,!1);e.textFilter&&!w?n+=e.textFilter(r,i):w||(n+=r)}else n+=t;if(m.length){m[m.length-1].text+=t}},onclosetag:function(t){if(y){if(v--,v)return;y=!1}const r=m.pop();if(!r)return;y=!!e.enforceHtmlBoundary&&"html"===t,f--;const s=g[f];if(s){if(delete g[f],"discard"===e.disallowedTagsMode)return void r.updateParentNodeText();i=n,n=""}b[f]&&(t=b[f],delete b[f]),e.exclusiveFilter&&e.exclusiveFilter(r)?n=n.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1===e.selfClosing.indexOf(t)?(n+="",s&&(n=i+_(n),i=""),w=!1):s&&(n=i,i=""))}},e.parser);return x.write(t),x.end(),n;function S(){n="",f=0,m=[],g={},b={},y=!1,v=0}function _(t,r){return"string"!=typeof t&&(t+=""),e.parser.decodeEntities&&(t=t.replace(/&/g,"&").replace(//g,">"),r&&(t=t.replace(/"/g,"""))),t=t.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),r&&(t=t.replace(/"/g,""")),t}function T(t,r){const n=(r=(r=r.replace(/[\x00-\x20]+/g,"")).replace(//g,"")).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!r.match(/^[/\\]{2}/)&&!e.allowProtocolRelative;const i=n[1].toLowerCase();return ko(e.allowedSchemesByTag,t)?-1===e.allowedSchemesByTag[t].indexOf(i):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(i)}function C(t,e,r){return e?(t=t.split(/\s+/)).filter((function(t){return-1!==e.indexOf(t)||r.some((function(e){return e.test(t)}))})).join(" "):t}}const Lo={decodeEntities:!0};Po.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","main","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"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},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},Po.simpleTransform=function(t,e,r){return r=void 0===r||r,e=e||{},function(n,i){let s;if(r)for(s in e)i[s]=e[s];else i=e;return{tagName:t,attribs:i}}};var Mo=Ao;const qo=Mo.defaults,No={allowedTags:["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"],allowedAttributes:{a:["href","name","target"],span:["style"]},allowedSchemes:["ftp","http","https","mailto"],selfClosing:["br"],parser:{decodeEntities:!0}},jo={allowedTags:!1,allowedAttributes:!1},Io={allowedTags:[],allowedAttributes:[]};function Ro(t,e){return Array.isArray(e)?{config:e[0],input:e[1]}:t.strip?{config:Io,input:e}:t.basic?{config:qo,input:e}:t.inline?{config:No,input:e}:t.nothing?{config:jo,input:e}:{config:qo,input:e}}function Bo(t,{modifiers:e,oldValue:r,value:n}){if(n!==r){const{config:r,input:i}=Ro(e,n);t.innerHTML=Mo(i,r)}}function Uo(t,{modifiers:e,value:r}){const{config:n,input:i}=Ro(e,r);t.data.domProps=t.data.domProps||{},t.data.domProps.innerHTML=Mo(i,n)}const Ho={getSSRProps:function({modifiers:t,value:e}){const{config:r,input:n}=Ro(t,e);return{innerHTML:Mo(n,r)}},inserted:Bo,mounted:Bo,update:Bo,updated:Bo};var Fo={install(t,{name:e="sanitize"}={}){t.directive(e,Ho)}};export{qo as FILTER_BASIC,No as FILTER_INLINE,jo as FILTER_NOTHING,Io as FILTER_STRIP,Uo as VueSanitizeDirectiveSSR,Fo as default,Ho as directive}; diff --git a/dist/vue-sanitize-directive.umd.js b/dist/vue-sanitize-directive.umd.js index c8e98a9..1dba32a 100644 --- a/dist/vue-sanitize-directive.umd.js +++ b/dist/vue-sanitize-directive.umd.js @@ -5,4 +5,4 @@ * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -function Sr(t){return"[object Object]"===Object.prototype.toString.call(t)}Object.defineProperty(xr,"__esModule",{value:!0}),xr.isPlainObject=function(t){var e,r;return!1!==Sr(t)&&(void 0===(e=t.constructor)||!1!==Sr(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))};var _r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Tr}(t)}(t)};var Tr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Cr(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Dr((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function Or(t,e,r){return t.concat(e).map((function(t){return Cr(t,r)}))}function kr(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function Er(t,e){try{return e in t}catch(t){return!1}}function Ar(t,e,r){var n={};return r.isMergeableObject(t)&&kr(t).forEach((function(e){n[e]=Cr(t[e],r)})),kr(e).forEach((function(i){(function(t,e){return Er(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(Er(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return Dr;var r=e.customMerge(t);return"function"==typeof r?r:Dr}(i,r)(t[i],e[i],r):n[i]=Cr(e[i],r))})),n}function Dr(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Or,r.isMergeableObject=r.isMergeableObject||_r,r.cloneUnlessOtherwiseSpecified=Cr;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):Ar(t,e,r):Cr(e,r)}Dr.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Dr(t,r,e)}),{})};var Pr=Dr,Lr={exports:{}};!function(t){!function(e,r){t.exports?t.exports=r():e.parseSrcset=r()}(e,(function(){return function(t){function e(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}function r(e){var r,n=e.exec(t.substring(m));if(n)return r=n[0],m+=r.length,r}for(var n,i,s,o,a,l=t.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,d=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(r(u),m>=l)return g;n=r(h),i=[],","===n.slice(-1)?(n=n.replace(p,""),y()):b()}function b(){for(r(c),s="",o="in descriptor";;){if(a=t.charAt(m),"in descriptor"===o)if(e(a))s&&(i.push(s),s="",o="after descriptor");else{if(","===a)return m+=1,s&&i.push(s),void y();if("("===a)s+=a,o="in parens";else{if(""===a)return s&&i.push(s),void y();s+=a}}else if("in parens"===o)if(")"===a)s+=a,o="in descriptor";else{if(""===a)return i.push(s),void y();s+=a}else if("after descriptor"===o)if(e(a));else{if(""===a)return void y();o="in descriptor",m-=1}m+=1}}function y(){var e,r,s,o,a,l,c,u,h,p=!1,m={};for(o=0;o",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=Ir.isColorSupported),Rr&&t&&(e=Rr(e));let r,n,i=e.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),a=String(o).length;if(t){let{bold:t,red:e,gray:i}=Ir.createColors(!0);r=r=>t(e(r)),n=t=>i(t)}else r=n=t=>t;return i.slice(s,o).map(((t,e)=>{let i=s+1+e,o=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let e=n(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+t+"\n "+e+r("^")}return" "+n(o)+t})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}var Ur=Br;Br.default=Br;var Hr={};Hr.isClean=Symbol("isClean"),Hr.my=Symbol("my");const Fr={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class Vr{constructor(t){this.builder=t}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}document(t){this.body(t)}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}comment(t){let e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){let r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=t.raws.important||" !important"),e&&(n+=";"),this.builder(n,t)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}atrule(t,e){let r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{let i=(t.raws.between||"")+(e?";":"");this.builder(r+n+i,t)}}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let r=this.raw(t,"semicolon");for(let n=0;n{if(n=t.raws[e],void 0!==n)return!1}))}var o;return void 0===n&&(n=Fr[r]),s.rawCache[r]=n,n}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&void 0!==r.raws.before){let t=r.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawBeforeComment(t,e){let r;return t.walkComments((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){let r;return t.walkDecls((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(t){let e;return t.walk((r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return e=r.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}beforeAfter(t,e){let r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");let n=t.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;tKr(t,r))):("object"===s&&null!==i&&(i=Kr(i)),r[n]=i)}return r}class tn{constructor(t={}){this.raws={},this[Xr]=!1,this[Yr]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let r of t[e])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[e]=t[e]}error(t,e={}){if(this.source){let{start:r,end:n}=this.rangeBy(e);return this.source.input.error(t,{line:r.line,column:r.column},{line:n.line,column:n.column},e)}return new Jr(t)}warn(t,e,r){let n={node:this};for(let t in r)n[t]=r[t];return t.warn(e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(t=Qr){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}assign(t={}){for(let e in t)this[e]=t[e];return this}clone(t={}){let e=Kr(this);for(let r in t)e[r]=t[r];return e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}replaceWith(...t){if(this.parent){let e=this,r=!1;for(let n of t)n===this?r=!0:r?(this.parent.insertAfter(e,n),e=n):this.parent.insertBefore(e,n);r||this.remove()}return this}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}before(t){return this.parent.insertBefore(this,t),this}after(t){return this.parent.insertAfter(this,t),this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}raw(t,e){return(new Zr).raw(this,t,e)}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}toJSON(t,e){let r={},n=null==e;e=e||new Map;let i=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let n=this[t];if(Array.isArray(n))r[t]=n.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof n&&n.toJSON)r[t]=n.toJSON(null,e);else if("source"===t){let s=e.get(n.input);null==s&&(s=i,e.set(n.input,i),i++),r[t]={inputId:s,start:n.start,end:n.end}}else r[t]=n}return n&&(r.inputs=[...e.keys()].map((t=>t.toJSON()))),r}positionInside(t){let e=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0),get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}markDirty(){if(this[Xr]){this[Xr]=!1;let t=this;for(;t=t.parent;)t[Xr]=!1}}get proxyOf(){return this}}var en=tn;tn.default=tn;let rn=en;class nn extends rn{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var sn=nn;nn.default=nn;var on={nanoid:(t=21)=>{let e="",r=t;for(;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e)=>()=>{let r="",n=e;for(;n--;)r+=t[Math.random()*t.length|0];return r}};let{SourceMapConsumer:an,SourceMapGenerator:ln}=jr,{existsSync:cn,readFileSync:un}=jr,{dirname:hn,join:pn}=jr;class dn{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=e.map?e.map.prev:void 0,n=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=hn(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new an(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(t,e){return!!t&&t.substr(0,e.length)===e}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let r=t.lastIndexOf(e.pop()),n=t.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,n)))}decodeInline(t){if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var e;let r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(t){if(this.root=hn(t),cn(t))return this.mapFile=t,un(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof an)return ln.fromSourceMap(e).toString();if(e instanceof ln)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let r=e(t);if(r){let t=this.loadFile(r);if(!t)throw new Error("Unable to load previous source map: "+r.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=pn(hn(t),e)),this.loadFile(e)}}}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}}var fn=dn;dn.default=dn;let{SourceMapConsumer:mn,SourceMapGenerator:gn}=jr,{fileURLToPath:bn,pathToFileURL:yn}=jr,{resolve:vn,isAbsolute:wn}=jr,{nanoid:xn}=on,Sn=jr,_n=Ur,Tn=fn,Cn=Symbol("fromOffsetCache"),On=Boolean(mn&&gn),kn=Boolean(vn&&wn);class En{constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!kn||/^\w+:\/\//.test(e.from)||wn(e.from)?this.file=e.from:this.file=vn(e.from)),kn&&On){let t=new Tn(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}fromOffset(t){let e,r;if(this[Cn])r=this[Cn];else{let t=this.css.split("\n");r=new Array(t.length);let e=0;for(let n=0,i=t.length;n=e)n=r.length-1;else{let e,i=r.length-2;for(;n>1),t=r[e+1])){n=e;break}n=e+1}}return{line:n+1,col:t-r[n]+1}}error(t,e,r,n={}){let i,s,o;if(e&&"object"==typeof e){let t=e,n=r;if("number"==typeof e.offset){let n=this.fromOffset(t.offset);e=n.line,r=n.col}else e=t.line,r=t.column;if("number"==typeof n.offset){let t=this.fromOffset(n.offset);s=t.line,o=t.col}else s=n.line,o=n.column}else if(!r){let t=this.fromOffset(e);e=t.line,r=t.col}let a=this.origin(e,r,s,o);return i=a?new _n(t,void 0===a.endLine?a.line:{line:a.line,column:a.column},void 0===a.endLine?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,n.plugin):new _n(t,void 0===s?e:{line:e,column:r},void 0===s?r:{line:s,column:o},this.css,this.file,n.plugin),i.input={line:e,column:r,endLine:s,endColumn:o,source:this.css},this.file&&(yn&&(i.input.url=yn(this.file).toString()),i.input.file=this.file),i}origin(t,e,r,n){if(!this.map)return!1;let i,s,o=this.map.consumer(),a=o.originalPositionFor({line:t,column:e});if(!a.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({line:r,column:n})),s=wn(a.source)?yn(a.source):new URL(a.source,this.map.consumer().sourceRoot||yn(this.map.mapFile));let l={url:s.toString(),line:a.line,column:a.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===s.protocol){if(!bn)throw new Error("file: protocol is not available in this PostCSS build");l.file=bn(s)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}mapResolve(t){return/^\w+:\/\//.test(t)?t:vn(this.map.consumer().sourceRoot||this.map.root||".",t)}get from(){return this.file||this.id}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}var An=En;En.default=En,Sn&&Sn.registerInput&&Sn.registerInput(En);let{SourceMapConsumer:Dn,SourceMapGenerator:Pn}=jr,{dirname:Ln,resolve:Mn,relative:qn,sep:Nn}=jr,{pathToFileURL:jn}=jr,In=An,Rn=Boolean(Dn&&Pn),Bn=Boolean(Ln&&Mn&&qn&&Nn);var Un=class{constructor(t,e,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new In(this.css,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let r=e.source.input.from;r&&!t[r]&&(t[r]=!0,this.map.setSourceContent(this.toUrl(this.path(r)),e.source.input.css))}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(t,this.css)}}applyPrevMaps(){for(let t of this.previous()){let e,r=this.toUrl(this.path(t.file)),n=t.root||Ln(t.file);!1===this.mapOpts.sourcesContent?(e=new Dn(t.text),e.sourcesContent&&(e.sourcesContent=e.sourcesContent.map((()=>null)))):e=t.consumer(),this.map.applySourceMap(e,r,this.toUrl(this.path(n)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}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(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Pn.fromSourceMap(t)}else this.map=new Pn({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(t){if(0===t.indexOf("<"))return t;if(/^\w+:\/\//.test(t))return t;if(this.mapOpts.absolute)return t;let e=this.opts.to?Ln(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(e=Ln(Mn(e,this.mapOpts.annotation))),t=qn(e,t)}toUrl(t){return"\\"===Nn&&(t=t.replace(/\\/g,"/")),encodeURI(t).replace(/[#?]/g,encodeURIComponent)}sourcePath(t){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(jn)return jn(t.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(t.source.input.from))}generateString(){this.css="",this.map=new Pn({file:this.outputFile()});let t,e,r=1,n=1,i="",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),t=o.match(/\n/g),t?(r+=t.length,e=o.lastIndexOf("\n"),n=o.length-e):n+=o.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"!==a.type||a!==t.last||t.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),Bn&&Rn&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}};let Hn=en;class Fn extends Hn{constructor(t){super(t),this.type="comment"}}var Vn=Fn;Fn.default=Fn;let zn,Gn,$n,{isClean:Wn,my:Xn}=Hr,Yn=sn,Jn=Vn,Zn=en;function Qn(t){return t.map((t=>(t.nodes&&(t.nodes=Qn(t.nodes)),delete t.source,t)))}function Kn(t){if(t[Wn]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Kn(e)}class ti extends Zn{push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}each(t){if(!this.proxyOf.nodes)return;let e,r,n=this.getIterator();for(;this.indexes[n]{let n;try{n=t(e,r)}catch(t){throw e.addToError(t)}return!1!==n&&e.walk&&(n=e.walk(t)),n}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&t.test(r.prop))return e(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("decl"===t.type)return e(t,r)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&t.test(r.selector))return e(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("rule"===t.type)return e(t,r)})))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&t.test(r.name))return e(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("atrule"===t.type)return e(t,r)})))}walkComments(t){return this.walk(((e,r)=>{if("comment"===e.type)return t(e,r)}))}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}insertBefore(t,e){let r,n=0===(t=this.index(t))&&"prepend",i=this.normalize(e,this.proxyOf.nodes[t],n).reverse();for(let e of i)this.proxyOf.nodes.splice(t,0,e);for(let e in this.indexes)r=this.indexes[e],t<=r&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertAfter(t,e){t=this.index(t);let r,n=this.normalize(e,this.proxyOf.nodes[t]).reverse();for(let e of n)this.proxyOf.nodes.splice(t+1,0,e);for(let e in this.indexes)r=this.indexes[e],t=t&&(this.indexes[r]=e-1);return this.markDirty(),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls((n=>{e.props&&!e.props.includes(n.prop)||e.fast&&!n.value.includes(e.fast)||(n.value=n.value.replace(t,r))})),this.markDirty(),this}every(t){return this.nodes.every(t)}some(t){return this.nodes.some(t)}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}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(t,e){if("string"==typeof t)t=Qn(zn(t).nodes);else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Yn(t)]}else if(t.selector)t=[new Gn(t)];else if(t.name)t=[new $n(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Jn(t)]}return t.map((t=>(t[Xn]||ti.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Wn]&&Kn(t),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this,t)))}getProxyProcessor(){return{set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0),get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...r)=>t[e](...r.map((t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))):"every"===e||"some"===e?r=>t[e](((t,...e)=>r(t.toProxy(),...e))):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}}ti.registerParse=t=>{zn=t},ti.registerRule=t=>{Gn=t},ti.registerAtRule=t=>{$n=t};var ei=ti;ti.default=ti,ti.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,$n.prototype):"rule"===t.type?Object.setPrototypeOf(t,Gn.prototype):"decl"===t.type?Object.setPrototypeOf(t,Yn.prototype):"comment"===t.type&&Object.setPrototypeOf(t,Jn.prototype),t[Xn]=!0,t.nodes&&t.nodes.forEach((t=>{ti.rebuild(t)}))};let ri,ni,ii=ei;class si extends ii{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new ri(new ni,this,t).stringify()}}si.registerLazyResult=t=>{ri=t},si.registerProcessor=t=>{ni=t};var oi=si;si.default=si;let ai={};var li=function(t){ai[t]||(ai[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))};class ci{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}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}}var ui=ci;ci.default=ci;let hi=ui;class pi{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let r=new hi(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var di=pi;pi.default=pi;const fi="'".charCodeAt(0),mi='"'.charCodeAt(0),gi="\\".charCodeAt(0),bi="/".charCodeAt(0),yi="\n".charCodeAt(0),vi=" ".charCodeAt(0),wi="\f".charCodeAt(0),xi="\t".charCodeAt(0),Si="\r".charCodeAt(0),_i="[".charCodeAt(0),Ti="]".charCodeAt(0),Ci="(".charCodeAt(0),Oi=")".charCodeAt(0),ki="{".charCodeAt(0),Ei="}".charCodeAt(0),Ai=";".charCodeAt(0),Di="*".charCodeAt(0),Pi=":".charCodeAt(0),Li="@".charCodeAt(0),Mi=/[\t\n\f\r "#'()/;[\\\]{}]/g,qi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ni=/.[\n"'(/\\]/,ji=/[\da-f]/i;let Ii=ei;class Ri extends Ii{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}var Bi=Ri;Ri.default=Ri,Ii.registerAtRule(Ri);let Ui,Hi,Fi=ei;class Vi extends Fi{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}removeChild(t,e){let r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}normalize(t,e,r){let n=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of n)t.raws.before=e.raws.before;return n}toResult(t={}){return new Ui(new Hi,this,t).stringify()}}Vi.registerLazyResult=t=>{Ui=t},Vi.registerProcessor=t=>{Hi=t};var zi=Vi;Vi.default=Vi;let Gi={split(t,e,r){let n=[],i="",s=!1,o=0,a=!1,l=!1;for(let r of t)l?l=!1:"\\"===r?l=!0:a?r===a&&(a=!1):'"'===r||"'"===r?a=r:"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&e.includes(r)&&(s=!0),s?(""!==i&&n.push(i.trim()),i="",s=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n},space:t=>Gi.split(t,[" ","\n","\t"]),comma:t=>Gi.split(t,[","],!0)};var $i=Gi;Gi.default=Gi;let Wi=ei,Xi=$i;class Yi extends Wi{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Xi.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}}var Ji=Yi;Yi.default=Yi,Wi.registerRule(Yi);let Zi=sn,Qi=function(t,e={}){let r,n,i,s,o,a,l,c,u,h,p=t.css.valueOf(),d=e.ignoreErrors,f=p.length,m=0,g=[],b=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(t){b.push(t)},nextToken:function(t){if(b.length)return b.pop();if(m>=f)return;let e=!!t&&t.ignoreUnclosed;switch(r=p.charCodeAt(m),r){case yi:case vi:case xi:case Si:case wi:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===vi||r===yi||r===xi||r===Si||r===wi);h=["space",p.slice(m,n)],m=n-1;break;case _i:case Ti:case ki:case Ei:case Pi:case Ai:case Oi:{let t=String.fromCharCode(r);h=[t,t,m];break}case Ci:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==fi&&u!==mi&&u!==vi&&u!==yi&&u!==xi&&u!==wi&&u!==Si){n=m;do{if(a=!1,n=p.indexOf(")",n+1),-1===n){if(d||e){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===gi;)l-=1,a=!a}while(a);h=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),s=p.slice(m,n+1),-1===n||Ni.test(s)?h=["(","(",m]:(h=["brackets",s,m,n],m=n);break;case fi:case mi:i=r===fi?"'":'"',n=m;do{if(a=!1,n=p.indexOf(i,n+1),-1===n){if(d||e){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===gi;)l-=1,a=!a}while(a);h=["string",p.slice(m,n+1),m,n],m=n;break;case Li:Mi.lastIndex=m+1,Mi.test(p),n=0===Mi.lastIndex?p.length-1:Mi.lastIndex-2,h=["at-word",p.slice(m,n+1),m,n],m=n;break;case gi:for(n=m,o=!0;p.charCodeAt(n+1)===gi;)n+=1,o=!o;if(r=p.charCodeAt(n+1),o&&r!==bi&&r!==vi&&r!==yi&&r!==xi&&r!==Si&&r!==wi&&(n+=1,ji.test(p.charAt(n)))){for(;ji.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===vi&&(n+=1)}h=["word",p.slice(m,n+1),m,n],m=n;break;default:r===bi&&p.charCodeAt(m+1)===Di?(n=p.indexOf("*/",m+2)+1,0===n&&(d||e?n=p.length:y("comment")),h=["comment",p.slice(m,n+1),m,n],m=n):(qi.lastIndex=m+1,qi.test(p),n=0===qi.lastIndex?p.length-1:qi.lastIndex-2,h=["word",p.slice(m,n+1),m,n],g.push(h),m=n)}return m++,h},endOfFile:function(){return 0===b.length&&m>=f},position:function(){return m}}},Ki=Vn,ts=Bi,es=zi,rs=Ji;var ns=class{constructor(t){this.input=t,this.root=new es,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Qi(this.input)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}comment(t){let e=new Ki;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]);let r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{let t=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}emptyRule(t){let e=new rs;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}other(t){let e=!1,r=null,n=!1,i=null,s=[],o=t[1].startsWith("--"),a=[],l=t;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=l),s.push("}");else if(0===s.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(n=!0)}else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),s.length>0&&this.unclosedBracket(i),e&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}rule(t){t.pop();let e=new rs;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}decl(t,e){let r=new Zi;this.init(r,t[0][2]);let n,i=t[t.length-1];for(";"===i[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(i[3]||i[2]);"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(n=t.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,o=[];for(;t.length&&(s=t[0][0],"space"===s||"comment"===s);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(n=t[e],"!important"===n[1].toLowerCase()){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n," !important"!==n&&(r.raws.important=n);break}if("important"===n[1].toLowerCase()){let n=t.slice(0),i="";for(let t=e;t>0;t--){let e=n[t][0];if(0===i.trim().indexOf("!")&&"space"!==e)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(r.important=!0,r.raws.important=i,t=n)}if("space"!==n[0]&&"comment"!==n[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(r.raws.between+=o.map((t=>t[1])).join(""),o=[]),this.raw(r,"value",o.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}atrule(t){let e,r,n,i=new ts;i.name=t[1].slice(1),""===i.name&&this.unnamedAtrule(i,t),this.init(i,t[2]);let s=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?l.push("("===e?")":"]"):"{"===e&&l.length>0?l.push("}"):e===l[l.length-1]&&l.pop(),0===l.length){if(";"===e){i.source.end=this.getPosition(t[2]),this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]))}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),s&&(t=a[a.length-1],i.source.end=this.getPosition(t[3]||t[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{offset:t,line:e.line,column:e.col}}init(t,e){this.current.push(t),t.source={start:this.getPosition(e),input:this.input},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}raw(t,e,r,n){let i,s,o,a,l=r.length,c="",u=!0;for(let t=0;tt+e[1]),"");t.raws[e]={value:c,raw:n}}t[e]=c}spacesAndCommentsFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let e,r="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)r=t.pop()[1]+r;return r}stringFrom(t,e){let r="";for(let n=e;n=0&&(r=t[i],"space"===r[0]||(n+=1,2!==n));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}};let is=ei,ss=ns,os=An;function as(t,e){let r=new os(t,e),n=new ss(r);try{n.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return n.root}var ls=as;as.default=as,is.registerParse(as);let{isClean:cs,my:us}=Hr,hs=Un,ps=Wr,ds=ei,fs=oi,ms=li,gs=di,bs=ls,ys=zi;const vs={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},ws={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},xs={postcssPlugin:!0,prepare:!0,Once:!0};function Ss(t){return"object"==typeof t&&"function"==typeof t.then}function _s(t){let e=!1,r=vs[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Ts(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:_s(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Cs(t){return t[cs]=!1,t.nodes&&t.nodes.forEach((t=>Cs(t))),t}let Os={};class ks{constructor(t,e,r){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof ks||e instanceof gs)n=Cs(e.root),e.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{let t=bs;r.syntax&&(t=r.syntax.parse),r.parser&&(t=r.parser),t.parse&&(t=t.parse);try{n=t(e,r)}catch(t){this.processed=!0,this.error=t}n&&!n[us]&&ds.rebuild(n)}else n=Cs(e);this.result=new gs(t,n,r),this.helpers={...Os,result:this.result,postcss:Os},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}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(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||ms("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}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 t of this.plugins){if(Ss(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[cs];)t[cs]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=ps;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let r=new hs(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}walkSync(t){t[cs]=!0;let e=_s(t);for(let r of e)if(0===r)t.nodes&&t.each((t=>{t[cs]||this.walkSync(t)}));else{let e=this.listeners[r];if(e&&this.visitSync(e,t.toProxy()))return}}visitSync(t,e){for(let[r,n]of t){let t;this.result.lastPlugin=r;try{t=n(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Ss(t))throw this.getAsyncError()}}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return Ss(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let t=r.postcssPlugin,e=r.postcssVersion,n=this.result.processor.version,i=e.split("."),s=n.split(".");(i[0]!==s[0]||parseInt(i[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}async runAsync(){this.plugin=0;for(let t=0;t0;){let t=this.visitTick(e);if(Ss(t))try{await t}catch(t){let r=e[e.length-1].node;throw this.handleError(t,r)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>r(t,this.helpers)));await Promise.all(e)}else await r(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(let e of this.plugins)if("object"==typeof e)for(let r in e){if(!ws[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!xs[r])if("object"==typeof e[r])for(let n in e[r])t(e,"*"===n?r:r+"-"+n.toLowerCase(),e[r][n]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(t){let e=t[t.length-1],{node:r,visitors:n}=e;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(n.length>0&&e.visitorIndex{Os=t};var Es=ks;ks.default=ks,ys.registerLazyResult(ks),fs.registerLazyResult(ks);let As=Un,Ds=Wr,Ps=li,Ls=ls;const Ms=di;class qs{constructor(t,e,r){let n;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;let i=Ds;this.result=new Ms(this._processor,n,this._opts),this.result.css=e;let s=this;Object.defineProperty(this.result,"root",{get:()=>s.root});let o=new As(i,n,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}}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 t,e=Ls;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Ps("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var Ns=qs;qs.default=qs;let js=Ns,Is=Es,Rs=oi,Bs=zi;class Us{constructor(t=[]){this.version="8.4.6",this.plugins=this.normalize(t)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}process(t,e={}){return 0===this.plugins.length&&void 0===e.parser&&void 0===e.stringifier&&void 0===e.syntax?new js(this,t,e):new Is(this,t,e)}normalize(t){let e=[];for(let r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}}var Hs=Us;Us.default=Us,Bs.registerProcessor(Us),Rs.registerProcessor(Us);let Fs=sn,Vs=fn,zs=Vn,Gs=Bi,$s=An,Ws=zi,Xs=Ji;function Ys(t,e){if(Array.isArray(t))return t.map((t=>Ys(t)));let{inputs:r,...n}=t;if(r){e=[];for(let t of r){let r={...t,__proto__:$s.prototype};r.map&&(r.map={...r.map,__proto__:Vs.prototype}),e.push(r)}}if(n.nodes&&(n.nodes=t.nodes.map((t=>Ys(t,e)))),n.source){let{inputId:t,...r}=n.source;n.source=r,null!=t&&(n.source.input=e[t])}if("root"===n.type)return new Ws(n);if("decl"===n.type)return new Fs(n);if("rule"===n.type)return new Xs(n);if("comment"===n.type)return new zs(n);if("atrule"===n.type)return new Gs(n);throw new Error("Unknown node type: "+t.type)}var Js=Ys;Ys.default=Ys;let Zs=Ur,Qs=sn,Ks=Es,to=ei,eo=Hs,ro=Wr,no=Js,io=oi,so=ui,oo=Vn,ao=Bi,lo=di,co=An,uo=ls,ho=$i,po=Ji,fo=zi,mo=en;function go(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new eo(t)}go.plugin=function(t,e){function r(...r){let n=e(...r);return n.postcssPlugin=t,n.postcssVersion=(new eo).version,n}let n;return console&&console.warn&&(console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(t,e,n){return go([r(n)]).process(t,e)},r},go.stringify=ro,go.parse=uo,go.fromJSON=no,go.list=ho,go.comment=t=>new oo(t),go.atRule=t=>new ao(t),go.decl=t=>new Qs(t),go.rule=t=>new po(t),go.root=t=>new fo(t),go.document=t=>new io(t),go.CssSyntaxError=Zs,go.Declaration=Qs,go.Container=to,go.Processor=eo,go.Document=io,go.Comment=oo,go.Warning=so,go.AtRule=ao,go.Result=lo,go.Input=co,go.Rule=po,go.Root=fo,go.Node=mo,Ks.registerPostcss(go);var bo=go;go.default=go;const yo=n,vo=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},{isPlainObject:wo}=xr,xo=Pr,So=Lr.exports,{parse:_o}=bo,To=["img","audio","video","picture","svg","object","map","iframe","embed"],Co=["script","style"];function Oo(t,e){t&&Object.keys(t).forEach((function(r){e(t[r],r)}))}function ko(t,e){return{}.hasOwnProperty.call(t,e)}function Eo(t,e){const r=[];return Oo(t,(function(t){e(t)&&r.push(t)})),r}var Ao=Po;const Do=/^[^\0\t\n\f\r /<=>]+$/;function Po(t,e,r){if(null==t)return"";let n="",i="";function s(t,e){const r=this;this.tag=t,this.attribs=e||{},this.tagPosition=n.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(m.length){m[m.length-1].text+=r.text}},this.updateParentNodeMediaChildren=function(){if(m.length&&To.includes(this.tag)){m[m.length-1].mediaChildren.push(this.tag)}}}(e=Object.assign({},Po.defaults,e)).parser=Object.assign({},Lo,e.parser),Co.forEach((function(t){e.allowedTags&&e.allowedTags.indexOf(t)>-1&&!e.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${t}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},Oo(e.allowedAttributes,(function(t,e){a[e]=[];const r=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?r.push(vo(t).replace(/\\\*/g,".*")):a[e].push(t)})),r.length&&(l[e]=new RegExp("^("+r.join("|")+")$"))})));const c={},u={},h={};Oo(e.allowedClasses,(function(t,e){a&&(ko(a,e)||(a[e]=[]),a[e].push("class")),c[e]=[],h[e]=[];const r=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?r.push(vo(t).replace(/\\\*/g,".*")):t instanceof RegExp?h[e].push(t):c[e].push(t)})),r.length&&(u[e]=new RegExp("^("+r.join("|")+")$"))}));const p={};let d,f,m,g,b,y,v;Oo(e.transformTags,(function(t,e){let r;"function"==typeof t?r=t:"string"==typeof t&&(r=Po.simpleTransform(t)),"*"===e?d=r:p[e]=r}));let w=!1;S();const x=new yo.Parser({onopentag:function(t,r){if(e.enforceHtmlBoundary&&"html"===t&&S(),y)return void v++;const x=new s(t,r);m.push(x);let O=!1;const k=!!x.text;let E;if(ko(p,t)&&(E=p[t](t,r),x.attribs=r=E.attribs,void 0!==E.text&&(x.innerText=E.text),t!==E.tagName&&(x.name=t=E.tagName,b[f]=E.tagName)),d&&(E=d(t,r),x.attribs=r=E.attribs,t!==E.tagName&&(x.name=t=E.tagName,b[f]=E.tagName)),(e.allowedTags&&-1===e.allowedTags.indexOf(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(ko(t,e))return!1;return!0}(g)||null!=e.nestingLimit&&f>=e.nestingLimit)&&(O=!0,g[f]=!0,"discard"===e.disallowedTagsMode&&-1!==o.indexOf(t)&&(y=!0,v=1),g[f]=!0),f++,O){if("discard"===e.disallowedTagsMode)return;i=n,n=""}n+="<"+t,"script"===t&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(x.innerText=""),(!a||ko(a,t)||a["*"])&&Oo(r,(function(r,i){if(!Do.test(i))return void delete x.attribs[i];let s,o=!1;if(!a||ko(a,t)&&-1!==a[t].indexOf(i)||a["*"]&&-1!==a["*"].indexOf(i)||ko(l,t)&&l[t].test(i)||l["*"]&&l["*"].test(i))o=!0;else if(a&&a[t])for(const e of a[t])if(wo(e)&&e.name&&e.name===i){o=!0;let t="";if(!0===e.multiple){const n=r.split(" ");for(const r of n)-1!==e.values.indexOf(r)&&(""===t?t=r:t+=" "+r)}else e.values.indexOf(r)>=0&&(t=r);r=t}if(o){if(-1!==e.allowedSchemesAppliedToAttributes.indexOf(i)&&T(t,r))return void delete x.attribs[i];if("script"===t&&"src"===i){let t=!0;try{const n=new URL(r);if(e.allowedScriptHostnames||e.allowedScriptDomains){const r=(e.allowedScriptHostnames||[]).find((function(t){return t===n.hostname})),i=(e.allowedScriptDomains||[]).find((function(t){return n.hostname===t||n.hostname.endsWith(`.${t}`)}));t=r||i}}catch(e){t=!1}if(!t)return void delete x.attribs[i]}if("iframe"===t&&"src"===i){let t=!0;try{if((r=r.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let n="relative://relative-site";for(let t=0;t<100;t++)n+=`/${t}`;const i=new URL(r,n);if(i&&"relative-site"===i.hostname&&"relative:"===i.protocol)t=ko(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const r=(e.allowedIframeHostnames||[]).find((function(t){return t===i.hostname})),n=(e.allowedIframeDomains||[]).find((function(t){return i.hostname===t||i.hostname.endsWith(`.${t}`)}));t=r||n}}catch(e){t=!1}if(!t)return void delete x.attribs[i]}if("srcset"===i)try{if(s=So(r),s.forEach((function(t){T("srcset",t.url)&&(t.evil=!0)})),s=Eo(s,(function(t){return!t.evil})),!s.length)return void delete x.attribs[i];r=Eo(s,(function(t){return!t.evil})).map((function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")})).join(", "),x.attribs[i]=r}catch(t){return void delete x.attribs[i]}if("class"===i){const e=c[t],n=c["*"],s=u[t],o=h[t],a=[s,u["*"]].concat(o).filter((function(t){return t}));if(!(r=C(r,e&&n?xo(e,n):e||n,a)).length)return void delete x.attribs[i]}if("style"===i)try{const n=function(t,e){if(!e)return t;const r=t.nodes[0];let n;n=e[r.selector]&&e["*"]?xo(e[r.selector],e["*"]):e[r.selector]||e["*"];n&&(t.nodes[0].nodes=r.nodes.reduce(function(t){return function(e,r){if(ko(t,r.prop)){t[r.prop].some((function(t){return t.test(r.value)}))&&e.push(r)}return e}}(n),[]));return t}(_o(t+" {"+r+"}"),e.allowedStyles);if(0===(r=function(t){return t.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")}(n)).length)return void delete x.attribs[i]}catch(t){return void delete x.attribs[i]}n+=" "+i,r&&r.length&&(n+='="'+_(r,!0)+'"')}else delete x.attribs[i]})),-1!==e.selfClosing.indexOf(t)?n+=" />":(n+=">",!x.innerText||k||e.textFilter||(n+=_(x.innerText),w=!0)),O&&(n=i+_(n),i="")},ontext:function(t){if(y)return;const r=m[m.length-1];let i;if(r&&(i=r.tag,t=void 0!==r.innerText?r.innerText:t),"discard"!==e.disallowedTagsMode||"script"!==i&&"style"!==i){const r=_(t,!1);e.textFilter&&!w?n+=e.textFilter(r,i):w||(n+=r)}else n+=t;if(m.length){m[m.length-1].text+=t}},onclosetag:function(t){if(y){if(v--,v)return;y=!1}const r=m.pop();if(!r)return;y=!!e.enforceHtmlBoundary&&"html"===t,f--;const s=g[f];if(s){if(delete g[f],"discard"===e.disallowedTagsMode)return void r.updateParentNodeText();i=n,n=""}b[f]&&(t=b[f],delete b[f]),e.exclusiveFilter&&e.exclusiveFilter(r)?n=n.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1===e.selfClosing.indexOf(t)?(n+="",s&&(n=i+_(n),i=""),w=!1):s&&(n=i,i=""))}},e.parser);return x.write(t),x.end(),n;function S(){n="",f=0,m=[],g={},b={},y=!1,v=0}function _(t,r){return"string"!=typeof t&&(t+=""),e.parser.decodeEntities&&(t=t.replace(/&/g,"&").replace(//g,">"),r&&(t=t.replace(/"/g,"""))),t=t.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),r&&(t=t.replace(/"/g,""")),t}function T(t,r){const n=(r=(r=r.replace(/[\x00-\x20]+/g,"")).replace(//g,"")).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!r.match(/^[/\\]{2}/)&&!e.allowProtocolRelative;const i=n[1].toLowerCase();return ko(e.allowedSchemesByTag,t)?-1===e.allowedSchemesByTag[t].indexOf(i):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(i)}function C(t,e,r){return e?(t=t.split(/\s+/)).filter((function(t){return-1!==e.indexOf(t)||r.some((function(e){return e.test(t)}))})).join(" "):t}}const Lo={decodeEntities:!0};Po.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","main","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"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},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},Po.simpleTransform=function(t,e,r){return r=void 0===r||r,e=e||{},function(n,i){let s;if(r)for(s in e)i[s]=e[s];else i=e;return{tagName:t,attribs:i}}};var Mo=Ao;const qo=Mo.defaults,No={allowedTags:["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"],allowedAttributes:{a:["href","name","target"],span:["style"]},allowedSchemes:["ftp","http","https","mailto"],selfClosing:["br"],parser:{decodeEntities:!0}},jo={allowedTags:!1,allowedAttributes:!1},Io={allowedTags:[],allowedAttributes:[]};function Ro(t,e){return Array.isArray(e)?{config:e[0],input:e[1]}:t.strip?{config:Io,input:e}:t.basic?{config:qo,input:e}:t.inline?{config:No,input:e}:t.nothing?{config:jo,input:e}:{config:qo,input:e}}function Bo(t,{modifiers:e,oldValue:r,value:n}){if(n!==r){const{config:r,input:i}=Ro(e,n);t.innerHTML=Mo(i,r)}}const Uo={getSSRProps:function({modifiers:t,value:e}){const{config:r,input:n}=Ro(t,e);return{innerHTML:Mo(n,r)}},inserted:Bo,mounted:Bo,update:Bo,updated:Bo};var Ho={install(t,{name:e="sanitize"}={}){t.directive(e,Uo)}};t.FILTER_BASIC=qo,t.FILTER_INLINE=No,t.FILTER_NOTHING=jo,t.FILTER_STRIP=Io,t.default=Ho,t.directive=Uo,t.directiveSSR=function(t,{modifiers:e,value:r}){const{config:n,input:i}=Ro(e,r);t.data.domProps=t.data.domProps||{},t.data.domProps.innerHTML=Mo(i,n)},Object.defineProperty(t,"__esModule",{value:!0})})); +function Sr(t){return"[object Object]"===Object.prototype.toString.call(t)}Object.defineProperty(xr,"__esModule",{value:!0}),xr.isPlainObject=function(t){var e,r;return!1!==Sr(t)&&(void 0===(e=t.constructor)||!1!==Sr(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))};var _r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Tr}(t)}(t)};var Tr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Cr(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Dr((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function Or(t,e,r){return t.concat(e).map((function(t){return Cr(t,r)}))}function kr(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function Er(t,e){try{return e in t}catch(t){return!1}}function Ar(t,e,r){var n={};return r.isMergeableObject(t)&&kr(t).forEach((function(e){n[e]=Cr(t[e],r)})),kr(e).forEach((function(i){(function(t,e){return Er(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(Er(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return Dr;var r=e.customMerge(t);return"function"==typeof r?r:Dr}(i,r)(t[i],e[i],r):n[i]=Cr(e[i],r))})),n}function Dr(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Or,r.isMergeableObject=r.isMergeableObject||_r,r.cloneUnlessOtherwiseSpecified=Cr;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):Ar(t,e,r):Cr(e,r)}Dr.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Dr(t,r,e)}),{})};var Pr=Dr,Lr={exports:{}};!function(t){!function(e,r){t.exports?t.exports=r():e.parseSrcset=r()}(e,(function(){return function(t){function e(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}function r(e){var r,n=e.exec(t.substring(m));if(n)return r=n[0],m+=r.length,r}for(var n,i,s,o,a,l=t.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,d=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(r(u),m>=l)return g;n=r(h),i=[],","===n.slice(-1)?(n=n.replace(p,""),y()):b()}function b(){for(r(c),s="",o="in descriptor";;){if(a=t.charAt(m),"in descriptor"===o)if(e(a))s&&(i.push(s),s="",o="after descriptor");else{if(","===a)return m+=1,s&&i.push(s),void y();if("("===a)s+=a,o="in parens";else{if(""===a)return s&&i.push(s),void y();s+=a}}else if("in parens"===o)if(")"===a)s+=a,o="in descriptor";else{if(""===a)return i.push(s),void y();s+=a}else if("after descriptor"===o)if(e(a));else{if(""===a)return void y();o="in descriptor",m-=1}m+=1}}function y(){var e,r,s,o,a,l,c,u,h,p=!1,m={};for(o=0;o",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=Ir.isColorSupported),Rr&&t&&(e=Rr(e));let r,n,i=e.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),a=String(o).length;if(t){let{bold:t,red:e,gray:i}=Ir.createColors(!0);r=r=>t(e(r)),n=t=>i(t)}else r=n=t=>t;return i.slice(s,o).map(((t,e)=>{let i=s+1+e,o=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let e=n(o.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(o)+t+"\n "+e+r("^")}return" "+n(o)+t})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}var Ur=Br;Br.default=Br;var Hr={};Hr.isClean=Symbol("isClean"),Hr.my=Symbol("my");const Fr={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class Vr{constructor(t){this.builder=t}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}document(t){this.body(t)}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}comment(t){let e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){let r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=t.raws.important||" !important"),e&&(n+=";"),this.builder(n,t)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}atrule(t,e){let r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{let i=(t.raws.between||"")+(e?";":"");this.builder(r+n+i,t)}}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let r=this.raw(t,"semicolon");for(let n=0;n{if(n=t.raws[e],void 0!==n)return!1}))}var o;return void 0===n&&(n=Fr[r]),s.rawCache[r]=n,n}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&void 0!==r.raws.before){let t=r.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawBeforeComment(t,e){let r;return t.walkComments((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){let r;return t.walkDecls((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(t){let e;return t.walk((r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return e=r.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}beforeAfter(t,e){let r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");let n=t.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;tKr(t,r))):("object"===s&&null!==i&&(i=Kr(i)),r[n]=i)}return r}class tn{constructor(t={}){this.raws={},this[Xr]=!1,this[Yr]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let r of t[e])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[e]=t[e]}error(t,e={}){if(this.source){let{start:r,end:n}=this.rangeBy(e);return this.source.input.error(t,{line:r.line,column:r.column},{line:n.line,column:n.column},e)}return new Jr(t)}warn(t,e,r){let n={node:this};for(let t in r)n[t]=r[t];return t.warn(e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(t=Qr){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}assign(t={}){for(let e in t)this[e]=t[e];return this}clone(t={}){let e=Kr(this);for(let r in t)e[r]=t[r];return e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}replaceWith(...t){if(this.parent){let e=this,r=!1;for(let n of t)n===this?r=!0:r?(this.parent.insertAfter(e,n),e=n):this.parent.insertBefore(e,n);r||this.remove()}return this}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}before(t){return this.parent.insertBefore(this,t),this}after(t){return this.parent.insertAfter(this,t),this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}raw(t,e){return(new Zr).raw(this,t,e)}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}toJSON(t,e){let r={},n=null==e;e=e||new Map;let i=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let n=this[t];if(Array.isArray(n))r[t]=n.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof n&&n.toJSON)r[t]=n.toJSON(null,e);else if("source"===t){let s=e.get(n.input);null==s&&(s=i,e.set(n.input,i),i++),r[t]={inputId:s,start:n.start,end:n.end}}else r[t]=n}return n&&(r.inputs=[...e.keys()].map((t=>t.toJSON()))),r}positionInside(t){let e=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0),get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}markDirty(){if(this[Xr]){this[Xr]=!1;let t=this;for(;t=t.parent;)t[Xr]=!1}}get proxyOf(){return this}}var en=tn;tn.default=tn;let rn=en;class nn extends rn{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var sn=nn;nn.default=nn;var on={nanoid:(t=21)=>{let e="",r=t;for(;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e)=>()=>{let r="",n=e;for(;n--;)r+=t[Math.random()*t.length|0];return r}};let{SourceMapConsumer:an,SourceMapGenerator:ln}=jr,{existsSync:cn,readFileSync:un}=jr,{dirname:hn,join:pn}=jr;class dn{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=e.map?e.map.prev:void 0,n=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=hn(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new an(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(t,e){return!!t&&t.substr(0,e.length)===e}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let r=t.lastIndexOf(e.pop()),n=t.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,n)))}decodeInline(t){if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var e;let r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(t){if(this.root=hn(t),cn(t))return this.mapFile=t,un(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof an)return ln.fromSourceMap(e).toString();if(e instanceof ln)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let r=e(t);if(r){let t=this.loadFile(r);if(!t)throw new Error("Unable to load previous source map: "+r.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=pn(hn(t),e)),this.loadFile(e)}}}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}}var fn=dn;dn.default=dn;let{SourceMapConsumer:mn,SourceMapGenerator:gn}=jr,{fileURLToPath:bn,pathToFileURL:yn}=jr,{resolve:vn,isAbsolute:wn}=jr,{nanoid:xn}=on,Sn=jr,_n=Ur,Tn=fn,Cn=Symbol("fromOffsetCache"),On=Boolean(mn&&gn),kn=Boolean(vn&&wn);class En{constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!kn||/^\w+:\/\//.test(e.from)||wn(e.from)?this.file=e.from:this.file=vn(e.from)),kn&&On){let t=new Tn(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}fromOffset(t){let e,r;if(this[Cn])r=this[Cn];else{let t=this.css.split("\n");r=new Array(t.length);let e=0;for(let n=0,i=t.length;n=e)n=r.length-1;else{let e,i=r.length-2;for(;n>1),t=r[e+1])){n=e;break}n=e+1}}return{line:n+1,col:t-r[n]+1}}error(t,e,r,n={}){let i,s,o;if(e&&"object"==typeof e){let t=e,n=r;if("number"==typeof e.offset){let n=this.fromOffset(t.offset);e=n.line,r=n.col}else e=t.line,r=t.column;if("number"==typeof n.offset){let t=this.fromOffset(n.offset);s=t.line,o=t.col}else s=n.line,o=n.column}else if(!r){let t=this.fromOffset(e);e=t.line,r=t.col}let a=this.origin(e,r,s,o);return i=a?new _n(t,void 0===a.endLine?a.line:{line:a.line,column:a.column},void 0===a.endLine?a.column:{line:a.endLine,column:a.endColumn},a.source,a.file,n.plugin):new _n(t,void 0===s?e:{line:e,column:r},void 0===s?r:{line:s,column:o},this.css,this.file,n.plugin),i.input={line:e,column:r,endLine:s,endColumn:o,source:this.css},this.file&&(yn&&(i.input.url=yn(this.file).toString()),i.input.file=this.file),i}origin(t,e,r,n){if(!this.map)return!1;let i,s,o=this.map.consumer(),a=o.originalPositionFor({line:t,column:e});if(!a.source)return!1;"number"==typeof r&&(i=o.originalPositionFor({line:r,column:n})),s=wn(a.source)?yn(a.source):new URL(a.source,this.map.consumer().sourceRoot||yn(this.map.mapFile));let l={url:s.toString(),line:a.line,column:a.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===s.protocol){if(!bn)throw new Error("file: protocol is not available in this PostCSS build");l.file=bn(s)}let c=o.sourceContentFor(a.source);return c&&(l.source=c),l}mapResolve(t){return/^\w+:\/\//.test(t)?t:vn(this.map.consumer().sourceRoot||this.map.root||".",t)}get from(){return this.file||this.id}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}var An=En;En.default=En,Sn&&Sn.registerInput&&Sn.registerInput(En);let{SourceMapConsumer:Dn,SourceMapGenerator:Pn}=jr,{dirname:Ln,resolve:Mn,relative:qn,sep:Nn}=jr,{pathToFileURL:jn}=jr,In=An,Rn=Boolean(Dn&&Pn),Bn=Boolean(Ln&&Mn&&qn&&Nn);var Un=class{constructor(t,e,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new In(this.css,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let r=e.source.input.from;r&&!t[r]&&(t[r]=!0,this.map.setSourceContent(this.toUrl(this.path(r)),e.source.input.css))}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(t,this.css)}}applyPrevMaps(){for(let t of this.previous()){let e,r=this.toUrl(this.path(t.file)),n=t.root||Ln(t.file);!1===this.mapOpts.sourcesContent?(e=new Dn(t.text),e.sourcesContent&&(e.sourcesContent=e.sourcesContent.map((()=>null)))):e=t.consumer(),this.map.applySourceMap(e,r,this.toUrl(this.path(n)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}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(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Pn.fromSourceMap(t)}else this.map=new Pn({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(t){if(0===t.indexOf("<"))return t;if(/^\w+:\/\//.test(t))return t;if(this.mapOpts.absolute)return t;let e=this.opts.to?Ln(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(e=Ln(Mn(e,this.mapOpts.annotation))),t=qn(e,t)}toUrl(t){return"\\"===Nn&&(t=t.replace(/\\/g,"/")),encodeURI(t).replace(/[#?]/g,encodeURIComponent)}sourcePath(t){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(jn)return jn(t.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(t.source.input.from))}generateString(){this.css="",this.map=new Pn({file:this.outputFile()});let t,e,r=1,n=1,i="",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((o,a,l)=>{if(this.css+=o,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),t=o.match(/\n/g),t?(r+=t.length,e=o.lastIndexOf("\n"),n=o.length-e):n+=o.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"!==a.type||a!==t.last||t.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),Bn&&Rn&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}};let Hn=en;class Fn extends Hn{constructor(t){super(t),this.type="comment"}}var Vn=Fn;Fn.default=Fn;let zn,Gn,$n,{isClean:Wn,my:Xn}=Hr,Yn=sn,Jn=Vn,Zn=en;function Qn(t){return t.map((t=>(t.nodes&&(t.nodes=Qn(t.nodes)),delete t.source,t)))}function Kn(t){if(t[Wn]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Kn(e)}class ti extends Zn{push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}each(t){if(!this.proxyOf.nodes)return;let e,r,n=this.getIterator();for(;this.indexes[n]{let n;try{n=t(e,r)}catch(t){throw e.addToError(t)}return!1!==n&&e.walk&&(n=e.walk(t)),n}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&t.test(r.prop))return e(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("decl"===t.type)return e(t,r)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&t.test(r.selector))return e(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("rule"===t.type)return e(t,r)})))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&t.test(r.name))return e(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("atrule"===t.type)return e(t,r)})))}walkComments(t){return this.walk(((e,r)=>{if("comment"===e.type)return t(e,r)}))}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}insertBefore(t,e){let r,n=0===(t=this.index(t))&&"prepend",i=this.normalize(e,this.proxyOf.nodes[t],n).reverse();for(let e of i)this.proxyOf.nodes.splice(t,0,e);for(let e in this.indexes)r=this.indexes[e],t<=r&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertAfter(t,e){t=this.index(t);let r,n=this.normalize(e,this.proxyOf.nodes[t]).reverse();for(let e of n)this.proxyOf.nodes.splice(t+1,0,e);for(let e in this.indexes)r=this.indexes[e],t=t&&(this.indexes[r]=e-1);return this.markDirty(),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls((n=>{e.props&&!e.props.includes(n.prop)||e.fast&&!n.value.includes(e.fast)||(n.value=n.value.replace(t,r))})),this.markDirty(),this}every(t){return this.nodes.every(t)}some(t){return this.nodes.some(t)}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}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(t,e){if("string"==typeof t)t=Qn(zn(t).nodes);else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Yn(t)]}else if(t.selector)t=[new Gn(t)];else if(t.name)t=[new $n(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Jn(t)]}return t.map((t=>(t[Xn]||ti.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Wn]&&Kn(t),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this,t)))}getProxyProcessor(){return{set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0),get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...r)=>t[e](...r.map((t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t))):"every"===e||"some"===e?r=>t[e](((t,...e)=>r(t.toProxy(),...e))):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}}ti.registerParse=t=>{zn=t},ti.registerRule=t=>{Gn=t},ti.registerAtRule=t=>{$n=t};var ei=ti;ti.default=ti,ti.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,$n.prototype):"rule"===t.type?Object.setPrototypeOf(t,Gn.prototype):"decl"===t.type?Object.setPrototypeOf(t,Yn.prototype):"comment"===t.type&&Object.setPrototypeOf(t,Jn.prototype),t[Xn]=!0,t.nodes&&t.nodes.forEach((t=>{ti.rebuild(t)}))};let ri,ni,ii=ei;class si extends ii{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new ri(new ni,this,t).stringify()}}si.registerLazyResult=t=>{ri=t},si.registerProcessor=t=>{ni=t};var oi=si;si.default=si;let ai={};var li=function(t){ai[t]||(ai[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))};class ci{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}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}}var ui=ci;ci.default=ci;let hi=ui;class pi{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let r=new hi(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var di=pi;pi.default=pi;const fi="'".charCodeAt(0),mi='"'.charCodeAt(0),gi="\\".charCodeAt(0),bi="/".charCodeAt(0),yi="\n".charCodeAt(0),vi=" ".charCodeAt(0),wi="\f".charCodeAt(0),xi="\t".charCodeAt(0),Si="\r".charCodeAt(0),_i="[".charCodeAt(0),Ti="]".charCodeAt(0),Ci="(".charCodeAt(0),Oi=")".charCodeAt(0),ki="{".charCodeAt(0),Ei="}".charCodeAt(0),Ai=";".charCodeAt(0),Di="*".charCodeAt(0),Pi=":".charCodeAt(0),Li="@".charCodeAt(0),Mi=/[\t\n\f\r "#'()/;[\\\]{}]/g,qi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ni=/.[\n"'(/\\]/,ji=/[\da-f]/i;let Ii=ei;class Ri extends Ii{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}var Bi=Ri;Ri.default=Ri,Ii.registerAtRule(Ri);let Ui,Hi,Fi=ei;class Vi extends Fi{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}removeChild(t,e){let r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}normalize(t,e,r){let n=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of n)t.raws.before=e.raws.before;return n}toResult(t={}){return new Ui(new Hi,this,t).stringify()}}Vi.registerLazyResult=t=>{Ui=t},Vi.registerProcessor=t=>{Hi=t};var zi=Vi;Vi.default=Vi;let Gi={split(t,e,r){let n=[],i="",s=!1,o=0,a=!1,l=!1;for(let r of t)l?l=!1:"\\"===r?l=!0:a?r===a&&(a=!1):'"'===r||"'"===r?a=r:"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&e.includes(r)&&(s=!0),s?(""!==i&&n.push(i.trim()),i="",s=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n},space:t=>Gi.split(t,[" ","\n","\t"]),comma:t=>Gi.split(t,[","],!0)};var $i=Gi;Gi.default=Gi;let Wi=ei,Xi=$i;class Yi extends Wi{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Xi.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}}var Ji=Yi;Yi.default=Yi,Wi.registerRule(Yi);let Zi=sn,Qi=function(t,e={}){let r,n,i,s,o,a,l,c,u,h,p=t.css.valueOf(),d=e.ignoreErrors,f=p.length,m=0,g=[],b=[];function y(e){throw t.error("Unclosed "+e,m)}return{back:function(t){b.push(t)},nextToken:function(t){if(b.length)return b.pop();if(m>=f)return;let e=!!t&&t.ignoreUnclosed;switch(r=p.charCodeAt(m),r){case yi:case vi:case xi:case Si:case wi:n=m;do{n+=1,r=p.charCodeAt(n)}while(r===vi||r===yi||r===xi||r===Si||r===wi);h=["space",p.slice(m,n)],m=n-1;break;case _i:case Ti:case ki:case Ei:case Pi:case Ai:case Oi:{let t=String.fromCharCode(r);h=[t,t,m];break}case Ci:if(c=g.length?g.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==fi&&u!==mi&&u!==vi&&u!==yi&&u!==xi&&u!==wi&&u!==Si){n=m;do{if(a=!1,n=p.indexOf(")",n+1),-1===n){if(d||e){n=m;break}y("bracket")}for(l=n;p.charCodeAt(l-1)===gi;)l-=1,a=!a}while(a);h=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),s=p.slice(m,n+1),-1===n||Ni.test(s)?h=["(","(",m]:(h=["brackets",s,m,n],m=n);break;case fi:case mi:i=r===fi?"'":'"',n=m;do{if(a=!1,n=p.indexOf(i,n+1),-1===n){if(d||e){n=m+1;break}y("string")}for(l=n;p.charCodeAt(l-1)===gi;)l-=1,a=!a}while(a);h=["string",p.slice(m,n+1),m,n],m=n;break;case Li:Mi.lastIndex=m+1,Mi.test(p),n=0===Mi.lastIndex?p.length-1:Mi.lastIndex-2,h=["at-word",p.slice(m,n+1),m,n],m=n;break;case gi:for(n=m,o=!0;p.charCodeAt(n+1)===gi;)n+=1,o=!o;if(r=p.charCodeAt(n+1),o&&r!==bi&&r!==vi&&r!==yi&&r!==xi&&r!==Si&&r!==wi&&(n+=1,ji.test(p.charAt(n)))){for(;ji.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===vi&&(n+=1)}h=["word",p.slice(m,n+1),m,n],m=n;break;default:r===bi&&p.charCodeAt(m+1)===Di?(n=p.indexOf("*/",m+2)+1,0===n&&(d||e?n=p.length:y("comment")),h=["comment",p.slice(m,n+1),m,n],m=n):(qi.lastIndex=m+1,qi.test(p),n=0===qi.lastIndex?p.length-1:qi.lastIndex-2,h=["word",p.slice(m,n+1),m,n],g.push(h),m=n)}return m++,h},endOfFile:function(){return 0===b.length&&m>=f},position:function(){return m}}},Ki=Vn,ts=Bi,es=zi,rs=Ji;var ns=class{constructor(t){this.input=t,this.root=new es,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=Qi(this.input)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}comment(t){let e=new Ki;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]);let r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{let t=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}emptyRule(t){let e=new rs;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}other(t){let e=!1,r=null,n=!1,i=null,s=[],o=t[1].startsWith("--"),a=[],l=t;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),s.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=l),s.push("}");else if(0===s.length){if(";"===r){if(n)return void this.decl(a,o);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(n=!0)}else r===s[s.length-1]&&(s.pop(),0===s.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),s.length>0&&this.unclosedBracket(i),e&&n){if(!o)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}rule(t){t.pop();let e=new rs;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}decl(t,e){let r=new Zi;this.init(r,t[0][2]);let n,i=t[t.length-1];for(";"===i[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(i[3]||i[2]);"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(n=t.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,o=[];for(;t.length&&(s=t[0][0],"space"===s||"comment"===s);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(n=t[e],"!important"===n[1].toLowerCase()){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n," !important"!==n&&(r.raws.important=n);break}if("important"===n[1].toLowerCase()){let n=t.slice(0),i="";for(let t=e;t>0;t--){let e=n[t][0];if(0===i.trim().indexOf("!")&&"space"!==e)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(r.important=!0,r.raws.important=i,t=n)}if("space"!==n[0]&&"comment"!==n[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(r.raws.between+=o.map((t=>t[1])).join(""),o=[]),this.raw(r,"value",o.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}atrule(t){let e,r,n,i=new ts;i.name=t[1].slice(1),""===i.name&&this.unnamedAtrule(i,t),this.init(i,t[2]);let s=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?l.push("("===e?")":"]"):"{"===e&&l.length>0?l.push("}"):e===l[l.length-1]&&l.pop(),0===l.length){if(";"===e){i.source.end=this.getPosition(t[2]),this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]))}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),s&&(t=a[a.length-1],i.source.end=this.getPosition(t[3]||t[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{offset:t,line:e.line,column:e.col}}init(t,e){this.current.push(t),t.source={start:this.getPosition(e),input:this.input},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}raw(t,e,r,n){let i,s,o,a,l=r.length,c="",u=!0;for(let t=0;tt+e[1]),"");t.raws[e]={value:c,raw:n}}t[e]=c}spacesAndCommentsFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let e,r="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)r=t.pop()[1]+r;return r}stringFrom(t,e){let r="";for(let n=e;n=0&&(r=t[i],"space"===r[0]||(n+=1,2!==n));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}};let is=ei,ss=ns,os=An;function as(t,e){let r=new os(t,e),n=new ss(r);try{n.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return n.root}var ls=as;as.default=as,is.registerParse(as);let{isClean:cs,my:us}=Hr,hs=Un,ps=Wr,ds=ei,fs=oi,ms=li,gs=di,bs=ls,ys=zi;const vs={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},ws={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},xs={postcssPlugin:!0,prepare:!0,Once:!0};function Ss(t){return"object"==typeof t&&"function"==typeof t.then}function _s(t){let e=!1,r=vs[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Ts(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:_s(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Cs(t){return t[cs]=!1,t.nodes&&t.nodes.forEach((t=>Cs(t))),t}let Os={};class ks{constructor(t,e,r){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof ks||e instanceof gs)n=Cs(e.root),e.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{let t=bs;r.syntax&&(t=r.syntax.parse),r.parser&&(t=r.parser),t.parse&&(t=t.parse);try{n=t(e,r)}catch(t){this.processed=!0,this.error=t}n&&!n[us]&&ds.rebuild(n)}else n=Cs(e);this.result=new gs(t,n,r),this.helpers={...Os,result:this.result,postcss:Os},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}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(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||ms("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}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 t of this.plugins){if(Ss(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[cs];)t[cs]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=ps;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let r=new hs(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}walkSync(t){t[cs]=!0;let e=_s(t);for(let r of e)if(0===r)t.nodes&&t.each((t=>{t[cs]||this.walkSync(t)}));else{let e=this.listeners[r];if(e&&this.visitSync(e,t.toProxy()))return}}visitSync(t,e){for(let[r,n]of t){let t;this.result.lastPlugin=r;try{t=n(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Ss(t))throw this.getAsyncError()}}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return Ss(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let t=r.postcssPlugin,e=r.postcssVersion,n=this.result.processor.version,i=e.split("."),s=n.split(".");(i[0]!==s[0]||parseInt(i[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}async runAsync(){this.plugin=0;for(let t=0;t0;){let t=this.visitTick(e);if(Ss(t))try{await t}catch(t){let r=e[e.length-1].node;throw this.handleError(t,r)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>r(t,this.helpers)));await Promise.all(e)}else await r(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(let e of this.plugins)if("object"==typeof e)for(let r in e){if(!ws[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!xs[r])if("object"==typeof e[r])for(let n in e[r])t(e,"*"===n?r:r+"-"+n.toLowerCase(),e[r][n]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(t){let e=t[t.length-1],{node:r,visitors:n}=e;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(n.length>0&&e.visitorIndex{Os=t};var Es=ks;ks.default=ks,ys.registerLazyResult(ks),fs.registerLazyResult(ks);let As=Un,Ds=Wr,Ps=li,Ls=ls;const Ms=di;class qs{constructor(t,e,r){let n;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;let i=Ds;this.result=new Ms(this._processor,n,this._opts),this.result.css=e;let s=this;Object.defineProperty(this.result,"root",{get:()=>s.root});let o=new As(i,n,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}}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 t,e=Ls;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Ps("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var Ns=qs;qs.default=qs;let js=Ns,Is=Es,Rs=oi,Bs=zi;class Us{constructor(t=[]){this.version="8.4.6",this.plugins=this.normalize(t)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}process(t,e={}){return 0===this.plugins.length&&void 0===e.parser&&void 0===e.stringifier&&void 0===e.syntax?new js(this,t,e):new Is(this,t,e)}normalize(t){let e=[];for(let r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}}var Hs=Us;Us.default=Us,Bs.registerProcessor(Us),Rs.registerProcessor(Us);let Fs=sn,Vs=fn,zs=Vn,Gs=Bi,$s=An,Ws=zi,Xs=Ji;function Ys(t,e){if(Array.isArray(t))return t.map((t=>Ys(t)));let{inputs:r,...n}=t;if(r){e=[];for(let t of r){let r={...t,__proto__:$s.prototype};r.map&&(r.map={...r.map,__proto__:Vs.prototype}),e.push(r)}}if(n.nodes&&(n.nodes=t.nodes.map((t=>Ys(t,e)))),n.source){let{inputId:t,...r}=n.source;n.source=r,null!=t&&(n.source.input=e[t])}if("root"===n.type)return new Ws(n);if("decl"===n.type)return new Fs(n);if("rule"===n.type)return new Xs(n);if("comment"===n.type)return new zs(n);if("atrule"===n.type)return new Gs(n);throw new Error("Unknown node type: "+t.type)}var Js=Ys;Ys.default=Ys;let Zs=Ur,Qs=sn,Ks=Es,to=ei,eo=Hs,ro=Wr,no=Js,io=oi,so=ui,oo=Vn,ao=Bi,lo=di,co=An,uo=ls,ho=$i,po=Ji,fo=zi,mo=en;function go(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new eo(t)}go.plugin=function(t,e){function r(...r){let n=e(...r);return n.postcssPlugin=t,n.postcssVersion=(new eo).version,n}let n;return console&&console.warn&&(console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(t,e,n){return go([r(n)]).process(t,e)},r},go.stringify=ro,go.parse=uo,go.fromJSON=no,go.list=ho,go.comment=t=>new oo(t),go.atRule=t=>new ao(t),go.decl=t=>new Qs(t),go.rule=t=>new po(t),go.root=t=>new fo(t),go.document=t=>new io(t),go.CssSyntaxError=Zs,go.Declaration=Qs,go.Container=to,go.Processor=eo,go.Document=io,go.Comment=oo,go.Warning=so,go.AtRule=ao,go.Result=lo,go.Input=co,go.Rule=po,go.Root=fo,go.Node=mo,Ks.registerPostcss(go);var bo=go;go.default=go;const yo=n,vo=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},{isPlainObject:wo}=xr,xo=Pr,So=Lr.exports,{parse:_o}=bo,To=["img","audio","video","picture","svg","object","map","iframe","embed"],Co=["script","style"];function Oo(t,e){t&&Object.keys(t).forEach((function(r){e(t[r],r)}))}function ko(t,e){return{}.hasOwnProperty.call(t,e)}function Eo(t,e){const r=[];return Oo(t,(function(t){e(t)&&r.push(t)})),r}var Ao=Po;const Do=/^[^\0\t\n\f\r /<=>]+$/;function Po(t,e,r){if(null==t)return"";let n="",i="";function s(t,e){const r=this;this.tag=t,this.attribs=e||{},this.tagPosition=n.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(m.length){m[m.length-1].text+=r.text}},this.updateParentNodeMediaChildren=function(){if(m.length&&To.includes(this.tag)){m[m.length-1].mediaChildren.push(this.tag)}}}(e=Object.assign({},Po.defaults,e)).parser=Object.assign({},Lo,e.parser),Co.forEach((function(t){e.allowedTags&&e.allowedTags.indexOf(t)>-1&&!e.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${t}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},Oo(e.allowedAttributes,(function(t,e){a[e]=[];const r=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?r.push(vo(t).replace(/\\\*/g,".*")):a[e].push(t)})),r.length&&(l[e]=new RegExp("^("+r.join("|")+")$"))})));const c={},u={},h={};Oo(e.allowedClasses,(function(t,e){a&&(ko(a,e)||(a[e]=[]),a[e].push("class")),c[e]=[],h[e]=[];const r=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?r.push(vo(t).replace(/\\\*/g,".*")):t instanceof RegExp?h[e].push(t):c[e].push(t)})),r.length&&(u[e]=new RegExp("^("+r.join("|")+")$"))}));const p={};let d,f,m,g,b,y,v;Oo(e.transformTags,(function(t,e){let r;"function"==typeof t?r=t:"string"==typeof t&&(r=Po.simpleTransform(t)),"*"===e?d=r:p[e]=r}));let w=!1;S();const x=new yo.Parser({onopentag:function(t,r){if(e.enforceHtmlBoundary&&"html"===t&&S(),y)return void v++;const x=new s(t,r);m.push(x);let O=!1;const k=!!x.text;let E;if(ko(p,t)&&(E=p[t](t,r),x.attribs=r=E.attribs,void 0!==E.text&&(x.innerText=E.text),t!==E.tagName&&(x.name=t=E.tagName,b[f]=E.tagName)),d&&(E=d(t,r),x.attribs=r=E.attribs,t!==E.tagName&&(x.name=t=E.tagName,b[f]=E.tagName)),(e.allowedTags&&-1===e.allowedTags.indexOf(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(ko(t,e))return!1;return!0}(g)||null!=e.nestingLimit&&f>=e.nestingLimit)&&(O=!0,g[f]=!0,"discard"===e.disallowedTagsMode&&-1!==o.indexOf(t)&&(y=!0,v=1),g[f]=!0),f++,O){if("discard"===e.disallowedTagsMode)return;i=n,n=""}n+="<"+t,"script"===t&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(x.innerText=""),(!a||ko(a,t)||a["*"])&&Oo(r,(function(r,i){if(!Do.test(i))return void delete x.attribs[i];let s,o=!1;if(!a||ko(a,t)&&-1!==a[t].indexOf(i)||a["*"]&&-1!==a["*"].indexOf(i)||ko(l,t)&&l[t].test(i)||l["*"]&&l["*"].test(i))o=!0;else if(a&&a[t])for(const e of a[t])if(wo(e)&&e.name&&e.name===i){o=!0;let t="";if(!0===e.multiple){const n=r.split(" ");for(const r of n)-1!==e.values.indexOf(r)&&(""===t?t=r:t+=" "+r)}else e.values.indexOf(r)>=0&&(t=r);r=t}if(o){if(-1!==e.allowedSchemesAppliedToAttributes.indexOf(i)&&T(t,r))return void delete x.attribs[i];if("script"===t&&"src"===i){let t=!0;try{const n=new URL(r);if(e.allowedScriptHostnames||e.allowedScriptDomains){const r=(e.allowedScriptHostnames||[]).find((function(t){return t===n.hostname})),i=(e.allowedScriptDomains||[]).find((function(t){return n.hostname===t||n.hostname.endsWith(`.${t}`)}));t=r||i}}catch(e){t=!1}if(!t)return void delete x.attribs[i]}if("iframe"===t&&"src"===i){let t=!0;try{if((r=r.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let n="relative://relative-site";for(let t=0;t<100;t++)n+=`/${t}`;const i=new URL(r,n);if(i&&"relative-site"===i.hostname&&"relative:"===i.protocol)t=ko(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const r=(e.allowedIframeHostnames||[]).find((function(t){return t===i.hostname})),n=(e.allowedIframeDomains||[]).find((function(t){return i.hostname===t||i.hostname.endsWith(`.${t}`)}));t=r||n}}catch(e){t=!1}if(!t)return void delete x.attribs[i]}if("srcset"===i)try{if(s=So(r),s.forEach((function(t){T("srcset",t.url)&&(t.evil=!0)})),s=Eo(s,(function(t){return!t.evil})),!s.length)return void delete x.attribs[i];r=Eo(s,(function(t){return!t.evil})).map((function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")})).join(", "),x.attribs[i]=r}catch(t){return void delete x.attribs[i]}if("class"===i){const e=c[t],n=c["*"],s=u[t],o=h[t],a=[s,u["*"]].concat(o).filter((function(t){return t}));if(!(r=C(r,e&&n?xo(e,n):e||n,a)).length)return void delete x.attribs[i]}if("style"===i)try{const n=function(t,e){if(!e)return t;const r=t.nodes[0];let n;n=e[r.selector]&&e["*"]?xo(e[r.selector],e["*"]):e[r.selector]||e["*"];n&&(t.nodes[0].nodes=r.nodes.reduce(function(t){return function(e,r){if(ko(t,r.prop)){t[r.prop].some((function(t){return t.test(r.value)}))&&e.push(r)}return e}}(n),[]));return t}(_o(t+" {"+r+"}"),e.allowedStyles);if(0===(r=function(t){return t.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")}(n)).length)return void delete x.attribs[i]}catch(t){return void delete x.attribs[i]}n+=" "+i,r&&r.length&&(n+='="'+_(r,!0)+'"')}else delete x.attribs[i]})),-1!==e.selfClosing.indexOf(t)?n+=" />":(n+=">",!x.innerText||k||e.textFilter||(n+=_(x.innerText),w=!0)),O&&(n=i+_(n),i="")},ontext:function(t){if(y)return;const r=m[m.length-1];let i;if(r&&(i=r.tag,t=void 0!==r.innerText?r.innerText:t),"discard"!==e.disallowedTagsMode||"script"!==i&&"style"!==i){const r=_(t,!1);e.textFilter&&!w?n+=e.textFilter(r,i):w||(n+=r)}else n+=t;if(m.length){m[m.length-1].text+=t}},onclosetag:function(t){if(y){if(v--,v)return;y=!1}const r=m.pop();if(!r)return;y=!!e.enforceHtmlBoundary&&"html"===t,f--;const s=g[f];if(s){if(delete g[f],"discard"===e.disallowedTagsMode)return void r.updateParentNodeText();i=n,n=""}b[f]&&(t=b[f],delete b[f]),e.exclusiveFilter&&e.exclusiveFilter(r)?n=n.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1===e.selfClosing.indexOf(t)?(n+="",s&&(n=i+_(n),i=""),w=!1):s&&(n=i,i=""))}},e.parser);return x.write(t),x.end(),n;function S(){n="",f=0,m=[],g={},b={},y=!1,v=0}function _(t,r){return"string"!=typeof t&&(t+=""),e.parser.decodeEntities&&(t=t.replace(/&/g,"&").replace(//g,">"),r&&(t=t.replace(/"/g,"""))),t=t.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),r&&(t=t.replace(/"/g,""")),t}function T(t,r){const n=(r=(r=r.replace(/[\x00-\x20]+/g,"")).replace(//g,"")).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!r.match(/^[/\\]{2}/)&&!e.allowProtocolRelative;const i=n[1].toLowerCase();return ko(e.allowedSchemesByTag,t)?-1===e.allowedSchemesByTag[t].indexOf(i):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(i)}function C(t,e,r){return e?(t=t.split(/\s+/)).filter((function(t){return-1!==e.indexOf(t)||r.some((function(e){return e.test(t)}))})).join(" "):t}}const Lo={decodeEntities:!0};Po.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","main","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"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},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},Po.simpleTransform=function(t,e,r){return r=void 0===r||r,e=e||{},function(n,i){let s;if(r)for(s in e)i[s]=e[s];else i=e;return{tagName:t,attribs:i}}};var Mo=Ao;const qo=Mo.defaults,No={allowedTags:["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"],allowedAttributes:{a:["href","name","target"],span:["style"]},allowedSchemes:["ftp","http","https","mailto"],selfClosing:["br"],parser:{decodeEntities:!0}},jo={allowedTags:!1,allowedAttributes:!1},Io={allowedTags:[],allowedAttributes:[]};function Ro(t,e){return Array.isArray(e)?{config:e[0],input:e[1]}:t.strip?{config:Io,input:e}:t.basic?{config:qo,input:e}:t.inline?{config:No,input:e}:t.nothing?{config:jo,input:e}:{config:qo,input:e}}function Bo(t,{modifiers:e,oldValue:r,value:n}){if(n!==r){const{config:r,input:i}=Ro(e,n);t.innerHTML=Mo(i,r)}}const Uo={getSSRProps:function({modifiers:t,value:e}){const{config:r,input:n}=Ro(t,e);return{innerHTML:Mo(n,r)}},inserted:Bo,mounted:Bo,update:Bo,updated:Bo};var Ho={install(t,{name:e="sanitize"}={}){t.directive(e,Uo)}};t.FILTER_BASIC=qo,t.FILTER_INLINE=No,t.FILTER_NOTHING=jo,t.FILTER_STRIP=Io,t.VueSanitizeDirectiveSSR=function(t,{modifiers:e,value:r}){const{config:n,input:i}=Ro(e,r);t.data.domProps=t.data.domProps||{},t.data.domProps.innerHTML=Mo(i,n)},t.default=Ho,t.directive=Uo,Object.defineProperty(t,"__esModule",{value:!0})})); diff --git a/package-lock.json b/package-lock.json index 7f34741..e070791 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue-sanitize-directive", - "version": "0.1.0", + "version": "0.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d26e4a7..56c9384 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-sanitize-directive", - "version": "0.1.0", + "version": "0.2.0", "description": "Vue directive for HTML sanitization.", "author": { "name": "Leonardo Piccioni de Almeida",