mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-11 17:57:49 +01:00
53 lines
147 KiB
JavaScript
53 lines
147 KiB
JavaScript
|
/**
|
|||
|
* Skipped minification because the original files appears to be already minified.
|
|||
|
* Original file: /npm/vue-sanitize-directive@0.2.1/dist/vue-sanitize-directive.umd.js
|
|||
|
*
|
|||
|
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|||
|
*/
|
|||
|
(function(Z,y){typeof exports=="object"&&typeof module<"u"?y(exports):typeof define=="function"&&define.amd?define(["exports"],y):(Z=typeof globalThis<"u"?globalThis:Z||self,y(Z.VueSanitizeDirective={}))})(this,function(Z){"use strict";var y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qr(r){var t=r.default;if(typeof t=="function"){var e=function(){return t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return r[s]}})}),e}var Er={},Dt={},Wt={},Yt={};const Cn={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Dn=y&&y.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yt,"__esModule",{value:!0});var Tr=Dn(Cn),Ln=String.fromCodePoint||function(r){var t="";return r>65535&&(r-=65536,t+=String.fromCharCode(r>>>10&1023|55296),r=56320|r&1023),t+=String.fromCharCode(r),t};function On(r){return r>=55296&&r<=57343||r>1114111?"<22>":(r in Tr.default&&(r=Tr.default[r]),Ln(r))}Yt.default=On;const De={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"<EFBFBD>
|
|||
|
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п"
|
|||
|
`||r===" "||r==="\f"||r==="\r"}function Ar(r){return r>="a"&&r<="z"||r>="A"&&r<="Z"}function k(r,t,e){var s=r.toLowerCase();return r===s?function(n,o){o===s?n._state=t:(n._state=e,n._index--)}:function(n,o){o===s||o===r?n._state=t:(n._state=e,n._index--)}}function K(r,t){var e=r.toLowerCase();return function(s,n){n===e||n===r?s._state=t:(s._state=3,s._index--)}}var Rn=k("C",24,16),Pn=k("D",25,16),In=k("A",26,16),Mn=k("T",27,16),Bn=k("A",28,16),Un=K("R",35),jn=K("I",36),Vn=K("P",37),Hn=K("T",38),zn=k("R",40,1),Fn=k("I",41,1),Gn=k("P",42,1),Wn=k("T",43,1),Yn=K("Y",45),Jn=K("L",46),Xn=K("E",47),Zn=k("Y",49,1),Qn=k("L",50,1),Kn=k("E",51,1),to=K("I",54),eo=K("T",55),ro=K("L",56),so=K("E",57),no=k("I",58,1),oo=k("T",59,1),io=k("L",60,1),ao=k("E",61,1),co=k("#",63,64),lo=k("X",66,65),uo=function(){function r(t,e){var s;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=e,this.xmlMode=!!t?.xmlMode,this.decodeEntities=(s=t?.decodeEntities)!==null&&s!==void 0?s:!0}return r.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},r.prototype.write=function(t){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=t,this.parse()},r.prototype.end=function(t){this.ended&&this.cbs.onerror(Error(".end() after done!")),t&&this.write(t),this.ended=!0,this.running&&this.finish()},r.prototype.pause=function(){this.running=!1},r.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},r.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},r.prototype.stateText=function(t){t==="<"?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&t==="&"&&(this.special===1||this.special===4)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},r.prototype.isTagStartChar=function(t){return Ar(t)||this.xmlMode&&!z(t)&&t!=="/"&&t!==">"},r.prototype.stateBeforeTagName=function(t){t==="/"?this._state=5:t==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):t===">"||this.special!==1||z(t)?this._state=1:t==="!"?(this._state=15,this.sectionStart=this._index+1):t==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(t)?(this._state=!this.xmlMode&&(t==="s"||t==="S")?32:!this.xmlMode&&(t==="t"||t==="T")?52:3,this.sectionStart=this._index):this._state=1},r.prototype.stateInTagName=function(t){(t==="/"||t===">"||z(t))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},r.prototype.stateBeforeClosingTagName=function(t){z(t)||(t===">"?this._state=1:this.special!==1?this.special!==4&&(t==="s"||t==="S")?this._state=33:this.special===4&&(t==="t"||t==="T")?this._state=53:(this._state=1,this._index--):this.isTagStartChar(t)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},r.prototype.stateInClosingTagName=function(t){(t===">"||z(t))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},r.prototype.stateAfterClosingTagName=function(t){t===">"&&(this._state=1,this.sectionStart=this._index+1)},r.prototype.stateBeforeAttributeName=function(t){t===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):t==="/"?this._state=4:z(t)||(this._state=9,this.sectionStart=this._index)},r.prototype.stateInSelfClosingTag=function(t){t===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):z(t)||(this._state=8,this._index--)},r.prototype.stateInAttributeName=function(t){(t==="="||t==="/"||t===">"||z(t))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},r.prototype.stateAfterAttributeName=function(t){t==="="?this._state=11:t==="/"||t===">"?(this.cbs.onattribend(void 0),this._state=8,this._index--):z(t)||(this.cbs.on
|
|||
|
`:te(r.children):(0,st.isCDATA)(r)?te(r.children):(0,st.isText)(r)?r.data:""}F.getText=te;function je(r){return Array.isArray(r)?r.map(je).join(""):(0,st.hasChildren)(r)&&!(0,st.isComment)(r)?je(r.children):(0,st.isText)(r)?r.data:""}F.textContent=je;function Ve(r){return Array.isArray(r)?r.map(Ve).join(""):(0,st.hasChildren)(r)&&(r.type===Ho.ElementType.Tag||(0,st.isCDATA)(r))?Ve(r.children):(0,st.isText)(r)?r.data:""}F.innerText=Ve;var $={};Object.defineProperty($,"__esModule",{value:!0}),$.prevElementSibling=$.nextElementSibling=$.getName=$.hasAttrib=$.getAttributeValue=$.getSiblings=$.getParent=$.getChildren=void 0;var os=it,Fo=[];function is(r){var t;return(t=r.children)!==null&&t!==void 0?t:Fo}$.getChildren=is;function as(r){return r.parent||null}$.getParent=as;function Go(r){var t,e,s=as(r);if(s!=null)return is(s);for(var n=[r],o=r.prev,i=r.next;o!=null;)n.unshift(o),t=o,o=t.prev;for(;i!=null;)n.push(i),e=i,i=e.next;return n}$.getSiblings=Go;function Wo(r,t){var e;return(e=r.attribs)===null||e===void 0?void 0:e[t]}$.getAttributeValue=Wo;function Yo(r,t){return r.attribs!=null&&Object.prototype.hasOwnProperty.call(r.attribs,t)&&r.attribs[t]!=null}$.hasAttrib=Yo;function Jo(r){return r.name}$.getName=Jo;function Xo(r){for(var t,e=r.next;e!==null&&!(0,os.isTag)(e);)t=e,e=t.next;return e}$.nextElementSibling=Xo;function Zo(r){for(var t,e=r.prev;e!==null&&!(0,os.isTag)(e);)t=e,e=t.prev;return e}$.prevElementSibling=Zo;var I={};Object.defineProperty(I,"__esModule",{value:!0}),I.prepend=I.prependChild=I.append=I.appendChild=I.replaceElement=I.removeElement=void 0;function Ot(r){if(r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),r.parent){var t=r.parent.children;t.splice(t.lastIndexOf(r),1)}}I.removeElement=Ot;function Qo(r,t){var e=t.prev=r.prev;e&&(e.next=t);var s=t.next=r.next;s&&(s.prev=t);var n=t.parent=r.parent;if(n){var o=n.children;o[o.lastIndexOf(r)]=t}}I.replaceElement=Qo;function Ko(r,t){if(Ot(t),t.next=null,t.parent=r,r.children.push(t)>1){var e=r.children[r.children.length-2];e.next=t,t.prev=e}else t.prev=null}I.appendChild=Ko;function ti(r,t){Ot(t);var e=r.parent,s=r.next;if(t.next=s,t.prev=r,r.next=t,t.parent=e,s){if(s.prev=t,e){var n=e.children;n.splice(n.lastIndexOf(s),0,t)}}else e&&e.children.push(t)}I.append=ti;function ei(r,t){if(Ot(t),t.parent=r,t.prev=null,r.children.unshift(t)!==1){var e=r.children[1];e.prev=t,t.next=e}else t.next=null}I.prependChild=ei;function ri(r,t){Ot(t);var e=r.parent;if(e){var s=e.children;s.splice(s.indexOf(r),0,t)}r.prev&&(r.prev.next=t),t.parent=e,t.prev=r.prev,t.next=r,r.prev=t}I.prepend=ri;var R={};Object.defineProperty(R,"__esModule",{value:!0}),R.findAll=R.existsOne=R.findOne=R.findOneChild=R.find=R.filter=void 0;var Nt=it;function si(r,t,e,s){return e===void 0&&(e=!0),s===void 0&&(s=1/0),Array.isArray(t)||(t=[t]),He(r,t,e,s)}R.filter=si;function He(r,t,e,s){for(var n=[],o=0,i=t;o<i.length;o++){var a=i[o];if(r(a)&&(n.push(a),--s<=0))break;if(e&&(0,Nt.hasChildren)(a)&&a.children.length>0){var c=He(r,a.children,e,s);if(n.push.apply(n,c),s-=c.length,s<=0)break}}return n}R.find=He;function ni(r,t){return t.find(r)}R.findOneChild=ni;function cs(r,t,e){e===void 0&&(e=!0);for(var s=null,n=0;n<t.length&&!s;n++){var o=t[n];if((0,Nt.isTag)(o))r(o)?s=o:e&&o.children.length>0&&(s=cs(r,o.children));else continue}return s}R.findOne=cs;function ls(r,t){return t.some(function(e){return(0,Nt.isTag)(e)&&(r(e)||e.children.length>0&&ls(r,e.children))})}R.existsOne=ls;function oi(r,t){for(var e,s=[],n=t.filter(Nt.isTag),o;o=n.shift();){var i=(e=o.children)===null||e===void 0?void 0:e.filter(Nt.isTag);i&&i.length>0&&n.unshift.apply(n,i),r(o)&&s.push(o)}return s}R.findAll=oi;var W={};Object.defineProperty(W,"__esModule",{value:!0}),W.getElementsByTagType=W.getElementsByTagName=W.getElementById=W.getElements=W.testElement=void 0;var bt=it,ee=R,re={tag_name:function(r){return typeof r=="function"?function(t){return(0,bt.isTag)(t)&&r(t.name)}:r==="*"?bt.isTag:function(t){return(0,bt.isTag)(t)&&t.name===r}},tag_type:function(r){return typeof r=="function"?function(t){return r(t.type)}
|
|||
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|||
|
*
|
|||
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|||
|
* Released under the MIT License.
|
|||
|
*/function ws(r){return Object.prototype.toString.call(r)==="[object Object]"}function Oi(r){var t,e;return ws(r)===!1?!1:(t=r.constructor,t===void 0?!0:(e=t.prototype,!(ws(e)===!1||e.hasOwnProperty("isPrototypeOf")===!1)))}Fe.isPlainObject=Oi;var Ni=function(t){return ki(t)&&!$i(t)};function ki(r){return!!r&&typeof r=="object"}function $i(r){var t=Object.prototype.toString.call(r);return t==="[object RegExp]"||t==="[object Date]"||Ii(r)}var Ri=typeof Symbol=="function"&&Symbol.for,Pi=Ri?Symbol.for("react.element"):60103;function Ii(r){return r.$$typeof===Pi}function Mi(r){return Array.isArray(r)?[]:{}}function $t(r,t){return t.clone!==!1&&t.isMergeableObject(r)?_t(Mi(r),r,t):r}function Bi(r,t,e){return r.concat(t).map(function(s){return $t(s,e)})}function Ui(r,t){if(!t.customMerge)return _t;var e=t.customMerge(r);return typeof e=="function"?e:_t}function ji(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(t){return r.propertyIsEnumerable(t)}):[]}function xs(r){return Object.keys(r).concat(ji(r))}function Ss(r,t){try{return t in r}catch{return!1}}function Vi(r,t){return Ss(r,t)&&!(Object.hasOwnProperty.call(r,t)&&Object.propertyIsEnumerable.call(r,t))}function Hi(r,t,e){var s={};return e.isMergeableObject(r)&&xs(r).forEach(function(n){s[n]=$t(r[n],e)}),xs(t).forEach(function(n){Vi(r,n)||(Ss(r,n)&&e.isMergeableObject(t[n])?s[n]=Ui(n,e)(r[n],t[n],e):s[n]=$t(t[n],e))}),s}function _t(r,t,e){e=e||{},e.arrayMerge=e.arrayMerge||Bi,e.isMergeableObject=e.isMergeableObject||Ni,e.cloneUnlessOtherwiseSpecified=$t;var s=Array.isArray(t),n=Array.isArray(r),o=s===n;return o?s?e.arrayMerge(r,t,e):Hi(r,t,e):$t(t,e)}_t.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(s,n){return _t(s,n,e)},{})};var zi=_t,Fi=zi,qs={exports:{}};(function(r){(function(t,e){r.exports?r.exports=e():t.parseSrcset=e()})(y,function(){return function(t){function e(C){return C===" "||C===" "||C===`
|
|||
|
`||C==="\f"||C==="\r"}function s(C){var j,V=C.exec(t.substring(h));if(V)return j=V[0],h+=j.length,j}for(var n=t.length,o=/^[ \t\n\r\u000c]+/,i=/^[, \t\n\r\u000c]+/,a=/^[^ \t\n\r\u000c]+/,c=/[,]+$/,l=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,p,b,w,d,v,h=0,L=[];;){if(s(i),h>=n)return L;p=s(a),b=[],p.slice(-1)===","?(p=p.replace(c,""),Y()):U()}function U(){for(s(o),w="",d="in descriptor";;){if(v=t.charAt(h),d==="in descriptor")if(e(v))w&&(b.push(w),w="",d="after descriptor");else if(v===","){h+=1,w&&b.push(w),Y();return}else if(v==="(")w=w+v,d="in parens";else if(v===""){w&&b.push(w),Y();return}else w=w+v;else if(d==="in parens")if(v===")")w=w+v,d="in descriptor";else if(v===""){b.push(w),Y();return}else w=w+v;else if(d==="after descriptor"&&!e(v))if(v===""){Y();return}else d="in descriptor",h-=1;h+=1}}function Y(){var C=!1,j,V,J,H,Q={},et,Ct,ht,dt,u;for(H=0;H<b.length;H++)et=b[H],Ct=et[et.length-1],ht=et.substring(0,et.length-1),dt=parseInt(ht,10),u=parseFloat(ht),l.test(ht)&&Ct==="w"?((j||V)&&(C=!0),dt===0?C=!0:j=dt):f.test(ht)&&Ct==="x"?((j||V||J)&&(C=!0),u<0?C=!0:V=u):l.test(ht)&&Ct==="h"?((J||V)&&(C=!0),dt===0?C=!0:J=dt):C=!0;C?console&&console.log&&console.log("Invalid srcset descriptor found in '"+t+"' at '"+et+"'."):(Q.url=p,j&&(Q.w=j),V&&(Q.d=V),J&&(Q.h=J),L.push(Q))}}})})(qs);var Ge={exports:{}},A=String,Es=function(){return{isColorSupported:!1,reset:A,bold:A,dim:A,italic:A,underline:A,inverse:A,hidden:A,strikethrough:A,black:A,red:A,green:A,yellow:A,blue:A,magenta:A,cyan:A,white:A,gray:A,bgBlack:A,bgRed:A,bgGreen:A,bgYellow:A,bgBlue:A,bgMagenta:A,bgCyan:A,bgWhite:A}};Ge.exports=Es(),Ge.exports.createColors=Es;const tt=qr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Ts=Ge.exports,_s=tt;class Rt extends Error{constructor(t,e,s,n,o,i){super(t),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),n&&(this.source=n),i&&(this.plugin=i),typeof e<"u"&&typeof s<"u"&&(typeof e=="number"?(this.line=e,this.column=s):(this.line=e.line,this.column=e.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Rt)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;t==null&&(t=Ts.isColorSupported),_s&&t&&(e=_s(e));let s=e.split(/\r?\n/),n=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),i=String(o).length,a,c;if(t){let{bold:l,red:f,gray:p}=Ts.createColors(!0);a=b=>l(f(b)),c=b=>p(b)}else a=c=l=>l;return s.slice(n,o).map((l,f)=>{let p=n+1+f,b=" "+(" "+p).slice(-i)+" | ";if(p===this.line){let w=c(b.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+c(b)+l+`
|
|||
|
`+w+a("^")}return" "+c(b)+l}).join(`
|
|||
|
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|||
|
|
|||
|
`+t+`
|
|||
|
`),this.name+": "+this.message+t}}var We=Rt;Rt.default=Rt;var Pt={};Pt.isClean=Symbol("isClean"),Pt.my=Symbol("my");const As={colon:": ",indent:" ",beforeDecl:`
|
|||
|
`,beforeRule:`
|
|||
|
`,beforeOpen:" ",beforeClose:`
|
|||
|
`,beforeComment:`
|
|||
|
`,after:`
|
|||
|
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function Gi(r){return r[0].toUpperCase()+r.slice(1)}class Ye{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"),s=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+s+"*/",t)}decl(t,e){let s=this.raw(t,"between","colon"),n=t.prop+s+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 s="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?s+=t.raws.afterName:n&&(s+=" "),t.nodes)this.block(t,s+n);else{let o=(t.raws.between||"")+(e?";":"");this.builder(s+n+o,t)}}body(t){let e=t.nodes.length-1;for(;e>0&&t.nodes[e].type==="comment";)e-=1;let s=this.raw(t,"semicolon");for(let n=0;n<t.nodes.length;n++){let o=t.nodes[n],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,e!==n||s)}}block(t,e){let s=this.raw(t,"between","beforeOpen");this.builder(e+s+"{",t,"start");let n;t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(n),this.builder("}",t,"end")}raw(t,e,s){let n;if(s||(s=e),e&&(n=t.raws[e],typeof n<"u"))return n;let o=t.parent;if(s==="before"&&(!o||o.type==="root"&&o.first===t||o&&o.type==="document"))return"";if(!o)return As[s];let i=t.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[s]<"u")return i.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(t,s);{let a="raw"+Gi(s);this[a]?n=this[a](i,t):i.walk(c=>{if(n=c.raws[e],typeof n<"u")return!1})}return typeof n>"u"&&(n=As[s]),i.rawCache[s]=n,n}rawSemicolon(t){let e;return t.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(e=s.raws.semicolon,typeof e<"u"))return!1}),e}rawEmptyBody(t){let e;return t.walk(s=>{if(s.nodes&&s.nodes.length===0&&(e=s.raws.after,typeof e<"u"))return!1}),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk(s=>{let n=s.parent;if(n&&n!==t&&n.parent&&n.parent===t&&typeof s.raws.before<"u"){let o=s.raws.before.split(`
|
|||
|
`);return e=o[o.length-1],e=e.replace(/\S/g,""),!1}}),e}rawBeforeComment(t,e){let s;return t.walkComments(n=>{if(typeof n.raws.before<"u")return s=n.raws.before,s.includes(`
|
|||
|
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(e,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(t,e){let s;return t.walkDecls(n=>{if(typeof n.raws.before<"u")return s=n.raws.before,s.includes(`
|
|||
|
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(e,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeRule(t){let e;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&typeof s.raws.before<"u")return e=s.raws.before,e.includes(`
|
|||
|
`)&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeClose(t){let e;return t.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return e=s.raws.after,e.includes(`
|
|||
|
`)&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeOpen(t){let e;return t.walk(s=>{if(s.type!=="decl"&&(e=s.raws.between,typeof e<"u"))return!1}),e}rawColon(t){let e;return t.walkDecls(s=>{if(typeof s.raws.between<"u")return e=s.raws.between.replace(/[^\s:]/g,""),!1}),e}beforeAfter(t,e){let s;t.type==="decl"?s=this.raw(t,null,"beforeDecl"):t.type==="comment"?s=this.raw(t,null,"beforeComment"):e==="before"?s=this.raw(t,null,"beforeRule"):s=this.raw(t,null,"beforeClose");let n=t.parent,o=0;for(;n&&n.type!=="root";)o+=1,n=n.parent;if(s.includes(`
|
|||
|
`)){let i=this.raw(t,null,"indent");if(i.length)for(let a=0;a<o;a++)s+=i}return s}rawValue(t,e){let s=t[e],n=t.raws[e];return n&&n.value===s?n.raw:s}}var Cs=Ye;Ye.default=Ye;let Wi=Cs;function Je(r,t){new Wi(t).stringify(r)}var ae=Je;Je.default=Je;let{isClean:ce,my:Yi}=Pt,Ji=We,Xi=Cs,Zi=ae;function Xe(r,t){let e=new r.constructor;for(let s in r){if(!Object.prototype.hasOwnProperty.call(r,s)||s==="proxyCache")continue;let n=r[s],o=typeof n;s==="parent"&&o==="object"?t&&(e[s]=t):s==="source"?e[s]=n:Array.isArray(n)?e[s]=n.map(i=>Xe(i,e)):(o==="object"&&n!==null&&(n=Xe(n)),e[s]=n)}return e}class Ze{constructor(t={}){this.raws={},this[ce]=!1,this[Yi]=!0;for(let e in t)if(e==="nodes"){this.nodes=[];for(let s of t[e])typeof s.clone=="function"?this.append(s.clone()):this.append(s)}else this[e]=t[e]}error(t,e={}){if(this.source){let{start:s,end:n}=this.rangeBy(e);return this.source.input.error(t,{line:s.line,column:s.column},{line:n.line,column:n.column},e)}return new Ji(t)}warn(t,e,s){let n={node:this};for(let o in s)n[o]=s[o];return t.warn(e,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(t=Zi){t.stringify&&(t=t.stringify);let e="";return t(this,s=>{e+=s}),e}assign(t={}){for(let e in t)this[e]=t[e];return this}clone(t={}){let e=Xe(this);for(let s in t)e[s]=t[s];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,s=!1;for(let n of t)n===this?s=!0:s?(this.parent.insertAfter(e,n),e=n):this.parent.insertBefore(e,n);s||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&&t.parent.type!=="document";)t=t.parent;return t}raw(t,e){return new Xi().raw(this,t,e)}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}toJSON(t,e){let s={},n=e==null;e=e||new Map;let o=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let a=this[i];if(Array.isArray(a))s[i]=a.map(c=>typeof c=="object"&&c.toJSON?c.toJSON(null,e):c);else if(typeof a=="object"&&a.toJSON)s[i]=a.toJSON(null,e);else if(i==="source"){let c=e.get(a.input);c==null&&(c=o,e.set(a.input,o),o++),s[i]={inputId:c,start:a.start,end:a.end}}else s[i]=a}return n&&(s.inputs=[...e.keys()].map(i=>i.toJSON())),s}positionInside(t){let e=this.toString(),s=this.source.start.column,n=this.source.start.line;for(let o=0;o<t;o++)e[o]===`
|
|||
|
`?(s=1,n+=1):s+=1;return{line:n,column:s}}positionBy(t){let e=this.source.start;if(t.index)e=this.positionInside(t.index);else if(t.word){let s=this.toString().indexOf(t.word);s!==-1&&(e=this.positionInside(s))}return e}rangeBy(t){let e={line:this.source.start.line,column:this.source.start.column},s=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:e.line,column:e.column+1};if(t.word){let n=this.toString().indexOf(t.word);n!==-1&&(e=this.positionInside(n),s=this.positionInside(n+t.word.length))}else t.start?e={line:t.start.line,column:t.start.column}:t.index&&(e=this.positionInside(t.index)),t.end?s={line:t.end.line,column:t.end.column}:t.endIndex?s=this.positionInside(t.endIndex):t.index&&(s=this.positionInside(t.index+1));return(s.line<e.line||s.line===e.line&&s.column<=e.column)&&(s={line:e.line,column:e.column+1}),{start:e,end:s}}getProxyProcessor(){return{set(t,e,s){return t[e]===s||(t[e]=s,(e==="prop"||e==="value"||e==="name"||e==="params"||e==="important"||e==="text")&&t.markDirty()),!0},get(t,e){return e==="proxyOf"?t:e==="root"?()=>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[ce]){this[ce]=!1;let t=this;for(;t=t.parent;)t[ce]=!1}}get proxyOf(){return this}}var le=Ze;Ze.default=Ze;let Qi=le;class Qe extends Qi{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}var ue=Qe;Qe.default=Qe;let Ki="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";const ta=qr(Object.freeze(Object.defineProperty({__proto__:null,nanoid:(r=21)=>{let t="",e=r;for(;e--;)t+=Ki[Math.random()*64|0];return t},customAlphabet:(r,t=21)=>(e=t)=>{let s="",n=e;for(;n--;)s+=r[Math.random()*r.length|0];return s}},Symbol.toStringTag,{value:"Module"})));let{SourceMapConsumer:Ds,SourceMapGenerator:Ls}=tt,{existsSync:ea,readFileSync:ra}=tt,{dirname:Ke,join:sa}=tt;function na(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}class tr{constructor(t,e){if(e.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let s=e.map?e.map.prev:void 0,n=this.loadMap(e.from,s);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Ke(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Ds(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:!1}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let s=t.lastIndexOf(e.pop()),n=t.indexOf("*/",s);s>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(s,n)))}decodeInline(t){let e=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(n.test(t)||o.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(e.test(t)||s.test(t))return na(t.substr(RegExp.lastMatch.length));let i=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}loadFile(t){if(this.root=Ke(t),ea(t))return this.mapFile=t,ra(t,"utf-8").toString().trim()}loadMap(t,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){let s=e(t);if(s){let n=this.loadFile(s);if(!n)throw new Error("Unable to load previous source map: "+s.toString());return n}}else{if(e instanceof Ds)return Ls.fromSourceMap(e).toString();if(e instanceof Ls)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+
|
|||
|
`);s=new Array(o.length);let i=0;for(let a=0,c=o.length;a<c;a++)s[a]=i,i+=o[a].length+1;this[nr]=s}e=s[s.length-1];let n=0;if(t>=e)n=s.length-1;else{let o=s.length-2,i;for(;n<o;)if(i=n+(o-n>>1),t<s[i])o=i-1;else if(t>=s[i+1])n=i+1;else{n=i;break}}return{line:n+1,col:t-s[n]+1}}error(t,e,s,n={}){let o,i,a;if(e&&typeof e=="object"){let l=e,f=s;if(typeof e.offset=="number"){let p=this.fromOffset(l.offset);e=p.line,s=p.col}else e=l.line,s=l.column;if(typeof f.offset=="number"){let p=this.fromOffset(f.offset);i=p.line,a=p.col}else i=f.line,a=f.column}else if(!s){let l=this.fromOffset(e);e=l.line,s=l.col}let c=this.origin(e,s,i,a);return c?o=new ks(t,c.endLine===void 0?c.line:{line:c.line,column:c.column},c.endLine===void 0?c.column:{line:c.endLine,column:c.endColumn},c.source,c.file,n.plugin):o=new ks(t,i===void 0?e:{line:e,column:s},i===void 0?s:{line:i,column:a},this.css,this.file,n.plugin),o.input={line:e,column:s,endLine:i,endColumn:a,source:this.css},this.file&&(fe&&(o.input.url=fe(this.file).toString()),o.input.file=this.file),o}origin(t,e,s,n){if(!this.map)return!1;let o=this.map.consumer(),i=o.originalPositionFor({line:t,column:e});if(!i.source)return!1;let a;typeof s=="number"&&(a=o.originalPositionFor({line:s,column:n}));let c;rr(i.source)?c=fe(i.source):c=new URL(i.source,this.map.consumer().sourceRoot||fe(this.map.mapFile));let l={url:c.toString(),line:i.line,column:i.column,endLine:a&&a.line,endColumn:a&&a.column};if(c.protocol==="file:")if(Ns)l.file=Ns(c);else throw new Error("file: protocol is not available in this PostCSS build");let f=o.sourceContentFor(i.source);return f&&(l.source=f),l}mapResolve(t){return/^\w+:\/\//.test(t)?t:er(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"])this[e]!=null&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}var he=pe;pe.default=pe,sr&&sr.registerInput&&sr.registerInput(pe);let{SourceMapConsumer:Rs,SourceMapGenerator:de}=tt,{dirname:ge,resolve:Ps,relative:Is,sep:Ms}=tt,{pathToFileURL:Bs}=tt,ua=he,fa=Boolean(Rs&&de),pa=Boolean(ge&&Ps&&Is&&Ms);class ha{constructor(t,e,s,n){this.stringify=t,this.mapOpts=s.map||{},this.root=e,this.opts=s,this.css=n}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(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 ua(this.css,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(e=>e.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&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 s=e.source.input.from;s&&!t[s]&&(t[s]=!0,this.map.setSourceContent(this.toUrl(this.path(s)),e.source.input.css))}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let t of this.previous()){let e=this.toUrl(this.path(t.file)),s=t.root||ge(t.file),n;this.mapOpts.sourcesContent===!1?(n=new Rs(t.text),n.sourcesContent&&(n.sourcesContent=n.sourcesContent.map(()=>null))):n=t.consumer(),this.map.applySourceMap(n,e,this.toUrl(this.path(s)))}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annot
|
|||
|
`;this.css.includes(`\r
|
|||
|
`)&&(e=`\r
|
|||
|
`),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(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=de.fromSourceMap(t)}else this.map=new de({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",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(t.indexOf("<")===0||/^\w+:\/\//.test(t)||this.mapOpts.absolute)return t;let e=this.opts.to?ge(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(e=ge(Ps(e,this.mapOpts.annotation))),t=Is(e,t),t}toUrl(t){return Ms==="\\"&&(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(Bs)return Bs(t.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}else return this.toUrl(this.path(t.source.input.from))}generateString(){this.css="",this.map=new de({file:this.outputFile()});let t=1,e=1,s="<no source>",n={source:"",generated:{line:0,column:0},original:{line:0,column:0}},o,i;this.stringify(this.root,(a,c,l)=>{if(this.css+=a,c&&l!=="end"&&(n.generated.line=t,n.generated.column=e-1,c.source&&c.source.start?(n.source=this.sourcePath(c),n.original.line=c.source.start.line,n.original.column=c.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),o=a.match(/\n/g),o?(t+=o.length,i=a.lastIndexOf(`
|
|||
|
`),e=a.length-i):e+=a.length,c&&l!=="start"){let f=c.parent||{raws:{}};(c.type!=="decl"||c!==f.last||f.raws.semicolon)&&(c.source&&c.source.end?(n.source=this.sourcePath(c),n.original.line=c.source.end.line,n.original.column=c.source.end.column-1,n.generated.line=t,n.generated.column=e-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=t,n.generated.column=e-1,this.map.addMapping(n)))}})}generate(){if(this.clearAnnotation(),pa&&fa&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,e=>{t+=e}),[t]}}}var Us=ha;let da=le;class or extends da{constructor(t){super(t),this.type="comment"}}var me=or;or.default=or;let{isClean:js,my:Vs}=Pt,Hs=ue,zs=me,ga=le,Fs,ir,ar;function Gs(r){return r.map(t=>(t.nodes&&(t.nodes=Gs(t.nodes)),delete t.source,t))}function Ws(r){if(r[js]=!1,r.proxyOf.nodes)for(let t of r.proxyOf.nodes)Ws(t)}class nt extends ga{push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}each(t){if(!this.proxyOf.nodes)return;let e=this.getIterator(),s,n;for(;this.indexes[e]<this.proxyOf.nodes.length&&(s=this.indexes[e],n=t(this.proxyOf.nodes[s],s),n!==!1);)this.indexes[e]+=1;return delete this.indexes[e],n}walk(t){return this.each((e,s)=>{let n;try{n=t(e,s)}catch(o){throw e.addToError(o)}return n!==!1&&e.walk&&(n=e.walk(t)),n})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((s,n)=>{if(s.type==="decl"&&t.test(s.prop))return e(s,n)}):this.walk((s,n)=>{if(s.type==="decl"&&s.prop===t)return e(s,n)}):(e=t,this.walk((s,n)=>{if(s.type==="decl")return e(s,n)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((s,n)=>{if(s.type==="rule"&&t.test(s.selector))return e(s,n)}):this.walk((s,n)=>{if(s.type==="rule"&&s.selector===t)return e(s,n)}):(e=t,this.walk((s,n)=>{if(s.type==="rule")return e(s,n)}))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((s,n)=>{if(s.type==="atrule"&&t.test(s.name))return e(s,n)}):this.walk((s,n)=>{if(s.type==="atrule"&&s.name===t)return e(s,n)}):(e=t,this.walk((s,n)=>{if(s.type==="atrule")return e(s,n)}))}walkComments(t){return this.walk((e,s)=>{if(e.type==="comment")return t(e,s)})}append(...t){for(let e of t){let s=this.normalize(e,this.last);for(let n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}prepend(...t){t=t.reverse();for(let e of t){let s=this.normalize(e,this.first,"prepend").reverse();for(let n of s)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+s.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){t=this.index(t);let s=t===0?"prepend":!1,n=this.normalize(e,this.proxyOf.nodes[t],s).reverse();for(let i of n)this.proxyOf.nodes.splice(t,0,i);let o;for(let i in this.indexes)o=this.indexes[i],t<=o&&(this.indexes[i]=o+n.length);return this.markDirty(),this}insertAfter(t,e){t=this.index(t);let s=this.normalize(e,this.proxyOf.nodes[t]).reverse();for(let o of s)this.proxyOf.nodes.splice(t+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],t<n&&(this.indexes[o]=n+s.length);return this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let e;for(let s in this.indexes)e=this.indexes[s],e>=t&&(this.indexes[s]=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,s){return s||(s=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,s))}),this.markDirty(),this}every(t){return this.nodes.every(t)}some(t){return this.nodes.some(t)}index(t){return typeof t=="number"?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(typeof t=="string")t=Gs(Fs(t).nodes);else if(Array.isArray(t)){t=t.slice(0);for(let n of t)n.parent&&n.parent.removeChild(n,"ignore")}els
|
|||
|
`.charCodeAt(0),Mt=" ".charCodeAt(0),ve="\f".charCodeAt(0),we=" ".charCodeAt(0),xe="\r".charCodeAt(0),ya="[".charCodeAt(0),va="]".charCodeAt(0),wa="(".charCodeAt(0),xa=")".charCodeAt(0),Sa="{".charCodeAt(0),qa="}".charCodeAt(0),Ea=";".charCodeAt(0),Ta="*".charCodeAt(0),_a=":".charCodeAt(0),Aa="@".charCodeAt(0),Se=/[\t\n\f\r "#'()/;[\\\]{}]/g,qe=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ca=/.[\n"'(/\\]/,en=/[\da-f]/i;var Da=function(t,e={}){let s=t.css.valueOf(),n=e.ignoreErrors,o,i,a,c,l,f,p,b,w,d,v=s.length,h=0,L=[],U=[];function Y(){return h}function C(H){throw t.error("Unclosed "+H,h)}function j(){return U.length===0&&h>=v}function V(H){if(U.length)return U.pop();if(h>=v)return;let Q=H?H.ignoreUnclosed:!1;switch(o=s.charCodeAt(h),o){case ye:case Mt:case we:case xe:case ve:{i=h;do i+=1,o=s.charCodeAt(i);while(o===Mt||o===ye||o===we||o===xe||o===ve);d=["space",s.slice(h,i)],h=i-1;break}case ya:case va:case Sa:case qa:case _a:case Ea:case xa:{let et=String.fromCharCode(o);d=[et,et,h];break}case wa:{if(b=L.length?L.pop()[1]:"",w=s.charCodeAt(h+1),b==="url"&&w!==pr&&w!==Ks&&w!==Mt&&w!==ye&&w!==we&&w!==ve&&w!==xe){i=h;do{if(f=!1,i=s.indexOf(")",i+1),i===-1)if(n||Q){i=h;break}else C("bracket");for(p=i;s.charCodeAt(p-1)===be;)p-=1,f=!f}while(f);d=["brackets",s.slice(h,i+1),h,i],h=i}else i=s.indexOf(")",h+1),c=s.slice(h,i+1),i===-1||Ca.test(c)?d=["(","(",h]:(d=["brackets",c,h,i],h=i);break}case pr:case Ks:{a=o===pr?"'":'"',i=h;do{if(f=!1,i=s.indexOf(a,i+1),i===-1)if(n||Q){i=h+1;break}else C("string");for(p=i;s.charCodeAt(p-1)===be;)p-=1,f=!f}while(f);d=["string",s.slice(h,i+1),h,i],h=i;break}case Aa:{Se.lastIndex=h+1,Se.test(s),Se.lastIndex===0?i=s.length-1:i=Se.lastIndex-2,d=["at-word",s.slice(h,i+1),h,i],h=i;break}case be:{for(i=h,l=!0;s.charCodeAt(i+1)===be;)i+=1,l=!l;if(o=s.charCodeAt(i+1),l&&o!==tn&&o!==Mt&&o!==ye&&o!==we&&o!==xe&&o!==ve&&(i+=1,en.test(s.charAt(i)))){for(;en.test(s.charAt(i+1));)i+=1;s.charCodeAt(i+1)===Mt&&(i+=1)}d=["word",s.slice(h,i+1),h,i],h=i;break}default:{o===tn&&s.charCodeAt(h+1)===Ta?(i=s.indexOf("*/",h+2)+1,i===0&&(n||Q?i=s.length:C("comment")),d=["comment",s.slice(h,i+1),h,i],h=i):(qe.lastIndex=h+1,qe.test(s),qe.lastIndex===0?i=s.length-1:i=qe.lastIndex-2,d=["word",s.slice(h,i+1),h,i],L.push(d),h=i);break}}return h++,d}function J(H){U.push(H)}return{back:J,nextToken:V,endOfFile:j,position:Y}};let rn=wt;class Ee extends rn{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 hr=Ee;Ee.default=Ee,rn.registerAtRule(Ee);let La=wt,sn,nn;class Bt extends La{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}removeChild(t,e){let s=this.index(t);return!e&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(t)}normalize(t,e,s){let n=super.normalize(t);if(e){if(s==="prepend")this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let o of n)o.raws.before=e.raws.before}return n}toResult(t={}){return new sn(new nn,this,t).stringify()}}Bt.registerLazyResult=r=>{sn=r},Bt.registerProcessor=r=>{nn=r};var Ut=Bt;Bt.default=Bt;let jt={split(r,t,e){let s=[],n="",o=!1,i=0,a=!1,c=!1;for(let l of r)c?c=!1:l==="\\"?c=!0:a?l===a&&(a=!1):l==='"'||l==="'"?a=l:l==="("?i+=1:l===")"?i>0&&(i-=1):i===0&&t.includes(l)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=l;return(e||n!=="")&&s.push(n.trim()),s},space(r){let t=[" ",`
|
|||
|
`," "];return jt.split(r,t)},comma(r){return jt.split(r,[","],!0)}};var on=jt;jt.default=jt;let an=wt,Oa=on;class Te extends an{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Oa.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,s=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}}var dr=Te;Te.default=Te,an.registerRule(Te);let Na=ue,ka=Da,$a=me,Ra=hr,Pa=Ut,cn=dr;const ln={empty:!0,space:!0};function Ia(r){for(let t=r.length-1;t>=0;t--){let e=r[t],s=e[3]||e[2];if(s)return s}}class Ma{constructor(t){this.input=t,this.root=new Pa,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=ka(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);break}this.endFile()}comment(t){let e=new $a;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]);let s=t[1].slice(2,-2);if(/^\s*$/.test(s))e.text="",e.raws.left=s,e.raws.right="";else{let n=s.match(/^(\s*)([^]*\S)(\s*)$/);e.text=n[2],e.raws.left=n[1],e.raws.right=n[3]}}emptyRule(t){let e=new cn;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}other(t){let e=!1,s=null,n=!1,o=null,i=[],a=t[1].startsWith("--"),c=[],l=t;for(;l;){if(s=l[0],c.push(l),s==="("||s==="[")o||(o=l),i.push(s==="("?")":"]");else if(a&&n&&s==="{")o||(o=l),i.push("}");else if(i.length===0)if(s===";")if(n){this.decl(c,a);return}else break;else if(s==="{"){this.rule(c);return}else if(s==="}"){this.tokenizer.back(c.pop()),e=!0;break}else s===":"&&(n=!0);else s===i[i.length-1]&&(i.pop(),i.length===0&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),i.length>0&&this.unclosedBracket(o),e&&n){if(!a)for(;c.length&&(l=c[c.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,a)}else this.unknownWord(c)}rule(t){t.pop();let e=new cn;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}decl(t,e){let s=new Na;this.init(s,t[0][2]);let n=t[t.length-1];for(n[0]===";"&&(this.semicolon=!0,t.pop()),s.source.end=this.getPosition(n[3]||n[2]||Ia(t));t[0][0]!=="word";)t.length===1&&this.unknownWord(t),s.raws.before+=t.shift()[1];for(s.source.start=this.getPosition(t[0][2]),s.prop="";t.length;){let l=t[0][0];if(l===":"||l==="space"||l==="comment")break;s.prop+=t.shift()[1]}s.raws.between="";let o;for(;t.length;)if(o=t.shift(),o[0]===":"){s.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),s.raws.between+=o[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let i=[],a;for(;t.length&&(a=t[0][0],!(a!=="space"&&a!=="comment"));)i.push(t.shift());this.precheckMissedSemicolon(t);for(let l=t.length-1;l>=0;l--){if(o=t[l],o[1].toLowerCase()==="!important"){s.important=!0;let f=this.stringFrom(t,l);f=this.spacesFromEnd(t)+f,f!==" !important"&&(s.raws.important=f);break}else if(o[1].toLowerCase()==="important"){let f=t.slice(0),p="";for(let b=l;b>0;b--){let w=f[b][0];if(p.trim().indexOf("!")===0&&w!=="space")break;p=f.pop()[1]+p}p.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=p,t=f)}if(o[0]!=="space"&&o[0]!=="comment")break}t.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(s.raws.between+=i.map(l=>l[1]).join(""),i=[]),this.raw(s,"value",i.concat(t),e),s.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}atrule(t){let e=new Ra;e.name=t[1].slice(1),e.name===""&&this.unnamedAtrule(e,t),this.init(e,t[2]);let s,n,o,i=!1,a=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),s=t[0],s==="("||s==="["?l.push(s==="("?")":"]"):s==="{"&&l.length>0?l.push("}"):s===l[l.length-1]&&l.pop(),l.length===0)if(s===";"){e.sou
|
|||
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(t.from)?n.message+=`
|
|||
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(n.message+=`
|
|||
|
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),n}return s.root}var gr=_e;_e.default=_e,Ua.registerParse(_e);let{isClean:ot,my:Ha}=Pt,za=Us,Fa=ae,Ga=wt,Wa=cr,Ya=Zs,un=fr,Ja=gr,Xa=Ut;const Za={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Qa={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},Ka={postcssPlugin:!0,prepare:!0,Once:!0},At=0;function Vt(r){return typeof r=="object"&&typeof r.then=="function"}function fn(r){let t=!1,e=Za[r.type];return r.type==="decl"?t=r.prop.toLowerCase():r.type==="atrule"&&(t=r.name.toLowerCase()),t&&r.append?[e,e+"-"+t,At,e+"Exit",e+"Exit-"+t]:t?[e,e+"-"+t,e+"Exit",e+"Exit-"+t]:r.append?[e,At,e+"Exit"]:[e,e+"Exit"]}function pn(r){let t;return r.type==="document"?t=["Document",At,"DocumentExit"]:r.type==="root"?t=["Root",At,"RootExit"]:t=fn(r),{node:r,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function mr(r){return r[ot]=!1,r.nodes&&r.nodes.forEach(t=>mr(t)),r}let br={};class pt{constructor(t,e,s){this.stringified=!1,this.processed=!1;let n;if(typeof e=="object"&&e!==null&&(e.type==="root"||e.type==="document"))n=mr(e);else if(e instanceof pt||e instanceof un)n=mr(e.root),e.map&&(typeof s.map>"u"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=e.map);else{let o=Ja;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{n=o(e,s)}catch(i){this.processed=!0,this.error=i}n&&!n[Ha]&&Ga.rebuild(n)}this.result=new un(t,n,s),this.helpers={...br,result:this.result,postcss:br},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}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 process.env.NODE_ENV!=="production"&&("from"in this.opts||Ya("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){let e=this.runOnRoot(t);if(Vt(e))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ot];)t[ot]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")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=Fa;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let n=new za(e,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(t){t[ot]=!0;let e=fn(t);for(let s of e)if(s===At)t.nodes&&t.each(n=>{n[ot]||this.walkSync(n)});else{let n=this.listeners[s];if(n&&this.visitSync(n,t.toProxy()))return}}visitSync(t,e){for(let[s,n]of t){this.result.lastPlugin=s;let o;try{o=n(e,this.helpers)}catch(i){throw this.handleError(i,e.proxyOf)}if(e.type!=="root"&&e.type!=="document"&&!e.parent)return!0;if(Vt(o))throw this.getAsyncError()}}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.
|
|||
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|||
|
https://www.w3ctech.com/topic/2226`));function s(...o){let i=e(...o);return i.postcssPlugin=t,i.postcssVersion=new vr().version,i}let n;return Object.defineProperty(s,"postcss",{get(){return n||(n=s()),n}}),s.process=function(o,i,a){return q([s(a)]).process(o,i)},s},q.stringify=Sc,q.parse=Ac,q.fromJSON=qc,q.list=Cc,q.comment=r=>new mn(r),q.atRule=r=>new bn(r),q.decl=r=>new dn(r),q.rule=r=>new yn(r),q.root=r=>new vn(r),q.document=r=>new gn(r),q.CssSyntaxError=vc,q.Declaration=dn,q.Container=xc,q.Processor=vr,q.Document=gn,q.Comment=mn,q.Warning=Ec,q.AtRule=bn,q.Result=Tc,q.Input=_c,q.Rule=yn,q.Root=vn,q.Node=Dc,wc.registerPostcss(q);var Lc=q;q.default=q;const Oc=Er,wn=Li,{isPlainObject:Nc}=Fe,xn=Fi,kc=qs.exports,{parse:$c}=Lc,Rc=["img","audio","video","picture","svg","object","map","iframe","embed"],Pc=["script","style"];function Ft(r,t){r&&Object.keys(r).forEach(function(e){t(r[e],e)})}function lt(r,t){return{}.hasOwnProperty.call(r,t)}function Sn(r,t){const e=[];return Ft(r,function(s){t(s)&&e.push(s)}),e}function Ic(r){for(const t in r)if(lt(r,t))return!1;return!0}function Mc(r){return r.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(", ")}var Bc=Gt;const Uc=/^[^\0\t\n\f\r /<=>]+$/;function Gt(r,t,e){if(r==null)return"";let s="",n="";function o(u,g){const m=this;this.tag=u,this.attribs=g||{},this.tagPosition=s.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(v.length){const x=v[v.length-1];x.text+=m.text}},this.updateParentNodeMediaChildren=function(){v.length&&Rc.includes(this.tag)&&v[v.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},Gt.defaults,t),t.parser=Object.assign({},jc,t.parser),Pc.forEach(function(u){t.allowedTags&&t.allowedTags.indexOf(u)>-1&&!t.allowVulnerableTags&&console.warn(`
|
|||
|
|
|||
|
⚠️ Your \`allowedTags\` option includes, \`${u}\`, which is inherently
|
|||
|
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|||
|
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|||
|
and ensure you are accounting for this risk.
|
|||
|
|
|||
|
`)});const i=t.nonTextTags||["script","style","textarea","option"];let a,c;t.allowedAttributes&&(a={},c={},Ft(t.allowedAttributes,function(u,g){a[g]=[];const m=[];u.forEach(function(x){typeof x=="string"&&x.indexOf("*")>=0?m.push(wn(x).replace(/\\\*/g,".*")):a[g].push(x)}),m.length&&(c[g]=new RegExp("^("+m.join("|")+")$"))}));const l={},f={},p={};Ft(t.allowedClasses,function(u,g){a&&(lt(a,g)||(a[g]=[]),a[g].push("class")),l[g]=[],p[g]=[];const m=[];u.forEach(function(x){typeof x=="string"&&x.indexOf("*")>=0?m.push(wn(x).replace(/\\\*/g,".*")):x instanceof RegExp?p[g].push(x):l[g].push(x)}),m.length&&(f[g]=new RegExp("^("+m.join("|")+")$"))});const b={};let w;Ft(t.transformTags,function(u,g){let m;typeof u=="function"?m=u:typeof u=="string"&&(m=Gt.simpleTransform(u)),g==="*"?w=m:b[g]=m});let d,v,h,L,U,Y,C=!1;V();const j=new Oc.Parser({onopentag:function(u,g){if(t.enforceHtmlBoundary&&u==="html"&&V(),U){Y++;return}const m=new o(u,g);v.push(m);let x=!1;const X=!!m.text;let P;if(lt(b,u)&&(P=b[u](u,g),m.attribs=g=P.attribs,P.text!==void 0&&(m.innerText=P.text),u!==P.tagName&&(m.name=u=P.tagName,L[d]=P.tagName)),w&&(P=w(u,g),m.attribs=g=P.attribs,u!==P.tagName&&(m.name=u=P.tagName,L[d]=P.tagName)),(t.allowedTags&&t.allowedTags.indexOf(u)===-1||t.disallowedTagsMode==="recursiveEscape"&&!Ic(h)||t.nestingLimit!=null&&d>=t.nestingLimit)&&(x=!0,h[d]=!0,t.disallowedTagsMode==="discard"&&i.indexOf(u)!==-1&&(U=!0,Y=1),h[d]=!0),d++,x){if(t.disallowedTagsMode==="discard")return;n=s,s=""}s+="<"+u,u==="script"&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(m.innerText=""),(!a||lt(a,u)||a["*"])&&Ft(g,function(N,D){if(!Uc.test(D)){delete m.attribs[D];return}let Sr=!1;if(!a||lt(a,u)&&a[u].indexOf(D)!==-1||a["*"]&&a["*"].indexOf(D)!==-1||lt(c,u)&&c[u].test(D)||c["*"]&&c["*"].test(D))Sr=!0;else if(a&&a[u]){for(const E of a[u])if(Nc(E)&&E.name&&E.name===D){Sr=!0;let T="";if(E.multiple===!0){const xt=N.split(" ");for(const ut of xt)E.values.indexOf(ut)!==-1&&(T===""?T=ut:T+=" "+ut)}else E.values.indexOf(N)>=0&&(T=N);N=T}}if(Sr){if(t.allowedSchemesAppliedToAttributes.indexOf(D)!==-1&&H(u,N)){delete m.attribs[D];return}if(u==="script"&&D==="src"){let E=!0;try{const T=Q(N);if(t.allowedScriptHostnames||t.allowedScriptDomains){const xt=(t.allowedScriptHostnames||[]).find(function(rt){return rt===T.url.hostname}),ut=(t.allowedScriptDomains||[]).find(function(rt){return T.url.hostname===rt||T.url.hostname.endsWith(`.${rt}`)});E=xt||ut}}catch{E=!1}if(!E){delete m.attribs[D];return}}if(u==="iframe"&&D==="src"){let E=!0;try{const T=Q(N);if(T.isRelativeUrl)E=lt(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const xt=(t.allowedIframeHostnames||[]).find(function(rt){return rt===T.url.hostname}),ut=(t.allowedIframeDomains||[]).find(function(rt){return T.url.hostname===rt||T.url.hostname.endsWith(`.${rt}`)});E=xt||ut}}catch{E=!1}if(!E){delete m.attribs[D];return}}if(D==="srcset")try{let E=kc(N);if(E.forEach(function(T){H("srcset",T.url)&&(T.evil=!0)}),E=Sn(E,function(T){return!T.evil}),E.length)N=Mc(Sn(E,function(T){return!T.evil})),m.attribs[D]=N;else{delete m.attribs[D];return}}catch{delete m.attribs[D];return}if(D==="class"){const E=l[u],T=l["*"],xt=f[u],ut=p[u],rt=f["*"],An=[xt,rt].concat(ut).filter(function(Fc){return Fc});if(E&&T?N=dt(N,xn(E,T),An):N=dt(N,E||T,An),!N.length){delete m.attribs[D];return}}if(D==="style")try{const E=$c(u+" {"+N+"}"),T=et(E,t.allowedStyles);if(N=Ct(T),N.length===0){delete m.attribs[D];return}}catch{delete m.attribs[D];return}s+=" "+D,N&&N.length&&(s+='="'+J(N,!0)+'"')}else delete m.attribs[D]}),t.selfClosing.indexOf(u)!==-1?s+=" />":(s+=">",m.innerText&&!X&&!t.textFilter&&(s+=J(m.innerText),C=!0)),x&&(s=n+J(s),n="")},ontext:function(u){if(U)return;const g=v[v.length-1];let m;if(g&&(m=g.tag,u=g.innerText!==void 0?g.innerText:u),t.disallowedTagsMode==="discard"&&(m==="script"||m==="style"))s+=u;else{const x=J(u,!1);t.textFilter&&!C?s+=t.textFilter(x,m):C||(s+=x)}if(v.length){const x=v[v.length-1];x.text+=
|