@posthog/rrweb-player 0.0.33 → 0.0.35

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.
@@ -1,20 +1,8 @@
1
- (function (g, f) {
2
- if ("object" == typeof exports && "object" == typeof module) {
3
- module.exports = f();
4
- } else if ("function" == typeof define && define.amd) {
5
- define("rrwebPlayer", [], f);
6
- } else if ("object" == typeof exports) {
7
- exports["rrwebPlayer"] = f();
8
- } else {
9
- g["rrwebPlayer"] = f();
10
- }
11
- }(this, () => {
12
- var exports = {};
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 Ee(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,u=[-1]){const p=tt;Qe(e);const l=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:u,skip_bound:!1,root:t.target||p.$$.root};o&&o(l.root);let s=!1;if(l.ctx=r?r(e,t.props||{},(c,f,...h)=>{const d=h.length?h[0]:f;return l.ctx&&i(l.ctx[c],l.ctx[c]=d)&&(!l.skip_bound&&l.bound[c]&&l.bound[c](d),s&&Zo(e,c)),f}):[],l.update(),s=!0,Ge(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const c=Vo(t.target);l.fragment&&l.fragment.l(c),c.forEach(ve)}else l.fragment&&l.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
- `+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,u,p,l){super(i),this.name="CssSyntaxError",this.reason=i,p&&(this.file=p),u&&(this.source=u),l&&(this.plugin=l),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,u=h=>h,p=h=>h;if(i){let{bold:h,gray:d,red:m}=e.createColors(!0);u=g=>h(m(g)),o=g=>d(g),t&&(p=g=>t(g))}let l=a.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,l.length),f=String(c).length;return l.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),C=Math.max(this.column+y,this.endColumn+y),w=h.slice(S,C),v=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return u(">")+o(g)+p(w)+`
16
- `+v+u("^")}let b=o(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+o(g)+p(h)+`
17
- `+b+u("^")}return" "+o(g)+p(h)}).join(`
1
+ (function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrwebPlayer", [], f);} else if ("object" == typeof exports) {exports["rrwebPlayer"] = f();} else {g["rrwebPlayer"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
2
+ "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 B(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function jo(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 je(e,t,r){e.classList.toggle(t,!!r)}function Vo(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 xt(){if(!tt)throw new Error("Function called outside component initialization");return tt}function An(e){xt().$$.on_mount.push(e)}function Go(e){xt().$$.after_update.push(e)}function Dn(e){xt().$$.on_destroy.push(e)}function $o(){const e=xt();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){const a=Vo(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 Ve(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,c=[-1]){const p=tt;Qe(e);const l=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:c,skip_bound:!1,root:t.target||p.$$.root};o&&o(l.root);let s=!1;if(l.ctx=r?r(e,t.props||{},(u,f,...h)=>{const d=h.length?h[0]:f;return l.ctx&&i(l.ctx[u],l.ctx[u]=d)&&(!l.skip_bound&&l.bound[u]&&l.bound[u](d),s&&Zo(e,u)),f}):[],l.update(),s=!0,Ge(l.before_update),l.fragment=n?n(l.ctx):!1,t.target){if(t.hydrate){const u=jo(t.target);l.fragment&&l.fragment.l(u),u.forEach(ve)}else l.fragment&&l.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,F=(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+=`,
3
+ `+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(Object.prototype.hasOwnProperty.call(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,c,p,l){super(i),this.name="CssSyntaxError",this.reason=i,p&&(this.file=p),c&&(this.source=c),l&&(this.plugin=l),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,c=h=>h,p=h=>h;if(i){let{bold:h,gray:d,red:m}=e.createColors(!0);c=g=>h(m(g)),o=g=>d(g),t&&(p=g=>t(g))}let l=a.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,l.length),f=String(u).length;return l.slice(s,u).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),b=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return c(">")+o(g)+p(w)+`
4
+ `+b+c("^")}let v=o(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return c(">")+o(g)+p(h)+`
5
+ `+v+c("^")}return" "+o(g)+p(h)}).join(`
18
6
  `)}toString(){let i=this.showSourceCode();return i&&(i=`
19
7
 
20
8
  `+i+`
@@ -23,25 +11,25 @@ var module = { exports };
23
11
  `,beforeComment:`
24
12
  `,beforeDecl:`
25
13
  `,beforeOpen:" ",beforeRule:`
26
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(i){this.builder=i}atrule(i,a){let o="@"+i.name,u=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName!="undefined"?o+=i.raws.afterName:u&&(o+=" "),i.nodes)this.block(i,o+u);else{let p=(i.raws.between||"")+(a?";":"");this.builder(o+u+p,i)}}beforeAfter(i,a){let o;i.type==="decl"?o=this.raw(i,null,"beforeDecl"):i.type==="comment"?o=this.raw(i,null,"beforeComment"):a==="before"?o=this.raw(i,null,"beforeRule"):o=this.raw(i,null,"beforeClose");let u=i.parent,p=0;for(;u&&u.type!=="root";)p+=1,u=u.parent;if(o.includes(`
27
- `)){let l=this.raw(i,null,"indent");if(l.length)for(let s=0;s<p;s++)o+=l}return o}block(i,a){let o=this.raw(i,"between","beforeOpen");this.builder(a+o+"{",i,"start");let u;i.nodes&&i.nodes.length?(this.body(i),u=this.raw(i,"after")):u=this.raw(i,"after","emptyBody"),u&&this.builder(u),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let o=this.raw(i,"semicolon");for(let u=0;u<i.nodes.length;u++){let p=i.nodes[u],l=this.raw(p,"before");l&&this.builder(l),this.stringify(p,a!==u||o)}}comment(i){let a=this.raw(i,"left","commentLeft"),o=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+o+"*/",i)}decl(i,a){let o=this.raw(i,"between","colon"),u=i.prop+o+this.rawValue(i,"value");i.important&&(u+=i.raws.important||" !important"),a&&(u+=";"),this.builder(u,i)}document(i){this.body(i)}raw(i,a,o){let u;if(o||(o=a),a&&(u=i.raws[a],typeof u!="undefined"))return u;let p=i.parent;if(o==="before"&&(!p||p.type==="root"&&p.first===i||p&&p.type==="document"))return"";if(!p)return e[o];let l=i.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[o]!="undefined")return l.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(i,o);{let s="raw"+t(o);this[s]?u=this[s](l,i):l.walk(c=>{if(u=c.raws[a],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),l.rawCache[o]=u,u}rawBeforeClose(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return a=o.raws.after,a.includes(`
28
- `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let o;return i.walkComments(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
29
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(i,a){let o;return i.walkDecls(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
14
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(i){this.builder=i}atrule(i,a){let o="@"+i.name,c=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName!="undefined"?o+=i.raws.afterName:c&&(o+=" "),i.nodes)this.block(i,o+c);else{let p=(i.raws.between||"")+(a?";":"");this.builder(o+c+p,i)}}beforeAfter(i,a){let o;i.type==="decl"?o=this.raw(i,null,"beforeDecl"):i.type==="comment"?o=this.raw(i,null,"beforeComment"):a==="before"?o=this.raw(i,null,"beforeRule"):o=this.raw(i,null,"beforeClose");let c=i.parent,p=0;for(;c&&c.type!=="root";)p+=1,c=c.parent;if(o.includes(`
15
+ `)){let l=this.raw(i,null,"indent");if(l.length)for(let s=0;s<p;s++)o+=l}return o}block(i,a){let o=this.raw(i,"between","beforeOpen");this.builder(a+o+"{",i,"start");let c;i.nodes&&i.nodes.length?(this.body(i),c=this.raw(i,"after")):c=this.raw(i,"after","emptyBody"),c&&this.builder(c),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let o=this.raw(i,"semicolon");for(let c=0;c<i.nodes.length;c++){let p=i.nodes[c],l=this.raw(p,"before");l&&this.builder(l),this.stringify(p,a!==c||o)}}comment(i){let a=this.raw(i,"left","commentLeft"),o=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+o+"*/",i)}decl(i,a){let o=this.raw(i,"between","colon"),c=i.prop+o+this.rawValue(i,"value");i.important&&(c+=i.raws.important||" !important"),a&&(c+=";"),this.builder(c,i)}document(i){this.body(i)}raw(i,a,o){let c;if(o||(o=a),a&&(c=i.raws[a],typeof c!="undefined"))return c;let p=i.parent;if(o==="before"&&(!p||p.type==="root"&&p.first===i||p&&p.type==="document"))return"";if(!p)return e[o];let l=i.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[o]!="undefined")return l.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(i,o);{let s="raw"+t(o);this[s]?c=this[s](l,i):l.walk(u=>{if(c=u.raws[a],typeof c!="undefined")return!1})}return typeof c=="undefined"&&(c=e[o]),l.rawCache[o]=c,c}rawBeforeClose(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return a=o.raws.after,a.includes(`
16
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let o;return i.walkComments(c=>{if(typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
17
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(i,a){let o;return i.walkDecls(c=>{if(typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
30
18
  `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(a,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(i){let a;return i.walk(o=>{if(o.type!=="decl"&&(a=o.raws.between,typeof a!="undefined"))return!1}),a}rawBeforeRule(i){let a;return i.walk(o=>{if(o.nodes&&(o.parent!==i||i.first!==o)&&typeof o.raws.before!="undefined")return a=o.raws.before,a.includes(`
31
- `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(o=>{if(typeof o.raws.between!="undefined")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(o=>{let u=o.parent;if(u&&u!==i&&u.parent&&u.parent===i&&typeof o.raws.before!="undefined"){let p=o.raws.before.split(`
32
- `);return a=p[p.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let o=i[a],u=i.raws[a];return u&&u.value===o?u.raw:o}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return Bt=r,r.default=r,Bt}var Ut,qi;function xt(){if(qi)return Ut;qi=1;let e=Un();function t(r,n){new e(n).stringify(r)}return Ut=t,t.default=t,Ut}var ut={},Wi;function ci(){return Wi||(Wi=1,ut.isClean=Symbol("isClean"),ut.my=Symbol("my")),ut}var zt,Vi;function Mt(){if(Vi)return zt;Vi=1;let e=ui(),t=Un(),r=xt(),{isClean:n,my:i}=ci();function a(p,l){let s=new p.constructor;for(let c in p){if(!Object.prototype.hasOwnProperty.call(p,c)||c==="proxyCache")continue;let f=p[c],h=typeof f;c==="parent"&&h==="object"?l&&(s[c]=l):c==="source"?s[c]=f:Array.isArray(f)?s[c]=f.map(d=>a(d,s)):(h==="object"&&f!==null&&(f=a(f)),s[c]=f)}return s}function o(p,l){if(l&&typeof l.offset!="undefined")return l.offset;let s=1,c=1,f=0;for(let h=0;h<p.length;h++){if(c===l.line&&s===l.column){f=h;break}p[h]===`
33
- `?(s=1,c+=1):s+=1}return f}class u{constructor(l={}){this.raws={},this[n]=!1,this[i]=!0;for(let s in l)if(s==="nodes"){this.nodes=[];for(let c of l[s])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[s]=l[s]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let s=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let s in l)this[s]=l[s];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let s=a(this);for(let c in l)s[c]=l[c];return s}cloneAfter(l={}){let s=this.clone(l);return this.parent.insertAfter(this,s),s}cloneBefore(l={}){let s=this.clone(l);return this.parent.insertBefore(this,s),s}error(l,s={}){if(this.source){let{end:c,start:f}=this.rangeBy(s);return this.source.input.error(l,{column:f.column,line:f.line},{column:c.column,line:c.line},s)}return new e(l)}getProxyProcessor(){return{get(l,s){return s==="proxyOf"?l:s==="root"?()=>l.root().toProxy():l[s]},set(l,s,c){return l[s]===c||(l[s]=c,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&l.markDirty()),!0}}}markClean(){this[n]=!0}markDirty(){if(this[n]){this[n]=!1;let l=this;for(;l=l.parent;)l[n]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l){let s=this.source.start;if(l.index)s=this.positionInside(l.index);else if(l.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,h=c.slice(o(c,this.source.start),o(c,this.source.end)).indexOf(l.word);h!==-1&&(s=this.positionInside(h))}return s}positionInside(l){let s=this.source.start.column,c=this.source.start.line,f="document"in this.source.input?this.source.input.document:this.source.input.css,h=o(f,this.source.start),d=h+l;for(let m=h;m<d;m++)f[m]===`
34
- `?(s=1,c+=1):s+=1;return{column:s,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let s={column:this.source.start.column,line:this.source.start.line},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:s.column+1,line:s.line};if(l.word){let f="document"in this.source.input?this.source.input.document:this.source.input.css,d=f.slice(o(f,this.source.start),o(f,this.source.end)).indexOf(l.word);d!==-1&&(s=this.positionInside(d),c=this.positionInside(d+l.word.length))}else l.start?s={column:l.start.column,line:l.start.line}:l.index&&(s=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<s.line||c.line===s.line&&c.column<=s.column)&&(c={column:s.column+1,line:s.line}),{end:c,start:s}}raw(l,s){return new t().raw(this,l,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let s=this,c=!1;for(let f of l)f===this?c=!0:c?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f);c||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,s){let c={},f=s==null;s=s||new Map;let h=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))c[d]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)c[d]=m.toJSON(null,s);else if(d==="source"){let g=s.get(m.input);g==null&&(g=h,s.set(m.input,h),h++),c[d]={end:m.end,inputId:g,start:m.start}}else c[d]=m}return f&&(c.inputs=[...s.keys()].map(d=>d.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let s="";return l(this,c=>{s+=c}),s}warn(l,s,c){let f={node:this};for(let h in c)f[h]=c[h];return l.warn(s,f)}get proxyOf(){return this}}return zt=u,u.default=u,zt}var qt,ji;function rt(){if(ji)return qt;ji=1;let e=Mt();class t extends e{constructor(n){super(n),this.type="comment"}}return qt=t,t.default=t,qt}var Wt,Gi;function _t(){if(Gi)return Wt;Gi=1;let e=Mt();class t extends e{constructor(n){n&&typeof n.value!="undefined"&&typeof n.value!="string"&&(n=le(Q({},n),{value:String(n.value)})),super(n),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Wt=t,t.default=t,Wt}var Vt,$i;function Pe(){if($i)return Vt;$i=1;let e=rt(),t=_t(),r=Mt(),{isClean:n,my:i}=ci(),a,o,u,p;function l(f){return f.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function s(f){if(f[n]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)s(h)}class c extends r{append(...h){for(let d of h){let m=this.normalize(d,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let d of this.nodes)d.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let d=this.getIterator(),m,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(m=this.indexes[d],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,d){return d==="proxyOf"?h:h[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...m)=>h[d](...m.map(g=>typeof g=="function"?(b,y)=>g(b.toProxy(),y):g)):d==="every"||d==="some"?m=>h[d]((g,...b)=>m(g.toProxy(),...b)):d==="root"?()=>h.root().toProxy():d==="nodes"?h.nodes.map(m=>m.toProxy()):d==="first"||d==="last"?h[d].toProxy():h[d]:h[d]},set(h,d,m){return h[d]===m||(h[d]=m,(d==="name"||d==="params"||d==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,d){let m=this.index(h),g=this.normalize(d,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let y of g)this.proxyOf.nodes.splice(m+1,0,y);let b;for(let y in this.indexes)b=this.indexes[y],m<b&&(this.indexes[y]=b+g.length);return this.markDirty(),this}insertBefore(h,d){let m=this.index(h),g=m===0?"prepend":!1,b=this.normalize(d,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of b)this.proxyOf.nodes.splice(m,0,S);let y;for(let S in this.indexes)y=this.indexes[S],m<=y&&(this.indexes[S]=y+b.length);return this.markDirty(),this}normalize(h,d){if(typeof h=="string")h=l(o(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new p(h)];else if(h.name)h=[new a(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[i]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[n]&&s(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let d of h){let m=this.normalize(d,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let d;for(let m in this.indexes)d=this.indexes[m],d>=h&&(this.indexes[m]=d-1);return this.markDirty(),this}replaceValues(h,d,m){return m||(m=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((d,m)=>{let g;try{g=h(d,m)}catch(b){throw d.addToError(b)}return g!==!1&&d.walk&&(g=d.walk(h)),g})}walkAtRules(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return d(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="atrule")return d(m,g)}))}walkComments(h){return this.walk((d,m)=>{if(d.type==="comment")return h(d,m)})}walkDecls(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return d(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="decl")return d(m,g)}))}walkRules(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return d(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="rule")return d(m,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return c.registerParse=f=>{o=f},c.registerRule=f=>{p=f},c.registerAtRule=f=>{a=f},c.registerRoot=f=>{u=f},Vt=c,c.default=c,c.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,p.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,u.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(h=>{c.rebuild(h)})},Vt}var jt,Hi;function hi(){if(Hi)return jt;Hi=1;let e=Pe();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return jt=t,t.default=t,e.registerAtRule(t),jt}var Gt,Yi;function fi(){if(Yi)return Gt;Yi=1;let e=Pe(),t,r;class n extends e{constructor(a){super(Q({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return n.registerLazyResult=i=>{t=i},n.registerProcessor=i=>{r=i},Gt=n,n.default=n,Gt}var $t,Ji;function ga(){if(Ji)return $t;Ji=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return $t={nanoid:(n=21)=>{let i="",a=n|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(n,i=21)=>(a=i)=>{let o="",u=a|0;for(;u--;)o+=n[Math.random()*n.length|0];return o}},$t}var Ht,Xi;function zn(){if(Xi)return Ht;Xi=1;let{existsSync:e,readFileSync:t}=me,{dirname:r,join:n}=me,{SourceMapConsumer:i,SourceMapGenerator:a}=me;function o(p){return Buffer?Buffer.from(p,"base64").toString():window.atob(p)}class u{constructor(l,s){if(s.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let c=s.map?s.map.prev:void 0,f=this.loadMap(s.from,c);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=r(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(l){let s=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,d=l.match(f)||l.match(h);if(d)return decodeURIComponent(l.substr(d[0].length));let m=l.match(s)||l.match(c);if(m)return o(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let s=l.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let c=l.lastIndexOf(s.pop()),f=l.indexOf("*/",c);c>-1&&f>-1&&(this.annotation=this.getAnnotationURL(l.substring(c,f)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let c=s(l);if(c){let f=this.loadFile(c);if(!f)throw new Error("Unable to load previous source map: "+c.toString());return f}}else{if(s instanceof i)return a.fromSourceMap(s).toString();if(s instanceof a)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return l&&(c=n(r(l),c)),this.loadFile(c)}}}startWith(l,s){return l?l.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ht=u,u.default=u,Ht}var Yt,Qi;function Nt(){if(Qi)return Yt;Qi=1;let{nanoid:e}=ga(),{isAbsolute:t,resolve:r}=me,{SourceMapConsumer:n,SourceMapGenerator:i}=me,{fileURLToPath:a,pathToFileURL:o}=me,u=ui(),p=zn(),l=me,s=Symbol("fromOffsetCache"),c=!!(n&&i),f=!!(r&&t);class h{constructor(m,g={}){if(m===null||typeof m=="undefined"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,g.document&&(this.document=g.document.toString()),g.from&&(!f||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=r(g.from)),f&&c){let b=new p(this.css,g);if(b.text){this.map=b;let y=b.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(m,g,b,y={}){let S,C,w;if(g&&typeof g=="object"){let E=g,R=b;if(typeof E.offset=="number"){let A=this.fromOffset(E.offset);g=A.line,b=A.col}else g=E.line,b=E.column;if(typeof R.offset=="number"){let A=this.fromOffset(R.offset);C=A.line,S=A.col}else C=R.line,S=R.column}else if(!b){let E=this.fromOffset(g);g=E.line,b=E.col}let v=this.origin(g,b,C,S);return v?w=new u(m,v.endLine===void 0?v.line:{column:v.column,line:v.line},v.endLine===void 0?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,y.plugin):w=new u(m,C===void 0?g:{column:b,line:g},C===void 0?b:{column:S,line:C},this.css,this.file,y.plugin),w.input={column:b,endColumn:S,endLine:C,line:g,source:this.css},this.file&&(o&&(w.input.url=o(this.file).toString()),w.input.file=this.file),w}fromOffset(m){let g,b;if(this[s])b=this[s];else{let S=this.css.split(`
35
- `);b=new Array(S.length);let C=0;for(let w=0,v=S.length;w<v;w++)b[w]=C,C+=S[w].length+1;this[s]=b}g=b[b.length-1];let y=0;if(m>=g)y=b.length-1;else{let S=b.length-2,C;for(;y<S;)if(C=y+(S-y>>1),m<b[C])S=C-1;else if(m>=b[C+1])y=C+1;else{y=C;break}}return{col:m-b[y]+1,line:y+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:r(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,g,b,y){if(!this.map)return!1;let S=this.map.consumer(),C=S.originalPositionFor({column:g,line:m});if(!C.source)return!1;let w;typeof b=="number"&&(w=S.originalPositionFor({column:y,line:b}));let v;t(C.source)?v=o(C.source):v=new URL(C.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let E={column:C.column,endColumn:w&&w.column,endLine:w&&w.line,line:C.line,url:v.toString()};if(v.protocol==="file:")if(a)E.file=a(v);else throw new Error("file: protocol is not available in this PostCSS build");let R=S.sourceContentFor(C.source);return R&&(E.source=R),E}toJSON(){let m={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(m[g]=this[g]);return this.map&&(m.map=Q({},this.map),m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return Yt=h,h.default=h,l&&l.registerInput&&l.registerInput(h),Yt}var Jt,Ki;function it(){if(Ki)return Jt;Ki=1;let e=Pe(),t,r;class n extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,u){let p=super.normalize(a);if(o){if(u==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let l of p)l.raws.before=o.raws.before}return p}removeChild(a,o){let u=this.index(a);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return n.registerLazyResult=i=>{t=i},n.registerProcessor=i=>{r=i},Jt=n,n.default=n,e.registerRoot(n),Jt}var Xt,Zi;function qn(){if(Zi)return Xt;Zi=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
36
- `," "];return e.split(t,r)},split(t,r,n){let i=[],a="",o=!1,u=0,p=!1,l="",s=!1;for(let c of t)s?s=!1:c==="\\"?s=!0:p?c===l&&(p=!1):c==='"'||c==="'"?(p=!0,l=c):c==="("?u+=1:c===")"?u>0&&(u-=1):u===0&&r.includes(c)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=c;return(n||a!=="")&&i.push(a.trim()),i}};return Xt=e,e.default=e,Xt}var Qt,es;function pi(){if(es)return Qt;es=1;let e=Pe(),t=qn();class r extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}}return Qt=r,r.default=r,e.registerRule(r),Qt}var Kt,ts;function ya(){if(ts)return Kt;ts=1;let e=hi(),t=rt(),r=_t(),n=Nt(),i=zn(),a=it(),o=pi();function u(p,l){if(Array.isArray(p))return p.map(d=>u(d));let f=p,{inputs:s}=f,c=He(f,["inputs"]);if(s){l=[];for(let d of s){let m=le(Q({},d),{__proto__:n.prototype});m.map&&(m.map=le(Q({},m.map),{__proto__:i.prototype})),l.push(m)}}if(c.nodes&&(c.nodes=p.nodes.map(d=>u(d,l))),c.source){let h=c.source,{inputId:d}=h,m=He(h,["inputId"]);c.source=m,d!=null&&(c.source.input=l[d])}if(c.type==="root")return new a(c);if(c.type==="decl")return new r(c);if(c.type==="rule")return new o(c);if(c.type==="comment")return new t(c);if(c.type==="atrule")return new e(c);throw new Error("Unknown node type: "+p.type)}return Kt=u,u.default=u,Kt}var Zt,rs;function Wn(){if(rs)return Zt;rs=1;let{dirname:e,relative:t,resolve:r,sep:n}=me,{SourceMapConsumer:i,SourceMapGenerator:a}=me,{pathToFileURL:o}=me,u=Nt(),p=!!(i&&a),l=!!(e&&r&&t&&n);class s{constructor(f,h,d,m){this.stringify=f,this.mapOpts=d.map||{},this.root=h,this.opts=d,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let h=`
19
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(o=>{if(typeof o.raws.between!="undefined")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(o=>{let c=o.parent;if(c&&c!==i&&c.parent&&c.parent===i&&typeof o.raws.before!="undefined"){let p=o.raws.before.split(`
20
+ `);return a=p[p.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let o=i[a],c=i.raws[a];return c&&c.value===o?c.raw:o}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return Bt=r,r.default=r,Bt}var Ut,qi;function Rt(){if(qi)return Ut;qi=1;let e=Un();function t(r,n){new e(n).stringify(r)}return Ut=t,t.default=t,Ut}var ut={},Wi;function ci(){return Wi||(Wi=1,ut.isClean=Symbol("isClean"),ut.my=Symbol("my")),ut}var zt,ji;function Mt(){if(ji)return zt;ji=1;let e=ui(),t=Un(),r=Rt(),{isClean:n,my:i}=ci();function a(p,l){let s=new p.constructor;for(let u in p){if(!Object.prototype.hasOwnProperty.call(p,u)||u==="proxyCache")continue;let f=p[u],h=typeof f;u==="parent"&&h==="object"?l&&(s[u]=l):u==="source"?s[u]=f:Array.isArray(f)?s[u]=f.map(d=>a(d,s)):(h==="object"&&f!==null&&(f=a(f)),s[u]=f)}return s}function o(p,l){if(l&&typeof l.offset!="undefined")return l.offset;let s=1,u=1,f=0;for(let h=0;h<p.length;h++){if(u===l.line&&s===l.column){f=h;break}p[h]===`
21
+ `?(s=1,u+=1):s+=1}return f}class c{get proxyOf(){return this}constructor(l={}){this.raws={},this[n]=!1,this[i]=!0;for(let s in l)if(s==="nodes"){this.nodes=[];for(let u of l[s])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[s]=l[s]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let s=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let s in l)this[s]=l[s];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let s=a(this);for(let u in l)s[u]=l[u];return s}cloneAfter(l={}){let s=this.clone(l);return this.parent.insertAfter(this,s),s}cloneBefore(l={}){let s=this.clone(l);return this.parent.insertBefore(this,s),s}error(l,s={}){if(this.source){let{end:u,start:f}=this.rangeBy(s);return this.source.input.error(l,{column:f.column,line:f.line},{column:u.column,line:u.line},s)}return new e(l)}getProxyProcessor(){return{get(l,s){return s==="proxyOf"?l:s==="root"?()=>l.root().toProxy():l[s]},set(l,s,u){return l[s]===u||(l[s]=u,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&l.markDirty()),!0}}}markClean(){this[n]=!0}markDirty(){if(this[n]){this[n]=!1;let l=this;for(;l=l.parent;)l[n]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let s=this.source.start;if(l.index)s=this.positionInside(l.index);else if(l.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,h=u.slice(o(u,this.source.start),o(u,this.source.end)).indexOf(l.word);h!==-1&&(s=this.positionInside(h))}return s}positionInside(l){let s=this.source.start.column,u=this.source.start.line,f="document"in this.source.input?this.source.input.document:this.source.input.css,h=o(f,this.source.start),d=h+l;for(let m=h;m<d;m++)f[m]===`
22
+ `?(s=1,u+=1):s+=1;return{column:s,line:u,offset:d}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:o(s,this.source.start)},f=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:o(s,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(l.word){let d=s.slice(o(s,this.source.start),o(s,this.source.end)).indexOf(l.word);d!==-1&&(u=this.positionInside(d),f=this.positionInside(d+l.word.length))}else l.start?u={column:l.start.column,line:l.start.line,offset:o(s,l.start)}:l.index&&(u=this.positionInside(l.index)),l.end?f={column:l.end.column,line:l.end.line,offset:o(s,l.end)}:typeof l.endIndex=="number"?f=this.positionInside(l.endIndex):l.index&&(f=this.positionInside(l.index+1));return(f.line<u.line||f.line===u.line&&f.column<=u.column)&&(f={column:u.column+1,line:u.line,offset:u.offset+1}),{end:f,start:u}}raw(l,s){return new t().raw(this,l,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let s=this,u=!1;for(let f of l)f===this?u=!0:u?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f);u||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,s){let u={},f=s==null;s=s||new Map;let h=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))u[d]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)u[d]=m.toJSON(null,s);else if(d==="source"){if(m==null)continue;let g=s.get(m.input);g==null&&(g=h,s.set(m.input,h),h++),u[d]={end:m.end,inputId:g,start:m.start}}else u[d]=m}return f&&(u.inputs=[...s.keys()].map(d=>d.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let s="";return l(this,u=>{s+=u}),s}warn(l,s,u={}){let f={node:this};for(let h in u)f[h]=u[h];return l.warn(s,f)}}return zt=c,c.default=c,zt}var qt,Vi;function rt(){if(Vi)return qt;Vi=1;let e=Mt();class t extends e{constructor(n){super(n),this.type="comment"}}return qt=t,t.default=t,qt}var Wt,Gi;function _t(){if(Gi)return Wt;Gi=1;let e=Mt();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(n){n&&typeof n.value!="undefined"&&typeof n.value!="string"&&(n=le(Q({},n),{value:String(n.value)})),super(n),this.type="decl"}}return Wt=t,t.default=t,Wt}var jt,$i;function Pe(){if($i)return jt;$i=1;let e=rt(),t=_t(),r=Mt(),{isClean:n,my:i}=ci(),a,o,c,p;function l(f){return f.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function s(f){if(f[n]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)s(h)}class u extends r{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...h){for(let d of h){let m=this.normalize(d,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let d of this.nodes)d.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let d=this.getIterator(),m,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(m=this.indexes[d],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,d){return d==="proxyOf"?h:h[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...m)=>h[d](...m.map(g=>typeof g=="function"?(v,y)=>g(v.toProxy(),y):g)):d==="every"||d==="some"?m=>h[d]((g,...v)=>m(g.toProxy(),...v)):d==="root"?()=>h.root().toProxy():d==="nodes"?h.nodes.map(m=>m.toProxy()):d==="first"||d==="last"?h[d].toProxy():h[d]:h[d]},set(h,d,m){return h[d]===m||(h[d]=m,(d==="name"||d==="params"||d==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,d){let m=this.index(h),g=this.normalize(d,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let y of g)this.proxyOf.nodes.splice(m+1,0,y);let v;for(let y in this.indexes)v=this.indexes[y],m<v&&(this.indexes[y]=v+g.length);return this.markDirty(),this}insertBefore(h,d){let m=this.index(h),g=m===0?"prepend":!1,v=this.normalize(d,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of v)this.proxyOf.nodes.splice(m,0,S);let y;for(let S in this.indexes)y=this.indexes[S],m<=y&&(this.indexes[S]=y+v.length);return this.markDirty(),this}normalize(h,d){if(typeof h=="string")h=l(o(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new p(h)];else if(h.name)h=[new a(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[n]&&s(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let d of h){let m=this.normalize(d,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let d;for(let m in this.indexes)d=this.indexes[m],d>=h&&(this.indexes[m]=d-1);return this.markDirty(),this}replaceValues(h,d,m){return m||(m=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((d,m)=>{let g;try{g=h(d,m)}catch(v){throw d.addToError(v)}return g!==!1&&d.walk&&(g=d.walk(h)),g})}walkAtRules(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return d(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="atrule")return d(m,g)}))}walkComments(h){return this.walk((d,m)=>{if(d.type==="comment")return h(d,m)})}walkDecls(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return d(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="decl")return d(m,g)}))}walkRules(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return d(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="rule")return d(m,g)}))}}return u.registerParse=f=>{o=f},u.registerRule=f=>{p=f},u.registerAtRule=f=>{a=f},u.registerRoot=f=>{c=f},jt=u,u.default=u,u.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,p.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,c.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(h=>{u.rebuild(h)})},jt}var Vt,Hi;function hi(){if(Hi)return Vt;Hi=1;let e=Pe();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Vt=t,t.default=t,e.registerAtRule(t),Vt}var Gt,Yi;function fi(){if(Yi)return Gt;Yi=1;let e=Pe(),t,r;class n extends e{constructor(a){super(Q({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return n.registerLazyResult=i=>{t=i},n.registerProcessor=i=>{r=i},Gt=n,n.default=n,Gt}var $t,Ji;function ga(){if(Ji)return $t;Ji=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return $t={nanoid:(n=21)=>{let i="",a=n|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(n,i=21)=>(a=i)=>{let o="",c=a|0;for(;c--;)o+=n[Math.random()*n.length|0];return o}},$t}var Ht,Xi;function zn(){if(Xi)return Ht;Xi=1;let{existsSync:e,readFileSync:t}=me,{dirname:r,join:n}=me,{SourceMapConsumer:i,SourceMapGenerator:a}=me;function o(p){return Buffer?Buffer.from(p,"base64").toString():window.atob(p)}class c{constructor(l,s){if(s.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let u=s.map?s.map.prev:void 0,f=this.loadMap(s.from,u);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=r(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(l){let s=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,d=l.match(f)||l.match(h);if(d)return decodeURIComponent(l.substr(d[0].length));let m=l.match(s)||l.match(u);if(m)return o(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let s=l.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let u=l.lastIndexOf(s.pop()),f=l.indexOf("*/",u);u>-1&&f>-1&&(this.annotation=this.getAnnotationURL(l.substring(u,f)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let u=s(l);if(u){let f=this.loadFile(u);if(!f)throw new Error("Unable to load previous source map: "+u.toString());return f}}else{if(s instanceof i)return a.fromSourceMap(s).toString();if(s instanceof a)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return l&&(u=n(r(l),u)),this.loadFile(u)}}}startWith(l,s){return l?l.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ht=c,c.default=c,Ht}var Yt,Qi;function Nt(){if(Qi)return Yt;Qi=1;let{nanoid:e}=ga(),{isAbsolute:t,resolve:r}=me,{SourceMapConsumer:n,SourceMapGenerator:i}=me,{fileURLToPath:a,pathToFileURL:o}=me,c=ui(),p=zn(),l=me,s=Symbol("lineToIndexCache"),u=!!(n&&i),f=!!(r&&t);function h(m){if(m[s])return m[s];let g=m.css.split(`
23
+ `),v=new Array(g.length),y=0;for(let S=0,E=g.length;S<E;S++)v[S]=y,y+=g[S].length+1;return m[s]=v,v}class d{get from(){return this.file||this.id}constructor(g,v={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,v.document&&(this.document=v.document.toString()),v.from&&(!f||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=r(v.from)),f&&u){let y=new p(this.css,v);if(y.text){this.map=y;let S=y.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,y,S={}){let E,w,b,C,x;if(v&&typeof v=="object"){let R=v,I=y;if(typeof R.offset=="number"){C=R.offset;let T=this.fromOffset(C);v=T.line,y=T.col}else v=R.line,y=R.column,C=this.fromLineAndColumn(v,y);if(typeof I.offset=="number"){b=I.offset;let T=this.fromOffset(b);w=T.line,E=T.col}else w=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(y)C=this.fromLineAndColumn(v,y);else{C=v;let R=this.fromOffset(C);v=R.line,y=R.col}let _=this.origin(v,y,w,E);return _?x=new c(g,_.endLine===void 0?_.line:{column:_.column,line:_.line},_.endLine===void 0?_.column:{column:_.endColumn,line:_.endLine},_.source,_.file,S.plugin):x=new c(g,w===void 0?v:{column:y,line:v},w===void 0?y:{column:E,line:w},this.css,this.file,S.plugin),x.input={column:y,endColumn:E,endLine:w,endOffset:b,line:v,offset:C,source:this.css},this.file&&(o&&(x.input.url=o(this.file).toString()),x.input.file=this.file),x}fromLineAndColumn(g,v){return h(this)[g-1]+v-1}fromOffset(g){let v=h(this),y=v[v.length-1],S=0;if(g>=y)S=v.length-1;else{let E=v.length-2,w;for(;S<E;)if(w=S+(E-S>>1),g<v[w])E=w-1;else if(g>=v[w+1])S=w+1;else{S=w;break}}return{col:g-v[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,y,S){if(!this.map)return!1;let E=this.map.consumer(),w=E.originalPositionFor({column:v,line:g});if(!w.source)return!1;let b;typeof y=="number"&&(b=E.originalPositionFor({column:S,line:y}));let C;t(w.source)?C=o(w.source):C=new URL(w.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let x={column:w.column,endColumn:b&&b.column,endLine:b&&b.line,line:w.line,url:C.toString()};if(C.protocol==="file:")if(a)x.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let _=E.sourceContentFor(w.source);return _&&(x.source=_),x}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map=Q({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Yt=d,d.default=d,l&&l.registerInput&&l.registerInput(d),Yt}var Jt,Ki;function it(){if(Ki)return Jt;Ki=1;let e=Pe(),t,r;class n extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,c){let p=super.normalize(a);if(o){if(c==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let l of p)l.raws.before=o.raws.before}return p}removeChild(a,o){let c=this.index(a);return!o&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return n.registerLazyResult=i=>{t=i},n.registerProcessor=i=>{r=i},Jt=n,n.default=n,e.registerRoot(n),Jt}var Xt,Zi;function qn(){if(Zi)return Xt;Zi=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
24
+ `," "];return e.split(t,r)},split(t,r,n){let i=[],a="",o=!1,c=0,p=!1,l="",s=!1;for(let u of t)s?s=!1:u==="\\"?s=!0:p?u===l&&(p=!1):u==='"'||u==="'"?(p=!0,l=u):u==="("?c+=1:u===")"?c>0&&(c-=1):c===0&&r.includes(u)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=u;return(n||a!=="")&&i.push(a.trim()),i}};return Xt=e,e.default=e,Xt}var Qt,es;function pi(){if(es)return Qt;es=1;let e=Pe(),t=qn();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return Qt=r,r.default=r,e.registerRule(r),Qt}var Kt,ts;function ya(){if(ts)return Kt;ts=1;let e=hi(),t=rt(),r=_t(),n=Nt(),i=zn(),a=it(),o=pi();function c(p,l){if(Array.isArray(p))return p.map(d=>c(d));let f=p,{inputs:s}=f,u=He(f,["inputs"]);if(s){l=[];for(let d of s){let m=le(Q({},d),{__proto__:n.prototype});m.map&&(m.map=le(Q({},m.map),{__proto__:i.prototype})),l.push(m)}}if(u.nodes&&(u.nodes=p.nodes.map(d=>c(d,l))),u.source){let h=u.source,{inputId:d}=h,m=He(h,["inputId"]);u.source=m,d!=null&&(u.source.input=l[d])}if(u.type==="root")return new a(u);if(u.type==="decl")return new r(u);if(u.type==="rule")return new o(u);if(u.type==="comment")return new t(u);if(u.type==="atrule")return new e(u);throw new Error("Unknown node type: "+p.type)}return Kt=c,c.default=c,Kt}var Zt,rs;function Wn(){if(rs)return Zt;rs=1;let{dirname:e,relative:t,resolve:r,sep:n}=me,{SourceMapConsumer:i,SourceMapGenerator:a}=me,{pathToFileURL:o}=me,c=Nt(),p=!!(i&&a),l=!!(e&&r&&t&&n);class s{constructor(f,h,d,m){this.stringify=f,this.mapOpts=d.map||{},this.root=h,this.opts=d,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let h=`
37
25
  `;this.css.includes(`\r
38
26
  `)&&(h=`\r
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(),l&&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,C)=>{if(this.css+=y,S&&C!=="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&&C!=="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 u(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,u=9,p=13,l=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,C=/[\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 u:case p:case o:{x=_;do x+=1,k=M.charCodeAt(x);while(k===a||k===i||k===u||k===p||k===o);I=["space",M.slice(_,x)],_=x-1;break}case l: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!==u&&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!==u&&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):(C.lastIndex=_+1,C.test(M),C.lastIndex===0?x=M.length-1:x=C.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 u(l){for(let s=l.length-1;s>=0;s--){let c=l[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]||u(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),C="";for(let w=y;w>0;w--){let v=S[w][0];if(C.trim().startsWith("!")&&v!=="space")break;C=S.pop()[1]+C}C.trim().startsWith("!")&&(f.important=!0,f.raws.important=C,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,C;for(let w=0;w<g;w+=1)d=f[w],m=d[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(C=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[C]&&!o[S]?b.slice(-1)===","?y=!1:b+=d[1]:y=!1):b+=d[1];if(!y){let w=f.reduce((v,E)=>v+E[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),u=new r(o);try{u.parse()}catch(p){throw p}return u.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:u,my:p}=ci(),l=$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(C){return typeof C=="object"&&typeof C.then=="function"}function m(C){let w=!1,v=s[C.type];return C.type==="decl"?w=C.prop.toLowerCase():C.type==="atrule"&&(w=C.name.toLowerCase()),w&&C.append?[v,v+"-"+w,h,v+"Exit",v+"Exit-"+w]:w?[v,v+"-"+w,v+"Exit",v+"Exit-"+w]:C.append?[v,h,v+"Exit"]:[v,v+"Exit"]}function g(C){let w;return C.type==="document"?w=["Document",h,"DocumentExit"]:C.type==="root"?w=["Root",h,"RootExit"]:w=m(C),{eventIndex:0,events:w,iterator:0,node:C,visitorIndex:0,visitors:[]}}function b(C){return C[u]=!1,C.nodes&&C.nodes.forEach(w=>b(w)),C}let y={};class S{constructor(w,v,E){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 E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=v.map);else{let A=n;E.syntax&&(A=E.syntax.parse),E.parser&&(A=E.parser),A.parse&&(A=A.parse);try{R=A(v,E)}catch(M){this.processed=!0,this.error=M}R&&!R[p]&&e.rebuild(R)}this.result=new i(w,R,E),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 E=this.result.lastPlugin;try{v&&v.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=E.postcssPlugin,w.setMessage()):E.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(v,E,R)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([v,R])};for(let v of this.plugins)if(typeof v=="object")for(let E in v){if(!c[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[E])if(typeof v[E]=="object")for(let R in v[E])R==="*"?w(v,E,v[E][R]):w(v,E+"-"+R.toLowerCase(),v[E][R]);else typeof v[E]=="function"&&w(v,E,v[E])}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],E=this.runOnRoot(v);if(d(E))try{await E}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];){w[u]=!0;let v=[g(w)];for(;v.length>0;){let E=this.visitTick(v);if(d(E))try{await E}catch(R){let A=v[v.length-1].node;throw this.handleError(R,A)}}}if(this.listeners.OnceExit)for(let[v,E]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(w.type==="document"){let R=w.nodes.map(A=>E(A,this.helpers));await Promise.all(R)}else await E(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(E=>w.Once(E,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[u];)w[u]=!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[E,R]of w){this.result.lastPlugin=E;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:E,visitors:R}=v;if(E.type!=="root"&&E.type!=="document"&&!E.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(E.toProxy(),this.helpers)}catch(k){throw this.handleError(k,E)}}if(v.iterator!==0){let M=v.iterator,B;for(;B=E.nodes[E.indexes[M]];)if(E.indexes[M]+=1,!B[u]){B[u]=!0,w.push(g(B));return}v.iterator=0,delete E.indexes[M]}let A=v.events;for(;v.eventIndex<A.length;){let M=A[v.eventIndex];if(v.eventIndex+=1,M===h){E.nodes&&E.nodes.length&&(E[u]=!0,v.iterator=E.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}w.pop()}walkSync(w){w[u]=!0;let v=m(w);for(let E of v)if(E===h)w.nodes&&w.each(R=>{R[u]||this.walkSync(R)});else{let R=this.listeners[E];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=C=>{y=C},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(u,p,l){p=p.toString(),this.stringified=!1,this._processor=u,this._css=p,this._opts=l,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(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,p){return this.async().then(u,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 u,p=t;try{u=p(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}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 u=[];for(let p of o)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))u=u.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)u.push(p);else if(typeof p=="function")u.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,o,u):new t(this,o,u)}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(),u=Nt(),p=Hn(),l=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(C,w){let v=!1;function E(...A){console&&console.warn&&!v&&(v=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
41
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \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=C,M.postcssVersion=new f().version,M}let R;return Object.defineProperty(E,"postcss",{get(){return R||(R=E()),R}}),E.process=function(A,M,B){return y([E(B)]).process(A,M)},E},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=l,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=u,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 u=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:u.col,line:u.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 l=p.match(/^(\s*)([^]*\S)(\s*)$/);o.text=l[2],o.raws.left=l[1],o.raws.right=l[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 u,p;for(u=o-1;u>=0&&a[u][0]!=="word";u--);if(u===0||u<0)return;for(p=u-1;p>=0;p--)if(a[p][0]!=="space"){p+=1;break}let l=a.slice(u),s=a.slice(p,u);a.splice(p,a.length-p),this.spaces=s.map(c=>c[1]).join(""),this.decl(l)}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 Ea=Sa();const Ca=Bn(Ea);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:Ca}).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 u;e.isSVG?u=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{}),u=n.createElement(o));const p={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let s=e.attributes[l];if(o==="option"&&l==="selected"&&s===!1||s===null)continue;if(s===!0&&(s=""),l.startsWith("rr_")){p[l]=s;continue}const c=o==="textarea"&&l==="value",f=o==="style"&&l==="_cssText";if(f&&i&&typeof s=="string"&&(s=Jn(s,a)),(c||f)&&typeof s=="string"){u.appendChild(n.createTextNode(s)),e.childNodes=[];continue}try{if(e.isSVG&&l==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",l,s.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")u.setAttribute("_"+l,s.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){u.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?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(l,s.toString()))}catch(h){}}for(const l in p){const s=p[l];if(o==="canvas"&&l==="rr_dataURL"){const c=n.createElement("img");c.onload=()=>{const f=u.getContext("2d");f&&f.drawImage(c,0,0,c.width,c.height)},c.src=s.toString(),u.RRNodeType&&(u.rr_dataURL=s.toString())}else if(o==="img"&&l==="rr_dataURL"){const c=u;c.currentSrc.startsWith("data:")||(c.setAttribute("rrweb-original-src",e.attributes.src),c.src=s.toString())}if(l==="rr_width")u.style.setProperty("width",s.toString());else if(l==="rr_height")u.style.setProperty("height",s.toString());else if(l==="rr_mediaCurrentTime"&&typeof s=="number")u.currentTime=s;else if(l==="rr_mediaState")switch(s){case"played":u.play().catch(c=>console.warn("media playback error",c));break;case"paused":u.pause();break}else l==="rr_mediaPlaybackRate"&&typeof s=="number"?u.playbackRate=s:l==="rr_mediaMuted"&&typeof s=="boolean"?u.muted=s:l==="rr_mediaLoop"&&typeof s=="boolean"?u.loop=s:l==="rr_mediaVolume"&&typeof s=="number"?u.volume=s:l==="rr_open_mode"&&u.setAttribute("rr_open_mode",s)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}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:u}=t;if(n.has(e.id)){const l=n.getNode(e.id),s=n.getMeta(l);if(aa(s,e))return n.getNode(e.id)}let p=_a(e,{doc:r,hackCss:a,cache:u});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 l of e.childNodes){const s=Ke(l,{doc:r,mirror:n,skipChild:!1,hackCss:a,afterAppend:o,cache:u});if(!s){console.warn("Failed to rebuild",l);continue}if(l.isShadow&&na(p)&&p.shadowRoot)p.shadowRoot.appendChild(s);else if(e.type===re.Document&&l.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&&l.type===re.DocumentType&&p.firstChild&&p.firstChild.nodeType===1?p.insertBefore(s,p.firstChild):p.appendChild(s);o&&o(s,l.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:u=new Ln}=t,p=Ke(e,{doc:r,mirror:u,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return Na(u,l=>{n&&n(l),Oa(l,u)}),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,u,p,l){super(i),this.name="CssSyntaxError",this.reason=i,p&&(this.file=p),u&&(this.source=u),l&&(this.plugin=l),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,u=h=>h,p=h=>h;if(i){let{bold:h,gray:d,red:m}=e.createColors(!0);u=g=>h(m(g)),o=g=>d(g),t&&(p=g=>t(g))}let l=a.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,l.length),f=String(c).length;return l.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),C=Math.max(this.column+y,this.endColumn+y),w=h.slice(S,C),v=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return u(">")+o(g)+p(w)+`
43
- `+v+u("^")}let b=o(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+o(g)+p(h)+`
44
- `+b+u("^")}return" "+o(g)+p(h)}).join(`
27
+ `),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(),l&&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,v;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))),v=y.match(/\n/g),v?(f+=v.length,g=y.lastIndexOf(`
28
+ `),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 c(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 jn(){if(is)return er;is=1;const e=39,t=34,r=92,n=47,i=10,a=32,o=12,c=9,p=13,l=91,s=93,u=40,f=41,h=123,d=125,m=59,g=42,v=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return er=function(x,_={}){let R=x.css.valueOf(),I=_.ignoreErrors,T,J,U,M,q,L,V,H,z,X,ae=R.length,N=0,D=[],A=[];function O(){return N}function P(ie){throw x.error("Unclosed "+ie,N)}function j(){return A.length===0&&N>=ae}function ue(ie){if(A.length)return A.pop();if(N>=ae)return;let be=ie?ie.ignoreUnclosed:!1;switch(T=R.charCodeAt(N),T){case i:case a:case c:case p:case o:{M=N;do M+=1,T=R.charCodeAt(M);while(T===a||T===i||T===c||T===p||T===o);L=["space",R.slice(N,M)],N=M-1;break}case l:case s:case h:case d:case v:case m:case f:{let Ne=String.fromCharCode(T);L=[Ne,Ne,N];break}case u:{if(X=D.length?D.pop()[1]:"",z=R.charCodeAt(N+1),X==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==c&&z!==o&&z!==p){M=N;do{if(V=!1,M=R.indexOf(")",M+1),M===-1)if(I||be){M=N;break}else P("bracket");for(H=M;R.charCodeAt(H-1)===r;)H-=1,V=!V}while(V);L=["brackets",R.slice(N,M+1),N,M],N=M}else M=R.indexOf(")",N+1),J=R.slice(N,M+1),M===-1||w.test(J)?L=["(","(",N]:(L=["brackets",J,N,M],N=M);break}case e:case t:{q=T===e?"'":'"',M=N;do{if(V=!1,M=R.indexOf(q,M+1),M===-1)if(I||be){M=N+1;break}else P("string");for(H=M;R.charCodeAt(H-1)===r;)H-=1,V=!V}while(V);L=["string",R.slice(N,M+1),N,M],N=M;break}case y:{S.lastIndex=N+1,S.test(R),S.lastIndex===0?M=R.length-1:M=S.lastIndex-2,L=["at-word",R.slice(N,M+1),N,M],N=M;break}case r:{for(M=N,U=!0;R.charCodeAt(M+1)===r;)M+=1,U=!U;if(T=R.charCodeAt(M+1),U&&T!==n&&T!==a&&T!==i&&T!==c&&T!==p&&T!==o&&(M+=1,b.test(R.charAt(M)))){for(;b.test(R.charAt(M+1));)M+=1;R.charCodeAt(M+1)===a&&(M+=1)}L=["word",R.slice(N,M+1),N,M],N=M;break}default:{T===n&&R.charCodeAt(N+1)===g?(M=R.indexOf("*/",N+2)+1,M===0&&(I||be?M=R.length:P("comment")),L=["comment",R.slice(N,M+1),N,M],N=M):(E.lastIndex=N+1,E.test(R),E.lastIndex===0?M=R.length-1:M=E.lastIndex-2,L=["word",R.slice(N,M+1),N,M],D.push(L),N=M);break}}return N++,L}function ce(ie){A.push(ie)}return{back:ce,endOfFile:j,nextToken:ue,position:O}},er}var tr,ss;function Vn(){if(ss)return tr;ss=1;let e=hi(),t=rt(),r=_t(),n=it(),i=pi(),a=jn();const o={empty:!0,space:!0};function c(l){for(let s=l.length-1;s>=0;s--){let u=l[s],f=u[3]||u[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 u=new e;u.name=s[1].slice(1),u.name===""&&this.unnamedAtrule(u,s),this.init(u,s[2]);let f,h,d,m=!1,g=!1,v=[],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===";"){u.source.end=this.getPosition(s[2]),u.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(d=v.length-1,h=v[d];h&&h[0]==="space";)h=v[--d];h&&(u.source.end=this.getPosition(h[3]||h[2]),u.source.end.offset++)}this.end(s);break}else v.push(s);else v.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(u.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(u,"params",v),m&&(s=v[v.length-1],u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(s){let u=this.colon(s);if(u===!1)return;let f=0,h;for(let d=u-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 u=0,f,h,d;for(let[m,g]of s.entries()){if(h=g,d=h[0],d==="("&&(u+=1),d===")"&&(u-=1),u===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 u=new t;this.init(u,s[2]),u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++;let f=s[1].slice(2,-2);if(/^\s*$/.test(f))u.text="",u.raws.left=f,u.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);u.text=h[2],u.raws.left=h[1],u.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(s,u){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]||c(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 b=S[w][0];if(E.trim().startsWith("!")&&b!=="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),u),f.value.includes(":")&&!u&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let u=new i;this.init(u,s[2]),u.selector="",u.raws.between="",this.current=u}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 u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(s[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(s){let u=this.input.fromOffset(s);return{column:u.col,line:u.line,offset:s}}init(s,u){this.current.push(s),s.source={input:this.input,start:this.getPosition(u)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let u=!1,f=null,h=!1,d=null,m=[],g=s[1].startsWith("--"),v=[],y=s;for(;y;){if(f=y[0],v.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(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),u=!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()&&(u=!0),m.length>0&&this.unclosedBracket(d),u&&h){if(!g)for(;v.length&&(y=v[v.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}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,u,f,h){let d,m,g=f.length,v="",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]?v.slice(-1)===","?y=!1:v+=d[1]:y=!1):v+=d[1];if(!y){let w=f.reduce((b,C)=>b+C[1],"");s.raws[u]={raw:w,value:v}}s[u]=v}rule(s){s.pop();let u=new i;this.init(u,s[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(u,"selector",s),this.current=u}spacesAndCommentsFromEnd(s){let u,f="";for(;s.length&&(u=s[s.length-1][0],!(u!=="space"&&u!=="comment"));)f=s.pop()[1]+f;return f}spacesAndCommentsFromStart(s){let u,f="";for(;s.length&&(u=s[0][0],!(u!=="space"&&u!=="comment"));)f+=s.shift()[1];return f}spacesFromEnd(s){let u,f="";for(;s.length&&(u=s[s.length-1][0],u==="space");)f=s.pop()[1]+f;return f}stringFrom(s,u){let f="";for(let h=u;h<s.length;h++)f+=s[h][1];return s.splice(u,s.length-u),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 "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return tr=p,tr}var rr,ns;function di(){if(ns)return rr;ns=1;let e=Pe(),t=Nt(),r=Vn();function n(i,a){let o=new t(i,a),c=new r(o);try{c.parse()}catch(p){throw p}return c.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{get content(){return this.css}constructor(n,i,a){this.processor=n,this.messages=[],this.root=i,this.opts=a,this.css="",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")}}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=Rt(),{isClean:c,my:p}=ci(),l=$n();const s={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},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,b=s[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[b,b+"-"+w,h,b+"Exit",b+"Exit-"+w]:w?[b,b+"-"+w,b+"Exit",b+"Exit-"+w]:E.append?[b,h,b+"Exit"]:[b,b+"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 v(E){return E[c]=!1,E.nodes&&E.nodes.forEach(w=>v(w)),E}let y={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,b,C){this.stringified=!1,this.processed=!1;let x;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))x=v(b);else if(b instanceof S||b instanceof i)x=v(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let _=n;C.syntax&&(_=C.syntax.parse),C.parser&&(_=C.parser),_.parse&&(_=_.parse);try{x=_(b,C)}catch(R){this.processed=!0,this.error=R}x&&!x[p]&&e.rebuild(x)}this.result=new i(w,x,C),this.helpers=le(Q({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(_=>typeof _=="object"&&_.prepare?Q(Q({},_),_.prepare(this.result)):_)}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,b){let C=this.result.lastPlugin;try{b&&b.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(b,C,x)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,x])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof b[C]=="object")for(let x in b[C])x==="*"?w(b,C,b[C][x]):w(b,C+"-"+x.toLowerCase(),b[C][x]);else typeof b[C]=="function"&&w(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let b=this.plugins[w],C=this.runOnRoot(b);if(d(C))try{await C}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[c];){w[c]=!0;let b=[g(w)];for(;b.length>0;){let C=this.visitTick(b);if(d(C))try{await C}catch(x){let _=b[b.length-1].node;throw this.handleError(x,_)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(w.type==="document"){let x=w.nodes.map(_=>C(_,this.helpers));await Promise.all(x)}else await C(w,this.helpers)}catch(x){throw this.handleError(x)}}}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 b=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return d(b[0])?Promise.all(b):b}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,b=o;w.syntax&&(b=w.syntax.stringify),w.stringifier&&(b=w.stringifier),b.stringify&&(b=b.stringify);let x=new r(b,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[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 b=this.runOnRoot(w);if(d(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[c];)w[c]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let b of w.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,b){return this.async().then(w,b)}toString(){return this.css}visitSync(w,b){for(let[C,x]of w){this.result.lastPlugin=C;let _;try{_=x(b,this.helpers)}catch(R){throw this.handleError(R,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(d(_))throw this.getAsyncError()}}visitTick(w){let b=w[w.length-1],{node:C,visitors:x}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(x.length>0&&b.visitorIndex<x.length){let[R,I]=x[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===x.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=R;try{return I(C.toProxy(),this.helpers)}catch(T){throw this.handleError(T,C)}}if(b.iterator!==0){let R=b.iterator,I;for(;I=C.nodes[C.indexes[R]];)if(C.indexes[R]+=1,!I[c]){I[c]=!0,w.push(g(I));return}b.iterator=0,delete C.indexes[R]}let _=b.events;for(;b.eventIndex<_.length;){let R=_[b.eventIndex];if(b.eventIndex+=1,R===h){C.nodes&&C.nodes.length&&(C[c]=!0,b.iterator=C.getIterator());return}else if(this.listeners[R]){b.visitors=this.listeners[R];return}}w.pop()}walkSync(w){w[c]=!0;let b=m(w);for(let C of b)if(C===h)w.nodes&&w.each(x=>{x[c]||this.walkSync(x)});else{let x=this.listeners[C];if(x&&this.visitSync(x,w.toProxy()))return}}warnings(){return this.sync().warnings()}}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=Rt(),i=$n();class a{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 c,p=t;try{c=p(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(c,p,l){p=p.toString(),this.stringified=!1,this._processor=c,this._css=p,this._opts=l,this._map=void 0;let s,u=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(u,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(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,p){return this.async().then(c,p)}toString(){return this._css}warnings(){return[]}}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.6",this.plugins=this.normalize(o)}normalize(o){let c=[];for(let p of o)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))c=c.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)c.push(p);else if(typeof p=="function")c.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return c}process(o,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new r(this,o,c):new t(this,o,c)}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(),c=Nt(),p=Hn(),l=qn(),s=Mt(),u=di(),f=va(),h=mi(),d=it(),m=pi(),g=Rt(),v=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 b=!1;function C(..._){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
29
+ 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:
30
+ https://www.w3ctech.com/topic/2226`));let R=w(..._);return R.postcssPlugin=E,R.postcssVersion=new f().version,R}let x;return Object.defineProperty(C,"postcss",{get(){return x||(x=C()),x}}),C.process=function(_,R,I){return y([C(I)]).process(_,R)},C},y.stringify=g,y.parse=u,y.fromJSON=o,y.list=l,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=v,y.AtRule=e,y.Result=h,y.Input=c,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=Vn(),r=jn();class n extends t{checkMissedSemicolon(){}comment(a){let o=new e;this.init(o,a[2]);let c=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:c.col,line:c.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 l=p.match(/^(\s*)([^]*\S)(\s*)$/);o.text=l[2],o.raws.left=l[1],o.raws.right=l[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 c,p;for(c=o-1;c>=0&&a[c][0]!=="word";c--);if(c===0||c<0)return;for(p=c-1;p>=0;p--)if(a[p][0]!=="space"){p+=1;break}let l=a.slice(c),s=a.slice(p,c);a.splice(p,a.length-p),this.spaces=s.map(u=>u[1]).join(""),this.decl(l)}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 xa=Yn();const Z=Bn(xa);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 Ra(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=Ra(e);let c;e.isSVG?c=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{}),c=n.createElement(o));const p={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let s=e.attributes[l];if(o==="option"&&l==="selected"&&s===!1||s===null)continue;if(s===!0&&(s=""),l.startsWith("rr_")){p[l]=s;continue}const u=o==="textarea"&&l==="value",f=o==="style"&&l==="_cssText";if(f&&i&&typeof s=="string"&&(s=Jn(s,a)),(u||f)&&typeof s=="string"){c.appendChild(n.createTextNode(s)),e.childNodes=[];continue}try{if(e.isSVG&&l==="xlink:href")c.setAttributeNS("http://www.w3.org/1999/xlink",l,s.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")c.setAttribute("_"+l,s.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){c.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?c.setAttribute("rrweb-original-srcset",e.attributes.srcset):c.setAttribute(l,s.toString()))}catch(h){}}for(const l in p){const s=p[l];if(o==="canvas"&&l==="rr_dataURL"){const u=n.createElement("img");u.onload=()=>{const f=c.getContext("2d");f&&f.drawImage(u,0,0,u.width,u.height)},u.src=s.toString(),c.RRNodeType&&(c.rr_dataURL=s.toString())}else if(o==="img"&&l==="rr_dataURL"){const u=c;u.currentSrc.startsWith("data:")||(u.setAttribute("rrweb-original-src",e.attributes.src),u.src=s.toString())}if(l==="rr_width")c.style.setProperty("width",s.toString());else if(l==="rr_height")c.style.setProperty("height",s.toString());else if(l==="rr_left")c.style.setProperty("left",s.toString()),c.style.setProperty("position","absolute");else if(l==="rr_top")c.style.setProperty("top",s.toString()),c.style.setProperty("position","absolute");else if(l==="rr_mediaCurrentTime"&&typeof s=="number")c.currentTime=s;else if(l==="rr_mediaState")switch(s){case"played":c.play().catch(u=>console.warn("media playback error",u));break;case"paused":c.pause();break}else l==="rr_mediaPlaybackRate"&&typeof s=="number"?c.playbackRate=s:l==="rr_mediaMuted"&&typeof s=="boolean"?c.muted=s:l==="rr_mediaLoop"&&typeof s=="boolean"?c.loop=s:l==="rr_mediaVolume"&&typeof s=="number"?c.volume=s:l==="rr_open_mode"&&c.setAttribute("rr_open_mode",s)}if(e.isShadowHost)if(!c.shadowRoot)c.attachShadow({mode:"open"});else for(;c.shadowRoot.firstChild;)c.shadowRoot.removeChild(c.shadowRoot.firstChild);return c}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:c}=t;if(n.has(e.id)){const l=n.getNode(e.id),s=n.getMeta(l);if(aa(s,e))return n.getNode(e.id)}let p=_a(e,{doc:r,hackCss:a,cache:c});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 l of e.childNodes){const s=Ke(l,{doc:r,mirror:n,skipChild:!1,hackCss:a,afterAppend:o,cache:c});if(!s){console.warn("Failed to rebuild",l);continue}if(l.isShadow&&na(p)&&p.shadowRoot)p.shadowRoot.appendChild(s);else if(e.type===re.Document&&l.type==re.Element){const u=s;let f=null;u.childNodes.forEach(h=>{h.nodeName==="BODY"&&(f=h)}),f?(u.removeChild(f),p.appendChild(s),u.appendChild(f)):p.appendChild(s)}else e.type===re.Document&&l.type===re.DocumentType&&p.firstChild&&p.firstChild.nodeType===1?p.insertBefore(s,p.firstChild):p.appendChild(s);o&&o(s,l.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:c=new Ln}=t,p=Ke(e,{doc:r,mirror:c,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return Na(c,l=>{n&&n(l),Oa(l,c)}),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,k=(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(Object.prototype.hasOwnProperty.call(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,c,p,l){super(i),this.name="CssSyntaxError",this.reason=i,p&&(this.file=p),c&&(this.source=c),l&&(this.plugin=l),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,c=h=>h,p=h=>h;if(i){let{bold:h,gray:d,red:m}=e.createColors(!0);c=g=>h(m(g)),o=g=>d(g),t&&(p=g=>t(g))}let l=a.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,l.length),f=String(u).length;return l.slice(s,u).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),b=o(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return c(">")+o(g)+p(w)+`
31
+ `+b+c("^")}let v=o(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return c(">")+o(g)+p(h)+`
32
+ `+v+c("^")}return" "+o(g)+p(h)}).join(`
45
33
  `)}toString(){let i=this.showSourceCode();return i&&(i=`
46
34
 
47
35
  `+i+`
@@ -50,25 +38,25 @@ https://www.w3ctech.com/topic/2226`));let M=w(...A);return M.postcssPlugin=C,M.p
50
38
  `,beforeComment:`
51
39
  `,beforeDecl:`
52
40
  `,beforeOpen:" ",beforeRule:`
53
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(i){this.builder=i}atrule(i,a){let o="@"+i.name,u=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName!="undefined"?o+=i.raws.afterName:u&&(o+=" "),i.nodes)this.block(i,o+u);else{let p=(i.raws.between||"")+(a?";":"");this.builder(o+u+p,i)}}beforeAfter(i,a){let o;i.type==="decl"?o=this.raw(i,null,"beforeDecl"):i.type==="comment"?o=this.raw(i,null,"beforeComment"):a==="before"?o=this.raw(i,null,"beforeRule"):o=this.raw(i,null,"beforeClose");let u=i.parent,p=0;for(;u&&u.type!=="root";)p+=1,u=u.parent;if(o.includes(`
54
- `)){let l=this.raw(i,null,"indent");if(l.length)for(let s=0;s<p;s++)o+=l}return o}block(i,a){let o=this.raw(i,"between","beforeOpen");this.builder(a+o+"{",i,"start");let u;i.nodes&&i.nodes.length?(this.body(i),u=this.raw(i,"after")):u=this.raw(i,"after","emptyBody"),u&&this.builder(u),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let o=this.raw(i,"semicolon");for(let u=0;u<i.nodes.length;u++){let p=i.nodes[u],l=this.raw(p,"before");l&&this.builder(l),this.stringify(p,a!==u||o)}}comment(i){let a=this.raw(i,"left","commentLeft"),o=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+o+"*/",i)}decl(i,a){let o=this.raw(i,"between","colon"),u=i.prop+o+this.rawValue(i,"value");i.important&&(u+=i.raws.important||" !important"),a&&(u+=";"),this.builder(u,i)}document(i){this.body(i)}raw(i,a,o){let u;if(o||(o=a),a&&(u=i.raws[a],typeof u!="undefined"))return u;let p=i.parent;if(o==="before"&&(!p||p.type==="root"&&p.first===i||p&&p.type==="document"))return"";if(!p)return e[o];let l=i.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[o]!="undefined")return l.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(i,o);{let s="raw"+t(o);this[s]?u=this[s](l,i):l.walk(c=>{if(u=c.raws[a],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),l.rawCache[o]=u,u}rawBeforeClose(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return a=o.raws.after,a.includes(`
55
- `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let o;return i.walkComments(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
56
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(i,a){let o;return i.walkDecls(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
41
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(i){this.builder=i}atrule(i,a){let o="@"+i.name,c=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName!="undefined"?o+=i.raws.afterName:c&&(o+=" "),i.nodes)this.block(i,o+c);else{let p=(i.raws.between||"")+(a?";":"");this.builder(o+c+p,i)}}beforeAfter(i,a){let o;i.type==="decl"?o=this.raw(i,null,"beforeDecl"):i.type==="comment"?o=this.raw(i,null,"beforeComment"):a==="before"?o=this.raw(i,null,"beforeRule"):o=this.raw(i,null,"beforeClose");let c=i.parent,p=0;for(;c&&c.type!=="root";)p+=1,c=c.parent;if(o.includes(`
42
+ `)){let l=this.raw(i,null,"indent");if(l.length)for(let s=0;s<p;s++)o+=l}return o}block(i,a){let o=this.raw(i,"between","beforeOpen");this.builder(a+o+"{",i,"start");let c;i.nodes&&i.nodes.length?(this.body(i),c=this.raw(i,"after")):c=this.raw(i,"after","emptyBody"),c&&this.builder(c),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let o=this.raw(i,"semicolon");for(let c=0;c<i.nodes.length;c++){let p=i.nodes[c],l=this.raw(p,"before");l&&this.builder(l),this.stringify(p,a!==c||o)}}comment(i){let a=this.raw(i,"left","commentLeft"),o=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+o+"*/",i)}decl(i,a){let o=this.raw(i,"between","colon"),c=i.prop+o+this.rawValue(i,"value");i.important&&(c+=i.raws.important||" !important"),a&&(c+=";"),this.builder(c,i)}document(i){this.body(i)}raw(i,a,o){let c;if(o||(o=a),a&&(c=i.raws[a],typeof c!="undefined"))return c;let p=i.parent;if(o==="before"&&(!p||p.type==="root"&&p.first===i||p&&p.type==="document"))return"";if(!p)return e[o];let l=i.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[o]!="undefined")return l.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(i,o);{let s="raw"+t(o);this[s]?c=this[s](l,i):l.walk(u=>{if(c=u.raws[a],typeof c!="undefined")return!1})}return typeof c=="undefined"&&(c=e[o]),l.rawCache[o]=c,c}rawBeforeClose(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return a=o.raws.after,a.includes(`
43
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let o;return i.walkComments(c=>{if(typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
44
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(a,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(i,a){let o;return i.walkDecls(c=>{if(typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
57
45
  `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(a,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(i){let a;return i.walk(o=>{if(o.type!=="decl"&&(a=o.raws.between,typeof a!="undefined"))return!1}),a}rawBeforeRule(i){let a;return i.walk(o=>{if(o.nodes&&(o.parent!==i||i.first!==o)&&typeof o.raws.before!="undefined")return a=o.raws.before,a.includes(`
58
- `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(o=>{if(typeof o.raws.between!="undefined")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(o=>{let u=o.parent;if(u&&u!==i&&u.parent&&u.parent===i&&typeof o.raws.before!="undefined"){let p=o.raws.before.split(`
59
- `);return a=p[p.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let o=i[a],u=i.raws[a];return u&&u.value===o?u.raw:o}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return pr=r,r.default=r,pr}var dr,Ss;function Ot(){if(Ss)return dr;Ss=1;let e=Xn();function t(r,n){new e(n).stringify(r)}return dr=t,t.default=t,dr}var ht={},Es;function yi(){return Es||(Es=1,ht.isClean=Symbol("isClean"),ht.my=Symbol("my")),ht}var mr,Cs;function At(){if(Cs)return mr;Cs=1;let e=gi(),t=Xn(),r=Ot(),{isClean:n,my:i}=yi();function a(p,l){let s=new p.constructor;for(let c in p){if(!Object.prototype.hasOwnProperty.call(p,c)||c==="proxyCache")continue;let f=p[c],h=typeof f;c==="parent"&&h==="object"?l&&(s[c]=l):c==="source"?s[c]=f:Array.isArray(f)?s[c]=f.map(d=>a(d,s)):(h==="object"&&f!==null&&(f=a(f)),s[c]=f)}return s}function o(p,l){if(l&&typeof l.offset!="undefined")return l.offset;let s=1,c=1,f=0;for(let h=0;h<p.length;h++){if(c===l.line&&s===l.column){f=h;break}p[h]===`
60
- `?(s=1,c+=1):s+=1}return f}class u{constructor(l={}){this.raws={},this[n]=!1,this[i]=!0;for(let s in l)if(s==="nodes"){this.nodes=[];for(let c of l[s])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[s]=l[s]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let s=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let s in l)this[s]=l[s];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let s=a(this);for(let c in l)s[c]=l[c];return s}cloneAfter(l={}){let s=this.clone(l);return this.parent.insertAfter(this,s),s}cloneBefore(l={}){let s=this.clone(l);return this.parent.insertBefore(this,s),s}error(l,s={}){if(this.source){let{end:c,start:f}=this.rangeBy(s);return this.source.input.error(l,{column:f.column,line:f.line},{column:c.column,line:c.line},s)}return new e(l)}getProxyProcessor(){return{get(l,s){return s==="proxyOf"?l:s==="root"?()=>l.root().toProxy():l[s]},set(l,s,c){return l[s]===c||(l[s]=c,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&l.markDirty()),!0}}}markClean(){this[n]=!0}markDirty(){if(this[n]){this[n]=!1;let l=this;for(;l=l.parent;)l[n]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l){let s=this.source.start;if(l.index)s=this.positionInside(l.index);else if(l.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,h=c.slice(o(c,this.source.start),o(c,this.source.end)).indexOf(l.word);h!==-1&&(s=this.positionInside(h))}return s}positionInside(l){let s=this.source.start.column,c=this.source.start.line,f="document"in this.source.input?this.source.input.document:this.source.input.css,h=o(f,this.source.start),d=h+l;for(let m=h;m<d;m++)f[m]===`
61
- `?(s=1,c+=1):s+=1;return{column:s,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let s={column:this.source.start.column,line:this.source.start.line},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:s.column+1,line:s.line};if(l.word){let f="document"in this.source.input?this.source.input.document:this.source.input.css,d=f.slice(o(f,this.source.start),o(f,this.source.end)).indexOf(l.word);d!==-1&&(s=this.positionInside(d),c=this.positionInside(d+l.word.length))}else l.start?s={column:l.start.column,line:l.start.line}:l.index&&(s=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<s.line||c.line===s.line&&c.column<=s.column)&&(c={column:s.column+1,line:s.line}),{end:c,start:s}}raw(l,s){return new t().raw(this,l,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let s=this,c=!1;for(let f of l)f===this?c=!0:c?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f);c||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,s){let c={},f=s==null;s=s||new Map;let h=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))c[d]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)c[d]=m.toJSON(null,s);else if(d==="source"){let g=s.get(m.input);g==null&&(g=h,s.set(m.input,h),h++),c[d]={end:m.end,inputId:g,start:m.start}}else c[d]=m}return f&&(c.inputs=[...s.keys()].map(d=>d.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let s="";return l(this,c=>{s+=c}),s}warn(l,s,c){let f={node:this};for(let h in c)f[h]=c[h];return l.warn(s,f)}get proxyOf(){return this}}return mr=u,u.default=u,mr}var gr,Rs;function st(){if(Rs)return gr;Rs=1;let e=At();class t extends e{constructor(n){super(n),this.type="comment"}}return gr=t,t.default=t,gr}var yr,xs;function Dt(){if(xs)return yr;xs=1;let e=At();class t extends e{constructor(n){n&&typeof n.value!="undefined"&&typeof n.value!="string"&&(n=le(Q({},n),{value:String(n.value)})),super(n),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return yr=t,t.default=t,yr}var wr,Ms;function Te(){if(Ms)return wr;Ms=1;let e=st(),t=Dt(),r=At(),{isClean:n,my:i}=yi(),a,o,u,p;function l(f){return f.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function s(f){if(f[n]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)s(h)}class c extends r{append(...h){for(let d of h){let m=this.normalize(d,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let d of this.nodes)d.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let d=this.getIterator(),m,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(m=this.indexes[d],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,d){return d==="proxyOf"?h:h[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...m)=>h[d](...m.map(g=>typeof g=="function"?(b,y)=>g(b.toProxy(),y):g)):d==="every"||d==="some"?m=>h[d]((g,...b)=>m(g.toProxy(),...b)):d==="root"?()=>h.root().toProxy():d==="nodes"?h.nodes.map(m=>m.toProxy()):d==="first"||d==="last"?h[d].toProxy():h[d]:h[d]},set(h,d,m){return h[d]===m||(h[d]=m,(d==="name"||d==="params"||d==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,d){let m=this.index(h),g=this.normalize(d,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let y of g)this.proxyOf.nodes.splice(m+1,0,y);let b;for(let y in this.indexes)b=this.indexes[y],m<b&&(this.indexes[y]=b+g.length);return this.markDirty(),this}insertBefore(h,d){let m=this.index(h),g=m===0?"prepend":!1,b=this.normalize(d,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of b)this.proxyOf.nodes.splice(m,0,S);let y;for(let S in this.indexes)y=this.indexes[S],m<=y&&(this.indexes[S]=y+b.length);return this.markDirty(),this}normalize(h,d){if(typeof h=="string")h=l(o(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new p(h)];else if(h.name)h=[new a(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[i]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[n]&&s(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let d of h){let m=this.normalize(d,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let d;for(let m in this.indexes)d=this.indexes[m],d>=h&&(this.indexes[m]=d-1);return this.markDirty(),this}replaceValues(h,d,m){return m||(m=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((d,m)=>{let g;try{g=h(d,m)}catch(b){throw d.addToError(b)}return g!==!1&&d.walk&&(g=d.walk(h)),g})}walkAtRules(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return d(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="atrule")return d(m,g)}))}walkComments(h){return this.walk((d,m)=>{if(d.type==="comment")return h(d,m)})}walkDecls(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return d(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="decl")return d(m,g)}))}walkRules(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return d(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="rule")return d(m,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return c.registerParse=f=>{o=f},c.registerRule=f=>{p=f},c.registerAtRule=f=>{a=f},c.registerRoot=f=>{u=f},wr=c,c.default=c,c.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,p.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,u.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(h=>{c.rebuild(h)})},wr}var vr,_s;function wi(){if(_s)return vr;_s=1;let e=Te();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return vr=t,t.default=t,e.registerAtRule(t),vr}var br,Ns;function vi(){if(Ns)return br;Ns=1;let e=Te(),t,r;class n extends e{constructor(a){super(Q({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return n.registerLazyResult=i=>{t=i},n.registerProcessor=i=>{r=i},br=n,n.default=n,br}var Sr,Os;function Wa(){if(Os)return Sr;Os=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Sr={nanoid:(n=21)=>{let i="",a=n|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(n,i=21)=>(a=i)=>{let o="",u=a|0;for(;u--;)o+=n[Math.random()*n.length|0];return o}},Sr}var Er,As;function Qn(){if(As)return Er;As=1;let{existsSync:e,readFileSync:t}=ge,{dirname:r,join:n}=ge,{SourceMapConsumer:i,SourceMapGenerator:a}=ge;function o(p){return Buffer?Buffer.from(p,"base64").toString():window.atob(p)}class u{constructor(l,s){if(s.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let c=s.map?s.map.prev:void 0,f=this.loadMap(s.from,c);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=r(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(l){let s=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,d=l.match(f)||l.match(h);if(d)return decodeURIComponent(l.substr(d[0].length));let m=l.match(s)||l.match(c);if(m)return o(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let s=l.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let c=l.lastIndexOf(s.pop()),f=l.indexOf("*/",c);c>-1&&f>-1&&(this.annotation=this.getAnnotationURL(l.substring(c,f)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let c=s(l);if(c){let f=this.loadFile(c);if(!f)throw new Error("Unable to load previous source map: "+c.toString());return f}}else{if(s instanceof i)return a.fromSourceMap(s).toString();if(s instanceof a)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return l&&(c=n(r(l),c)),this.loadFile(c)}}}startWith(l,s){return l?l.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Er=u,u.default=u,Er}var Cr,Ds;function Pt(){if(Ds)return Cr;Ds=1;let{nanoid:e}=Wa(),{isAbsolute:t,resolve:r}=ge,{SourceMapConsumer:n,SourceMapGenerator:i}=ge,{fileURLToPath:a,pathToFileURL:o}=ge,u=gi(),p=Qn(),l=ge,s=Symbol("fromOffsetCache"),c=!!(n&&i),f=!!(r&&t);class h{constructor(m,g={}){if(m===null||typeof m=="undefined"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,g.document&&(this.document=g.document.toString()),g.from&&(!f||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=r(g.from)),f&&c){let b=new p(this.css,g);if(b.text){this.map=b;let y=b.consumer().file;!this.file&&y&&(this.file=this.mapResolve(y))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(m,g,b,y={}){let S,C,w;if(g&&typeof g=="object"){let E=g,R=b;if(typeof E.offset=="number"){let A=this.fromOffset(E.offset);g=A.line,b=A.col}else g=E.line,b=E.column;if(typeof R.offset=="number"){let A=this.fromOffset(R.offset);C=A.line,S=A.col}else C=R.line,S=R.column}else if(!b){let E=this.fromOffset(g);g=E.line,b=E.col}let v=this.origin(g,b,C,S);return v?w=new u(m,v.endLine===void 0?v.line:{column:v.column,line:v.line},v.endLine===void 0?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,y.plugin):w=new u(m,C===void 0?g:{column:b,line:g},C===void 0?b:{column:S,line:C},this.css,this.file,y.plugin),w.input={column:b,endColumn:S,endLine:C,line:g,source:this.css},this.file&&(o&&(w.input.url=o(this.file).toString()),w.input.file=this.file),w}fromOffset(m){let g,b;if(this[s])b=this[s];else{let S=this.css.split(`
62
- `);b=new Array(S.length);let C=0;for(let w=0,v=S.length;w<v;w++)b[w]=C,C+=S[w].length+1;this[s]=b}g=b[b.length-1];let y=0;if(m>=g)y=b.length-1;else{let S=b.length-2,C;for(;y<S;)if(C=y+(S-y>>1),m<b[C])S=C-1;else if(m>=b[C+1])y=C+1;else{y=C;break}}return{col:m-b[y]+1,line:y+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:r(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,g,b,y){if(!this.map)return!1;let S=this.map.consumer(),C=S.originalPositionFor({column:g,line:m});if(!C.source)return!1;let w;typeof b=="number"&&(w=S.originalPositionFor({column:y,line:b}));let v;t(C.source)?v=o(C.source):v=new URL(C.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let E={column:C.column,endColumn:w&&w.column,endLine:w&&w.line,line:C.line,url:v.toString()};if(v.protocol==="file:")if(a)E.file=a(v);else throw new Error("file: protocol is not available in this PostCSS build");let R=S.sourceContentFor(C.source);return R&&(E.source=R),E}toJSON(){let m={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(m[g]=this[g]);return this.map&&(m.map=Q({},this.map),m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return Cr=h,h.default=h,l&&l.registerInput&&l.registerInput(h),Cr}var Rr,Ps;function nt(){if(Ps)return Rr;Ps=1;let e=Te(),t,r;class n extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,u){let p=super.normalize(a);if(o){if(u==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let l of p)l.raws.before=o.raws.before}return p}removeChild(a,o){let u=this.index(a);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return n.registerLazyResult=i=>{t=i},n.registerProcessor=i=>{r=i},Rr=n,n.default=n,e.registerRoot(n),Rr}var xr,Ts;function Kn(){if(Ts)return xr;Ts=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
63
- `," "];return e.split(t,r)},split(t,r,n){let i=[],a="",o=!1,u=0,p=!1,l="",s=!1;for(let c of t)s?s=!1:c==="\\"?s=!0:p?c===l&&(p=!1):c==='"'||c==="'"?(p=!0,l=c):c==="("?u+=1:c===")"?u>0&&(u-=1):u===0&&r.includes(c)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=c;return(n||a!=="")&&i.push(a.trim()),i}};return xr=e,e.default=e,xr}var Mr,ks;function bi(){if(ks)return Mr;ks=1;let e=Te(),t=Kn();class r extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}}return Mr=r,r.default=r,e.registerRule(r),Mr}var _r,Is;function Va(){if(Is)return _r;Is=1;let e=wi(),t=st(),r=Dt(),n=Pt(),i=Qn(),a=nt(),o=bi();function u(p,l){if(Array.isArray(p))return p.map(d=>u(d));let f=p,{inputs:s}=f,c=He(f,["inputs"]);if(s){l=[];for(let d of s){let m=le(Q({},d),{__proto__:n.prototype});m.map&&(m.map=le(Q({},m.map),{__proto__:i.prototype})),l.push(m)}}if(c.nodes&&(c.nodes=p.nodes.map(d=>u(d,l))),c.source){let h=c.source,{inputId:d}=h,m=He(h,["inputId"]);c.source=m,d!=null&&(c.source.input=l[d])}if(c.type==="root")return new a(c);if(c.type==="decl")return new r(c);if(c.type==="rule")return new o(c);if(c.type==="comment")return new t(c);if(c.type==="atrule")return new e(c);throw new Error("Unknown node type: "+p.type)}return _r=u,u.default=u,_r}var Nr,Ls;function Zn(){if(Ls)return Nr;Ls=1;let{dirname:e,relative:t,resolve:r,sep:n}=ge,{SourceMapConsumer:i,SourceMapGenerator:a}=ge,{pathToFileURL:o}=ge,u=Pt(),p=!!(i&&a),l=!!(e&&r&&t&&n);class s{constructor(f,h,d,m){this.stringify=f,this.mapOpts=d.map||{},this.root=h,this.opts=d,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let h=`
46
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(o=>{if(typeof o.raws.between!="undefined")return a=o.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length===0&&(a=o.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(o=>{let c=o.parent;if(c&&c!==i&&c.parent&&c.parent===i&&typeof o.raws.before!="undefined"){let p=o.raws.before.split(`
47
+ `);return a=p[p.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(a=o.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let o=i[a],c=i.raws[a];return c&&c.value===o?c.raw:o}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return pr=r,r.default=r,pr}var dr,Ss;function Ot(){if(Ss)return dr;Ss=1;let e=Xn();function t(r,n){new e(n).stringify(r)}return dr=t,t.default=t,dr}var ht={},Cs;function yi(){return Cs||(Cs=1,ht.isClean=Symbol("isClean"),ht.my=Symbol("my")),ht}var mr,Es;function At(){if(Es)return mr;Es=1;let e=gi(),t=Xn(),r=Ot(),{isClean:n,my:i}=yi();function a(p,l){let s=new p.constructor;for(let u in p){if(!Object.prototype.hasOwnProperty.call(p,u)||u==="proxyCache")continue;let f=p[u],h=typeof f;u==="parent"&&h==="object"?l&&(s[u]=l):u==="source"?s[u]=f:Array.isArray(f)?s[u]=f.map(d=>a(d,s)):(h==="object"&&f!==null&&(f=a(f)),s[u]=f)}return s}function o(p,l){if(l&&typeof l.offset!="undefined")return l.offset;let s=1,u=1,f=0;for(let h=0;h<p.length;h++){if(u===l.line&&s===l.column){f=h;break}p[h]===`
48
+ `?(s=1,u+=1):s+=1}return f}class c{get proxyOf(){return this}constructor(l={}){this.raws={},this[n]=!1,this[i]=!0;for(let s in l)if(s==="nodes"){this.nodes=[];for(let u of l[s])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[s]=l[s]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let s=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let s in l)this[s]=l[s];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let s=a(this);for(let u in l)s[u]=l[u];return s}cloneAfter(l={}){let s=this.clone(l);return this.parent.insertAfter(this,s),s}cloneBefore(l={}){let s=this.clone(l);return this.parent.insertBefore(this,s),s}error(l,s={}){if(this.source){let{end:u,start:f}=this.rangeBy(s);return this.source.input.error(l,{column:f.column,line:f.line},{column:u.column,line:u.line},s)}return new e(l)}getProxyProcessor(){return{get(l,s){return s==="proxyOf"?l:s==="root"?()=>l.root().toProxy():l[s]},set(l,s,u){return l[s]===u||(l[s]=u,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&l.markDirty()),!0}}}markClean(){this[n]=!0}markDirty(){if(this[n]){this[n]=!1;let l=this;for(;l=l.parent;)l[n]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let s=this.source.start;if(l.index)s=this.positionInside(l.index);else if(l.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,h=u.slice(o(u,this.source.start),o(u,this.source.end)).indexOf(l.word);h!==-1&&(s=this.positionInside(h))}return s}positionInside(l){let s=this.source.start.column,u=this.source.start.line,f="document"in this.source.input?this.source.input.document:this.source.input.css,h=o(f,this.source.start),d=h+l;for(let m=h;m<d;m++)f[m]===`
49
+ `?(s=1,u+=1):s+=1;return{column:s,line:u,offset:d}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:o(s,this.source.start)},f=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:o(s,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(l.word){let d=s.slice(o(s,this.source.start),o(s,this.source.end)).indexOf(l.word);d!==-1&&(u=this.positionInside(d),f=this.positionInside(d+l.word.length))}else l.start?u={column:l.start.column,line:l.start.line,offset:o(s,l.start)}:l.index&&(u=this.positionInside(l.index)),l.end?f={column:l.end.column,line:l.end.line,offset:o(s,l.end)}:typeof l.endIndex=="number"?f=this.positionInside(l.endIndex):l.index&&(f=this.positionInside(l.index+1));return(f.line<u.line||f.line===u.line&&f.column<=u.column)&&(f={column:u.column+1,line:u.line,offset:u.offset+1}),{end:f,start:u}}raw(l,s){return new t().raw(this,l,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let s=this,u=!1;for(let f of l)f===this?u=!0:u?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f);u||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,s){let u={},f=s==null;s=s||new Map;let h=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let m=this[d];if(Array.isArray(m))u[d]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)u[d]=m.toJSON(null,s);else if(d==="source"){if(m==null)continue;let g=s.get(m.input);g==null&&(g=h,s.set(m.input,h),h++),u[d]={end:m.end,inputId:g,start:m.start}}else u[d]=m}return f&&(u.inputs=[...s.keys()].map(d=>d.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let s="";return l(this,u=>{s+=u}),s}warn(l,s,u={}){let f={node:this};for(let h in u)f[h]=u[h];return l.warn(s,f)}}return mr=c,c.default=c,mr}var gr,xs;function st(){if(xs)return gr;xs=1;let e=At();class t extends e{constructor(n){super(n),this.type="comment"}}return gr=t,t.default=t,gr}var yr,Rs;function Dt(){if(Rs)return yr;Rs=1;let e=At();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(n){n&&typeof n.value!="undefined"&&typeof n.value!="string"&&(n=le(Q({},n),{value:String(n.value)})),super(n),this.type="decl"}}return yr=t,t.default=t,yr}var wr,Ms;function Te(){if(Ms)return wr;Ms=1;let e=st(),t=Dt(),r=At(),{isClean:n,my:i}=yi(),a,o,c,p;function l(f){return f.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function s(f){if(f[n]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)s(h)}class u extends r{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...h){for(let d of h){let m=this.normalize(d,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let d of this.nodes)d.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let d=this.getIterator(),m,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(m=this.indexes[d],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,d){return d==="proxyOf"?h:h[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...m)=>h[d](...m.map(g=>typeof g=="function"?(v,y)=>g(v.toProxy(),y):g)):d==="every"||d==="some"?m=>h[d]((g,...v)=>m(g.toProxy(),...v)):d==="root"?()=>h.root().toProxy():d==="nodes"?h.nodes.map(m=>m.toProxy()):d==="first"||d==="last"?h[d].toProxy():h[d]:h[d]},set(h,d,m){return h[d]===m||(h[d]=m,(d==="name"||d==="params"||d==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,d){let m=this.index(h),g=this.normalize(d,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let y of g)this.proxyOf.nodes.splice(m+1,0,y);let v;for(let y in this.indexes)v=this.indexes[y],m<v&&(this.indexes[y]=v+g.length);return this.markDirty(),this}insertBefore(h,d){let m=this.index(h),g=m===0?"prepend":!1,v=this.normalize(d,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of v)this.proxyOf.nodes.splice(m,0,S);let y;for(let S in this.indexes)y=this.indexes[S],m<=y&&(this.indexes[S]=y+v.length);return this.markDirty(),this}normalize(h,d){if(typeof h=="string")h=l(o(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new p(h)];else if(h.name)h=[new a(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[n]&&s(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let d of h){let m=this.normalize(d,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let d;for(let m in this.indexes)d=this.indexes[m],d>=h&&(this.indexes[m]=d-1);return this.markDirty(),this}replaceValues(h,d,m){return m||(m=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((d,m)=>{let g;try{g=h(d,m)}catch(v){throw d.addToError(v)}return g!==!1&&d.walk&&(g=d.walk(h)),g})}walkAtRules(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return d(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="atrule")return d(m,g)}))}walkComments(h){return this.walk((d,m)=>{if(d.type==="comment")return h(d,m)})}walkDecls(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&h.test(m.prop))return d(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="decl")return d(m,g)}))}walkRules(h,d){return d?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return d(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return d(m,g)}):(d=h,this.walk((m,g)=>{if(m.type==="rule")return d(m,g)}))}}return u.registerParse=f=>{o=f},u.registerRule=f=>{p=f},u.registerAtRule=f=>{a=f},u.registerRoot=f=>{c=f},wr=u,u.default=u,u.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,a.prototype):f.type==="rule"?Object.setPrototypeOf(f,p.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,c.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(h=>{u.rebuild(h)})},wr}var vr,_s;function wi(){if(_s)return vr;_s=1;let e=Te();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return vr=t,t.default=t,e.registerAtRule(t),vr}var br,Ns;function vi(){if(Ns)return br;Ns=1;let e=Te(),t,r;class n extends e{constructor(a){super(Q({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return n.registerLazyResult=i=>{t=i},n.registerProcessor=i=>{r=i},br=n,n.default=n,br}var Sr,Os;function Wa(){if(Os)return Sr;Os=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Sr={nanoid:(n=21)=>{let i="",a=n|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(n,i=21)=>(a=i)=>{let o="",c=a|0;for(;c--;)o+=n[Math.random()*n.length|0];return o}},Sr}var Cr,As;function Qn(){if(As)return Cr;As=1;let{existsSync:e,readFileSync:t}=ge,{dirname:r,join:n}=ge,{SourceMapConsumer:i,SourceMapGenerator:a}=ge;function o(p){return Buffer?Buffer.from(p,"base64").toString():window.atob(p)}class c{constructor(l,s){if(s.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let u=s.map?s.map.prev:void 0,f=this.loadMap(s.from,u);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=r(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(l){let s=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,d=l.match(f)||l.match(h);if(d)return decodeURIComponent(l.substr(d[0].length));let m=l.match(s)||l.match(u);if(m)return o(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let s=l.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let u=l.lastIndexOf(s.pop()),f=l.indexOf("*/",u);u>-1&&f>-1&&(this.annotation=this.getAnnotationURL(l.substring(u,f)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let u=s(l);if(u){let f=this.loadFile(u);if(!f)throw new Error("Unable to load previous source map: "+u.toString());return f}}else{if(s instanceof i)return a.fromSourceMap(s).toString();if(s instanceof a)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return l&&(u=n(r(l),u)),this.loadFile(u)}}}startWith(l,s){return l?l.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Cr=c,c.default=c,Cr}var Er,Ds;function Pt(){if(Ds)return Er;Ds=1;let{nanoid:e}=Wa(),{isAbsolute:t,resolve:r}=ge,{SourceMapConsumer:n,SourceMapGenerator:i}=ge,{fileURLToPath:a,pathToFileURL:o}=ge,c=gi(),p=Qn(),l=ge,s=Symbol("lineToIndexCache"),u=!!(n&&i),f=!!(r&&t);function h(m){if(m[s])return m[s];let g=m.css.split(`
50
+ `),v=new Array(g.length),y=0;for(let S=0,E=g.length;S<E;S++)v[S]=y,y+=g[S].length+1;return m[s]=v,v}class d{get from(){return this.file||this.id}constructor(g,v={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,v.document&&(this.document=v.document.toString()),v.from&&(!f||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=r(v.from)),f&&u){let y=new p(this.css,v);if(y.text){this.map=y;let S=y.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,v,y,S={}){let E,w,b,C,x;if(v&&typeof v=="object"){let R=v,I=y;if(typeof R.offset=="number"){C=R.offset;let T=this.fromOffset(C);v=T.line,y=T.col}else v=R.line,y=R.column,C=this.fromLineAndColumn(v,y);if(typeof I.offset=="number"){b=I.offset;let T=this.fromOffset(b);w=T.line,E=T.col}else w=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(y)C=this.fromLineAndColumn(v,y);else{C=v;let R=this.fromOffset(C);v=R.line,y=R.col}let _=this.origin(v,y,w,E);return _?x=new c(g,_.endLine===void 0?_.line:{column:_.column,line:_.line},_.endLine===void 0?_.column:{column:_.endColumn,line:_.endLine},_.source,_.file,S.plugin):x=new c(g,w===void 0?v:{column:y,line:v},w===void 0?y:{column:E,line:w},this.css,this.file,S.plugin),x.input={column:y,endColumn:E,endLine:w,endOffset:b,line:v,offset:C,source:this.css},this.file&&(o&&(x.input.url=o(this.file).toString()),x.input.file=this.file),x}fromLineAndColumn(g,v){return h(this)[g-1]+v-1}fromOffset(g){let v=h(this),y=v[v.length-1],S=0;if(g>=y)S=v.length-1;else{let E=v.length-2,w;for(;S<E;)if(w=S+(E-S>>1),g<v[w])E=w-1;else if(g>=v[w+1])S=w+1;else{S=w;break}}return{col:g-v[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,v,y,S){if(!this.map)return!1;let E=this.map.consumer(),w=E.originalPositionFor({column:v,line:g});if(!w.source)return!1;let b;typeof y=="number"&&(b=E.originalPositionFor({column:S,line:y}));let C;t(w.source)?C=o(w.source):C=new URL(w.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let x={column:w.column,endColumn:b&&b.column,endLine:b&&b.line,line:w.line,url:C.toString()};if(C.protocol==="file:")if(a)x.file=a(C);else throw new Error("file: protocol is not available in this PostCSS build");let _=E.sourceContentFor(w.source);return _&&(x.source=_),x}toJSON(){let g={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(g[v]=this[v]);return this.map&&(g.map=Q({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Er=d,d.default=d,l&&l.registerInput&&l.registerInput(d),Er}var xr,Ps;function nt(){if(Ps)return xr;Ps=1;let e=Te(),t,r;class n extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,o,c){let p=super.normalize(a);if(o){if(c==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let l of p)l.raws.before=o.raws.before}return p}removeChild(a,o){let c=this.index(a);return!o&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return n.registerLazyResult=i=>{t=i},n.registerProcessor=i=>{r=i},xr=n,n.default=n,e.registerRoot(n),xr}var Rr,Ts;function Kn(){if(Ts)return Rr;Ts=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
51
+ `," "];return e.split(t,r)},split(t,r,n){let i=[],a="",o=!1,c=0,p=!1,l="",s=!1;for(let u of t)s?s=!1:u==="\\"?s=!0:p?u===l&&(p=!1):u==='"'||u==="'"?(p=!0,l=u):u==="("?c+=1:u===")"?c>0&&(c-=1):c===0&&r.includes(u)&&(o=!0),o?(a!==""&&i.push(a.trim()),a="",o=!1):a+=u;return(n||a!=="")&&i.push(a.trim()),i}};return Rr=e,e.default=e,Rr}var Mr,ks;function bi(){if(ks)return Mr;ks=1;let e=Te(),t=Kn();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,o=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(o)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return Mr=r,r.default=r,e.registerRule(r),Mr}var _r,Is;function ja(){if(Is)return _r;Is=1;let e=wi(),t=st(),r=Dt(),n=Pt(),i=Qn(),a=nt(),o=bi();function c(p,l){if(Array.isArray(p))return p.map(d=>c(d));let f=p,{inputs:s}=f,u=He(f,["inputs"]);if(s){l=[];for(let d of s){let m=le(Q({},d),{__proto__:n.prototype});m.map&&(m.map=le(Q({},m.map),{__proto__:i.prototype})),l.push(m)}}if(u.nodes&&(u.nodes=p.nodes.map(d=>c(d,l))),u.source){let h=u.source,{inputId:d}=h,m=He(h,["inputId"]);u.source=m,d!=null&&(u.source.input=l[d])}if(u.type==="root")return new a(u);if(u.type==="decl")return new r(u);if(u.type==="rule")return new o(u);if(u.type==="comment")return new t(u);if(u.type==="atrule")return new e(u);throw new Error("Unknown node type: "+p.type)}return _r=c,c.default=c,_r}var Nr,Ls;function Zn(){if(Ls)return Nr;Ls=1;let{dirname:e,relative:t,resolve:r,sep:n}=ge,{SourceMapConsumer:i,SourceMapGenerator:a}=ge,{pathToFileURL:o}=ge,c=Pt(),p=!!(i&&a),l=!!(e&&r&&t&&n);class s{constructor(f,h,d,m){this.stringify=f,this.mapOpts=d.map||{},this.root=h,this.opts=d,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let h=`
64
52
  `;this.css.includes(`\r
65
53
  `)&&(h=`\r
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(),l&&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,C)=>{if(this.css+=y,S&&C!=="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&&C!=="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 u(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,u=9,p=13,l=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,C=/[\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 u:case p:case o:{x=_;do x+=1,k=M.charCodeAt(x);while(k===a||k===i||k===u||k===p||k===o);I=["space",M.slice(_,x)],_=x-1;break}case l: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!==u&&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!==u&&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):(C.lastIndex=_+1,C.test(M),C.lastIndex===0?x=M.length-1:x=C.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 u(l){for(let s=l.length-1;s>=0;s--){let c=l[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]||u(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),C="";for(let w=y;w>0;w--){let v=S[w][0];if(C.trim().startsWith("!")&&v!=="space")break;C=S.pop()[1]+C}C.trim().startsWith("!")&&(f.important=!0,f.raws.important=C,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,C;for(let w=0;w<g;w+=1)d=f[w],m=d[0],m==="space"&&w===g-1&&!h?y=!1:m==="comment"?(C=f[w-1]?f[w-1][0]:"empty",S=f[w+1]?f[w+1][0]:"empty",!o[C]&&!o[S]?b.slice(-1)===","?y=!1:b+=d[1]:y=!1):b+=d[1];if(!y){let w=f.reduce((v,E)=>v+E[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),u=new r(o);try{u.parse()}catch(p){throw p}return u.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 Ei(){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=Ei(),a=nt(),o=Ot(),{isClean:u,my:p}=yi(),l=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(C){return typeof C=="object"&&typeof C.then=="function"}function m(C){let w=!1,v=s[C.type];return C.type==="decl"?w=C.prop.toLowerCase():C.type==="atrule"&&(w=C.name.toLowerCase()),w&&C.append?[v,v+"-"+w,h,v+"Exit",v+"Exit-"+w]:w?[v,v+"-"+w,v+"Exit",v+"Exit-"+w]:C.append?[v,h,v+"Exit"]:[v,v+"Exit"]}function g(C){let w;return C.type==="document"?w=["Document",h,"DocumentExit"]:C.type==="root"?w=["Root",h,"RootExit"]:w=m(C),{eventIndex:0,events:w,iterator:0,node:C,visitorIndex:0,visitors:[]}}function b(C){return C[u]=!1,C.nodes&&C.nodes.forEach(w=>b(w)),C}let y={};class S{constructor(w,v,E){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 E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=v.map);else{let A=n;E.syntax&&(A=E.syntax.parse),E.parser&&(A=E.parser),A.parse&&(A=A.parse);try{R=A(v,E)}catch(M){this.processed=!0,this.error=M}R&&!R[p]&&e.rebuild(R)}this.result=new i(w,R,E),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 E=this.result.lastPlugin;try{v&&v.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=E.postcssPlugin,w.setMessage()):E.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(v,E,R)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([v,R])};for(let v of this.plugins)if(typeof v=="object")for(let E in v){if(!c[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[E])if(typeof v[E]=="object")for(let R in v[E])R==="*"?w(v,E,v[E][R]):w(v,E+"-"+R.toLowerCase(),v[E][R]);else typeof v[E]=="function"&&w(v,E,v[E])}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],E=this.runOnRoot(v);if(d(E))try{await E}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[u];){w[u]=!0;let v=[g(w)];for(;v.length>0;){let E=this.visitTick(v);if(d(E))try{await E}catch(R){let A=v[v.length-1].node;throw this.handleError(R,A)}}}if(this.listeners.OnceExit)for(let[v,E]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(w.type==="document"){let R=w.nodes.map(A=>E(A,this.helpers));await Promise.all(R)}else await E(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(E=>w.Once(E,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[u];)w[u]=!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[E,R]of w){this.result.lastPlugin=E;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:E,visitors:R}=v;if(E.type!=="root"&&E.type!=="document"&&!E.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(E.toProxy(),this.helpers)}catch(k){throw this.handleError(k,E)}}if(v.iterator!==0){let M=v.iterator,B;for(;B=E.nodes[E.indexes[M]];)if(E.indexes[M]+=1,!B[u]){B[u]=!0,w.push(g(B));return}v.iterator=0,delete E.indexes[M]}let A=v.events;for(;v.eventIndex<A.length;){let M=A[v.eventIndex];if(v.eventIndex+=1,M===h){E.nodes&&E.nodes.length&&(E[u]=!0,v.iterator=E.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}w.pop()}walkSync(w){w[u]=!0;let v=m(w);for(let E of v)if(E===h)w.nodes&&w.each(R=>{R[u]||this.walkSync(R)});else{let R=this.listeners[E];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=C=>{y=C},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=Ei();let n=Ot(),i=io();class a{constructor(u,p,l){p=p.toString(),this.stringified=!1,this._processor=u,this._css=p,this._opts=l,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(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,p){return this.async().then(u,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 u,p=t;try{u=p(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}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 u=[];for(let p of o)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))u=u.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)u.push(p);else if(typeof p=="function")u.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,o,u):new t(this,o,u)}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(),u=Pt(),p=so(),l=Kn(),s=At(),c=Si(),f=Ga(),h=Ei(),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(C,w){let v=!1;function E(...A){console&&console.warn&&!v&&(v=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
68
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
69
- https://www.w3ctech.com/topic/2226`));let M=w(...A);return M.postcssPlugin=C,M.postcssVersion=new f().version,M}let R;return Object.defineProperty(E,"postcss",{get(){return R||(R=E()),R}}),E.process=function(A,M,B){return y([E(B)]).process(A,M)},E},y.stringify=g,y.parse=c,y.fromJSON=o,y.list=l,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=u,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 u=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:u.col,line:u.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 l=p.match(/^(\s*)([^]*\S)(\s*)$/);o.text=l[2],o.raws.left=l[1],o.raws.right=l[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 u,p;for(u=o-1;u>=0&&a[u][0]!=="word";u--);if(u===0||u<0)return;for(p=u-1;p>=0;p--)if(a[p][0]!=="space"){p+=1;break}let l=a.slice(u),s=a.slice(p,u);a.splice(p,a.length-p),this.spaces=s.map(c=>c[1]).join(""),this.decl(l)}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 Ci 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 Ci}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 u=e.contentDocument;if(!u)break;bt(u,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,u=a;u.paused!==void 0&&(u.paused?o.pause():o.play()),u.muted!==void 0&&(o.muted=u.muted),u.volume!==void 0&&(o.volume=u.volume),u.currentTime!==void 0&&(o.currentTime=u.currentTime),u.playbackRate!==void 0&&(o.playbackRate=u.playbackRate),u.loop!==void 0&&(o.loop=u.loop);break}case"CANVAS":{const o=t;if(o.rr_dataURL!==null){const u=document.createElement("img");u.onload=()=>{const p=i.getContext("2d");p&&p.drawImage(u,0,0,u.width,u.height)},u.src=o.rr_dataURL}o.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break}case"STYLE":{const o=i.sheet;o&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,o));break}case"DIALOG":{const o=i,u=a,p=o.open,l=o.matches("dialog:modal"),s=u.open,c=u.isModal,f=l!==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],u=r.getMeta(t);if(u!=null&&u.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 l=e.getContext("2d");l&&l.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,u=i.length-1,p=0,l=a.length-1,s=i[o],c=i[u],f=a[p],h=a[l],d,m;for(;o<=u&&p<=l;)if(s===void 0)s=i[++o];else if(c===void 0)c=i[--u];else if(Fe(s,f,r.mirror,n))s=i[++o],f=a[++p];else if(Fe(c,h,r.mirror,n))c=i[--u],h=a[--l];else if(Fe(s,h,r.mirror,n)){try{e.insertBefore(s,c.nextSibling)}catch(y){console.warn(y)}s=i[++o],h=a[--l]}else if(Fe(c,f,r.mirror,n)){try{e.insertBefore(c,s)}catch(y){console.warn(y)}c=i[--u],f=a[++p]}else{if(!d){d={};for(let S=o;S<=u;S++){const C=i[S];C&&r.mirror.hasNode(C)&&(d[r.mirror.getId(C)]=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(C){console.warn(C)}}f=a[++p]}if(o>u){const y=a[l+1];let S=null;for(y&&(S=r.mirror.getNode(n.getId(y)));p<=l;++p){const C=St(a[p],r.mirror,n);try{e.insertBefore(C,S)}catch(w){console.warn(w)}}}else if(p>l)for(;o<=u;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 Ci{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,u=gl(o);i=t.createElement(u);const p=i;for(const{name:l,value:s}of Array.from(o.attributes))p.attributes[l]=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 u=i.contentDocument;u&&n(u,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(u=>n(u,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(u=>{var p,l;return!!((l=(p=Object.getOwnPropertyDescriptor(r,u))==null?void 0:p.get)!=null&&l.toString().includes("[native code]"))})),a=e in Qs?Qs[e]:void 0,o=!!(a&&a.every(u=>{var p;return typeof r[u]=="function"&&((p=r[u])==null?void 0:p.toString().includes("[native code]"))}));if(i&&o)return ft[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const p=u.contentWindow;if(!p)return t.prototype;const l=p[e].prototype;return document.body.removeChild(u),l?ft[e]=l:r}catch(u){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 El(e){return _e("Node",e,"parentNode")}function Cl(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:El,parentElement:Cl,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
54
+ `),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(),l&&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,v;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))),v=y.match(/\n/g),v?(f+=v.length,g=y.lastIndexOf(`
55
+ `),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 c(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,c=9,p=13,l=91,s=93,u=40,f=41,h=123,d=125,m=59,g=42,v=58,y=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return Or=function(x,_={}){let R=x.css.valueOf(),I=_.ignoreErrors,T,J,U,M,q,L,V,H,z,X,ae=R.length,N=0,D=[],A=[];function O(){return N}function P(ie){throw x.error("Unclosed "+ie,N)}function j(){return A.length===0&&N>=ae}function ue(ie){if(A.length)return A.pop();if(N>=ae)return;let be=ie?ie.ignoreUnclosed:!1;switch(T=R.charCodeAt(N),T){case i:case a:case c:case p:case o:{M=N;do M+=1,T=R.charCodeAt(M);while(T===a||T===i||T===c||T===p||T===o);L=["space",R.slice(N,M)],N=M-1;break}case l:case s:case h:case d:case v:case m:case f:{let Ne=String.fromCharCode(T);L=[Ne,Ne,N];break}case u:{if(X=D.length?D.pop()[1]:"",z=R.charCodeAt(N+1),X==="url"&&z!==e&&z!==t&&z!==a&&z!==i&&z!==c&&z!==o&&z!==p){M=N;do{if(V=!1,M=R.indexOf(")",M+1),M===-1)if(I||be){M=N;break}else P("bracket");for(H=M;R.charCodeAt(H-1)===r;)H-=1,V=!V}while(V);L=["brackets",R.slice(N,M+1),N,M],N=M}else M=R.indexOf(")",N+1),J=R.slice(N,M+1),M===-1||w.test(J)?L=["(","(",N]:(L=["brackets",J,N,M],N=M);break}case e:case t:{q=T===e?"'":'"',M=N;do{if(V=!1,M=R.indexOf(q,M+1),M===-1)if(I||be){M=N+1;break}else P("string");for(H=M;R.charCodeAt(H-1)===r;)H-=1,V=!V}while(V);L=["string",R.slice(N,M+1),N,M],N=M;break}case y:{S.lastIndex=N+1,S.test(R),S.lastIndex===0?M=R.length-1:M=S.lastIndex-2,L=["at-word",R.slice(N,M+1),N,M],N=M;break}case r:{for(M=N,U=!0;R.charCodeAt(M+1)===r;)M+=1,U=!U;if(T=R.charCodeAt(M+1),U&&T!==n&&T!==a&&T!==i&&T!==c&&T!==p&&T!==o&&(M+=1,b.test(R.charAt(M)))){for(;b.test(R.charAt(M+1));)M+=1;R.charCodeAt(M+1)===a&&(M+=1)}L=["word",R.slice(N,M+1),N,M],N=M;break}default:{T===n&&R.charCodeAt(N+1)===g?(M=R.indexOf("*/",N+2)+1,M===0&&(I||be?M=R.length:P("comment")),L=["comment",R.slice(N,M+1),N,M],N=M):(E.lastIndex=N+1,E.test(R),E.lastIndex===0?M=R.length-1:M=E.lastIndex-2,L=["word",R.slice(N,M+1),N,M],D.push(L),N=M);break}}return N++,L}function ce(ie){A.push(ie)}return{back:ce,endOfFile:j,nextToken:ue,position:O}},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 c(l){for(let s=l.length-1;s>=0;s--){let u=l[s],f=u[3]||u[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 u=new e;u.name=s[1].slice(1),u.name===""&&this.unnamedAtrule(u,s),this.init(u,s[2]);let f,h,d,m=!1,g=!1,v=[],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===";"){u.source.end=this.getPosition(s[2]),u.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(d=v.length-1,h=v[d];h&&h[0]==="space";)h=v[--d];h&&(u.source.end=this.getPosition(h[3]||h[2]),u.source.end.offset++)}this.end(s);break}else v.push(s);else v.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(u.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(u,"params",v),m&&(s=v[v.length-1],u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(s){let u=this.colon(s);if(u===!1)return;let f=0,h;for(let d=u-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 u=0,f,h,d;for(let[m,g]of s.entries()){if(h=g,d=h[0],d==="("&&(u+=1),d===")"&&(u-=1),u===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 u=new t;this.init(u,s[2]),u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++;let f=s[1].slice(2,-2);if(/^\s*$/.test(f))u.text="",u.raws.left=f,u.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);u.text=h[2],u.raws.left=h[1],u.raws.right=h[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(s,u){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]||c(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 b=S[w][0];if(E.trim().startsWith("!")&&b!=="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),u),f.value.includes(":")&&!u&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let u=new i;this.init(u,s[2]),u.selector="",u.raws.between="",this.current=u}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 u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(s[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(s){let u=this.input.fromOffset(s);return{column:u.col,line:u.line,offset:s}}init(s,u){this.current.push(s),s.source={input:this.input,start:this.getPosition(u)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let u=!1,f=null,h=!1,d=null,m=[],g=s[1].startsWith("--"),v=[],y=s;for(;y;){if(f=y[0],v.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(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),u=!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()&&(u=!0),m.length>0&&this.unclosedBracket(d),u&&h){if(!g)for(;v.length&&(y=v[v.length-1][0],!(y!=="space"&&y!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}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,u,f,h){let d,m,g=f.length,v="",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]?v.slice(-1)===","?y=!1:v+=d[1]:y=!1):v+=d[1];if(!y){let w=f.reduce((b,C)=>b+C[1],"");s.raws[u]={raw:w,value:v}}s[u]=v}rule(s){s.pop();let u=new i;this.init(u,s[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(u,"selector",s),this.current=u}spacesAndCommentsFromEnd(s){let u,f="";for(;s.length&&(u=s[s.length-1][0],!(u!=="space"&&u!=="comment"));)f=s.pop()[1]+f;return f}spacesAndCommentsFromStart(s){let u,f="";for(;s.length&&(u=s[0][0],!(u!=="space"&&u!=="comment"));)f+=s.shift()[1];return f}spacesFromEnd(s){let u,f="";for(;s.length&&(u=s[s.length-1][0],u==="space");)f=s.pop()[1]+f;return f}stringFrom(s,u){let f="";for(let h=u;h<s.length;h++)f+=s[h][1];return s.splice(u,s.length-u),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 "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[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),c=new r(o);try{c.parse()}catch(p){throw p}return c.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{get content(){return this.css}constructor(n,i,a){this.processor=n,this.messages=[],this.root=i,this.opts=a,this.css="",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")}}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,js;function so(){if(js)return Ir;js=1;let e=Te(),t=vi(),r=Zn(),n=Si(),i=Ci(),a=nt(),o=Ot(),{isClean:c,my:p}=yi(),l=io();const s={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},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,b=s[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[b,b+"-"+w,h,b+"Exit",b+"Exit-"+w]:w?[b,b+"-"+w,b+"Exit",b+"Exit-"+w]:E.append?[b,h,b+"Exit"]:[b,b+"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 v(E){return E[c]=!1,E.nodes&&E.nodes.forEach(w=>v(w)),E}let y={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,b,C){this.stringified=!1,this.processed=!1;let x;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))x=v(b);else if(b instanceof S||b instanceof i)x=v(b.root),b.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let _=n;C.syntax&&(_=C.syntax.parse),C.parser&&(_=C.parser),_.parse&&(_=_.parse);try{x=_(b,C)}catch(R){this.processed=!0,this.error=R}x&&!x[p]&&e.rebuild(x)}this.result=new i(w,x,C),this.helpers=le(Q({},y),{postcss:y,result:this.result}),this.plugins=this.processor.plugins.map(_=>typeof _=="object"&&_.prepare?Q(Q({},_),_.prepare(this.result)):_)}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,b){let C=this.result.lastPlugin;try{b&&b.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=C.postcssPlugin,w.setMessage()):C.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(b,C,x)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,x])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[C])if(typeof b[C]=="object")for(let x in b[C])x==="*"?w(b,C,b[C][x]):w(b,C+"-"+x.toLowerCase(),b[C][x]);else typeof b[C]=="function"&&w(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let b=this.plugins[w],C=this.runOnRoot(b);if(d(C))try{await C}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[c];){w[c]=!0;let b=[g(w)];for(;b.length>0;){let C=this.visitTick(b);if(d(C))try{await C}catch(x){let _=b[b.length-1].node;throw this.handleError(x,_)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(w.type==="document"){let x=w.nodes.map(_=>C(_,this.helpers));await Promise.all(x)}else await C(w,this.helpers)}catch(x){throw this.handleError(x)}}}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 b=this.result.root.nodes.map(C=>w.Once(C,this.helpers));return d(b[0])?Promise.all(b):b}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,b=o;w.syntax&&(b=w.syntax.stringify),w.stringifier&&(b=w.stringifier),b.stringify&&(b=b.stringify);let x=new r(b,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[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 b=this.runOnRoot(w);if(d(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[c];)w[c]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let b of w.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,b){return this.async().then(w,b)}toString(){return this.css}visitSync(w,b){for(let[C,x]of w){this.result.lastPlugin=C;let _;try{_=x(b,this.helpers)}catch(R){throw this.handleError(R,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(d(_))throw this.getAsyncError()}}visitTick(w){let b=w[w.length-1],{node:C,visitors:x}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){w.pop();return}if(x.length>0&&b.visitorIndex<x.length){let[R,I]=x[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===x.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=R;try{return I(C.toProxy(),this.helpers)}catch(T){throw this.handleError(T,C)}}if(b.iterator!==0){let R=b.iterator,I;for(;I=C.nodes[C.indexes[R]];)if(C.indexes[R]+=1,!I[c]){I[c]=!0,w.push(g(I));return}b.iterator=0,delete C.indexes[R]}let _=b.events;for(;b.eventIndex<_.length;){let R=_[b.eventIndex];if(b.eventIndex+=1,R===h){C.nodes&&C.nodes.length&&(C[c]=!0,b.iterator=C.getIterator());return}else if(this.listeners[R]){b.visitors=this.listeners[R];return}}w.pop()}walkSync(w){w[c]=!0;let b=m(w);for(let C of b)if(C===h)w.nodes&&w.each(x=>{x[c]||this.walkSync(x)});else{let x=this.listeners[C];if(x&&this.visitSync(x,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{y=E},Ir=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),Ir}var Lr,Vs;function Va(){if(Vs)return Lr;Vs=1;let e=Zn(),t=Si();const r=Ci();let n=Ot(),i=io();class a{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 c,p=t;try{c=p(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(c,p,l){p=p.toString(),this.stringified=!1,this._processor=c,this._css=p,this._opts=l,this._map=void 0;let s,u=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(u,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(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,p){return this.async().then(c,p)}toString(){return this._css}warnings(){return[]}}return Lr=a,a.default=a,Lr}var Fr,Gs;function Ga(){if(Gs)return Fr;Gs=1;let e=vi(),t=so(),r=Va(),n=nt();class i{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let c=[];for(let p of o)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))c=c.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)c.push(p);else if(typeof p=="function")c.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return c}process(o,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new r(this,o,c):new t(this,o,c)}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=ja(),c=Pt(),p=so(),l=Kn(),s=At(),u=Si(),f=Ga(),h=Ci(),d=nt(),m=bi(),g=Ot(),v=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 b=!1;function C(..._){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
56
+ 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:
57
+ https://www.w3ctech.com/topic/2226`));let R=w(..._);return R.postcssPlugin=E,R.postcssVersion=new f().version,R}let x;return Object.defineProperty(C,"postcss",{get(){return x||(x=C()),x}}),C.process=function(_,R,I){return y([C(I)]).process(_,R)},C},y.stringify=g,y.parse=u,y.fromJSON=o,y.list=l,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=v,y.AtRule=e,y.Result=h,y.Input=c,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 c=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:c.col,line:c.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 l=p.match(/^(\s*)([^]*\S)(\s*)$/);o.text=l[2],o.raws.left=l[1],o.raws.right=l[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 c,p;for(c=o-1;c>=0&&a[c][0]!=="word";c--);if(c===0||c<0)return;for(p=c-1;p>=0;p--)if(a[p][0]!=="space"){p+=1;break}let l=a.slice(c),s=a.slice(p,c);a.splice(p,a.length-p),this.spaces=s.map(u=>u[1]).join(""),this.decl(l)}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){k(this,"parentElement",null),k(this,"parentNode",null),k(this,"ownerDocument"),k(this,"firstChild",null),k(this,"lastChild",null),k(this,"previousSibling",null),k(this,"nextSibling",null),k(this,"ELEMENT_NODE",1),k(this,"TEXT_NODE",3),k(this,"nodeType"),k(this,"nodeName"),k(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),k(this,"nodeType",9),k(this,"nodeName","#document"),k(this,"compatMode","CSS1Compat"),k(this,"RRNodeType",W.Document),k(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=xi(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(),k(this,"nodeType",10),k(this,"RRNodeType",W.DocumentType),k(this,"name"),k(this,"publicId"),k(this,"systemId"),k(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(),k(this,"nodeType",1),k(this,"RRNodeType",W.Element),k(this,"tagName"),k(this,"attributes",{}),k(this,"shadowRoot",null),k(this,"scrollLeft"),k(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 xi(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),k(this,"currentTime"),k(this,"volume"),k(this,"paused"),k(this,"muted"),k(this,"playbackRate"),k(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),k(this,"tagName","DIALOG"),k(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(),k(this,"nodeType",3),k(this,"nodeName","#text"),k(this,"RRNodeType",W.Text),k(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(),k(this,"nodeType",8),k(this,"nodeName","#comment"),k(this,"RRNodeType",W.Comment),k(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(),k(this,"nodeName","#cdata-section"),k(this,"nodeType",4),k(this,"RRNodeType",W.CDATA),k(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(k(this,"onChange"),k(this,"classes",[]),k(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(" "))}),k(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 xi(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 xi(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)),!Ri(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 c=e.contentDocument;if(!c)break;bt(c,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,c=a;c.paused!==void 0&&(c.paused?o.pause():o.play()),c.muted!==void 0&&(o.muted=c.muted),c.volume!==void 0&&(o.volume=c.volume),c.currentTime!==void 0&&(o.currentTime=c.currentTime),c.playbackRate!==void 0&&(o.playbackRate=c.playbackRate),c.loop!==void 0&&(o.loop=c.loop);break}case"CANVAS":{const o=t;if(o.rr_dataURL!==null){const c=document.createElement("img");c.onload=()=>{const p=i.getContext("2d");p&&p.drawImage(c,0,0,c.width,c.height)},c.src=o.rr_dataURL}o.canvasMutations.forEach(c=>r.applyCanvas(c.event,c.mutation,e));break}case"STYLE":{const o=i.sheet;o&&t.rules.forEach(c=>r.applyStyleSheetMutation(c,o));break}case"DIALOG":{const o=i,c=a,p=o.open,l=o.matches("dialog:modal"),s=c.open,u=c.isModal,f=l!==u,h=p!==s;if((f||p&&h)&&o.close(),s&&(h||f))try{u?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],c=r.getMeta(t);if(c!=null&&c.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 l=e.getContext("2d");l&&l.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,c=i.length-1,p=0,l=a.length-1,s=i[o],u=i[c],f=a[p],h=a[l],d,m;for(;o<=c&&p<=l;)if(s===void 0)s=i[++o];else if(u===void 0)u=i[--c];else if(Fe(s,f,r.mirror,n))s=i[++o],f=a[++p];else if(Fe(u,h,r.mirror,n))u=i[--c],h=a[--l];else if(Fe(s,h,r.mirror,n)){try{e.insertBefore(s,u.nextSibling)}catch(y){console.warn(y)}s=i[++o],h=a[--l]}else if(Fe(u,f,r.mirror,n)){try{e.insertBefore(u,s)}catch(y){console.warn(y)}u=i[--c],f=a[++p]}else{if(!d){d={};for(let S=o;S<=c;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>c){const y=a[l+1];let S=null;for(y&&(S=r.mirror.getNode(n.getId(y)));p<=l;++p){const E=St(a[p],r.mirror,n);try{e.insertBefore(E,S)}catch(w){console.warn(w)}}}else if(p>l)for(;o<=c;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,v=t.firstChild;for(;g!==null&&v!==null;)bt(g,v,r,n),g=g.nextSibling,v=v.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&&Ri(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 Ri(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:Ri(e,t)}class $e extends Ei{constructor(t){super(),k(this,"UNSERIALIZED_STARTING_ID",-2),k(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),k(this,"mirror",wl()),k(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),k(this,"inputData",null),k(this,"scrollData",null)}}class ll extends el{}class ul extends tl{}class cl extends kt{constructor(){super(...arguments),k(this,"rr_dataURL",null),k(this,"canvasMutations",[])}getContext(){return null}}class hl extends kt{constructor(){super(...arguments),k(this,"rules",[])}}class fl extends kt{constructor(t,r){super(t),k(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,c=gl(o);i=t.createElement(c);const p=i;for(const{name:l,value:s}of Array.from(o.attributes))p.attributes[l]=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 c=i.contentDocument;c&&n(c,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(c=>n(c,o)))}return n(e,null),r}function wl(){return new vl}class vl{constructor(){k(this,"idNodeMap",new Map),k(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(c=>{var p,l;return!!((l=(p=Object.getOwnPropertyDescriptor(r,c))==null?void 0:p.get)!=null&&l.toString().includes("[native code]"))})),a=e in Qs?Qs[e]:void 0,o=!!(a&&a.every(c=>{var p;return typeof r[c]=="function"&&((p=r[c])==null?void 0:p.toString().includes("[native code]"))}));if(i&&o)return ft[e]=t.prototype,t.prototype;try{const c=document.createElement("iframe");document.body.appendChild(c);const p=c.contentWindow;if(!p)return t.prototype;const l=p[e].prototype;return document.body.removeChild(c),l?ft[e]=l:r}catch(c){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 xl(e){return _e("Node",e,"textContent")}function Rl(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:xl,contains:Rl,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
58
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
71
- or you can use record.mirror to access the mirror instance during recording.`;let Ks={map:{},getId(){return console.error(Be),-1},getNode(){return console.error(Be),null},removeNodeFromMap(){console.error(Be)},has(){return console.error(Be),!1},reset(){console.error(Be)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ks=new Proxy(Ks,{get(e,t,r){return t==="map"&&console.error(Be),Reflect.get(e,t,r)}}));Date.now().toString();function Il(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Ll(e){const t={},r=(i,a)=>{const o={value:i,parent:a,children:[]};return t[i.node.id]=o,o},n=[];for(const i of e){const{nextId:a,parentId:o}=i;if(a&&a in t){const u=t[a];if(u.parent){const p=u.parent.children.indexOf(u);u.parent.children.splice(p,0,r(i,u.parent))}else{const p=n.indexOf(u);n.splice(p,0,r(i,null))}continue}if(o in t){const u=t[o];u.children.push(r(i,u));continue}n.push(r(i,null))}return n}function yo(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)yo(e.children[r],t)}function Vr(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function wo(e,t){var r,n;const i=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:n.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const a=i.getBoundingClientRect(),o=wo(i,t),u=a.height/i.clientHeight;return{x:a.x*o.relativeScale+o.x,y:a.y*o.relativeScale+o.y,relativeScale:u,absoluteScale:o.absoluteScale*u}}function pt(e){return e?e instanceof ye&&"shadowRoot"in e?!!e.shadowRoot:!!kl.shadowRoot(e):!1}function Je(e,t){const r=e[t[0]];return t.length===1?r:Je(r.cssRules[t[1]].cssRules,t.slice(2))}function Zs(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function Fl(e){const t=new Set,r=[];for(let n=e.length;n--;){const i=e[n];t.has(i.id)||(r.push(i),t.add(i.id))}return r}class Bl{constructor(){L(this,"id",1),L(this,"styleIDMap",new WeakMap),L(this,"idStyleMap",new Map)}getId(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}var te=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(te||{}),Y=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Y||{}),ne=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ne||{}),Et=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Et||{}),Zr=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Zr||{}),G=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(G||{}),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||{}),en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var dt=0;dt<en.length;dt++)Xe[en.charCodeAt(dt)]=dt;var Ul=function(e){var t=e.length*.75,r=e.length,n,i=0,a,o,u,p;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=new ArrayBuffer(t),s=new Uint8Array(l);for(n=0;n<r;n+=4)a=Xe[e.charCodeAt(n)],o=Xe[e.charCodeAt(n+1)],u=Xe[e.charCodeAt(n+2)],p=Xe[e.charCodeAt(n+3)],s[i++]=a<<2|o>>4,s[i++]=(o&15)<<4|u>>2,s[i++]=(u&3)<<6|p&63;return l};const zl=`(function() {
59
+ or you can use record.mirror to access the mirror instance during recording.`;let Ks={map:{},getId(){return console.error(Be),-1},getNode(){return console.error(Be),null},removeNodeFromMap(){console.error(Be)},has(){return console.error(Be),!1},reset(){console.error(Be)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ks=new Proxy(Ks,{get(e,t,r){return t==="map"&&console.error(Be),Reflect.get(e,t,r)}}));Date.now().toString();function Il(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Ll(e){const t={},r=(i,a)=>{const o={value:i,parent:a,children:[]};return t[i.node.id]=o,o},n=[];for(const i of e){const{nextId:a,parentId:o}=i;if(a&&a in t){const c=t[a];if(c.parent){const p=c.parent.children.indexOf(c);c.parent.children.splice(p,0,r(i,c.parent))}else{const p=n.indexOf(c);n.splice(p,0,r(i,null))}continue}if(o in t){const c=t[o];c.children.push(r(i,c));continue}n.push(r(i,null))}return n}function yo(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)yo(e.children[r],t)}function jr(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function wo(e,t){var r,n;const i=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:n.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const a=i.getBoundingClientRect(),o=wo(i,t),c=a.height/i.clientHeight;return{x:a.x*o.relativeScale+o.x,y:a.y*o.relativeScale+o.y,relativeScale:c,absoluteScale:o.absoluteScale*c}}function pt(e){return e?e instanceof ye&&"shadowRoot"in e?!!e.shadowRoot:!!kl.shadowRoot(e):!1}function Je(e,t){const r=e[t[0]];return t.length===1?r:Je(r.cssRules[t[1]].cssRules,t.slice(2))}function Zs(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function Fl(e){const t=new Set,r=[];for(let n=e.length;n--;){const i=e[n];t.has(i.id)||(r.push(i),t.add(i.id))}return r}class Bl{constructor(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}var te=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(te||{}),Y=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Y||{}),ne=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ne||{}),Ct=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ct||{}),Zr=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Zr||{}),G=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(G||{}),xe=(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))(xe||{}),en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var dt=0;dt<en.length;dt++)Xe[en.charCodeAt(dt)]=dt;var Ul=function(e){var t=e.length*.75,r=e.length,n,i=0,a,o,c,p;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=new ArrayBuffer(t),s=new Uint8Array(l);for(n=0;n<r;n+=4)a=Xe[e.charCodeAt(n)],o=Xe[e.charCodeAt(n+1)],c=Xe[e.charCodeAt(n+2)],p=Xe[e.charCodeAt(n+3)],s[i++]=a<<2|o>>4,s[i++]=(o&15)<<4|c>>2,s[i++]=(c&3)<<6|p&63;return l};const zl=`(function() {
72
60
  "use strict";
73
61
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
74
62
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -143,7 +131,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
143
131
  };
144
132
  })();
145
133
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
146
- `;typeof self!="undefined"&&self.Blob&&new Blob([zl],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Ii=e.contentWindow)==null?void 0:Ii.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Fn();function vo(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}const ql=Object.freeze(Object.defineProperty({__proto__:null,default:vo},Symbol.toStringTag,{value:"Module"}));function Wl(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,n=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||p,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(b){const y=["MSIE ","Trident/","Edge/"];return new RegExp(y.join("|")).test(b)}const u=o(e.navigator.userAgent)?1:0;function p(b,y){this.scrollLeft=b,this.scrollTop=y}function l(b){return .5*(1-Math.cos(Math.PI*b))}function s(b){if(b===null||typeof b!="object"||b.behavior===void 0||b.behavior==="auto"||b.behavior==="instant")return!0;if(typeof b=="object"&&b.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+b.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(b,y){if(y==="Y")return b.clientHeight+u<b.scrollHeight;if(y==="X")return b.clientWidth+u<b.scrollWidth}function f(b,y){const S=e.getComputedStyle(b,null)["overflow"+y];return S==="auto"||S==="scroll"}function h(b){const y=c(b,"Y")&&f(b,"Y"),S=c(b,"X")&&f(b,"X");return y||S}function d(b){for(;b!==t.body&&h(b)===!1;)b=b.parentNode||b.host;return b}function m(b){const y=a();let S,C,w,v=(y-b.startTime)/n;v=v>1?1:v,S=l(v),C=b.startX+(b.x-b.startX)*S,w=b.startY+(b.y-b.startY)*S,b.method.call(b.scrollable,C,w),(C!==b.x||w!==b.y)&&e.requestAnimationFrame(m.bind(e,b))}function g(b,y,S){let C,w,v,E;const R=a();b===t.body?(C=e,w=e.scrollX||e.pageXOffset,v=e.scrollY||e.pageYOffset,E=i.scroll):(C=b,w=b.scrollLeft,v=b.scrollTop,E=p),m({scrollable:C,method:E,startTime:R,startX:w,startY:v,x:y,y:S})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(s(arguments[0])===!0){i.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(s(arguments[0])){i.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(s(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const b=arguments[0].left,y=arguments[0].top;g.call(this,this,typeof b=="undefined"?this.scrollLeft:~~b,typeof y=="undefined"?this.scrollTop:~~y)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(s(arguments[0])===!0){i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(s(arguments[0])===!0){i.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const b=d(this),y=b.getBoundingClientRect(),S=this.getBoundingClientRect();b!==t.body?(g.call(this,b,b.scrollLeft+S.left-y.left,b.scrollTop+S.top-y.top),e.getComputedStyle(b).position!=="fixed"&&e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})):e.scrollBy({left:S.left,top:S.top,behavior:"smooth"})}}class Vl{constructor(t=[],r){L(this,"timeOffset",0),L(this,"speed"),L(this,"actions"),L(this,"raf",null),L(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const n=this.findActionIndex(t);this.actions.splice(n,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){const r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){const i=Math.floor((r+n)/2);if(this.actions[i].delay<t.delay)r=i+1;else if(this.actions[i].delay>t.delay)n=i-1;else return i+1}return r}}function tn(e,t){if(e.type===te.IncrementalSnapshot&&e.data.source===Y.MouseMove&&e.data.positions&&e.data.positions.length){const r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
134
+ `;typeof self!="undefined"&&self.Blob&&new Blob([zl],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Ii=e.contentWindow)==null?void 0:Ii.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Fn();function vo(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}const ql=Object.freeze(Object.defineProperty({__proto__:null,default:vo},Symbol.toStringTag,{value:"Module"}));function Wl(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,n=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||p,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(v){const y=["MSIE ","Trident/","Edge/"];return new RegExp(y.join("|")).test(v)}const c=o(e.navigator.userAgent)?1:0;function p(v,y){this.scrollLeft=v,this.scrollTop=y}function l(v){return .5*(1-Math.cos(Math.PI*v))}function s(v){if(v===null||typeof v!="object"||v.behavior===void 0||v.behavior==="auto"||v.behavior==="instant")return!0;if(typeof v=="object"&&v.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+v.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(v,y){if(y==="Y")return v.clientHeight+c<v.scrollHeight;if(y==="X")return v.clientWidth+c<v.scrollWidth}function f(v,y){const S=e.getComputedStyle(v,null)["overflow"+y];return S==="auto"||S==="scroll"}function h(v){const y=u(v,"Y")&&f(v,"Y"),S=u(v,"X")&&f(v,"X");return y||S}function d(v){for(;v!==t.body&&h(v)===!1;)v=v.parentNode||v.host;return v}function m(v){const y=a();let S,E,w,b=(y-v.startTime)/n;b=b>1?1:b,S=l(b),E=v.startX+(v.x-v.startX)*S,w=v.startY+(v.y-v.startY)*S,v.method.call(v.scrollable,E,w),(E!==v.x||w!==v.y)&&e.requestAnimationFrame(m.bind(e,v))}function g(v,y,S){let E,w,b,C;const x=a();v===t.body?(E=e,w=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,C=i.scroll):(E=v,w=v.scrollLeft,b=v.scrollTop,C=p),m({scrollable:E,method:C,startTime:x,startX:w,startY:b,x:y,y:S})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(s(arguments[0])===!0){i.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(s(arguments[0])){i.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(s(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const v=arguments[0].left,y=arguments[0].top;g.call(this,this,typeof v=="undefined"?this.scrollLeft:~~v,typeof y=="undefined"?this.scrollTop:~~y)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(s(arguments[0])===!0){i.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(s(arguments[0])===!0){i.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const v=d(this),y=v.getBoundingClientRect(),S=this.getBoundingClientRect();v!==t.body?(g.call(this,v,v.scrollLeft+S.left-y.left,v.scrollTop+S.top-y.top),e.getComputedStyle(v).position!=="fixed"&&e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})):e.scrollBy({left:S.left,top:S.top,behavior:"smooth"})}}class jl{constructor(t=[],r){F(this,"timeOffset",0),F(this,"speed"),F(this,"actions"),F(this,"raf",null),F(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const n=this.findActionIndex(t);this.actions.splice(n,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){const r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){const i=Math.floor((r+n)/2);if(this.actions[i].delay<t.delay)r=i+1;else if(this.actions[i].delay>t.delay)n=i-1;else return i+1}return r}}function tn(e,t){if(e.type===te.IncrementalSnapshot&&e.data.source===Y.MouseMove&&e.data.positions&&e.data.positions.length){const r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
147
135
  Copyright (c) Microsoft Corporation.
148
136
 
149
137
  Permission to use, copy, modify, and/or distribute this software for any
@@ -156,14 +144,14 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
156
144
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
157
145
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
158
146
  PERFORMANCE OF THIS SOFTWARE.
159
- ***************************************************************************** */function rn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(u){i={error:u}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}var qe;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(qe||(qe={}));var bo={type:"xstate.init"};function jr(e){return e===void 0?[]:[].concat(e)}function Ue(e){return{type:"xstate.assign",assignment:e}}function sn(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Ct(e){return function(t){return e===t}}function So(e){return typeof e=="string"?{type:e}:e}function nn(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Ct(e)}}function on(e,t,r){var n=t,i=!1;return[e.filter(function(a){if(a.type==="xstate.assign"){i=!0;var o=Object.assign({},n);return typeof a.assignment=="function"?o=a.assignment(n,r):Object.keys(a.assignment).forEach(function(u){o[u]=typeof a.assignment[u]=="function"?a.assignment[u](n,r):a.assignment[u]}),n=o,!1}return!0}),n,i]}function Eo(e,t){t===void 0&&(t={});var r=rn(on(jr(e.states[e.initial].entry).map(function(o){return sn(o,t.actions)}),e.context,bo),2),n=r[0],i=r[1],a={config:e,_options:t,initialState:{value:e.initial,actions:n,context:i,matches:Ct(e.initial)},transition:function(o,u){var p,l,s=typeof o=="string"?{value:o,context:e.context}:o,c=s.value,f=s.context,h=So(u),d=e.states[c];if(d.on){var m=jr(d.on[h.type]);try{for(var g=function(I){var j=typeof Symbol=="function"&&Symbol.iterator,H=j&&I[j],z=0;if(H)return H.call(I);if(I&&typeof I.length=="number")return{next:function(){return I&&z>=I.length&&(I=void 0),{value:I&&I[z++],done:!I}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}(m),b=g.next();!b.done;b=g.next()){var y=b.value;if(y===void 0)return nn(c,f);var S=typeof y=="string"?{target:y}:y,C=S.target,w=S.actions,v=w===void 0?[]:w,E=S.cond,R=E===void 0?function(){return!0}:E,A=C===void 0,M=C!=null?C:c,B=e.states[M];if(R(f,h)){var k=rn(on((A?jr(v):[].concat(d.exit,v,B.entry).filter(function(I){return I})).map(function(I){return sn(I,a._options.actions)}),f,h),3),J=k[0],U=k[1],x=k[2],q=C!=null?C:c;return{value:q,context:U,actions:J,changed:C!==c||J.length>0||x,matches:Ct(q)}}}}catch(I){p={error:I}}finally{try{b&&!b.done&&(l=g.return)&&l.call(g)}finally{if(p)throw p.error}}}return nn(c,f)}};return a}var an=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})};function Co(e){var t=e.initialState,r=qe.NotStarted,n=new Set,i={_machine:e,send:function(a){r===qe.Running&&(t=e.transition(t,a),an(t,So(a)),n.forEach(function(o){return o(t)}))},subscribe:function(a){return n.add(a),a(t),{unsubscribe:function(){return n.delete(a)}}},start:function(a){if(a){var o=typeof a=="object"?a:{context:e.config.context,value:a};t={value:o.value,actions:[],context:o.context,matches:Ct(o.value)}}return r=qe.Running,an(t,bo),i},stop:function(){return r=qe.Stopped,n.clear(),i},get state(){return t},get status(){return r}};return i}function jl(e,t){for(let r=e.length-1;r>=0;r--){const n=e[r];if(n.type===te.Meta&&n.timestamp<=t)return e.slice(r)}return e}function Gl(e,{getCastFn:t,applyEventsSynchronously:r,emitter:n}){const i=Eo({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Ue({lastPlayedEvent:(a,o)=>o.type==="CAST_EVENT"?o.payload.event:a.lastPlayedEvent}),recordTimeOffset:Ue((a,o)=>{let u=a.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(u=o.payload.timeOffset),le(Q({},a),{timeOffset:u,baselineTime:a.events[0].timestamp+u})}),play(a){var o;const{timer:u,events:p,baselineTime:l,lastPlayedEvent:s}=a;u.clear();for(const d of p)tn(d,l);const c=jl(p,l);let f=s==null?void 0:s.timestamp;(s==null?void 0:s.type)===te.IncrementalSnapshot&&s.data.source===Y.MouseMove&&(f=s.timestamp+((o=s.data.positions[0])==null?void 0:o.timeOffset)),l<(f||0)&&n.emit(G.PlayBack);const h=new Array;for(const d of c)if(!(f&&f<l&&(d.timestamp<=f||d===s)))if(d.timestamp<l)h.push(d);else{const m=t(d,!1);u.addAction({doAction:()=>{m()},delay:d.delay})}r(h),n.emit(G.Flush),u.start()},pause(a){a.timer.clear()},resetLastPlayedEvent:Ue(a=>le(Q({},a),{lastPlayedEvent:null})),startLive:Ue({baselineTime:(a,o)=>(a.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Ue((a,o)=>{const{baselineTime:u,timer:p,events:l}=a;if(o.type==="ADD_EVENT"){const{event:s}=o.payload;tn(s,u);let c=l.length-1;if(!l[c]||l[c].timestamp<=s.timestamp)l.push(s);else{let d=-1,m=0;for(;m<=c;){const g=Math.floor((m+c)/2);l[g].timestamp<=s.timestamp?m=g+1:c=g-1}d===-1&&(d=m),l.splice(d,0,s)}const f=s.timestamp<u,h=t(s,f);f?h():p.isActive()&&p.addAction({doAction:()=>{h()},delay:s.delay})}return le(Q({},a),{events:l})})}});return Co(i)}function $l(e){const t=Eo({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,n)=>{"payload"in n&&r.timer.setSpeed(n.payload.speed)},recordSpeed:Ue({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Co(t)}const Hl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],ln=new Map;function Ro(e,t){let r=ln.get(e);return r||(r=new Map,ln.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function xe(e,t,r){return async n=>{if(n&&typeof n=="object"&&"rr_type"in n)if(r&&(r.isUnchanged=!1),n.rr_type==="ImageBitmap"&&"args"in n){const i=await xe(e,t,r)(n.args);return await createImageBitmap.apply(null,i)}else if("index"in n){if(r||t===null)return n;const{rr_type:i,index:a}=n;return Ro(t,i)[a]}else if("args"in n){const{rr_type:i,args:a}=n,o=window[i];return new o(...await Promise.all(a.map(xe(e,t,r))))}else{if("base64"in n)return Ul(n.base64);if("src"in n){const i=e.get(n.src);if(i)return i;{const a=new Image;return a.src=n.src,e.set(n.src,a),a}}else if("data"in n&&n.rr_type==="Blob"){const i=await Promise.all(n.data.map(xe(e,t,r)));return new Blob(i,{type:n.type})}}else if(Array.isArray(n))return await Promise.all(n.map(xe(e,t,r)));return n}}function Yl(e,t){try{return t===Et.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const Jl=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Xl(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Jl.includes(r))return;const n=Ro(e,r);n.includes(t)||n.push(t)}async function Ql({mutation:e,target:t,type:r,imageMap:n,errorHandler:i}){try{const a=Yl(t,r);if(!a)return;if(e.setter){a[e.property]=e.args[0];return}const o=a[e.property],u=await Promise.all(e.args.map(xe(n,a))),p=o.apply(a,u);Xl(a,p);const l=!1}catch(a){i(e,a)}}async function Kl({event:e,mutations:t,target:r,imageMap:n,errorHandler:i}){const a=r.getContext("2d");if(!a){i(t[0],new Error("Canvas context is null"));return}const o=t.map(async p=>Promise.all(p.args.map(xe(n,a))));(await Promise.all(o)).forEach((p,l)=>{const s=t[l];try{if(s.setter){a[s.property]=s.args[0];return}const c=a[s.property];s.property==="drawImage"&&typeof s.args[0]=="string"?(n.get(e),c.apply(a,s.args)):c.apply(a,p)}catch(c){i(s,c)}})}async function un({event:e,mutation:t,target:r,imageMap:n,canvasEventMap:i,errorHandler:a}){try{const o=i.get(e)||t,u="commands"in o?o.commands:[o];if([Et.WebGL,Et.WebGL2].includes(t.type)){for(let p=0;p<u.length;p++){const l=u[p];await Ql({mutation:l,type:t.type,target:r,imageMap:n,errorHandler:a})}return}await Kl({event:e,mutations:u,target:r,imageMap:n,errorHandler:a})}catch(o){a(t,o)}}const cn=["AUDIO","VIDEO"];class Zl{constructor(t){L(this,"mediaMap",new Map),L(this,"warn"),L(this,"service"),L(this,"speedService"),L(this,"emitter"),L(this,"getCurrentTime"),L(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(G.Start,this.start.bind(this)),this.emitter.on(G.SkipStart,this.start.bind(this)),this.emitter.on(G.Pause,this.pause.bind(this)),this.emitter.on(G.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,n)=>{this.syncTargetWithState(n),t.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:n}){if(n.isPlaying){const a=(t-n.lastInteractionTimeOffset)/1e3*n.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let u=n.currentTimeAtLastInteraction+a;r.loop&&o!==!1&&(u=u%o),r.currentTime=u}else r.pause(),r.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const n=this.mediaMap.get(t);n&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:n})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:n}){var h,d,m,g,b;const i=this.mediaMap.get(t),{type:a,playbackRate:o,currentTime:u,muted:p,volume:l,loop:s}=n;return{isPlaying:a===Zr.Play||a!==Zr.Pause&&((i==null?void 0:i.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(h=u!=null?u:i==null?void 0:i.currentTimeAtLastInteraction)!=null?h:0,lastInteractionTimeOffset:r,playbackRate:(d=o!=null?o:i==null?void 0:i.playbackRate)!=null?d:1,volume:(m=l!=null?l:i==null?void 0:i.volume)!=null?m:1,muted:(g=p!=null?p:i==null?void 0:i.muted)!=null?g:t.getAttribute("muted")===null,loop:(b=s!=null?s:i==null?void 0:i.loop)!=null?b:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:n,loop:i,volume:a,isPlaying:o}=r,u=this.service.state.matches("paused"),p=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==a&&(t.volume=a),t.muted=n,t.loop=i,t.playbackRate!==p&&(t.playbackRate=p),o&&!u?t.play():t.pause()}catch(l){this.warn(`Failed to replay media interactions: ${l.message||l}`)}}addMediaElements(t,r,n){if(!this.isSupportedMediaElement(t))return;const i=t,a=n.getMeta(i);if(!a||!("attributes"in a))return;const o=this.service.state.matches("paused"),u=a.attributes;let p=!1;u.rr_mediaState?p=u.rr_mediaState==="played":p=i.getAttribute("autoplay")!==null,p&&o&&i.pause();let l=1;typeof u.rr_mediaPlaybackRate=="number"&&(l=u.rr_mediaPlaybackRate);let s=!1;typeof u.rr_mediaMuted=="boolean"?s=u.rr_mediaMuted:s=i.getAttribute("muted")!==null;let c=!1;typeof u.rr_mediaLoop=="boolean"?c=u.rr_mediaLoop:c=i.getAttribute("loop")!==null;let f=1;typeof u.rr_mediaVolume=="number"&&(f=u.rr_mediaVolume);let h=0;typeof u.rr_mediaCurrentTime=="number"&&(h=u.rr_mediaCurrentTime),this.mediaMap.set(i,{isPlaying:p,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:l,volume:f,muted:s,loop:c}),this.syncTargetWithState(i)}mediaMutation({target:t,timeOffset:r,mutation:n}){cn.includes(t.nodeName)&&(this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:n})),this.syncTargetWithState(t))}isSupportedMediaElement(t){return cn.includes(t.nodeName)}reset(){this.mediaMap.clear()}}function mt(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e,n=r.open,i=n&&r.matches("dialog:modal"),a=r.getAttribute("rr_open_mode"),o=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=a==="modal";if(!(n&&!(i&&a==="non-modal"||!i&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}n&&r.close(),o&&(u?r.showModal():r.show())}}function eu(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}const tu=5*1e3,ru=vo||ql,hn="[replayer]",Gr={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function fn(e){return e.type==te.IncrementalSnapshot&&(e.data.source==Y.TouchMove||e.data.source==Y.MouseInteraction&&e.data.type==ne.TouchStart)}class iu{constructor(t,r){if(L(this,"wrapper"),L(this,"iframe"),L(this,"service"),L(this,"speedService"),L(this,"config"),L(this,"usingVirtualDom",!1),L(this,"virtualDom",new $e),L(this,"mouse"),L(this,"mouseTail",null),L(this,"tailPositions",[]),L(this,"emitter",ru()),L(this,"nextUserInteractionEvent"),L(this,"legacy_missingNodeRetryMap",{}),L(this,"cache",gs()),L(this,"imageMap",new Map),L(this,"canvasEventMap",new Map),L(this,"mirror",Fn()),L(this,"styleMirror",new Bl),L(this,"mediaManager"),L(this,"firstFullSnapshot",null),L(this,"newDocumentQueue",[]),L(this,"mousePos",null),L(this,"touchActive",null),L(this,"lastMouseDownEvent",null),L(this,"lastHoveredRootNode"),L(this,"lastSelectionData",null),L(this,"constructedStyleMutations",[]),L(this,"adoptedStyleSheets",[]),L(this,"emitterHandlers",[]),L(this,"serviceSubscription"),L(this,"speedServiceSubscription"),L(this,"timeouts",new Set),L(this,"styleSheetLoadListeners",new Map),L(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const s of[this.mouseTail,this.iframe])s&&(s.setAttribute("width",String(l.width)),s.setAttribute("height",String(l.height)))}),L(this,"applyEventsSynchronously",l=>{for(const s of l){switch(s.type){case te.DomContentLoaded:case te.Load:case te.Custom:continue;case te.FullSnapshot:case te.Meta:case te.Plugin:case te.IncrementalSnapshot:break}this.getCastFn(s,!0)()}}),L(this,"getCastFn",(l,s=!1)=>{let c;switch(l.type){case te.DomContentLoaded:case te.Load:break;case te.Custom:c=()=>{this.emitter.emit(G.CustomEvent,l)};break;case te.Meta:c=()=>this.emitter.emit(G.Resize,{width:l.data.width,height:l.data.height});break;case te.FullSnapshot:c=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,s),(h=this.iframe.contentWindow)==null||h.scrollTo(l.data.initialOffset)};break;case te.IncrementalSnapshot:c=()=>{if(this.applyIncremental(l,s),!s&&(l===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const h of this.service.state.context.events)if(!(h.timestamp<=l.timestamp)&&this.isUserInteraction(h)){h.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-l.delay,d={speed:Math.min(Math.round(h/tu),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:d}),this.emitter.emit(G.SkipStart,d)}}};break}return()=>{c&&c();for(const d of this.config.plugins||[])d.handler&&d.handler(l,s,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[h]){const d=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(G.Finish))};let m=50;l.type===te.IncrementalSnapshot&&l.data.source===Y.MouseMove&&l.data.positions.length&&(m+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(d,m)}this.emitter.emit(G.EventCast,l)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Gr,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.addEmitterHandler(G.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});const i=()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(s,c,f)=>{un({event:s,mutation:c,target:f,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(s,c)=>{s.source===Y.StyleSheetRule?this.applyStyleSheetRule(s,c):s.source===Y.StyleDeclaration&&this.applyStyleDeclaration(s,c)},afterAppend:(s,c)=>{for(const f of this.config.plugins||[])f.onBuild&&f.onBuild(s,{id:c,replayer:this})}};if(this.iframe.contentDocument)try{bt(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(s){this.warn(s)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const s in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[s],f=St(c.node,this.mirror,this.virtualDom.mirror);bt(f,c.node,l,this.virtualDom.mirror),c.node=f}catch(c){this.warn(c)}this.constructedStyleMutations.forEach(s=>{this.applyStyleSheetMutation(s)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(s=>{this.applyAdoptedStyleSheet(s)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[l,s]=this.lastMouseDownEvent;l.dispatchEvent(s)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)};this.addEmitterHandler(G.Flush,i);const a=()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()};this.addEmitterHandler(G.PlayBack,a);const o=new Vl([],{speed:this.config.speed});this.service=Gl({events:t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,s)=>l.timestamp-s.timestamp),timer:o,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.serviceSubscription=this.service.subscribe(l=>{this.emitter.emit(G.StateChange,{player:l})}),this.speedService=$l({normalSpeed:-1,timer:o}),this.speedService.start(),this.speedServiceSubscription=this.speedService.subscribe(l=>{this.emitter.emit(G.StateChange,{speed:l})}),this.mediaManager=new Zl({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const u=this.service.state.context.events.find(l=>l.type===te.Meta),p=this.service.state.context.events.find(l=>l.type===te.FullSnapshot);if(u){const{width:l,height:s}=u.data;this.addTimeout(()=>{this.emitter.emit(G.Resize,{width:l,height:s})},0)}p&&this.addTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=p,this.rebuildFullSnapshot(p),(l=this.iframe.contentWindow)==null||l.scrollTo(p.data.initialOffset))},1),this.service.state.context.events.find(fn)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}addEmitterHandler(t,r){this.emitter.on(t,r),this.emitterHandlers.push({event:t,handler:r})}addTimeout(t,r){const n=setTimeout(()=>{this.timeouts.delete(n),t()},r);return this.timeouts.add(n),n}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed!="undefined"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail!="undefined"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,n;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.remove("rrweb-paused"),this.emitter.emit(G.Start)}pause(t){var r,n;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.add("rrweb-paused"),this.emitter.emit(G.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(G.Resume)}destroy(){var t,r;!this.wrapper||!this.wrapper.parentNode||(this.pause(),this.emitterHandlers.forEach(({event:n,handler:i})=>{this.emitter.off(n,i)}),this.emitterHandlers=[],(t=this.serviceSubscription)==null||t.unsubscribe(),(r=this.speedServiceSubscription)==null||r.unsubscribe(),this.serviceSubscription=void 0,this.speedServiceSubscription=void 0,this.timeouts.forEach(n=>clearTimeout(n)),this.timeouts.clear(),this.styleSheetLoadListeners.forEach((n,i)=>{i.removeEventListener("load",n)}),this.styleSheetLoadListeners.clear(),this.imageMap.clear(),this.canvasEventMap.clear(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.resetCache(),this.config.root.removeChild(this.wrapper),this.emitter.emit(G.Destroy))}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;fn(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=gs()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const t=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&t.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",t.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Wl(this.iframe.contentWindow,this.iframe.contentDocument),Il(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const n=[],i=new Set,a=(p,l)=>{if(p.nodeName==="DIALOG"&&i.add(p),this.collectIframeAndAttachDocument(n,p),this.mediaManager.isSupportedMediaElement(p)){const{events:s}=this.service.state.context;this.mediaManager.addMediaElements(p,t.timestamp-s[0].timestamp,this.mirror)}for(const s of this.config.plugins||[])s.onBuild&&s.onBuild(p,{id:l,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),Aa(t.data.node,{doc:this.iframe.contentDocument,afterAppend:a,cache:this.cache,mirror:this.mirror}),a(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:p,builtNode:l}of n)this.attachDocumentToIframe(p,l),this.newDocumentQueue=this.newDocumentQueue.filter(s=>s!==p);const{documentElement:o,head:u}=this.iframe.contentDocument;this.insertStyleRules(o,u),i.forEach(p=>mt(p)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(G.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var n;const i=Hl(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&i.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),this.usingVirtualDom){const a=this.virtualDom.createElement("style");this.virtualDom.mirror.add(a,mo(a,this.virtualDom.unserializedId)),t.insertBefore(a,r),a.rules.push({source:Y.StyleSheetRule,adds:i.map((o,u)=>({rule:o,index:u}))})}else{const a=document.createElement("style");t.insertBefore(a,r);for(let o=0;o<i.length;o++)(n=a.sheet)==null||n.insertRule(i[o],o)}}attachDocumentToIframe(t,r){const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,i=[],a=new Set,o=(u,p)=>{u.nodeName==="DIALOG"&&a.add(u),this.collectIframeAndAttachDocument(i,u);const l=n.getMeta(u);if((l==null?void 0:l.type)===Re.Element&&(l==null?void 0:l.tagName.toUpperCase())==="HTML"){const{documentElement:s,head:c}=r.contentDocument;this.insertStyleRules(s,c)}if(!this.usingVirtualDom)for(const s of this.config.plugins||[])s.onBuild&&s.onBuild(u,{id:p,replayer:this})};Ke(t.node,{doc:r.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(r.contentDocument,t.node.id);for(const{mutationInQueue:u,builtNode:p}of i)this.attachDocumentToIframe(u,p),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==u);a.forEach(u=>mt(u))}collectIframeAndAttachDocument(t,r){if(Vr(r,this.mirror)){const n=this.newDocumentQueue.find(i=>i.parentId===this.mirror.getId(r));n&&t.push({mutationInQueue:n,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const n=new Set;let i,a=this.service.state;const o=()=>{a=this.service.state};this.emitter.on(G.Start,o),this.emitter.on(G.Pause,o);const u=()=>{this.emitter.off(G.Start,o),this.emitter.off(G.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(p=>{p.sheet||(n.add(p),p.addEventListener("load",()=>{n.delete(p),n.size===0&&i!==-1&&(a.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(G.LoadStylesheetEnd),i&&clearTimeout(i),u())}))}),n.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(G.LoadStylesheetStart),i=setTimeout(()=>{a.matches("playing")&&this.play(this.getCurrentTime()),i=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===te.IncrementalSnapshot&&r.data.source===Y.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(i=>{this.preloadImages(i,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const n=document.createElement("canvas"),i=n.getContext("2d"),a=i==null?void 0:i.createImageData(n.width,n.height);i==null||i.putImageData(a,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const n={isUnchanged:!0};if("commands"in t){const i=await Promise.all(t.commands.map(async a=>{const o=await Promise.all(a.args.map(xe(this.imageMap,null,n)));return le(Q({},a),{args:o})}));n.isUnchanged===!1&&this.canvasEventMap.set(r,le(Q({},t),{commands:i}))}else{const i=await Promise.all(t.args.map(xe(this.imageMap,null,n)));n.isUnchanged===!1&&this.canvasEventMap.set(r,le(Q({},t),{args:i}))}}}applyIncremental(t,r){var n,i,a;const{data:o}=t;switch(o.source){case Y.Mutation:{try{this.applyMutation(o,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,o)}break}case Y.Drag:case Y.TouchMove:case Y.MouseMove:if(r){const u=o.positions[o.positions.length-1];this.mousePos={x:u.x,y:u.y,id:u.id,debugData:o}}else o.positions.forEach(u=>{const p={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,o)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(p)}),this.timer.addAction({doAction(){},delay:t.delay-((n=o.positions[0])==null?void 0:n.timeOffset)});break;case Y.MouseInteraction:{if(o.id===-1)break;const u=new Event(oa(ne[o.type])),p=this.mirror.getNode(o.id);if(!p)return this.debugNodeNotFound(o,o.id);this.emitter.emit(G.MouseInteraction,{type:o.type,target:p});const{triggerFocus:l}=this.config;switch(o.type){case ne.Blur:"blur"in p&&p.blur();break;case ne.Focus:l&&p.focus&&p.focus({preventScroll:!0});break;case ne.Click:case ne.TouchStart:case ne.TouchEnd:case ne.MouseDown:case ne.MouseUp:r?(o.type===ne.TouchStart?this.touchActive=!0:o.type===ne.TouchEnd&&(this.touchActive=!1),o.type===ne.MouseDown?this.lastMouseDownEvent=[p,u]:o.type===ne.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===ne.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===ne.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===ne.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===ne.TouchEnd?this.mouse.classList.remove("touch-active"):p.dispatchEvent(u));break;case ne.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:p.dispatchEvent(u)}break}case Y.Scroll:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.scrollData=o;break}this.applyScroll(o,r);break}case Y.ViewportResize:this.emitter.emit(G.Resize,{width:o.width,height:o.height});break;case Y.Input:{if(o.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.inputData=o;break}this.applyInput(o);break}case Y.MediaInteraction:{const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);const p=u,{events:l}=this.service.state.context;this.mediaManager.mediaMutation({target:p,timeOffset:t.timestamp-l[0].timestamp,mutation:o});break}case Y.StyleSheetRule:case Y.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((i=this.virtualDom.mirror.getNode(o.id))==null||i.rules.push(o)):this.applyStyleSheetMutation(o);break}case Y.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);u.canvasMutations.push({event:t,mutation:o})}else{const u=this.mirror.getNode(o.id);if(!u)return this.debugNodeNotFound(o,o.id);un({event:t,mutation:o,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case Y.Font:{try{const u=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(a=this.iframe.contentDocument)==null||a.fonts.add(u)}catch(u){this.warn(u)}break}case Y.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case Y.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,yl(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const p in this.legacy_missingNodeRetryMap)try{const l=this.legacy_missingNodeRetryMap[p],s=po(l.node,this.virtualDom,this.mirror);s&&(l.node=s)}catch(l){this.warn(l)}const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(p=>n.getNode(p.id)?!0:(this.warnNodeNotFound(t,p.id),!1)),t.removes.forEach(p=>{var l;const s=n.getNode(p.id);if(!s)return;let c=n.getNode(p.parentId);if(!c)return this.warnNodeNotFound(t,p.parentId);if(p.isShadow&&pt(c)&&(c=c.shadowRoot),n.removeNodeFromMap(s),c)try{c.removeChild(s),this.usingVirtualDom&&s.nodeName==="#text"&&c.nodeName==="STYLE"&&((l=c.rules)==null?void 0:l.length)>0&&(c.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",c,s,t);else throw f}});const i=Q({},this.legacy_missingNodeRetryMap),a=[],o=p=>{var l,s;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=n.getNode(p.parentId);if(!c)return p.node.type===Re.Document?this.newDocumentQueue.push(p):t.adds.some(S=>S.node.id===p.parentId)?a.push(p):void 0;p.node.isShadow&&(pt(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let f=null,h=null;if(p.previousId&&(f=n.getNode(p.previousId)),p.nextId&&(h=n.getNode(p.nextId)),p.node.rootId&&!n.getNode(p.node.rootId))return;const d=p.node.rootId?n.getNode(p.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(Vr(c,n)){this.attachDocumentToIframe(p,c);return}const m=(y,S)=>{if(!this.usingVirtualDom){mt(y);for(const C of this.config.plugins||[])C.onBuild&&C.onBuild(y,{id:S,replayer:this})}},g=Ke(p.node,{doc:d,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:m});if(p.previousId===-1||p.nextId===-1){i[p.node.id]={node:g,mutation:p};return}const b=n.getMeta(c);if(b&&b.type===Re.Element&&p.node.type===Re.Text){const y=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(b.tagName==="textarea")for(const S of y)S.nodeType===c.TEXT_NODE&&c.removeChild(S);else if(b.tagName==="style"&&y.length===1)for(const S of y)S.nodeType===c.TEXT_NODE&&!n.hasNode(S)&&(g.textContent=S.textContent,c.removeChild(S))}else if((b==null?void 0:b.type)===Re.Document){const y=c;p.node.type===Re.DocumentType&&((l=y.childNodes[0])==null?void 0:l.nodeType)===Node.DOCUMENT_TYPE_NODE&&y.removeChild(y.childNodes[0]),g.nodeName==="HTML"&&y.documentElement&&y.removeChild(y.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?c.insertBefore(g,f.nextSibling):h&&h.parentNode?c.contains(h)?c.insertBefore(g,h):c.insertBefore(g,null):c.appendChild(g),m(g,p.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&c.nodeName==="STYLE"&&((s=c.rules)==null?void 0:s.length)>0&&(c.rules=[]),Vr(g,this.mirror)){const y=this.mirror.getId(g),S=this.newDocumentQueue.find(C=>C.parentId===y);S&&(this.attachDocumentToIframe(S,g),this.newDocumentQueue=this.newDocumentQueue.filter(C=>C!==S))}(p.previousId||p.nextId)&&this.legacy_resolveMissingNode(i,c,g,p)};t.adds.forEach(p=>{o(p)});const u=performance.now();for(;a.length;){const p=Ll(a);if(a.length=0,performance.now()-u>150){this.warn("Timeout in the loop, please check the resolve tree data:",p);break}for(const l of p)n.getNode(l.value.parentId)?yo(l,c=>{o(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",l)}Object.keys(i).length&&Object.assign(this.legacy_missingNodeRetryMap,i),Fl(t.texts).forEach(p=>{var l;const s=n.getNode(p.id);if(!s)return t.removes.find(c=>c.id===p.id)?void 0:this.warnNodeNotFound(t,p.id);if(s.textContent=p.value,this.usingVirtualDom){const c=s.parentNode;((l=c==null?void 0:c.rules)==null?void 0:l.length)>0&&(c.rules=[])}}),t.attributes.forEach(p=>{var l;const s=n.getNode(p.id);if(!s)return t.removes.find(c=>c.id===p.id)?void 0:this.warnNodeNotFound(t,p.id);for(const c in p.attributes)if(typeof c=="string"){const f=p.attributes[c];if(f===null)s.removeAttribute(c),c==="open"&&eu(s,p);else if(typeof f=="string")try{if(c==="_cssText"&&(s.nodeName==="LINK"||s.nodeName==="STYLE"))try{const h=n.getMeta(s);Object.assign(h.attributes,p.attributes);const d=Ke(h,{doc:s.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache}),m=s.nextSibling,g=s.parentNode;if(d&&g){g.removeChild(s),g.insertBefore(d,m),n.replace(p.id,d);break}}catch(h){}if(c==="value"&&s.nodeName==="TEXTAREA"){const h=s;h.childNodes.forEach(m=>h.removeChild(m));const d=(l=s.ownerDocument)==null?void 0:l.createTextNode(f);d&&h.appendChild(d)}else s.setAttribute(c,f);c==="rr_open_mode"&&s.nodeName==="DIALOG"&&mt(s,p)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(c==="style"){const h=f,d=s;for(const m in h)if(h[m]===!1)d.style.removeProperty(m);else if(h[m]instanceof Array){const g=h[m];d.style.setProperty(m,g[0],g[1])}else{const g=h[m];d.style.setProperty(m,g)}}}})}applyScroll(t,r){var n,i;const a=this.mirror.getNode(t.id);if(!a)return this.debugNodeNotFound(t,t.id);const o=this.mirror.getMeta(a);if(a===this.iframe.contentDocument)(n=this.iframe.contentWindow)==null||n.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((o==null?void 0:o.type)===Re.Document)(i=a.defaultView)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch(u){}}applyInput(t){const r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch(n){}}applySelection(t){try{const r=new Set,n=t.ranges.map(({start:i,startOffset:a,end:o,endOffset:u})=>{const p=this.mirror.getNode(i),l=this.mirror.getNode(o);if(!p||!l)return;const s=new Range;s.setStart(p,a),s.setEnd(l,u);const c=p.ownerDocument,f=c==null?void 0:c.getSelection();return f&&r.add(f),{range:s,selection:f}});r.forEach(i=>i.removeAllRanges()),n.forEach(i=>{var a;return i&&((a=i.selection)==null?void 0:a.addRange(i.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let n=null;t.styleId?n=this.styleMirror.getStyle(t.styleId):t.id&&(n=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),n&&(t.source===Y.StyleSheetRule?this.applyStyleSheetRule(t,n):t.source===Y.StyleDeclaration&&this.applyStyleDeclaration(t,n))}applyStyleSheetRule(t,r){var n,i,a,o;if((n=t.adds)==null||n.forEach(({rule:u,index:p})=>{try{if(Array.isArray(p)){const{positions:l,index:s}=Zs(p);Je(r.cssRules,l).insertRule(u,s)}else{const l=p===void 0?void 0:Math.min(p,r.cssRules.length);r==null||r.insertRule(u,l)}}catch(l){}}),(i=t.removes)==null||i.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:p,index:l}=Zs(u);Je(r.cssRules,p).deleteRule(l||0)}else r==null||r.deleteRule(u)}catch(p){}}),t.replace)try{(a=r.replace)==null||a.call(r,t.replace)}catch(u){}if(t.replaceSync)try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch(u){}}applyStyleDeclaration(t,r){var n,i;if(t.set){const a=Je(r.rules,t.index);(n=a==null?void 0:a.style)==null||n.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){const a=Je(r.rules,t.index);(i=a==null?void 0:a.style)==null||i.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;const n=this.mirror.getNode(t.id);if(!n)return;(r=t.styles)==null||r.forEach(u=>{var p;let l=null,s=null;if(pt(n)?s=((p=n.ownerDocument)==null?void 0:p.defaultView)||null:n.nodeName==="#document"&&(s=n.defaultView),!!s)try{l=new s.CSSStyleSheet,this.styleMirror.add(l,u.styleId),this.applyStyleSheetRule({source:Y.StyleSheetRule,adds:u.rules},l)}catch(c){}});const i=10;let a=0;const o=(u,p)=>{const l=p.map(s=>this.styleMirror.getStyle(s)).filter(s=>s!==null);pt(u)?u.shadowRoot.adoptedStyleSheets=l:u.nodeName==="#document"&&(u.adoptedStyleSheets=l),l.length!==p.length&&a<i&&(setTimeout(()=>o(u,p),0+100*a),a++)};o(n,t.styleIds)}legacy_resolveMissingNode(t,r,n,i){const{previousId:a,nextId:o}=i,u=a&&t[a],p=o&&t[o];if(u){const{node:l,mutation:s}=u;r.insertBefore(l,n),delete t[s.node.id],delete this.legacy_missingNodeRetryMap[s.node.id],(s.previousId||s.nextId)&&this.legacy_resolveMissingNode(t,r,l,s)}if(p){const{node:l,mutation:s}=p;r.insertBefore(l,n.nextSibling),delete t[s.node.id],delete this.legacy_missingNodeRetryMap[s.node.id],(s.previousId||s.nextId)&&this.legacy_resolveMissingNode(t,r,l,s)}}moveAndHover(t,r,n,i,a){const o=this.mirror.getNode(n);if(!o)return this.debugNodeNotFound(a,n);const u=wo(o,this.iframe),p=t*u.absoluteScale+u.x,l=r*u.absoluteScale+u.y;this.mouse.style.left=`${p}px`,this.mouse.style.top=`${l}px`,i||this.drawMouseTail({x:p,y:l}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:n,strokeStyle:i,duration:a}=this.config.mouseTail===!0?Gr:Object.assign({},Gr,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const u=this.mouseTail.getContext("2d");!u||!this.tailPositions.length||(u.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),u.beginPath(),u.lineWidth=n,u.lineCap=r,u.strokeStyle=i,u.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(p=>u.lineTo(p.x,p.y)),u.stroke())};this.tailPositions.push(t),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(u=>u!==t),o()},a/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(i=>{i.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let n=t;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(t){return t.type!==te.IncrementalSnapshot?!1:t.data.source>Y.Mutation&&t.data.source<=Y.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(G.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(hn,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(hn,...t)}}var pe=Uint8Array,Me=Uint16Array,ei=Uint32Array,xo=new pe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Mo=new pe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),su=new pe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_o=function(e,t){for(var r=new Me(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new ei(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},No=_o(xo,2),Oo=No[0],nu=No[1];Oo[28]=258,nu[258]=28;var ou=_o(Mo,0),au=ou[0],ti=new Me(32768);for(var K=0;K<32768;++K){var Ce=(K&43690)>>>1|(K&21845)<<1;Ce=(Ce&52428)>>>2|(Ce&13107)<<2,Ce=(Ce&61680)>>>4|(Ce&3855)<<4,ti[K]=((Ce&65280)>>>8|(Ce&255)<<8)>>>1}var Ze=function(e,t,r){for(var n=e.length,i=0,a=new Me(t);i<n;++i)++a[e[i]-1];var o=new Me(t);for(i=0;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var u;if(r){u=new Me(1<<t);var p=15-t;for(i=0;i<n;++i)if(e[i])for(var l=i<<4|e[i],s=t-e[i],c=o[e[i]-1]++<<s,f=c|(1<<s)-1;c<=f;++c)u[ti[c]>>>p]=l}else for(u=new Me(n),i=0;i<n;++i)u[i]=ti[o[e[i]-1]++]>>>15-e[i];return u},ot=new pe(288);for(var K=0;K<144;++K)ot[K]=8;for(var K=144;K<256;++K)ot[K]=9;for(var K=256;K<280;++K)ot[K]=7;for(var K=280;K<288;++K)ot[K]=8;var Ao=new pe(32);for(var K=0;K<32;++K)Ao[K]=5;var lu=Ze(ot,9,1),uu=Ze(Ao,5,1),$r=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},de=function(e,t,r){var n=t/8>>0;return(e[n]|e[n+1]<<8)>>>(t&7)&r},Hr=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},cu=function(e){return(e/8>>0)+(e&7&&1)},Do=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var n=new(e instanceof Me?Me:e instanceof ei?ei:pe)(r-t);return n.set(e.subarray(t,r)),n},hu=function(e,t,r){var n=e.length,i=!t||r,a=!r||r.i;r||(r={}),t||(t=new pe(n*3));var o=function(N){var P=t.length;if(N>P){var V=new pe(Math.max(P*2,N));V.set(t),t=V}},u=r.f||0,p=r.p||0,l=r.b||0,s=r.l,c=r.d,f=r.m,h=r.n,d=n*8;do{if(!s){r.f=u=de(e,p,1);var m=de(e,p+1,3);if(p+=3,m)if(m==1)s=lu,c=uu,f=9,h=5;else if(m==2){var S=de(e,p,31)+257,C=de(e,p+10,15)+4,w=S+de(e,p+5,31)+1;p+=14;for(var v=new pe(w),E=new pe(19),R=0;R<C;++R)E[su[R]]=de(e,p+R*3,7);p+=C*3;var A=$r(E),M=(1<<A)-1;if(!a&&p+w*(A+7)>d)break;for(var B=Ze(E,A,1),R=0;R<w;){var k=B[de(e,p,M)];p+=k&15;var g=k>>>4;if(g<16)v[R++]=g;else{var J=0,U=0;for(g==16?(U=3+de(e,p,3),p+=2,J=v[R-1]):g==17?(U=3+de(e,p,7),p+=3):g==18&&(U=11+de(e,p,127),p+=7);U--;)v[R++]=J}}var x=v.subarray(0,S),q=v.subarray(S);f=$r(x),h=$r(q),s=Ze(x,f,1),c=Ze(q,h,1)}else throw"invalid block type";else{var g=cu(p)+4,b=e[g-4]|e[g-3]<<8,y=g+b;if(y>n){if(a)throw"unexpected EOF";break}i&&o(l+b),t.set(e.subarray(g,y),l),r.b=l+=b,r.p=p=y*8;continue}if(p>d)throw"unexpected EOF"}i&&o(l+131072);for(var I=(1<<f)-1,j=(1<<h)-1,H=f+h+18;a||p+H<d;){var J=s[Hr(e,p)&I],z=J>>>4;if(p+=J&15,p>d)throw"unexpected EOF";if(!J)throw"invalid length/literal";if(z<256)t[l++]=z;else if(z==256){s=null;break}else{var X=z-254;if(z>264){var R=z-257,ae=xo[R];X=de(e,p,(1<<ae)-1)+Oo[R],p+=ae}var _=c[Hr(e,p)&j],D=_>>>4;if(!_)throw"invalid distance";p+=_&15;var q=au[D];if(D>3){var ae=Mo[D];q+=Hr(e,p)&(1<<ae)-1,p+=ae}if(p>d)throw"unexpected EOF";i&&o(l+131072);for(var O=l+X;l<O;l+=4)t[l]=t[l-q],t[l+1]=t[l+1-q],t[l+2]=t[l+2-q],t[l+3]=t[l+3-q];l=O}}r.l=s,r.p=p,r.b=l,s&&(u=1,r.m=f,r.d=c,r.n=h)}while(!u);return l==t.length?t:Do(t,0,l)},fu=function(e){if((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function pu(e,t){return hu((fu(e),e.subarray(2,-4)),t)}function du(e,t){for(var r=e.length,n=new pe(e.length+(e.length>>>1)),i=0,a=function(l){n[i++]=l},o=0;o<r;++o){if(i+5>n.length){var u=new pe(i+8+(r-o<<1));u.set(n),n=u}var p=e.charCodeAt(o);p<128||t?a(p):p<2048?(a(192|p>>>6),a(128|p&63)):p>55295&&p<57344?(p=65536+(p&1047552)|e.charCodeAt(++o)&1023,a(240|p>>>18),a(128|p>>>12&63),a(128|p>>>6&63),a(128|p&63)):(a(224|p>>>12),a(128|p>>>6&63),a(128|p&63))}return Do(n,0,i)}function mu(e,t){var r="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);for(var n=0;n<e.length;){var i=e[n++];i<128||t?r+=String.fromCharCode(i):i<224?r+=String.fromCharCode((i&31)<<6|e[n++]&63):i<240?r+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,r+=String.fromCharCode(55296|i>>10,56320|i&1023))}return r}const pn="v1",gu=e=>{if(typeof e!="string")return e;try{const t=JSON.parse(e);if(t.timestamp)return t}catch(t){}try{const t=JSON.parse(mu(pu(du(e,!0))));if(t.v===pn)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${pn}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};var _i=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(_i||{}),ri=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ri||{});function dn(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Ye(e,t=2){let r=String(e);const n=Math.pow(10,t-1);if(e<n)for(;String(n).length>r.length;)r=`0${e}`;return r}const Po=1e3,ii=60*Po,mn=60*ii;function gt(e){if(e<=0)return"00:00";const t=Math.floor(e/mn);e=e%mn;const r=Math.floor(e/ii);e=e%ii;const n=Math.floor(e/Po);return t?`${Ye(t)}:${Ye(r)}:${Ye(n)}`:`${Ye(r)}:${Ye(n)}`}function yu(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function wu(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function gn(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function vu(e){return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}function yn(e){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]}function bu(e){return e.type!==_i.IncrementalSnapshot?!1:e.data.source>ri.Mutation&&e.data.source<=ri.Input}function Su(e,t){const r=[];let n=e[0].timestamp;for(const i of e)bu(i)&&(i.timestamp-n>t&&r.push([n,i.timestamp]),n=i.timestamp);return r}function Eu(e){let t,r,n,i,a,o,u,p,l;return{c(){t=oe("div"),r=oe("input"),n=fe(),i=oe("label"),a=fe(),o=oe("span"),u=De(e[3]),F(r,"type","checkbox"),F(r,"id",e[2]),r.disabled=e[1],F(r,"class","svelte-a6h7w7"),F(i,"for",e[2]),F(i,"class","svelte-a6h7w7"),F(o,"class","label svelte-a6h7w7"),F(t,"class","switch svelte-a6h7w7"),Ve(t,"disabled",e[1])},m(s,c){Ee(s,t,c),$(t,r),r.checked=e[0],$(t,n),$(t,i),$(t,a),$(t,o),$(o,u),p||(l=ze(r,"change",e[4]),p=!0)},p(s,[c]){c&4&&F(r,"id",s[2]),c&2&&(r.disabled=s[1]),c&1&&(r.checked=s[0]),c&4&&F(i,"for",s[2]),c&8&&vt(u,s[3]),c&2&&Ve(t,"disabled",s[1])},i:et,o:et,d(s){s&&ve(t),p=!1,l()}}}function Cu(e,t,r){let{disabled:n}=t,{checked:i}=t,{id:a}=t,{label:o}=t;function u(){i=this.checked,r(0,i)}return e.$$set=p=>{"disabled"in p&&r(1,n=p.disabled),"checked"in p&&r(0,i=p.checked),"id"in p&&r(2,a=p.id),"label"in p&&r(3,o=p.label)},[i,n,a,o,u]}class Ru extends li{constructor(t){super(),ai(this,t,Cu,Eu,si,{disabled:1,checked:0,id:2,label:3})}}function wn(e,t,r){const n=e.slice();return n[38]=t[r],n}function vn(e,t,r){const n=e.slice();return n[41]=t[r],n}function bn(e,t,r){const n=e.slice();return n[44]=t[r],n}function Sn(e){let t,r,n,i=gt(e[6])+"",a,o,u,p,l,s,c,f,h,d,m=gt(e[8].totalTime)+"",g,b,y,S,C,w,v,E,R,A,M,B,k,J=Ie(e[13]),U=[];for(let D=0;D<J.length;D+=1)U[D]=En(bn(e,J,D));let x=Ie(e[9]),q=[];for(let D=0;D<x.length;D+=1)q[D]=Cn(vn(e,x,D));function I(D,O){return D[7]==="playing"?Mu:xu}let j=I(e),H=j(e),z=Ie(e[3]),X=[];for(let D=0;D<z.length;D+=1)X[D]=Rn(wn(e,z,D));function ae(D){e[29](D)}let _={id:"skip",disabled:e[10]==="skipping",label:"skip inactive"};return e[0]!==void 0&&(_.checked=e[0]),v=new Ru({props:_}),Ae.push(()=>Ko(v,"checked",ae)),{c(){t=oe("div"),r=oe("div"),n=oe("span"),a=De(i),o=fe(),u=oe("div"),p=oe("div"),l=fe();for(let D=0;D<U.length;D+=1)U[D].c();s=fe();for(let D=0;D<q.length;D+=1)q[D].c();c=fe(),f=oe("div"),h=fe(),d=oe("span"),g=De(m),b=fe(),y=oe("div"),S=oe("button"),H.c(),C=fe();for(let D=0;D<X.length;D+=1)X[D].c();w=fe(),In(v.$$.fragment),R=fe(),A=oe("button"),A.innerHTML=`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4
147
+ ***************************************************************************** */function rn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(c){i={error:c}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}var qe;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(qe||(qe={}));var bo={type:"xstate.init"};function Vr(e){return e===void 0?[]:[].concat(e)}function Ue(e){return{type:"xstate.assign",assignment:e}}function sn(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Et(e){return function(t){return e===t}}function So(e){return typeof e=="string"?{type:e}:e}function nn(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Et(e)}}function on(e,t,r){var n=t,i=!1;return[e.filter(function(a){if(a.type==="xstate.assign"){i=!0;var o=Object.assign({},n);return typeof a.assignment=="function"?o=a.assignment(n,r):Object.keys(a.assignment).forEach(function(c){o[c]=typeof a.assignment[c]=="function"?a.assignment[c](n,r):a.assignment[c]}),n=o,!1}return!0}),n,i]}function Co(e,t){t===void 0&&(t={});var r=rn(on(Vr(e.states[e.initial].entry).map(function(o){return sn(o,t.actions)}),e.context,bo),2),n=r[0],i=r[1],a={config:e,_options:t,initialState:{value:e.initial,actions:n,context:i,matches:Et(e.initial)},transition:function(o,c){var p,l,s=typeof o=="string"?{value:o,context:e.context}:o,u=s.value,f=s.context,h=So(c),d=e.states[u];if(d.on){var m=Vr(d.on[h.type]);try{for(var g=function(L){var V=typeof Symbol=="function"&&Symbol.iterator,H=V&&L[V],z=0;if(H)return H.call(L);if(L&&typeof L.length=="number")return{next:function(){return L&&z>=L.length&&(L=void 0),{value:L&&L[z++],done:!L}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}(m),v=g.next();!v.done;v=g.next()){var y=v.value;if(y===void 0)return nn(u,f);var S=typeof y=="string"?{target:y}:y,E=S.target,w=S.actions,b=w===void 0?[]:w,C=S.cond,x=C===void 0?function(){return!0}:C,_=E===void 0,R=E!=null?E:u,I=e.states[R];if(x(f,h)){var T=rn(on((_?Vr(b):[].concat(d.exit,b,I.entry).filter(function(L){return L})).map(function(L){return sn(L,a._options.actions)}),f,h),3),J=T[0],U=T[1],M=T[2],q=E!=null?E:u;return{value:q,context:U,actions:J,changed:E!==u||J.length>0||M,matches:Et(q)}}}}catch(L){p={error:L}}finally{try{v&&!v.done&&(l=g.return)&&l.call(g)}finally{if(p)throw p.error}}}return nn(u,f)}};return a}var an=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})};function Eo(e){var t=e.initialState,r=qe.NotStarted,n=new Set,i={_machine:e,send:function(a){r===qe.Running&&(t=e.transition(t,a),an(t,So(a)),n.forEach(function(o){return o(t)}))},subscribe:function(a){return n.add(a),a(t),{unsubscribe:function(){return n.delete(a)}}},start:function(a){if(a){var o=typeof a=="object"?a:{context:e.config.context,value:a};t={value:o.value,actions:[],context:o.context,matches:Et(o.value)}}return r=qe.Running,an(t,bo),i},stop:function(){return r=qe.Stopped,n.clear(),i},get state(){return t},get status(){return r}};return i}function Vl(e,t){for(let r=e.length-1;r>=0;r--){const n=e[r];if(n.type===te.Meta&&n.timestamp<=t)return e.slice(r)}return e}function Gl(e,{getCastFn:t,applyEventsSynchronously:r,emitter:n}){const i=Co({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Ue({lastPlayedEvent:(a,o)=>o.type==="CAST_EVENT"?o.payload.event:a.lastPlayedEvent}),recordTimeOffset:Ue((a,o)=>{let c=a.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(c=o.payload.timeOffset),le(Q({},a),{timeOffset:c,baselineTime:a.events[0].timestamp+c})}),play(a){var o;const{timer:c,events:p,baselineTime:l,lastPlayedEvent:s}=a;c.clear();for(const d of p)tn(d,l);const u=Vl(p,l);let f=s==null?void 0:s.timestamp;(s==null?void 0:s.type)===te.IncrementalSnapshot&&s.data.source===Y.MouseMove&&(f=s.timestamp+((o=s.data.positions[0])==null?void 0:o.timeOffset)),l<(f||0)&&n.emit(G.PlayBack);const h=new Array;for(const d of u)if(!(f&&f<l&&(d.timestamp<=f||d===s)))if(d.timestamp<l)h.push(d);else{const m=t(d,!1);c.addAction({doAction:()=>{m()},delay:d.delay})}r(h),n.emit(G.Flush),c.start()},pause(a){a.timer.clear()},resetLastPlayedEvent:Ue(a=>le(Q({},a),{lastPlayedEvent:null})),startLive:Ue({baselineTime:(a,o)=>(a.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Ue((a,o)=>{const{baselineTime:c,timer:p,events:l}=a;if(o.type==="ADD_EVENT"){const{event:s}=o.payload;tn(s,c);let u=l.length-1;if(!l[u]||l[u].timestamp<=s.timestamp)l.push(s);else{let d=-1,m=0;for(;m<=u;){const g=Math.floor((m+u)/2);l[g].timestamp<=s.timestamp?m=g+1:u=g-1}d===-1&&(d=m),l.splice(d,0,s)}const f=s.timestamp<c,h=t(s,f);f?h():p.isActive()&&p.addAction({doAction:()=>{h()},delay:s.delay})}return le(Q({},a),{events:l})})}});return Eo(i)}function $l(e){const t=Co({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,n)=>{"payload"in n&&r.timer.setSpeed(n.payload.speed)},recordSpeed:Ue({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Eo(t)}const Hl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],ln=new Map;function xo(e,t){let r=ln.get(e);return r||(r=new Map,ln.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function Re(e,t,r){return async n=>{if(n&&typeof n=="object"&&"rr_type"in n)if(r&&(r.isUnchanged=!1),n.rr_type==="ImageBitmap"&&"args"in n){const i=await Re(e,t,r)(n.args);return await createImageBitmap.apply(null,i)}else if("index"in n){if(r||t===null)return n;const{rr_type:i,index:a}=n;return xo(t,i)[a]}else if("args"in n){const{rr_type:i,args:a}=n,o=window[i];return new o(...await Promise.all(a.map(Re(e,t,r))))}else{if("base64"in n)return Ul(n.base64);if("src"in n){const i=e.get(n.src);if(i)return i;{const a=new Image;return a.src=n.src,e.set(n.src,a),a}}else if("data"in n&&n.rr_type==="Blob"){const i=await Promise.all(n.data.map(Re(e,t,r)));return new Blob(i,{type:n.type})}}else if(Array.isArray(n))return await Promise.all(n.map(Re(e,t,r)));return n}}function Yl(e,t){try{return t===Ct.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const Jl=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Xl(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Jl.includes(r))return;const n=xo(e,r);n.includes(t)||n.push(t)}async function Ql({mutation:e,target:t,type:r,imageMap:n,errorHandler:i}){try{const a=Yl(t,r);if(!a)return;if(e.setter){a[e.property]=e.args[0];return}const o=a[e.property],c=await Promise.all(e.args.map(Re(n,a))),p=o.apply(a,c);Xl(a,p);const l=!1}catch(a){i(e,a)}}async function Kl({event:e,mutations:t,target:r,imageMap:n,errorHandler:i}){const a=r.getContext("2d");if(!a){i(t[0],new Error("Canvas context is null"));return}const o=t.map(async p=>Promise.all(p.args.map(Re(n,a))));(await Promise.all(o)).forEach((p,l)=>{const s=t[l];try{if(s.setter){a[s.property]=s.args[0];return}const u=a[s.property];s.property==="drawImage"&&typeof s.args[0]=="string"?(n.get(e),u.apply(a,s.args)):u.apply(a,p)}catch(u){i(s,u)}})}async function un({event:e,mutation:t,target:r,imageMap:n,canvasEventMap:i,errorHandler:a}){try{const o=i.get(e)||t,c="commands"in o?o.commands:[o];if([Ct.WebGL,Ct.WebGL2].includes(t.type)){for(let p=0;p<c.length;p++){const l=c[p];await Ql({mutation:l,type:t.type,target:r,imageMap:n,errorHandler:a})}return}await Kl({event:e,mutations:c,target:r,imageMap:n,errorHandler:a})}catch(o){a(t,o)}}const cn=["AUDIO","VIDEO"];class Zl{constructor(t){F(this,"mediaMap",new Map),F(this,"warn"),F(this,"service"),F(this,"speedService"),F(this,"emitter"),F(this,"getCurrentTime"),F(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(G.Start,this.start.bind(this)),this.emitter.on(G.SkipStart,this.start.bind(this)),this.emitter.on(G.Pause,this.pause.bind(this)),this.emitter.on(G.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,n)=>{this.syncTargetWithState(n),t.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:n}){if(n.isPlaying){const a=(t-n.lastInteractionTimeOffset)/1e3*n.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let c=n.currentTimeAtLastInteraction+a;r.loop&&o!==!1&&(c=c%o),r.currentTime=c}else r.pause(),r.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const n=this.mediaMap.get(t);n&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:n})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:n}){var h,d,m,g,v;const i=this.mediaMap.get(t),{type:a,playbackRate:o,currentTime:c,muted:p,volume:l,loop:s}=n;return{isPlaying:a===Zr.Play||a!==Zr.Pause&&((i==null?void 0:i.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(h=c!=null?c:i==null?void 0:i.currentTimeAtLastInteraction)!=null?h:0,lastInteractionTimeOffset:r,playbackRate:(d=o!=null?o:i==null?void 0:i.playbackRate)!=null?d:1,volume:(m=l!=null?l:i==null?void 0:i.volume)!=null?m:1,muted:(g=p!=null?p:i==null?void 0:i.muted)!=null?g:t.getAttribute("muted")===null,loop:(v=s!=null?s:i==null?void 0:i.loop)!=null?v:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:n,loop:i,volume:a,isPlaying:o}=r,c=this.service.state.matches("paused"),p=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==a&&(t.volume=a),t.muted=n,t.loop=i,t.playbackRate!==p&&(t.playbackRate=p),o&&!c?t.play():t.pause()}catch(l){this.warn(`Failed to replay media interactions: ${l.message||l}`)}}addMediaElements(t,r,n){if(!this.isSupportedMediaElement(t))return;const i=t,a=n.getMeta(i);if(!a||!("attributes"in a))return;const o=this.service.state.matches("paused"),c=a.attributes;let p=!1;c.rr_mediaState?p=c.rr_mediaState==="played":p=i.getAttribute("autoplay")!==null,p&&o&&i.pause();let l=1;typeof c.rr_mediaPlaybackRate=="number"&&(l=c.rr_mediaPlaybackRate);let s=!1;typeof c.rr_mediaMuted=="boolean"?s=c.rr_mediaMuted:s=i.getAttribute("muted")!==null;let u=!1;typeof c.rr_mediaLoop=="boolean"?u=c.rr_mediaLoop:u=i.getAttribute("loop")!==null;let f=1;typeof c.rr_mediaVolume=="number"&&(f=c.rr_mediaVolume);let h=0;typeof c.rr_mediaCurrentTime=="number"&&(h=c.rr_mediaCurrentTime),this.mediaMap.set(i,{isPlaying:p,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:l,volume:f,muted:s,loop:u}),this.syncTargetWithState(i)}mediaMutation({target:t,timeOffset:r,mutation:n}){cn.includes(t.nodeName)&&(this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:n})),this.syncTargetWithState(t))}isSupportedMediaElement(t){return cn.includes(t.nodeName)}reset(){this.mediaMap.clear()}}function mt(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e,n=r.open,i=n&&r.matches("dialog:modal"),a=r.getAttribute("rr_open_mode"),o=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",c=a==="modal";if(!(n&&!(i&&a==="non-modal"||!i&&c))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}n&&r.close(),o&&(c?r.showModal():r.show())}}function eu(e,t){if(e.nodeName!=="DIALOG"||e instanceof ye)return;const r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}const tu=5*1e3,ru=vo||ql,hn="[replayer]",Gr={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function fn(e){return e.type==te.IncrementalSnapshot&&(e.data.source==Y.TouchMove||e.data.source==Y.MouseInteraction&&e.data.type==ne.TouchStart)}class iu{constructor(t,r){if(F(this,"wrapper"),F(this,"iframe"),F(this,"service"),F(this,"speedService"),F(this,"config"),F(this,"usingVirtualDom",!1),F(this,"virtualDom",new $e),F(this,"mouse"),F(this,"mouseTail",null),F(this,"tailPositions",[]),F(this,"emitter",ru()),F(this,"nextUserInteractionEvent"),F(this,"legacy_missingNodeRetryMap",{}),F(this,"cache",gs()),F(this,"imageMap",new Map),F(this,"canvasEventMap",new Map),F(this,"mirror",Fn()),F(this,"styleMirror",new Bl),F(this,"mediaManager"),F(this,"firstFullSnapshot",null),F(this,"newDocumentQueue",[]),F(this,"mousePos",null),F(this,"touchActive",null),F(this,"lastMouseDownEvent",null),F(this,"lastHoveredRootNode"),F(this,"lastSelectionData",null),F(this,"constructedStyleMutations",[]),F(this,"adoptedStyleSheets",[]),F(this,"emitterHandlers",[]),F(this,"serviceSubscription"),F(this,"speedServiceSubscription"),F(this,"timeouts",new Set),F(this,"styleSheetLoadListeners",new Map),F(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const s of[this.mouseTail,this.iframe])s&&(s.setAttribute("width",String(l.width)),s.setAttribute("height",String(l.height)))}),F(this,"applyEventsSynchronously",l=>{for(const s of l){switch(s.type){case te.DomContentLoaded:case te.Load:case te.Custom:continue;case te.FullSnapshot:case te.Meta:case te.Plugin:case te.IncrementalSnapshot:break}this.getCastFn(s,!0)()}}),F(this,"getCastFn",(l,s=!1)=>{let u;switch(l.type){case te.DomContentLoaded:case te.Load:break;case te.Custom:u=()=>{this.emitter.emit(G.CustomEvent,l)};break;case te.Meta:u=()=>this.emitter.emit(G.Resize,{width:l.data.width,height:l.data.height});break;case te.FullSnapshot:u=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,s),(h=this.iframe.contentWindow)==null||h.scrollTo(l.data.initialOffset)};break;case te.IncrementalSnapshot:u=()=>{if(this.applyIncremental(l,s),!s&&(l===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const h of this.service.state.context.events)if(!(h.timestamp<=l.timestamp)&&this.isUserInteraction(h)){h.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-l.delay,d={speed:Math.min(Math.round(h/tu),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:d}),this.emitter.emit(G.SkipStart,d)}}};break}return()=>{u&&u();for(const d of this.config.plugins||[])d.handler&&d.handler(l,s,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[h]){const d=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(G.Finish))};let m=50;l.type===te.IncrementalSnapshot&&l.data.source===Y.MouseMove&&l.data.positions.length&&(m+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(d,m)}this.emitter.emit(G.EventCast,l)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Gr,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.addEmitterHandler(G.Resize,this.handleResize),this.setupDom();for(const l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});const i=()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(s,u,f)=>{un({event:s,mutation:u,target:f,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(s,u)=>{s.source===Y.StyleSheetRule?this.applyStyleSheetRule(s,u):s.source===Y.StyleDeclaration&&this.applyStyleDeclaration(s,u)},afterAppend:(s,u)=>{for(const f of this.config.plugins||[])f.onBuild&&f.onBuild(s,{id:u,replayer:this})}};if(this.iframe.contentDocument)try{bt(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(s){this.warn(s)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const s in this.legacy_missingNodeRetryMap)try{const u=this.legacy_missingNodeRetryMap[s],f=St(u.node,this.mirror,this.virtualDom.mirror);bt(f,u.node,l,this.virtualDom.mirror),u.node=f}catch(u){this.warn(u)}this.constructedStyleMutations.forEach(s=>{this.applyStyleSheetMutation(s)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(s=>{this.applyAdoptedStyleSheet(s)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[l,s]=this.lastMouseDownEvent;l.dispatchEvent(s)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)};this.addEmitterHandler(G.Flush,i);const a=()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()};this.addEmitterHandler(G.PlayBack,a);const o=new jl([],{speed:this.config.speed});this.service=Gl({events:t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,s)=>l.timestamp-s.timestamp),timer:o,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.serviceSubscription=this.service.subscribe(l=>{this.emitter.emit(G.StateChange,{player:l})}),this.speedService=$l({normalSpeed:-1,timer:o}),this.speedService.start(),this.speedServiceSubscription=this.speedService.subscribe(l=>{this.emitter.emit(G.StateChange,{speed:l})}),this.mediaManager=new Zl({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const c=this.service.state.context.events.find(l=>l.type===te.Meta),p=this.service.state.context.events.find(l=>l.type===te.FullSnapshot);if(c){const{width:l,height:s}=c.data;this.addTimeout(()=>{this.emitter.emit(G.Resize,{width:l,height:s})},0)}p&&this.addTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=p,this.rebuildFullSnapshot(p),(l=this.iframe.contentWindow)==null||l.scrollTo(p.data.initialOffset))},1),this.service.state.context.events.find(fn)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}addEmitterHandler(t,r){this.emitter.on(t,r),this.emitterHandlers.push({event:t,handler:r})}addTimeout(t,r){const n=setTimeout(()=>{this.timeouts.delete(n),t()},r);return this.timeouts.add(n),n}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed!="undefined"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail!="undefined"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,n;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.remove("rrweb-paused"),this.emitter.emit(G.Start)}pause(t){var r,n;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.add("rrweb-paused"),this.emitter.emit(G.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(G.Resume)}destroy(){var t,r;!this.wrapper||!this.wrapper.parentNode||(this.pause(),this.emitterHandlers.forEach(({event:n,handler:i})=>{this.emitter.off(n,i)}),this.emitterHandlers=[],(t=this.serviceSubscription)==null||t.unsubscribe(),(r=this.speedServiceSubscription)==null||r.unsubscribe(),this.serviceSubscription=void 0,this.speedServiceSubscription=void 0,this.timeouts.forEach(n=>clearTimeout(n)),this.timeouts.clear(),this.styleSheetLoadListeners.forEach((n,i)=>{i.removeEventListener("load",n)}),this.styleSheetLoadListeners.clear(),this.imageMap.clear(),this.canvasEventMap.clear(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.resetCache(),this.config.root.removeChild(this.wrapper),this.emitter.emit(G.Destroy))}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;fn(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=gs()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const t=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&t.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",t.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Wl(this.iframe.contentWindow,this.iframe.contentDocument),Il(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const n=[],i=new Set,a=(p,l)=>{if(p.nodeName==="DIALOG"&&i.add(p),this.collectIframeAndAttachDocument(n,p),this.mediaManager.isSupportedMediaElement(p)){const{events:s}=this.service.state.context;this.mediaManager.addMediaElements(p,t.timestamp-s[0].timestamp,this.mirror)}for(const s of this.config.plugins||[])s.onBuild&&s.onBuild(p,{id:l,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),Aa(t.data.node,{doc:this.iframe.contentDocument,afterAppend:a,cache:this.cache,mirror:this.mirror}),a(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:p,builtNode:l}of n)this.attachDocumentToIframe(p,l),this.newDocumentQueue=this.newDocumentQueue.filter(s=>s!==p);const{documentElement:o,head:c}=this.iframe.contentDocument;this.insertStyleRules(o,c),i.forEach(p=>mt(p)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(G.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var n;const i=Hl(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&i.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),this.usingVirtualDom){const a=this.virtualDom.createElement("style");this.virtualDom.mirror.add(a,mo(a,this.virtualDom.unserializedId)),t.insertBefore(a,r),a.rules.push({source:Y.StyleSheetRule,adds:i.map((o,c)=>({rule:o,index:c}))})}else{const a=document.createElement("style");t.insertBefore(a,r);for(let o=0;o<i.length;o++)(n=a.sheet)==null||n.insertRule(i[o],o)}}attachDocumentToIframe(t,r){const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,i=[],a=new Set,o=(c,p)=>{c.nodeName==="DIALOG"&&a.add(c),this.collectIframeAndAttachDocument(i,c);const l=n.getMeta(c);if((l==null?void 0:l.type)===xe.Element&&(l==null?void 0:l.tagName.toUpperCase())==="HTML"){const{documentElement:s,head:u}=r.contentDocument;this.insertStyleRules(s,u)}if(!this.usingVirtualDom)for(const s of this.config.plugins||[])s.onBuild&&s.onBuild(c,{id:p,replayer:this})};Ke(t.node,{doc:r.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(r.contentDocument,t.node.id);for(const{mutationInQueue:c,builtNode:p}of i)this.attachDocumentToIframe(c,p),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==c);a.forEach(c=>mt(c))}collectIframeAndAttachDocument(t,r){if(jr(r,this.mirror)){const n=this.newDocumentQueue.find(i=>i.parentId===this.mirror.getId(r));n&&t.push({mutationInQueue:n,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const n=new Set;let i,a=this.service.state;const o=()=>{a=this.service.state};this.emitter.on(G.Start,o),this.emitter.on(G.Pause,o);const c=()=>{this.emitter.off(G.Start,o),this.emitter.off(G.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(p=>{p.sheet||(n.add(p),p.addEventListener("load",()=>{n.delete(p),n.size===0&&i!==-1&&(a.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(G.LoadStylesheetEnd),i&&clearTimeout(i),c())}))}),n.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(G.LoadStylesheetStart),i=setTimeout(()=>{a.matches("playing")&&this.play(this.getCurrentTime()),i=-1,c()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===te.IncrementalSnapshot&&r.data.source===Y.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(i=>{this.preloadImages(i,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const n=document.createElement("canvas"),i=n.getContext("2d"),a=i==null?void 0:i.createImageData(n.width,n.height);i==null||i.putImageData(a,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const n={isUnchanged:!0};if("commands"in t){const i=await Promise.all(t.commands.map(async a=>{const o=await Promise.all(a.args.map(Re(this.imageMap,null,n)));return le(Q({},a),{args:o})}));n.isUnchanged===!1&&this.canvasEventMap.set(r,le(Q({},t),{commands:i}))}else{const i=await Promise.all(t.args.map(Re(this.imageMap,null,n)));n.isUnchanged===!1&&this.canvasEventMap.set(r,le(Q({},t),{args:i}))}}}applyIncremental(t,r){var n,i,a;const{data:o}=t;switch(o.source){case Y.Mutation:{try{this.applyMutation(o,r)}catch(c){this.warn(`Exception in mutation ${c.message||c}`,o)}break}case Y.Drag:case Y.TouchMove:case Y.MouseMove:if(r){const c=o.positions[o.positions.length-1];this.mousePos={x:c.x,y:c.y,id:c.id,debugData:o}}else o.positions.forEach(c=>{const p={doAction:()=>{this.moveAndHover(c.x,c.y,c.id,r,o)},delay:c.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(p)}),this.timer.addAction({doAction(){},delay:t.delay-((n=o.positions[0])==null?void 0:n.timeOffset)});break;case Y.MouseInteraction:{if(o.id===-1)break;const c=new Event(oa(ne[o.type])),p=this.mirror.getNode(o.id);if(!p)return this.debugNodeNotFound(o,o.id);this.emitter.emit(G.MouseInteraction,{type:o.type,target:p});const{triggerFocus:l}=this.config;switch(o.type){case ne.Blur:"blur"in p&&p.blur();break;case ne.Focus:l&&p.focus&&p.focus({preventScroll:!0});break;case ne.Click:case ne.TouchStart:case ne.TouchEnd:case ne.MouseDown:case ne.MouseUp:r?(o.type===ne.TouchStart?this.touchActive=!0:o.type===ne.TouchEnd&&(this.touchActive=!1),o.type===ne.MouseDown?this.lastMouseDownEvent=[p,c]:o.type===ne.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===ne.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===ne.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===ne.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===ne.TouchEnd?this.mouse.classList.remove("touch-active"):p.dispatchEvent(c));break;case ne.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:p.dispatchEvent(c)}break}case Y.Scroll:{if(o.id===-1)break;if(this.usingVirtualDom){const c=this.virtualDom.mirror.getNode(o.id);if(!c)return this.debugNodeNotFound(o,o.id);c.scrollData=o;break}this.applyScroll(o,r);break}case Y.ViewportResize:this.emitter.emit(G.Resize,{width:o.width,height:o.height});break;case Y.Input:{if(o.id===-1)break;if(this.usingVirtualDom){const c=this.virtualDom.mirror.getNode(o.id);if(!c)return this.debugNodeNotFound(o,o.id);c.inputData=o;break}this.applyInput(o);break}case Y.MediaInteraction:{const c=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!c)return this.debugNodeNotFound(o,o.id);const p=c,{events:l}=this.service.state.context;this.mediaManager.mediaMutation({target:p,timeOffset:t.timestamp-l[0].timestamp,mutation:o});break}case Y.StyleSheetRule:case Y.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((i=this.virtualDom.mirror.getNode(o.id))==null||i.rules.push(o)):this.applyStyleSheetMutation(o);break}case Y.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const c=this.virtualDom.mirror.getNode(o.id);if(!c)return this.debugNodeNotFound(o,o.id);c.canvasMutations.push({event:t,mutation:o})}else{const c=this.mirror.getNode(o.id);if(!c)return this.debugNodeNotFound(o,o.id);un({event:t,mutation:o,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case Y.Font:{try{const c=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(a=this.iframe.contentDocument)==null||a.fonts.add(c)}catch(c){this.warn(c)}break}case Y.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case Y.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,yl(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const p in this.legacy_missingNodeRetryMap)try{const l=this.legacy_missingNodeRetryMap[p],s=po(l.node,this.virtualDom,this.mirror);s&&(l.node=s)}catch(l){this.warn(l)}const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(p=>n.getNode(p.id)?!0:(this.warnNodeNotFound(t,p.id),!1)),t.removes.forEach(p=>{var l;const s=n.getNode(p.id);if(!s)return;let u=n.getNode(p.parentId);if(!u)return this.warnNodeNotFound(t,p.parentId);if(p.isShadow&&pt(u)&&(u=u.shadowRoot),n.removeNodeFromMap(s),u)try{u.removeChild(s),this.usingVirtualDom&&s.nodeName==="#text"&&u.nodeName==="STYLE"&&((l=u.rules)==null?void 0:l.length)>0&&(u.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",u,s,t);else throw f}});const i=Q({},this.legacy_missingNodeRetryMap),a=[],o=p=>{var l,s;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let u=n.getNode(p.parentId);if(!u)return p.node.type===xe.Document?this.newDocumentQueue.push(p):t.adds.some(S=>S.node.id===p.parentId)?a.push(p):void 0;p.node.isShadow&&(pt(u)||u.attachShadow({mode:"open"}),u=u.shadowRoot);let f=null,h=null;if(p.previousId&&(f=n.getNode(p.previousId)),p.nextId&&(h=n.getNode(p.nextId)),p.node.rootId&&!n.getNode(p.node.rootId))return;const d=p.node.rootId?n.getNode(p.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(jr(u,n)){this.attachDocumentToIframe(p,u);return}const m=(y,S)=>{if(!this.usingVirtualDom){mt(y);for(const E of this.config.plugins||[])E.onBuild&&E.onBuild(y,{id:S,replayer:this})}},g=Ke(p.node,{doc:d,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:m});if(p.previousId===-1||p.nextId===-1){i[p.node.id]={node:g,mutation:p};return}const v=n.getMeta(u);if(v&&v.type===xe.Element&&p.node.type===xe.Text){const y=Array.isArray(u.childNodes)?u.childNodes:Array.from(u.childNodes);if(v.tagName==="textarea")for(const S of y)S.nodeType===u.TEXT_NODE&&u.removeChild(S);else if(v.tagName==="style"&&y.length===1)for(const S of y)S.nodeType===u.TEXT_NODE&&!n.hasNode(S)&&(g.textContent=S.textContent,u.removeChild(S))}else if((v==null?void 0:v.type)===xe.Document){const y=u;p.node.type===xe.DocumentType&&((l=y.childNodes[0])==null?void 0:l.nodeType)===Node.DOCUMENT_TYPE_NODE&&y.removeChild(y.childNodes[0]),g.nodeName==="HTML"&&y.documentElement&&y.removeChild(y.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?u.insertBefore(g,f.nextSibling):h&&h.parentNode?u.contains(h)?u.insertBefore(g,h):u.insertBefore(g,null):u.appendChild(g),m(g,p.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&u.nodeName==="STYLE"&&((s=u.rules)==null?void 0:s.length)>0&&(u.rules=[]),jr(g,this.mirror)){const y=this.mirror.getId(g),S=this.newDocumentQueue.find(E=>E.parentId===y);S&&(this.attachDocumentToIframe(S,g),this.newDocumentQueue=this.newDocumentQueue.filter(E=>E!==S))}(p.previousId||p.nextId)&&this.legacy_resolveMissingNode(i,u,g,p)};t.adds.forEach(p=>{o(p)});const c=performance.now();for(;a.length;){const p=Ll(a);if(a.length=0,performance.now()-c>150){this.warn("Timeout in the loop, please check the resolve tree data:",p);break}for(const l of p)n.getNode(l.value.parentId)?yo(l,u=>{o(u)}):this.debug("Drop resolve tree since there is no parent for the root node.",l)}Object.keys(i).length&&Object.assign(this.legacy_missingNodeRetryMap,i),Fl(t.texts).forEach(p=>{var l;const s=n.getNode(p.id);if(!s)return t.removes.find(u=>u.id===p.id)?void 0:this.warnNodeNotFound(t,p.id);if(s.textContent=p.value,this.usingVirtualDom){const u=s.parentNode;((l=u==null?void 0:u.rules)==null?void 0:l.length)>0&&(u.rules=[])}}),t.attributes.forEach(p=>{var l;const s=n.getNode(p.id);if(!s)return t.removes.find(u=>u.id===p.id)?void 0:this.warnNodeNotFound(t,p.id);for(const u in p.attributes)if(typeof u=="string"){const f=p.attributes[u];if(f===null)s.removeAttribute(u),u==="open"&&eu(s,p);else if(typeof f=="string")try{if(u==="_cssText"&&(s.nodeName==="LINK"||s.nodeName==="STYLE"))try{const h=n.getMeta(s);Object.assign(h.attributes,p.attributes);const d=Ke(h,{doc:s.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache}),m=s.nextSibling,g=s.parentNode;if(d&&g){g.removeChild(s),g.insertBefore(d,m),n.replace(p.id,d);break}}catch(h){}if(u==="value"&&s.nodeName==="TEXTAREA"){const h=s;h.childNodes.forEach(m=>h.removeChild(m));const d=(l=s.ownerDocument)==null?void 0:l.createTextNode(f);d&&h.appendChild(d)}else s.setAttribute(u,f);u==="rr_open_mode"&&s.nodeName==="DIALOG"&&mt(s,p)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(u==="style"){const h=f,d=s;for(const m in h)if(h[m]===!1)d.style.removeProperty(m);else if(h[m]instanceof Array){const g=h[m];d.style.setProperty(m,g[0],g[1])}else{const g=h[m];d.style.setProperty(m,g)}}}})}applyScroll(t,r){var n,i;const a=this.mirror.getNode(t.id);if(!a)return this.debugNodeNotFound(t,t.id);const o=this.mirror.getMeta(a);if(a===this.iframe.contentDocument)(n=this.iframe.contentWindow)==null||n.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((o==null?void 0:o.type)===xe.Document)(i=a.defaultView)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch(c){}}applyInput(t){const r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch(n){}}applySelection(t){try{const r=new Set,n=t.ranges.map(({start:i,startOffset:a,end:o,endOffset:c})=>{const p=this.mirror.getNode(i),l=this.mirror.getNode(o);if(!p||!l)return;const s=new Range;s.setStart(p,a),s.setEnd(l,c);const u=p.ownerDocument,f=u==null?void 0:u.getSelection();return f&&r.add(f),{range:s,selection:f}});r.forEach(i=>i.removeAllRanges()),n.forEach(i=>{var a;return i&&((a=i.selection)==null?void 0:a.addRange(i.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let n=null;t.styleId?n=this.styleMirror.getStyle(t.styleId):t.id&&(n=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),n&&(t.source===Y.StyleSheetRule?this.applyStyleSheetRule(t,n):t.source===Y.StyleDeclaration&&this.applyStyleDeclaration(t,n))}applyStyleSheetRule(t,r){var n,i,a,o;if((n=t.adds)==null||n.forEach(({rule:c,index:p})=>{try{if(Array.isArray(p)){const{positions:l,index:s}=Zs(p);Je(r.cssRules,l).insertRule(c,s)}else{const l=p===void 0?void 0:Math.min(p,r.cssRules.length);r==null||r.insertRule(c,l)}}catch(l){}}),(i=t.removes)==null||i.forEach(({index:c})=>{try{if(Array.isArray(c)){const{positions:p,index:l}=Zs(c);Je(r.cssRules,p).deleteRule(l||0)}else r==null||r.deleteRule(c)}catch(p){}}),t.replace)try{(a=r.replace)==null||a.call(r,t.replace)}catch(c){}if(t.replaceSync)try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch(c){}}applyStyleDeclaration(t,r){var n,i;if(t.set){const a=Je(r.rules,t.index);(n=a==null?void 0:a.style)==null||n.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){const a=Je(r.rules,t.index);(i=a==null?void 0:a.style)==null||i.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;const n=this.mirror.getNode(t.id);if(!n)return;(r=t.styles)==null||r.forEach(c=>{var p;let l=null,s=null;if(pt(n)?s=((p=n.ownerDocument)==null?void 0:p.defaultView)||null:n.nodeName==="#document"&&(s=n.defaultView),!!s)try{l=new s.CSSStyleSheet,this.styleMirror.add(l,c.styleId),this.applyStyleSheetRule({source:Y.StyleSheetRule,adds:c.rules},l)}catch(u){}});const i=10;let a=0;const o=(c,p)=>{const l=p.map(s=>this.styleMirror.getStyle(s)).filter(s=>s!==null);pt(c)?c.shadowRoot.adoptedStyleSheets=l:c.nodeName==="#document"&&(c.adoptedStyleSheets=l),l.length!==p.length&&a<i&&(setTimeout(()=>o(c,p),0+100*a),a++)};o(n,t.styleIds)}legacy_resolveMissingNode(t,r,n,i){const{previousId:a,nextId:o}=i,c=a&&t[a],p=o&&t[o];if(c){const{node:l,mutation:s}=c;r.insertBefore(l,n),delete t[s.node.id],delete this.legacy_missingNodeRetryMap[s.node.id],(s.previousId||s.nextId)&&this.legacy_resolveMissingNode(t,r,l,s)}if(p){const{node:l,mutation:s}=p;r.insertBefore(l,n.nextSibling),delete t[s.node.id],delete this.legacy_missingNodeRetryMap[s.node.id],(s.previousId||s.nextId)&&this.legacy_resolveMissingNode(t,r,l,s)}}moveAndHover(t,r,n,i,a){const o=this.mirror.getNode(n);if(!o)return this.debugNodeNotFound(a,n);const c=wo(o,this.iframe),p=t*c.absoluteScale+c.x,l=r*c.absoluteScale+c.y;this.mouse.style.left=`${p}px`,this.mouse.style.top=`${l}px`,i||this.drawMouseTail({x:p,y:l}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:n,strokeStyle:i,duration:a}=this.config.mouseTail===!0?Gr:Object.assign({},Gr,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const c=this.mouseTail.getContext("2d");!c||!this.tailPositions.length||(c.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),c.beginPath(),c.lineWidth=n,c.lineCap=r,c.strokeStyle=i,c.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(p=>c.lineTo(p.x,p.y)),c.stroke())};this.tailPositions.push(t),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(c=>c!==t),o()},a/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(i=>{i.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let n=t;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(t){return t.type!==te.IncrementalSnapshot?!1:t.data.source>Y.Mutation&&t.data.source<=Y.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(G.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(hn,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(hn,...t)}}var pe=Uint8Array,Me=Uint16Array,ei=Uint32Array,Ro=new pe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Mo=new pe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),su=new pe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_o=function(e,t){for(var r=new Me(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new ei(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},No=_o(Ro,2),Oo=No[0],nu=No[1];Oo[28]=258,nu[258]=28;var ou=_o(Mo,0),au=ou[0],ti=new Me(32768);for(var K=0;K<32768;++K){var Ee=(K&43690)>>>1|(K&21845)<<1;Ee=(Ee&52428)>>>2|(Ee&13107)<<2,Ee=(Ee&61680)>>>4|(Ee&3855)<<4,ti[K]=((Ee&65280)>>>8|(Ee&255)<<8)>>>1}var Ze=function(e,t,r){for(var n=e.length,i=0,a=new Me(t);i<n;++i)++a[e[i]-1];var o=new Me(t);for(i=0;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var c;if(r){c=new Me(1<<t);var p=15-t;for(i=0;i<n;++i)if(e[i])for(var l=i<<4|e[i],s=t-e[i],u=o[e[i]-1]++<<s,f=u|(1<<s)-1;u<=f;++u)c[ti[u]>>>p]=l}else for(c=new Me(n),i=0;i<n;++i)c[i]=ti[o[e[i]-1]++]>>>15-e[i];return c},ot=new pe(288);for(var K=0;K<144;++K)ot[K]=8;for(var K=144;K<256;++K)ot[K]=9;for(var K=256;K<280;++K)ot[K]=7;for(var K=280;K<288;++K)ot[K]=8;var Ao=new pe(32);for(var K=0;K<32;++K)Ao[K]=5;var lu=Ze(ot,9,1),uu=Ze(Ao,5,1),$r=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},de=function(e,t,r){var n=t/8>>0;return(e[n]|e[n+1]<<8)>>>(t&7)&r},Hr=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},cu=function(e){return(e/8>>0)+(e&7&&1)},Do=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var n=new(e instanceof Me?Me:e instanceof ei?ei:pe)(r-t);return n.set(e.subarray(t,r)),n},hu=function(e,t,r){var n=e.length,i=!t||r,a=!r||r.i;r||(r={}),t||(t=new pe(n*3));var o=function(O){var P=t.length;if(O>P){var j=new pe(Math.max(P*2,O));j.set(t),t=j}},c=r.f||0,p=r.p||0,l=r.b||0,s=r.l,u=r.d,f=r.m,h=r.n,d=n*8;do{if(!s){r.f=c=de(e,p,1);var m=de(e,p+1,3);if(p+=3,m)if(m==1)s=lu,u=uu,f=9,h=5;else if(m==2){var S=de(e,p,31)+257,E=de(e,p+10,15)+4,w=S+de(e,p+5,31)+1;p+=14;for(var b=new pe(w),C=new pe(19),x=0;x<E;++x)C[su[x]]=de(e,p+x*3,7);p+=E*3;var _=$r(C),R=(1<<_)-1;if(!a&&p+w*(_+7)>d)break;for(var I=Ze(C,_,1),x=0;x<w;){var T=I[de(e,p,R)];p+=T&15;var g=T>>>4;if(g<16)b[x++]=g;else{var J=0,U=0;for(g==16?(U=3+de(e,p,3),p+=2,J=b[x-1]):g==17?(U=3+de(e,p,7),p+=3):g==18&&(U=11+de(e,p,127),p+=7);U--;)b[x++]=J}}var M=b.subarray(0,S),q=b.subarray(S);f=$r(M),h=$r(q),s=Ze(M,f,1),u=Ze(q,h,1)}else throw"invalid block type";else{var g=cu(p)+4,v=e[g-4]|e[g-3]<<8,y=g+v;if(y>n){if(a)throw"unexpected EOF";break}i&&o(l+v),t.set(e.subarray(g,y),l),r.b=l+=v,r.p=p=y*8;continue}if(p>d)throw"unexpected EOF"}i&&o(l+131072);for(var L=(1<<f)-1,V=(1<<h)-1,H=f+h+18;a||p+H<d;){var J=s[Hr(e,p)&L],z=J>>>4;if(p+=J&15,p>d)throw"unexpected EOF";if(!J)throw"invalid length/literal";if(z<256)t[l++]=z;else if(z==256){s=null;break}else{var X=z-254;if(z>264){var x=z-257,ae=Ro[x];X=de(e,p,(1<<ae)-1)+Oo[x],p+=ae}var N=u[Hr(e,p)&V],D=N>>>4;if(!N)throw"invalid distance";p+=N&15;var q=au[D];if(D>3){var ae=Mo[D];q+=Hr(e,p)&(1<<ae)-1,p+=ae}if(p>d)throw"unexpected EOF";i&&o(l+131072);for(var A=l+X;l<A;l+=4)t[l]=t[l-q],t[l+1]=t[l+1-q],t[l+2]=t[l+2-q],t[l+3]=t[l+3-q];l=A}}r.l=s,r.p=p,r.b=l,s&&(c=1,r.m=f,r.d=u,r.n=h)}while(!c);return l==t.length?t:Do(t,0,l)},fu=function(e){if((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function pu(e,t){return hu((fu(e),e.subarray(2,-4)),t)}function du(e,t){for(var r=e.length,n=new pe(e.length+(e.length>>>1)),i=0,a=function(l){n[i++]=l},o=0;o<r;++o){if(i+5>n.length){var c=new pe(i+8+(r-o<<1));c.set(n),n=c}var p=e.charCodeAt(o);a(p)}return Do(n,0,i)}function mu(e,t){var r="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);for(var n=0;n<e.length;){var i=e[n++];i<128||t?r+=String.fromCharCode(i):i<224?r+=String.fromCharCode((i&31)<<6|e[n++]&63):i<240?r+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,r+=String.fromCharCode(55296|i>>10,56320|i&1023))}return r}const pn="v1",gu=e=>{if(typeof e!="string")return e;try{const t=JSON.parse(e);if(t.timestamp)return t}catch(t){}try{const t=JSON.parse(mu(pu(du(e,!0))));if(t.v===pn)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${pn}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};var _i=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(_i||{}),ri=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ri||{});function dn(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Ye(e,t=2){let r=String(e);const n=Math.pow(10,t-1);if(e<n)for(;String(n).length>r.length;)r=`0${e}`;return r}const Po=1e3,ii=60*Po,mn=60*ii;function gt(e){if(e<=0)return"00:00";const t=Math.floor(e/mn);e=e%mn;const r=Math.floor(e/ii);e=e%ii;const n=Math.floor(e/Po);return t?`${Ye(t)}:${Ye(r)}:${Ye(n)}`:`${Ye(r)}:${Ye(n)}`}function yu(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function wu(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function gn(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function vu(e){return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}function yn(e){return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(e)]}function bu(e){return e.type!==_i.IncrementalSnapshot?!1:e.data.source>ri.Mutation&&e.data.source<=ri.Input}function Su(e,t){const r=[];let n=e[0].timestamp;for(const i of e)bu(i)&&(i.timestamp-n>t&&r.push([n,i.timestamp]),n=i.timestamp);return r}function Cu(e){let t,r,n,i,a,o,c,p,l;return{c(){t=oe("div"),r=oe("input"),n=fe(),i=oe("label"),a=fe(),o=oe("span"),c=De(e[3]),B(r,"type","checkbox"),B(r,"id",e[2]),r.disabled=e[1],B(r,"class","svelte-a6h7w7"),B(i,"for",e[2]),B(i,"class","svelte-a6h7w7"),B(o,"class","label svelte-a6h7w7"),B(t,"class","switch svelte-a6h7w7"),je(t,"disabled",e[1])},m(s,u){Ce(s,t,u),$(t,r),r.checked=e[0],$(t,n),$(t,i),$(t,a),$(t,o),$(o,c),p||(l=ze(r,"change",e[4]),p=!0)},p(s,[u]){u&4&&B(r,"id",s[2]),u&2&&(r.disabled=s[1]),u&1&&(r.checked=s[0]),u&4&&B(i,"for",s[2]),u&8&&vt(c,s[3]),u&2&&je(t,"disabled",s[1])},i:et,o:et,d(s){s&&ve(t),p=!1,l()}}}function Eu(e,t,r){let{disabled:n}=t,{checked:i}=t,{id:a}=t,{label:o}=t;function c(){i=this.checked,r(0,i)}return e.$$set=p=>{"disabled"in p&&r(1,n=p.disabled),"checked"in p&&r(0,i=p.checked),"id"in p&&r(2,a=p.id),"label"in p&&r(3,o=p.label)},[i,n,a,o,c]}class xu extends li{constructor(t){super(),ai(this,t,Eu,Cu,si,{disabled:1,checked:0,id:2,label:3})}}function wn(e,t,r){const n=e.slice();return n[38]=t[r],n}function vn(e,t,r){const n=e.slice();return n[41]=t[r],n}function bn(e,t,r){const n=e.slice();return n[44]=t[r],n}function Sn(e){let t,r,n,i=gt(e[6])+"",a,o,c,p,l,s,u,f,h,d,m=gt(e[8].totalTime)+"",g,v,y,S,E,w,b,C,x,_,R,I,T,J=Ie(e[13]),U=[];for(let D=0;D<J.length;D+=1)U[D]=Cn(bn(e,J,D));let M=Ie(e[9]),q=[];for(let D=0;D<M.length;D+=1)q[D]=En(vn(e,M,D));function L(D,A){return D[7]==="playing"?Mu:Ru}let V=L(e),H=V(e),z=Ie(e[3]),X=[];for(let D=0;D<z.length;D+=1)X[D]=xn(wn(e,z,D));function ae(D){e[29](D)}let N={id:"skip",disabled:e[10]==="skipping",label:"skip inactive"};return e[0]!==void 0&&(N.checked=e[0]),b=new xu({props:N}),Ae.push(()=>Ko(b,"checked",ae)),{c(){t=oe("div"),r=oe("div"),n=oe("span"),a=De(i),o=fe(),c=oe("div"),p=oe("div"),l=fe();for(let D=0;D<U.length;D+=1)U[D].c();s=fe();for(let D=0;D<q.length;D+=1)q[D].c();u=fe(),f=oe("div"),h=fe(),d=oe("span"),g=De(m),v=fe(),y=oe("div"),S=oe("button"),H.c(),E=fe();for(let D=0;D<X.length;D+=1)X[D].c();w=fe(),In(b.$$.fragment),x=fe(),_=oe("button"),_.innerHTML=`<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M916 380c-26.4 0-48-21.6-48-48L868 223.2 613.6 477.6c-18.4
160
148
  18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
161
149
  0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
162
150
  224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
163
151
  48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
164
152
  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"),se(p,"width",e[12]),F(f,"class","rr-progress__handler svelte-189zk2r"),se(f,"left",e[12]),F(u,"class","rr-progress svelte-189zk2r"),Ve(u,"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){Ee(D,t,O),$(t,r),$(r,n),$(n,a),$(r,o),$(r,u),$(u,p),$(u,l);for(let N=0;N<U.length;N+=1)U[N]&&U[N].m(u,null);$(u,s);for(let N=0;N<q.length;N+=1)q[N]&&q[N].m(u,null);$(u,c),$(u,f),e[27](u),$(r,h),$(r,d),$(d,g),$(t,b),$(t,y),$(y,S),H.m(S,null),$(y,C);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(u,"click",e[15]),ze(u,"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]=En(V),U[P].c(),U[P].m(u,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]=Cn(V),q[P].c(),q[P].m(u,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(u,"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"),!E&&O[0]&1&&(E=!0,N.checked=D[0],Jo(()=>E=!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 En(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){Ee(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 Cn(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){Ee(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
- 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){Ee(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
153
+ 68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg>`,B(n,"class","rr-timeline__time svelte-189zk2r"),B(p,"class","rr-progress__step svelte-189zk2r"),se(p,"width",e[12]),B(f,"class","rr-progress__handler svelte-189zk2r"),se(f,"left",e[12]),B(c,"class","rr-progress svelte-189zk2r"),je(c,"disabled",e[10]==="skipping"),B(d,"class","rr-timeline__time svelte-189zk2r"),B(r,"class","rr-timeline svelte-189zk2r"),B(S,"class","svelte-189zk2r"),B(_,"class","svelte-189zk2r"),B(y,"class","rr-controller__btns svelte-189zk2r"),B(t,"class","rr-controller svelte-189zk2r")},m(D,A){Ce(D,t,A),$(t,r),$(r,n),$(n,a),$(r,o),$(r,c),$(c,p),$(c,l);for(let O=0;O<U.length;O+=1)U[O]&&U[O].m(c,null);$(c,s);for(let O=0;O<q.length;O+=1)q[O]&&q[O].m(c,null);$(c,u),$(c,f),e[27](c),$(r,h),$(r,d),$(d,g),$(t,v),$(t,y),$(y,S),H.m(S,null),$(y,E);for(let O=0;O<X.length;O+=1)X[O]&&X[O].m(y,null);$(y,w),ni(b,y,null),$(y,x),$(y,_),R=!0,I||(T=[ze(c,"click",e[15]),ze(c,"keydown",e[16]),ze(S,"click",e[4]),ze(_,"click",e[30])],I=!0)},p(D,A){if((!R||A[0]&64)&&i!==(i=gt(D[6])+"")&&vt(a,i),(!R||A[0]&4096)&&se(p,"width",D[12]),A[0]&8192){J=Ie(D[13]);let P;for(P=0;P<J.length;P+=1){const j=bn(D,J,P);U[P]?U[P].p(j,A):(U[P]=Cn(j),U[P].c(),U[P].m(c,s))}for(;P<U.length;P+=1)U[P].d(1);U.length=J.length}if(A[0]&512){M=Ie(D[9]);let P;for(P=0;P<M.length;P+=1){const j=vn(D,M,P);q[P]?q[P].p(j,A):(q[P]=En(j),q[P].c(),q[P].m(c,u))}for(;P<q.length;P+=1)q[P].d(1);q.length=M.length}if((!R||A[0]&4096)&&se(f,"left",D[12]),(!R||A[0]&1024)&&je(c,"disabled",D[10]==="skipping"),(!R||A[0]&256)&&m!==(m=gt(D[8].totalTime)+"")&&vt(g,m),V!==(V=L(D))&&(H.d(1),H=V(D),H&&(H.c(),H.m(S,null))),A[0]&1066){z=Ie(D[3]);let P;for(P=0;P<z.length;P+=1){const j=wn(D,z,P);X[P]?X[P].p(j,A):(X[P]=xn(j),X[P].c(),X[P].m(y,w))}for(;P<X.length;P+=1)X[P].d(1);X.length=z.length}const O={};A[0]&1024&&(O.disabled=D[10]==="skipping"),!C&&A[0]&1&&(C=!0,O.checked=D[0],Jo(()=>C=!1)),b.$set(O)},i(D){R||(Se(b.$$.fragment,D),R=!0)},o(D){Ve(b.$$.fragment,D),R=!1},d(D){D&&ve(t),It(U,D),It(q,D),e[27](null),H.d(),It(X,D),oi(b),I=!1,Ge(T)}}}function Cn(e){let t,r;return{c(){t=oe("div"),B(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)&&B(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"),B(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)&&B(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 Ru(e){let t,r;return{c(){t=wt("svg"),r=wt("path"),B(r,"d",`M170.65984 896l0-768 640 384zM644.66944
154
+ 512l-388.66944-233.32864 0 466.65728z`),B(t,"class","icon"),B(t,"viewBox","0 0 1024 1024"),B(t,"version","1.1"),B(t,"xmlns","http://www.w3.org/2000/svg"),B(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),B(t,"width","16"),B(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"),B(r,"d",`M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
167
155
  512q0 53.00224-37.49888 90.50112t-90.50112
168
156
  37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
169
157
  37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
@@ -176,7 +164,7 @@ PERFORMANCE OF THIS SOFTWARE.
176
164
  12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
177
165
  213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
178
166
  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){Ee(n,t,i),$(t,r)},d(n){n&&ve(t)}}}function Rn(e){let t,r=e[38]+"",n,i,a,o,u;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(l,s){Ee(l,t,s),$(t,n),$(t,i),o||(u=ze(t,"click",p),o=!0)},p(l,s){e=l,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(l){l&&ve(t),o=!1,u()}}}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),Ee(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:u}=t,{speedOption:p}=t,{speed:l=p.length?p[0]:1}=t,{tags:s={}}=t,{inactiveColor:c}=t,f=0,h=null,d,m,g,b,y=!1,S=null,C=null,w,v,E,R;const A=()=>{M();function O(){r(6,f=i.getCurrentTime()),y&&f>=y&&(C?x(C.start,C.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?C={start:O,end:N}:C=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,l=O),N&&i.pause(),i.setConfig({speed:l}),N&&i.play(f)},H=()=>{r(0,u=!u)},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(()=>{u!==i.config.skipInactive&&i.setConfig({skipInactive:u})}),Dn(()=>{i.pause(),M()});function X(O){Ae[O?"unshift":"push"](()=>{g=O,r(11,g)})}const ae=O=>j(O);function _(O){u=O,r(0,u)}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,u=O.skipInactive),"speedOption"in O&&r(3,p=O.speedOption),"speed"in O&&r(1,l=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,E=(()=>{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[]}})())},[u,l,a,p,B,j,f,d,w,E,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,u){Ee(o,t,u),$(t,r),e[31](r),$(t,n),a&&a.m(t,null),e[34](t),i=!0},p(o,u){(!i||u[0]&2048)&&F(r,"style",o[11]),o[7]?a?(a.p(o,u),u[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||u[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:u=!0}=t,{autoPlay:p=!0}=t,{speedOption:l=[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,C=i,w,v,E;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(l!==void 0&&yn(l)!=="array")throw new Error("speedOption must be array");if(l.forEach(N=>{if(yn(N)!=="number")throw new Error("item of speedOption must be number")}),l.indexOf(s)<0)throw new Error(`speed must be one of speedOption,
167
+ 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z`),B(t,"class","icon"),B(t,"viewBox","0 0 1024 1024"),B(t,"version","1.1"),B(t,"xmlns","http://www.w3.org/2000/svg"),B(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),B(t,"width","16"),B(t,"height","16")},m(n,i){Ce(n,t,i),$(t,r)},d(n){n&&ve(t)}}}function xn(e){let t,r=e[38]+"",n,i,a,o,c;function p(){return e[28](e[38])}return{c(){t=oe("button"),n=De(r),i=De("x"),t.disabled=a=e[10]==="skipping",B(t,"class","svelte-189zk2r"),je(t,"active",e[38]===e[1]&&e[10]!=="skipping")},m(l,s){Ce(l,t,s),$(t,n),$(t,i),o||(c=ze(t,"click",p),o=!0)},p(l,s){e=l,s[0]&8&&r!==(r=e[38]+"")&&vt(n,r),s[0]&1024&&a!==(a=e[10]==="skipping")&&(t.disabled=a),s[0]&1034&&je(t,"active",e[38]===e[1]&&e[10]!=="skipping")},d(l){l&&ve(t),o=!1,c()}}}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(),Ve(n,1,1,()=>{n=null}),kn())},i(i){r||(Se(n),r=!0)},o(i){Ve(n),r=!1},d(i){i&&ve(t),n&&n.d(i)}}}function Rn(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:c}=t,{speedOption:p}=t,{speed:l=p.length?p[0]:1}=t,{tags:s={}}=t,{inactiveColor:u}=t,f=0,h=null,d,m,g,v,y=!1,S=null,E=null,w,b,C,x;const _=()=>{R();function A(){r(6,f=i.getCurrentTime()),y&&f>=y&&(E?M(E.start,E.end,!0,void 0):(i.pause(),S&&(S(),S=null))),f<w.totalTime&&(h=requestAnimationFrame(A))}h=requestAnimationFrame(A)},R=()=>{h&&(cancelAnimationFrame(h),h=null)},I=()=>{switch(d){case"playing":J();break;case"paused":T();break}},T=()=>{d==="paused"&&(v?(i.play(),v=!1):i.play(f))},J=()=>{d==="playing"&&(i.pause(),y=!1)},U=(A,O)=>{r(6,f=A),y=!1,v=!1,(typeof O=="boolean"?O:d==="playing")?i.play(A):i.pause(A)},M=(A,O,P=!1,j=void 0)=>{P?E={start:A,end:O}:E=null,r(6,f=A),y=O,S=j||null,i.play(A)},q=A=>{if(m==="skipping")return;const O=g.getBoundingClientRect();let j=(A.clientX-O.left)/O.width;j<0?j=0:j>1&&(j=1);const ue=w.totalTime*j;U(ue)},L=A=>{m!=="skipping"&&(A.key==="ArrowLeft"?U(f-5):A.key==="ArrowRight"&&U(f+5))},V=A=>{let O=d==="playing";r(1,l=A),O&&i.pause(),i.setConfig({speed:l}),O&&i.play(f)},H=()=>{r(0,c=!c)},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",A=>{const{player:O,speed:P}=A;if(O!=null&&O.value&&d!==O.value)switch(r(7,d=O.value),d){case"playing":_();break;case"paused":R();break}P!=null&&P.value&&m!==P.value&&r(10,m=P.value)}),i.on("finish",()=>{v=!0,S&&(S(),S=null)}),o&&i.play()}),Go(()=>{c!==i.config.skipInactive&&i.setConfig({skipInactive:c})}),Dn(()=>{i.pause(),R()});function X(A){Ae[A?"unshift":"push"](()=>{g=A,r(11,g)})}const ae=A=>V(A);function N(A){c=A,r(0,c)}const D=()=>n("fullscreen");return e.$$set=A=>{"replayer"in A&&r(17,i=A.replayer),"showController"in A&&r(2,a=A.showController),"autoPlay"in A&&r(18,o=A.autoPlay),"skipInactive"in A&&r(0,c=A.skipInactive),"speedOption"in A&&r(3,p=A.speedOption),"speed"in A&&r(1,l=A.speed),"tags"in A&&r(19,s=A.tags),"inactiveColor"in A&&r(20,u=A.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 A=Math.min(1,f/w.totalTime);r(12,b=`${100*A}%`),n("ui-update-progress",{payload:A})}e.$$.dirty[0]&655360&&r(9,C=(()=>{const{context:A}=i.service.state,O=A.events.length,P=A.events[0].timestamp,j=A.events[O-1].timestamp,ue=[];return A.events.forEach(ce=>{if(ce.type===_i.Custom){const ie={name:ce.data.tag,background:s[ce.data.tag]||"rgb(73, 80, 246)",position:`${Rn(P,j,ce.timestamp)}%`};ue.push(ie)}}),ue})()),e.$$.dirty[0]&1179648&&r(13,x=(()=>{try{const{context:A}=i.service.state,O=A.events.length,P=A.events[0].timestamp,j=A.events[O-1].timestamp,ue=Su(A.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:u,position:`${Rn(P,j,ie[0])}%`,width:`${ce(P,j,ie[0],ie[1])}%`}))}catch(A){return[]}})())},[c,l,a,p,I,V,f,d,w,C,m,g,b,x,n,q,L,i,o,s,u,T,J,U,M,H,z,X,ae,N,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){Ve(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(),B(r,"class","rr-player__frame"),B(r,"style",e[11]),B(t,"class","rr-player"),B(t,"style",e[12])},m(o,c){Ce(o,t,c),$(t,r),e[31](r),$(t,n),a&&a.m(t,null),e[34](t),i=!0},p(o,c){(!i||c[0]&2048)&&B(r,"style",o[11]),o[7]?a?(a.p(o,c),c[0]&128&&Se(a,1)):(a=Mn(o),a.c(),Se(a,1),a.m(t,null)):a&&(Tn(),Ve(a,1,1,()=>{a=null}),kn()),(!i||c[0]&4096)&&B(t,"style",o[12])},i(o){i||(Se(a),i=!0)},o(o){Ve(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:c=!0}=t,{autoPlay:p=!0}=t,{speedOption:l=[1,2,4,8]}=t,{speed:s=1}=t,{showController:u=!0}=t,{tags:f={}}=t,{inactiveColor:h="#D4D4D4"}=t,d;const m=()=>d.getMirror();let g,v,y,S=n,E=i,w,b,C;const x=(O,P)=>{const j=n/P.width,ue=i/P.height,ce=[j,ue];a&&ce.push(a),O.style.transform=`scale(${Math.min(...ce)})translate(-50%, -50%)`},_=()=>{x(d.wrapper,{width:d.iframe.offsetWidth,height:d.iframe.offsetHeight})},R=()=>{g&&(gn()?wu():yu(g))},I=(O,P)=>{switch(d.on(O,P),O){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":w.$on(O,({detail:j})=>P(j))}},T=O=>{d.addEvent(O),w.triggerUpdateMeta()},J=()=>d.getMetaData(),U=()=>d,M=()=>{w.toggle()},q=O=>{w.setSpeed(O)},L=()=>{w.toggleSkipInactive()},V=()=>{w.play()},H=()=>{w.pause()},z=(O,P)=>{w.goto(O,P)},X=(O,P,j=!1,ue=void 0)=>{w.playRange(O,P,j,ue)};An(()=>{if(l!==void 0&&yn(l)!=="array")throw new Error("speedOption must be array");if(l.forEach(O=>{if(yn(O)!=="number")throw new Error("item of speedOption must be number")}),l.indexOf(s)<0)throw new Error(`speed must be one of speedOption,
180
168
  current config:
181
169
  {
182
170
  ...
@@ -184,8 +172,8 @@ PERFORMANCE OF THIS SOFTWARE.
184
172
  speedOption: [${l.toString()}]
185
173
  ...
186
174
  }
187
- `);r(7,d=new iu(o,Q({speed:s,root:b,unpackFn:gu},t))),d.on("resize",N=>{R(d.wrapper,N)}),y=vu(()=>{gn()?setTimeout(()=>{S=n,C=i,r(13,n=g.offsetWidth),r(14,i=g.offsetHeight-(c?_n:0)),R(d.wrapper,{width:d.iframe.offsetWidth,height:d.iframe.offsetHeight})},0):(r(13,n=S),r(14,i=C),R(d.wrapper,{width:d.iframe.offsetWidth,height:d.iframe.offsetHeight}))})}),Dn(()=>{y&&y()});function ae(N){Ae[N?"unshift":"push"](()=>{b=N,r(9,b)})}function _(N){Ae[N?"unshift":"push"](()=>{w=N,r(10,w)})}const D=()=>M();function O(N){Ae[N?"unshift":"push"](()=>{g=N,r(8,g)})}return e.$$set=N=>{r(39,t=Pi(Pi({},t),ki(N))),"width"in N&&r(13,n=N.width),"height"in N&&r(14,i=N.height),"maxScale"in N&&r(15,a=N.maxScale),"events"in N&&r(16,o=N.events),"skipInactive"in N&&r(0,u=N.skipInactive),"autoPlay"in N&&r(1,p=N.autoPlay),"speedOption"in N&&r(2,l=N.speedOption),"speed"in N&&r(17,s=N.speed),"showController"in N&&r(3,c=N.showController),"tags"in N&&r(4,f=N.tags),"inactiveColor"in N&&r(5,h=N.inactiveColor)},e.$$.update=()=>{e.$$.dirty[0]&24576&&r(11,v=dn({width:`${n}px`,height:`${i}px`})),e.$$.dirty[0]&24584&&r(12,E=dn({width:`${n}px`,height:`${i+(c?_n:0)}px`}))},t=ki(t),[u,p,l,c,f,h,M,d,g,b,w,v,E,n,i,a,o,s,m,A,B,k,J,U,x,q,I,j,H,z,X,ae,_,D,O]}let Pu=class extends li{constructor(t){super(),ai(this,t,Du,Au,si,{width:13,height:14,maxScale:15,events:16,skipInactive:0,autoPlay:1,speedOption:2,speed:17,showController:3,tags:4,inactiveColor:5,getMirror:18,triggerResize:19,toggleFullscreen:6,addEventListener:20,addEvent:21,getMetaData:22,getReplayer:23,toggle:24,setSpeed:25,toggleSkipInactive:26,play:27,pause:28,goto:29,playRange:30},null,[-1,-1])}get getMirror(){return this.$$.ctx[18]}get triggerResize(){return this.$$.ctx[19]}get toggleFullscreen(){return this.$$.ctx[6]}get addEventListener(){return this.$$.ctx[20]}get addEvent(){return this.$$.ctx[21]}get getMetaData(){return this.$$.ctx[22]}get getReplayer(){return this.$$.ctx[23]}get toggle(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[25]}get toggleSkipInactive(){return this.$$.ctx[26]}get play(){return this.$$.ctx[27]}get pause(){return this.$$.ctx[28]}get goto(){return this.$$.ctx[29]}get playRange(){return this.$$.ctx[30]}};class To extends Pu{constructor(t){super({target:t.target,props:t.data||t.props})}}exports.Player=To;exports.default=To;
188
- if (typeof module.exports == "object" && typeof exports == "object") {
175
+ `);r(7,d=new iu(o,Q({speed:s,root:v,unpackFn:gu},t))),d.on("resize",O=>{x(d.wrapper,O)}),y=vu(()=>{gn()?setTimeout(()=>{S=n,E=i,r(13,n=g.offsetWidth),r(14,i=g.offsetHeight-(u?_n:0)),x(d.wrapper,{width:d.iframe.offsetWidth,height:d.iframe.offsetHeight})},0):(r(13,n=S),r(14,i=E),x(d.wrapper,{width:d.iframe.offsetWidth,height:d.iframe.offsetHeight}))})}),Dn(()=>{y&&y()});function ae(O){Ae[O?"unshift":"push"](()=>{v=O,r(9,v)})}function N(O){Ae[O?"unshift":"push"](()=>{w=O,r(10,w)})}const D=()=>R();function A(O){Ae[O?"unshift":"push"](()=>{g=O,r(8,g)})}return e.$$set=O=>{r(39,t=Pi(Pi({},t),ki(O))),"width"in O&&r(13,n=O.width),"height"in O&&r(14,i=O.height),"maxScale"in O&&r(15,a=O.maxScale),"events"in O&&r(16,o=O.events),"skipInactive"in O&&r(0,c=O.skipInactive),"autoPlay"in O&&r(1,p=O.autoPlay),"speedOption"in O&&r(2,l=O.speedOption),"speed"in O&&r(17,s=O.speed),"showController"in O&&r(3,u=O.showController),"tags"in O&&r(4,f=O.tags),"inactiveColor"in O&&r(5,h=O.inactiveColor)},e.$$.update=()=>{e.$$.dirty[0]&24576&&r(11,b=dn({width:`${n}px`,height:`${i}px`})),e.$$.dirty[0]&24584&&r(12,C=dn({width:`${n}px`,height:`${i+(u?_n:0)}px`}))},t=ki(t),[c,p,l,u,f,h,R,d,g,v,w,b,C,n,i,a,o,s,m,_,I,T,J,U,M,q,L,V,H,z,X,ae,N,D,A]}let Pu=class extends li{constructor(t){super(),ai(this,t,Du,Au,si,{width:13,height:14,maxScale:15,events:16,skipInactive:0,autoPlay:1,speedOption:2,speed:17,showController:3,tags:4,inactiveColor:5,getMirror:18,triggerResize:19,toggleFullscreen:6,addEventListener:20,addEvent:21,getMetaData:22,getReplayer:23,toggle:24,setSpeed:25,toggleSkipInactive:26,play:27,pause:28,goto:29,playRange:30},null,[-1,-1])}get getMirror(){return this.$$.ctx[18]}get triggerResize(){return this.$$.ctx[19]}get toggleFullscreen(){return this.$$.ctx[6]}get addEventListener(){return this.$$.ctx[20]}get addEvent(){return this.$$.ctx[21]}get getMetaData(){return this.$$.ctx[22]}get getReplayer(){return this.$$.ctx[23]}get toggle(){return this.$$.ctx[24]}get setSpeed(){return this.$$.ctx[25]}get toggleSkipInactive(){return this.$$.ctx[26]}get play(){return this.$$.ctx[27]}get pause(){return this.$$.ctx[28]}get goto(){return this.$$.ctx[29]}get playRange(){return this.$$.ctx[30]}};class To extends Pu{constructor(t){super({target:t.target,props:t.data||t.props})}}exports.Player=To;exports.default=To;
176
+ ;if (typeof module.exports == "object" && typeof exports == "object") {
189
177
  var __cp = (to, from, except, desc) => {
190
178
  if ((from && typeof from === "object") || typeof from === "function") {
191
179
  for (let key of Object.getOwnPropertyNames(from)) {