@posthog/rrweb-player 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rrweb-player.cjs +6 -0
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +6 -0
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +6 -0
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +6 -6
- package/dist/rrweb-player.umd.min.cjs.map +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var Lo=Object.defineProperty,Fo=Object.defineProperties;var Bo=Object.getOwnPropertyDescriptors;var at=Object.getOwnPropertySymbols;var Oi=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable;var Ni=(e,t,r)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))Oi.call(t,r)&&Ni(e,r,t[r]);if(at)for(var r of at(t))Ai.call(t,r)&&Ni(e,r,t[r]);return e},le=(e,t)=>Fo(e,Bo(t));var He=(e,t)=>{var r={};for(var n in e)Oi.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&at)for(var n of at(e))t.indexOf(n)<0&&Ai.call(e,n)&&(r[n]=e[n]);return r};var Uo=Object.defineProperty,zo=(e,t,r)=>t in e?Uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Di=(e,t,r)=>zo(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function et(){}function Pi(e,t){for(const r in t)e[r]=t[r];return e}function Nn(e){return e()}function Ti(){return Object.create(null)}function Ge(e){e.forEach(Nn)}function On(e){return typeof e=="function"}function si(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function qo(e){return Object.keys(e).length===0}function ki(e){const t={};for(const r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function $(e,t){e.appendChild(t)}function Ce(e,t,r){e.insertBefore(t,r||null)}function ve(e){e.parentNode&&e.parentNode.removeChild(e)}function It(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function oe(e){return document.createElement(e)}function wt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function De(e){return document.createTextNode(e)}function fe(){return De(" ")}function Wo(){return De("")}function ze(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function F(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Vo(e){return Array.from(e.childNodes)}function vt(e,t){t=""+t,e.data!==t&&(e.data=t)}function
|
|
14
|
+
"use strict";var Lo=Object.defineProperty,Fo=Object.defineProperties;var Bo=Object.getOwnPropertyDescriptors;var at=Object.getOwnPropertySymbols;var Oi=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable;var Ni=(e,t,r)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))Oi.call(t,r)&&Ni(e,r,t[r]);if(at)for(var r of at(t))Ai.call(t,r)&&Ni(e,r,t[r]);return e},le=(e,t)=>Fo(e,Bo(t));var He=(e,t)=>{var r={};for(var n in e)Oi.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&at)for(var n of at(e))t.indexOf(n)<0&&Ai.call(e,n)&&(r[n]=e[n]);return r};var Uo=Object.defineProperty,zo=(e,t,r)=>t in e?Uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Di=(e,t,r)=>zo(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function et(){}function Pi(e,t){for(const r in t)e[r]=t[r];return e}function Nn(e){return e()}function Ti(){return Object.create(null)}function Ge(e){e.forEach(Nn)}function On(e){return typeof e=="function"}function si(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function qo(e){return Object.keys(e).length===0}function ki(e){const t={};for(const r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function $(e,t){e.appendChild(t)}function Ce(e,t,r){e.insertBefore(t,r||null)}function ve(e){e.parentNode&&e.parentNode.removeChild(e)}function It(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function oe(e){return document.createElement(e)}function wt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function De(e){return document.createTextNode(e)}function fe(){return De(" ")}function Wo(){return De("")}function ze(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function F(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Vo(e){return Array.from(e.childNodes)}function vt(e,t){t=""+t,e.data!==t&&(e.data=t)}function se(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function Ve(e,t,r){e.classList.toggle(t,!!r)}function jo(e,t,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:n})}let tt;function Qe(e){tt=e}function Rt(){if(!tt)throw new Error("Function called outside component initialization");return tt}function An(e){Rt().$$.on_mount.push(e)}function Go(e){Rt().$$.after_update.push(e)}function Dn(e){Rt().$$.on_destroy.push(e)}function $o(){const e=Rt();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){const a=jo(t,r,{cancelable:n});return i.slice().forEach(o=>{o.call(e,a)}),!a.defaultPrevented}return!0}}const Le=[],Ae=[];let We=[];const Yr=[],Ho=Promise.resolve();let Jr=!1;function Yo(){Jr||(Jr=!0,Ho.then(Pn))}function Xr(e){We.push(e)}function Jo(e){Yr.push(e)}const Lt=new Set;let ke=0;function Pn(){if(ke!==0)return;const e=tt;do{try{for(;ke<Le.length;){const t=Le[ke];ke++,Qe(t),Xo(t.$$)}}catch(t){throw Le.length=0,ke=0,t}for(Qe(null),Le.length=0,ke=0;Ae.length;)Ae.pop()();for(let t=0;t<We.length;t+=1){const r=We[t];Lt.has(r)||(Lt.add(r),r())}We.length=0}while(Le.length);for(;Yr.length;)Yr.pop()();Jr=!1,Lt.clear(),Qe(e)}function Xo(e){if(e.fragment!==null){e.update(),Ge(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Xr)}}function Qo(e){const t=[],r=[];We.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),We=t}const yt=new Set;let Oe;function Tn(){Oe={r:0,c:[],p:Oe}}function kn(){Oe.r||Ge(Oe.c),Oe=Oe.p}function Se(e,t){e&&e.i&&(yt.delete(e),e.i(t))}function je(e,t,r,n){if(e&&e.o){if(yt.has(e))return;yt.add(e),Oe.c.push(()=>{yt.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}function Ie(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ko(e,t,r){const n=e.$$.props[t];n!==void 0&&(e.$$.bound[n]=r,r(e.$$.ctx[n]))}function In(e){e&&e.c()}function ni(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Xr(()=>{const a=e.$$.on_mount.map(Nn).filter(On);e.$$.on_destroy?e.$$.on_destroy.push(...a):Ge(a),e.$$.on_mount=[]}),i.forEach(Xr)}function oi(e,t){const r=e.$$;r.fragment!==null&&(Qo(r.after_update),Ge(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Zo(e,t){e.$$.dirty[0]===-1&&(Le.push(e),Yo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ai(e,t,r,n,i,a,o=null,l=[-1]){const p=tt;Qe(e);const u=e.$$={fragment:null,ctx:[],props:a,update:et,not_equal:i,bound:Ti(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(p?p.$$.context:[])),callbacks:Ti(),dirty:l,skip_bound:!1,root:t.target||p.$$.root};o&&o(u.root);let s=!1;if(u.ctx=r?r(e,t.props||{},(c,f,...h)=>{const d=h.length?h[0]:f;return u.ctx&&i(u.ctx[c],u.ctx[c]=d)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](d),s&&Zo(e,c)),f}):[],u.update(),s=!0,Ge(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const c=Vo(t.target);u.fragment&&u.fragment.l(c),c.forEach(ve)}else u.fragment&&u.fragment.c();t.intro&&Se(e.$$.fragment),ni(e,t.target,t.anchor),Pn()}Qe(p)}class li{constructor(){Di(this,"$$"),Di(this,"$$set")}$destroy(){oi(this,1),this.$destroy=et}$on(t,r){if(!On(r))return et;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!qo(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ea="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ea);var ta=Object.defineProperty,ra=(e,t,r)=>t in e?ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t,r)=>ra(e,typeof t!="symbol"?t+"":t,r),Ii,ia=Object.defineProperty,sa=(e,t,r)=>t in e?ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Li=(e,t,r)=>sa(e,typeof t!="symbol"?t+"":t,r),re=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(re||{});function na(e){return e.nodeType===e.ELEMENT_NODE}class Ln{constructor(){Li(this,"idNodeMap",new Map),Li(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))==null?void 0:r.id;return n!=null?n:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Fn(){return new Ln}function oa(e){return e.toLowerCase()}function aa(e,t){return!e||!t||e.type!==t.type?!1:e.type===re.Document?e.compatMode===t.compatMode:e.type===re.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===re.Comment||e.type===re.Text||e.type===re.CDATA?e.textContent===t.textContent:e.type===re.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function la(e,t){var a;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(o){return null}const n=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(n);return(a=i==null?void 0:i[1])!=null?a:null}const ua=/(max|min)-device-(width|height)/,Fi=new RegExp(ua.source,"g"),ca={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Fi)&&(e.params=e.params.replace(Fi,"$1-$2"))}}}},ha={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
|
|
15
15
|
`+r.replace(/:hover/g,".\\:hover"))}))}}}};function Bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fa(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var lt={exports:{}},Bi;function pa(){if(Bi)return lt.exports;Bi=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return lt.exports=t(),lt.exports.createColors=t,lt.exports}const da={},ma=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),me=fa(ma);var Ft,Ui;function ui(){if(Ui)return Ft;Ui=1;let e=pa(),t=me;class r extends Error{constructor(i,a,o,l,p,u){super(i),this.name="CssSyntaxError",this.reason=i,p&&(this.file=p),l&&(this.source=l),u&&(this.plugin=u),typeof a!="undefined"&&typeof o!="undefined"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let o=h=>h,l=h=>h,p=h=>h;if(i){let{bold:h,gray:d,red:m}=e.createColors(!0);l=g=>h(m(g)),o=g=>d(g),t&&(p=g=>t(g))}let u=a.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,u.length),f=String(c).length;return u.slice(s,c).map((h,d)=>{let m=s+1+d,g=" "+(" "+m).slice(-f)+" | ";if(m===this.line){if(h.length>160){let y=20,S=Math.max(0,this.column-y),E=Math.max(this.column+y,this.endColumn+y),w=h.slice(S,E),v=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return l(">")+o(g)+p(w)+`
|
|
16
16
|
`+v+l("^")}let b=o(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+o(g)+p(h)+`
|
|
17
17
|
`+b+l("^")}return" "+o(g)+p(h)}).join(`
|
|
@@ -37,9 +37,9 @@ var module = { exports };
|
|
|
37
37
|
`;this.css.includes(`\r
|
|
38
38
|
`)&&(h=`\r
|
|
39
39
|
`),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=this.toUrl(this.path(f.file)),d=f.root||e(f.file),m;this.mapOpts.sourcesContent===!1?(m=new i(f.text),m.sourcesContent&&(m.sourcesContent=null)):m=f.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let h=this.root.nodes.length-1;h>=0;h--)f=this.root.nodes[h],f.type==="comment"&&f.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&p&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,h=>{f+=h}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=a.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,h=1,d="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,b;this.stringify(this.root,(y,S,E)=>{if(this.css+=y,S&&E!=="end"&&(m.generated.line=f,m.generated.column=h-1,S.source&&S.source.start?(m.source=this.sourcePath(S),m.original.line=S.source.start.line,m.original.column=S.source.start.column-1,this.map.addMapping(m)):(m.source=d,m.original.line=1,m.original.column=0,this.map.addMapping(m))),b=y.match(/\n/g),b?(f+=b.length,g=y.lastIndexOf(`
|
|
40
|
-
`),h=y.length-g):h+=y.length,S&&E!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=d,m.original.line=1,m.original.column=0,m.generated.line=f,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(r(d,this.mapOpts.annotation)));let m=t(d,f);return this.memoizedPaths.set(f,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new l(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let d=h.source.input.from;if(d&&!f[d]){f[d]=!0;let m=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let d=o(f).toString();return this.memoizedFileURLs.set(f,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;n==="\\"&&(f=f.replace(/\\/g,"/"));let d=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,d),d}}return Zt=s,Zt}var er,is;function Vn(){if(is)return er;is=1;const e=39,t=34,r=92,n=47,i=10,a=32,o=12,l=9,p=13,u=91,s=93,c=40,f=41,h=123,d=125,m=59,g=42,b=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return er=function(R,A={}){let M=R.css.valueOf(),B=A.ignoreErrors,k,J,U,x,q,I,j,H,z,X,ae=M.length,_=0,D=[],O=[];function N(){return _}function P(re){throw R.error("Unclosed "+re,_)}function V(){return O.length===0&&_>=ae}function ue(re){if(O.length)return O.pop();if(_>=ae)return;let be=re?re.ignoreUnclosed:!1;switch(k=M.charCodeAt(_),k){case i:case a:case l:case p:case o:{x=_;do x+=1,k=M.charCodeAt(x);while(k===a||k===i||k===l||k===p||k===o);I=["space",M.slice(_,x)],_=x-1;break}case u:case s:case h:case d:case b:case m:case f:{let Ne=String.fromCharCode(k);I=[Ne,Ne,_];break}case c:{if(X=D.length?D.pop()[1]:"",z=M.charCodeAt(_+1),X==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==l&&z!==o&&z!==p){x=_;do{if(j=!1,x=M.indexOf(")",x+1),x===-1)if(B||be){x=_;break}else P("bracket");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["brackets",M.slice(_,x+1),_,x],_=x}else x=M.indexOf(")",_+1),J=M.slice(_,x+1),x===-1||w.test(J)?I=["(","(",_]:(I=["brackets",J,_,x],_=x);break}case e:case t:{q=k===e?"'":'"',x=_;do{if(j=!1,x=M.indexOf(q,x+1),x===-1)if(B||be){x=_+1;break}else P("string");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["string",M.slice(_,x+1),_,x],_=x;break}case y:{S.lastIndex=_+1,S.test(M),S.lastIndex===0?x=M.length-1:x=S.lastIndex-2,I=["at-word",M.slice(_,x+1),_,x],_=x;break}case r:{for(x=_,U=!0;M.charCodeAt(x+1)===r;)x+=1,U=!U;if(k=M.charCodeAt(x+1),U&&k!==n&&k!==a&&k!==i&&k!==l&&k!==p&&k!==o&&(x+=1,v.test(M.charAt(x)))){for(;v.test(M.charAt(x+1));)x+=1;M.charCodeAt(x+1)===a&&(x+=1)}I=["word",M.slice(_,x+1),_,x],_=x;break}default:{k===n&&M.charCodeAt(_+1)===g?(x=M.indexOf("*/",_+2)+1,x===0&&(B||be?x=M.length:P("comment")),I=["comment",M.slice(_,x+1),_,x],_=x):(E.lastIndex=_+1,E.test(M),E.lastIndex===0?x=M.length-1:x=E.lastIndex-2,I=["word",M.slice(_,x+1),_,x],D.push(I),_=x);break}}return _++,I}function ce(re){O.push(re)}return{back:ce,endOfFile:V,nextToken:ue,position:N}},er}var tr,ss;function jn(){if(ss)return tr;ss=1;let e=hi(),t=rt(),r=_t(),n=it(),i=pi(),a=Vn();const o={empty:!0,space:!0};function l(u){for(let s=u.length-1;s>=0;s--){let c=u[s],f=c[3]||c[2];if(f)return f}}class p{constructor(s){this.input=s,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new e;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let f,h,d,m=!1,g=!1,b=[],y=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),f=s[0],f==="("||f==="["?y.push(f==="("?")":"]"):f==="{"&&y.length>0?y.push("}"):f===y[y.length-1]&&y.pop(),y.length===0)if(f===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(b.length>0){for(d=b.length-1,h=b[d];h&&h[0]==="space";)h=b[--d];h&&(c.source.end=this.getPosition(h[3]||h[2]),c.source.end.offset++)}this.end(s);break}else b.push(s);else b.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(c.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(c,"params",b),m&&(s=b[b.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let f=0,h;for(let d=c-1;d>=0&&(h=s[d],!(h[0]!=="space"&&(f+=1,f===2)));d--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(s){let c=0,f,h,d;for(let[m,g]of s.entries()){if(h=g,d=h[0],d==="("&&(c+=1),d===")"&&(c-=1),c===0&&d===":")if(!f)this.doubleColon(h);else{if(f[0]==="word"&&f[1]==="progid")continue;return m}f=h}return!1}comment(s){let c=new t;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let f=s[1].slice(2,-2);if(/^\s*$/.test(f))c.text="",c.raws.left=f,c.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(s,c){let f=new r;this.init(f,s[0][2]);let h=s[s.length-1];for(h[0]===";"&&(this.semicolon=!0,s.pop()),f.source.end=this.getPosition(h[3]||h[2]||l(s)),f.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),f.raws.before+=s.shift()[1];for(f.source.start=this.getPosition(s[0][2]),f.prop="";s.length;){let y=s[0][0];if(y===":"||y==="space"||y==="comment")break;f.prop+=s.shift()[1]}f.raws.between="";let d;for(;s.length;)if(d=s.shift(),d[0]===":"){f.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),f.raws.between+=d[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let y=s.length-1;y>=0;y--){if(d=s[y],d[1].toLowerCase()==="!important"){f.important=!0;let S=this.stringFrom(s,y);S=this.spacesFromEnd(s)+S,S!==" !important"&&(f.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=s.slice(0),E="";for(let w=y;w>0;w--){let v=S[w][0];if(E.trim().startsWith("!")&&v!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(f.important=!0,f.raws.important=E,s=S)}if(d[0]!=="space"&&d[0]!=="comment")break}s.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(f.raws.between+=m.map(y=>y[1]).join(""),m=[]),this.raw(f,"value",m.concat(s),c),f.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new i;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){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(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,f=null,h=!1,d=null,m=[],g=s[1].startsWith("--"),b=[],y=s;for(;y;){if(f=y[0],b.push(y),f==="("||f==="[")d||(d=y),m.push(f==="("?")":"]");else if(g&&h&&f==="{")d||(d=y),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(b,g);return}else break;else if(f==="{"){this.rule(b);return}else if(f==="}"){this.tokenizer.back(b.pop()),c=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(d=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(d),c&&h){if(!g)for(;b.length&&(y=b[b.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,f,h){let d,m,g=f.length,b="",y=!0,S,E;for(let w=0;w<g;w+=1)d=f[w],m=d[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(E=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[E]&&!o[S]?b.slice(-1)===","?y=!1:b+=d[1]:y=!1):b+=d[1];if(!y){let w=f.reduce((v,C)=>v+C[1],"");s.raws[c]={raw:w,value:b}}s[c]=b}rule(s){s.pop();let c=new i;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)f=s.pop()[1]+f;return f}spacesAndCommentsFromStart(s){let c,f="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)f+=s.shift()[1];return f}spacesFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],c==="space");)f=s.pop()[1]+f;return f}stringFrom(s,c){let f="";for(let h=c;h<s.length;h++)f+=s[h][1];return s.splice(c,s.length-c),f}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word",{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return tr=p,tr}var rr,ns;function di(){if(ns)return rr;ns=1;let e=Pe(),t=Nt(),r=jn();function n(i,a){let o=new t(i,a),l=new r(o);try{l.parse()}catch(p){throw p}return l.root}return rr=n,n.default=n,e.registerParse(n),rr}var ir,os;function Gn(){if(os)return ir;os=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ir=e,e.default=e,ir}var sr,as;function mi(){if(as)return sr;as=1;let e=Gn();class t{constructor(n,i,a){this.processor=n,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(n,i);return this.messages.push(a),a}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return sr=t,t.default=t,sr}var nr,ls;function $n(){if(ls)return nr;ls=1;let e={};return nr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},nr}var or,us;function Hn(){if(us)return or;us=1;let e=Pe(),t=fi(),r=Wn(),n=di(),i=mi(),a=it(),o=xt(),{isClean:l,my:p}=ci(),u=$n();const s={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function d(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let w=!1,v=s[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[v,v+"-"+w,h,v+"Exit",v+"Exit-"+w]:w?[v,v+"-"+w,v+"Exit",v+"Exit-"+w]:E.append?[v,h,v+"Exit"]:[v,v+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",h,"DocumentExit"]:E.type==="root"?w=["Root",h,"RootExit"]:w=m(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function b(E){return E[l]=!1,E.nodes&&E.nodes.forEach(w=>b(w)),E}let y={};class S{constructor(w,v,C){this.stringified=!1,this.processed=!1;let R;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))R=b(v);else if(v instanceof S||v instanceof i)R=b(v.root),v.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=v.map);else{let A=n;C.syntax&&(A=C.syntax.parse),C.parser&&(A=C.parser),A.parse&&(A=A.parse);try{R=A(v,C)}catch(M){this.processed=!0,this.error=M}R&&!R[p]&&e.rebuild(R)}this.result=new i(w,R,C),this.helpers=le(Q({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,v){let C=this.result.lastPlugin;try{v&&v.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(v,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([v,R])};for(let v of this.plugins)if(typeof v=="object")for(let C in v){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof v[C]=="object")for(let R in v[C])R==="*"?w(v,C,v[C][R]):w(v,C+"-"+R.toLowerCase(),v[C][R]);else typeof v[C]=="function"&&w(v,C,v[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let v=this.plugins[w],C=this.runOnRoot(v);if(d(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[l];){w[l]=!0;let v=[g(w)];for(;v.length>0;){let C=this.visitTick(v);if(d(C))try{await C}catch(R){let A=v[v.length-1].node;throw this.handleError(R,A)}}}if(this.listeners.OnceExit)for(let[v,C]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(w.type==="document"){let R=w.nodes.map(A=>C(A,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return d(v[0])?Promise.all(v):v}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,v=o;w.syntax&&(v=w.syntax.stringify),w.stringifier&&(v=w.stringifier),v.stringify&&(v=v.stringify);let R=new r(v,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let v=this.runOnRoot(w);if(d(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[l];)w[l]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let v of w.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,v){return this.async().then(w,v)}toString(){return this.css}visitSync(w,v){for(let[C,R]of w){this.result.lastPlugin=C;let A;try{A=R(v,this.helpers)}catch(M){throw this.handleError(M,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(d(A))throw this.getAsyncError()}}visitTick(w){let v=w[w.length-1],{node:C,visitors:R}=v;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&v.visitorIndex<R.length){let[M,B]=R[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===R.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=M;try{return B(C.toProxy(),this.helpers)}catch(k){throw this.handleError(k,C)}}if(v.iterator!==0){let M=v.iterator,B;for(;B=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!B[l]){B[l]=!0,w.push(g(B));return}v.iterator=0,delete C.indexes[M]}let A=v.events;for(;v.eventIndex<A.length;){let M=A[v.eventIndex];if(v.eventIndex+=1,M===h){C.nodes&&C.nodes.length&&(C[l]=!0,v.iterator=C.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}w.pop()}walkSync(w){w[l]=!0;let v=m(w);for(let C of v)if(C===h)w.nodes&&w.each(R=>{R[l]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return S.registerPostcss=E=>{y=E},or=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),or}var ar,cs;function wa(){if(cs)return ar;cs=1;let e=Wn(),t=di();const r=mi();let n=xt(),i=$n();class a{constructor(l,p,u){p=p.toString(),this.stringified=!1,this._processor=l,this._css=p,this._opts=u,this._map=void 0;let s,c=n;this.result=new r(this._processor,s,this._opts),this.result.css=p;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(c,s,this._opts,p);if(h.isMap()){let[d,m]=h.generate();d&&(this.result.css=d),m&&(this.result.map=m)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,p){return this.async().then(l,p)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,p=t;try{l=p(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return ar=a,a.default=a,ar}var lr,hs;function va(){if(hs)return lr;hs=1;let e=fi(),t=Hn(),r=wa(),n=it();class i{constructor(o=[]){this.version="8.5.1",this.plugins=this.normalize(o)}normalize(o){let l=[];for(let p of o)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))l=l.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)l.push(p);else if(typeof p=="function")l.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return l}process(o,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new r(this,o,l):new t(this,o,l)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return lr=i,i.default=i,n.registerProcessor(i),e.registerProcessor(i),lr}var ur,fs;function Yn(){if(fs)return ur;fs=1;let e=hi(),t=rt(),r=Pe(),n=ui(),i=_t(),a=fi(),o=ya(),l=Nt(),p=Hn(),u=qn(),s=Mt(),c=di(),f=va(),h=mi(),d=it(),m=pi(),g=xt(),b=Gn();function y(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new f(S)}return y.plugin=function(E,w){let v=!1;function C(...A){console&&console.warn&&!v&&(v=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
40
|
+
`),h=y.length-g):h+=y.length,S&&E!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=d,m.original.line=1,m.original.column=0,m.generated.line=f,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(r(d,this.mapOpts.annotation)));let m=t(d,f);return this.memoizedPaths.set(f,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new l(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let d=h.source.input.from;if(d&&!f[d]){f[d]=!0;let m=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let d=o(f).toString();return this.memoizedFileURLs.set(f,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;n==="\\"&&(f=f.replace(/\\/g,"/"));let d=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,d),d}}return Zt=s,Zt}var er,is;function Vn(){if(is)return er;is=1;const e=39,t=34,r=92,n=47,i=10,a=32,o=12,l=9,p=13,u=91,s=93,c=40,f=41,h=123,d=125,m=59,g=42,b=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return er=function(R,A={}){let M=R.css.valueOf(),B=A.ignoreErrors,k,J,U,x,q,I,j,H,z,X,ae=M.length,_=0,D=[],O=[];function N(){return _}function P(ie){throw R.error("Unclosed "+ie,_)}function V(){return O.length===0&&_>=ae}function ue(ie){if(O.length)return O.pop();if(_>=ae)return;let be=ie?ie.ignoreUnclosed:!1;switch(k=M.charCodeAt(_),k){case i:case a:case l:case p:case o:{x=_;do x+=1,k=M.charCodeAt(x);while(k===a||k===i||k===l||k===p||k===o);I=["space",M.slice(_,x)],_=x-1;break}case u:case s:case h:case d:case b:case m:case f:{let Ne=String.fromCharCode(k);I=[Ne,Ne,_];break}case c:{if(X=D.length?D.pop()[1]:"",z=M.charCodeAt(_+1),X==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==l&&z!==o&&z!==p){x=_;do{if(j=!1,x=M.indexOf(")",x+1),x===-1)if(B||be){x=_;break}else P("bracket");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["brackets",M.slice(_,x+1),_,x],_=x}else x=M.indexOf(")",_+1),J=M.slice(_,x+1),x===-1||w.test(J)?I=["(","(",_]:(I=["brackets",J,_,x],_=x);break}case e:case t:{q=k===e?"'":'"',x=_;do{if(j=!1,x=M.indexOf(q,x+1),x===-1)if(B||be){x=_+1;break}else P("string");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["string",M.slice(_,x+1),_,x],_=x;break}case y:{S.lastIndex=_+1,S.test(M),S.lastIndex===0?x=M.length-1:x=S.lastIndex-2,I=["at-word",M.slice(_,x+1),_,x],_=x;break}case r:{for(x=_,U=!0;M.charCodeAt(x+1)===r;)x+=1,U=!U;if(k=M.charCodeAt(x+1),U&&k!==n&&k!==a&&k!==i&&k!==l&&k!==p&&k!==o&&(x+=1,v.test(M.charAt(x)))){for(;v.test(M.charAt(x+1));)x+=1;M.charCodeAt(x+1)===a&&(x+=1)}I=["word",M.slice(_,x+1),_,x],_=x;break}default:{k===n&&M.charCodeAt(_+1)===g?(x=M.indexOf("*/",_+2)+1,x===0&&(B||be?x=M.length:P("comment")),I=["comment",M.slice(_,x+1),_,x],_=x):(E.lastIndex=_+1,E.test(M),E.lastIndex===0?x=M.length-1:x=E.lastIndex-2,I=["word",M.slice(_,x+1),_,x],D.push(I),_=x);break}}return _++,I}function ce(ie){O.push(ie)}return{back:ce,endOfFile:V,nextToken:ue,position:N}},er}var tr,ss;function jn(){if(ss)return tr;ss=1;let e=hi(),t=rt(),r=_t(),n=it(),i=pi(),a=Vn();const o={empty:!0,space:!0};function l(u){for(let s=u.length-1;s>=0;s--){let c=u[s],f=c[3]||c[2];if(f)return f}}class p{constructor(s){this.input=s,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new e;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let f,h,d,m=!1,g=!1,b=[],y=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),f=s[0],f==="("||f==="["?y.push(f==="("?")":"]"):f==="{"&&y.length>0?y.push("}"):f===y[y.length-1]&&y.pop(),y.length===0)if(f===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(b.length>0){for(d=b.length-1,h=b[d];h&&h[0]==="space";)h=b[--d];h&&(c.source.end=this.getPosition(h[3]||h[2]),c.source.end.offset++)}this.end(s);break}else b.push(s);else b.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(c.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(c,"params",b),m&&(s=b[b.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let f=0,h;for(let d=c-1;d>=0&&(h=s[d],!(h[0]!=="space"&&(f+=1,f===2)));d--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(s){let c=0,f,h,d;for(let[m,g]of s.entries()){if(h=g,d=h[0],d==="("&&(c+=1),d===")"&&(c-=1),c===0&&d===":")if(!f)this.doubleColon(h);else{if(f[0]==="word"&&f[1]==="progid")continue;return m}f=h}return!1}comment(s){let c=new t;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let f=s[1].slice(2,-2);if(/^\s*$/.test(f))c.text="",c.raws.left=f,c.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(s,c){let f=new r;this.init(f,s[0][2]);let h=s[s.length-1];for(h[0]===";"&&(this.semicolon=!0,s.pop()),f.source.end=this.getPosition(h[3]||h[2]||l(s)),f.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),f.raws.before+=s.shift()[1];for(f.source.start=this.getPosition(s[0][2]),f.prop="";s.length;){let y=s[0][0];if(y===":"||y==="space"||y==="comment")break;f.prop+=s.shift()[1]}f.raws.between="";let d;for(;s.length;)if(d=s.shift(),d[0]===":"){f.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),f.raws.between+=d[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let y=s.length-1;y>=0;y--){if(d=s[y],d[1].toLowerCase()==="!important"){f.important=!0;let S=this.stringFrom(s,y);S=this.spacesFromEnd(s)+S,S!==" !important"&&(f.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=s.slice(0),E="";for(let w=y;w>0;w--){let v=S[w][0];if(E.trim().startsWith("!")&&v!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(f.important=!0,f.raws.important=E,s=S)}if(d[0]!=="space"&&d[0]!=="comment")break}s.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(f.raws.between+=m.map(y=>y[1]).join(""),m=[]),this.raw(f,"value",m.concat(s),c),f.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new i;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){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(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,f=null,h=!1,d=null,m=[],g=s[1].startsWith("--"),b=[],y=s;for(;y;){if(f=y[0],b.push(y),f==="("||f==="[")d||(d=y),m.push(f==="("?")":"]");else if(g&&h&&f==="{")d||(d=y),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(b,g);return}else break;else if(f==="{"){this.rule(b);return}else if(f==="}"){this.tokenizer.back(b.pop()),c=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(d=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(d),c&&h){if(!g)for(;b.length&&(y=b[b.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,f,h){let d,m,g=f.length,b="",y=!0,S,E;for(let w=0;w<g;w+=1)d=f[w],m=d[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(E=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[E]&&!o[S]?b.slice(-1)===","?y=!1:b+=d[1]:y=!1):b+=d[1];if(!y){let w=f.reduce((v,C)=>v+C[1],"");s.raws[c]={raw:w,value:b}}s[c]=b}rule(s){s.pop();let c=new i;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)f=s.pop()[1]+f;return f}spacesAndCommentsFromStart(s){let c,f="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)f+=s.shift()[1];return f}spacesFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],c==="space");)f=s.pop()[1]+f;return f}stringFrom(s,c){let f="";for(let h=c;h<s.length;h++)f+=s[h][1];return s.splice(c,s.length-c),f}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word",{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return tr=p,tr}var rr,ns;function di(){if(ns)return rr;ns=1;let e=Pe(),t=Nt(),r=jn();function n(i,a){let o=new t(i,a),l=new r(o);try{l.parse()}catch(p){throw p}return l.root}return rr=n,n.default=n,e.registerParse(n),rr}var ir,os;function Gn(){if(os)return ir;os=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ir=e,e.default=e,ir}var sr,as;function mi(){if(as)return sr;as=1;let e=Gn();class t{constructor(n,i,a){this.processor=n,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(n,i);return this.messages.push(a),a}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return sr=t,t.default=t,sr}var nr,ls;function $n(){if(ls)return nr;ls=1;let e={};return nr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},nr}var or,us;function Hn(){if(us)return or;us=1;let e=Pe(),t=fi(),r=Wn(),n=di(),i=mi(),a=it(),o=xt(),{isClean:l,my:p}=ci(),u=$n();const s={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function d(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let w=!1,v=s[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[v,v+"-"+w,h,v+"Exit",v+"Exit-"+w]:w?[v,v+"-"+w,v+"Exit",v+"Exit-"+w]:E.append?[v,h,v+"Exit"]:[v,v+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",h,"DocumentExit"]:E.type==="root"?w=["Root",h,"RootExit"]:w=m(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function b(E){return E[l]=!1,E.nodes&&E.nodes.forEach(w=>b(w)),E}let y={};class S{constructor(w,v,C){this.stringified=!1,this.processed=!1;let R;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))R=b(v);else if(v instanceof S||v instanceof i)R=b(v.root),v.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=v.map);else{let A=n;C.syntax&&(A=C.syntax.parse),C.parser&&(A=C.parser),A.parse&&(A=A.parse);try{R=A(v,C)}catch(M){this.processed=!0,this.error=M}R&&!R[p]&&e.rebuild(R)}this.result=new i(w,R,C),this.helpers=le(Q({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,v){let C=this.result.lastPlugin;try{v&&v.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(v,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([v,R])};for(let v of this.plugins)if(typeof v=="object")for(let C in v){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof v[C]=="object")for(let R in v[C])R==="*"?w(v,C,v[C][R]):w(v,C+"-"+R.toLowerCase(),v[C][R]);else typeof v[C]=="function"&&w(v,C,v[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let v=this.plugins[w],C=this.runOnRoot(v);if(d(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[l];){w[l]=!0;let v=[g(w)];for(;v.length>0;){let C=this.visitTick(v);if(d(C))try{await C}catch(R){let A=v[v.length-1].node;throw this.handleError(R,A)}}}if(this.listeners.OnceExit)for(let[v,C]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(w.type==="document"){let R=w.nodes.map(A=>C(A,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return d(v[0])?Promise.all(v):v}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,v=o;w.syntax&&(v=w.syntax.stringify),w.stringifier&&(v=w.stringifier),v.stringify&&(v=v.stringify);let R=new r(v,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let v=this.runOnRoot(w);if(d(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[l];)w[l]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let v of w.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,v){return this.async().then(w,v)}toString(){return this.css}visitSync(w,v){for(let[C,R]of w){this.result.lastPlugin=C;let A;try{A=R(v,this.helpers)}catch(M){throw this.handleError(M,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(d(A))throw this.getAsyncError()}}visitTick(w){let v=w[w.length-1],{node:C,visitors:R}=v;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&v.visitorIndex<R.length){let[M,B]=R[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===R.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=M;try{return B(C.toProxy(),this.helpers)}catch(k){throw this.handleError(k,C)}}if(v.iterator!==0){let M=v.iterator,B;for(;B=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!B[l]){B[l]=!0,w.push(g(B));return}v.iterator=0,delete C.indexes[M]}let A=v.events;for(;v.eventIndex<A.length;){let M=A[v.eventIndex];if(v.eventIndex+=1,M===h){C.nodes&&C.nodes.length&&(C[l]=!0,v.iterator=C.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}w.pop()}walkSync(w){w[l]=!0;let v=m(w);for(let C of v)if(C===h)w.nodes&&w.each(R=>{R[l]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return S.registerPostcss=E=>{y=E},or=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),or}var ar,cs;function wa(){if(cs)return ar;cs=1;let e=Wn(),t=di();const r=mi();let n=xt(),i=$n();class a{constructor(l,p,u){p=p.toString(),this.stringified=!1,this._processor=l,this._css=p,this._opts=u,this._map=void 0;let s,c=n;this.result=new r(this._processor,s,this._opts),this.result.css=p;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(c,s,this._opts,p);if(h.isMap()){let[d,m]=h.generate();d&&(this.result.css=d),m&&(this.result.map=m)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,p){return this.async().then(l,p)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,p=t;try{l=p(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return ar=a,a.default=a,ar}var lr,hs;function va(){if(hs)return lr;hs=1;let e=fi(),t=Hn(),r=wa(),n=it();class i{constructor(o=[]){this.version="8.5.1",this.plugins=this.normalize(o)}normalize(o){let l=[];for(let p of o)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))l=l.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)l.push(p);else if(typeof p=="function")l.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return l}process(o,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new r(this,o,l):new t(this,o,l)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return lr=i,i.default=i,n.registerProcessor(i),e.registerProcessor(i),lr}var ur,fs;function Yn(){if(fs)return ur;fs=1;let e=hi(),t=rt(),r=Pe(),n=ui(),i=_t(),a=fi(),o=ya(),l=Nt(),p=Hn(),u=qn(),s=Mt(),c=di(),f=va(),h=mi(),d=it(),m=pi(),g=xt(),b=Gn();function y(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new f(S)}return y.plugin=function(E,w){let v=!1;function C(...A){console&&console.warn&&!v&&(v=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
41
41
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
42
|
-
https://www.w3ctech.com/topic/2226`));let M=w(...A);return M.postcssPlugin=E,M.postcssVersion=new f().version,M}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(A,M,B){return y([C(B)]).process(A,M)},C},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=u,y.comment=S=>new t(S),y.atRule=S=>new e(S),y.decl=S=>new i(S),y.rule=S=>new m(S),y.root=S=>new d(S),y.document=S=>new a(S),y.CssSyntaxError=n,y.Declaration=i,y.Container=r,y.Processor=f,y.Document=a,y.Comment=t,y.Warning=b,y.AtRule=e,y.Result=h,y.Input=l,y.Rule=m,y.Root=d,y.Node=s,p.registerPostcss(y),ur=y,y.default=y,ur}var cr,ps;function ba(){if(ps)return cr;ps=1;let e=rt(),t=jn(),r=Vn();class n extends t{checkMissedSemicolon(){}comment(a){let o=new e;this.init(o,a[2]);let l=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:l.col,line:l.line,offset:a[3]+1};let p=a[1].slice(2);if(p.slice(-2)==="*/"&&(p=p.slice(0,-2)),/^\s*$/.test(p))o.text="",o.raws.left=p,o.raws.right="";else{let u=p.match(/^(\s*)([^]*\S)(\s*)$/);o.text=u[2],o.raws.left=u[1],o.raws.right=u[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(o=>o[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let o=this.colon(a);if(o===!1)return;let l,p;for(l=o-1;l>=0&&a[l][0]!=="word";l--);if(l===0||l<0)return;for(p=l-1;p>=0;p--)if(a[p][0]!=="space"){p+=1;break}let u=a.slice(l),s=a.slice(p,l);a.splice(p,a.length-p),this.spaces=s.map(c=>c[1]).join(""),this.decl(u)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(o=>o[1]).join("")}unnamedAtrule(a){a.name=""}}return cr=n,cr}var hr,ds;function Sa(){if(ds)return hr;ds=1;let{Input:e}=Yn(),t=ba();return hr=function(n,i){let a=new e(n,i),o=new t(a);return o.parse(),o.root},hr}var Ca=Sa();const Ea=Bn(Ca);var Ra=Yn();const Z=Bn(Ra);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;const ms={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function xa(e){let t=ms[e.tagName]?ms[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Jn(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let n=e;try{n=Z([ca,ha]).process(e,{parser:Ea}).css}catch(i){console.warn("Failed to adapt css for replay",i)}return t==null||t.stylesWithHoverClass.set(e,n),n}function gs(){return{stylesWithHoverClass:new Map}}function Ma(e,t){let r=e.textContent;if(e.isStyle&&t.hackCss)try{r=Jn(e.textContent,t.cache)}catch(n){}return t.doc.createTextNode(r)}function _a(e,t){var r;const{doc:n,hackCss:i,cache:a}=t;switch(e.type){case se.Document:return n.implementation.createDocument(null,"",null);case se.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case se.Element:{const o=xa(e);let l;e.isSVG?l=n.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=n.defaultView)!=null&&r.customElements)&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),l=n.createElement(o));const p={};for(const u in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,u))continue;let s=e.attributes[u];if(o==="option"&&u==="selected"&&s===!1||s===null)continue;if(s===!0&&(s=""),u.startsWith("rr_")){p[u]=s;continue}const c=o==="textarea"&&u==="value",f=o==="style"&&u==="_cssText";if(f&&i&&typeof s=="string"&&(s=Jn(s,a)),(c||f)&&typeof s=="string"){l.appendChild(n.createTextNode(s)),e.childNodes=[];continue}try{if(e.isSVG&&u==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",u,s.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")l.setAttribute("_"+u,s.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){l.setAttribute("csp-content",s.toString());continue}else o==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&la(e.attributes.href)==="js"||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(u,s.toString()))}catch(h){}}for(const u in p){const s=p[u];if(o==="canvas"&&u==="rr_dataURL"){const c=n.createElement("img");c.onload=()=>{const f=l.getContext("2d");f&&f.drawImage(c,0,0,c.width,c.height)},c.src=s.toString(),l.RRNodeType&&(l.rr_dataURL=s.toString())}else if(o==="img"&&u==="rr_dataURL"){const c=l;c.currentSrc.startsWith("data:")||(c.setAttribute("rrweb-original-src",e.attributes.src),c.src=s.toString())}if(u==="rr_width")l.style.setProperty("width",s.toString());else if(u==="rr_height")l.style.setProperty("height",s.toString());else if(u==="rr_mediaCurrentTime"&&typeof s=="number")l.currentTime=s;else if(u==="rr_mediaState")switch(s){case"played":l.play().catch(c=>console.warn("media playback error",c));break;case"paused":l.pause();break}else u==="rr_mediaPlaybackRate"&&typeof s=="number"?l.playbackRate=s:u==="rr_mediaMuted"&&typeof s=="boolean"?l.muted=s:u==="rr_mediaLoop"&&typeof s=="boolean"?l.loop=s:u==="rr_mediaVolume"&&typeof s=="number"?l.volume=s:u==="rr_open_mode"&&l.setAttribute("rr_open_mode",s)}if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case se.Text:return Ma(e,{cache:a,doc:n,hackCss:i});case se.CDATA:return e.textContent.trim()===""?null:n.createCDATASection(e.textContent);case se.Comment:return n.createComment(e.textContent);default:return null}}function Ke(e,t){const{doc:r,mirror:n,skipChild:i=!1,hackCss:a=!0,afterAppend:o,cache:l}=t;if(n.has(e.id)){const u=n.getNode(e.id),s=n.getMeta(u);if(aa(s,e))return n.getNode(e.id)}let p=_a(e,{doc:r,hackCss:a,cache:l});if(!p)return null;if(e.rootId&&n.getNode(e.rootId)!==r&&n.replace(e.rootId,r),e.type===se.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==se.DocumentType&&(e.childNodes[0].type===se.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),p=r),n.add(p,e),(e.type===se.Document||e.type===se.Element)&&!i)for(const u of e.childNodes){const s=Ke(u,{doc:r,mirror:n,skipChild:!1,hackCss:a,afterAppend:o,cache:l});if(!s){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&na(p)&&p.shadowRoot)p.shadowRoot.appendChild(s);else if(e.type===se.Document&&u.type==se.Element){const c=s;let f=null;c.childNodes.forEach(h=>{h.nodeName==="BODY"&&(f=h)}),f?(c.removeChild(f),p.appendChild(s),c.appendChild(f)):p.appendChild(s)}else p.appendChild(s);o&&o(s,u.id)}return p}function Na(e,t){function r(n){t(n)}for(const n of e.getIds())e.has(n)&&r(e.getNode(n))}function Oa(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==se.Element)return;const n=e;for(const i in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,i)&&i.startsWith("rr_")))continue;const a=r.attributes[i];i==="rr_scrollLeft"&&(n.scrollLeft=a),i==="rr_scrollTop"&&(n.scrollTop=a)}}function Aa(e,t){const{doc:r,onVisit:n,hackCss:i=!0,afterAppend:a,cache:o,mirror:l=new Ln}=t,p=Ke(e,{doc:r,mirror:l,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return Na(l,u=>{n&&n(u),Oa(u,l)}),p}var Da=Object.defineProperty,Pa=(e,t,r)=>t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>Pa(e,typeof t!="symbol"?t+"":t,r),Ta=Object.defineProperty,ka=(e,t,r)=>t in e?Ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ys=(e,t,r)=>ka(e,typeof t!="symbol"?t+"":t,r);let Ia=class{constructor(){ys(this,"idNodeMap",new Map),ys(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))==null?void 0:r.id;return n!=null?n:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function La(){return new Ia}function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ba(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var ct={exports:{}},ws;function Ua(){if(ws)return ct.exports;ws=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return ct.exports=t(),ct.exports.createColors=t,ct.exports}const za={},qa=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),ge=Ba(qa);var fr,vs;function gi(){if(vs)return fr;vs=1;let e=Ua(),t=ge;class r extends Error{constructor(i,a,o,l,p,u){super(i),this.name="CssSyntaxError",this.reason=i,p&&(this.file=p),l&&(this.source=l),u&&(this.plugin=u),typeof a!="undefined"&&typeof o!="undefined"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let o=h=>h,l=h=>h,p=h=>h;if(i){let{bold:h,gray:d,red:m}=e.createColors(!0);l=g=>h(m(g)),o=g=>d(g),t&&(p=g=>t(g))}let u=a.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,u.length),f=String(c).length;return u.slice(s,c).map((h,d)=>{let m=s+1+d,g=" "+(" "+m).slice(-f)+" | ";if(m===this.line){if(h.length>160){let y=20,S=Math.max(0,this.column-y),E=Math.max(this.column+y,this.endColumn+y),w=h.slice(S,E),v=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return l(">")+o(g)+p(w)+`
|
|
42
|
+
https://www.w3ctech.com/topic/2226`));let M=w(...A);return M.postcssPlugin=E,M.postcssVersion=new f().version,M}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(A,M,B){return y([C(B)]).process(A,M)},C},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=u,y.comment=S=>new t(S),y.atRule=S=>new e(S),y.decl=S=>new i(S),y.rule=S=>new m(S),y.root=S=>new d(S),y.document=S=>new a(S),y.CssSyntaxError=n,y.Declaration=i,y.Container=r,y.Processor=f,y.Document=a,y.Comment=t,y.Warning=b,y.AtRule=e,y.Result=h,y.Input=l,y.Rule=m,y.Root=d,y.Node=s,p.registerPostcss(y),ur=y,y.default=y,ur}var cr,ps;function ba(){if(ps)return cr;ps=1;let e=rt(),t=jn(),r=Vn();class n extends t{checkMissedSemicolon(){}comment(a){let o=new e;this.init(o,a[2]);let l=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:l.col,line:l.line,offset:a[3]+1};let p=a[1].slice(2);if(p.slice(-2)==="*/"&&(p=p.slice(0,-2)),/^\s*$/.test(p))o.text="",o.raws.left=p,o.raws.right="";else{let u=p.match(/^(\s*)([^]*\S)(\s*)$/);o.text=u[2],o.raws.left=u[1],o.raws.right=u[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(o=>o[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let o=this.colon(a);if(o===!1)return;let l,p;for(l=o-1;l>=0&&a[l][0]!=="word";l--);if(l===0||l<0)return;for(p=l-1;p>=0;p--)if(a[p][0]!=="space"){p+=1;break}let u=a.slice(l),s=a.slice(p,l);a.splice(p,a.length-p),this.spaces=s.map(c=>c[1]).join(""),this.decl(u)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(o=>o[1]).join("")}unnamedAtrule(a){a.name=""}}return cr=n,cr}var hr,ds;function Sa(){if(ds)return hr;ds=1;let{Input:e}=Yn(),t=ba();return hr=function(n,i){let a=new e(n,i),o=new t(a);return o.parse(),o.root},hr}var Ca=Sa();const Ea=Bn(Ca);var Ra=Yn();const Z=Bn(Ra);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;const ms={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function xa(e){let t=ms[e.tagName]?ms[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Jn(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let n=e;try{n=Z([ca,ha]).process(e,{parser:Ea}).css}catch(i){console.warn("Failed to adapt css for replay",i)}return t==null||t.stylesWithHoverClass.set(e,n),n}function gs(){return{stylesWithHoverClass:new Map}}function Ma(e,t){let r=e.textContent;if(e.isStyle&&t.hackCss)try{r=Jn(e.textContent,t.cache)}catch(n){}return t.doc.createTextNode(r)}function _a(e,t){var r;const{doc:n,hackCss:i,cache:a}=t;switch(e.type){case re.Document:return n.implementation.createDocument(null,"",null);case re.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case re.Element:{const o=xa(e);let l;e.isSVG?l=n.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=n.defaultView)!=null&&r.customElements)&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),l=n.createElement(o));const p={};for(const u in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,u))continue;let s=e.attributes[u];if(o==="option"&&u==="selected"&&s===!1||s===null)continue;if(s===!0&&(s=""),u.startsWith("rr_")){p[u]=s;continue}const c=o==="textarea"&&u==="value",f=o==="style"&&u==="_cssText";if(f&&i&&typeof s=="string"&&(s=Jn(s,a)),(c||f)&&typeof s=="string"){l.appendChild(n.createTextNode(s)),e.childNodes=[];continue}try{if(e.isSVG&&u==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",u,s.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")l.setAttribute("_"+u,s.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){l.setAttribute("csp-content",s.toString());continue}else o==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&la(e.attributes.href)==="js"||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(u,s.toString()))}catch(h){}}for(const u in p){const s=p[u];if(o==="canvas"&&u==="rr_dataURL"){const c=n.createElement("img");c.onload=()=>{const f=l.getContext("2d");f&&f.drawImage(c,0,0,c.width,c.height)},c.src=s.toString(),l.RRNodeType&&(l.rr_dataURL=s.toString())}else if(o==="img"&&u==="rr_dataURL"){const c=l;c.currentSrc.startsWith("data:")||(c.setAttribute("rrweb-original-src",e.attributes.src),c.src=s.toString())}if(u==="rr_width")l.style.setProperty("width",s.toString());else if(u==="rr_height")l.style.setProperty("height",s.toString());else if(u==="rr_mediaCurrentTime"&&typeof s=="number")l.currentTime=s;else if(u==="rr_mediaState")switch(s){case"played":l.play().catch(c=>console.warn("media playback error",c));break;case"paused":l.pause();break}else u==="rr_mediaPlaybackRate"&&typeof s=="number"?l.playbackRate=s:u==="rr_mediaMuted"&&typeof s=="boolean"?l.muted=s:u==="rr_mediaLoop"&&typeof s=="boolean"?l.loop=s:u==="rr_mediaVolume"&&typeof s=="number"?l.volume=s:u==="rr_open_mode"&&l.setAttribute("rr_open_mode",s)}if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case re.Text:return Ma(e,{cache:a,doc:n,hackCss:i});case re.CDATA:return e.textContent.trim()===""?null:n.createCDATASection(e.textContent);case re.Comment:return n.createComment(e.textContent);default:return null}}function Ke(e,t){const{doc:r,mirror:n,skipChild:i=!1,hackCss:a=!0,afterAppend:o,cache:l}=t;if(n.has(e.id)){const u=n.getNode(e.id),s=n.getMeta(u);if(aa(s,e))return n.getNode(e.id)}let p=_a(e,{doc:r,hackCss:a,cache:l});if(!p)return null;if(e.rootId&&n.getNode(e.rootId)!==r&&n.replace(e.rootId,r),e.type===re.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==re.DocumentType&&(e.childNodes[0].type===re.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),p=r),n.add(p,e),(e.type===re.Document||e.type===re.Element)&&!i)for(const u of e.childNodes){const s=Ke(u,{doc:r,mirror:n,skipChild:!1,hackCss:a,afterAppend:o,cache:l});if(!s){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&na(p)&&p.shadowRoot)p.shadowRoot.appendChild(s);else if(e.type===re.Document&&u.type==re.Element){const c=s;let f=null;c.childNodes.forEach(h=>{h.nodeName==="BODY"&&(f=h)}),f?(c.removeChild(f),p.appendChild(s),c.appendChild(f)):p.appendChild(s)}else e.type===re.Document&&u.type===re.DocumentType&&p.firstChild&&p.firstChild.nodeType===1?p.insertBefore(s,p.firstChild):p.appendChild(s);o&&o(s,u.id)}return p}function Na(e,t){function r(n){t(n)}for(const n of e.getIds())e.has(n)&&r(e.getNode(n))}function Oa(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==re.Element)return;const n=e;for(const i in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,i)&&i.startsWith("rr_")))continue;const a=r.attributes[i];i==="rr_scrollLeft"&&(n.scrollLeft=a),i==="rr_scrollTop"&&(n.scrollTop=a)}}function Aa(e,t){const{doc:r,onVisit:n,hackCss:i=!0,afterAppend:a,cache:o,mirror:l=new Ln}=t,p=Ke(e,{doc:r,mirror:l,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return Na(l,u=>{n&&n(u),Oa(u,l)}),p}var Da=Object.defineProperty,Pa=(e,t,r)=>t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>Pa(e,typeof t!="symbol"?t+"":t,r),Ta=Object.defineProperty,ka=(e,t,r)=>t in e?Ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ys=(e,t,r)=>ka(e,typeof t!="symbol"?t+"":t,r);let Ia=class{constructor(){ys(this,"idNodeMap",new Map),ys(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))==null?void 0:r.id;return n!=null?n:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function La(){return new Ia}function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ba(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var ct={exports:{}},ws;function Ua(){if(ws)return ct.exports;ws=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return ct.exports=t(),ct.exports.createColors=t,ct.exports}const za={},qa=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),ge=Ba(qa);var fr,vs;function gi(){if(vs)return fr;vs=1;let e=Ua(),t=ge;class r extends Error{constructor(i,a,o,l,p,u){super(i),this.name="CssSyntaxError",this.reason=i,p&&(this.file=p),l&&(this.source=l),u&&(this.plugin=u),typeof a!="undefined"&&typeof o!="undefined"&&(typeof a=="number"?(this.line=a,this.column=o):(this.line=a.line,this.column=a.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let o=h=>h,l=h=>h,p=h=>h;if(i){let{bold:h,gray:d,red:m}=e.createColors(!0);l=g=>h(m(g)),o=g=>d(g),t&&(p=g=>t(g))}let u=a.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,u.length),f=String(c).length;return u.slice(s,c).map((h,d)=>{let m=s+1+d,g=" "+(" "+m).slice(-f)+" | ";if(m===this.line){if(h.length>160){let y=20,S=Math.max(0,this.column-y),E=Math.max(this.column+y,this.endColumn+y),w=h.slice(S,E),v=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return l(">")+o(g)+p(w)+`
|
|
43
43
|
`+v+l("^")}let b=o(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+o(g)+p(h)+`
|
|
44
44
|
`+b+l("^")}return" "+o(g)+p(h)}).join(`
|
|
45
45
|
`)}toString(){let i=this.showSourceCode();return i&&(i=`
|
|
@@ -64,7 +64,7 @@ https://www.w3ctech.com/topic/2226`));let M=w(...A);return M.postcssPlugin=E,M.p
|
|
|
64
64
|
`;this.css.includes(`\r
|
|
65
65
|
`)&&(h=`\r
|
|
66
66
|
`),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=this.toUrl(this.path(f.file)),d=f.root||e(f.file),m;this.mapOpts.sourcesContent===!1?(m=new i(f.text),m.sourcesContent&&(m.sourcesContent=null)):m=f.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let h=this.root.nodes.length-1;h>=0;h--)f=this.root.nodes[h],f.type==="comment"&&f.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&p&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,h=>{f+=h}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=a.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,h=1,d="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,b;this.stringify(this.root,(y,S,E)=>{if(this.css+=y,S&&E!=="end"&&(m.generated.line=f,m.generated.column=h-1,S.source&&S.source.start?(m.source=this.sourcePath(S),m.original.line=S.source.start.line,m.original.column=S.source.start.column-1,this.map.addMapping(m)):(m.source=d,m.original.line=1,m.original.column=0,this.map.addMapping(m))),b=y.match(/\n/g),b?(f+=b.length,g=y.lastIndexOf(`
|
|
67
|
-
`),h=y.length-g):h+=y.length,S&&E!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=d,m.original.line=1,m.original.column=0,m.generated.line=f,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(r(d,this.mapOpts.annotation)));let m=t(d,f);return this.memoizedPaths.set(f,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new l(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let d=h.source.input.from;if(d&&!f[d]){f[d]=!0;let m=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let d=o(f).toString();return this.memoizedFileURLs.set(f,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;n==="\\"&&(f=f.replace(/\\/g,"/"));let d=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,d),d}}return Nr=s,Nr}var Or,Fs;function eo(){if(Fs)return Or;Fs=1;const e=39,t=34,r=92,n=47,i=10,a=32,o=12,l=9,p=13,u=91,s=93,c=40,f=41,h=123,d=125,m=59,g=42,b=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return Or=function(R,A={}){let M=R.css.valueOf(),B=A.ignoreErrors,k,J,U,x,q,I,j,H,z,X,ae=M.length,_=0,D=[],O=[];function N(){return _}function P(re){throw R.error("Unclosed "+re,_)}function V(){return O.length===0&&_>=ae}function ue(re){if(O.length)return O.pop();if(_>=ae)return;let be=re?re.ignoreUnclosed:!1;switch(k=M.charCodeAt(_),k){case i:case a:case l:case p:case o:{x=_;do x+=1,k=M.charCodeAt(x);while(k===a||k===i||k===l||k===p||k===o);I=["space",M.slice(_,x)],_=x-1;break}case u:case s:case h:case d:case b:case m:case f:{let Ne=String.fromCharCode(k);I=[Ne,Ne,_];break}case c:{if(X=D.length?D.pop()[1]:"",z=M.charCodeAt(_+1),X==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==l&&z!==o&&z!==p){x=_;do{if(j=!1,x=M.indexOf(")",x+1),x===-1)if(B||be){x=_;break}else P("bracket");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["brackets",M.slice(_,x+1),_,x],_=x}else x=M.indexOf(")",_+1),J=M.slice(_,x+1),x===-1||w.test(J)?I=["(","(",_]:(I=["brackets",J,_,x],_=x);break}case e:case t:{q=k===e?"'":'"',x=_;do{if(j=!1,x=M.indexOf(q,x+1),x===-1)if(B||be){x=_+1;break}else P("string");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["string",M.slice(_,x+1),_,x],_=x;break}case y:{S.lastIndex=_+1,S.test(M),S.lastIndex===0?x=M.length-1:x=S.lastIndex-2,I=["at-word",M.slice(_,x+1),_,x],_=x;break}case r:{for(x=_,U=!0;M.charCodeAt(x+1)===r;)x+=1,U=!U;if(k=M.charCodeAt(x+1),U&&k!==n&&k!==a&&k!==i&&k!==l&&k!==p&&k!==o&&(x+=1,v.test(M.charAt(x)))){for(;v.test(M.charAt(x+1));)x+=1;M.charCodeAt(x+1)===a&&(x+=1)}I=["word",M.slice(_,x+1),_,x],_=x;break}default:{k===n&&M.charCodeAt(_+1)===g?(x=M.indexOf("*/",_+2)+1,x===0&&(B||be?x=M.length:P("comment")),I=["comment",M.slice(_,x+1),_,x],_=x):(E.lastIndex=_+1,E.test(M),E.lastIndex===0?x=M.length-1:x=E.lastIndex-2,I=["word",M.slice(_,x+1),_,x],D.push(I),_=x);break}}return _++,I}function ce(re){O.push(re)}return{back:ce,endOfFile:V,nextToken:ue,position:N}},Or}var Ar,Bs;function to(){if(Bs)return Ar;Bs=1;let e=wi(),t=st(),r=Dt(),n=nt(),i=bi(),a=eo();const o={empty:!0,space:!0};function l(u){for(let s=u.length-1;s>=0;s--){let c=u[s],f=c[3]||c[2];if(f)return f}}class p{constructor(s){this.input=s,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new e;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let f,h,d,m=!1,g=!1,b=[],y=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),f=s[0],f==="("||f==="["?y.push(f==="("?")":"]"):f==="{"&&y.length>0?y.push("}"):f===y[y.length-1]&&y.pop(),y.length===0)if(f===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(b.length>0){for(d=b.length-1,h=b[d];h&&h[0]==="space";)h=b[--d];h&&(c.source.end=this.getPosition(h[3]||h[2]),c.source.end.offset++)}this.end(s);break}else b.push(s);else b.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(c.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(c,"params",b),m&&(s=b[b.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let f=0,h;for(let d=c-1;d>=0&&(h=s[d],!(h[0]!=="space"&&(f+=1,f===2)));d--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(s){let c=0,f,h,d;for(let[m,g]of s.entries()){if(h=g,d=h[0],d==="("&&(c+=1),d===")"&&(c-=1),c===0&&d===":")if(!f)this.doubleColon(h);else{if(f[0]==="word"&&f[1]==="progid")continue;return m}f=h}return!1}comment(s){let c=new t;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let f=s[1].slice(2,-2);if(/^\s*$/.test(f))c.text="",c.raws.left=f,c.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(s,c){let f=new r;this.init(f,s[0][2]);let h=s[s.length-1];for(h[0]===";"&&(this.semicolon=!0,s.pop()),f.source.end=this.getPosition(h[3]||h[2]||l(s)),f.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),f.raws.before+=s.shift()[1];for(f.source.start=this.getPosition(s[0][2]),f.prop="";s.length;){let y=s[0][0];if(y===":"||y==="space"||y==="comment")break;f.prop+=s.shift()[1]}f.raws.between="";let d;for(;s.length;)if(d=s.shift(),d[0]===":"){f.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),f.raws.between+=d[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let y=s.length-1;y>=0;y--){if(d=s[y],d[1].toLowerCase()==="!important"){f.important=!0;let S=this.stringFrom(s,y);S=this.spacesFromEnd(s)+S,S!==" !important"&&(f.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=s.slice(0),E="";for(let w=y;w>0;w--){let v=S[w][0];if(E.trim().startsWith("!")&&v!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(f.important=!0,f.raws.important=E,s=S)}if(d[0]!=="space"&&d[0]!=="comment")break}s.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(f.raws.between+=m.map(y=>y[1]).join(""),m=[]),this.raw(f,"value",m.concat(s),c),f.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new i;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){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(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,f=null,h=!1,d=null,m=[],g=s[1].startsWith("--"),b=[],y=s;for(;y;){if(f=y[0],b.push(y),f==="("||f==="[")d||(d=y),m.push(f==="("?")":"]");else if(g&&h&&f==="{")d||(d=y),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(b,g);return}else break;else if(f==="{"){this.rule(b);return}else if(f==="}"){this.tokenizer.back(b.pop()),c=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(d=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(d),c&&h){if(!g)for(;b.length&&(y=b[b.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,f,h){let d,m,g=f.length,b="",y=!0,S,E;for(let w=0;w<g;w+=1)d=f[w],m=d[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(E=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[E]&&!o[S]?b.slice(-1)===","?y=!1:b+=d[1]:y=!1):b+=d[1];if(!y){let w=f.reduce((v,C)=>v+C[1],"");s.raws[c]={raw:w,value:b}}s[c]=b}rule(s){s.pop();let c=new i;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)f=s.pop()[1]+f;return f}spacesAndCommentsFromStart(s){let c,f="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)f+=s.shift()[1];return f}spacesFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],c==="space");)f=s.pop()[1]+f;return f}stringFrom(s,c){let f="";for(let h=c;h<s.length;h++)f+=s[h][1];return s.splice(c,s.length-c),f}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word",{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return Ar=p,Ar}var Dr,Us;function Si(){if(Us)return Dr;Us=1;let e=Te(),t=Pt(),r=to();function n(i,a){let o=new t(i,a),l=new r(o);try{l.parse()}catch(p){throw p}return l.root}return Dr=n,n.default=n,e.registerParse(n),Dr}var Pr,zs;function ro(){if(zs)return Pr;zs=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Pr=e,e.default=e,Pr}var Tr,qs;function Ci(){if(qs)return Tr;qs=1;let e=ro();class t{constructor(n,i,a){this.processor=n,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(n,i);return this.messages.push(a),a}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return Tr=t,t.default=t,Tr}var kr,Ws;function io(){if(Ws)return kr;Ws=1;let e={};return kr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},kr}var Ir,Vs;function so(){if(Vs)return Ir;Vs=1;let e=Te(),t=vi(),r=Zn(),n=Si(),i=Ci(),a=nt(),o=Ot(),{isClean:l,my:p}=yi(),u=io();const s={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function d(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let w=!1,v=s[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[v,v+"-"+w,h,v+"Exit",v+"Exit-"+w]:w?[v,v+"-"+w,v+"Exit",v+"Exit-"+w]:E.append?[v,h,v+"Exit"]:[v,v+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",h,"DocumentExit"]:E.type==="root"?w=["Root",h,"RootExit"]:w=m(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function b(E){return E[l]=!1,E.nodes&&E.nodes.forEach(w=>b(w)),E}let y={};class S{constructor(w,v,C){this.stringified=!1,this.processed=!1;let R;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))R=b(v);else if(v instanceof S||v instanceof i)R=b(v.root),v.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=v.map);else{let A=n;C.syntax&&(A=C.syntax.parse),C.parser&&(A=C.parser),A.parse&&(A=A.parse);try{R=A(v,C)}catch(M){this.processed=!0,this.error=M}R&&!R[p]&&e.rebuild(R)}this.result=new i(w,R,C),this.helpers=le(Q({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,v){let C=this.result.lastPlugin;try{v&&v.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(v,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([v,R])};for(let v of this.plugins)if(typeof v=="object")for(let C in v){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof v[C]=="object")for(let R in v[C])R==="*"?w(v,C,v[C][R]):w(v,C+"-"+R.toLowerCase(),v[C][R]);else typeof v[C]=="function"&&w(v,C,v[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let v=this.plugins[w],C=this.runOnRoot(v);if(d(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[l];){w[l]=!0;let v=[g(w)];for(;v.length>0;){let C=this.visitTick(v);if(d(C))try{await C}catch(R){let A=v[v.length-1].node;throw this.handleError(R,A)}}}if(this.listeners.OnceExit)for(let[v,C]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(w.type==="document"){let R=w.nodes.map(A=>C(A,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return d(v[0])?Promise.all(v):v}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,v=o;w.syntax&&(v=w.syntax.stringify),w.stringifier&&(v=w.stringifier),v.stringify&&(v=v.stringify);let R=new r(v,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let v=this.runOnRoot(w);if(d(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[l];)w[l]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let v of w.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,v){return this.async().then(w,v)}toString(){return this.css}visitSync(w,v){for(let[C,R]of w){this.result.lastPlugin=C;let A;try{A=R(v,this.helpers)}catch(M){throw this.handleError(M,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(d(A))throw this.getAsyncError()}}visitTick(w){let v=w[w.length-1],{node:C,visitors:R}=v;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&v.visitorIndex<R.length){let[M,B]=R[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===R.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=M;try{return B(C.toProxy(),this.helpers)}catch(k){throw this.handleError(k,C)}}if(v.iterator!==0){let M=v.iterator,B;for(;B=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!B[l]){B[l]=!0,w.push(g(B));return}v.iterator=0,delete C.indexes[M]}let A=v.events;for(;v.eventIndex<A.length;){let M=A[v.eventIndex];if(v.eventIndex+=1,M===h){C.nodes&&C.nodes.length&&(C[l]=!0,v.iterator=C.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}w.pop()}walkSync(w){w[l]=!0;let v=m(w);for(let C of v)if(C===h)w.nodes&&w.each(R=>{R[l]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return S.registerPostcss=E=>{y=E},Ir=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),Ir}var Lr,js;function ja(){if(js)return Lr;js=1;let e=Zn(),t=Si();const r=Ci();let n=Ot(),i=io();class a{constructor(l,p,u){p=p.toString(),this.stringified=!1,this._processor=l,this._css=p,this._opts=u,this._map=void 0;let s,c=n;this.result=new r(this._processor,s,this._opts),this.result.css=p;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(c,s,this._opts,p);if(h.isMap()){let[d,m]=h.generate();d&&(this.result.css=d),m&&(this.result.map=m)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,p){return this.async().then(l,p)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,p=t;try{l=p(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return Lr=a,a.default=a,Lr}var Fr,Gs;function Ga(){if(Gs)return Fr;Gs=1;let e=vi(),t=so(),r=ja(),n=nt();class i{constructor(o=[]){this.version="8.5.1",this.plugins=this.normalize(o)}normalize(o){let l=[];for(let p of o)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))l=l.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)l.push(p);else if(typeof p=="function")l.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return l}process(o,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new r(this,o,l):new t(this,o,l)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Fr=i,i.default=i,n.registerProcessor(i),e.registerProcessor(i),Fr}var Br,$s;function no(){if($s)return Br;$s=1;let e=wi(),t=st(),r=Te(),n=gi(),i=Dt(),a=vi(),o=Va(),l=Pt(),p=so(),u=Kn(),s=At(),c=Si(),f=Ga(),h=Ci(),d=nt(),m=bi(),g=Ot(),b=ro();function y(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new f(S)}return y.plugin=function(E,w){let v=!1;function C(...A){console&&console.warn&&!v&&(v=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
67
|
+
`),h=y.length-g):h+=y.length,S&&E!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=d,m.original.line=1,m.original.column=0,m.generated.line=f,m.generated.column=h-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(h=>h.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let h=this.memoizedPaths.get(f);if(h)return h;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(r(d,this.mapOpts.annotation)));let m=t(d,f);return this.memoizedPaths.set(f,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let h=f.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let f=new l(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(h=>{if(h.source){let d=h.source.input.from;if(d&&!f[d]){f[d]=!0;let m=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(m,h.source.input.css)}}});else if(this.css){let h=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(h,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let h=this.memoizedFileURLs.get(f);if(h)return h;if(o){let d=o(f).toString();return this.memoizedFileURLs.set(f,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let h=this.memoizedURLs.get(f);if(h)return h;n==="\\"&&(f=f.replace(/\\/g,"/"));let d=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,d),d}}return Nr=s,Nr}var Or,Fs;function eo(){if(Fs)return Or;Fs=1;const e=39,t=34,r=92,n=47,i=10,a=32,o=12,l=9,p=13,u=91,s=93,c=40,f=41,h=123,d=125,m=59,g=42,b=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return Or=function(R,A={}){let M=R.css.valueOf(),B=A.ignoreErrors,k,J,U,x,q,I,j,H,z,X,ae=M.length,_=0,D=[],O=[];function N(){return _}function P(ie){throw R.error("Unclosed "+ie,_)}function V(){return O.length===0&&_>=ae}function ue(ie){if(O.length)return O.pop();if(_>=ae)return;let be=ie?ie.ignoreUnclosed:!1;switch(k=M.charCodeAt(_),k){case i:case a:case l:case p:case o:{x=_;do x+=1,k=M.charCodeAt(x);while(k===a||k===i||k===l||k===p||k===o);I=["space",M.slice(_,x)],_=x-1;break}case u:case s:case h:case d:case b:case m:case f:{let Ne=String.fromCharCode(k);I=[Ne,Ne,_];break}case c:{if(X=D.length?D.pop()[1]:"",z=M.charCodeAt(_+1),X==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==l&&z!==o&&z!==p){x=_;do{if(j=!1,x=M.indexOf(")",x+1),x===-1)if(B||be){x=_;break}else P("bracket");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["brackets",M.slice(_,x+1),_,x],_=x}else x=M.indexOf(")",_+1),J=M.slice(_,x+1),x===-1||w.test(J)?I=["(","(",_]:(I=["brackets",J,_,x],_=x);break}case e:case t:{q=k===e?"'":'"',x=_;do{if(j=!1,x=M.indexOf(q,x+1),x===-1)if(B||be){x=_+1;break}else P("string");for(H=x;M.charCodeAt(H-1)===r;)H-=1,j=!j}while(j);I=["string",M.slice(_,x+1),_,x],_=x;break}case y:{S.lastIndex=_+1,S.test(M),S.lastIndex===0?x=M.length-1:x=S.lastIndex-2,I=["at-word",M.slice(_,x+1),_,x],_=x;break}case r:{for(x=_,U=!0;M.charCodeAt(x+1)===r;)x+=1,U=!U;if(k=M.charCodeAt(x+1),U&&k!==n&&k!==a&&k!==i&&k!==l&&k!==p&&k!==o&&(x+=1,v.test(M.charAt(x)))){for(;v.test(M.charAt(x+1));)x+=1;M.charCodeAt(x+1)===a&&(x+=1)}I=["word",M.slice(_,x+1),_,x],_=x;break}default:{k===n&&M.charCodeAt(_+1)===g?(x=M.indexOf("*/",_+2)+1,x===0&&(B||be?x=M.length:P("comment")),I=["comment",M.slice(_,x+1),_,x],_=x):(E.lastIndex=_+1,E.test(M),E.lastIndex===0?x=M.length-1:x=E.lastIndex-2,I=["word",M.slice(_,x+1),_,x],D.push(I),_=x);break}}return _++,I}function ce(ie){O.push(ie)}return{back:ce,endOfFile:V,nextToken:ue,position:N}},Or}var Ar,Bs;function to(){if(Bs)return Ar;Bs=1;let e=wi(),t=st(),r=Dt(),n=nt(),i=bi(),a=eo();const o={empty:!0,space:!0};function l(u){for(let s=u.length-1;s>=0;s--){let c=u[s],f=c[3]||c[2];if(f)return f}}class p{constructor(s){this.input=s,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new e;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let f,h,d,m=!1,g=!1,b=[],y=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),f=s[0],f==="("||f==="["?y.push(f==="("?")":"]"):f==="{"&&y.length>0?y.push("}"):f===y[y.length-1]&&y.pop(),y.length===0)if(f===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(b.length>0){for(d=b.length-1,h=b[d];h&&h[0]==="space";)h=b[--d];h&&(c.source.end=this.getPosition(h[3]||h[2]),c.source.end.offset++)}this.end(s);break}else b.push(s);else b.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(c.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(c,"params",b),m&&(s=b[b.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let f=0,h;for(let d=c-1;d>=0&&(h=s[d],!(h[0]!=="space"&&(f+=1,f===2)));d--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(s){let c=0,f,h,d;for(let[m,g]of s.entries()){if(h=g,d=h[0],d==="("&&(c+=1),d===")"&&(c-=1),c===0&&d===":")if(!f)this.doubleColon(h);else{if(f[0]==="word"&&f[1]==="progid")continue;return m}f=h}return!1}comment(s){let c=new t;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let f=s[1].slice(2,-2);if(/^\s*$/.test(f))c.text="",c.raws.left=f,c.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);c.text=h[2],c.raws.left=h[1],c.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(s,c){let f=new r;this.init(f,s[0][2]);let h=s[s.length-1];for(h[0]===";"&&(this.semicolon=!0,s.pop()),f.source.end=this.getPosition(h[3]||h[2]||l(s)),f.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),f.raws.before+=s.shift()[1];for(f.source.start=this.getPosition(s[0][2]),f.prop="";s.length;){let y=s[0][0];if(y===":"||y==="space"||y==="comment")break;f.prop+=s.shift()[1]}f.raws.between="";let d;for(;s.length;)if(d=s.shift(),d[0]===":"){f.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),f.raws.between+=d[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let y=s.length-1;y>=0;y--){if(d=s[y],d[1].toLowerCase()==="!important"){f.important=!0;let S=this.stringFrom(s,y);S=this.spacesFromEnd(s)+S,S!==" !important"&&(f.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=s.slice(0),E="";for(let w=y;w>0;w--){let v=S[w][0];if(E.trim().startsWith("!")&&v!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(f.important=!0,f.raws.important=E,s=S)}if(d[0]!=="space"&&d[0]!=="comment")break}s.some(y=>y[0]!=="space"&&y[0]!=="comment")&&(f.raws.between+=m.map(y=>y[1]).join(""),m=[]),this.raw(f,"value",m.concat(s),c),f.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new i;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){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(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,f=null,h=!1,d=null,m=[],g=s[1].startsWith("--"),b=[],y=s;for(;y;){if(f=y[0],b.push(y),f==="("||f==="[")d||(d=y),m.push(f==="("?")":"]");else if(g&&h&&f==="{")d||(d=y),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(b,g);return}else break;else if(f==="{"){this.rule(b);return}else if(f==="}"){this.tokenizer.back(b.pop()),c=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(d=null));y=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(d),c&&h){if(!g)for(;b.length&&(y=b[b.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,f,h){let d,m,g=f.length,b="",y=!0,S,E;for(let w=0;w<g;w+=1)d=f[w],m=d[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(E=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[E]&&!o[S]?b.slice(-1)===","?y=!1:b+=d[1]:y=!1):b+=d[1];if(!y){let w=f.reduce((v,C)=>v+C[1],"");s.raws[c]={raw:w,value:b}}s[c]=b}rule(s){s.pop();let c=new i;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)f=s.pop()[1]+f;return f}spacesAndCommentsFromStart(s){let c,f="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)f+=s.shift()[1];return f}spacesFromEnd(s){let c,f="";for(;s.length&&(c=s[s.length-1][0],c==="space");)f=s.pop()[1]+f;return f}stringFrom(s,c){let f="";for(let h=c;h<s.length;h++)f+=s[h][1];return s.splice(c,s.length-c),f}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word",{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return Ar=p,Ar}var Dr,Us;function Si(){if(Us)return Dr;Us=1;let e=Te(),t=Pt(),r=to();function n(i,a){let o=new t(i,a),l=new r(o);try{l.parse()}catch(p){throw p}return l.root}return Dr=n,n.default=n,e.registerParse(n),Dr}var Pr,zs;function ro(){if(zs)return Pr;zs=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Pr=e,e.default=e,Pr}var Tr,qs;function Ci(){if(qs)return Tr;qs=1;let e=ro();class t{constructor(n,i,a){this.processor=n,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(n,i);return this.messages.push(a),a}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return Tr=t,t.default=t,Tr}var kr,Ws;function io(){if(Ws)return kr;Ws=1;let e={};return kr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},kr}var Ir,Vs;function so(){if(Vs)return Ir;Vs=1;let e=Te(),t=vi(),r=Zn(),n=Si(),i=Ci(),a=nt(),o=Ot(),{isClean:l,my:p}=yi(),u=io();const s={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function d(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let w=!1,v=s[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[v,v+"-"+w,h,v+"Exit",v+"Exit-"+w]:w?[v,v+"-"+w,v+"Exit",v+"Exit-"+w]:E.append?[v,h,v+"Exit"]:[v,v+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",h,"DocumentExit"]:E.type==="root"?w=["Root",h,"RootExit"]:w=m(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function b(E){return E[l]=!1,E.nodes&&E.nodes.forEach(w=>b(w)),E}let y={};class S{constructor(w,v,C){this.stringified=!1,this.processed=!1;let R;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))R=b(v);else if(v instanceof S||v instanceof i)R=b(v.root),v.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=v.map);else{let A=n;C.syntax&&(A=C.syntax.parse),C.parser&&(A=C.parser),A.parse&&(A=A.parse);try{R=A(v,C)}catch(M){this.processed=!0,this.error=M}R&&!R[p]&&e.rebuild(R)}this.result=new i(w,R,C),this.helpers=le(Q({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?Q(Q({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,v){let C=this.result.lastPlugin;try{v&&v.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(v,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([v,R])};for(let v of this.plugins)if(typeof v=="object")for(let C in v){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof v[C]=="object")for(let R in v[C])R==="*"?w(v,C,v[C][R]):w(v,C+"-"+R.toLowerCase(),v[C][R]);else typeof v[C]=="function"&&w(v,C,v[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let v=this.plugins[w],C=this.runOnRoot(v);if(d(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[l];){w[l]=!0;let v=[g(w)];for(;v.length>0;){let C=this.visitTick(v);if(d(C))try{await C}catch(R){let A=v[v.length-1].node;throw this.handleError(R,A)}}}if(this.listeners.OnceExit)for(let[v,C]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(w.type==="document"){let R=w.nodes.map(A=>C(A,this.helpers));await Promise.all(R)}else await C(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return d(v[0])?Promise.all(v):v}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,v=o;w.syntax&&(v=w.syntax.stringify),w.stringifier&&(v=w.stringifier),v.stringify&&(v=v.stringify);let R=new r(v,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let v=this.runOnRoot(w);if(d(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[l];)w[l]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let v of w.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,v){return this.async().then(w,v)}toString(){return this.css}visitSync(w,v){for(let[C,R]of w){this.result.lastPlugin=C;let A;try{A=R(v,this.helpers)}catch(M){throw this.handleError(M,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(d(A))throw this.getAsyncError()}}visitTick(w){let v=w[w.length-1],{node:C,visitors:R}=v;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(R.length>0&&v.visitorIndex<R.length){let[M,B]=R[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===R.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=M;try{return B(C.toProxy(),this.helpers)}catch(k){throw this.handleError(k,C)}}if(v.iterator!==0){let M=v.iterator,B;for(;B=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!B[l]){B[l]=!0,w.push(g(B));return}v.iterator=0,delete C.indexes[M]}let A=v.events;for(;v.eventIndex<A.length;){let M=A[v.eventIndex];if(v.eventIndex+=1,M===h){C.nodes&&C.nodes.length&&(C[l]=!0,v.iterator=C.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}w.pop()}walkSync(w){w[l]=!0;let v=m(w);for(let C of v)if(C===h)w.nodes&&w.each(R=>{R[l]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return S.registerPostcss=E=>{y=E},Ir=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),Ir}var Lr,js;function ja(){if(js)return Lr;js=1;let e=Zn(),t=Si();const r=Ci();let n=Ot(),i=io();class a{constructor(l,p,u){p=p.toString(),this.stringified=!1,this._processor=l,this._css=p,this._opts=u,this._map=void 0;let s,c=n;this.result=new r(this._processor,s,this._opts),this.result.css=p;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(c,s,this._opts,p);if(h.isMap()){let[d,m]=h.generate();d&&(this.result.css=d),m&&(this.result.map=m)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,p){return this.async().then(l,p)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,p=t;try{l=p(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return Lr=a,a.default=a,Lr}var Fr,Gs;function Ga(){if(Gs)return Fr;Gs=1;let e=vi(),t=so(),r=ja(),n=nt();class i{constructor(o=[]){this.version="8.5.1",this.plugins=this.normalize(o)}normalize(o){let l=[];for(let p of o)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))l=l.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)l.push(p);else if(typeof p=="function")l.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return l}process(o,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new r(this,o,l):new t(this,o,l)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Fr=i,i.default=i,n.registerProcessor(i),e.registerProcessor(i),Fr}var Br,$s;function no(){if($s)return Br;$s=1;let e=wi(),t=st(),r=Te(),n=gi(),i=Dt(),a=vi(),o=Va(),l=Pt(),p=so(),u=Kn(),s=At(),c=Si(),f=Ga(),h=Ci(),d=nt(),m=bi(),g=Ot(),b=ro();function y(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new f(S)}return y.plugin=function(E,w){let v=!1;function C(...A){console&&console.warn&&!v&&(v=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
68
68
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
69
69
|
https://www.w3ctech.com/topic/2226`));let M=w(...A);return M.postcssPlugin=E,M.postcssVersion=new f().version,M}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(A,M,B){return y([C(B)]).process(A,M)},C},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=u,y.comment=S=>new t(S),y.atRule=S=>new e(S),y.decl=S=>new i(S),y.rule=S=>new m(S),y.root=S=>new d(S),y.document=S=>new a(S),y.CssSyntaxError=n,y.Declaration=i,y.Container=r,y.Processor=f,y.Document=a,y.Comment=t,y.Warning=b,y.AtRule=e,y.Result=h,y.Input=l,y.Rule=m,y.Root=d,y.Node=s,p.registerPostcss(y),Br=y,y.default=y,Br}var Ur,Hs;function $a(){if(Hs)return Ur;Hs=1;let e=st(),t=to(),r=eo();class n extends t{checkMissedSemicolon(){}comment(a){let o=new e;this.init(o,a[2]);let l=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:l.col,line:l.line,offset:a[3]+1};let p=a[1].slice(2);if(p.slice(-2)==="*/"&&(p=p.slice(0,-2)),/^\s*$/.test(p))o.text="",o.raws.left=p,o.raws.right="";else{let u=p.match(/^(\s*)([^]*\S)(\s*)$/);o.text=u[2],o.raws.left=u[1],o.raws.right=u[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(o=>o[0]==="word")&&super.decl(a)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(a){let o=this.colon(a);if(o===!1)return;let l,p;for(l=o-1;l>=0&&a[l][0]!=="word";l--);if(l===0||l<0)return;for(p=l-1;p>=0;p--)if(a[p][0]!=="space"){p+=1;break}let u=a.slice(l),s=a.slice(p,l);a.splice(p,a.length-p),this.spaces=s.map(c=>c[1]).join(""),this.decl(u)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(o=>o[1]).join("")}unnamedAtrule(a){a.name=""}}return Ur=n,Ur}var zr,Ys;function Ha(){if(Ys)return zr;Ys=1;let{Input:e}=no(),t=$a();return zr=function(n,i){let a=new e(n,i),o=new t(a);return o.parse(),o.root},zr}Ha();var Ya=no();const ee=Fa(Ya);ee.stringify;ee.fromJSON;ee.plugin;ee.parse;ee.list;ee.document;ee.comment;ee.atRule;ee.rule;ee.decl;ee.root;ee.CssSyntaxError;ee.Declaration;ee.Container;ee.Processor;ee.Document;ee.Comment;ee.Warning;ee.AtRule;ee.Result;ee.Input;ee.Rule;ee.Root;ee.Node;var W=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(W||{});function Ja(e){const t={},r=/;(?![^(]*\))/g,n=/:(.+)/,i=/\/\*.*?\*\//g;return e.replace(i,"").split(r).forEach(function(a){if(a){const o=a.split(n);o.length>1&&(t[Qr(o[0].trim())]=o[1].trim())}}),t}function Js(e){const t=[];for(const r in e){const n=e[r];if(typeof n!="string")continue;const i=Za(r);t.push(`${i}: ${n};`)}return t.join(" ")}const Xa=/-([a-z])/g,Qa=/^--[a-zA-Z0-9-]+$/,Qr=e=>Qa.test(e)?e:e.replace(Xa,(t,r)=>r?r.toUpperCase():""),Ka=/\B([A-Z])/g,Za=e=>e.replace(Ka,"-$1").toLowerCase();class ye{constructor(...t){T(this,"parentElement",null),T(this,"parentNode",null),T(this,"ownerDocument"),T(this,"firstChild",null),T(this,"lastChild",null),T(this,"previousSibling",null),T(this,"nextSibling",null),T(this,"ELEMENT_NODE",1),T(this,"TEXT_NODE",3),T(this,"nodeType"),T(this,"nodeName"),T(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof ye){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class Ei extends ye{constructor(...t){super(t),T(this,"nodeType",9),T(this,"nodeName","#document"),T(this,"compatMode","CSS1Compat"),T(this,"RRNodeType",W.Document),T(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===W.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===W.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===W.Element||r===W.DocumentType)&&this.childNodes.some(i=>i.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const n=Ri(this,t);return n.parentElement=null,n}insertBefore(t,r){const n=t.RRNodeType;if((n===W.Element||n===W.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===W.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=co(this,t,r);return i.parentElement=null,i}removeChild(t){return ho(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){const n=this.createDocumentType("html",r,"");this.open(),this.appendChild(n)}}createDocument(t,r,n){return new Ei}createDocumentType(t,r,n){const i=new oo(t,r,n);return i.ownerDocument=this,i}createElement(t){const r=new Tt(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new ao(t);return r.ownerDocument=this,r}createComment(t){const r=new lo(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new uo(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class oo extends ye{constructor(t,r,n){super(),T(this,"nodeType",10),T(this,"RRNodeType",W.DocumentType),T(this,"name"),T(this,"publicId"),T(this,"systemId"),T(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}}class Tt extends ye{constructor(t){super(),T(this,"nodeType",1),T(this,"RRNodeType",W.Element),T(this,"tagName"),T(this,"attributes",{}),T(this,"shadowRoot",null),T(this,"scrollLeft"),T(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new rl(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?Ja(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,i,a)=>{if(r.test(n))return;const o=Qr(n);i?t[o]=i:delete t[o],a==="important"&&(t[o]+=" !important"),this.attributes.style=Js(t)},t.removeProperty=n=>{if(r.test(n))return"";const i=Qr(n),a=t[i]||"";return delete t[i],this.attributes.style=Js(t),a},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Ri(this,t)}insertBefore(t,r){return co(this,t,r)}removeChild(t){return ho(this,t)}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}class el extends Tt{constructor(){super(...arguments),T(this,"currentTime"),T(this,"volume"),T(this,"paused"),T(this,"muted"),T(this,"playbackRate"),T(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class tl extends Tt{constructor(){super(...arguments),T(this,"tagName","DIALOG"),T(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class ao extends ye{constructor(t){super(),T(this,"nodeType",3),T(this,"nodeName","#text"),T(this,"RRNodeType",W.Text),T(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class lo extends ye{constructor(t){super(),T(this,"nodeType",8),T(this,"nodeName","#comment"),T(this,"RRNodeType",W.Comment),T(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class uo extends ye{constructor(t){super(),T(this,"nodeName","#cdata-section"),T(this,"nodeType",4),T(this,"RRNodeType",W.CDATA),T(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class rl{constructor(t,r){if(T(this,"onChange"),T(this,"classes",[]),T(this,"add",(...n)=>{for(const i of n){const a=String(i);this.classes.indexOf(a)>=0||this.classes.push(a)}this.onChange&&this.onChange(this.classes.join(" "))}),T(this,"remove",(...n)=>{this.classes=this.classes.filter(i=>n.indexOf(i)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}}function Ri(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function co(e,t,r){if(!r)return Ri(e,t);if(r.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function ho(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var he=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(he||{});const Kr={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},il={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let we=null;function bt(e,t,r,n=t.mirror||t.ownerDocument.mirror){e=sl(e,t,r,n),fo(e,t,r,n),nl(e,t,r)}function sl(e,t,r,n){var i;if(r.afterAppend&&!we&&(we=new WeakSet,setTimeout(()=>{we=null},0)),!xi(e,t)){const a=St(t,r.mirror,n);(i=e.parentNode)==null||i.replaceChild(a,e),e=a}switch(t.RRNodeType){case W.Document:{if(!Fe(e,t,r.mirror,n)){const a=n.getMeta(t);a&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,a),we==null||we.add(e))}break}case W.Element:{const a=e,o=t;switch(o.tagName){case"IFRAME":{const l=e.contentDocument;if(!l)break;bt(l,t.contentDocument,r,n);break}}o.shadowRoot&&(a.shadowRoot||a.attachShadow({mode:"open"}),fo(a.shadowRoot,o.shadowRoot,r,n)),ol(a,o,n);break}}return e}function nl(e,t,r){var n;switch(t.RRNodeType){case W.Document:{const i=t.scrollData;i&&r.applyScroll(i,!0);break}case W.Element:{const i=e,a=t;switch(a.scrollData&&r.applyScroll(a.scrollData,!0),a.inputData&&r.applyInput(a.inputData),a.tagName){case"AUDIO":case"VIDEO":{const o=e,l=a;l.paused!==void 0&&(l.paused?o.pause():o.play()),l.muted!==void 0&&(o.muted=l.muted),l.volume!==void 0&&(o.volume=l.volume),l.currentTime!==void 0&&(o.currentTime=l.currentTime),l.playbackRate!==void 0&&(o.playbackRate=l.playbackRate),l.loop!==void 0&&(o.loop=l.loop);break}case"CANVAS":{const o=t;if(o.rr_dataURL!==null){const l=document.createElement("img");l.onload=()=>{const p=i.getContext("2d");p&&p.drawImage(l,0,0,l.width,l.height)},l.src=o.rr_dataURL}o.canvasMutations.forEach(l=>r.applyCanvas(l.event,l.mutation,e));break}case"STYLE":{const o=i.sheet;o&&t.rules.forEach(l=>r.applyStyleSheetMutation(l,o));break}case"DIALOG":{const o=i,l=a,p=o.open,u=o.matches("dialog:modal"),s=l.open,c=l.isModal,f=u!==c,h=p!==s;if((f||p&&h)&&o.close(),s&&(h||f))try{c?o.showModal():o.show()}catch(d){console.warn(d)}break}}break}case W.Text:case W.Comment:case W.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}we!=null&&we.has(e)&&(we.delete(e),(n=r.afterAppend)==null||n.call(r,e,r.mirror.getId(e)))}function ol(e,t,r){const n=e.attributes,i=t.attributes;for(const a in i){const o=i[a],l=r.getMeta(t);if(l!=null&&l.isSVG&&Kr[a])e.setAttributeNS(Kr[a],a,o);else if(t.tagName==="CANVAS"&&a==="rr_dataURL"){const p=document.createElement("img");p.src=o,p.onload=()=>{const u=e.getContext("2d");u&&u.drawImage(p,0,0,p.width,p.height)}}else{if(t.tagName==="IFRAME"&&a==="srcdoc")continue;try{e.setAttribute(a,o)}catch(p){console.warn(p)}}}for(const{name:a}of Array.from(n))a in i||e.removeAttribute(a);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function fo(e,t,r,n){const i=Array.from(e.childNodes),a=t.childNodes;if(i.length===0&&a.length===0)return;let o=0,l=i.length-1,p=0,u=a.length-1,s=i[o],c=i[l],f=a[p],h=a[u],d,m;for(;o<=l&&p<=u;)if(s===void 0)s=i[++o];else if(c===void 0)c=i[--l];else if(Fe(s,f,r.mirror,n))s=i[++o],f=a[++p];else if(Fe(c,h,r.mirror,n))c=i[--l],h=a[--u];else if(Fe(s,h,r.mirror,n)){try{e.insertBefore(s,c.nextSibling)}catch(y){console.warn(y)}s=i[++o],h=a[--u]}else if(Fe(c,f,r.mirror,n)){try{e.insertBefore(c,s)}catch(y){console.warn(y)}c=i[--l],f=a[++p]}else{if(!d){d={};for(let S=o;S<=l;S++){const E=i[S];E&&r.mirror.hasNode(E)&&(d[r.mirror.getId(E)]=S)}}m=d[n.getId(f)];const y=i[m];if(m!==void 0&&y&&Fe(y,f,r.mirror,n)){try{e.insertBefore(y,s)}catch(S){console.warn(S)}i[m]=void 0}else{const S=St(f,r.mirror,n);e.nodeName==="#document"&&s&&(S.nodeType===S.DOCUMENT_TYPE_NODE&&s.nodeType===s.DOCUMENT_TYPE_NODE||S.nodeType===S.ELEMENT_NODE&&s.nodeType===s.ELEMENT_NODE)&&(e.removeChild(s),r.mirror.removeNodeFromMap(s),s=i[++o]);try{e.insertBefore(S,s||null)}catch(E){console.warn(E)}}f=a[++p]}if(o>l){const y=a[u+1];let S=null;for(y&&(S=r.mirror.getNode(n.getId(y)));p<=u;++p){const E=St(a[p],r.mirror,n);try{e.insertBefore(E,S)}catch(w){console.warn(w)}}}else if(p>u)for(;o<=l;o++){const y=i[o];if(!(!y||y.parentNode!==e))try{e.removeChild(y),r.mirror.removeNodeFromMap(y)}catch(S){console.warn(S)}}let g=e.firstChild,b=t.firstChild;for(;g!==null&&b!==null;)bt(g,b,r,n),g=g.nextSibling,b=b.nextSibling}function St(e,t,r){const n=r.getId(e),i=r.getMeta(e);let a=null;if(n>-1&&(a=t.getNode(n)),a!==null&&xi(a,e))return a;switch(e.RRNodeType){case W.Document:a=new Document;break;case W.DocumentType:a=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case W.Element:{let o=e.tagName.toLowerCase();o=il[o]||o,i&&"isSVG"in i&&(i!=null&&i.isSVG)?a=document.createElementNS(Kr.svg,o):a=document.createElement(e.tagName);break}case W.Text:a=document.createTextNode(e.data);break;case W.Comment:a=document.createComment(e.data);break;case W.CDATA:a=document.createCDATASection(e.data);break}i&&t.add(a,Q({},i));try{we==null||we.add(a)}catch(o){}return a}function xi(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Fe(e,t,r,n){const i=r.getId(e),a=n.getId(t);return i===-1||i!==a?!1:xi(e,t)}class $e extends Ei{constructor(t){super(),T(this,"UNSERIALIZED_STARTING_ID",-2),T(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),T(this,"mirror",wl()),T(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new $e}createDocumentType(t,r,n){const i=new al(t,r,n);return i.ownerDocument=this,i}createElement(t){const r=t.toUpperCase();let n;switch(r){case"AUDIO":case"VIDEO":n=new ll(r);break;case"IFRAME":n=new fl(r,this.mirror);break;case"CANVAS":n=new cl(r);break;case"STYLE":n=new hl(r);break;case"DIALOG":n=new ul(r);break;default:n=new kt(r);break}return n.ownerDocument=this,n}createComment(t){const r=new dl(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new ml(t);return r.ownerDocument=this,r}createTextNode(t){const r=new pl(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const al=oo;class kt extends Tt{constructor(){super(...arguments),T(this,"inputData",null),T(this,"scrollData",null)}}class ll extends el{}class ul extends tl{}class cl extends kt{constructor(){super(...arguments),T(this,"rr_dataURL",null),T(this,"canvasMutations",[])}getContext(){return null}}class hl extends kt{constructor(){super(...arguments),T(this,"rules",[])}}class fl extends kt{constructor(t,r){super(t),T(this,"contentDocument",new $e),this.contentDocument.mirror=r}}const pl=ao,dl=lo,ml=uo;function gl(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function po(e,t,r,n){let i;switch(e.nodeType){case he.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?i=n.contentDocument:(i=t,i.compatMode=e.compatMode);break;case he.DOCUMENT_TYPE_NODE:{const o=e;i=t.createDocumentType(o.name,o.publicId,o.systemId);break}case he.ELEMENT_NODE:{const o=e,l=gl(o);i=t.createElement(l);const p=i;for(const{name:u,value:s}of Array.from(o.attributes))p.attributes[u]=s;o.scrollLeft&&(p.scrollLeft=o.scrollLeft),o.scrollTop&&(p.scrollTop=o.scrollTop);break}case he.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case he.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case he.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case he.DOCUMENT_FRAGMENT_NODE:i=n.attachShadow({mode:"open"});break;default:return null}let a=r.getMeta(e);return t instanceof $e&&(a||(a=mo(i,t.unserializedId),r.add(e,a)),t.mirror.add(i,Q({},a))),i}function yl(e,t=La(),r=new $e){function n(i,a){const o=po(i,r,t,a);if(o!==null)if((a==null?void 0:a.nodeName)!=="IFRAME"&&i.nodeType!==he.DOCUMENT_FRAGMENT_NODE&&(a==null||a.appendChild(o),o.parentNode=a,o.parentElement=a),i.nodeName==="IFRAME"){const l=i.contentDocument;l&&n(l,o)}else(i.nodeType===he.DOCUMENT_NODE||i.nodeType===he.ELEMENT_NODE||i.nodeType===he.DOCUMENT_FRAGMENT_NODE)&&(i.nodeType===he.ELEMENT_NODE&&i.shadowRoot&&n(i.shadowRoot,o),i.childNodes.forEach(l=>n(l,o)))}return n(e,null),r}function wl(){return new vl}class vl{constructor(){T(this,"idNodeMap",new Map),T(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))==null?void 0:r.id;return n!=null?n:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function mo(e,t){switch(e.RRNodeType){case W.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case W.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case W.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case W.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case W.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const Xs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Qs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ft={};function bl(e){var t,r;const n=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(n&&globalThis[n])return globalThis[n]}function Mi(e){if(ft[e])return ft[e];const t=bl(e)||globalThis[e],r=t.prototype,n=e in Xs?Xs[e]:void 0,i=!!(n&&n.every(l=>{var p,u;return!!((u=(p=Object.getOwnPropertyDescriptor(r,l))==null?void 0:p.get)!=null&&u.toString().includes("[native code]"))})),a=e in Qs?Qs[e]:void 0,o=!!(a&&a.every(l=>{var p;return typeof r[l]=="function"&&((p=r[l])==null?void 0:p.toString().includes("[native code]"))}));if(i&&o)return ft[e]=t.prototype,t.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const p=l.contentWindow;if(!p)return t.prototype;const u=p[e].prototype;return document.body.removeChild(l),u?ft[e]=u:r}catch(l){return r}}const qr={};function _e(e,t,r){var n;const i=`${e}.${String(r)}`;if(qr[i])return qr[i].call(t);const a=Mi(e),o=(n=Object.getOwnPropertyDescriptor(a,r))==null?void 0:n.get;return o?(qr[i]=o,o.call(t)):t[r]}const Wr={};function go(e,t,r){const n=`${e}.${String(r)}`;if(Wr[n])return Wr[n].bind(t);const a=Mi(e)[r];return typeof a!="function"?t[r]:(Wr[n]=a,a.bind(t))}function Sl(e){return _e("Node",e,"childNodes")}function Cl(e){return _e("Node",e,"parentNode")}function El(e){return _e("Node",e,"parentElement")}function Rl(e){return _e("Node",e,"textContent")}function xl(e,t){return go("Node",e,"contains")(t)}function Ml(e){return go("Node",e,"getRootNode")()}function _l(e){return!e||!("host"in e)?null:_e("ShadowRoot",e,"host")}function Nl(e){return e.styleSheets}function Ol(e){return!e||!("shadowRoot"in e)?null:_e("Element",e,"shadowRoot")}function Al(e,t){return _e("Element",e,"querySelector")(t)}function Dl(e,t){return _e("Element",e,"querySelectorAll")(t)}function Pl(){return Mi("MutationObserver").constructor}function Tl(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],i=r(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(n){return()=>{}}}const kl={childNodes:Sl,parentNode:Cl,parentElement:El,textContent:Rl,contains:xl,getRootNode:Ml,host:_l,styleSheets:Nl,shadowRoot:Ol,querySelector:Al,querySelectorAll:Dl,mutationObserver:Pl,patch:Tl},Be=`Please stop import mirror directly. Instead of that,\r
|
|
70
70
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
@@ -162,7 +162,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
162
162
|
224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
|
|
163
163
|
48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
|
|
164
164
|
48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
|
|
165
|
-
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,F(n,"class","rr-timeline__time svelte-189zk2r"),F(p,"class","rr-progress__step svelte-189zk2r"),
|
|
165
|
+
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,F(n,"class","rr-timeline__time svelte-189zk2r"),F(p,"class","rr-progress__step svelte-189zk2r"),se(p,"width",e[12]),F(f,"class","rr-progress__handler svelte-189zk2r"),se(f,"left",e[12]),F(l,"class","rr-progress svelte-189zk2r"),Ve(l,"disabled",e[10]==="skipping"),F(d,"class","rr-timeline__time svelte-189zk2r"),F(r,"class","rr-timeline svelte-189zk2r"),F(S,"class","svelte-189zk2r"),F(A,"class","svelte-189zk2r"),F(y,"class","rr-controller__btns svelte-189zk2r"),F(t,"class","rr-controller svelte-189zk2r")},m(D,O){Ce(D,t,O),$(t,r),$(r,n),$(n,a),$(r,o),$(r,l),$(l,p),$(l,u);for(let N=0;N<U.length;N+=1)U[N]&&U[N].m(l,null);$(l,s);for(let N=0;N<q.length;N+=1)q[N]&&q[N].m(l,null);$(l,c),$(l,f),e[27](l),$(r,h),$(r,d),$(d,g),$(t,b),$(t,y),$(y,S),H.m(S,null),$(y,E);for(let N=0;N<X.length;N+=1)X[N]&&X[N].m(y,null);$(y,w),ni(v,y,null),$(y,R),$(y,A),M=!0,B||(k=[ze(l,"click",e[15]),ze(l,"keydown",e[16]),ze(S,"click",e[4]),ze(A,"click",e[30])],B=!0)},p(D,O){if((!M||O[0]&64)&&i!==(i=gt(D[6])+"")&&vt(a,i),(!M||O[0]&4096)&&se(p,"width",D[12]),O[0]&8192){J=Ie(D[13]);let P;for(P=0;P<J.length;P+=1){const V=bn(D,J,P);U[P]?U[P].p(V,O):(U[P]=Cn(V),U[P].c(),U[P].m(l,s))}for(;P<U.length;P+=1)U[P].d(1);U.length=J.length}if(O[0]&512){x=Ie(D[9]);let P;for(P=0;P<x.length;P+=1){const V=vn(D,x,P);q[P]?q[P].p(V,O):(q[P]=En(V),q[P].c(),q[P].m(l,c))}for(;P<q.length;P+=1)q[P].d(1);q.length=x.length}if((!M||O[0]&4096)&&se(f,"left",D[12]),(!M||O[0]&1024)&&Ve(l,"disabled",D[10]==="skipping"),(!M||O[0]&256)&&m!==(m=gt(D[8].totalTime)+"")&&vt(g,m),j!==(j=I(D))&&(H.d(1),H=j(D),H&&(H.c(),H.m(S,null))),O[0]&1066){z=Ie(D[3]);let P;for(P=0;P<z.length;P+=1){const V=wn(D,z,P);X[P]?X[P].p(V,O):(X[P]=Rn(V),X[P].c(),X[P].m(y,w))}for(;P<X.length;P+=1)X[P].d(1);X.length=z.length}const N={};O[0]&1024&&(N.disabled=D[10]==="skipping"),!C&&O[0]&1&&(C=!0,N.checked=D[0],Jo(()=>C=!1)),v.$set(N)},i(D){M||(Se(v.$$.fragment,D),M=!0)},o(D){je(v.$$.fragment,D),M=!1},d(D){D&&ve(t),It(U,D),It(q,D),e[27](null),H.d(),It(X,D),oi(v),B=!1,Ge(k)}}}function Cn(e){let t,r;return{c(){t=oe("div"),F(t,"title",r=e[44].name),se(t,"width",e[44].width),se(t,"height","4px"),se(t,"position","absolute"),se(t,"background",e[44].background),se(t,"left",e[44].position)},m(n,i){Ce(n,t,i)},p(n,i){i[0]&8192&&r!==(r=n[44].name)&&F(t,"title",r),i[0]&8192&&se(t,"width",n[44].width),i[0]&8192&&se(t,"background",n[44].background),i[0]&8192&&se(t,"left",n[44].position)},d(n){n&&ve(t)}}}function En(e){let t,r;return{c(){t=oe("div"),F(t,"title",r=e[41].name),se(t,"width","10px"),se(t,"height","5px"),se(t,"position","absolute"),se(t,"top","2px"),se(t,"transform","translate(-50%, -50%)"),se(t,"background",e[41].background),se(t,"left",e[41].position)},m(n,i){Ce(n,t,i)},p(n,i){i[0]&512&&r!==(r=n[41].name)&&F(t,"title",r),i[0]&512&&se(t,"background",n[41].background),i[0]&512&&se(t,"left",n[41].position)},d(n){n&&ve(t)}}}function xu(e){let t,r;return{c(){t=wt("svg"),r=wt("path"),F(r,"d",`M170.65984 896l0-768 640 384zM644.66944
|
|
166
166
|
512l-388.66944-233.32864 0 466.65728z`),F(t,"class","icon"),F(t,"viewBox","0 0 1024 1024"),F(t,"version","1.1"),F(t,"xmlns","http://www.w3.org/2000/svg"),F(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),F(t,"width","16"),F(t,"height","16")},m(n,i){Ce(n,t,i),$(t,r)},d(n){n&&ve(t)}}}function Mu(e){let t,r;return{c(){t=wt("svg"),r=wt("path"),F(r,"d",`M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
|
|
167
167
|
512q0 53.00224-37.49888 90.50112t-90.50112
|
|
168
168
|
37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
|
|
@@ -176,7 +176,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
176
176
|
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
|
|
177
177
|
213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
|
|
178
178
|
17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
|
|
179
|
-
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),F(t,"class","icon"),F(t,"viewBox","0 0 1024 1024"),F(t,"version","1.1"),F(t,"xmlns","http://www.w3.org/2000/svg"),F(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),F(t,"width","16"),F(t,"height","16")},m(n,i){Ce(n,t,i),$(t,r)},d(n){n&&ve(t)}}}function Rn(e){let t,r=e[38]+"",n,i,a,o,l;function p(){return e[28](e[38])}return{c(){t=oe("button"),n=De(r),i=De("x"),t.disabled=a=e[10]==="skipping",F(t,"class","svelte-189zk2r"),Ve(t,"active",e[38]===e[1]&&e[10]!=="skipping")},m(u,s){Ce(u,t,s),$(t,n),$(t,i),o||(l=ze(t,"click",p),o=!0)},p(u,s){e=u,s[0]&8&&r!==(r=e[38]+"")&&vt(n,r),s[0]&1024&&a!==(a=e[10]==="skipping")&&(t.disabled=a),s[0]&1034&&Ve(t,"active",e[38]===e[1]&&e[10]!=="skipping")},d(u){u&&ve(t),o=!1,l()}}}function _u(e){let t,r,n=e[2]&&Sn(e);return{c(){n&&n.c(),t=Wo()},m(i,a){n&&n.m(i,a),Ce(i,t,a),r=!0},p(i,a){i[2]?n?(n.p(i,a),a[0]&4&&Se(n,1)):(n=Sn(i),n.c(),Se(n,1),n.m(t.parentNode,t)):n&&(Tn(),je(n,1,1,()=>{n=null}),kn())},i(i){r||(Se(n),r=!0)},o(i){je(n),r=!1},d(i){i&&ve(t),n&&n.d(i)}}}function xn(e,t,r){const n=t-e;return(100-(t-r)/n*100).toFixed(2)}function Nu(e,t,r){const n=$o();let{replayer:i}=t,{showController:a}=t,{autoPlay:o}=t,{skipInactive:l}=t,{speedOption:p}=t,{speed:u=p.length?p[0]:1}=t,{tags:s={}}=t,{inactiveColor:c}=t,f=0,h=null,d,m,g,b,y=!1,S=null,E=null,w,v,C,R;const A=()=>{M();function O(){r(6,f=i.getCurrentTime()),y&&f>=y&&(E?x(E.start,E.end,!0,void 0):(i.pause(),S&&(S(),S=null))),f<w.totalTime&&(h=requestAnimationFrame(O))}h=requestAnimationFrame(O)},M=()=>{h&&(cancelAnimationFrame(h),h=null)},B=()=>{switch(d){case"playing":J();break;case"paused":k();break}},k=()=>{d==="paused"&&(b?(i.play(),b=!1):i.play(f))},J=()=>{d==="playing"&&(i.pause(),y=!1)},U=(O,N)=>{r(6,f=O),y=!1,b=!1,(typeof N=="boolean"?N:d==="playing")?i.play(O):i.pause(O)},x=(O,N,P=!1,V=void 0)=>{P?E={start:O,end:N}:E=null,r(6,f=O),y=N,S=V||null,i.play(O)},q=O=>{if(m==="skipping")return;const N=g.getBoundingClientRect();let V=(O.clientX-N.left)/N.width;V<0?V=0:V>1&&(V=1);const ue=w.totalTime*V;U(ue)},I=O=>{m!=="skipping"&&(O.key==="ArrowLeft"?U(f-5):O.key==="ArrowRight"&&U(f+5))},j=O=>{let N=d==="playing";r(1,u=O),N&&i.pause(),i.setConfig({speed:u}),N&&i.play(f)},H=()=>{r(0,l=!l)},z=()=>Promise.resolve().then(()=>{r(8,w=i.getMetaData())});An(()=>{r(7,d=i.service.state.value),r(10,m=i.speedService.state.value),i.on("state-change",O=>{const{player:N,speed:P}=O;if(N!=null&&N.value&&d!==N.value)switch(r(7,d=N.value),d){case"playing":A();break;case"paused":M();break}P!=null&&P.value&&m!==P.value&&r(10,m=P.value)}),i.on("finish",()=>{b=!0,S&&(S(),S=null)}),o&&i.play()}),Go(()=>{l!==i.config.skipInactive&&i.setConfig({skipInactive:l})}),Dn(()=>{i.pause(),M()});function X(O){Ae[O?"unshift":"push"](()=>{g=O,r(11,g)})}const ae=O=>j(O);function _(O){l=O,r(0,l)}const D=()=>n("fullscreen");return e.$$set=O=>{"replayer"in O&&r(17,i=O.replayer),"showController"in O&&r(2,a=O.showController),"autoPlay"in O&&r(18,o=O.autoPlay),"skipInactive"in O&&r(0,l=O.skipInactive),"speedOption"in O&&r(3,p=O.speedOption),"speed"in O&&r(1,u=O.speed),"tags"in O&&r(19,s=O.tags),"inactiveColor"in O&&r(20,c=O.inactiveColor)},e.$$.update=()=>{if(e.$$.dirty[0]&64&&n("ui-update-current-time",{payload:f}),e.$$.dirty[0]&128&&n("ui-update-player-state",{payload:d}),e.$$.dirty[0]&131072&&r(8,w=i.getMetaData()),e.$$.dirty[0]&320){const O=Math.min(1,f/w.totalTime);r(12,v=`${100*O}%`),n("ui-update-progress",{payload:O})}e.$$.dirty[0]&655360&&r(9,C=(()=>{const{context:O}=i.service.state,N=O.events.length,P=O.events[0].timestamp,V=O.events[N-1].timestamp,ue=[];return O.events.forEach(ce=>{if(ce.type===_i.Custom){const
|
|
179
|
+
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),F(t,"class","icon"),F(t,"viewBox","0 0 1024 1024"),F(t,"version","1.1"),F(t,"xmlns","http://www.w3.org/2000/svg"),F(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),F(t,"width","16"),F(t,"height","16")},m(n,i){Ce(n,t,i),$(t,r)},d(n){n&&ve(t)}}}function Rn(e){let t,r=e[38]+"",n,i,a,o,l;function p(){return e[28](e[38])}return{c(){t=oe("button"),n=De(r),i=De("x"),t.disabled=a=e[10]==="skipping",F(t,"class","svelte-189zk2r"),Ve(t,"active",e[38]===e[1]&&e[10]!=="skipping")},m(u,s){Ce(u,t,s),$(t,n),$(t,i),o||(l=ze(t,"click",p),o=!0)},p(u,s){e=u,s[0]&8&&r!==(r=e[38]+"")&&vt(n,r),s[0]&1024&&a!==(a=e[10]==="skipping")&&(t.disabled=a),s[0]&1034&&Ve(t,"active",e[38]===e[1]&&e[10]!=="skipping")},d(u){u&&ve(t),o=!1,l()}}}function _u(e){let t,r,n=e[2]&&Sn(e);return{c(){n&&n.c(),t=Wo()},m(i,a){n&&n.m(i,a),Ce(i,t,a),r=!0},p(i,a){i[2]?n?(n.p(i,a),a[0]&4&&Se(n,1)):(n=Sn(i),n.c(),Se(n,1),n.m(t.parentNode,t)):n&&(Tn(),je(n,1,1,()=>{n=null}),kn())},i(i){r||(Se(n),r=!0)},o(i){je(n),r=!1},d(i){i&&ve(t),n&&n.d(i)}}}function xn(e,t,r){const n=t-e;return(100-(t-r)/n*100).toFixed(2)}function Nu(e,t,r){const n=$o();let{replayer:i}=t,{showController:a}=t,{autoPlay:o}=t,{skipInactive:l}=t,{speedOption:p}=t,{speed:u=p.length?p[0]:1}=t,{tags:s={}}=t,{inactiveColor:c}=t,f=0,h=null,d,m,g,b,y=!1,S=null,E=null,w,v,C,R;const A=()=>{M();function O(){r(6,f=i.getCurrentTime()),y&&f>=y&&(E?x(E.start,E.end,!0,void 0):(i.pause(),S&&(S(),S=null))),f<w.totalTime&&(h=requestAnimationFrame(O))}h=requestAnimationFrame(O)},M=()=>{h&&(cancelAnimationFrame(h),h=null)},B=()=>{switch(d){case"playing":J();break;case"paused":k();break}},k=()=>{d==="paused"&&(b?(i.play(),b=!1):i.play(f))},J=()=>{d==="playing"&&(i.pause(),y=!1)},U=(O,N)=>{r(6,f=O),y=!1,b=!1,(typeof N=="boolean"?N:d==="playing")?i.play(O):i.pause(O)},x=(O,N,P=!1,V=void 0)=>{P?E={start:O,end:N}:E=null,r(6,f=O),y=N,S=V||null,i.play(O)},q=O=>{if(m==="skipping")return;const N=g.getBoundingClientRect();let V=(O.clientX-N.left)/N.width;V<0?V=0:V>1&&(V=1);const ue=w.totalTime*V;U(ue)},I=O=>{m!=="skipping"&&(O.key==="ArrowLeft"?U(f-5):O.key==="ArrowRight"&&U(f+5))},j=O=>{let N=d==="playing";r(1,u=O),N&&i.pause(),i.setConfig({speed:u}),N&&i.play(f)},H=()=>{r(0,l=!l)},z=()=>Promise.resolve().then(()=>{r(8,w=i.getMetaData())});An(()=>{r(7,d=i.service.state.value),r(10,m=i.speedService.state.value),i.on("state-change",O=>{const{player:N,speed:P}=O;if(N!=null&&N.value&&d!==N.value)switch(r(7,d=N.value),d){case"playing":A();break;case"paused":M();break}P!=null&&P.value&&m!==P.value&&r(10,m=P.value)}),i.on("finish",()=>{b=!0,S&&(S(),S=null)}),o&&i.play()}),Go(()=>{l!==i.config.skipInactive&&i.setConfig({skipInactive:l})}),Dn(()=>{i.pause(),M()});function X(O){Ae[O?"unshift":"push"](()=>{g=O,r(11,g)})}const ae=O=>j(O);function _(O){l=O,r(0,l)}const D=()=>n("fullscreen");return e.$$set=O=>{"replayer"in O&&r(17,i=O.replayer),"showController"in O&&r(2,a=O.showController),"autoPlay"in O&&r(18,o=O.autoPlay),"skipInactive"in O&&r(0,l=O.skipInactive),"speedOption"in O&&r(3,p=O.speedOption),"speed"in O&&r(1,u=O.speed),"tags"in O&&r(19,s=O.tags),"inactiveColor"in O&&r(20,c=O.inactiveColor)},e.$$.update=()=>{if(e.$$.dirty[0]&64&&n("ui-update-current-time",{payload:f}),e.$$.dirty[0]&128&&n("ui-update-player-state",{payload:d}),e.$$.dirty[0]&131072&&r(8,w=i.getMetaData()),e.$$.dirty[0]&320){const O=Math.min(1,f/w.totalTime);r(12,v=`${100*O}%`),n("ui-update-progress",{payload:O})}e.$$.dirty[0]&655360&&r(9,C=(()=>{const{context:O}=i.service.state,N=O.events.length,P=O.events[0].timestamp,V=O.events[N-1].timestamp,ue=[];return O.events.forEach(ce=>{if(ce.type===_i.Custom){const ie={name:ce.data.tag,background:s[ce.data.tag]||"rgb(73, 80, 246)",position:`${xn(P,V,ce.timestamp)}%`};ue.push(ie)}}),ue})()),e.$$.dirty[0]&1179648&&r(13,R=(()=>{try{const{context:O}=i.service.state,N=O.events.length,P=O.events[0].timestamp,V=O.events[N-1].timestamp,ue=Su(O.events,i.config.inactivePeriodThreshold),ce=(ie,be,Ne,ko)=>{const Io=be-ie;return((ko-Ne)/Io*100).toFixed(2)};return ue.map(ie=>({name:"inactive period",background:c,position:`${xn(P,V,ie[0])}%`,width:`${ce(P,V,ie[0],ie[1])}%`}))}catch(O){return[]}})())},[l,u,a,p,B,j,f,d,w,C,m,g,v,R,n,q,I,i,o,s,c,k,J,U,x,H,z,X,ae,_,D]}class Ou extends li{constructor(t){super(),ai(this,t,Nu,_u,si,{replayer:17,showController:2,autoPlay:18,skipInactive:0,speedOption:3,speed:1,tags:19,inactiveColor:20,toggle:4,play:21,pause:22,goto:23,playRange:24,setSpeed:5,toggleSkipInactive:25,triggerUpdateMeta:26},null,[-1,-1])}get toggle(){return this.$$.ctx[4]}get play(){return this.$$.ctx[21]}get pause(){return this.$$.ctx[22]}get goto(){return this.$$.ctx[23]}get playRange(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[5]}get toggleSkipInactive(){return this.$$.ctx[25]}get triggerUpdateMeta(){return this.$$.ctx[26]}}function Mn(e){let t,r,n={replayer:e[7],showController:e[3],autoPlay:e[1],speedOption:e[2],skipInactive:e[0],tags:e[4],inactiveColor:e[5]};return t=new Ou({props:n}),e[32](t),t.$on("fullscreen",e[33]),{c(){In(t.$$.fragment)},m(i,a){ni(t,i,a),r=!0},p(i,a){const o={};a[0]&128&&(o.replayer=i[7]),a[0]&8&&(o.showController=i[3]),a[0]&2&&(o.autoPlay=i[1]),a[0]&4&&(o.speedOption=i[2]),a[0]&1&&(o.skipInactive=i[0]),a[0]&16&&(o.tags=i[4]),a[0]&32&&(o.inactiveColor=i[5]),t.$set(o)},i(i){r||(Se(t.$$.fragment,i),r=!0)},o(i){je(t.$$.fragment,i),r=!1},d(i){e[32](null),oi(t,i)}}}function Au(e){let t,r,n,i,a=e[7]&&Mn(e);return{c(){t=oe("div"),r=oe("div"),n=fe(),a&&a.c(),F(r,"class","rr-player__frame"),F(r,"style",e[11]),F(t,"class","rr-player"),F(t,"style",e[12])},m(o,l){Ce(o,t,l),$(t,r),e[31](r),$(t,n),a&&a.m(t,null),e[34](t),i=!0},p(o,l){(!i||l[0]&2048)&&F(r,"style",o[11]),o[7]?a?(a.p(o,l),l[0]&128&&Se(a,1)):(a=Mn(o),a.c(),Se(a,1),a.m(t,null)):a&&(Tn(),je(a,1,1,()=>{a=null}),kn()),(!i||l[0]&4096)&&F(t,"style",o[12])},i(o){i||(Se(a),i=!0)},o(o){je(a),i=!1},d(o){o&&ve(t),e[31](null),a&&a.d(),e[34](null)}}}const _n=80;function Du(e,t,r){let{width:n=1024}=t,{height:i=576}=t,{maxScale:a=1}=t,{events:o}=t,{skipInactive:l=!0}=t,{autoPlay:p=!0}=t,{speedOption:u=[1,2,4,8]}=t,{speed:s=1}=t,{showController:c=!0}=t,{tags:f={}}=t,{inactiveColor:h="#D4D4D4"}=t,d;const m=()=>d.getMirror();let g,b,y,S=n,E=i,w,v,C;const R=(N,P)=>{const V=n/P.width,ue=i/P.height,ce=[V,ue];a&&ce.push(a),N.style.transform=`scale(${Math.min(...ce)})translate(-50%, -50%)`},A=()=>{R(d.wrapper,{width:d.iframe.offsetWidth,height:d.iframe.offsetHeight})},M=()=>{g&&(gn()?wu():yu(g))},B=(N,P)=>{switch(d.on(N,P),N){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":w.$on(N,({detail:V})=>P(V))}},k=N=>{d.addEvent(N),w.triggerUpdateMeta()},J=()=>d.getMetaData(),U=()=>d,x=()=>{w.toggle()},q=N=>{w.setSpeed(N)},I=()=>{w.toggleSkipInactive()},j=()=>{w.play()},H=()=>{w.pause()},z=(N,P)=>{w.goto(N,P)},X=(N,P,V=!1,ue=void 0)=>{w.playRange(N,P,V,ue)};An(()=>{if(u!==void 0&&yn(u)!=="array")throw new Error("speedOption must be array");if(u.forEach(N=>{if(yn(N)!=="number")throw new Error("item of speedOption must be number")}),u.indexOf(s)<0)throw new Error(`speed must be one of speedOption,
|
|
180
180
|
current config:
|
|
181
181
|
{
|
|
182
182
|
...
|