@amplitude/rrweb-player 2.0.0-alpha.37 → 2.0.0-alpha.39

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.
@@ -11,11 +11,11 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var Yc=Object.defineProperty,Jc=Object.defineProperties;var Xc=Object.getOwnPropertyDescriptors;var yi=Object.getOwnPropertySymbols;var Zo=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable;var Qo=(e,t,r)=>t in e?Yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G=(e,t)=>{for(var r in t||(t={}))Zo.call(t,r)&&Qo(e,r,t[r]);if(yi)for(var r of yi(t))ea.call(t,r)&&Qo(e,r,t[r]);return e},we=(e,t)=>Jc(e,Xc(t));var jr=(e,t)=>{var r={};for(var i in e)Zo.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&yi)for(var i of yi(e))t.indexOf(i)<0&&ea.call(e,i)&&(r[i]=e[i]);return r};var Kc=Object.defineProperty,ru=e=>{throw TypeError(e)},Qc=(e,t,r)=>t in e?Kc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t,r)=>Qc(e,typeof t!="symbol"?t+"":t,r),uo=(e,t,r)=>t.has(e)||ru("Cannot "+r),R=(e,t,r)=>(uo(e,t,"read from private field"),r?r.call(e):t.get(e)),Y=(e,t,r)=>t.has(e)?ru("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),B=(e,t,r,i)=>(uo(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),ye=(e,t,r)=>(uo(e,t,"access private method"),r),ta,ni,Hr,Ut,Bt,Yr,oi,ei,Ye,co,ai,Ln,iu,su,ot,Je,Ti,xt,Or,Nt,at,ze,St,jt,er,Kt,Vt,yr,Qt,Fn,Ie,nu,ou,fo,Ui,Bi,Un,gt,Et,Ve,wr,ki,Pi,Bn,Lt,it;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Zc="5";var eu,tu;typeof window!="undefined"&&((tu=(ta=(eu=window.__svelte)!=null?eu:window.__svelte={}).v)!=null?tu:ta.v=new Set).add(Zc);let Lr=!1,ef=!1;function tf(){Lr=!0}tf();const rf=1,sf=2,nf=16,of=1,af=2,au=4,lf=8,uf=16,cf=2,lu="[",Ji="[!",ho="]",Ar={},Oe=Symbol(),ff="http://www.w3.org/1999/xhtml",$n=!1;var po=Array.isArray,hf=Array.prototype.indexOf,Xi=Array.from,uu=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,cu=Object.getOwnPropertyDescriptors,df=Object.prototype,pf=Array.prototype,mo=Object.getPrototypeOf,ra=Object.isExtensible;function mf(e){return e()}function Wn(e){for(var t=0;t<e.length;t++)e[t]()}function fu(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}const Re=2,go=4,Ki=8,gf=1<<24,At=16,Dt=32,fr=64,Qi=128,ct=512,xe=1024,Fe=2048,ht=4096,qe=8192,Ot=16384,Zi=32768,Dr=65536,ia=1<<17,hu=1<<18,Fr=1<<19,du=1<<20,Wt=1<<25,or=32768,zn=1<<21,vo=1<<22,Gt=1<<23,rr=Symbol("$state"),pu=Symbol("legacy props"),vf=Symbol(""),Er=new class extends Error{constructor(){super(...arguments),Rt(this,"name","StaleReactionError"),Rt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},yo=3,Ur=8;function es(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function yf(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wf(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function bf(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _f(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Sf(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ef(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cf(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function xf(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rf(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Nf(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mf(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Of(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ts(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Af(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Z=!1;function Mt(e){Z=e}let X;function je(e){if(e===null)throw ts(),Ar;return X=e}function rs(){return je(bt(X))}function st(e){if(Z){if(bt(X)!==null)throw ts(),Ar;X=e}}function Df(e=1){if(Z){for(var t=e,r=X;t--;)r=bt(r);X=r}}function $i(e=!0){for(var t=0,r=X;;){if(r.nodeType===Ur){var i=r.data;if(i===ho){if(t===0)return r;t-=1}else(i===lu||i===Ji)&&(t+=1)}var s=bt(r);e&&r.remove(),r=s}}function mu(e){if(!e||e.nodeType!==Ur)throw ts(),Ar;return e.data}function gu(e){return e===this.v}function Tf(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function vu(e){return!Tf(e,this.v)}let ne=null;function Tr(e){ne=e}function wo(e,t=!1,r){ne={p:ne,i:!1,c:null,e:null,s:e,x:null,l:Lr&&!t?{s:null,u:null,$:[]}:null}}function bo(e){var t=ne,r=t.e;if(r!==null){t.e=null;for(var i of r)Pu(i)}return e!==void 0&&(t.x=e),t.i=!0,ne=t.p,e!=null?e:{}}function ci(){return!Lr||ne!==null&&ne.l===null}let Zt=[];function yu(){var e=Zt;Zt=[],Wn(e)}function Br(e){if(Zt.length===0&&!ti){var t=Zt;queueMicrotask(()=>{t===Zt&&yu()})}Zt.push(e)}function kf(){for(;Zt.length>0;)yu()}function wu(e){var t=K;if(t===null)return J.f|=Gt,e;if((t.f&Zi)===0){if((t.f&Qi)===0)throw e;t.b.error(e)}else kr(e,t)}function kr(e,t){for(;t!==null;){if((t.f&Qi)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ii=new Set;let se=null,De=null,Xe=[],is=null,qn=!1,ti=!1;const Pf=class jn{constructor(){Y(this,Ye),Rt(this,"committed",!1),Rt(this,"current",new Map),Rt(this,"previous",new Map),Y(this,ni,new Set),Y(this,Hr,new Set),Y(this,Ut,0),Y(this,Bt,0),Y(this,Yr,null),Y(this,oi,new Set),Y(this,ei,new Set),Rt(this,"skipped_effects",new Set),Rt(this,"is_fork",!1)}is_deferred(){return this.is_fork||R(this,Bt)>0}process(t){var r;Xe=[],this.apply();var i={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)ye(this,Ye,co).call(this,s,i);this.is_fork||ye(this,Ye,iu).call(this),this.is_deferred()?(ye(this,Ye,ai).call(this,i.effects),ye(this,Ye,ai).call(this,i.render_effects)):(se=null,sa(i.render_effects),sa(i.effects),(r=R(this,Yr))==null||r.resolve()),De=null}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Gt)===0&&(this.current.set(t,t.v),De==null||De.set(t,t.v))}activate(){se=this,this.apply()}deactivate(){se===this&&(se=null,De=null)}flush(){if(this.activate(),Xe.length>0){if(bu(),se!==null&&se!==this)return}else R(this,Ut)===0&&this.process([]);this.deactivate()}discard(){for(const t of R(this,Hr))t(this);R(this,Hr).clear()}increment(t){B(this,Ut,R(this,Ut)+1),t&&B(this,Bt,R(this,Bt)+1)}decrement(t){B(this,Ut,R(this,Ut)-1),t&&B(this,Bt,R(this,Bt)-1),this.revive()}revive(){for(const t of R(this,oi))R(this,ei).delete(t),Ne(t,Fe),lr(t);for(const t of R(this,ei))Ne(t,ht),lr(t);this.flush()}oncommit(t){R(this,ni).add(t)}ondiscard(t){R(this,Hr).add(t)}settled(){var t;return((t=R(this,Yr))!=null?t:B(this,Yr,fu())).promise}static ensure(){if(se===null){const t=se=new jn;Ii.add(se),ti||jn.enqueue(()=>{se===t&&t.flush()})}return se}static enqueue(t){Br(t)}apply(){}};ni=new WeakMap;Hr=new WeakMap;Ut=new WeakMap;Bt=new WeakMap;Yr=new WeakMap;oi=new WeakMap;ei=new WeakMap;Ye=new WeakSet;co=function(e,t){var r;e.f^=xe;for(var i=e.first;i!==null;){var s=i.f,n=(s&(Dt|fr))!==0,o=n&&(s&xe)!==0,u=o||(s&qe)!==0||this.skipped_effects.has(i);if((i.f&Qi)!==0&&((r=i.b)!=null&&r.is_pending())&&(t={parent:t,effect:i,effects:[],render_effects:[]}),!u&&i.fn!==null){n?i.f^=xe:(s&go)!==0?t.effects.push(i):$r(i)&&((i.f&At)!==0&&R(this,oi).add(i),Ir(i));var a=i.first;if(a!==null){i=a;continue}}var c=i.parent;for(i=i.next;i===null&&c!==null;)c===t.effect&&(ye(this,Ye,ai).call(this,t.effects),ye(this,Ye,ai).call(this,t.render_effects),t=t.parent),i=c.next,c=c.parent}};ai=function(e){for(const t of e)(t.f&Fe)!==0?R(this,oi).add(t):(t.f&ht)!==0&&R(this,ei).add(t),ye(this,Ye,Ln).call(this,t.deps),Ne(t,xe)};Ln=function(e){if(e!==null)for(const t of e)(t.f&Re)===0||(t.f&or)===0||(t.f^=or,ye(this,Ye,Ln).call(this,t.deps))};iu=function(){if(R(this,Bt)===0){for(const e of R(this,ni))e();R(this,ni).clear()}R(this,Ut)===0&&ye(this,Ye,su).call(this)};su=function(){var e;if(Ii.size>1){this.previous.clear();var t=De,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const n of Ii){if(n===this){r=!1;continue}const o=[];for(const[a,c]of this.current){if(n.current.has(a))if(r&&c!==n.current.get(a))n.current.set(a,c);else continue;o.push(a)}if(o.length===0)continue;const u=[...n.current.keys()].filter(a=>!this.current.has(a));if(u.length>0){var s=Xe;Xe=[];const a=new Set,c=new Map;for(const l of o)_u(l,u,a,c);if(Xe.length>0){se=n,n.apply();for(const l of Xe)ye(e=n,Ye,co).call(e,l,i);n.deactivate()}Xe=s}}se=null,De=t}this.committed=!0,Ii.delete(this)};let ar=Pf;function If(e){var t=ti;ti=!0;try{for(var r;;){if(kf(),Xe.length===0&&(se==null||se.flush(),Xe.length===0))return is=null,r;bu()}}finally{ti=t}}function bu(){var e=ir;qn=!0;var t=null;try{var r=0;for(zi(!0);Xe.length>0;){var i=ar.ensure();if(r++>1e3){var s,n;Lf()}i.process(Xe),Ht.clear()}}finally{qn=!1,zi(e),is=null}}function Lf(){try{Sf()}catch(e){kr(e,is)}}let vt=null;function sa(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Ot|qe))===0&&$r(i)&&(vt=new Set,Ir(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?Uu(i):i.fn=null),(vt==null?void 0:vt.size)>0)){Ht.clear();for(const s of vt){if((s.f&(Ot|qe))!==0)continue;const n=[s];let o=s.parent;for(;o!==null;)vt.has(o)&&(vt.delete(o),n.push(o)),o=o.parent;for(let u=n.length-1;u>=0;u--){const a=n[u];(a.f&(Ot|qe))===0&&Ir(a)}}vt.clear()}}vt=null}}function _u(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const n=s.f;(n&Re)!==0?_u(s,t,r,i):(n&(vo|At))!==0&&(n&Fe)===0&&Su(s,t,i)&&(Ne(s,Fe),lr(s))}}function Su(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&Re)!==0&&Su(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function lr(e){for(var t=is=e;t.parent!==null;){t=t.parent;var r=t.f;if(qn&&t===K&&(r&At)!==0&&(r&hu)===0)return;if((r&(fr|Dt))!==0){if((r&xe)===0)return;t.f^=xe}}Xe.push(t)}function Ff(e){let t=0,r=Yt(0),i;return()=>{li()&&(M(r),fi(()=>(t===0&&(i=Ee(()=>e(()=>ri(r)))),t+=1,()=>{Br(()=>{t-=1,t===0&&(i==null||i(),i=void 0,ri(r))})})))}}var Uf=Dr|Fr|Qi;function Bf(e,t,r){new $f(e,t,r)}class $f{constructor(t,r,i){Y(this,Ie),Rt(this,"parent"),Y(this,ot,!1),Y(this,Je),Y(this,Ti,Z?X:null),Y(this,xt),Y(this,Or),Y(this,Nt),Y(this,at,null),Y(this,ze,null),Y(this,St,null),Y(this,jt,null),Y(this,er,null),Y(this,Kt,0),Y(this,Vt,0),Y(this,yr,!1),Y(this,Qt,null),Y(this,Fn,Ff(()=>(B(this,Qt,Yt(R(this,Kt))),()=>{B(this,Qt,null)}))),B(this,Je,t),B(this,xt,r),B(this,Or,i),this.parent=K.b,B(this,ot,!!R(this,xt).pending),B(this,Nt,Eo(()=>{if(K.b=this,Z){const n=R(this,Ti);rs(),n.nodeType===Ur&&n.data===Ji?ye(this,Ie,ou).call(this):ye(this,Ie,nu).call(this)}else{var s=ye(this,Ie,fo).call(this);try{B(this,at,Qe(()=>i(s)))}catch(n){this.error(n)}R(this,Vt)>0?ye(this,Ie,Bi).call(this):B(this,ot,!1)}return()=>{var n;(n=R(this,er))==null||n.remove()}},Uf)),Z&&B(this,Je,X)}is_pending(){return R(this,ot)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!R(this,xt).pending}update_pending_count(t){ye(this,Ie,Un).call(this,t),B(this,Kt,R(this,Kt)+t),R(this,Qt)&&Pr(R(this,Qt),R(this,Kt))}get_effect_pending(){return R(this,Fn).call(this),M(R(this,Qt))}error(t){var r=R(this,xt).onerror;let i=R(this,xt).failed;if(R(this,yr)||!r&&!i)throw t;R(this,at)&&(Le(R(this,at)),B(this,at,null)),R(this,ze)&&(Le(R(this,ze)),B(this,ze,null)),R(this,St)&&(Le(R(this,St)),B(this,St,null)),Z&&(je(R(this,Ti)),Df(),je($i()));var s=!1,n=!1;const o=()=>{if(s){Af();return}s=!0,n&&Of(),ar.ensure(),B(this,Kt,0),R(this,St)!==null&&hr(R(this,St),()=>{B(this,St,null)}),B(this,ot,this.has_pending_snippet()),B(this,at,ye(this,Ie,Ui).call(this,()=>(B(this,yr,!1),Qe(()=>R(this,Or).call(this,R(this,Je)))))),R(this,Vt)>0?ye(this,Ie,Bi).call(this):B(this,ot,!1)};var u=J;try{Ue(null),n=!0,r==null||r(t,o),n=!1}catch(a){kr(a,R(this,Nt)&&R(this,Nt).parent)}finally{Ue(u)}i&&Br(()=>{B(this,St,ye(this,Ie,Ui).call(this,()=>{ar.ensure(),B(this,yr,!0);try{return Qe(()=>{i(R(this,Je),()=>t,()=>o)})}catch(a){return kr(a,R(this,Nt).parent),null}finally{B(this,yr,!1)}}))})}}ot=new WeakMap;Je=new WeakMap;Ti=new WeakMap;xt=new WeakMap;Or=new WeakMap;Nt=new WeakMap;at=new WeakMap;ze=new WeakMap;St=new WeakMap;jt=new WeakMap;er=new WeakMap;Kt=new WeakMap;Vt=new WeakMap;yr=new WeakMap;Qt=new WeakMap;Fn=new WeakMap;Ie=new WeakSet;nu=function(){try{B(this,at,Qe(()=>R(this,Or).call(this,R(this,Je))))}catch(e){this.error(e)}B(this,ot,!1)};ou=function(){const e=R(this,xt).pending;e&&(B(this,ze,Qe(()=>e(R(this,Je)))),ar.enqueue(()=>{var t=ye(this,Ie,fo).call(this);B(this,at,ye(this,Ie,Ui).call(this,()=>(ar.ensure(),Qe(()=>R(this,Or).call(this,t))))),R(this,Vt)>0?ye(this,Ie,Bi).call(this):(hr(R(this,ze),()=>{B(this,ze,null)}),B(this,ot,!1))}))};fo=function(){var e=R(this,Je);return R(this,ot)&&(B(this,er,ft()),R(this,Je).before(R(this,er)),e=R(this,er)),e};Ui=function(e){var t=K,r=J,i=ne;et(R(this,Nt)),Ue(R(this,Nt)),Tr(R(this,Nt).ctx);try{return e()}catch(s){return wu(s),null}finally{et(t),Ue(r),Tr(i)}};Bi=function(){const e=R(this,xt).pending;R(this,at)!==null&&(B(this,jt,document.createDocumentFragment()),R(this,jt).append(R(this,er)),Wu(R(this,at),R(this,jt))),R(this,ze)===null&&B(this,ze,Qe(()=>e(R(this,Je))))};Un=function(e){var t;if(!this.has_pending_snippet()){this.parent&&ye(t=this.parent,Ie,Un).call(t,e);return}B(this,Vt,R(this,Vt)+e),R(this,Vt)===0&&(B(this,ot,!1),R(this,ze)&&hr(R(this,ze),()=>{B(this,ze,null)}),R(this,jt)&&(R(this,Je).before(R(this,jt)),B(this,jt,null)))};function Wf(e,t,r,i){const s=ci()?ss:ns;if(r.length===0&&e.length===0){i(t.map(s));return}var n=se,o=K,u=zf();function a(){Promise.all(r.map(c=>qf(c))).then(c=>{u();try{i([...t.map(s),...c])}catch(l){(o.f&Ot)===0&&kr(l,o)}n==null||n.deactivate(),Wi()}).catch(c=>{kr(c,o)})}e.length>0?Promise.all(e).then(()=>{u();try{return a()}finally{n==null||n.deactivate(),Wi()}}):a()}function zf(){var e=K,t=J,r=ne,i=se;return function(n=!0){et(e),Ue(t),Tr(r),n&&(i==null||i.activate())}}function Wi(){et(null),Ue(null),Tr(null)}function ss(e){var t=Re|Fe,r=J!==null&&(J.f&Re)!==0?J:null;return K!==null&&(K.f|=Fr),{ctx:ne,deps:null,effects:null,equals:gu,f:t,fn:e,reactions:null,rv:0,v:Oe,wv:0,parent:r!=null?r:K,ac:null}}function qf(e,t){let r=K;r===null&&yf();var i=r.b,s=void 0,n=Yt(Oe),o=!J,u=new Map;return Qf(()=>{var a,c=fu();s=c.promise;try{Promise.resolve(e()).then(c.resolve,c.reject).then(()=>{l===se&&l.committed&&l.deactivate(),Wi()})}catch(d){c.reject(d),Wi()}var l=se;if(o){var h=!i.is_pending();i.update_pending_count(1),l.increment(h),(a=u.get(l))==null||a.reject(Er),u.delete(l),u.set(l,c)}const f=(d,m=void 0)=>{if(l.activate(),m)m!==Er&&(n.f|=Gt,Pr(n,m));else{(n.f&Gt)!==0&&(n.f^=Gt),Pr(n,d);for(const[p,g]of u){if(u.delete(p),p===l)break;g.reject(Er)}}o&&(i.update_pending_count(-1),l.decrement(h))};c.promise.then(f,d=>f(null,d||"unknown"))}),So(()=>{for(const a of u.values())a.reject(Er)}),new Promise(a=>{function c(l){function h(){l===s?a(n):c(s)}l.then(h,h)}c(s)})}function ns(e){const t=ss(e);return t.equals=vu,t}function Eu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Le(t[r])}}function jf(e){for(var t=e.parent;t!==null;){if((t.f&Re)===0)return(t.f&Ot)===0?t:null;t=t.parent}return null}function _o(e){var t,r=K;et(jf(e));try{e.f&=~or,Eu(e),t=Vu(e)}finally{et(r)}return t}function Cu(e){var t=_o(e);if(e.equals(t)||(se!=null&&se.is_fork||(e.v=t),e.wv=qu()),!dr)if(De!==null)(li()||se!=null&&se.is_fork)&&De.set(e,t);else{var r=(e.f&ct)===0?ht:xe;Ne(e,r)}}let Vn=new Set;const Ht=new Map;let xu=!1;function Yt(e,t){var r={f:0,v:e,reactions:null,equals:gu,rv:0,wv:0};return r}function Tt(e,t){const r=Yt(e);return th(r),r}function Ae(e,t=!1,r=!0){var n;var i;const s=Yt(e);return t||(s.equals=vu),Lr&&r&&ne!==null&&ne.l!==null&&((n=(i=ne.l).s)!=null?n:i.s=[]).push(s),s}function re(e,t,r=!1){J!==null&&(!wt||(J.f&ia)!==0)&&ci()&&(J.f&(Re|At|vo|ia))!==0&&!(Ze!=null&&Ze.includes(e))&&Mf();let i=r?Cr(t):t;return Pr(e,i)}function Pr(e,t){if(!e.equals(t)){var r=e.v;dr?Ht.set(e,t):Ht.set(e,r),e.v=t;var i=ar.ensure();i.capture(e,r),(e.f&Re)!==0&&((e.f&Fe)!==0&&_o(e),Ne(e,(e.f&ct)!==0?xe:ht)),e.wv=qu(),Ru(e,Fe),ci()&&K!==null&&(K.f&xe)!==0&&(K.f&(Dt|fr))===0&&(He===null?rh([e]):He.push(e)),!i.is_fork&&Vn.size>0&&!xu&&Vf()}return t}function Vf(){xu=!1;var e=ir;zi(!0);const t=Array.from(Vn);try{for(const r of t)(r.f&xe)!==0&&Ne(r,ht),$r(r)&&Ir(r)}finally{zi(e)}Vn.clear()}function na(e,t=1){var r=M(e),i=t===1?r++:r--;return re(e,r),i}function ri(e){re(e,e.v+1)}function Ru(e,t){var r=e.reactions;if(r!==null)for(var i=ci(),s=r.length,n=0;n<s;n++){var o=r[n],u=o.f;if(!(!i&&o===K)){var a=(u&Fe)===0;if(a&&Ne(o,t),(u&Re)!==0){var c=o;De==null||De.delete(c),(u&or)===0&&(u&ct&&(o.f|=or),Ru(c,ht))}else a&&((u&At)!==0&&vt!==null&&vt.add(o),lr(o))}}}function Cr(e){if(typeof e!="object"||e===null||rr in e)return e;const t=mo(e);if(t!==df&&t!==pf)return e;var r=new Map,i=po(e),s=Tt(0),n=sr,o=u=>{if(sr===n)return u();var a=J,c=sr;Ue(null),ua(n);var l=u();return Ue(a),ua(c),l};return i&&r.set("length",Tt(e.length)),new Proxy(e,{defineProperty(u,a,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Rf();var l=r.get(a);return l===void 0?l=o(()=>{var h=Tt(c.value);return r.set(a,h),h}):re(l,c.value,!0),!0},deleteProperty(u,a){var c=r.get(a);if(c===void 0){if(a in u){const l=o(()=>Tt(Oe));r.set(a,l),ri(s)}}else re(c,Oe),ri(s);return!0},get(u,a,c){var l;if(a===rr)return e;var h=r.get(a),f=a in u;if(h===void 0&&(!f||(l=tr(u,a))!=null&&l.writable)&&(h=o(()=>{var m=Cr(f?u[a]:Oe),p=Tt(m);return p}),r.set(a,h)),h!==void 0){var d=M(h);return d===Oe?void 0:d}return Reflect.get(u,a,c)},getOwnPropertyDescriptor(u,a){var c=Reflect.getOwnPropertyDescriptor(u,a);if(c&&"value"in c){var l=r.get(a);l&&(c.value=M(l))}else if(c===void 0){var h=r.get(a),f=h==null?void 0:h.v;if(h!==void 0&&f!==Oe)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return c},has(u,a){var c;if(a===rr)return!0;var l=r.get(a),h=l!==void 0&&l.v!==Oe||Reflect.has(u,a);if(l!==void 0||K!==null&&(!h||(c=tr(u,a))!=null&&c.writable)){l===void 0&&(l=o(()=>{var d=h?Cr(u[a]):Oe,m=Tt(d);return m}),r.set(a,l));var f=M(l);if(f===Oe)return!1}return h},set(u,a,c,l){var h,f=r.get(a),d=a in u;if(i&&a==="length")for(var m=c;m<f.v;m+=1){var p=r.get(m+"");p!==void 0?re(p,Oe):m in u&&(p=o(()=>Tt(Oe)),r.set(m+"",p))}if(f===void 0)(!d||(h=tr(u,a))!=null&&h.writable)&&(f=o(()=>Tt(void 0)),re(f,Cr(c)),r.set(a,f));else{d=f.v!==Oe;var g=o(()=>Cr(c));re(f,g)}var v=Reflect.getOwnPropertyDescriptor(u,a);if(v!=null&&v.set&&v.set.call(l,c),!d){if(i&&typeof a=="string"){var w=r.get("length"),_=Number(a);Number.isInteger(_)&&_>=w.v&&re(w,_+1)}ri(s)}return!0},ownKeys(u){M(s);var a=Reflect.ownKeys(u).filter(h=>{var f=r.get(h);return f===void 0||f.v!==Oe});for(var[c,l]of r)l.v!==Oe&&!(c in u)&&a.push(c);return a},setPrototypeOf(){Nf()}})}var oa,Nu,Mu,Ou;function Gn(){if(oa===void 0){oa=window,Nu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Mu=tr(t,"firstChild").get,Ou=tr(t,"nextSibling").get,ra(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ra(r)&&(r.__t=void 0)}}function ft(e=""){return document.createTextNode(e)}function ur(e){return Mu.call(e)}function bt(e){return Ou.call(e)}function nt(e,t){if(!Z)return ur(e);var r=ur(X);if(r===null)r=X.appendChild(ft());else if(t&&r.nodeType!==yo){var i=ft();return r==null||r.before(i),je(i),i}return je(r),r}function Gf(e,t=!1){if(!Z){var r=ur(e);return r instanceof Comment&&r.data===""?bt(r):r}if(t&&(X==null?void 0:X.nodeType)!==yo){var i=ft();return X==null||X.before(i),je(i),i}return X}function Ge(e,t=1,r=!1){let i=Z?X:e;for(var s;t--;)s=i,i=bt(i);if(!Z)return i;if(r&&(i==null?void 0:i.nodeType)!==yo){var n=ft();return i===null?s==null||s.after(n):i.before(n),je(n),n}return je(i),i}function Au(e){e.textContent=""}function Du(){return!1}let aa=!1;function Tu(){aa||(aa=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function os(e){var t=J,r=K;Ue(null),et(null);try{return e()}finally{Ue(t),et(r)}}function Hf(e,t,r,i=r){e.addEventListener(t,()=>os(r));const s=e.__on_r;s?e.__on_r=()=>{s(),i(!0)}:e.__on_r=()=>i(!0),Tu()}function ku(e){K===null&&(J===null&&_f(),bf()),dr&&wf()}function Yf(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function _t(e,t,r){var u;var i=K;i!==null&&(i.f&qe)!==0&&(e|=qe);var s={ctx:ne,deps:null,nodes:null,f:e|Fe|ct,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Ir(s),s.f|=Zi}catch(a){throw Le(s),a}else t!==null&&lr(s);var n=s;if(r&&n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&Fr)===0&&(n=n.first,(e&At)!==0&&(e&Dr)!==0&&n!==null&&(n.f|=Dr)),n!==null&&(n.parent=i,i!==null&&Yf(n,i),J!==null&&(J.f&Re)!==0&&(e&fr)===0)){var o=J;((u=o.effects)!=null?u:o.effects=[]).push(n)}return s}function li(){return J!==null&&!wt}function So(e){const t=_t(Ki,null,!1);return Ne(t,xe),t.teardown=e,t}function Hn(e){var s;ku();var t=K.f,r=!J&&(t&Dt)!==0&&(t&Zi)===0;if(r){var i=ne;((s=i.e)!=null?s:i.e=[]).push(e)}else return Pu(e)}function Pu(e){return _t(go|du,e,!1)}function Jf(e){return ku(),_t(Ki|du,e,!0)}function Xf(e){ar.ensure();const t=_t(fr|Fr,e,!0);return(r={})=>new Promise(i=>{r.outro?hr(t,()=>{Le(t),i(void 0)}):(Le(t),i(void 0))})}function Kf(e){return _t(go,e,!1)}function $t(e,t){var r=ne,i={effect:null,ran:!1,deps:e};r.l.$.push(i),i.effect=fi(()=>{e(),!i.ran&&(i.ran=!0,Ee(t))})}function Iu(){var e=ne;fi(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&xe)!==0&&Ne(r,ht),$r(r)&&Ir(r),t.ran=!1}})}function Qf(e){return _t(vo|Fr,e,!0)}function fi(e,t=0){return _t(Ki|t,e,!0)}function xr(e,t=[],r=[],i=[]){Wf(i,t,r,s=>{_t(Ki,()=>e(...s.map(M)),!0)})}function Eo(e,t=0){var r=_t(At|t,e,!0);return r}function Qe(e){return _t(Dt|Fr,e,!0)}function Lu(e){var t=e.teardown;if(t!==null){const r=dr,i=J;la(!0),Ue(null);try{t.call(null)}finally{la(r),Ue(i)}}}function Fu(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&os(()=>{s.abort(Er)});var i=r.next;(r.f&fr)!==0?r.parent=null:Le(r,t),r=i}}function Zf(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Dt)===0&&Le(t),t=r}}function Le(e,t=!0){var r=!1;(t||(e.f&hu)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(eh(e.nodes.start,e.nodes.end),r=!0),Fu(e,t&&!r),qi(e,0),Ne(e,Ot);var i=e.nodes&&e.nodes.t;if(i!==null)for(const n of i)n.stop();Lu(e);var s=e.parent;s!==null&&s.first!==null&&Uu(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function eh(e,t){for(;e!==null;){var r=e===t?null:bt(e);e.remove(),e=r}}function Uu(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function hr(e,t,r=!0){var i=[];Bu(e,i,!0);var s=()=>{r&&Le(e),t&&t()},n=i.length;if(n>0){var o=()=>--n||s();for(var u of i)u.out(o)}else s()}function Bu(e,t,r){if((e.f&qe)===0){e.f^=qe;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var n=s.next,o=(s.f&Dr)!==0||(s.f&Dt)!==0&&(e.f&At)!==0;Bu(s,t,o?r:!1),s=n}}}function Co(e){$u(e,!0)}function $u(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&xe)===0&&(Ne(e,Fe),lr(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Dr)!==0||(r.f&Dt)!==0;$u(r,s?t:!1),r=i}var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||t)&&o.in()}}function Wu(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:bt(r);t.append(r),r=s}}let ir=!1;function zi(e){ir=e}let dr=!1;function la(e){dr=e}let J=null,wt=!1;function Ue(e){J=e}let K=null;function et(e){K=e}let Ze=null;function th(e){J!==null&&(Ze===null?Ze=[e]:Ze.push(e))}let Pe=null,Be=0,He=null;function rh(e){He=e}let zu=1,ui=0,sr=ui;function ua(e){sr=e}function qu(){return++zu}function $r(e){var t=e.f;if((t&Fe)!==0)return!0;if(t&Re&&(e.f&=~or),(t&ht)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var n=r[s];if($r(n)&&Cu(n),n.wv>e.wv)return!0}(t&ct)!==0&&De===null&&Ne(e,xe)}return!1}function ju(e,t,r=!0){var i=e.reactions;if(i!==null&&!(Ze!=null&&Ze.includes(e)))for(var s=0;s<i.length;s++){var n=i[s];(n.f&Re)!==0?ju(n,t,!1):t===n&&(r?Ne(n,Fe):(n.f&xe)!==0&&Ne(n,ht),lr(n))}}function Vu(e){var p;var t,r=Pe,i=Be,s=He,n=J,o=Ze,u=ne,a=wt,c=sr,l=e.f;Pe=null,Be=0,He=null,J=(l&(Dt|fr))===0?e:null,Ze=null,Tr(e.ctx),wt=!1,sr=++ui,e.ac!==null&&(os(()=>{e.ac.abort(Er)}),e.ac=null);try{e.f|=zn;var h=e.fn,f=h(),d=e.deps;if(Pe!==null){var m;if(qi(e,Be),d!==null&&Be>0)for(d.length=Be+Pe.length,m=0;m<Pe.length;m++)d[Be+m]=Pe[m];else e.deps=d=Pe;if(li()&&(e.f&ct)!==0)for(m=Be;m<d.length;m++)((p=(t=d[m]).reactions)!=null?p:t.reactions=[]).push(e)}else d!==null&&Be<d.length&&(qi(e,Be),d.length=Be);if(ci()&&He!==null&&!wt&&d!==null&&(e.f&(Re|ht|Fe))===0)for(m=0;m<He.length;m++)ju(He[m],e);return n!==null&&n!==e&&(ui++,He!==null&&(s===null?s=He:s.push(...He))),(e.f&Gt)!==0&&(e.f^=Gt),f}catch(g){return wu(g)}finally{e.f^=zn,Pe=r,Be=i,He=s,J=n,Ze=o,Tr(u),wt=a,sr=c}}function ih(e,t){let r=t.reactions;if(r!==null){var i=hf.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}r===null&&(t.f&Re)!==0&&(Pe===null||!Pe.includes(t))&&(Ne(t,ht),(t.f&ct)!==0&&(t.f^=ct,t.f&=~or),Eu(t),qi(t,0))}function qi(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ih(e,r[i])}function Ir(e){var t=e.f;if((t&Ot)===0){Ne(e,xe);var r=K,i=ir;K=e,ir=!0;try{(t&(At|gf))!==0?Zf(e):Fu(e),Lu(e);var s=Vu(e);e.teardown=typeof s=="function"?s:null,e.wv=zu;var n;$n&&ef&&(e.f&Fe)!==0&&e.deps}finally{ir=i,K=r}}}function M(e){var a;var t=e.f,r=(t&Re)!==0;if(J!==null&&!wt){var i=K!==null&&(K.f&Ot)!==0;if(!i&&!(Ze!=null&&Ze.includes(e))){var s=J.deps;if((J.f&zn)!==0)e.rv<ui&&(e.rv=ui,Pe===null&&s!==null&&s[Be]===e?Be++:Pe===null?Pe=[e]:Pe.includes(e)||Pe.push(e));else{((a=J.deps)!=null?a:J.deps=[]).push(e);var n=e.reactions;n===null?e.reactions=[J]:n.includes(J)||n.push(J)}}}if(dr){if(Ht.has(e))return Ht.get(e);if(r){var o=e,u=o.v;return((o.f&xe)===0&&o.reactions!==null||Hu(o))&&(u=_o(o)),Ht.set(o,u),u}}else r&&(!(De!=null&&De.has(e))||se!=null&&se.is_fork&&!li())&&(o=e,$r(o)&&Cu(o),ir&&li()&&(o.f&ct)===0&&Gu(o));if(De!=null&&De.has(e))return De.get(e);if((e.f&Gt)!==0)throw e.v;return e.v}function Gu(e){var t;if(e.deps!==null){e.f^=ct;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),(r.f&Re)!==0&&(r.f&ct)===0&&Gu(r)}}function Hu(e){if(e.v===Oe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ht.has(t)||(t.f&Re)!==0&&Hu(t))return!0;return!1}function Ee(e){var t=wt;try{return wt=!0,e()}finally{wt=t}}const sh=-7169;function Ne(e,t){e.f=e.f&sh|t}function $e(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(rr in e)Yn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&rr in r&&Yn(r)}}}function Yn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let i in e)try{Yn(e[i],t)}catch(s){}const r=mo(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const i=cu(r);for(let s in i){const n=i[s].get;if(n)try{n.call(e)}catch(o){}}}}}const nh=new Set,ca=new Set;function oh(e,t,r,i={}){function s(n){if(i.capture||Jr.call(t,n),!n.cancelBubble)return os(()=>r==null?void 0:r.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Br(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function Vr(e,t,r,i,s){var n={capture:i,passive:s},o=oh(e,t,r,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&So(()=>{t.removeEventListener(e,o,n)})}let fa=null;function Jr(e){var t,r=this,i=r.ownerDocument,s=e.type,n=((t=e.composedPath)==null?void 0:t.call(e))||[],o=n[0]||e.target;fa=e;var u=0,a=fa===e&&e.__root;if(a){var c=n.indexOf(a);if(c!==-1&&(r===document||r===window)){e.__root=r;return}var l=n.indexOf(r);if(l===-1)return;c<=l&&(u=c)}if(o=n[u]||e.target,o!==r){uu(e,"currentTarget",{configurable:!0,get(){return o||i}});var h=J,f=K;Ue(null),et(null);try{for(var d,m=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+s];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(v){d?m.push(v):d=v}if(e.cancelBubble||p===r||p===null)break;o=p}if(d){for(let v of m)queueMicrotask(()=>{throw v});throw d}}finally{e.__root=r,delete e.currentTarget,Ue(h),et(f)}}}function Yu(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function cr(e,t){var r=K;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Wr(e,t){var r=(t&cf)!==0,i,s=!e.startsWith("<!>");return()=>{if(Z)return cr(X,null),X;i===void 0&&(i=Yu(s?e:"<!>"+e),i=ur(i));var n=r||Nu?document.importNode(i,!0):i.cloneNode(!0);return cr(n,n),n}}function ah(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,n;return()=>{if(Z)return cr(X,null),X;if(!n){var o=Yu(s),u=ur(o);n=ur(u)}var a=n.cloneNode(!0);return cr(a,a),a}}function Ju(e,t){return ah(e,t,"svg")}function lh(){if(Z)return cr(X,null),X;var e=document.createDocumentFragment(),t=document.createComment(""),r=ft();return e.append(t,r),cr(t,r),e}function Ct(e,t){if(Z){var r=K;((r.f&Zi)===0||r.nodes.end===null)&&(r.nodes.end=X),rs();return}e!==null&&e.before(t)}const uh=["touchstart","touchmove"];function ch(e){return uh.includes(e)}function Li(e,t){var i;var r=t==null?"":typeof t=="object"?t+"":t;r!==((i=e.__t)!=null?i:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Xu(e,t){return Ku(e,t)}function fh(e,t){var o;Gn(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,i=Z,s=X;try{for(var n=ur(r);n&&(n.nodeType!==Ur||n.data!==lu);)n=bt(n);if(!n)throw Ar;Mt(!0),je(n);const u=Ku(e,we(G({},t),{anchor:n}));return Mt(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
15
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw u;return u!==Ar&&console.warn("Failed to hydrate: ",u),t.recover===!1&&Ef(),Gn(),Au(r),Mt(!1),Xu(e,t)}finally{Mt(i),je(s)}}const gr=new Map;function Ku(e,{target:t,anchor:r,props:i={},events:s,context:n,intro:o=!0}){Gn();var u=new Set,a=h=>{for(var f=0;f<h.length;f++){var d=h[f];if(!u.has(d)){u.add(d);var m=ch(d);t.addEventListener(d,Jr,{passive:m});var p=gr.get(d);p===void 0?(document.addEventListener(d,Jr,{passive:m}),gr.set(d,1)):gr.set(d,p+1)}}};a(Xi(nh)),ca.add(a);var c=void 0,l=Xf(()=>{var h=r!=null?r:t.appendChild(ft());return Bf(h,{pending:()=>{}},f=>{if(n){wo({});var d=ne;d.c=n}if(s&&(i.$$events=s),Z&&cr(f,null),c=e(f,i)||{},Z&&(K.nodes.end=X,X===null||X.nodeType!==Ur||X.data!==ho))throw ts(),Ar;n&&bo()}),()=>{var f;for(var d of u){t.removeEventListener(d,Jr);var m=gr.get(d);--m===0?(document.removeEventListener(d,Jr),gr.delete(d)):gr.set(d,m)}ca.delete(a),h!==r&&((f=h.parentNode)==null||f.removeChild(h))}});return Jn.set(c,l),c}let Jn=new WeakMap;function hh(e,t){const r=Jn.get(e);return r?(Jn.delete(e),r(t)):Promise.resolve()}class dh{constructor(t,r=!0){Rt(this,"anchor"),Y(this,gt,new Map),Y(this,Et,new Map),Y(this,Ve,new Map),Y(this,wr,new Set),Y(this,ki,!0),Y(this,Pi,()=>{var i=se;if(R(this,gt).has(i)){var s=R(this,gt).get(i),n=R(this,Et).get(s);if(n)Co(n),R(this,wr).delete(s);else{var o=R(this,Ve).get(s);o&&(R(this,Et).set(s,o.effect),R(this,Ve).delete(s),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[u,a]of R(this,gt)){if(R(this,gt).delete(u),u===i)break;const c=R(this,Ve).get(a);c&&(Le(c.effect),R(this,Ve).delete(a))}for(const[u,a]of R(this,Et)){if(u===s||R(this,wr).has(u))continue;const c=()=>{if(Array.from(R(this,gt).values()).includes(u)){var h=document.createDocumentFragment();Wu(a,h),h.append(ft()),R(this,Ve).set(u,{effect:a,fragment:h})}else Le(a);R(this,wr).delete(u),R(this,Et).delete(u)};R(this,ki)||!n?(R(this,wr).add(u),hr(a,c,!1)):c()}}}),Y(this,Bn,i=>{R(this,gt).delete(i);const s=Array.from(R(this,gt).values());for(const[n,o]of R(this,Ve))s.includes(n)||(Le(o.effect),R(this,Ve).delete(n))}),this.anchor=t,B(this,ki,r)}ensure(t,r){var i=se,s=Du();if(r&&!R(this,Et).has(t)&&!R(this,Ve).has(t))if(s){var n=document.createDocumentFragment(),o=ft();n.append(o),R(this,Ve).set(t,{effect:Qe(()=>r(o)),fragment:n})}else R(this,Et).set(t,Qe(()=>r(this.anchor)));if(R(this,gt).set(i,t),s){for(const[u,a]of R(this,Et))u===t?i.skipped_effects.delete(a):i.skipped_effects.add(a);for(const[u,a]of R(this,Ve))u===t?i.skipped_effects.delete(a.effect):i.skipped_effects.add(a.effect);i.oncommit(R(this,Pi)),i.ondiscard(R(this,Bn))}else Z&&(this.anchor=X),R(this,Pi).call(this)}}gt=new WeakMap;Et=new WeakMap;Ve=new WeakMap;wr=new WeakMap;ki=new WeakMap;Pi=new WeakMap;Bn=new WeakMap;function xo(e){ne===null&&es(),Lr&&ne.l!==null?Zu(ne).m.push(e):Hn(()=>{const t=Ee(e);if(typeof t=="function")return t})}function Qu(e){ne===null&&es(),xo(()=>()=>Ee(e))}function ph(e,t,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:i})}function mh(){const e=ne;return e===null&&es(),(t,r,i)=>{var s;const n=(s=e.s.$$events)==null?void 0:s[t];if(n){const o=po(n)?n.slice():[n],u=ph(t,r,i);for(const a of o)a.call(e.x,u);return!u.defaultPrevented}return!0}}function gh(e){ne===null&&es(),ne.l===null&&Cf(),Zu(ne).a.push(e)}function Zu(e){var r;var t=e.l;return(r=t.u)!=null?r:t.u={a:[],b:[],m:[]}}function Xn(e,t,r=!1){Z&&rs();var i=new dh(e),s=r?Dr:0;function n(o,u){if(Z){const c=mu(e)===Ji;if(o===c){var a=$i();je(a),i.anchor=a,Mt(!1),i.ensure(o,u),Mt(!0);return}}i.ensure(o,u)}Eo(()=>{var o=!1;t((u,a=!0)=>{o=!0,n(a,u)}),o||n(!1,null)},s)}function Ss(e,t){return t}function vh(e,t,r){var h;for(var i=[],s=t.length,n,o=t.length,u=0;u<s;u++){let f=t[u];hr(f,()=>{if(n){if(n.pending.delete(f),n.done.add(f),n.pending.size===0){var d=e.outrogroups;Kn(Xi(n.done)),d.delete(n),d.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var a=i.length===0&&r!==null;if(a){var c=r,l=c.parentNode;Au(l),l.append(c),e.items.clear()}Kn(t,!a)}else n={pending:new Set(t),done:new Set},((h=e.outrogroups)!=null?h:e.outrogroups=new Set).add(n)}function Kn(e,t=!0){for(var r=0;r<e.length;r++)Le(e[r],t)}var kt;function Es(e,t,r,i,s,n=null){var o=e,u=new Map;Z&&rs();var a=null,c=ns(()=>{var p=r();return po(p)?p:p==null?[]:Xi(p)}),l,h=!0;function f(){m.fallback=a,yh(m,l,o,t,i),a!==null&&(l.length===0?(a.f&Wt)===0?Co(a):(a.f^=Wt,Xr(a,null,o)):hr(a,()=>{a=null}))}var d=Eo(()=>{l=M(c);var p=l.length;let g=!1;if(Z){var v=mu(o)===Ji;v!==(p===0)&&(o=$i(),je(o),Mt(!1),g=!0)}for(var w=new Set,_=se,E=Du(),y=0;y<p;y+=1){Z&&X.nodeType===Ur&&X.data===ho&&(o=X,g=!0,Mt(!1));var b=l[y],S=i(b,y),C=h?null:u.get(S);C?(C.v&&Pr(C.v,b),C.i&&Pr(C.i,y),E&&_.skipped_effects.delete(C.e)):(C=wh(u,h?o:kt!=null?kt:kt=ft(),b,S,y,s,t,r),h||(C.e.f|=Wt),u.set(S,C)),w.add(S)}if(p===0&&n&&!a&&(h?a=Qe(()=>n(o)):(a=Qe(()=>n(kt!=null?kt:kt=ft())),a.f|=Wt)),Z&&p>0&&je($i()),!h)if(E){for(const[O,N]of u)w.has(O)||_.skipped_effects.add(N.e);_.oncommit(f),_.ondiscard(()=>{})}else f();g&&Mt(!0),M(c)}),m={effect:d,items:u,outrogroups:null,fallback:a};h=!1,Z&&(o=X)}function yh(e,t,r,i,s){var n,o=t.length,u=e.items,a=e.effect.first,c,l=null,h=[],f=[],d,m,p,g;for(g=0;g<o;g+=1){if(d=t[g],m=s(d,g),p=u.get(m).e,e.outrogroups!==null)for(const O of e.outrogroups)O.pending.delete(p),O.done.delete(p);if((p.f&Wt)!==0)if(p.f^=Wt,p===a)Xr(p,null,r);else{var v=l?l.next:a;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Pt(e,l,p),Pt(e,p,v),Xr(p,v,r),l=p,h=[],f=[],a=l.next;continue}if((p.f&qe)!==0&&Co(p),p!==a){if(c!==void 0&&c.has(p)){if(h.length<f.length){var w=f[0],_;l=w.prev;var E=h[0],y=h[h.length-1];for(_=0;_<h.length;_+=1)Xr(h[_],w,r);for(_=0;_<f.length;_+=1)c.delete(f[_]);Pt(e,E.prev,y.next),Pt(e,l,E),Pt(e,y,w),a=w,l=y,g-=1,h=[],f=[]}else c.delete(p),Xr(p,a,r),Pt(e,p.prev,p.next),Pt(e,p,l===null?e.effect.first:l.next),Pt(e,l,p),l=p;continue}for(h=[],f=[];a!==null&&a!==p;)(c!=null?c:c=new Set).add(a),f.push(a),a=a.next;if(a===null)continue}(p.f&Wt)===0&&h.push(p),l=p,a=p.next}if(e.outrogroups!==null){for(const O of e.outrogroups)O.pending.size===0&&(Kn(Xi(O.done)),(n=e.outrogroups)==null||n.delete(O));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||c!==void 0){var b=[];if(c!==void 0)for(p of c)(p.f&qe)===0&&b.push(p);for(;a!==null;)(a.f&qe)===0&&a!==e.fallback&&b.push(a),a=a.next;var S=b.length;if(S>0){var C=null;vh(e,b,C)}}}function wh(e,t,r,i,s,n,o,u){var a=(o&rf)!==0?(o&nf)===0?Ae(r,!1,!1):Yt(r):null,c=(o&sf)!==0?Yt(s):null;return{v:a,i:c,e:Qe(()=>(n(t,a!=null?a:r,c!=null?c:s,u),()=>{e.delete(i)}))}}function Xr(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,n=t&&(t.f&Wt)===0?t.nodes.start:r;i!==null;){var o=bt(i);if(n.before(i),i===s)return;i=o}}function Pt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}const ha=[...`
16
- \r\f\xA0\v\uFEFF`];function bh(e,t,r){var i=e==null?"":""+e;if(r){for(var s in r)if(r[s])i=i?i+" "+s:s;else if(i.length)for(var n=s.length,o=0;(o=i.indexOf(s,o))>=0;){var u=o+n;(o===0||ha.includes(i[o-1]))&&(u===i.length||ha.includes(i[u]))?i=(o===0?"":i.substring(0,o))+i.substring(u+1):o=u}}return i===""?null:i}function _h(e,t){return e==null?null:String(e)}function Qn(e,t,r,i,s,n){var o=e.__className;if(Z||o!==r||o===void 0){var u=bh(r,i,n);(!Z||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(n&&s!==n)for(var a in n){var c=!!n[a];(s==null||c!==!!s[a])&&e.classList.toggle(a,c)}return n}function Rr(e,t,r,i){var s=e.__style;if(Z||s!==t){var n=_h(t);(!Z||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return i}const Sh=Symbol("is custom element"),Eh=Symbol("is html");function Ch(e){if(Z){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;nr(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var s=e.checked;nr(e,"checked",null),e.checked=s}}};e.__on_r=r,Br(r),Tu()}}function nr(e,t,r,i){var s=xh(e);Z&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[vf]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Rh(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function xh(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Sh]:e.nodeName.includes("-"),[Eh]:e.namespaceURI===ff}}var da=new Map;function Rh(e){var t=e.getAttribute("is")||e.nodeName,r=da.get(t);if(r)return r;da.set(t,r=[]);for(var i,s=e,n=Element.prototype;n!==s;){i=cu(s);for(var o in i)i[o].set&&r.push(o);s=mo(s)}return r}function Nh(e,t,r=t){Hf(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(Z&&e.defaultChecked!==e.checked||Ee(t)==null)&&r(e.checked),fi(()=>{var i=t();e.checked=!!i})}function ve(e,t,r){var i=tr(e,t);i&&i.set&&(e[t]=r,So(()=>{e[t]=null}))}function pa(e,t){return e===t||(e==null?void 0:e[rr])===t}function Fi(e={},t,r,i){return Kf(()=>{var s,n;return fi(()=>{s=n,n=[],Ee(()=>{e!==r(...n)&&(t(e,...n),s&&pa(r(...s),e)&&t(null,...s))})}),()=>{Br(()=>{n&&pa(r(...n),e)&&t(null,...n)})}}),e}function ec(e=!1){const t=ne,r=t.l.u;if(!r)return;let i=()=>$e(t.s);if(e){let s=0,n={};const o=ss(()=>{let u=!1;const a=t.s;for(const c in a)a[c]!==n[c]&&(n[c]=a[c],u=!0);return u&&s++,s});i=()=>M(o)}r.b.length&&Jf(()=>{ma(t,i),Wn(r.b)}),Hn(()=>{const s=Ee(()=>r.m.map(mf));return()=>{for(const n of s)typeof n=="function"&&n()}}),r.a.length&&Hn(()=>{ma(t,i),Wn(r.a)})}function ma(e,t){if(e.l.s)for(const r of e.l.s)M(r);t()}let wi=!1;function Mh(e){var t=wi;try{return wi=!1,[e(),wi]}finally{wi=t}}const Oh={get(e,t){if(!e.exclude.includes(t))return M(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var i=K;try{et(e.parent_effect),e.special[t]=pe({get[t](){return e.props[t]}},t,au)}finally{et(i)}}return e.special[t](r),na(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),na(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Ah(e,t){return new Proxy({props:e,exclude:t,special:{},version:Yt(0),parent_effect:K},Oh)}function pe(e,t,r,i){var E;var s,n=!Lr||(r&af)!==0,o=(r&lf)!==0,u=(r&uf)!==0,a=i,c=!0,l=()=>(c&&(c=!1,a=u?Ee(i):i),a),h;if(o){var f=rr in e||pu in e;h=(E=(s=tr(e,t))==null?void 0:s.set)!=null?E:f&&t in e?y=>e[t]=y:void 0}var d,m=!1;o?[d,m]=Mh(()=>e[t]):d=e[t],d===void 0&&i!==void 0&&(d=l(),h&&(n&&xf(),h(d)));var p;if(n?p=()=>{var y=e[t];return y===void 0?l():(c=!0,y)}:p=()=>{var y=e[t];return y!==void 0&&(a=void 0),y===void 0?a:y},n&&(r&au)===0)return p;if(h){var g=e.$$legacy;return(function(y,b){return arguments.length>0?((!n||!b||g||m)&&h(b?p():y),y):p()})}var v=!1,w=((r&of)!==0?ss:ns)(()=>(v=!1,p()));o&&M(w);var _=K;return(function(y,b){if(arguments.length>0){const S=b?M(w):n&&o?Cr(y):y;return re(w,S),v=!0,a!==void 0&&(a=S),y}return dr&&v||(_.f&Ot)!==0?w.v:M(w)})}function Dh(e){return class extends Th{constructor(t){super(G({component:e},t))}}}class Th{constructor(t){var o;Y(this,Lt),Y(this,it);var r,i=new Map,s=(u,a)=>{var c=Ae(a,!1,!1);return i.set(u,c),c};const n=new Proxy(we(G({},t.props||{}),{$$events:{}}),{get(u,a){var c;return M((c=i.get(a))!=null?c:s(a,Reflect.get(u,a)))},has(u,a){var c;return a===pu?!0:(M((c=i.get(a))!=null?c:s(a,Reflect.get(u,a))),Reflect.has(u,a))},set(u,a,c){var l;return re((l=i.get(a))!=null?l:s(a,c),c),Reflect.set(u,a,c)}});B(this,it,(t.hydrate?fh:Xu)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:(o=t.intro)!=null?o:!1,recover:t.recover})),(!((r=t==null?void 0:t.props)!=null&&r.$$host)||t.sync===!1)&&If(),B(this,Lt,n.$$events);for(const u of Object.keys(R(this,it)))u==="$set"||u==="$destroy"||u==="$on"||uu(this,u,{get(){return R(this,it)[u]},set(a){R(this,it)[u]=a},enumerable:!0});R(this,it).$set=u=>{Object.assign(n,u)},R(this,it).$destroy=()=>{hh(R(this,it))}}$set(t){R(this,it).$set(t)}$on(t,r){R(this,Lt)[t]=R(this,Lt)[t]||[];const i=(...s)=>r.call(this,...s);return R(this,Lt)[t].push(i),()=>{R(this,Lt)[t]=R(this,Lt)[t].filter(s=>s!==i)}}$destroy(){R(this,it).$destroy()}}Lt=new WeakMap;it=new WeakMap;var kh=Object.defineProperty,Ph=(e,t,r)=>t in e?kh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t,r)=>Ph(e,typeof t!="symbol"?t+"":t,r),ga,Ih=Object.defineProperty,Lh=(e,t,r)=>t in e?Ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,va=(e,t,r)=>Lh(e,typeof t!="symbol"?t+"":t,r),z=(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))(z||{});const ya={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},wa={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bi={};function Fh(e){var t,r;const i=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(i&&globalThis[i])return globalThis[i]}function Ro(e){if(bi[e])return bi[e];const t=Fh(e)||globalThis[e],r=t.prototype,i=e in ya?ya[e]:void 0,s=!!(i&&i.every(u=>{var a,c;return!!((c=(a=Object.getOwnPropertyDescriptor(r,u))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),n=e in wa?wa[e]:void 0,o=!!(n&&n.every(u=>{var a;return typeof r[u]=="function"&&((a=r[u])==null?void 0:a.toString().includes("[native code]"))}));if(s&&o)return bi[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const a=u.contentWindow;if(!a)return t.prototype;const c=a[e].prototype;return document.body.removeChild(u),c?bi[e]=c:r}catch(u){return r}}const Cs={};function Jt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Cs[s])return Cs[s].call(t);const n=Ro(e),o=(i=Object.getOwnPropertyDescriptor(n,r))==null?void 0:i.get;return o?(Cs[s]=o,o.call(t)):t[r]}const xs={};function tc(e,t,r){const i=`${e}.${String(r)}`;if(xs[i])return xs[i].bind(t);const n=Ro(e)[r];return typeof n!="function"?t[r]:(xs[i]=n,n.bind(t))}function Uh(e){return Jt("Node",e,"childNodes")}function Bh(e){return Jt("Node",e,"parentNode")}function $h(e){return Jt("Node",e,"parentElement")}function Wh(e){return Jt("Node",e,"textContent")}function zh(e,t){return tc("Node",e,"contains")(t)}function qh(e){return tc("Node",e,"getRootNode")()}function jh(e){return!e||!("host"in e)?null:Jt("ShadowRoot",e,"host")}function Vh(e){return e.styleSheets}function Gh(e){return!e||!("shadowRoot"in e)?null:Jt("Element",e,"shadowRoot")}function Hh(e,t){return Jt("Element",e,"querySelector")(t)}function Yh(e,t){return Jt("Element",e,"querySelectorAll")(t)}function Jh(){return Ro("MutationObserver").constructor}const Te={childNodes:Uh,parentNode:Bh,parentElement:$h,textContent:Wh,contains:zh,getRootNode:qh,host:jh,styleSheets:Vh,shadowRoot:Gh,querySelector:Hh,querySelectorAll:Yh,mutationObserver:Jh};function No(e){return e.nodeType===e.ELEMENT_NODE}function Xh(e){const t=e&&"host"in e&&"mode"in e&&Te.host(e)||null;return!!(t&&"shadowRoot"in t&&Te.shadowRoot(t)===e)}function Rs(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Kh(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Qh(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Zn(e){try{const t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);const i=Array.from(t,s=>Zh(s,r)).join("");return Kh(i)}catch(t){return null}}function Zh(e,t){if(td(e)){let r;try{r=Zn(e.styleSheet)||Qh(e)}catch(i){r=e.cssText}return e.styleSheet.href?ji(r,e.styleSheet.href):r}else{let r=e.cssText;return rd(e)&&e.selectorText.includes(":")&&(r=ed(r)),t?ji(r,t):r}}function ed(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function td(e){return"styleSheet"in e}function rd(e){return"selectorText"in e}class Mo{constructor(){va(this,"idNodeMap",new Map),va(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function eo(){return new Mo}function id({element:e,maskInputOptions:t,tagName:r,type:i,value:s,maskInputFn:n}){let o=s||"";const u=i&&hi(i);return(t[r.toLowerCase()]||u&&t[u])&&(n?o=n(o,e):o="*".repeat(o.length)),o}function hi(e){return e.toLowerCase()}const ba="__rrweb_original__";function sd(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let i=0;i<e.width;i+=r)for(let s=0;s<e.height;s+=r){const n=t.getImageData,o=ba in n?n[ba]:n;if(new Uint32Array(o.call(t,i,s,Math.min(r,e.width-i),Math.min(r,e.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function nd(e,t){return!e||!t||e.type!==t.type?!1:e.type===z.Document?e.compatMode===t.compatMode:e.type===z.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===z.Comment||e.type===z.Text||e.type===z.CDATA?e.textContent===t.textContent:e.type===z.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function od(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?hi(t):null}function rc(e,t){var n;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(o){return null}const i=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(i);return(n=s==null?void 0:s[1])!=null?n:null}function ad(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const ld=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ud=/^(?:[a-z+]+:)?\/\//i,cd=/^www\..*/i,fd=/^(data:)([^,]*),(.*)/i;function ji(e,t){return(e||"").replace(ld,(r,i,s,n,o,u)=>{const a=s||o||u,c=i||n||"";if(!a)return r;if(ud.test(a)||cd.test(a))return`url(${c}${a}${c})`;if(fd.test(a))return`url(${c}${a}${c})`;if(a[0]==="/")return`url(${c}${ad(t)+a}${c})`;const l=t.split("/"),h=a.split("/");l.pop();for(const f of h)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${c}${l.join("/")}${c})`})}function _i(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function hd(e,t,r=!1){const i=Array.from(t.childNodes),s=[];let n=0;if(i.length>1&&e&&typeof e=="string"){let o=_i(e,r);const u=o.length/e.length;for(let a=1;a<i.length;a++)if(i[a].textContent&&typeof i[a].textContent=="string"){const c=_i(i[a].textContent,r),l=100;let h=3;for(;h<c.length&&(c[h].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,h),1)!==-1);h++);for(;h<c.length;h++){let f=c.substring(0,h),d=o.split(f),m=-1;if(d.length===2)m=d[0].length;else if(d.length>2&&d[0]===""&&i[a-1].textContent!=="")m=o.indexOf(f,1);else if(d.length===1){if(f=f.substring(0,f.length-1),d=o.split(f),d.length<=1)return s.push(e),s;h=l+1}else h===c.length-1&&(m=o.indexOf(f));if(d.length>=2&&h>l){const p=i[a-1].textContent;if(p&&typeof p=="string"){const g=_i(p).length;m=o.indexOf(f,g)}m===-1&&(m=d[0].length)}if(m!==-1){let p=Math.floor(m/u);for(;p>0&&p<e.length;){if(n+=1,n>50*i.length)return s.push(e),s;const g=_i(e.substring(0,p),r);if(g.length===m){s.push(e.substring(0,p)),e=e.substring(p),o=o.substring(m);break}else g.length<m?p+=Math.max(1,Math.floor((m-g.length)/u)):p-=Math.max(1,Math.floor((g.length-m)*u))}break}}}}return s.push(e),s}function dd(e,t){return hd(e,t).join("/* rr_split */")}const pd="lightgrey";let md=1;const gd=new RegExp("[^a-z0-9-_:]"),_a=-2;function vd(){return md++}function yd(e){if(e instanceof HTMLFormElement)return"form";const t=hi(e.tagName);return gd.test(t)?"div":t}let vr,Sa;const wd=/^[^ \t\n\r\u000c]+/,bd=/^[, \t\n\r\u000c]+/;function _d(e,t){if(t.trim()==="")return t;let r=0;function i(n){let o;const u=n.exec(t.substring(r));return u?(o=u[0],r+=o.length,o):""}const s=[];for(;i(bd),!(r>=t.length);){let n=i(wd);if(n.slice(-1)===",")n=Nr(e,n.substring(0,n.length-1)),s.push(n);else{let o="";n=Nr(e,n);let u=!1;for(;;){const a=t.charAt(r);if(a===""){s.push((n+o).trim());break}else if(u)a===")"&&(u=!1);else if(a===","){r+=1,s.push((n+o).trim());break}else a==="("&&(u=!0);o+=a,r+=1}}}return s.join(", ")}const Ea=new WeakMap;function Nr(e,t){return!t||t.trim()===""?t:Oo(e,t)}function Sd(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Oo(e,t){let r=Ea.get(e);if(r||(r=e.createElement("a"),Ea.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Ed(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?Nr(e,i):r==="srcset"?_d(e,i):r==="style"?ji(i,Oo(e)):t==="object"&&r==="data"?Nr(e,i):i)}function Cd(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function xd(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}if(r)return e.matches(r)}catch(i){}return!1}function to(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?to(Te.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}return r?to(Te.parentNode(e),t,r):!1}function Rd(e,t,r,i){let s;if(No(e)){if(s=e,!Te.childNodes(s).length)return!1}else{if(Te.parentElement(e)===null)return!1;s=Te.parentElement(e)}try{if(typeof t=="string"){if(i){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(to(s,t,i))return!0;if(r){if(i){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch(n){}return!1}function Nd(e,t,r){const i=e.contentWindow;if(!i)return;let s=!1,n;try{n=i.document.readyState}catch(u){return}if(n!=="complete"){const u=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(u),s=!0,t()});return}const o="about:blank";if(i.location.href!==o||e.src===o||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Md(e,t,r){let i=!1,s;try{s=e.sheet}catch(o){return}if(s)return;const n=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(n),i=!0,t()})}function Od(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:o,inlineStylesheet:u,maskInputOptions:a={},maskTextFn:c,maskInputFn:l,maskAttributeFn:h,dataURLOptions:f={},inlineImages:d,recordCanvas:m,keepIframeSrcFn:p,newlyAddedElement:g=!1,cssCaptured:v=!1,applyBackgroundColorToBlockedElements:w=!1}=t,_=Ad(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:z.Document,childNodes:[],compatMode:e.compatMode}:{type:z.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:z.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return Td(e,{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:u,maskInputOptions:a,maskInputFn:l,maskAttributeFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:m,keepIframeSrcFn:p,newlyAddedElement:g,rootId:_,applyBackgroundColorToBlockedElements:w});case e.TEXT_NODE:return Dd(e,{doc:r,needsMask:o,maskTextFn:c,rootId:_,cssCaptured:v});case e.CDATA_SECTION_NODE:return{type:z.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:z.Comment,textContent:Te.textContent(e)||"",rootId:_};default:return!1}}function Ad(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Dd(e,t){const{needsMask:r,maskTextFn:i,rootId:s,cssCaptured:n}=t,o=Te.parentNode(e),u=o&&o.tagName;let a="";const c=u==="STYLE"?!0:void 0,l=u==="SCRIPT"?!0:void 0;return l?a="SCRIPT_PLACEHOLDER":n||(a=Te.textContent(e),c&&a&&(a=ji(a,Oo(t.doc)))),!c&&!l&&a&&r&&(a=i?i(a,Te.parentElement(e)):a.replace(/[\S]/g,"*")),{type:z.Text,textContent:a||"",rootId:s}}function Td(e,t){const{doc:r,blockClass:i,blockSelector:s,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:u,maskAttributeFn:a,dataURLOptions:c={},inlineImages:l,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:m,applyBackgroundColorToBlockedElements:p=!1}=t,g=xd(e,i,s),v=yd(e);let w={};const _=e.attributes.length;for(let y=0;y<_;y++){const b=e.attributes[y];if(!Cd(v,b.name,b.value)){const S=Ed(r,v,hi(b.name),b.value);if(a&&S!==null){const C=a(b.name,S,e);C!==null&&(w[b.name]=C)}else w[b.name]=S}}if(v==="link"&&n){const y=Array.from(r.styleSheets).find(S=>S.href===e.href);let b=null;y&&(b=Zn(y)),b&&(delete w.rel,delete w.href,w._cssText=b)}if(v==="style"&&e.sheet){let y=Zn(e.sheet);y&&(e.childNodes.length>1&&(y=dd(y,e)),w._cssText=y)}if(v==="input"||v==="textarea"||v==="select"){const y=e.value,b=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&y?w.value=id({element:e,type:od(e),tagName:v,value:y,maskInputOptions:o,maskInputFn:u}):b&&(w.checked=b)}if(v==="option"&&(e.selected&&!o.select?w.selected=!0:delete w.selected),v==="dialog"&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),v==="canvas"&&h){if(e.__context==="2d")sd(e)||(w.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const y=e.toDataURL(c.type,c.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;const S=b.toDataURL(c.type,c.quality);y!==S&&(w.rr_dataURL=y)}}if(v==="img"&&l){vr||(vr=r.createElement("canvas"),Sa=vr.getContext("2d"));const y=e,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",S=y.crossOrigin,C=()=>{y.removeEventListener("load",C);try{vr.width=y.naturalWidth,vr.height=y.naturalHeight,Sa.drawImage(y,0,0),w.rr_dataURL=vr.toDataURL(c.type,c.quality)}catch(O){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C);return}else console.warn(`Cannot inline img src=${b}! Error: ${O}`)}y.crossOrigin==="anonymous"&&(S?w.crossOrigin=S:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C)}if(v==="audio"||v==="video"){const y=w;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(d||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),g){const{width:y,height:b}=e.getBoundingClientRect();w=G({class:w.class,rr_width:`${y}px`,rr_height:`${b}px`},p?{rr_background_color:pd}:{})}v==="iframe"&&!f(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let E;try{customElements.get(v)&&(E=!0)}catch(y){}return{type:z.Element,tagName:v,attributes:w,childNodes:[],isSVG:Sd(e)||void 0,needBlock:g,rootId:m,isCustom:E}}function ce(e){return e==null?"":e.toLowerCase()}function kd(e,t){if(t.comment&&e.type===z.Comment)return!0;if(e.type===z.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&rc(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ce(e.attributes.name)==="application-name"||ce(e.attributes.rel)==="icon"||ce(e.attributes.rel)==="apple-touch-icon"||ce(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ce(e.attributes.property).match(/^(og|twitter|fb):/)||ce(e.attributes.name).match(/^(og|twitter):/)||ce(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ce(e.attributes.name)==="robots"||ce(e.attributes.name)==="googlebot"||ce(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ce(e.attributes.name)==="author"||ce(e.attributes.name)==="generator"||ce(e.attributes.name)==="framework"||ce(e.attributes.name)==="publisher"||ce(e.attributes.name)==="progid"||ce(e.attributes.property).match(/^article:/)||ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ce(e.attributes.name)==="google-site-verification"||ce(e.attributes.name)==="yandex-verification"||ce(e.attributes.name)==="csrf-token"||ce(e.attributes.name)==="p:domain_verify"||ce(e.attributes.name)==="verify-v1"||ce(e.attributes.name)==="verification"||ce(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Kr(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:u,skipChild:a=!1,inlineStylesheet:c=!0,maskInputOptions:l={},maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m,dataURLOptions:p={},inlineImages:g=!1,recordCanvas:v=!1,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E=5e3,onStylesheetLoad:y,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,cssCaptured:O=!1,applyBackgroundColorToBlockedElements:N=!1}=t;let{needsMask:F}=t,{preserveWhiteSpace:T=!0}=t;F||(F=Rd(e,o,u,F===void 0));const x=Od(e,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:F,inlineStylesheet:c,maskInputOptions:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,dataURLOptions:p,inlineImages:g,recordCanvas:v,keepIframeSrcFn:S,newlyAddedElement:C,cssCaptured:O,applyBackgroundColorToBlockedElements:N});if(!x)return console.warn(e,"not serialized"),null;let oe;i.hasNode(e)?oe=i.getId(e):kd(x,m)||!T&&x.type===z.Text&&!x.textContent.replace(/^\s+|\s+$/gm,"").length?oe=_a:oe=vd();const L=Object.assign(x,{id:oe});if(i.add(e,L),oe===_a)return null;w&&w(e);let te=!a;if(L.type===z.Element){te=te&&!L.needBlock,delete L.needBlock;const $=Te.shadowRoot(e);$&&Rs($)&&(L.isShadowHost=!0)}if((L.type===z.Document||L.type===z.Element)&&te){m.headWhitespace&&L.type===z.Element&&L.tagName==="head"&&(T=!1);const $={doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:F,maskTextClass:o,maskTextSelector:u,skipChild:a,inlineStylesheet:c,maskInputOptions:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m,dataURLOptions:p,inlineImages:g,recordCanvas:v,preserveWhiteSpace:T,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S,cssCaptured:!1,applyBackgroundColorToBlockedElements:N};if(!(L.type===z.Element&&L.tagName==="textarea"&&L.attributes.value!==void 0)){L.type===z.Element&&L.attributes._cssText!==void 0&&typeof L.attributes._cssText=="string"&&($.cssCaptured=!0);for(const q of Array.from(Te.childNodes(e))){const W=Kr(q,$);W&&L.childNodes.push(W)}}let ge=null;if(No(e)&&(ge=Te.shadowRoot(e)))for(const q of Array.from(Te.childNodes(ge))){const W=Kr(q,$);W&&(Rs(ge)&&(W.isShadow=!0),L.childNodes.push(W))}}const U=Te.parentNode(e);return U&&Xh(U)&&Rs(U)&&(L.isShadow=!0),L.type===z.Element&&L.tagName==="iframe"&&Nd(e,()=>{const $=e.contentDocument;if($&&_){const ge=Kr($,{doc:$,mirror:i,blockClass:s,blockSelector:n,needsMask:F,maskTextClass:o,maskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m,dataURLOptions:p,inlineImages:g,recordCanvas:v,preserveWhiteSpace:T,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S});ge&&_(e,ge)}},E),L.type===z.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&rc(L.attributes.href)==="css")&&Md(e,()=>{if(y){const $=Kr(e,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:F,maskTextClass:o,maskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m,dataURLOptions:p,inlineImages:g,recordCanvas:v,preserveWhiteSpace:T,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S});$&&y(e,$)}},b),L}function Pd(e,t){const{mirror:r=new Mo,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:u=!0,inlineImages:a=!1,recordCanvas:c=!1,maskAllInputs:l=!1,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOM:m=!1,dataURLOptions:p,preserveWhiteSpace:g,onSerialize:v,onIframeLoad:w,iframeLoadTimeout:_,onStylesheetLoad:E,stylesheetLoadTimeout:y,keepIframeSrcFn:b=()=>!1,applyBackgroundColorToBlockedElements:S=!1}=t||{};return Kr(e,{doc:e,mirror:r,blockClass:i,blockSelector:s,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:u,maskInputOptions:l===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:l===!1?{password:!0}:l,maskTextFn:h,maskInputFn:f,maskAttributeFn:d,slimDOMOptions:m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:m==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:m===!1?{}:m,dataURLOptions:p,inlineImages:a,recordCanvas:c,preserveWhiteSpace:g,onSerialize:v,onIframeLoad:w,iframeLoadTimeout:_,onStylesheetLoad:E,stylesheetLoadTimeout:y,keepIframeSrcFn:b,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:S})}const Id=/(max|min)-device-(width|height)/,Ca=new RegExp(Id.source,"g"),Ld={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ca)&&(e.params=e.params.replace(Ca,"$1-$2"))}}}},Fd={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+=`,
17
- `+r.replace(/:hover/g,".\\:hover"))}))}}}};function Ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var Si={exports:{}},xa;function $d(){if(xa)return Si.exports;xa=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}};return Si.exports=t(),Si.exports.createColors=t,Si.exports}const Wd={},zd=Object.freeze(Object.defineProperty({__proto__:null,default:Wd},Symbol.toStringTag,{value:"Module"})),lt=Bd(zd);var Ns,Ra;function Ao(){if(Ra)return Ns;Ra=1;let e=$d(),t=lt;class r extends Error{constructor(s,n,o,u,a,c){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),u&&(this.source=u),c&&(this.plugin=c),typeof n!="undefined"&&typeof o!="undefined"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.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(s){if(!this.source)return"";let n=this.source;s==null&&(s=e.isColorSupported),t&&s&&(n=t(n));let o=n.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length,l,h;if(s){let{bold:f,gray:d,red:m}=e.createColors(!0);l=p=>f(m(p)),h=p=>d(p)}else l=h=f=>f;return o.slice(u,a).map((f,d)=>{let m=u+1+d,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){let g=h(p.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+h(p)+f+`
18
- `+g+l("^")}return" "+h(p)+f}).join(`
14
+ "use strict";var Yc=Object.defineProperty,Jc=Object.defineProperties;var Xc=Object.getOwnPropertyDescriptors;var yi=Object.getOwnPropertySymbols;var Zo=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable;var Qo=(e,t,r)=>t in e?Yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G=(e,t)=>{for(var r in t||(t={}))Zo.call(t,r)&&Qo(e,r,t[r]);if(yi)for(var r of yi(t))ea.call(t,r)&&Qo(e,r,t[r]);return e},we=(e,t)=>Jc(e,Xc(t));var jr=(e,t)=>{var r={};for(var i in e)Zo.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&yi)for(var i of yi(e))t.indexOf(i)<0&&ea.call(e,i)&&(r[i]=e[i]);return r};var Kc=Object.defineProperty,ru=e=>{throw TypeError(e)},Qc=(e,t,r)=>t in e?Kc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t,r)=>Qc(e,typeof t!="symbol"?t+"":t,r),uo=(e,t,r)=>t.has(e)||ru("Cannot "+r),R=(e,t,r)=>(uo(e,t,"read from private field"),r?r.call(e):t.get(e)),Y=(e,t,r)=>t.has(e)?ru("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),B=(e,t,r,i)=>(uo(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),ye=(e,t,r)=>(uo(e,t,"access private method"),r),ta,ni,Hr,Ut,Bt,Yr,oi,ei,Ye,co,ai,Ln,iu,su,ot,Je,Ti,xt,Or,Nt,at,ze,St,jt,er,Kt,Vt,yr,Qt,Fn,Ie,nu,ou,fo,Ui,Bi,Un,gt,Et,Ve,wr,ki,Pi,Bn,Lt,it;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Zc="5";var eu,tu;typeof window!="undefined"&&((tu=(ta=(eu=window.__svelte)!=null?eu:window.__svelte={}).v)!=null?tu:ta.v=new Set).add(Zc);let Lr=!1,ef=!1;function tf(){Lr=!0}tf();const rf=1,sf=2,nf=16,of=1,af=2,au=4,lf=8,uf=16,cf=2,lu="[",Ji="[!",ho="]",Ar={},Oe=Symbol(),ff="http://www.w3.org/1999/xhtml",$n=!1;var po=Array.isArray,hf=Array.prototype.indexOf,Xi=Array.from,uu=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,cu=Object.getOwnPropertyDescriptors,df=Object.prototype,pf=Array.prototype,mo=Object.getPrototypeOf,ra=Object.isExtensible;function mf(e){return e()}function Wn(e){for(var t=0;t<e.length;t++)e[t]()}function fu(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}const Re=2,go=4,Ki=8,gf=1<<24,At=16,Dt=32,fr=64,Qi=128,ct=512,xe=1024,Fe=2048,ht=4096,qe=8192,Ot=16384,Zi=32768,Dr=65536,ia=1<<17,hu=1<<18,Fr=1<<19,du=1<<20,Wt=1<<25,or=32768,zn=1<<21,vo=1<<22,Gt=1<<23,rr=Symbol("$state"),pu=Symbol("legacy props"),vf=Symbol(""),Er=new class extends Error{constructor(){super(...arguments),Rt(this,"name","StaleReactionError"),Rt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},yo=3,Ur=8;function es(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function yf(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wf(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function bf(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _f(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Sf(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ef(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cf(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function xf(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rf(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Nf(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mf(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Of(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ts(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Af(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Z=!1;function Mt(e){Z=e}let X;function je(e){if(e===null)throw ts(),Ar;return X=e}function rs(){return je(bt(X))}function st(e){if(Z){if(bt(X)!==null)throw ts(),Ar;X=e}}function Df(e=1){if(Z){for(var t=e,r=X;t--;)r=bt(r);X=r}}function $i(e=!0){for(var t=0,r=X;;){if(r.nodeType===Ur){var i=r.data;if(i===ho){if(t===0)return r;t-=1}else(i===lu||i===Ji)&&(t+=1)}var s=bt(r);e&&r.remove(),r=s}}function mu(e){if(!e||e.nodeType!==Ur)throw ts(),Ar;return e.data}function gu(e){return e===this.v}function Tf(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function vu(e){return!Tf(e,this.v)}let oe=null;function Tr(e){oe=e}function wo(e,t=!1,r){oe={p:oe,i:!1,c:null,e:null,s:e,x:null,l:Lr&&!t?{s:null,u:null,$:[]}:null}}function bo(e){var t=oe,r=t.e;if(r!==null){t.e=null;for(var i of r)Pu(i)}return e!==void 0&&(t.x=e),t.i=!0,oe=t.p,e!=null?e:{}}function ci(){return!Lr||oe!==null&&oe.l===null}let Zt=[];function yu(){var e=Zt;Zt=[],Wn(e)}function Br(e){if(Zt.length===0&&!ti){var t=Zt;queueMicrotask(()=>{t===Zt&&yu()})}Zt.push(e)}function kf(){for(;Zt.length>0;)yu()}function wu(e){var t=K;if(t===null)return J.f|=Gt,e;if((t.f&Zi)===0){if((t.f&Qi)===0)throw e;t.b.error(e)}else kr(e,t)}function kr(e,t){for(;t!==null;){if((t.f&Qi)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ii=new Set;let ne=null,De=null,Xe=[],is=null,qn=!1,ti=!1;const Pf=class jn{constructor(){Y(this,Ye),Rt(this,"committed",!1),Rt(this,"current",new Map),Rt(this,"previous",new Map),Y(this,ni,new Set),Y(this,Hr,new Set),Y(this,Ut,0),Y(this,Bt,0),Y(this,Yr,null),Y(this,oi,new Set),Y(this,ei,new Set),Rt(this,"skipped_effects",new Set),Rt(this,"is_fork",!1)}is_deferred(){return this.is_fork||R(this,Bt)>0}process(t){var r;Xe=[],this.apply();var i={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)ye(this,Ye,co).call(this,s,i);this.is_fork||ye(this,Ye,iu).call(this),this.is_deferred()?(ye(this,Ye,ai).call(this,i.effects),ye(this,Ye,ai).call(this,i.render_effects)):(ne=null,sa(i.render_effects),sa(i.effects),(r=R(this,Yr))==null||r.resolve()),De=null}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Gt)===0&&(this.current.set(t,t.v),De==null||De.set(t,t.v))}activate(){ne=this,this.apply()}deactivate(){ne===this&&(ne=null,De=null)}flush(){if(this.activate(),Xe.length>0){if(bu(),ne!==null&&ne!==this)return}else R(this,Ut)===0&&this.process([]);this.deactivate()}discard(){for(const t of R(this,Hr))t(this);R(this,Hr).clear()}increment(t){B(this,Ut,R(this,Ut)+1),t&&B(this,Bt,R(this,Bt)+1)}decrement(t){B(this,Ut,R(this,Ut)-1),t&&B(this,Bt,R(this,Bt)-1),this.revive()}revive(){for(const t of R(this,oi))R(this,ei).delete(t),Ne(t,Fe),lr(t);for(const t of R(this,ei))Ne(t,ht),lr(t);this.flush()}oncommit(t){R(this,ni).add(t)}ondiscard(t){R(this,Hr).add(t)}settled(){var t;return((t=R(this,Yr))!=null?t:B(this,Yr,fu())).promise}static ensure(){if(ne===null){const t=ne=new jn;Ii.add(ne),ti||jn.enqueue(()=>{ne===t&&t.flush()})}return ne}static enqueue(t){Br(t)}apply(){}};ni=new WeakMap;Hr=new WeakMap;Ut=new WeakMap;Bt=new WeakMap;Yr=new WeakMap;oi=new WeakMap;ei=new WeakMap;Ye=new WeakSet;co=function(e,t){var r;e.f^=xe;for(var i=e.first;i!==null;){var s=i.f,n=(s&(Dt|fr))!==0,o=n&&(s&xe)!==0,c=o||(s&qe)!==0||this.skipped_effects.has(i);if((i.f&Qi)!==0&&((r=i.b)!=null&&r.is_pending())&&(t={parent:t,effect:i,effects:[],render_effects:[]}),!c&&i.fn!==null){n?i.f^=xe:(s&go)!==0?t.effects.push(i):$r(i)&&((i.f&At)!==0&&R(this,oi).add(i),Ir(i));var l=i.first;if(l!==null){i=l;continue}}var u=i.parent;for(i=i.next;i===null&&u!==null;)u===t.effect&&(ye(this,Ye,ai).call(this,t.effects),ye(this,Ye,ai).call(this,t.render_effects),t=t.parent),i=u.next,u=u.parent}};ai=function(e){for(const t of e)(t.f&Fe)!==0?R(this,oi).add(t):(t.f&ht)!==0&&R(this,ei).add(t),ye(this,Ye,Ln).call(this,t.deps),Ne(t,xe)};Ln=function(e){if(e!==null)for(const t of e)(t.f&Re)===0||(t.f&or)===0||(t.f^=or,ye(this,Ye,Ln).call(this,t.deps))};iu=function(){if(R(this,Bt)===0){for(const e of R(this,ni))e();R(this,ni).clear()}R(this,Ut)===0&&ye(this,Ye,su).call(this)};su=function(){var e;if(Ii.size>1){this.previous.clear();var t=De,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const n of Ii){if(n===this){r=!1;continue}const o=[];for(const[l,u]of this.current){if(n.current.has(l))if(r&&u!==n.current.get(l))n.current.set(l,u);else continue;o.push(l)}if(o.length===0)continue;const c=[...n.current.keys()].filter(l=>!this.current.has(l));if(c.length>0){var s=Xe;Xe=[];const l=new Set,u=new Map;for(const a of o)_u(a,c,l,u);if(Xe.length>0){ne=n,n.apply();for(const a of Xe)ye(e=n,Ye,co).call(e,a,i);n.deactivate()}Xe=s}}ne=null,De=t}this.committed=!0,Ii.delete(this)};let ar=Pf;function If(e){var t=ti;ti=!0;try{for(var r;;){if(kf(),Xe.length===0&&(ne==null||ne.flush(),Xe.length===0))return is=null,r;bu()}}finally{ti=t}}function bu(){var e=ir;qn=!0;var t=null;try{var r=0;for(zi(!0);Xe.length>0;){var i=ar.ensure();if(r++>1e3){var s,n;Lf()}i.process(Xe),Ht.clear()}}finally{qn=!1,zi(e),is=null}}function Lf(){try{Sf()}catch(e){kr(e,is)}}let vt=null;function sa(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Ot|qe))===0&&$r(i)&&(vt=new Set,Ir(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?Uu(i):i.fn=null),(vt==null?void 0:vt.size)>0)){Ht.clear();for(const s of vt){if((s.f&(Ot|qe))!==0)continue;const n=[s];let o=s.parent;for(;o!==null;)vt.has(o)&&(vt.delete(o),n.push(o)),o=o.parent;for(let c=n.length-1;c>=0;c--){const l=n[c];(l.f&(Ot|qe))===0&&Ir(l)}}vt.clear()}}vt=null}}function _u(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const n=s.f;(n&Re)!==0?_u(s,t,r,i):(n&(vo|At))!==0&&(n&Fe)===0&&Su(s,t,i)&&(Ne(s,Fe),lr(s))}}function Su(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&Re)!==0&&Su(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function lr(e){for(var t=is=e;t.parent!==null;){t=t.parent;var r=t.f;if(qn&&t===K&&(r&At)!==0&&(r&hu)===0)return;if((r&(fr|Dt))!==0){if((r&xe)===0)return;t.f^=xe}}Xe.push(t)}function Ff(e){let t=0,r=Yt(0),i;return()=>{li()&&(M(r),fi(()=>(t===0&&(i=Ee(()=>e(()=>ri(r)))),t+=1,()=>{Br(()=>{t-=1,t===0&&(i==null||i(),i=void 0,ri(r))})})))}}var Uf=Dr|Fr|Qi;function Bf(e,t,r){new $f(e,t,r)}class $f{constructor(t,r,i){Y(this,Ie),Rt(this,"parent"),Y(this,ot,!1),Y(this,Je),Y(this,Ti,Z?X:null),Y(this,xt),Y(this,Or),Y(this,Nt),Y(this,at,null),Y(this,ze,null),Y(this,St,null),Y(this,jt,null),Y(this,er,null),Y(this,Kt,0),Y(this,Vt,0),Y(this,yr,!1),Y(this,Qt,null),Y(this,Fn,Ff(()=>(B(this,Qt,Yt(R(this,Kt))),()=>{B(this,Qt,null)}))),B(this,Je,t),B(this,xt,r),B(this,Or,i),this.parent=K.b,B(this,ot,!!R(this,xt).pending),B(this,Nt,Eo(()=>{if(K.b=this,Z){const n=R(this,Ti);rs(),n.nodeType===Ur&&n.data===Ji?ye(this,Ie,ou).call(this):ye(this,Ie,nu).call(this)}else{var s=ye(this,Ie,fo).call(this);try{B(this,at,Qe(()=>i(s)))}catch(n){this.error(n)}R(this,Vt)>0?ye(this,Ie,Bi).call(this):B(this,ot,!1)}return()=>{var n;(n=R(this,er))==null||n.remove()}},Uf)),Z&&B(this,Je,X)}is_pending(){return R(this,ot)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!R(this,xt).pending}update_pending_count(t){ye(this,Ie,Un).call(this,t),B(this,Kt,R(this,Kt)+t),R(this,Qt)&&Pr(R(this,Qt),R(this,Kt))}get_effect_pending(){return R(this,Fn).call(this),M(R(this,Qt))}error(t){var r=R(this,xt).onerror;let i=R(this,xt).failed;if(R(this,yr)||!r&&!i)throw t;R(this,at)&&(Le(R(this,at)),B(this,at,null)),R(this,ze)&&(Le(R(this,ze)),B(this,ze,null)),R(this,St)&&(Le(R(this,St)),B(this,St,null)),Z&&(je(R(this,Ti)),Df(),je($i()));var s=!1,n=!1;const o=()=>{if(s){Af();return}s=!0,n&&Of(),ar.ensure(),B(this,Kt,0),R(this,St)!==null&&hr(R(this,St),()=>{B(this,St,null)}),B(this,ot,this.has_pending_snippet()),B(this,at,ye(this,Ie,Ui).call(this,()=>(B(this,yr,!1),Qe(()=>R(this,Or).call(this,R(this,Je)))))),R(this,Vt)>0?ye(this,Ie,Bi).call(this):B(this,ot,!1)};var c=J;try{Ue(null),n=!0,r==null||r(t,o),n=!1}catch(l){kr(l,R(this,Nt)&&R(this,Nt).parent)}finally{Ue(c)}i&&Br(()=>{B(this,St,ye(this,Ie,Ui).call(this,()=>{ar.ensure(),B(this,yr,!0);try{return Qe(()=>{i(R(this,Je),()=>t,()=>o)})}catch(l){return kr(l,R(this,Nt).parent),null}finally{B(this,yr,!1)}}))})}}ot=new WeakMap;Je=new WeakMap;Ti=new WeakMap;xt=new WeakMap;Or=new WeakMap;Nt=new WeakMap;at=new WeakMap;ze=new WeakMap;St=new WeakMap;jt=new WeakMap;er=new WeakMap;Kt=new WeakMap;Vt=new WeakMap;yr=new WeakMap;Qt=new WeakMap;Fn=new WeakMap;Ie=new WeakSet;nu=function(){try{B(this,at,Qe(()=>R(this,Or).call(this,R(this,Je))))}catch(e){this.error(e)}B(this,ot,!1)};ou=function(){const e=R(this,xt).pending;e&&(B(this,ze,Qe(()=>e(R(this,Je)))),ar.enqueue(()=>{var t=ye(this,Ie,fo).call(this);B(this,at,ye(this,Ie,Ui).call(this,()=>(ar.ensure(),Qe(()=>R(this,Or).call(this,t))))),R(this,Vt)>0?ye(this,Ie,Bi).call(this):(hr(R(this,ze),()=>{B(this,ze,null)}),B(this,ot,!1))}))};fo=function(){var e=R(this,Je);return R(this,ot)&&(B(this,er,ft()),R(this,Je).before(R(this,er)),e=R(this,er)),e};Ui=function(e){var t=K,r=J,i=oe;et(R(this,Nt)),Ue(R(this,Nt)),Tr(R(this,Nt).ctx);try{return e()}catch(s){return wu(s),null}finally{et(t),Ue(r),Tr(i)}};Bi=function(){const e=R(this,xt).pending;R(this,at)!==null&&(B(this,jt,document.createDocumentFragment()),R(this,jt).append(R(this,er)),Wu(R(this,at),R(this,jt))),R(this,ze)===null&&B(this,ze,Qe(()=>e(R(this,Je))))};Un=function(e){var t;if(!this.has_pending_snippet()){this.parent&&ye(t=this.parent,Ie,Un).call(t,e);return}B(this,Vt,R(this,Vt)+e),R(this,Vt)===0&&(B(this,ot,!1),R(this,ze)&&hr(R(this,ze),()=>{B(this,ze,null)}),R(this,jt)&&(R(this,Je).before(R(this,jt)),B(this,jt,null)))};function Wf(e,t,r,i){const s=ci()?ss:ns;if(r.length===0&&e.length===0){i(t.map(s));return}var n=ne,o=K,c=zf();function l(){Promise.all(r.map(u=>qf(u))).then(u=>{c();try{i([...t.map(s),...u])}catch(a){(o.f&Ot)===0&&kr(a,o)}n==null||n.deactivate(),Wi()}).catch(u=>{kr(u,o)})}e.length>0?Promise.all(e).then(()=>{c();try{return l()}finally{n==null||n.deactivate(),Wi()}}):l()}function zf(){var e=K,t=J,r=oe,i=ne;return function(n=!0){et(e),Ue(t),Tr(r),n&&(i==null||i.activate())}}function Wi(){et(null),Ue(null),Tr(null)}function ss(e){var t=Re|Fe,r=J!==null&&(J.f&Re)!==0?J:null;return K!==null&&(K.f|=Fr),{ctx:oe,deps:null,effects:null,equals:gu,f:t,fn:e,reactions:null,rv:0,v:Oe,wv:0,parent:r!=null?r:K,ac:null}}function qf(e,t){let r=K;r===null&&yf();var i=r.b,s=void 0,n=Yt(Oe),o=!J,c=new Map;return Qf(()=>{var l,u=fu();s=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{a===ne&&a.committed&&a.deactivate(),Wi()})}catch(h){u.reject(h),Wi()}var a=ne;if(o){var d=!i.is_pending();i.update_pending_count(1),a.increment(d),(l=c.get(a))==null||l.reject(Er),c.delete(a),c.set(a,u)}const f=(h,p=void 0)=>{if(a.activate(),p)p!==Er&&(n.f|=Gt,Pr(n,p));else{(n.f&Gt)!==0&&(n.f^=Gt),Pr(n,h);for(const[m,y]of c){if(c.delete(m),m===a)break;y.reject(Er)}}o&&(i.update_pending_count(-1),a.decrement(d))};u.promise.then(f,h=>f(null,h||"unknown"))}),So(()=>{for(const l of c.values())l.reject(Er)}),new Promise(l=>{function u(a){function d(){a===s?l(n):u(s)}a.then(d,d)}u(s)})}function ns(e){const t=ss(e);return t.equals=vu,t}function Eu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Le(t[r])}}function jf(e){for(var t=e.parent;t!==null;){if((t.f&Re)===0)return(t.f&Ot)===0?t:null;t=t.parent}return null}function _o(e){var t,r=K;et(jf(e));try{e.f&=~or,Eu(e),t=Vu(e)}finally{et(r)}return t}function Cu(e){var t=_o(e);if(e.equals(t)||(ne!=null&&ne.is_fork||(e.v=t),e.wv=qu()),!dr)if(De!==null)(li()||ne!=null&&ne.is_fork)&&De.set(e,t);else{var r=(e.f&ct)===0?ht:xe;Ne(e,r)}}let Vn=new Set;const Ht=new Map;let xu=!1;function Yt(e,t){var r={f:0,v:e,reactions:null,equals:gu,rv:0,wv:0};return r}function Tt(e,t){const r=Yt(e);return th(r),r}function Ae(e,t=!1,r=!0){var n;var i;const s=Yt(e);return t||(s.equals=vu),Lr&&r&&oe!==null&&oe.l!==null&&((n=(i=oe.l).s)!=null?n:i.s=[]).push(s),s}function ie(e,t,r=!1){J!==null&&(!wt||(J.f&ia)!==0)&&ci()&&(J.f&(Re|At|vo|ia))!==0&&!(Ze!=null&&Ze.includes(e))&&Mf();let i=r?Cr(t):t;return Pr(e,i)}function Pr(e,t){if(!e.equals(t)){var r=e.v;dr?Ht.set(e,t):Ht.set(e,r),e.v=t;var i=ar.ensure();i.capture(e,r),(e.f&Re)!==0&&((e.f&Fe)!==0&&_o(e),Ne(e,(e.f&ct)!==0?xe:ht)),e.wv=qu(),Ru(e,Fe),ci()&&K!==null&&(K.f&xe)!==0&&(K.f&(Dt|fr))===0&&(He===null?rh([e]):He.push(e)),!i.is_fork&&Vn.size>0&&!xu&&Vf()}return t}function Vf(){xu=!1;var e=ir;zi(!0);const t=Array.from(Vn);try{for(const r of t)(r.f&xe)!==0&&Ne(r,ht),$r(r)&&Ir(r)}finally{zi(e)}Vn.clear()}function na(e,t=1){var r=M(e),i=t===1?r++:r--;return ie(e,r),i}function ri(e){ie(e,e.v+1)}function Ru(e,t){var r=e.reactions;if(r!==null)for(var i=ci(),s=r.length,n=0;n<s;n++){var o=r[n],c=o.f;if(!(!i&&o===K)){var l=(c&Fe)===0;if(l&&Ne(o,t),(c&Re)!==0){var u=o;De==null||De.delete(u),(c&or)===0&&(c&ct&&(o.f|=or),Ru(u,ht))}else l&&((c&At)!==0&&vt!==null&&vt.add(o),lr(o))}}}function Cr(e){if(typeof e!="object"||e===null||rr in e)return e;const t=mo(e);if(t!==df&&t!==pf)return e;var r=new Map,i=po(e),s=Tt(0),n=sr,o=c=>{if(sr===n)return c();var l=J,u=sr;Ue(null),ua(n);var a=c();return Ue(l),ua(u),a};return i&&r.set("length",Tt(e.length)),new Proxy(e,{defineProperty(c,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Rf();var a=r.get(l);return a===void 0?a=o(()=>{var d=Tt(u.value);return r.set(l,d),d}):ie(a,u.value,!0),!0},deleteProperty(c,l){var u=r.get(l);if(u===void 0){if(l in c){const a=o(()=>Tt(Oe));r.set(l,a),ri(s)}}else ie(u,Oe),ri(s);return!0},get(c,l,u){var a;if(l===rr)return e;var d=r.get(l),f=l in c;if(d===void 0&&(!f||(a=tr(c,l))!=null&&a.writable)&&(d=o(()=>{var p=Cr(f?c[l]:Oe),m=Tt(p);return m}),r.set(l,d)),d!==void 0){var h=M(d);return h===Oe?void 0:h}return Reflect.get(c,l,u)},getOwnPropertyDescriptor(c,l){var u=Reflect.getOwnPropertyDescriptor(c,l);if(u&&"value"in u){var a=r.get(l);a&&(u.value=M(a))}else if(u===void 0){var d=r.get(l),f=d==null?void 0:d.v;if(d!==void 0&&f!==Oe)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(c,l){var u;if(l===rr)return!0;var a=r.get(l),d=a!==void 0&&a.v!==Oe||Reflect.has(c,l);if(a!==void 0||K!==null&&(!d||(u=tr(c,l))!=null&&u.writable)){a===void 0&&(a=o(()=>{var h=d?Cr(c[l]):Oe,p=Tt(h);return p}),r.set(l,a));var f=M(a);if(f===Oe)return!1}return d},set(c,l,u,a){var d,f=r.get(l),h=l in c;if(i&&l==="length")for(var p=u;p<f.v;p+=1){var m=r.get(p+"");m!==void 0?ie(m,Oe):p in c&&(m=o(()=>Tt(Oe)),r.set(p+"",m))}if(f===void 0)(!h||(d=tr(c,l))!=null&&d.writable)&&(f=o(()=>Tt(void 0)),ie(f,Cr(u)),r.set(l,f));else{h=f.v!==Oe;var y=o(()=>Cr(u));ie(f,y)}var w=Reflect.getOwnPropertyDescriptor(c,l);if(w!=null&&w.set&&w.set.call(a,u),!h){if(i&&typeof l=="string"){var g=r.get("length"),_=Number(l);Number.isInteger(_)&&_>=g.v&&ie(g,_+1)}ri(s)}return!0},ownKeys(c){M(s);var l=Reflect.ownKeys(c).filter(d=>{var f=r.get(d);return f===void 0||f.v!==Oe});for(var[u,a]of r)a.v!==Oe&&!(u in c)&&l.push(u);return l},setPrototypeOf(){Nf()}})}var oa,Nu,Mu,Ou;function Gn(){if(oa===void 0){oa=window,Nu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Mu=tr(t,"firstChild").get,Ou=tr(t,"nextSibling").get,ra(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ra(r)&&(r.__t=void 0)}}function ft(e=""){return document.createTextNode(e)}function ur(e){return Mu.call(e)}function bt(e){return Ou.call(e)}function nt(e,t){if(!Z)return ur(e);var r=ur(X);if(r===null)r=X.appendChild(ft());else if(t&&r.nodeType!==yo){var i=ft();return r==null||r.before(i),je(i),i}return je(r),r}function Gf(e,t=!1){if(!Z){var r=ur(e);return r instanceof Comment&&r.data===""?bt(r):r}if(t&&(X==null?void 0:X.nodeType)!==yo){var i=ft();return X==null||X.before(i),je(i),i}return X}function Ge(e,t=1,r=!1){let i=Z?X:e;for(var s;t--;)s=i,i=bt(i);if(!Z)return i;if(r&&(i==null?void 0:i.nodeType)!==yo){var n=ft();return i===null?s==null||s.after(n):i.before(n),je(n),n}return je(i),i}function Au(e){e.textContent=""}function Du(){return!1}let aa=!1;function Tu(){aa||(aa=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function os(e){var t=J,r=K;Ue(null),et(null);try{return e()}finally{Ue(t),et(r)}}function Hf(e,t,r,i=r){e.addEventListener(t,()=>os(r));const s=e.__on_r;s?e.__on_r=()=>{s(),i(!0)}:e.__on_r=()=>i(!0),Tu()}function ku(e){K===null&&(J===null&&_f(),bf()),dr&&wf()}function Yf(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function _t(e,t,r){var c;var i=K;i!==null&&(i.f&qe)!==0&&(e|=qe);var s={ctx:oe,deps:null,nodes:null,f:e|Fe|ct,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Ir(s),s.f|=Zi}catch(l){throw Le(s),l}else t!==null&&lr(s);var n=s;if(r&&n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&Fr)===0&&(n=n.first,(e&At)!==0&&(e&Dr)!==0&&n!==null&&(n.f|=Dr)),n!==null&&(n.parent=i,i!==null&&Yf(n,i),J!==null&&(J.f&Re)!==0&&(e&fr)===0)){var o=J;((c=o.effects)!=null?c:o.effects=[]).push(n)}return s}function li(){return J!==null&&!wt}function So(e){const t=_t(Ki,null,!1);return Ne(t,xe),t.teardown=e,t}function Hn(e){var s;ku();var t=K.f,r=!J&&(t&Dt)!==0&&(t&Zi)===0;if(r){var i=oe;((s=i.e)!=null?s:i.e=[]).push(e)}else return Pu(e)}function Pu(e){return _t(go|du,e,!1)}function Jf(e){return ku(),_t(Ki|du,e,!0)}function Xf(e){ar.ensure();const t=_t(fr|Fr,e,!0);return(r={})=>new Promise(i=>{r.outro?hr(t,()=>{Le(t),i(void 0)}):(Le(t),i(void 0))})}function Kf(e){return _t(go,e,!1)}function $t(e,t){var r=oe,i={effect:null,ran:!1,deps:e};r.l.$.push(i),i.effect=fi(()=>{e(),!i.ran&&(i.ran=!0,Ee(t))})}function Iu(){var e=oe;fi(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&xe)!==0&&Ne(r,ht),$r(r)&&Ir(r),t.ran=!1}})}function Qf(e){return _t(vo|Fr,e,!0)}function fi(e,t=0){return _t(Ki|t,e,!0)}function xr(e,t=[],r=[],i=[]){Wf(i,t,r,s=>{_t(Ki,()=>e(...s.map(M)),!0)})}function Eo(e,t=0){var r=_t(At|t,e,!0);return r}function Qe(e){return _t(Dt|Fr,e,!0)}function Lu(e){var t=e.teardown;if(t!==null){const r=dr,i=J;la(!0),Ue(null);try{t.call(null)}finally{la(r),Ue(i)}}}function Fu(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&os(()=>{s.abort(Er)});var i=r.next;(r.f&fr)!==0?r.parent=null:Le(r,t),r=i}}function Zf(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Dt)===0&&Le(t),t=r}}function Le(e,t=!0){var r=!1;(t||(e.f&hu)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(eh(e.nodes.start,e.nodes.end),r=!0),Fu(e,t&&!r),qi(e,0),Ne(e,Ot);var i=e.nodes&&e.nodes.t;if(i!==null)for(const n of i)n.stop();Lu(e);var s=e.parent;s!==null&&s.first!==null&&Uu(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function eh(e,t){for(;e!==null;){var r=e===t?null:bt(e);e.remove(),e=r}}function Uu(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function hr(e,t,r=!0){var i=[];Bu(e,i,!0);var s=()=>{r&&Le(e),t&&t()},n=i.length;if(n>0){var o=()=>--n||s();for(var c of i)c.out(o)}else s()}function Bu(e,t,r){if((e.f&qe)===0){e.f^=qe;var i=e.nodes&&e.nodes.t;if(i!==null)for(const c of i)(c.is_global||r)&&t.push(c);for(var s=e.first;s!==null;){var n=s.next,o=(s.f&Dr)!==0||(s.f&Dt)!==0&&(e.f&At)!==0;Bu(s,t,o?r:!1),s=n}}}function Co(e){$u(e,!0)}function $u(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&xe)===0&&(Ne(e,Fe),lr(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Dr)!==0||(r.f&Dt)!==0;$u(r,s?t:!1),r=i}var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||t)&&o.in()}}function Wu(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:bt(r);t.append(r),r=s}}let ir=!1;function zi(e){ir=e}let dr=!1;function la(e){dr=e}let J=null,wt=!1;function Ue(e){J=e}let K=null;function et(e){K=e}let Ze=null;function th(e){J!==null&&(Ze===null?Ze=[e]:Ze.push(e))}let Pe=null,Be=0,He=null;function rh(e){He=e}let zu=1,ui=0,sr=ui;function ua(e){sr=e}function qu(){return++zu}function $r(e){var t=e.f;if((t&Fe)!==0)return!0;if(t&Re&&(e.f&=~or),(t&ht)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var n=r[s];if($r(n)&&Cu(n),n.wv>e.wv)return!0}(t&ct)!==0&&De===null&&Ne(e,xe)}return!1}function ju(e,t,r=!0){var i=e.reactions;if(i!==null&&!(Ze!=null&&Ze.includes(e)))for(var s=0;s<i.length;s++){var n=i[s];(n.f&Re)!==0?ju(n,t,!1):t===n&&(r?Ne(n,Fe):(n.f&xe)!==0&&Ne(n,ht),lr(n))}}function Vu(e){var m;var t,r=Pe,i=Be,s=He,n=J,o=Ze,c=oe,l=wt,u=sr,a=e.f;Pe=null,Be=0,He=null,J=(a&(Dt|fr))===0?e:null,Ze=null,Tr(e.ctx),wt=!1,sr=++ui,e.ac!==null&&(os(()=>{e.ac.abort(Er)}),e.ac=null);try{e.f|=zn;var d=e.fn,f=d(),h=e.deps;if(Pe!==null){var p;if(qi(e,Be),h!==null&&Be>0)for(h.length=Be+Pe.length,p=0;p<Pe.length;p++)h[Be+p]=Pe[p];else e.deps=h=Pe;if(li()&&(e.f&ct)!==0)for(p=Be;p<h.length;p++)((m=(t=h[p]).reactions)!=null?m:t.reactions=[]).push(e)}else h!==null&&Be<h.length&&(qi(e,Be),h.length=Be);if(ci()&&He!==null&&!wt&&h!==null&&(e.f&(Re|ht|Fe))===0)for(p=0;p<He.length;p++)ju(He[p],e);return n!==null&&n!==e&&(ui++,He!==null&&(s===null?s=He:s.push(...He))),(e.f&Gt)!==0&&(e.f^=Gt),f}catch(y){return wu(y)}finally{e.f^=zn,Pe=r,Be=i,He=s,J=n,Ze=o,Tr(c),wt=l,sr=u}}function ih(e,t){let r=t.reactions;if(r!==null){var i=hf.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}r===null&&(t.f&Re)!==0&&(Pe===null||!Pe.includes(t))&&(Ne(t,ht),(t.f&ct)!==0&&(t.f^=ct,t.f&=~or),Eu(t),qi(t,0))}function qi(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ih(e,r[i])}function Ir(e){var t=e.f;if((t&Ot)===0){Ne(e,xe);var r=K,i=ir;K=e,ir=!0;try{(t&(At|gf))!==0?Zf(e):Fu(e),Lu(e);var s=Vu(e);e.teardown=typeof s=="function"?s:null,e.wv=zu;var n;$n&&ef&&(e.f&Fe)!==0&&e.deps}finally{ir=i,K=r}}}function M(e){var l;var t=e.f,r=(t&Re)!==0;if(J!==null&&!wt){var i=K!==null&&(K.f&Ot)!==0;if(!i&&!(Ze!=null&&Ze.includes(e))){var s=J.deps;if((J.f&zn)!==0)e.rv<ui&&(e.rv=ui,Pe===null&&s!==null&&s[Be]===e?Be++:Pe===null?Pe=[e]:Pe.includes(e)||Pe.push(e));else{((l=J.deps)!=null?l:J.deps=[]).push(e);var n=e.reactions;n===null?e.reactions=[J]:n.includes(J)||n.push(J)}}}if(dr){if(Ht.has(e))return Ht.get(e);if(r){var o=e,c=o.v;return((o.f&xe)===0&&o.reactions!==null||Hu(o))&&(c=_o(o)),Ht.set(o,c),c}}else r&&(!(De!=null&&De.has(e))||ne!=null&&ne.is_fork&&!li())&&(o=e,$r(o)&&Cu(o),ir&&li()&&(o.f&ct)===0&&Gu(o));if(De!=null&&De.has(e))return De.get(e);if((e.f&Gt)!==0)throw e.v;return e.v}function Gu(e){var t;if(e.deps!==null){e.f^=ct;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),(r.f&Re)!==0&&(r.f&ct)===0&&Gu(r)}}function Hu(e){if(e.v===Oe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ht.has(t)||(t.f&Re)!==0&&Hu(t))return!0;return!1}function Ee(e){var t=wt;try{return wt=!0,e()}finally{wt=t}}const sh=-7169;function Ne(e,t){e.f=e.f&sh|t}function $e(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(rr in e)Yn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&rr in r&&Yn(r)}}}function Yn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let i in e)try{Yn(e[i],t)}catch(s){}const r=mo(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const i=cu(r);for(let s in i){const n=i[s].get;if(n)try{n.call(e)}catch(o){}}}}}const nh=new Set,ca=new Set;function oh(e,t,r,i={}){function s(n){if(i.capture||Jr.call(t,n),!n.cancelBubble)return os(()=>r==null?void 0:r.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Br(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function Vr(e,t,r,i,s){var n={capture:i,passive:s},o=oh(e,t,r,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&So(()=>{t.removeEventListener(e,o,n)})}let fa=null;function Jr(e){var t,r=this,i=r.ownerDocument,s=e.type,n=((t=e.composedPath)==null?void 0:t.call(e))||[],o=n[0]||e.target;fa=e;var c=0,l=fa===e&&e.__root;if(l){var u=n.indexOf(l);if(u!==-1&&(r===document||r===window)){e.__root=r;return}var a=n.indexOf(r);if(a===-1)return;u<=a&&(c=u)}if(o=n[c]||e.target,o!==r){uu(e,"currentTarget",{configurable:!0,get(){return o||i}});var d=J,f=K;Ue(null),et(null);try{for(var h,p=[];o!==null;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var y=o["__"+s];y!=null&&(!o.disabled||e.target===o)&&y.call(o,e)}catch(w){h?p.push(w):h=w}if(e.cancelBubble||m===r||m===null)break;o=m}if(h){for(let w of p)queueMicrotask(()=>{throw w});throw h}}finally{e.__root=r,delete e.currentTarget,Ue(d),et(f)}}}function Yu(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function cr(e,t){var r=K;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Wr(e,t){var r=(t&cf)!==0,i,s=!e.startsWith("<!>");return()=>{if(Z)return cr(X,null),X;i===void 0&&(i=Yu(s?e:"<!>"+e),i=ur(i));var n=r||Nu?document.importNode(i,!0):i.cloneNode(!0);return cr(n,n),n}}function ah(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,n;return()=>{if(Z)return cr(X,null),X;if(!n){var o=Yu(s),c=ur(o);n=ur(c)}var l=n.cloneNode(!0);return cr(l,l),l}}function Ju(e,t){return ah(e,t,"svg")}function lh(){if(Z)return cr(X,null),X;var e=document.createDocumentFragment(),t=document.createComment(""),r=ft();return e.append(t,r),cr(t,r),e}function Ct(e,t){if(Z){var r=K;((r.f&Zi)===0||r.nodes.end===null)&&(r.nodes.end=X),rs();return}e!==null&&e.before(t)}const uh=["touchstart","touchmove"];function ch(e){return uh.includes(e)}function Li(e,t){var i;var r=t==null?"":typeof t=="object"?t+"":t;r!==((i=e.__t)!=null?i:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Xu(e,t){return Ku(e,t)}function fh(e,t){var o;Gn(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,i=Z,s=X;try{for(var n=ur(r);n&&(n.nodeType!==Ur||n.data!==lu);)n=bt(n);if(!n)throw Ar;Mt(!0),je(n);const c=Ku(e,we(G({},t),{anchor:n}));return Mt(!1),c}catch(c){if(c instanceof Error&&c.message.split(`
15
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw c;return c!==Ar&&console.warn("Failed to hydrate: ",c),t.recover===!1&&Ef(),Gn(),Au(r),Mt(!1),Xu(e,t)}finally{Mt(i),je(s)}}const gr=new Map;function Ku(e,{target:t,anchor:r,props:i={},events:s,context:n,intro:o=!0}){Gn();var c=new Set,l=d=>{for(var f=0;f<d.length;f++){var h=d[f];if(!c.has(h)){c.add(h);var p=ch(h);t.addEventListener(h,Jr,{passive:p});var m=gr.get(h);m===void 0?(document.addEventListener(h,Jr,{passive:p}),gr.set(h,1)):gr.set(h,m+1)}}};l(Xi(nh)),ca.add(l);var u=void 0,a=Xf(()=>{var d=r!=null?r:t.appendChild(ft());return Bf(d,{pending:()=>{}},f=>{if(n){wo({});var h=oe;h.c=n}if(s&&(i.$$events=s),Z&&cr(f,null),u=e(f,i)||{},Z&&(K.nodes.end=X,X===null||X.nodeType!==Ur||X.data!==ho))throw ts(),Ar;n&&bo()}),()=>{var f;for(var h of c){t.removeEventListener(h,Jr);var p=gr.get(h);--p===0?(document.removeEventListener(h,Jr),gr.delete(h)):gr.set(h,p)}ca.delete(l),d!==r&&((f=d.parentNode)==null||f.removeChild(d))}});return Jn.set(u,a),u}let Jn=new WeakMap;function hh(e,t){const r=Jn.get(e);return r?(Jn.delete(e),r(t)):Promise.resolve()}class dh{constructor(t,r=!0){Rt(this,"anchor"),Y(this,gt,new Map),Y(this,Et,new Map),Y(this,Ve,new Map),Y(this,wr,new Set),Y(this,ki,!0),Y(this,Pi,()=>{var i=ne;if(R(this,gt).has(i)){var s=R(this,gt).get(i),n=R(this,Et).get(s);if(n)Co(n),R(this,wr).delete(s);else{var o=R(this,Ve).get(s);o&&(R(this,Et).set(s,o.effect),R(this,Ve).delete(s),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[c,l]of R(this,gt)){if(R(this,gt).delete(c),c===i)break;const u=R(this,Ve).get(l);u&&(Le(u.effect),R(this,Ve).delete(l))}for(const[c,l]of R(this,Et)){if(c===s||R(this,wr).has(c))continue;const u=()=>{if(Array.from(R(this,gt).values()).includes(c)){var d=document.createDocumentFragment();Wu(l,d),d.append(ft()),R(this,Ve).set(c,{effect:l,fragment:d})}else Le(l);R(this,wr).delete(c),R(this,Et).delete(c)};R(this,ki)||!n?(R(this,wr).add(c),hr(l,u,!1)):u()}}}),Y(this,Bn,i=>{R(this,gt).delete(i);const s=Array.from(R(this,gt).values());for(const[n,o]of R(this,Ve))s.includes(n)||(Le(o.effect),R(this,Ve).delete(n))}),this.anchor=t,B(this,ki,r)}ensure(t,r){var i=ne,s=Du();if(r&&!R(this,Et).has(t)&&!R(this,Ve).has(t))if(s){var n=document.createDocumentFragment(),o=ft();n.append(o),R(this,Ve).set(t,{effect:Qe(()=>r(o)),fragment:n})}else R(this,Et).set(t,Qe(()=>r(this.anchor)));if(R(this,gt).set(i,t),s){for(const[c,l]of R(this,Et))c===t?i.skipped_effects.delete(l):i.skipped_effects.add(l);for(const[c,l]of R(this,Ve))c===t?i.skipped_effects.delete(l.effect):i.skipped_effects.add(l.effect);i.oncommit(R(this,Pi)),i.ondiscard(R(this,Bn))}else Z&&(this.anchor=X),R(this,Pi).call(this)}}gt=new WeakMap;Et=new WeakMap;Ve=new WeakMap;wr=new WeakMap;ki=new WeakMap;Pi=new WeakMap;Bn=new WeakMap;function xo(e){oe===null&&es(),Lr&&oe.l!==null?Zu(oe).m.push(e):Hn(()=>{const t=Ee(e);if(typeof t=="function")return t})}function Qu(e){oe===null&&es(),xo(()=>()=>Ee(e))}function ph(e,t,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:i})}function mh(){const e=oe;return e===null&&es(),(t,r,i)=>{var s;const n=(s=e.s.$$events)==null?void 0:s[t];if(n){const o=po(n)?n.slice():[n],c=ph(t,r,i);for(const l of o)l.call(e.x,c);return!c.defaultPrevented}return!0}}function gh(e){oe===null&&es(),oe.l===null&&Cf(),Zu(oe).a.push(e)}function Zu(e){var r;var t=e.l;return(r=t.u)!=null?r:t.u={a:[],b:[],m:[]}}function Xn(e,t,r=!1){Z&&rs();var i=new dh(e),s=r?Dr:0;function n(o,c){if(Z){const u=mu(e)===Ji;if(o===u){var l=$i();je(l),i.anchor=l,Mt(!1),i.ensure(o,c),Mt(!0);return}}i.ensure(o,c)}Eo(()=>{var o=!1;t((c,l=!0)=>{o=!0,n(l,c)}),o||n(!1,null)},s)}function Ss(e,t){return t}function vh(e,t,r){var d;for(var i=[],s=t.length,n,o=t.length,c=0;c<s;c++){let f=t[c];hr(f,()=>{if(n){if(n.pending.delete(f),n.done.add(f),n.pending.size===0){var h=e.outrogroups;Kn(Xi(n.done)),h.delete(n),h.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var l=i.length===0&&r!==null;if(l){var u=r,a=u.parentNode;Au(a),a.append(u),e.items.clear()}Kn(t,!l)}else n={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(n)}function Kn(e,t=!0){for(var r=0;r<e.length;r++)Le(e[r],t)}var kt;function Es(e,t,r,i,s,n=null){var o=e,c=new Map;Z&&rs();var l=null,u=ns(()=>{var m=r();return po(m)?m:m==null?[]:Xi(m)}),a,d=!0;function f(){p.fallback=l,yh(p,a,o,t,i),l!==null&&(a.length===0?(l.f&Wt)===0?Co(l):(l.f^=Wt,Xr(l,null,o)):hr(l,()=>{l=null}))}var h=Eo(()=>{a=M(u);var m=a.length;let y=!1;if(Z){var w=mu(o)===Ji;w!==(m===0)&&(o=$i(),je(o),Mt(!1),y=!0)}for(var g=new Set,_=ne,S=Du(),v=0;v<m;v+=1){Z&&X.nodeType===Ur&&X.data===ho&&(o=X,y=!0,Mt(!1));var b=a[v],E=i(b,v),C=d?null:c.get(E);C?(C.v&&Pr(C.v,b),C.i&&Pr(C.i,v),S&&_.skipped_effects.delete(C.e)):(C=wh(c,d?o:kt!=null?kt:kt=ft(),b,E,v,s,t,r),d||(C.e.f|=Wt),c.set(E,C)),g.add(E)}if(m===0&&n&&!l&&(d?l=Qe(()=>n(o)):(l=Qe(()=>n(kt!=null?kt:kt=ft())),l.f|=Wt)),Z&&m>0&&je($i()),!d)if(S){for(const[O,N]of c)g.has(O)||_.skipped_effects.add(N.e);_.oncommit(f),_.ondiscard(()=>{})}else f();y&&Mt(!0),M(u)}),p={effect:h,items:c,outrogroups:null,fallback:l};d=!1,Z&&(o=X)}function yh(e,t,r,i,s){var n,o=t.length,c=e.items,l=e.effect.first,u,a=null,d=[],f=[],h,p,m,y;for(y=0;y<o;y+=1){if(h=t[y],p=s(h,y),m=c.get(p).e,e.outrogroups!==null)for(const O of e.outrogroups)O.pending.delete(m),O.done.delete(m);if((m.f&Wt)!==0)if(m.f^=Wt,m===l)Xr(m,null,r);else{var w=a?a.next:l;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Pt(e,a,m),Pt(e,m,w),Xr(m,w,r),a=m,d=[],f=[],l=a.next;continue}if((m.f&qe)!==0&&Co(m),m!==l){if(u!==void 0&&u.has(m)){if(d.length<f.length){var g=f[0],_;a=g.prev;var S=d[0],v=d[d.length-1];for(_=0;_<d.length;_+=1)Xr(d[_],g,r);for(_=0;_<f.length;_+=1)u.delete(f[_]);Pt(e,S.prev,v.next),Pt(e,a,S),Pt(e,v,g),l=g,a=v,y-=1,d=[],f=[]}else u.delete(m),Xr(m,l,r),Pt(e,m.prev,m.next),Pt(e,m,a===null?e.effect.first:a.next),Pt(e,a,m),a=m;continue}for(d=[],f=[];l!==null&&l!==m;)(u!=null?u:u=new Set).add(l),f.push(l),l=l.next;if(l===null)continue}(m.f&Wt)===0&&d.push(m),a=m,l=m.next}if(e.outrogroups!==null){for(const O of e.outrogroups)O.pending.size===0&&(Kn(Xi(O.done)),(n=e.outrogroups)==null||n.delete(O));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var b=[];if(u!==void 0)for(m of u)(m.f&qe)===0&&b.push(m);for(;l!==null;)(l.f&qe)===0&&l!==e.fallback&&b.push(l),l=l.next;var E=b.length;if(E>0){var C=null;vh(e,b,C)}}}function wh(e,t,r,i,s,n,o,c){var l=(o&rf)!==0?(o&nf)===0?Ae(r,!1,!1):Yt(r):null,u=(o&sf)!==0?Yt(s):null;return{v:l,i:u,e:Qe(()=>(n(t,l!=null?l:r,u!=null?u:s,c),()=>{e.delete(i)}))}}function Xr(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,n=t&&(t.f&Wt)===0?t.nodes.start:r;i!==null;){var o=bt(i);if(n.before(i),i===s)return;i=o}}function Pt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}const ha=[...`
16
+ \r\f\xA0\v\uFEFF`];function bh(e,t,r){var i=e==null?"":""+e;if(r){for(var s in r)if(r[s])i=i?i+" "+s:s;else if(i.length)for(var n=s.length,o=0;(o=i.indexOf(s,o))>=0;){var c=o+n;(o===0||ha.includes(i[o-1]))&&(c===i.length||ha.includes(i[c]))?i=(o===0?"":i.substring(0,o))+i.substring(c+1):o=c}}return i===""?null:i}function _h(e,t){return e==null?null:String(e)}function Qn(e,t,r,i,s,n){var o=e.__className;if(Z||o!==r||o===void 0){var c=bh(r,i,n);(!Z||c!==e.getAttribute("class"))&&(c==null?e.removeAttribute("class"):e.className=c),e.__className=r}else if(n&&s!==n)for(var l in n){var u=!!n[l];(s==null||u!==!!s[l])&&e.classList.toggle(l,u)}return n}function Rr(e,t,r,i){var s=e.__style;if(Z||s!==t){var n=_h(t);(!Z||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return i}const Sh=Symbol("is custom element"),Eh=Symbol("is html");function Ch(e){if(Z){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;nr(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var s=e.checked;nr(e,"checked",null),e.checked=s}}};e.__on_r=r,Br(r),Tu()}}function nr(e,t,r,i){var s=xh(e);Z&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[vf]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Rh(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function xh(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Sh]:e.nodeName.includes("-"),[Eh]:e.namespaceURI===ff}}var da=new Map;function Rh(e){var t=e.getAttribute("is")||e.nodeName,r=da.get(t);if(r)return r;da.set(t,r=[]);for(var i,s=e,n=Element.prototype;n!==s;){i=cu(s);for(var o in i)i[o].set&&r.push(o);s=mo(s)}return r}function Nh(e,t,r=t){Hf(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(Z&&e.defaultChecked!==e.checked||Ee(t)==null)&&r(e.checked),fi(()=>{var i=t();e.checked=!!i})}function ve(e,t,r){var i=tr(e,t);i&&i.set&&(e[t]=r,So(()=>{e[t]=null}))}function pa(e,t){return e===t||(e==null?void 0:e[rr])===t}function Fi(e={},t,r,i){return Kf(()=>{var s,n;return fi(()=>{s=n,n=[],Ee(()=>{e!==r(...n)&&(t(e,...n),s&&pa(r(...s),e)&&t(null,...s))})}),()=>{Br(()=>{n&&pa(r(...n),e)&&t(null,...n)})}}),e}function ec(e=!1){const t=oe,r=t.l.u;if(!r)return;let i=()=>$e(t.s);if(e){let s=0,n={};const o=ss(()=>{let c=!1;const l=t.s;for(const u in l)l[u]!==n[u]&&(n[u]=l[u],c=!0);return c&&s++,s});i=()=>M(o)}r.b.length&&Jf(()=>{ma(t,i),Wn(r.b)}),Hn(()=>{const s=Ee(()=>r.m.map(mf));return()=>{for(const n of s)typeof n=="function"&&n()}}),r.a.length&&Hn(()=>{ma(t,i),Wn(r.a)})}function ma(e,t){if(e.l.s)for(const r of e.l.s)M(r);t()}let wi=!1;function Mh(e){var t=wi;try{return wi=!1,[e(),wi]}finally{wi=t}}const Oh={get(e,t){if(!e.exclude.includes(t))return M(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var i=K;try{et(e.parent_effect),e.special[t]=pe({get[t](){return e.props[t]}},t,au)}finally{et(i)}}return e.special[t](r),na(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),na(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Ah(e,t){return new Proxy({props:e,exclude:t,special:{},version:Yt(0),parent_effect:K},Oh)}function pe(e,t,r,i){var S;var s,n=!Lr||(r&af)!==0,o=(r&lf)!==0,c=(r&uf)!==0,l=i,u=!0,a=()=>(u&&(u=!1,l=c?Ee(i):i),l),d;if(o){var f=rr in e||pu in e;d=(S=(s=tr(e,t))==null?void 0:s.set)!=null?S:f&&t in e?v=>e[t]=v:void 0}var h,p=!1;o?[h,p]=Mh(()=>e[t]):h=e[t],h===void 0&&i!==void 0&&(h=a(),d&&(n&&xf(),d(h)));var m;if(n?m=()=>{var v=e[t];return v===void 0?a():(u=!0,v)}:m=()=>{var v=e[t];return v!==void 0&&(l=void 0),v===void 0?l:v},n&&(r&au)===0)return m;if(d){var y=e.$$legacy;return(function(v,b){return arguments.length>0?((!n||!b||y||p)&&d(b?m():v),v):m()})}var w=!1,g=((r&of)!==0?ss:ns)(()=>(w=!1,m()));o&&M(g);var _=K;return(function(v,b){if(arguments.length>0){const E=b?M(g):n&&o?Cr(v):v;return ie(g,E),w=!0,l!==void 0&&(l=E),v}return dr&&w||(_.f&Ot)!==0?g.v:M(g)})}function Dh(e){return class extends Th{constructor(t){super(G({component:e},t))}}}class Th{constructor(t){var o;Y(this,Lt),Y(this,it);var r,i=new Map,s=(c,l)=>{var u=Ae(l,!1,!1);return i.set(c,u),u};const n=new Proxy(we(G({},t.props||{}),{$$events:{}}),{get(c,l){var u;return M((u=i.get(l))!=null?u:s(l,Reflect.get(c,l)))},has(c,l){var u;return l===pu?!0:(M((u=i.get(l))!=null?u:s(l,Reflect.get(c,l))),Reflect.has(c,l))},set(c,l,u){var a;return ie((a=i.get(l))!=null?a:s(l,u),u),Reflect.set(c,l,u)}});B(this,it,(t.hydrate?fh:Xu)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:(o=t.intro)!=null?o:!1,recover:t.recover})),(!((r=t==null?void 0:t.props)!=null&&r.$$host)||t.sync===!1)&&If(),B(this,Lt,n.$$events);for(const c of Object.keys(R(this,it)))c==="$set"||c==="$destroy"||c==="$on"||uu(this,c,{get(){return R(this,it)[c]},set(l){R(this,it)[c]=l},enumerable:!0});R(this,it).$set=c=>{Object.assign(n,c)},R(this,it).$destroy=()=>{hh(R(this,it))}}$set(t){R(this,it).$set(t)}$on(t,r){R(this,Lt)[t]=R(this,Lt)[t]||[];const i=(...s)=>r.call(this,...s);return R(this,Lt)[t].push(i),()=>{R(this,Lt)[t]=R(this,Lt)[t].filter(s=>s!==i)}}$destroy(){R(this,it).$destroy()}}Lt=new WeakMap;it=new WeakMap;var kh=Object.defineProperty,Ph=(e,t,r)=>t in e?kh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t,r)=>Ph(e,typeof t!="symbol"?t+"":t,r),ga,Ih=Object.defineProperty,Lh=(e,t,r)=>t in e?Ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,va=(e,t,r)=>Lh(e,typeof t!="symbol"?t+"":t,r),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||{});const ya={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},wa={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bi={};function Fh(e){var t,r;const i=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(i&&globalThis[i])return globalThis[i]}function Ro(e){if(bi[e])return bi[e];const t=Fh(e)||globalThis[e],r=t.prototype,i=e in ya?ya[e]:void 0,s=!!(i&&i.every(c=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(r,c))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),n=e in wa?wa[e]:void 0,o=!!(n&&n.every(c=>{var l;return typeof r[c]=="function"&&((l=r[c])==null?void 0:l.toString().includes("[native code]"))}));if(s&&o)return bi[e]=t.prototype,t.prototype;try{const c=document.createElement("iframe");document.body.appendChild(c);const l=c.contentWindow;if(!l)return t.prototype;const u=l[e].prototype;return document.body.removeChild(c),u?bi[e]=u:r}catch(c){return r}}const Cs={};function Jt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Cs[s])return Cs[s].call(t);const n=Ro(e),o=(i=Object.getOwnPropertyDescriptor(n,r))==null?void 0:i.get;return o?(Cs[s]=o,o.call(t)):t[r]}const xs={};function tc(e,t,r){const i=`${e}.${String(r)}`;if(xs[i])return xs[i].bind(t);const n=Ro(e)[r];return typeof n!="function"?t[r]:(xs[i]=n,n.bind(t))}function Uh(e){return Jt("Node",e,"childNodes")}function Bh(e){return Jt("Node",e,"parentNode")}function $h(e){return Jt("Node",e,"parentElement")}function Wh(e){return Jt("Node",e,"textContent")}function zh(e,t){return tc("Node",e,"contains")(t)}function qh(e){return tc("Node",e,"getRootNode")()}function jh(e){return!e||!("host"in e)?null:Jt("ShadowRoot",e,"host")}function Vh(e){return e.styleSheets}function Gh(e){return!e||!("shadowRoot"in e)?null:Jt("Element",e,"shadowRoot")}function Hh(e,t){return Jt("Element",e,"querySelector")(t)}function Yh(e,t){return Jt("Element",e,"querySelectorAll")(t)}function Jh(){return Ro("MutationObserver").constructor}const Te={childNodes:Uh,parentNode:Bh,parentElement:$h,textContent:Wh,contains:zh,getRootNode:qh,host:jh,styleSheets:Vh,shadowRoot:Gh,querySelector:Hh,querySelectorAll:Yh,mutationObserver:Jh};function No(e){return e.nodeType===e.ELEMENT_NODE}function Xh(e){const t=e&&"host"in e&&"mode"in e&&Te.host(e)||null;return!!(t&&"shadowRoot"in t&&Te.shadowRoot(t)===e)}function Rs(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Kh(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Qh(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Zn(e){try{const t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);const i=Array.from(t,s=>Zh(s,r)).join("");return Kh(i)}catch(t){return null}}function Zh(e,t){if(td(e)){let r;try{r=Zn(e.styleSheet)||Qh(e)}catch(i){r=e.cssText}return e.styleSheet.href?ji(r,e.styleSheet.href):r}else{let r=e.cssText;return rd(e)&&e.selectorText.includes(":")&&(r=ed(r)),t?ji(r,t):r}}function ed(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function td(e){return"styleSheet"in e}function rd(e){return"selectorText"in e}class Mo{constructor(){va(this,"idNodeMap",new Map),va(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function eo(){return new Mo}function id({element:e,maskInputOptions:t,tagName:r,type:i,value:s,maskInputFn:n}){let o=s||"";const c=i&&hi(i);return(t[r.toLowerCase()]||c&&t[c])&&(n?o=n(o,e):o="*".repeat(o.length)),o}function hi(e){return e.toLowerCase()}const ba="__rrweb_original__";function sd(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let i=0;i<e.width;i+=r)for(let s=0;s<e.height;s+=r){const n=t.getImageData,o=ba in n?n[ba]:n;if(new Uint32Array(o.call(t,i,s,Math.min(r,e.width-i),Math.min(r,e.height-s)).data.buffer).some(l=>l!==0))return!1}return!0}function nd(e,t){return!e||!t||e.type!==t.type?!1:e.type===W.Document?e.compatMode===t.compatMode:e.type===W.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===W.Comment||e.type===W.Text||e.type===W.CDATA?e.textContent===t.textContent:e.type===W.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function od(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?hi(t):null}function rc(e,t){var n;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(o){return null}const i=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(i);return(n=s==null?void 0:s[1])!=null?n:null}function ad(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const ld=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ud=/^(?:[a-z+]+:)?\/\//i,cd=/^www\..*/i,fd=/^(data:)([^,]*),(.*)/i;function ji(e,t){return(e||"").replace(ld,(r,i,s,n,o,c)=>{const l=s||o||c,u=i||n||"";if(!l)return r;if(ud.test(l)||cd.test(l))return`url(${u}${l}${u})`;if(fd.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${ad(t)+l}${u})`;const a=t.split("/"),d=l.split("/");a.pop();for(const f of d)f!=="."&&(f===".."?a.pop():a.push(f));return`url(${u}${a.join("/")}${u})`})}function _i(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function hd(e,t,r=!1){const i=Array.from(t.childNodes),s=[];let n=0;if(i.length>1&&e&&typeof e=="string"){let o=_i(e,r);const c=o.length/e.length;for(let l=1;l<i.length;l++)if(i[l].textContent&&typeof i[l].textContent=="string"){const u=_i(i[l].textContent,r),a=100;let d=3;for(;d<u.length&&(u[d].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,d),1)!==-1);d++);for(;d<u.length;d++){let f=u.substring(0,d),h=o.split(f),p=-1;if(h.length===2)p=h[0].length;else if(h.length>2&&h[0]===""&&i[l-1].textContent!=="")p=o.indexOf(f,1);else if(h.length===1){if(f=f.substring(0,f.length-1),h=o.split(f),h.length<=1)return s.push(e),s;d=a+1}else d===u.length-1&&(p=o.indexOf(f));if(h.length>=2&&d>a){const m=i[l-1].textContent;if(m&&typeof m=="string"){const y=_i(m).length;p=o.indexOf(f,y)}p===-1&&(p=h[0].length)}if(p!==-1){let m=Math.floor(p/c);for(;m>0&&m<e.length;){if(n+=1,n>50*i.length)return s.push(e),s;const y=_i(e.substring(0,m),r);if(y.length===p){s.push(e.substring(0,m)),e=e.substring(m),o=o.substring(p);break}else y.length<p?m+=Math.max(1,Math.floor((p-y.length)/c)):m-=Math.max(1,Math.floor((y.length-p)*c))}break}}}}return s.push(e),s}function dd(e,t){return hd(e,t).join("/* rr_split */")}const pd="lightgrey";let md=1;const gd=new RegExp("[^a-z0-9-_:]"),_a=-2;function vd(){return md++}function yd(e){if(e instanceof HTMLFormElement)return"form";const t=hi(e.tagName);return gd.test(t)?"div":t}let vr,Sa;const wd=/^[^ \t\n\r\u000c]+/,bd=/^[, \t\n\r\u000c]+/;function _d(e,t){if(t.trim()==="")return t;let r=0;function i(n){let o;const c=n.exec(t.substring(r));return c?(o=c[0],r+=o.length,o):""}const s=[];for(;i(bd),!(r>=t.length);){let n=i(wd);if(n.slice(-1)===",")n=Nr(e,n.substring(0,n.length-1)),s.push(n);else{let o="";n=Nr(e,n);let c=!1;for(;;){const l=t.charAt(r);if(l===""){s.push((n+o).trim());break}else if(c)l===")"&&(c=!1);else if(l===","){r+=1,s.push((n+o).trim());break}else l==="("&&(c=!0);o+=l,r+=1}}}return s.join(", ")}const Ea=new WeakMap;function Nr(e,t){return!t||t.trim()===""?t:Oo(e,t)}function Sd(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Oo(e,t){let r=Ea.get(e);if(r||(r=e.createElement("a"),Ea.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Ed(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?Nr(e,i):r==="srcset"?_d(e,i):r==="style"?ji(i,Oo(e)):t==="object"&&r==="data"?Nr(e,i):i)}function Cd(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function xd(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}if(r)return e.matches(r)}catch(i){}return!1}function to(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?to(Te.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}return r?to(Te.parentNode(e),t,r):!1}function Rd(e,t,r,i){let s;if(No(e)){if(s=e,!Te.childNodes(s).length)return!1}else{if(Te.parentElement(e)===null)return!1;s=Te.parentElement(e)}try{if(typeof t=="string"){if(i){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(to(s,t,i))return!0;if(r){if(i){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch(n){}return!1}function Nd(e,t,r){const i=e.contentWindow;if(!i)return;let s=!1,n;try{n=i.document.readyState}catch(c){return}if(n!=="complete"){const c=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(c),s=!0,t()});return}const o="about:blank";if(i.location.href!==o||e.src===o||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Md(e,t,r){let i=!1,s;try{s=e.sheet}catch(o){return}if(s)return;const n=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(n),i=!0,t()})}function Od(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:o,inlineStylesheet:c,maskInputOptions:l={},maskTextFn:u,maskInputFn:a,maskAttributeFn:d,dataURLOptions:f={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y=!1,cssCaptured:w=!1,applyBackgroundColorToBlockedElements:g=!1}=t,_=Ad(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:W.Document,childNodes:[],compatMode:e.compatMode}:{type:W.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:W.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return Td(e,{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:c,maskInputOptions:l,maskInputFn:a,maskAttributeFn:d,dataURLOptions:f,inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:y,rootId:_,applyBackgroundColorToBlockedElements:g});case e.TEXT_NODE:return Dd(e,{doc:r,needsMask:o,maskTextFn:u,rootId:_,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:W.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:W.Comment,textContent:Te.textContent(e)||"",rootId:_};default:return!1}}function Ad(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Dd(e,t){const{needsMask:r,maskTextFn:i,rootId:s,cssCaptured:n}=t,o=Te.parentNode(e),c=o&&o.tagName;let l="";const u=c==="STYLE"?!0:void 0,a=c==="SCRIPT"?!0:void 0;return a?l="SCRIPT_PLACEHOLDER":n||(l=Te.textContent(e),u&&l&&(l=ji(l,Oo(t.doc)))),!u&&!a&&l&&r&&(l=i?i(l,Te.parentElement(e)):l.replace(/[\S]/g,"*")),{type:W.Text,textContent:l||"",rootId:s}}function Td(e,t){const{doc:r,blockClass:i,blockSelector:s,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:c,maskAttributeFn:l,dataURLOptions:u={},inlineImages:a,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:p,applyBackgroundColorToBlockedElements:m=!1}=t,y=xd(e,i,s),w=yd(e);let g={};const _=e.attributes.length;for(let v=0;v<_;v++){const b=e.attributes[v];if(!Cd(w,b.name,b.value)){const E=Ed(r,w,hi(b.name),b.value);if(l&&E!==null){const C=l(b.name,E,e);C!==null&&(g[b.name]=C)}else g[b.name]=E}}if(w==="link"&&n){const v=Array.from(r.styleSheets).find(E=>E.href===e.href);let b=null;v&&(b=Zn(v)),b&&(delete g.rel,delete g.href,g._cssText=b)}if(w==="style"&&e.sheet){let v=Zn(e.sheet);v&&(e.childNodes.length>1&&(v=dd(v,e)),g._cssText=v)}if(w==="input"||w==="textarea"||w==="select"){const v=e.value,b=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=id({element:e,type:od(e),tagName:w,value:v,maskInputOptions:o,maskInputFn:c}):b&&(g.checked=b)}if(w==="option"&&(e.selected&&!o.select?g.selected=!0:delete g.selected),w==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&d){if(e.__context==="2d")sd(e)||(g.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const v=e.toDataURL(u.type,u.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;const E=b.toDataURL(u.type,u.quality);v!==E&&(g.rr_dataURL=v)}}if(w==="img"&&a){vr||(vr=r.createElement("canvas"),Sa=vr.getContext("2d"));const v=e,b=v.currentSrc||v.getAttribute("src")||"<unknown-src>",E=v.crossOrigin,C=()=>{v.removeEventListener("load",C);try{vr.width=v.naturalWidth,vr.height=v.naturalHeight,Sa.drawImage(v,0,0),g.rr_dataURL=vr.toDataURL(u.type,u.quality)}catch(O){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?C():v.addEventListener("load",C);return}else console.warn(`Cannot inline img src=${b}! Error: ${O}`)}v.crossOrigin==="anonymous"&&(E?g.crossOrigin=E:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?C():v.addEventListener("load",C)}if(w==="audio"||w==="video"){const v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(h||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),y){const{width:v,height:b}=e.getBoundingClientRect();g=G({class:g.class,rr_width:`${v}px`,rr_height:`${b}px`},m?{rr_background_color:pd}:{})}w==="iframe"&&!f(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let S;try{customElements.get(w)&&(S=!0)}catch(v){}return{type:W.Element,tagName:w,attributes:g,childNodes:[],isSVG:Sd(e)||void 0,needBlock:y,rootId:p,isCustom:S}}function ce(e){return e==null?"":e.toLowerCase()}function kd(e,t){if(t.comment&&e.type===W.Comment)return!0;if(e.type===W.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&rc(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ce(e.attributes.name)==="application-name"||ce(e.attributes.rel)==="icon"||ce(e.attributes.rel)==="apple-touch-icon"||ce(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ce(e.attributes.property).match(/^(og|twitter|fb):/)||ce(e.attributes.name).match(/^(og|twitter):/)||ce(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ce(e.attributes.name)==="robots"||ce(e.attributes.name)==="googlebot"||ce(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ce(e.attributes.name)==="author"||ce(e.attributes.name)==="generator"||ce(e.attributes.name)==="framework"||ce(e.attributes.name)==="publisher"||ce(e.attributes.name)==="progid"||ce(e.attributes.property).match(/^article:/)||ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ce(e.attributes.name)==="google-site-verification"||ce(e.attributes.name)==="yandex-verification"||ce(e.attributes.name)==="csrf-token"||ce(e.attributes.name)==="p:domain_verify"||ce(e.attributes.name)==="verify-v1"||ce(e.attributes.name)==="verification"||ce(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Kr(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:c,skipChild:l=!1,inlineStylesheet:u=!0,maskInputOptions:a={},maskTextFn:d,maskInputFn:f,maskAttributeFn:h,slimDOMOptions:p,dataURLOptions:m={},inlineImages:y=!1,recordCanvas:w=!1,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:S=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:E=()=>!1,newlyAddedElement:C=!1,cssCaptured:O=!1,applyBackgroundColorToBlockedElements:N=!1}=t;let{needsMask:F}=t,{preserveWhiteSpace:T=!0}=t;F||(F=Rd(e,o,c,F===void 0));const x=Od(e,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:F,inlineStylesheet:u,maskInputOptions:a,maskTextFn:d,maskInputFn:f,maskAttributeFn:h,dataURLOptions:m,inlineImages:y,recordCanvas:w,keepIframeSrcFn:E,newlyAddedElement:C,cssCaptured:O,applyBackgroundColorToBlockedElements:N});if(!x)return console.warn(e,"not serialized"),null;let ae;i.hasNode(e)?ae=i.getId(e):kd(x,p)||!T&&x.type===W.Text&&!x.textContent.replace(/^\s+|\s+$/gm,"").length?ae=_a:ae=vd();const L=Object.assign(x,{id:ae});if(i.add(e,L),ae===_a)return null;g&&g(e);let te=!l;if(L.type===W.Element){te=te&&!L.needBlock,delete L.needBlock;const $=Te.shadowRoot(e);$&&Rs($)&&(L.isShadowHost=!0)}if((L.type===W.Document||L.type===W.Element)&&te){p.headWhitespace&&L.type===W.Element&&L.tagName==="head"&&(T=!1);const $={doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:F,maskTextClass:o,maskTextSelector:c,skipChild:l,inlineStylesheet:u,maskInputOptions:a,maskTextFn:d,maskInputFn:f,maskAttributeFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:w,preserveWhiteSpace:T,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:S,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:E,cssCaptured:!1,applyBackgroundColorToBlockedElements:N};if(!(L.type===W.Element&&L.tagName==="textarea"&&L.attributes.value!==void 0)){L.type===W.Element&&L.attributes._cssText!==void 0&&typeof L.attributes._cssText=="string"&&($.cssCaptured=!0);for(const q of Array.from(Te.childNodes(e))){const z=Kr(q,$);z&&L.childNodes.push(z)}}let ge=null;if(No(e)&&(ge=Te.shadowRoot(e)))for(const q of Array.from(Te.childNodes(ge))){const z=Kr(q,$);z&&(Rs(ge)&&(z.isShadow=!0),L.childNodes.push(z))}}const U=Te.parentNode(e);return U&&Xh(U)&&Rs(U)&&(L.isShadow=!0),L.type===W.Element&&L.tagName==="iframe"&&Nd(e,()=>{const $=e.contentDocument;if($&&_){const ge=Kr($,{doc:$,mirror:i,blockClass:s,blockSelector:n,needsMask:F,maskTextClass:o,maskTextSelector:c,skipChild:!1,inlineStylesheet:u,maskInputOptions:a,maskTextFn:d,maskInputFn:f,maskAttributeFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:w,preserveWhiteSpace:T,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:S,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:E});ge&&_(e,ge)}},S),L.type===W.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&rc(L.attributes.href)==="css")&&Md(e,()=>{if(v){const $=Kr(e,{doc:r,mirror:i,blockClass:s,blockSelector:n,needsMask:F,maskTextClass:o,maskTextSelector:c,skipChild:!1,inlineStylesheet:u,maskInputOptions:a,maskTextFn:d,maskInputFn:f,maskAttributeFn:h,slimDOMOptions:p,dataURLOptions:m,inlineImages:y,recordCanvas:w,preserveWhiteSpace:T,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:S,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:E});$&&v(e,$)}},b),L}function Pd(e,t){const{mirror:r=new Mo,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:a=!1,maskTextFn:d,maskInputFn:f,maskAttributeFn:h,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:y,onSerialize:w,onIframeLoad:g,iframeLoadTimeout:_,onStylesheetLoad:S,stylesheetLoadTimeout:v,keepIframeSrcFn:b=()=>!1,applyBackgroundColorToBlockedElements:E=!1}=t||{};return Kr(e,{doc:e,mirror:r,blockClass:i,blockSelector:s,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:c,maskInputOptions:a===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:a===!1?{password:!0}:a,maskTextFn:d,maskInputFn:f,maskAttributeFn:h,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:y,onSerialize:w,onIframeLoad:g,iframeLoadTimeout:_,onStylesheetLoad:S,stylesheetLoadTimeout:v,keepIframeSrcFn:b,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:E})}const Id=/(max|min)-device-(width|height)/,Ca=new RegExp(Id.source,"g"),Ld={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ca)&&(e.params=e.params.replace(Ca,"$1-$2"))}}}},Fd={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+=`,
17
+ `+r.replace(/:hover/g,".\\:hover"))}))}}}};function Ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var Si={exports:{}},xa;function $d(){if(xa)return Si.exports;xa=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}};return Si.exports=t(),Si.exports.createColors=t,Si.exports}const Wd={},zd=Object.freeze(Object.defineProperty({__proto__:null,default:Wd},Symbol.toStringTag,{value:"Module"})),lt=Bd(zd);var Ns,Ra;function Ao(){if(Ra)return Ns;Ra=1;let e=$d(),t=lt;class r extends Error{constructor(s,n,o,c,l,u){super(s),this.name="CssSyntaxError",this.reason=s,l&&(this.file=l),c&&(this.source=c),u&&(this.plugin=u),typeof n!="undefined"&&typeof o!="undefined"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.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(s){if(!this.source)return"";let n=this.source;s==null&&(s=e.isColorSupported),t&&s&&(n=t(n));let o=n.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),u=String(l).length,a,d;if(s){let{bold:f,gray:h,red:p}=e.createColors(!0);a=m=>f(p(m)),d=m=>h(m)}else a=d=f=>f;return o.slice(c,l).map((f,h)=>{let p=c+1+h,m=" "+(" "+p).slice(-u)+" | ";if(p===this.line){let y=d(m.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+d(m)+f+`
18
+ `+y+a("^")}return" "+d(m)+f}).join(`
19
19
  `)}toString(){let s=this.showSourceCode();return s&&(s=`
20
20
 
21
21
  `+s+`
@@ -24,23 +24,23 @@ var module = { exports };
24
24
  `,beforeComment:`
25
25
  `,beforeDecl:`
26
26
  `,beforeOpen:" ",beforeRule:`
27
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,n){let o="@"+s.name,u=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?o+=s.raws.afterName:u&&(o+=" "),s.nodes)this.block(s,o+u);else{let a=(s.raws.between||"")+(n?";":"");this.builder(o+u+a,s)}}beforeAfter(s,n){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):n==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let u=s.parent,a=0;for(;u&&u.type!=="root";)a+=1,u=u.parent;if(o.includes(`
28
- `)){let c=this.raw(s,null,"indent");if(c.length)for(let l=0;l<a;l++)o+=c}return o}block(s,n){let o=this.raw(s,"between","beforeOpen");this.builder(n+o+"{",s,"start");let u;s.nodes&&s.nodes.length?(this.body(s),u=this.raw(s,"after")):u=this.raw(s,"after","emptyBody"),u&&this.builder(u),this.builder("}",s,"end")}body(s){let n=s.nodes.length-1;for(;n>0&&s.nodes[n].type==="comment";)n-=1;let o=this.raw(s,"semicolon");for(let u=0;u<s.nodes.length;u++){let a=s.nodes[u],c=this.raw(a,"before");c&&this.builder(c),this.stringify(a,n!==u||o)}}comment(s){let n=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+n+s.text+o+"*/",s)}decl(s,n){let o=this.raw(s,"between","colon"),u=s.prop+o+this.rawValue(s,"value");s.important&&(u+=s.raws.important||" !important"),n&&(u+=";"),this.builder(u,s)}document(s){this.body(s)}raw(s,n,o){let u;if(o||(o=n),n&&(u=s.raws[n],typeof u!="undefined"))return u;let a=s.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[o];let c=s.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]!="undefined")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let l="raw"+t(o);this[l]?u=this[l](c,s):c.walk(h=>{if(u=h.raws[n],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),c.rawCache[o]=u,u}rawBeforeClose(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return n=o.raws.after,n.includes(`
29
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(s,n){let o;return s.walkComments(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
30
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,n){let o;return s.walkDecls(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
27
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,n){let o="@"+s.name,c=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?o+=s.raws.afterName:c&&(o+=" "),s.nodes)this.block(s,o+c);else{let l=(s.raws.between||"")+(n?";":"");this.builder(o+c+l,s)}}beforeAfter(s,n){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):n==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let c=s.parent,l=0;for(;c&&c.type!=="root";)l+=1,c=c.parent;if(o.includes(`
28
+ `)){let u=this.raw(s,null,"indent");if(u.length)for(let a=0;a<l;a++)o+=u}return o}block(s,n){let o=this.raw(s,"between","beforeOpen");this.builder(n+o+"{",s,"start");let c;s.nodes&&s.nodes.length?(this.body(s),c=this.raw(s,"after")):c=this.raw(s,"after","emptyBody"),c&&this.builder(c),this.builder("}",s,"end")}body(s){let n=s.nodes.length-1;for(;n>0&&s.nodes[n].type==="comment";)n-=1;let o=this.raw(s,"semicolon");for(let c=0;c<s.nodes.length;c++){let l=s.nodes[c],u=this.raw(l,"before");u&&this.builder(u),this.stringify(l,n!==c||o)}}comment(s){let n=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+n+s.text+o+"*/",s)}decl(s,n){let o=this.raw(s,"between","colon"),c=s.prop+o+this.rawValue(s,"value");s.important&&(c+=s.raws.important||" !important"),n&&(c+=";"),this.builder(c,s)}document(s){this.body(s)}raw(s,n,o){let c;if(o||(o=n),n&&(c=s.raws[n],typeof c!="undefined"))return c;let l=s.parent;if(o==="before"&&(!l||l.type==="root"&&l.first===s||l&&l.type==="document"))return"";if(!l)return e[o];let u=s.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let a="raw"+t(o);this[a]?c=this[a](u,s):u.walk(d=>{if(c=d.raws[n],typeof c!="undefined")return!1})}return typeof c=="undefined"&&(c=e[o]),u.rawCache[o]=c,c}rawBeforeClose(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return n=o.raws.after,n.includes(`
29
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(s,n){let o;return s.walkComments(c=>{if(typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
30
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,n){let o;return s.walkDecls(c=>{if(typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
31
31
  `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let n;return s.walk(o=>{if(o.type!=="decl"&&(n=o.raws.between,typeof n!="undefined"))return!1}),n}rawBeforeRule(s){let n;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before!="undefined")return n=o.raws.before,n.includes(`
32
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(s){let n;return s.walkDecls(o=>{if(typeof o.raws.between!="undefined")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n!="undefined"))return!1}),n}rawIndent(s){if(s.raws.indent)return s.raws.indent;let n;return s.walk(o=>{let u=o.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof o.raws.before!="undefined"){let a=o.raws.before.split(`
33
- `);return n=a[a.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n!="undefined"))return!1}),n}rawValue(s,n){let o=s[n],u=s.raws[n];return u&&u.value===o?u.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,n){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,n)}}return Ms=r,r.default=r,Ms}var Os,Oa;function as(){if(Oa)return Os;Oa=1;let e=ic();function t(r,i){new e(i).stringify(r)}return Os=t,t.default=t,Os}var As,Aa;function ls(){if(Aa)return As;Aa=1;let{isClean:e,my:t}=Do(),r=Ao(),i=ic(),s=as();function n(u,a){let c=new u.constructor;for(let l in u){if(!Object.prototype.hasOwnProperty.call(u,l)||l==="proxyCache")continue;let h=u[l],f=typeof h;l==="parent"&&f==="object"?a&&(c[l]=a):l==="source"?c[l]=h:Array.isArray(h)?c[l]=h.map(d=>n(d,c)):(f==="object"&&h!==null&&(h=n(h)),c[l]=h)}return c}class o{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in a)if(c==="nodes"){this.nodes=[];for(let l of a[c])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[c]=a[c]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let c=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let c in a)this[c]=a[c];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let c=n(this);for(let l in a)c[l]=a[l];return c}cloneAfter(a={}){let c=this.clone(a);return this.parent.insertAfter(this,c),c}cloneBefore(a={}){let c=this.clone(a);return this.parent.insertBefore(this,c),c}error(a,c={}){if(this.source){let{end:l,start:h}=this.rangeBy(c);return this.source.input.error(a,{column:h.column,line:h.line},{column:l.column,line:l.line},c)}return new r(a)}getProxyProcessor(){return{get(a,c){return c==="proxyOf"?a:c==="root"?()=>a.root().toProxy():a[c]},set(a,c,l){return a[c]===l||(a[c]=l,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,c){let l=this.source.start;if(a.index)l=this.positionInside(a.index,c);else if(a.word){c=this.toString();let h=c.indexOf(a.word);h!==-1&&(l=this.positionInside(h,c))}return l}positionInside(a,c){let l=c||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let d=0;d<a;d++)l[d]===`
34
- `?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let c={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(a.word){let h=this.toString(),f=h.indexOf(a.word);f!==-1&&(c=this.positionInside(f,h),l=this.positionInside(f+a.word.length,h))}else a.start?c={column:a.start.column,line:a.start.line}:a.index&&(c=this.positionInside(a.index)),a.end?l={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?l=this.positionInside(a.endIndex):a.index&&(l=this.positionInside(a.index+1));return(l.line<c.line||l.line===c.line&&l.column<=c.column)&&(l={column:c.column+1,line:c.line}),{end:l,start:c}}raw(a,c){return new i().raw(this,a,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let c=this,l=!1;for(let h of a)h===this?l=!0:l?(this.parent.insertAfter(c,h),c=h):this.parent.insertBefore(c,h);l||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,c){let l={},h=c==null;c=c||new Map;let f=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))l[d]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,c);else if(d==="source"){let p=c.get(m.input);p==null&&(p=f,c.set(m.input,f),f++),l[d]={end:m.end,inputId:p,start:m.start}}else l[d]=m}return h&&(l.inputs=[...c.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let c="";return a(this,l=>{c+=l}),c}warn(a,c,l){let h={node:this};for(let f in l)h[f]=l[f];return a.warn(c,h)}get proxyOf(){return this}}return As=o,o.default=o,As}var Ds,Da;function us(){if(Da)return Ds;Da=1;let e=ls();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=we(G({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ds=t,t.default=t,Ds}var Ts,Ta;function qd(){if(Ta)return Ts;Ta=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ts={nanoid:(i=21)=>{let s="",n=i;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",u=n;for(;u--;)o+=i[Math.random()*i.length|0];return o}},Ts}var ks,ka;function sc(){if(ka)return ks;ka=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{existsSync:r,readFileSync:i}=lt,{dirname:s,join:n}=lt;function o(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class u{constructor(c,l){if(l.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let h=l.map?l.map.prev:void 0,f=this.loadMap(l.from,h);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=s(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let l=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(f.test(c)||d.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(l.test(c)||h.test(c))return o(c.substr(RegExp.lastMatch.length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let l=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let h=c.lastIndexOf(l.pop()),f=c.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(h,f)))}loadFile(c){if(this.root=s(c),r(c))return this.mapFile=c,i(c,"utf-8").toString().trim()}loadMap(c,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let h=l(c);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(l instanceof e)return t.fromSourceMap(l).toString();if(l instanceof t)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return c&&(h=n(s(c),h)),this.loadFile(h)}}}startWith(c,l){return c?c.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ks=u,u.default=u,ks}var Ps,Pa;function cs(){if(Pa)return Ps;Pa=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{fileURLToPath:r,pathToFileURL:i}=lt,{isAbsolute:s,resolve:n}=lt,{nanoid:o}=qd(),u=lt,a=Ao(),c=sc(),l=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(n&&s);class d{constructor(p,g={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=n(g.from)),f&&h){let v=new c(this.css,g);if(v.text){this.map=v;let w=v.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,v,w={}){let _,E,y;if(g&&typeof g=="object"){let S=g,C=v;if(typeof S.offset=="number"){let O=this.fromOffset(S.offset);g=O.line,v=O.col}else g=S.line,v=S.column;if(typeof C.offset=="number"){let O=this.fromOffset(C.offset);E=O.line,y=O.col}else E=C.line,y=C.column}else if(!v){let S=this.fromOffset(g);g=S.line,v=S.col}let b=this.origin(g,v,E,y);return b?_=new a(p,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,w.plugin):_=new a(p,E===void 0?g:{column:v,line:g},E===void 0?v:{column:y,line:E},this.css,this.file,w.plugin),_.input={column:v,endColumn:y,endLine:E,line:g,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(p){let g,v;if(this[l])v=this[l];else{let _=this.css.split(`
35
- `);v=new Array(_.length);let E=0;for(let y=0,b=_.length;y<b;y++)v[y]=E,E+=_[y].length+1;this[l]=v}g=v[v.length-1];let w=0;if(p>=g)w=v.length-1;else{let _=v.length-2,E;for(;w<_;)if(E=w+(_-w>>1),p<v[E])_=E-1;else if(p>=v[E+1])w=E+1;else{w=E;break}}return{col:p-v[w]+1,line:w+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:n(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,v,w){if(!this.map)return!1;let _=this.map.consumer(),E=_.originalPositionFor({column:g,line:p});if(!E.source)return!1;let y;typeof v=="number"&&(y=_.originalPositionFor({column:w,line:v}));let b;s(E.source)?b=i(E.source):b=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:y&&y.column,endLine:y&&y.line,line:E.line,url:b.toString()};if(b.protocol==="file:")if(r)S.file=r(b);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(E.source);return C&&(S.source=C),S}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=G({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return Ps=d,d.default=d,u&&u.registerInput&&u.registerInput(d),Ps}var Is,Ia;function nc(){if(Ia)return Is;Ia=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{dirname:r,relative:i,resolve:s,sep:n}=lt,{pathToFileURL:o}=lt,u=cs(),a=!!(e&&t),c=!!(r&&s&&i&&n);class l{constructor(f,d,m,p){this.stringify=f,this.mapOpts=m.map||{},this.root=d,this.opts=m,this.css=p,this.originalCSS=p,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 d=`
32
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(s){let n;return s.walkDecls(o=>{if(typeof o.raws.between!="undefined")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n!="undefined"))return!1}),n}rawIndent(s){if(s.raws.indent)return s.raws.indent;let n;return s.walk(o=>{let c=o.parent;if(c&&c!==s&&c.parent&&c.parent===s&&typeof o.raws.before!="undefined"){let l=o.raws.before.split(`
33
+ `);return n=l[l.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n!="undefined"))return!1}),n}rawValue(s,n){let o=s[n],c=s.raws[n];return c&&c.value===o?c.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,n){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,n)}}return Ms=r,r.default=r,Ms}var Os,Oa;function as(){if(Oa)return Os;Oa=1;let e=ic();function t(r,i){new e(i).stringify(r)}return Os=t,t.default=t,Os}var As,Aa;function ls(){if(Aa)return As;Aa=1;let{isClean:e,my:t}=Do(),r=Ao(),i=ic(),s=as();function n(c,l){let u=new c.constructor;for(let a in c){if(!Object.prototype.hasOwnProperty.call(c,a)||a==="proxyCache")continue;let d=c[a],f=typeof d;a==="parent"&&f==="object"?l&&(u[a]=l):a==="source"?u[a]=d:Array.isArray(d)?u[a]=d.map(h=>n(h,u)):(f==="object"&&d!==null&&(d=n(d)),u[a]=d)}return u}class o{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let u in l)if(u==="nodes"){this.nodes=[];for(let a of l[u])typeof a.clone=="function"?this.append(a.clone()):this.append(a)}else this[u]=l[u]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let u=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let u in l)this[u]=l[u];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 u=n(this);for(let a in l)u[a]=l[a];return u}cloneAfter(l={}){let u=this.clone(l);return this.parent.insertAfter(this,u),u}cloneBefore(l={}){let u=this.clone(l);return this.parent.insertBefore(this,u),u}error(l,u={}){if(this.source){let{end:a,start:d}=this.rangeBy(u);return this.source.input.error(l,{column:d.column,line:d.line},{column:a.column,line:a.line},u)}return new r(l)}getProxyProcessor(){return{get(l,u){return u==="proxyOf"?l:u==="root"?()=>l.root().toProxy():l[u]},set(l,u,a){return l[u]===a||(l[u]=a,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,u){let a=this.source.start;if(l.index)a=this.positionInside(l.index,u);else if(l.word){u=this.toString();let d=u.indexOf(l.word);d!==-1&&(a=this.positionInside(d,u))}return a}positionInside(l,u){let a=u||this.toString(),d=this.source.start.column,f=this.source.start.line;for(let h=0;h<l;h++)a[h]===`
34
+ `?(d=1,f+=1):d+=1;return{column:d,line:f}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let u={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(l.word){let d=this.toString(),f=d.indexOf(l.word);f!==-1&&(u=this.positionInside(f,d),a=this.positionInside(f+l.word.length,d))}else l.start?u={column:l.start.column,line:l.start.line}:l.index&&(u=this.positionInside(l.index)),l.end?a={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?a=this.positionInside(l.endIndex):l.index&&(a=this.positionInside(l.index+1));return(a.line<u.line||a.line===u.line&&a.column<=u.column)&&(a={column:u.column+1,line:u.line}),{end:a,start:u}}raw(l,u){return new i().raw(this,l,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let u=this,a=!1;for(let d of l)d===this?a=!0:a?(this.parent.insertAfter(u,d),u=d):this.parent.insertBefore(u,d);a||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,u){let a={},d=u==null;u=u||new Map;let f=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let p=this[h];if(Array.isArray(p))a[h]=p.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,u):m);else if(typeof p=="object"&&p.toJSON)a[h]=p.toJSON(null,u);else if(h==="source"){let m=u.get(p.input);m==null&&(m=f,u.set(p.input,f),f++),a[h]={end:p.end,inputId:m,start:p.start}}else a[h]=p}return d&&(a.inputs=[...u.keys()].map(h=>h.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=s){l.stringify&&(l=l.stringify);let u="";return l(this,a=>{u+=a}),u}warn(l,u,a){let d={node:this};for(let f in a)d[f]=a[f];return l.warn(u,d)}get proxyOf(){return this}}return As=o,o.default=o,As}var Ds,Da;function us(){if(Da)return Ds;Da=1;let e=ls();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=we(G({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ds=t,t.default=t,Ds}var Ts,Ta;function qd(){if(Ta)return Ts;Ta=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ts={nanoid:(i=21)=>{let s="",n=i;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",c=n;for(;c--;)o+=i[Math.random()*i.length|0];return o}},Ts}var ks,ka;function sc(){if(ka)return ks;ka=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{existsSync:r,readFileSync:i}=lt,{dirname:s,join:n}=lt;function o(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class c{constructor(u,a){if(a.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let d=a.map?a.map.prev:void 0,f=this.loadMap(a.from,d);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=s(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(u){let a=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/;if(f.test(u)||h.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(a.test(u)||d.test(u))return o(u.substr(RegExp.lastMatch.length));let p=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let a=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!a)return;let d=u.lastIndexOf(a.pop()),f=u.indexOf("*/",d);d>-1&&f>-1&&(this.annotation=this.getAnnotationURL(u.substring(d,f)))}loadFile(u){if(this.root=s(u),r(u))return this.mapFile=u,i(u,"utf-8").toString().trim()}loadMap(u,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let d=a(u);if(d){let f=this.loadFile(d);if(!f)throw new Error("Unable to load previous source map: "+d.toString());return f}}else{if(a instanceof e)return t.fromSourceMap(a).toString();if(a instanceof t)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return u&&(d=n(s(u),d)),this.loadFile(d)}}}startWith(u,a){return u?u.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ks=c,c.default=c,ks}var Ps,Pa;function cs(){if(Pa)return Ps;Pa=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{fileURLToPath:r,pathToFileURL:i}=lt,{isAbsolute:s,resolve:n}=lt,{nanoid:o}=qd(),c=lt,l=Ao(),u=sc(),a=Symbol("fromOffsetCache"),d=!!(e&&t),f=!!(n&&s);class h{constructor(m,y={}){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,y.from&&(!f||/^\w+:\/\//.test(y.from)||s(y.from)?this.file=y.from:this.file=n(y.from)),f&&d){let w=new u(this.css,y);if(w.text){this.map=w;let g=w.consumer().file;!this.file&&g&&(this.file=this.mapResolve(g))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(m,y,w,g={}){let _,S,v;if(y&&typeof y=="object"){let E=y,C=w;if(typeof E.offset=="number"){let O=this.fromOffset(E.offset);y=O.line,w=O.col}else y=E.line,w=E.column;if(typeof C.offset=="number"){let O=this.fromOffset(C.offset);S=O.line,v=O.col}else S=C.line,v=C.column}else if(!w){let E=this.fromOffset(y);y=E.line,w=E.col}let b=this.origin(y,w,S,v);return b?_=new l(m,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,g.plugin):_=new l(m,S===void 0?y:{column:w,line:y},S===void 0?w:{column:v,line:S},this.css,this.file,g.plugin),_.input={column:w,endColumn:v,endLine:S,line:y,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(m){let y,w;if(this[a])w=this[a];else{let _=this.css.split(`
35
+ `);w=new Array(_.length);let S=0;for(let v=0,b=_.length;v<b;v++)w[v]=S,S+=_[v].length+1;this[a]=w}y=w[w.length-1];let g=0;if(m>=y)g=w.length-1;else{let _=w.length-2,S;for(;g<_;)if(S=g+(_-g>>1),m<w[S])_=S-1;else if(m>=w[S+1])g=S+1;else{g=S;break}}return{col:m-w[g]+1,line:g+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:n(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,y,w,g){if(!this.map)return!1;let _=this.map.consumer(),S=_.originalPositionFor({column:y,line:m});if(!S.source)return!1;let v;typeof w=="number"&&(v=_.originalPositionFor({column:g,line:w}));let b;s(S.source)?b=i(S.source):b=new URL(S.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let E={column:S.column,endColumn:v&&v.column,endLine:v&&v.line,line:S.line,url:b.toString()};if(b.protocol==="file:")if(r)E.file=r(b);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(S.source);return C&&(E.source=C),E}toJSON(){let m={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(m[y]=this[y]);return this.map&&(m.map=G({},this.map),m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return Ps=h,h.default=h,c&&c.registerInput&&c.registerInput(h),Ps}var Is,Ia;function nc(){if(Ia)return Is;Ia=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{dirname:r,relative:i,resolve:s,sep:n}=lt,{pathToFileURL:o}=lt,c=cs(),l=!!(e&&t),u=!!(r&&s&&i&&n);class a{constructor(f,h,p,m){this.stringify=f,this.mapOpts=p.map||{},this.root=h,this.opts=p,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=`
36
36
  `;this.css.includes(`\r
37
- `)&&(d=`\r
38
- `),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),m=f.root||r(f.file),p;this.mapOpts.sourcesContent===!1?(p=new e(f.text),p.sourcesContent&&(p.sourcesContent=null)):p=f.consumer(),this.map.applySourceMap(p,d,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[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=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(w,_,E)=>{if(this.css+=w,_&&E!=="end"&&(p.generated.line=f,p.generated.column=d-1,_.source&&_.source.start?(p.source=this.sourcePath(_),p.original.line=_.source.start.line,p.original.column=_.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=w.match(/\n/g),g?(f+=g.length,v=w.lastIndexOf(`
39
- `),d=w.length-v):d+=w.length,_&&E!=="start"){let y=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==y.last||y.raws.semicolon)&&(_.source&&_.source.end?(p.source=this.sourcePath(_),p.original.line=_.source.end.line,p.original.column=_.source.end.column-1,p.generated.line=f,p.generated.column=d-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=f,p.generated.column=d-1,this.map.addMapping(p)))}})}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(d=>d.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 d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,f);return this.memoizedPaths.set(f,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});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(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,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 d=this.memoizedFileURLs.get(f);if(d)return d;if(o){let m=o(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;n==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Is=l,Is}var Ls,La;function fs(){if(La)return Ls;La=1;let e=ls();class t extends e{constructor(i){super(i),this.type="comment"}}return Ls=t,t.default=t,Ls}var Fs,Fa;function pr(){if(Fa)return Fs;Fa=1;let{isClean:e,my:t}=Do(),r=us(),i=fs(),s=ls(),n,o,u,a;function c(f){return f.map(d=>(d.nodes&&(d.nodes=c(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class h extends s{append(...d){for(let m of d){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=d(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>d[m](...p.map(g=>typeof g=="function"?(v,w)=>g(v.toProxy(),w):g)):m==="every"||m==="some"?p=>d[m]((g,...v)=>p(g.toProxy(),...v)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,p){return d[m]===p||(d[m]=p,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let p=this.index(d),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(d);for(let w of g)this.proxyOf.nodes.splice(p+1,0,w);let v;for(let w in this.indexes)v=this.indexes[w],p<v&&(this.indexes[w]=v+g.length);return this.markDirty(),this}insertBefore(d,m){let p=this.index(d),g=p===0?"prepend":!1,v=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(d);for(let _ of v)this.proxyOf.nodes.splice(p,0,_);let w;for(let _ in this.indexes)w=this.indexes[_],p<=w&&(this.indexes[_]=w+v.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=c(n(d).nodes);else if(typeof d=="undefined")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value=="undefined")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new r(d)]}else if(d.selector)d=[new o(d)];else if(d.name)d=[new u(d)];else if(d.text)d=[new i(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=d&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(d,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,p))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,p)=>{let g;try{g=d(m,p)}catch(v){throw m.addToError(v)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&d.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(d){return this.walk((m,p)=>{if(m.type==="comment")return d(m,p)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&d.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&d.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="rule")return m(p,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 h.registerParse=f=>{n=f},h.registerRule=f=>{o=f},h.registerAtRule=f=>{u=f},h.registerRoot=f=>{a=f},Fs=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,u.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(d=>{h.rebuild(d)})},Fs}var Us,Ua;function To(){if(Ua)return Us;Ua=1;let e=pr(),t,r;class i extends e{constructor(n){super(G({type:"document"},n)),this.nodes||(this.nodes=[])}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Us=i,i.default=i,Us}var Bs,Ba;function oc(){if(Ba)return Bs;Ba=1;let e={};return Bs=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Bs}var $s,$a;function ac(){if($a)return $s;$a=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}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 $s=e,e.default=e,$s}var Ws,Wa;function ko(){if(Wa)return Ws;Wa=1;let e=ac();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let n=new e(i,s);return this.messages.push(n),n}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Ws=t,t.default=t,Ws}var zs,za;function jd(){if(za)return zs;za=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,a=13,c=91,l=93,h=40,f=41,d=123,m=125,p=59,g=42,v=58,w=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return zs=function(C,O={}){let N=C.css.valueOf(),F=O.ignoreErrors,T,x,oe,L,te,U,$,ge,q,W,Ce=N.length,A=0,be=[],k=[];function j(){return A}function ee(ie){throw C.error("Unclosed "+ie,A)}function P(){return k.length===0&&A>=Ce}function fe(ie){if(k.length)return k.pop();if(A>=Ce)return;let ke=ie?ie.ignoreUnclosed:!1;switch(T=N.charCodeAt(A),T){case s:case n:case u:case a:case o:{x=A;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===u||T===a||T===o);W=["space",N.slice(A,x)],A=x-1;break}case c:case l:case d:case m:case v:case p:case f:{let pt=String.fromCharCode(T);W=[pt,pt,A];break}case h:{if(ge=be.length?be.pop()[1]:"",q=N.charCodeAt(A+1),ge==="url"&&q!==e&&q!==t&&q!==n&&q!==s&&q!==u&&q!==o&&q!==a){x=A;do{if(U=!1,x=N.indexOf(")",x+1),x===-1)if(F||ke){x=A;break}else ee("bracket");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);W=["brackets",N.slice(A,x+1),A,x],A=x}else x=N.indexOf(")",A+1),L=N.slice(A,x+1),x===-1||y.test(L)?W=["(","(",A]:(W=["brackets",L,A,x],A=x);break}case e:case t:{oe=T===e?"'":'"',x=A;do{if(U=!1,x=N.indexOf(oe,x+1),x===-1)if(F||ke){x=A+1;break}else ee("string");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);W=["string",N.slice(A,x+1),A,x],A=x;break}case w:{_.lastIndex=A+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,W=["at-word",N.slice(A,x+1),A,x],A=x;break}case r:{for(x=A,te=!0;N.charCodeAt(x+1)===r;)x+=1,te=!te;if(T=N.charCodeAt(x+1),te&&T!==i&&T!==n&&T!==s&&T!==u&&T!==a&&T!==o&&(x+=1,b.test(N.charAt(x)))){for(;b.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}W=["word",N.slice(A,x+1),A,x],A=x;break}default:{T===i&&N.charCodeAt(A+1)===g?(x=N.indexOf("*/",A+2)+1,x===0&&(F||ke?x=N.length:ee("comment")),W=["comment",N.slice(A,x+1),A,x],A=x):(E.lastIndex=A+1,E.test(N),E.lastIndex===0?x=N.length-1:x=E.lastIndex-2,W=["word",N.slice(A,x+1),A,x],be.push(W),A=x);break}}return A++,W}function ue(ie){k.push(ie)}return{back:ue,endOfFile:P,nextToken:fe,position:j}},zs}var qs,qa;function Po(){if(qa)return qs;qa=1;let e=pr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return qs=t,t.default=t,e.registerAtRule(t),qs}var js,ja;function di(){if(ja)return js;ja=1;let e=pr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,u){let a=super.normalize(n);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 c of a)c.raws.before=o.raws.before}return a}removeChild(n,o){let u=this.index(n);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(n)}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},js=i,i.default=i,e.registerRoot(i),js}var Vs,Va;function lc(){if(Va)return Vs;Va=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
40
- `," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,u=0,a=!1,c="",l=!1;for(let h of t)l?l=!1:h==="\\"?l=!0:a?h===c&&(a=!1):h==='"'||h==="'"?(a=!0,c=h):h==="("?u+=1:h===")"?u>0&&(u-=1):u===0&&r.includes(h)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=h;return(i||n!=="")&&s.push(n.trim()),s}};return Vs=e,e.default=e,Vs}var Gs,Ga;function Io(){if(Ga)return Gs;Ga=1;let e=pr(),t=lc();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}}return Gs=r,r.default=r,e.registerRule(r),Gs}var Hs,Ha;function Vd(){if(Ha)return Hs;Ha=1;let e=us(),t=jd(),r=fs(),i=Po(),s=di(),n=Io();const o={empty:!0,space:!0};function u(c){for(let l=c.length-1;l>=0;l--){let h=c[l],f=h[3]||h[2];if(f)return f}}class a{constructor(l){this.input=l,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let h=new i;h.name=l[1].slice(1),h.name===""&&this.unnamedAtrule(h,l),this.init(h,l[2]);let f,d,m,p=!1,g=!1,v=[],w=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?w.push(f==="("?")":"]"):f==="{"&&w.length>0?w.push("}"):f===w[w.length-1]&&w.pop(),w.length===0)if(f===";"){h.source.end=this.getPosition(l[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(m=v.length-1,d=v[m];d&&d[0]==="space";)d=v[--m];d&&(h.source.end=this.getPosition(d[3]||d[2]),h.source.end.offset++)}this.end(l);break}else v.push(l);else v.push(l);if(this.tokenizer.endOfFile()){p=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(h.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(h,"params",v),p&&(l=v[v.length-1],h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(l){let h=this.colon(l);if(h===!1)return;let f=0,d;for(let m=h-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let h=0,f,d,m;for(let[p,g]of l.entries()){if(f=g,d=f[0],d==="("&&(h+=1),d===")"&&(h-=1),h===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=f}return!1}comment(l){let h=new r;this.init(h,l[2]),h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=d[2],h.raws.left=d[1],h.raws.right=d[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(l,h){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||u(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let w=l[0][0];if(w===":"||w==="space"||w==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let p=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)p.push(l.shift());this.precheckMissedSemicolon(l);for(let w=l.length-1;w>=0;w--){if(m=l[w],m[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(l,w);_=this.spacesFromEnd(l)+_,_!==" !important"&&(f.raws.important=_);break}else if(m[1].toLowerCase()==="important"){let _=l.slice(0),E="";for(let y=w;y>0;y--){let b=_[y][0];if(E.trim().indexOf("!")===0&&b!=="space")break;E=_.pop()[1]+E}E.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=E,l=_)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(f.raws.between+=p.map(w=>w[1]).join(""),p=[]),this.raw(f,"value",p.concat(l),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let h=new n;this.init(h,l[2]),h.selector="",h.raws.between="",this.current=h}end(l){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(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}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(l){if(this.spaces+=l[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let h=this.input.fromOffset(l);return{column:h.col,line:h.line,offset:l}}init(l,h){this.current.push(l),l.source={input:this.input,start:this.getPosition(h)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let h=!1,f=null,d=!1,m=null,p=[],g=l[1].startsWith("--"),v=[],w=l;for(;w;){if(f=w[0],v.push(w),f==="("||f==="[")m||(m=w),p.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=w),p.push("}");else if(p.length===0)if(f===";")if(d){this.decl(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),h=!0;break}else f===":"&&(d=!0);else f===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),p.length>0&&this.unclosedBracket(m),h&&d){if(!g)for(;v.length&&(w=v[v.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,h,f,d){let m,p,g=f.length,v="",w=!0,_,E;for(let y=0;y<g;y+=1)m=f[y],p=m[0],p==="space"&&y===g-1&&!d?w=!1:p==="comment"?(E=f[y-1]?f[y-1][0]:"empty",_=f[y+1]?f[y+1][0]:"empty",!o[E]&&!o[_]?v.slice(-1)===","?w=!1:v+=m[1]:w=!1):v+=m[1];if(!w){let y=f.reduce((b,S)=>b+S[1],"");l.raws[h]={raw:y,value:v}}l[h]=v}rule(l){l.pop();let h=new n;this.init(h,l[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(h,"selector",l),this.current=h}spacesAndCommentsFromEnd(l){let h,f="";for(;l.length&&(h=l[l.length-1][0],!(h!=="space"&&h!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let h,f="";for(;l.length&&(h=l[0][0],!(h!=="space"&&h!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let h,f="";for(;l.length&&(h=l[l.length-1][0],h==="space");)f=l.pop()[1]+f;return f}stringFrom(l,h){let f="";for(let d=h;d<l.length;d++)f+=l[d][1];return l.splice(h,l.length-h),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return Hs=a,Hs}var Ys,Ya;function Lo(){if(Ya)return Ys;Ya=1;let e=pr(),t=Vd(),r=cs();function i(s,n){let o=new r(s,n),u=new t(o);try{u.parse()}catch(a){throw a}return u.root}return Ys=i,i.default=i,e.registerParse(i),Ys}var Js,Ja;function uc(){if(Ja)return Js;Ja=1;let{isClean:e,my:t}=Do(),r=nc(),i=as(),s=pr(),n=To(),o=oc(),u=ko(),a=Lo(),c=di();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},d=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function p(E){let y=!1,b=l[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,d,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,d,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",d,"DocumentExit"]:E.type==="root"?y=["Root",d,"RootExit"]:y=p(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function v(E){return E[e]=!1,E.nodes&&E.nodes.forEach(y=>v(y)),E}let w={};class _{constructor(y,b,S){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=v(b);else if(b instanceof _||b instanceof u)C=v(b.root),b.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=b.map);else{let O=a;S.syntax&&(O=S.syntax.parse),S.parser&&(O=S.parser),O.parse&&(O=O.parse);try{C=O(b,S)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new u(y,C,S),this.helpers=we(G({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?G(G({},O),O.prepare(this.result)):O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let S=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let S in b){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof b[S]=="object")for(let C in b[S])C==="*"?y(b,S,b[S][C]):y(b,S+"-"+C.toLowerCase(),b[S][C]);else typeof b[S]=="function"&&y(b,S,b[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],S=this.runOnRoot(b);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let b=[g(y)];for(;b.length>0;){let S=this.visitTick(b);if(m(S))try{await S}catch(C){let O=b[b.length-1].node;throw this.handleError(C,O)}}}if(this.listeners.OnceExit)for(let[b,S]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(O=>S(O,this.helpers));await Promise.all(C)}else await S(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return m(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(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 y=this.result.opts,b=i;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 y of this.plugins){let b=this.runOnRoot(y);if(m(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[S,C]of y){this.result.lastPlugin=S;let O;try{O=C(b,this.helpers)}catch(N){throw this.handleError(N,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(m(O))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:S,visitors:C}=b;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[N,F]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=N;try{return F(S.toProxy(),this.helpers)}catch(T){throw this.handleError(T,S)}}if(b.iterator!==0){let N=b.iterator,F;for(;F=S.nodes[S.indexes[N]];)if(S.indexes[N]+=1,!F[e]){F[e]=!0,y.push(g(F));return}b.iterator=0,delete S.indexes[N]}let O=b.events;for(;b.eventIndex<O.length;){let N=O[b.eventIndex];if(b.eventIndex+=1,N===d){S.nodes&&S.nodes.length&&(S[e]=!0,b.iterator=S.getIterator());return}else if(this.listeners[N]){b.visitors=this.listeners[N];return}}y.pop()}walkSync(y){y[e]=!0;let b=p(y);for(let S of b)if(S===d)y.nodes&&y.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,y.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 _.registerPostcss=E=>{w=E},Js=_,_.default=_,c.registerLazyResult(_),n.registerLazyResult(_),Js}var Xs,Xa;function Gd(){if(Xa)return Xs;Xa=1;let e=nc(),t=as(),r=oc(),i=Lo();const s=ko();class n{constructor(u,a,c){a=a.toString(),this.stringified=!1,this._processor=u,this._css=a,this._opts=c,this._map=void 0;let l,h=t;this.result=new s(this._processor,l,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(h,l,this._opts,a);if(d.isMap()){let[m,p]=d.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else d.clearAnnotation(),this.result.css=d.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,a){return this.async().then(u,a)}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,a=i;try{u=a(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return Xs=n,n.default=n,Xs}var Ks,Ka;function Hd(){if(Ka)return Ks;Ka=1;let e=Gd(),t=uc(),r=To(),i=di();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let a of o)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))u=u.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)u.push(a);else if(typeof a=="function")u.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Ks=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),Ks}var Qs,Qa;function Yd(){if(Qa)return Qs;Qa=1;let e=us(),t=sc(),r=fs(),i=Po(),s=cs(),n=di(),o=Io();function u(a,c){if(Array.isArray(a))return a.map(m=>u(m));let f=a,{inputs:l}=f,h=jr(f,["inputs"]);if(l){c=[];for(let m of l){let p=we(G({},m),{__proto__:s.prototype});p.map&&(p.map=we(G({},p.map),{__proto__:t.prototype})),c.push(p)}}if(h.nodes&&(h.nodes=a.nodes.map(m=>u(m,c))),h.source){let d=h.source,{inputId:m}=d,p=jr(d,["inputId"]);h.source=p,m!=null&&(h.source.input=c[m])}if(h.type==="root")return new n(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new o(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+a.type)}return Qs=u,u.default=u,Qs}var Zs,Za;function Jd(){if(Za)return Zs;Za=1;let e=Ao(),t=us(),r=uc(),i=pr(),s=Hd(),n=as(),o=Yd(),u=To(),a=ac(),c=fs(),l=Po(),h=ko(),f=cs(),d=Lo(),m=lc(),p=Io(),g=di(),v=ls();function w(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return w.plugin=function(E,y){let b=!1;function S(...O){console&&console.warn&&!b&&(b=!0,console.warn(E+`: 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(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
42
- https://www.w3ctech.com/topic/2226`));let N=y(...O);return N.postcssPlugin=E,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(O,N,F){return w([S(F)]).process(O,N)},S},w.stringify=n,w.parse=d,w.fromJSON=o,w.list=m,w.comment=_=>new c(_),w.atRule=_=>new l(_),w.decl=_=>new t(_),w.rule=_=>new p(_),w.root=_=>new g(_),w.document=_=>new u(_),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=s,w.Document=u,w.Comment=c,w.Warning=a,w.AtRule=l,w.Result=h,w.Input=f,w.Rule=p,w.Root=g,w.Node=v,r.registerPostcss(w),Zs=w,w.default=w,Zs}var Xd=Jd();const de=Ud(Xd);de.stringify;de.fromJSON;de.plugin;de.parse;de.list;de.document;de.comment;de.atRule;de.rule;de.decl;de.root;de.CssSyntaxError;de.Declaration;de.Container;de.Processor;de.Document;de.Comment;de.Warning;de.AtRule;de.Result;de.Input;de.Rule;de.Root;de.Node;const Kd=["webview"],el={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 Qd(e){let t=el[e.tagName]?el[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function hs(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let i=e;try{i=de([Ld,Fd]).process(e).css}catch(s){console.warn("Failed to adapt css for replay",s)}return t==null||t.stylesWithHoverClass.set(e,i),i}function tl(){return{stylesWithHoverClass:new Map}}function Zd(e,t,r,i){const s=[];for(const o of e.childNodes)o.type===z.Text&&s.push(o);const n=t.split("/* rr_split */");for(;n.length>1&&n.length>s.length;)n.splice(-2,2,n.slice(-2).join(""));for(let o=0;o<s.length;o++){const u=s[o],a=n[o];u&&a&&(u.textContent=r?hs(a,i):a)}}function ep(e,t,r,i){const{doc:s,hackCss:n,cache:o}=i;e.childNodes.length?Zd(e,r,n,o):(n&&(r=hs(r,o)),t.appendChild(s.createTextNode(r)))}function tp(e,t){var r;const{doc:i,hackCss:s,cache:n}=t;switch(e.type){case z.Document:return i.implementation.createDocument(null,"",null);case z.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case z.Element:{const o=Qd(e);let u;e.isSVG?u=i.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=i.defaultView)!=null&&r.customElements)&&!i.defaultView.customElements.get(e.tagName)&&!Kd.includes(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),u=i.createElement(o));const a={};for(const c in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,c))continue;let l=e.attributes[c];if(!(o==="option"&&c==="selected"&&l===!1)&&l!==null){if(l===!0&&(l=""),c.startsWith("rr_")){a[c]=l;continue}if(typeof l=="string"){if(o==="style"&&c==="_cssText"){ep(e,u,l,t);continue}else if(o==="textarea"&&c==="value"){u.appendChild(i.createTextNode(l)),e.childNodes=[];continue}}try{if(e.isSVG&&c==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",c,l.toString());else if(c==="onload"||c==="onclick"||c.substring(0,7)==="onmouse")u.setAttribute("_"+c,l.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&c==="content"){u.setAttribute("csp-content",l.toString());continue}else o==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(c,l.toString()))}catch(h){}}}for(const c in a){const l=a[c];if(o==="canvas"&&c==="rr_dataURL"){const h=i.createElement("img");h.onload=()=>{const f=u.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=l.toString(),u.RRNodeType&&(u.rr_dataURL=l.toString())}else if(o==="img"&&c==="rr_dataURL"){const h=u;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",e.attributes.src),h.src=l.toString())}if(c==="rr_width")u.style.setProperty("width",l.toString());else if(c==="rr_height")u.style.setProperty("height",l.toString());else if(c==="rr_background_color")u.style.setProperty("background-color",l.toString());else if(c==="rr_mediaCurrentTime"&&typeof l=="number")u.currentTime=l;else if(c==="rr_mediaState")switch(l){case"played":u.play().catch(h=>console.warn("media playback error",h));break;case"paused":u.pause();break}else c==="rr_mediaPlaybackRate"&&typeof l=="number"?u.playbackRate=l:c==="rr_mediaMuted"&&typeof l=="boolean"?u.muted=l:c==="rr_mediaLoop"&&typeof l=="boolean"?u.loop=l:c==="rr_mediaVolume"&&typeof l=="number"?u.volume=l:c==="rr_open_mode"&&u.setAttribute("rr_open_mode",l)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case z.Text:return e.isStyle&&s?i.createTextNode(hs(e.textContent,n)):i.createTextNode(e.textContent);case z.CDATA:return i.createCDATASection(e.textContent);case z.Comment:return i.createComment(e.textContent);default:return null}}function ii(e,t){const{doc:r,mirror:i,skipChild:s=!1,hackCss:n=!0,afterAppend:o,cache:u}=t;if(i.has(e.id)){const c=i.getNode(e.id),l=i.getMeta(c);if(nd(l,e))return i.getNode(e.id)}let a=tp(e,{doc:r,hackCss:n,cache:u});if(!a)return null;if(e.rootId&&i.getNode(e.rootId)!==r&&i.replace(e.rootId,r),e.type===z.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==z.DocumentType&&(e.childNodes[0].type===z.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" "">')),a=r),i.add(a,e),(e.type===z.Document||e.type===z.Element)&&!s)for(const c of e.childNodes){const l=ii(c,{doc:r,mirror:i,skipChild:!1,hackCss:n,afterAppend:o,cache:u});if(!l){console.warn("Failed to rebuild",c);continue}if(c.isShadow&&No(a)&&a.shadowRoot)a.shadowRoot.appendChild(l);else if(e.type===z.Document&&c.type==z.Element){const h=l;let f=null;h.childNodes.forEach(d=>{d.nodeName==="BODY"&&(f=d)}),f?(h.removeChild(f),a.appendChild(l),h.appendChild(f)):a.appendChild(l)}else a.appendChild(l);o&&o(l,c.id)}return a}function rp(e,t){function r(i){t(i)}for(const i of e.getIds())e.has(i)&&r(e.getNode(i))}function ip(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==z.Element)return;const i=e;for(const s in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,s)&&s.startsWith("rr_")))continue;const n=r.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=n),s==="rr_scrollTop"&&(i.scrollTop=n)}}function sp(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:n,cache:o,mirror:u=new Mo}=t,a=ii(e,{doc:r,mirror:u,skipChild:!1,hackCss:s,afterAppend:n,cache:o});return rp(u,c=>{i&&i(c),ip(c,u)}),a}var np=Object.defineProperty,op=(e,t,r)=>t in e?np(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t,r)=>op(e,typeof t!="symbol"?t+"":t,r),ap=Object.defineProperty,lp=(e,t,r)=>t in e?ap(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rl=(e,t,r)=>lp(e,typeof t!="symbol"?t+"":t,r);let up=class{constructor(){rl(this,"idNodeMap",new Map),rl(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function cp(){return new up}function fp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hp(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var Ci={exports:{}},il;function dp(){if(il)return Ci.exports;il=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}};return Ci.exports=t(),Ci.exports.createColors=t,Ci.exports}const pp={},mp=Object.freeze(Object.defineProperty({__proto__:null,default:pp},Symbol.toStringTag,{value:"Module"})),ut=hp(mp);var en,sl;function Fo(){if(sl)return en;sl=1;let e=dp(),t=ut;class r extends Error{constructor(s,n,o,u,a,c){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),u&&(this.source=u),c&&(this.plugin=c),typeof n!="undefined"&&typeof o!="undefined"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.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(s){if(!this.source)return"";let n=this.source;s==null&&(s=e.isColorSupported),t&&s&&(n=t(n));let o=n.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length,l,h;if(s){let{bold:f,gray:d,red:m}=e.createColors(!0);l=p=>f(m(p)),h=p=>d(p)}else l=h=f=>f;return o.slice(u,a).map((f,d)=>{let m=u+1+d,p=" "+(" "+m).slice(-c)+" | ";if(m===this.line){let g=h(p.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+h(p)+f+`
43
- `+g+l("^")}return" "+h(p)+f}).join(`
37
+ `)&&(h=`\r
38
+ `),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=this.toUrl(this.path(f.file)),p=f.root||r(f.file),m;this.mapOpts.sourcesContent===!1?(m=new e(f.text),m.sourcesContent&&(m.sourcesContent=null)):m=f.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}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.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&l&&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=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,w;this.stringify(this.root,(g,_,S)=>{if(this.css+=g,_&&S!=="end"&&(m.generated.line=f,m.generated.column=h-1,_.source&&_.source.start?(m.source=this.sourcePath(_),m.original.line=_.source.start.line,m.original.column=_.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),y=g.match(/\n/g),y?(f+=y.length,w=g.lastIndexOf(`
39
+ `),h=g.length-w):h+=g.length,_&&S!=="start"){let v=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==v.last||v.raws.semicolon)&&(_.source&&_.source.end?(m.source=this.sourcePath(_),m.original.line=_.source.end.line,m.original.column=_.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,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 p=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=r(s(p,this.mapOpts.annotation)));let m=i(p,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 p=h.source.input.from;if(p&&!f[p]){f[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));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 p=o(f).toString();return this.memoizedFileURLs.set(f,p),p}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 p=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,p),p}}return Is=a,Is}var Ls,La;function fs(){if(La)return Ls;La=1;let e=ls();class t extends e{constructor(i){super(i),this.type="comment"}}return Ls=t,t.default=t,Ls}var Fs,Fa;function pr(){if(Fa)return Fs;Fa=1;let{isClean:e,my:t}=Do(),r=us(),i=fs(),s=ls(),n,o,c,l;function u(f){return f.map(h=>(h.nodes&&(h.nodes=u(h.nodes)),delete h.source,h))}function a(f){if(f[e]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)a(h)}class d extends s{append(...h){for(let p of h){let m=this.normalize(p,this.last);for(let y of m)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,y;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],y=h(this.proxyOf.nodes[m],m),y!==!1);)this.indexes[p]+=1;return delete this.indexes[p],y}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,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(y=>typeof y=="function"?(w,g)=>y(w.toProxy(),g):y)):p==="every"||p==="some"?m=>h[p]((y,...w)=>m(y.toProxy(),...w)):p==="root"?()=>h.root().toProxy():p==="nodes"?h.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?h[p].toProxy():h[p]:h[p]},set(h,p,m){return h[p]===m||(h[p]=m,(p==="name"||p==="params"||p==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,p){let m=this.index(h),y=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let g of y)this.proxyOf.nodes.splice(m+1,0,g);let w;for(let g in this.indexes)w=this.indexes[g],m<w&&(this.indexes[g]=w+y.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),y=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],y).reverse();m=this.index(h);for(let _ of w)this.proxyOf.nodes.splice(m,0,_);let g;for(let _ in this.indexes)g=this.indexes[_],m<=g&&(this.indexes[_]=g+w.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=u(n(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let y of h)y.parent&&y.parent.removeChild(y,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let y of h)y.parent&&y.parent.removeChild(y,"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 r(h)]}else if(h.selector)h=[new o(h)];else if(h.name)h=[new c(h)];else if(h.text)h=[new i(h)];else throw new Error("Unknown node type in node creation");return h.map(y=>(y[t]||d.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&a(y),typeof y.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(y.raws.before=p.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let y of m)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+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 p;for(let m in this.indexes)p=this.indexes[m],p>=h&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(h,p,m){return m||(m=p,p={}),this.walkDecls(y=>{p.props&&!p.props.includes(y.prop)||p.fast&&!y.value.includes(p.fast)||(y.value=y.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let y;try{y=h(p,m)}catch(w){throw p.addToError(w)}return y!==!1&&p.walk&&(y=p.walk(h)),y})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,y)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,y)}):this.walk((m,y)=>{if(m.type==="atrule"&&m.name===h)return p(m,y)}):(p=h,this.walk((m,y)=>{if(m.type==="atrule")return p(m,y)}))}walkComments(h){return this.walk((p,m)=>{if(p.type==="comment")return h(p,m)})}walkDecls(h,p){return p?h instanceof RegExp?this.walk((m,y)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,y)}):this.walk((m,y)=>{if(m.type==="decl"&&m.prop===h)return p(m,y)}):(p=h,this.walk((m,y)=>{if(m.type==="decl")return p(m,y)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,y)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,y)}):this.walk((m,y)=>{if(m.type==="rule"&&m.selector===h)return p(m,y)}):(p=h,this.walk((m,y)=>{if(m.type==="rule")return p(m,y)}))}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 d.registerParse=f=>{n=f},d.registerRule=f=>{o=f},d.registerAtRule=f=>{c=f},d.registerRoot=f=>{l=f},Fs=d,d.default=d,d.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,c.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,l.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(h=>{d.rebuild(h)})},Fs}var Us,Ua;function To(){if(Ua)return Us;Ua=1;let e=pr(),t,r;class i extends e{constructor(n){super(G({type:"document"},n)),this.nodes||(this.nodes=[])}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Us=i,i.default=i,Us}var Bs,Ba;function oc(){if(Ba)return Bs;Ba=1;let e={};return Bs=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Bs}var $s,$a;function ac(){if($a)return $s;$a=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}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 $s=e,e.default=e,$s}var Ws,Wa;function ko(){if(Wa)return Ws;Wa=1;let e=ac();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let n=new e(i,s);return this.messages.push(n),n}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Ws=t,t.default=t,Ws}var zs,za;function jd(){if(za)return zs;za=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,c=9,l=13,u=91,a=93,d=40,f=41,h=123,p=125,m=59,y=42,w=58,g=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return zs=function(C,O={}){let N=C.css.valueOf(),F=O.ignoreErrors,T,x,ae,L,te,U,$,ge,q,z,Ce=N.length,A=0,be=[],k=[];function j(){return A}function ee(se){throw C.error("Unclosed "+se,A)}function I(){return k.length===0&&A>=Ce}function fe(se){if(k.length)return k.pop();if(A>=Ce)return;let ke=se?se.ignoreUnclosed:!1;switch(T=N.charCodeAt(A),T){case s:case n:case c:case l:case o:{x=A;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===c||T===l||T===o);z=["space",N.slice(A,x)],A=x-1;break}case u:case a:case h:case p:case w:case m:case f:{let pt=String.fromCharCode(T);z=[pt,pt,A];break}case d:{if(ge=be.length?be.pop()[1]:"",q=N.charCodeAt(A+1),ge==="url"&&q!==e&&q!==t&&q!==n&&q!==s&&q!==c&&q!==o&&q!==l){x=A;do{if(U=!1,x=N.indexOf(")",x+1),x===-1)if(F||ke){x=A;break}else ee("bracket");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);z=["brackets",N.slice(A,x+1),A,x],A=x}else x=N.indexOf(")",A+1),L=N.slice(A,x+1),x===-1||v.test(L)?z=["(","(",A]:(z=["brackets",L,A,x],A=x);break}case e:case t:{ae=T===e?"'":'"',x=A;do{if(U=!1,x=N.indexOf(ae,x+1),x===-1)if(F||ke){x=A+1;break}else ee("string");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);z=["string",N.slice(A,x+1),A,x],A=x;break}case g:{_.lastIndex=A+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,z=["at-word",N.slice(A,x+1),A,x],A=x;break}case r:{for(x=A,te=!0;N.charCodeAt(x+1)===r;)x+=1,te=!te;if(T=N.charCodeAt(x+1),te&&T!==i&&T!==n&&T!==s&&T!==c&&T!==l&&T!==o&&(x+=1,b.test(N.charAt(x)))){for(;b.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}z=["word",N.slice(A,x+1),A,x],A=x;break}default:{T===i&&N.charCodeAt(A+1)===y?(x=N.indexOf("*/",A+2)+1,x===0&&(F||ke?x=N.length:ee("comment")),z=["comment",N.slice(A,x+1),A,x],A=x):(S.lastIndex=A+1,S.test(N),S.lastIndex===0?x=N.length-1:x=S.lastIndex-2,z=["word",N.slice(A,x+1),A,x],be.push(z),A=x);break}}return A++,z}function ue(se){k.push(se)}return{back:ue,endOfFile:I,nextToken:fe,position:j}},zs}var qs,qa;function Po(){if(qa)return qs;qa=1;let e=pr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return qs=t,t.default=t,e.registerAtRule(t),qs}var js,ja;function di(){if(ja)return js;ja=1;let e=pr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,c){let l=super.normalize(n);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 u of l)u.raws.before=o.raws.before}return l}removeChild(n,o){let c=this.index(n);return!o&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(n)}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},js=i,i.default=i,e.registerRoot(i),js}var Vs,Va;function lc(){if(Va)return Vs;Va=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
40
+ `," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,c=0,l=!1,u="",a=!1;for(let d of t)a?a=!1:d==="\\"?a=!0:l?d===u&&(l=!1):d==='"'||d==="'"?(l=!0,u=d):d==="("?c+=1:d===")"?c>0&&(c-=1):c===0&&r.includes(d)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=d;return(i||n!=="")&&s.push(n.trim()),s}};return Vs=e,e.default=e,Vs}var Gs,Ga;function Io(){if(Ga)return Gs;Ga=1;let e=pr(),t=lc();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}}return Gs=r,r.default=r,e.registerRule(r),Gs}var Hs,Ha;function Vd(){if(Ha)return Hs;Ha=1;let e=us(),t=jd(),r=fs(),i=Po(),s=di(),n=Io();const o={empty:!0,space:!0};function c(u){for(let a=u.length-1;a>=0;a--){let d=u[a],f=d[3]||d[2];if(f)return f}}class l{constructor(a){this.input=a,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let d=new i;d.name=a[1].slice(1),d.name===""&&this.unnamedAtrule(d,a),this.init(d,a[2]);let f,h,p,m=!1,y=!1,w=[],g=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),f=a[0],f==="("||f==="["?g.push(f==="("?")":"]"):f==="{"&&g.length>0?g.push("}"):f===g[g.length-1]&&g.pop(),g.length===0)if(f===";"){d.source.end=this.getPosition(a[2]),d.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){y=!0;break}else if(f==="}"){if(w.length>0){for(p=w.length-1,h=w[p];h&&h[0]==="space";)h=w[--p];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(d.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(d,"params",w),m&&(a=w[w.length-1],d.source.end=this.getPosition(a[3]||a[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),y&&(d.nodes=[],this.current=d)}checkMissedSemicolon(a){let d=this.colon(a);if(d===!1)return;let f=0,h;for(let p=d-1;p>=0&&(h=a[p],!(h[0]!=="space"&&(f+=1,f===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let d=0,f,h,p;for(let[m,y]of a.entries()){if(f=y,h=f[0],h==="("&&(d+=1),h===")"&&(d-=1),d===0&&h===":")if(!p)this.doubleColon(f);else{if(p[0]==="word"&&p[1]==="progid")continue;return m}p=f}return!1}comment(a){let d=new r;this.init(d,a[2]),d.source.end=this.getPosition(a[3]||a[2]),d.source.end.offset++;let f=a[1].slice(2,-2);if(/^\s*$/.test(f))d.text="",d.raws.left=f,d.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);d.text=h[2],d.raws.left=h[1],d.raws.right=h[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(a,d){let f=new e;this.init(f,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),f.source.end=this.getPosition(h[3]||h[2]||c(a)),f.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),f.raws.before+=a.shift()[1];for(f.source.start=this.getPosition(a[0][2]),f.prop="";a.length;){let g=a[0][0];if(g===":"||g==="space"||g==="comment")break;f.prop+=a.shift()[1]}f.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){f.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),f.raws.between+=p[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],y;for(;a.length&&(y=a[0][0],!(y!=="space"&&y!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let g=a.length-1;g>=0;g--){if(p=a[g],p[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(a,g);_=this.spacesFromEnd(a)+_,_!==" !important"&&(f.raws.important=_);break}else if(p[1].toLowerCase()==="important"){let _=a.slice(0),S="";for(let v=g;v>0;v--){let b=_[v][0];if(S.trim().indexOf("!")===0&&b!=="space")break;S=_.pop()[1]+S}S.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=S,a=_)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(g=>g[0]!=="space"&&g[0]!=="comment")&&(f.raws.between+=m.map(g=>g[1]).join(""),m=[]),this.raw(f,"value",m.concat(a),d),f.value.includes(":")&&!d&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let d=new n;this.init(d,a[2]),d.selector="",d.raws.between="",this.current=d}end(a){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(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}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(a){if(this.spaces+=a[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(a){let d=this.input.fromOffset(a);return{column:d.col,line:d.line,offset:a}}init(a,d){this.current.push(a),a.source={input:this.input,start:this.getPosition(d)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let d=!1,f=null,h=!1,p=null,m=[],y=a[1].startsWith("--"),w=[],g=a;for(;g;){if(f=g[0],w.push(g),f==="("||f==="[")p||(p=g),m.push(f==="("?")":"]");else if(y&&h&&f==="{")p||(p=g),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(w,y);return}else break;else if(f==="{"){this.rule(w);return}else if(f==="}"){this.tokenizer.back(w.pop()),d=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));g=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),m.length>0&&this.unclosedBracket(p),d&&h){if(!y)for(;w.length&&(g=w[w.length-1][0],!(g!=="space"&&g!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,y)}else this.unknownWord(w)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,d,f,h){let p,m,y=f.length,w="",g=!0,_,S;for(let v=0;v<y;v+=1)p=f[v],m=p[0],m==="space"&&v===y-1&&!h?g=!1:m==="comment"?(S=f[v-1]?f[v-1][0]:"empty",_=f[v+1]?f[v+1][0]:"empty",!o[S]&&!o[_]?w.slice(-1)===","?g=!1:w+=p[1]:g=!1):w+=p[1];if(!g){let v=f.reduce((b,E)=>b+E[1],"");a.raws[d]={raw:v,value:w}}a[d]=w}rule(a){a.pop();let d=new n;this.init(d,a[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(d,"selector",a),this.current=d}spacesAndCommentsFromEnd(a){let d,f="";for(;a.length&&(d=a[a.length-1][0],!(d!=="space"&&d!=="comment"));)f=a.pop()[1]+f;return f}spacesAndCommentsFromStart(a){let d,f="";for(;a.length&&(d=a[0][0],!(d!=="space"&&d!=="comment"));)f+=a.shift()[1];return f}spacesFromEnd(a){let d,f="";for(;a.length&&(d=a[a.length-1][0],d==="space");)f=a.pop()[1]+f;return f}stringFrom(a,d){let f="";for(let h=d;h<a.length;h++)f+=a[h][1];return a.splice(d,a.length-d),f}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word",{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return Hs=l,Hs}var Ys,Ya;function Lo(){if(Ya)return Ys;Ya=1;let e=pr(),t=Vd(),r=cs();function i(s,n){let o=new r(s,n),c=new t(o);try{c.parse()}catch(l){throw l}return c.root}return Ys=i,i.default=i,e.registerParse(i),Ys}var Js,Ja;function uc(){if(Ja)return Js;Ja=1;let{isClean:e,my:t}=Do(),r=nc(),i=as(),s=pr(),n=To(),o=oc(),c=ko(),l=Lo(),u=di();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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 p(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let v=!1,b=a[S.type];return S.type==="decl"?v=S.prop.toLowerCase():S.type==="atrule"&&(v=S.name.toLowerCase()),v&&S.append?[b,b+"-"+v,h,b+"Exit",b+"Exit-"+v]:v?[b,b+"-"+v,b+"Exit",b+"Exit-"+v]:S.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function y(S){let v;return S.type==="document"?v=["Document",h,"DocumentExit"]:S.type==="root"?v=["Root",h,"RootExit"]:v=m(S),{eventIndex:0,events:v,iterator:0,node:S,visitorIndex:0,visitors:[]}}function w(S){return S[e]=!1,S.nodes&&S.nodes.forEach(v=>w(v)),S}let g={};class _{constructor(v,b,E){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=w(b);else if(b instanceof _||b instanceof c)C=w(b.root),b.map&&(typeof E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=b.map);else{let O=l;E.syntax&&(O=E.syntax.parse),E.parser&&(O=E.parser),O.parse&&(O=O.parse);try{C=O(b,E)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new c(v,C,E),this.helpers=we(G({},g),{postcss:g,result:this.result}),this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?G(G({},O),O.prepare(this.result)):O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,b){let E=this.result.lastPlugin;try{b&&b.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(b,E,C)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let E in b){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[E])if(typeof b[E]=="object")for(let C in b[E])C==="*"?v(b,E,b[E][C]):v(b,E+"-"+C.toLowerCase(),b[E][C]);else typeof b[E]=="function"&&v(b,E,b[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let b=this.plugins[v],E=this.runOnRoot(b);if(p(E))try{await E}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let b=[y(v)];for(;b.length>0;){let E=this.visitTick(b);if(p(E))try{await E}catch(C){let O=b[b.length-1].node;throw this.handleError(C,O)}}}if(this.listeners.OnceExit)for(let[b,E]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(v.type==="document"){let C=v.nodes.map(O=>E(O,this.helpers));await Promise.all(C)}else await E(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return p(b[0])?Promise.all(b):b}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(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 v=this.result.opts,b=i;v.syntax&&(b=v.syntax.stringify),v.stringifier&&(b=v.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 v of this.plugins){let b=this.runOnRoot(v);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let b of v.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,b){return this.async().then(v,b)}toString(){return this.css}visitSync(v,b){for(let[E,C]of v){this.result.lastPlugin=E;let O;try{O=C(b,this.helpers)}catch(N){throw this.handleError(N,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(O))throw this.getAsyncError()}}visitTick(v){let b=v[v.length-1],{node:E,visitors:C}=b;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[N,F]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=N;try{return F(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(b.iterator!==0){let N=b.iterator,F;for(;F=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!F[e]){F[e]=!0,v.push(y(F));return}b.iterator=0,delete E.indexes[N]}let O=b.events;for(;b.eventIndex<O.length;){let N=O[b.eventIndex];if(b.eventIndex+=1,N===h){E.nodes&&E.nodes.length&&(E[e]=!0,b.iterator=E.getIterator());return}else if(this.listeners[N]){b.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let b=m(v);for(let E of b)if(E===h)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[E];if(C&&this.visitSync(C,v.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 _.registerPostcss=S=>{g=S},Js=_,_.default=_,u.registerLazyResult(_),n.registerLazyResult(_),Js}var Xs,Xa;function Gd(){if(Xa)return Xs;Xa=1;let e=nc(),t=as(),r=oc(),i=Lo();const s=ko();class n{constructor(c,l,u){l=l.toString(),this.stringified=!1,this._processor=c,this._css=l,this._opts=u,this._map=void 0;let a,d=t;this.result=new s(this._processor,a,this._opts),this.result.css=l;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(d,a,this._opts,l);if(h.isMap()){let[p,m]=h.generate();p&&(this.result.css=p),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,l){return this.async().then(c,l)}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 c,l=i;try{c=l(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return Xs=n,n.default=n,Xs}var Ks,Ka;function Hd(){if(Ka)return Ks;Ka=1;let e=Gd(),t=uc(),r=To(),i=di();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let c=[];for(let l of o)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))c=c.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)c.push(l);else if(typeof l=="function")c.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return c}process(o,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new e(this,o,c):new t(this,o,c)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return Ks=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),Ks}var Qs,Qa;function Yd(){if(Qa)return Qs;Qa=1;let e=us(),t=sc(),r=fs(),i=Po(),s=cs(),n=di(),o=Io();function c(l,u){if(Array.isArray(l))return l.map(p=>c(p));let f=l,{inputs:a}=f,d=jr(f,["inputs"]);if(a){u=[];for(let p of a){let m=we(G({},p),{__proto__:s.prototype});m.map&&(m.map=we(G({},m.map),{__proto__:t.prototype})),u.push(m)}}if(d.nodes&&(d.nodes=l.nodes.map(p=>c(p,u))),d.source){let h=d.source,{inputId:p}=h,m=jr(h,["inputId"]);d.source=m,p!=null&&(d.source.input=u[p])}if(d.type==="root")return new n(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return Qs=c,c.default=c,Qs}var Zs,Za;function Jd(){if(Za)return Zs;Za=1;let e=Ao(),t=us(),r=uc(),i=pr(),s=Hd(),n=as(),o=Yd(),c=To(),l=ac(),u=fs(),a=Po(),d=ko(),f=cs(),h=Lo(),p=lc(),m=Io(),y=di(),w=ls();function g(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return g.plugin=function(S,v){let b=!1;function E(...O){console&&console.warn&&!b&&(b=!0,console.warn(S+`: 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(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
42
+ https://www.w3ctech.com/topic/2226`));let N=v(...O);return N.postcssPlugin=S,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(E,"postcss",{get(){return C||(C=E()),C}}),E.process=function(O,N,F){return g([E(F)]).process(O,N)},E},g.stringify=n,g.parse=h,g.fromJSON=o,g.list=p,g.comment=_=>new u(_),g.atRule=_=>new a(_),g.decl=_=>new t(_),g.rule=_=>new m(_),g.root=_=>new y(_),g.document=_=>new c(_),g.CssSyntaxError=e,g.Declaration=t,g.Container=i,g.Processor=s,g.Document=c,g.Comment=u,g.Warning=l,g.AtRule=a,g.Result=d,g.Input=f,g.Rule=m,g.Root=y,g.Node=w,r.registerPostcss(g),Zs=g,g.default=g,Zs}var Xd=Jd();const de=Ud(Xd);de.stringify;de.fromJSON;de.plugin;de.parse;de.list;de.document;de.comment;de.atRule;de.rule;de.decl;de.root;de.CssSyntaxError;de.Declaration;de.Container;de.Processor;de.Document;de.Comment;de.Warning;de.AtRule;de.Result;de.Input;de.Rule;de.Root;de.Node;const Kd=["webview"],el={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 Qd(e){let t=el[e.tagName]?el[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function hs(e,t){const r=t==null?void 0:t.stylesWithHoverClass.get(e);if(r)return r;let i=e;try{i=de([Ld,Fd]).process(e).css}catch(s){console.warn("Failed to adapt css for replay",s)}return t==null||t.stylesWithHoverClass.set(e,i),i}function tl(){return{stylesWithHoverClass:new Map}}function Zd(e,t,r,i){const s=[];for(const o of e.childNodes)o.type===W.Text&&s.push(o);const n=t.split("/* rr_split */");for(;n.length>1&&n.length>s.length;)n.splice(-2,2,n.slice(-2).join(""));for(let o=0;o<s.length;o++){const c=s[o],l=n[o];c&&l&&(c.textContent=r?hs(l,i):l)}}function ep(e,t,r,i){const{doc:s,hackCss:n,cache:o}=i;e.childNodes.length?Zd(e,r,n,o):(n&&(r=hs(r,o)),t.appendChild(s.createTextNode(r)))}function tp(e,t){var r;const{doc:i,hackCss:s,cache:n}=t;switch(e.type){case W.Document:return i.implementation.createDocument(null,"",null);case W.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case W.Element:{const o=Qd(e);let c;e.isSVG?c=i.createElementNS("http://www.w3.org/2000/svg",o):(e.isCustom&&((r=i.defaultView)!=null&&r.customElements)&&!i.defaultView.customElements.get(e.tagName)&&!Kd.includes(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),c=i.createElement(o));const l={};for(const u in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,u))continue;let a=e.attributes[u];if(!(o==="option"&&u==="selected"&&a===!1)&&a!==null){if(a===!0&&(a=""),u.startsWith("rr_")){l[u]=a;continue}if(typeof a=="string"){if(o==="style"&&u==="_cssText"){ep(e,c,a,t);continue}else if(o==="textarea"&&u==="value"){c.appendChild(i.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&u==="xlink:href")c.setAttributeNS("http://www.w3.org/1999/xlink",u,a.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")c.setAttribute("_"+u,a.toString());else if(o==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){c.setAttribute("csp-content",a.toString());continue}else o==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||o==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(o==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?c.setAttribute("rrweb-original-srcset",e.attributes.srcset):c.setAttribute(u,a.toString()))}catch(d){}}}for(const u in l){const a=l[u];if(o==="canvas"&&u==="rr_dataURL"){const d=i.createElement("img");d.onload=()=>{const f=c.getContext("2d");f&&f.drawImage(d,0,0,d.width,d.height)},d.src=a.toString(),c.RRNodeType&&(c.rr_dataURL=a.toString())}else if(o==="img"&&u==="rr_dataURL"){const d=c;d.currentSrc.startsWith("data:")||(d.setAttribute("rrweb-original-src",e.attributes.src),d.src=a.toString())}if(u==="rr_width")c.style.setProperty("width",a.toString());else if(u==="rr_height")c.style.setProperty("height",a.toString());else if(u==="rr_background_color")c.style.setProperty("background-color",a.toString());else if(u==="rr_mediaCurrentTime"&&typeof a=="number")c.currentTime=a;else if(u==="rr_mediaState")switch(a){case"played":c.play().catch(d=>console.warn("media playback error",d));break;case"paused":c.pause();break}else u==="rr_mediaPlaybackRate"&&typeof a=="number"?c.playbackRate=a:u==="rr_mediaMuted"&&typeof a=="boolean"?c.muted=a:u==="rr_mediaLoop"&&typeof a=="boolean"?c.loop=a:u==="rr_mediaVolume"&&typeof a=="number"?c.volume=a:u==="rr_open_mode"&&c.setAttribute("rr_open_mode",a)}if(e.isShadowHost)if(!c.shadowRoot)c.attachShadow({mode:"open"});else for(;c.shadowRoot.firstChild;)c.shadowRoot.removeChild(c.shadowRoot.firstChild);return c}case W.Text:return e.isStyle&&s?i.createTextNode(hs(e.textContent,n)):i.createTextNode(e.textContent);case W.CDATA:return i.createCDATASection(e.textContent);case W.Comment:return i.createComment(e.textContent);default:return null}}function ii(e,t){const{doc:r,mirror:i,skipChild:s=!1,hackCss:n=!0,afterAppend:o,cache:c,scrollNodes:l}=t;if(i.has(e.id)){const a=i.getNode(e.id),d=i.getMeta(a);if(nd(d,e))return i.getNode(e.id)}let u=tp(e,{doc:r,hackCss:n,cache:c});if(!u)return null;if(e.rootId&&i.getNode(e.rootId)!==r&&i.replace(e.rootId,r),e.type===W.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==W.DocumentType&&(e.childNodes[0].type===W.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" "">')),u=r),i.add(u,e),l&&e.type===W.Element&&e.attributes&&("rr_scrollLeft"in e.attributes||"rr_scrollTop"in e.attributes)&&l.push(u),(e.type===W.Document||e.type===W.Element)&&!s)for(const a of e.childNodes){const d=ii(a,{doc:r,mirror:i,skipChild:!1,hackCss:n,afterAppend:o,cache:c,scrollNodes:l});if(!d){console.warn("Failed to rebuild",a);continue}if(a.isShadow&&No(u)&&u.shadowRoot)u.shadowRoot.appendChild(d);else if(e.type===W.Document&&a.type==W.Element){const f=d;let h=null;f.childNodes.forEach(p=>{p.nodeName==="BODY"&&(h=p)}),h?(f.removeChild(h),u.appendChild(d),f.appendChild(h)):u.appendChild(d)}else u.appendChild(d);o&&o(d,a.id)}return u}function rp(e,t){function r(i){t(i)}for(const i of e.getIds())e.has(i)&&r(e.getNode(i))}function ip(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==W.Element)return;const i=e;for(const s in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,s)&&s.startsWith("rr_")))continue;const n=r.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=n),s==="rr_scrollTop"&&(i.scrollTop=n)}}function sp(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:n,cache:o,mirror:c=new Mo}=t,l=[],u=ii(e,{doc:r,mirror:c,skipChild:!1,hackCss:s,afterAppend:n,cache:o,scrollNodes:l});i&&rp(c,i);for(const a of l)ip(a,c);return u}var np=Object.defineProperty,op=(e,t,r)=>t in e?np(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t,r)=>op(e,typeof t!="symbol"?t+"":t,r),ap=Object.defineProperty,lp=(e,t,r)=>t in e?ap(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rl=(e,t,r)=>lp(e,typeof t!="symbol"?t+"":t,r);let up=class{constructor(){rl(this,"idNodeMap",new Map),rl(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function cp(){return new up}function fp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hp(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?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(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var Ci={exports:{}},il;function dp(){if(il)return Ci.exports;il=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}};return Ci.exports=t(),Ci.exports.createColors=t,Ci.exports}const pp={},mp=Object.freeze(Object.defineProperty({__proto__:null,default:pp},Symbol.toStringTag,{value:"Module"})),ut=hp(mp);var en,sl;function Fo(){if(sl)return en;sl=1;let e=dp(),t=ut;class r extends Error{constructor(s,n,o,c,l,u){super(s),this.name="CssSyntaxError",this.reason=s,l&&(this.file=l),c&&(this.source=c),u&&(this.plugin=u),typeof n!="undefined"&&typeof o!="undefined"&&(typeof n=="number"?(this.line=n,this.column=o):(this.line=n.line,this.column=n.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(s){if(!this.source)return"";let n=this.source;s==null&&(s=e.isColorSupported),t&&s&&(n=t(n));let o=n.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),u=String(l).length,a,d;if(s){let{bold:f,gray:h,red:p}=e.createColors(!0);a=m=>f(p(m)),d=m=>h(m)}else a=d=f=>f;return o.slice(c,l).map((f,h)=>{let p=c+1+h,m=" "+(" "+p).slice(-u)+" | ";if(p===this.line){let y=d(m.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+d(m)+f+`
43
+ `+y+a("^")}return" "+d(m)+f}).join(`
44
44
  `)}toString(){let s=this.showSourceCode();return s&&(s=`
45
45
 
46
46
  `+s+`
@@ -49,24 +49,24 @@ https://www.w3ctech.com/topic/2226`));let N=y(...O);return N.postcssPlugin=E,N.p
49
49
  `,beforeComment:`
50
50
  `,beforeDecl:`
51
51
  `,beforeOpen:" ",beforeRule:`
52
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,n){let o="@"+s.name,u=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?o+=s.raws.afterName:u&&(o+=" "),s.nodes)this.block(s,o+u);else{let a=(s.raws.between||"")+(n?";":"");this.builder(o+u+a,s)}}beforeAfter(s,n){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):n==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let u=s.parent,a=0;for(;u&&u.type!=="root";)a+=1,u=u.parent;if(o.includes(`
53
- `)){let c=this.raw(s,null,"indent");if(c.length)for(let l=0;l<a;l++)o+=c}return o}block(s,n){let o=this.raw(s,"between","beforeOpen");this.builder(n+o+"{",s,"start");let u;s.nodes&&s.nodes.length?(this.body(s),u=this.raw(s,"after")):u=this.raw(s,"after","emptyBody"),u&&this.builder(u),this.builder("}",s,"end")}body(s){let n=s.nodes.length-1;for(;n>0&&s.nodes[n].type==="comment";)n-=1;let o=this.raw(s,"semicolon");for(let u=0;u<s.nodes.length;u++){let a=s.nodes[u],c=this.raw(a,"before");c&&this.builder(c),this.stringify(a,n!==u||o)}}comment(s){let n=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+n+s.text+o+"*/",s)}decl(s,n){let o=this.raw(s,"between","colon"),u=s.prop+o+this.rawValue(s,"value");s.important&&(u+=s.raws.important||" !important"),n&&(u+=";"),this.builder(u,s)}document(s){this.body(s)}raw(s,n,o){let u;if(o||(o=n),n&&(u=s.raws[n],typeof u!="undefined"))return u;let a=s.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[o];let c=s.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[o]!="undefined")return c.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let l="raw"+t(o);this[l]?u=this[l](c,s):c.walk(h=>{if(u=h.raws[n],typeof u!="undefined")return!1})}return typeof u=="undefined"&&(u=e[o]),c.rawCache[o]=u,u}rawBeforeClose(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return n=o.raws.after,n.includes(`
54
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(s,n){let o;return s.walkComments(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
55
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,n){let o;return s.walkDecls(u=>{if(typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
52
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(s){this.builder=s}atrule(s,n){let o="@"+s.name,c=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?o+=s.raws.afterName:c&&(o+=" "),s.nodes)this.block(s,o+c);else{let l=(s.raws.between||"")+(n?";":"");this.builder(o+c+l,s)}}beforeAfter(s,n){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):n==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let c=s.parent,l=0;for(;c&&c.type!=="root";)l+=1,c=c.parent;if(o.includes(`
53
+ `)){let u=this.raw(s,null,"indent");if(u.length)for(let a=0;a<l;a++)o+=u}return o}block(s,n){let o=this.raw(s,"between","beforeOpen");this.builder(n+o+"{",s,"start");let c;s.nodes&&s.nodes.length?(this.body(s),c=this.raw(s,"after")):c=this.raw(s,"after","emptyBody"),c&&this.builder(c),this.builder("}",s,"end")}body(s){let n=s.nodes.length-1;for(;n>0&&s.nodes[n].type==="comment";)n-=1;let o=this.raw(s,"semicolon");for(let c=0;c<s.nodes.length;c++){let l=s.nodes[c],u=this.raw(l,"before");u&&this.builder(u),this.stringify(l,n!==c||o)}}comment(s){let n=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+n+s.text+o+"*/",s)}decl(s,n){let o=this.raw(s,"between","colon"),c=s.prop+o+this.rawValue(s,"value");s.important&&(c+=s.raws.important||" !important"),n&&(c+=";"),this.builder(c,s)}document(s){this.body(s)}raw(s,n,o){let c;if(o||(o=n),n&&(c=s.raws[n],typeof c!="undefined"))return c;let l=s.parent;if(o==="before"&&(!l||l.type==="root"&&l.first===s||l&&l.type==="document"))return"";if(!l)return e[o];let u=s.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let a="raw"+t(o);this[a]?c=this[a](u,s):u.walk(d=>{if(c=d.raws[n],typeof c!="undefined")return!1})}return typeof c=="undefined"&&(c=e[o]),u.rawCache[o]=c,c}rawBeforeClose(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return n=o.raws.after,n.includes(`
54
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(s,n){let o;return s.walkComments(c=>{if(typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
55
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,n){let o;return s.walkDecls(c=>{if(typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
56
56
  `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(n,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let n;return s.walk(o=>{if(o.type!=="decl"&&(n=o.raws.between,typeof n!="undefined"))return!1}),n}rawBeforeRule(s){let n;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before!="undefined")return n=o.raws.before,n.includes(`
57
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(s){let n;return s.walkDecls(o=>{if(typeof o.raws.between!="undefined")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n!="undefined"))return!1}),n}rawIndent(s){if(s.raws.indent)return s.raws.indent;let n;return s.walk(o=>{let u=o.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof o.raws.before!="undefined"){let a=o.raws.before.split(`
58
- `);return n=a[a.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n!="undefined"))return!1}),n}rawValue(s,n){let o=s[n],u=s.raws[n];return u&&u.value===o?u.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,n){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,n)}}return tn=r,r.default=r,tn}var rn,al;function ds(){if(al)return rn;al=1;let e=cc();function t(r,i){new e(i).stringify(r)}return rn=t,t.default=t,rn}var sn,ll;function ps(){if(ll)return sn;ll=1;let{isClean:e,my:t}=Uo(),r=Fo(),i=cc(),s=ds();function n(u,a){let c=new u.constructor;for(let l in u){if(!Object.prototype.hasOwnProperty.call(u,l)||l==="proxyCache")continue;let h=u[l],f=typeof h;l==="parent"&&f==="object"?a&&(c[l]=a):l==="source"?c[l]=h:Array.isArray(h)?c[l]=h.map(d=>n(d,c)):(f==="object"&&h!==null&&(h=n(h)),c[l]=h)}return c}class o{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let c in a)if(c==="nodes"){this.nodes=[];for(let l of a[c])typeof l.clone=="function"?this.append(l.clone()):this.append(l)}else this[c]=a[c]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let c=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${c.input.from}:${c.start.line}:${c.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let c in a)this[c]=a[c];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let c=n(this);for(let l in a)c[l]=a[l];return c}cloneAfter(a={}){let c=this.clone(a);return this.parent.insertAfter(this,c),c}cloneBefore(a={}){let c=this.clone(a);return this.parent.insertBefore(this,c),c}error(a,c={}){if(this.source){let{end:l,start:h}=this.rangeBy(c);return this.source.input.error(a,{column:h.column,line:h.line},{column:l.column,line:l.line},c)}return new r(a)}getProxyProcessor(){return{get(a,c){return c==="proxyOf"?a:c==="root"?()=>a.root().toProxy():a[c]},set(a,c,l){return a[c]===l||(a[c]=l,(c==="prop"||c==="value"||c==="name"||c==="params"||c==="important"||c==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,c){let l=this.source.start;if(a.index)l=this.positionInside(a.index,c);else if(a.word){c=this.toString();let h=c.indexOf(a.word);h!==-1&&(l=this.positionInside(h,c))}return l}positionInside(a,c){let l=c||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let d=0;d<a;d++)l[d]===`
59
- `?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let c={column:this.source.start.column,line:this.source.start.line},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:c.column+1,line:c.line};if(a.word){let h=this.toString(),f=h.indexOf(a.word);f!==-1&&(c=this.positionInside(f,h),l=this.positionInside(f+a.word.length,h))}else a.start?c={column:a.start.column,line:a.start.line}:a.index&&(c=this.positionInside(a.index)),a.end?l={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?l=this.positionInside(a.endIndex):a.index&&(l=this.positionInside(a.index+1));return(l.line<c.line||l.line===c.line&&l.column<=c.column)&&(l={column:c.column+1,line:c.line}),{end:l,start:c}}raw(a,c){return new i().raw(this,a,c)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let c=this,l=!1;for(let h of a)h===this?l=!0:l?(this.parent.insertAfter(c,h),c=h):this.parent.insertBefore(c,h);l||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,c){let l={},h=c==null;c=c||new Map;let f=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))l[d]=m.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,c):p);else if(typeof m=="object"&&m.toJSON)l[d]=m.toJSON(null,c);else if(d==="source"){let p=c.get(m.input);p==null&&(p=f,c.set(m.input,f),f++),l[d]={end:m.end,inputId:p,start:m.start}}else l[d]=m}return h&&(l.inputs=[...c.keys()].map(d=>d.toJSON())),l}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let c="";return a(this,l=>{c+=l}),c}warn(a,c,l){let h={node:this};for(let f in l)h[f]=l[f];return a.warn(c,h)}get proxyOf(){return this}}return sn=o,o.default=o,sn}var nn,ul;function ms(){if(ul)return nn;ul=1;let e=ps();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=we(G({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return nn=t,t.default=t,nn}var on,cl;function gp(){if(cl)return on;cl=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return on={nanoid:(i=21)=>{let s="",n=i;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",u=n;for(;u--;)o+=i[Math.random()*i.length|0];return o}},on}var an,fl;function fc(){if(fl)return an;fl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{existsSync:r,readFileSync:i}=ut,{dirname:s,join:n}=ut;function o(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class u{constructor(c,l){if(l.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let h=l.map?l.map.prev:void 0,f=this.loadMap(l.from,h);!this.mapFile&&l.from&&(this.mapFile=l.from),this.mapFile&&(this.root=s(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(c){let l=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/;if(f.test(c)||d.test(c))return decodeURIComponent(c.substr(RegExp.lastMatch.length));if(l.test(c)||h.test(c))return o(c.substr(RegExp.lastMatch.length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let l=c.match(/\/\*\s*# sourceMappingURL=/gm);if(!l)return;let h=c.lastIndexOf(l.pop()),f=c.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(h,f)))}loadFile(c){if(this.root=s(c),r(c))return this.mapFile=c,i(c,"utf-8").toString().trim()}loadMap(c,l){if(l===!1)return!1;if(l){if(typeof l=="string")return l;if(typeof l=="function"){let h=l(c);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(l instanceof e)return t.fromSourceMap(l).toString();if(l instanceof t)return l.toString();if(this.isMap(l))return JSON.stringify(l);throw new Error("Unsupported previous source map format: "+l.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return c&&(h=n(s(c),h)),this.loadFile(h)}}}startWith(c,l){return c?c.substr(0,l.length)===l:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return an=u,u.default=u,an}var ln,hl;function gs(){if(hl)return ln;hl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{fileURLToPath:r,pathToFileURL:i}=ut,{isAbsolute:s,resolve:n}=ut,{nanoid:o}=gp(),u=ut,a=Fo(),c=fc(),l=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(n&&s);class d{constructor(p,g={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=n(g.from)),f&&h){let v=new c(this.css,g);if(v.text){this.map=v;let w=v.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(p,g,v,w={}){let _,E,y;if(g&&typeof g=="object"){let S=g,C=v;if(typeof S.offset=="number"){let O=this.fromOffset(S.offset);g=O.line,v=O.col}else g=S.line,v=S.column;if(typeof C.offset=="number"){let O=this.fromOffset(C.offset);E=O.line,y=O.col}else E=C.line,y=C.column}else if(!v){let S=this.fromOffset(g);g=S.line,v=S.col}let b=this.origin(g,v,E,y);return b?_=new a(p,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,w.plugin):_=new a(p,E===void 0?g:{column:v,line:g},E===void 0?v:{column:y,line:E},this.css,this.file,w.plugin),_.input={column:v,endColumn:y,endLine:E,line:g,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(p){let g,v;if(this[l])v=this[l];else{let _=this.css.split(`
60
- `);v=new Array(_.length);let E=0;for(let y=0,b=_.length;y<b;y++)v[y]=E,E+=_[y].length+1;this[l]=v}g=v[v.length-1];let w=0;if(p>=g)w=v.length-1;else{let _=v.length-2,E;for(;w<_;)if(E=w+(_-w>>1),p<v[E])_=E-1;else if(p>=v[E+1])w=E+1;else{w=E;break}}return{col:p-v[w]+1,line:w+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:n(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,g,v,w){if(!this.map)return!1;let _=this.map.consumer(),E=_.originalPositionFor({column:g,line:p});if(!E.source)return!1;let y;typeof v=="number"&&(y=_.originalPositionFor({column:w,line:v}));let b;s(E.source)?b=i(E.source):b=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:y&&y.column,endLine:y&&y.line,line:E.line,url:b.toString()};if(b.protocol==="file:")if(r)S.file=r(b);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(E.source);return C&&(S.source=C),S}toJSON(){let p={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(p[g]=this[g]);return this.map&&(p.map=G({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return ln=d,d.default=d,u&&u.registerInput&&u.registerInput(d),ln}var un,dl;function hc(){if(dl)return un;dl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{dirname:r,relative:i,resolve:s,sep:n}=ut,{pathToFileURL:o}=ut,u=gs(),a=!!(e&&t),c=!!(r&&s&&i&&n);class l{constructor(f,d,m,p){this.stringify=f,this.mapOpts=m.map||{},this.root=d,this.opts=m,this.css=p,this.originalCSS=p,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 d=`
57
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(s){let n;return s.walkDecls(o=>{if(typeof o.raws.between!="undefined")return n=o.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(n=o.raws.after,typeof n!="undefined"))return!1}),n}rawIndent(s){if(s.raws.indent)return s.raws.indent;let n;return s.walk(o=>{let c=o.parent;if(c&&c!==s&&c.parent&&c.parent===s&&typeof o.raws.before!="undefined"){let l=o.raws.before.split(`
58
+ `);return n=l[l.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(s){let n;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(n=o.raws.semicolon,typeof n!="undefined"))return!1}),n}rawValue(s,n){let o=s[n],c=s.raws[n];return c&&c.value===o?c.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,n){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,n)}}return tn=r,r.default=r,tn}var rn,al;function ds(){if(al)return rn;al=1;let e=cc();function t(r,i){new e(i).stringify(r)}return rn=t,t.default=t,rn}var sn,ll;function ps(){if(ll)return sn;ll=1;let{isClean:e,my:t}=Uo(),r=Fo(),i=cc(),s=ds();function n(c,l){let u=new c.constructor;for(let a in c){if(!Object.prototype.hasOwnProperty.call(c,a)||a==="proxyCache")continue;let d=c[a],f=typeof d;a==="parent"&&f==="object"?l&&(u[a]=l):a==="source"?u[a]=d:Array.isArray(d)?u[a]=d.map(h=>n(h,u)):(f==="object"&&d!==null&&(d=n(d)),u[a]=d)}return u}class o{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let u in l)if(u==="nodes"){this.nodes=[];for(let a of l[u])typeof a.clone=="function"?this.append(a.clone()):this.append(a)}else this[u]=l[u]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let u=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let u in l)this[u]=l[u];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 u=n(this);for(let a in l)u[a]=l[a];return u}cloneAfter(l={}){let u=this.clone(l);return this.parent.insertAfter(this,u),u}cloneBefore(l={}){let u=this.clone(l);return this.parent.insertBefore(this,u),u}error(l,u={}){if(this.source){let{end:a,start:d}=this.rangeBy(u);return this.source.input.error(l,{column:d.column,line:d.line},{column:a.column,line:a.line},u)}return new r(l)}getProxyProcessor(){return{get(l,u){return u==="proxyOf"?l:u==="root"?()=>l.root().toProxy():l[u]},set(l,u,a){return l[u]===a||(l[u]=a,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,u){let a=this.source.start;if(l.index)a=this.positionInside(l.index,u);else if(l.word){u=this.toString();let d=u.indexOf(l.word);d!==-1&&(a=this.positionInside(d,u))}return a}positionInside(l,u){let a=u||this.toString(),d=this.source.start.column,f=this.source.start.line;for(let h=0;h<l;h++)a[h]===`
59
+ `?(d=1,f+=1):d+=1;return{column:d,line:f}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let u={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:u.column+1,line:u.line};if(l.word){let d=this.toString(),f=d.indexOf(l.word);f!==-1&&(u=this.positionInside(f,d),a=this.positionInside(f+l.word.length,d))}else l.start?u={column:l.start.column,line:l.start.line}:l.index&&(u=this.positionInside(l.index)),l.end?a={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?a=this.positionInside(l.endIndex):l.index&&(a=this.positionInside(l.index+1));return(a.line<u.line||a.line===u.line&&a.column<=u.column)&&(a={column:u.column+1,line:u.line}),{end:a,start:u}}raw(l,u){return new i().raw(this,l,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let u=this,a=!1;for(let d of l)d===this?a=!0:a?(this.parent.insertAfter(u,d),u=d):this.parent.insertBefore(u,d);a||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,u){let a={},d=u==null;u=u||new Map;let f=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let p=this[h];if(Array.isArray(p))a[h]=p.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,u):m);else if(typeof p=="object"&&p.toJSON)a[h]=p.toJSON(null,u);else if(h==="source"){let m=u.get(p.input);m==null&&(m=f,u.set(p.input,f),f++),a[h]={end:p.end,inputId:m,start:p.start}}else a[h]=p}return d&&(a.inputs=[...u.keys()].map(h=>h.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=s){l.stringify&&(l=l.stringify);let u="";return l(this,a=>{u+=a}),u}warn(l,u,a){let d={node:this};for(let f in a)d[f]=a[f];return l.warn(u,d)}get proxyOf(){return this}}return sn=o,o.default=o,sn}var nn,ul;function ms(){if(ul)return nn;ul=1;let e=ps();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=we(G({},i),{value:String(i.value)})),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return nn=t,t.default=t,nn}var on,cl;function gp(){if(cl)return on;cl=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return on={nanoid:(i=21)=>{let s="",n=i;for(;n--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(n=s)=>{let o="",c=n;for(;c--;)o+=i[Math.random()*i.length|0];return o}},on}var an,fl;function fc(){if(fl)return an;fl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{existsSync:r,readFileSync:i}=ut,{dirname:s,join:n}=ut;function o(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class c{constructor(u,a){if(a.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let d=a.map?a.map.prev:void 0,f=this.loadMap(a.from,d);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=s(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(u){let a=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/;if(f.test(u)||h.test(u))return decodeURIComponent(u.substr(RegExp.lastMatch.length));if(a.test(u)||d.test(u))return o(u.substr(RegExp.lastMatch.length));let p=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let a=u.match(/\/\*\s*# sourceMappingURL=/gm);if(!a)return;let d=u.lastIndexOf(a.pop()),f=u.indexOf("*/",d);d>-1&&f>-1&&(this.annotation=this.getAnnotationURL(u.substring(d,f)))}loadFile(u){if(this.root=s(u),r(u))return this.mapFile=u,i(u,"utf-8").toString().trim()}loadMap(u,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let d=a(u);if(d){let f=this.loadFile(d);if(!f)throw new Error("Unable to load previous source map: "+d.toString());return f}}else{if(a instanceof e)return t.fromSourceMap(a).toString();if(a instanceof t)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let d=this.annotation;return u&&(d=n(s(u),d)),this.loadFile(d)}}}startWith(u,a){return u?u.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return an=c,c.default=c,an}var ln,hl;function gs(){if(hl)return ln;hl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{fileURLToPath:r,pathToFileURL:i}=ut,{isAbsolute:s,resolve:n}=ut,{nanoid:o}=gp(),c=ut,l=Fo(),u=fc(),a=Symbol("fromOffsetCache"),d=!!(e&&t),f=!!(n&&s);class h{constructor(m,y={}){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,y.from&&(!f||/^\w+:\/\//.test(y.from)||s(y.from)?this.file=y.from:this.file=n(y.from)),f&&d){let w=new u(this.css,y);if(w.text){this.map=w;let g=w.consumer().file;!this.file&&g&&(this.file=this.mapResolve(g))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(m,y,w,g={}){let _,S,v;if(y&&typeof y=="object"){let E=y,C=w;if(typeof E.offset=="number"){let O=this.fromOffset(E.offset);y=O.line,w=O.col}else y=E.line,w=E.column;if(typeof C.offset=="number"){let O=this.fromOffset(C.offset);S=O.line,v=O.col}else S=C.line,v=C.column}else if(!w){let E=this.fromOffset(y);y=E.line,w=E.col}let b=this.origin(y,w,S,v);return b?_=new l(m,b.endLine===void 0?b.line:{column:b.column,line:b.line},b.endLine===void 0?b.column:{column:b.endColumn,line:b.endLine},b.source,b.file,g.plugin):_=new l(m,S===void 0?y:{column:w,line:y},S===void 0?w:{column:v,line:S},this.css,this.file,g.plugin),_.input={column:w,endColumn:v,endLine:S,line:y,source:this.css},this.file&&(i&&(_.input.url=i(this.file).toString()),_.input.file=this.file),_}fromOffset(m){let y,w;if(this[a])w=this[a];else{let _=this.css.split(`
60
+ `);w=new Array(_.length);let S=0;for(let v=0,b=_.length;v<b;v++)w[v]=S,S+=_[v].length+1;this[a]=w}y=w[w.length-1];let g=0;if(m>=y)g=w.length-1;else{let _=w.length-2,S;for(;g<_;)if(S=g+(_-g>>1),m<w[S])_=S-1;else if(m>=w[S+1])g=S+1;else{g=S;break}}return{col:m-w[g]+1,line:g+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:n(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,y,w,g){if(!this.map)return!1;let _=this.map.consumer(),S=_.originalPositionFor({column:y,line:m});if(!S.source)return!1;let v;typeof w=="number"&&(v=_.originalPositionFor({column:g,line:w}));let b;s(S.source)?b=i(S.source):b=new URL(S.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let E={column:S.column,endColumn:v&&v.column,endLine:v&&v.line,line:S.line,url:b.toString()};if(b.protocol==="file:")if(r)E.file=r(b);else throw new Error("file: protocol is not available in this PostCSS build");let C=_.sourceContentFor(S.source);return C&&(E.source=C),E}toJSON(){let m={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(m[y]=this[y]);return this.map&&(m.map=G({},this.map),m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return ln=h,h.default=h,c&&c.registerInput&&c.registerInput(h),ln}var un,dl;function hc(){if(dl)return un;dl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{dirname:r,relative:i,resolve:s,sep:n}=ut,{pathToFileURL:o}=ut,c=gs(),l=!!(e&&t),u=!!(r&&s&&i&&n);class a{constructor(f,h,p,m){this.stringify=f,this.mapOpts=p.map||{},this.root=h,this.opts=p,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=`
61
61
  `;this.css.includes(`\r
62
- `)&&(d=`\r
63
- `),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),m=f.root||r(f.file),p;this.mapOpts.sourcesContent===!1?(p=new e(f.text),p.sourcesContent&&(p.sourcesContent=null)):p=f.consumer(),this.map.applySourceMap(p,d,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[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=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,m="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(w,_,E)=>{if(this.css+=w,_&&E!=="end"&&(p.generated.line=f,p.generated.column=d-1,_.source&&_.source.start?(p.source=this.sourcePath(_),p.original.line=_.source.start.line,p.original.column=_.source.start.column-1,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,this.map.addMapping(p))),g=w.match(/\n/g),g?(f+=g.length,v=w.lastIndexOf(`
64
- `),d=w.length-v):d+=w.length,_&&E!=="start"){let y=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==y.last||y.raws.semicolon)&&(_.source&&_.source.end?(p.source=this.sourcePath(_),p.original.line=_.source.end.line,p.original.column=_.source.end.column-1,p.generated.line=f,p.generated.column=d-2,this.map.addMapping(p)):(p.source=m,p.original.line=1,p.original.column=0,p.generated.line=f,p.generated.column=d-1,this.map.addMapping(p)))}})}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(d=>d.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 d=this.memoizedPaths.get(f);if(d)return d;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(s(m,this.mapOpts.annotation)));let p=i(m,f);return this.memoizedPaths.set(f,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});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(d=>{if(d.source){let m=d.source.input.from;if(m&&!f[m]){f[m]=!0;let p=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(p,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,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 d=this.memoizedFileURLs.get(f);if(d)return d;if(o){let m=o(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;n==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return un=l,un}var cn,pl;function vs(){if(pl)return cn;pl=1;let e=ps();class t extends e{constructor(i){super(i),this.type="comment"}}return cn=t,t.default=t,cn}var fn,ml;function mr(){if(ml)return fn;ml=1;let{isClean:e,my:t}=Uo(),r=ms(),i=vs(),s=ps(),n,o,u,a;function c(f){return f.map(d=>(d.nodes&&(d.nodes=c(d.nodes)),delete d.source,d))}function l(f){if(f[e]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)l(d)}class h extends s{append(...d){for(let m of d){let p=this.normalize(m,this.last);for(let g of p)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let m of this.nodes)m.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let m=this.getIterator(),p,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(p=this.indexes[m],g=d(this.proxyOf.nodes[p],p),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,m){return m==="proxyOf"?d:d[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...p)=>d[m](...p.map(g=>typeof g=="function"?(v,w)=>g(v.toProxy(),w):g)):m==="every"||m==="some"?p=>d[m]((g,...v)=>p(g.toProxy(),...v)):m==="root"?()=>d.root().toProxy():m==="nodes"?d.nodes.map(p=>p.toProxy()):m==="first"||m==="last"?d[m].toProxy():d[m]:d[m]},set(d,m,p){return d[m]===p||(d[m]=p,(m==="name"||m==="params"||m==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,m){let p=this.index(d),g=this.normalize(m,this.proxyOf.nodes[p]).reverse();p=this.index(d);for(let w of g)this.proxyOf.nodes.splice(p+1,0,w);let v;for(let w in this.indexes)v=this.indexes[w],p<v&&(this.indexes[w]=v+g.length);return this.markDirty(),this}insertBefore(d,m){let p=this.index(d),g=p===0?"prepend":!1,v=this.normalize(m,this.proxyOf.nodes[p],g).reverse();p=this.index(d);for(let _ of v)this.proxyOf.nodes.splice(p,0,_);let w;for(let _ in this.indexes)w=this.indexes[_],p<=w&&(this.indexes[_]=w+v.length);return this.markDirty(),this}normalize(d,m){if(typeof d=="string")d=c(n(d).nodes);else if(typeof d=="undefined")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let g of d)g.parent&&g.parent.removeChild(g,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value=="undefined")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new r(d)]}else if(d.selector)d=[new o(d)];else if(d.name)d=[new u(d)];else if(d.text)d=[new i(d)];else throw new Error("Unknown node type in node creation");return d.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&l(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...d){d=d.reverse();for(let m of d){let p=this.normalize(m,this.first,"prepend").reverse();for(let g of p)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+p.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let m;for(let p in this.indexes)m=this.indexes[p],m>=d&&(this.indexes[p]=m-1);return this.markDirty(),this}replaceValues(d,m,p){return p||(p=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(d,p))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((m,p)=>{let g;try{g=d(m,p)}catch(v){throw m.addToError(v)}return g!==!1&&m.walk&&(g=m.walk(d)),g})}walkAtRules(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="atrule"&&d.test(p.name))return m(p,g)}):this.walk((p,g)=>{if(p.type==="atrule"&&p.name===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="atrule")return m(p,g)}))}walkComments(d){return this.walk((m,p)=>{if(m.type==="comment")return d(m,p)})}walkDecls(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="decl"&&d.test(p.prop))return m(p,g)}):this.walk((p,g)=>{if(p.type==="decl"&&p.prop===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="decl")return m(p,g)}))}walkRules(d,m){return m?d instanceof RegExp?this.walk((p,g)=>{if(p.type==="rule"&&d.test(p.selector))return m(p,g)}):this.walk((p,g)=>{if(p.type==="rule"&&p.selector===d)return m(p,g)}):(m=d,this.walk((p,g)=>{if(p.type==="rule")return m(p,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 h.registerParse=f=>{n=f},h.registerRule=f=>{o=f},h.registerAtRule=f=>{u=f},h.registerRoot=f=>{a=f},fn=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,u.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(d=>{h.rebuild(d)})},fn}var hn,gl;function Bo(){if(gl)return hn;gl=1;let e=mr(),t,r;class i extends e{constructor(n){super(G({type:"document"},n)),this.nodes||(this.nodes=[])}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},hn=i,i.default=i,hn}var dn,vl;function dc(){if(vl)return dn;vl=1;let e={};return dn=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},dn}var pn,yl;function pc(){if(yl)return pn;yl=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}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 pn=e,e.default=e,pn}var mn,wl;function $o(){if(wl)return mn;wl=1;let e=pc();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let n=new e(i,s);return this.messages.push(n),n}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return mn=t,t.default=t,mn}var gn,bl;function vp(){if(bl)return gn;bl=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,u=9,a=13,c=91,l=93,h=40,f=41,d=123,m=125,p=59,g=42,v=58,w=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return gn=function(C,O={}){let N=C.css.valueOf(),F=O.ignoreErrors,T,x,oe,L,te,U,$,ge,q,W,Ce=N.length,A=0,be=[],k=[];function j(){return A}function ee(ie){throw C.error("Unclosed "+ie,A)}function P(){return k.length===0&&A>=Ce}function fe(ie){if(k.length)return k.pop();if(A>=Ce)return;let ke=ie?ie.ignoreUnclosed:!1;switch(T=N.charCodeAt(A),T){case s:case n:case u:case a:case o:{x=A;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===u||T===a||T===o);W=["space",N.slice(A,x)],A=x-1;break}case c:case l:case d:case m:case v:case p:case f:{let pt=String.fromCharCode(T);W=[pt,pt,A];break}case h:{if(ge=be.length?be.pop()[1]:"",q=N.charCodeAt(A+1),ge==="url"&&q!==e&&q!==t&&q!==n&&q!==s&&q!==u&&q!==o&&q!==a){x=A;do{if(U=!1,x=N.indexOf(")",x+1),x===-1)if(F||ke){x=A;break}else ee("bracket");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);W=["brackets",N.slice(A,x+1),A,x],A=x}else x=N.indexOf(")",A+1),L=N.slice(A,x+1),x===-1||y.test(L)?W=["(","(",A]:(W=["brackets",L,A,x],A=x);break}case e:case t:{oe=T===e?"'":'"',x=A;do{if(U=!1,x=N.indexOf(oe,x+1),x===-1)if(F||ke){x=A+1;break}else ee("string");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);W=["string",N.slice(A,x+1),A,x],A=x;break}case w:{_.lastIndex=A+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,W=["at-word",N.slice(A,x+1),A,x],A=x;break}case r:{for(x=A,te=!0;N.charCodeAt(x+1)===r;)x+=1,te=!te;if(T=N.charCodeAt(x+1),te&&T!==i&&T!==n&&T!==s&&T!==u&&T!==a&&T!==o&&(x+=1,b.test(N.charAt(x)))){for(;b.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}W=["word",N.slice(A,x+1),A,x],A=x;break}default:{T===i&&N.charCodeAt(A+1)===g?(x=N.indexOf("*/",A+2)+1,x===0&&(F||ke?x=N.length:ee("comment")),W=["comment",N.slice(A,x+1),A,x],A=x):(E.lastIndex=A+1,E.test(N),E.lastIndex===0?x=N.length-1:x=E.lastIndex-2,W=["word",N.slice(A,x+1),A,x],be.push(W),A=x);break}}return A++,W}function ue(ie){k.push(ie)}return{back:ue,endOfFile:P,nextToken:fe,position:j}},gn}var vn,_l;function Wo(){if(_l)return vn;_l=1;let e=mr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return vn=t,t.default=t,e.registerAtRule(t),vn}var yn,Sl;function pi(){if(Sl)return yn;Sl=1;let e=mr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,u){let a=super.normalize(n);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 c of a)c.raws.before=o.raws.before}return a}removeChild(n,o){let u=this.index(n);return!o&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(n)}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},yn=i,i.default=i,e.registerRoot(i),yn}var wn,El;function mc(){if(El)return wn;El=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
65
- `," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,u=0,a=!1,c="",l=!1;for(let h of t)l?l=!1:h==="\\"?l=!0:a?h===c&&(a=!1):h==='"'||h==="'"?(a=!0,c=h):h==="("?u+=1:h===")"?u>0&&(u-=1):u===0&&r.includes(h)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=h;return(i||n!=="")&&s.push(n.trim()),s}};return wn=e,e.default=e,wn}var bn,Cl;function zo(){if(Cl)return bn;Cl=1;let e=mr(),t=mc();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}}return bn=r,r.default=r,e.registerRule(r),bn}var _n,xl;function yp(){if(xl)return _n;xl=1;let e=ms(),t=vp(),r=vs(),i=Wo(),s=pi(),n=zo();const o={empty:!0,space:!0};function u(c){for(let l=c.length-1;l>=0;l--){let h=c[l],f=h[3]||h[2];if(f)return f}}class a{constructor(l){this.input=l,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:l,start:{column:1,line:1,offset:0}}}atrule(l){let h=new i;h.name=l[1].slice(1),h.name===""&&this.unnamedAtrule(h,l),this.init(h,l[2]);let f,d,m,p=!1,g=!1,v=[],w=[];for(;!this.tokenizer.endOfFile();){if(l=this.tokenizer.nextToken(),f=l[0],f==="("||f==="["?w.push(f==="("?")":"]"):f==="{"&&w.length>0?w.push("}"):f===w[w.length-1]&&w.pop(),w.length===0)if(f===";"){h.source.end=this.getPosition(l[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(v.length>0){for(m=v.length-1,d=v[m];d&&d[0]==="space";)d=v[--m];d&&(h.source.end=this.getPosition(d[3]||d[2]),h.source.end.offset++)}this.end(l);break}else v.push(l);else v.push(l);if(this.tokenizer.endOfFile()){p=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(h.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(h,"params",v),p&&(l=v[v.length-1],h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(l){let h=this.colon(l);if(h===!1)return;let f=0,d;for(let m=h-1;m>=0&&(d=l[m],!(d[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(l){let h=0,f,d,m;for(let[p,g]of l.entries()){if(f=g,d=f[0],d==="("&&(h+=1),d===")"&&(h-=1),h===0&&d===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return p}m=f}return!1}comment(l){let h=new r;this.init(h,l[2]),h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++;let f=l[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=d[2],h.raws.left=d[1],h.raws.right=d[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(l,h){let f=new e;this.init(f,l[0][2]);let d=l[l.length-1];for(d[0]===";"&&(this.semicolon=!0,l.pop()),f.source.end=this.getPosition(d[3]||d[2]||u(l)),f.source.end.offset++;l[0][0]!=="word";)l.length===1&&this.unknownWord(l),f.raws.before+=l.shift()[1];for(f.source.start=this.getPosition(l[0][2]),f.prop="";l.length;){let w=l[0][0];if(w===":"||w==="space"||w==="comment")break;f.prop+=l.shift()[1]}f.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let p=[],g;for(;l.length&&(g=l[0][0],!(g!=="space"&&g!=="comment"));)p.push(l.shift());this.precheckMissedSemicolon(l);for(let w=l.length-1;w>=0;w--){if(m=l[w],m[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(l,w);_=this.spacesFromEnd(l)+_,_!==" !important"&&(f.raws.important=_);break}else if(m[1].toLowerCase()==="important"){let _=l.slice(0),E="";for(let y=w;y>0;y--){let b=_[y][0];if(E.trim().indexOf("!")===0&&b!=="space")break;E=_.pop()[1]+E}E.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=E,l=_)}if(m[0]!=="space"&&m[0]!=="comment")break}l.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(f.raws.between+=p.map(w=>w[1]).join(""),p=[]),this.raw(f,"value",p.concat(l),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(l)}doubleColon(l){throw this.input.error("Double colon",{offset:l[2]},{offset:l[2]+l[1].length})}emptyRule(l){let h=new n;this.init(h,l[2]),h.selector="",h.raws.between="",this.current=h}end(l){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(l[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(l)}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(l){if(this.spaces+=l[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(l){let h=this.input.fromOffset(l);return{column:h.col,line:h.line,offset:l}}init(l,h){this.current.push(l),l.source={input:this.input,start:this.getPosition(h)},l.raws.before=this.spaces,this.spaces="",l.type!=="comment"&&(this.semicolon=!1)}other(l){let h=!1,f=null,d=!1,m=null,p=[],g=l[1].startsWith("--"),v=[],w=l;for(;w;){if(f=w[0],v.push(w),f==="("||f==="[")m||(m=w),p.push(f==="("?")":"]");else if(g&&d&&f==="{")m||(m=w),p.push("}");else if(p.length===0)if(f===";")if(d){this.decl(v,g);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),h=!0;break}else f===":"&&(d=!0);else f===p[p.length-1]&&(p.pop(),p.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),p.length>0&&this.unclosedBracket(m),h&&d){if(!g)for(;v.length&&(w=v[v.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let l;for(;!this.tokenizer.endOfFile();)switch(l=this.tokenizer.nextToken(),l[0]){case"space":this.spaces+=l[1];break;case";":this.freeSemicolon(l);break;case"}":this.end(l);break;case"comment":this.comment(l);break;case"at-word":this.atrule(l);break;case"{":this.emptyRule(l);break;default:this.other(l);break}this.endFile()}precheckMissedSemicolon(){}raw(l,h,f,d){let m,p,g=f.length,v="",w=!0,_,E;for(let y=0;y<g;y+=1)m=f[y],p=m[0],p==="space"&&y===g-1&&!d?w=!1:p==="comment"?(E=f[y-1]?f[y-1][0]:"empty",_=f[y+1]?f[y+1][0]:"empty",!o[E]&&!o[_]?v.slice(-1)===","?w=!1:v+=m[1]:w=!1):v+=m[1];if(!w){let y=f.reduce((b,S)=>b+S[1],"");l.raws[h]={raw:y,value:v}}l[h]=v}rule(l){l.pop();let h=new n;this.init(h,l[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(l),this.raw(h,"selector",l),this.current=h}spacesAndCommentsFromEnd(l){let h,f="";for(;l.length&&(h=l[l.length-1][0],!(h!=="space"&&h!=="comment"));)f=l.pop()[1]+f;return f}spacesAndCommentsFromStart(l){let h,f="";for(;l.length&&(h=l[0][0],!(h!=="space"&&h!=="comment"));)f+=l.shift()[1];return f}spacesFromEnd(l){let h,f="";for(;l.length&&(h=l[l.length-1][0],h==="space");)f=l.pop()[1]+f;return f}stringFrom(l,h){let f="";for(let d=h;d<l.length;d++)f+=l[d][1];return l.splice(h,l.length-h),f}unclosedBlock(){let l=this.current.source.start;throw this.input.error("Unclosed block",l.line,l.column)}unclosedBracket(l){throw this.input.error("Unclosed bracket",{offset:l[2]},{offset:l[2]+1})}unexpectedClose(l){throw this.input.error("Unexpected }",{offset:l[2]},{offset:l[2]+1})}unknownWord(l){throw this.input.error("Unknown word",{offset:l[0][2]},{offset:l[0][2]+l[0][1].length})}unnamedAtrule(l,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return _n=a,_n}var Sn,Rl;function qo(){if(Rl)return Sn;Rl=1;let e=mr(),t=yp(),r=gs();function i(s,n){let o=new r(s,n),u=new t(o);try{u.parse()}catch(a){throw a}return u.root}return Sn=i,i.default=i,e.registerParse(i),Sn}var En,Nl;function gc(){if(Nl)return En;Nl=1;let{isClean:e,my:t}=Uo(),r=hc(),i=ds(),s=mr(),n=Bo(),o=dc(),u=$o(),a=qo(),c=pi();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},d=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function p(E){let y=!1,b=l[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,d,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,d,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",d,"DocumentExit"]:E.type==="root"?y=["Root",d,"RootExit"]:y=p(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function v(E){return E[e]=!1,E.nodes&&E.nodes.forEach(y=>v(y)),E}let w={};class _{constructor(y,b,S){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=v(b);else if(b instanceof _||b instanceof u)C=v(b.root),b.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=b.map);else{let O=a;S.syntax&&(O=S.syntax.parse),S.parser&&(O=S.parser),O.parse&&(O=O.parse);try{C=O(b,S)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new u(y,C,S),this.helpers=we(G({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?G(G({},O),O.prepare(this.result)):O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let S=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let S in b){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof b[S]=="object")for(let C in b[S])C==="*"?y(b,S,b[S][C]):y(b,S+"-"+C.toLowerCase(),b[S][C]);else typeof b[S]=="function"&&y(b,S,b[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],S=this.runOnRoot(b);if(m(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let b=[g(y)];for(;b.length>0;){let S=this.visitTick(b);if(m(S))try{await S}catch(C){let O=b[b.length-1].node;throw this.handleError(C,O)}}}if(this.listeners.OnceExit)for(let[b,S]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(O=>S(O,this.helpers));await Promise.all(C)}else await S(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return m(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(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 y=this.result.opts,b=i;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 y of this.plugins){let b=this.runOnRoot(y);if(m(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[S,C]of y){this.result.lastPlugin=S;let O;try{O=C(b,this.helpers)}catch(N){throw this.handleError(N,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(m(O))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:S,visitors:C}=b;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[N,F]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=N;try{return F(S.toProxy(),this.helpers)}catch(T){throw this.handleError(T,S)}}if(b.iterator!==0){let N=b.iterator,F;for(;F=S.nodes[S.indexes[N]];)if(S.indexes[N]+=1,!F[e]){F[e]=!0,y.push(g(F));return}b.iterator=0,delete S.indexes[N]}let O=b.events;for(;b.eventIndex<O.length;){let N=O[b.eventIndex];if(b.eventIndex+=1,N===d){S.nodes&&S.nodes.length&&(S[e]=!0,b.iterator=S.getIterator());return}else if(this.listeners[N]){b.visitors=this.listeners[N];return}}y.pop()}walkSync(y){y[e]=!0;let b=p(y);for(let S of b)if(S===d)y.nodes&&y.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,y.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 _.registerPostcss=E=>{w=E},En=_,_.default=_,c.registerLazyResult(_),n.registerLazyResult(_),En}var Cn,Ml;function wp(){if(Ml)return Cn;Ml=1;let e=hc(),t=ds(),r=dc(),i=qo();const s=$o();class n{constructor(u,a,c){a=a.toString(),this.stringified=!1,this._processor=u,this._css=a,this._opts=c,this._map=void 0;let l,h=t;this.result=new s(this._processor,l,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(h,l,this._opts,a);if(d.isMap()){let[m,p]=d.generate();m&&(this.result.css=m),p&&(this.result.map=p)}else d.clearAnnotation(),this.result.css=d.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,a){return this.async().then(u,a)}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,a=i;try{u=a(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return Cn=n,n.default=n,Cn}var xn,Ol;function bp(){if(Ol)return xn;Ol=1;let e=wp(),t=gc(),r=Bo(),i=pi();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let u=[];for(let a of o)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))u=u.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)u.push(a);else if(typeof a=="function")u.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return u}process(o,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new e(this,o,u):new t(this,o,u)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return xn=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),xn}var Rn,Al;function _p(){if(Al)return Rn;Al=1;let e=ms(),t=fc(),r=vs(),i=Wo(),s=gs(),n=pi(),o=zo();function u(a,c){if(Array.isArray(a))return a.map(m=>u(m));let f=a,{inputs:l}=f,h=jr(f,["inputs"]);if(l){c=[];for(let m of l){let p=we(G({},m),{__proto__:s.prototype});p.map&&(p.map=we(G({},p.map),{__proto__:t.prototype})),c.push(p)}}if(h.nodes&&(h.nodes=a.nodes.map(m=>u(m,c))),h.source){let d=h.source,{inputId:m}=d,p=jr(d,["inputId"]);h.source=p,m!=null&&(h.source.input=c[m])}if(h.type==="root")return new n(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new o(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+a.type)}return Rn=u,u.default=u,Rn}var Nn,Dl;function Sp(){if(Dl)return Nn;Dl=1;let e=Fo(),t=ms(),r=gc(),i=mr(),s=bp(),n=ds(),o=_p(),u=Bo(),a=pc(),c=vs(),l=Wo(),h=$o(),f=gs(),d=qo(),m=mc(),p=zo(),g=pi(),v=ps();function w(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return w.plugin=function(E,y){let b=!1;function S(...O){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
66
- 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:
67
- https://www.w3ctech.com/topic/2226`));let N=y(...O);return N.postcssPlugin=E,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(O,N,F){return w([S(F)]).process(O,N)},S},w.stringify=n,w.parse=d,w.fromJSON=o,w.list=m,w.comment=_=>new c(_),w.atRule=_=>new l(_),w.decl=_=>new t(_),w.rule=_=>new p(_),w.root=_=>new g(_),w.document=_=>new u(_),w.CssSyntaxError=e,w.Declaration=t,w.Container=i,w.Processor=s,w.Document=u,w.Comment=c,w.Warning=a,w.AtRule=l,w.Result=h,w.Input=f,w.Rule=p,w.Root=g,w.Node=v,r.registerPostcss(w),Nn=w,w.default=w,Nn}var Ep=Sp();const me=fp(Ep);me.stringify;me.fromJSON;me.plugin;me.parse;me.list;me.document;me.comment;me.atRule;me.rule;me.decl;me.root;me.CssSyntaxError;me.Declaration;me.Container;me.Processor;me.Document;me.Comment;me.Warning;me.AtRule;me.Result;me.Input;me.Rule;me.Root;me.Node;var V=(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))(V||{});function Cp(e){const t={},r=/;(?![^(]*\))/g,i=/:(.+)/,s=/\/\*.*?\*\//g;return e.replace(s,"").split(r).forEach(function(n){if(n){const o=n.split(i);o.length>1&&(t[ro(o[0].trim())]=o[1].trim())}}),t}function Tl(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=Mp(r);t.push(`${s}: ${i};`)}return t.join(" ")}const xp=/-([a-z])/g,Rp=/^--[a-zA-Z0-9-]+$/,ro=e=>Rp.test(e)?e:e.replace(xp,(t,r)=>r?r.toUpperCase():""),Np=/\B([A-Z])/g,Mp=e=>e.replace(Np,"-$1").toLowerCase();class dt{constructor(...t){D(this,"parentElement",null),D(this,"parentNode",null),D(this,"ownerDocument"),D(this,"firstChild",null),D(this,"lastChild",null),D(this,"previousSibling",null),D(this,"nextSibling",null),D(this,"ELEMENT_NODE",1),D(this,"TEXT_NODE",3),D(this,"nodeType"),D(this,"nodeName"),D(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 dt){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 jo extends dt{constructor(...t){super(t),D(this,"nodeType",9),D(this,"nodeName","#document"),D(this,"compatMode","CSS1Compat"),D(this,"RRNodeType",V.Document),D(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===V.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===V.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===V.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===V.Element||r===V.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===V.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=Vo(this,t);return i.parentElement=null,i}insertBefore(t,r){const i=t.RRNodeType;if((i===V.Element||i===V.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===V.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=_c(this,t,r);return s.parentElement=null,s}removeChild(t){return Sc(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 i=this.createDocumentType("html",r,"");this.open(),this.appendChild(i)}}createDocument(t,r,i){return new jo}createDocumentType(t,r,i){const s=new vc(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=new ys(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new yc(t);return r.ownerDocument=this,r}createComment(t){const r=new wc(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new bc(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class vc extends dt{constructor(t,r,i){super(),D(this,"nodeType",10),D(this,"RRNodeType",V.DocumentType),D(this,"name"),D(this,"publicId"),D(this,"systemId"),D(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=i,this.nodeName=t}toString(){return"RRDocumentType"}}class ys extends dt{constructor(t){super(),D(this,"nodeType",1),D(this,"RRNodeType",V.Element),D(this,"tagName"),D(this,"attributes",{}),D(this,"shadowRoot",null),D(this,"scrollLeft"),D(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 Dp(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?Cp(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(i,s,n)=>{if(r.test(i))return;const o=ro(i);s?t[o]=s:delete t[o],n==="important"&&(t[o]+=" !important"),this.attributes.style=Tl(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=ro(i),n=t[s]||"";return delete t[s],this.attributes.style=Tl(t),n},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,i){this.setAttribute(r,i)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Vo(this,t)}insertBefore(t,r){return _c(this,t,r)}removeChild(t){return Sc(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 Op extends ys{constructor(){super(...arguments),D(this,"currentTime"),D(this,"volume"),D(this,"paused"),D(this,"muted"),D(this,"playbackRate"),D(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 Ap extends ys{constructor(){super(...arguments),D(this,"tagName","DIALOG"),D(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 yc extends dt{constructor(t){super(),D(this,"nodeType",3),D(this,"nodeName","#text"),D(this,"RRNodeType",V.Text),D(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 wc extends dt{constructor(t){super(),D(this,"nodeType",8),D(this,"nodeName","#comment"),D(this,"RRNodeType",V.Comment),D(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 bc extends dt{constructor(t){super(),D(this,"nodeName","#cdata-section"),D(this,"nodeType",4),D(this,"RRNodeType",V.CDATA),D(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 Dp{constructor(t,r){if(D(this,"onChange"),D(this,"classes",[]),D(this,"add",(...i)=>{for(const s of i){const n=String(s);this.classes.indexOf(n)>=0||this.classes.push(n)}this.onChange&&this.onChange(this.classes.join(" "))}),D(this,"remove",(...i)=>{this.classes=this.classes.filter(s=>i.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const i=t.trim().split(/\s+/);this.classes.push(...i)}this.onChange=r}}function Vo(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 _c(e,t,r){if(!r)return Vo(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 Sc(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 We=(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))(We||{});const io={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Tp={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 yt=null;function Vi(e,t,r,i=t.mirror||t.ownerDocument.mirror){e=kp(e,t,r,i),Ec(e,t,r,i),Pp(e,t,r)}function kp(e,t,r,i){var s;if(r.afterAppend&&!yt&&(yt=new WeakSet,setTimeout(()=>{yt=null},0)),!Go(e,t)){const n=Gi(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(n,e),e=n}switch(t.RRNodeType){case V.Document:{if(!br(e,t,r.mirror,i)){const n=i.getMeta(t);n&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,n),yt==null||yt.add(e))}break}case V.Element:{const n=e,o=t;switch(o.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Vi(u,t.contentDocument,r,i);break}}o.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),Ec(n.shadowRoot,o.shadowRoot,r,i)),Ip(n,o,i);break}}return e}function Pp(e,t,r){var i;switch(t.RRNodeType){case V.Document:{const s=t.scrollData;s&&r.applyScroll(s,!0);break}case V.Element:{const s=e,n=t;switch(n.scrollData&&r.applyScroll(n.scrollData,!0),n.inputData&&r.applyInput(n.inputData),n.tagName){case"AUDIO":case"VIDEO":{const o=e,u=n;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 a=s.getContext("2d");a&&a.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=s.sheet;o&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,o));break}case"DIALOG":{const o=s,u=n,a=o.open,c=o.matches("dialog:modal"),l=u.open,h=u.isModal,f=c!==h,d=a!==l;if((f||a&&d)&&o.close(),l&&(d||f))try{h?o.showModal():o.show()}catch(m){console.warn(m)}break}}break}case V.Text:case V.Comment:case V.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}yt!=null&&yt.has(e)&&(yt.delete(e),(i=r.afterAppend)==null||i.call(r,e,r.mirror.getId(e)))}function Ip(e,t,r){const i=e.attributes,s=t.attributes;for(const n in s){const o=s[n],u=r.getMeta(t);if(u!=null&&u.isSVG&&io[n])e.setAttributeNS(io[n],n,o);else if(t.tagName==="CANVAS"&&n==="rr_dataURL"){const a=document.createElement("img");a.src=o,a.onload=()=>{const c=e.getContext("2d");c&&c.drawImage(a,0,0,a.width,a.height)}}else{if(t.tagName==="IFRAME"&&n==="srcdoc")continue;try{e.setAttribute(n,o)}catch(a){console.warn(a)}}}for(const{name:n}of Array.from(i))n in s||e.removeAttribute(n);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Ec(e,t,r,i){const s=Array.from(e.childNodes),n=t.childNodes;if(s.length===0&&n.length===0)return;let o=0,u=s.length-1,a=0,c=n.length-1,l=s[o],h=s[u],f=n[a],d=n[c],m,p;for(;o<=u&&a<=c;)if(l===void 0)l=s[++o];else if(h===void 0)h=s[--u];else if(br(l,f,r.mirror,i))l=s[++o],f=n[++a];else if(br(h,d,r.mirror,i))h=s[--u],d=n[--c];else if(br(l,d,r.mirror,i)){try{e.insertBefore(l,h.nextSibling)}catch(w){console.warn(w)}l=s[++o],d=n[--c]}else if(br(h,f,r.mirror,i)){try{e.insertBefore(h,l)}catch(w){console.warn(w)}h=s[--u],f=n[++a]}else{if(!m){m={};for(let _=o;_<=u;_++){const E=s[_];E&&r.mirror.hasNode(E)&&(m[r.mirror.getId(E)]=_)}}p=m[i.getId(f)];const w=s[p];if(p!==void 0&&w&&br(w,f,r.mirror,i)){try{e.insertBefore(w,l)}catch(_){console.warn(_)}s[p]=void 0}else{const _=Gi(f,r.mirror,i);e.nodeName==="#document"&&l&&(_.nodeType===_.DOCUMENT_TYPE_NODE&&l.nodeType===l.DOCUMENT_TYPE_NODE||_.nodeType===_.ELEMENT_NODE&&l.nodeType===l.ELEMENT_NODE)&&(e.removeChild(l),r.mirror.removeNodeFromMap(l),l=s[++o]);try{e.insertBefore(_,l||null)}catch(E){console.warn(E)}}f=n[++a]}if(o>u){const w=n[c+1];let _=null;for(w&&(_=r.mirror.getNode(i.getId(w)));a<=c;++a){const E=Gi(n[a],r.mirror,i);try{e.insertBefore(E,_)}catch(y){console.warn(y)}}}else if(a>c)for(;o<=u;o++){const w=s[o];if(!(!w||w.parentNode!==e))try{e.removeChild(w),r.mirror.removeNodeFromMap(w)}catch(_){console.warn(_)}}let g=e.firstChild,v=t.firstChild;for(;g!==null&&v!==null;)Vi(g,v,r,i),g=g.nextSibling,v=v.nextSibling}function Gi(e,t,r){const i=r.getId(e),s=r.getMeta(e);let n=null;if(i>-1&&(n=t.getNode(i)),n!==null&&Go(n,e))return n;switch(e.RRNodeType){case V.Document:n=new Document;break;case V.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case V.Element:{let o=e.tagName.toLowerCase();o=Tp[o]||o,s&&"isSVG"in s&&(s!=null&&s.isSVG)?n=document.createElementNS(io.svg,o):n=document.createElement(e.tagName);break}case V.Text:n=document.createTextNode(e.data);break;case V.Comment:n=document.createComment(e.data);break;case V.CDATA:n=document.createCDATASection(e.data);break}s&&t.add(n,G({},s));try{yt==null||yt.add(n)}catch(o){}return n}function Go(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function br(e,t,r,i){const s=r.getId(e),n=i.getId(t);return s===-1||s!==n?!1:Go(e,t)}class zr extends jo{constructor(t){super(),D(this,"UNSERIALIZED_STARTING_ID",-2),D(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),D(this,"mirror",Hp()),D(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,i){return new zr}createDocumentType(t,r,i){const s=new Lp(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=t.toUpperCase();let i;switch(r){case"AUDIO":case"VIDEO":i=new Fp(r);break;case"IFRAME":i=new Wp(r,this.mirror);break;case"CANVAS":i=new Bp(r);break;case"STYLE":i=new $p(r);break;case"DIALOG":i=new Up(r);break;default:i=new ws(r);break}return i.ownerDocument=this,i}createComment(t){const r=new qp(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new jp(t);return r.ownerDocument=this,r}createTextNode(t){const r=new zp(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 Lp=vc;class ws extends ys{constructor(){super(...arguments),D(this,"inputData",null),D(this,"scrollData",null)}}class Fp extends Op{}class Up extends Ap{}class Bp extends ws{constructor(){super(...arguments),D(this,"rr_dataURL",null),D(this,"canvasMutations",[])}getContext(){return null}}class $p extends ws{constructor(){super(...arguments),D(this,"rules",[])}}class Wp extends ws{constructor(t,r){super(t),D(this,"contentDocument",new zr),this.contentDocument.mirror=r}}const zp=yc,qp=wc,jp=bc;function Vp(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Cc(e,t,r,i){let s;switch(e.nodeType){case We.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=t,s.compatMode=e.compatMode);break;case We.DOCUMENT_TYPE_NODE:{const o=e;s=t.createDocumentType(o.name,o.publicId,o.systemId);break}case We.ELEMENT_NODE:{const o=e,u=Vp(o);s=t.createElement(u);const a=s;for(const{name:c,value:l}of Array.from(o.attributes))a.attributes[c]=l;o.scrollLeft&&(a.scrollLeft=o.scrollLeft),o.scrollTop&&(a.scrollTop=o.scrollTop);break}case We.TEXT_NODE:s=t.createTextNode(e.textContent||"");break;case We.CDATA_SECTION_NODE:s=t.createCDATASection(e.data);break;case We.COMMENT_NODE:s=t.createComment(e.textContent||"");break;case We.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let n=r.getMeta(e);return t instanceof zr&&(n||(n=so(s,t.unserializedId),r.add(e,n)),t.mirror.add(s,G({},n))),s}function Gp(e,t=cp(),r=new zr){function i(s,n){const o=Cc(s,r,t,n);if(o!==null)if((n==null?void 0:n.nodeName)!=="IFRAME"&&s.nodeType!==We.DOCUMENT_FRAGMENT_NODE&&(n==null||n.appendChild(o),o.parentNode=n,o.parentElement=n),s.nodeName==="IFRAME"){const u=s.contentDocument;u&&i(u,o)}else(s.nodeType===We.DOCUMENT_NODE||s.nodeType===We.ELEMENT_NODE||s.nodeType===We.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===We.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,o),s.childNodes.forEach(u=>i(u,o)))}return i(e,null),r}function Hp(){return new Yp}class Yp{constructor(){D(this,"idNodeMap",new Map),D(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function so(e,t){switch(e.RRNodeType){case V.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case V.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case V.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case V.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case V.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case V.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const kl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ri={};function Jp(e){var t,r;const i=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(i&&globalThis[i])return globalThis[i]}function Ho(e){if(Ri[e])return Ri[e];const t=Jp(e)||globalThis[e],r=t.prototype,i=e in kl?kl[e]:void 0,s=!!(i&&i.every(u=>{var a,c;return!!((c=(a=Object.getOwnPropertyDescriptor(r,u))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),n=e in Pl?Pl[e]:void 0,o=!!(n&&n.every(u=>{var a;return typeof r[u]=="function"&&((a=r[u])==null?void 0:a.toString().includes("[native code]"))}));if(s&&o)return Ri[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const a=u.contentWindow;if(!a)return t.prototype;const c=a[e].prototype;return document.body.removeChild(u),c?Ri[e]=c:r}catch(u){return r}}const Mn={};function Xt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Mn[s])return Mn[s].call(t);const n=Ho(e),o=(i=Object.getOwnPropertyDescriptor(n,r))==null?void 0:i.get;return o?(Mn[s]=o,o.call(t)):t[r]}const On={};function xc(e,t,r){const i=`${e}.${String(r)}`;if(On[i])return On[i].bind(t);const n=Ho(e)[r];return typeof n!="function"?t[r]:(On[i]=n,n.bind(t))}function Xp(e){return Xt("Node",e,"childNodes")}function Kp(e){return Xt("Node",e,"parentNode")}function Qp(e){return Xt("Node",e,"parentElement")}function Zp(e){return Xt("Node",e,"textContent")}function em(e,t){return xc("Node",e,"contains")(t)}function tm(e){return xc("Node",e,"getRootNode")()}function rm(e){return!e||!("host"in e)?null:Xt("ShadowRoot",e,"host")}function im(e){return e.styleSheets}function sm(e){return!e||!("shadowRoot"in e)?null:Xt("Element",e,"shadowRoot")}function nm(e,t){return Xt("Element",e,"querySelector")(t)}function om(e,t){return Xt("Element",e,"querySelectorAll")(t)}function am(){return Ho("MutationObserver").constructor}const lm={childNodes:Xp,parentNode:Kp,parentElement:Qp,textContent:Zp,contains:em,getRootNode:tm,host:rm,styleSheets:im,shadowRoot:sm,querySelector:nm,querySelectorAll:om,mutationObserver:am},_r=`Please stop import mirror directly. Instead of that,\r
62
+ `)&&(h=`\r
63
+ `),this.css+=h+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let h=this.toUrl(this.path(f.file)),p=f.root||r(f.file),m;this.mapOpts.sourcesContent===!1?(m=new e(f.text),m.sourcesContent&&(m.sourcesContent=null)):m=f.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}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.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&l&&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=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,w;this.stringify(this.root,(g,_,S)=>{if(this.css+=g,_&&S!=="end"&&(m.generated.line=f,m.generated.column=h-1,_.source&&_.source.start?(m.source=this.sourcePath(_),m.original.line=_.source.start.line,m.original.column=_.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),y=g.match(/\n/g),y?(f+=y.length,w=g.lastIndexOf(`
64
+ `),h=g.length-w):h+=g.length,_&&S!=="start"){let v=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==v.last||v.raws.semicolon)&&(_.source&&_.source.end?(m.source=this.sourcePath(_),m.original.line=_.source.end.line,m.original.column=_.source.end.column-1,m.generated.line=f,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,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 p=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=r(s(p,this.mapOpts.annotation)));let m=i(p,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 p=h.source.input.from;if(p&&!f[p]){f[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));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 p=o(f).toString();return this.memoizedFileURLs.set(f,p),p}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 p=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,p),p}}return un=a,un}var cn,pl;function vs(){if(pl)return cn;pl=1;let e=ps();class t extends e{constructor(i){super(i),this.type="comment"}}return cn=t,t.default=t,cn}var fn,ml;function mr(){if(ml)return fn;ml=1;let{isClean:e,my:t}=Uo(),r=ms(),i=vs(),s=ps(),n,o,c,l;function u(f){return f.map(h=>(h.nodes&&(h.nodes=u(h.nodes)),delete h.source,h))}function a(f){if(f[e]=!1,f.proxyOf.nodes)for(let h of f.proxyOf.nodes)a(h)}class d extends s{append(...h){for(let p of h){let m=this.normalize(p,this.last);for(let y of m)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,y;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],y=h(this.proxyOf.nodes[m],m),y!==!1);)this.indexes[p]+=1;return delete this.indexes[p],y}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,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(y=>typeof y=="function"?(w,g)=>y(w.toProxy(),g):y)):p==="every"||p==="some"?m=>h[p]((y,...w)=>m(y.toProxy(),...w)):p==="root"?()=>h.root().toProxy():p==="nodes"?h.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?h[p].toProxy():h[p]:h[p]},set(h,p,m){return h[p]===m||(h[p]=m,(p==="name"||p==="params"||p==="selector")&&h.markDirty()),!0}}}index(h){return typeof h=="number"?h:(h.proxyOf&&(h=h.proxyOf),this.proxyOf.nodes.indexOf(h))}insertAfter(h,p){let m=this.index(h),y=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let g of y)this.proxyOf.nodes.splice(m+1,0,g);let w;for(let g in this.indexes)w=this.indexes[g],m<w&&(this.indexes[g]=w+y.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),y=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],y).reverse();m=this.index(h);for(let _ of w)this.proxyOf.nodes.splice(m,0,_);let g;for(let _ in this.indexes)g=this.indexes[_],m<=g&&(this.indexes[_]=g+w.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=u(n(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let y of h)y.parent&&y.parent.removeChild(y,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let y of h)y.parent&&y.parent.removeChild(y,"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 r(h)]}else if(h.selector)h=[new o(h)];else if(h.name)h=[new c(h)];else if(h.text)h=[new i(h)];else throw new Error("Unknown node type in node creation");return h.map(y=>(y[t]||d.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&a(y),typeof y.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(y.raws.before=p.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let y of m)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+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 p;for(let m in this.indexes)p=this.indexes[m],p>=h&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(h,p,m){return m||(m=p,p={}),this.walkDecls(y=>{p.props&&!p.props.includes(y.prop)||p.fast&&!y.value.includes(p.fast)||(y.value=y.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let y;try{y=h(p,m)}catch(w){throw p.addToError(w)}return y!==!1&&p.walk&&(y=p.walk(h)),y})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,y)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,y)}):this.walk((m,y)=>{if(m.type==="atrule"&&m.name===h)return p(m,y)}):(p=h,this.walk((m,y)=>{if(m.type==="atrule")return p(m,y)}))}walkComments(h){return this.walk((p,m)=>{if(p.type==="comment")return h(p,m)})}walkDecls(h,p){return p?h instanceof RegExp?this.walk((m,y)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,y)}):this.walk((m,y)=>{if(m.type==="decl"&&m.prop===h)return p(m,y)}):(p=h,this.walk((m,y)=>{if(m.type==="decl")return p(m,y)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,y)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,y)}):this.walk((m,y)=>{if(m.type==="rule"&&m.selector===h)return p(m,y)}):(p=h,this.walk((m,y)=>{if(m.type==="rule")return p(m,y)}))}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 d.registerParse=f=>{n=f},d.registerRule=f=>{o=f},d.registerAtRule=f=>{c=f},d.registerRoot=f=>{l=f},fn=d,d.default=d,d.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,c.prototype):f.type==="rule"?Object.setPrototypeOf(f,o.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,l.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(h=>{d.rebuild(h)})},fn}var hn,gl;function Bo(){if(gl)return hn;gl=1;let e=mr(),t,r;class i extends e{constructor(n){super(G({type:"document"},n)),this.nodes||(this.nodes=[])}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},hn=i,i.default=i,hn}var dn,vl;function dc(){if(vl)return dn;vl=1;let e={};return dn=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},dn}var pn,yl;function pc(){if(yl)return pn;yl=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let s=i.node.rangeBy(i);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in i)this[s]=i[s]}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 pn=e,e.default=e,pn}var mn,wl;function $o(){if(wl)return mn;wl=1;let e=pc();class t{constructor(i,s,n){this.processor=i,this.messages=[],this.root=s,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let n=new e(i,s);return this.messages.push(n),n}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return mn=t,t.default=t,mn}var gn,bl;function vp(){if(bl)return gn;bl=1;const e=39,t=34,r=92,i=47,s=10,n=32,o=12,c=9,l=13,u=91,a=93,d=40,f=41,h=123,p=125,m=59,y=42,w=58,g=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return gn=function(C,O={}){let N=C.css.valueOf(),F=O.ignoreErrors,T,x,ae,L,te,U,$,ge,q,z,Ce=N.length,A=0,be=[],k=[];function j(){return A}function ee(se){throw C.error("Unclosed "+se,A)}function I(){return k.length===0&&A>=Ce}function fe(se){if(k.length)return k.pop();if(A>=Ce)return;let ke=se?se.ignoreUnclosed:!1;switch(T=N.charCodeAt(A),T){case s:case n:case c:case l:case o:{x=A;do x+=1,T=N.charCodeAt(x);while(T===n||T===s||T===c||T===l||T===o);z=["space",N.slice(A,x)],A=x-1;break}case u:case a:case h:case p:case w:case m:case f:{let pt=String.fromCharCode(T);z=[pt,pt,A];break}case d:{if(ge=be.length?be.pop()[1]:"",q=N.charCodeAt(A+1),ge==="url"&&q!==e&&q!==t&&q!==n&&q!==s&&q!==c&&q!==o&&q!==l){x=A;do{if(U=!1,x=N.indexOf(")",x+1),x===-1)if(F||ke){x=A;break}else ee("bracket");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);z=["brackets",N.slice(A,x+1),A,x],A=x}else x=N.indexOf(")",A+1),L=N.slice(A,x+1),x===-1||v.test(L)?z=["(","(",A]:(z=["brackets",L,A,x],A=x);break}case e:case t:{ae=T===e?"'":'"',x=A;do{if(U=!1,x=N.indexOf(ae,x+1),x===-1)if(F||ke){x=A+1;break}else ee("string");for($=x;N.charCodeAt($-1)===r;)$-=1,U=!U}while(U);z=["string",N.slice(A,x+1),A,x],A=x;break}case g:{_.lastIndex=A+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,z=["at-word",N.slice(A,x+1),A,x],A=x;break}case r:{for(x=A,te=!0;N.charCodeAt(x+1)===r;)x+=1,te=!te;if(T=N.charCodeAt(x+1),te&&T!==i&&T!==n&&T!==s&&T!==c&&T!==l&&T!==o&&(x+=1,b.test(N.charAt(x)))){for(;b.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}z=["word",N.slice(A,x+1),A,x],A=x;break}default:{T===i&&N.charCodeAt(A+1)===y?(x=N.indexOf("*/",A+2)+1,x===0&&(F||ke?x=N.length:ee("comment")),z=["comment",N.slice(A,x+1),A,x],A=x):(S.lastIndex=A+1,S.test(N),S.lastIndex===0?x=N.length-1:x=S.lastIndex-2,z=["word",N.slice(A,x+1),A,x],be.push(z),A=x);break}}return A++,z}function ue(se){k.push(se)}return{back:ue,endOfFile:I,nextToken:fe,position:j}},gn}var vn,_l;function Wo(){if(_l)return vn;_l=1;let e=mr();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return vn=t,t.default=t,e.registerAtRule(t),vn}var yn,Sl;function pi(){if(Sl)return yn;Sl=1;let e=mr(),t,r;class i extends e{constructor(n){super(n),this.type="root",this.nodes||(this.nodes=[])}normalize(n,o,c){let l=super.normalize(n);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 u of l)u.raws.before=o.raws.before}return l}removeChild(n,o){let c=this.index(n);return!o&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(n)}toResult(n={}){return new t(new r,this,n).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},yn=i,i.default=i,e.registerRoot(i),yn}var wn,El;function mc(){if(El)return wn;El=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
65
+ `," "];return e.split(t,r)},split(t,r,i){let s=[],n="",o=!1,c=0,l=!1,u="",a=!1;for(let d of t)a?a=!1:d==="\\"?a=!0:l?d===u&&(l=!1):d==='"'||d==="'"?(l=!0,u=d):d==="("?c+=1:d===")"?c>0&&(c-=1):c===0&&r.includes(d)&&(o=!0),o?(n!==""&&s.push(n.trim()),n="",o=!1):n+=d;return(i||n!=="")&&s.push(n.trim()),s}};return wn=e,e.default=e,wn}var bn,Cl;function zo(){if(Cl)return bn;Cl=1;let e=mr(),t=mc();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let n=this.selector?this.selector.match(/,\s*/):null,o=n?n[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}}return bn=r,r.default=r,e.registerRule(r),bn}var _n,xl;function yp(){if(xl)return _n;xl=1;let e=ms(),t=vp(),r=vs(),i=Wo(),s=pi(),n=zo();const o={empty:!0,space:!0};function c(u){for(let a=u.length-1;a>=0;a--){let d=u[a],f=d[3]||d[2];if(f)return f}}class l{constructor(a){this.input=a,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let d=new i;d.name=a[1].slice(1),d.name===""&&this.unnamedAtrule(d,a),this.init(d,a[2]);let f,h,p,m=!1,y=!1,w=[],g=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),f=a[0],f==="("||f==="["?g.push(f==="("?")":"]"):f==="{"&&g.length>0?g.push("}"):f===g[g.length-1]&&g.pop(),g.length===0)if(f===";"){d.source.end=this.getPosition(a[2]),d.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){y=!0;break}else if(f==="}"){if(w.length>0){for(p=w.length-1,h=w[p];h&&h[0]==="space";)h=w[--p];h&&(d.source.end=this.getPosition(h[3]||h[2]),d.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(d.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(d,"params",w),m&&(a=w[w.length-1],d.source.end=this.getPosition(a[3]||a[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),y&&(d.nodes=[],this.current=d)}checkMissedSemicolon(a){let d=this.colon(a);if(d===!1)return;let f=0,h;for(let p=d-1;p>=0&&(h=a[p],!(h[0]!=="space"&&(f+=1,f===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let d=0,f,h,p;for(let[m,y]of a.entries()){if(f=y,h=f[0],h==="("&&(d+=1),h===")"&&(d-=1),d===0&&h===":")if(!p)this.doubleColon(f);else{if(p[0]==="word"&&p[1]==="progid")continue;return m}p=f}return!1}comment(a){let d=new r;this.init(d,a[2]),d.source.end=this.getPosition(a[3]||a[2]),d.source.end.offset++;let f=a[1].slice(2,-2);if(/^\s*$/.test(f))d.text="",d.raws.left=f,d.raws.right="";else{let h=f.match(/^(\s*)([^]*\S)(\s*)$/);d.text=h[2],d.raws.left=h[1],d.raws.right=h[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(a,d){let f=new e;this.init(f,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),f.source.end=this.getPosition(h[3]||h[2]||c(a)),f.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),f.raws.before+=a.shift()[1];for(f.source.start=this.getPosition(a[0][2]),f.prop="";a.length;){let g=a[0][0];if(g===":"||g==="space"||g==="comment")break;f.prop+=a.shift()[1]}f.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){f.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),f.raws.between+=p[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let m=[],y;for(;a.length&&(y=a[0][0],!(y!=="space"&&y!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let g=a.length-1;g>=0;g--){if(p=a[g],p[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(a,g);_=this.spacesFromEnd(a)+_,_!==" !important"&&(f.raws.important=_);break}else if(p[1].toLowerCase()==="important"){let _=a.slice(0),S="";for(let v=g;v>0;v--){let b=_[v][0];if(S.trim().indexOf("!")===0&&b!=="space")break;S=_.pop()[1]+S}S.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=S,a=_)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(g=>g[0]!=="space"&&g[0]!=="comment")&&(f.raws.between+=m.map(g=>g[1]).join(""),m=[]),this.raw(f,"value",m.concat(a),d),f.value.includes(":")&&!d&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let d=new n;this.init(d,a[2]),d.selector="",d.raws.between="",this.current=d}end(a){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(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}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(a){if(this.spaces+=a[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(a){let d=this.input.fromOffset(a);return{column:d.col,line:d.line,offset:a}}init(a,d){this.current.push(a),a.source={input:this.input,start:this.getPosition(d)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let d=!1,f=null,h=!1,p=null,m=[],y=a[1].startsWith("--"),w=[],g=a;for(;g;){if(f=g[0],w.push(g),f==="("||f==="[")p||(p=g),m.push(f==="("?")":"]");else if(y&&h&&f==="{")p||(p=g),m.push("}");else if(m.length===0)if(f===";")if(h){this.decl(w,y);return}else break;else if(f==="{"){this.rule(w);return}else if(f==="}"){this.tokenizer.back(w.pop()),d=!0;break}else f===":"&&(h=!0);else f===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));g=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),m.length>0&&this.unclosedBracket(p),d&&h){if(!y)for(;w.length&&(g=w[w.length-1][0],!(g!=="space"&&g!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,y)}else this.unknownWord(w)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,d,f,h){let p,m,y=f.length,w="",g=!0,_,S;for(let v=0;v<y;v+=1)p=f[v],m=p[0],m==="space"&&v===y-1&&!h?g=!1:m==="comment"?(S=f[v-1]?f[v-1][0]:"empty",_=f[v+1]?f[v+1][0]:"empty",!o[S]&&!o[_]?w.slice(-1)===","?g=!1:w+=p[1]:g=!1):w+=p[1];if(!g){let v=f.reduce((b,E)=>b+E[1],"");a.raws[d]={raw:v,value:w}}a[d]=w}rule(a){a.pop();let d=new n;this.init(d,a[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(d,"selector",a),this.current=d}spacesAndCommentsFromEnd(a){let d,f="";for(;a.length&&(d=a[a.length-1][0],!(d!=="space"&&d!=="comment"));)f=a.pop()[1]+f;return f}spacesAndCommentsFromStart(a){let d,f="";for(;a.length&&(d=a[0][0],!(d!=="space"&&d!=="comment"));)f+=a.shift()[1];return f}spacesFromEnd(a){let d,f="";for(;a.length&&(d=a[a.length-1][0],d==="space");)f=a.pop()[1]+f;return f}stringFrom(a,d){let f="";for(let h=d;h<a.length;h++)f+=a[h][1];return a.splice(d,a.length-d),f}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word",{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return _n=l,_n}var Sn,Rl;function qo(){if(Rl)return Sn;Rl=1;let e=mr(),t=yp(),r=gs();function i(s,n){let o=new r(s,n),c=new t(o);try{c.parse()}catch(l){throw l}return c.root}return Sn=i,i.default=i,e.registerParse(i),Sn}var En,Nl;function gc(){if(Nl)return En;Nl=1;let{isClean:e,my:t}=Uo(),r=hc(),i=ds(),s=mr(),n=Bo(),o=dc(),c=$o(),l=qo(),u=pi();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={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 p(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let v=!1,b=a[S.type];return S.type==="decl"?v=S.prop.toLowerCase():S.type==="atrule"&&(v=S.name.toLowerCase()),v&&S.append?[b,b+"-"+v,h,b+"Exit",b+"Exit-"+v]:v?[b,b+"-"+v,b+"Exit",b+"Exit-"+v]:S.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function y(S){let v;return S.type==="document"?v=["Document",h,"DocumentExit"]:S.type==="root"?v=["Root",h,"RootExit"]:v=m(S),{eventIndex:0,events:v,iterator:0,node:S,visitorIndex:0,visitors:[]}}function w(S){return S[e]=!1,S.nodes&&S.nodes.forEach(v=>w(v)),S}let g={};class _{constructor(v,b,E){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=w(b);else if(b instanceof _||b instanceof c)C=w(b.root),b.map&&(typeof E.map=="undefined"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=b.map);else{let O=l;E.syntax&&(O=E.syntax.parse),E.parser&&(O=E.parser),O.parse&&(O=O.parse);try{C=O(b,E)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&s.rebuild(C)}this.result=new c(v,C,E),this.helpers=we(G({},g),{postcss:g,result:this.result}),this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?G(G({},O),O.prepare(this.result)):O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,b){let E=this.result.lastPlugin;try{b&&b.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=E.postcssPlugin,v.setMessage()):E.postcssVersion}catch(C){console&&console.error&&console.error(C)}return v}prepareVisitors(){this.listeners={};let v=(b,E,C)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let E in b){if(!d[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[E])if(typeof b[E]=="object")for(let C in b[E])C==="*"?v(b,E,b[E][C]):v(b,E+"-"+C.toLowerCase(),b[E][C]);else typeof b[E]=="function"&&v(b,E,b[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let b=this.plugins[v],E=this.runOnRoot(b);if(p(E))try{await E}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];){v[e]=!0;let b=[y(v)];for(;b.length>0;){let E=this.visitTick(b);if(p(E))try{await E}catch(C){let O=b[b.length-1].node;throw this.handleError(C,O)}}}if(this.listeners.OnceExit)for(let[b,E]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(v.type==="document"){let C=v.nodes.map(O=>E(O,this.helpers));await Promise.all(C)}else await E(v,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(E=>v.Once(E,this.helpers));return p(b[0])?Promise.all(b):b}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(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 v=this.result.opts,b=i;v.syntax&&(b=v.syntax.stringify),v.stringifier&&(b=v.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 v of this.plugins){let b=this.runOnRoot(v);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[e];)v[e]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let b of v.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,b){return this.async().then(v,b)}toString(){return this.css}visitSync(v,b){for(let[E,C]of v){this.result.lastPlugin=E;let O;try{O=C(b,this.helpers)}catch(N){throw this.handleError(N,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(O))throw this.getAsyncError()}}visitTick(v){let b=v[v.length-1],{node:E,visitors:C}=b;if(E.type!=="root"&&E.type!=="document"&&!E.parent){v.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[N,F]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=N;try{return F(E.toProxy(),this.helpers)}catch(T){throw this.handleError(T,E)}}if(b.iterator!==0){let N=b.iterator,F;for(;F=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!F[e]){F[e]=!0,v.push(y(F));return}b.iterator=0,delete E.indexes[N]}let O=b.events;for(;b.eventIndex<O.length;){let N=O[b.eventIndex];if(b.eventIndex+=1,N===h){E.nodes&&E.nodes.length&&(E[e]=!0,b.iterator=E.getIterator());return}else if(this.listeners[N]){b.visitors=this.listeners[N];return}}v.pop()}walkSync(v){v[e]=!0;let b=m(v);for(let E of b)if(E===h)v.nodes&&v.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[E];if(C&&this.visitSync(C,v.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 _.registerPostcss=S=>{g=S},En=_,_.default=_,u.registerLazyResult(_),n.registerLazyResult(_),En}var Cn,Ml;function wp(){if(Ml)return Cn;Ml=1;let e=hc(),t=ds(),r=dc(),i=qo();const s=$o();class n{constructor(c,l,u){l=l.toString(),this.stringified=!1,this._processor=c,this._css=l,this._opts=u,this._map=void 0;let a,d=t;this.result=new s(this._processor,a,this._opts),this.result.css=l;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let h=new e(d,a,this._opts,l);if(h.isMap()){let[p,m]=h.generate();p&&(this.result.css=p),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,l){return this.async().then(c,l)}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 c,l=i;try{c=l(this._css,this._opts)}catch(u){this.error=u}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return Cn=n,n.default=n,Cn}var xn,Ol;function bp(){if(Ol)return xn;Ol=1;let e=wp(),t=gc(),r=Bo(),i=pi();class s{constructor(o=[]){this.version="8.4.38",this.plugins=this.normalize(o)}normalize(o){let c=[];for(let l of o)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))c=c.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)c.push(l);else if(typeof l=="function")c.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return c}process(o,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new e(this,o,c):new t(this,o,c)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return xn=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),xn}var Rn,Al;function _p(){if(Al)return Rn;Al=1;let e=ms(),t=fc(),r=vs(),i=Wo(),s=gs(),n=pi(),o=zo();function c(l,u){if(Array.isArray(l))return l.map(p=>c(p));let f=l,{inputs:a}=f,d=jr(f,["inputs"]);if(a){u=[];for(let p of a){let m=we(G({},p),{__proto__:s.prototype});m.map&&(m.map=we(G({},m.map),{__proto__:t.prototype})),u.push(m)}}if(d.nodes&&(d.nodes=l.nodes.map(p=>c(p,u))),d.source){let h=d.source,{inputId:p}=h,m=jr(h,["inputId"]);d.source=m,p!=null&&(d.source.input=u[p])}if(d.type==="root")return new n(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new o(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return Rn=c,c.default=c,Rn}var Nn,Dl;function Sp(){if(Dl)return Nn;Dl=1;let e=Fo(),t=ms(),r=gc(),i=mr(),s=bp(),n=ds(),o=_p(),c=Bo(),l=pc(),u=vs(),a=Wo(),d=$o(),f=gs(),h=qo(),p=mc(),m=zo(),y=pi(),w=ps();function g(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return g.plugin=function(S,v){let b=!1;function E(...O){console&&console.warn&&!b&&(b=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
66
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
67
+ https://www.w3ctech.com/topic/2226`));let N=v(...O);return N.postcssPlugin=S,N.postcssVersion=new s().version,N}let C;return Object.defineProperty(E,"postcss",{get(){return C||(C=E()),C}}),E.process=function(O,N,F){return g([E(F)]).process(O,N)},E},g.stringify=n,g.parse=h,g.fromJSON=o,g.list=p,g.comment=_=>new u(_),g.atRule=_=>new a(_),g.decl=_=>new t(_),g.rule=_=>new m(_),g.root=_=>new y(_),g.document=_=>new c(_),g.CssSyntaxError=e,g.Declaration=t,g.Container=i,g.Processor=s,g.Document=c,g.Comment=u,g.Warning=l,g.AtRule=a,g.Result=d,g.Input=f,g.Rule=m,g.Root=y,g.Node=w,r.registerPostcss(g),Nn=g,g.default=g,Nn}var Ep=Sp();const me=fp(Ep);me.stringify;me.fromJSON;me.plugin;me.parse;me.list;me.document;me.comment;me.atRule;me.rule;me.decl;me.root;me.CssSyntaxError;me.Declaration;me.Container;me.Processor;me.Document;me.Comment;me.Warning;me.AtRule;me.Result;me.Input;me.Rule;me.Root;me.Node;var V=(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))(V||{});function Cp(e){const t={},r=/;(?![^(]*\))/g,i=/:(.+)/,s=/\/\*.*?\*\//g;return e.replace(s,"").split(r).forEach(function(n){if(n){const o=n.split(i);o.length>1&&(t[ro(o[0].trim())]=o[1].trim())}}),t}function Tl(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=Mp(r);t.push(`${s}: ${i};`)}return t.join(" ")}const xp=/-([a-z])/g,Rp=/^--[a-zA-Z0-9-]+$/,ro=e=>Rp.test(e)?e:e.replace(xp,(t,r)=>r?r.toUpperCase():""),Np=/\B([A-Z])/g,Mp=e=>e.replace(Np,"-$1").toLowerCase();class dt{constructor(...t){D(this,"parentElement",null),D(this,"parentNode",null),D(this,"ownerDocument"),D(this,"firstChild",null),D(this,"lastChild",null),D(this,"previousSibling",null),D(this,"nextSibling",null),D(this,"ELEMENT_NODE",1),D(this,"TEXT_NODE",3),D(this,"nodeType"),D(this,"nodeName"),D(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 dt){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 jo extends dt{constructor(...t){super(t),D(this,"nodeType",9),D(this,"nodeName","#document"),D(this,"compatMode","CSS1Compat"),D(this,"RRNodeType",V.Document),D(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===V.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===V.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===V.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){const r=t.RRNodeType;if((r===V.Element||r===V.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===V.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=Vo(this,t);return i.parentElement=null,i}insertBefore(t,r){const i=t.RRNodeType;if((i===V.Element||i===V.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===V.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=_c(this,t,r);return s.parentElement=null,s}removeChild(t){return Sc(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 i=this.createDocumentType("html",r,"");this.open(),this.appendChild(i)}}createDocument(t,r,i){return new jo}createDocumentType(t,r,i){const s=new vc(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=new ys(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){const r=new yc(t);return r.ownerDocument=this,r}createComment(t){const r=new wc(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new bc(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class vc extends dt{constructor(t,r,i){super(),D(this,"nodeType",10),D(this,"RRNodeType",V.DocumentType),D(this,"name"),D(this,"publicId"),D(this,"systemId"),D(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=i,this.nodeName=t}toString(){return"RRDocumentType"}}class ys extends dt{constructor(t){super(),D(this,"nodeType",1),D(this,"RRNodeType",V.Element),D(this,"tagName"),D(this,"attributes",{}),D(this,"shadowRoot",null),D(this,"scrollLeft"),D(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 Dp(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?Cp(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(i,s,n)=>{if(r.test(i))return;const o=ro(i);s?t[o]=s:delete t[o],n==="important"&&(t[o]+=" !important"),this.attributes.style=Tl(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=ro(i),n=t[s]||"";return delete t[s],this.attributes.style=Tl(t),n},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,i){this.setAttribute(r,i)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Vo(this,t)}insertBefore(t,r){return _c(this,t,r)}removeChild(t){return Sc(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 Op extends ys{constructor(){super(...arguments),D(this,"currentTime"),D(this,"volume"),D(this,"paused"),D(this,"muted"),D(this,"playbackRate"),D(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 Ap extends ys{constructor(){super(...arguments),D(this,"tagName","DIALOG"),D(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 yc extends dt{constructor(t){super(),D(this,"nodeType",3),D(this,"nodeName","#text"),D(this,"RRNodeType",V.Text),D(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 wc extends dt{constructor(t){super(),D(this,"nodeType",8),D(this,"nodeName","#comment"),D(this,"RRNodeType",V.Comment),D(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 bc extends dt{constructor(t){super(),D(this,"nodeName","#cdata-section"),D(this,"nodeType",4),D(this,"RRNodeType",V.CDATA),D(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 Dp{constructor(t,r){if(D(this,"onChange"),D(this,"classes",[]),D(this,"add",(...i)=>{for(const s of i){const n=String(s);this.classes.indexOf(n)>=0||this.classes.push(n)}this.onChange&&this.onChange(this.classes.join(" "))}),D(this,"remove",(...i)=>{this.classes=this.classes.filter(s=>i.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){const i=t.trim().split(/\s+/);this.classes.push(...i)}this.onChange=r}}function Vo(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 _c(e,t,r){if(!r)return Vo(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 Sc(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 We=(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))(We||{});const io={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Tp={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 yt=null;function Vi(e,t,r,i=t.mirror||t.ownerDocument.mirror){e=kp(e,t,r,i),Ec(e,t,r,i),Pp(e,t,r)}function kp(e,t,r,i){var s;if(r.afterAppend&&!yt&&(yt=new WeakSet,setTimeout(()=>{yt=null},0)),!Go(e,t)){const n=Gi(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(n,e),e=n}switch(t.RRNodeType){case V.Document:{if(!br(e,t,r.mirror,i)){const n=i.getMeta(t);n&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,n),yt==null||yt.add(e))}break}case V.Element:{const n=e,o=t;switch(o.tagName){case"IFRAME":{const c=e.contentDocument;if(!c)break;Vi(c,t.contentDocument,r,i);break}}o.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),Ec(n.shadowRoot,o.shadowRoot,r,i)),Ip(n,o,i);break}}return e}function Pp(e,t,r){var i;switch(t.RRNodeType){case V.Document:{const s=t.scrollData;s&&r.applyScroll(s,!0);break}case V.Element:{const s=e,n=t;switch(n.scrollData&&r.applyScroll(n.scrollData,!0),n.inputData&&r.applyInput(n.inputData),n.tagName){case"AUDIO":case"VIDEO":{const o=e,c=n;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 l=s.getContext("2d");l&&l.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=s.sheet;o&&t.rules.forEach(c=>r.applyStyleSheetMutation(c,o));break}case"DIALOG":{const o=s,c=n,l=o.open,u=o.matches("dialog:modal"),a=c.open,d=c.isModal,f=u!==d,h=l!==a;if((f||l&&h)&&o.close(),a&&(h||f))try{d?o.showModal():o.show()}catch(p){console.warn(p)}break}}break}case V.Text:case V.Comment:case V.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}yt!=null&&yt.has(e)&&(yt.delete(e),(i=r.afterAppend)==null||i.call(r,e,r.mirror.getId(e)))}function Ip(e,t,r){const i=e.attributes,s=t.attributes;for(const n in s){const o=s[n],c=r.getMeta(t);if(c!=null&&c.isSVG&&io[n])e.setAttributeNS(io[n],n,o);else if(t.tagName==="CANVAS"&&n==="rr_dataURL"){const l=document.createElement("img");l.src=o,l.onload=()=>{const u=e.getContext("2d");u&&u.drawImage(l,0,0,l.width,l.height)}}else{if(t.tagName==="IFRAME"&&n==="srcdoc")continue;try{e.setAttribute(n,o)}catch(l){console.warn(l)}}}for(const{name:n}of Array.from(i))n in s||e.removeAttribute(n);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Ec(e,t,r,i){const s=Array.from(e.childNodes),n=t.childNodes;if(s.length===0&&n.length===0)return;let o=0,c=s.length-1,l=0,u=n.length-1,a=s[o],d=s[c],f=n[l],h=n[u],p,m;for(;o<=c&&l<=u;)if(a===void 0)a=s[++o];else if(d===void 0)d=s[--c];else if(br(a,f,r.mirror,i))a=s[++o],f=n[++l];else if(br(d,h,r.mirror,i))d=s[--c],h=n[--u];else if(br(a,h,r.mirror,i)){try{e.insertBefore(a,d.nextSibling)}catch(g){console.warn(g)}a=s[++o],h=n[--u]}else if(br(d,f,r.mirror,i)){try{e.insertBefore(d,a)}catch(g){console.warn(g)}d=s[--c],f=n[++l]}else{if(!p){p={};for(let _=o;_<=c;_++){const S=s[_];S&&r.mirror.hasNode(S)&&(p[r.mirror.getId(S)]=_)}}m=p[i.getId(f)];const g=s[m];if(m!==void 0&&g&&br(g,f,r.mirror,i)){try{e.insertBefore(g,a)}catch(_){console.warn(_)}s[m]=void 0}else{const _=Gi(f,r.mirror,i);e.nodeName==="#document"&&a&&(_.nodeType===_.DOCUMENT_TYPE_NODE&&a.nodeType===a.DOCUMENT_TYPE_NODE||_.nodeType===_.ELEMENT_NODE&&a.nodeType===a.ELEMENT_NODE)&&(e.removeChild(a),r.mirror.removeNodeFromMap(a),a=s[++o]);try{e.insertBefore(_,a||null)}catch(S){console.warn(S)}}f=n[++l]}if(o>c){const g=n[u+1];let _=null;for(g&&(_=r.mirror.getNode(i.getId(g)));l<=u;++l){const S=Gi(n[l],r.mirror,i);try{e.insertBefore(S,_)}catch(v){console.warn(v)}}}else if(l>u)for(;o<=c;o++){const g=s[o];if(!(!g||g.parentNode!==e))try{e.removeChild(g),r.mirror.removeNodeFromMap(g)}catch(_){console.warn(_)}}let y=e.firstChild,w=t.firstChild;for(;y!==null&&w!==null;)Vi(y,w,r,i),y=y.nextSibling,w=w.nextSibling}function Gi(e,t,r){const i=r.getId(e),s=r.getMeta(e);let n=null;if(i>-1&&(n=t.getNode(i)),n!==null&&Go(n,e))return n;switch(e.RRNodeType){case V.Document:n=new Document;break;case V.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case V.Element:{let o=e.tagName.toLowerCase();o=Tp[o]||o,s&&"isSVG"in s&&(s!=null&&s.isSVG)?n=document.createElementNS(io.svg,o):n=document.createElement(e.tagName);break}case V.Text:n=document.createTextNode(e.data);break;case V.Comment:n=document.createComment(e.data);break;case V.CDATA:n=document.createCDATASection(e.data);break}s&&t.add(n,G({},s));try{yt==null||yt.add(n)}catch(o){}return n}function Go(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function br(e,t,r,i){const s=r.getId(e),n=i.getId(t);return s===-1||s!==n?!1:Go(e,t)}class zr extends jo{constructor(t){super(),D(this,"UNSERIALIZED_STARTING_ID",-2),D(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),D(this,"mirror",Hp()),D(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,i){return new zr}createDocumentType(t,r,i){const s=new Lp(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=t.toUpperCase();let i;switch(r){case"AUDIO":case"VIDEO":i=new Fp(r);break;case"IFRAME":i=new Wp(r,this.mirror);break;case"CANVAS":i=new Bp(r);break;case"STYLE":i=new $p(r);break;case"DIALOG":i=new Up(r);break;default:i=new ws(r);break}return i.ownerDocument=this,i}createComment(t){const r=new qp(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new jp(t);return r.ownerDocument=this,r}createTextNode(t){const r=new zp(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 Lp=vc;class ws extends ys{constructor(){super(...arguments),D(this,"inputData",null),D(this,"scrollData",null)}}class Fp extends Op{}class Up extends Ap{}class Bp extends ws{constructor(){super(...arguments),D(this,"rr_dataURL",null),D(this,"canvasMutations",[])}getContext(){return null}}class $p extends ws{constructor(){super(...arguments),D(this,"rules",[])}}class Wp extends ws{constructor(t,r){super(t),D(this,"contentDocument",new zr),this.contentDocument.mirror=r}}const zp=yc,qp=wc,jp=bc;function Vp(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Cc(e,t,r,i){let s;switch(e.nodeType){case We.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?s=i.contentDocument:(s=t,s.compatMode=e.compatMode);break;case We.DOCUMENT_TYPE_NODE:{const o=e;s=t.createDocumentType(o.name,o.publicId,o.systemId);break}case We.ELEMENT_NODE:{const o=e,c=Vp(o);s=t.createElement(c);const l=s;for(const{name:u,value:a}of Array.from(o.attributes))l.attributes[u]=a;o.scrollLeft&&(l.scrollLeft=o.scrollLeft),o.scrollTop&&(l.scrollTop=o.scrollTop);break}case We.TEXT_NODE:s=t.createTextNode(e.textContent||"");break;case We.CDATA_SECTION_NODE:s=t.createCDATASection(e.data);break;case We.COMMENT_NODE:s=t.createComment(e.textContent||"");break;case We.DOCUMENT_FRAGMENT_NODE:s=i.attachShadow({mode:"open"});break;default:return null}let n=r.getMeta(e);return t instanceof zr&&(n||(n=so(s,t.unserializedId),r.add(e,n)),t.mirror.add(s,G({},n))),s}function Gp(e,t=cp(),r=new zr){function i(s,n){const o=Cc(s,r,t,n);if(o!==null)if((n==null?void 0:n.nodeName)!=="IFRAME"&&s.nodeType!==We.DOCUMENT_FRAGMENT_NODE&&(n==null||n.appendChild(o),o.parentNode=n,o.parentElement=n),s.nodeName==="IFRAME"){const c=s.contentDocument;c&&i(c,o)}else(s.nodeType===We.DOCUMENT_NODE||s.nodeType===We.ELEMENT_NODE||s.nodeType===We.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===We.ELEMENT_NODE&&s.shadowRoot&&i(s.shadowRoot,o),s.childNodes.forEach(c=>i(c,o)))}return i(e,null),r}function Hp(){return new Yp}class Yp{constructor(){D(this,"idNodeMap",new Map),D(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const i=(r=this.getMeta(t))==null?void 0:r.id;return i!=null?i:-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(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){const i=this.getNode(t);if(i){const s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function so(e,t){switch(e.RRNodeType){case V.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case V.DocumentType:{const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case V.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case V.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case V.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case V.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const kl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ri={};function Jp(e){var t,r;const i=(r=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(i&&globalThis[i])return globalThis[i]}function Ho(e){if(Ri[e])return Ri[e];const t=Jp(e)||globalThis[e],r=t.prototype,i=e in kl?kl[e]:void 0,s=!!(i&&i.every(c=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(r,c))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),n=e in Pl?Pl[e]:void 0,o=!!(n&&n.every(c=>{var l;return typeof r[c]=="function"&&((l=r[c])==null?void 0:l.toString().includes("[native code]"))}));if(s&&o)return Ri[e]=t.prototype,t.prototype;try{const c=document.createElement("iframe");document.body.appendChild(c);const l=c.contentWindow;if(!l)return t.prototype;const u=l[e].prototype;return document.body.removeChild(c),u?Ri[e]=u:r}catch(c){return r}}const Mn={};function Xt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Mn[s])return Mn[s].call(t);const n=Ho(e),o=(i=Object.getOwnPropertyDescriptor(n,r))==null?void 0:i.get;return o?(Mn[s]=o,o.call(t)):t[r]}const On={};function xc(e,t,r){const i=`${e}.${String(r)}`;if(On[i])return On[i].bind(t);const n=Ho(e)[r];return typeof n!="function"?t[r]:(On[i]=n,n.bind(t))}function Xp(e){return Xt("Node",e,"childNodes")}function Kp(e){return Xt("Node",e,"parentNode")}function Qp(e){return Xt("Node",e,"parentElement")}function Zp(e){return Xt("Node",e,"textContent")}function em(e,t){return xc("Node",e,"contains")(t)}function tm(e){return xc("Node",e,"getRootNode")()}function rm(e){return!e||!("host"in e)?null:Xt("ShadowRoot",e,"host")}function im(e){return e.styleSheets}function sm(e){return!e||!("shadowRoot"in e)?null:Xt("Element",e,"shadowRoot")}function nm(e,t){return Xt("Element",e,"querySelector")(t)}function om(e,t){return Xt("Element",e,"querySelectorAll")(t)}function am(){return Ho("MutationObserver").constructor}const lm={childNodes:Xp,parentNode:Kp,parentElement:Qp,textContent:Zp,contains:em,getRootNode:tm,host:rm,styleSheets:im,shadowRoot:sm,querySelector:nm,querySelectorAll:om,mutationObserver:am},_r=`Please stop import mirror directly. Instead of that,\r
68
68
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
69
- or you can use record.mirror to access the mirror instance during recording.`;let Il={map:{},getId(){return console.error(_r),-1},getNode(){return console.error(_r),null},removeNodeFromMap(){console.error(_r)},has(){return console.error(_r),!1},reset(){console.error(_r)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Il=new Proxy(Il,{get(e,t,r){return t==="map"&&console.error(_r),Reflect.get(e,t,r)}}));Date.now().toString();function um(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 cm(e){const t={},r=(s,n)=>{const o={value:s,parent:n,children:[]};return t[s.node.id]=o,o},i=[];for(const s of e){const{nextId:n,parentId:o}=s;if(n&&n in t){const u=t[n];if(u.parent){const a=u.parent.children.indexOf(u);u.parent.children.splice(a,0,r(s,u.parent))}else{const a=i.indexOf(u);i.splice(a,0,r(s,null))}continue}if(o in t){const u=t[o];u.children.push(r(s,u));continue}i.push(r(s,null))}return i}function Rc(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Rc(e.children[r],t)}function An(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Nc(e,t){var r,i;const s=(i=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:i.frameElement;if(!s||s===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const n=s.getBoundingClientRect(),o=Nc(s,t),u=n.height/s.clientHeight;return{x:n.x*o.relativeScale+o.x,y:n.y*o.relativeScale+o.y,relativeScale:u,absoluteScale:o.absoluteScale*u}}function Ni(e){return e?e instanceof dt&&"shadowRoot"in e?!!e.shadowRoot:!!lm.shadowRoot(e):!1}function Qr(e,t){const r=e[t[0]];return t.length===1?r:Qr(r.cssRules[t[1]].cssRules,t.slice(2))}function Ll(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function fm(e){const t=new Set,r=[];for(let i=e.length;i--;){const s=e[i];t.has(s.id)||(r.push(s),t.add(s.id))}return r}class hm{constructor(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(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 i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}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 le=(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))(le||{}),Q=(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))(Q||{}),_e=(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))(_e||{}),Hi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Hi||{}),no=(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))(no||{}),H=(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.SeekStart="seek-start",e.SeekEnd="seek-end",e))(H||{}),Ft=(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))(Ft||{}),Fl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Mi=0;Mi<Fl.length;Mi++)Zr[Fl.charCodeAt(Mi)]=Mi;var dm=function(e){var t=e.length*.75,r=e.length,i,s=0,n,o,u,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new ArrayBuffer(t),l=new Uint8Array(c);for(i=0;i<r;i+=4)n=Zr[e.charCodeAt(i)],o=Zr[e.charCodeAt(i+1)],u=Zr[e.charCodeAt(i+2)],a=Zr[e.charCodeAt(i+3)],l[s++]=n<<2|o>>4,l[s++]=(o&15)<<4|u>>2,l[s++]=(u&3)<<6|a&63;return c};const pm=`(function() {
69
+ or you can use record.mirror to access the mirror instance during recording.`;let Il={map:{},getId(){return console.error(_r),-1},getNode(){return console.error(_r),null},removeNodeFromMap(){console.error(_r)},has(){return console.error(_r),!1},reset(){console.error(_r)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Il=new Proxy(Il,{get(e,t,r){return t==="map"&&console.error(_r),Reflect.get(e,t,r)}}));Date.now().toString();function um(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 cm(e){const t={},r=(s,n)=>{const o={value:s,parent:n,children:[]};return t[s.node.id]=o,o},i=[];for(const s of e){const{nextId:n,parentId:o}=s;if(n&&n in t){const c=t[n];if(c.parent){const l=c.parent.children.indexOf(c);c.parent.children.splice(l,0,r(s,c.parent))}else{const l=i.indexOf(c);i.splice(l,0,r(s,null))}continue}if(o in t){const c=t[o];c.children.push(r(s,c));continue}i.push(r(s,null))}return i}function Rc(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Rc(e.children[r],t)}function An(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Nc(e,t){var r,i;const s=(i=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:i.frameElement;if(!s||s===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const n=s.getBoundingClientRect(),o=Nc(s,t),c=n.height/s.clientHeight;return{x:n.x*o.relativeScale+o.x,y:n.y*o.relativeScale+o.y,relativeScale:c,absoluteScale:o.absoluteScale*c}}function Ni(e){return e?e instanceof dt&&"shadowRoot"in e?!!e.shadowRoot:!!lm.shadowRoot(e):!1}function Qr(e,t){const r=e[t[0]];return t.length===1?r:Qr(r.cssRules[t[1]].cssRules,t.slice(2))}function Ll(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function fm(e){const t=new Set,r=[];for(let i=e.length;i--;){const s=e[i];t.has(s.id)||(r.push(s),t.add(s.id))}return r}class hm{constructor(){P(this,"id",1),P(this,"styleIDMap",new WeakMap),P(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 i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}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 re=(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))(re||{}),Q=(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))(Q||{}),_e=(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))(_e||{}),Hi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Hi||{}),no=(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))(no||{}),H=(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.SeekStart="seek-start",e.SeekEnd="seek-end",e))(H||{}),Ft=(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))(Ft||{}),Fl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Mi=0;Mi<Fl.length;Mi++)Zr[Fl.charCodeAt(Mi)]=Mi;var dm=function(e){var t=e.length*.75,r=e.length,i,s=0,n,o,c,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=new ArrayBuffer(t),a=new Uint8Array(u);for(i=0;i<r;i+=4)n=Zr[e.charCodeAt(i)],o=Zr[e.charCodeAt(i+1)],c=Zr[e.charCodeAt(i+2)],l=Zr[e.charCodeAt(i+3)],a[s++]=n<<2|o>>4,a[s++]=(o&15)<<4|c>>2,a[s++]=(c&3)<<6|l&63;return u};const pm=`(function() {
70
70
  "use strict";
71
71
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
72
72
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -141,7 +141,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
141
141
  };
142
142
  })();
143
143
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
144
- `;typeof self!="undefined"&&self.Blob&&new Blob([pm],{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=((ga=e.contentWindow)==null?void 0:ga.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}eo();class mm{constructor(t=10){I(this,"entries",[]),I(this,"maxEntries"),this.maxEntries=t}add(t,r,i){const s={type:le.FullSnapshot,data:{node:r,initialOffset:i},timestamp:t},n={timestamp:t,event:s};if(!this.entries.length||this.entries[this.entries.length-1].timestamp<t)this.entries.push(n);else{let o=0,u=this.entries.length-1;for(;o<=u;){const a=o+u>>>1;this.entries[a].timestamp<=t?o=a+1:u=a-1}o>0&&this.entries[o-1].timestamp===t?this.entries[o-1]=n:this.entries.splice(o,0,n)}this.entries.length>this.maxEntries&&this.entries.shift()}findBestFor(t,r){let i=0,s=this.entries.length-1,n=-1;for(;i<=s;){const o=i+s>>>1;this.entries[o].timestamp<=t?(n=o,i=o+1):s=o-1}if(n===-1)return null;for(let o=n;o>=0;o--)if(this.entries[o].timestamp>r)return this.entries[o];return null}clear(){this.entries=[]}get size(){return this.entries.length}getEntries(){return this.entries}}function Mc(e){return{all:e=e||new Map,on:function(t,r){var i=e.get(t);i?i.push(r):e.set(t,[r])},off:function(t,r){var i=e.get(t);i&&(r?i.splice(i.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var i=e.get(t);i&&i.slice().map(function(s){s(r)}),(i=e.get("*"))&&i.slice().map(function(s){s(t,r)})}}}const gm=Object.freeze(Object.defineProperty({__proto__:null,default:Mc},Symbol.toStringTag,{value:"Module"}));function vm(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,i=468,s={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||a,scrollIntoView:r.prototype.scrollIntoView},n=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(v){const w=["MSIE ","Trident/","Edge/"];return new RegExp(w.join("|")).test(v)}const u=o(e.navigator.userAgent)?1:0;function a(v,w){this.scrollLeft=v,this.scrollTop=w}function c(v){return .5*(1-Math.cos(Math.PI*v))}function l(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 h(v,w){if(w==="Y")return v.clientHeight+u<v.scrollHeight;if(w==="X")return v.clientWidth+u<v.scrollWidth}function f(v,w){const _=e.getComputedStyle(v,null)["overflow"+w];return _==="auto"||_==="scroll"}function d(v){const w=h(v,"Y")&&f(v,"Y"),_=h(v,"X")&&f(v,"X");return w||_}function m(v){for(;v!==t.body&&d(v)===!1;)v=v.parentNode||v.host;return v}function p(v){const w=n();let _,E,y,b=(w-v.startTime)/i;b=b>1?1:b,_=c(b),E=v.startX+(v.x-v.startX)*_,y=v.startY+(v.y-v.startY)*_,v.method.call(v.scrollable,E,y),(E!==v.x||y!==v.y)&&e.requestAnimationFrame(p.bind(e,v))}function g(v,w,_){let E,y,b,S;const C=n();v===t.body?(E=e,y=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,S=s.scroll):(E=v,y=v.scrollLeft,b=v.scrollTop,S=a),p({scrollable:E,method:S,startTime:C,startX:y,startY:b,x:w,y:_})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){s.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(l(arguments[0])){s.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(l(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.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,w=arguments[0].top;g.call(this,this,typeof v=="undefined"?this.scrollLeft:~~v,typeof w=="undefined"?this.scrollTop:~~w)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){s.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(l(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const v=m(this),w=v.getBoundingClientRect(),_=this.getBoundingClientRect();v!==t.body?(g.call(this,v,v.scrollLeft+_.left-w.left,v.scrollTop+_.top-w.top),e.getComputedStyle(v).position!=="fixed"&&e.scrollBy({left:w.left,top:w.top,behavior:"smooth"})):e.scrollBy({left:_.left,top:_.top,behavior:"smooth"})}}class ym{constructor(t=[],r){I(this,"timeOffset",0),I(this,"speed"),I(this,"actions"),I(this,"raf",null),I(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 i=this.findActionIndex(t);this.actions.splice(i,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,i=this.actions.length-1;for(;r<=i;){const s=Math.floor((r+i)/2);if(this.actions[s].delay<t.delay)r=s+1;else if(this.actions[s].delay>t.delay)i=s-1;else return s+1}return r}}function Ul(e,t){if(e.type===le.IncrementalSnapshot&&e.data.source===Q.MouseMove&&e.data.positions&&e.data.positions.length){const r=e.data.positions[0].timeOffset,i=e.timestamp+r;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
144
+ `;typeof self!="undefined"&&self.Blob&&new Blob([pm],{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=((ga=e.contentWindow)==null?void 0:ga.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}eo();class mm{constructor(t=10){P(this,"entries",[]),P(this,"maxEntries"),this.maxEntries=t}add(t,r,i){const s={type:re.FullSnapshot,data:{node:r,initialOffset:i},timestamp:t},n={timestamp:t,event:s};if(!this.entries.length||this.entries[this.entries.length-1].timestamp<t)this.entries.push(n);else{let o=0,c=this.entries.length-1;for(;o<=c;){const l=o+c>>>1;this.entries[l].timestamp<=t?o=l+1:c=l-1}o>0&&this.entries[o-1].timestamp===t?this.entries[o-1]=n:this.entries.splice(o,0,n)}this.entries.length>this.maxEntries&&this.entries.shift()}findBestFor(t,r){let i=0,s=this.entries.length-1,n=-1;for(;i<=s;){const o=i+s>>>1;this.entries[o].timestamp<=t?(n=o,i=o+1):s=o-1}if(n===-1)return null;for(let o=n;o>=0;o--)if(this.entries[o].timestamp>r)return this.entries[o];return null}clear(){this.entries=[]}get size(){return this.entries.length}getEntries(){return this.entries}}function Mc(e){return{all:e=e||new Map,on:function(t,r){var i=e.get(t);i?i.push(r):e.set(t,[r])},off:function(t,r){var i=e.get(t);i&&(r?i.splice(i.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var i=e.get(t);i&&i.slice().map(function(s){s(r)}),(i=e.get("*"))&&i.slice().map(function(s){s(t,r)})}}}const gm=Object.freeze(Object.defineProperty({__proto__:null,default:Mc},Symbol.toStringTag,{value:"Module"}));function vm(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,i=468,s={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||l,scrollIntoView:r.prototype.scrollIntoView},n=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function o(w){const g=["MSIE ","Trident/","Edge/"];return new RegExp(g.join("|")).test(w)}const c=o(e.navigator.userAgent)?1:0;function l(w,g){this.scrollLeft=w,this.scrollTop=g}function u(w){return .5*(1-Math.cos(Math.PI*w))}function a(w){if(w===null||typeof w!="object"||w.behavior===void 0||w.behavior==="auto"||w.behavior==="instant")return!0;if(typeof w=="object"&&w.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+w.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(w,g){if(g==="Y")return w.clientHeight+c<w.scrollHeight;if(g==="X")return w.clientWidth+c<w.scrollWidth}function f(w,g){const _=e.getComputedStyle(w,null)["overflow"+g];return _==="auto"||_==="scroll"}function h(w){const g=d(w,"Y")&&f(w,"Y"),_=d(w,"X")&&f(w,"X");return g||_}function p(w){for(;w!==t.body&&h(w)===!1;)w=w.parentNode||w.host;return w}function m(w){const g=n();let _,S,v,b=(g-w.startTime)/i;b=b>1?1:b,_=u(b),S=w.startX+(w.x-w.startX)*_,v=w.startY+(w.y-w.startY)*_,w.method.call(w.scrollable,S,v),(S!==w.x||v!==w.y)&&e.requestAnimationFrame(m.bind(e,w))}function y(w,g,_){let S,v,b,E;const C=n();w===t.body?(S=e,v=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,E=s.scroll):(S=w,v=w.scrollLeft,b=w.scrollTop,E=l),m({scrollable:S,method:E,startTime:C,startX:v,startY:b,x:g,y:_})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(a(arguments[0])===!0){s.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}y.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(a(arguments[0])){s.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}y.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(a(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.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 w=arguments[0].left,g=arguments[0].top;y.call(this,this,typeof w=="undefined"?this.scrollLeft:~~w,typeof g=="undefined"?this.scrollTop:~~g)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(a(arguments[0])===!0){s.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(a(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const w=p(this),g=w.getBoundingClientRect(),_=this.getBoundingClientRect();w!==t.body?(y.call(this,w,w.scrollLeft+_.left-g.left,w.scrollTop+_.top-g.top),e.getComputedStyle(w).position!=="fixed"&&e.scrollBy({left:g.left,top:g.top,behavior:"smooth"})):e.scrollBy({left:_.left,top:_.top,behavior:"smooth"})}}class ym{constructor(t=[],r){P(this,"timeOffset",0),P(this,"speed"),P(this,"actions"),P(this,"actionIndex",0),P(this,"raf",null),P(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(this.actionIndex>=this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const i=this.findActionIndex(t);this.actions.splice(i,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.actionIndex<this.actions.length;){const r=this.actions[this.actionIndex];if(this.timeOffset>=r.delay)this.actionIndex++,r.doAction();else break}this.actionIndex<this.actions.length?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,this.actionIndex=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=this.actionIndex,i=this.actions.length-1;for(;r<=i;){const s=Math.floor((r+i)/2);if(this.actions[s].delay<t.delay)r=s+1;else if(this.actions[s].delay>t.delay)i=s-1;else return s+1}return r}}function Ul(e,t){if(e.type===re.IncrementalSnapshot&&e.data.source===Q.MouseMove&&e.data.positions&&e.data.positions.length){const r=e.data.positions[0].timeOffset,i=e.timestamp+r;return e.delay=i-t,i-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
145
145
  Copyright (c) Microsoft Corporation.
146
146
 
147
147
  Permission to use, copy, modify, and/or distribute this software for any
@@ -154,7 +154,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
154
154
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
155
155
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
156
156
  PERFORMANCE OF THIS SOFTWARE.
157
- ***************************************************************************** */function Bl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i,s,n=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}var Mr;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Mr||(Mr={}));var Oc={type:"xstate.init"};function Dn(e){return e===void 0?[]:[].concat(e)}function Sr(e){return{type:"xstate.assign",assignment:e}}function $l(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 Yi(e){return function(t){return e===t}}function Ac(e){return typeof e=="string"?{type:e}:e}function Wl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Yi(e)}}function zl(e,t,r){var i=t,s=!1;return[e.filter((function(n){if(n.type==="xstate.assign"){s=!0;var o=Object.assign({},i);return typeof n.assignment=="function"?o=n.assignment(i,r):Object.keys(n.assignment).forEach((function(u){o[u]=typeof n.assignment[u]=="function"?n.assignment[u](i,r):n.assignment[u]})),i=o,!1}return!0})),i,s]}function Dc(e,t){t===void 0&&(t={});var r=Bl(zl(Dn(e.states[e.initial].entry).map((function(o){return $l(o,t.actions)})),e.context,Oc),2),i=r[0],s=r[1],n={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:Yi(e.initial)},transition:function(o,u){var a,c,l=typeof o=="string"?{value:o,context:e.context}:o,h=l.value,f=l.context,d=Ac(u),m=e.states[h];if(m.on){var p=Dn(m.on[d.type]);try{for(var g=(function(U){var $=typeof Symbol=="function"&&Symbol.iterator,ge=$&&U[$],q=0;if(ge)return ge.call(U);if(U&&typeof U.length=="number")return{next:function(){return U&&q>=U.length&&(U=void 0),{value:U&&U[q++],done:!U}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")})(p),v=g.next();!v.done;v=g.next()){var w=v.value;if(w===void 0)return Wl(h,f);var _=typeof w=="string"?{target:w}:w,E=_.target,y=_.actions,b=y===void 0?[]:y,S=_.cond,C=S===void 0?function(){return!0}:S,O=E===void 0,N=E!=null?E:h,F=e.states[N];if(C(f,d)){var T=Bl(zl((O?Dn(b):[].concat(m.exit,b,F.entry).filter((function(U){return U}))).map((function(U){return $l(U,n._options.actions)})),f,d),3),x=T[0],oe=T[1],L=T[2],te=E!=null?E:h;return{value:te,context:oe,actions:x,changed:E!==h||x.length>0||L,matches:Yi(te)}}}}catch(U){a={error:U}}finally{try{v&&!v.done&&(c=g.return)&&c.call(g)}finally{if(a)throw a.error}}}return Wl(h,f)}};return n}var ql=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function Tc(e){var t=e.initialState,r=Mr.NotStarted,i=new Set,s={_machine:e,send:function(n){r===Mr.Running&&(t=e.transition(t,n),ql(t,Ac(n)),i.forEach((function(o){return o(t)})))},subscribe:function(n){return i.add(n),n(t),{unsubscribe:function(){return i.delete(n)}}},start:function(n){if(n){var o=typeof n=="object"?n:{context:e.config.context,value:n};t={value:o.value,actions:[],context:o.context,matches:Yi(o.value)}}return r=Mr.Running,ql(t,Oc),s},stop:function(){return r=Mr.Stopped,i.clear(),s},get state(){return t},get status(){return r}};return s}function Tn(e,t){return e===t?!0:e.timestamp===t.timestamp&&e.type===t.type?JSON.stringify(e)===JSON.stringify(t):!1}function wm(e,t){let r=0,i=e.length-1,s=-1;for(;r<=i;){const n=r+i>>>1;e[n].timestamp<=t?(s=n,r=n+1):i=n-1}for(let n=s;n>=0;n--)if(e[n].type===le.Meta)return e.slice(n);return e}function bm(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){const s=Dc({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:Sr({lastPlayedEvent:(n,o)=>o.type==="CAST_EVENT"?o.payload.event:n.lastPlayedEvent}),recordTimeOffset:Sr((n,o)=>{let u=n.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(u=o.payload.timeOffset),we(G({},n),{timeOffset:u,baselineTime:n.events[0].timestamp+u})}),play(n){var g;var o;const{timer:u,events:a,baselineTime:c,lastPlayedEvent:l}=n;u.clear();const h=wm(a,c);let f=l==null?void 0:l.timestamp;(l==null?void 0:l.type)===le.IncrementalSnapshot&&l.data.source===Q.MouseMove&&(f=l.timestamp+((o=l.data.positions[0])==null?void 0:o.timeOffset)),c<(f||0)&&i.emit(H.PlayBack);let d=h.length;{let v=0,w=h.length;for(;v<w;){const _=v+w>>>1;h[_].timestamp<c?v=_+1:w=_}d=v}let m=0;if(f&&f<c){let v=0,w=d;for(;v<w;){const _=v+w>>>1;h[_].timestamp<=f?v=_+1:w=_}m=v,m<d&&h[m]===l&&m++}for(let v=d;v<h.length;v++)Ul(h[v],c);const p=h.slice(m,d);for(let v=d;v<h.length;v++){const w=h[v],_=t(w,!1);u.addAction({doAction:()=>{_()},delay:(g=w.delay)!=null?g:0})}r(p),i.emit(H.Flush),u.start()},pause(n){n.timer.clear()},resetLastPlayedEvent:Sr(n=>we(G({},n),{lastPlayedEvent:null})),startLive:Sr({baselineTime:(n,o)=>(n.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Sr((n,o)=>{var l;const{baselineTime:u,timer:a,events:c}=n;if(o.type==="ADD_EVENT"){const{event:h}=o.payload;Ul(h,u);let f=c.length-1;if(!c[f]||c[f].timestamp<=h.timestamp){if(c[f]&&Tn(c[f],h))return we(G({},n),{events:c});c.push(h)}else{let p=-1,g=0;for(;g<=f;){const v=Math.floor((g+f)/2);c[v].timestamp<=h.timestamp?g=v+1:f=v-1}p===-1&&(p=g);for(let v=p-1;v>=0&&c[v].timestamp===h.timestamp;v--)if(Tn(c[v],h))return we(G({},n),{events:c});for(let v=p;v<c.length&&c[v].timestamp===h.timestamp;v++)if(Tn(c[v],h))return we(G({},n),{events:c});c.splice(p,0,h)}const d=h.timestamp<u,m=t(h,d);d?m():a.isActive()&&a.addAction({doAction:()=>{m()},delay:(l=h.delay)!=null?l:0})}return we(G({},n),{events:c})})}});return Tc(s)}function _m(e){const t=Dc({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,i)=>{"payload"in i&&r.timer.setSpeed(i.payload.speed)},recordSpeed:Sr({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Tc(t)}const jl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Vl=new Map;function kc(e,t){let r=Vl.get(e);return r||(r=new Map,Vl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function zt(e,t,r){return async i=>{if(i&&typeof i=="object"&&"rr_type"in i)if(r&&(r.isUnchanged=!1),i.rr_type==="ImageBitmap"&&"args"in i){const s=await zt(e,t,r)(i.args);return await createImageBitmap.apply(null,s)}else if("index"in i){if(r||t===null)return i;const{rr_type:s,index:n}=i;return kc(t,s)[n]}else if("args"in i){const{rr_type:s,args:n}=i,o=window[s];return new o(...await Promise.all(n.map(zt(e,t,r))))}else{if("base64"in i)return dm(i.base64);if("src"in i){const s=e.get(i.src);if(s)return s;{const n=new Image;return n.src=i.src,e.set(i.src,n),n}}else if("data"in i&&i.rr_type==="Blob"){const s=await Promise.all(i.data.map(zt(e,t,r)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(zt(e,t,r)));return i}}function Sm(e,t){try{return t===Hi.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const Em=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Cm(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Em.includes(r))return;const i=kc(e,r);i.includes(t)||i.push(t)}async function xm({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const n=Sm(t,r);if(!n)return;if(e.setter){n[e.property]=e.args[0];return}const o=n[e.property],u=await Promise.all(e.args.map(zt(i,n))),a=o.apply(n,u);Cm(n,a);const c=!1}catch(n){s(e,n)}}async function Rm({event:e,mutations:t,target:r,imageMap:i,errorHandler:s}){const n=r.getContext("2d");if(!n){s(t[0],new Error("Canvas context is null"));return}const o=t.map(async a=>Promise.all(a.args.map(zt(i,n))));(await Promise.all(o)).forEach((a,c)=>{const l=t[c];try{if(l.setter){n[l.property]=l.args[0];return}const h=n[l.property];l.property==="drawImage"&&typeof l.args[0]=="string"?(i.get(e),h.apply(n,l.args)):h.apply(n,a)}catch(h){s(l,h)}})}async function Gl({event:e,mutation:t,target:r,imageMap:i,canvasEventMap:s,errorHandler:n}){try{const o=s.get(e)||t,u="commands"in o?o.commands:[o];if([Hi.WebGL,Hi.WebGL2].includes(t.type)){for(let a=0;a<u.length;a++){const c=u[a];await xm({mutation:c,type:t.type,target:r,imageMap:i,errorHandler:n})}return}await Rm({event:e,mutations:u,target:r,imageMap:i,errorHandler:n})}catch(o){n(t,o)}}class Nm{constructor(t){I(this,"mediaMap",new Map),I(this,"warn"),I(this,"service"),I(this,"speedService"),I(this,"emitter"),I(this,"getCurrentTime"),I(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(H.Start,this.start.bind(this)),this.emitter.on(H.SkipStart,this.start.bind(this)),this.emitter.on(H.Pause,this.pause.bind(this)),this.emitter.on(H.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,i)=>{this.syncTargetWithState(i),t.pause&&i.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:i}){if(i.isPlaying){const n=(t-i.lastInteractionTimeOffset)/1e3*i.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let u=i.currentTimeAtLastInteraction+n;r.loop&&o!==!1&&(u=u%o),r.currentTime=u}else r.pause(),r.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const i=this.mediaMap.get(t);i&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:i})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:i}){var d,m,p,g,v;const s=this.mediaMap.get(t),{type:n,playbackRate:o,currentTime:u,muted:a,volume:c,loop:l}=i;return{isPlaying:n===no.Play||n!==no.Pause&&((s==null?void 0:s.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(d=u!=null?u:s==null?void 0:s.currentTimeAtLastInteraction)!=null?d:0,lastInteractionTimeOffset:r,playbackRate:(m=o!=null?o:s==null?void 0:s.playbackRate)!=null?m:1,volume:(p=c!=null?c:s==null?void 0:s.volume)!=null?p:1,muted:(g=a!=null?a:s==null?void 0:s.muted)!=null?g:t.getAttribute("muted")===null,loop:(v=l!=null?l:s==null?void 0:s.loop)!=null?v:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:i,loop:s,volume:n,isPlaying:o}=r,u=this.service.state.matches("paused"),a=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==n&&(t.volume=n),t.muted=i,t.loop=s,t.playbackRate!==a&&(t.playbackRate=a),o&&!u?t.play():t.pause()}catch(c){this.warn(`Failed to replay media interactions: ${c.message||c}`)}}addMediaElements(t,r,i){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;const s=t,n=i.getMeta(s);if(!n||!("attributes"in n))return;const o=this.service.state.matches("paused"),u=n.attributes;let a=!1;u.rr_mediaState?a=u.rr_mediaState==="played":a=s.getAttribute("autoplay")!==null,a&&o&&s.pause();let c=1;typeof u.rr_mediaPlaybackRate=="number"&&(c=u.rr_mediaPlaybackRate);let l=!1;typeof u.rr_mediaMuted=="boolean"?l=u.rr_mediaMuted:l=s.getAttribute("muted")!==null;let h=!1;typeof u.rr_mediaLoop=="boolean"?h=u.rr_mediaLoop:h=s.getAttribute("loop")!==null;let f=1;typeof u.rr_mediaVolume=="number"&&(f=u.rr_mediaVolume);let d=0;typeof u.rr_mediaCurrentTime=="number"&&(d=u.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:a,currentTimeAtLastInteraction:d,lastInteractionTimeOffset:r,playbackRate:c,volume:f,muted:l,loop:h}),this.syncTargetWithState(s)}mediaMutation({target:t,timeOffset:r,mutation:i}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:i})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}}function Oi(e,t){if(e.nodeName!=="DIALOG"||e instanceof dt)return;const r=e,i=r.open,s=i&&r.matches("dialog:modal"),n=r.getAttribute("rr_open_mode"),o=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=n==="modal";if(!(i&&!(s&&n==="non-modal"||!s&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}i&&r.close(),o&&(u?r.showModal():r.show())}}function Mm(e,t){if(e.nodeName!=="DIALOG"||e instanceof dt)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 Om=Mc||gm,Hl="[replayer]",Ai="__rrweb-injected-style__",kn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Yl(e){return e.type==le.IncrementalSnapshot&&(e.data.source==Q.TouchMove||e.data.source==Q.MouseInteraction&&e.data.type==_e.TouchStart)}class Am{constructor(t,r){if(I(this,"wrapper"),I(this,"iframe"),I(this,"service"),I(this,"speedService"),I(this,"config"),I(this,"usingVirtualDom",!1),I(this,"virtualDom",new zr),I(this,"mouse"),I(this,"mouseTail",null),I(this,"tailPositions",[]),I(this,"emitter",Om()),I(this,"nextUserInteractionEvent"),I(this,"legacy_missingNodeRetryMap",{}),I(this,"cache",tl()),I(this,"imageMap",new Map),I(this,"canvasEventMap",new Map),I(this,"mirror",eo()),I(this,"styleMirror",new hm),I(this,"mediaManager"),I(this,"firstFullSnapshot",null),I(this,"seekCache"),I(this,"newDocumentQueue",[]),I(this,"mousePos",null),I(this,"touchActive",null),I(this,"seekInProgress",!1),I(this,"pendingCaptureTimer",null),I(this,"lastMouseDownEvent",null),I(this,"lastHoveredRootNode"),I(this,"lastSelectionData",null),I(this,"constructedStyleMutations",[]),I(this,"adoptedStyleSheets",[]),I(this,"handleResize",u=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(u.width)),a.setAttribute("height",String(u.height)))}),I(this,"applyEventsSynchronously",u=>{var a;let c=0;if(this.config.useSeekCache&&u.length>0){const l=u.find(h=>h.type===le.FullSnapshot);if(l){const h=u[u.length-1].timestamp,f=this.seekCache.findBestFor(h,l.timestamp);if(f){const d=u.find(g=>g.type===le.Meta);d&&this.getCastFn(d,!0)(),this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(f.event,!0),this.firstFullSnapshot=!0,(a=this.iframe.contentWindow)==null||a.scrollTo(f.event.data.initialOffset);let m=0,p=u.length;for(;m<p;){const g=m+p>>>1;u[g].timestamp<=f.timestamp?m=g+1:p=g}c=m}}}for(let l=c;l<u.length;l++){const h=u[l];switch(h.type){case le.DomContentLoaded:case le.Load:case le.Custom:continue;case le.FullSnapshot:case le.Meta:case le.Plugin:case le.IncrementalSnapshot:break}this.getCastFn(h,!0)()}}),I(this,"getCastFn",(u,a=!1)=>{let c;switch(u.type){case le.DomContentLoaded:case le.Load:break;case le.Custom:c=()=>{this.emitter.emit(H.CustomEvent,u)};break;case le.Meta:c=()=>this.emitter.emit(H.Resize,{width:u.data.width,height:u.data.height});break;case le.FullSnapshot:c=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===u){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(u,a),(h=this.iframe.contentWindow)==null||h.scrollTo(u.data.initialOffset)};break;case le.IncrementalSnapshot:c=()=>{if(this.applyIncremental(u,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const h of this.service.state.context.events)if(!(h.timestamp<=u.timestamp)&&this.isUserInteraction(h)){h.delay-u.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-u.delay;this.playInternal(this.getCurrentTime()+h),this.nextUserInteractionEvent=null}}};break}return()=>{c&&c();for(const f of this.config.plugins||[])f.handler&&f.handler(u,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:u}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&u===this.service.state.context.events[h]){const f=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(H.Finish))};let d=50;u.type===le.IncrementalSnapshot&&u.data.source===Q.MouseMove&&u.data.positions.length&&(d+=Math.max(0,-u.data.positions[0].timeOffset)),setTimeout(f,d)}this.emitter.emit(H.EventCast,u)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const i={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:kn,useVirtualDom:!0,useSeekCache:!1,seekCacheMaxEntries:10,logger:console};this.config=Object.assign({},i,r),this.seekCache=new mm(this.config.seekCacheMaxEntries),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(H.Resize,this.handleResize),this.setupDom();for(const u of this.config.plugins||[])u.getMirror&&u.getMirror({nodeMirror:this.mirror});this.emitter.on(H.Flush,()=>{if(this.usingVirtualDom){const u={mirror:this.mirror,applyCanvas:(a,c,l)=>{Gl({event:a,mutation:c,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,c)=>{a.source===Q.StyleSheetRule?this.applyStyleSheetRule(a,c):a.source===Q.StyleDeclaration&&this.applyStyleDeclaration(a,c)},afterAppend:(a,c)=>{for(const l of this.config.plugins||[])l.onBuild&&l.onBuild(a,{id:c,replayer:this})}};if(this.iframe.contentDocument)try{Vi(this.iframe.contentDocument,this.virtualDom,u,this.virtualDom.mirror)}catch(a){console.warn(a)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const a in this.legacy_missingNodeRetryMap)try{const c=this.legacy_missingNodeRetryMap[a],l=Gi(c.node,this.mirror,this.virtualDom.mirror);Vi(l,c.node,u,this.virtualDom.mirror),c.node=l}catch(c){this.warn(c)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),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[u,a]=this.lastMouseDownEvent;u.dispatchEvent(a)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(H.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()}),this.emitter.on(H.Flush,()=>{if(this.seekInProgress){this.seekInProgress=!1;const u=this.getTimeOffset();this.emitter.emit(H.SeekEnd,{timeOffset:u})}if(this.config.useSeekCache){const u=this.service.state.context.baselineTime;this.pendingCaptureTimer!==null&&clearTimeout(this.pendingCaptureTimer),this.pendingCaptureTimer=setTimeout(()=>{this.pendingCaptureTimer=null,this.captureSeekCacheEntry(u)},0)}});const s=new ym([],{speed:this.config.speed});this.service=bm({events:t.map(u=>r&&r.unpackFn?r.unpackFn(u):u).sort((u,a)=>u.timestamp-a.timestamp),timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(u=>{this.emitter.emit(H.StateChange,{player:u})}),this.speedService=_m({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(u=>{this.emitter.emit(H.StateChange,{speed:u})}),this.mediaManager=new Nm({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const n=this.service.state.context.events.find(u=>u.type===le.Meta),o=this.service.state.context.events.find(u=>u.type===le.FullSnapshot);if(n){const{width:u,height:a}=n.data;setTimeout(()=>{this.emitter.emit(H.Resize,{width:u,height:a})},0)}o&&setTimeout(()=>{var u;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),(u=this.iframe.contentWindow)==null||u.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(Yl)&&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}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){this.seekInProgress=!0,this.emitter.emit(H.SeekStart,{timeOffset:t}),this.playInternal(t)}playInternal(t=0){var r,i;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}})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.remove("rrweb-paused"),this.emitter.emit(H.Start)}pause(t){var r,i;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.add("rrweb-paused"),this.emitter.emit(H.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(H.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(H.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;Yl(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=tl()}resetSeekCache(){this.seekCache.clear()}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&&(vm(this.iframe.contentWindow,this.iframe.contentDocument),um(this.iframe.contentWindow))}captureSeekCacheEntry(t){var o,u;if(!this.iframe.contentDocument||t<=0)return;const r=eo();this.mirror.getIds().forEach(a=>{const c=this.mirror.getNode(a);if(!c)return;const l=this.mirror.getMeta(c);l&&r.add(c,l)});const i=Pd(this.iframe.contentDocument,{mirror:r,blockClass:this.config.blockClass,inlineStylesheet:!0});if(!i)return;const s=this.iframe.contentDocument.scrollingElement||this.iframe.contentDocument.documentElement,n={top:(o=s==null?void 0:s.scrollTop)!=null?o:0,left:(u=s==null?void 0:s.scrollLeft)!=null?u:0};this.seekCache.add(t,i,n)}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 i=[],s=new Set,n=(a,c)=>{if(a.nodeName==="DIALOG"&&s.add(a),this.collectIframeAndAttachDocument(i,a),this.mediaManager.isSupportedMediaElement(a)){const{events:l}=this.service.state.context;this.mediaManager.addMediaElements(a,t.timestamp-l[0].timestamp,this.mirror)}for(const l of this.config.plugins||[])l.onBuild&&l.onBuild(a,{id:c,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),sp(t.data.node,{doc:this.iframe.contentDocument,afterAppend:n,cache:this.cache,mirror:this.mirror}),n(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:a,builtNode:c}of i)this.attachDocumentToIframe(a,c),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==a);const{documentElement:o,head:u}=this.iframe.contentDocument;this.insertStyleRules(o,u),s.forEach(a=>Oi(a)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(H.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var i;const s=jl(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&s.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!s.length)if(this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,so(n,this.virtualDom.unserializedId)),t.insertBefore(n,r),n.rules.push({source:Q.StyleSheetRule,adds:s.map((o,u)=>({rule:o,index:u}))})}else{const n=document.createElement("style");t.insertBefore(n,r);for(let o=0;o<s.length;o++)(i=n.sheet)==null||i.insertRule(s[o],o)}}isShadowRoot(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}insertStyleRulesIntoShadowRoot(t){var s;var r;const i=jl(this.config.blockClass).concat(this.config.insertStyleRules);if(i.length){if(this.usingVirtualDom&&t.getAttribute("id")!==Ai){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,so(n,this.virtualDom.unserializedId)),n.setAttribute("id",Ai),t.insertBefore(n,t.firstChild||null),n.rules.push({source:Q.StyleSheetRule,adds:i.map((o,u)=>({rule:o,index:u}))})}else if(this.isShadowRoot(t)&&!t.getElementById(Ai)){const n=document.createElement("style");n.id=Ai,t.insertBefore(n,(s=t.firstChild)!=null?s:null);for(let o=0;o<i.length;o++)(r=n.sheet)==null||r.insertRule(i[o],o)}}}attachDocumentToIframe(t,r){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],n=new Set,o=(a,c)=>{a.nodeName==="DIALOG"&&n.add(a),this.collectIframeAndAttachDocument(s,a);const l=i.getMeta(a);if((l==null?void 0:l.type)===Ft.Element&&(l==null?void 0:l.tagName.toUpperCase())==="HTML"){if(!r.contentDocument)return;const{documentElement:h,head:f}=r.contentDocument;this.insertStyleRules(h,f)}if(!this.usingVirtualDom)for(const h of this.config.plugins||[])h.onBuild&&h.onBuild(a,{id:c,replayer:this})},u=r.contentDocument;if(u){ii(t.node,{doc:u,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(u,t.node.id);for(const{mutationInQueue:a,builtNode:c}of s)this.attachDocumentToIframe(a,c),this.newDocumentQueue=this.newDocumentQueue.filter(l=>l!==a);n.forEach(a=>Oi(a))}}collectIframeAndAttachDocument(t,r){if(An(r,this.mirror)){const i=this.newDocumentQueue.find(s=>s.parentId===this.mirror.getId(r));i&&t.push({mutationInQueue:i,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const i=new Set;let s,n=this.service.state;const o=()=>{n=this.service.state};this.emitter.on(H.Start,o),this.emitter.on(H.Pause,o);const u=()=>{this.emitter.off(H.Start,o),this.emitter.off(H.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(a=>{a.sheet||(i.add(a),a.addEventListener("load",()=>{i.delete(a),i.size===0&&s!==-1&&(n.matches("playing")&&this.playInternal(this.getCurrentTime()),this.emitter.emit(H.LoadStylesheetEnd),s&&clearTimeout(s),u())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(H.LoadStylesheetStart),s=setTimeout(()=>{n.matches("playing")&&this.playInternal(this.getCurrentTime()),s=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===le.IncrementalSnapshot&&r.data.source===Q.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(s=>{this.preloadImages(s,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const i=document.createElement("canvas"),s=i.getContext("2d"),n=s==null?void 0:s.createImageData(i.width,i.height);n&&(s==null||s.putImageData(n,0,0))}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const i={isUnchanged:!0};if("commands"in t){const s=await Promise.all(t.commands.map(async n=>{const o=await Promise.all(n.args.map(zt(this.imageMap,null,i)));return we(G({},n),{args:o})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,we(G({},t),{commands:s}))}else{const s=await Promise.all(t.args.map(zt(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(r,we(G({},t),{args:s}))}}}applyIncremental(t,r){var i,s,n;const{data:o}=t;switch(o.source){case Q.Mutation:{try{this.applyMutation(o,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,o)}break}case Q.Drag:case Q.TouchMove:case Q.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 a={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,o)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(a)}),this.timer.addAction({doAction(){},delay:t.delay-((i=o.positions[0])==null?void 0:i.timeOffset)});break;case Q.MouseInteraction:{if(o.id===-1)break;const u=new Event(hi(_e[o.type])),a=this.mirror.getNode(o.id);if(!a)return this.debugNodeNotFound(o,o.id);this.emitter.emit(H.MouseInteraction,{type:o.type,target:a});const{triggerFocus:c}=this.config;switch(o.type){case _e.Blur:"blur"in a&&a.blur();break;case _e.Focus:c&&a.focus&&a.focus({preventScroll:!0});break;case _e.Click:case _e.TouchStart:case _e.TouchEnd:case _e.MouseDown:case _e.MouseUp:r?(o.type===_e.TouchStart?this.touchActive=!0:o.type===_e.TouchEnd&&(this.touchActive=!1),o.type===_e.MouseDown?this.lastMouseDownEvent=[a,u]:o.type===_e.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===_e.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===_e.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===_e.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===_e.TouchEnd?this.mouse.classList.remove("touch-active"):a.dispatchEvent(u));break;case _e.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:a.dispatchEvent(u)}break}case Q.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 Q.ViewportResize:this.emitter.emit(H.Resize,{width:o.width,height:o.height});break;case Q.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 Q.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 a=u,{events:c}=this.service.state.context;this.mediaManager.mediaMutation({target:a,timeOffset:t.timestamp-c[0].timestamp,mutation:o});break}case Q.StyleSheetRule:case Q.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((s=this.virtualDom.mirror.getNode(o.id))==null||s.rules.push(o)):this.applyStyleSheetMutation(o);break}case Q.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);Gl({event:t,mutation:o,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case Q.Font:{try{const u=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(n=this.iframe.contentDocument)==null||n.fonts.add(u)}catch(u){this.warn(u)}break}case Q.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case Q.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r){if(this.usingVirtualDom=!0,!this.iframe.contentDocument)return;if(Gp(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length)for(const c in this.legacy_missingNodeRetryMap)try{const l=this.legacy_missingNodeRetryMap[c],h=Cc(l.node,this.virtualDom,this.mirror);h&&(l.node=h)}catch(l){this.warn(l)}}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(c=>i.getNode(c.id)?!0:(this.warnNodeNotFound(t,c.id),!1)),t.removes.forEach(c=>{var l;const h=i.getNode(c.id);if(!h)return;let f=i.getNode(c.parentId);if(!f)return this.warnNodeNotFound(t,c.parentId);if(c.isShadow&&Ni(f)&&(f=f.shadowRoot),i.removeNodeFromMap(h),f)try{f.removeChild(h),this.usingVirtualDom&&h.nodeName==="#text"&&f.nodeName==="STYLE"&&((l=f.rules)==null?void 0:l.length)>0&&(f.rules=[])}catch(d){if(d instanceof DOMException)this.warn("parent could not remove child in mutation",f,h,t);else throw d}});const s=G({},this.legacy_missingNodeRetryMap),n=[],o=c=>{let l=null;return c.nextId&&(l=i.getNode(c.nextId)),c.nextId!==null&&c.nextId!==void 0&&c.nextId!==-1&&!l},u=c=>{var l,h;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let f=i.getNode(c.parentId);if(!f)return c.node.type===Ft.Document?this.newDocumentQueue.push(c):n.push(c);c.node.isShadow&&(Ni(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot,this.insertStyleRulesIntoShadowRoot(f));let d=null,m=null;if(c.previousId&&(d=i.getNode(c.previousId)),c.nextId&&(m=i.getNode(c.nextId)),o(c))return n.push(c);if(c.node.rootId&&!i.getNode(c.node.rootId))return;const p=c.node.rootId?i.getNode(c.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(An(f,i)){this.attachDocumentToIframe(c,f);return}const g=(_,E)=>{if(!this.usingVirtualDom){Oi(_);for(const y of this.config.plugins||[])y.onBuild&&y.onBuild(_,{id:E,replayer:this})}},v=ii(c.node,{doc:p,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(c.previousId===-1||c.nextId===-1){s[c.node.id]={node:v,mutation:c};return}const w=i.getMeta(f);if(w&&w.type===Ft.Element&&c.node.type===Ft.Text){const _=Array.isArray(f.childNodes)?f.childNodes:Array.from(f.childNodes);if(w.tagName==="textarea")for(const E of _)E.nodeType===f.TEXT_NODE&&f.removeChild(E);else if(w.tagName==="style"&&_.length===1)for(const E of _)E.nodeType===f.TEXT_NODE&&!i.hasNode(E)&&(v.textContent=E.textContent,f.removeChild(E))}else if((w==null?void 0:w.type)===Ft.Document){const _=f;c.node.type===Ft.DocumentType&&((l=_.childNodes[0])==null?void 0:l.nodeType)===Node.DOCUMENT_TYPE_NODE&&_.removeChild(_.childNodes[0]),v.nodeName==="HTML"&&_.documentElement&&_.removeChild(_.documentElement)}if(d&&d.nextSibling&&d.nextSibling.parentNode?f.insertBefore(v,d.nextSibling):m&&m.parentNode?f.contains(m)?f.insertBefore(v,m):f.insertBefore(v,null):f.appendChild(v),g(v,c.node.id),this.usingVirtualDom&&v.nodeName==="#text"&&f.nodeName==="STYLE"&&((h=f.rules)==null?void 0:h.length)>0&&(f.rules=[]),An(v,this.mirror)){const _=this.mirror.getId(v),E=this.newDocumentQueue.find(y=>y.parentId===_);E&&(this.attachDocumentToIframe(E,v),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==E))}(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(s,f,v,c)};t.adds.forEach(c=>{u(c)});const a=Date.now();for(;n.length;){const c=cm(n);if(n.length=0,Date.now()-a>500){this.warn("Timeout in the loop, please check the resolve tree data:",c);break}for(const l of c)i.getNode(l.value.parentId)?Rc(l,f=>{u(f)}):this.debug("Drop resolve tree since there is no parent for the root node.",l)}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),fm(t.texts).forEach(c=>{var l;const h=i.getNode(c.id);if(!h)return t.removes.find(d=>d.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);const f=h.parentElement;if(c.value&&f&&f.tagName==="STYLE"?h.textContent=hs(c.value,this.cache):h.textContent=c.value,this.usingVirtualDom){const d=h.parentNode;((l=d==null?void 0:d.rules)==null?void 0:l.length)>0&&(d.rules=[])}}),t.attributes.forEach(c=>{var l;const h=i.getNode(c.id);if(!h)return t.removes.find(f=>f.id===c.id)?void 0:this.warnNodeNotFound(t,c.id);for(const f in c.attributes)if(typeof f=="string"){const d=c.attributes[f];if(d===null)h.removeAttribute(f),f==="open"&&Mm(h,c);else if(typeof d=="string")try{if(f==="_cssText"&&(h.nodeName==="LINK"||h.nodeName==="STYLE"))try{const m=i.getMeta(h);Object.assign(m.attributes,c.attributes);const p=ii(m,{doc:h.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),g=h.nextSibling,v=h.parentNode;if(p&&v){v.removeChild(h),v.insertBefore(p,g),i.replace(c.id,p);break}}catch(m){}if(f==="value"&&h.nodeName==="TEXTAREA"){const m=h;m.childNodes.forEach(g=>m.removeChild(g));const p=(l=h.ownerDocument)==null?void 0:l.createTextNode(d);p&&m.appendChild(p)}else h.setAttribute(f,d);f==="rr_open_mode"&&h.nodeName==="DIALOG"&&Oi(h,c)}catch(m){this.warn("An error occurred may due to the checkout feature.",m)}else if(f==="style"){const m=d,p=h;for(const g in m)if(m[g]===!1)p.style.removeProperty(g);else if(m[g]instanceof Array){const v=m[g];p.style.setProperty(g,v[0],v[1])}else{const v=m[g];p.style.setProperty(g,v)}}}})}applyScroll(t,r){var i,s;const n=this.mirror.getNode(t.id);if(!n)return this.debugNodeNotFound(t,t.id);const o=this.mirror.getMeta(n);if(n===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((o==null?void 0:o.type)===Ft.Document)(s=n.defaultView)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{n.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(i){}}applySelection(t){try{const r=new Set,i=t.ranges.map(({start:s,startOffset:n,end:o,endOffset:u})=>{const a=this.mirror.getNode(s),c=this.mirror.getNode(o);if(!a||!c)return;const l=new Range;l.setStart(a,n),l.setEnd(c,u);const h=a.ownerDocument,f=h==null?void 0:h.getSelection();return f&&r.add(f),{range:l,selection:f}});r.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var n;return s&&((n=s.selection)==null?void 0:n.addRange(s.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let i=null;t.styleId?i=this.styleMirror.getStyle(t.styleId):t.id&&(i=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),i&&(t.source===Q.StyleSheetRule?this.applyStyleSheetRule(t,i):t.source===Q.StyleDeclaration&&this.applyStyleDeclaration(t,i))}applyStyleSheetRule(t,r){var i,s,n,o;if((i=t.adds)==null||i.forEach(({rule:u,index:a})=>{try{if(Array.isArray(a)){const{positions:c,index:l}=Ll(a);Qr(r.cssRules,c).insertRule(u,l)}else{const c=a===void 0?void 0:Math.min(a,r.cssRules.length);r==null||r.insertRule(u,c)}}catch(c){}}),(s=t.removes)==null||s.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:a,index:c}=Ll(u);Qr(r.cssRules,a).deleteRule(c||0)}else r==null||r.deleteRule(u)}catch(a){}}),t.replace)try{(n=r.replace)==null||n.call(r,t.replace)}catch(u){}if(t.replaceSync)try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch(u){}}applyStyleDeclaration(t,r){t.set&&Qr(r.rules,t.index).style.setProperty(t.set.property,t.set.value,t.set.priority),t.remove&&Qr(r.rules,t.index).style.removeProperty(t.remove.property)}applyAdoptedStyleSheet(t){var r;const i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(u=>{var a;let c=null,l=null;if(Ni(i)?l=((a=i.ownerDocument)==null?void 0:a.defaultView)||null:i.nodeName==="#document"&&(l=i.defaultView),!!l)try{c=new l.CSSStyleSheet,this.styleMirror.add(c,u.styleId),this.applyStyleSheetRule({source:Q.StyleSheetRule,adds:u.rules},c)}catch(h){}});const s=10;let n=0;const o=(u,a)=>{const c=a.map(l=>this.styleMirror.getStyle(l)).filter(l=>l!==null);Ni(u)?u.shadowRoot.adoptedStyleSheets=c:u.nodeName==="#document"&&(u.adoptedStyleSheets=c),c.length!==a.length&&n<s&&(setTimeout(()=>o(u,a),0+100*n),n++)};o(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){const{previousId:n,nextId:o}=s,u=n&&t[n],a=o&&t[o];if(u){const{node:c,mutation:l}=u;r.insertBefore(c,i),delete t[l.node.id],delete this.legacy_missingNodeRetryMap[l.node.id],(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(t,r,c,l)}if(a){const{node:c,mutation:l}=a;r.insertBefore(c,i.nextSibling),delete t[l.node.id],delete this.legacy_missingNodeRetryMap[l.node.id],(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(t,r,c,l)}}moveAndHover(t,r,i,s,n){const o=this.mirror.getNode(i);if(!o)return this.debugNodeNotFound(n,i);const u=Nc(o,this.iframe),a=t*u.absoluteScale+u.x,c=r*u.absoluteScale+u.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${c}px`,s||this.drawMouseTail({x:a,y:c}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:i,strokeStyle:s,duration:n}=this.config.mouseTail===!0?kn:Object.assign({},kn,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=i,u.lineCap=r,u.strokeStyle=s,u.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(a=>u.lineTo(a.x,a.y)),u.stroke())};this.tailPositions.push(t),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(u=>u!==t),o()},n/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(s=>{s.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let i=t;for(;i;)i.classList&&i.classList.add(":hover"),i=i.parentElement}isUserInteraction(t){return t.type!==le.IncrementalSnapshot?!1:t.data.source>Q.Mutation&&t.data.source<=Q.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(H.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(Hl,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Hl,...t)}}var Ke=Uint8Array,qt=Uint16Array,oo=Uint32Array,Pc=new Ke([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]),Ic=new Ke([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]),Dm=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Lc=function(e,t){for(var r=new qt(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var s=new oo(r[30]),i=1;i<30;++i)for(var n=r[i];n<r[i+1];++n)s[n]=n-r[i]<<5|i;return[r,s]},Fc=Lc(Pc,2),Uc=Fc[0],Tm=Fc[1];Uc[28]=258,Tm[258]=28;var km=Lc(Ic,0),Pm=km[0],ao=new qt(32768);for(var he=0;he<32768;++he){var It=(he&43690)>>>1|(he&21845)<<1;It=(It&52428)>>>2|(It&13107)<<2,It=(It&61680)>>>4|(It&3855)<<4,ao[he]=((It&65280)>>>8|(It&255)<<8)>>>1}var si=(function(e,t,r){for(var i=e.length,s=0,n=new qt(t);s<i;++s)++n[e[s]-1];var o=new qt(t);for(s=0;s<t;++s)o[s]=o[s-1]+n[s-1]<<1;var u;if(r){u=new qt(1<<t);var a=15-t;for(s=0;s<i;++s)if(e[s])for(var c=s<<4|e[s],l=t-e[s],h=o[e[s]-1]++<<l,f=h|(1<<l)-1;h<=f;++h)u[ao[h]>>>a]=c}else for(u=new qt(i),s=0;s<i;++s)u[s]=ao[o[e[s]-1]++]>>>15-e[s];return u}),mi=new Ke(288);for(var he=0;he<144;++he)mi[he]=8;for(var he=144;he<256;++he)mi[he]=9;for(var he=256;he<280;++he)mi[he]=7;for(var he=280;he<288;++he)mi[he]=8;var Bc=new Ke(32);for(var he=0;he<32;++he)Bc[he]=5;var Im=si(mi,9,1),Lm=si(Bc,5,1),Pn=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},rt=function(e,t,r){var i=t/8>>0;return(e[i]|e[i+1]<<8)>>>(t&7)&r},In=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},Fm=function(e){return(e/8>>0)+(e&7&&1)},$c=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var i=new(e instanceof qt?qt:e instanceof oo?oo:Ke)(r-t);return i.set(e.subarray(t,r)),i},Um=function(e,t,r){var i=e.length,s=!t||r,n=!r||r.i;r||(r={}),t||(t=new Ke(i*3));var o=function(j){var ee=t.length;if(j>ee){var P=new Ke(Math.max(ee*2,j));P.set(t),t=P}},u=r.f||0,a=r.p||0,c=r.b||0,l=r.l,h=r.d,f=r.m,d=r.n,m=i*8;do{if(!l){r.f=u=rt(e,a,1);var p=rt(e,a+1,3);if(a+=3,p)if(p==1)l=Im,h=Lm,f=9,d=5;else if(p==2){var _=rt(e,a,31)+257,E=rt(e,a+10,15)+4,y=_+rt(e,a+5,31)+1;a+=14;for(var b=new Ke(y),S=new Ke(19),C=0;C<E;++C)S[Dm[C]]=rt(e,a+C*3,7);a+=E*3;var O=Pn(S),N=(1<<O)-1;if(!n&&a+y*(O+7)>m)break;for(var F=si(S,O,1),C=0;C<y;){var T=F[rt(e,a,N)];a+=T&15;var g=T>>>4;if(g<16)b[C++]=g;else{var x=0,oe=0;for(g==16?(oe=3+rt(e,a,3),a+=2,x=b[C-1]):g==17?(oe=3+rt(e,a,7),a+=3):g==18&&(oe=11+rt(e,a,127),a+=7);oe--;)b[C++]=x}}var L=b.subarray(0,_),te=b.subarray(_);f=Pn(L),d=Pn(te),l=si(L,f,1),h=si(te,d,1)}else throw"invalid block type";else{var g=Fm(a)+4,v=e[g-4]|e[g-3]<<8,w=g+v;if(w>i){if(n)throw"unexpected EOF";break}s&&o(c+v),t.set(e.subarray(g,w),c),r.b=c+=v,r.p=a=w*8;continue}if(a>m)throw"unexpected EOF"}s&&o(c+131072);for(var U=(1<<f)-1,$=(1<<d)-1,ge=f+d+18;n||a+ge<m;){var x=l[In(e,a)&U],q=x>>>4;if(a+=x&15,a>m)throw"unexpected EOF";if(!x)throw"invalid length/literal";if(q<256)t[c++]=q;else if(q==256){l=null;break}else{var W=q-254;if(q>264){var C=q-257,Ce=Pc[C];W=rt(e,a,(1<<Ce)-1)+Uc[C],a+=Ce}var A=h[In(e,a)&$],be=A>>>4;if(!A)throw"invalid distance";a+=A&15;var te=Pm[be];if(be>3){var Ce=Ic[be];te+=In(e,a)&(1<<Ce)-1,a+=Ce}if(a>m)throw"unexpected EOF";s&&o(c+131072);for(var k=c+W;c<k;c+=4)t[c]=t[c-te],t[c+1]=t[c+1-te],t[c+2]=t[c+2-te],t[c+3]=t[c+3-te];c=k}}r.l=l,r.p=a,r.b=c,l&&(u=1,r.m=f,r.d=h,r.n=d)}while(!u);return c==t.length?t:$c(t,0,c)},Bm=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 $m(e,t){return Um((Bm(e),e.subarray(2,-4)),t)}function Wm(e,t){for(var r=e.length,i=new Ke(e.length+(e.length>>>1)),s=0,n=function(c){i[s++]=c},o=0;o<r;++o){if(s+5>i.length){var u=new Ke(s+8+(r-o<<1));u.set(i),i=u}var a=e.charCodeAt(o);n(a)}return $c(i,0,s)}function zm(e,t){var r="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);for(var i=0;i<e.length;){var s=e[i++];s<128||t?r+=String.fromCharCode(s):s<224?r+=String.fromCharCode((s&31)<<6|e[i++]&63):s<240?r+=String.fromCharCode((s&15)<<12|(e[i++]&63)<<6|e[i++]&63):(s=((s&15)<<18|(e[i++]&63)<<12|(e[i++]&63)<<6|e[i++]&63)-65536,r+=String.fromCharCode(55296|s>>10,56320|s&1023))}return r}const Jl="v1",qm=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(zm($m(Wm(e,!0))));if(t.v===Jl)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Jl}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};function Xl(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Gr(e,t=2){let r=String(e);const i=Math.pow(10,t-1);if(e<i)for(;String(i).length>r.length;)r=`0${e}`;return r}const Wc=1e3,lo=60*Wc,Kl=60*lo;function Di(e){if(e<=0)return"00:00";const t=Math.floor(e/Kl);e=e%Kl;const r=Math.floor(e/lo);e=e%lo;const i=Math.floor(e/Wc);return t?`${Gr(t)}:${Gr(r)}:${Gr(i)}`:`${Gr(r)}:${Gr(i)}`}function jm(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Vm(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function Ql(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function Gm(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 Zl(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 Hm(e){return e.type!==le.IncrementalSnapshot?!1:e.data.source>Q.Mutation&&e.data.source<=Q.Input}function Ym(e,t){const r=[];let i=e[0].timestamp;for(const s of e)Hm(s)&&(s.timestamp-i>t&&r.push([i,s.timestamp]),i=s.timestamp);return r}var zc=(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))(zc||{}),Jm=Wr('<div><input type="checkbox" class="svelte-184lr04"/> <label class="svelte-184lr04"></label> <span class="label svelte-184lr04"> </span></div>');function Xm(e,t){let r=pe(t,"disabled",8),i=pe(t,"checked",12),s=pe(t,"id",8),n=pe(t,"label",8);var o=Jm();let u;var a=nt(o);Ch(a);var c=Ge(a,2),l=Ge(c,2),h=nt(l,!0);st(l),st(o),xr(()=>{u=Qn(o,1,"switch svelte-184lr04",null,u,{disabled:r()}),nr(a,"id",s()),a.disabled=r(),nr(c,"for",s()),Li(h,n())}),Nh(a,i),Ct(e,o)}var Km=Wr("<div></div>"),Qm=Wr("<div></div>"),Zm=Ju(`<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" aria-label="Play"><path d="M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
157
+ ***************************************************************************** */function Bl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i,s,n=r.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}var Mr;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Mr||(Mr={}));var Oc={type:"xstate.init"};function Dn(e){return e===void 0?[]:[].concat(e)}function Sr(e){return{type:"xstate.assign",assignment:e}}function $l(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 Yi(e){return function(t){return e===t}}function Ac(e){return typeof e=="string"?{type:e}:e}function Wl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Yi(e)}}function zl(e,t,r){var i=t,s=!1;return[e.filter((function(n){if(n.type==="xstate.assign"){s=!0;var o=Object.assign({},i);return typeof n.assignment=="function"?o=n.assignment(i,r):Object.keys(n.assignment).forEach((function(c){o[c]=typeof n.assignment[c]=="function"?n.assignment[c](i,r):n.assignment[c]})),i=o,!1}return!0})),i,s]}function Dc(e,t){t===void 0&&(t={});var r=Bl(zl(Dn(e.states[e.initial].entry).map((function(o){return $l(o,t.actions)})),e.context,Oc),2),i=r[0],s=r[1],n={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:Yi(e.initial)},transition:function(o,c){var l,u,a=typeof o=="string"?{value:o,context:e.context}:o,d=a.value,f=a.context,h=Ac(c),p=e.states[d];if(p.on){var m=Dn(p.on[h.type]);try{for(var y=(function(U){var $=typeof Symbol=="function"&&Symbol.iterator,ge=$&&U[$],q=0;if(ge)return ge.call(U);if(U&&typeof U.length=="number")return{next:function(){return U&&q>=U.length&&(U=void 0),{value:U&&U[q++],done:!U}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),w=y.next();!w.done;w=y.next()){var g=w.value;if(g===void 0)return Wl(d,f);var _=typeof g=="string"?{target:g}:g,S=_.target,v=_.actions,b=v===void 0?[]:v,E=_.cond,C=E===void 0?function(){return!0}:E,O=S===void 0,N=S!=null?S:d,F=e.states[N];if(C(f,h)){var T=Bl(zl((O?Dn(b):[].concat(p.exit,b,F.entry).filter((function(U){return U}))).map((function(U){return $l(U,n._options.actions)})),f,h),3),x=T[0],ae=T[1],L=T[2],te=S!=null?S:d;return{value:te,context:ae,actions:x,changed:S!==d||x.length>0||L,matches:Yi(te)}}}}catch(U){l={error:U}}finally{try{w&&!w.done&&(u=y.return)&&u.call(y)}finally{if(l)throw l.error}}}return Wl(d,f)}};return n}var ql=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function Tc(e){var t=e.initialState,r=Mr.NotStarted,i=new Set,s={_machine:e,send:function(n){r===Mr.Running&&(t=e.transition(t,n),ql(t,Ac(n)),i.forEach((function(o){return o(t)})))},subscribe:function(n){return i.add(n),n(t),{unsubscribe:function(){return i.delete(n)}}},start:function(n){if(n){var o=typeof n=="object"?n:{context:e.config.context,value:n};t={value:o.value,actions:[],context:o.context,matches:Yi(o.value)}}return r=Mr.Running,ql(t,Oc),s},stop:function(){return r=Mr.Stopped,i.clear(),s},get state(){return t},get status(){return r}};return s}function wm(e){const t=[];for(let r=0;r<e.length;r++)e[r].type===re.Meta&&t.push({metaEventIndex:r,timestamp:e[r].timestamp});return t}function bm(e,t){if(e.length===0)return null;let r=0,i=e.length-1,s=null;for(;r<=i;){const n=Math.floor((r+i)/2);e[n].timestamp<=t?(s=e[n],r=n+1):i=n-1}return s}function Tn(e,t){return e===t?!0:e.timestamp===t.timestamp&&e.type===t.type?JSON.stringify(e)===JSON.stringify(t):!1}function _m(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){const s=Dc({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:Sr({lastPlayedEvent:(n,o)=>o.type==="CAST_EVENT"?o.payload.event:n.lastPlayedEvent}),recordTimeOffset:Sr((n,o)=>{let c=n.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(c=o.payload.timeOffset),we(G({},n),{timeOffset:c,baselineTime:n.events[0].timestamp+c})}),play(n){var y;var o;const{timer:c,events:l,baselineTime:u,lastPlayedEvent:a,checkpointIndex:d}=n;c.clear();const f=bm(d,u),h=f?f.metaEventIndex:0;let p=a==null?void 0:a.timestamp;(a==null?void 0:a.type)===re.IncrementalSnapshot&&a.data.source===Q.MouseMove&&(p=a.timestamp+((o=a.data.positions[0])==null?void 0:o.timeOffset)),u<(p||0)&&i.emit(H.PlayBack);const m=new Array;for(let w=h;w<l.length;w++){const g=l[w];if(!(p&&p<u&&(g.timestamp<=p||g===a)))if(g.timestamp<u)m.push(g);else{Ul(g,u);const _=t(g,!1);c.addAction({doAction:()=>{_()},delay:(y=g.delay)!=null?y:0})}}r(m),i.emit(H.Flush),c.start()},pause(n){n.timer.clear()},resetLastPlayedEvent:Sr(n=>we(G({},n),{lastPlayedEvent:null})),startLive:Sr({baselineTime:(n,o)=>(n.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Sr((n,o)=>{var d;const{baselineTime:c,timer:l,events:u,checkpointIndex:a}=n;if(o.type==="ADD_EVENT"){const{event:f}=o.payload;Ul(f,c);let h=u.length-1,p;if(!u[h]||u[h].timestamp<=f.timestamp){if(u[h]&&Tn(u[h],f))return we(G({},n),{events:u});u.push(f),p=u.length-1}else{let w=0;for(p=0;w<=h;){const g=Math.floor((w+h)/2);u[g].timestamp<=f.timestamp?w=g+1:h=g-1}p=w;for(let g=p-1;g>=0&&u[g].timestamp===f.timestamp;g--)if(Tn(u[g],f))return we(G({},n),{events:u});for(let g=p;g<u.length&&u[g].timestamp===f.timestamp;g++)if(Tn(u[g],f))return we(G({},n),{events:u});u.splice(p,0,f)}if(f.type===re.Meta){const w={metaEventIndex:p,timestamp:f.timestamp},g=a[a.length-1];if(!g||g.timestamp<=f.timestamp)a.push(w);else{for(const v of a)v.metaEventIndex>=p&&v.metaEventIndex++;let _=0,S=a.length-1;for(;_<=S;){const v=Math.floor((_+S)/2);a[v].timestamp<=f.timestamp?_=v+1:S=v-1}a.splice(_,0,w)}}else if(p<u.length-1)for(const w of a)w.metaEventIndex>=p&&w.metaEventIndex++;const m=f.timestamp<c,y=t(f,m);m?y():l.isActive()&&l.addAction({doAction:()=>{y()},delay:(d=f.delay)!=null?d:0})}return we(G({},n),{events:u,checkpointIndex:a})})}});return Tc(s)}function Sm(e){const t=Dc({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,i)=>{"payload"in i&&r.timer.setSpeed(i.payload.speed)},recordSpeed:Sr({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Tc(t)}const jl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Vl=new Map;function kc(e,t){let r=Vl.get(e);return r||(r=new Map,Vl.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function zt(e,t,r){return async i=>{if(i&&typeof i=="object"&&"rr_type"in i)if(r&&(r.isUnchanged=!1),i.rr_type==="ImageBitmap"&&"args"in i){const s=await zt(e,t,r)(i.args);return await createImageBitmap.apply(null,s)}else if("index"in i){if(r||t===null)return i;const{rr_type:s,index:n}=i;return kc(t,s)[n]}else if("args"in i){const{rr_type:s,args:n}=i,o=window[s];return new o(...await Promise.all(n.map(zt(e,t,r))))}else{if("base64"in i)return dm(i.base64);if("src"in i){const s=e.get(i.src);if(s)return s;{const n=new Image;return n.src=i.src,e.set(i.src,n),n}}else if("data"in i&&i.rr_type==="Blob"){const s=await Promise.all(i.data.map(zt(e,t,r)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(zt(e,t,r)));return i}}function Em(e,t){try{return t===Hi.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const Cm=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function xm(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!Cm.includes(r))return;const i=kc(e,r);i.includes(t)||i.push(t)}async function Rm({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const n=Em(t,r);if(!n)return;if(e.setter){n[e.property]=e.args[0];return}const o=n[e.property],c=await Promise.all(e.args.map(zt(i,n))),l=o.apply(n,c);xm(n,l);const u=!1}catch(n){s(e,n)}}async function Nm({event:e,mutations:t,target:r,imageMap:i,errorHandler:s}){const n=r.getContext("2d");if(!n){s(t[0],new Error("Canvas context is null"));return}const o=t.map(async l=>Promise.all(l.args.map(zt(i,n))));(await Promise.all(o)).forEach((l,u)=>{const a=t[u];try{if(a.setter){n[a.property]=a.args[0];return}const d=n[a.property];a.property==="drawImage"&&typeof a.args[0]=="string"?(i.get(e),d.apply(n,a.args)):d.apply(n,l)}catch(d){s(a,d)}})}async function Gl({event:e,mutation:t,target:r,imageMap:i,canvasEventMap:s,errorHandler:n}){try{const o=s.get(e)||t,c="commands"in o?o.commands:[o];if([Hi.WebGL,Hi.WebGL2].includes(t.type)){for(let l=0;l<c.length;l++){const u=c[l];await Rm({mutation:u,type:t.type,target:r,imageMap:i,errorHandler:n})}return}await Nm({event:e,mutations:c,target:r,imageMap:i,errorHandler:n})}catch(o){n(t,o)}}class Mm{constructor(t){P(this,"mediaMap",new Map),P(this,"warn"),P(this,"service"),P(this,"speedService"),P(this,"emitter"),P(this,"getCurrentTime"),P(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(H.Start,this.start.bind(this)),this.emitter.on(H.SkipStart,this.start.bind(this)),this.emitter.on(H.Pause,this.pause.bind(this)),this.emitter.on(H.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,i)=>{this.syncTargetWithState(i),t.pause&&i.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:i}){if(i.isPlaying){const n=(t-i.lastInteractionTimeOffset)/1e3*i.playbackRate,o="duration"in r&&r.duration;if(Number.isNaN(o)){this.waitForMetadata(r);return}let c=i.currentTimeAtLastInteraction+n;r.loop&&o!==!1&&(c=c%o),r.currentTime=c}else r.pause(),r.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const i=this.mediaMap.get(t);i&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:i})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:i}){var h,p,m,y,w;const s=this.mediaMap.get(t),{type:n,playbackRate:o,currentTime:c,muted:l,volume:u,loop:a}=i;return{isPlaying:n===no.Play||n!==no.Pause&&((s==null?void 0:s.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(h=c!=null?c:s==null?void 0:s.currentTimeAtLastInteraction)!=null?h:0,lastInteractionTimeOffset:r,playbackRate:(p=o!=null?o:s==null?void 0:s.playbackRate)!=null?p:1,volume:(m=u!=null?u:s==null?void 0:s.volume)!=null?m:1,muted:(y=l!=null?l:s==null?void 0:s.muted)!=null?y:t.getAttribute("muted")===null,loop:(w=a!=null?a:s==null?void 0:s.loop)!=null?w:t.getAttribute("loop")===null}}syncTargetWithState(t){const r=this.mediaMap.get(t);if(!r)return;const{muted:i,loop:s,volume:n,isPlaying:o}=r,c=this.service.state.matches("paused"),l=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==n&&(t.volume=n),t.muted=i,t.loop=s,t.playbackRate!==l&&(t.playbackRate=l),o&&!c?t.play():t.pause()}catch(u){this.warn(`Failed to replay media interactions: ${u.message||u}`)}}addMediaElements(t,r,i){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;const s=t,n=i.getMeta(s);if(!n||!("attributes"in n))return;const o=this.service.state.matches("paused"),c=n.attributes;let l=!1;c.rr_mediaState?l=c.rr_mediaState==="played":l=s.getAttribute("autoplay")!==null,l&&o&&s.pause();let u=1;typeof c.rr_mediaPlaybackRate=="number"&&(u=c.rr_mediaPlaybackRate);let a=!1;typeof c.rr_mediaMuted=="boolean"?a=c.rr_mediaMuted:a=s.getAttribute("muted")!==null;let d=!1;typeof c.rr_mediaLoop=="boolean"?d=c.rr_mediaLoop:d=s.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(s,{isPlaying:l,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:u,volume:f,muted:a,loop:d}),this.syncTargetWithState(s)}mediaMutation({target:t,timeOffset:r,mutation:i}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:i})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}}function Oi(e,t){if(e.nodeName!=="DIALOG"||e instanceof dt)return;const r=e,i=r.open,s=i&&r.matches("dialog:modal"),n=r.getAttribute("rr_open_mode"),o=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",c=n==="modal";if(!(i&&!(s&&n==="non-modal"||!s&&c))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}i&&r.close(),o&&(c?r.showModal():r.show())}}function Om(e,t){if(e.nodeName!=="DIALOG"||e instanceof dt)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 Am=Mc||gm,Hl="[replayer]",Ai="__rrweb-injected-style__",kn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Yl(e){return e.type==re.IncrementalSnapshot&&(e.data.source==Q.TouchMove||e.data.source==Q.MouseInteraction&&e.data.type==_e.TouchStart)}class Dm{constructor(t,r){if(P(this,"wrapper"),P(this,"iframe"),P(this,"service"),P(this,"speedService"),P(this,"config"),P(this,"usingVirtualDom",!1),P(this,"virtualDom",new zr),P(this,"mouse"),P(this,"mouseTail",null),P(this,"tailPositions",[]),P(this,"emitter",Am()),P(this,"nextUserInteractionEvent"),P(this,"legacy_missingNodeRetryMap",{}),P(this,"cache",tl()),P(this,"imageMap",new Map),P(this,"canvasEventMap",new Map),P(this,"mirror",eo()),P(this,"styleMirror",new hm),P(this,"mediaManager"),P(this,"firstFullSnapshot",null),P(this,"seekCache"),P(this,"newDocumentQueue",[]),P(this,"mousePos",null),P(this,"touchActive",null),P(this,"seekInProgress",!1),P(this,"pendingCaptureTimer",null),P(this,"lastMouseDownEvent",null),P(this,"lastHoveredRootNode"),P(this,"lastSelectionData",null),P(this,"constructedStyleMutations",[]),P(this,"adoptedStyleSheets",[]),P(this,"handleResize",u=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(u.width)),a.setAttribute("height",String(u.height)))}),P(this,"applyEventsSynchronously",u=>{var a;let d=-1;for(let h=u.length-1;h>=0;h--)if(u[h].type===re.FullSnapshot){d=h;break}let f=0;if(this.config.useSeekCache&&u.length>0){const h=u.find(p=>p.type===re.FullSnapshot);if(h){const p=u[u.length-1].timestamp,m=this.seekCache.findBestFor(p,h.timestamp);if(m){const y=u.find(_=>_.type===re.Meta);y&&this.getCastFn(y,!0)(),this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(m.event,!0),this.firstFullSnapshot=!0,(a=this.iframe.contentWindow)==null||a.scrollTo(m.event.data.initialOffset);let w=0,g=u.length;for(;w<g;){const _=w+g>>>1;u[_].timestamp<=m.timestamp?w=_+1:g=_}f=w}}}for(let h=f;h<u.length;h++){const p=u[h];switch(p.type){case re.DomContentLoaded:case re.Load:case re.Custom:continue;case re.IncrementalSnapshot:if(h<d)continue;break;case re.FullSnapshot:case re.Meta:case re.Plugin:break}this.getCastFn(p,!0)()}}),P(this,"getCastFn",(u,a=!1)=>{let d;switch(u.type){case re.DomContentLoaded:case re.Load:break;case re.Custom:d=()=>{this.emitter.emit(H.CustomEvent,u)};break;case re.Meta:d=()=>this.emitter.emit(H.Resize,{width:u.data.width,height:u.data.height});break;case re.FullSnapshot:d=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===u){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(u,a),(h=this.iframe.contentWindow)==null||h.scrollTo(u.data.initialOffset)};break;case re.IncrementalSnapshot:d=()=>{if(this.applyIncremental(u,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const h of this.service.state.context.events)if(!(h.timestamp<=u.timestamp)&&this.isUserInteraction(h)){h.delay-u.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-u.delay;this.playInternal(this.getCurrentTime()+h),this.nextUserInteractionEvent=null}}};break}return()=>{d&&d();for(const p of this.config.plugins||[])p.handler&&p.handler(u,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:u}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&u===this.service.state.context.events[h]){const p=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(H.Finish))};let m=50;u.type===re.IncrementalSnapshot&&u.data.source===Q.MouseMove&&u.data.positions.length&&(m+=Math.max(0,-u.data.positions[0].timeOffset)),setTimeout(p,m)}this.emitter.emit(H.EventCast,u)}}),!(r!=null&&r.liveMode)&&t.length<2)throw new Error("Replayer need at least 2 events.");const i={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:kn,useVirtualDom:!0,useSeekCache:!1,seekCacheMaxEntries:10,logger:console};this.config=Object.assign({},i,r),this.seekCache=new mm(this.config.seekCacheMaxEntries),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(H.Resize,this.handleResize),this.setupDom();for(const u of this.config.plugins||[])u.getMirror&&u.getMirror({nodeMirror:this.mirror});this.emitter.on(H.Flush,()=>{if(this.usingVirtualDom){const u={mirror:this.mirror,applyCanvas:(a,d,f)=>{Gl({event:a,mutation:d,target:f,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,d)=>{a.source===Q.StyleSheetRule?this.applyStyleSheetRule(a,d):a.source===Q.StyleDeclaration&&this.applyStyleDeclaration(a,d)},afterAppend:(a,d)=>{for(const f of this.config.plugins||[])f.onBuild&&f.onBuild(a,{id:d,replayer:this})}};if(this.iframe.contentDocument)try{Vi(this.iframe.contentDocument,this.virtualDom,u,this.virtualDom.mirror)}catch(a){console.warn(a)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const a in this.legacy_missingNodeRetryMap)try{const d=this.legacy_missingNodeRetryMap[a],f=Gi(d.node,this.mirror,this.virtualDom.mirror);Vi(f,d.node,u,this.virtualDom.mirror),d.node=f}catch(d){this.warn(d)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),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[u,a]=this.lastMouseDownEvent;u.dispatchEvent(a)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(H.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()}),this.emitter.on(H.Flush,()=>{if(this.seekInProgress){this.seekInProgress=!1;const u=this.getTimeOffset();this.emitter.emit(H.SeekEnd,{timeOffset:u})}if(this.config.useSeekCache){const u=this.service.state.context.baselineTime;this.pendingCaptureTimer!==null&&clearTimeout(this.pendingCaptureTimer),this.pendingCaptureTimer=setTimeout(()=>{this.pendingCaptureTimer=null,this.captureSeekCacheEntry(u)},0)}});const s=new ym([],{speed:this.config.speed}),n=t.map(u=>r&&r.unpackFn?r.unpackFn(u):u).sort((u,a)=>u.timestamp-a.timestamp),o=wm(n);this.service=_m({events:n,timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null,checkpointIndex:o},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(u=>{this.emitter.emit(H.StateChange,{player:u})}),this.speedService=Sm({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(u=>{this.emitter.emit(H.StateChange,{speed:u})}),this.mediaManager=new Mm({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(u=>u.type===re.Meta),l=this.service.state.context.events.find(u=>u.type===re.FullSnapshot);if(c){const{width:u,height:a}=c.data;setTimeout(()=>{this.emitter.emit(H.Resize,{width:u,height:a})},0)}l&&setTimeout(()=>{var u;this.firstFullSnapshot||(this.firstFullSnapshot=l,this.rebuildFullSnapshot(l),(u=this.iframe.contentWindow)==null||u.scrollTo(l.data.initialOffset))},1),this.service.state.context.events.find(Yl)&&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}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){this.seekInProgress=!0,this.emitter.emit(H.SeekStart,{timeOffset:t}),this.playInternal(t)}playInternal(t=0){var r,i;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}})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.remove("rrweb-paused"),this.emitter.emit(H.Start)}pause(t){var r,i;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(i=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||i.classList.add("rrweb-paused"),this.emitter.emit(H.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(H.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(H.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){const r=this.config.unpackFn?this.config.unpackFn(t):t;Yl(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=tl()}resetSeekCache(){this.seekCache.clear()}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&&(vm(this.iframe.contentWindow,this.iframe.contentDocument),um(this.iframe.contentWindow))}captureSeekCacheEntry(t){var o,c;if(!this.iframe.contentDocument||t<=0)return;const r=eo();this.mirror.getIds().forEach(l=>{const u=this.mirror.getNode(l);if(!u)return;const a=this.mirror.getMeta(u);a&&r.add(u,a)});const i=Pd(this.iframe.contentDocument,{mirror:r,blockClass:this.config.blockClass,inlineStylesheet:!0});if(!i)return;const s=this.iframe.contentDocument.scrollingElement||this.iframe.contentDocument.documentElement,n={top:(o=s==null?void 0:s.scrollTop)!=null?o:0,left:(c=s==null?void 0:s.scrollLeft)!=null?c:0};this.seekCache.add(t,i,n)}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 i=[],s=new Set,n=(l,u)=>{if(l.nodeName==="DIALOG"&&s.add(l),this.collectIframeAndAttachDocument(i,l),this.mediaManager.isSupportedMediaElement(l)){const{events:a}=this.service.state.context;this.mediaManager.addMediaElements(l,t.timestamp-a[0].timestamp,this.mirror)}for(const a of this.config.plugins||[])a.onBuild&&a.onBuild(l,{id:u,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),sp(t.data.node,{doc:this.iframe.contentDocument,afterAppend:n,cache:this.cache,mirror:this.mirror}),n(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:l,builtNode:u}of i)this.attachDocumentToIframe(l,u),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==l);const{documentElement:o,head:c}=this.iframe.contentDocument;this.insertStyleRules(o,c),s.forEach(l=>Oi(l)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(H.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var i;const s=jl(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&s.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!s.length)if(this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,so(n,this.virtualDom.unserializedId)),t.insertBefore(n,r),n.rules.push({source:Q.StyleSheetRule,adds:s.map((o,c)=>({rule:o,index:c}))})}else{const n=document.createElement("style");t.insertBefore(n,r);for(let o=0;o<s.length;o++)(i=n.sheet)==null||i.insertRule(s[o],o)}}isShadowRoot(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}insertStyleRulesIntoShadowRoot(t){var s;var r;const i=jl(this.config.blockClass).concat(this.config.insertStyleRules);if(i.length){if(this.usingVirtualDom&&t.getAttribute("id")!==Ai){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,so(n,this.virtualDom.unserializedId)),n.setAttribute("id",Ai),t.insertBefore(n,t.firstChild||null),n.rules.push({source:Q.StyleSheetRule,adds:i.map((o,c)=>({rule:o,index:c}))})}else if(this.isShadowRoot(t)&&!t.getElementById(Ai)){const n=document.createElement("style");n.id=Ai,t.insertBefore(n,(s=t.firstChild)!=null?s:null);for(let o=0;o<i.length;o++)(r=n.sheet)==null||r.insertRule(i[o],o)}}}attachDocumentToIframe(t,r){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],n=new Set,o=(l,u)=>{l.nodeName==="DIALOG"&&n.add(l),this.collectIframeAndAttachDocument(s,l);const a=i.getMeta(l);if((a==null?void 0:a.type)===Ft.Element&&(a==null?void 0:a.tagName.toUpperCase())==="HTML"){if(!r.contentDocument)return;const{documentElement:d,head:f}=r.contentDocument;this.insertStyleRules(d,f)}if(!this.usingVirtualDom)for(const d of this.config.plugins||[])d.onBuild&&d.onBuild(l,{id:u,replayer:this})},c=r.contentDocument;if(c){ii(t.node,{doc:c,mirror:i,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(c,t.node.id);for(const{mutationInQueue:l,builtNode:u}of s)this.attachDocumentToIframe(l,u),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==l);n.forEach(l=>Oi(l))}}collectIframeAndAttachDocument(t,r){if(An(r,this.mirror)){const i=this.newDocumentQueue.find(s=>s.parentId===this.mirror.getId(r));i&&t.push({mutationInQueue:i,builtNode:r})}}waitForStylesheetLoad(){var t;const r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){const i=new Set;let s,n=this.service.state;const o=()=>{n=this.service.state};this.emitter.on(H.Start,o),this.emitter.on(H.Pause,o);const c=()=>{this.emitter.off(H.Start,o),this.emitter.off(H.Pause,o)};r.querySelectorAll('link[rel="stylesheet"]').forEach(l=>{l.sheet||(i.add(l),l.addEventListener("load",()=>{i.delete(l),i.size===0&&s!==-1&&(n.matches("playing")&&this.playInternal(this.getCurrentTime()),this.emitter.emit(H.LoadStylesheetEnd),s&&clearTimeout(s),c())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(H.LoadStylesheetStart),s=setTimeout(()=>{n.matches("playing")&&this.playInternal(this.getCurrentTime()),s=-1,c()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===re.IncrementalSnapshot&&r.data.source===Q.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(s=>{this.preloadImages(s,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){const i=document.createElement("canvas"),s=i.getContext("2d"),n=s==null?void 0:s.createImageData(i.width,i.height);n&&(s==null||s.putImageData(n,0,0))}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){const i={isUnchanged:!0};if("commands"in t){const s=await Promise.all(t.commands.map(async n=>{const o=await Promise.all(n.args.map(zt(this.imageMap,null,i)));return we(G({},n),{args:o})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,we(G({},t),{commands:s}))}else{const s=await Promise.all(t.args.map(zt(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(r,we(G({},t),{args:s}))}}}applyIncremental(t,r){var i,s,n;const{data:o}=t;switch(o.source){case Q.Mutation:{try{this.applyMutation(o,r)}catch(c){this.warn(`Exception in mutation ${c.message||c}`,o)}break}case Q.Drag:case Q.TouchMove:case Q.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 l={doAction:()=>{this.moveAndHover(c.x,c.y,c.id,r,o)},delay:c.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(l)}),this.timer.addAction({doAction(){},delay:t.delay-((i=o.positions[0])==null?void 0:i.timeOffset)});break;case Q.MouseInteraction:{if(o.id===-1)break;const c=new Event(hi(_e[o.type])),l=this.mirror.getNode(o.id);if(!l)return this.debugNodeNotFound(o,o.id);this.emitter.emit(H.MouseInteraction,{type:o.type,target:l});const{triggerFocus:u}=this.config;switch(o.type){case _e.Blur:"blur"in l&&l.blur();break;case _e.Focus:u&&l.focus&&l.focus({preventScroll:!0});break;case _e.Click:case _e.TouchStart:case _e.TouchEnd:case _e.MouseDown:case _e.MouseUp:r?(o.type===_e.TouchStart?this.touchActive=!0:o.type===_e.TouchEnd&&(this.touchActive=!1),o.type===_e.MouseDown?this.lastMouseDownEvent=[l,c]:o.type===_e.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===_e.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===_e.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===_e.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===_e.TouchEnd?this.mouse.classList.remove("touch-active"):l.dispatchEvent(c));break;case _e.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:l.dispatchEvent(c)}break}case Q.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 Q.ViewportResize:this.emitter.emit(H.Resize,{width:o.width,height:o.height});break;case Q.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 Q.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 l=c,{events:u}=this.service.state.context;this.mediaManager.mediaMutation({target:l,timeOffset:t.timestamp-u[0].timestamp,mutation:o});break}case Q.StyleSheetRule:case Q.StyleDeclaration:{this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&((s=this.virtualDom.mirror.getNode(o.id))==null||s.rules.push(o)):this.applyStyleSheetMutation(o);break}case Q.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);Gl({event:t,mutation:o,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case Q.Font:{try{const c=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);(n=this.iframe.contentDocument)==null||n.fonts.add(c)}catch(c){this.warn(c)}break}case Q.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case Q.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r){if(this.usingVirtualDom=!0,!this.iframe.contentDocument)return;if(Gp(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length)for(const u in this.legacy_missingNodeRetryMap)try{const a=this.legacy_missingNodeRetryMap[u],d=Cc(a.node,this.virtualDom,this.mirror);d&&(a.node=d)}catch(a){this.warn(a)}}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(u=>i.getNode(u.id)?!0:(this.warnNodeNotFound(t,u.id),!1)),t.removes.forEach(u=>{var a;const d=i.getNode(u.id);if(!d)return;let f=i.getNode(u.parentId);if(!f)return this.warnNodeNotFound(t,u.parentId);if(u.isShadow&&Ni(f)&&(f=f.shadowRoot),i.removeNodeFromMap(d),f)try{f.removeChild(d),this.usingVirtualDom&&d.nodeName==="#text"&&f.nodeName==="STYLE"&&((a=f.rules)==null?void 0:a.length)>0&&(f.rules=[])}catch(h){if(h instanceof DOMException)this.warn("parent could not remove child in mutation",f,d,t);else throw h}});const s=G({},this.legacy_missingNodeRetryMap),n=[],o=u=>{let a=null;return u.nextId&&(a=i.getNode(u.nextId)),u.nextId!==null&&u.nextId!==void 0&&u.nextId!==-1&&!a},c=u=>{var a,d;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let f=i.getNode(u.parentId);if(!f)return u.node.type===Ft.Document?this.newDocumentQueue.push(u):n.push(u);u.node.isShadow&&(Ni(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot,this.insertStyleRulesIntoShadowRoot(f));let h=null,p=null;if(u.previousId&&(h=i.getNode(u.previousId)),u.nextId&&(p=i.getNode(u.nextId)),o(u))return n.push(u);if(u.node.rootId&&!i.getNode(u.node.rootId))return;const m=u.node.rootId?i.getNode(u.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(An(f,i)){this.attachDocumentToIframe(u,f);return}const y=(_,S)=>{if(!this.usingVirtualDom){Oi(_);for(const v of this.config.plugins||[])v.onBuild&&v.onBuild(_,{id:S,replayer:this})}},w=ii(u.node,{doc:m,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:y});if(u.previousId===-1||u.nextId===-1){s[u.node.id]={node:w,mutation:u};return}const g=i.getMeta(f);if(g&&g.type===Ft.Element&&u.node.type===Ft.Text){const _=Array.isArray(f.childNodes)?f.childNodes:Array.from(f.childNodes);if(g.tagName==="textarea")for(const S of _)S.nodeType===f.TEXT_NODE&&f.removeChild(S);else if(g.tagName==="style"&&_.length===1)for(const S of _)S.nodeType===f.TEXT_NODE&&!i.hasNode(S)&&(w.textContent=S.textContent,f.removeChild(S))}else if((g==null?void 0:g.type)===Ft.Document){const _=f;u.node.type===Ft.DocumentType&&((a=_.childNodes[0])==null?void 0:a.nodeType)===Node.DOCUMENT_TYPE_NODE&&_.removeChild(_.childNodes[0]),w.nodeName==="HTML"&&_.documentElement&&_.removeChild(_.documentElement)}if(h&&h.nextSibling&&h.nextSibling.parentNode?f.insertBefore(w,h.nextSibling):p&&p.parentNode?f.contains(p)?f.insertBefore(w,p):f.insertBefore(w,null):f.appendChild(w),y(w,u.node.id),this.usingVirtualDom&&w.nodeName==="#text"&&f.nodeName==="STYLE"&&((d=f.rules)==null?void 0:d.length)>0&&(f.rules=[]),An(w,this.mirror)){const _=this.mirror.getId(w),S=this.newDocumentQueue.find(v=>v.parentId===_);S&&(this.attachDocumentToIframe(S,w),this.newDocumentQueue=this.newDocumentQueue.filter(v=>v!==S))}(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(s,f,w,u)};t.adds.forEach(u=>{c(u)});const l=Date.now();for(;n.length;){const u=cm(n);if(n.length=0,Date.now()-l>500){this.warn("Timeout in the loop, please check the resolve tree data:",u);break}for(const a of u)i.getNode(a.value.parentId)?Rc(a,f=>{c(f)}):this.debug("Drop resolve tree since there is no parent for the root node.",a)}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),fm(t.texts).forEach(u=>{var a;const d=i.getNode(u.id);if(!d)return t.removes.find(h=>h.id===u.id)?void 0:this.warnNodeNotFound(t,u.id);const f=d.parentElement;if(u.value&&f&&f.tagName==="STYLE"?d.textContent=hs(u.value,this.cache):d.textContent=u.value,this.usingVirtualDom){const h=d.parentNode;((a=h==null?void 0:h.rules)==null?void 0:a.length)>0&&(h.rules=[])}}),t.attributes.forEach(u=>{var a;const d=i.getNode(u.id);if(!d)return t.removes.find(f=>f.id===u.id)?void 0:this.warnNodeNotFound(t,u.id);for(const f in u.attributes)if(typeof f=="string"){const h=u.attributes[f];if(h===null)d.removeAttribute(f),f==="open"&&Om(d,u);else if(typeof h=="string")try{if(f==="_cssText"&&(d.nodeName==="LINK"||d.nodeName==="STYLE"))try{const p=i.getMeta(d);Object.assign(p.attributes,u.attributes);const m=ii(p,{doc:d.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),y=d.nextSibling,w=d.parentNode;if(m&&w){w.removeChild(d),w.insertBefore(m,y),i.replace(u.id,m);break}}catch(p){}if(f==="value"&&d.nodeName==="TEXTAREA"){const p=d;p.childNodes.forEach(y=>p.removeChild(y));const m=(a=d.ownerDocument)==null?void 0:a.createTextNode(h);m&&p.appendChild(m)}else d.setAttribute(f,h);f==="rr_open_mode"&&d.nodeName==="DIALOG"&&Oi(d,u)}catch(p){this.warn("An error occurred may due to the checkout feature.",p)}else if(f==="style"){const p=h,m=d;for(const y in p)if(p[y]===!1)m.style.removeProperty(y);else if(p[y]instanceof Array){const w=p[y];m.style.setProperty(y,w[0],w[1])}else{const w=p[y];m.style.setProperty(y,w)}}}})}applyScroll(t,r){var i,s;const n=this.mirror.getNode(t.id);if(!n)return this.debugNodeNotFound(t,t.id);const o=this.mirror.getMeta(n);if(n===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((o==null?void 0:o.type)===Ft.Document)(s=n.defaultView)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{n.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(i){}}applySelection(t){try{const r=new Set,i=t.ranges.map(({start:s,startOffset:n,end:o,endOffset:c})=>{const l=this.mirror.getNode(s),u=this.mirror.getNode(o);if(!l||!u)return;const a=new Range;a.setStart(l,n),a.setEnd(u,c);const d=l.ownerDocument,f=d==null?void 0:d.getSelection();return f&&r.add(f),{range:a,selection:f}});r.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var n;return s&&((n=s.selection)==null?void 0:n.addRange(s.range))})}catch(r){}}applyStyleSheetMutation(t){var r;let i=null;t.styleId?i=this.styleMirror.getStyle(t.styleId):t.id&&(i=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),i&&(t.source===Q.StyleSheetRule?this.applyStyleSheetRule(t,i):t.source===Q.StyleDeclaration&&this.applyStyleDeclaration(t,i))}applyStyleSheetRule(t,r){var i,s,n,o;if((i=t.adds)==null||i.forEach(({rule:c,index:l})=>{try{if(Array.isArray(l)){const{positions:u,index:a}=Ll(l);Qr(r.cssRules,u).insertRule(c,a)}else{const u=l===void 0?void 0:Math.min(l,r.cssRules.length);r==null||r.insertRule(c,u)}}catch(u){}}),(s=t.removes)==null||s.forEach(({index:c})=>{try{if(Array.isArray(c)){const{positions:l,index:u}=Ll(c);Qr(r.cssRules,l).deleteRule(u||0)}else r==null||r.deleteRule(c)}catch(l){}}),t.replace)try{(n=r.replace)==null||n.call(r,t.replace)}catch(c){}if(t.replaceSync)try{(o=r.replaceSync)==null||o.call(r,t.replaceSync)}catch(c){}}applyStyleDeclaration(t,r){t.set&&Qr(r.rules,t.index).style.setProperty(t.set.property,t.set.value,t.set.priority),t.remove&&Qr(r.rules,t.index).style.removeProperty(t.remove.property)}applyAdoptedStyleSheet(t){var r;const i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(c=>{var l;let u=null,a=null;if(Ni(i)?a=((l=i.ownerDocument)==null?void 0:l.defaultView)||null:i.nodeName==="#document"&&(a=i.defaultView),!!a)try{u=new a.CSSStyleSheet,this.styleMirror.add(u,c.styleId),this.applyStyleSheetRule({source:Q.StyleSheetRule,adds:c.rules},u)}catch(d){}});const s=10;let n=0;const o=(c,l)=>{const u=l.map(a=>this.styleMirror.getStyle(a)).filter(a=>a!==null);Ni(c)?c.shadowRoot.adoptedStyleSheets=u:c.nodeName==="#document"&&(c.adoptedStyleSheets=u),u.length!==l.length&&n<s&&(setTimeout(()=>o(c,l),0+100*n),n++)};o(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){const{previousId:n,nextId:o}=s,c=n&&t[n],l=o&&t[o];if(c){const{node:u,mutation:a}=c;r.insertBefore(u,i),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,u,a)}if(l){const{node:u,mutation:a}=l;r.insertBefore(u,i.nextSibling),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,u,a)}}moveAndHover(t,r,i,s,n){const o=this.mirror.getNode(i);if(!o)return this.debugNodeNotFound(n,i);const c=Nc(o,this.iframe),l=t*c.absoluteScale+c.x,u=r*c.absoluteScale+c.y;this.mouse.style.left=`${l}px`,this.mouse.style.top=`${u}px`,s||this.drawMouseTail({x:l,y:u}),this.hoverElements(o)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:i,strokeStyle:s,duration:n}=this.config.mouseTail===!0?kn:Object.assign({},kn,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=i,c.lineCap=r,c.strokeStyle=s,c.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(l=>c.lineTo(l.x,l.y)),c.stroke())};this.tailPositions.push(t),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(c=>c!==t),o()},n/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(s=>{s.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let i=t;for(;i;)i.classList&&i.classList.add(":hover"),i=i.parentElement}isUserInteraction(t){return t.type!==re.IncrementalSnapshot?!1:t.data.source>Q.Mutation&&t.data.source<=Q.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(H.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(Hl,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Hl,...t)}}var Ke=Uint8Array,qt=Uint16Array,oo=Uint32Array,Pc=new Ke([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]),Ic=new Ke([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]),Tm=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Lc=function(e,t){for(var r=new qt(31),i=0;i<31;++i)r[i]=t+=1<<e[i-1];for(var s=new oo(r[30]),i=1;i<30;++i)for(var n=r[i];n<r[i+1];++n)s[n]=n-r[i]<<5|i;return[r,s]},Fc=Lc(Pc,2),Uc=Fc[0],km=Fc[1];Uc[28]=258,km[258]=28;var Pm=Lc(Ic,0),Im=Pm[0],ao=new qt(32768);for(var he=0;he<32768;++he){var It=(he&43690)>>>1|(he&21845)<<1;It=(It&52428)>>>2|(It&13107)<<2,It=(It&61680)>>>4|(It&3855)<<4,ao[he]=((It&65280)>>>8|(It&255)<<8)>>>1}var si=(function(e,t,r){for(var i=e.length,s=0,n=new qt(t);s<i;++s)++n[e[s]-1];var o=new qt(t);for(s=0;s<t;++s)o[s]=o[s-1]+n[s-1]<<1;var c;if(r){c=new qt(1<<t);var l=15-t;for(s=0;s<i;++s)if(e[s])for(var u=s<<4|e[s],a=t-e[s],d=o[e[s]-1]++<<a,f=d|(1<<a)-1;d<=f;++d)c[ao[d]>>>l]=u}else for(c=new qt(i),s=0;s<i;++s)c[s]=ao[o[e[s]-1]++]>>>15-e[s];return c}),mi=new Ke(288);for(var he=0;he<144;++he)mi[he]=8;for(var he=144;he<256;++he)mi[he]=9;for(var he=256;he<280;++he)mi[he]=7;for(var he=280;he<288;++he)mi[he]=8;var Bc=new Ke(32);for(var he=0;he<32;++he)Bc[he]=5;var Lm=si(mi,9,1),Fm=si(Bc,5,1),Pn=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},rt=function(e,t,r){var i=t/8>>0;return(e[i]|e[i+1]<<8)>>>(t&7)&r},In=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(t&7)},Um=function(e){return(e/8>>0)+(e&7&&1)},$c=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var i=new(e instanceof qt?qt:e instanceof oo?oo:Ke)(r-t);return i.set(e.subarray(t,r)),i},Bm=function(e,t,r){var i=e.length,s=!t||r,n=!r||r.i;r||(r={}),t||(t=new Ke(i*3));var o=function(j){var ee=t.length;if(j>ee){var I=new Ke(Math.max(ee*2,j));I.set(t),t=I}},c=r.f||0,l=r.p||0,u=r.b||0,a=r.l,d=r.d,f=r.m,h=r.n,p=i*8;do{if(!a){r.f=c=rt(e,l,1);var m=rt(e,l+1,3);if(l+=3,m)if(m==1)a=Lm,d=Fm,f=9,h=5;else if(m==2){var _=rt(e,l,31)+257,S=rt(e,l+10,15)+4,v=_+rt(e,l+5,31)+1;l+=14;for(var b=new Ke(v),E=new Ke(19),C=0;C<S;++C)E[Tm[C]]=rt(e,l+C*3,7);l+=S*3;var O=Pn(E),N=(1<<O)-1;if(!n&&l+v*(O+7)>p)break;for(var F=si(E,O,1),C=0;C<v;){var T=F[rt(e,l,N)];l+=T&15;var y=T>>>4;if(y<16)b[C++]=y;else{var x=0,ae=0;for(y==16?(ae=3+rt(e,l,3),l+=2,x=b[C-1]):y==17?(ae=3+rt(e,l,7),l+=3):y==18&&(ae=11+rt(e,l,127),l+=7);ae--;)b[C++]=x}}var L=b.subarray(0,_),te=b.subarray(_);f=Pn(L),h=Pn(te),a=si(L,f,1),d=si(te,h,1)}else throw"invalid block type";else{var y=Um(l)+4,w=e[y-4]|e[y-3]<<8,g=y+w;if(g>i){if(n)throw"unexpected EOF";break}s&&o(u+w),t.set(e.subarray(y,g),u),r.b=u+=w,r.p=l=g*8;continue}if(l>p)throw"unexpected EOF"}s&&o(u+131072);for(var U=(1<<f)-1,$=(1<<h)-1,ge=f+h+18;n||l+ge<p;){var x=a[In(e,l)&U],q=x>>>4;if(l+=x&15,l>p)throw"unexpected EOF";if(!x)throw"invalid length/literal";if(q<256)t[u++]=q;else if(q==256){a=null;break}else{var z=q-254;if(q>264){var C=q-257,Ce=Pc[C];z=rt(e,l,(1<<Ce)-1)+Uc[C],l+=Ce}var A=d[In(e,l)&$],be=A>>>4;if(!A)throw"invalid distance";l+=A&15;var te=Im[be];if(be>3){var Ce=Ic[be];te+=In(e,l)&(1<<Ce)-1,l+=Ce}if(l>p)throw"unexpected EOF";s&&o(u+131072);for(var k=u+z;u<k;u+=4)t[u]=t[u-te],t[u+1]=t[u+1-te],t[u+2]=t[u+2-te],t[u+3]=t[u+3-te];u=k}}r.l=a,r.p=l,r.b=u,a&&(c=1,r.m=f,r.d=d,r.n=h)}while(!c);return u==t.length?t:$c(t,0,u)},$m=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 Wm(e,t){return Bm(($m(e),e.subarray(2,-4)),t)}function zm(e,t){for(var r=e.length,i=new Ke(e.length+(e.length>>>1)),s=0,n=function(u){i[s++]=u},o=0;o<r;++o){if(s+5>i.length){var c=new Ke(s+8+(r-o<<1));c.set(i),i=c}var l=e.charCodeAt(o);n(l)}return $c(i,0,s)}function qm(e,t){var r="";if(typeof TextDecoder!="undefined")return new TextDecoder().decode(e);for(var i=0;i<e.length;){var s=e[i++];s<128||t?r+=String.fromCharCode(s):s<224?r+=String.fromCharCode((s&31)<<6|e[i++]&63):s<240?r+=String.fromCharCode((s&15)<<12|(e[i++]&63)<<6|e[i++]&63):(s=((s&15)<<18|(e[i++]&63)<<12|(e[i++]&63)<<6|e[i++]&63)-65536,r+=String.fromCharCode(55296|s>>10,56320|s&1023))}return r}const Jl="v1",jm=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(qm(Wm(zm(e,!0))));if(t.v===Jl)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Jl}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};function Xl(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Gr(e,t=2){let r=String(e);const i=Math.pow(10,t-1);if(e<i)for(;String(i).length>r.length;)r=`0${e}`;return r}const Wc=1e3,lo=60*Wc,Kl=60*lo;function Di(e){if(e<=0)return"00:00";const t=Math.floor(e/Kl);e=e%Kl;const r=Math.floor(e/lo);e=e%lo;const i=Math.floor(e/Wc);return t?`${Gr(t)}:${Gr(r)}:${Gr(i)}`:`${Gr(r)}:${Gr(i)}`}function Vm(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Gm(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function Ql(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function Hm(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 Zl(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 Ym(e){return e.type!==re.IncrementalSnapshot?!1:e.data.source>Q.Mutation&&e.data.source<=Q.Input}function Jm(e,t){const r=[];let i=e[0].timestamp;for(const s of e)Ym(s)&&(s.timestamp-i>t&&r.push([i,s.timestamp]),i=s.timestamp);return r}var zc=(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))(zc||{}),Xm=Wr('<div><input type="checkbox" class="svelte-184lr04"/> <label class="svelte-184lr04"></label> <span class="label svelte-184lr04"> </span></div>');function Km(e,t){let r=pe(t,"disabled",8),i=pe(t,"checked",12),s=pe(t,"id",8),n=pe(t,"label",8);var o=Xm();let c;var l=nt(o);Ch(l);var u=Ge(l,2),a=Ge(u,2),d=nt(a,!0);st(a),st(o),xr(()=>{c=Qn(o,1,"switch svelte-184lr04",null,c,{disabled:r()}),nr(l,"id",s()),l.disabled=r(),nr(u,"for",s()),Li(d,n())}),Nh(l,i),Ct(e,o)}var Qm=Wr("<div></div>"),Zm=Wr("<div></div>"),eg=Ju(`<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" aria-label="Play"><path d="M682.65984 128q53.00224 0 90.50112 37.49888t37.49888 90.50112l0
158
158
  512q0 53.00224-37.49888 90.50112t-90.50112
159
159
  37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
160
160
  37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
@@ -167,25 +167,25 @@ PERFORMANCE OF THIS SOFTWARE.
167
167
  12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928zM682.65984
168
168
  213.34016q-17.67424 0-30.16704 12.4928t-12.4928 30.16704l0 512q0
169
169
  17.67424 12.4928 30.16704t30.16704 12.4928 30.16704-12.4928
170
- 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"></path></svg>`),eg=Ju(`<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" aria-label="Pause"><path d="M170.65984 896l0-768 640 384zM644.66944
171
- 512l-388.66944-233.32864 0 466.65728z"></path></svg>`),tg=Wr("<button> </button>"),rg=Wr(`<div class="rr-controller svelte-14v7dbr"><div class="rr-timeline svelte-14v7dbr"><span class="rr-timeline__time svelte-14v7dbr"> </span> <div role="slider" aria-label="Progress bar" aria-valuemin="0" aria-valuemax="100" tabindex="0"><div class="rr-progress__step svelte-14v7dbr"></div> <!> <!> <div class="rr-progress__handler svelte-14v7dbr"></div></div> <span class="rr-timeline__time svelte-14v7dbr"> </span></div> <div class="rr-controller__btns svelte-14v7dbr"><button class="svelte-14v7dbr"><!></button> <!> <!> <button aria-label="Fullscreen" class="svelte-14v7dbr"><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
170
+ 12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"></path></svg>`),tg=Ju(`<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" aria-label="Pause"><path d="M170.65984 896l0-768 640 384zM644.66944
171
+ 512l-388.66944-233.32864 0 466.65728z"></path></svg>`),rg=Wr("<button> </button>"),ig=Wr(`<div class="rr-controller svelte-14v7dbr"><div class="rr-timeline svelte-14v7dbr"><span class="rr-timeline__time svelte-14v7dbr"> </span> <div role="slider" aria-label="Progress bar" aria-valuemin="0" aria-valuemax="100" tabindex="0"><div class="rr-progress__step svelte-14v7dbr"></div> <!> <!> <div class="rr-progress__handler svelte-14v7dbr"></div></div> <span class="rr-timeline__time svelte-14v7dbr"> </span></div> <div class="rr-controller__btns svelte-14v7dbr"><button class="svelte-14v7dbr"><!></button> <!> <!> <button aria-label="Fullscreen" class="svelte-14v7dbr"><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
172
172
  18.4-48.8 18.4-68 0-18.4-18.4-18.4-48.8 0-68L800 156 692 156c-26.4
173
173
  0-48-21.6-48-48 0-26.4 21.6-48 48-48l224 0c26.4 0 48 21.6 48 48l0
174
174
  224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
175
175
  48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
176
176
  48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
177
- 68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg></button></div></div>`);function ig(e,t){wo(t,!1);const r=mh();let i=pe(t,"replayer",8),s=pe(t,"showController",8),n=pe(t,"autoPlay",8),o=pe(t,"skipInactive",12),u=pe(t,"speedOption",8),a=pe(t,"speed",28,()=>u().length?u()[0]:1),c=pe(t,"tags",24,()=>({})),l=pe(t,"inactiveColor",8),h=Ae(0),f=null,d=Ae(),m=Ae(),p=Ae(),g,v=!1,w=null,_=null,E=Ae(),y=Ae();function b(k,j,ee){const P=j-k;return(100-(j-ee)/P*100).toFixed(2)}let S=Ae(),C=Ae();const O=()=>{N();function k(){re(h,i().getCurrentTime()),v&&M(h)>=v&&(_?L(_.start,_.end,!0,void 0):(i().pause(),w&&(w(),w=null))),M(h)<M(E).totalTime&&(f=requestAnimationFrame(k))}f=requestAnimationFrame(k)},N=()=>{f&&(cancelAnimationFrame(f),f=null)},F=()=>{switch(M(d)){case"playing":x();break;case"paused":T();break}},T=()=>{M(d)==="paused"&&(g?(i().play(),g=!1):i().play(M(h)))},x=()=>{M(d)==="playing"&&(i().pause(),v=!1)},oe=(k,j)=>{re(h,k),v=!1,g=!1,(typeof j=="boolean"?j:M(d)==="playing")?i().play(k):i().pause(k)},L=(k,j,ee=!1,P=void 0)=>{ee?_={start:k,end:j}:_=null,re(h,k),v=j,w=P||null,i().play(k)},te=k=>{if(M(m)==="skipping")return;const j=M(p).getBoundingClientRect();let P=(k.clientX-j.left)/j.width;P<0?P=0:P>1&&(P=1);const fe=M(E).totalTime*P;oe(fe)},U=k=>{M(m)!=="skipping"&&(k.key==="ArrowLeft"?oe(M(h)-5):k.key==="ArrowRight"&&oe(M(h)+5))},$=k=>{let j=M(d)==="playing";a(k),j&&i().pause(),i().setConfig({speed:a()}),j&&i().play(M(h))},ge=()=>{o(!o())},q=()=>Promise.resolve().then(()=>{re(E,i().getMetaData())});xo(()=>{re(d,i().service.state.value),re(m,i().speedService.state.value),i().on("state-change",k=>{const{player:j,speed:ee}=k;if(j!=null&&j.value&&M(d)!==j.value)switch(re(d,j.value),M(d)){case"playing":O();break;case"paused":N();break}ee!=null&&ee.value&&M(m)!==ee.value&&re(m,ee.value)}),i().on("finish",()=>{g=!0,w&&(w(),w=null)}),n()&&i().play()}),gh(()=>{o()!==i().config.skipInactive&&i().setConfig({skipInactive:o()})}),Qu(()=>{i().pause(),N()}),$t(()=>M(h),()=>{r("ui-update-current-time",{payload:M(h)})}),$t(()=>M(d),()=>{r("ui-update-player-state",{payload:M(d)})}),$t(()=>$e(i()),()=>{re(E,i().getMetaData())}),$t(()=>(M(h),M(E)),()=>{const k=Math.min(1,M(h)/M(E).totalTime);re(y,`${100*k}%`),r("ui-update-progress",{payload:k})}),$t(()=>($e(i()),$e(c())),()=>{re(S,(()=>{const{context:k}=i().service.state,j=k.events.length,ee=k.events[0].timestamp,P=k.events[j-1].timestamp,fe=[];return k.events.forEach(ue=>{if(ue.type===zc.Custom){const ie={name:ue.data.tag,background:c()[ue.data.tag]||"rgb(73, 80, 246)",position:`${b(ee,P,ue.timestamp)}%`};fe.push(ie)}}),fe})())}),$t(()=>($e(i()),$e(l())),()=>{re(C,(()=>{try{const{context:k}=i().service.state,j=k.events.length,ee=k.events[0].timestamp,P=k.events[j-1].timestamp,fe=Ym(k.events,i().config.inactivePeriodThreshold),ue=(ie,ke,pt,gi)=>{const bs=ke-ie;return((gi-pt)/bs*100).toFixed(2)};return fe.map(ie=>({name:"inactive period",background:l(),position:`${b(ee,P,ie[0])}%`,width:`${ue(ee,P,ie[0],ie[1])}%`}))}catch(k){return[]}})())}),Iu();var W={toggle:F,play:T,pause:x,goto:oe,playRange:L,setSpeed:$,toggleSkipInactive:ge,triggerUpdateMeta:q};ec();var Ce=lh(),A=Gf(Ce);{var be=k=>{var j=rg(),ee=nt(j),P=nt(ee),fe=nt(P,!0);st(P);var ue=Ge(P,2);let ie;var ke=nt(ue),pt=Ge(ke,2);Es(pt,1,()=>M(C),Ss,(Se,ae)=>{var Me=Km();xr(()=>{var tt,mt,qr;nr(Me,"title",(M(ae),Ee(()=>M(ae).name))),Rr(Me,`width: ${(tt=(M(ae),Ee(()=>M(ae).width)))!=null?tt:""};height: 4px;position: absolute;background: ${(mt=(M(ae),Ee(()=>M(ae).background)))!=null?mt:""};left:
178
- ${(qr=(M(ae),Ee(()=>M(ae).position)))!=null?qr:""};`)}),Ct(Se,Me)});var gi=Ge(pt,2);Es(gi,1,()=>M(S),Ss,(Se,ae)=>{var Me=Qm();xr(()=>{var tt,mt;nr(Me,"title",(M(ae),Ee(()=>M(ae).name))),Rr(Me,`width: 10px;height: 5px;position: absolute;top:
179
- 2px;transform: translate(-50%, -50%);background: ${(tt=(M(ae),Ee(()=>M(ae).background)))!=null?tt:""};left:
180
- ${(mt=(M(ae),Ee(()=>M(ae).position)))!=null?mt:""};`)}),Ct(Se,Me)});var bs=Ge(gi,2);st(ue),Fi(ue,Se=>re(p,Se),()=>M(p));var _s=Ge(ue,2),Yo=nt(_s,!0);st(_s),st(ee);var Jo=Ge(ee,2),vi=nt(Jo),jc=nt(vi);{var Vc=Se=>{var ae=Zm();Ct(Se,ae)},Gc=Se=>{var ae=eg();Ct(Se,ae)};Xn(jc,Se=>{M(d)==="playing"?Se(Vc):Se(Gc,!1)})}st(vi);var Xo=Ge(vi,2);Es(Xo,1,u,Ss,(Se,ae)=>{var Me=tg();let tt;var mt=nt(Me);st(Me),xr(()=>{var qr;Me.disabled=M(m)==="skipping",tt=Qn(Me,1,"svelte-14v7dbr",null,tt,{active:M(ae)===a()&&M(m)!=="skipping"}),Li(mt,`${(qr=M(ae))!=null?qr:""}x`)}),Vr("click",Me,()=>$(M(ae))),Ct(Se,Me)});var Ko=Ge(Xo,2);{let Se=ns(()=>M(m)==="skipping");Xm(Ko,{id:"skip",get disabled(){return M(Se)},label:"skip inactive",get checked(){return o()},set checked(ae){o(ae)},$$legacy:!0})}var Hc=Ge(Ko,2);st(Jo),st(j),xr((Se,ae,Me)=>{var tt,mt;Li(fe,Se),ie=Qn(ue,1,"rr-progress svelte-14v7dbr",null,ie,{disabled:M(m)==="skipping"}),nr(ue,"aria-valuenow",ae),Rr(ke,`width: ${(tt=M(y))!=null?tt:""}`),Rr(bs,`left: ${(mt=M(y))!=null?mt:""}`),Li(Yo,Me)},[()=>($e(Di),M(h),Ee(()=>Di(M(h)))),()=>(M(y),Ee(()=>parseFloat(M(y)))),()=>($e(Di),M(E),Ee(()=>Di(M(E).totalTime)))]),Vr("click",ue,te),Vr("keydown",ue,U),Vr("click",vi,F),Vr("click",Hc,()=>r("fullscreen")),Ct(k,j)};Xn(A,k=>{s()&&k(be)})}return Ct(e,Ce),ve(t,"toggle",F),ve(t,"play",T),ve(t,"pause",x),ve(t,"goto",oe),ve(t,"playRange",L),ve(t,"setSpeed",$),ve(t,"toggleSkipInactive",ge),ve(t,"triggerUpdateMeta",q),bo(W)}var sg=Wr('<div class="rr-player svelte-1qub0ki"><div class="rr-player__frame svelte-1qub0ki"></div> <!></div>');function ng(e,t){const r=Ah(t,["children","$$slots","$$events","$$legacy"]);wo(t,!1);let i=pe(t,"width",12,1024),s=pe(t,"height",12,576),n=pe(t,"maxScale",8,1),o=pe(t,"events",8),u=pe(t,"skipInactive",8,!0),a=pe(t,"autoPlay",8,!0),c=pe(t,"speedOption",24,()=>[1,2,4,8]),l=pe(t,"speed",8,1),h=pe(t,"showController",8,!0),f=pe(t,"tags",24,()=>({})),d=pe(t,"inactiveColor",8,"#D4D4D4"),m=Ae();const p=()=>M(m).getMirror(),g=80;let v=Ae(),w=Ae(),_,E=i(),y=s(),b=Ae(),S=Ae(),C=Ae();const O=(P,fe)=>{const ue=i()/fe.width,ie=s()/fe.height,ke=[ue,ie];n()&&ke.push(n()),P.style.transform=`scale(${Math.min(...ke)})translate(-50%, -50%)`},N=()=>{O(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight})},F=()=>{M(v)&&(Ql()?Vm():jm(M(v)))},T=(P,fe)=>{switch(M(m).on(P,fe),P){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":M(b).$on(P,({detail:ue})=>fe(ue))}},x=P=>{M(m).addEvent(P),M(b).triggerUpdateMeta()},oe=()=>M(m).getMetaData(),L=()=>M(m),te=()=>{M(b).toggle()},U=P=>{M(b).setSpeed(P)},$=()=>{M(b).toggleSkipInactive()},ge=()=>{M(b).play()},q=()=>{M(b).pause()},W=(P,fe)=>{M(b).goto(P,fe)},Ce=(P,fe,ue=!1,ie=void 0)=>{M(b).playRange(P,fe,ue,ie)};xo(()=>{if(c()!==void 0&&Zl(c())!=="array")throw new Error("speedOption must be array");if(c().forEach(P=>{if(Zl(P)!=="number")throw new Error("item of speedOption must be number")}),c().indexOf(l())<0)throw new Error(`speed must be one of speedOption,
177
+ 68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg></button></div></div>`);function sg(e,t){wo(t,!1);const r=mh();let i=pe(t,"replayer",8),s=pe(t,"showController",8),n=pe(t,"autoPlay",8),o=pe(t,"skipInactive",12),c=pe(t,"speedOption",8),l=pe(t,"speed",28,()=>c().length?c()[0]:1),u=pe(t,"tags",24,()=>({})),a=pe(t,"inactiveColor",8),d=Ae(0),f=null,h=Ae(),p=Ae(),m=Ae(),y,w=!1,g=null,_=null,S=Ae(),v=Ae();function b(k,j,ee){const I=j-k;return(100-(j-ee)/I*100).toFixed(2)}let E=Ae(),C=Ae();const O=()=>{N();function k(){ie(d,i().getCurrentTime()),w&&M(d)>=w&&(_?L(_.start,_.end,!0,void 0):(i().pause(),g&&(g(),g=null))),M(d)<M(S).totalTime&&(f=requestAnimationFrame(k))}f=requestAnimationFrame(k)},N=()=>{f&&(cancelAnimationFrame(f),f=null)},F=()=>{switch(M(h)){case"playing":x();break;case"paused":T();break}},T=()=>{M(h)==="paused"&&(y?(i().play(),y=!1):i().play(M(d)))},x=()=>{M(h)==="playing"&&(i().pause(),w=!1)},ae=(k,j)=>{ie(d,k),w=!1,y=!1,(typeof j=="boolean"?j:M(h)==="playing")?i().play(k):i().pause(k)},L=(k,j,ee=!1,I=void 0)=>{ee?_={start:k,end:j}:_=null,ie(d,k),w=j,g=I||null,i().play(k)},te=k=>{if(M(p)==="skipping")return;const j=M(m).getBoundingClientRect();let I=(k.clientX-j.left)/j.width;I<0?I=0:I>1&&(I=1);const fe=M(S).totalTime*I;ae(fe)},U=k=>{M(p)!=="skipping"&&(k.key==="ArrowLeft"?ae(M(d)-5):k.key==="ArrowRight"&&ae(M(d)+5))},$=k=>{let j=M(h)==="playing";l(k),j&&i().pause(),i().setConfig({speed:l()}),j&&i().play(M(d))},ge=()=>{o(!o())},q=()=>Promise.resolve().then(()=>{ie(S,i().getMetaData())});xo(()=>{ie(h,i().service.state.value),ie(p,i().speedService.state.value),i().on("state-change",k=>{const{player:j,speed:ee}=k;if(j!=null&&j.value&&M(h)!==j.value)switch(ie(h,j.value),M(h)){case"playing":O();break;case"paused":N();break}ee!=null&&ee.value&&M(p)!==ee.value&&ie(p,ee.value)}),i().on("finish",()=>{y=!0,g&&(g(),g=null)}),n()&&i().play()}),gh(()=>{o()!==i().config.skipInactive&&i().setConfig({skipInactive:o()})}),Qu(()=>{i().pause(),N()}),$t(()=>M(d),()=>{r("ui-update-current-time",{payload:M(d)})}),$t(()=>M(h),()=>{r("ui-update-player-state",{payload:M(h)})}),$t(()=>$e(i()),()=>{ie(S,i().getMetaData())}),$t(()=>(M(d),M(S)),()=>{const k=Math.min(1,M(d)/M(S).totalTime);ie(v,`${100*k}%`),r("ui-update-progress",{payload:k})}),$t(()=>($e(i()),$e(u())),()=>{ie(E,(()=>{const{context:k}=i().service.state,j=k.events.length,ee=k.events[0].timestamp,I=k.events[j-1].timestamp,fe=[];return k.events.forEach(ue=>{if(ue.type===zc.Custom){const se={name:ue.data.tag,background:u()[ue.data.tag]||"rgb(73, 80, 246)",position:`${b(ee,I,ue.timestamp)}%`};fe.push(se)}}),fe})())}),$t(()=>($e(i()),$e(a())),()=>{ie(C,(()=>{try{const{context:k}=i().service.state,j=k.events.length,ee=k.events[0].timestamp,I=k.events[j-1].timestamp,fe=Jm(k.events,i().config.inactivePeriodThreshold),ue=(se,ke,pt,gi)=>{const bs=ke-se;return((gi-pt)/bs*100).toFixed(2)};return fe.map(se=>({name:"inactive period",background:a(),position:`${b(ee,I,se[0])}%`,width:`${ue(ee,I,se[0],se[1])}%`}))}catch(k){return[]}})())}),Iu();var z={toggle:F,play:T,pause:x,goto:ae,playRange:L,setSpeed:$,toggleSkipInactive:ge,triggerUpdateMeta:q};ec();var Ce=lh(),A=Gf(Ce);{var be=k=>{var j=ig(),ee=nt(j),I=nt(ee),fe=nt(I,!0);st(I);var ue=Ge(I,2);let se;var ke=nt(ue),pt=Ge(ke,2);Es(pt,1,()=>M(C),Ss,(Se,le)=>{var Me=Qm();xr(()=>{var tt,mt,qr;nr(Me,"title",(M(le),Ee(()=>M(le).name))),Rr(Me,`width: ${(tt=(M(le),Ee(()=>M(le).width)))!=null?tt:""};height: 4px;position: absolute;background: ${(mt=(M(le),Ee(()=>M(le).background)))!=null?mt:""};left:
178
+ ${(qr=(M(le),Ee(()=>M(le).position)))!=null?qr:""};`)}),Ct(Se,Me)});var gi=Ge(pt,2);Es(gi,1,()=>M(E),Ss,(Se,le)=>{var Me=Zm();xr(()=>{var tt,mt;nr(Me,"title",(M(le),Ee(()=>M(le).name))),Rr(Me,`width: 10px;height: 5px;position: absolute;top:
179
+ 2px;transform: translate(-50%, -50%);background: ${(tt=(M(le),Ee(()=>M(le).background)))!=null?tt:""};left:
180
+ ${(mt=(M(le),Ee(()=>M(le).position)))!=null?mt:""};`)}),Ct(Se,Me)});var bs=Ge(gi,2);st(ue),Fi(ue,Se=>ie(m,Se),()=>M(m));var _s=Ge(ue,2),Yo=nt(_s,!0);st(_s),st(ee);var Jo=Ge(ee,2),vi=nt(Jo),jc=nt(vi);{var Vc=Se=>{var le=eg();Ct(Se,le)},Gc=Se=>{var le=tg();Ct(Se,le)};Xn(jc,Se=>{M(h)==="playing"?Se(Vc):Se(Gc,!1)})}st(vi);var Xo=Ge(vi,2);Es(Xo,1,c,Ss,(Se,le)=>{var Me=rg();let tt;var mt=nt(Me);st(Me),xr(()=>{var qr;Me.disabled=M(p)==="skipping",tt=Qn(Me,1,"svelte-14v7dbr",null,tt,{active:M(le)===l()&&M(p)!=="skipping"}),Li(mt,`${(qr=M(le))!=null?qr:""}x`)}),Vr("click",Me,()=>$(M(le))),Ct(Se,Me)});var Ko=Ge(Xo,2);{let Se=ns(()=>M(p)==="skipping");Km(Ko,{id:"skip",get disabled(){return M(Se)},label:"skip inactive",get checked(){return o()},set checked(le){o(le)},$$legacy:!0})}var Hc=Ge(Ko,2);st(Jo),st(j),xr((Se,le,Me)=>{var tt,mt;Li(fe,Se),se=Qn(ue,1,"rr-progress svelte-14v7dbr",null,se,{disabled:M(p)==="skipping"}),nr(ue,"aria-valuenow",le),Rr(ke,`width: ${(tt=M(v))!=null?tt:""}`),Rr(bs,`left: ${(mt=M(v))!=null?mt:""}`),Li(Yo,Me)},[()=>($e(Di),M(d),Ee(()=>Di(M(d)))),()=>(M(v),Ee(()=>parseFloat(M(v)))),()=>($e(Di),M(S),Ee(()=>Di(M(S).totalTime)))]),Vr("click",ue,te),Vr("keydown",ue,U),Vr("click",vi,F),Vr("click",Hc,()=>r("fullscreen")),Ct(k,j)};Xn(A,k=>{s()&&k(be)})}return Ct(e,Ce),ve(t,"toggle",F),ve(t,"play",T),ve(t,"pause",x),ve(t,"goto",ae),ve(t,"playRange",L),ve(t,"setSpeed",$),ve(t,"toggleSkipInactive",ge),ve(t,"triggerUpdateMeta",q),bo(z)}var ng=Wr('<div class="rr-player svelte-1qub0ki"><div class="rr-player__frame svelte-1qub0ki"></div> <!></div>');function og(e,t){const r=Ah(t,["children","$$slots","$$events","$$legacy"]);wo(t,!1);let i=pe(t,"width",12,1024),s=pe(t,"height",12,576),n=pe(t,"maxScale",8,1),o=pe(t,"events",8),c=pe(t,"skipInactive",8,!0),l=pe(t,"autoPlay",8,!0),u=pe(t,"speedOption",24,()=>[1,2,4,8]),a=pe(t,"speed",8,1),d=pe(t,"showController",8,!0),f=pe(t,"tags",24,()=>({})),h=pe(t,"inactiveColor",8,"#D4D4D4"),p=Ae();const m=()=>M(p).getMirror(),y=80;let w=Ae(),g=Ae(),_,S=i(),v=s(),b=Ae(),E=Ae(),C=Ae();const O=(I,fe)=>{const ue=i()/fe.width,se=s()/fe.height,ke=[ue,se];n()&&ke.push(n()),I.style.transform=`scale(${Math.min(...ke)})translate(-50%, -50%)`},N=()=>{O(M(p).wrapper,{width:M(p).iframe.offsetWidth,height:M(p).iframe.offsetHeight})},F=()=>{M(w)&&(Ql()?Gm():Vm(M(w)))},T=(I,fe)=>{switch(M(p).on(I,fe),I){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":M(b).$on(I,({detail:ue})=>fe(ue))}},x=I=>{M(p).addEvent(I),M(b).triggerUpdateMeta()},ae=()=>M(p).getMetaData(),L=()=>M(p),te=()=>{M(b).toggle()},U=I=>{M(b).setSpeed(I)},$=()=>{M(b).toggleSkipInactive()},ge=()=>{M(b).play()},q=()=>{M(b).pause()},z=(I,fe)=>{M(b).goto(I,fe)},Ce=(I,fe,ue=!1,se=void 0)=>{M(b).playRange(I,fe,ue,se)};xo(()=>{if(u()!==void 0&&Zl(u())!=="array")throw new Error("speedOption must be array");if(u().forEach(I=>{if(Zl(I)!=="number")throw new Error("item of speedOption must be number")}),u().indexOf(a())<0)throw new Error(`speed must be one of speedOption,
181
181
  current config:
182
182
  {
183
183
  ...
184
- speed: ${l()},
185
- speedOption: [${c().toString()}]
184
+ speed: ${a()},
185
+ speedOption: [${u().toString()}]
186
186
  ...
187
187
  }
188
- `);re(m,new Am(o(),G({speed:l(),root:M(w),unpackFn:qm},r))),M(m).on("resize",P=>{O(M(m).wrapper,P)}),_=Gm(()=>{Ql()?setTimeout(()=>{E=i(),y=s(),i(M(v).offsetWidth),s(M(v).offsetHeight-(h()?g:0)),O(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight})},0):(i(E),s(y),O(M(m).wrapper,{width:M(m).iframe.offsetWidth,height:M(m).iframe.offsetHeight}))})}),Qu(()=>{_&&_()}),$t(()=>($e(i()),$e(s())),()=>{re(S,Xl({width:`${i()}px`,height:`${s()}px`}))}),$t(()=>($e(i()),$e(s()),$e(h())),()=>{re(C,Xl({width:`${i()}px`,height:`${s()+(h()?g:0)}px`}))}),Iu();var A={getMirror:p,triggerResize:N,toggleFullscreen:F,addEventListener:T,addEvent:x,getMetaData:oe,getReplayer:L,toggle:te,setSpeed:U,toggleSkipInactive:$,play:ge,pause:q,goto:W,playRange:Ce};ec();var be=sg(),k=nt(be);Fi(k,P=>re(w,P),()=>M(w));var j=Ge(k,2);{var ee=P=>{Fi(ig(P,{get replayer(){return M(m)},get showController(){return h()},get autoPlay(){return a()},get speedOption(){return c()},get skipInactive(){return u()},get tags(){return f()},get inactiveColor(){return d()},$$events:{fullscreen:()=>F()},$$legacy:!0}),fe=>re(b,fe),()=>M(b))};Xn(j,P=>{M(m)&&P(ee)})}return st(be),Fi(be,P=>re(v,P),()=>M(v)),xr(()=>{Rr(be,M(C)),Rr(k,M(S))}),Ct(e,be),ve(t,"getMirror",p),ve(t,"triggerResize",N),ve(t,"toggleFullscreen",F),ve(t,"addEventListener",T),ve(t,"addEvent",x),ve(t,"getMetaData",oe),ve(t,"getReplayer",L),ve(t,"toggle",te),ve(t,"setSpeed",U),ve(t,"toggleSkipInactive",$),ve(t,"play",ge),ve(t,"pause",q),ve(t,"goto",W),ve(t,"playRange",Ce),bo(A)}const og=Dh(ng);class qc extends og{constructor(t){var r;super({target:t.target,props:(r=t.data)!=null?r:t.props})}}exports.Player=qc;exports.default=qc;
188
+ `);ie(p,new Dm(o(),G({speed:a(),root:M(g),unpackFn:jm},r))),M(p).on("resize",I=>{O(M(p).wrapper,I)}),_=Hm(()=>{Ql()?setTimeout(()=>{S=i(),v=s(),i(M(w).offsetWidth),s(M(w).offsetHeight-(d()?y:0)),O(M(p).wrapper,{width:M(p).iframe.offsetWidth,height:M(p).iframe.offsetHeight})},0):(i(S),s(v),O(M(p).wrapper,{width:M(p).iframe.offsetWidth,height:M(p).iframe.offsetHeight}))})}),Qu(()=>{_&&_()}),$t(()=>($e(i()),$e(s())),()=>{ie(E,Xl({width:`${i()}px`,height:`${s()}px`}))}),$t(()=>($e(i()),$e(s()),$e(d())),()=>{ie(C,Xl({width:`${i()}px`,height:`${s()+(d()?y:0)}px`}))}),Iu();var A={getMirror:m,triggerResize:N,toggleFullscreen:F,addEventListener:T,addEvent:x,getMetaData:ae,getReplayer:L,toggle:te,setSpeed:U,toggleSkipInactive:$,play:ge,pause:q,goto:z,playRange:Ce};ec();var be=ng(),k=nt(be);Fi(k,I=>ie(g,I),()=>M(g));var j=Ge(k,2);{var ee=I=>{Fi(sg(I,{get replayer(){return M(p)},get showController(){return d()},get autoPlay(){return l()},get speedOption(){return u()},get skipInactive(){return c()},get tags(){return f()},get inactiveColor(){return h()},$$events:{fullscreen:()=>F()},$$legacy:!0}),fe=>ie(b,fe),()=>M(b))};Xn(j,I=>{M(p)&&I(ee)})}return st(be),Fi(be,I=>ie(w,I),()=>M(w)),xr(()=>{Rr(be,M(C)),Rr(k,M(E))}),Ct(e,be),ve(t,"getMirror",m),ve(t,"triggerResize",N),ve(t,"toggleFullscreen",F),ve(t,"addEventListener",T),ve(t,"addEvent",x),ve(t,"getMetaData",ae),ve(t,"getReplayer",L),ve(t,"toggle",te),ve(t,"setSpeed",U),ve(t,"toggleSkipInactive",$),ve(t,"play",ge),ve(t,"pause",q),ve(t,"goto",z),ve(t,"playRange",Ce),bo(A)}const ag=Dh(og);class qc extends ag{constructor(t){var r;super({target:t.target,props:(r=t.data)!=null?r:t.props})}}exports.Player=qc;exports.default=qc;
189
189
  if (typeof module.exports == "object" && typeof exports == "object") {
190
190
  var __cp = (to, from, except, desc) => {
191
191
  if ((from && typeof from === "object") || typeof from === "function") {