@amplitude/rrweb-player 2.0.0-alpha.39 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rrweb-player.cjs +120 -1
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +120 -1
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +121 -1
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +28 -28
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +4 -4
|
@@ -11,15 +11,15 @@
|
|
|
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 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!==
|
|
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
|
|
14
|
+
"use strict";var Xc=Object.defineProperty,Qc=Object.defineProperties;var Kc=Object.getOwnPropertyDescriptors;var wi=Object.getOwnPropertySymbols;var Zo=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable;var Ko=(e,t,r)=>t in e?Xc(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)&&Ko(e,r,t[r]);if(wi)for(var r of wi(t))ea.call(t,r)&&Ko(e,r,t[r]);return e},_e=(e,t)=>Qc(e,Kc(t));var Vr=(e,t)=>{var r={};for(var i in e)Zo.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&wi)for(var i of wi(e))t.indexOf(i)<0&&ea.call(e,i)&&(r[i]=e[i]);return r};var Zc=Object.defineProperty,iu=e=>{throw TypeError(e)},ef=(e,t,r)=>t in e?Zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t,r)=>ef(e,typeof t!="symbol"?t+"":t,r),uo=(e,t,r)=>t.has(e)||iu("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)?iu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),U=(e,t,r,i)=>(uo(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),we=(e,t,r)=>(uo(e,t,"access private method"),r),ta,oi,Yr,Ut,Bt,Jr,ai,ti,Ye,co,li,Ln,su,nu,ot,Je,Ti,xt,Ar,Nt,at,ze,St,jt,er,Qt,Vt,wr,Kt,Fn,Ie,ou,au,fo,Ui,Bi,Un,gt,Et,Ve,br,ki,Pi,Bn,Lt,it;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const tf="5";var tu,ru;typeof window!="undefined"&&((ru=(ta=(tu=window.__svelte)!=null?tu:window.__svelte={}).v)!=null?ru:ta.v=new Set).add(tf);let Fr=!1,rf=!1;function sf(){Fr=!0}sf();const nf=1,of=2,af=16,lf=1,uf=2,lu=4,cf=8,ff=16,hf=2,uu="[",Ji="[!",ho="]",Dr={},Oe=Symbol(),df="http://www.w3.org/1999/xhtml",$n=!1;var po=Array.isArray,pf=Array.prototype.indexOf,Xi=Array.from,cu=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,fu=Object.getOwnPropertyDescriptors,mf=Object.prototype,gf=Array.prototype,mo=Object.getPrototypeOf,ra=Object.isExtensible;function vf(e){return e()}function Wn(e){for(var t=0;t<e.length;t++)e[t]()}function hu(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}const Re=2,go=4,Qi=8,yf=1<<24,At=16,Dt=32,fr=64,Ki=128,ct=512,xe=1024,Fe=2048,ht=4096,qe=8192,Ot=16384,Zi=32768,Tr=65536,ia=1<<17,du=1<<18,Ur=1<<19,pu=1<<20,Wt=1<<25,or=32768,zn=1<<21,vo=1<<22,Gt=1<<23,rr=Symbol("$state"),mu=Symbol("legacy props"),wf=Symbol(""),Cr=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,Br=8;function es(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function bf(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function _f(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Sf(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ef(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Cf(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function xf(){throw new Error("https://svelte.dev/e/hydration_failed")}function Rf(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Nf(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Mf(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Of(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Af(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Df(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ts(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Tf(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let K=!1;function Mt(e){K=e}let X;function je(e){if(e===null)throw ts(),Dr;return X=e}function rs(){return je(bt(X))}function st(e){if(K){if(bt(X)!==null)throw ts(),Dr;X=e}}function kf(e=1){if(K){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===Br){var i=r.data;if(i===ho){if(t===0)return r;t-=1}else(i===uu||i===Ji)&&(t+=1)}var s=bt(r);e&&r.remove(),r=s}}function gu(e){if(!e||e.nodeType!==Br)throw ts(),Dr;return e.data}function vu(e){return e===this.v}function Pf(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function yu(e){return!Pf(e,this.v)}let oe=null;function kr(e){oe=e}function wo(e,t=!1,r){oe={p:oe,i:!1,c:null,e:null,s:e,x:null,l:Fr&&!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)Iu(i)}return e!==void 0&&(t.x=e),t.i=!0,oe=t.p,e!=null?e:{}}function fi(){return!Fr||oe!==null&&oe.l===null}let Zt=[];function wu(){var e=Zt;Zt=[],Wn(e)}function $r(e){if(Zt.length===0&&!ri){var t=Zt;queueMicrotask(()=>{t===Zt&&wu()})}Zt.push(e)}function If(){for(;Zt.length>0;)wu()}function bu(e){var t=Q;if(t===null)return J.f|=Gt,e;if((t.f&Zi)===0){if((t.f&Ki)===0)throw e;t.b.error(e)}else Pr(e,t)}function Pr(e,t){for(;t!==null;){if((t.f&Ki)!==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,ri=!1;const Lf=class jn{constructor(){Y(this,Ye),Rt(this,"committed",!1),Rt(this,"current",new Map),Rt(this,"previous",new Map),Y(this,oi,new Set),Y(this,Yr,new Set),Y(this,Ut,0),Y(this,Bt,0),Y(this,Jr,null),Y(this,ai,new Set),Y(this,ti,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)we(this,Ye,co).call(this,s,i);this.is_fork||we(this,Ye,su).call(this),this.is_deferred()?(we(this,Ye,li).call(this,i.effects),we(this,Ye,li).call(this,i.render_effects)):(ne=null,sa(i.render_effects),sa(i.effects),(r=R(this,Jr))==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(_u(),ne!==null&&ne!==this)return}else R(this,Ut)===0&&this.process([]);this.deactivate()}discard(){for(const t of R(this,Yr))t(this);R(this,Yr).clear()}increment(t){U(this,Ut,R(this,Ut)+1),t&&U(this,Bt,R(this,Bt)+1)}decrement(t){U(this,Ut,R(this,Ut)-1),t&&U(this,Bt,R(this,Bt)-1),this.revive()}revive(){for(const t of R(this,ai))R(this,ti).delete(t),Ne(t,Fe),lr(t);for(const t of R(this,ti))Ne(t,ht),lr(t);this.flush()}oncommit(t){R(this,oi).add(t)}ondiscard(t){R(this,Yr).add(t)}settled(){var t;return((t=R(this,Jr))!=null?t:U(this,Jr,hu())).promise}static ensure(){if(ne===null){const t=ne=new jn;Ii.add(ne),ri||jn.enqueue(()=>{ne===t&&t.flush()})}return ne}static enqueue(t){$r(t)}apply(){}};oi=new WeakMap;Yr=new WeakMap;Ut=new WeakMap;Bt=new WeakMap;Jr=new WeakMap;ai=new WeakMap;ti=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&Ki)!==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):Wr(i)&&((i.f&At)!==0&&R(this,ai).add(i),Lr(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&&(we(this,Ye,li).call(this,t.effects),we(this,Ye,li).call(this,t.render_effects),t=t.parent),i=u.next,u=u.parent}};li=function(e){for(const t of e)(t.f&Fe)!==0?R(this,ai).add(t):(t.f&ht)!==0&&R(this,ti).add(t),we(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,we(this,Ye,Ln).call(this,t.deps))};su=function(){if(R(this,Bt)===0){for(const e of R(this,oi))e();R(this,oi).clear()}R(this,Ut)===0&&we(this,Ye,nu).call(this)};nu=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)Su(a,c,l,u);if(Xe.length>0){ne=n,n.apply();for(const a of Xe)we(e=n,Ye,co).call(e,a,i);n.deactivate()}Xe=s}}ne=null,De=t}this.committed=!0,Ii.delete(this)};let ar=Lf;function Ff(e){var t=ri;ri=!0;try{for(var r;;){if(If(),Xe.length===0&&(ne==null||ne.flush(),Xe.length===0))return is=null,r;_u()}}finally{ri=t}}function _u(){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;Uf()}i.process(Xe),Ht.clear()}}finally{qn=!1,zi(e),is=null}}function Uf(){try{Cf()}catch(e){Pr(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&&Wr(i)&&(vt=new Set,Lr(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?Bu(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&&Lr(l)}}vt.clear()}}vt=null}}function Su(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?Su(s,t,r,i):(n&(vo|At))!==0&&(n&Fe)===0&&Eu(s,t,i)&&(Ne(s,Fe),lr(s))}}function Eu(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&&Eu(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===Q&&(r&At)!==0&&(r&du)===0)return;if((r&(fr|Dt))!==0){if((r&xe)===0)return;t.f^=xe}}Xe.push(t)}function Bf(e){let t=0,r=Yt(0),i;return()=>{ui()&&(M(r),hi(()=>(t===0&&(i=Ce(()=>e(()=>ii(r)))),t+=1,()=>{$r(()=>{t-=1,t===0&&(i==null||i(),i=void 0,ii(r))})})))}}var $f=Tr|Ur|Ki;function Wf(e,t,r){new zf(e,t,r)}class zf{constructor(t,r,i){Y(this,Ie),Rt(this,"parent"),Y(this,ot,!1),Y(this,Je),Y(this,Ti,K?X:null),Y(this,xt),Y(this,Ar),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,Qt,0),Y(this,Vt,0),Y(this,wr,!1),Y(this,Kt,null),Y(this,Fn,Bf(()=>(U(this,Kt,Yt(R(this,Qt))),()=>{U(this,Kt,null)}))),U(this,Je,t),U(this,xt,r),U(this,Ar,i),this.parent=Q.b,U(this,ot,!!R(this,xt).pending),U(this,Nt,Eo(()=>{if(Q.b=this,K){const n=R(this,Ti);rs(),n.nodeType===Br&&n.data===Ji?we(this,Ie,au).call(this):we(this,Ie,ou).call(this)}else{var s=we(this,Ie,fo).call(this);try{U(this,at,Ke(()=>i(s)))}catch(n){this.error(n)}R(this,Vt)>0?we(this,Ie,Bi).call(this):U(this,ot,!1)}return()=>{var n;(n=R(this,er))==null||n.remove()}},$f)),K&&U(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){we(this,Ie,Un).call(this,t),U(this,Qt,R(this,Qt)+t),R(this,Kt)&&Ir(R(this,Kt),R(this,Qt))}get_effect_pending(){return R(this,Fn).call(this),M(R(this,Kt))}error(t){var r=R(this,xt).onerror;let i=R(this,xt).failed;if(R(this,wr)||!r&&!i)throw t;R(this,at)&&(Le(R(this,at)),U(this,at,null)),R(this,ze)&&(Le(R(this,ze)),U(this,ze,null)),R(this,St)&&(Le(R(this,St)),U(this,St,null)),K&&(je(R(this,Ti)),kf(),je($i()));var s=!1,n=!1;const o=()=>{if(s){Tf();return}s=!0,n&&Df(),ar.ensure(),U(this,Qt,0),R(this,St)!==null&&hr(R(this,St),()=>{U(this,St,null)}),U(this,ot,this.has_pending_snippet()),U(this,at,we(this,Ie,Ui).call(this,()=>(U(this,wr,!1),Ke(()=>R(this,Ar).call(this,R(this,Je)))))),R(this,Vt)>0?we(this,Ie,Bi).call(this):U(this,ot,!1)};var c=J;try{Ue(null),n=!0,r==null||r(t,o),n=!1}catch(l){Pr(l,R(this,Nt)&&R(this,Nt).parent)}finally{Ue(c)}i&&$r(()=>{U(this,St,we(this,Ie,Ui).call(this,()=>{ar.ensure(),U(this,wr,!0);try{return Ke(()=>{i(R(this,Je),()=>t,()=>o)})}catch(l){return Pr(l,R(this,Nt).parent),null}finally{U(this,wr,!1)}}))})}}ot=new WeakMap;Je=new WeakMap;Ti=new WeakMap;xt=new WeakMap;Ar=new WeakMap;Nt=new WeakMap;at=new WeakMap;ze=new WeakMap;St=new WeakMap;jt=new WeakMap;er=new WeakMap;Qt=new WeakMap;Vt=new WeakMap;wr=new WeakMap;Kt=new WeakMap;Fn=new WeakMap;Ie=new WeakSet;ou=function(){try{U(this,at,Ke(()=>R(this,Ar).call(this,R(this,Je))))}catch(e){this.error(e)}U(this,ot,!1)};au=function(){const e=R(this,xt).pending;e&&(U(this,ze,Ke(()=>e(R(this,Je)))),ar.enqueue(()=>{var t=we(this,Ie,fo).call(this);U(this,at,we(this,Ie,Ui).call(this,()=>(ar.ensure(),Ke(()=>R(this,Ar).call(this,t))))),R(this,Vt)>0?we(this,Ie,Bi).call(this):(hr(R(this,ze),()=>{U(this,ze,null)}),U(this,ot,!1))}))};fo=function(){var e=R(this,Je);return R(this,ot)&&(U(this,er,ft()),R(this,Je).before(R(this,er)),e=R(this,er)),e};Ui=function(e){var t=Q,r=J,i=oe;et(R(this,Nt)),Ue(R(this,Nt)),kr(R(this,Nt).ctx);try{return e()}catch(s){return bu(s),null}finally{et(t),Ue(r),kr(i)}};Bi=function(){const e=R(this,xt).pending;R(this,at)!==null&&(U(this,jt,document.createDocumentFragment()),R(this,jt).append(R(this,er)),zu(R(this,at),R(this,jt))),R(this,ze)===null&&U(this,ze,Ke(()=>e(R(this,Je))))};Un=function(e){var t;if(!this.has_pending_snippet()){this.parent&&we(t=this.parent,Ie,Un).call(t,e);return}U(this,Vt,R(this,Vt)+e),R(this,Vt)===0&&(U(this,ot,!1),R(this,ze)&&hr(R(this,ze),()=>{U(this,ze,null)}),R(this,jt)&&(R(this,Je).before(R(this,jt)),U(this,jt,null)))};function qf(e,t,r,i){const s=fi()?ss:ns;if(r.length===0&&e.length===0){i(t.map(s));return}var n=ne,o=Q,c=jf();function l(){Promise.all(r.map(u=>Vf(u))).then(u=>{c();try{i([...t.map(s),...u])}catch(a){(o.f&Ot)===0&&Pr(a,o)}n==null||n.deactivate(),Wi()}).catch(u=>{Pr(u,o)})}e.length>0?Promise.all(e).then(()=>{c();try{return l()}finally{n==null||n.deactivate(),Wi()}}):l()}function jf(){var e=Q,t=J,r=oe,i=ne;return function(n=!0){et(e),Ue(t),kr(r),n&&(i==null||i.activate())}}function Wi(){et(null),Ue(null),kr(null)}function ss(e){var t=Re|Fe,r=J!==null&&(J.f&Re)!==0?J:null;return Q!==null&&(Q.f|=Ur),{ctx:oe,deps:null,effects:null,equals:vu,f:t,fn:e,reactions:null,rv:0,v:Oe,wv:0,parent:r!=null?r:Q,ac:null}}function Vf(e,t){let r=Q;r===null&&bf();var i=r.b,s=void 0,n=Yt(Oe),o=!J,c=new Map;return eh(()=>{var l,u=hu();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(Cr),c.delete(a),c.set(a,u)}const f=(h,p=void 0)=>{if(a.activate(),p)p!==Cr&&(n.f|=Gt,Ir(n,p));else{(n.f&Gt)!==0&&(n.f^=Gt),Ir(n,h);for(const[m,y]of c){if(c.delete(m),m===a)break;y.reject(Cr)}}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(Cr)}),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=yu,t}function Cu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Le(t[r])}}function Gf(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=Q;et(Gf(e));try{e.f&=~or,Cu(e),t=Gu(e)}finally{et(r)}return t}function xu(e){var t=_o(e);if(e.equals(t)||(ne!=null&&ne.is_fork||(e.v=t),e.wv=ju()),!dr)if(De!==null)(ui()||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 Ru=!1;function Yt(e,t){var r={f:0,v:e,reactions:null,equals:vu,rv:0,wv:0};return r}function Tt(e,t){const r=Yt(e);return ih(r),r}function Ae(e,t=!1,r=!0){var n;var i;const s=Yt(e);return t||(s.equals=yu),Fr&&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)&&fi()&&(J.f&(Re|At|vo|ia))!==0&&!(Ze!=null&&Ze.includes(e))&&Af();let i=r?xr(t):t;return Ir(e,i)}function Ir(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=ju(),Nu(e,Fe),fi()&&Q!==null&&(Q.f&xe)!==0&&(Q.f&(Dt|fr))===0&&(He===null?sh([e]):He.push(e)),!i.is_fork&&Vn.size>0&&!Ru&&Hf()}return t}function Hf(){Ru=!1;var e=ir;zi(!0);const t=Array.from(Vn);try{for(const r of t)(r.f&xe)!==0&&Ne(r,ht),Wr(r)&&Lr(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 ii(e){ie(e,e.v+1)}function Nu(e,t){var r=e.reactions;if(r!==null)for(var i=fi(),s=r.length,n=0;n<s;n++){var o=r[n],c=o.f;if(!(!i&&o===Q)){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),Nu(u,ht))}else l&&((c&At)!==0&&vt!==null&&vt.add(o),lr(o))}}}function xr(e){if(typeof e!="object"||e===null||rr in e)return e;const t=mo(e);if(t!==mf&&t!==gf)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)&&Mf();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),ii(s)}}else ie(u,Oe),ii(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=xr(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||Q!==null&&(!d||(u=tr(c,l))!=null&&u.writable)){a===void 0&&(a=o(()=>{var h=d?xr(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,xr(u)),r.set(l,f));else{h=f.v!==Oe;var y=o(()=>xr(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)}ii(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(){Of()}})}var oa,Mu,Ou,Au;function Gn(){if(oa===void 0){oa=window,Mu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ou=tr(t,"firstChild").get,Au=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 Ou.call(e)}function bt(e){return Au.call(e)}function nt(e,t){if(!K)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 Yf(e,t=!1){if(!K){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=K?X:e;for(var s;t--;)s=i,i=bt(i);if(!K)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 Du(e){e.textContent=""}function Tu(){return!1}let aa=!1;function ku(){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=Q;Ue(null),et(null);try{return e()}finally{Ue(t),et(r)}}function Jf(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),ku()}function Pu(e){Q===null&&(J===null&&Ef(),Sf()),dr&&_f()}function Xf(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=Q;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{Lr(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&Ur)===0&&(n=n.first,(e&At)!==0&&(e&Tr)!==0&&n!==null&&(n.f|=Tr)),n!==null&&(n.parent=i,i!==null&&Xf(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 ui(){return J!==null&&!wt}function So(e){const t=_t(Qi,null,!1);return Ne(t,xe),t.teardown=e,t}function Hn(e){var s;Pu();var t=Q.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 Iu(e)}function Iu(e){return _t(go|pu,e,!1)}function Qf(e){return Pu(),_t(Qi|pu,e,!0)}function Kf(e){ar.ensure();const t=_t(fr|Ur,e,!0);return(r={})=>new Promise(i=>{r.outro?hr(t,()=>{Le(t),i(void 0)}):(Le(t),i(void 0))})}function Zf(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=hi(()=>{e(),!i.ran&&(i.ran=!0,Ce(t))})}function Lu(){var e=oe;hi(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&xe)!==0&&Ne(r,ht),Wr(r)&&Lr(r),t.ran=!1}})}function eh(e){return _t(vo|Ur,e,!0)}function hi(e,t=0){return _t(Qi|t,e,!0)}function Rr(e,t=[],r=[],i=[]){qf(i,t,r,s=>{_t(Qi,()=>e(...s.map(M)),!0)})}function Eo(e,t=0){var r=_t(At|t,e,!0);return r}function Ke(e){return _t(Dt|Ur,e,!0)}function Fu(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 Uu(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&os(()=>{s.abort(Cr)});var i=r.next;(r.f&fr)!==0?r.parent=null:Le(r,t),r=i}}function th(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&du)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(rh(e.nodes.start,e.nodes.end),r=!0),Uu(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();Fu(e);var s=e.parent;s!==null&&s.first!==null&&Bu(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function rh(e,t){for(;e!==null;){var r=e===t?null:bt(e);e.remove(),e=r}}function Bu(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=[];$u(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 $u(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&Tr)!==0||(s.f&Dt)!==0&&(e.f&At)!==0;$u(s,t,o?r:!1),s=n}}}function Co(e){Wu(e,!0)}function Wu(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&Tr)!==0||(r.f&Dt)!==0;Wu(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 zu(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 Q=null;function et(e){Q=e}let Ze=null;function ih(e){J!==null&&(Ze===null?Ze=[e]:Ze.push(e))}let Pe=null,Be=0,He=null;function sh(e){He=e}let qu=1,ci=0,sr=ci;function ua(e){sr=e}function ju(){return++qu}function Wr(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(Wr(n)&&xu(n),n.wv>e.wv)return!0}(t&ct)!==0&&De===null&&Ne(e,xe)}return!1}function Vu(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?Vu(n,t,!1):t===n&&(r?Ne(n,Fe):(n.f&xe)!==0&&Ne(n,ht),lr(n))}}function Gu(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,kr(e.ctx),wt=!1,sr=++ci,e.ac!==null&&(os(()=>{e.ac.abort(Cr)}),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(ui()&&(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(fi()&&He!==null&&!wt&&h!==null&&(e.f&(Re|ht|Fe))===0)for(p=0;p<He.length;p++)Vu(He[p],e);return n!==null&&n!==e&&(ci++,He!==null&&(s===null?s=He:s.push(...He))),(e.f&Gt)!==0&&(e.f^=Gt),f}catch(y){return bu(y)}finally{e.f^=zn,Pe=r,Be=i,He=s,J=n,Ze=o,kr(c),wt=l,sr=u}}function nh(e,t){let r=t.reactions;if(r!==null){var i=pf.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),Cu(t),qi(t,0))}function qi(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)nh(e,r[i])}function Lr(e){var t=e.f;if((t&Ot)===0){Ne(e,xe);var r=Q,i=ir;Q=e,ir=!0;try{(t&(At|yf))!==0?th(e):Uu(e),Fu(e);var s=Gu(e);e.teardown=typeof s=="function"?s:null,e.wv=qu;var n;$n&&rf&&(e.f&Fe)!==0&&e.deps}finally{ir=i,Q=r}}}function M(e){var l;var t=e.f,r=(t&Re)!==0;if(J!==null&&!wt){var i=Q!==null&&(Q.f&Ot)!==0;if(!i&&!(Ze!=null&&Ze.includes(e))){var s=J.deps;if((J.f&zn)!==0)e.rv<ci&&(e.rv=ci,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||Yu(o))&&(c=_o(o)),Ht.set(o,c),c}}else r&&(!(De!=null&&De.has(e))||ne!=null&&ne.is_fork&&!ui())&&(o=e,Wr(o)&&xu(o),ir&&ui()&&(o.f&ct)===0&&Hu(o));if(De!=null&&De.has(e))return De.get(e);if((e.f&Gt)!==0)throw e.v;return e.v}function Hu(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&&Hu(r)}}function Yu(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&&Yu(t))return!0;return!1}function Ce(e){var t=wt;try{return wt=!0,e()}finally{wt=t}}const oh=-7169;function Ne(e,t){e.f=e.f&oh|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=fu(r);for(let s in i){const n=i[s].get;if(n)try{n.call(e)}catch(o){}}}}}const ah=new Set,ca=new Set;function lh(e,t,r,i={}){function s(n){if(i.capture||Xr.call(t,n),!n.cancelBubble)return os(()=>r==null?void 0:r.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?$r(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function Gr(e,t,r,i,s){var n={capture:i,passive:s},o=lh(e,t,r,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&So(()=>{t.removeEventListener(e,o,n)})}let fa=null;function Xr(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){cu(e,"currentTarget",{configurable:!0,get(){return o||i}});var d=J,f=Q;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 Ju(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function cr(e,t){var r=Q;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function zr(e,t){var r=(t&hf)!==0,i,s=!e.startsWith("<!>");return()=>{if(K)return cr(X,null),X;i===void 0&&(i=Ju(s?e:"<!>"+e),i=ur(i));var n=r||Mu?document.importNode(i,!0):i.cloneNode(!0);return cr(n,n),n}}function uh(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,n;return()=>{if(K)return cr(X,null),X;if(!n){var o=Ju(s),c=ur(o);n=ur(c)}var l=n.cloneNode(!0);return cr(l,l),l}}function Xu(e,t){return uh(e,t,"svg")}function ch(){if(K)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(K){var r=Q;((r.f&Zi)===0||r.nodes.end===null)&&(r.nodes.end=X),rs();return}e!==null&&e.before(t)}const fh=["touchstart","touchmove"];function hh(e){return fh.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 Qu(e,t){return Ku(e,t)}function dh(e,t){var o;Gn(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,i=K,s=X;try{for(var n=ur(r);n&&(n.nodeType!==Br||n.data!==uu);)n=bt(n);if(!n)throw Dr;Mt(!0),je(n);const c=Ku(e,_e(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!==Dr&&console.warn("Failed to hydrate: ",c),t.recover===!1&&xf(),Gn(),Du(r),Mt(!1),Qu(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=hh(h);t.addEventListener(h,Xr,{passive:p});var m=gr.get(h);m===void 0?(document.addEventListener(h,Xr,{passive:p}),gr.set(h,1)):gr.set(h,m+1)}}};l(Xi(ah)),ca.add(l);var u=void 0,a=Kf(()=>{var d=r!=null?r:t.appendChild(ft());return Wf(d,{pending:()=>{}},f=>{if(n){wo({});var h=oe;h.c=n}if(s&&(i.$$events=s),K&&cr(f,null),u=e(f,i)||{},K&&(Q.nodes.end=X,X===null||X.nodeType!==Br||X.data!==ho))throw ts(),Dr;n&&bo()}),()=>{var f;for(var h of c){t.removeEventListener(h,Xr);var p=gr.get(h);--p===0?(document.removeEventListener(h,Xr),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 ph(e,t){const r=Jn.get(e);return r?(Jn.delete(e),r(t)):Promise.resolve()}class mh{constructor(t,r=!0){Rt(this,"anchor"),Y(this,gt,new Map),Y(this,Et,new Map),Y(this,Ve,new Map),Y(this,br,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,br).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,br).has(c))continue;const u=()=>{if(Array.from(R(this,gt).values()).includes(c)){var d=document.createDocumentFragment();zu(l,d),d.append(ft()),R(this,Ve).set(c,{effect:l,fragment:d})}else Le(l);R(this,br).delete(c),R(this,Et).delete(c)};R(this,ki)||!n?(R(this,br).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,U(this,ki,r)}ensure(t,r){var i=ne,s=Tu();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:Ke(()=>r(o)),fragment:n})}else R(this,Et).set(t,Ke(()=>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 K&&(this.anchor=X),R(this,Pi).call(this)}}gt=new WeakMap;Et=new WeakMap;Ve=new WeakMap;br=new WeakMap;ki=new WeakMap;Pi=new WeakMap;Bn=new WeakMap;function xo(e){oe===null&&es(),Fr&&oe.l!==null?ec(oe).m.push(e):Hn(()=>{const t=Ce(e);if(typeof t=="function")return t})}function Zu(e){oe===null&&es(),xo(()=>()=>Ce(e))}function gh(e,t,{bubbles:r=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:i})}function vh(){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=gh(t,r,i);for(const l of o)l.call(e.x,c);return!c.defaultPrevented}return!0}}function yh(e){oe===null&&es(),oe.l===null&&Rf(),ec(oe).a.push(e)}function ec(e){var r;var t=e.l;return(r=t.u)!=null?r:t.u={a:[],b:[],m:[]}}function Xn(e,t,r=!1){K&&rs();var i=new mh(e),s=r?Tr:0;function n(o,c){if(K){const u=gu(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 wh(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;Qn(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;Du(a),a.append(u),e.items.clear()}Qn(t,!l)}else n={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(n)}function Qn(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;K&&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,bh(p,a,o,t,i),l!==null&&(a.length===0?(l.f&Wt)===0?Co(l):(l.f^=Wt,Qr(l,null,o)):hr(l,()=>{l=null}))}var h=Eo(()=>{a=M(u);var m=a.length;let y=!1;if(K){var w=gu(o)===Ji;w!==(m===0)&&(o=$i(),je(o),Mt(!1),y=!0)}for(var g=new Set,_=ne,S=Tu(),v=0;v<m;v+=1){K&&X.nodeType===Br&&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&&Ir(C.v,b),C.i&&Ir(C.i,v),S&&_.skipped_effects.delete(C.e)):(C=_h(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=Ke(()=>n(o)):(l=Ke(()=>n(kt!=null?kt:kt=ft())),l.f|=Wt)),K&&m>0&&je($i()),!d)if(S){for(const[A,N]of c)g.has(A)||_.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,K&&(o=X)}function bh(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 A of e.outrogroups)A.pending.delete(m),A.done.delete(m);if((m.f&Wt)!==0)if(m.f^=Wt,m===l)Qr(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),Qr(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)Qr(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),Qr(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 A of e.outrogroups)A.pending.size===0&&(Qn(Xi(A.done)),(n=e.outrogroups)==null||n.delete(A));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;wh(e,b,C)}}}function _h(e,t,r,i,s,n,o,c){var l=(o&nf)!==0?(o&af)===0?Ae(r,!1,!1):Yt(r):null,u=(o&of)!==0?Yt(s):null;return{v:l,i:u,e:Ke(()=>(n(t,l!=null?l:r,u!=null?u:s,c),()=>{e.delete(i)}))}}function Qr(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 Sh(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 Eh(e,t){return e==null?null:String(e)}function Kn(e,t,r,i,s,n){var o=e.__className;if(K||o!==r||o===void 0){var c=Sh(r,i,n);(!K||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 Nr(e,t,r,i){var s=e.__style;if(K||s!==t){var n=Eh(t);(!K||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return i}const Ch=Symbol("is custom element"),xh=Symbol("is html");function Rh(e){if(K){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,$r(r),ku()}}function nr(e,t,r,i){var s=Nh(e);K&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[wf]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Mh(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Nh(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Ch]:e.nodeName.includes("-"),[xh]:e.namespaceURI===df}}var da=new Map;function Mh(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=fu(s);for(var o in i)i[o].set&&r.push(o);s=mo(s)}return r}function Oh(e,t,r=t){Jf(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(K&&e.defaultChecked!==e.checked||Ce(t)==null)&&r(e.checked),hi(()=>{var i=t();e.checked=!!i})}function ye(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 Zf(()=>{var s,n;return hi(()=>{s=n,n=[],Ce(()=>{e!==r(...n)&&(t(e,...n),s&&pa(r(...s),e)&&t(null,...s))})}),()=>{$r(()=>{n&&pa(r(...n),e)&&t(null,...n)})}}),e}function tc(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&&Qf(()=>{ma(t,i),Wn(r.b)}),Hn(()=>{const s=Ce(()=>r.m.map(vf));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 bi=!1;function Ah(e){var t=bi;try{return bi=!1,[e(),bi]}finally{bi=t}}const Dh={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=Q;try{et(e.parent_effect),e.special[t]=ge({get[t](){return e.props[t]}},t,lu)}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 Th(e,t){return new Proxy({props:e,exclude:t,special:{},version:Yt(0),parent_effect:Q},Dh)}function ge(e,t,r,i){var S;var s,n=!Fr||(r&uf)!==0,o=(r&cf)!==0,c=(r&ff)!==0,l=i,u=!0,a=()=>(u&&(u=!1,l=c?Ce(i):i),l),d;if(o){var f=rr in e||mu 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]=Ah(()=>e[t]):h=e[t],h===void 0&&i!==void 0&&(h=a(),d&&(n&&Nf(),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&lu)===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&lf)!==0?ss:ns)(()=>(w=!1,m()));o&&M(g);var _=Q;return(function(v,b){if(arguments.length>0){const E=b?M(g):n&&o?xr(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 kh(e){return class extends Ph{constructor(t){super(G({component:e},t))}}}class Ph{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(_e(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===mu?!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)}});U(this,it,(t.hydrate?dh:Qu)(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)&&Ff(),U(this,Lt,n.$$events);for(const c of Object.keys(R(this,it)))c==="$set"||c==="$destroy"||c==="$on"||cu(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=()=>{ph(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 Ih=Object.defineProperty,Lh=(e,t,r)=>t in e?Ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t,r)=>Lh(e,typeof t!="symbol"?t+"":t,r),ga,Fh=Object.defineProperty,Uh=(e,t,r)=>t in e?Fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,va=(e,t,r)=>Uh(e,typeof t!="symbol"?t+"":t,r),$=(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))($||{});const ya={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},wa={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_i={};function Bh(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(_i[e])return _i[e];const t=Bh(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 _i[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?_i[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 rc(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 $h(e){return Jt("Node",e,"childNodes")}function Wh(e){return Jt("Node",e,"parentNode")}function zh(e){return Jt("Node",e,"parentElement")}function qh(e){return Jt("Node",e,"textContent")}function jh(e,t){return rc("Node",e,"contains")(t)}function Vh(e){return rc("Node",e,"getRootNode")()}function Gh(e){return!e||!("host"in e)?null:Jt("ShadowRoot",e,"host")}function Hh(e){return e.styleSheets}function Yh(e){return!e||!("shadowRoot"in e)?null:Jt("Element",e,"shadowRoot")}function Jh(e,t){return Jt("Element",e,"querySelector")(t)}function Xh(e,t){return Jt("Element",e,"querySelectorAll")(t)}function Qh(){return Ro("MutationObserver").constructor}const Te={childNodes:$h,parentNode:Wh,parentElement:zh,textContent:qh,contains:jh,getRootNode:Vh,host:Gh,styleSheets:Hh,shadowRoot:Yh,querySelector:Jh,querySelectorAll:Xh,mutationObserver:Qh};function No(e){return e.nodeType===e.ELEMENT_NODE}function Kh(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 Zh(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 ed(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=>ic(s,r)).join("");return Zh(i)}catch(t){return null}}function ic(e,t){if(rd(e)){let r;try{r=Zn(e.styleSheet)||ed(e)}catch(i){r=e.cssText}return e.styleSheet.href?ji(r,e.styleSheet.href):r}else{let r=e.cssText;return id(e)&&e.selectorText.includes(":")&&(r=td(r)),t?ji(r,t):r}}function td(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function rd(e){return"styleSheet"in e}function id(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 sd({element:e,maskInputOptions:t,tagName:r,type:i,value:s,maskInputFn:n}){let o=s||"";const c=i&&di(i);return(t[r.toLowerCase()]||c&&t[c])&&(n?o=n(o,e):o="*".repeat(o.length)),o}function di(e){return e.toLowerCase()}const ba="__rrweb_original__";function nd(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 od(e,t){return!e||!t||e.type!==t.type?!1:e.type===$.Document?e.compatMode===t.compatMode:e.type===$.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===$.Comment||e.type===$.Text||e.type===$.CDATA?e.textContent===t.textContent:e.type===$.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function ad(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?di(t):null}function sc(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 ld(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const ud=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,cd=/^(?:[a-z+]+:)?\/\//i,fd=/^www\..*/i,hd=/^(data:)([^,]*),(.*)/i;function ji(e,t){return(e||"").replace(ud,(r,i,s,n,o,c)=>{const l=s||o||c,u=i||n||"";if(!l)return r;if(cd.test(l)||fd.test(l))return`url(${u}${l}${u})`;if(hd.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${ld(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 Si(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function dd(e,t,r=!1){const i=Array.from(t.childNodes),s=[];let n=0;if(i.length>1&&e&&typeof e=="string"){let o=Si(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=Si(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=Si(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=Si(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 pd(e,t){return dd(e,t).join("/* rr_split */")}const md="lightgrey";let gd=1;const vd=new RegExp("[^a-z0-9-_:]"),_a=-2;function yd(){return gd++}function wd(e){if(e instanceof HTMLFormElement)return"form";const t=di(e.tagName);return vd.test(t)?"div":t}let vr,Sa;const bd=/^[^ \t\n\r\u000c]+/,_d=/^[, \t\n\r\u000c]+/;function Sd(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(_d),!(r>=t.length);){let n=i(bd);if(n.slice(-1)===",")n=Mr(e,n.substring(0,n.length-1)),s.push(n);else{let o="";n=Mr(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 Mr(e,t){return!t||t.trim()===""?t:Oo(e,t)}function Ed(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 Cd(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")?Mr(e,i):r==="srcset"?Sd(e,i):r==="style"?ji(i,Oo(e)):t==="object"&&r==="data"?Mr(e,i):i)}function xd(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function Rd(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 Nd(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 Md(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 Od(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 Ad(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,_=Dd(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:$.Document,childNodes:[],compatMode:e.compatMode}:{type:$.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:$.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return kd(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 Td(e,{doc:r,needsMask:o,maskTextFn:u,rootId:_,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:$.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:$.Comment,textContent:Te.textContent(e)||"",rootId:_};default:return!1}}function Dd(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Td(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:$.Text,textContent:l||"",rootId:s}}function kd(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=Rd(e,i,s),w=wd(e);let g={};const _=e.attributes.length;for(let v=0;v<_;v++){const b=e.attributes[v];if(!xd(w,b.name,b.value)){const E=Cd(r,w,di(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=pd(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=sd({element:e,type:ad(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")nd(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(A){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: ${A}`)}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:md}:{})}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:$.Element,tagName:w,attributes:g,childNodes:[],isSVG:Ed(e)||void 0,needBlock:y,rootId:p,isCustom:S}}function fe(e){return e==null?"":e.toLowerCase()}function Pd(e,t){if(t.comment&&e.type===$.Comment)return!0;if(e.type===$.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"&&sc(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(fe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||fe(e.attributes.name)==="application-name"||fe(e.attributes.rel)==="icon"||fe(e.attributes.rel)==="apple-touch-icon"||fe(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&fe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(fe(e.attributes.property).match(/^(og|twitter|fb):/)||fe(e.attributes.name).match(/^(og|twitter):/)||fe(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(fe(e.attributes.name)==="robots"||fe(e.attributes.name)==="googlebot"||fe(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(fe(e.attributes.name)==="author"||fe(e.attributes.name)==="generator"||fe(e.attributes.name)==="framework"||fe(e.attributes.name)==="publisher"||fe(e.attributes.name)==="progid"||fe(e.attributes.property).match(/^article:/)||fe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(fe(e.attributes.name)==="google-site-verification"||fe(e.attributes.name)==="yandex-verification"||fe(e.attributes.name)==="csrf-token"||fe(e.attributes.name)==="p:domain_verify"||fe(e.attributes.name)==="verify-v1"||fe(e.attributes.name)==="verification"||fe(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ca(e,t,r){return Array.from(e).map(i=>{const s=t(i);let n=[];if(!r.has(s)){r.add(s);try{n=Array.from(i.cssRules,(o,c)=>({rule:ic(o,i.href),index:c}))}catch(o){if(!(o instanceof DOMException&&o.name==="SecurityError"))throw o}}return{styleId:s,rules:n}})}function Kr(e,t){var be;var r,i;const{doc:s,mirror:n,blockClass:o,blockSelector:c,maskTextClass:l,maskTextSelector:u,skipChild:a=!1,inlineStylesheet:d=!0,maskInputOptions:f={},maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:y,dataURLOptions:w={},inlineImages:g=!1,recordCanvas:_=!1,onSerialize:S,onAdoptedStyleSheet:v,onIframeLoad:b,iframeLoadTimeout:E=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:N=()=>!1,newlyAddedElement:W=!1,cssCaptured:k=!1,applyBackgroundColorToBlockedElements:x=!1}=t,he=(be=t._emittedStyleIds)!=null?be:new Set;let{needsMask:ae}=t,{preserveWhiteSpace:Z=!0}=t;ae||(ae=Nd(e,l,u,ae===void 0));const F=Ad(e,{doc:s,mirror:n,blockClass:o,blockSelector:c,needsMask:ae,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,dataURLOptions:w,inlineImages:g,recordCanvas:_,keepIframeSrcFn:N,newlyAddedElement:W,cssCaptured:k,applyBackgroundColorToBlockedElements:x});if(!F)return console.warn(e,"not serialized"),null;let ee;n.hasNode(e)?ee=n.getId(e):Pd(F,y)||!Z&&F.type===$.Text&&!F.textContent.replace(/^\s+|\s+$/gm,"").length?ee=_a:ee=yd();const L=Object.assign(F,{id:ee});if(n.add(e,L),ee===_a)return null;S&&S(e);let z=!a;if(L.type===$.Element){z=z&&!L.needBlock,delete L.needBlock;const O=Te.shadowRoot(e);O&&Rs(O)&&(L.isShadowHost=!0,v&&((r=O.adoptedStyleSheets)!=null&&r.length)&&(L.adoptedStyleSheets=Ca(O.adoptedStyleSheets,v,he)))}if(L.type===$.Document&&v){const O=e;(i=O.adoptedStyleSheets)!=null&&i.length&&(L.adoptedStyleSheets=Ca(O.adoptedStyleSheets,v,he))}if((L.type===$.Document||L.type===$.Element)&&z){y.headWhitespace&&L.type===$.Element&&L.tagName==="head"&&(Z=!1);const O={doc:s,mirror:n,blockClass:o,blockSelector:c,needsMask:ae,maskTextClass:l,maskTextSelector:u,skipChild:a,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:y,dataURLOptions:w,inlineImages:g,recordCanvas:_,preserveWhiteSpace:Z,onSerialize:S,onAdoptedStyleSheet:v,_emittedStyleIds:he,onIframeLoad:b,iframeLoadTimeout:E,onStylesheetLoad:C,stylesheetLoadTimeout:A,keepIframeSrcFn:N,cssCaptured:!1,applyBackgroundColorToBlockedElements:x};if(!(L.type===$.Element&&L.tagName==="textarea"&&L.attributes.value!==void 0)){L.type===$.Element&&L.attributes._cssText!==void 0&&typeof L.attributes._cssText=="string"&&(O.cssCaptured=!0);for(const T of Array.from(Te.childNodes(e))){const B=Kr(T,O);B&&L.childNodes.push(B)}}let ue=null;if(No(e)&&(ue=Te.shadowRoot(e)))for(const T of Array.from(Te.childNodes(ue))){const B=Kr(T,O);B&&(Rs(ue)&&(B.isShadow=!0),L.childNodes.push(B))}}const q=Te.parentNode(e);return q&&Kh(q)&&Rs(q)&&(L.isShadow=!0),L.type===$.Element&&L.tagName==="iframe"&&Md(e,()=>{const O=e.contentDocument;if(O&&b){const ue=Kr(O,{doc:O,mirror:n,blockClass:o,blockSelector:c,needsMask:ae,maskTextClass:l,maskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:y,dataURLOptions:w,inlineImages:g,recordCanvas:_,preserveWhiteSpace:Z,onSerialize:S,onAdoptedStyleSheet:v,onIframeLoad:b,iframeLoadTimeout:E,onStylesheetLoad:C,stylesheetLoadTimeout:A,keepIframeSrcFn:N});ue&&b(e,ue)}},E),L.type===$.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&sc(L.attributes.href)==="css")&&Od(e,()=>{if(C){const O=Kr(e,{doc:s,mirror:n,blockClass:o,blockSelector:c,needsMask:ae,maskTextClass:l,maskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:y,dataURLOptions:w,inlineImages:g,recordCanvas:_,preserveWhiteSpace:Z,onSerialize:S,onIframeLoad:b,iframeLoadTimeout:E,onStylesheetLoad:C,stylesheetLoadTimeout:A,keepIframeSrcFn:N});O&&C(e,O)}},A),L}function Id(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,onAdoptedStyleSheet:g,onIframeLoad:_,iframeLoadTimeout:S,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:E=()=>!1,applyBackgroundColorToBlockedElements:C=!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,onAdoptedStyleSheet:g,onIframeLoad:_,iframeLoadTimeout:S,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:E,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:C})}const Ld=/(max|min)-device-(width|height)/,xa=new RegExp(Ld.source,"g"),Fd={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(xa)&&(e.params=e.params.replace(xa,"$1-$2"))}}}},Ud={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 Bd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $d(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 Ei={exports:{}},Ra;function Wd(){if(Ra)return Ei.exports;Ra=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 Ei.exports=t(),Ei.exports.createColors=t,Ei.exports}const zd={},qd=Object.freeze(Object.defineProperty({__proto__:null,default:zd},Symbol.toStringTag,{value:"Module"})),lt=$d(qd);var Ns,Na;function Ao(){if(Na)return Ns;Na=1;let e=Wd(),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
18
|
`+y+a("^")}return" "+d(m)+f}).join(`
|
|
19
19
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
20
20
|
|
|
21
21
|
`+s+`
|
|
22
|
-
`),this.name+": "+this.message+s}}return Ns=r,r.default=r,Ns}var
|
|
22
|
+
`),this.name+": "+this.message+s}}return Ns=r,r.default=r,Ns}var Ci={},Ma;function Do(){return Ma||(Ma=1,Ci.isClean=Symbol("isClean"),Ci.my=Symbol("my")),Ci}var Ms,Oa;function nc(){if(Oa)return Ms;Oa=1;const e={after:`
|
|
23
23
|
`,beforeClose:`
|
|
24
24
|
`,beforeComment:`
|
|
25
25
|
`,beforeDecl:`
|
|
@@ -30,21 +30,21 @@ var module = { exports };
|
|
|
30
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
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,
|
|
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,
|
|
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,
|
|
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,Aa;function as(){if(Aa)return Os;Aa=1;let e=nc();function t(r,i){new e(i).stringify(r)}return Os=t,t.default=t,Os}var As,Da;function ls(){if(Da)return As;Da=1;let{isClean:e,my:t}=Do(),r=Ao(),i=nc(),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,Ta;function us(){if(Ta)return Ds;Ta=1;let e=ls();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=_e(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,ka;function jd(){if(ka)return Ts;ka=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,Pa;function oc(){if(Pa)return ks;Pa=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,Ia;function cs(){if(Ia)return Ps;Ia=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=lt,{fileURLToPath:r,pathToFileURL:i}=lt,{isAbsolute:s,resolve:n}=lt,{nanoid:o}=jd(),c=lt,l=Ao(),u=oc(),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 A=this.fromOffset(E.offset);y=A.line,w=A.col}else y=E.line,w=E.column;if(typeof C.offset=="number"){let A=this.fromOffset(C.offset);S=A.line,v=A.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,La;function ac(){if(La)return Is;La=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
37
|
`)&&(h=`\r
|
|
38
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:
|
|
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,Fa;function fs(){if(Fa)return Ls;Fa=1;let e=ls();class t extends e{constructor(i){super(i),this.type="comment"}}return Ls=t,t.default=t,Ls}var Fs,Ua;function pr(){if(Ua)return Fs;Ua=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,Ba;function To(){if(Ba)return Us;Ba=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,$a;function lc(){if($a)return Bs;$a=1;let e={};return Bs=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Bs}var $s,Wa;function uc(){if(Wa)return $s;Wa=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,za;function ko(){if(za)return Ws;za=1;let e=uc();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,qa;function Vd(){if(qa)return zs;qa=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,A={}){let N=C.css.valueOf(),W=A.ignoreErrors,k,x,he,ae,Z,F,ee,L,z,q,be=N.length,O=0,ue=[],T=[];function B(){return O}function te(se){throw C.error("Unclosed "+se,O)}function I(){return T.length===0&&O>=be}function de(se){if(T.length)return T.pop();if(O>=be)return;let ke=se?se.ignoreUnclosed:!1;switch(k=N.charCodeAt(O),k){case s:case n:case c:case l:case o:{x=O;do x+=1,k=N.charCodeAt(x);while(k===n||k===s||k===c||k===l||k===o);q=["space",N.slice(O,x)],O=x-1;break}case u:case a:case h:case p:case w:case m:case f:{let pt=String.fromCharCode(k);q=[pt,pt,O];break}case d:{if(L=ue.length?ue.pop()[1]:"",z=N.charCodeAt(O+1),L==="url"&&z!==e&&z!==t&&z!==n&&z!==s&&z!==c&&z!==o&&z!==l){x=O;do{if(F=!1,x=N.indexOf(")",x+1),x===-1)if(W||ke){x=O;break}else te("bracket");for(ee=x;N.charCodeAt(ee-1)===r;)ee-=1,F=!F}while(F);q=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),ae=N.slice(O,x+1),x===-1||v.test(ae)?q=["(","(",O]:(q=["brackets",ae,O,x],O=x);break}case e:case t:{he=k===e?"'":'"',x=O;do{if(F=!1,x=N.indexOf(he,x+1),x===-1)if(W||ke){x=O+1;break}else te("string");for(ee=x;N.charCodeAt(ee-1)===r;)ee-=1,F=!F}while(F);q=["string",N.slice(O,x+1),O,x],O=x;break}case g:{_.lastIndex=O+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,q=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,Z=!0;N.charCodeAt(x+1)===r;)x+=1,Z=!Z;if(k=N.charCodeAt(x+1),Z&&k!==i&&k!==n&&k!==s&&k!==c&&k!==l&&k!==o&&(x+=1,b.test(N.charAt(x)))){for(;b.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}q=["word",N.slice(O,x+1),O,x],O=x;break}default:{k===i&&N.charCodeAt(O+1)===y?(x=N.indexOf("*/",O+2)+1,x===0&&(W||ke?x=N.length:te("comment")),q=["comment",N.slice(O,x+1),O,x],O=x):(S.lastIndex=O+1,S.test(N),S.lastIndex===0?x=N.length-1:x=S.lastIndex-2,q=["word",N.slice(O,x+1),O,x],ue.push(q),O=x);break}}return O++,q}function ce(se){T.push(se)}return{back:ce,endOfFile:I,nextToken:de,position:B}},zs}var qs,ja;function Po(){if(ja)return qs;ja=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,Va;function pi(){if(Va)return js;Va=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,Ga;function cc(){if(Ga)return Vs;Ga=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,Ha;function Io(){if(Ha)return Gs;Ha=1;let e=pr(),t=cc();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,Ya;function Gd(){if(Ya)return Hs;Ya=1;let e=us(),t=Vd(),r=fs(),i=Po(),s=pi(),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,Ja;function Lo(){if(Ja)return Ys;Ja=1;let e=pr(),t=Gd(),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,Xa;function fc(){if(Xa)return Js;Xa=1;let{isClean:e,my:t}=Do(),r=ac(),i=as(),s=pr(),n=To(),o=lc(),c=ko(),l=Lo(),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 A=l;E.syntax&&(A=E.syntax.parse),E.parser&&(A=E.parser),A.parse&&(A=A.parse);try{C=A(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=_e(G({},g),{postcss:g,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?G(G({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(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 A=b[b.length-1].node;throw this.handleError(C,A)}}}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(A=>E(A,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 A;try{A=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(A))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,W]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=N;try{return W(E.toProxy(),this.helpers)}catch(k){throw this.handleError(k,E)}}if(b.iterator!==0){let N=b.iterator,W;for(;W=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!W[e]){W[e]=!0,v.push(y(W));return}b.iterator=0,delete E.indexes[N]}let A=b.events;for(;b.eventIndex<A.length;){let N=A[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,Qa;function Hd(){if(Qa)return Xs;Qa=1;let e=ac(),t=as(),r=lc(),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 Qs,Ka;function Yd(){if(Ka)return Qs;Ka=1;let e=Hd(),t=fc(),r=To(),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 Qs=s,s.default=s,i.registerProcessor(s),r.registerProcessor(s),Qs}var Ks,Za;function Jd(){if(Za)return Ks;Za=1;let e=us(),t=oc(),r=fs(),i=Po(),s=cs(),n=pi(),o=Io();function c(l,u){if(Array.isArray(l))return l.map(p=>c(p));let f=l,{inputs:a}=f,d=Vr(f,["inputs"]);if(a){u=[];for(let p of a){let m=_e(G({},p),{__proto__:s.prototype});m.map&&(m.map=_e(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=Vr(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 Ks=c,c.default=c,Ks}var Zs,el;function Xd(){if(el)return Zs;el=1;let e=Ao(),t=us(),r=fc(),i=pr(),s=Yd(),n=as(),o=Jd(),c=To(),l=uc(),u=fs(),a=Po(),d=ko(),f=cs(),h=Lo(),p=cc(),m=Io(),y=pi(),w=ls();function g(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return g.plugin=function(S,v){let b=!1;function E(...A){console&&console.warn&&!b&&(b=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
41
41
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(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+`
|
|
42
|
+
https://www.w3ctech.com/topic/2226`));let N=v(...A);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(A,N,W){return g([E(W)]).process(A,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 Qd=Xd();const me=Bd(Qd);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;const Kd=["webview"],tl={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 Zd(e){let t=tl[e.tagName]?tl[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=me([Fd,Ud]).process(e).css}catch(s){console.warn("Failed to adapt css for replay",s)}return t==null||t.stylesWithHoverClass.set(e,i),i}function rl(){return{stylesWithHoverClass:new Map}}function ep(e,t,r,i){const s=[];for(const o of e.childNodes)o.type===$.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 tp(e,t,r,i){const{doc:s,hackCss:n,cache:o}=i;e.childNodes.length?ep(e,r,n,o):(n&&(r=hs(r,o)),t.appendChild(s.createTextNode(r)))}function rp(e,t){var r;const{doc:i,hackCss:s,cache:n}=t;switch(e.type){case $.Document:return i.implementation.createDocument(null,"",null);case $.DocumentType:return i.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case $.Element:{const o=Zd(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"){tp(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 $.Text:return e.isStyle&&s?i.createTextNode(hs(e.textContent,n)):i.createTextNode(e.textContent);case $.CDATA:return i.createCDATASection(e.textContent);case $.Comment:return i.createComment(e.textContent);default:return null}}function si(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(od(d,e))return i.getNode(e.id)}let u=rp(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===$.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==$.DocumentType&&(e.childNodes[0].type===$.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===$.Element&&e.attributes&&("rr_scrollLeft"in e.attributes||"rr_scrollTop"in e.attributes)&&l.push(u),(e.type===$.Document||e.type===$.Element)&&!s)for(const a of e.childNodes){const d=si(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===$.Document&&a.type==$.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 ip(e,t){function r(i){t(i)}for(const i of e.getIds())e.has(i)&&r(e.getNode(i))}function sp(e,t){const r=t.getMeta(e);if((r==null?void 0:r.type)!==$.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 np(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:n,cache:o,mirror:c=new Mo}=t,l=[],u=si(e,{doc:r,mirror:c,skipChild:!1,hackCss:s,afterAppend:n,cache:o,scrollNodes:l});i&&ip(c,i);for(const a of l)sp(a,c);return u}var op=Object.defineProperty,ap=(e,t,r)=>t in e?op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t,r)=>ap(e,typeof t!="symbol"?t+"":t,r),lp=Object.defineProperty,up=(e,t,r)=>t in e?lp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,il=(e,t,r)=>up(e,typeof t!="symbol"?t+"":t,r);let cp=class{constructor(){il(this,"idNodeMap",new Map),il(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 fp(){return new cp}function hp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dp(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 xi={exports:{}},sl;function pp(){if(sl)return xi.exports;sl=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 xi.exports=t(),xi.exports.createColors=t,xi.exports}const mp={},gp=Object.freeze(Object.defineProperty({__proto__:null,default:mp},Symbol.toStringTag,{value:"Module"})),ut=dp(gp);var en,nl;function Fo(){if(nl)return en;nl=1;let e=pp(),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
43
|
`+y+a("^")}return" "+d(m)+f}).join(`
|
|
44
44
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
45
45
|
|
|
46
46
|
`+s+`
|
|
47
|
-
`),this.name+": "+this.message+s}}return en=r,r.default=r,en}var
|
|
47
|
+
`),this.name+": "+this.message+s}}return en=r,r.default=r,en}var Ri={},ol;function Uo(){return ol||(ol=1,Ri.isClean=Symbol("isClean"),Ri.my=Symbol("my")),Ri}var tn,al;function hc(){if(al)return tn;al=1;const e={after:`
|
|
48
48
|
`,beforeClose:`
|
|
49
49
|
`,beforeComment:`
|
|
50
50
|
`,beforeDecl:`
|
|
@@ -55,18 +55,18 @@ https://www.w3ctech.com/topic/2226`));let N=v(...O);return N.postcssPlugin=S,N.p
|
|
|
55
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
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,
|
|
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,
|
|
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,
|
|
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,ll;function ds(){if(ll)return rn;ll=1;let e=hc();function t(r,i){new e(i).stringify(r)}return rn=t,t.default=t,rn}var sn,ul;function ps(){if(ul)return sn;ul=1;let{isClean:e,my:t}=Uo(),r=Fo(),i=hc(),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,cl;function ms(){if(cl)return nn;cl=1;let e=ps();class t extends e{constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=_e(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,fl;function vp(){if(fl)return on;fl=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,hl;function dc(){if(hl)return an;hl=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,dl;function gs(){if(dl)return ln;dl=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ut,{fileURLToPath:r,pathToFileURL:i}=ut,{isAbsolute:s,resolve:n}=ut,{nanoid:o}=vp(),c=ut,l=Fo(),u=dc(),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 A=this.fromOffset(E.offset);y=A.line,w=A.col}else y=E.line,w=E.column;if(typeof C.offset=="number"){let A=this.fromOffset(C.offset);S=A.line,v=A.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,pl;function pc(){if(pl)return un;pl=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
62
|
`)&&(h=`\r
|
|
63
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:
|
|
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,ml;function vs(){if(ml)return cn;ml=1;let e=ps();class t extends e{constructor(i){super(i),this.type="comment"}}return cn=t,t.default=t,cn}var fn,gl;function mr(){if(gl)return fn;gl=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,vl;function Bo(){if(vl)return hn;vl=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,yl;function mc(){if(yl)return dn;yl=1;let e={};return dn=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},dn}var pn,wl;function gc(){if(wl)return pn;wl=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,bl;function $o(){if(bl)return mn;bl=1;let e=gc();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,_l;function yp(){if(_l)return gn;_l=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,A={}){let N=C.css.valueOf(),W=A.ignoreErrors,k,x,he,ae,Z,F,ee,L,z,q,be=N.length,O=0,ue=[],T=[];function B(){return O}function te(se){throw C.error("Unclosed "+se,O)}function I(){return T.length===0&&O>=be}function de(se){if(T.length)return T.pop();if(O>=be)return;let ke=se?se.ignoreUnclosed:!1;switch(k=N.charCodeAt(O),k){case s:case n:case c:case l:case o:{x=O;do x+=1,k=N.charCodeAt(x);while(k===n||k===s||k===c||k===l||k===o);q=["space",N.slice(O,x)],O=x-1;break}case u:case a:case h:case p:case w:case m:case f:{let pt=String.fromCharCode(k);q=[pt,pt,O];break}case d:{if(L=ue.length?ue.pop()[1]:"",z=N.charCodeAt(O+1),L==="url"&&z!==e&&z!==t&&z!==n&&z!==s&&z!==c&&z!==o&&z!==l){x=O;do{if(F=!1,x=N.indexOf(")",x+1),x===-1)if(W||ke){x=O;break}else te("bracket");for(ee=x;N.charCodeAt(ee-1)===r;)ee-=1,F=!F}while(F);q=["brackets",N.slice(O,x+1),O,x],O=x}else x=N.indexOf(")",O+1),ae=N.slice(O,x+1),x===-1||v.test(ae)?q=["(","(",O]:(q=["brackets",ae,O,x],O=x);break}case e:case t:{he=k===e?"'":'"',x=O;do{if(F=!1,x=N.indexOf(he,x+1),x===-1)if(W||ke){x=O+1;break}else te("string");for(ee=x;N.charCodeAt(ee-1)===r;)ee-=1,F=!F}while(F);q=["string",N.slice(O,x+1),O,x],O=x;break}case g:{_.lastIndex=O+1,_.test(N),_.lastIndex===0?x=N.length-1:x=_.lastIndex-2,q=["at-word",N.slice(O,x+1),O,x],O=x;break}case r:{for(x=O,Z=!0;N.charCodeAt(x+1)===r;)x+=1,Z=!Z;if(k=N.charCodeAt(x+1),Z&&k!==i&&k!==n&&k!==s&&k!==c&&k!==l&&k!==o&&(x+=1,b.test(N.charAt(x)))){for(;b.test(N.charAt(x+1));)x+=1;N.charCodeAt(x+1)===n&&(x+=1)}q=["word",N.slice(O,x+1),O,x],O=x;break}default:{k===i&&N.charCodeAt(O+1)===y?(x=N.indexOf("*/",O+2)+1,x===0&&(W||ke?x=N.length:te("comment")),q=["comment",N.slice(O,x+1),O,x],O=x):(S.lastIndex=O+1,S.test(N),S.lastIndex===0?x=N.length-1:x=S.lastIndex-2,q=["word",N.slice(O,x+1),O,x],ue.push(q),O=x);break}}return O++,q}function ce(se){T.push(se)}return{back:ce,endOfFile:I,nextToken:de,position:B}},gn}var vn,Sl;function Wo(){if(Sl)return vn;Sl=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,El;function mi(){if(El)return yn;El=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,Cl;function vc(){if(Cl)return wn;Cl=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,xl;function zo(){if(xl)return bn;xl=1;let e=mr(),t=vc();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,Rl;function wp(){if(Rl)return _n;Rl=1;let e=ms(),t=yp(),r=vs(),i=Wo(),s=mi(),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,Nl;function qo(){if(Nl)return Sn;Nl=1;let e=mr(),t=wp(),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,Ml;function yc(){if(Ml)return En;Ml=1;let{isClean:e,my:t}=Uo(),r=pc(),i=ds(),s=mr(),n=Bo(),o=mc(),c=$o(),l=qo(),u=mi();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 A=l;E.syntax&&(A=E.syntax.parse),E.parser&&(A=E.parser),A.parse&&(A=A.parse);try{C=A(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=_e(G({},g),{postcss:g,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?G(G({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(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 A=b[b.length-1].node;throw this.handleError(C,A)}}}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(A=>E(A,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 A;try{A=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(A))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,W]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=N;try{return W(E.toProxy(),this.helpers)}catch(k){throw this.handleError(k,E)}}if(b.iterator!==0){let N=b.iterator,W;for(;W=E.nodes[E.indexes[N]];)if(E.indexes[N]+=1,!W[e]){W[e]=!0,v.push(y(W));return}b.iterator=0,delete E.indexes[N]}let A=b.events;for(;b.eventIndex<A.length;){let N=A[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,Ol;function bp(){if(Ol)return Cn;Ol=1;let e=pc(),t=ds(),r=mc(),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,Al;function _p(){if(Al)return xn;Al=1;let e=bp(),t=yc(),r=Bo(),i=mi();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,Dl;function Sp(){if(Dl)return Rn;Dl=1;let e=ms(),t=dc(),r=vs(),i=Wo(),s=gs(),n=mi(),o=zo();function c(l,u){if(Array.isArray(l))return l.map(p=>c(p));let f=l,{inputs:a}=f,d=Vr(f,["inputs"]);if(a){u=[];for(let p of a){let m=_e(G({},p),{__proto__:s.prototype});m.map&&(m.map=_e(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=Vr(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,Tl;function Ep(){if(Tl)return Nn;Tl=1;let e=Fo(),t=ms(),r=yc(),i=mr(),s=_p(),n=ds(),o=Sp(),c=Bo(),l=gc(),u=vs(),a=Wo(),d=$o(),f=gs(),h=qo(),p=vc(),m=zo(),y=mi(),w=ps();function g(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new s(_)}return g.plugin=function(S,v){let b=!1;function E(...A){console&&console.warn&&!b&&(b=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
66
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
|
|
67
|
+
https://www.w3ctech.com/topic/2226`));let N=v(...A);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(A,N,W){return g([E(W)]).process(A,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 Cp=Ep();const ve=hp(Cp);ve.stringify;ve.fromJSON;ve.plugin;ve.parse;ve.list;ve.document;ve.comment;ve.atRule;ve.rule;ve.decl;ve.root;ve.CssSyntaxError;ve.Declaration;ve.Container;ve.Processor;ve.Document;ve.Comment;ve.Warning;ve.AtRule;ve.Result;ve.Input;ve.Rule;ve.Root;ve.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 xp(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 kl(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=Op(r);t.push(`${s}: ${i};`)}return t.join(" ")}const Rp=/-([a-z])/g,Np=/^--[a-zA-Z0-9-]+$/,ro=e=>Np.test(e)?e:e.replace(Rp,(t,r)=>r?r.toUpperCase():""),Mp=/\B([A-Z])/g,Op=e=>e.replace(Mp,"-$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=Ec(this,t,r);return s.parentElement=null,s}removeChild(t){return Cc(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 wc(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 bc(t);return r.ownerDocument=this,r}createComment(t){const r=new _c(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Sc(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class wc 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 Tp(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?xp(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=kl(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=ro(i),n=t[s]||"";return delete t[s],this.attributes.style=kl(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 Ec(this,t,r)}removeChild(t){return Cc(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 Ap 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 Dp 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 bc 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 _c 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 Sc 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 Tp{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 Ec(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 Cc(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/"},kp={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=Pp(e,t,r,i),xc(e,t,r,i),Ip(e,t,r)}function Pp(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(!_r(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"}),xc(n.shadowRoot,o.shadowRoot,r,i)),Lp(n,o,i);break}}return e}function Ip(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 Lp(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 xc(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(_r(a,f,r.mirror,i))a=s[++o],f=n[++l];else if(_r(d,h,r.mirror,i))d=s[--c],h=n[--u];else if(_r(a,h,r.mirror,i)){try{e.insertBefore(a,d.nextSibling)}catch(g){console.warn(g)}a=s[++o],h=n[--u]}else if(_r(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&&_r(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=kp[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 _r(e,t,r,i){const s=r.getId(e),n=i.getId(t);return s===-1||s!==n?!1:Go(e,t)}class qr extends jo{constructor(t){super(),D(this,"UNSERIALIZED_STARTING_ID",-2),D(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),D(this,"mirror",Yp()),D(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,i){return new qr}createDocumentType(t,r,i){const s=new Fp(t,r,i);return s.ownerDocument=this,s}createElement(t){const r=t.toUpperCase();let i;switch(r){case"AUDIO":case"VIDEO":i=new Up(r);break;case"IFRAME":i=new zp(r,this.mirror);break;case"CANVAS":i=new $p(r);break;case"STYLE":i=new Wp(r);break;case"DIALOG":i=new Bp(r);break;default:i=new ws(r);break}return i.ownerDocument=this,i}createComment(t){const r=new jp(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Vp(t);return r.ownerDocument=this,r}createTextNode(t){const r=new qp(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 Fp=wc;class ws extends ys{constructor(){super(...arguments),D(this,"inputData",null),D(this,"scrollData",null)}}class Up extends Ap{}class Bp extends Dp{}class $p extends ws{constructor(){super(...arguments),D(this,"rr_dataURL",null),D(this,"canvasMutations",[])}getContext(){return null}}class Wp extends ws{constructor(){super(...arguments),D(this,"rules",[])}}class zp extends ws{constructor(t,r){super(t),D(this,"contentDocument",new qr),this.contentDocument.mirror=r}}const qp=bc,jp=_c,Vp=Sc;function Gp(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Rc(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=Gp(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 qr&&(n||(n=so(s,t.unserializedId),r.add(e,n)),t.mirror.add(s,G({},n))),s}function Hp(e,t=fp(),r=new qr){function i(s,n){const o=Rc(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 Yp(){return new Jp}class Jp{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 Pl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Il={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ni={};function Xp(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(Ni[e])return Ni[e];const t=Xp(e)||globalThis[e],r=t.prototype,i=e in Pl?Pl[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 Il?Il[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 Ni[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?Ni[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 Nc(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 Qp(e){return Xt("Node",e,"childNodes")}function Kp(e){return Xt("Node",e,"parentNode")}function Zp(e){return Xt("Node",e,"parentElement")}function em(e){return Xt("Node",e,"textContent")}function tm(e,t){return Nc("Node",e,"contains")(t)}function rm(e){return Nc("Node",e,"getRootNode")()}function im(e){return!e||!("host"in e)?null:Xt("ShadowRoot",e,"host")}function sm(e){return e.styleSheets}function nm(e){return!e||!("shadowRoot"in e)?null:Xt("Element",e,"shadowRoot")}function om(e,t){return Xt("Element",e,"querySelector")(t)}function am(e,t){return Xt("Element",e,"querySelectorAll")(t)}function lm(){return Ho("MutationObserver").constructor}const um={childNodes:Qp,parentNode:Kp,parentElement:Zp,textContent:em,contains:tm,getRootNode:rm,host:im,styleSheets:sm,shadowRoot:nm,querySelector:om,querySelectorAll:am,mutationObserver:lm},Sr=`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
|
|
69
|
+
or you can use record.mirror to access the mirror instance during recording.`;let Ll={map:{},getId(){return console.error(Sr),-1},getNode(){return console.error(Sr),null},removeNodeFromMap(){console.error(Sr)},has(){return console.error(Sr),!1},reset(){console.error(Sr)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ll=new Proxy(Ll,{get(e,t,r){return t==="map"&&console.error(Sr),Reflect.get(e,t,r)}}));Date.now().toString();function cm(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 fm(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 Mc(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Mc(e.children[r],t)}function An(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Oc(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=Oc(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 yr(e){return e?e instanceof dt&&"shadowRoot"in e?!!e.shadowRoot:!!um.shadowRoot(e):!1}function Zr(e,t){const r=e[t[0]];return t.length===1?r:Zr(r.cssRules[t[1]].cssRules,t.slice(2))}function Fl(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function hm(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 dm{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||{}),j=(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))(j||{}),Se=(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))(Se||{}),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||{}),Ul="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ei=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Mi=0;Mi<Ul.length;Mi++)ei[Ul.charCodeAt(Mi)]=Mi;var pm=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=ei[e.charCodeAt(i)],o=ei[e.charCodeAt(i+1)],c=ei[e.charCodeAt(i+2)],l=ei[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 mm=`(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([
|
|
144
|
+
`;typeof self!="undefined"&&self.Blob&&new Blob([mm],{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 gm{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 Ac(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 vm=Object.freeze(Object.defineProperty({__proto__:null,default:Ac},Symbol.toStringTag,{value:"Module"}));function ym(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 wm{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 Bl(e,t){if(e.type===re.IncrementalSnapshot&&e.data.source===j.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(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
|
|
157
|
+
***************************************************************************** */function $l(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 Or;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Or||(Or={}));var Dc={type:"xstate.init"};function Dn(e){return e===void 0?[]:[].concat(e)}function Er(e){return{type:"xstate.assign",assignment:e}}function Wl(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 Tc(e){return typeof e=="string"?{type:e}:e}function zl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Yi(e)}}function ql(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 kc(e,t){t===void 0&&(t={});var r=$l(ql(Dn(e.states[e.initial].entry).map((function(o){return Wl(o,t.actions)})),e.context,Dc),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=Tc(c),p=e.states[d];if(p.on){var m=Dn(p.on[h.type]);try{for(var y=(function(F){var ee=typeof Symbol=="function"&&Symbol.iterator,L=ee&&F[ee],z=0;if(L)return L.call(F);if(F&&typeof F.length=="number")return{next:function(){return F&&z>=F.length&&(F=void 0),{value:F&&F[z++],done:!F}}};throw new TypeError(ee?"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 zl(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,A=S===void 0,N=S!=null?S:d,W=e.states[N];if(C(f,h)){var k=$l(ql((A?Dn(b):[].concat(p.exit,b,W.entry).filter((function(F){return F}))).map((function(F){return Wl(F,n._options.actions)})),f,h),3),x=k[0],he=k[1],ae=k[2],Z=S!=null?S:d;return{value:Z,context:he,actions:x,changed:S!==d||x.length>0||ae,matches:Yi(Z)}}}}catch(F){l={error:F}}finally{try{w&&!w.done&&(u=y.return)&&u.call(y)}finally{if(l)throw l.error}}}return zl(d,f)}};return n}var jl=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function Pc(e){var t=e.initialState,r=Or.NotStarted,i=new Set,s={_machine:e,send:function(n){r===Or.Running&&(t=e.transition(t,n),jl(t,Tc(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=Or.Running,jl(t,Dc),s},stop:function(){return r=Or.Stopped,i.clear(),s},get state(){return t},get status(){return r}};return s}function bm(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 _m(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 Sm(e,{getCastFn:t,applyEventsSynchronously:r,emitter:i}){const s=kc({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:Er({lastPlayedEvent:(n,o)=>o.type==="CAST_EVENT"?o.payload.event:n.lastPlayedEvent}),recordTimeOffset:Er((n,o)=>{let c=n.timeOffset;return"payload"in o&&"timeOffset"in o.payload&&(c=o.payload.timeOffset),_e(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=_m(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===j.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{Bl(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:Er(n=>_e(G({},n),{lastPlayedEvent:null})),startLive:Er({baselineTime:(n,o)=>(n.timer.start(),o.type==="TO_LIVE"&&o.payload.baselineTime?o.payload.baselineTime:Date.now())}),addEvent:Er((n,o)=>{var d;const{baselineTime:c,timer:l,events:u,checkpointIndex:a}=n;if(o.type==="ADD_EVENT"){const{event:f}=o.payload;Bl(f,c);let h=u.length-1,p;if(!u[h]||u[h].timestamp<=f.timestamp){if(u[h]&&Tn(u[h],f))return _e(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 _e(G({},n),{events:u});for(let g=p;g<u.length&&u[g].timestamp===f.timestamp;g++)if(Tn(u[g],f))return _e(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 _e(G({},n),{events:u,checkpointIndex:a})})}});return Pc(s)}function Em(e){const t=kc({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:Er({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Pc(t)}const Vl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Gl=new Map;function Ic(e,t){let r=Gl.get(e);return r||(r=new Map,Gl.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 Ic(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 pm(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 Cm(e,t){try{return t===Hi.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(r){return null}}const xm=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Rm(e,t){if(!(t!=null&&t.constructor))return;const{name:r}=t.constructor;if(!xm.includes(r))return;const i=Ic(e,r);i.includes(t)||i.push(t)}async function Nm({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const n=Cm(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);Rm(n,l);const u=!1}catch(n){s(e,n)}}async function Mm({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 Hl({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 Nm({mutation:u,type:t.type,target:r,imageMap:i,errorHandler:n})}return}await Mm({event:e,mutations:c,target:r,imageMap:i,errorHandler:n})}catch(o){n(t,o)}}class Om{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 Am(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 Dm=Ac||vm,Yl="[replayer]",Ai="__rrweb-injected-style__",kn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Jl(e){return e.type==re.IncrementalSnapshot&&(e.data.source==j.TouchMove||e.data.source==j.MouseInteraction&&e.data.type==Se.TouchStart)}class Tm{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 qr),P(this,"mouse"),P(this,"mouseTail",null),P(this,"tailPositions",[]),P(this,"emitter",Dm()),P(this,"nextUserInteractionEvent"),P(this,"legacy_missingNodeRetryMap",{}),P(this,"cache",rl()),P(this,"imageMap",new Map),P(this,"canvasEventMap",new Map),P(this,"mirror",eo()),P(this,"styleMirror",new dm),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,"snapshotAdoptedStyleSheetQueue",[]),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===j.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 gm(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)=>{Hl({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===j.StyleSheetRule?this.applyStyleSheetRule(a,d):a.source===j.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=[],this.snapshotAdoptedStyleSheetQueue.forEach(({id:a,adoptedStyleSheets:d})=>{const f=this.mirror.getNode(a);f&&this.applySnapshotAdoptedStyleSheets(f,d)}),this.snapshotAdoptedStyleSheetQueue=[]}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 wm([],{speed:this.config.speed}),n=t.map(u=>r&&r.unpackFn?r.unpackFn(u):u).sort((u,a)=>u.timestamp-a.timestamp),o=bm(n);this.service=Sm({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=Em({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(u=>{this.emitter.emit(H.StateChange,{speed:u})}),this.mediaManager=new Om({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(Jl)&&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;Jl(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=rl()}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&&(ym(this.iframe.contentWindow,this.iframe.contentDocument),cm(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=Id(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)=>{var a;if(l.nodeName==="DIALOG"&&s.add(l),this.collectIframeAndAttachDocument(i,l),this.mediaManager.isSupportedMediaElement(l)){const{events:f}=this.service.state.context;this.mediaManager.addMediaElements(l,t.timestamp-f[0].timestamp,this.mirror)}const d=this.mirror.getMeta(l);d&&"adoptedStyleSheets"in d&&((a=d.adoptedStyleSheets)!=null&&a.length)&&this.applySnapshotAdoptedStyleSheets(l,d.adoptedStyleSheets);for(const f of this.config.plugins||[])f.onBuild&&f.onBuild(l,{id:u,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),np(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=Vl(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:j.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=Vl(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:j.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)=>{var a;l.nodeName==="DIALOG"&&n.add(l),this.collectIframeAndAttachDocument(s,l);const d=i.getMeta(l);if((d==null?void 0:d.type)===Ft.Element&&(d==null?void 0:d.tagName.toUpperCase())==="HTML"){if(!r.contentDocument)return;const{documentElement:f,head:h}=r.contentDocument;this.insertStyleRules(f,h)}{const f=i.getMeta(l);if(f&&"adoptedStyleSheets"in f&&((a=f.adoptedStyleSheets)!=null&&a.length))if(this.usingVirtualDom){const h=i.getId(l);this.snapshotAdoptedStyleSheetQueue.push({id:h,adoptedStyleSheets:f.adoptedStyleSheets})}else this.applySnapshotAdoptedStyleSheets(l,f.adoptedStyleSheets)}if(!this.usingVirtualDom)for(const f of this.config.plugins||[])f.onBuild&&f.onBuild(l,{id:u,replayer:this})},c=r.contentDocument;if(c){si(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===j.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 _e(G({},n),{args:o})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,_e(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,_e(G({},t),{args:s}))}}}applyIncremental(t,r){var i,s,n;const{data:o}=t;switch(o.source){case j.Mutation:{try{this.applyMutation(o,r)}catch(c){this.warn(`Exception in mutation ${c.message||c}`,o)}break}case j.Drag:case j.TouchMove:case j.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 j.MouseInteraction:{if(o.id===-1)break;const c=new Event(di(Se[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 Se.Blur:"blur"in l&&l.blur();break;case Se.Focus:u&&l.focus&&l.focus({preventScroll:!0});break;case Se.Click:case Se.TouchStart:case Se.TouchEnd:case Se.MouseDown:case Se.MouseUp:r?(o.type===Se.TouchStart?this.touchActive=!0:o.type===Se.TouchEnd&&(this.touchActive=!1),o.type===Se.MouseDown?this.lastMouseDownEvent=[l,c]:o.type===Se.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===Se.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,r,o),o.type===Se.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===Se.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===Se.TouchEnd?this.mouse.classList.remove("touch-active"):l.dispatchEvent(c));break;case Se.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:l.dispatchEvent(c)}break}case j.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 j.ViewportResize:this.emitter.emit(H.Resize,{width:o.width,height:o.height});break;case j.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 j.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 j.StyleSheetRule:case j.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 j.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);Hl({event:t,mutation:o,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case j.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 j.Selection:{if(r){this.lastSelectionData=o;break}this.applySelection(o);break}case j.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(Hp(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=Rc(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&&yr(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&&(yr(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=si(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=fm(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)?Mc(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),hm(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"&&Am(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=si(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===j.StyleSheetRule?this.applyStyleSheetRule(t,i):t.source===j.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}=Fl(l);Zr(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}=Fl(c);Zr(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&&Zr(r.rules,t.index).style.setProperty(t.set.property,t.set.value,t.set.priority),t.remove&&Zr(r.rules,t.index).style.removeProperty(t.remove.property)}applySnapshotAdoptedStyleSheets(t,r){var i;let s=null;if(yr(t)?s=((i=t.ownerDocument)==null?void 0:i.defaultView)||null:t.nodeName==="#document"&&(s=t.defaultView),!s)return;const n=[];for(const{styleId:o,rules:c}of r){const l=this.styleMirror.getStyle(o);if(l){c.length&&this.applyStyleSheetRule({source:j.StyleSheetRule,adds:c},l),n.push(l);continue}try{const u=new s.CSSStyleSheet;this.styleMirror.add(u,o),c.length&&this.applyStyleSheetRule({source:j.StyleSheetRule,adds:c},u),n.push(u)}catch(u){}}yr(t)?t.shadowRoot.adoptedStyleSheets=n:t.nodeName==="#document"&&(t.adoptedStyleSheets=n)}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(yr(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:j.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);yr(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=Oc(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>j.Mutation&&t.data.source<=j.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(Yl,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Yl,...t)}}var Qe=Uint8Array,qt=Uint16Array,oo=Uint32Array,Lc=new Qe([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]),Fc=new Qe([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]),km=new Qe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Uc=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]},Bc=Uc(Lc,2),$c=Bc[0],Pm=Bc[1];$c[28]=258,Pm[258]=28;var Im=Uc(Fc,0),Lm=Im[0],ao=new qt(32768);for(var pe=0;pe<32768;++pe){var It=(pe&43690)>>>1|(pe&21845)<<1;It=(It&52428)>>>2|(It&13107)<<2,It=(It&61680)>>>4|(It&3855)<<4,ao[pe]=((It&65280)>>>8|(It&255)<<8)>>>1}var ni=(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}),gi=new Qe(288);for(var pe=0;pe<144;++pe)gi[pe]=8;for(var pe=144;pe<256;++pe)gi[pe]=9;for(var pe=256;pe<280;++pe)gi[pe]=7;for(var pe=280;pe<288;++pe)gi[pe]=8;var Wc=new Qe(32);for(var pe=0;pe<32;++pe)Wc[pe]=5;var Fm=ni(gi,9,1),Um=ni(Wc,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)},Bm=function(e){return(e/8>>0)+(e&7&&1)},zc=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var i=new(e instanceof qt?qt:e instanceof oo?oo:Qe)(r-t);return i.set(e.subarray(t,r)),i},$m=function(e,t,r){var i=e.length,s=!t||r,n=!r||r.i;r||(r={}),t||(t=new Qe(i*3));var o=function(B){var te=t.length;if(B>te){var I=new Qe(Math.max(te*2,B));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=Fm,d=Um,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 Qe(v),E=new Qe(19),C=0;C<S;++C)E[km[C]]=rt(e,l+C*3,7);l+=S*3;var A=Pn(E),N=(1<<A)-1;if(!n&&l+v*(A+7)>p)break;for(var W=ni(E,A,1),C=0;C<v;){var k=W[rt(e,l,N)];l+=k&15;var y=k>>>4;if(y<16)b[C++]=y;else{var x=0,he=0;for(y==16?(he=3+rt(e,l,3),l+=2,x=b[C-1]):y==17?(he=3+rt(e,l,7),l+=3):y==18&&(he=11+rt(e,l,127),l+=7);he--;)b[C++]=x}}var ae=b.subarray(0,_),Z=b.subarray(_);f=Pn(ae),h=Pn(Z),a=ni(ae,f,1),d=ni(Z,h,1)}else throw"invalid block type";else{var y=Bm(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 F=(1<<f)-1,ee=(1<<h)-1,L=f+h+18;n||l+L<p;){var x=a[In(e,l)&F],z=x>>>4;if(l+=x&15,l>p)throw"unexpected EOF";if(!x)throw"invalid length/literal";if(z<256)t[u++]=z;else if(z==256){a=null;break}else{var q=z-254;if(z>264){var C=z-257,be=Lc[C];q=rt(e,l,(1<<be)-1)+$c[C],l+=be}var O=d[In(e,l)&ee],ue=O>>>4;if(!O)throw"invalid distance";l+=O&15;var Z=Lm[ue];if(ue>3){var be=Fc[ue];Z+=In(e,l)&(1<<be)-1,l+=be}if(l>p)throw"unexpected EOF";s&&o(u+131072);for(var T=u+q;u<T;u+=4)t[u]=t[u-Z],t[u+1]=t[u+1-Z],t[u+2]=t[u+2-Z],t[u+3]=t[u+3-Z];u=T}}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:zc(t,0,u)},Wm=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 zm(e,t){return $m((Wm(e),e.subarray(2,-4)),t)}function qm(e,t){for(var r=e.length,i=new Qe(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 Qe(s+8+(r-o<<1));c.set(i),i=c}var l=e.charCodeAt(o);n(l)}return zc(i,0,s)}function jm(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 Xl="v1",Vm=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(jm(zm(qm(e,!0))));if(t.v===Xl)return t;throw new Error(`These events were packed with packer ${t.v} which is incompatible with current packer ${Xl}.`)}catch(t){throw console.error(t),new Error("Unknown data format.")}};function Ql(e){let t="";return Object.keys(e).forEach(r=>{t+=`${r}: ${e[r]};`}),t}function Hr(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 qc=1e3,lo=60*qc,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/qc);return t?`${Hr(t)}:${Hr(r)}:${Hr(i)}`:`${Hr(r)}:${Hr(i)}`}function Gm(e){return e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Promise.resolve()}function Hm(){return document.exitFullscreen?document.exitFullscreen():document.mozExitFullscreen?document.mozExitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():Promise.resolve()}function Zl(){let e=!1;return["fullscreen","webkitIsFullScreen","mozFullScreen","msFullscreenElement"].forEach(t=>{t in document&&(e=e||!!document[t])}),e}function Ym(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 eu(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 Jm(e){return e.type!==re.IncrementalSnapshot?!1:e.data.source>j.Mutation&&e.data.source<=j.Input}function Xm(e,t){const r=[];let i=e[0].timestamp;for(const s of e)Jm(s)&&(s.timestamp-i>t&&r.push([i,s.timestamp]),i=s.timestamp);return r}var jc=(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))(jc||{}),Qm=zr('<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=ge(t,"disabled",8),i=ge(t,"checked",12),s=ge(t,"id",8),n=ge(t,"label",8);var o=Qm();let c;var l=nt(o);Rh(l);var u=Ge(l,2),a=Ge(u,2),d=nt(a,!0);st(a),st(o),Rr(()=>{c=Kn(o,1,"switch svelte-184lr04",null,c,{disabled:r()}),nr(l,"id",s()),l.disabled=r(),nr(u,"for",s()),Li(d,n())}),Oh(l,i),Ct(e,o)}var Zm=zr("<div></div>"),eg=zr("<div></div>"),tg=Xu(`<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,17 +167,17 @@ 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>`),
|
|
171
|
-
512l-388.66944-233.32864 0 466.65728z"></path></svg>`),
|
|
170
|
+
12.4928-30.16704l0-512q0-17.67424-12.4928-30.16704t-30.16704-12.4928z"></path></svg>`),rg=Xu(`<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>`),ig=zr("<button> </button>"),sg=zr(`<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
|
|
178
|
-
${(
|
|
179
|
-
2px;transform: translate(-50%, -50%);background: ${(tt=(M(le),
|
|
180
|
-
${(mt=(M(le),
|
|
177
|
+
68 0 18.4 18.4 18.4 48.8 0 68L231.2 860z"></path></svg></button></div></div>`);function ng(e,t){wo(t,!1);const r=vh();let i=ge(t,"replayer",8),s=ge(t,"showController",8),n=ge(t,"autoPlay",8),o=ge(t,"skipInactive",12),c=ge(t,"speedOption",8),l=ge(t,"speed",28,()=>c().length?c()[0]:1),u=ge(t,"tags",24,()=>({})),a=ge(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(T,B,te){const I=B-T;return(100-(B-te)/I*100).toFixed(2)}let E=Ae(),C=Ae();const A=()=>{N();function T(){ie(d,i().getCurrentTime()),w&&M(d)>=w&&(_?ae(_.start,_.end,!0,void 0):(i().pause(),g&&(g(),g=null))),M(d)<M(S).totalTime&&(f=requestAnimationFrame(T))}f=requestAnimationFrame(T)},N=()=>{f&&(cancelAnimationFrame(f),f=null)},W=()=>{switch(M(h)){case"playing":x();break;case"paused":k();break}},k=()=>{M(h)==="paused"&&(y?(i().play(),y=!1):i().play(M(d)))},x=()=>{M(h)==="playing"&&(i().pause(),w=!1)},he=(T,B)=>{ie(d,T),w=!1,y=!1,(typeof B=="boolean"?B:M(h)==="playing")?i().play(T):i().pause(T)},ae=(T,B,te=!1,I=void 0)=>{te?_={start:T,end:B}:_=null,ie(d,T),w=B,g=I||null,i().play(T)},Z=T=>{if(M(p)==="skipping")return;const B=M(m).getBoundingClientRect();let I=(T.clientX-B.left)/B.width;I<0?I=0:I>1&&(I=1);const de=M(S).totalTime*I;he(de)},F=T=>{M(p)!=="skipping"&&(T.key==="ArrowLeft"?he(M(d)-5):T.key==="ArrowRight"&&he(M(d)+5))},ee=T=>{let B=M(h)==="playing";l(T),B&&i().pause(),i().setConfig({speed:l()}),B&&i().play(M(d))},L=()=>{o(!o())},z=()=>Promise.resolve().then(()=>{ie(S,i().getMetaData())});xo(()=>{ie(h,i().service.state.value),ie(p,i().speedService.state.value),i().on("state-change",T=>{const{player:B,speed:te}=T;if(B!=null&&B.value&&M(h)!==B.value)switch(ie(h,B.value),M(h)){case"playing":A();break;case"paused":N();break}te!=null&&te.value&&M(p)!==te.value&&ie(p,te.value)}),i().on("finish",()=>{y=!0,g&&(g(),g=null)}),n()&&i().play()}),yh(()=>{o()!==i().config.skipInactive&&i().setConfig({skipInactive:o()})}),Zu(()=>{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 T=Math.min(1,M(d)/M(S).totalTime);ie(v,`${100*T}%`),r("ui-update-progress",{payload:T})}),$t(()=>($e(i()),$e(u())),()=>{ie(E,(()=>{const{context:T}=i().service.state,B=T.events.length,te=T.events[0].timestamp,I=T.events[B-1].timestamp,de=[];return T.events.forEach(ce=>{if(ce.type===jc.Custom){const se={name:ce.data.tag,background:u()[ce.data.tag]||"rgb(73, 80, 246)",position:`${b(te,I,ce.timestamp)}%`};de.push(se)}}),de})())}),$t(()=>($e(i()),$e(a())),()=>{ie(C,(()=>{try{const{context:T}=i().service.state,B=T.events.length,te=T.events[0].timestamp,I=T.events[B-1].timestamp,de=Xm(T.events,i().config.inactivePeriodThreshold),ce=(se,ke,pt,vi)=>{const bs=ke-se;return((vi-pt)/bs*100).toFixed(2)};return de.map(se=>({name:"inactive period",background:a(),position:`${b(te,I,se[0])}%`,width:`${ce(te,I,se[0],se[1])}%`}))}catch(T){return[]}})())}),Lu();var q={toggle:W,play:k,pause:x,goto:he,playRange:ae,setSpeed:ee,toggleSkipInactive:L,triggerUpdateMeta:z};tc();var be=ch(),O=Yf(be);{var ue=T=>{var B=sg(),te=nt(B),I=nt(te),de=nt(I,!0);st(I);var ce=Ge(I,2);let se;var ke=nt(ce),pt=Ge(ke,2);Es(pt,1,()=>M(C),Ss,(Ee,le)=>{var Me=Zm();Rr(()=>{var tt,mt,jr;nr(Me,"title",(M(le),Ce(()=>M(le).name))),Nr(Me,`width: ${(tt=(M(le),Ce(()=>M(le).width)))!=null?tt:""};height: 4px;position: absolute;background: ${(mt=(M(le),Ce(()=>M(le).background)))!=null?mt:""};left:
|
|
178
|
+
${(jr=(M(le),Ce(()=>M(le).position)))!=null?jr:""};`)}),Ct(Ee,Me)});var vi=Ge(pt,2);Es(vi,1,()=>M(E),Ss,(Ee,le)=>{var Me=eg();Rr(()=>{var tt,mt;nr(Me,"title",(M(le),Ce(()=>M(le).name))),Nr(Me,`width: 10px;height: 5px;position: absolute;top:
|
|
179
|
+
2px;transform: translate(-50%, -50%);background: ${(tt=(M(le),Ce(()=>M(le).background)))!=null?tt:""};left:
|
|
180
|
+
${(mt=(M(le),Ce(()=>M(le).position)))!=null?mt:""};`)}),Ct(Ee,Me)});var bs=Ge(vi,2);st(ce),Fi(ce,Ee=>ie(m,Ee),()=>M(m));var _s=Ge(ce,2),Yo=nt(_s,!0);st(_s),st(te);var Jo=Ge(te,2),yi=nt(Jo),Gc=nt(yi);{var Hc=Ee=>{var le=tg();Ct(Ee,le)},Yc=Ee=>{var le=rg();Ct(Ee,le)};Xn(Gc,Ee=>{M(h)==="playing"?Ee(Hc):Ee(Yc,!1)})}st(yi);var Xo=Ge(yi,2);Es(Xo,1,c,Ss,(Ee,le)=>{var Me=ig();let tt;var mt=nt(Me);st(Me),Rr(()=>{var jr;Me.disabled=M(p)==="skipping",tt=Kn(Me,1,"svelte-14v7dbr",null,tt,{active:M(le)===l()&&M(p)!=="skipping"}),Li(mt,`${(jr=M(le))!=null?jr:""}x`)}),Gr("click",Me,()=>ee(M(le))),Ct(Ee,Me)});var Qo=Ge(Xo,2);{let Ee=ns(()=>M(p)==="skipping");Km(Qo,{id:"skip",get disabled(){return M(Ee)},label:"skip inactive",get checked(){return o()},set checked(le){o(le)},$$legacy:!0})}var Jc=Ge(Qo,2);st(Jo),st(B),Rr((Ee,le,Me)=>{var tt,mt;Li(de,Ee),se=Kn(ce,1,"rr-progress svelte-14v7dbr",null,se,{disabled:M(p)==="skipping"}),nr(ce,"aria-valuenow",le),Nr(ke,`width: ${(tt=M(v))!=null?tt:""}`),Nr(bs,`left: ${(mt=M(v))!=null?mt:""}`),Li(Yo,Me)},[()=>($e(Di),M(d),Ce(()=>Di(M(d)))),()=>(M(v),Ce(()=>parseFloat(M(v)))),()=>($e(Di),M(S),Ce(()=>Di(M(S).totalTime)))]),Gr("click",ce,Z),Gr("keydown",ce,F),Gr("click",yi,W),Gr("click",Jc,()=>r("fullscreen")),Ct(T,B)};Xn(O,T=>{s()&&T(ue)})}return Ct(e,be),ye(t,"toggle",W),ye(t,"play",k),ye(t,"pause",x),ye(t,"goto",he),ye(t,"playRange",ae),ye(t,"setSpeed",ee),ye(t,"toggleSkipInactive",L),ye(t,"triggerUpdateMeta",z),bo(q)}var og=zr('<div class="rr-player svelte-1qub0ki"><div class="rr-player__frame svelte-1qub0ki"></div> <!></div>');function ag(e,t){const r=Th(t,["children","$$slots","$$events","$$legacy"]);wo(t,!1);let i=ge(t,"width",12,1024),s=ge(t,"height",12,576),n=ge(t,"maxScale",8,1),o=ge(t,"events",8),c=ge(t,"skipInactive",8,!0),l=ge(t,"autoPlay",8,!0),u=ge(t,"speedOption",24,()=>[1,2,4,8]),a=ge(t,"speed",8,1),d=ge(t,"showController",8,!0),f=ge(t,"tags",24,()=>({})),h=ge(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 A=(I,de)=>{const ce=i()/de.width,se=s()/de.height,ke=[ce,se];n()&&ke.push(n()),I.style.transform=`scale(${Math.min(...ke)})translate(-50%, -50%)`},N=()=>{A(M(p).wrapper,{width:M(p).iframe.offsetWidth,height:M(p).iframe.offsetHeight})},W=()=>{M(w)&&(Zl()?Hm():Gm(M(w)))},k=(I,de)=>{switch(M(p).on(I,de),I){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":M(b).$on(I,({detail:ce})=>de(ce))}},x=I=>{M(p).addEvent(I),M(b).triggerUpdateMeta()},he=()=>M(p).getMetaData(),ae=()=>M(p),Z=()=>{M(b).toggle()},F=I=>{M(b).setSpeed(I)},ee=()=>{M(b).toggleSkipInactive()},L=()=>{M(b).play()},z=()=>{M(b).pause()},q=(I,de)=>{M(b).goto(I,de)},be=(I,de,ce=!1,se=void 0)=>{M(b).playRange(I,de,ce,se)};xo(()=>{if(u()!==void 0&&eu(u())!=="array")throw new Error("speedOption must be array");if(u().forEach(I=>{if(eu(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
|
...
|
|
@@ -185,7 +185,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
185
185
|
speedOption: [${u().toString()}]
|
|
186
186
|
...
|
|
187
187
|
}
|
|
188
|
-
`);ie(p,new
|
|
188
|
+
`);ie(p,new Tm(o(),G({speed:a(),root:M(g),unpackFn:Vm},r))),M(p).on("resize",I=>{A(M(p).wrapper,I)}),_=Ym(()=>{Zl()?setTimeout(()=>{S=i(),v=s(),i(M(w).offsetWidth),s(M(w).offsetHeight-(d()?y:0)),A(M(p).wrapper,{width:M(p).iframe.offsetWidth,height:M(p).iframe.offsetHeight})},0):(i(S),s(v),A(M(p).wrapper,{width:M(p).iframe.offsetWidth,height:M(p).iframe.offsetHeight}))})}),Zu(()=>{_&&_()}),$t(()=>($e(i()),$e(s())),()=>{ie(E,Ql({width:`${i()}px`,height:`${s()}px`}))}),$t(()=>($e(i()),$e(s()),$e(d())),()=>{ie(C,Ql({width:`${i()}px`,height:`${s()+(d()?y:0)}px`}))}),Lu();var O={getMirror:m,triggerResize:N,toggleFullscreen:W,addEventListener:k,addEvent:x,getMetaData:he,getReplayer:ae,toggle:Z,setSpeed:F,toggleSkipInactive:ee,play:L,pause:z,goto:q,playRange:be};tc();var ue=og(),T=nt(ue);Fi(T,I=>ie(g,I),()=>M(g));var B=Ge(T,2);{var te=I=>{Fi(ng(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:()=>W()},$$legacy:!0}),de=>ie(b,de),()=>M(b))};Xn(B,I=>{M(p)&&I(te)})}return st(ue),Fi(ue,I=>ie(w,I),()=>M(w)),Rr(()=>{Nr(ue,M(C)),Nr(T,M(E))}),Ct(e,ue),ye(t,"getMirror",m),ye(t,"triggerResize",N),ye(t,"toggleFullscreen",W),ye(t,"addEventListener",k),ye(t,"addEvent",x),ye(t,"getMetaData",he),ye(t,"getReplayer",ae),ye(t,"toggle",Z),ye(t,"setSpeed",F),ye(t,"toggleSkipInactive",ee),ye(t,"play",L),ye(t,"pause",z),ye(t,"goto",q),ye(t,"playRange",be),bo(O)}const lg=kh(ag);class Vc extends lg{constructor(t){var r;super({target:t.target,props:(r=t.data)!=null?r:t.props})}}exports.Player=Vc;exports.default=Vc;
|
|
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") {
|