@amplitude/rrweb-player 2.1.4 → 2.1.5
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 +51 -3
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +51 -3
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +51 -3
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +24 -24
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +6 -6
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
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},be=(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),M=(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),ye=(e,t,r)=>(uo(e,t,"access private method"),r),ta,oi,Yr,Bt,Ut,Jr,ai,ti,Ye,co,li,Ln,su,nu,ot,Je,Ti,xt,Or,Mt,at,ze,St,jt,er,Qt,Vt,wr,Kt,Fn,Pe,ou,au,fo,Bi,Ui,Bn,gt,Et,Ve,br,ki,Ii,Un,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={},Ae=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,Ot=16,Dt=32,fr=64,Ki=128,ct=512,xe=1024,Fe=2048,ht=4096,qe=8192,At=16384,Zi=32768,Tr=65536,ia=1<<17,du=1<<18,Br=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,Ur=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 Mf(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nf(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Af(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Of(){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 Nt(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===Ur){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!==Ur)throw ts(),Dr;return e.data}function vu(e){return e===this.v}function If(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function yu(e){return!If(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)Pu(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 Pf(){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 Ir(e,t)}function Ir(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 Pi=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,Bt,0),Y(this,Ut,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||M(this,Ut)>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,su).call(this),this.is_deferred()?(ye(this,Ye,li).call(this,i.effects),ye(this,Ye,li).call(this,i.render_effects)):(ne=null,sa(i.render_effects),sa(i.effects),(r=M(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 M(this,Bt)===0&&this.process([]);this.deactivate()}discard(){for(const t of M(this,Yr))t(this);M(this,Yr).clear()}increment(t){U(this,Bt,M(this,Bt)+1),t&&U(this,Ut,M(this,Ut)+1)}decrement(t){U(this,Bt,M(this,Bt)-1),t&&U(this,Ut,M(this,Ut)-1),this.revive()}revive(){for(const t of M(this,ai))M(this,ti).delete(t),Me(t,Fe),lr(t);for(const t of M(this,ti))Me(t,ht),lr(t);this.flush()}oncommit(t){M(this,oi).add(t)}ondiscard(t){M(this,Yr).add(t)}settled(){var t;return((t=M(this,Jr))!=null?t:U(this,Jr,hu())).promise}static ensure(){if(ne===null){const t=ne=new jn;Pi.add(ne),ri||jn.enqueue(()=>{ne===t&&t.flush()})}return ne}static enqueue(t){$r(t)}apply(){}};oi=new WeakMap;Yr=new WeakMap;Bt=new WeakMap;Ut=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,o=(s&(Dt|fr))!==0,n=o&&(s&xe)!==0,u=n||(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:[]}),!u&&i.fn!==null){o?i.f^=xe:(s&go)!==0?t.effects.push(i):Wr(i)&&((i.f&Ot)!==0&&M(this,ai).add(i),Lr(i));var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)l===t.effect&&(ye(this,Ye,li).call(this,t.effects),ye(this,Ye,li).call(this,t.render_effects),t=t.parent),i=l.next,l=l.parent}};li=function(e){for(const t of e)(t.f&Fe)!==0?M(this,ai).add(t):(t.f&ht)!==0&&M(this,ti).add(t),ye(this,Ye,Ln).call(this,t.deps),Me(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))};su=function(){if(M(this,Ut)===0){for(const e of M(this,oi))e();M(this,oi).clear()}M(this,Bt)===0&&ye(this,Ye,nu).call(this)};nu=function(){var e;if(Pi.size>1){this.previous.clear();var t=De,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const o of Pi){if(o===this){r=!1;continue}const n=[];for(const[d,l]of this.current){if(o.current.has(d))if(r&&l!==o.current.get(d))o.current.set(d,l);else continue;n.push(d)}if(n.length===0)continue;const u=[...o.current.keys()].filter(d=>!this.current.has(d));if(u.length>0){var s=Xe;Xe=[];const d=new Set,l=new Map;for(const a of n)Su(a,u,d,l);if(Xe.length>0){ne=o,o.apply();for(const a of Xe)ye(e=o,Ye,co).call(e,a,i);o.deactivate()}Xe=s}}ne=null,De=t}this.committed=!0,Pi.delete(this)};let ar=Lf;function Ff(e){var t=ri;ri=!0;try{for(var r;;){if(Pf(),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,o;Bf()}i.process(Xe),Ht.clear()}}finally{qn=!1,zi(e),is=null}}function Bf(){try{Cf()}catch(e){Ir(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&(At|qe))===0&&Wr(i)&&(vt=new Set,Lr(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&(At|qe))!==0)continue;const o=[s];let n=s.parent;for(;n!==null;)vt.has(n)&&(vt.delete(n),o.push(n)),n=n.parent;for(let u=o.length-1;u>=0;u--){const d=o[u];(d.f&(At|qe))===0&&Lr(d)}}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 o=s.f;(o&Re)!==0?Su(s,t,r,i):(o&(vo|Ot))!==0&&(o&Fe)===0&&Eu(s,t,i)&&(Me(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&Ot)!==0&&(r&du)===0)return;if((r&(fr|Dt))!==0){if((r&xe)===0)return;t.f^=xe}}Xe.push(t)}function Uf(e){let t=0,r=Yt(0),i;return()=>{ui()&&(A(r),hi(()=>(t===0&&(i=Ee(()=>e(()=>ii(r)))),t+=1,()=>{$r(()=>{t-=1,t===0&&(i==null||i(),i=void 0,ii(r))})})))}}var $f=Tr|Br|Ki;function Wf(e,t,r){new zf(e,t,r)}class zf{constructor(t,r,i){Y(this,Pe),Rt(this,"parent"),Y(this,ot,!1),Y(this,Je),Y(this,Ti,K?X:null),Y(this,xt),Y(this,Or),Y(this,Mt),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,Uf(()=>(U(this,Kt,Yt(M(this,Qt))),()=>{U(this,Kt,null)}))),U(this,Je,t),U(this,xt,r),U(this,Or,i),this.parent=Q.b,U(this,ot,!!M(this,xt).pending),U(this,Mt,Eo(()=>{if(Q.b=this,K){const o=M(this,Ti);rs(),o.nodeType===Ur&&o.data===Ji?ye(this,Pe,au).call(this):ye(this,Pe,ou).call(this)}else{var s=ye(this,Pe,fo).call(this);try{U(this,at,Ke(()=>i(s)))}catch(o){this.error(o)}M(this,Vt)>0?ye(this,Pe,Ui).call(this):U(this,ot,!1)}return()=>{var o;(o=M(this,er))==null||o.remove()}},$f)),K&&U(this,Je,X)}is_pending(){return M(this,ot)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!M(this,xt).pending}update_pending_count(t){ye(this,Pe,Bn).call(this,t),U(this,Qt,M(this,Qt)+t),M(this,Kt)&&Pr(M(this,Kt),M(this,Qt))}get_effect_pending(){return M(this,Fn).call(this),A(M(this,Kt))}error(t){var r=M(this,xt).onerror;let i=M(this,xt).failed;if(M(this,wr)||!r&&!i)throw t;M(this,at)&&(Le(M(this,at)),U(this,at,null)),M(this,ze)&&(Le(M(this,ze)),U(this,ze,null)),M(this,St)&&(Le(M(this,St)),U(this,St,null)),K&&(je(M(this,Ti)),kf(),je($i()));var s=!1,o=!1;const n=()=>{if(s){Tf();return}s=!0,o&&Df(),ar.ensure(),U(this,Qt,0),M(this,St)!==null&&hr(M(this,St),()=>{U(this,St,null)}),U(this,ot,this.has_pending_snippet()),U(this,at,ye(this,Pe,Bi).call(this,()=>(U(this,wr,!1),Ke(()=>M(this,Or).call(this,M(this,Je)))))),M(this,Vt)>0?ye(this,Pe,Ui).call(this):U(this,ot,!1)};var u=J;try{Be(null),o=!0,r==null||r(t,n),o=!1}catch(d){Ir(d,M(this,Mt)&&M(this,Mt).parent)}finally{Be(u)}i&&$r(()=>{U(this,St,ye(this,Pe,Bi).call(this,()=>{ar.ensure(),U(this,wr,!0);try{return Ke(()=>{i(M(this,Je),()=>t,()=>n)})}catch(d){return Ir(d,M(this,Mt).parent),null}finally{U(this,wr,!1)}}))})}}ot=new WeakMap;Je=new WeakMap;Ti=new WeakMap;xt=new WeakMap;Or=new WeakMap;Mt=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;Pe=new WeakSet;ou=function(){try{U(this,at,Ke(()=>M(this,Or).call(this,M(this,Je))))}catch(e){this.error(e)}U(this,ot,!1)};au=function(){const e=M(this,xt).pending;e&&(U(this,ze,Ke(()=>e(M(this,Je)))),ar.enqueue(()=>{var t=ye(this,Pe,fo).call(this);U(this,at,ye(this,Pe,Bi).call(this,()=>(ar.ensure(),Ke(()=>M(this,Or).call(this,t))))),M(this,Vt)>0?ye(this,Pe,Ui).call(this):(hr(M(this,ze),()=>{U(this,ze,null)}),U(this,ot,!1))}))};fo=function(){var e=M(this,Je);return M(this,ot)&&(U(this,er,ft()),M(this,Je).before(M(this,er)),e=M(this,er)),e};Bi=function(e){var t=Q,r=J,i=oe;et(M(this,Mt)),Be(M(this,Mt)),kr(M(this,Mt).ctx);try{return e()}catch(s){return bu(s),null}finally{et(t),Be(r),kr(i)}};Ui=function(){const e=M(this,xt).pending;M(this,at)!==null&&(U(this,jt,document.createDocumentFragment()),M(this,jt).append(M(this,er)),zu(M(this,at),M(this,jt))),M(this,ze)===null&&U(this,ze,Ke(()=>e(M(this,Je))))};Bn=function(e){var t;if(!this.has_pending_snippet()){this.parent&&ye(t=this.parent,Pe,Bn).call(t,e);return}U(this,Vt,M(this,Vt)+e),M(this,Vt)===0&&(U(this,ot,!1),M(this,ze)&&hr(M(this,ze),()=>{U(this,ze,null)}),M(this,jt)&&(M(this,Je).before(M(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 o=ne,n=Q,u=jf();function d(){Promise.all(r.map(l=>Vf(l))).then(l=>{u();try{i([...t.map(s),...l])}catch(a){(n.f&At)===0&&Ir(a,n)}o==null||o.deactivate(),Wi()}).catch(l=>{Ir(l,n)})}e.length>0?Promise.all(e).then(()=>{u();try{return d()}finally{o==null||o.deactivate(),Wi()}}):d()}function jf(){var e=Q,t=J,r=oe,i=ne;return function(o=!0){et(e),Be(t),kr(r),o&&(i==null||i.activate())}}function Wi(){et(null),Be(null),kr(null)}function ss(e){var t=Re|Fe,r=J!==null&&(J.f&Re)!==0?J:null;return Q!==null&&(Q.f|=Br),{ctx:oe,deps:null,effects:null,equals:vu,f:t,fn:e,reactions:null,rv:0,v:Ae,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,o=Yt(Ae),n=!J,u=new Map;return eh(()=>{var d,l=hu();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{a===ne&&a.committed&&a.deactivate(),Wi()})}catch(h){l.reject(h),Wi()}var a=ne;if(n){var f=!i.is_pending();i.update_pending_count(1),a.increment(f),(d=u.get(a))==null||d.reject(Cr),u.delete(a),u.set(a,l)}const c=(h,p=void 0)=>{if(a.activate(),p)p!==Cr&&(o.f|=Gt,Pr(o,p));else{(o.f&Gt)!==0&&(o.f^=Gt),Pr(o,h);for(const[m,g]of u){if(u.delete(m),m===a)break;g.reject(Cr)}}n&&(i.update_pending_count(-1),a.decrement(f))};l.promise.then(c,h=>c(null,h||"unknown"))}),So(()=>{for(const d of u.values())d.reject(Cr)}),new Promise(d=>{function l(a){function f(){a===s?d(o):l(s)}a.then(f,f)}l(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&At)===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;Me(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 Oe(e,t=!1,r=!0){var o;var i;const s=Yt(e);return t||(s.equals=yu),Fr&&r&&oe!==null&&oe.l!==null&&((o=(i=oe.l).s)!=null?o:i.s=[]).push(s),s}function re(e,t,r=!1){J!==null&&(!wt||(J.f&ia)!==0)&&fi()&&(J.f&(Re|Ot|vo|ia))!==0&&!(Ze!=null&&Ze.includes(e))&&Of();let i=r?xr(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),Me(e,(e.f&ct)!==0?xe:ht)),e.wv=ju(),Mu(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&&Me(r,ht),Wr(r)&&Lr(r)}finally{zi(e)}Vn.clear()}function na(e,t=1){var r=A(e),i=t===1?r++:r--;return re(e,r),i}function ii(e){re(e,e.v+1)}function Mu(e,t){var r=e.reactions;if(r!==null)for(var i=fi(),s=r.length,o=0;o<s;o++){var n=r[o],u=n.f;if(!(!i&&n===Q)){var d=(u&Fe)===0;if(d&&Me(n,t),(u&Re)!==0){var l=n;De==null||De.delete(l),(u&or)===0&&(u&ct&&(n.f|=or),Mu(l,ht))}else d&&((u&Ot)!==0&&vt!==null&&vt.add(n),lr(n))}}}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),o=sr,n=u=>{if(sr===o)return u();var d=J,l=sr;Be(null),ua(o);var a=u();return Be(d),ua(l),a};return i&&r.set("length",Tt(e.length)),new Proxy(e,{defineProperty(u,d,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Nf();var a=r.get(d);return a===void 0?a=n(()=>{var f=Tt(l.value);return r.set(d,f),f}):re(a,l.value,!0),!0},deleteProperty(u,d){var l=r.get(d);if(l===void 0){if(d in u){const a=n(()=>Tt(Ae));r.set(d,a),ii(s)}}else re(l,Ae),ii(s);return!0},get(u,d,l){var a;if(d===rr)return e;var f=r.get(d),c=d in u;if(f===void 0&&(!c||(a=tr(u,d))!=null&&a.writable)&&(f=n(()=>{var p=xr(c?u[d]:Ae),m=Tt(p);return m}),r.set(d,f)),f!==void 0){var h=A(f);return h===Ae?void 0:h}return Reflect.get(u,d,l)},getOwnPropertyDescriptor(u,d){var l=Reflect.getOwnPropertyDescriptor(u,d);if(l&&"value"in l){var a=r.get(d);a&&(l.value=A(a))}else if(l===void 0){var f=r.get(d),c=f==null?void 0:f.v;if(f!==void 0&&c!==Ae)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(u,d){var l;if(d===rr)return!0;var a=r.get(d),f=a!==void 0&&a.v!==Ae||Reflect.has(u,d);if(a!==void 0||Q!==null&&(!f||(l=tr(u,d))!=null&&l.writable)){a===void 0&&(a=n(()=>{var h=f?xr(u[d]):Ae,p=Tt(h);return p}),r.set(d,a));var c=A(a);if(c===Ae)return!1}return f},set(u,d,l,a){var f,c=r.get(d),h=d in u;if(i&&d==="length")for(var p=l;p<c.v;p+=1){var m=r.get(p+"");m!==void 0?re(m,Ae):p in u&&(m=n(()=>Tt(Ae)),r.set(p+"",m))}if(c===void 0)(!h||(f=tr(u,d))!=null&&f.writable)&&(c=n(()=>Tt(void 0)),re(c,xr(l)),r.set(d,c));else{h=c.v!==Ae;var g=n(()=>xr(l));re(c,g)}var w=Reflect.getOwnPropertyDescriptor(u,d);if(w!=null&&w.set&&w.set.call(a,l),!h){if(i&&typeof d=="string"){var v=r.get("length"),_=Number(d);Number.isInteger(_)&&_>=v.v&&re(v,_+1)}ii(s)}return!0},ownKeys(u){A(s);var d=Reflect.ownKeys(u).filter(f=>{var c=r.get(f);return c===void 0||c.v!==Ae});for(var[l,a]of r)a.v!==Ae&&!(l in u)&&d.push(l);return d},setPrototypeOf(){Af()}})}var oa,Nu,Au,Ou;function Gn(){if(oa===void 0){oa=window,Nu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Au=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 Au.call(e)}function bt(e){return Ou.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 o=ft();return i===null?s==null||s.after(o):i.before(o),je(o),o}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;Be(null),et(null);try{return e()}finally{Be(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 Iu(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 u;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(d){throw Le(s),d}else t!==null&&lr(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Br)===0&&(o=o.first,(e&Ot)!==0&&(e&Tr)!==0&&o!==null&&(o.f|=Tr)),o!==null&&(o.parent=i,i!==null&&Xf(o,i),J!==null&&(J.f&Re)!==0&&(e&fr)===0)){var n=J;((u=n.effects)!=null?u:n.effects=[]).push(o)}return s}function ui(){return J!==null&&!wt}function So(e){const t=_t(Qi,null,!1);return Me(t,xe),t.teardown=e,t}function Hn(e){var s;Iu();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 Pu(e)}function Pu(e){return _t(go|pu,e,!1)}function Qf(e){return Iu(),_t(Qi|pu,e,!0)}function Kf(e){ar.ensure();const t=_t(fr|Br,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,Ee(t))})}function Lu(){var e=oe;hi(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&xe)!==0&&Me(r,ht),Wr(r)&&Lr(r),t.ran=!1}})}function eh(e){return _t(vo|Br,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(A)),!0)})}function Eo(e,t=0){var r=_t(Ot|t,e,!0);return r}function Ke(e){return _t(Dt|Br,e,!0)}function Fu(e){var t=e.teardown;if(t!==null){const r=dr,i=J;la(!0),Be(null);try{t.call(null)}finally{la(r),Be(i)}}}function Bu(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),Bu(e,t&&!r),qi(e,0),Me(e,At);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();Fu(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 rh(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=[];$u(e,i,!0);var s=()=>{r&&Le(e),t&&t()},o=i.length;if(o>0){var n=()=>--o||s();for(var u of i)u.out(n)}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 u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,n=(s.f&Tr)!==0||(s.f&Dt)!==0&&(e.f&Ot)!==0;$u(s,t,n?r:!1),s=o}}}function Co(e){Wu(e,!0)}function Wu(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&xe)===0&&(Me(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 o=e.nodes&&e.nodes.t;if(o!==null)for(const n of o)(n.is_global||t)&&n.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 Be(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 Ie=null,Ue=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 o=r[s];if(Wr(o)&&xu(o),o.wv>e.wv)return!0}(t&ct)!==0&&De===null&&Me(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 o=i[s];(o.f&Re)!==0?Vu(o,t,!1):t===o&&(r?Me(o,Fe):(o.f&xe)!==0&&Me(o,ht),lr(o))}}function Gu(e){var m;var t,r=Ie,i=Ue,s=He,o=J,n=Ze,u=oe,d=wt,l=sr,a=e.f;Ie=null,Ue=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 f=e.fn,c=f(),h=e.deps;if(Ie!==null){var p;if(qi(e,Ue),h!==null&&Ue>0)for(h.length=Ue+Ie.length,p=0;p<Ie.length;p++)h[Ue+p]=Ie[p];else e.deps=h=Ie;if(ui()&&(e.f&ct)!==0)for(p=Ue;p<h.length;p++)((m=(t=h[p]).reactions)!=null?m:t.reactions=[]).push(e)}else h!==null&&Ue<h.length&&(qi(e,Ue),h.length=Ue);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 o!==null&&o!==e&&(ci++,He!==null&&(s===null?s=He:s.push(...He))),(e.f&Gt)!==0&&(e.f^=Gt),c}catch(g){return bu(g)}finally{e.f^=zn,Ie=r,Ue=i,He=s,J=o,Ze=n,kr(u),wt=d,sr=l}}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&&(Ie===null||!Ie.includes(t))&&(Me(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&At)===0){Me(e,xe);var r=Q,i=ir;Q=e,ir=!0;try{(t&(Ot|yf))!==0?th(e):Bu(e),Fu(e);var s=Gu(e);e.teardown=typeof s=="function"?s:null,e.wv=qu;var o;$n&&rf&&(e.f&Fe)!==0&&e.deps}finally{ir=i,Q=r}}}function A(e){var d;var t=e.f,r=(t&Re)!==0;if(J!==null&&!wt){var i=Q!==null&&(Q.f&At)!==0;if(!i&&!(Ze!=null&&Ze.includes(e))){var s=J.deps;if((J.f&zn)!==0)e.rv<ci&&(e.rv=ci,Ie===null&&s!==null&&s[Ue]===e?Ue++:Ie===null?Ie=[e]:Ie.includes(e)||Ie.push(e));else{((d=J.deps)!=null?d:J.deps=[]).push(e);var o=e.reactions;o===null?e.reactions=[J]:o.includes(J)||o.push(J)}}}if(dr){if(Ht.has(e))return Ht.get(e);if(r){var n=e,u=n.v;return((n.f&xe)===0&&n.reactions!==null||Yu(n))&&(u=_o(n)),Ht.set(n,u),u}}else r&&(!(De!=null&&De.has(e))||ne!=null&&ne.is_fork&&!ui())&&(n=e,Wr(n)&&xu(n),ir&&ui()&&(n.f&ct)===0&&Hu(n));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===Ae)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 Ee(e){var t=wt;try{return wt=!0,e()}finally{wt=t}}const oh=-7169;function Me(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 o=i[s].get;if(o)try{o.call(e)}catch(n){}}}}}const ah=new Set,ca=new Set;function lh(e,t,r,i={}){function s(o){if(i.capture||Xr.call(t,o),!o.cancelBubble)return os(()=>r==null?void 0:r.call(this,o))}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 o={capture:i,passive:s},n=lh(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&So(()=>{t.removeEventListener(e,n,o)})}let fa=null;function Xr(e){var t,r=this,i=r.ownerDocument,s=e.type,o=((t=e.composedPath)==null?void 0:t.call(e))||[],n=o[0]||e.target;fa=e;var u=0,d=fa===e&&e.__root;if(d){var l=o.indexOf(d);if(l!==-1&&(r===document||r===window)){e.__root=r;return}var a=o.indexOf(r);if(a===-1)return;l<=a&&(u=l)}if(n=o[u]||e.target,n!==r){cu(e,"currentTarget",{configurable:!0,get(){return n||i}});var f=J,c=Q;Be(null),et(null);try{for(var h,p=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var g=n["__"+s];g!=null&&(!n.disabled||e.target===n)&&g.call(n,e)}catch(w){h?p.push(w):h=w}if(e.cancelBubble||m===r||m===null)break;n=m}if(h){for(let w of p)queueMicrotask(()=>{throw w});throw h}}finally{e.__root=r,delete e.currentTarget,Be(f),et(c)}}}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 o=r||Nu?document.importNode(i,!0):i.cloneNode(!0);return cr(o,o),o}}function uh(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,o;return()=>{if(K)return cr(X,null),X;if(!o){var n=Ju(s),u=ur(n);o=ur(u)}var d=o.cloneNode(!0);return cr(d,d),d}}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 n;Gn(),t.intro=(n=t.intro)!=null?n:!1;const r=t.target,i=K,s=X;try{for(var o=ur(r);o&&(o.nodeType!==Ur||o.data!==uu);)o=bt(o);if(!o)throw Dr;Nt(!0),je(o);const u=Ku(e,be(G({},t),{anchor:o}));return Nt(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
|
|
15
|
-
`).some(d=>d.startsWith("https://svelte.dev/e/")))throw u;return u!==Dr&&console.warn("Failed to hydrate: ",u),t.recover===!1&&xf(),Gn(),Du(r),
|
|
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 o=s.length,n=0;(n=i.indexOf(s,n))>=0;){var u=n+o;(n===0||ha.includes(i[n-1]))&&(u===i.length||ha.includes(i[u]))?i=(n===0?"":i.substring(0,n))+i.substring(u+1):n=u}}return i===""?null:i}function Eh(e,t){return e==null?null:String(e)}function Kn(e,t,r,i,s,o){var n=e.__className;if(K||n!==r||n===void 0){var u=Sh(r,i,o);(!K||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(o&&s!==o)for(var d in o){var l=!!o[d];(s==null||l!==!!s[d])&&e.classList.toggle(d,l)}return o}function Mr(e,t,r,i){var s=e.__style;if(K||s!==t){var o=Eh(t);(!K||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),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=Mh(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"&&Nh(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Mh(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Ch]:e.nodeName.includes("-"),[xh]:e.namespaceURI===df}}var da=new Map;function Nh(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,o=Element.prototype;o!==s;){i=fu(s);for(var n in i)i[n].set&&r.push(n);s=mo(s)}return r}function Ah(e,t,r=t){Jf(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(K&&e.defaultChecked!==e.checked||Ee(t)==null)&&r(e.checked),hi(()=>{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 Zf(()=>{var s,o;return hi(()=>{s=o,o=[],Ee(()=>{e!==r(...o)&&(t(e,...o),s&&pa(r(...s),e)&&t(null,...s))})}),()=>{$r(()=>{o&&pa(r(...o),e)&&t(null,...o)})}}),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,o={};const n=ss(()=>{let u=!1;const d=t.s;for(const l in d)d[l]!==o[l]&&(o[l]=d[l],u=!0);return u&&s++,s});i=()=>A(n)}r.b.length&&Qf(()=>{ma(t,i),Wn(r.b)}),Hn(()=>{const s=Ee(()=>r.m.map(vf));return()=>{for(const o of s)typeof o=="function"&&o()}}),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)A(r);t()}let bi=!1;function Oh(e){var t=bi;try{return bi=!1,[e(),bi]}finally{bi=t}}const Dh={get(e,t){if(!e.exclude.includes(t))return A(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]=me({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 me(e,t,r,i){var E;var s,o=!Fr||(r&uf)!==0,n=(r&cf)!==0,u=(r&ff)!==0,d=i,l=!0,a=()=>(l&&(l=!1,d=u?Ee(i):i),d),f;if(n){var c=rr in e||mu in e;f=(E=(s=tr(e,t))==null?void 0:s.set)!=null?E:c&&t in e?y=>e[t]=y:void 0}var h,p=!1;n?[h,p]=Oh(()=>e[t]):h=e[t],h===void 0&&i!==void 0&&(h=a(),f&&(o&&Mf(),f(h)));var m;if(o?m=()=>{var y=e[t];return y===void 0?a():(l=!0,y)}:m=()=>{var y=e[t];return y!==void 0&&(d=void 0),y===void 0?d:y},o&&(r&lu)===0)return m;if(f){var g=e.$$legacy;return(function(y,b){return arguments.length>0?((!o||!b||g||p)&&f(b?m():y),y):m()})}var w=!1,v=((r&lf)!==0?ss:ns)(()=>(w=!1,m()));n&&A(v);var _=Q;return(function(y,b){if(arguments.length>0){const S=b?A(v):o&&n?xr(y):y;return re(v,S),w=!0,d!==void 0&&(d=S),y}return dr&&w||(_.f&At)!==0?v.v:A(v)})}function kh(e){return class extends Ih{constructor(t){super(G({component:e},t))}}}class Ih{constructor(t){var n;Y(this,Lt),Y(this,it);var r,i=new Map,s=(u,d)=>{var l=Oe(d,!1,!1);return i.set(u,l),l};const o=new Proxy(be(G({},t.props||{}),{$$events:{}}),{get(u,d){var l;return A((l=i.get(d))!=null?l:s(d,Reflect.get(u,d)))},has(u,d){var l;return d===mu?!0:(A((l=i.get(d))!=null?l:s(d,Reflect.get(u,d))),Reflect.has(u,d))},set(u,d,l){var a;return re((a=i.get(d))!=null?a:s(d,l),l),Reflect.set(u,d,l)}});U(this,it,(t.hydrate?dh:Qu)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:(n=t.intro)!=null?n:!1,recover:t.recover})),(!((r=t==null?void 0:t.props)!=null&&r.$$host)||t.sync===!1)&&Ff(),U(this,Lt,o.$$events);for(const u of Object.keys(M(this,it)))u==="$set"||u==="$destroy"||u==="$on"||cu(this,u,{get(){return M(this,it)[u]},set(d){M(this,it)[u]=d},enumerable:!0});M(this,it).$set=u=>{Object.assign(o,u)},M(this,it).$destroy=()=>{ph(M(this,it))}}$set(t){M(this,it).$set(t)}$on(t,r){M(this,Lt)[t]=M(this,Lt)[t]||[];const i=(...s)=>r.call(this,...s);return M(this,Lt)[t].push(i),()=>{M(this,Lt)[t]=M(this,Lt)[t].filter(s=>s!==i)}}$destroy(){M(this,it).$destroy()}}Lt=new WeakMap;it=new WeakMap;var Ph=Object.defineProperty,Lh=(e,t,r)=>t in e?Ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t,r)=>Lh(e,typeof t!="symbol"?t+"":t,r),ga,Fh=Object.defineProperty,Bh=(e,t,r)=>t in e?Fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,va=(e,t,r)=>Bh(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"]},_i={};function Uh(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=Uh(e)||globalThis[e],r=t.prototype,i=e in ya?ya[e]:void 0,s=!!(i&&i.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),o=e in wa?wa[e]:void 0,n=!!(o&&o.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&n)return _i[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const d=u.contentWindow;if(!d)return t.prototype;const l=d[e].prototype;return document.body.removeChild(u),l?_i[e]=l:r}catch(u){return r}}const Cs={};function Jt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Cs[s])return Cs[s].call(t);const o=Ro(e),n=(i=Object.getOwnPropertyDescriptor(o,r))==null?void 0:i.get;return n?(Cs[s]=n,n.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 o=Ro(e)[r];return typeof o!="function"?t[r]:(xs[i]=o,o.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 Mo(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 No{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 No}function sd({element:e,maskInputOptions:t,tagName:r,type:i,value:s,maskInputFn:o}){let n=s||"";const u=i&&di(i);return(t[r.toLowerCase()]||u&&t[u])&&(o?n=o(n,e):n="*".repeat(n.length)),n}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 o=t.getImageData,n=ba in o?o[ba]:o;if(new Uint32Array(n.call(t,i,s,Math.min(r,e.width-i),Math.min(r,e.height-s)).data.buffer).some(d=>d!==0))return!1}return!0}function od(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 ad(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?di(t):null}function sc(e,t){var o;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(n){return null}const i=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(i);return(o=s==null?void 0:s[1])!=null?o: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,o,n,u)=>{const d=s||n||u,l=i||o||"";if(!d)return r;if(cd.test(d)||fd.test(d))return`url(${l}${d}${l})`;if(hd.test(d))return`url(${l}${d}${l})`;if(d[0]==="/")return`url(${l}${ld(t)+d}${l})`;const a=t.split("/"),f=d.split("/");a.pop();for(const c of f)c!=="."&&(c===".."?a.pop():a.push(c));return`url(${l}${a.join("/")}${l})`})}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 o=0;if(i.length>1&&e&&typeof e=="string"){let n=Si(e,r);const u=n.length/e.length;for(let d=1;d<i.length;d++)if(i[d].textContent&&typeof i[d].textContent=="string"){const l=Si(i[d].textContent,r),a=100;let f=3;for(;f<l.length&&(l[f].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,f),1)!==-1);f++);for(;f<l.length;f++){let c=l.substring(0,f),h=n.split(c),p=-1;if(h.length===2)p=h[0].length;else if(h.length>2&&h[0]===""&&i[d-1].textContent!=="")p=n.indexOf(c,1);else if(h.length===1){if(c=c.substring(0,c.length-1),h=n.split(c),h.length<=1)return s.push(e),s;f=a+1}else f===l.length-1&&(p=n.indexOf(c));if(h.length>=2&&f>a){const m=i[d-1].textContent;if(m&&typeof m=="string"){const g=Si(m).length;p=n.indexOf(c,g)}p===-1&&(p=h[0].length)}if(p!==-1){let m=Math.floor(p/u);for(;m>0&&m<e.length;){if(o+=1,o>50*i.length)return s.push(e),s;const g=Si(e.substring(0,m),r);if(g.length===p){s.push(e.substring(0,m)),e=e.substring(m),n=n.substring(p);break}else g.length<p?m+=Math.max(1,Math.floor((p-g.length)/u)):m-=Math.max(1,Math.floor((g.length-p)*u))}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(o){let n;const u=o.exec(t.substring(r));return u?(n=u[0],r+=n.length,n):""}const s=[];for(;i(_d),!(r>=t.length);){let o=i(bd);if(o.slice(-1)===",")o=Nr(e,o.substring(0,o.length-1)),s.push(o);else{let n="";o=Nr(e,o);let u=!1;for(;;){const d=t.charAt(r);if(d===""){s.push((o+n).trim());break}else if(u)d===")"&&(u=!1);else if(d===","){r+=1,s.push((o+n).trim());break}else d==="("&&(u=!0);n+=d,r+=1}}}return s.join(", ")}const Ea=new WeakMap;function Nr(e,t){return!t||t.trim()===""?t:Ao(e,t)}function Ed(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ao(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")?Nr(e,i):r==="srcset"?Sd(e,i):r==="style"?ji(i,Ao(e)):t==="object"&&r==="data"?Nr(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 Md(e,t,r,i){let s;if(Mo(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(o){}return!1}function Nd(e,t,r){const i=e.contentWindow;if(!i)return;let s=!1,o;try{o=i.document.readyState}catch(u){return}if(o!=="complete"){const u=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(u),s=!0,t()});return}const n="about:blank";if(i.location.href!==n||e.src===n||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Ad(e,t,r){let i=!1,s;try{s=e.sheet}catch(n){return}if(s)return;const o=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),i=!0,t()})}function Od(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:o,needsMask:n,inlineStylesheet:u,maskInputOptions:d={},maskTextFn:l,maskInputFn:a,maskAttributeFn:f,dataURLOptions:c={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g=!1,cssCaptured:w=!1,applyBackgroundColorToBlockedElements:v=!1}=t,_=Dd(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 kd(e,{doc:r,blockClass:s,blockSelector:o,inlineStylesheet:u,maskInputOptions:d,maskInputFn:a,maskAttributeFn:f,dataURLOptions:c,inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g,rootId:_,applyBackgroundColorToBlockedElements:v});case e.TEXT_NODE:return Td(e,{doc:r,needsMask:n,maskTextFn:l,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 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:o}=t,n=Te.parentNode(e),u=n&&n.tagName;let d="";const l=u==="STYLE"?!0:void 0,a=u==="SCRIPT"?!0:void 0;return a?d="SCRIPT_PLACEHOLDER":o||(d=Te.textContent(e),l&&d&&(d=ji(d,Ao(t.doc)))),!l&&!a&&d&&r&&(d=i?i(d,Te.parentElement(e)):d.replace(/[\S]/g,"*")),{type:W.Text,textContent:d||"",rootId:s}}function kd(e,t){const{doc:r,blockClass:i,blockSelector:s,inlineStylesheet:o,maskInputOptions:n={},maskInputFn:u,maskAttributeFn:d,dataURLOptions:l={},inlineImages:a,recordCanvas:f,keepIframeSrcFn:c,newlyAddedElement:h=!1,rootId:p,applyBackgroundColorToBlockedElements:m=!1}=t,g=Rd(e,i,s),w=wd(e);let v={};const _=e.attributes.length;for(let y=0;y<_;y++){const b=e.attributes[y];if(!xd(w,b.name,b.value)){const S=Cd(r,w,di(b.name),b.value);if(d&&S!==null){const C=d(b.name,S,e);C!==null&&(v[b.name]=C)}else v[b.name]=S}}if(w==="link"&&o){const y=Array.from(r.styleSheets).find(S=>S.href===e.href);let b=null;y&&(b=Zn(y)),b&&(delete v.rel,delete v.href,v._cssText=b)}if(w==="style"&&e.sheet){let y=Zn(e.sheet);y&&(e.childNodes.length>1&&(y=pd(y,e)),v._cssText=y)}if(w==="input"||w==="textarea"||w==="select"){const y=e.value,b=e.checked;v.type!=="radio"&&v.type!=="checkbox"&&v.type!=="submit"&&v.type!=="button"&&y?v.value=sd({element:e,type:ad(e),tagName:w,value:y,maskInputOptions:n,maskInputFn:u}):b&&(v.checked=b)}if(w==="option"&&(e.selected&&!n.select?v.selected=!0:delete v.selected),w==="dialog"&&e.open&&(v.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&f){if(e.__context==="2d")nd(e)||(v.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const y=e.toDataURL(l.type,l.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;const S=b.toDataURL(l.type,l.quality);y!==S&&(v.rr_dataURL=y)}}if(w==="img"&&a){vr||(vr=r.createElement("canvas"),Sa=vr.getContext("2d"));const y=e,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",S=y.crossOrigin,C=()=>{y.removeEventListener("load",C);try{vr.width=y.naturalWidth,vr.height=y.naturalHeight,Sa.drawImage(y,0,0),v.rr_dataURL=vr.toDataURL(l.type,l.quality)}catch(N){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C);return}else console.warn(`Cannot inline img src=${b}! Error: ${N}`)}y.crossOrigin==="anonymous"&&(S?v.crossOrigin=S:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C)}if(w==="audio"||w==="video"){const y=v;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(h||(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop)),g){const{width:y,height:b}=e.getBoundingClientRect();v=G({class:v.class,rr_width:`${y}px`,rr_height:`${b}px`},m?{rr_background_color:md}:{})}w==="iframe"&&!c(v.src)&&(e.contentDocument||(v.rr_src=v.src),delete v.src);let E;try{customElements.get(w)&&(E=!0)}catch(y){}return{type:W.Element,tagName:w,attributes:v,childNodes:[],isSVG:Ed(e)||void 0,needBlock:g,rootId:p,isCustom:E}}function fe(e){return e==null?"":e.toLowerCase()}function Id(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"&&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 o=[];if(!r.has(s)){r.add(s);try{o=Array.from(i.cssRules,(n,u)=>({rule:ic(n,i.href),index:u}))}catch(n){if(!(n instanceof DOMException&&n.name==="SecurityError"))throw n}}return{styleId:s,rules:o}})}function Kr(e,t){var we;var r,i;const{doc:s,mirror:o,blockClass:n,blockSelector:u,maskTextClass:d,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:f=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w={},inlineImages:v=!1,recordCanvas:_=!1,onSerialize:E,onAdoptedStyleSheet:y,onIframeLoad:b,iframeLoadTimeout:S=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:P=!1,cssCaptured:D=!1,applyBackgroundColorToBlockedElements:ae=!1}=t,ee=(we=t._emittedStyleIds)!=null?we:new Set;let{needsMask:R}=t,{preserveWhiteSpace:ie=!0}=t;R||(R=Md(e,d,l,R===void 0));const L=Od(e,{doc:s,mirror:o,blockClass:n,blockSelector:u,needsMask:R,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,dataURLOptions:w,inlineImages:v,recordCanvas:_,keepIframeSrcFn:x,newlyAddedElement:P,cssCaptured:D,applyBackgroundColorToBlockedElements:ae});if(!L)return console.warn(e,"not serialized"),null;let q;o.hasNode(e)?q=o.getId(e):Id(L,g)||!ie&&L.type===W.Text&&!L.textContent.replace(/^\s+|\s+$/gm,"").length?q=_a:q=yd();const I=Object.assign(L,{id:q});if(o.add(e,I),q===_a)return null;E&&E(e);let z=!a;if(I.type===W.Element){z=z&&!I.needBlock,delete I.needBlock;const O=Te.shadowRoot(e);O&&Rs(O)&&(I.isShadowHost=!0,y&&((r=O.adoptedStyleSheets)!=null&&r.length)&&(I.adoptedStyleSheets=Ca(O.adoptedStyleSheets,y,ee)))}if(I.type===W.Document&&y){const O=e;(i=O.adoptedStyleSheets)!=null&&i.length&&(I.adoptedStyleSheets=Ca(O.adoptedStyleSheets,y,ee))}if((I.type===W.Document||I.type===W.Element)&&z){g.headWhitespace&&I.type===W.Element&&I.tagName==="head"&&(ie=!1);const O={doc:s,mirror:o,blockClass:n,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:a,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:_,preserveWhiteSpace:ie,onSerialize:E,onAdoptedStyleSheet:y,_emittedStyleIds:ee,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:x,cssCaptured:!1,applyBackgroundColorToBlockedElements:ae};if(!(I.type===W.Element&&I.tagName==="textarea"&&I.attributes.value!==void 0)){I.type===W.Element&&I.attributes._cssText!==void 0&&typeof I.attributes._cssText=="string"&&(O.cssCaptured=!0);for(const k of Array.from(Te.childNodes(e))){const $=Kr(k,O);$&&I.childNodes.push($)}}let ue=null;if(Mo(e)&&(ue=Te.shadowRoot(e)))for(const k of Array.from(Te.childNodes(ue))){const $=Kr(k,O);$&&(Rs(ue)&&($.isShadow=!0),I.childNodes.push($))}}const Ce=Te.parentNode(e);return Ce&&Kh(Ce)&&Rs(Ce)&&(I.isShadow=!0),I.type===W.Element&&I.tagName==="iframe"&&Nd(e,()=>{const O=e.contentDocument;if(O&&b){const ue=Kr(O,{doc:O,mirror:o,blockClass:n,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:_,preserveWhiteSpace:ie,onSerialize:E,onAdoptedStyleSheet:y,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:x});ue&&b(e,ue)}},S),I.type===W.Element&&I.tagName==="link"&&typeof I.attributes.rel=="string"&&(I.attributes.rel==="stylesheet"||I.attributes.rel==="preload"&&typeof I.attributes.href=="string"&&sc(I.attributes.href)==="css")&&Ad(e,()=>{if(C){const O=Kr(e,{doc:s,mirror:o,blockClass:n,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:_,preserveWhiteSpace:ie,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:x});O&&C(e,O)}},N),I}function Pd(e,t){const{mirror:r=new No,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,inlineStylesheet:u=!0,inlineImages:d=!1,recordCanvas:l=!1,maskAllInputs:a=!1,maskTextFn:f,maskInputFn:c,maskAttributeFn:h,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:g,onSerialize:w,onAdoptedStyleSheet:v,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S=()=>!1,applyBackgroundColorToBlockedElements:C=!1}=t||{};return Kr(e,{doc:e,mirror:r,blockClass:i,blockSelector:s,maskTextClass:o,maskTextSelector:n,skipChild:!1,inlineStylesheet:u,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:f,maskInputFn:c,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:d,recordCanvas:l,preserveWhiteSpace:g,onSerialize:w,onAdoptedStyleSheet:v,onIframeLoad:_,iframeLoadTimeout:E,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:S,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"))}}}},Bd={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
|
|
17
|
-
`+r.replace(/:hover/g,".\\:hover"))}))}}}};function Ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $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,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Ei.exports=t(),Ei.exports.createColors=t,Ei.exports}const zd={},qd=Object.freeze(Object.defineProperty({__proto__:null,default:zd},Symbol.toStringTag,{value:"Module"})),
|
|
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},be=(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,Nt=(e,t,r)=>ef(e,typeof t!="symbol"?t+"":t,r),uo=(e,t,r)=>t.has(e)||iu("Cannot "+r),M=(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),ye=(e,t,r)=>(uo(e,t,"access private method"),r),ta,oi,Yr,Ut,$t,Jr,ai,ti,Je,co,li,Ln,su,nu,at,Xe,Ti,Mt,Or,At,lt,ze,Ct,Vt,tr,Kt,Gt,wr,Zt,Fn,Pe,ou,au,fo,Bi,Ui,Bn,vt,xt,Ve,br,ki,Ii,Un,Bt,st;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={},Ae=Symbol(),df="http://www.w3.org/1999/xhtml",$n=!1;var po=Array.isArray,pf=Array.prototype.indexOf,Xi=Array.from,cu=Object.defineProperty,rr=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,Tt=16,kt=32,hr=64,Ki=128,ft=512,xe=1024,Fe=2048,dt=4096,qe=8192,Dt=16384,Zi=32768,Tr=65536,ia=1<<17,du=1<<18,Br=1<<19,pu=1<<20,zt=1<<25,ar=32768,zn=1<<21,vo=1<<22,Ht=1<<23,ir=Symbol("$state"),mu=Symbol("legacy props"),wf=Symbol(""),Cr=new class extends Error{constructor(){super(...arguments),Nt(this,"name","StaleReactionError"),Nt(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 bf(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sf(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _f(){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 Mf(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nf(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Af(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Of(){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 Ot(e){K=e}let X;function je(e){if(e===null)throw ts(),Dr;return X=e}function rs(){return je(St(X))}function nt(e){if(K){if(St(X)!==null)throw ts(),Dr;X=e}}function kf(e=1){if(K){for(var t=e,r=X;t--;)r=St(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===uu||i===Ji)&&(t+=1)}var s=St(r);e&&r.remove(),r=s}}function gu(e){if(!e||e.nodeType!==Ur)throw ts(),Dr;return e.data}function vu(e){return e===this.v}function If(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function yu(e){return!If(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)Pu(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 er=[];function wu(){var e=er;er=[],Wn(e)}function $r(e){if(er.length===0&&!ri){var t=er;queueMicrotask(()=>{t===er&&wu()})}er.push(e)}function Pf(){for(;er.length>0;)wu()}function bu(e){var t=Q;if(t===null)return J.f|=Ht,e;if((t.f&Zi)===0){if((t.f&Ki)===0)throw e;t.b.error(e)}else Ir(e,t)}function Ir(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 Pi=new Set;let ne=null,De=null,Qe=[],is=null,qn=!1,ri=!1;const Lf=class jn{constructor(){Y(this,Je),Nt(this,"committed",!1),Nt(this,"current",new Map),Nt(this,"previous",new Map),Y(this,oi,new Set),Y(this,Yr,new Set),Y(this,Ut,0),Y(this,$t,0),Y(this,Jr,null),Y(this,ai,new Set),Y(this,ti,new Set),Nt(this,"skipped_effects",new Set),Nt(this,"is_fork",!1)}is_deferred(){return this.is_fork||M(this,$t)>0}process(t){var r;Qe=[],this.apply();var i={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)ye(this,Je,co).call(this,s,i);this.is_fork||ye(this,Je,su).call(this),this.is_deferred()?(ye(this,Je,li).call(this,i.effects),ye(this,Je,li).call(this,i.render_effects)):(ne=null,sa(i.render_effects),sa(i.effects),(r=M(this,Jr))==null||r.resolve()),De=null}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ht)===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(),Qe.length>0){if(Su(),ne!==null&&ne!==this)return}else M(this,Ut)===0&&this.process([]);this.deactivate()}discard(){for(const t of M(this,Yr))t(this);M(this,Yr).clear()}increment(t){U(this,Ut,M(this,Ut)+1),t&&U(this,$t,M(this,$t)+1)}decrement(t){U(this,Ut,M(this,Ut)-1),t&&U(this,$t,M(this,$t)-1),this.revive()}revive(){for(const t of M(this,ai))M(this,ti).delete(t),Me(t,Fe),ur(t);for(const t of M(this,ti))Me(t,dt),ur(t);this.flush()}oncommit(t){M(this,oi).add(t)}ondiscard(t){M(this,Yr).add(t)}settled(){var t;return((t=M(this,Jr))!=null?t:U(this,Jr,hu())).promise}static ensure(){if(ne===null){const t=ne=new jn;Pi.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;$t=new WeakMap;Jr=new WeakMap;ai=new WeakMap;ti=new WeakMap;Je=new WeakSet;co=function(e,t){var r;e.f^=xe;for(var i=e.first;i!==null;){var s=i.f,o=(s&(kt|hr))!==0,n=o&&(s&xe)!==0,u=n||(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:[]}),!u&&i.fn!==null){o?i.f^=xe:(s&go)!==0?t.effects.push(i):Wr(i)&&((i.f&Tt)!==0&&M(this,ai).add(i),Lr(i));var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)l===t.effect&&(ye(this,Je,li).call(this,t.effects),ye(this,Je,li).call(this,t.render_effects),t=t.parent),i=l.next,l=l.parent}};li=function(e){for(const t of e)(t.f&Fe)!==0?M(this,ai).add(t):(t.f&dt)!==0&&M(this,ti).add(t),ye(this,Je,Ln).call(this,t.deps),Me(t,xe)};Ln=function(e){if(e!==null)for(const t of e)(t.f&Re)===0||(t.f&ar)===0||(t.f^=ar,ye(this,Je,Ln).call(this,t.deps))};su=function(){if(M(this,$t)===0){for(const e of M(this,oi))e();M(this,oi).clear()}M(this,Ut)===0&&ye(this,Je,nu).call(this)};nu=function(){var e;if(Pi.size>1){this.previous.clear();var t=De,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const o of Pi){if(o===this){r=!1;continue}const n=[];for(const[d,l]of this.current){if(o.current.has(d))if(r&&l!==o.current.get(d))o.current.set(d,l);else continue;n.push(d)}if(n.length===0)continue;const u=[...o.current.keys()].filter(d=>!this.current.has(d));if(u.length>0){var s=Qe;Qe=[];const d=new Set,l=new Map;for(const a of n)_u(a,u,d,l);if(Qe.length>0){ne=o,o.apply();for(const a of Qe)ye(e=o,Je,co).call(e,a,i);o.deactivate()}Qe=s}}ne=null,De=t}this.committed=!0,Pi.delete(this)};let lr=Lf;function Ff(e){var t=ri;ri=!0;try{for(var r;;){if(Pf(),Qe.length===0&&(ne==null||ne.flush(),Qe.length===0))return is=null,r;Su()}}finally{ri=t}}function Su(){var e=sr;qn=!0;var t=null;try{var r=0;for(zi(!0);Qe.length>0;){var i=lr.ensure();if(r++>1e3){var s,o;Bf()}i.process(Qe),Yt.clear()}}finally{qn=!1,zi(e),is=null}}function Bf(){try{Cf()}catch(e){Ir(e,is)}}let yt=null;function sa(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Dt|qe))===0&&Wr(i)&&(yt=new Set,Lr(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?Uu(i):i.fn=null),(yt==null?void 0:yt.size)>0)){Yt.clear();for(const s of yt){if((s.f&(Dt|qe))!==0)continue;const o=[s];let n=s.parent;for(;n!==null;)yt.has(n)&&(yt.delete(n),o.push(n)),n=n.parent;for(let u=o.length-1;u>=0;u--){const d=o[u];(d.f&(Dt|qe))===0&&Lr(d)}}yt.clear()}}yt=null}}function _u(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Re)!==0?_u(s,t,r,i):(o&(vo|Tt))!==0&&(o&Fe)===0&&Eu(s,t,i)&&(Me(s,Fe),ur(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 ur(e){for(var t=is=e;t.parent!==null;){t=t.parent;var r=t.f;if(qn&&t===Q&&(r&Tt)!==0&&(r&du)===0)return;if((r&(hr|kt))!==0){if((r&xe)===0)return;t.f^=xe}}Qe.push(t)}function Uf(e){let t=0,r=Jt(0),i;return()=>{ui()&&(A(r),hi(()=>(t===0&&(i=Ee(()=>e(()=>ii(r)))),t+=1,()=>{$r(()=>{t-=1,t===0&&(i==null||i(),i=void 0,ii(r))})})))}}var $f=Tr|Br|Ki;function Wf(e,t,r){new zf(e,t,r)}class zf{constructor(t,r,i){Y(this,Pe),Nt(this,"parent"),Y(this,at,!1),Y(this,Xe),Y(this,Ti,K?X:null),Y(this,Mt),Y(this,Or),Y(this,At),Y(this,lt,null),Y(this,ze,null),Y(this,Ct,null),Y(this,Vt,null),Y(this,tr,null),Y(this,Kt,0),Y(this,Gt,0),Y(this,wr,!1),Y(this,Zt,null),Y(this,Fn,Uf(()=>(U(this,Zt,Jt(M(this,Kt))),()=>{U(this,Zt,null)}))),U(this,Xe,t),U(this,Mt,r),U(this,Or,i),this.parent=Q.b,U(this,at,!!M(this,Mt).pending),U(this,At,Eo(()=>{if(Q.b=this,K){const o=M(this,Ti);rs(),o.nodeType===Ur&&o.data===Ji?ye(this,Pe,au).call(this):ye(this,Pe,ou).call(this)}else{var s=ye(this,Pe,fo).call(this);try{U(this,lt,Ze(()=>i(s)))}catch(o){this.error(o)}M(this,Gt)>0?ye(this,Pe,Ui).call(this):U(this,at,!1)}return()=>{var o;(o=M(this,tr))==null||o.remove()}},$f)),K&&U(this,Xe,X)}is_pending(){return M(this,at)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!M(this,Mt).pending}update_pending_count(t){ye(this,Pe,Bn).call(this,t),U(this,Kt,M(this,Kt)+t),M(this,Zt)&&Pr(M(this,Zt),M(this,Kt))}get_effect_pending(){return M(this,Fn).call(this),A(M(this,Zt))}error(t){var r=M(this,Mt).onerror;let i=M(this,Mt).failed;if(M(this,wr)||!r&&!i)throw t;M(this,lt)&&(Le(M(this,lt)),U(this,lt,null)),M(this,ze)&&(Le(M(this,ze)),U(this,ze,null)),M(this,Ct)&&(Le(M(this,Ct)),U(this,Ct,null)),K&&(je(M(this,Ti)),kf(),je($i()));var s=!1,o=!1;const n=()=>{if(s){Tf();return}s=!0,o&&Df(),lr.ensure(),U(this,Kt,0),M(this,Ct)!==null&&dr(M(this,Ct),()=>{U(this,Ct,null)}),U(this,at,this.has_pending_snippet()),U(this,lt,ye(this,Pe,Bi).call(this,()=>(U(this,wr,!1),Ze(()=>M(this,Or).call(this,M(this,Xe)))))),M(this,Gt)>0?ye(this,Pe,Ui).call(this):U(this,at,!1)};var u=J;try{Be(null),o=!0,r==null||r(t,n),o=!1}catch(d){Ir(d,M(this,At)&&M(this,At).parent)}finally{Be(u)}i&&$r(()=>{U(this,Ct,ye(this,Pe,Bi).call(this,()=>{lr.ensure(),U(this,wr,!0);try{return Ze(()=>{i(M(this,Xe),()=>t,()=>n)})}catch(d){return Ir(d,M(this,At).parent),null}finally{U(this,wr,!1)}}))})}}at=new WeakMap;Xe=new WeakMap;Ti=new WeakMap;Mt=new WeakMap;Or=new WeakMap;At=new WeakMap;lt=new WeakMap;ze=new WeakMap;Ct=new WeakMap;Vt=new WeakMap;tr=new WeakMap;Kt=new WeakMap;Gt=new WeakMap;wr=new WeakMap;Zt=new WeakMap;Fn=new WeakMap;Pe=new WeakSet;ou=function(){try{U(this,lt,Ze(()=>M(this,Or).call(this,M(this,Xe))))}catch(e){this.error(e)}U(this,at,!1)};au=function(){const e=M(this,Mt).pending;e&&(U(this,ze,Ze(()=>e(M(this,Xe)))),lr.enqueue(()=>{var t=ye(this,Pe,fo).call(this);U(this,lt,ye(this,Pe,Bi).call(this,()=>(lr.ensure(),Ze(()=>M(this,Or).call(this,t))))),M(this,Gt)>0?ye(this,Pe,Ui).call(this):(dr(M(this,ze),()=>{U(this,ze,null)}),U(this,at,!1))}))};fo=function(){var e=M(this,Xe);return M(this,at)&&(U(this,tr,ht()),M(this,Xe).before(M(this,tr)),e=M(this,tr)),e};Bi=function(e){var t=Q,r=J,i=oe;tt(M(this,At)),Be(M(this,At)),kr(M(this,At).ctx);try{return e()}catch(s){return bu(s),null}finally{tt(t),Be(r),kr(i)}};Ui=function(){const e=M(this,Mt).pending;M(this,lt)!==null&&(U(this,Vt,document.createDocumentFragment()),M(this,Vt).append(M(this,tr)),zu(M(this,lt),M(this,Vt))),M(this,ze)===null&&U(this,ze,Ze(()=>e(M(this,Xe))))};Bn=function(e){var t;if(!this.has_pending_snippet()){this.parent&&ye(t=this.parent,Pe,Bn).call(t,e);return}U(this,Gt,M(this,Gt)+e),M(this,Gt)===0&&(U(this,at,!1),M(this,ze)&&dr(M(this,ze),()=>{U(this,ze,null)}),M(this,Vt)&&(M(this,Xe).before(M(this,Vt)),U(this,Vt,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 o=ne,n=Q,u=jf();function d(){Promise.all(r.map(l=>Vf(l))).then(l=>{u();try{i([...t.map(s),...l])}catch(a){(n.f&Dt)===0&&Ir(a,n)}o==null||o.deactivate(),Wi()}).catch(l=>{Ir(l,n)})}e.length>0?Promise.all(e).then(()=>{u();try{return d()}finally{o==null||o.deactivate(),Wi()}}):d()}function jf(){var e=Q,t=J,r=oe,i=ne;return function(o=!0){tt(e),Be(t),kr(r),o&&(i==null||i.activate())}}function Wi(){tt(null),Be(null),kr(null)}function ss(e){var t=Re|Fe,r=J!==null&&(J.f&Re)!==0?J:null;return Q!==null&&(Q.f|=Br),{ctx:oe,deps:null,effects:null,equals:vu,f:t,fn:e,reactions:null,rv:0,v:Ae,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,o=Jt(Ae),n=!J,u=new Map;return eh(()=>{var d,l=hu();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{a===ne&&a.committed&&a.deactivate(),Wi()})}catch(h){l.reject(h),Wi()}var a=ne;if(n){var f=!i.is_pending();i.update_pending_count(1),a.increment(f),(d=u.get(a))==null||d.reject(Cr),u.delete(a),u.set(a,l)}const c=(h,p=void 0)=>{if(a.activate(),p)p!==Cr&&(o.f|=Ht,Pr(o,p));else{(o.f&Ht)!==0&&(o.f^=Ht),Pr(o,h);for(const[m,g]of u){if(u.delete(m),m===a)break;g.reject(Cr)}}n&&(i.update_pending_count(-1),a.decrement(f))};l.promise.then(c,h=>c(null,h||"unknown"))}),_o(()=>{for(const d of u.values())d.reject(Cr)}),new Promise(d=>{function l(a){function f(){a===s?d(o):l(s)}a.then(f,f)}l(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&Dt)===0?t:null;t=t.parent}return null}function So(e){var t,r=Q;tt(Gf(e));try{e.f&=~ar,Cu(e),t=Gu(e)}finally{tt(r)}return t}function xu(e){var t=So(e);if(e.equals(t)||(ne!=null&&ne.is_fork||(e.v=t),e.wv=ju()),!pr)if(De!==null)(ui()||ne!=null&&ne.is_fork)&&De.set(e,t);else{var r=(e.f&ft)===0?dt:xe;Me(e,r)}}let Vn=new Set;const Yt=new Map;let Ru=!1;function Jt(e,t){var r={f:0,v:e,reactions:null,equals:vu,rv:0,wv:0};return r}function It(e,t){const r=Jt(e);return ih(r),r}function Oe(e,t=!1,r=!0){var o;var i;const s=Jt(e);return t||(s.equals=yu),Fr&&r&&oe!==null&&oe.l!==null&&((o=(i=oe.l).s)!=null?o:i.s=[]).push(s),s}function re(e,t,r=!1){J!==null&&(!bt||(J.f&ia)!==0)&&fi()&&(J.f&(Re|Tt|vo|ia))!==0&&!(et!=null&&et.includes(e))&&Of();let i=r?xr(t):t;return Pr(e,i)}function Pr(e,t){if(!e.equals(t)){var r=e.v;pr?Yt.set(e,t):Yt.set(e,r),e.v=t;var i=lr.ensure();i.capture(e,r),(e.f&Re)!==0&&((e.f&Fe)!==0&&So(e),Me(e,(e.f&ft)!==0?xe:dt)),e.wv=ju(),Mu(e,Fe),fi()&&Q!==null&&(Q.f&xe)!==0&&(Q.f&(kt|hr))===0&&(Ye===null?sh([e]):Ye.push(e)),!i.is_fork&&Vn.size>0&&!Ru&&Hf()}return t}function Hf(){Ru=!1;var e=sr;zi(!0);const t=Array.from(Vn);try{for(const r of t)(r.f&xe)!==0&&Me(r,dt),Wr(r)&&Lr(r)}finally{zi(e)}Vn.clear()}function na(e,t=1){var r=A(e),i=t===1?r++:r--;return re(e,r),i}function ii(e){re(e,e.v+1)}function Mu(e,t){var r=e.reactions;if(r!==null)for(var i=fi(),s=r.length,o=0;o<s;o++){var n=r[o],u=n.f;if(!(!i&&n===Q)){var d=(u&Fe)===0;if(d&&Me(n,t),(u&Re)!==0){var l=n;De==null||De.delete(l),(u&ar)===0&&(u&ft&&(n.f|=ar),Mu(l,dt))}else d&&((u&Tt)!==0&&yt!==null&&yt.add(n),ur(n))}}}function xr(e){if(typeof e!="object"||e===null||ir in e)return e;const t=mo(e);if(t!==mf&&t!==gf)return e;var r=new Map,i=po(e),s=It(0),o=nr,n=u=>{if(nr===o)return u();var d=J,l=nr;Be(null),ua(o);var a=u();return Be(d),ua(l),a};return i&&r.set("length",It(e.length)),new Proxy(e,{defineProperty(u,d,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Nf();var a=r.get(d);return a===void 0?a=n(()=>{var f=It(l.value);return r.set(d,f),f}):re(a,l.value,!0),!0},deleteProperty(u,d){var l=r.get(d);if(l===void 0){if(d in u){const a=n(()=>It(Ae));r.set(d,a),ii(s)}}else re(l,Ae),ii(s);return!0},get(u,d,l){var a;if(d===ir)return e;var f=r.get(d),c=d in u;if(f===void 0&&(!c||(a=rr(u,d))!=null&&a.writable)&&(f=n(()=>{var p=xr(c?u[d]:Ae),m=It(p);return m}),r.set(d,f)),f!==void 0){var h=A(f);return h===Ae?void 0:h}return Reflect.get(u,d,l)},getOwnPropertyDescriptor(u,d){var l=Reflect.getOwnPropertyDescriptor(u,d);if(l&&"value"in l){var a=r.get(d);a&&(l.value=A(a))}else if(l===void 0){var f=r.get(d),c=f==null?void 0:f.v;if(f!==void 0&&c!==Ae)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(u,d){var l;if(d===ir)return!0;var a=r.get(d),f=a!==void 0&&a.v!==Ae||Reflect.has(u,d);if(a!==void 0||Q!==null&&(!f||(l=rr(u,d))!=null&&l.writable)){a===void 0&&(a=n(()=>{var h=f?xr(u[d]):Ae,p=It(h);return p}),r.set(d,a));var c=A(a);if(c===Ae)return!1}return f},set(u,d,l,a){var f,c=r.get(d),h=d in u;if(i&&d==="length")for(var p=l;p<c.v;p+=1){var m=r.get(p+"");m!==void 0?re(m,Ae):p in u&&(m=n(()=>It(Ae)),r.set(p+"",m))}if(c===void 0)(!h||(f=rr(u,d))!=null&&f.writable)&&(c=n(()=>It(void 0)),re(c,xr(l)),r.set(d,c));else{h=c.v!==Ae;var g=n(()=>xr(l));re(c,g)}var w=Reflect.getOwnPropertyDescriptor(u,d);if(w!=null&&w.set&&w.set.call(a,l),!h){if(i&&typeof d=="string"){var v=r.get("length"),S=Number(d);Number.isInteger(S)&&S>=v.v&&re(v,S+1)}ii(s)}return!0},ownKeys(u){A(s);var d=Reflect.ownKeys(u).filter(f=>{var c=r.get(f);return c===void 0||c.v!==Ae});for(var[l,a]of r)a.v!==Ae&&!(l in u)&&d.push(l);return d},setPrototypeOf(){Af()}})}var oa,Nu,Au,Ou;function Gn(){if(oa===void 0){oa=window,Nu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Au=rr(t,"firstChild").get,Ou=rr(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 ht(e=""){return document.createTextNode(e)}function cr(e){return Au.call(e)}function St(e){return Ou.call(e)}function ot(e,t){if(!K)return cr(e);var r=cr(X);if(r===null)r=X.appendChild(ht());else if(t&&r.nodeType!==yo){var i=ht();return r==null||r.before(i),je(i),i}return je(r),r}function Yf(e,t=!1){if(!K){var r=cr(e);return r instanceof Comment&&r.data===""?St(r):r}if(t&&(X==null?void 0:X.nodeType)!==yo){var i=ht();return X==null||X.before(i),je(i),i}return X}function He(e,t=1,r=!1){let i=K?X:e;for(var s;t--;)s=i,i=St(i);if(!K)return i;if(r&&(i==null?void 0:i.nodeType)!==yo){var o=ht();return i===null?s==null||s.after(o):i.before(o),je(o),o}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;Be(null),tt(null);try{return e()}finally{Be(t),tt(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 Iu(e){Q===null&&(J===null&&Ef(),_f()),pr&&Sf()}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 u;var i=Q;i!==null&&(i.f&qe)!==0&&(e|=qe);var s={ctx:oe,deps:null,nodes:null,f:e|Fe|ft,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(d){throw Le(s),d}else t!==null&&ur(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Br)===0&&(o=o.first,(e&Tt)!==0&&(e&Tr)!==0&&o!==null&&(o.f|=Tr)),o!==null&&(o.parent=i,i!==null&&Xf(o,i),J!==null&&(J.f&Re)!==0&&(e&hr)===0)){var n=J;((u=n.effects)!=null?u:n.effects=[]).push(o)}return s}function ui(){return J!==null&&!bt}function _o(e){const t=_t(Qi,null,!1);return Me(t,xe),t.teardown=e,t}function Hn(e){var s;Iu();var t=Q.f,r=!J&&(t&kt)!==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|pu,e,!1)}function Qf(e){return Iu(),_t(Qi|pu,e,!0)}function Kf(e){lr.ensure();const t=_t(hr|Br,e,!0);return(r={})=>new Promise(i=>{r.outro?dr(t,()=>{Le(t),i(void 0)}):(Le(t),i(void 0))})}function Zf(e){return _t(go,e,!1)}function Wt(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,Ee(t))})}function Lu(){var e=oe;hi(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&xe)!==0&&Me(r,dt),Wr(r)&&Lr(r),t.ran=!1}})}function eh(e){return _t(vo|Br,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(A)),!0)})}function Eo(e,t=0){var r=_t(Tt|t,e,!0);return r}function Ze(e){return _t(kt|Br,e,!0)}function Fu(e){var t=e.teardown;if(t!==null){const r=pr,i=J;la(!0),Be(null);try{t.call(null)}finally{la(r),Be(i)}}}function Bu(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&hr)!==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&kt)===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),Bu(e,t&&!r),qi(e,0),Me(e,Dt);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();Fu(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 rh(e,t){for(;e!==null;){var r=e===t?null:St(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 dr(e,t,r=!0){var i=[];$u(e,i,!0);var s=()=>{r&&Le(e),t&&t()},o=i.length;if(o>0){var n=()=>--o||s();for(var u of i)u.out(n)}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 u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,n=(s.f&Tr)!==0||(s.f&kt)!==0&&(e.f&Tt)!==0;$u(s,t,n?r:!1),s=o}}}function Co(e){Wu(e,!0)}function Wu(e,t){if((e.f&qe)!==0){e.f^=qe,(e.f&xe)===0&&(Me(e,Fe),ur(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Tr)!==0||(r.f&kt)!==0;Wu(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const n of o)(n.is_global||t)&&n.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:St(r);t.append(r),r=s}}let sr=!1;function zi(e){sr=e}let pr=!1;function la(e){pr=e}let J=null,bt=!1;function Be(e){J=e}let Q=null;function tt(e){Q=e}let et=null;function ih(e){J!==null&&(et===null?et=[e]:et.push(e))}let Ie=null,Ue=0,Ye=null;function sh(e){Ye=e}let qu=1,ci=0,nr=ci;function ua(e){nr=e}function ju(){return++qu}function Wr(e){var t=e.f;if((t&Fe)!==0)return!0;if(t&Re&&(e.f&=~ar),(t&dt)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s];if(Wr(o)&&xu(o),o.wv>e.wv)return!0}(t&ft)!==0&&De===null&&Me(e,xe)}return!1}function Vu(e,t,r=!0){var i=e.reactions;if(i!==null&&!(et!=null&&et.includes(e)))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Re)!==0?Vu(o,t,!1):t===o&&(r?Me(o,Fe):(o.f&xe)!==0&&Me(o,dt),ur(o))}}function Gu(e){var m;var t,r=Ie,i=Ue,s=Ye,o=J,n=et,u=oe,d=bt,l=nr,a=e.f;Ie=null,Ue=0,Ye=null,J=(a&(kt|hr))===0?e:null,et=null,kr(e.ctx),bt=!1,nr=++ci,e.ac!==null&&(os(()=>{e.ac.abort(Cr)}),e.ac=null);try{e.f|=zn;var f=e.fn,c=f(),h=e.deps;if(Ie!==null){var p;if(qi(e,Ue),h!==null&&Ue>0)for(h.length=Ue+Ie.length,p=0;p<Ie.length;p++)h[Ue+p]=Ie[p];else e.deps=h=Ie;if(ui()&&(e.f&ft)!==0)for(p=Ue;p<h.length;p++)((m=(t=h[p]).reactions)!=null?m:t.reactions=[]).push(e)}else h!==null&&Ue<h.length&&(qi(e,Ue),h.length=Ue);if(fi()&&Ye!==null&&!bt&&h!==null&&(e.f&(Re|dt|Fe))===0)for(p=0;p<Ye.length;p++)Vu(Ye[p],e);return o!==null&&o!==e&&(ci++,Ye!==null&&(s===null?s=Ye:s.push(...Ye))),(e.f&Ht)!==0&&(e.f^=Ht),c}catch(g){return bu(g)}finally{e.f^=zn,Ie=r,Ue=i,Ye=s,J=o,et=n,kr(u),bt=d,nr=l}}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&&(Ie===null||!Ie.includes(t))&&(Me(t,dt),(t.f&ft)!==0&&(t.f^=ft,t.f&=~ar),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&Dt)===0){Me(e,xe);var r=Q,i=sr;Q=e,sr=!0;try{(t&(Tt|yf))!==0?th(e):Bu(e),Fu(e);var s=Gu(e);e.teardown=typeof s=="function"?s:null,e.wv=qu;var o;$n&&rf&&(e.f&Fe)!==0&&e.deps}finally{sr=i,Q=r}}}function A(e){var d;var t=e.f,r=(t&Re)!==0;if(J!==null&&!bt){var i=Q!==null&&(Q.f&Dt)!==0;if(!i&&!(et!=null&&et.includes(e))){var s=J.deps;if((J.f&zn)!==0)e.rv<ci&&(e.rv=ci,Ie===null&&s!==null&&s[Ue]===e?Ue++:Ie===null?Ie=[e]:Ie.includes(e)||Ie.push(e));else{((d=J.deps)!=null?d:J.deps=[]).push(e);var o=e.reactions;o===null?e.reactions=[J]:o.includes(J)||o.push(J)}}}if(pr){if(Yt.has(e))return Yt.get(e);if(r){var n=e,u=n.v;return((n.f&xe)===0&&n.reactions!==null||Yu(n))&&(u=So(n)),Yt.set(n,u),u}}else r&&(!(De!=null&&De.has(e))||ne!=null&&ne.is_fork&&!ui())&&(n=e,Wr(n)&&xu(n),sr&&ui()&&(n.f&ft)===0&&Hu(n));if(De!=null&&De.has(e))return De.get(e);if((e.f&Ht)!==0)throw e.v;return e.v}function Hu(e){var t;if(e.deps!==null){e.f^=ft;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),(r.f&Re)!==0&&(r.f&ft)===0&&Hu(r)}}function Yu(e){if(e.v===Ae)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Yt.has(t)||(t.f&Re)!==0&&Yu(t))return!0;return!1}function Ee(e){var t=bt;try{return bt=!0,e()}finally{bt=t}}const oh=-7169;function Me(e,t){e.f=e.f&oh|t}function $e(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ir in e)Yn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&ir 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 o=i[s].get;if(o)try{o.call(e)}catch(n){}}}}}const ah=new Set,ca=new Set;function lh(e,t,r,i={}){function s(o){if(i.capture||Xr.call(t,o),!o.cancelBubble)return os(()=>r==null?void 0:r.call(this,o))}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 o={capture:i,passive:s},n=lh(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&_o(()=>{t.removeEventListener(e,n,o)})}let fa=null;function Xr(e){var t,r=this,i=r.ownerDocument,s=e.type,o=((t=e.composedPath)==null?void 0:t.call(e))||[],n=o[0]||e.target;fa=e;var u=0,d=fa===e&&e.__root;if(d){var l=o.indexOf(d);if(l!==-1&&(r===document||r===window)){e.__root=r;return}var a=o.indexOf(r);if(a===-1)return;l<=a&&(u=l)}if(n=o[u]||e.target,n!==r){cu(e,"currentTarget",{configurable:!0,get(){return n||i}});var f=J,c=Q;Be(null),tt(null);try{for(var h,p=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var g=n["__"+s];g!=null&&(!n.disabled||e.target===n)&&g.call(n,e)}catch(w){h?p.push(w):h=w}if(e.cancelBubble||m===r||m===null)break;n=m}if(h){for(let w of p)queueMicrotask(()=>{throw w});throw h}}finally{e.__root=r,delete e.currentTarget,Be(f),tt(c)}}}function Ju(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function fr(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 fr(X,null),X;i===void 0&&(i=Ju(s?e:"<!>"+e),i=cr(i));var o=r||Nu?document.importNode(i,!0):i.cloneNode(!0);return fr(o,o),o}}function uh(e,t,r="svg"){var i=!e.startsWith("<!>"),s=`<${r}>${i?e:"<!>"+e}</${r}>`,o;return()=>{if(K)return fr(X,null),X;if(!o){var n=Ju(s),u=cr(n);o=cr(u)}var d=o.cloneNode(!0);return fr(d,d),d}}function Xu(e,t){return uh(e,t,"svg")}function ch(){if(K)return fr(X,null),X;var e=document.createDocumentFragment(),t=document.createComment(""),r=ht();return e.append(t,r),fr(t,r),e}function Rt(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 n;Gn(),t.intro=(n=t.intro)!=null?n:!1;const r=t.target,i=K,s=X;try{for(var o=cr(r);o&&(o.nodeType!==Ur||o.data!==uu);)o=St(o);if(!o)throw Dr;Ot(!0),je(o);const u=Ku(e,be(G({},t),{anchor:o}));return Ot(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
|
|
15
|
+
`).some(d=>d.startsWith("https://svelte.dev/e/")))throw u;return u!==Dr&&console.warn("Failed to hydrate: ",u),t.recover===!1&&xf(),Gn(),Du(r),Ot(!1),Qu(e,t)}finally{Ot(i),je(s)}}const vr=new Map;function Ku(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:n=!0}){Gn();var u=new Set,d=f=>{for(var c=0;c<f.length;c++){var h=f[c];if(!u.has(h)){u.add(h);var p=hh(h);t.addEventListener(h,Xr,{passive:p});var m=vr.get(h);m===void 0?(document.addEventListener(h,Xr,{passive:p}),vr.set(h,1)):vr.set(h,m+1)}}};d(Xi(ah)),ca.add(d);var l=void 0,a=Kf(()=>{var f=r!=null?r:t.appendChild(ht());return Wf(f,{pending:()=>{}},c=>{if(o){wo({});var h=oe;h.c=o}if(s&&(i.$$events=s),K&&fr(c,null),l=e(c,i)||{},K&&(Q.nodes.end=X,X===null||X.nodeType!==Ur||X.data!==ho))throw ts(),Dr;o&&bo()}),()=>{var c;for(var h of u){t.removeEventListener(h,Xr);var p=vr.get(h);--p===0?(document.removeEventListener(h,Xr),vr.delete(h)):vr.set(h,p)}ca.delete(d),f!==r&&((c=f.parentNode)==null||c.removeChild(f))}});return Jn.set(l,a),l}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){Nt(this,"anchor"),Y(this,vt,new Map),Y(this,xt,new Map),Y(this,Ve,new Map),Y(this,br,new Set),Y(this,ki,!0),Y(this,Ii,()=>{var i=ne;if(M(this,vt).has(i)){var s=M(this,vt).get(i),o=M(this,xt).get(s);if(o)Co(o),M(this,br).delete(s);else{var n=M(this,Ve).get(s);n&&(M(this,xt).set(s,n.effect),M(this,Ve).delete(s),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),o=n.effect)}for(const[u,d]of M(this,vt)){if(M(this,vt).delete(u),u===i)break;const l=M(this,Ve).get(d);l&&(Le(l.effect),M(this,Ve).delete(d))}for(const[u,d]of M(this,xt)){if(u===s||M(this,br).has(u))continue;const l=()=>{if(Array.from(M(this,vt).values()).includes(u)){var f=document.createDocumentFragment();zu(d,f),f.append(ht()),M(this,Ve).set(u,{effect:d,fragment:f})}else Le(d);M(this,br).delete(u),M(this,xt).delete(u)};M(this,ki)||!o?(M(this,br).add(u),dr(d,l,!1)):l()}}}),Y(this,Un,i=>{M(this,vt).delete(i);const s=Array.from(M(this,vt).values());for(const[o,n]of M(this,Ve))s.includes(o)||(Le(n.effect),M(this,Ve).delete(o))}),this.anchor=t,U(this,ki,r)}ensure(t,r){var i=ne,s=Tu();if(r&&!M(this,xt).has(t)&&!M(this,Ve).has(t))if(s){var o=document.createDocumentFragment(),n=ht();o.append(n),M(this,Ve).set(t,{effect:Ze(()=>r(n)),fragment:o})}else M(this,xt).set(t,Ze(()=>r(this.anchor)));if(M(this,vt).set(i,t),s){for(const[u,d]of M(this,xt))u===t?i.skipped_effects.delete(d):i.skipped_effects.add(d);for(const[u,d]of M(this,Ve))u===t?i.skipped_effects.delete(d.effect):i.skipped_effects.add(d.effect);i.oncommit(M(this,Ii)),i.ondiscard(M(this,Un))}else K&&(this.anchor=X),M(this,Ii).call(this)}}vt=new WeakMap;xt=new WeakMap;Ve=new WeakMap;br=new WeakMap;ki=new WeakMap;Ii=new WeakMap;Un=new WeakMap;function xo(e){oe===null&&es(),Fr&&oe.l!==null?ec(oe).m.push(e):Hn(()=>{const t=Ee(e);if(typeof t=="function")return t})}function Zu(e){oe===null&&es(),xo(()=>()=>Ee(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 o=(s=e.s.$$events)==null?void 0:s[t];if(o){const n=po(o)?o.slice():[o],u=gh(t,r,i);for(const d of n)d.call(e.x,u);return!u.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 o(n,u){if(K){const l=gu(e)===Ji;if(n===l){var d=$i();je(d),i.anchor=d,Ot(!1),i.ensure(n,u),Ot(!0);return}}i.ensure(n,u)}Eo(()=>{var n=!1;t((u,d=!0)=>{n=!0,o(d,u)}),n||o(!1,null)},s)}function _s(e,t){return t}function wh(e,t,r){var f;for(var i=[],s=t.length,o,n=t.length,u=0;u<s;u++){let c=t[u];dr(c,()=>{if(o){if(o.pending.delete(c),o.done.add(c),o.pending.size===0){var h=e.outrogroups;Qn(Xi(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else n-=1},!1)}if(n===0){var d=i.length===0&&r!==null;if(d){var l=r,a=l.parentNode;Du(a),a.append(l),e.items.clear()}Qn(t,!d)}else o={pending:new Set(t),done:new Set},((f=e.outrogroups)!=null?f:e.outrogroups=new Set).add(o)}function Qn(e,t=!0){for(var r=0;r<e.length;r++)Le(e[r],t)}var Pt;function Es(e,t,r,i,s,o=null){var n=e,u=new Map;K&&rs();var d=null,l=ns(()=>{var m=r();return po(m)?m:m==null?[]:Xi(m)}),a,f=!0;function c(){p.fallback=d,bh(p,a,n,t,i),d!==null&&(a.length===0?(d.f&zt)===0?Co(d):(d.f^=zt,Qr(d,null,n)):dr(d,()=>{d=null}))}var h=Eo(()=>{a=A(l);var m=a.length;let g=!1;if(K){var w=gu(n)===Ji;w!==(m===0)&&(n=$i(),je(n),Ot(!1),g=!0)}for(var v=new Set,S=ne,E=Tu(),y=0;y<m;y+=1){K&&X.nodeType===Ur&&X.data===ho&&(n=X,g=!0,Ot(!1));var b=a[y],_=i(b,y),C=f?null:u.get(_);C?(C.v&&Pr(C.v,b),C.i&&Pr(C.i,y),E&&S.skipped_effects.delete(C.e)):(C=Sh(u,f?n:Pt!=null?Pt:Pt=ht(),b,_,y,s,t,r),f||(C.e.f|=zt),u.set(_,C)),v.add(_)}if(m===0&&o&&!d&&(f?d=Ze(()=>o(n)):(d=Ze(()=>o(Pt!=null?Pt:Pt=ht())),d.f|=zt)),K&&m>0&&je($i()),!f)if(E){for(const[N,x]of u)v.has(N)||S.skipped_effects.add(x.e);S.oncommit(c),S.ondiscard(()=>{})}else c();g&&Ot(!0),A(l)}),p={effect:h,items:u,outrogroups:null,fallback:d};f=!1,K&&(n=X)}function bh(e,t,r,i,s){var o,n=t.length,u=e.items,d=e.effect.first,l,a=null,f=[],c=[],h,p,m,g;for(g=0;g<n;g+=1){if(h=t[g],p=s(h,g),m=u.get(p).e,e.outrogroups!==null)for(const N of e.outrogroups)N.pending.delete(m),N.done.delete(m);if((m.f&zt)!==0)if(m.f^=zt,m===d)Qr(m,null,r);else{var w=a?a.next:d;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Lt(e,a,m),Lt(e,m,w),Qr(m,w,r),a=m,f=[],c=[],d=a.next;continue}if((m.f&qe)!==0&&Co(m),m!==d){if(l!==void 0&&l.has(m)){if(f.length<c.length){var v=c[0],S;a=v.prev;var E=f[0],y=f[f.length-1];for(S=0;S<f.length;S+=1)Qr(f[S],v,r);for(S=0;S<c.length;S+=1)l.delete(c[S]);Lt(e,E.prev,y.next),Lt(e,a,E),Lt(e,y,v),d=v,a=y,g-=1,f=[],c=[]}else l.delete(m),Qr(m,d,r),Lt(e,m.prev,m.next),Lt(e,m,a===null?e.effect.first:a.next),Lt(e,a,m),a=m;continue}for(f=[],c=[];d!==null&&d!==m;)(l!=null?l:l=new Set).add(d),c.push(d),d=d.next;if(d===null)continue}(m.f&zt)===0&&f.push(m),a=m,d=m.next}if(e.outrogroups!==null){for(const N of e.outrogroups)N.pending.size===0&&(Qn(Xi(N.done)),(o=e.outrogroups)==null||o.delete(N));e.outrogroups.size===0&&(e.outrogroups=null)}if(d!==null||l!==void 0){var b=[];if(l!==void 0)for(m of l)(m.f&qe)===0&&b.push(m);for(;d!==null;)(d.f&qe)===0&&d!==e.fallback&&b.push(d),d=d.next;var _=b.length;if(_>0){var C=null;wh(e,b,C)}}}function Sh(e,t,r,i,s,o,n,u){var d=(n&nf)!==0?(n&af)===0?Oe(r,!1,!1):Jt(r):null,l=(n&of)!==0?Jt(s):null;return{v:d,i:l,e:Ze(()=>(o(t,d!=null?d:r,l!=null?l:s,u),()=>{e.delete(i)}))}}function Qr(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&zt)===0?t.nodes.start:r;i!==null;){var n=St(i);if(o.before(i),i===s)return;i=n}}function Lt(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 _h(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 o=s.length,n=0;(n=i.indexOf(s,n))>=0;){var u=n+o;(n===0||ha.includes(i[n-1]))&&(u===i.length||ha.includes(i[u]))?i=(n===0?"":i.substring(0,n))+i.substring(u+1):n=u}}return i===""?null:i}function Eh(e,t){return e==null?null:String(e)}function Kn(e,t,r,i,s,o){var n=e.__className;if(K||n!==r||n===void 0){var u=_h(r,i,o);(!K||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(o&&s!==o)for(var d in o){var l=!!o[d];(s==null||l!==!!s[d])&&e.classList.toggle(d,l)}return o}function Mr(e,t,r,i){var s=e.__style;if(K||s!==t){var o=Eh(t);(!K||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),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;or(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var s=e.checked;or(e,"checked",null),e.checked=s}}};e.__on_r=r,$r(r),ku()}}function or(e,t,r,i){var s=Mh(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"&&Nh(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Mh(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[Ch]:e.nodeName.includes("-"),[xh]:e.namespaceURI===df}}var da=new Map;function Nh(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,o=Element.prototype;o!==s;){i=fu(s);for(var n in i)i[n].set&&r.push(n);s=mo(s)}return r}function Ah(e,t,r=t){Jf(e,"change",i=>{var s=i?e.defaultChecked:e.checked;r(s)}),(K&&e.defaultChecked!==e.checked||Ee(t)==null)&&r(e.checked),hi(()=>{var i=t();e.checked=!!i})}function ve(e,t,r){var i=rr(e,t);i&&i.set&&(e[t]=r,_o(()=>{e[t]=null}))}function pa(e,t){return e===t||(e==null?void 0:e[ir])===t}function Fi(e={},t,r,i){return Zf(()=>{var s,o;return hi(()=>{s=o,o=[],Ee(()=>{e!==r(...o)&&(t(e,...o),s&&pa(r(...s),e)&&t(null,...s))})}),()=>{$r(()=>{o&&pa(r(...o),e)&&t(null,...o)})}}),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,o={};const n=ss(()=>{let u=!1;const d=t.s;for(const l in d)d[l]!==o[l]&&(o[l]=d[l],u=!0);return u&&s++,s});i=()=>A(n)}r.b.length&&Qf(()=>{ma(t,i),Wn(r.b)}),Hn(()=>{const s=Ee(()=>r.m.map(vf));return()=>{for(const o of s)typeof o=="function"&&o()}}),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)A(r);t()}let bi=!1;function Oh(e){var t=bi;try{return bi=!1,[e(),bi]}finally{bi=t}}const Dh={get(e,t){if(!e.exclude.includes(t))return A(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{tt(e.parent_effect),e.special[t]=me({get[t](){return e.props[t]}},t,lu)}finally{tt(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:Jt(0),parent_effect:Q},Dh)}function me(e,t,r,i){var E;var s,o=!Fr||(r&uf)!==0,n=(r&cf)!==0,u=(r&ff)!==0,d=i,l=!0,a=()=>(l&&(l=!1,d=u?Ee(i):i),d),f;if(n){var c=ir in e||mu in e;f=(E=(s=rr(e,t))==null?void 0:s.set)!=null?E:c&&t in e?y=>e[t]=y:void 0}var h,p=!1;n?[h,p]=Oh(()=>e[t]):h=e[t],h===void 0&&i!==void 0&&(h=a(),f&&(o&&Mf(),f(h)));var m;if(o?m=()=>{var y=e[t];return y===void 0?a():(l=!0,y)}:m=()=>{var y=e[t];return y!==void 0&&(d=void 0),y===void 0?d:y},o&&(r&lu)===0)return m;if(f){var g=e.$$legacy;return(function(y,b){return arguments.length>0?((!o||!b||g||p)&&f(b?m():y),y):m()})}var w=!1,v=((r&lf)!==0?ss:ns)(()=>(w=!1,m()));n&&A(v);var S=Q;return(function(y,b){if(arguments.length>0){const _=b?A(v):o&&n?xr(y):y;return re(v,_),w=!0,d!==void 0&&(d=_),y}return pr&&w||(S.f&Dt)!==0?v.v:A(v)})}function kh(e){return class extends Ih{constructor(t){super(G({component:e},t))}}}class Ih{constructor(t){var n;Y(this,Bt),Y(this,st);var r,i=new Map,s=(u,d)=>{var l=Oe(d,!1,!1);return i.set(u,l),l};const o=new Proxy(be(G({},t.props||{}),{$$events:{}}),{get(u,d){var l;return A((l=i.get(d))!=null?l:s(d,Reflect.get(u,d)))},has(u,d){var l;return d===mu?!0:(A((l=i.get(d))!=null?l:s(d,Reflect.get(u,d))),Reflect.has(u,d))},set(u,d,l){var a;return re((a=i.get(d))!=null?a:s(d,l),l),Reflect.set(u,d,l)}});U(this,st,(t.hydrate?dh:Qu)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:(n=t.intro)!=null?n:!1,recover:t.recover})),(!((r=t==null?void 0:t.props)!=null&&r.$$host)||t.sync===!1)&&Ff(),U(this,Bt,o.$$events);for(const u of Object.keys(M(this,st)))u==="$set"||u==="$destroy"||u==="$on"||cu(this,u,{get(){return M(this,st)[u]},set(d){M(this,st)[u]=d},enumerable:!0});M(this,st).$set=u=>{Object.assign(o,u)},M(this,st).$destroy=()=>{ph(M(this,st))}}$set(t){M(this,st).$set(t)}$on(t,r){M(this,Bt)[t]=M(this,Bt)[t]||[];const i=(...s)=>r.call(this,...s);return M(this,Bt)[t].push(i),()=>{M(this,Bt)[t]=M(this,Bt)[t].filter(s=>s!==i)}}$destroy(){M(this,st).$destroy()}}Bt=new WeakMap;st=new WeakMap;var Ph=Object.defineProperty,Lh=(e,t,r)=>t in e?Ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t,r)=>Lh(e,typeof t!="symbol"?t+"":t,r),ga,Fh=Object.defineProperty,Bh=(e,t,r)=>t in e?Fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,va=(e,t,r)=>Bh(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"]},Si={};function Uh(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(Si[e])return Si[e];const t=Uh(e)||globalThis[e],r=t.prototype,i=e in ya?ya[e]:void 0,s=!!(i&&i.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),o=e in wa?wa[e]:void 0,n=!!(o&&o.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&n)return Si[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const d=u.contentWindow;if(!d)return t.prototype;const l=d[e].prototype;return document.body.removeChild(u),l?Si[e]=l:r}catch(u){return r}}const Cs={};function Xt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Cs[s])return Cs[s].call(t);const o=Ro(e),n=(i=Object.getOwnPropertyDescriptor(o,r))==null?void 0:i.get;return n?(Cs[s]=n,n.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 o=Ro(e)[r];return typeof o!="function"?t[r]:(xs[i]=o,o.bind(t))}function $h(e){return Xt("Node",e,"childNodes")}function Wh(e){return Xt("Node",e,"parentNode")}function zh(e){return Xt("Node",e,"parentElement")}function qh(e){return Xt("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:Xt("ShadowRoot",e,"host")}function Hh(e){return e.styleSheets}function Yh(e){return!e||!("shadowRoot"in e)?null:Xt("Element",e,"shadowRoot")}function Jh(e,t){return Xt("Element",e,"querySelector")(t)}function Xh(e,t){return Xt("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 Mo(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 No{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 No}function sd({element:e,maskInputOptions:t,tagName:r,type:i,value:s,maskInputFn:o}){let n=s||"";const u=i&&di(i);return(t[r.toLowerCase()]||u&&t[u])&&(o?n=o(n,e):n="*".repeat(n.length)),n}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 o=t.getImageData,n=ba in o?o[ba]:o;if(new Uint32Array(n.call(t,i,s,Math.min(r,e.width-i),Math.min(r,e.height-s)).data.buffer).some(d=>d!==0))return!1}return!0}function od(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 ad(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?di(t):null}function sc(e,t){var o;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(n){return null}const i=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(i);return(o=s==null?void 0:s[1])!=null?o: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,o,n,u)=>{const d=s||n||u,l=i||o||"";if(!d)return r;if(cd.test(d)||fd.test(d))return`url(${l}${d}${l})`;if(hd.test(d))return`url(${l}${d}${l})`;if(d[0]==="/")return`url(${l}${ld(t)+d}${l})`;const a=t.split("/"),f=d.split("/");a.pop();for(const c of f)c!=="."&&(c===".."?a.pop():a.push(c));return`url(${l}${a.join("/")}${l})`})}function _i(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 o=0;if(i.length>1&&e&&typeof e=="string"){let n=_i(e,r);const u=n.length/e.length;for(let d=1;d<i.length;d++)if(i[d].textContent&&typeof i[d].textContent=="string"){const l=_i(i[d].textContent,r),a=100;let f=3;for(;f<l.length&&(l[f].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,f),1)!==-1);f++);for(;f<l.length;f++){let c=l.substring(0,f),h=n.split(c),p=-1;if(h.length===2)p=h[0].length;else if(h.length>2&&h[0]===""&&i[d-1].textContent!=="")p=n.indexOf(c,1);else if(h.length===1){if(c=c.substring(0,c.length-1),h=n.split(c),h.length<=1)return s.push(e),s;f=a+1}else f===l.length-1&&(p=n.indexOf(c));if(h.length>=2&&f>a){const m=i[d-1].textContent;if(m&&typeof m=="string"){const g=_i(m).length;p=n.indexOf(c,g)}p===-1&&(p=h[0].length)}if(p!==-1){let m=Math.floor(p/u);for(;m>0&&m<e.length;){if(o+=1,o>50*i.length)return s.push(e),s;const g=_i(e.substring(0,m),r);if(g.length===p){s.push(e.substring(0,m)),e=e.substring(m),n=n.substring(p);break}else g.length<p?m+=Math.max(1,Math.floor((p-g.length)/u)):m-=Math.max(1,Math.floor((g.length-p)*u))}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-_:]"),Sa=-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 yr,_a;const bd=/^[^ \t\n\r\u000c]+/,Sd=/^[, \t\n\r\u000c]+/;function _d(e,t){if(t.trim()==="")return t;let r=0;function i(o){let n;const u=o.exec(t.substring(r));return u?(n=u[0],r+=n.length,n):""}const s=[];for(;i(Sd),!(r>=t.length);){let o=i(bd);if(o.slice(-1)===",")o=Nr(e,o.substring(0,o.length-1)),s.push(o);else{let n="";o=Nr(e,o);let u=!1;for(;;){const d=t.charAt(r);if(d===""){s.push((o+n).trim());break}else if(u)d===")"&&(u=!1);else if(d===","){r+=1,s.push((o+n).trim());break}else d==="("&&(u=!0);n+=d,r+=1}}}return s.join(", ")}const Ea=new WeakMap;function Nr(e,t){return!t||t.trim()===""?t:Ao(e,t)}function Ed(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ao(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")?Nr(e,i):r==="srcset"?_d(e,i):r==="style"?ji(i,Ao(e)):t==="object"&&r==="data"?Nr(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 Md(e,t,r,i){let s;if(Mo(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(o){}return!1}function Nd(e,t,r){const i=e.contentWindow;if(!i)return;let s=!1,o;try{o=i.document.readyState}catch(u){return}if(o!=="complete"){const u=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(u),s=!0,t()});return}const n="about:blank";if(i.location.href!==n||e.src===n||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Ad(e,t,r){let i=!1,s;try{s=e.sheet}catch(n){return}if(s)return;const o=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),i=!0,t()})}function Od(e,t){const{doc:r,mirror:i,blockClass:s,blockSelector:o,needsMask:n,inlineStylesheet:u,maskInputOptions:d={},maskTextFn:l,maskInputFn:a,maskAttributeFn:f,dataURLOptions:c={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g=!1,cssCaptured:w=!1,applyBackgroundColorToBlockedElements:v=!1}=t,S=Dd(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:S};case e.ELEMENT_NODE:return kd(e,{doc:r,blockClass:s,blockSelector:o,inlineStylesheet:u,maskInputOptions:d,maskInputFn:a,maskAttributeFn:f,dataURLOptions:c,inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g,rootId:S,applyBackgroundColorToBlockedElements:v});case e.TEXT_NODE:return Td(e,{doc:r,needsMask:n,maskTextFn:l,rootId:S,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:W.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:W.Comment,textContent:Te.textContent(e)||"",rootId:S};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:o}=t,n=Te.parentNode(e),u=n&&n.tagName;let d="";const l=u==="STYLE"?!0:void 0,a=u==="SCRIPT"?!0:void 0;return a?d="SCRIPT_PLACEHOLDER":o||(d=Te.textContent(e),l&&d&&(d=ji(d,Ao(t.doc)))),!l&&!a&&d&&r&&(d=i?i(d,Te.parentElement(e)):d.replace(/[\S]/g,"*")),{type:W.Text,textContent:d||"",rootId:s}}function kd(e,t){const{doc:r,blockClass:i,blockSelector:s,inlineStylesheet:o,maskInputOptions:n={},maskInputFn:u,maskAttributeFn:d,dataURLOptions:l={},inlineImages:a,recordCanvas:f,keepIframeSrcFn:c,newlyAddedElement:h=!1,rootId:p,applyBackgroundColorToBlockedElements:m=!1}=t,g=Rd(e,i,s),w=wd(e);let v={};const S=e.attributes.length;for(let y=0;y<S;y++){const b=e.attributes[y];if(!xd(w,b.name,b.value)){const _=Cd(r,w,di(b.name),b.value);if(d&&_!==null){const C=d(b.name,_,e);C!==null&&(v[b.name]=C)}else v[b.name]=_}}if(w==="link"&&o){const y=Array.from(r.styleSheets).find(_=>_.href===e.href);let b=null;y&&(b=Zn(y)),b&&(delete v.rel,delete v.href,v._cssText=b)}if(w==="style"&&e.sheet){let y=Zn(e.sheet);y&&(e.childNodes.length>1&&(y=pd(y,e)),v._cssText=y)}if(w==="input"||w==="textarea"||w==="select"){const y=e.value,b=e.checked;v.type!=="radio"&&v.type!=="checkbox"&&v.type!=="submit"&&v.type!=="button"&&y?v.value=sd({element:e,type:ad(e),tagName:w,value:y,maskInputOptions:n,maskInputFn:u}):b&&(v.checked=b)}if(w==="option"&&(e.selected&&!n.select?v.selected=!0:delete v.selected),w==="dialog"&&e.open&&(v.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&f){if(e.__context==="2d")nd(e)||(v.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const y=e.toDataURL(l.type,l.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;const _=b.toDataURL(l.type,l.quality);y!==_&&(v.rr_dataURL=y)}}if(w==="img"&&a){yr||(yr=r.createElement("canvas"),_a=yr.getContext("2d"));const y=e,b=y.currentSrc||y.getAttribute("src")||"<unknown-src>",_=y.crossOrigin,C=()=>{y.removeEventListener("load",C);try{yr.width=y.naturalWidth,yr.height=y.naturalHeight,_a.drawImage(y,0,0),v.rr_dataURL=yr.toDataURL(l.type,l.quality)}catch(N){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C);return}else console.warn(`Cannot inline img src=${b}! Error: ${N}`)}y.crossOrigin==="anonymous"&&(_?v.crossOrigin=_:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?C():y.addEventListener("load",C)}if(w==="audio"||w==="video"){const y=v;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(h||(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop)),g){const{width:y,height:b}=e.getBoundingClientRect();v=G({class:v.class,rr_width:`${y}px`,rr_height:`${b}px`},m?{rr_background_color:md}:{})}w==="iframe"&&!c(v.src)&&(e.contentDocument||(v.rr_src=v.src),delete v.src);let E;try{customElements.get(w)&&(E=!0)}catch(y){}return{type:W.Element,tagName:w,attributes:v,childNodes:[],isSVG:Ed(e)||void 0,needBlock:g,rootId:p,isCustom:E}}function fe(e){return e==null?"":e.toLowerCase()}function Id(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"&&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 o=[];if(!r.has(s)){r.add(s);try{o=Array.from(i.cssRules,(n,u)=>({rule:ic(n,i.href),index:u}))}catch(n){if(!(n instanceof DOMException&&n.name==="SecurityError"))throw n}}return{styleId:s,rules:o}})}function Kr(e,t){var we;var r,i;const{doc:s,mirror:o,blockClass:n,blockSelector:u,maskTextClass:d,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:f=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w={},inlineImages:v=!1,recordCanvas:S=!1,onSerialize:E,onAdoptedStyleSheet:y,onIframeLoad:b,iframeLoadTimeout:_=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:I=!1,cssCaptured:D=!1,applyBackgroundColorToBlockedElements:ae=!1}=t,ee=(we=t._emittedStyleIds)!=null?we:new Set;let{needsMask:R}=t,{preserveWhiteSpace:ie=!0}=t;R||(R=Md(e,d,l,R===void 0));const L=Od(e,{doc:s,mirror:o,blockClass:n,blockSelector:u,needsMask:R,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,dataURLOptions:w,inlineImages:v,recordCanvas:S,keepIframeSrcFn:x,newlyAddedElement:I,cssCaptured:D,applyBackgroundColorToBlockedElements:ae});if(!L)return console.warn(e,"not serialized"),null;let q;o.hasNode(e)?q=o.getId(e):Id(L,g)||!ie&&L.type===W.Text&&!L.textContent.replace(/^\s+|\s+$/gm,"").length?q=Sa:q=yd();const P=Object.assign(L,{id:q});if(o.add(e,P),q===Sa)return null;E&&E(e);let z=!a;if(P.type===W.Element){z=z&&!P.needBlock,delete P.needBlock;const O=Te.shadowRoot(e);O&&Rs(O)&&(P.isShadowHost=!0,y&&((r=O.adoptedStyleSheets)!=null&&r.length)&&(P.adoptedStyleSheets=Ca(O.adoptedStyleSheets,y,ee)))}if(P.type===W.Document&&y){const O=e;(i=O.adoptedStyleSheets)!=null&&i.length&&(P.adoptedStyleSheets=Ca(O.adoptedStyleSheets,y,ee))}if((P.type===W.Document||P.type===W.Element)&&z){g.headWhitespace&&P.type===W.Element&&P.tagName==="head"&&(ie=!1);const O={doc:s,mirror:o,blockClass:n,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:a,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:S,preserveWhiteSpace:ie,onSerialize:E,onAdoptedStyleSheet:y,_emittedStyleIds:ee,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:x,cssCaptured:!1,applyBackgroundColorToBlockedElements:ae};if(!(P.type===W.Element&&P.tagName==="textarea"&&P.attributes.value!==void 0)){P.type===W.Element&&P.attributes._cssText!==void 0&&typeof P.attributes._cssText=="string"&&(O.cssCaptured=!0);for(const k of Array.from(Te.childNodes(e))){const $=Kr(k,O);$&&P.childNodes.push($)}}let ue=null;if(Mo(e)&&(ue=Te.shadowRoot(e)))for(const k of Array.from(Te.childNodes(ue))){const $=Kr(k,O);$&&(Rs(ue)&&($.isShadow=!0),P.childNodes.push($))}}const Ce=Te.parentNode(e);return Ce&&Kh(Ce)&&Rs(Ce)&&(P.isShadow=!0),P.type===W.Element&&P.tagName==="iframe"&&Nd(e,()=>{const O=e.contentDocument;if(O&&b){const ue=Kr(O,{doc:O,mirror:o,blockClass:n,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:S,preserveWhiteSpace:ie,onSerialize:E,onAdoptedStyleSheet:y,_emittedStyleIds:ee,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:x});ue&&b(e,ue)}},_),P.type===W.Element&&P.tagName==="link"&&typeof P.attributes.rel=="string"&&(P.attributes.rel==="stylesheet"||P.attributes.rel==="preload"&&typeof P.attributes.href=="string"&&sc(P.attributes.href)==="css")&&Ad(e,()=>{if(C){const O=Kr(e,{doc:s,mirror:o,blockClass:n,blockSelector:u,needsMask:R,maskTextClass:d,maskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:c,maskTextFn:h,maskInputFn:p,maskAttributeFn:m,slimDOMOptions:g,dataURLOptions:w,inlineImages:v,recordCanvas:S,preserveWhiteSpace:ie,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:x});O&&C(e,O)}},N),P}function Pd(e,t){const{mirror:r=new No,blockClass:i="rr-block",blockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,inlineStylesheet:u=!0,inlineImages:d=!1,recordCanvas:l=!1,maskAllInputs:a=!1,maskTextFn:f,maskInputFn:c,maskAttributeFn:h,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:g,onSerialize:w,onAdoptedStyleSheet:v,_emittedStyleIds:S,onIframeLoad:E,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:_,keepIframeSrcFn:C=()=>!1,applyBackgroundColorToBlockedElements:N=!1}=t||{};return Kr(e,{doc:e,mirror:r,blockClass:i,blockSelector:s,maskTextClass:o,maskTextSelector:n,skipChild:!1,inlineStylesheet:u,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:f,maskInputFn:c,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:d,recordCanvas:l,preserveWhiteSpace:g,onSerialize:w,onAdoptedStyleSheet:v,_emittedStyleIds:S,onIframeLoad:E,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:_,keepIframeSrcFn:C,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:N})}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"))}}}},Bd={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
|
|
17
|
+
`+r.replace(/:hover/g,".\\:hover"))}))}}}};function Ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $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,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Ei.exports=t(),Ei.exports.createColors=t,Ei.exports}const zd={},qd=Object.freeze(Object.defineProperty({__proto__:null,default:zd},Symbol.toStringTag,{value:"Module"})),ut=$d(qd);var Ms,Ma;function Oo(){if(Ma)return Ms;Ma=1;let e=Wd(),t=ut;class r extends Error{constructor(s,o,n,u,d,l){super(s),this.name="CssSyntaxError",this.reason=s,d&&(this.file=d),u&&(this.source=u),l&&(this.plugin=l),typeof o!="undefined"&&typeof n!="undefined"&&(typeof o=="number"?(this.line=o,this.column=n):(this.line=o.line,this.column=o.column,this.endLine=n.line,this.endColumn=n.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 o=this.source;s==null&&(s=e.isColorSupported);let n=h=>h,u=h=>h,d=h=>h;if(s){let{bold:h,gray:p,red:m}=e.createColors(!0);u=g=>h(m(g)),n=g=>p(g),t&&(d=g=>t(g))}let l=o.split(/\r?\n/),a=Math.max(this.line-3,0),f=Math.min(this.line+2,l.length),c=String(f).length;return l.slice(a,f).map((h,p)=>{let m=a+1+p,g=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(h.length>160){let v=20,S=Math.max(0,this.column-v),E=Math.max(this.column+v,this.endColumn+v),y=h.slice(S,E),b=n(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,v-1)).replace(/[^\t]/g," ");return u(">")+n(g)+d(y)+`
|
|
18
18
|
`+b+u("^")}let w=n(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+n(g)+d(h)+`
|
|
19
19
|
`+w+u("^")}return" "+n(g)+d(h)}).join(`
|
|
20
20
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
@@ -33,15 +33,15 @@ var module = { exports };
|
|
|
33
33
|
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(s){let o;return s.walkDecls(n=>{if(typeof n.raws.between!="undefined")return o=n.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length===0&&(o=n.raws.after,typeof o!="undefined"))return!1}),o}rawIndent(s){if(s.raws.indent)return s.raws.indent;let o;return s.walk(n=>{let u=n.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof n.raws.before!="undefined"){let d=n.raws.before.split(`
|
|
34
34
|
`);return o=d[d.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(o=n.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(s,o){let n=s[o],u=s.raws[o];return u&&u.value===n?u.raw:n}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,o){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,o)}}return Ns=r,r.default=r,Ns}var As,Aa;function as(){if(Aa)return As;Aa=1;let e=nc();function t(r,i){new e(i).stringify(r)}return As=t,t.default=t,As}var Ci={},Oa;function Do(){return Oa||(Oa=1,Ci.isClean=Symbol("isClean"),Ci.my=Symbol("my")),Ci}var Os,Da;function ls(){if(Da)return Os;Da=1;let e=Oo(),t=nc(),r=as(),{isClean:i,my:s}=Do();function o(d,l){let a=new d.constructor;for(let f in d){if(!Object.prototype.hasOwnProperty.call(d,f)||f==="proxyCache")continue;let c=d[f],h=typeof c;f==="parent"&&h==="object"?l&&(a[f]=l):f==="source"?a[f]=c:Array.isArray(c)?a[f]=c.map(p=>o(p,a)):(h==="object"&&c!==null&&(c=o(c)),a[f]=c)}return a}function n(d,l){if(l&&typeof l.offset!="undefined")return l.offset;let a=1,f=1,c=0;for(let h=0;h<d.length;h++){if(f===l.line&&a===l.column){c=h;break}d[h]===`
|
|
35
35
|
`?(a=1,f+=1):a+=1}return c}class u{get proxyOf(){return this}constructor(l={}){this.raws={},this[i]=!1,this[s]=!0;for(let a in l)if(a==="nodes"){this.nodes=[];for(let f of l[a])typeof f.clone=="function"?this.append(f.clone()):this.append(f)}else this[a]=l[a]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let a=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${a.input.from}:${a.start.line}:${a.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let a in l)this[a]=l[a];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 a=o(this);for(let f in l)a[f]=l[f];return a}cloneAfter(l={}){let a=this.clone(l);return this.parent.insertAfter(this,a),a}cloneBefore(l={}){let a=this.clone(l);return this.parent.insertBefore(this,a),a}error(l,a={}){if(this.source){let{end:f,start:c}=this.rangeBy(a);return this.source.input.error(l,{column:c.column,line:c.line},{column:f.column,line:f.line},a)}return new e(l)}getProxyProcessor(){return{get(l,a){return a==="proxyOf"?l:a==="root"?()=>l.root().toProxy():l[a]},set(l,a,f){return l[a]===f||(l[a]=f,(a==="prop"||a==="value"||a==="name"||a==="params"||a==="important"||a==="text")&&l.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let l=this;for(;l=l.parent;)l[i]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let a=this.source.start;if(l.index)a=this.positionInside(l.index);else if(l.word){let f="document"in this.source.input?this.source.input.document:this.source.input.css,h=f.slice(n(f,this.source.start),n(f,this.source.end)).indexOf(l.word);h!==-1&&(a=this.positionInside(h))}return a}positionInside(l){let a=this.source.start.column,f=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,h=n(c,this.source.start),p=h+l;for(let m=h;m<p;m++)c[m]===`
|
|
36
|
-
`?(a=1,f+=1):a+=1;return{column:a,line:f,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let a="document"in this.source.input?this.source.input.document:this.source.input.css,f={column:this.source.start.column,line:this.source.start.line,offset:n(a,this.source.start)},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:n(a,this.source.end)+1}:{column:f.column+1,line:f.line,offset:f.offset+1};if(l.word){let p=a.slice(n(a,this.source.start),n(a,this.source.end)).indexOf(l.word);p!==-1&&(f=this.positionInside(p),c=this.positionInside(p+l.word.length))}else l.start?f={column:l.start.column,line:l.start.line,offset:n(a,l.start)}:l.index&&(f=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line,offset:n(a,l.end)}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<f.line||c.line===f.line&&c.column<=f.column)&&(c={column:f.column+1,line:f.line,offset:f.offset+1}),{end:c,start:f}}raw(l,a){return new t().raw(this,l,a)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let a=this,f=!1;for(let c of l)c===this?f=!0:f?(this.parent.insertAfter(a,c),a=c):this.parent.insertBefore(a,c);f||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,a){let f={},c=a==null;a=a||new Map;let h=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))f[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,a):g);else if(typeof m=="object"&&m.toJSON)f[p]=m.toJSON(null,a);else if(p==="source"){if(m==null)continue;let g=a.get(m.input);g==null&&(g=h,a.set(m.input,h),h++),f[p]={end:m.end,inputId:g,start:m.start}}else f[p]=m}return c&&(f.inputs=[...a.keys()].map(p=>p.toJSON())),f}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let a="";return l(this,f=>{a+=f}),a}warn(l,a,f={}){let c={node:this};for(let h in f)c[h]=f[h];return l.warn(a,c)}}return Os=u,u.default=u,Os}var Ds,Ta;function us(){if(Ta)return Ds;Ta=1;let e=ls();class t extends e{constructor(i){super(i),this.type="comment"}}return Ds=t,t.default=t,Ds}var Ts,ka;function cs(){if(ka)return Ts;ka=1;let e=ls();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=be(G({},i),{value:String(i.value)})),super(i),this.type="decl"}}return Ts=t,t.default=t,Ts}var ks,Ia;function pr(){if(Ia)return ks;Ia=1;let e=us(),t=cs(),r=ls(),{isClean:i,my:s}=Do(),o,n,u,d;function l(c){return c.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function a(c){if(c[i]=!1,c.proxyOf.nodes)for(let h of c.proxyOf.nodes)a(h)}class f extends r{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(w,v)=>g(w.toProxy(),v):g)):p==="every"||p==="some"?m=>h[p]((g,...w)=>m(g.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),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let v of g)this.proxyOf.nodes.splice(m+1,0,v);let w;for(let v in this.indexes)w=this.indexes[v],m<w&&(this.indexes[v]=w+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let _ of w)this.proxyOf.nodes.splice(m,0,_);let v;for(let _ in this.indexes)v=this.indexes[_],m<=v&&(this.indexes[_]=v+w.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(n(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new d(h)];else if(h.name)h=[new o(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[s]||f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&a(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let 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(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(w){throw p.addToError(w)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}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,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return f.registerParse=c=>{n=c},f.registerRule=c=>{d=c},f.registerAtRule=c=>{o=c},f.registerRoot=c=>{u=c},ks=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,d.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(h=>{f.rebuild(h)})},ks}var Is,Pa;function To(){if(Pa)return Is;Pa=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 Is=t,t.default=t,e.registerAtRule(t),Is}var Ps,La;function ko(){if(La)return Ps;La=1;let e=pr(),t,r;class i extends e{constructor(o){super(G({type:"document"},o)),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Ps=i,i.default=i,Ps}var Ls,Fa;function jd(){if(Fa)return Ls;Fa=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ls={nanoid:(i=21)=>{let s="",o=i|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(o=s)=>{let n="",u=o|0;for(;u--;)n+=i[Math.random()*i.length|0];return n}},Ls}var Fs,Ba;function oc(){if(Ba)return Fs;Ba=1;let{existsSync:e,readFileSync:t}=lt,{dirname:r,join:i}=lt,{SourceMapConsumer:s,SourceMapGenerator:o}=lt;function n(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,a){if(a.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let f=a.map?a.map.prev:void 0,c=this.loadMap(a.from,f);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let a=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(c)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(a)||l.match(f);if(m)return n(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let a=l.match(/\/\*\s*# sourceMappingURL=/g);if(!a)return;let f=l.lastIndexOf(a.pop()),c=l.indexOf("*/",f);f>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(f,c)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let f=a(l);if(f){let c=this.loadFile(f);if(!c)throw new Error("Unable to load previous source map: "+f.toString());return c}}else{if(a instanceof s)return o.fromSourceMap(a).toString();if(a instanceof o)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 f=this.annotation;return l&&(f=i(r(l),f)),this.loadFile(f)}}}startWith(l,a){return l?l.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Fs=u,u.default=u,Fs}var Bs,Ua;function fs(){if(Ua)return Bs;Ua=1;let{nanoid:e}=jd(),{isAbsolute:t,resolve:r}=lt,{SourceMapConsumer:i,SourceMapGenerator:s}=lt,{fileURLToPath:o,pathToFileURL:n}=lt,u=Oo(),d=oc(),l=lt,a=Symbol("lineToIndexCache"),f=!!(i&&s),c=!!(r&&t);function h(m){if(m[a])return m[a];let g=m.css.split(`
|
|
37
|
-
`),w=new Array(g.length),v=0;for(let
|
|
38
|
-
`," "];return e.split(t,r)},split(t,r,i){let s=[],o="",n=!1,u=0,d=!1,l="",a=!1;for(let f of t)a?a=!1:f==="\\"?a=!0:d?f===l&&(d=!1):f==='"'||f==="'"?(d=!0,l=f):f==="("?u+=1:f===")"?u>0&&(u-=1):u===0&&r.includes(f)&&(n=!0),n?(o!==""&&s.push(o.trim()),o="",n=!1):o+=f;return(i||o!=="")&&s.push(o.trim()),s}};return $s=e,e.default=e,$s}var Ws,za;function Io(){if(za)return Ws;za=1;let e=
|
|
36
|
+
`?(a=1,f+=1):a+=1;return{column:a,line:f,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let a="document"in this.source.input?this.source.input.document:this.source.input.css,f={column:this.source.start.column,line:this.source.start.line,offset:n(a,this.source.start)},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:n(a,this.source.end)+1}:{column:f.column+1,line:f.line,offset:f.offset+1};if(l.word){let p=a.slice(n(a,this.source.start),n(a,this.source.end)).indexOf(l.word);p!==-1&&(f=this.positionInside(p),c=this.positionInside(p+l.word.length))}else l.start?f={column:l.start.column,line:l.start.line,offset:n(a,l.start)}:l.index&&(f=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line,offset:n(a,l.end)}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<f.line||c.line===f.line&&c.column<=f.column)&&(c={column:f.column+1,line:f.line,offset:f.offset+1}),{end:c,start:f}}raw(l,a){return new t().raw(this,l,a)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let a=this,f=!1;for(let c of l)c===this?f=!0:f?(this.parent.insertAfter(a,c),a=c):this.parent.insertBefore(a,c);f||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,a){let f={},c=a==null;a=a||new Map;let h=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))f[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,a):g);else if(typeof m=="object"&&m.toJSON)f[p]=m.toJSON(null,a);else if(p==="source"){if(m==null)continue;let g=a.get(m.input);g==null&&(g=h,a.set(m.input,h),h++),f[p]={end:m.end,inputId:g,start:m.start}}else f[p]=m}return c&&(f.inputs=[...a.keys()].map(p=>p.toJSON())),f}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let a="";return l(this,f=>{a+=f}),a}warn(l,a,f={}){let c={node:this};for(let h in f)c[h]=f[h];return l.warn(a,c)}}return Os=u,u.default=u,Os}var Ds,Ta;function us(){if(Ta)return Ds;Ta=1;let e=ls();class t extends e{constructor(i){super(i),this.type="comment"}}return Ds=t,t.default=t,Ds}var Ts,ka;function cs(){if(ka)return Ts;ka=1;let e=ls();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=be(G({},i),{value:String(i.value)})),super(i),this.type="decl"}}return Ts=t,t.default=t,Ts}var ks,Ia;function mr(){if(Ia)return ks;Ia=1;let e=us(),t=cs(),r=ls(),{isClean:i,my:s}=Do(),o,n,u,d;function l(c){return c.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function a(c){if(c[i]=!1,c.proxyOf.nodes)for(let h of c.proxyOf.nodes)a(h)}class f extends r{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(w,v)=>g(w.toProxy(),v):g)):p==="every"||p==="some"?m=>h[p]((g,...w)=>m(g.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),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let v of g)this.proxyOf.nodes.splice(m+1,0,v);let w;for(let v in this.indexes)w=this.indexes[v],m<w&&(this.indexes[v]=w+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of w)this.proxyOf.nodes.splice(m,0,S);let v;for(let S in this.indexes)v=this.indexes[S],m<=v&&(this.indexes[S]=v+w.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(n(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new d(h)];else if(h.name)h=[new o(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[s]||f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&a(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let 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(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(w){throw p.addToError(w)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}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,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return f.registerParse=c=>{n=c},f.registerRule=c=>{d=c},f.registerAtRule=c=>{o=c},f.registerRoot=c=>{u=c},ks=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,d.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(h=>{f.rebuild(h)})},ks}var Is,Pa;function To(){if(Pa)return Is;Pa=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 Is=t,t.default=t,e.registerAtRule(t),Is}var Ps,La;function ko(){if(La)return Ps;La=1;let e=mr(),t,r;class i extends e{constructor(o){super(G({type:"document"},o)),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Ps=i,i.default=i,Ps}var Ls,Fa;function jd(){if(Fa)return Ls;Fa=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ls={nanoid:(i=21)=>{let s="",o=i|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(o=s)=>{let n="",u=o|0;for(;u--;)n+=i[Math.random()*i.length|0];return n}},Ls}var Fs,Ba;function oc(){if(Ba)return Fs;Ba=1;let{existsSync:e,readFileSync:t}=ut,{dirname:r,join:i}=ut,{SourceMapConsumer:s,SourceMapGenerator:o}=ut;function n(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,a){if(a.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let f=a.map?a.map.prev:void 0,c=this.loadMap(a.from,f);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let a=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(c)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(a)||l.match(f);if(m)return n(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let a=l.match(/\/\*\s*# sourceMappingURL=/g);if(!a)return;let f=l.lastIndexOf(a.pop()),c=l.indexOf("*/",f);f>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(f,c)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let f=a(l);if(f){let c=this.loadFile(f);if(!c)throw new Error("Unable to load previous source map: "+f.toString());return c}}else{if(a instanceof s)return o.fromSourceMap(a).toString();if(a instanceof o)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 f=this.annotation;return l&&(f=i(r(l),f)),this.loadFile(f)}}}startWith(l,a){return l?l.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Fs=u,u.default=u,Fs}var Bs,Ua;function fs(){if(Ua)return Bs;Ua=1;let{nanoid:e}=jd(),{isAbsolute:t,resolve:r}=ut,{SourceMapConsumer:i,SourceMapGenerator:s}=ut,{fileURLToPath:o,pathToFileURL:n}=ut,u=Oo(),d=oc(),l=ut,a=Symbol("lineToIndexCache"),f=!!(i&&s),c=!!(r&&t);function h(m){if(m[a])return m[a];let g=m.css.split(`
|
|
37
|
+
`),w=new Array(g.length),v=0;for(let S=0,E=g.length;S<E;S++)w[S]=v,v+=g[S].length+1;return m[a]=w,w}class p{get from(){return this.file||this.id}constructor(g,w={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,w.document&&(this.document=w.document.toString()),w.from&&(!c||/^\w+:\/\//.test(w.from)||t(w.from)?this.file=w.from:this.file=r(w.from)),c&&f){let v=new d(this.css,w);if(v.text){this.map=v;let S=v.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,w,v,S={}){let E,y,b,_,C;if(w&&typeof w=="object"){let x=w,I=v;if(typeof x.offset=="number"){_=x.offset;let D=this.fromOffset(_);w=D.line,v=D.col}else w=x.line,v=x.column,_=this.fromLineAndColumn(w,v);if(typeof I.offset=="number"){b=I.offset;let D=this.fromOffset(b);y=D.line,E=D.col}else y=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(v)_=this.fromLineAndColumn(w,v);else{_=w;let x=this.fromOffset(_);w=x.line,v=x.col}let N=this.origin(w,v,y,E);return N?C=new u(g,N.endLine===void 0?N.line:{column:N.column,line:N.line},N.endLine===void 0?N.column:{column:N.endColumn,line:N.endLine},N.source,N.file,S.plugin):C=new u(g,y===void 0?w:{column:v,line:w},y===void 0?v:{column:E,line:y},this.css,this.file,S.plugin),C.input={column:v,endColumn:E,endLine:y,endOffset:b,line:w,offset:_,source:this.css},this.file&&(n&&(C.input.url=n(this.file).toString()),C.input.file=this.file),C}fromLineAndColumn(g,w){return h(this)[g-1]+w-1}fromOffset(g){let w=h(this),v=w[w.length-1],S=0;if(g>=v)S=w.length-1;else{let E=w.length-2,y;for(;S<E;)if(y=S+(E-S>>1),g<w[y])E=y-1;else if(g>=w[y+1])S=y+1;else{S=y;break}}return{col:g-w[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,w,v,S){if(!this.map)return!1;let E=this.map.consumer(),y=E.originalPositionFor({column:w,line:g});if(!y.source)return!1;let b;typeof v=="number"&&(b=E.originalPositionFor({column:S,line:v}));let _;t(y.source)?_=n(y.source):_=new URL(y.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let C={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:_.toString()};if(_.protocol==="file:")if(o)C.file=o(_);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(y.source);return N&&(C.source=N),C}toJSON(){let g={};for(let w of["hasBOM","css","file","id"])this[w]!=null&&(g[w]=this[w]);return this.map&&(g.map=G({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Bs=p,p.default=p,l&&l.registerInput&&l.registerInput(p),Bs}var Us,$a;function pi(){if($a)return Us;$a=1;let e=mr(),t,r;class i extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,n,u){let d=super.normalize(o);if(n){if(u==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let l of d)l.raws.before=n.raws.before}return d}removeChild(o,n){let u=this.index(o);return!n&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},Us=i,i.default=i,e.registerRoot(i),Us}var $s,Wa;function ac(){if(Wa)return $s;Wa=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
38
|
+
`," "];return e.split(t,r)},split(t,r,i){let s=[],o="",n=!1,u=0,d=!1,l="",a=!1;for(let f of t)a?a=!1:f==="\\"?a=!0:d?f===l&&(d=!1):f==='"'||f==="'"?(d=!0,l=f):f==="("?u+=1:f===")"?u>0&&(u-=1):u===0&&r.includes(f)&&(n=!0),n?(o!==""&&s.push(o.trim()),o="",n=!1):o+=f;return(i||o!=="")&&s.push(o.trim()),s}};return $s=e,e.default=e,$s}var Ws,za;function Io(){if(za)return Ws;za=1;let e=mr(),t=ac();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(s){let o=this.selector?this.selector.match(/,\s*/):null,n=o?o[0]:","+this.raw("between","beforeOpen");this.selector=s.join(n)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return Ws=r,r.default=r,e.registerRule(r),Ws}var zs,qa;function Vd(){if(qa)return zs;qa=1;let e=To(),t=us(),r=cs(),i=fs(),s=oc(),o=pi(),n=Io();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let c=d,{inputs:a}=c,f=Vr(c,["inputs"]);if(a){l=[];for(let p of a){let m=be(G({},p),{__proto__:i.prototype});m.map&&(m.map=be(G({},m.map),{__proto__:s.prototype})),l.push(m)}}if(f.nodes&&(f.nodes=d.nodes.map(p=>u(p,l))),f.source){let h=f.source,{inputId:p}=h,m=Vr(h,["inputId"]);f.source=m,p!=null&&(f.source.input=l[p])}if(f.type==="root")return new o(f);if(f.type==="decl")return new r(f);if(f.type==="rule")return new n(f);if(f.type==="comment")return new t(f);if(f.type==="atrule")return new e(f);throw new Error("Unknown node type: "+d.type)}return zs=u,u.default=u,zs}var qs,ja;function lc(){if(ja)return qs;ja=1;let{dirname:e,relative:t,resolve:r,sep:i}=ut,{SourceMapConsumer:s,SourceMapGenerator:o}=ut,{pathToFileURL:n}=ut,u=fs(),d=!!(s&&o),l=!!(e&&r&&t&&i);class a{constructor(c,h,p,m){this.stringify=c,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 c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let h=`
|
|
39
39
|
`;this.css.includes(`\r
|
|
40
40
|
`)&&(h=`\r
|
|
41
|
-
`),this.css+=h+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let h=this.toUrl(this.path(c.file)),p=c.root||e(c.file),m;this.mapOpts.sourcesContent===!1?(m=new s(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let h=this.root.nodes.length-1;h>=0;h--)c=this.root.nodes[h],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&d&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,h=>{c+=h}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(v,
|
|
42
|
-
`),h=v.length-g):h+=v.length,_&&E!=="start"){let y=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==y.last||y.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=c,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,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(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let h=this.memoizedPaths.get(c);if(h)return h;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(r(p,this.mapOpts.annotation)));let m=t(p,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let h=c.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let c=new u(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!c[p]){c[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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let h=this.memoizedFileURLs.get(c);if(h)return h;if(n){let p=n(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let h=this.memoizedURLs.get(c);if(h)return h;i==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return qs=a,qs}var js,Va;function Gd(){if(Va)return js;Va=1;const e=39,t=34,r=92,i=47,s=10,o=32,n=12,u=9,d=13,l=91,a=93,f=40,c=41,h=123,p=125,m=59,g=42,w=58,v=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return js=function(C,N={}){let x=C.css.valueOf(),P=N.ignoreErrors,D,ae,ee,R,ie,L,q,I,z,Ce,we=x.length,O=0,ue=[],k=[];function $(){return O}function Z(se){throw C.error("Unclosed "+se,O)}function B(){return k.length===0&&O>=we}function he(se){if(k.length)return k.pop();if(O>=we)return;let ke=se?se.ignoreUnclosed:!1;switch(D=x.charCodeAt(O),D){case s:case o:case u:case d:case n:{R=O;do R+=1,D=x.charCodeAt(R);while(D===o||D===s||D===u||D===d||D===n);L=["space",x.slice(O,R)],O=R-1;break}case l:case a:case h:case p:case w:case m:case c:{let pt=String.fromCharCode(D);L=[pt,pt,O];break}case f:{if(Ce=ue.length?ue.pop()[1]:"",z=x.charCodeAt(O+1),Ce==="url"&&z!==e&&z!==t&&z!==o&&z!==s&&z!==u&&z!==n&&z!==d){R=O;do{if(q=!1,R=x.indexOf(")",R+1),R===-1)if(P||ke){R=O;break}else Z("bracket");for(I=R;x.charCodeAt(I-1)===r;)I-=1,q=!q}while(q);L=["brackets",x.slice(O,R+1),O,R],O=R}else R=x.indexOf(")",O+1),ae=x.slice(O,R+1),R===-1||y.test(ae)?L=["(","(",O]:(L=["brackets",ae,O,R],O=R);break}case e:case t:{ie=D===e?"'":'"',R=O;do{if(q=!1,R=x.indexOf(ie,R+1),R===-1)if(P||ke){R=O+1;break}else Z("string");for(I=R;x.charCodeAt(I-1)===r;)I-=1,q=!q}while(q);L=["string",x.slice(O,R+1),O,R],O=R;break}case v:{_.lastIndex=O+1,_.test(x),_.lastIndex===0?R=x.length-1:R=_.lastIndex-2,L=["at-word",x.slice(O,R+1),O,R],O=R;break}case r:{for(R=O,ee=!0;x.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(D=x.charCodeAt(R+1),ee&&D!==i&&D!==o&&D!==s&&D!==u&&D!==d&&D!==n&&(R+=1,b.test(x.charAt(R)))){for(;b.test(x.charAt(R+1));)R+=1;x.charCodeAt(R+1)===o&&(R+=1)}L=["word",x.slice(O,R+1),O,R],O=R;break}default:{D===i&&x.charCodeAt(O+1)===g?(R=x.indexOf("*/",O+2)+1,R===0&&(P||ke?R=x.length:Z("comment")),L=["comment",x.slice(O,R+1),O,R],O=R):(E.lastIndex=O+1,E.test(x),E.lastIndex===0?R=x.length-1:R=E.lastIndex-2,L=["word",x.slice(O,R+1),O,R],ue.push(L),O=R);break}}return O++,L}function ce(se){k.push(se)}return{back:ce,endOfFile:B,nextToken:he,position:$}},js}var Vs,Ga;function Hd(){if(Ga)return Vs;Ga=1;let e=To(),t=us(),r=cs(),i=pi(),s=Io(),o=Gd();const n={empty:!0,space:!0};function u(l){for(let a=l.length-1;a>=0;a--){let f=l[a],c=f[3]||f[2];if(c)return c}}class d{constructor(a){this.input=a,this.root=new i,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 f=new e;f.name=a[1].slice(1),f.name===""&&this.unnamedAtrule(f,a),this.init(f,a[2]);let c,h,p,m=!1,g=!1,w=[],v=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),c=a[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){f.source.end=this.getPosition(a[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(w.length>0){for(p=w.length-1,h=w[p];h&&h[0]==="space";)h=w[--p];h&&(f.source.end=this.getPosition(h[3]||h[2]),f.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(f.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(f,"params",w),m&&(a=w[w.length-1],f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f)}checkMissedSemicolon(a){let f=this.colon(a);if(f===!1)return;let c=0,h;for(let p=f-1;p>=0&&(h=a[p],!(h[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let f=0,c,h,p;for(let[m,g]of a.entries()){if(h=g,p=h[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!c)this.doubleColon(h);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=h}return!1}comment(a){let f=new t;this.init(f,a[2]),f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++;let c=a[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let h=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=h[2],f.raws.left=h[1],f.raws.right=h[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(a,f){let c=new r;this.init(c,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),c.source.end=this.getPosition(h[3]||h[2]||u(a)),c.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),c.raws.before+=a.shift()[1];for(c.source.start=this.getPosition(a[0][2]),c.prop="";a.length;){let v=a[0][0];if(v===":"||v==="space"||v==="comment")break;c.prop+=a.shift()[1]}c.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let v=a.length-1;v>=0;v--){if(p=a[v],p[1].toLowerCase()==="!important"){c.important=!0;let _=this.stringFrom(a,v);_=this.spacesFromEnd(a)+_,_!==" !important"&&(c.raws.important=_);break}else if(p[1].toLowerCase()==="important"){let _=a.slice(0),E="";for(let y=v;y>0;y--){let b=_[y][0];if(E.trim().startsWith("!")&&b!=="space")break;E=_.pop()[1]+E}E.trim().startsWith("!")&&(c.important=!0,c.raws.important=E,a=_)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(c.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(c,"value",m.concat(a),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let f=new s;this.init(f,a[2]),f.selector="",f.raws.between="",this.current=f}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 f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="",f.source.end=this.getPosition(a[2]),f.source.end.offset+=f.raws.ownSemicolon.length)}}getPosition(a){let f=this.input.fromOffset(a);return{column:f.col,line:f.line,offset:a}}init(a,f){this.current.push(a),a.source={input:this.input,start:this.getPosition(f)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let f=!1,c=null,h=!1,p=null,m=[],g=a[1].startsWith("--"),w=[],v=a;for(;v;){if(c=v[0],w.push(v),c==="("||c==="[")p||(p=v),m.push(c==="("?")":"]");else if(g&&h&&c==="{")p||(p=v),m.push("}");else if(m.length===0)if(c===";")if(h){this.decl(w,g);return}else break;else if(c==="{"){this.rule(w);return}else if(c==="}"){this.tokenizer.back(w.pop()),f=!0;break}else c===":"&&(h=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(p),f&&h){if(!g)for(;w.length&&(v=w[w.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}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,f,c,h){let p,m,g=c.length,w="",v=!0,_,E;for(let y=0;y<g;y+=1)p=c[y],m=p[0],m==="space"&&y===g-1&&!h?v=!1:m==="comment"?(E=c[y-1]?c[y-1][0]:"empty",_=c[y+1]?c[y+1][0]:"empty",!n[E]&&!n[_]?w.slice(-1)===","?v=!1:w+=p[1]:v=!1):w+=p[1];if(!v){let y=c.reduce((b,S)=>b+S[1],"");a.raws[f]={raw:y,value:w}}a[f]=w}rule(a){a.pop();let f=new s;this.init(f,a[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(f,"selector",a),this.current=f}spacesAndCommentsFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],!(f!=="space"&&f!=="comment"));)c=a.pop()[1]+c;return c}spacesAndCommentsFromStart(a){let f,c="";for(;a.length&&(f=a[0][0],!(f!=="space"&&f!=="comment"));)c+=a.shift()[1];return c}spacesFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],f==="space");)c=a.pop()[1]+c;return c}stringFrom(a,f){let c="";for(let h=f;h<a.length;h++)c+=a[h][1];return a.splice(f,a.length-f),c}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 "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return Vs=d,Vs}var Gs,Ha;function Po(){if(Ha)return Gs;Ha=1;let e=pr(),t=fs(),r=Hd();function i(s,o){let n=new t(s,o),u=new r(n);try{u.parse()}catch(d){throw d}return u.root}return Gs=i,i.default=i,e.registerParse(i),Gs}var Hs,Ya;function uc(){if(Ya)return Hs;Ya=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 Hs=e,e.default=e,Hs}var Ys,Ja;function Lo(){if(Ja)return Ys;Ja=1;let e=uc();class t{get content(){return this.css}constructor(i,s,o){this.processor=i,this.messages=[],this.root=s,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let o=new e(i,s);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}}return Ys=t,t.default=t,Ys}var Js,Xa;function cc(){if(Xa)return Js;Xa=1;let e={};return Js=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Js}var Xs,Qa;function fc(){if(Qa)return Xs;Qa=1;let e=pr(),t=ko(),r=lc(),i=Po(),s=Lo(),o=pi(),n=as(),{isClean:u,my:d}=Do(),l=cc();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},c={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let y=!1,b=a[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,h,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",h,"DocumentExit"]:E.type==="root"?y=["Root",h,"RootExit"]:y=m(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function w(E){return E[u]=!1,E.nodes&&E.nodes.forEach(y=>w(y)),E}let v={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,S){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 s)C=w(b.root),b.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=b.map);else{let N=i;S.syntax&&(N=S.syntax.parse),S.parser&&(N=S.parser),N.parse&&(N=N.parse);try{C=N(b,S)}catch(x){this.processed=!0,this.error=x}C&&!C[d]&&e.rebuild(C)}this.result=new s(y,C,S),this.helpers=be(G({},v),{postcss:v,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?G(G({},N),N.prepare(this.result)):N)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let S=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let S in b){if(!f[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof b[S]=="object")for(let C in b[S])C==="*"?y(b,S,b[S][C]):y(b,S+"-"+C.toLowerCase(),b[S][C]);else typeof b[S]=="function"&&y(b,S,b[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],S=this.runOnRoot(b);if(p(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];){y[u]=!0;let b=[g(y)];for(;b.length>0;){let S=this.visitTick(b);if(p(S))try{await S}catch(C){let N=b[b.length-1].node;throw this.handleError(C,N)}}}if(this.listeners.OnceExit)for(let[b,S]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(N=>S(N,this.helpers));await Promise.all(C)}else await S(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=n;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];)y[u]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[S,C]of y){this.result.lastPlugin=S;let N;try{N=C(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(N))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:S,visitors:C}=b;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[x,P]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return P(S.toProxy(),this.helpers)}catch(D){throw this.handleError(D,S)}}if(b.iterator!==0){let x=b.iterator,P;for(;P=S.nodes[S.indexes[x]];)if(S.indexes[x]+=1,!P[u]){P[u]=!0,y.push(g(P));return}b.iterator=0,delete S.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){S.nodes&&S.nodes.length&&(S[u]=!0,b.iterator=S.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}y.pop()}walkSync(y){y[u]=!0;let b=m(y);for(let S of b)if(S===h)y.nodes&&y.each(C=>{C[u]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return _.registerPostcss=E=>{v=E},Xs=_,_.default=_,o.registerLazyResult(_),t.registerLazyResult(_),Xs}var Qs,Ka;function Yd(){if(Ka)return Qs;Ka=1;let e=lc(),t=Po();const r=Lo();let i=as(),s=cc();class o{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,d=t;try{u=d(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(u,d,l){d=d.toString(),this.stringified=!1,this._processor=u,this._css=d,this._opts=l,this._map=void 0;let a,f=i;this.result=new r(this._processor,a,this._opts),this.result.css=d;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let h=new e(f,a,this._opts,d);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(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,d){return this.async().then(u,d)}toString(){return this._css}warnings(){return[]}}return Qs=o,o.default=o,Qs}var Ks,Za;function Jd(){if(Za)return Ks;Za=1;let e=ko(),t=fc(),r=Yd(),i=pi();class s{constructor(n=[]){this.version="8.5.6",this.plugins=this.normalize(n)}normalize(n){let u=[];for(let d of n)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))u=u.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)u.push(d);else if(typeof d=="function")u.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return u}process(n,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,n,u):new t(this,n,u)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}}return Ks=s,s.default=s,i.registerProcessor(s),e.registerProcessor(s),Ks}var Zs,el;function Xd(){if(el)return Zs;el=1;let e=To(),t=us(),r=pr(),i=Oo(),s=cs(),o=ko(),n=Vd(),u=fs(),d=fc(),l=ac(),a=ls(),f=Po(),c=Jd(),h=Lo(),p=pi(),m=Io(),g=as(),w=uc();function v(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new c(_)}return v.plugin=function(E,y){let b=!1;function S(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
41
|
+
`),this.css+=h+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let h=this.toUrl(this.path(c.file)),p=c.root||e(c.file),m;this.mapOpts.sourcesContent===!1?(m=new s(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let h=this.root.nodes.length-1;h>=0;h--)c=this.root.nodes[h],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&d&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,h=>{c+=h}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(v,S,E)=>{if(this.css+=v,S&&E!=="end"&&(m.generated.line=c,m.generated.column=h-1,S.source&&S.source.start?(m.source=this.sourcePath(S),m.original.line=S.source.start.line,m.original.column=S.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),w=v.match(/\n/g),w?(c+=w.length,g=v.lastIndexOf(`
|
|
42
|
+
`),h=v.length-g):h+=v.length,S&&E!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=c,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,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(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let h=this.memoizedPaths.get(c);if(h)return h;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(r(p,this.mapOpts.annotation)));let m=t(p,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let h=c.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let c=new u(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!c[p]){c[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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let h=this.memoizedFileURLs.get(c);if(h)return h;if(n){let p=n(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let h=this.memoizedURLs.get(c);if(h)return h;i==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return qs=a,qs}var js,Va;function Gd(){if(Va)return js;Va=1;const e=39,t=34,r=92,i=47,s=10,o=32,n=12,u=9,d=13,l=91,a=93,f=40,c=41,h=123,p=125,m=59,g=42,w=58,v=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return js=function(C,N={}){let x=C.css.valueOf(),I=N.ignoreErrors,D,ae,ee,R,ie,L,q,P,z,Ce,we=x.length,O=0,ue=[],k=[];function $(){return O}function Z(se){throw C.error("Unclosed "+se,O)}function B(){return k.length===0&&O>=we}function he(se){if(k.length)return k.pop();if(O>=we)return;let ke=se?se.ignoreUnclosed:!1;switch(D=x.charCodeAt(O),D){case s:case o:case u:case d:case n:{R=O;do R+=1,D=x.charCodeAt(R);while(D===o||D===s||D===u||D===d||D===n);L=["space",x.slice(O,R)],O=R-1;break}case l:case a:case h:case p:case w:case m:case c:{let mt=String.fromCharCode(D);L=[mt,mt,O];break}case f:{if(Ce=ue.length?ue.pop()[1]:"",z=x.charCodeAt(O+1),Ce==="url"&&z!==e&&z!==t&&z!==o&&z!==s&&z!==u&&z!==n&&z!==d){R=O;do{if(q=!1,R=x.indexOf(")",R+1),R===-1)if(I||ke){R=O;break}else Z("bracket");for(P=R;x.charCodeAt(P-1)===r;)P-=1,q=!q}while(q);L=["brackets",x.slice(O,R+1),O,R],O=R}else R=x.indexOf(")",O+1),ae=x.slice(O,R+1),R===-1||y.test(ae)?L=["(","(",O]:(L=["brackets",ae,O,R],O=R);break}case e:case t:{ie=D===e?"'":'"',R=O;do{if(q=!1,R=x.indexOf(ie,R+1),R===-1)if(I||ke){R=O+1;break}else Z("string");for(P=R;x.charCodeAt(P-1)===r;)P-=1,q=!q}while(q);L=["string",x.slice(O,R+1),O,R],O=R;break}case v:{S.lastIndex=O+1,S.test(x),S.lastIndex===0?R=x.length-1:R=S.lastIndex-2,L=["at-word",x.slice(O,R+1),O,R],O=R;break}case r:{for(R=O,ee=!0;x.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(D=x.charCodeAt(R+1),ee&&D!==i&&D!==o&&D!==s&&D!==u&&D!==d&&D!==n&&(R+=1,b.test(x.charAt(R)))){for(;b.test(x.charAt(R+1));)R+=1;x.charCodeAt(R+1)===o&&(R+=1)}L=["word",x.slice(O,R+1),O,R],O=R;break}default:{D===i&&x.charCodeAt(O+1)===g?(R=x.indexOf("*/",O+2)+1,R===0&&(I||ke?R=x.length:Z("comment")),L=["comment",x.slice(O,R+1),O,R],O=R):(E.lastIndex=O+1,E.test(x),E.lastIndex===0?R=x.length-1:R=E.lastIndex-2,L=["word",x.slice(O,R+1),O,R],ue.push(L),O=R);break}}return O++,L}function ce(se){k.push(se)}return{back:ce,endOfFile:B,nextToken:he,position:$}},js}var Vs,Ga;function Hd(){if(Ga)return Vs;Ga=1;let e=To(),t=us(),r=cs(),i=pi(),s=Io(),o=Gd();const n={empty:!0,space:!0};function u(l){for(let a=l.length-1;a>=0;a--){let f=l[a],c=f[3]||f[2];if(c)return c}}class d{constructor(a){this.input=a,this.root=new i,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 f=new e;f.name=a[1].slice(1),f.name===""&&this.unnamedAtrule(f,a),this.init(f,a[2]);let c,h,p,m=!1,g=!1,w=[],v=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),c=a[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){f.source.end=this.getPosition(a[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(w.length>0){for(p=w.length-1,h=w[p];h&&h[0]==="space";)h=w[--p];h&&(f.source.end=this.getPosition(h[3]||h[2]),f.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(f.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(f,"params",w),m&&(a=w[w.length-1],f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f)}checkMissedSemicolon(a){let f=this.colon(a);if(f===!1)return;let c=0,h;for(let p=f-1;p>=0&&(h=a[p],!(h[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let f=0,c,h,p;for(let[m,g]of a.entries()){if(h=g,p=h[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!c)this.doubleColon(h);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=h}return!1}comment(a){let f=new t;this.init(f,a[2]),f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++;let c=a[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let h=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=h[2],f.raws.left=h[1],f.raws.right=h[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(a,f){let c=new r;this.init(c,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),c.source.end=this.getPosition(h[3]||h[2]||u(a)),c.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),c.raws.before+=a.shift()[1];for(c.source.start=this.getPosition(a[0][2]),c.prop="";a.length;){let v=a[0][0];if(v===":"||v==="space"||v==="comment")break;c.prop+=a.shift()[1]}c.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let v=a.length-1;v>=0;v--){if(p=a[v],p[1].toLowerCase()==="!important"){c.important=!0;let S=this.stringFrom(a,v);S=this.spacesFromEnd(a)+S,S!==" !important"&&(c.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=a.slice(0),E="";for(let y=v;y>0;y--){let b=S[y][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(c.important=!0,c.raws.important=E,a=S)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(c.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(c,"value",m.concat(a),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let f=new s;this.init(f,a[2]),f.selector="",f.raws.between="",this.current=f}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 f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="",f.source.end=this.getPosition(a[2]),f.source.end.offset+=f.raws.ownSemicolon.length)}}getPosition(a){let f=this.input.fromOffset(a);return{column:f.col,line:f.line,offset:a}}init(a,f){this.current.push(a),a.source={input:this.input,start:this.getPosition(f)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let f=!1,c=null,h=!1,p=null,m=[],g=a[1].startsWith("--"),w=[],v=a;for(;v;){if(c=v[0],w.push(v),c==="("||c==="[")p||(p=v),m.push(c==="("?")":"]");else if(g&&h&&c==="{")p||(p=v),m.push("}");else if(m.length===0)if(c===";")if(h){this.decl(w,g);return}else break;else if(c==="{"){this.rule(w);return}else if(c==="}"){this.tokenizer.back(w.pop()),f=!0;break}else c===":"&&(h=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(p),f&&h){if(!g)for(;w.length&&(v=w[w.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}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,f,c,h){let p,m,g=c.length,w="",v=!0,S,E;for(let y=0;y<g;y+=1)p=c[y],m=p[0],m==="space"&&y===g-1&&!h?v=!1:m==="comment"?(E=c[y-1]?c[y-1][0]:"empty",S=c[y+1]?c[y+1][0]:"empty",!n[E]&&!n[S]?w.slice(-1)===","?v=!1:w+=p[1]:v=!1):w+=p[1];if(!v){let y=c.reduce((b,_)=>b+_[1],"");a.raws[f]={raw:y,value:w}}a[f]=w}rule(a){a.pop();let f=new s;this.init(f,a[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(f,"selector",a),this.current=f}spacesAndCommentsFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],!(f!=="space"&&f!=="comment"));)c=a.pop()[1]+c;return c}spacesAndCommentsFromStart(a){let f,c="";for(;a.length&&(f=a[0][0],!(f!=="space"&&f!=="comment"));)c+=a.shift()[1];return c}spacesFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],f==="space");)c=a.pop()[1]+c;return c}stringFrom(a,f){let c="";for(let h=f;h<a.length;h++)c+=a[h][1];return a.splice(f,a.length-f),c}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 "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return Vs=d,Vs}var Gs,Ha;function Po(){if(Ha)return Gs;Ha=1;let e=mr(),t=fs(),r=Hd();function i(s,o){let n=new t(s,o),u=new r(n);try{u.parse()}catch(d){throw d}return u.root}return Gs=i,i.default=i,e.registerParse(i),Gs}var Hs,Ya;function uc(){if(Ya)return Hs;Ya=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 Hs=e,e.default=e,Hs}var Ys,Ja;function Lo(){if(Ja)return Ys;Ja=1;let e=uc();class t{get content(){return this.css}constructor(i,s,o){this.processor=i,this.messages=[],this.root=s,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let o=new e(i,s);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}}return Ys=t,t.default=t,Ys}var Js,Xa;function cc(){if(Xa)return Js;Xa=1;let e={};return Js=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Js}var Xs,Qa;function fc(){if(Qa)return Xs;Qa=1;let e=mr(),t=ko(),r=lc(),i=Po(),s=Lo(),o=pi(),n=as(),{isClean:u,my:d}=Do(),l=cc();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},c={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let y=!1,b=a[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,h,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",h,"DocumentExit"]:E.type==="root"?y=["Root",h,"RootExit"]:y=m(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function w(E){return E[u]=!1,E.nodes&&E.nodes.forEach(y=>w(y)),E}let v={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,_){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 S||b instanceof s)C=w(b.root),b.map&&(typeof _.map=="undefined"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let N=i;_.syntax&&(N=_.syntax.parse),_.parser&&(N=_.parser),N.parse&&(N=N.parse);try{C=N(b,_)}catch(x){this.processed=!0,this.error=x}C&&!C[d]&&e.rebuild(C)}this.result=new s(y,C,_),this.helpers=be(G({},v),{postcss:v,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?G(G({},N),N.prepare(this.result)):N)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!f[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(p(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];){y[u]=!0;let b=[g(y)];for(;b.length>0;){let _=this.visitTick(b);if(p(_))try{await _}catch(C){let N=b[b.length-1].node;throw this.handleError(C,N)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(N=>_(N,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=n;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];)y[u]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let N;try{N=C(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(N))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[x,I]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(_.toProxy(),this.helpers)}catch(D){throw this.handleError(D,_)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=_.nodes[_.indexes[x]];)if(_.indexes[x]+=1,!I[u]){I[u]=!0,y.push(g(I));return}b.iterator=0,delete _.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){_.nodes&&_.nodes.length&&(_[u]=!0,b.iterator=_.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}y.pop()}walkSync(y){y[u]=!0;let b=m(y);for(let _ of b)if(_===h)y.nodes&&y.each(C=>{C[u]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{v=E},Xs=S,S.default=S,o.registerLazyResult(S),t.registerLazyResult(S),Xs}var Qs,Ka;function Yd(){if(Ka)return Qs;Ka=1;let e=lc(),t=Po();const r=Lo();let i=as(),s=cc();class o{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,d=t;try{u=d(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(u,d,l){d=d.toString(),this.stringified=!1,this._processor=u,this._css=d,this._opts=l,this._map=void 0;let a,f=i;this.result=new r(this._processor,a,this._opts),this.result.css=d;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let h=new e(f,a,this._opts,d);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(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,d){return this.async().then(u,d)}toString(){return this._css}warnings(){return[]}}return Qs=o,o.default=o,Qs}var Ks,Za;function Jd(){if(Za)return Ks;Za=1;let e=ko(),t=fc(),r=Yd(),i=pi();class s{constructor(n=[]){this.version="8.5.6",this.plugins=this.normalize(n)}normalize(n){let u=[];for(let d of n)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))u=u.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)u.push(d);else if(typeof d=="function")u.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return u}process(n,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,n,u):new t(this,n,u)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}}return Ks=s,s.default=s,i.registerProcessor(s),e.registerProcessor(s),Ks}var Zs,el;function Xd(){if(el)return Zs;el=1;let e=To(),t=us(),r=mr(),i=Oo(),s=cs(),o=ko(),n=Vd(),u=fs(),d=fc(),l=ac(),a=ls(),f=Po(),c=Jd(),h=Lo(),p=pi(),m=Io(),g=as(),w=uc();function v(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new c(S)}return v.plugin=function(E,y){let b=!1;function _(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
43
43
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
44
|
-
https://www.w3ctech.com/topic/2226`));let x=y(...N);return x.postcssPlugin=E,x.postcssVersion=new c().version,x}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(N,x,P){return v([S(P)]).process(N,x)},S},v.stringify=g,v.parse=f,v.fromJSON=n,v.list=l,v.comment=_=>new t(_),v.atRule=_=>new e(_),v.decl=_=>new s(_),v.rule=_=>new m(_),v.root=_=>new p(_),v.document=_=>new o(_),v.CssSyntaxError=i,v.Declaration=s,v.Container=r,v.Processor=c,v.Document=o,v.Comment=t,v.Warning=w,v.AtRule=e,v.Result=h,v.Input=u,v.Rule=m,v.Root=p,v.Node=a,d.registerPostcss(v),Zs=v,v.default=v,Zs}var Qd=Xd();const pe=Ud(Qd);pe.stringify;pe.fromJSON;pe.plugin;pe.parse;pe.list;pe.document;pe.comment;pe.atRule;pe.rule;pe.decl;pe.root;pe.CssSyntaxError;pe.Declaration;pe.Container;pe.Processor;pe.Document;pe.Comment;pe.Warning;pe.AtRule;pe.Result;pe.Input;pe.Rule;pe.Root;pe.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=pe([Fd,Bd]).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 n of e.childNodes)n.type===W.Text&&s.push(n);const o=t.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));for(let n=0;n<s.length;n++){const u=s[n],d=o[n];u&&d&&(u.textContent=r?hs(d,i):d)}}function tp(e,t,r,i){const{doc:s,hackCss:o,cache:n}=i;e.childNodes.length?ep(e,r,o,n):(o&&(r=hs(r,n)),t.appendChild(s.createTextNode(r)))}function rp(e,t){var r;const{doc:i,hackCss:s,cache:o}=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 n=Zd(e);let u;e.isSVG?u=i.createElementNS("http://www.w3.org/2000/svg",n):(e.isCustom&&((r=i.defaultView)!=null&&r.customElements)&&!i.defaultView.customElements.get(e.tagName)&&!Kd.includes(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),u=i.createElement(n));const d={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let a=e.attributes[l];if(!(n==="option"&&l==="selected"&&a===!1)&&a!==null){if(a===!0&&(a=""),l.startsWith("rr_")){d[l]=a;continue}if(typeof a=="string"){if(n==="style"&&l==="_cssText"){tp(e,u,a,t);continue}else if(n==="textarea"&&l==="value"){u.appendChild(i.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&l==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",l,a.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")u.setAttribute("_"+l,a.toString());else if(n==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){u.setAttribute("csp-content",a.toString());continue}else n==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||n==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(n==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(l,a.toString()))}catch(f){}}}for(const l in d){const a=d[l];if(n==="canvas"&&l==="rr_dataURL"){const f=i.createElement("img");f.onload=()=>{const c=u.getContext("2d");c&&c.drawImage(f,0,0,f.width,f.height)},f.src=a.toString(),u.RRNodeType&&(u.rr_dataURL=a.toString())}else if(n==="img"&&l==="rr_dataURL"){const f=u;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",e.attributes.src),f.src=a.toString())}if(l==="rr_width")u.style.setProperty("width",a.toString());else if(l==="rr_height")u.style.setProperty("height",a.toString());else if(l==="rr_background_color")u.style.setProperty("background-color",a.toString());else if(l==="rr_mediaCurrentTime"&&typeof a=="number")u.currentTime=a;else if(l==="rr_mediaState")switch(a){case"played":u.play().catch(f=>console.warn("media playback error",f));break;case"paused":u.pause();break}else l==="rr_mediaPlaybackRate"&&typeof a=="number"?u.playbackRate=a:l==="rr_mediaMuted"&&typeof a=="boolean"?u.muted=a:l==="rr_mediaLoop"&&typeof a=="boolean"?u.loop=a:l==="rr_mediaVolume"&&typeof a=="number"?u.volume=a:l==="rr_open_mode"&&u.setAttribute("rr_open_mode",a)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case W.Text:return e.isStyle&&s?i.createTextNode(hs(e.textContent,o)):i.createTextNode(e.textContent);case W.CDATA:return i.createCDATASection(e.textContent);case W.Comment:return i.createComment(e.textContent);default:return null}}function si(e,t){const{doc:r,mirror:i,skipChild:s=!1,hackCss:o=!0,afterAppend:n,cache:u,scrollNodes:d}=t;if(i.has(e.id)){const a=i.getNode(e.id),f=i.getMeta(a);if(od(f,e))return i.getNode(e.id)}let l=rp(e,{doc:r,hackCss:o,cache:u});if(!l)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" "">')),l=r),i.add(l,e),d&&e.type===W.Element&&e.attributes&&("rr_scrollLeft"in e.attributes||"rr_scrollTop"in e.attributes)&&d.push(l),(e.type===W.Document||e.type===W.Element)&&!s)for(const a of e.childNodes){const f=si(a,{doc:r,mirror:i,skipChild:!1,hackCss:o,afterAppend:n,cache:u,scrollNodes:d});if(!f){console.warn("Failed to rebuild",a);continue}if(a.isShadow&&Mo(l)&&l.shadowRoot)l.shadowRoot.appendChild(f);else if(e.type===W.Document&&a.type==W.Element){const c=f;let h=null;c.childNodes.forEach(p=>{p.nodeName==="BODY"&&(h=p)}),h?(c.removeChild(h),l.appendChild(f),c.appendChild(h)):l.appendChild(f)}else l.appendChild(f);n&&n(f,a.id)}return l}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)!==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 o=r.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=o),s==="rr_scrollTop"&&(i.scrollTop=o)}}function np(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:o,cache:n,mirror:u=new No}=t,d=[],l=si(e,{doc:r,mirror:u,skipChild:!1,hackCss:s,afterAppend:o,cache:n,scrollNodes:d});i&&ip(u,i);for(const a of d)sp(a,u);return l}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,T=(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,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return 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,o,n,u,d,l){super(s),this.name="CssSyntaxError",this.reason=s,d&&(this.file=d),u&&(this.source=u),l&&(this.plugin=l),typeof o!="undefined"&&typeof n!="undefined"&&(typeof o=="number"?(this.line=o,this.column=n):(this.line=o.line,this.column=o.column,this.endLine=n.line,this.endColumn=n.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 o=this.source;s==null&&(s=e.isColorSupported);let n=h=>h,u=h=>h,d=h=>h;if(s){let{bold:h,gray:p,red:m}=e.createColors(!0);u=g=>h(m(g)),n=g=>p(g),t&&(d=g=>t(g))}let l=o.split(/\r?\n/),a=Math.max(this.line-3,0),f=Math.min(this.line+2,l.length),c=String(f).length;return l.slice(a,f).map((h,p)=>{let m=a+1+p,g=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(h.length>160){let v=20,_=Math.max(0,this.column-v),E=Math.max(this.column+v,this.endColumn+v),y=h.slice(_,E),b=n(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,v-1)).replace(/[^\t]/g," ");return u(">")+n(g)+d(y)+`
|
|
44
|
+
https://www.w3ctech.com/topic/2226`));let x=y(...N);return x.postcssPlugin=E,x.postcssVersion=new c().version,x}let C;return Object.defineProperty(_,"postcss",{get(){return C||(C=_()),C}}),_.process=function(N,x,I){return v([_(I)]).process(N,x)},_},v.stringify=g,v.parse=f,v.fromJSON=n,v.list=l,v.comment=S=>new t(S),v.atRule=S=>new e(S),v.decl=S=>new s(S),v.rule=S=>new m(S),v.root=S=>new p(S),v.document=S=>new o(S),v.CssSyntaxError=i,v.Declaration=s,v.Container=r,v.Processor=c,v.Document=o,v.Comment=t,v.Warning=w,v.AtRule=e,v.Result=h,v.Input=u,v.Rule=m,v.Root=p,v.Node=a,d.registerPostcss(v),Zs=v,v.default=v,Zs}var Qd=Xd();const pe=Ud(Qd);pe.stringify;pe.fromJSON;pe.plugin;pe.parse;pe.list;pe.document;pe.comment;pe.atRule;pe.rule;pe.decl;pe.root;pe.CssSyntaxError;pe.Declaration;pe.Container;pe.Processor;pe.Document;pe.Comment;pe.Warning;pe.AtRule;pe.Result;pe.Input;pe.Rule;pe.Root;pe.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=pe([Fd,Bd]).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 n of e.childNodes)n.type===W.Text&&s.push(n);const o=t.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));for(let n=0;n<s.length;n++){const u=s[n],d=o[n];u&&d&&(u.textContent=r?hs(d,i):d)}}function tp(e,t,r,i){const{doc:s,hackCss:o,cache:n}=i;e.childNodes.length?ep(e,r,o,n):(o&&(r=hs(r,n)),t.appendChild(s.createTextNode(r)))}function rp(e,t){var r;const{doc:i,hackCss:s,cache:o}=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 n=Zd(e);let u;e.isSVG?u=i.createElementNS("http://www.w3.org/2000/svg",n):(e.isCustom&&((r=i.defaultView)!=null&&r.customElements)&&!i.defaultView.customElements.get(e.tagName)&&!Kd.includes(e.tagName)&&i.defaultView.customElements.define(e.tagName,class extends i.defaultView.HTMLElement{}),u=i.createElement(n));const d={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let a=e.attributes[l];if(!(n==="option"&&l==="selected"&&a===!1)&&a!==null){if(a===!0&&(a=""),l.startsWith("rr_")){d[l]=a;continue}if(typeof a=="string"){if(n==="style"&&l==="_cssText"){tp(e,u,a,t);continue}else if(n==="textarea"&&l==="value"){u.appendChild(i.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&l==="xlink:href")u.setAttributeNS("http://www.w3.org/1999/xlink",l,a.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")u.setAttribute("_"+l,a.toString());else if(n==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){u.setAttribute("csp-content",a.toString());continue}else n==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||n==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(n==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?u.setAttribute("rrweb-original-srcset",e.attributes.srcset):u.setAttribute(l,a.toString()))}catch(f){}}}for(const l in d){const a=d[l];if(n==="canvas"&&l==="rr_dataURL"){const f=i.createElement("img");f.onload=()=>{const c=u.getContext("2d");c&&c.drawImage(f,0,0,f.width,f.height)},f.src=a.toString(),u.RRNodeType&&(u.rr_dataURL=a.toString())}else if(n==="img"&&l==="rr_dataURL"){const f=u;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",e.attributes.src),f.src=a.toString())}if(l==="rr_width")u.style.setProperty("width",a.toString());else if(l==="rr_height")u.style.setProperty("height",a.toString());else if(l==="rr_background_color")u.style.setProperty("background-color",a.toString());else if(l==="rr_mediaCurrentTime"&&typeof a=="number")u.currentTime=a;else if(l==="rr_mediaState")switch(a){case"played":u.play().catch(f=>console.warn("media playback error",f));break;case"paused":u.pause();break}else l==="rr_mediaPlaybackRate"&&typeof a=="number"?u.playbackRate=a:l==="rr_mediaMuted"&&typeof a=="boolean"?u.muted=a:l==="rr_mediaLoop"&&typeof a=="boolean"?u.loop=a:l==="rr_mediaVolume"&&typeof a=="number"?u.volume=a:l==="rr_open_mode"&&u.setAttribute("rr_open_mode",a)}if(e.isShadowHost)if(!u.shadowRoot)u.attachShadow({mode:"open"});else for(;u.shadowRoot.firstChild;)u.shadowRoot.removeChild(u.shadowRoot.firstChild);return u}case W.Text:return e.isStyle&&s?i.createTextNode(hs(e.textContent,o)):i.createTextNode(e.textContent);case W.CDATA:return i.createCDATASection(e.textContent);case W.Comment:return i.createComment(e.textContent);default:return null}}function si(e,t){const{doc:r,mirror:i,skipChild:s=!1,hackCss:o=!0,afterAppend:n,cache:u,scrollNodes:d}=t;if(i.has(e.id)){const a=i.getNode(e.id),f=i.getMeta(a);if(od(f,e))return i.getNode(e.id)}let l=rp(e,{doc:r,hackCss:o,cache:u});if(!l)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" "">')),l=r),i.add(l,e),d&&e.type===W.Element&&e.attributes&&("rr_scrollLeft"in e.attributes||"rr_scrollTop"in e.attributes)&&d.push(l),(e.type===W.Document||e.type===W.Element)&&!s)for(const a of e.childNodes){const f=si(a,{doc:r,mirror:i,skipChild:!1,hackCss:o,afterAppend:n,cache:u,scrollNodes:d});if(!f){console.warn("Failed to rebuild",a);continue}if(a.isShadow&&Mo(l)&&l.shadowRoot)l.shadowRoot.appendChild(f);else if(e.type===W.Document&&a.type==W.Element){const c=f;let h=null;c.childNodes.forEach(p=>{p.nodeName==="BODY"&&(h=p)}),h?(c.removeChild(h),l.appendChild(f),c.appendChild(h)):l.appendChild(f)}else l.appendChild(f);n&&n(f,a.id)}return l}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)!==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 o=r.attributes[s];s==="rr_scrollLeft"&&(i.scrollLeft=o),s==="rr_scrollTop"&&(i.scrollTop=o)}}function np(e,t){const{doc:r,onVisit:i,hackCss:s=!0,afterAppend:o,cache:n,mirror:u=new No}=t,d=[],l=si(e,{doc:r,mirror:u,skipChild:!1,hackCss:s,afterAppend:o,cache:n,scrollNodes:d});i&&ip(u,i);for(const a of d)sp(a,u);return l}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,T=(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,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return xi.exports=t(),xi.exports.createColors=t,xi.exports}const mp={},gp=Object.freeze(Object.defineProperty({__proto__:null,default:mp},Symbol.toStringTag,{value:"Module"})),ct=dp(gp);var en,nl;function Fo(){if(nl)return en;nl=1;let e=pp(),t=ct;class r extends Error{constructor(s,o,n,u,d,l){super(s),this.name="CssSyntaxError",this.reason=s,d&&(this.file=d),u&&(this.source=u),l&&(this.plugin=l),typeof o!="undefined"&&typeof n!="undefined"&&(typeof o=="number"?(this.line=o,this.column=n):(this.line=o.line,this.column=o.column,this.endLine=n.line,this.endColumn=n.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 o=this.source;s==null&&(s=e.isColorSupported);let n=h=>h,u=h=>h,d=h=>h;if(s){let{bold:h,gray:p,red:m}=e.createColors(!0);u=g=>h(m(g)),n=g=>p(g),t&&(d=g=>t(g))}let l=o.split(/\r?\n/),a=Math.max(this.line-3,0),f=Math.min(this.line+2,l.length),c=String(f).length;return l.slice(a,f).map((h,p)=>{let m=a+1+p,g=" "+(" "+m).slice(-c)+" | ";if(m===this.line){if(h.length>160){let v=20,S=Math.max(0,this.column-v),E=Math.max(this.column+v,this.endColumn+v),y=h.slice(S,E),b=n(g.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,v-1)).replace(/[^\t]/g," ");return u(">")+n(g)+d(y)+`
|
|
45
45
|
`+b+u("^")}let w=n(g.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+n(g)+d(h)+`
|
|
46
46
|
`+w+u("^")}return" "+n(g)+d(h)}).join(`
|
|
47
47
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
@@ -60,17 +60,17 @@ https://www.w3ctech.com/topic/2226`));let x=y(...N);return x.postcssPlugin=E,x.p
|
|
|
60
60
|
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(s){let o;return s.walkDecls(n=>{if(typeof n.raws.between!="undefined")return o=n.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length===0&&(o=n.raws.after,typeof o!="undefined"))return!1}),o}rawIndent(s){if(s.raws.indent)return s.raws.indent;let o;return s.walk(n=>{let u=n.parent;if(u&&u!==s&&u.parent&&u.parent===s&&typeof n.raws.before!="undefined"){let d=n.raws.before.split(`
|
|
61
61
|
`);return o=d[d.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(s){let o;return s.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(o=n.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(s,o){let n=s[o],u=s.raws[o];return u&&u.value===n?u.raw:n}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,o){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,o)}}return tn=r,r.default=r,tn}var rn,al;function ds(){if(al)return rn;al=1;let e=hc();function t(r,i){new e(i).stringify(r)}return rn=t,t.default=t,rn}var Ri={},ll;function Bo(){return ll||(ll=1,Ri.isClean=Symbol("isClean"),Ri.my=Symbol("my")),Ri}var sn,ul;function ps(){if(ul)return sn;ul=1;let e=Fo(),t=hc(),r=ds(),{isClean:i,my:s}=Bo();function o(d,l){let a=new d.constructor;for(let f in d){if(!Object.prototype.hasOwnProperty.call(d,f)||f==="proxyCache")continue;let c=d[f],h=typeof c;f==="parent"&&h==="object"?l&&(a[f]=l):f==="source"?a[f]=c:Array.isArray(c)?a[f]=c.map(p=>o(p,a)):(h==="object"&&c!==null&&(c=o(c)),a[f]=c)}return a}function n(d,l){if(l&&typeof l.offset!="undefined")return l.offset;let a=1,f=1,c=0;for(let h=0;h<d.length;h++){if(f===l.line&&a===l.column){c=h;break}d[h]===`
|
|
62
62
|
`?(a=1,f+=1):a+=1}return c}class u{get proxyOf(){return this}constructor(l={}){this.raws={},this[i]=!1,this[s]=!0;for(let a in l)if(a==="nodes"){this.nodes=[];for(let f of l[a])typeof f.clone=="function"?this.append(f.clone()):this.append(f)}else this[a]=l[a]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let a=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${a.input.from}:${a.start.line}:${a.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let a in l)this[a]=l[a];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 a=o(this);for(let f in l)a[f]=l[f];return a}cloneAfter(l={}){let a=this.clone(l);return this.parent.insertAfter(this,a),a}cloneBefore(l={}){let a=this.clone(l);return this.parent.insertBefore(this,a),a}error(l,a={}){if(this.source){let{end:f,start:c}=this.rangeBy(a);return this.source.input.error(l,{column:c.column,line:c.line},{column:f.column,line:f.line},a)}return new e(l)}getProxyProcessor(){return{get(l,a){return a==="proxyOf"?l:a==="root"?()=>l.root().toProxy():l[a]},set(l,a,f){return l[a]===f||(l[a]=f,(a==="prop"||a==="value"||a==="name"||a==="params"||a==="important"||a==="text")&&l.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let l=this;for(;l=l.parent;)l[i]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l={}){let a=this.source.start;if(l.index)a=this.positionInside(l.index);else if(l.word){let f="document"in this.source.input?this.source.input.document:this.source.input.css,h=f.slice(n(f,this.source.start),n(f,this.source.end)).indexOf(l.word);h!==-1&&(a=this.positionInside(h))}return a}positionInside(l){let a=this.source.start.column,f=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,h=n(c,this.source.start),p=h+l;for(let m=h;m<p;m++)c[m]===`
|
|
63
|
-
`?(a=1,f+=1):a+=1;return{column:a,line:f,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let a="document"in this.source.input?this.source.input.document:this.source.input.css,f={column:this.source.start.column,line:this.source.start.line,offset:n(a,this.source.start)},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:n(a,this.source.end)+1}:{column:f.column+1,line:f.line,offset:f.offset+1};if(l.word){let p=a.slice(n(a,this.source.start),n(a,this.source.end)).indexOf(l.word);p!==-1&&(f=this.positionInside(p),c=this.positionInside(p+l.word.length))}else l.start?f={column:l.start.column,line:l.start.line,offset:n(a,l.start)}:l.index&&(f=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line,offset:n(a,l.end)}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<f.line||c.line===f.line&&c.column<=f.column)&&(c={column:f.column+1,line:f.line,offset:f.offset+1}),{end:c,start:f}}raw(l,a){return new t().raw(this,l,a)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let a=this,f=!1;for(let c of l)c===this?f=!0:f?(this.parent.insertAfter(a,c),a=c):this.parent.insertBefore(a,c);f||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,a){let f={},c=a==null;a=a||new Map;let h=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))f[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,a):g);else if(typeof m=="object"&&m.toJSON)f[p]=m.toJSON(null,a);else if(p==="source"){if(m==null)continue;let g=a.get(m.input);g==null&&(g=h,a.set(m.input,h),h++),f[p]={end:m.end,inputId:g,start:m.start}}else f[p]=m}return c&&(f.inputs=[...a.keys()].map(p=>p.toJSON())),f}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let a="";return l(this,f=>{a+=f}),a}warn(l,a,f={}){let c={node:this};for(let h in f)c[h]=f[h];return l.warn(a,c)}}return sn=u,u.default=u,sn}var nn,cl;function ms(){if(cl)return nn;cl=1;let e=ps();class t extends e{constructor(i){super(i),this.type="comment"}}return nn=t,t.default=t,nn}var on,fl;function gs(){if(fl)return on;fl=1;let e=ps();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=be(G({},i),{value:String(i.value)})),super(i),this.type="decl"}}return on=t,t.default=t,on}var an,hl;function mr(){if(hl)return an;hl=1;let e=ms(),t=gs(),r=ps(),{isClean:i,my:s}=Bo(),o,n,u,d;function l(c){return c.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function a(c){if(c[i]=!1,c.proxyOf.nodes)for(let h of c.proxyOf.nodes)a(h)}class f extends r{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(w,v)=>g(w.toProxy(),v):g)):p==="every"||p==="some"?m=>h[p]((g,...w)=>m(g.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),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let v of g)this.proxyOf.nodes.splice(m+1,0,v);let w;for(let v in this.indexes)w=this.indexes[v],m<w&&(this.indexes[v]=w+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let _ of w)this.proxyOf.nodes.splice(m,0,_);let v;for(let _ in this.indexes)v=this.indexes[_],m<=v&&(this.indexes[_]=v+w.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(n(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new d(h)];else if(h.name)h=[new o(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[s]||f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&a(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let 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(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(w){throw p.addToError(w)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}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,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return f.registerParse=c=>{n=c},f.registerRule=c=>{d=c},f.registerAtRule=c=>{o=c},f.registerRoot=c=>{u=c},an=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,d.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(h=>{f.rebuild(h)})},an}var ln,dl;function Uo(){if(dl)return ln;dl=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 ln=t,t.default=t,e.registerAtRule(t),ln}var un,pl;function $o(){if(pl)return un;pl=1;let e=mr(),t,r;class i extends e{constructor(o){super(G({type:"document"},o)),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},un=i,i.default=i,un}var cn,ml;function vp(){if(ml)return cn;ml=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return cn={nanoid:(i=21)=>{let s="",o=i|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(o=s)=>{let n="",u=o|0;for(;u--;)n+=i[Math.random()*i.length|0];return n}},cn}var fn,gl;function dc(){if(gl)return fn;gl=1;let{existsSync:e,readFileSync:t}=ut,{dirname:r,join:i}=ut,{SourceMapConsumer:s,SourceMapGenerator:o}=ut;function n(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,a){if(a.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let f=a.map?a.map.prev:void 0,c=this.loadMap(a.from,f);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let a=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(c)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(a)||l.match(f);if(m)return n(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let a=l.match(/\/\*\s*# sourceMappingURL=/g);if(!a)return;let f=l.lastIndexOf(a.pop()),c=l.indexOf("*/",f);f>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(f,c)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let f=a(l);if(f){let c=this.loadFile(f);if(!c)throw new Error("Unable to load previous source map: "+f.toString());return c}}else{if(a instanceof s)return o.fromSourceMap(a).toString();if(a instanceof o)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 f=this.annotation;return l&&(f=i(r(l),f)),this.loadFile(f)}}}startWith(l,a){return l?l.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return fn=u,u.default=u,fn}var hn,vl;function vs(){if(vl)return hn;vl=1;let{nanoid:e}=vp(),{isAbsolute:t,resolve:r}=ut,{SourceMapConsumer:i,SourceMapGenerator:s}=ut,{fileURLToPath:o,pathToFileURL:n}=ut,u=Fo(),d=dc(),l=ut,a=Symbol("lineToIndexCache"),f=!!(i&&s),c=!!(r&&t);function h(m){if(m[a])return m[a];let g=m.css.split(`
|
|
64
|
-
`),w=new Array(g.length),v=0;for(let
|
|
65
|
-
`," "];return e.split(t,r)},split(t,r,i){let s=[],o="",n=!1,u=0,d=!1,l="",a=!1;for(let f of t)a?a=!1:f==="\\"?a=!0:d?f===l&&(d=!1):f==='"'||f==="'"?(d=!0,l=f):f==="("?u+=1:f===")"?u>0&&(u-=1):u===0&&r.includes(f)&&(n=!0),n?(o!==""&&s.push(o.trim()),o="",n=!1):o+=f;return(i||o!=="")&&s.push(o.trim()),s}};return pn=e,e.default=e,pn}var mn,bl;function Wo(){if(bl)return mn;bl=1;let e=
|
|
63
|
+
`?(a=1,f+=1):a+=1;return{column:a,line:f,offset:p}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l={}){let a="document"in this.source.input?this.source.input.document:this.source.input.css,f={column:this.source.start.column,line:this.source.start.line,offset:n(a,this.source.start)},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:n(a,this.source.end)+1}:{column:f.column+1,line:f.line,offset:f.offset+1};if(l.word){let p=a.slice(n(a,this.source.start),n(a,this.source.end)).indexOf(l.word);p!==-1&&(f=this.positionInside(p),c=this.positionInside(p+l.word.length))}else l.start?f={column:l.start.column,line:l.start.line,offset:n(a,l.start)}:l.index&&(f=this.positionInside(l.index)),l.end?c={column:l.end.column,line:l.end.line,offset:n(a,l.end)}:typeof l.endIndex=="number"?c=this.positionInside(l.endIndex):l.index&&(c=this.positionInside(l.index+1));return(c.line<f.line||c.line===f.line&&c.column<=f.column)&&(c={column:f.column+1,line:f.line,offset:f.offset+1}),{end:c,start:f}}raw(l,a){return new t().raw(this,l,a)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let a=this,f=!1;for(let c of l)c===this?f=!0:f?(this.parent.insertAfter(a,c),a=c):this.parent.insertBefore(a,c);f||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,a){let f={},c=a==null;a=a||new Map;let h=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))f[p]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,a):g);else if(typeof m=="object"&&m.toJSON)f[p]=m.toJSON(null,a);else if(p==="source"){if(m==null)continue;let g=a.get(m.input);g==null&&(g=h,a.set(m.input,h),h++),f[p]={end:m.end,inputId:g,start:m.start}}else f[p]=m}return c&&(f.inputs=[...a.keys()].map(p=>p.toJSON())),f}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=r){l.stringify&&(l=l.stringify);let a="";return l(this,f=>{a+=f}),a}warn(l,a,f={}){let c={node:this};for(let h in f)c[h]=f[h];return l.warn(a,c)}}return sn=u,u.default=u,sn}var nn,cl;function ms(){if(cl)return nn;cl=1;let e=ps();class t extends e{constructor(i){super(i),this.type="comment"}}return nn=t,t.default=t,nn}var on,fl;function gs(){if(fl)return on;fl=1;let e=ps();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=be(G({},i),{value:String(i.value)})),super(i),this.type="decl"}}return on=t,t.default=t,on}var an,hl;function gr(){if(hl)return an;hl=1;let e=ms(),t=gs(),r=ps(),{isClean:i,my:s}=Bo(),o,n,u,d;function l(c){return c.map(h=>(h.nodes&&(h.nodes=l(h.nodes)),delete h.source,h))}function a(c){if(c[i]=!1,c.proxyOf.nodes)for(let h of c.proxyOf.nodes)a(h)}class f extends r{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...h){for(let p of h){let m=this.normalize(p,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(h){if(super.cleanRaws(h),this.nodes)for(let p of this.nodes)p.cleanRaws(h)}each(h){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],g=h(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(h){return this.nodes.every(h)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let h=this.lastEach;return this.indexes[h]=0,h}getProxyProcessor(){return{get(h,p){return p==="proxyOf"?h:h[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>h[p](...m.map(g=>typeof g=="function"?(w,v)=>g(w.toProxy(),v):g)):p==="every"||p==="some"?m=>h[p]((g,...w)=>m(g.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),g=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(h);for(let v of g)this.proxyOf.nodes.splice(m+1,0,v);let w;for(let v in this.indexes)w=this.indexes[v],m<w&&(this.indexes[v]=w+g.length);return this.markDirty(),this}insertBefore(h,p){let m=this.index(h),g=m===0?"prepend":!1,w=this.normalize(p,this.proxyOf.nodes[m],g).reverse();m=this.index(h);for(let S of w)this.proxyOf.nodes.splice(m,0,S);let v;for(let S in this.indexes)v=this.indexes[S],m<=v&&(this.indexes[S]=v+w.length);return this.markDirty(),this}normalize(h,p){if(typeof h=="string")h=l(n(h).nodes);else if(typeof h=="undefined")h=[];else if(Array.isArray(h)){h=h.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type==="root"&&this.type!=="document"){h=h.nodes.slice(0);for(let g of h)g.parent&&g.parent.removeChild(g,"ignore")}else if(h.type)h=[h];else if(h.prop){if(typeof h.value=="undefined")throw new Error("Value field is missed in node creation");typeof h.value!="string"&&(h.value=String(h.value)),h=[new t(h)]}else if(h.selector||h.selectors)h=[new d(h)];else if(h.name)h=[new o(h)];else if(h.text)h=[new e(h)];else throw new Error("Unknown node type in node creation");return h.map(g=>(g[s]||f.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[i]&&a(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...h){h=h.reverse();for(let p of h){let m=this.normalize(p,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(h){return h.parent=this,this.proxyOf.nodes.push(h),this}removeAll(){for(let h of this.proxyOf.nodes)h.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(h){h=this.index(h),this.proxyOf.nodes[h].parent=void 0,this.proxyOf.nodes.splice(h,1);let 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(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(h,m))}),this.markDirty(),this}some(h){return this.nodes.some(h)}walk(h){return this.each((p,m)=>{let g;try{g=h(p,m)}catch(w){throw p.addToError(w)}return g!==!1&&p.walk&&(g=p.walk(h)),g})}walkAtRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&h.test(m.name))return p(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="atrule")return p(m,g)}))}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,g)=>{if(m.type==="decl"&&h.test(m.prop))return p(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="decl")return p(m,g)}))}walkRules(h,p){return p?h instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&h.test(m.selector))return p(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===h)return p(m,g)}):(p=h,this.walk((m,g)=>{if(m.type==="rule")return p(m,g)}))}}return f.registerParse=c=>{n=c},f.registerRule=c=>{d=c},f.registerAtRule=c=>{o=c},f.registerRoot=c=>{u=c},an=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,o.prototype):c.type==="rule"?Object.setPrototypeOf(c,d.prototype):c.type==="decl"?Object.setPrototypeOf(c,t.prototype):c.type==="comment"?Object.setPrototypeOf(c,e.prototype):c.type==="root"&&Object.setPrototypeOf(c,u.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(h=>{f.rebuild(h)})},an}var ln,dl;function Uo(){if(dl)return ln;dl=1;let e=gr();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 ln=t,t.default=t,e.registerAtRule(t),ln}var un,pl;function $o(){if(pl)return un;pl=1;let e=gr(),t,r;class i extends e{constructor(o){super(G({type:"document"},o)),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},un=i,i.default=i,un}var cn,ml;function vp(){if(ml)return cn;ml=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return cn={nanoid:(i=21)=>{let s="",o=i|0;for(;o--;)s+=e[Math.random()*64|0];return s},customAlphabet:(i,s=21)=>(o=s)=>{let n="",u=o|0;for(;u--;)n+=i[Math.random()*i.length|0];return n}},cn}var fn,gl;function dc(){if(gl)return fn;gl=1;let{existsSync:e,readFileSync:t}=ct,{dirname:r,join:i}=ct,{SourceMapConsumer:s,SourceMapGenerator:o}=ct;function n(d){return Buffer?Buffer.from(d,"base64").toString():window.atob(d)}class u{constructor(l,a){if(a.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let f=a.map?a.map.prev:void 0,c=this.loadMap(a.from,f);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=r(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let a=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,h=/^data:application\/json,/,p=l.match(c)||l.match(h);if(p)return decodeURIComponent(l.substr(p[0].length));let m=l.match(a)||l.match(f);if(m)return n(l.substr(m[0].length));let g=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let a=l.match(/\/\*\s*# sourceMappingURL=/g);if(!a)return;let f=l.lastIndexOf(a.pop()),c=l.indexOf("*/",f);f>-1&&c>-1&&(this.annotation=this.getAnnotationURL(l.substring(f,c)))}loadFile(l){if(this.root=r(l),e(l))return this.mapFile=l,t(l,"utf-8").toString().trim()}loadMap(l,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let f=a(l);if(f){let c=this.loadFile(f);if(!c)throw new Error("Unable to load previous source map: "+f.toString());return c}}else{if(a instanceof s)return o.fromSourceMap(a).toString();if(a instanceof o)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 f=this.annotation;return l&&(f=i(r(l),f)),this.loadFile(f)}}}startWith(l,a){return l?l.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return fn=u,u.default=u,fn}var hn,vl;function vs(){if(vl)return hn;vl=1;let{nanoid:e}=vp(),{isAbsolute:t,resolve:r}=ct,{SourceMapConsumer:i,SourceMapGenerator:s}=ct,{fileURLToPath:o,pathToFileURL:n}=ct,u=Fo(),d=dc(),l=ct,a=Symbol("lineToIndexCache"),f=!!(i&&s),c=!!(r&&t);function h(m){if(m[a])return m[a];let g=m.css.split(`
|
|
64
|
+
`),w=new Array(g.length),v=0;for(let S=0,E=g.length;S<E;S++)w[S]=v,v+=g[S].length+1;return m[a]=w,w}class p{get from(){return this.file||this.id}constructor(g,w={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,w.document&&(this.document=w.document.toString()),w.from&&(!c||/^\w+:\/\//.test(w.from)||t(w.from)?this.file=w.from:this.file=r(w.from)),c&&f){let v=new d(this.css,w);if(v.text){this.map=v;let S=v.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,w,v,S={}){let E,y,b,_,C;if(w&&typeof w=="object"){let x=w,I=v;if(typeof x.offset=="number"){_=x.offset;let D=this.fromOffset(_);w=D.line,v=D.col}else w=x.line,v=x.column,_=this.fromLineAndColumn(w,v);if(typeof I.offset=="number"){b=I.offset;let D=this.fromOffset(b);y=D.line,E=D.col}else y=I.line,E=I.column,b=this.fromLineAndColumn(I.line,I.column)}else if(v)_=this.fromLineAndColumn(w,v);else{_=w;let x=this.fromOffset(_);w=x.line,v=x.col}let N=this.origin(w,v,y,E);return N?C=new u(g,N.endLine===void 0?N.line:{column:N.column,line:N.line},N.endLine===void 0?N.column:{column:N.endColumn,line:N.endLine},N.source,N.file,S.plugin):C=new u(g,y===void 0?w:{column:v,line:w},y===void 0?v:{column:E,line:y},this.css,this.file,S.plugin),C.input={column:v,endColumn:E,endLine:y,endOffset:b,line:w,offset:_,source:this.css},this.file&&(n&&(C.input.url=n(this.file).toString()),C.input.file=this.file),C}fromLineAndColumn(g,w){return h(this)[g-1]+w-1}fromOffset(g){let w=h(this),v=w[w.length-1],S=0;if(g>=v)S=w.length-1;else{let E=w.length-2,y;for(;S<E;)if(y=S+(E-S>>1),g<w[y])E=y-1;else if(g>=w[y+1])S=y+1;else{S=y;break}}return{col:g-w[S]+1,line:S+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:r(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,w,v,S){if(!this.map)return!1;let E=this.map.consumer(),y=E.originalPositionFor({column:w,line:g});if(!y.source)return!1;let b;typeof v=="number"&&(b=E.originalPositionFor({column:S,line:v}));let _;t(y.source)?_=n(y.source):_=new URL(y.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let C={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:_.toString()};if(_.protocol==="file:")if(o)C.file=o(_);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(y.source);return N&&(C.source=N),C}toJSON(){let g={};for(let w of["hasBOM","css","file","id"])this[w]!=null&&(g[w]=this[w]);return this.map&&(g.map=G({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return hn=p,p.default=p,l&&l.registerInput&&l.registerInput(p),hn}var dn,yl;function mi(){if(yl)return dn;yl=1;let e=gr(),t,r;class i extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,n,u){let d=super.normalize(o);if(n){if(u==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let l of d)l.raws.before=n.raws.before}return d}removeChild(o,n){let u=this.index(o);return!n&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return i.registerLazyResult=s=>{t=s},i.registerProcessor=s=>{r=s},dn=i,i.default=i,e.registerRoot(i),dn}var pn,wl;function pc(){if(wl)return pn;wl=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=[],o="",n=!1,u=0,d=!1,l="",a=!1;for(let f of t)a?a=!1:f==="\\"?a=!0:d?f===l&&(d=!1):f==='"'||f==="'"?(d=!0,l=f):f==="("?u+=1:f===")"?u>0&&(u-=1):u===0&&r.includes(f)&&(n=!0),n?(o!==""&&s.push(o.trim()),o="",n=!1):o+=f;return(i||o!=="")&&s.push(o.trim()),s}};return pn=e,e.default=e,pn}var mn,bl;function Wo(){if(bl)return mn;bl=1;let e=gr(),t=pc();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(s){let o=this.selector?this.selector.match(/,\s*/):null,n=o?o[0]:","+this.raw("between","beforeOpen");this.selector=s.join(n)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return mn=r,r.default=r,e.registerRule(r),mn}var gn,Sl;function yp(){if(Sl)return gn;Sl=1;let e=Uo(),t=ms(),r=gs(),i=vs(),s=dc(),o=mi(),n=Wo();function u(d,l){if(Array.isArray(d))return d.map(p=>u(p));let c=d,{inputs:a}=c,f=Vr(c,["inputs"]);if(a){l=[];for(let p of a){let m=be(G({},p),{__proto__:i.prototype});m.map&&(m.map=be(G({},m.map),{__proto__:s.prototype})),l.push(m)}}if(f.nodes&&(f.nodes=d.nodes.map(p=>u(p,l))),f.source){let h=f.source,{inputId:p}=h,m=Vr(h,["inputId"]);f.source=m,p!=null&&(f.source.input=l[p])}if(f.type==="root")return new o(f);if(f.type==="decl")return new r(f);if(f.type==="rule")return new n(f);if(f.type==="comment")return new t(f);if(f.type==="atrule")return new e(f);throw new Error("Unknown node type: "+d.type)}return gn=u,u.default=u,gn}var vn,_l;function mc(){if(_l)return vn;_l=1;let{dirname:e,relative:t,resolve:r,sep:i}=ct,{SourceMapConsumer:s,SourceMapGenerator:o}=ct,{pathToFileURL:n}=ct,u=vs(),d=!!(s&&o),l=!!(e&&r&&t&&i);class a{constructor(c,h,p,m){this.stringify=c,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 c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let h=`
|
|
66
66
|
`;this.css.includes(`\r
|
|
67
67
|
`)&&(h=`\r
|
|
68
|
-
`),this.css+=h+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let h=this.toUrl(this.path(c.file)),p=c.root||e(c.file),m;this.mapOpts.sourcesContent===!1?(m=new s(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let h=this.root.nodes.length-1;h>=0;h--)c=this.root.nodes[h],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&d&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,h=>{c+=h}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(v,
|
|
69
|
-
`),h=v.length-g):h+=v.length,_&&E!=="start"){let y=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==y.last||y.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=c,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,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(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let h=this.memoizedPaths.get(c);if(h)return h;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(r(p,this.mapOpts.annotation)));let m=t(p,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let h=c.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let c=new u(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!c[p]){c[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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let h=this.memoizedFileURLs.get(c);if(h)return h;if(n){let p=n(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let h=this.memoizedURLs.get(c);if(h)return h;i==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return vn=a,vn}var yn,El;function wp(){if(El)return yn;El=1;const e=39,t=34,r=92,i=47,s=10,o=32,n=12,u=9,d=13,l=91,a=93,f=40,c=41,h=123,p=125,m=59,g=42,w=58,v=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return yn=function(C,N={}){let x=C.css.valueOf(),P=N.ignoreErrors,D,ae,ee,R,ie,L,q,I,z,Ce,we=x.length,O=0,ue=[],k=[];function $(){return O}function Z(se){throw C.error("Unclosed "+se,O)}function B(){return k.length===0&&O>=we}function he(se){if(k.length)return k.pop();if(O>=we)return;let ke=se?se.ignoreUnclosed:!1;switch(D=x.charCodeAt(O),D){case s:case o:case u:case d:case n:{R=O;do R+=1,D=x.charCodeAt(R);while(D===o||D===s||D===u||D===d||D===n);L=["space",x.slice(O,R)],O=R-1;break}case l:case a:case h:case p:case w:case m:case c:{let pt=String.fromCharCode(D);L=[pt,pt,O];break}case f:{if(Ce=ue.length?ue.pop()[1]:"",z=x.charCodeAt(O+1),Ce==="url"&&z!==e&&z!==t&&z!==o&&z!==s&&z!==u&&z!==n&&z!==d){R=O;do{if(q=!1,R=x.indexOf(")",R+1),R===-1)if(P||ke){R=O;break}else Z("bracket");for(I=R;x.charCodeAt(I-1)===r;)I-=1,q=!q}while(q);L=["brackets",x.slice(O,R+1),O,R],O=R}else R=x.indexOf(")",O+1),ae=x.slice(O,R+1),R===-1||y.test(ae)?L=["(","(",O]:(L=["brackets",ae,O,R],O=R);break}case e:case t:{ie=D===e?"'":'"',R=O;do{if(q=!1,R=x.indexOf(ie,R+1),R===-1)if(P||ke){R=O+1;break}else Z("string");for(I=R;x.charCodeAt(I-1)===r;)I-=1,q=!q}while(q);L=["string",x.slice(O,R+1),O,R],O=R;break}case v:{_.lastIndex=O+1,_.test(x),_.lastIndex===0?R=x.length-1:R=_.lastIndex-2,L=["at-word",x.slice(O,R+1),O,R],O=R;break}case r:{for(R=O,ee=!0;x.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(D=x.charCodeAt(R+1),ee&&D!==i&&D!==o&&D!==s&&D!==u&&D!==d&&D!==n&&(R+=1,b.test(x.charAt(R)))){for(;b.test(x.charAt(R+1));)R+=1;x.charCodeAt(R+1)===o&&(R+=1)}L=["word",x.slice(O,R+1),O,R],O=R;break}default:{D===i&&x.charCodeAt(O+1)===g?(R=x.indexOf("*/",O+2)+1,R===0&&(P||ke?R=x.length:Z("comment")),L=["comment",x.slice(O,R+1),O,R],O=R):(E.lastIndex=O+1,E.test(x),E.lastIndex===0?R=x.length-1:R=E.lastIndex-2,L=["word",x.slice(O,R+1),O,R],ue.push(L),O=R);break}}return O++,L}function ce(se){k.push(se)}return{back:ce,endOfFile:B,nextToken:he,position:$}},yn}var wn,Cl;function bp(){if(Cl)return wn;Cl=1;let e=Uo(),t=ms(),r=gs(),i=mi(),s=Wo(),o=wp();const n={empty:!0,space:!0};function u(l){for(let a=l.length-1;a>=0;a--){let f=l[a],c=f[3]||f[2];if(c)return c}}class d{constructor(a){this.input=a,this.root=new i,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 f=new e;f.name=a[1].slice(1),f.name===""&&this.unnamedAtrule(f,a),this.init(f,a[2]);let c,h,p,m=!1,g=!1,w=[],v=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),c=a[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){f.source.end=this.getPosition(a[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(w.length>0){for(p=w.length-1,h=w[p];h&&h[0]==="space";)h=w[--p];h&&(f.source.end=this.getPosition(h[3]||h[2]),f.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(f.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(f,"params",w),m&&(a=w[w.length-1],f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f)}checkMissedSemicolon(a){let f=this.colon(a);if(f===!1)return;let c=0,h;for(let p=f-1;p>=0&&(h=a[p],!(h[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let f=0,c,h,p;for(let[m,g]of a.entries()){if(h=g,p=h[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!c)this.doubleColon(h);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=h}return!1}comment(a){let f=new t;this.init(f,a[2]),f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++;let c=a[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let h=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=h[2],f.raws.left=h[1],f.raws.right=h[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(a,f){let c=new r;this.init(c,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),c.source.end=this.getPosition(h[3]||h[2]||u(a)),c.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),c.raws.before+=a.shift()[1];for(c.source.start=this.getPosition(a[0][2]),c.prop="";a.length;){let v=a[0][0];if(v===":"||v==="space"||v==="comment")break;c.prop+=a.shift()[1]}c.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let v=a.length-1;v>=0;v--){if(p=a[v],p[1].toLowerCase()==="!important"){c.important=!0;let _=this.stringFrom(a,v);_=this.spacesFromEnd(a)+_,_!==" !important"&&(c.raws.important=_);break}else if(p[1].toLowerCase()==="important"){let _=a.slice(0),E="";for(let y=v;y>0;y--){let b=_[y][0];if(E.trim().startsWith("!")&&b!=="space")break;E=_.pop()[1]+E}E.trim().startsWith("!")&&(c.important=!0,c.raws.important=E,a=_)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(c.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(c,"value",m.concat(a),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let f=new s;this.init(f,a[2]),f.selector="",f.raws.between="",this.current=f}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 f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="",f.source.end=this.getPosition(a[2]),f.source.end.offset+=f.raws.ownSemicolon.length)}}getPosition(a){let f=this.input.fromOffset(a);return{column:f.col,line:f.line,offset:a}}init(a,f){this.current.push(a),a.source={input:this.input,start:this.getPosition(f)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let f=!1,c=null,h=!1,p=null,m=[],g=a[1].startsWith("--"),w=[],v=a;for(;v;){if(c=v[0],w.push(v),c==="("||c==="[")p||(p=v),m.push(c==="("?")":"]");else if(g&&h&&c==="{")p||(p=v),m.push("}");else if(m.length===0)if(c===";")if(h){this.decl(w,g);return}else break;else if(c==="{"){this.rule(w);return}else if(c==="}"){this.tokenizer.back(w.pop()),f=!0;break}else c===":"&&(h=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(p),f&&h){if(!g)for(;w.length&&(v=w[w.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}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,f,c,h){let p,m,g=c.length,w="",v=!0,_,E;for(let y=0;y<g;y+=1)p=c[y],m=p[0],m==="space"&&y===g-1&&!h?v=!1:m==="comment"?(E=c[y-1]?c[y-1][0]:"empty",_=c[y+1]?c[y+1][0]:"empty",!n[E]&&!n[_]?w.slice(-1)===","?v=!1:w+=p[1]:v=!1):w+=p[1];if(!v){let y=c.reduce((b,S)=>b+S[1],"");a.raws[f]={raw:y,value:w}}a[f]=w}rule(a){a.pop();let f=new s;this.init(f,a[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(f,"selector",a),this.current=f}spacesAndCommentsFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],!(f!=="space"&&f!=="comment"));)c=a.pop()[1]+c;return c}spacesAndCommentsFromStart(a){let f,c="";for(;a.length&&(f=a[0][0],!(f!=="space"&&f!=="comment"));)c+=a.shift()[1];return c}spacesFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],f==="space");)c=a.pop()[1]+c;return c}stringFrom(a,f){let c="";for(let h=f;h<a.length;h++)c+=a[h][1];return a.splice(f,a.length-f),c}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 "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return wn=d,wn}var bn,xl;function zo(){if(xl)return bn;xl=1;let e=mr(),t=vs(),r=bp();function i(s,o){let n=new t(s,o),u=new r(n);try{u.parse()}catch(d){throw d}return u.root}return bn=i,i.default=i,e.registerParse(i),bn}var _n,Rl;function gc(){if(Rl)return _n;Rl=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 _n=e,e.default=e,_n}var Sn,Ml;function qo(){if(Ml)return Sn;Ml=1;let e=gc();class t{get content(){return this.css}constructor(i,s,o){this.processor=i,this.messages=[],this.root=s,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let o=new e(i,s);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}}return Sn=t,t.default=t,Sn}var En,Nl;function vc(){if(Nl)return En;Nl=1;let e={};return En=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},En}var Cn,Al;function yc(){if(Al)return Cn;Al=1;let e=mr(),t=$o(),r=mc(),i=zo(),s=qo(),o=mi(),n=ds(),{isClean:u,my:d}=Bo(),l=vc();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},c={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let y=!1,b=a[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,h,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",h,"DocumentExit"]:E.type==="root"?y=["Root",h,"RootExit"]:y=m(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function w(E){return E[u]=!1,E.nodes&&E.nodes.forEach(y=>w(y)),E}let v={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,S){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 s)C=w(b.root),b.map&&(typeof S.map=="undefined"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=b.map);else{let N=i;S.syntax&&(N=S.syntax.parse),S.parser&&(N=S.parser),N.parse&&(N=N.parse);try{C=N(b,S)}catch(x){this.processed=!0,this.error=x}C&&!C[d]&&e.rebuild(C)}this.result=new s(y,C,S),this.helpers=be(G({},v),{postcss:v,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?G(G({},N),N.prepare(this.result)):N)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let S=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,S,C)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let S in b){if(!f[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof b[S]=="object")for(let C in b[S])C==="*"?y(b,S,b[S][C]):y(b,S+"-"+C.toLowerCase(),b[S][C]);else typeof b[S]=="function"&&y(b,S,b[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],S=this.runOnRoot(b);if(p(S))try{await S}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];){y[u]=!0;let b=[g(y)];for(;b.length>0;){let S=this.visitTick(b);if(p(S))try{await S}catch(C){let N=b[b.length-1].node;throw this.handleError(C,N)}}}if(this.listeners.OnceExit)for(let[b,S]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(N=>S(N,this.helpers));await Promise.all(C)}else await S(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(S=>y.Once(S,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=n;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];)y[u]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[S,C]of y){this.result.lastPlugin=S;let N;try{N=C(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(N))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:S,visitors:C}=b;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[x,P]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return P(S.toProxy(),this.helpers)}catch(D){throw this.handleError(D,S)}}if(b.iterator!==0){let x=b.iterator,P;for(;P=S.nodes[S.indexes[x]];)if(S.indexes[x]+=1,!P[u]){P[u]=!0,y.push(g(P));return}b.iterator=0,delete S.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){S.nodes&&S.nodes.length&&(S[u]=!0,b.iterator=S.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}y.pop()}walkSync(y){y[u]=!0;let b=m(y);for(let S of b)if(S===h)y.nodes&&y.each(C=>{C[u]||this.walkSync(C)});else{let C=this.listeners[S];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return _.registerPostcss=E=>{v=E},Cn=_,_.default=_,o.registerLazyResult(_),t.registerLazyResult(_),Cn}var xn,Ol;function _p(){if(Ol)return xn;Ol=1;let e=mc(),t=zo();const r=qo();let i=ds(),s=vc();class o{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,d=t;try{u=d(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(u,d,l){d=d.toString(),this.stringified=!1,this._processor=u,this._css=d,this._opts=l,this._map=void 0;let a,f=i;this.result=new r(this._processor,a,this._opts),this.result.css=d;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let h=new e(f,a,this._opts,d);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(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,d){return this.async().then(u,d)}toString(){return this._css}warnings(){return[]}}return xn=o,o.default=o,xn}var Rn,Dl;function Sp(){if(Dl)return Rn;Dl=1;let e=$o(),t=yc(),r=_p(),i=mi();class s{constructor(n=[]){this.version="8.5.6",this.plugins=this.normalize(n)}normalize(n){let u=[];for(let d of n)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))u=u.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)u.push(d);else if(typeof d=="function")u.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return u}process(n,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,n,u):new t(this,n,u)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}}return Rn=s,s.default=s,i.registerProcessor(s),e.registerProcessor(s),Rn}var Mn,Tl;function Ep(){if(Tl)return Mn;Tl=1;let e=Uo(),t=ms(),r=mr(),i=Fo(),s=gs(),o=$o(),n=yp(),u=vs(),d=yc(),l=pc(),a=ps(),f=zo(),c=Sp(),h=qo(),p=mi(),m=Wo(),g=ds(),w=gc();function v(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new c(_)}return v.plugin=function(E,y){let b=!1;function S(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
68
|
+
`),this.css+=h+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let h=this.toUrl(this.path(c.file)),p=c.root||e(c.file),m;this.mapOpts.sourcesContent===!1?(m=new s(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,h,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let h=this.root.nodes.length-1;h>=0;h--)c=this.root.nodes[h],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(h)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&d&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,h=>{c+=h}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=o.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new o({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 o({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,h=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,w;this.stringify(this.root,(v,S,E)=>{if(this.css+=v,S&&E!=="end"&&(m.generated.line=c,m.generated.column=h-1,S.source&&S.source.start?(m.source=this.sourcePath(S),m.original.line=S.source.start.line,m.original.column=S.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),w=v.match(/\n/g),w?(c+=w.length,g=v.lastIndexOf(`
|
|
69
|
+
`),h=v.length-g):h+=v.length,S&&E!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.raws.semicolon)&&(S.source&&S.source.end?(m.source=this.sourcePath(S),m.original.line=S.source.end.line,m.original.column=S.source.end.column-1,m.generated.line=c,m.generated.column=h-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,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(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let h=this.memoizedPaths.get(c);if(h)return h;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(r(p,this.mapOpts.annotation)));let m=t(p,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let h=c.source.input.map;this.previousMaps.includes(h)||this.previousMaps.push(h)}});else{let c=new u(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(h=>{if(h.source){let p=h.source.input.from;if(p&&!c[p]){c[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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let h=this.memoizedFileURLs.get(c);if(h)return h;if(n){let p=n(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let h=this.memoizedURLs.get(c);if(h)return h;i==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return vn=a,vn}var yn,El;function wp(){if(El)return yn;El=1;const e=39,t=34,r=92,i=47,s=10,o=32,n=12,u=9,d=13,l=91,a=93,f=40,c=41,h=123,p=125,m=59,g=42,w=58,v=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return yn=function(C,N={}){let x=C.css.valueOf(),I=N.ignoreErrors,D,ae,ee,R,ie,L,q,P,z,Ce,we=x.length,O=0,ue=[],k=[];function $(){return O}function Z(se){throw C.error("Unclosed "+se,O)}function B(){return k.length===0&&O>=we}function he(se){if(k.length)return k.pop();if(O>=we)return;let ke=se?se.ignoreUnclosed:!1;switch(D=x.charCodeAt(O),D){case s:case o:case u:case d:case n:{R=O;do R+=1,D=x.charCodeAt(R);while(D===o||D===s||D===u||D===d||D===n);L=["space",x.slice(O,R)],O=R-1;break}case l:case a:case h:case p:case w:case m:case c:{let mt=String.fromCharCode(D);L=[mt,mt,O];break}case f:{if(Ce=ue.length?ue.pop()[1]:"",z=x.charCodeAt(O+1),Ce==="url"&&z!==e&&z!==t&&z!==o&&z!==s&&z!==u&&z!==n&&z!==d){R=O;do{if(q=!1,R=x.indexOf(")",R+1),R===-1)if(I||ke){R=O;break}else Z("bracket");for(P=R;x.charCodeAt(P-1)===r;)P-=1,q=!q}while(q);L=["brackets",x.slice(O,R+1),O,R],O=R}else R=x.indexOf(")",O+1),ae=x.slice(O,R+1),R===-1||y.test(ae)?L=["(","(",O]:(L=["brackets",ae,O,R],O=R);break}case e:case t:{ie=D===e?"'":'"',R=O;do{if(q=!1,R=x.indexOf(ie,R+1),R===-1)if(I||ke){R=O+1;break}else Z("string");for(P=R;x.charCodeAt(P-1)===r;)P-=1,q=!q}while(q);L=["string",x.slice(O,R+1),O,R],O=R;break}case v:{S.lastIndex=O+1,S.test(x),S.lastIndex===0?R=x.length-1:R=S.lastIndex-2,L=["at-word",x.slice(O,R+1),O,R],O=R;break}case r:{for(R=O,ee=!0;x.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(D=x.charCodeAt(R+1),ee&&D!==i&&D!==o&&D!==s&&D!==u&&D!==d&&D!==n&&(R+=1,b.test(x.charAt(R)))){for(;b.test(x.charAt(R+1));)R+=1;x.charCodeAt(R+1)===o&&(R+=1)}L=["word",x.slice(O,R+1),O,R],O=R;break}default:{D===i&&x.charCodeAt(O+1)===g?(R=x.indexOf("*/",O+2)+1,R===0&&(I||ke?R=x.length:Z("comment")),L=["comment",x.slice(O,R+1),O,R],O=R):(E.lastIndex=O+1,E.test(x),E.lastIndex===0?R=x.length-1:R=E.lastIndex-2,L=["word",x.slice(O,R+1),O,R],ue.push(L),O=R);break}}return O++,L}function ce(se){k.push(se)}return{back:ce,endOfFile:B,nextToken:he,position:$}},yn}var wn,Cl;function bp(){if(Cl)return wn;Cl=1;let e=Uo(),t=ms(),r=gs(),i=mi(),s=Wo(),o=wp();const n={empty:!0,space:!0};function u(l){for(let a=l.length-1;a>=0;a--){let f=l[a],c=f[3]||f[2];if(c)return c}}class d{constructor(a){this.input=a,this.root=new i,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 f=new e;f.name=a[1].slice(1),f.name===""&&this.unnamedAtrule(f,a),this.init(f,a[2]);let c,h,p,m=!1,g=!1,w=[],v=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),c=a[0],c==="("||c==="["?v.push(c==="("?")":"]"):c==="{"&&v.length>0?v.push("}"):c===v[v.length-1]&&v.pop(),v.length===0)if(c===";"){f.source.end=this.getPosition(a[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(w.length>0){for(p=w.length-1,h=w[p];h&&h[0]==="space";)h=w[--p];h&&(f.source.end=this.getPosition(h[3]||h[2]),f.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(f.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(f,"params",w),m&&(a=w[w.length-1],f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),g&&(f.nodes=[],this.current=f)}checkMissedSemicolon(a){let f=this.colon(a);if(f===!1)return;let c=0,h;for(let p=f-1;p>=0&&(h=a[p],!(h[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",h[0]==="word"?h[3]+1:h[2])}colon(a){let f=0,c,h,p;for(let[m,g]of a.entries()){if(h=g,p=h[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!c)this.doubleColon(h);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=h}return!1}comment(a){let f=new t;this.init(f,a[2]),f.source.end=this.getPosition(a[3]||a[2]),f.source.end.offset++;let c=a[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let h=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=h[2],f.raws.left=h[1],f.raws.right=h[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(a,f){let c=new r;this.init(c,a[0][2]);let h=a[a.length-1];for(h[0]===";"&&(this.semicolon=!0,a.pop()),c.source.end=this.getPosition(h[3]||h[2]||u(a)),c.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),c.raws.before+=a.shift()[1];for(c.source.start=this.getPosition(a[0][2]),c.prop="";a.length;){let v=a[0][0];if(v===":"||v==="space"||v==="comment")break;c.prop+=a.shift()[1]}c.raws.between="";let p;for(;a.length;)if(p=a.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)m.push(a.shift());this.precheckMissedSemicolon(a);for(let v=a.length-1;v>=0;v--){if(p=a[v],p[1].toLowerCase()==="!important"){c.important=!0;let S=this.stringFrom(a,v);S=this.spacesFromEnd(a)+S,S!==" !important"&&(c.raws.important=S);break}else if(p[1].toLowerCase()==="important"){let S=a.slice(0),E="";for(let y=v;y>0;y--){let b=S[y][0];if(E.trim().startsWith("!")&&b!=="space")break;E=S.pop()[1]+E}E.trim().startsWith("!")&&(c.important=!0,c.raws.important=E,a=S)}if(p[0]!=="space"&&p[0]!=="comment")break}a.some(v=>v[0]!=="space"&&v[0]!=="comment")&&(c.raws.between+=m.map(v=>v[1]).join(""),m=[]),this.raw(c,"value",m.concat(a),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let f=new s;this.init(f,a[2]),f.selector="",f.raws.between="",this.current=f}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 f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="",f.source.end=this.getPosition(a[2]),f.source.end.offset+=f.raws.ownSemicolon.length)}}getPosition(a){let f=this.input.fromOffset(a);return{column:f.col,line:f.line,offset:a}}init(a,f){this.current.push(a),a.source={input:this.input,start:this.getPosition(f)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let f=!1,c=null,h=!1,p=null,m=[],g=a[1].startsWith("--"),w=[],v=a;for(;v;){if(c=v[0],w.push(v),c==="("||c==="[")p||(p=v),m.push(c==="("?")":"]");else if(g&&h&&c==="{")p||(p=v),m.push("}");else if(m.length===0)if(c===";")if(h){this.decl(w,g);return}else break;else if(c==="{"){this.rule(w);return}else if(c==="}"){this.tokenizer.back(w.pop()),f=!0;break}else c===":"&&(h=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));v=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(p),f&&h){if(!g)for(;w.length&&(v=w[w.length-1][0],!(v!=="space"&&v!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,g)}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,f,c,h){let p,m,g=c.length,w="",v=!0,S,E;for(let y=0;y<g;y+=1)p=c[y],m=p[0],m==="space"&&y===g-1&&!h?v=!1:m==="comment"?(E=c[y-1]?c[y-1][0]:"empty",S=c[y+1]?c[y+1][0]:"empty",!n[E]&&!n[S]?w.slice(-1)===","?v=!1:w+=p[1]:v=!1):w+=p[1];if(!v){let y=c.reduce((b,_)=>b+_[1],"");a.raws[f]={raw:y,value:w}}a[f]=w}rule(a){a.pop();let f=new s;this.init(f,a[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(f,"selector",a),this.current=f}spacesAndCommentsFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],!(f!=="space"&&f!=="comment"));)c=a.pop()[1]+c;return c}spacesAndCommentsFromStart(a){let f,c="";for(;a.length&&(f=a[0][0],!(f!=="space"&&f!=="comment"));)c+=a.shift()[1];return c}spacesFromEnd(a){let f,c="";for(;a.length&&(f=a[a.length-1][0],f==="space");)c=a.pop()[1]+c;return c}stringFrom(a,f){let c="";for(let h=f;h<a.length;h++)c+=a[h][1];return a.splice(f,a.length-f),c}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 "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return wn=d,wn}var bn,xl;function zo(){if(xl)return bn;xl=1;let e=gr(),t=vs(),r=bp();function i(s,o){let n=new t(s,o),u=new r(n);try{u.parse()}catch(d){throw d}return u.root}return bn=i,i.default=i,e.registerParse(i),bn}var Sn,Rl;function gc(){if(Rl)return Sn;Rl=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 Sn=e,e.default=e,Sn}var _n,Ml;function qo(){if(Ml)return _n;Ml=1;let e=gc();class t{get content(){return this.css}constructor(i,s,o){this.processor=i,this.messages=[],this.root=s,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(i,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let o=new e(i,s);return this.messages.push(o),o}warnings(){return this.messages.filter(i=>i.type==="warning")}}return _n=t,t.default=t,_n}var En,Nl;function vc(){if(Nl)return En;Nl=1;let e={};return En=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},En}var Cn,Al;function yc(){if(Al)return Cn;Al=1;let e=gr(),t=$o(),r=mc(),i=zo(),s=qo(),o=mi(),n=ds(),{isClean:u,my:d}=Bo(),l=vc();const a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},c={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function p(E){return typeof E=="object"&&typeof E.then=="function"}function m(E){let y=!1,b=a[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[b,b+"-"+y,h,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:E.append?[b,h,b+"Exit"]:[b,b+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",h,"DocumentExit"]:E.type==="root"?y=["Root",h,"RootExit"]:y=m(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function w(E){return E[u]=!1,E.nodes&&E.nodes.forEach(y=>w(y)),E}let v={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,_){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 S||b instanceof s)C=w(b.root),b.map&&(typeof _.map=="undefined"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let N=i;_.syntax&&(N=_.syntax.parse),_.parser&&(N=_.parser),N.parse&&(N=N.parse);try{C=N(b,_)}catch(x){this.processed=!0,this.error=x}C&&!C[d]&&e.rebuild(C)}this.result=new s(y,C,_),this.helpers=be(G({},v),{postcss:v,result:this.result}),this.plugins=this.processor.plugins.map(N=>typeof N=="object"&&N.prepare?G(G({},N),N.prepare(this.result)):N)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!f[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(p(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];){y[u]=!0;let b=[g(y)];for(;b.length>0;){let _=this.visitTick(b);if(p(_))try{await _}catch(C){let N=b[b.length-1].node;throw this.handleError(C,N)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(N=>_(N,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return p(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=n;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new r(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(p(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[u];)y[u]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let N;try{N=C(b,this.helpers)}catch(x){throw this.handleError(x,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(p(N))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[x,I]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=x;try{return I(_.toProxy(),this.helpers)}catch(D){throw this.handleError(D,_)}}if(b.iterator!==0){let x=b.iterator,I;for(;I=_.nodes[_.indexes[x]];)if(_.indexes[x]+=1,!I[u]){I[u]=!0,y.push(g(I));return}b.iterator=0,delete _.indexes[x]}let N=b.events;for(;b.eventIndex<N.length;){let x=N[b.eventIndex];if(b.eventIndex+=1,x===h){_.nodes&&_.nodes.length&&(_[u]=!0,b.iterator=_.getIterator());return}else if(this.listeners[x]){b.visitors=this.listeners[x];return}}y.pop()}walkSync(y){y[u]=!0;let b=m(y);for(let _ of b)if(_===h)y.nodes&&y.each(C=>{C[u]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{v=E},Cn=S,S.default=S,o.registerLazyResult(S),t.registerLazyResult(S),Cn}var xn,Ol;function Sp(){if(Ol)return xn;Ol=1;let e=mc(),t=zo();const r=qo();let i=ds(),s=vc();class o{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,d=t;try{u=d(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(u,d,l){d=d.toString(),this.stringified=!1,this._processor=u,this._css=d,this._opts=l,this._map=void 0;let a,f=i;this.result=new r(this._processor,a,this._opts),this.result.css=d;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let h=new e(f,a,this._opts,d);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(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,d){return this.async().then(u,d)}toString(){return this._css}warnings(){return[]}}return xn=o,o.default=o,xn}var Rn,Dl;function _p(){if(Dl)return Rn;Dl=1;let e=$o(),t=yc(),r=Sp(),i=mi();class s{constructor(n=[]){this.version="8.5.6",this.plugins=this.normalize(n)}normalize(n){let u=[];for(let d of n)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))u=u.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)u.push(d);else if(typeof d=="function")u.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return u}process(n,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new r(this,n,u):new t(this,n,u)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}}return Rn=s,s.default=s,i.registerProcessor(s),e.registerProcessor(s),Rn}var Mn,Tl;function Ep(){if(Tl)return Mn;Tl=1;let e=Uo(),t=ms(),r=gr(),i=Fo(),s=gs(),o=$o(),n=yp(),u=vs(),d=yc(),l=pc(),a=ps(),f=zo(),c=_p(),h=qo(),p=mi(),m=Wo(),g=ds(),w=gc();function v(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new c(S)}return v.plugin=function(E,y){let b=!1;function _(...N){console&&console.warn&&!b&&(b=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
70
70
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
71
|
-
https://www.w3ctech.com/topic/2226`));let x=y(...N);return x.postcssPlugin=E,x.postcssVersion=new c().version,x}let C;return Object.defineProperty(S,"postcss",{get(){return C||(C=S()),C}}),S.process=function(N,x,P){return v([S(P)]).process(N,x)},S},v.stringify=g,v.parse=f,v.fromJSON=n,v.list=l,v.comment=_=>new t(_),v.atRule=_=>new e(_),v.decl=_=>new s(_),v.rule=_=>new m(_),v.root=_=>new p(_),v.document=_=>new o(_),v.CssSyntaxError=i,v.Declaration=s,v.Container=r,v.Processor=c,v.Document=o,v.Comment=t,v.Warning=w,v.AtRule=e,v.Result=h,v.Input=u,v.Rule=m,v.Root=p,v.Node=a,d.registerPostcss(v),Mn=v,v.default=v,Mn}var Cp=Ep();const ge=hp(Cp);ge.stringify;ge.fromJSON;ge.plugin;ge.parse;ge.list;ge.document;ge.comment;ge.atRule;ge.rule;ge.decl;ge.root;ge.CssSyntaxError;ge.Declaration;ge.Container;ge.Processor;ge.Document;ge.Comment;ge.Warning;ge.AtRule;ge.Result;ge.Input;ge.Rule;ge.Root;ge.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(o){if(o){const n=o.split(i);n.length>1&&(t[ro(n[0].trim())]=n[1].trim())}}),t}function kl(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=Ap(r);t.push(`${s}: ${i};`)}return t.join(" ")}const Rp=/-([a-z])/g,Mp=/^--[a-zA-Z0-9-]+$/,ro=e=>Mp.test(e)?e:e.replace(Rp,(t,r)=>r?r.toUpperCase():""),Np=/\B([A-Z])/g,Ap=e=>e.replace(Np,"-$1").toLowerCase();class dt{constructor(...t){T(this,"parentElement",null),T(this,"parentNode",null),T(this,"ownerDocument"),T(this,"firstChild",null),T(this,"lastChild",null),T(this,"previousSibling",null),T(this,"nextSibling",null),T(this,"ELEMENT_NODE",1),T(this,"TEXT_NODE",3),T(this,"nodeType"),T(this,"nodeName"),T(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof 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),T(this,"nodeType",9),T(this,"nodeName","#document"),T(this,"compatMode","CSS1Compat"),T(this,"RRNodeType",V.Document),T(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(o=>o.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(),T(this,"nodeType",10),T(this,"RRNodeType",V.DocumentType),T(this,"name"),T(this,"publicId"),T(this,"systemId"),T(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(),T(this,"nodeType",1),T(this,"RRNodeType",V.Element),T(this,"tagName"),T(this,"attributes",{}),T(this,"shadowRoot",null),T(this,"scrollLeft"),T(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new 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,o)=>{if(r.test(i))return;const n=ro(i);s?t[n]=s:delete t[n],o==="important"&&(t[n]+=" !important"),this.attributes.style=kl(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=ro(i),o=t[s]||"";return delete t[s],this.attributes.style=kl(t),o},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 Op extends ys{constructor(){super(...arguments),T(this,"currentTime"),T(this,"volume"),T(this,"paused"),T(this,"muted"),T(this,"playbackRate"),T(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class Dp extends ys{constructor(){super(...arguments),T(this,"tagName","DIALOG"),T(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class bc extends dt{constructor(t){super(),T(this,"nodeType",3),T(this,"nodeName","#text"),T(this,"RRNodeType",V.Text),T(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class _c extends dt{constructor(t){super(),T(this,"nodeType",8),T(this,"nodeName","#comment"),T(this,"RRNodeType",V.Comment),T(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class Sc extends dt{constructor(t){super(),T(this,"nodeName","#cdata-section"),T(this,"nodeType",4),T(this,"RRNodeType",V.CDATA),T(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class Tp{constructor(t,r){if(T(this,"onChange"),T(this,"classes",[]),T(this,"add",(...i)=>{for(const s of i){const o=String(s);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),T(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=Ip(e,t,r,i),xc(e,t,r,i),Pp(e,t,r)}function Ip(e,t,r,i){var s;if(r.afterAppend&&!yt&&(yt=new WeakSet,setTimeout(()=>{yt=null},0)),!Go(e,t)){const o=Gi(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(o,e),e=o}switch(t.RRNodeType){case V.Document:{if(!_r(e,t,r.mirror,i)){const o=i.getMeta(t);o&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,o),yt==null||yt.add(e))}break}case V.Element:{const o=e,n=t;switch(n.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Vi(u,t.contentDocument,r,i);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),xc(o.shadowRoot,n.shadowRoot,r,i)),Lp(o,n,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,o=t;switch(o.scrollData&&r.applyScroll(o.scrollData,!0),o.inputData&&r.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{const n=e,u=o;u.paused!==void 0&&(u.paused?n.pause():n.play()),u.muted!==void 0&&(n.muted=u.muted),u.volume!==void 0&&(n.volume=u.volume),u.currentTime!==void 0&&(n.currentTime=u.currentTime),u.playbackRate!==void 0&&(n.playbackRate=u.playbackRate),u.loop!==void 0&&(n.loop=u.loop);break}case"CANVAS":{const n=t;if(n.rr_dataURL!==null){const u=document.createElement("img");u.onload=()=>{const d=s.getContext("2d");d&&d.drawImage(u,0,0,u.width,u.height)},u.src=n.rr_dataURL}n.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break}case"STYLE":{const n=s.sheet;n&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,n));break}case"DIALOG":{const n=s,u=o,d=n.open,l=n.matches("dialog:modal"),a=u.open,f=u.isModal,c=l!==f,h=d!==a;if((c||d&&h)&&n.close(),a&&(h||c))try{f?n.showModal():n.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 o in s){const n=s[o],u=r.getMeta(t);if(u!=null&&u.isSVG&&io[o])e.setAttributeNS(io[o],o,n);else if(t.tagName==="CANVAS"&&o==="rr_dataURL"){const d=document.createElement("img");d.src=n,d.onload=()=>{const l=e.getContext("2d");l&&l.drawImage(d,0,0,d.width,d.height)}}else{if(t.tagName==="IFRAME"&&o==="srcdoc")continue;try{e.setAttribute(o,n)}catch(d){console.warn(d)}}}for(const{name:o}of Array.from(i))o in s||e.removeAttribute(o);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function xc(e,t,r,i){const s=Array.from(e.childNodes),o=t.childNodes;if(s.length===0&&o.length===0)return;let n=0,u=s.length-1,d=0,l=o.length-1,a=s[n],f=s[u],c=o[d],h=o[l],p,m;for(;n<=u&&d<=l;)if(a===void 0)a=s[++n];else if(f===void 0)f=s[--u];else if(_r(a,c,r.mirror,i))a=s[++n],c=o[++d];else if(_r(f,h,r.mirror,i))f=s[--u],h=o[--l];else if(_r(a,h,r.mirror,i)){try{e.insertBefore(a,f.nextSibling)}catch(v){console.warn(v)}a=s[++n],h=o[--l]}else if(_r(f,c,r.mirror,i)){try{e.insertBefore(f,a)}catch(v){console.warn(v)}f=s[--u],c=o[++d]}else{if(!p){p={};for(let _=n;_<=u;_++){const E=s[_];E&&r.mirror.hasNode(E)&&(p[r.mirror.getId(E)]=_)}}m=p[i.getId(c)];const v=s[m];if(m!==void 0&&v&&_r(v,c,r.mirror,i)){try{e.insertBefore(v,a)}catch(_){console.warn(_)}s[m]=void 0}else{const _=Gi(c,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[++n]);try{e.insertBefore(_,a||null)}catch(E){console.warn(E)}}c=o[++d]}if(n>u){const v=o[l+1];let _=null;for(v&&(_=r.mirror.getNode(i.getId(v)));d<=l;++d){const E=Gi(o[d],r.mirror,i);try{e.insertBefore(E,_)}catch(y){console.warn(y)}}}else if(d>l)for(;n<=u;n++){const v=s[n];if(!(!v||v.parentNode!==e))try{e.removeChild(v),r.mirror.removeNodeFromMap(v)}catch(_){console.warn(_)}}let g=e.firstChild,w=t.firstChild;for(;g!==null&&w!==null;)Vi(g,w,r,i),g=g.nextSibling,w=w.nextSibling}function Gi(e,t,r){const i=r.getId(e),s=r.getMeta(e);let o=null;if(i>-1&&(o=t.getNode(i)),o!==null&&Go(o,e))return o;switch(e.RRNodeType){case V.Document:o=new Document;break;case V.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case V.Element:{let n=e.tagName.toLowerCase();n=kp[n]||n,s&&"isSVG"in s&&(s!=null&&s.isSVG)?o=document.createElementNS(io.svg,n):o=document.createElement(e.tagName);break}case V.Text:o=document.createTextNode(e.data);break;case V.Comment:o=document.createComment(e.data);break;case V.CDATA:o=document.createCDATASection(e.data);break}s&&t.add(o,G({},s));try{yt==null||yt.add(o)}catch(n){}return o}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),o=i.getId(t);return s===-1||s!==o?!1:Go(e,t)}class qr extends jo{constructor(t){super(),T(this,"UNSERIALIZED_STARTING_ID",-2),T(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),T(this,"mirror",Yp()),T(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 Bp(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 Up(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),T(this,"inputData",null),T(this,"scrollData",null)}}class Bp extends Op{}class Up extends Dp{}class $p extends ws{constructor(){super(...arguments),T(this,"rr_dataURL",null),T(this,"canvasMutations",[])}getContext(){return null}}class Wp extends ws{constructor(){super(...arguments),T(this,"rules",[])}}class zp extends ws{constructor(t,r){super(t),T(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 n=e;s=t.createDocumentType(n.name,n.publicId,n.systemId);break}case We.ELEMENT_NODE:{const n=e,u=Gp(n);s=t.createElement(u);const d=s;for(const{name:l,value:a}of Array.from(n.attributes))d.attributes[l]=a;n.scrollLeft&&(d.scrollLeft=n.scrollLeft),n.scrollTop&&(d.scrollTop=n.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 o=r.getMeta(e);return t instanceof qr&&(o||(o=so(s,t.unserializedId),r.add(e,o)),t.mirror.add(s,G({},o))),s}function Hp(e,t=fp(),r=new qr){function i(s,o){const n=Rc(s,r,t,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&s.nodeType!==We.DOCUMENT_FRAGMENT_NODE&&(o==null||o.appendChild(n),n.parentNode=o,n.parentElement=o),s.nodeName==="IFRAME"){const u=s.contentDocument;u&&i(u,n)}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,n),s.childNodes.forEach(u=>i(u,n)))}return i(e,null),r}function Yp(){return new Jp}class Jp{constructor(){T(this,"idNodeMap",new Map),T(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 Il={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mi={};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(Mi[e])return Mi[e];const t=Xp(e)||globalThis[e],r=t.prototype,i=e in Il?Il[e]:void 0,s=!!(i&&i.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),o=e in Pl?Pl[e]:void 0,n=!!(o&&o.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&n)return Mi[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const d=u.contentWindow;if(!d)return t.prototype;const l=d[e].prototype;return document.body.removeChild(u),l?Mi[e]=l:r}catch(u){return r}}const Nn={};function Xt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Nn[s])return Nn[s].call(t);const o=Ho(e),n=(i=Object.getOwnPropertyDescriptor(o,r))==null?void 0:i.get;return n?(Nn[s]=n,n.call(t)):t[r]}const An={};function Mc(e,t,r){const i=`${e}.${String(r)}`;if(An[i])return An[i].bind(t);const o=Ho(e)[r];return typeof o!="function"?t[r]:(An[i]=o,o.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 Mc("Node",e,"contains")(t)}function rm(e){return Mc("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
|
|
71
|
+
https://www.w3ctech.com/topic/2226`));let x=y(...N);return x.postcssPlugin=E,x.postcssVersion=new c().version,x}let C;return Object.defineProperty(_,"postcss",{get(){return C||(C=_()),C}}),_.process=function(N,x,I){return v([_(I)]).process(N,x)},_},v.stringify=g,v.parse=f,v.fromJSON=n,v.list=l,v.comment=S=>new t(S),v.atRule=S=>new e(S),v.decl=S=>new s(S),v.rule=S=>new m(S),v.root=S=>new p(S),v.document=S=>new o(S),v.CssSyntaxError=i,v.Declaration=s,v.Container=r,v.Processor=c,v.Document=o,v.Comment=t,v.Warning=w,v.AtRule=e,v.Result=h,v.Input=u,v.Rule=m,v.Root=p,v.Node=a,d.registerPostcss(v),Mn=v,v.default=v,Mn}var Cp=Ep();const ge=hp(Cp);ge.stringify;ge.fromJSON;ge.plugin;ge.parse;ge.list;ge.document;ge.comment;ge.atRule;ge.rule;ge.decl;ge.root;ge.CssSyntaxError;ge.Declaration;ge.Container;ge.Processor;ge.Document;ge.Comment;ge.Warning;ge.AtRule;ge.Result;ge.Input;ge.Rule;ge.Root;ge.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(o){if(o){const n=o.split(i);n.length>1&&(t[ro(n[0].trim())]=n[1].trim())}}),t}function kl(e){const t=[];for(const r in e){const i=e[r];if(typeof i!="string")continue;const s=Ap(r);t.push(`${s}: ${i};`)}return t.join(" ")}const Rp=/-([a-z])/g,Mp=/^--[a-zA-Z0-9-]+$/,ro=e=>Mp.test(e)?e:e.replace(Rp,(t,r)=>r?r.toUpperCase():""),Np=/\B([A-Z])/g,Ap=e=>e.replace(Np,"-$1").toLowerCase();class pt{constructor(...t){T(this,"parentElement",null),T(this,"parentNode",null),T(this,"ownerDocument"),T(this,"firstChild",null),T(this,"lastChild",null),T(this,"previousSibling",null),T(this,"nextSibling",null),T(this,"ELEMENT_NODE",1),T(this,"TEXT_NODE",3),T(this,"nodeType"),T(this,"nodeName"),T(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof pt){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 pt{constructor(...t){super(t),T(this,"nodeType",9),T(this,"nodeName","#document"),T(this,"compatMode","CSS1Compat"),T(this,"RRNodeType",V.Document),T(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(o=>o.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 Sc(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new _c(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}}class wc extends pt{constructor(t,r,i){super(),T(this,"nodeType",10),T(this,"RRNodeType",V.DocumentType),T(this,"name"),T(this,"publicId"),T(this,"systemId"),T(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=i,this.nodeName=t}toString(){return"RRDocumentType"}}class ys extends pt{constructor(t){super(),T(this,"nodeType",1),T(this,"RRNodeType",V.Element),T(this,"tagName"),T(this,"attributes",{}),T(this,"shadowRoot",null),T(this,"scrollLeft"),T(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new 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,o)=>{if(r.test(i))return;const n=ro(i);s?t[n]=s:delete t[n],o==="important"&&(t[n]+=" !important"),this.attributes.style=kl(t)},t.removeProperty=i=>{if(r.test(i))return"";const s=ro(i),o=t[s]||"";return delete t[s],this.attributes.style=kl(t),o},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 Op extends ys{constructor(){super(...arguments),T(this,"currentTime"),T(this,"volume"),T(this,"paused"),T(this,"muted"),T(this,"playbackRate"),T(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class Dp extends ys{constructor(){super(...arguments),T(this,"tagName","DIALOG"),T(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class bc extends pt{constructor(t){super(),T(this,"nodeType",3),T(this,"nodeName","#text"),T(this,"RRNodeType",V.Text),T(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class Sc extends pt{constructor(t){super(),T(this,"nodeType",8),T(this,"nodeName","#comment"),T(this,"RRNodeType",V.Comment),T(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class _c extends pt{constructor(t){super(),T(this,"nodeName","#cdata-section"),T(this,"nodeType",4),T(this,"RRNodeType",V.CDATA),T(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class Tp{constructor(t,r){if(T(this,"onChange"),T(this,"classes",[]),T(this,"add",(...i)=>{for(const s of i){const o=String(s);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),T(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 wt=null;function Vi(e,t,r,i=t.mirror||t.ownerDocument.mirror){e=Ip(e,t,r,i),xc(e,t,r,i),Pp(e,t,r)}function Ip(e,t,r,i){var s;if(r.afterAppend&&!wt&&(wt=new WeakSet,setTimeout(()=>{wt=null},0)),!Go(e,t)){const o=Gi(t,r.mirror,i);(s=e.parentNode)==null||s.replaceChild(o,e),e=o}switch(t.RRNodeType){case V.Document:{if(!Sr(e,t,r.mirror,i)){const o=i.getMeta(t);o&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,o),wt==null||wt.add(e))}break}case V.Element:{const o=e,n=t;switch(n.tagName){case"IFRAME":{const u=e.contentDocument;if(!u)break;Vi(u,t.contentDocument,r,i);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),xc(o.shadowRoot,n.shadowRoot,r,i)),Lp(o,n,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,o=t;switch(o.scrollData&&r.applyScroll(o.scrollData,!0),o.inputData&&r.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{const n=e,u=o;u.paused!==void 0&&(u.paused?n.pause():n.play()),u.muted!==void 0&&(n.muted=u.muted),u.volume!==void 0&&(n.volume=u.volume),u.currentTime!==void 0&&(n.currentTime=u.currentTime),u.playbackRate!==void 0&&(n.playbackRate=u.playbackRate),u.loop!==void 0&&(n.loop=u.loop);break}case"CANVAS":{const n=t;if(n.rr_dataURL!==null){const u=document.createElement("img");u.onload=()=>{const d=s.getContext("2d");d&&d.drawImage(u,0,0,u.width,u.height)},u.src=n.rr_dataURL}n.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break}case"STYLE":{const n=s.sheet;n&&t.rules.forEach(u=>r.applyStyleSheetMutation(u,n));break}case"DIALOG":{const n=s,u=o,d=n.open,l=n.matches("dialog:modal"),a=u.open,f=u.isModal,c=l!==f,h=d!==a;if((c||d&&h)&&n.close(),a&&(h||c))try{f?n.showModal():n.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}}wt!=null&&wt.has(e)&&(wt.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 o in s){const n=s[o],u=r.getMeta(t);if(u!=null&&u.isSVG&&io[o])e.setAttributeNS(io[o],o,n);else if(t.tagName==="CANVAS"&&o==="rr_dataURL"){const d=document.createElement("img");d.src=n,d.onload=()=>{const l=e.getContext("2d");l&&l.drawImage(d,0,0,d.width,d.height)}}else{if(t.tagName==="IFRAME"&&o==="srcdoc")continue;try{e.setAttribute(o,n)}catch(d){console.warn(d)}}}for(const{name:o}of Array.from(i))o in s||e.removeAttribute(o);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function xc(e,t,r,i){const s=Array.from(e.childNodes),o=t.childNodes;if(s.length===0&&o.length===0)return;let n=0,u=s.length-1,d=0,l=o.length-1,a=s[n],f=s[u],c=o[d],h=o[l],p,m;for(;n<=u&&d<=l;)if(a===void 0)a=s[++n];else if(f===void 0)f=s[--u];else if(Sr(a,c,r.mirror,i))a=s[++n],c=o[++d];else if(Sr(f,h,r.mirror,i))f=s[--u],h=o[--l];else if(Sr(a,h,r.mirror,i)){try{e.insertBefore(a,f.nextSibling)}catch(v){console.warn(v)}a=s[++n],h=o[--l]}else if(Sr(f,c,r.mirror,i)){try{e.insertBefore(f,a)}catch(v){console.warn(v)}f=s[--u],c=o[++d]}else{if(!p){p={};for(let S=n;S<=u;S++){const E=s[S];E&&r.mirror.hasNode(E)&&(p[r.mirror.getId(E)]=S)}}m=p[i.getId(c)];const v=s[m];if(m!==void 0&&v&&Sr(v,c,r.mirror,i)){try{e.insertBefore(v,a)}catch(S){console.warn(S)}s[m]=void 0}else{const S=Gi(c,r.mirror,i);e.nodeName==="#document"&&a&&(S.nodeType===S.DOCUMENT_TYPE_NODE&&a.nodeType===a.DOCUMENT_TYPE_NODE||S.nodeType===S.ELEMENT_NODE&&a.nodeType===a.ELEMENT_NODE)&&(e.removeChild(a),r.mirror.removeNodeFromMap(a),a=s[++n]);try{e.insertBefore(S,a||null)}catch(E){console.warn(E)}}c=o[++d]}if(n>u){const v=o[l+1];let S=null;for(v&&(S=r.mirror.getNode(i.getId(v)));d<=l;++d){const E=Gi(o[d],r.mirror,i);try{e.insertBefore(E,S)}catch(y){console.warn(y)}}}else if(d>l)for(;n<=u;n++){const v=s[n];if(!(!v||v.parentNode!==e))try{e.removeChild(v),r.mirror.removeNodeFromMap(v)}catch(S){console.warn(S)}}let g=e.firstChild,w=t.firstChild;for(;g!==null&&w!==null;)Vi(g,w,r,i),g=g.nextSibling,w=w.nextSibling}function Gi(e,t,r){const i=r.getId(e),s=r.getMeta(e);let o=null;if(i>-1&&(o=t.getNode(i)),o!==null&&Go(o,e))return o;switch(e.RRNodeType){case V.Document:o=new Document;break;case V.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case V.Element:{let n=e.tagName.toLowerCase();n=kp[n]||n,s&&"isSVG"in s&&(s!=null&&s.isSVG)?o=document.createElementNS(io.svg,n):o=document.createElement(e.tagName);break}case V.Text:o=document.createTextNode(e.data);break;case V.Comment:o=document.createComment(e.data);break;case V.CDATA:o=document.createCDATASection(e.data);break}s&&t.add(o,G({},s));try{wt==null||wt.add(o)}catch(n){}return o}function Go(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Sr(e,t,r,i){const s=r.getId(e),o=i.getId(t);return s===-1||s!==o?!1:Go(e,t)}class qr extends jo{constructor(t){super(),T(this,"UNSERIALIZED_STARTING_ID",-2),T(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),T(this,"mirror",Yp()),T(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 Bp(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 Up(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),T(this,"inputData",null),T(this,"scrollData",null)}}class Bp extends Op{}class Up extends Dp{}class $p extends ws{constructor(){super(...arguments),T(this,"rr_dataURL",null),T(this,"canvasMutations",[])}getContext(){return null}}class Wp extends ws{constructor(){super(...arguments),T(this,"rules",[])}}class zp extends ws{constructor(t,r){super(t),T(this,"contentDocument",new qr),this.contentDocument.mirror=r}}const qp=bc,jp=Sc,Vp=_c;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 n=e;s=t.createDocumentType(n.name,n.publicId,n.systemId);break}case We.ELEMENT_NODE:{const n=e,u=Gp(n);s=t.createElement(u);const d=s;for(const{name:l,value:a}of Array.from(n.attributes))d.attributes[l]=a;n.scrollLeft&&(d.scrollLeft=n.scrollLeft),n.scrollTop&&(d.scrollTop=n.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 o=r.getMeta(e);return t instanceof qr&&(o||(o=so(s,t.unserializedId),r.add(e,o)),t.mirror.add(s,G({},o))),s}function Hp(e,t=fp(),r=new qr){function i(s,o){const n=Rc(s,r,t,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&s.nodeType!==We.DOCUMENT_FRAGMENT_NODE&&(o==null||o.appendChild(n),n.parentNode=o,n.parentElement=o),s.nodeName==="IFRAME"){const u=s.contentDocument;u&&i(u,n)}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,n),s.childNodes.forEach(u=>i(u,n)))}return i(e,null),r}function Yp(){return new Jp}class Jp{constructor(){T(this,"idNodeMap",new Map),T(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 Il={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mi={};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(Mi[e])return Mi[e];const t=Xp(e)||globalThis[e],r=t.prototype,i=e in Il?Il[e]:void 0,s=!!(i&&i.every(u=>{var d,l;return!!((l=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&l.toString().includes("[native code]"))})),o=e in Pl?Pl[e]:void 0,n=!!(o&&o.every(u=>{var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&n)return Mi[e]=t.prototype,t.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const d=u.contentWindow;if(!d)return t.prototype;const l=d[e].prototype;return document.body.removeChild(u),l?Mi[e]=l:r}catch(u){return r}}const Nn={};function Qt(e,t,r){var i;const s=`${e}.${String(r)}`;if(Nn[s])return Nn[s].call(t);const o=Ho(e),n=(i=Object.getOwnPropertyDescriptor(o,r))==null?void 0:i.get;return n?(Nn[s]=n,n.call(t)):t[r]}const An={};function Mc(e,t,r){const i=`${e}.${String(r)}`;if(An[i])return An[i].bind(t);const o=Ho(e)[r];return typeof o!="function"?t[r]:(An[i]=o,o.bind(t))}function Qp(e){return Qt("Node",e,"childNodes")}function Kp(e){return Qt("Node",e,"parentNode")}function Zp(e){return Qt("Node",e,"parentElement")}function em(e){return Qt("Node",e,"textContent")}function tm(e,t){return Mc("Node",e,"contains")(t)}function rm(e){return Mc("Node",e,"getRootNode")()}function im(e){return!e||!("host"in e)?null:Qt("ShadowRoot",e,"host")}function sm(e){return e.styleSheets}function nm(e){return!e||!("shadowRoot"in e)?null:Qt("Element",e,"shadowRoot")}function om(e,t){return Qt("Element",e,"querySelector")(t)}function am(e,t){return Qt("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},_r=`Please stop import mirror directly. Instead of that,\r
|
|
72
72
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
73
|
-
or you can use record.mirror to access the mirror instance during recording.`;let Ll={map:{},getId(){return console.error(
|
|
73
|
+
or you can use record.mirror to access the mirror instance during recording.`;let Ll={map:{},getId(){return console.error(_r),-1},getNode(){return console.error(_r),null},removeNodeFromMap(){console.error(_r)},has(){return console.error(_r),!1},reset(){console.error(_r)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ll=new Proxy(Ll,{get(e,t,r){return t==="map"&&console.error(_r),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,o)=>{const n={value:s,parent:o,children:[]};return t[s.node.id]=n,n},i=[];for(const s of e){const{nextId:o,parentId:n}=s;if(o&&o in t){const u=t[o];if(u.parent){const d=u.parent.children.indexOf(u);u.parent.children.splice(d,0,r(s,u.parent))}else{const d=i.indexOf(u);i.splice(d,0,r(s,null))}continue}if(n in t){const u=t[n];u.children.push(r(s,u));continue}i.push(r(s,null))}return i}function Nc(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Nc(e.children[r],t)}function On(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Ac(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 o=s.getBoundingClientRect(),n=Ac(s,t),u=o.height/s.clientHeight;return{x:o.x*n.relativeScale+n.x,y:o.y*n.relativeScale+n.y,relativeScale:u,absoluteScale:n.absoluteScale*u}}function Et(e){return e?e instanceof pt&&"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(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let 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 te=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(te||{}),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||{}),Ge=(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))(Ge||{}),Bl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ei=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Ni=0;Ni<Bl.length;Ni++)ei[Bl.charCodeAt(Ni)]=Ni;var pm=function(e){var t=e.length*.75,r=e.length,i,s=0,o,n,u,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=new ArrayBuffer(t),a=new Uint8Array(l);for(i=0;i<r;i+=4)o=ei[e.charCodeAt(i)],n=ei[e.charCodeAt(i+1)],u=ei[e.charCodeAt(i+2)],d=ei[e.charCodeAt(i+3)],a[s++]=o<<2|n>>4,a[s++]=(n&15)<<4|u>>2,a[s++]=(u&3)<<6|d&63;return l};const mm=`(function() {
|
|
74
74
|
"use strict";
|
|
75
75
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
76
76
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
@@ -145,7 +145,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
|
|
|
145
145
|
};
|
|
146
146
|
})();
|
|
147
147
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
148
|
-
`;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){F(this,"entries",[]),F(this,"maxEntries"),this.maxEntries=t}add(t,r,i){const s={type:te.FullSnapshot,data:{node:r,initialOffset:i},timestamp:t},o={timestamp:t,event:s};if(!this.entries.length||this.entries[this.entries.length-1].timestamp<t)this.entries.push(o);else{let n=0,u=this.entries.length-1;for(;n<=u;){const d=n+u>>>1;this.entries[d].timestamp<=t?n=d+1:u=d-1}n>0&&this.entries[n-1].timestamp===t?this.entries[n-1]=o:this.entries.splice(n,0,o)}this.entries.length>this.maxEntries&&this.entries.shift()}findBestFor(t,r){let i=0,s=this.entries.length-1,o=-1;for(;i<=s;){const n=i+s>>>1;this.entries[n].timestamp<=t?(o=n,i=n+1):s=n-1}if(o===-1)return null;for(let n=o;n>=0;n--)if(this.entries[n].timestamp>r)return this.entries[n];return null}clear(){this.entries=[]}get size(){return this.entries.length}getEntries(){return this.entries}}function Oc(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:Oc},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||d,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function n(w){const v=["MSIE ","Trident/","Edge/"];return new RegExp(v.join("|")).test(w)}const u=n(e.navigator.userAgent)?1:0;function d(w,v){this.scrollLeft=w,this.scrollTop=v}function l(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 f(w,v){if(v==="Y")return w.clientHeight+u<w.scrollHeight;if(v==="X")return w.clientWidth+u<w.scrollWidth}function c(w,v){const
|
|
148
|
+
`;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){F(this,"entries",[]),F(this,"maxEntries"),this.maxEntries=t}add(t,r,i){const s={type:te.FullSnapshot,data:{node:r,initialOffset:i},timestamp:t},o={timestamp:t,event:s};if(!this.entries.length||this.entries[this.entries.length-1].timestamp<t)this.entries.push(o);else{let n=0,u=this.entries.length-1;for(;n<=u;){const d=n+u>>>1;this.entries[d].timestamp<=t?n=d+1:u=d-1}n>0&&this.entries[n-1].timestamp===t?this.entries[n-1]=o:this.entries.splice(n,0,o)}this.entries.length>this.maxEntries&&this.entries.shift()}findBestFor(t,r){let i=0,s=this.entries.length-1,o=-1;for(;i<=s;){const n=i+s>>>1;this.entries[n].timestamp<=t?(o=n,i=n+1):s=n-1}if(o===-1)return null;for(let n=o;n>=0;n--)if(this.entries[n].timestamp>r)return this.entries[n];return null}clear(){this.entries=[]}get size(){return this.entries.length}getEntries(){return this.entries}}function Oc(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:Oc},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||d,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function n(w){const v=["MSIE ","Trident/","Edge/"];return new RegExp(v.join("|")).test(w)}const u=n(e.navigator.userAgent)?1:0;function d(w,v){this.scrollLeft=w,this.scrollTop=v}function l(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 f(w,v){if(v==="Y")return w.clientHeight+u<w.scrollHeight;if(v==="X")return w.clientWidth+u<w.scrollWidth}function c(w,v){const S=e.getComputedStyle(w,null)["overflow"+v];return S==="auto"||S==="scroll"}function h(w){const v=f(w,"Y")&&c(w,"Y"),S=f(w,"X")&&c(w,"X");return v||S}function p(w){for(;w!==t.body&&h(w)===!1;)w=w.parentNode||w.host;return w}function m(w){const v=o();let S,E,y,b=(v-w.startTime)/i;b=b>1?1:b,S=l(b),E=w.startX+(w.x-w.startX)*S,y=w.startY+(w.y-w.startY)*S,w.method.call(w.scrollable,E,y),(E!==w.x||y!==w.y)&&e.requestAnimationFrame(m.bind(e,w))}function g(w,v,S){let E,y,b,_;const C=o();w===t.body?(E=e,y=e.scrollX||e.pageXOffset,b=e.scrollY||e.pageYOffset,_=s.scroll):(E=w,y=w.scrollLeft,b=w.scrollTop,_=d),m({scrollable:E,method:_,startTime:C,startX:y,startY:b,x:v,y:S})}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}g.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(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}g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(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,v=arguments[0].top;g.call(this,this,typeof w=="undefined"?this.scrollLeft:~~w,typeof v=="undefined"?this.scrollTop:~~v)},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),v=w.getBoundingClientRect(),S=this.getBoundingClientRect();w!==t.body?(g.call(this,w,w.scrollLeft+S.left-v.left,w.scrollTop+S.top-v.top),e.getComputedStyle(w).position!=="fixed"&&e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})):e.scrollBy({left:S.left,top:S.top,behavior:"smooth"})}}class wm{constructor(t=[],r){F(this,"timeOffset",0),F(this,"speed"),F(this,"actions"),F(this,"actionIndex",0),F(this,"raf",null),F(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){const r=this.raf===!0;if(this.actionIndex>=this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{const i=this.findActionIndex(t);this.actions.splice(i,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actionIndex<this.actions.length;){const r=this.actions[this.actionIndex];if(this.timeOffset>=r.delay)this.actionIndex++,r.doAction();else break}this.actionIndex<this.actions.length?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0,this.actionIndex=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=this.actionIndex,i=this.actions.length-1;for(;r<=i;){const s=Math.floor((r+i)/2);if(this.actions[s].delay<t.delay)r=s+1;else if(this.actions[s].delay>t.delay)i=s-1;else return s+1}return r}}function Ul(e,t){if(e.type===te.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}/*! *****************************************************************************
|
|
149
149
|
Copyright (c) Microsoft Corporation.
|
|
150
150
|
|
|
151
151
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -158,7 +158,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
158
158
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
159
159
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
160
160
|
PERFORMANCE OF THIS SOFTWARE.
|
|
161
|
-
***************************************************************************** */function $l(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i,s,o=r.call(e),n=[];try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)n.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return n}var Ar;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ar||(Ar={}));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(o){if(o.type==="xstate.assign"){s=!0;var n=Object.assign({},i);return typeof o.assignment=="function"?n=o.assignment(i,r):Object.keys(o.assignment).forEach((function(u){n[u]=typeof o.assignment[u]=="function"?o.assignment[u](i,r):o.assignment[u]})),i=n,!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(n){return Wl(n,t.actions)})),e.context,Dc),2),i=r[0],s=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:Yi(e.initial)},transition:function(n,u){var d,l,a=typeof n=="string"?{value:n,context:e.context}:n,f=a.value,c=a.context,h=Tc(u),p=e.states[f];if(p.on){var m=Dn(p.on[h.type]);try{for(var g=(function(L){var q=typeof Symbol=="function"&&Symbol.iterator,I=q&&L[q],z=0;if(I)return I.call(L);if(L&&typeof L.length=="number")return{next:function(){return L&&z>=L.length&&(L=void 0),{value:L&&L[z++],done:!L}}};throw new TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),w=g.next();!w.done;w=g.next()){var v=w.value;if(v===void 0)return zl(f,c);var _=typeof v=="string"?{target:v}:v,E=_.target,y=_.actions,b=y===void 0?[]:y,S=_.cond,C=S===void 0?function(){return!0}:S,N=E===void 0,x=E!=null?E:f,P=e.states[x];if(C(c,h)){var D=$l(ql((N?Dn(b):[].concat(p.exit,b,P.entry).filter((function(L){return L}))).map((function(L){return Wl(L,o._options.actions)})),c,h),3),ae=D[0],ee=D[1],R=D[2],ie=E!=null?E:f;return{value:ie,context:ee,actions:ae,changed:E!==f||ae.length>0||R,matches:Yi(ie)}}}}catch(L){d={error:L}}finally{try{w&&!w.done&&(l=g.return)&&l.call(g)}finally{if(d)throw d.error}}}return zl(f,c)}};return o}var jl=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function Ic(e){var t=e.initialState,r=Ar.NotStarted,i=new Set,s={_machine:e,send:function(o){r===Ar.Running&&(t=e.transition(t,o),jl(t,Tc(o)),i.forEach((function(n){return n(t)})))},subscribe:function(o){return i.add(o),o(t),{unsubscribe:function(){return i.delete(o)}}},start:function(o){if(o){var n=typeof o=="object"?o:{context:e.config.context,value:o};t={value:n.value,actions:[],context:n.context,matches:Yi(n.value)}}return r=Ar.Running,jl(t,Dc),s},stop:function(){return r=Ar.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===te.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 o=Math.floor((r+i)/2);e[o].timestamp<=t?(s=e[o],r=o+1):i=o-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:(o,n)=>n.type==="CAST_EVENT"?n.payload.event:o.lastPlayedEvent}),recordTimeOffset:Er((o,n)=>{let u=o.timeOffset;return"payload"in n&&"timeOffset"in n.payload&&(u=n.payload.timeOffset),be(G({},o),{timeOffset:u,baselineTime:o.events[0].timestamp+u})}),play(o){var g;var n;const{timer:u,events:d,baselineTime:l,lastPlayedEvent:a,checkpointIndex:f}=o;u.clear();const c=_m(f,l),h=c?c.metaEventIndex:0;let p=a==null?void 0:a.timestamp;(a==null?void 0:a.type)===te.IncrementalSnapshot&&a.data.source===j.MouseMove&&(p=a.timestamp+((n=a.data.positions[0])==null?void 0:n.timeOffset)),l<(p||0)&&i.emit(H.PlayBack);const m=new Array;for(let w=h;w<d.length;w++){const v=d[w];if(!(p&&p<l&&(v.timestamp<=p||v===a)))if(v.timestamp<l)m.push(v);else{Ul(v,l);const _=t(v,!1);u.addAction({doAction:()=>{_()},delay:(g=v.delay)!=null?g:0})}}r(m),i.emit(H.Flush),u.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:Er(o=>be(G({},o),{lastPlayedEvent:null})),startLive:Er({baselineTime:(o,n)=>(o.timer.start(),n.type==="TO_LIVE"&&n.payload.baselineTime?n.payload.baselineTime:Date.now())}),addEvent:Er((o,n)=>{var f;const{baselineTime:u,timer:d,events:l,checkpointIndex:a}=o;if(n.type==="ADD_EVENT"){const{event:c}=n.payload;Ul(c,u);let h=l.length-1,p;if(!l[h]||l[h].timestamp<=c.timestamp){if(l[h]&&Tn(l[h],c))return be(G({},o),{events:l});l.push(c),p=l.length-1}else{let w=0;for(p=0;w<=h;){const v=Math.floor((w+h)/2);l[v].timestamp<=c.timestamp?w=v+1:h=v-1}p=w;for(let v=p-1;v>=0&&l[v].timestamp===c.timestamp;v--)if(Tn(l[v],c))return be(G({},o),{events:l});for(let v=p;v<l.length&&l[v].timestamp===c.timestamp;v++)if(Tn(l[v],c))return be(G({},o),{events:l});l.splice(p,0,c)}if(c.type===te.Meta){const w={metaEventIndex:p,timestamp:c.timestamp},v=a[a.length-1];if(!v||v.timestamp<=c.timestamp)a.push(w);else{for(const y of a)y.metaEventIndex>=p&&y.metaEventIndex++;let _=0,E=a.length-1;for(;_<=E;){const y=Math.floor((_+E)/2);a[y].timestamp<=c.timestamp?_=y+1:E=y-1}a.splice(_,0,w)}}else if(p<l.length-1)for(const w of a)w.metaEventIndex>=p&&w.metaEventIndex++;const m=c.timestamp<u,g=t(c,m);m?g():d.isActive()&&d.addAction({doAction:()=>{g()},delay:(f=c.delay)!=null?f:0})}return be(G({},o),{events:l,checkpointIndex:a})})}});return Ic(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 Ic(t)}const Vl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Gl=new Map;function Pc(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:o}=i;return Pc(t,s)[o]}else if("args"in i){const{rr_type:s,args:o}=i,n=window[s];return new n(...await Promise.all(o.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 o=new Image;return o.src=i.src,e.set(i.src,o),o}}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=Pc(e,r);i.includes(t)||i.push(t)}async function Mm({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const o=Cm(t,r);if(!o)return;if(e.setter){o[e.property]=e.args[0];return}const n=o[e.property],u=await Promise.all(e.args.map(zt(i,o))),d=n.apply(o,u);Rm(o,d);const l=!1}catch(o){s(e,o)}}async function Nm({event:e,mutations:t,target:r,imageMap:i,errorHandler:s}){const o=r.getContext("2d");if(!o){s(t[0],new Error("Canvas context is null"));return}const n=t.map(async d=>Promise.all(d.args.map(zt(i,o))));(await Promise.all(n)).forEach((d,l)=>{const a=t[l];try{if(a.setter){o[a.property]=a.args[0];return}const f=o[a.property];a.property==="drawImage"&&typeof a.args[0]=="string"?(i.get(e),f.apply(o,a.args)):f.apply(o,d)}catch(f){s(a,f)}})}async function Hl({event:e,mutation:t,target:r,imageMap:i,canvasEventMap:s,errorHandler:o}){try{const n=s.get(e)||t,u="commands"in n?n.commands:[n];if([Hi.WebGL,Hi.WebGL2].includes(t.type)){for(let d=0;d<u.length;d++){const l=u[d];await Mm({mutation:l,type:t.type,target:r,imageMap:i,errorHandler:o})}return}await Nm({event:e,mutations:u,target:r,imageMap:i,errorHandler:o})}catch(n){o(t,n)}}class Am{constructor(t){F(this,"mediaMap",new Map),F(this,"warn"),F(this,"service"),F(this,"speedService"),F(this,"emitter"),F(this,"getCurrentTime"),F(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(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 o=(t-i.lastInteractionTimeOffset)/1e3*i.playbackRate,n="duration"in r&&r.duration;if(Number.isNaN(n)){this.waitForMetadata(r);return}let u=i.currentTimeAtLastInteraction+o;r.loop&&n!==!1&&(u=u%n),r.currentTime=u}else r.pause(),r.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const i=this.mediaMap.get(t);i&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:i})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:i}){var h,p,m,g,w;const s=this.mediaMap.get(t),{type:o,playbackRate:n,currentTime:u,muted:d,volume:l,loop:a}=i;return{isPlaying:o===no.Play||o!==no.Pause&&((s==null?void 0:s.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(h=u!=null?u:s==null?void 0:s.currentTimeAtLastInteraction)!=null?h:0,lastInteractionTimeOffset:r,playbackRate:(p=n!=null?n:s==null?void 0:s.playbackRate)!=null?p:1,volume:(m=l!=null?l:s==null?void 0:s.volume)!=null?m:1,muted:(g=d!=null?d:s==null?void 0:s.muted)!=null?g: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:o,isPlaying:n}=r,u=this.service.state.matches("paused"),d=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==o&&(t.volume=o),t.muted=i,t.loop=s,t.playbackRate!==d&&(t.playbackRate=d),n&&!u?t.play():t.pause()}catch(l){this.warn(`Failed to replay media interactions: ${l.message||l}`)}}addMediaElements(t,r,i){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;const s=t,o=i.getMeta(s);if(!o||!("attributes"in o))return;const n=this.service.state.matches("paused"),u=o.attributes;let d=!1;u.rr_mediaState?d=u.rr_mediaState==="played":d=s.getAttribute("autoplay")!==null,d&&n&&s.pause();let l=1;typeof u.rr_mediaPlaybackRate=="number"&&(l=u.rr_mediaPlaybackRate);let a=!1;typeof u.rr_mediaMuted=="boolean"?a=u.rr_mediaMuted:a=s.getAttribute("muted")!==null;let f=!1;typeof u.rr_mediaLoop=="boolean"?f=u.rr_mediaLoop:f=s.getAttribute("loop")!==null;let c=1;typeof u.rr_mediaVolume=="number"&&(c=u.rr_mediaVolume);let h=0;typeof u.rr_mediaCurrentTime=="number"&&(h=u.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:d,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:l,volume:c,muted:a,loop:f}),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 Ai(e,t){if(e.nodeName!=="DIALOG"||e instanceof dt)return;const r=e,i=r.open,s=i&&r.matches("dialog:modal"),o=r.getAttribute("rr_open_mode"),n=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=o==="modal";if(!(i&&!(s&&o==="non-modal"||!s&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}i&&r.close(),n&&(u?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 Dm=Oc||vm,Yl="[replayer]",Oi="__rrweb-injected-style__",kn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Jl(e){return e.type==te.IncrementalSnapshot&&(e.data.source==j.TouchMove||e.data.source==j.MouseInteraction&&e.data.type==_e.TouchStart)}class Tm{constructor(t,r){if(F(this,"wrapper"),F(this,"iframe"),F(this,"service"),F(this,"speedService"),F(this,"config"),F(this,"usingVirtualDom",!1),F(this,"virtualDom",new qr),F(this,"mouse"),F(this,"mouseTail",null),F(this,"tailPositions",[]),F(this,"emitter",Dm()),F(this,"nextUserInteractionEvent"),F(this,"legacy_missingNodeRetryMap",{}),F(this,"cache",rl()),F(this,"imageMap",new Map),F(this,"canvasEventMap",new Map),F(this,"mirror",eo()),F(this,"styleMirror",new dm),F(this,"mediaManager"),F(this,"firstFullSnapshot",null),F(this,"seekCache"),F(this,"newDocumentQueue",[]),F(this,"mousePos",null),F(this,"touchActive",null),F(this,"seekInProgress",!1),F(this,"pendingCaptureTimer",null),F(this,"lastMouseDownEvent",null),F(this,"lastHoveredRootNode"),F(this,"lastSelectionData",null),F(this,"constructedStyleMutations",[]),F(this,"adoptedStyleSheets",[]),F(this,"snapshotAdoptedStyleSheetQueue",[]),F(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(l.width)),a.setAttribute("height",String(l.height)))}),F(this,"applyEventsSynchronously",l=>{var a;let f=-1;for(let h=l.length-1;h>=0;h--)if(l[h].type===te.FullSnapshot){f=h;break}let c=0;if(this.config.useSeekCache&&l.length>0){const h=l.find(p=>p.type===te.FullSnapshot);if(h){const p=l[l.length-1].timestamp,m=this.seekCache.findBestFor(p,h.timestamp);if(m){const g=l.find(_=>_.type===te.Meta);g&&this.getCastFn(g,!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,v=l.length;for(;w<v;){const _=w+v>>>1;l[_].timestamp<=m.timestamp?w=_+1:v=_}c=w}}}for(let h=c;h<l.length;h++){const p=l[h];switch(p.type){case te.DomContentLoaded:case te.Load:case te.Custom:continue;case te.IncrementalSnapshot:if(h<f)continue;break;case te.FullSnapshot:case te.Meta:case te.Plugin:break}this.getCastFn(p,!0)()}}),F(this,"getCastFn",(l,a=!1)=>{let f;switch(l.type){case te.DomContentLoaded:case te.Load:break;case te.Custom:f=()=>{this.emitter.emit(H.CustomEvent,l)};break;case te.Meta:f=()=>this.emitter.emit(H.Resize,{width:l.data.width,height:l.data.height});break;case te.FullSnapshot:f=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,a),(h=this.iframe.contentWindow)==null||h.scrollTo(l.data.initialOffset)};break;case te.IncrementalSnapshot:f=()=>{if(this.applyIncremental(l,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const h of this.service.state.context.events)if(!(h.timestamp<=l.timestamp)&&this.isUserInteraction(h)){h.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-l.delay;this.playInternal(this.getCurrentTime()+h),this.nextUserInteractionEvent=null}}};break}return()=>{f&&f();for(const p of this.config.plugins||[])p.handler&&p.handler(l,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[h]){const p=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(H.Finish))};let m=50;l.type===te.IncrementalSnapshot&&l.data.source===j.MouseMove&&l.data.positions.length&&(m+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(p,m)}this.emitter.emit(H.EventCast,l)}}),!(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 l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(H.Flush,()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(a,f,c)=>{Hl({event:a,mutation:f,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,f)=>{a.source===j.StyleSheetRule?this.applyStyleSheetRule(a,f):a.source===j.StyleDeclaration&&this.applyStyleDeclaration(a,f)},afterAppend:(a,f)=>{for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:f,replayer:this})}};if(this.iframe.contentDocument)try{Vi(this.iframe.contentDocument,this.virtualDom,l,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 f=this.legacy_missingNodeRetryMap[a],c=Gi(f.node,this.mirror,this.virtualDom.mirror);Vi(c,f.node,l,this.virtualDom.mirror),f.node=c}catch(f){this.warn(f)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),this.adoptedStyleSheets=[],this.snapshotAdoptedStyleSheetQueue.forEach(({id:a,adoptedStyleSheets:f})=>{const c=this.mirror.getNode(a);c&&this.applySnapshotAdoptedStyleSheets(c,f)}),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[l,a]=this.lastMouseDownEvent;l.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 l=this.getTimeOffset();this.emitter.emit(H.SeekEnd,{timeOffset:l})}if(this.config.useSeekCache){const l=this.service.state.context.baselineTime;this.pendingCaptureTimer!==null&&clearTimeout(this.pendingCaptureTimer),this.pendingCaptureTimer=setTimeout(()=>{this.pendingCaptureTimer=null,this.captureSeekCacheEntry(l)},0)}});const s=new wm([],{speed:this.config.speed}),o=t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,a)=>l.timestamp-a.timestamp),n=bm(o);this.service=Sm({events:o,timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null,checkpointIndex:n},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(H.StateChange,{player:l})}),this.speedService=Em({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(H.StateChange,{speed:l})}),this.mediaManager=new Am({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const u=this.service.state.context.events.find(l=>l.type===te.Meta),d=this.service.state.context.events.find(l=>l.type===te.FullSnapshot);if(u){const{width:l,height:a}=u.data;setTimeout(()=>{this.emitter.emit(H.Resize,{width:l,height:a})},0)}d&&setTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=d,this.rebuildFullSnapshot(d),(l=this.iframe.contentWindow)==null||l.scrollTo(d.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 n,u;if(!this.iframe.contentDocument||t<=0)return;const r=eo();this.mirror.getIds().forEach(d=>{const l=this.mirror.getNode(d);if(!l)return;const a=this.mirror.getMeta(l);a&&r.add(l,a)});const i=Pd(this.iframe.contentDocument,{mirror:r,blockClass:this.config.blockClass,inlineStylesheet:!0,onAdoptedStyleSheet:d=>this.styleMirror.add(d)});if(!i)return;const s=this.iframe.contentDocument.scrollingElement||this.iframe.contentDocument.documentElement,o={top:(n=s==null?void 0:s.scrollTop)!=null?n:0,left:(u=s==null?void 0:s.scrollLeft)!=null?u:0};this.seekCache.add(t,i,o)}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,o=(d,l)=>{var a;if(d.nodeName==="DIALOG"&&s.add(d),this.collectIframeAndAttachDocument(i,d),this.mediaManager.isSupportedMediaElement(d)){const{events:c}=this.service.state.context;this.mediaManager.addMediaElements(d,t.timestamp-c[0].timestamp,this.mirror)}const f=this.mirror.getMeta(d);f&&"adoptedStyleSheets"in f&&((a=f.adoptedStyleSheets)!=null&&a.length)&&this.applySnapshotAdoptedStyleSheets(d,f.adoptedStyleSheets);for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(d,{id:l,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),this.styleMirror.reset(),np(t.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror}),o(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:d,builtNode:l}of i)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==d);const{documentElement:n,head:u}=this.iframe.contentDocument;this.insertStyleRules(n,u),s.forEach(d=>Ai(d)),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 o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,so(o,this.virtualDom.unserializedId)),t.insertBefore(o,r),o.rules.push({source:j.StyleSheetRule,adds:s.map((n,u)=>({rule:n,index:u}))})}else{const o=document.createElement("style");t.insertBefore(o,r);for(let n=0;n<s.length;n++)(i=o.sheet)==null||i.insertRule(s[n],n)}}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")!==Oi){const o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,so(o,this.virtualDom.unserializedId)),o.setAttribute("id",Oi),t.insertBefore(o,t.firstChild||null),o.rules.push({source:j.StyleSheetRule,adds:i.map((n,u)=>({rule:n,index:u}))})}else if(this.isShadowRoot(t)&&!t.getElementById(Oi)){const o=document.createElement("style");o.id=Oi,t.insertBefore(o,(s=t.firstChild)!=null?s:null);for(let n=0;n<i.length;n++)(r=o.sheet)==null||r.insertRule(i[n],n)}}}attachDocumentToIframe(t,r){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],o=new Set,n=(d,l)=>{var a;d.nodeName==="DIALOG"&&o.add(d),this.collectIframeAndAttachDocument(s,d);const f=i.getMeta(d);if((f==null?void 0:f.type)===Ft.Element&&(f==null?void 0:f.tagName.toUpperCase())==="HTML"){if(!r.contentDocument)return;const{documentElement:c,head:h}=r.contentDocument;this.insertStyleRules(c,h)}{const c=i.getMeta(d);if(c&&"adoptedStyleSheets"in c&&((a=c.adoptedStyleSheets)!=null&&a.length))if(this.usingVirtualDom){const h=i.getId(d);this.snapshotAdoptedStyleSheetQueue.push({id:h,adoptedStyleSheets:c.adoptedStyleSheets})}else this.applySnapshotAdoptedStyleSheets(d,c.adoptedStyleSheets)}if(!this.usingVirtualDom)for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(d,{id:l,replayer:this})},u=r.contentDocument;if(u){si(t.node,{doc:u,mirror:i,hackCss:!0,skipChild:!1,afterAppend:n,cache:this.cache}),n(u,t.node.id);for(const{mutationInQueue:d,builtNode:l}of s)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==d);o.forEach(d=>Ai(d))}}collectIframeAndAttachDocument(t,r){if(On(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,o=this.service.state;const n=()=>{o=this.service.state};this.emitter.on(H.Start,n),this.emitter.on(H.Pause,n);const u=()=>{this.emitter.off(H.Start,n),this.emitter.off(H.Pause,n)};r.querySelectorAll('link[rel="stylesheet"]').forEach(d=>{d.sheet||(i.add(d),d.addEventListener("load",()=>{i.delete(d),i.size===0&&s!==-1&&(o.matches("playing")&&this.playInternal(this.getCurrentTime()),this.emitter.emit(H.LoadStylesheetEnd),s&&clearTimeout(s),u())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(H.LoadStylesheetStart),s=setTimeout(()=>{o.matches("playing")&&this.playInternal(this.getCurrentTime()),s=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===te.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"),o=s==null?void 0:s.createImageData(i.width,i.height);o&&(s==null||s.putImageData(o,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 o=>{const n=await Promise.all(o.args.map(zt(this.imageMap,null,i)));return be(G({},o),{args:n})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,be(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,be(G({},t),{args:s}))}}}applyIncremental(t,r){var i,s,o;const{data:n}=t;switch(n.source){case j.Mutation:{try{this.applyMutation(n,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,n)}break}case j.Drag:case j.TouchMove:case j.MouseMove:if(r){const u=n.positions[n.positions.length-1];this.mousePos={x:u.x,y:u.y,id:u.id,debugData:n}}else n.positions.forEach(u=>{const d={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,n)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(d)}),this.timer.addAction({doAction(){},delay:t.delay-((i=n.positions[0])==null?void 0:i.timeOffset)});break;case j.MouseInteraction:{if(n.id===-1)break;const u=new Event(di(_e[n.type])),d=this.mirror.getNode(n.id);if(!d)return this.debugNodeNotFound(n,n.id);this.emitter.emit(H.MouseInteraction,{type:n.type,target:d});const{triggerFocus:l}=this.config;switch(n.type){case _e.Blur:"blur"in d&&d.blur();break;case _e.Focus:l&&d.focus&&d.focus({preventScroll:!0});break;case _e.Click:case _e.TouchStart:case _e.TouchEnd:case _e.MouseDown:case _e.MouseUp:r?(n.type===_e.TouchStart?this.touchActive=!0:n.type===_e.TouchEnd&&(this.touchActive=!1),n.type===_e.MouseDown?this.lastMouseDownEvent=[d,u]:n.type===_e.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:n.x||0,y:n.y||0,id:n.id,debugData:n}):(n.type===_e.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(n.x||0,n.y||0,n.id,r,n),n.type===_e.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):n.type===_e.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):n.type===_e.TouchEnd?this.mouse.classList.remove("touch-active"):d.dispatchEvent(u));break;case _e.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:d.dispatchEvent(u)}break}case j.Scroll:{if(n.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);u.scrollData=n;break}this.applyScroll(n,r);break}case j.ViewportResize:this.emitter.emit(H.Resize,{width:n.width,height:n.height});break;case j.Input:{if(n.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);u.inputData=n;break}this.applyInput(n);break}case j.MediaInteraction:{const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(n.id):this.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);const d=u,{events:l}=this.service.state.context;this.mediaManager.mediaMutation({target:d,timeOffset:t.timestamp-l[0].timestamp,mutation:n});break}case j.StyleSheetRule:case j.StyleDeclaration:{this.usingVirtualDom?n.styleId?this.constructedStyleMutations.push(n):n.id&&((s=this.virtualDom.mirror.getNode(n.id))==null||s.rules.push(n)):this.applyStyleSheetMutation(n);break}case j.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);u.canvasMutations.push({event:t,mutation:n})}else{const u=this.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);Hl({event:t,mutation:n,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case j.Font:{try{const u=new FontFace(n.family,n.buffer?new Uint8Array(JSON.parse(n.fontSource)):n.fontSource,n.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(u)}catch(u){this.warn(u)}break}case j.Selection:{if(r){this.lastSelectionData=n;break}this.applySelection(n);break}case j.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(n):this.applyAdoptedStyleSheet(n);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 l in this.legacy_missingNodeRetryMap)try{const a=this.legacy_missingNodeRetryMap[l],f=Rc(a.node,this.virtualDom,this.mirror);f&&(a.node=f)}catch(a){this.warn(a)}}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(l=>i.getNode(l.id)?!0:(this.warnNodeNotFound(t,l.id),!1)),t.removes.forEach(l=>{var a;const f=i.getNode(l.id);if(!f)return;let c=i.getNode(l.parentId);if(!c)return this.warnNodeNotFound(t,l.parentId);if(l.isShadow&&yr(c)&&(c=c.shadowRoot),i.removeNodeFromMap(f),c)try{c.removeChild(f),this.usingVirtualDom&&f.nodeName==="#text"&&c.nodeName==="STYLE"&&((a=c.rules)==null?void 0:a.length)>0&&(c.rules=[])}catch(h){if(h instanceof DOMException)this.warn("parent could not remove child in mutation",c,f,t);else throw h}});const s=G({},this.legacy_missingNodeRetryMap),o=[],n=l=>{let a=null;return l.nextId&&(a=i.getNode(l.nextId)),l.nextId!==null&&l.nextId!==void 0&&l.nextId!==-1&&!a},u=l=>{var a,f;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=i.getNode(l.parentId);if(!c)return l.node.type===Ft.Document?this.newDocumentQueue.push(l):o.push(l);l.node.isShadow&&(yr(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot,this.insertStyleRulesIntoShadowRoot(c));let h=null,p=null;if(l.previousId&&(h=i.getNode(l.previousId)),l.nextId&&(p=i.getNode(l.nextId)),n(l))return o.push(l);if(l.node.rootId&&!i.getNode(l.node.rootId))return;const m=l.node.rootId?i.getNode(l.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(On(c,i)){this.attachDocumentToIframe(l,c);return}const g=(_,E)=>{if(!this.usingVirtualDom){Ai(_);for(const y of this.config.plugins||[])y.onBuild&&y.onBuild(_,{id:E,replayer:this})}},w=si(l.node,{doc:m,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(l.previousId===-1||l.nextId===-1){s[l.node.id]={node:w,mutation:l};return}const v=i.getMeta(c);if(v&&v.type===Ft.Element&&l.node.type===Ft.Text){const _=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(v.tagName==="textarea")for(const E of _)E.nodeType===c.TEXT_NODE&&c.removeChild(E);else if(v.tagName==="style"&&_.length===1)for(const E of _)E.nodeType===c.TEXT_NODE&&!i.hasNode(E)&&(w.textContent=E.textContent,c.removeChild(E))}else if((v==null?void 0:v.type)===Ft.Document){const _=c;l.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?c.insertBefore(w,h.nextSibling):p&&p.parentNode?c.contains(p)?c.insertBefore(w,p):c.insertBefore(w,null):c.appendChild(w),g(w,l.node.id),this.usingVirtualDom&&w.nodeName==="#text"&&c.nodeName==="STYLE"&&((f=c.rules)==null?void 0:f.length)>0&&(c.rules=[]),On(w,this.mirror)){const _=this.mirror.getId(w),E=this.newDocumentQueue.find(y=>y.parentId===_);E&&(this.attachDocumentToIframe(E,w),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==E))}(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(s,c,w,l)};t.adds.forEach(l=>{u(l)});const d=Date.now();for(;o.length;){const l=o.length,a=fm(o);if(o.length=0,Date.now()-d>500){this.warn("Timeout in the loop, please check the resolve tree data:",a);break}for(const f of a)i.getNode(f.value.parentId)?Nc(f,h=>{u(h)}):this.debug("Drop resolve tree since there is no parent for the root node.",f);if(o.length===l){this.warn("Dropping the resolve queue since none of the remaining nodes can be resolved",a.map(f=>({id:f.value.node.id,parentId:f.value.parentId,nextId:f.value.nextId,children:f.children.length})));break}}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),hm(t.texts).forEach(l=>{var a;const f=i.getNode(l.id);if(!f)return t.removes.find(h=>h.id===l.id)?void 0:this.warnNodeNotFound(t,l.id);const c=f.parentElement;if(l.value&&c&&c.tagName==="STYLE"?f.textContent=hs(l.value,this.cache):f.textContent=l.value,this.usingVirtualDom){const h=f.parentNode;((a=h==null?void 0:h.rules)==null?void 0:a.length)>0&&(h.rules=[])}}),t.attributes.forEach(l=>{var a;const f=i.getNode(l.id);if(!f)return t.removes.find(c=>c.id===l.id)?void 0:this.warnNodeNotFound(t,l.id);for(const c in l.attributes)if(typeof c=="string"){const h=l.attributes[c];if(h===null)f.removeAttribute(c),c==="open"&&Om(f,l);else if(typeof h=="string")try{if(c==="_cssText"&&(f.nodeName==="LINK"||f.nodeName==="STYLE"))try{const p=i.getMeta(f);Object.assign(p.attributes,l.attributes);const m=si(p,{doc:f.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),g=f.nextSibling,w=f.parentNode;if(m&&w){w.removeChild(f),w.insertBefore(m,g),i.replace(l.id,m);break}}catch(p){}if(c==="value"&&f.nodeName==="TEXTAREA"){const p=f;p.childNodes.forEach(g=>p.removeChild(g));const m=(a=f.ownerDocument)==null?void 0:a.createTextNode(h);m&&p.appendChild(m)}else f.setAttribute(c,h);c==="rr_open_mode"&&f.nodeName==="DIALOG"&&Ai(f,l)}catch(p){this.warn("An error occurred may due to the checkout feature.",p)}else if(c==="style"){const p=h,m=f;for(const g in p)if(p[g]===!1)m.style.removeProperty(g);else if(p[g]instanceof Array){const w=p[g];m.style.setProperty(g,w[0],w[1])}else{const w=p[g];m.style.setProperty(g,w)}}}})}applyScroll(t,r){var i,s;const o=this.mirror.getNode(t.id);if(!o)return this.debugNodeNotFound(t,t.id);const n=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((n==null?void 0:n.type)===Ft.Document)(s=o.defaultView)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{o.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch(u){}}applyInput(t){const r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch(i){}}applySelection(t){try{const r=new Set,i=t.ranges.map(({start:s,startOffset:o,end:n,endOffset:u})=>{const d=this.mirror.getNode(s),l=this.mirror.getNode(n);if(!d||!l)return;const a=new Range;a.setStart(d,o),a.setEnd(l,u);const f=d.ownerDocument,c=f==null?void 0:f.getSelection();return c&&r.add(c),{range:a,selection:c}});r.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var o;return s&&((o=s.selection)==null?void 0:o.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,o,n;if((i=t.adds)==null||i.forEach(({rule:u,index:d})=>{try{if(Array.isArray(d)){const{positions:l,index:a}=Fl(d);Zr(r.cssRules,l).insertRule(u,a)}else{const l=d===void 0?void 0:Math.min(d,r.cssRules.length);r==null||r.insertRule(u,l)}}catch(l){}}),(s=t.removes)==null||s.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:d,index:l}=Fl(u);Zr(r.cssRules,d).deleteRule(l||0)}else r==null||r.deleteRule(u)}catch(d){}}),t.replace)try{(o=r.replace)==null||o.call(r,t.replace)}catch(u){}if(t.replaceSync)try{(n=r.replaceSync)==null||n.call(r,t.replaceSync)}catch(u){}}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 o=[];for(const{styleId:n,rules:u}of r){const d=this.styleMirror.getStyle(n);if(d){u.length&&this.applyStyleSheetRule({source:j.StyleSheetRule,adds:u},d),o.push(d);continue}try{const l=new s.CSSStyleSheet;this.styleMirror.add(l,n),u.length&&this.applyStyleSheetRule({source:j.StyleSheetRule,adds:u},l),o.push(l)}catch(l){}}yr(t)?t.shadowRoot.adoptedStyleSheets=o:t.nodeName==="#document"&&(t.adoptedStyleSheets=o)}applyAdoptedStyleSheet(t){var r;const i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(u=>{var d;let l=null,a=null;if(yr(i)?a=((d=i.ownerDocument)==null?void 0:d.defaultView)||null:i.nodeName==="#document"&&(a=i.defaultView),!!a)try{l=new a.CSSStyleSheet,this.styleMirror.add(l,u.styleId),this.applyStyleSheetRule({source:j.StyleSheetRule,adds:u.rules},l)}catch(f){}});const s=10;let o=0;const n=(u,d)=>{const l=d.map(a=>this.styleMirror.getStyle(a)).filter(a=>a!==null);yr(u)?u.shadowRoot.adoptedStyleSheets=l:u.nodeName==="#document"&&(u.adoptedStyleSheets=l),l.length!==d.length&&o<s&&(setTimeout(()=>n(u,d),0+100*o),o++)};n(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){const{previousId:o,nextId:n}=s,u=o&&t[o],d=n&&t[n];if(u){const{node:l,mutation:a}=u;r.insertBefore(l,i),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,l,a)}if(d){const{node:l,mutation:a}=d;r.insertBefore(l,i.nextSibling),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,l,a)}}moveAndHover(t,r,i,s,o){const n=this.mirror.getNode(i);if(!n)return this.debugNodeNotFound(o,i);const u=Ac(n,this.iframe),d=t*u.absoluteScale+u.x,l=r*u.absoluteScale+u.y;this.mouse.style.left=`${d}px`,this.mouse.style.top=`${l}px`,s||this.drawMouseTail({x:d,y:l}),this.hoverElements(n)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:i,strokeStyle:s,duration:o}=this.config.mouseTail===!0?kn:Object.assign({},kn,this.config.mouseTail),n=()=>{if(!this.mouseTail)return;const u=this.mouseTail.getContext("2d");!u||!this.tailPositions.length||(u.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),u.beginPath(),u.lineWidth=i,u.lineCap=r,u.strokeStyle=s,u.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(d=>u.lineTo(d.x,d.y)),u.stroke())};this.tailPositions.push(t),n(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(u=>u!==t),n()},o/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!==te.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]),Bc=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 o=r[i];o<r[i+1];++o)s[o]=o-r[i]<<5|i;return[r,s]},Uc=Bc(Lc,2),$c=Uc[0],Im=Uc[1];$c[28]=258,Im[258]=28;var Pm=Bc(Fc,0),Lm=Pm[0],ao=new qt(32768);for(var de=0;de<32768;++de){var Pt=(de&43690)>>>1|(de&21845)<<1;Pt=(Pt&52428)>>>2|(Pt&13107)<<2,Pt=(Pt&61680)>>>4|(Pt&3855)<<4,ao[de]=((Pt&65280)>>>8|(Pt&255)<<8)>>>1}var ni=(function(e,t,r){for(var i=e.length,s=0,o=new qt(t);s<i;++s)++o[e[s]-1];var n=new qt(t);for(s=0;s<t;++s)n[s]=n[s-1]+o[s-1]<<1;var u;if(r){u=new qt(1<<t);var d=15-t;for(s=0;s<i;++s)if(e[s])for(var l=s<<4|e[s],a=t-e[s],f=n[e[s]-1]++<<a,c=f|(1<<a)-1;f<=c;++f)u[ao[f]>>>d]=l}else for(u=new qt(i),s=0;s<i;++s)u[s]=ao[n[e[s]-1]++]>>>15-e[s];return u}),gi=new Qe(288);for(var de=0;de<144;++de)gi[de]=8;for(var de=144;de<256;++de)gi[de]=9;for(var de=256;de<280;++de)gi[de]=7;for(var de=280;de<288;++de)gi[de]=8;var Wc=new Qe(32);for(var de=0;de<32;++de)Wc[de]=5;var Fm=ni(gi,9,1),Bm=ni(Wc,5,1),In=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},Pn=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)},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,o=!r||r.i;r||(r={}),t||(t=new Qe(i*3));var n=function($){var Z=t.length;if($>Z){var B=new Qe(Math.max(Z*2,$));B.set(t),t=B}},u=r.f||0,d=r.p||0,l=r.b||0,a=r.l,f=r.d,c=r.m,h=r.n,p=i*8;do{if(!a){r.f=u=rt(e,d,1);var m=rt(e,d+1,3);if(d+=3,m)if(m==1)a=Fm,f=Bm,c=9,h=5;else if(m==2){var _=rt(e,d,31)+257,E=rt(e,d+10,15)+4,y=_+rt(e,d+5,31)+1;d+=14;for(var b=new Qe(y),S=new Qe(19),C=0;C<E;++C)S[km[C]]=rt(e,d+C*3,7);d+=E*3;var N=In(S),x=(1<<N)-1;if(!o&&d+y*(N+7)>p)break;for(var P=ni(S,N,1),C=0;C<y;){var D=P[rt(e,d,x)];d+=D&15;var g=D>>>4;if(g<16)b[C++]=g;else{var ae=0,ee=0;for(g==16?(ee=3+rt(e,d,3),d+=2,ae=b[C-1]):g==17?(ee=3+rt(e,d,7),d+=3):g==18&&(ee=11+rt(e,d,127),d+=7);ee--;)b[C++]=ae}}var R=b.subarray(0,_),ie=b.subarray(_);c=In(R),h=In(ie),a=ni(R,c,1),f=ni(ie,h,1)}else throw"invalid block type";else{var g=Um(d)+4,w=e[g-4]|e[g-3]<<8,v=g+w;if(v>i){if(o)throw"unexpected EOF";break}s&&n(l+w),t.set(e.subarray(g,v),l),r.b=l+=w,r.p=d=v*8;continue}if(d>p)throw"unexpected EOF"}s&&n(l+131072);for(var L=(1<<c)-1,q=(1<<h)-1,I=c+h+18;o||d+I<p;){var ae=a[Pn(e,d)&L],z=ae>>>4;if(d+=ae&15,d>p)throw"unexpected EOF";if(!ae)throw"invalid length/literal";if(z<256)t[l++]=z;else if(z==256){a=null;break}else{var Ce=z-254;if(z>264){var C=z-257,we=Lc[C];Ce=rt(e,d,(1<<we)-1)+$c[C],d+=we}var O=f[Pn(e,d)&q],ue=O>>>4;if(!O)throw"invalid distance";d+=O&15;var ie=Lm[ue];if(ue>3){var we=Fc[ue];ie+=Pn(e,d)&(1<<we)-1,d+=we}if(d>p)throw"unexpected EOF";s&&n(l+131072);for(var k=l+Ce;l<k;l+=4)t[l]=t[l-ie],t[l+1]=t[l+1-ie],t[l+2]=t[l+2-ie],t[l+3]=t[l+3-ie];l=k}}r.l=a,r.p=d,r.b=l,a&&(u=1,r.m=c,r.d=f,r.n=h)}while(!u);return l==t.length?t:zc(t,0,l)},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,o=function(l){i[s++]=l},n=0;n<r;++n){if(s+5>i.length){var u=new Qe(s+8+(r-n<<1));u.set(i),i=u}var d=e.charCodeAt(n);o(d)}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!==te.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=me(t,"disabled",8),i=me(t,"checked",12),s=me(t,"id",8),o=me(t,"label",8);var n=Qm();let u;var d=nt(n);Rh(d);var l=Ge(d,2),a=Ge(l,2),f=nt(a,!0);st(a),st(n),Rr(()=>{u=Kn(n,1,"switch svelte-184lr04",null,u,{disabled:r()}),nr(d,"id",s()),d.disabled=r(),nr(l,"for",s()),Li(f,o())}),Ah(d,i),Ct(e,n)}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
|
|
161
|
+
***************************************************************************** */function $l(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i,s,o=r.call(e),n=[];try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)n.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return n}var Ar;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ar||(Ar={}));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(o){if(o.type==="xstate.assign"){s=!0;var n=Object.assign({},i);return typeof o.assignment=="function"?n=o.assignment(i,r):Object.keys(o.assignment).forEach((function(u){n[u]=typeof o.assignment[u]=="function"?o.assignment[u](i,r):o.assignment[u]})),i=n,!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(n){return Wl(n,t.actions)})),e.context,Dc),2),i=r[0],s=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:i,context:s,matches:Yi(e.initial)},transition:function(n,u){var d,l,a=typeof n=="string"?{value:n,context:e.context}:n,f=a.value,c=a.context,h=Tc(u),p=e.states[f];if(p.on){var m=Dn(p.on[h.type]);try{for(var g=(function(L){var q=typeof Symbol=="function"&&Symbol.iterator,P=q&&L[q],z=0;if(P)return P.call(L);if(L&&typeof L.length=="number")return{next:function(){return L&&z>=L.length&&(L=void 0),{value:L&&L[z++],done:!L}}};throw new TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),w=g.next();!w.done;w=g.next()){var v=w.value;if(v===void 0)return zl(f,c);var S=typeof v=="string"?{target:v}:v,E=S.target,y=S.actions,b=y===void 0?[]:y,_=S.cond,C=_===void 0?function(){return!0}:_,N=E===void 0,x=E!=null?E:f,I=e.states[x];if(C(c,h)){var D=$l(ql((N?Dn(b):[].concat(p.exit,b,I.entry).filter((function(L){return L}))).map((function(L){return Wl(L,o._options.actions)})),c,h),3),ae=D[0],ee=D[1],R=D[2],ie=E!=null?E:f;return{value:ie,context:ee,actions:ae,changed:E!==f||ae.length>0||R,matches:Yi(ie)}}}}catch(L){d={error:L}}finally{try{w&&!w.done&&(l=g.return)&&l.call(g)}finally{if(d)throw d.error}}}return zl(f,c)}};return o}var jl=function(e,t){return e.actions.forEach((function(r){var i=r.exec;return i&&i(e.context,t)}))};function Ic(e){var t=e.initialState,r=Ar.NotStarted,i=new Set,s={_machine:e,send:function(o){r===Ar.Running&&(t=e.transition(t,o),jl(t,Tc(o)),i.forEach((function(n){return n(t)})))},subscribe:function(o){return i.add(o),o(t),{unsubscribe:function(){return i.delete(o)}}},start:function(o){if(o){var n=typeof o=="object"?o:{context:e.config.context,value:o};t={value:n.value,actions:[],context:n.context,matches:Yi(n.value)}}return r=Ar.Running,jl(t,Dc),s},stop:function(){return r=Ar.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===te.Meta&&t.push({metaEventIndex:r,timestamp:e[r].timestamp});return t}function Sm(e,t){if(e.length===0)return null;let r=0,i=e.length-1,s=null;for(;r<=i;){const o=Math.floor((r+i)/2);e[o].timestamp<=t?(s=e[o],r=o+1):i=o-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=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:(o,n)=>n.type==="CAST_EVENT"?n.payload.event:o.lastPlayedEvent}),recordTimeOffset:Er((o,n)=>{let u=o.timeOffset;return"payload"in n&&"timeOffset"in n.payload&&(u=n.payload.timeOffset),be(G({},o),{timeOffset:u,baselineTime:o.events[0].timestamp+u})}),play(o){var g;var n;const{timer:u,events:d,baselineTime:l,lastPlayedEvent:a,checkpointIndex:f}=o;u.clear();const c=Sm(f,l),h=c?c.metaEventIndex:0;let p=a==null?void 0:a.timestamp;(a==null?void 0:a.type)===te.IncrementalSnapshot&&a.data.source===j.MouseMove&&(p=a.timestamp+((n=a.data.positions[0])==null?void 0:n.timeOffset)),l<(p||0)&&i.emit(H.PlayBack);const m=new Array;for(let w=h;w<d.length;w++){const v=d[w];if(!(p&&p<l&&(v.timestamp<=p||v===a)))if(v.timestamp<l)m.push(v);else{Ul(v,l);const S=t(v,!1);u.addAction({doAction:()=>{S()},delay:(g=v.delay)!=null?g:0})}}r(m),i.emit(H.Flush),u.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:Er(o=>be(G({},o),{lastPlayedEvent:null})),startLive:Er({baselineTime:(o,n)=>(o.timer.start(),n.type==="TO_LIVE"&&n.payload.baselineTime?n.payload.baselineTime:Date.now())}),addEvent:Er((o,n)=>{var f;const{baselineTime:u,timer:d,events:l,checkpointIndex:a}=o;if(n.type==="ADD_EVENT"){const{event:c}=n.payload;Ul(c,u);let h=l.length-1,p;if(!l[h]||l[h].timestamp<=c.timestamp){if(l[h]&&Tn(l[h],c))return be(G({},o),{events:l});l.push(c),p=l.length-1}else{let w=0;for(p=0;w<=h;){const v=Math.floor((w+h)/2);l[v].timestamp<=c.timestamp?w=v+1:h=v-1}p=w;for(let v=p-1;v>=0&&l[v].timestamp===c.timestamp;v--)if(Tn(l[v],c))return be(G({},o),{events:l});for(let v=p;v<l.length&&l[v].timestamp===c.timestamp;v++)if(Tn(l[v],c))return be(G({},o),{events:l});l.splice(p,0,c)}if(c.type===te.Meta){const w={metaEventIndex:p,timestamp:c.timestamp},v=a[a.length-1];if(!v||v.timestamp<=c.timestamp)a.push(w);else{for(const y of a)y.metaEventIndex>=p&&y.metaEventIndex++;let S=0,E=a.length-1;for(;S<=E;){const y=Math.floor((S+E)/2);a[y].timestamp<=c.timestamp?S=y+1:E=y-1}a.splice(S,0,w)}}else if(p<l.length-1)for(const w of a)w.metaEventIndex>=p&&w.metaEventIndex++;const m=c.timestamp<u,g=t(c,m);m?g():d.isActive()&&d.addAction({doAction:()=>{g()},delay:(f=c.delay)!=null?f:0})}return be(G({},o),{events:l,checkpointIndex:a})})}});return Ic(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 Ic(t)}const Vl=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Gl=new Map;function Pc(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 qt(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 qt(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:o}=i;return Pc(t,s)[o]}else if("args"in i){const{rr_type:s,args:o}=i,n=window[s];return new n(...await Promise.all(o.map(qt(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 o=new Image;return o.src=i.src,e.set(i.src,o),o}}else if("data"in i&&i.rr_type==="Blob"){const s=await Promise.all(i.data.map(qt(e,t,r)));return new Blob(s,{type:i.type})}}else if(Array.isArray(i))return await Promise.all(i.map(qt(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=Pc(e,r);i.includes(t)||i.push(t)}async function Mm({mutation:e,target:t,type:r,imageMap:i,errorHandler:s}){try{const o=Cm(t,r);if(!o)return;if(e.setter){o[e.property]=e.args[0];return}const n=o[e.property],u=await Promise.all(e.args.map(qt(i,o))),d=n.apply(o,u);Rm(o,d);const l=!1}catch(o){s(e,o)}}async function Nm({event:e,mutations:t,target:r,imageMap:i,errorHandler:s}){const o=r.getContext("2d");if(!o){s(t[0],new Error("Canvas context is null"));return}const n=t.map(async d=>Promise.all(d.args.map(qt(i,o))));(await Promise.all(n)).forEach((d,l)=>{const a=t[l];try{if(a.setter){o[a.property]=a.args[0];return}const f=o[a.property];a.property==="drawImage"&&typeof a.args[0]=="string"?(i.get(e),f.apply(o,a.args)):f.apply(o,d)}catch(f){s(a,f)}})}async function Hl({event:e,mutation:t,target:r,imageMap:i,canvasEventMap:s,errorHandler:o}){try{const n=s.get(e)||t,u="commands"in n?n.commands:[n];if([Hi.WebGL,Hi.WebGL2].includes(t.type)){for(let d=0;d<u.length;d++){const l=u[d];await Mm({mutation:l,type:t.type,target:r,imageMap:i,errorHandler:o})}return}await Nm({event:e,mutations:u,target:r,imageMap:i,errorHandler:o})}catch(n){o(t,n)}}class Am{constructor(t){F(this,"mediaMap",new Map),F(this,"warn"),F(this,"service"),F(this,"speedService"),F(this,"emitter"),F(this,"getCurrentTime"),F(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(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 o=(t-i.lastInteractionTimeOffset)/1e3*i.playbackRate,n="duration"in r&&r.duration;if(Number.isNaN(n)){this.waitForMetadata(r);return}let u=i.currentTimeAtLastInteraction+o;r.loop&&n!==!1&&(u=u%n),r.currentTime=u}else r.pause(),r.currentTime=i.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;const r=()=>{this.metadataCallbackMap.delete(t);const i=this.mediaMap.get(t);i&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:i})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:i}){var h,p,m,g,w;const s=this.mediaMap.get(t),{type:o,playbackRate:n,currentTime:u,muted:d,volume:l,loop:a}=i;return{isPlaying:o===no.Play||o!==no.Pause&&((s==null?void 0:s.isPlaying)||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:(h=u!=null?u:s==null?void 0:s.currentTimeAtLastInteraction)!=null?h:0,lastInteractionTimeOffset:r,playbackRate:(p=n!=null?n:s==null?void 0:s.playbackRate)!=null?p:1,volume:(m=l!=null?l:s==null?void 0:s.volume)!=null?m:1,muted:(g=d!=null?d:s==null?void 0:s.muted)!=null?g: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:o,isPlaying:n}=r,u=this.service.state.matches("paused"),d=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==o&&(t.volume=o),t.muted=i,t.loop=s,t.playbackRate!==d&&(t.playbackRate=d),n&&!u?t.play():t.pause()}catch(l){this.warn(`Failed to replay media interactions: ${l.message||l}`)}}addMediaElements(t,r,i){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;const s=t,o=i.getMeta(s);if(!o||!("attributes"in o))return;const n=this.service.state.matches("paused"),u=o.attributes;let d=!1;u.rr_mediaState?d=u.rr_mediaState==="played":d=s.getAttribute("autoplay")!==null,d&&n&&s.pause();let l=1;typeof u.rr_mediaPlaybackRate=="number"&&(l=u.rr_mediaPlaybackRate);let a=!1;typeof u.rr_mediaMuted=="boolean"?a=u.rr_mediaMuted:a=s.getAttribute("muted")!==null;let f=!1;typeof u.rr_mediaLoop=="boolean"?f=u.rr_mediaLoop:f=s.getAttribute("loop")!==null;let c=1;typeof u.rr_mediaVolume=="number"&&(c=u.rr_mediaVolume);let h=0;typeof u.rr_mediaCurrentTime=="number"&&(h=u.rr_mediaCurrentTime),this.mediaMap.set(s,{isPlaying:d,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:r,playbackRate:l,volume:c,muted:a,loop:f}),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 Ai(e,t){if(e.nodeName!=="DIALOG"||e instanceof pt)return;const r=e,i=r.open,s=i&&r.matches("dialog:modal"),o=r.getAttribute("rr_open_mode"),n=typeof(t==null?void 0:t.attributes.open)=="string"||typeof r.getAttribute("open")=="string",u=o==="modal";if(!(i&&!(s&&o==="non-modal"||!s&&u))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}i&&r.close(),n&&(u?r.showModal():r.show())}}function Om(e,t){if(e.nodeName!=="DIALOG"||e instanceof pt)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=Oc||vm,Yl="[replayer]",Oi="__rrweb-injected-style__",kn={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Jl(e){return e.type==te.IncrementalSnapshot&&(e.data.source==j.TouchMove||e.data.source==j.MouseInteraction&&e.data.type==Se.TouchStart)}class Tm{constructor(t,r){if(F(this,"wrapper"),F(this,"iframe"),F(this,"service"),F(this,"speedService"),F(this,"config"),F(this,"usingVirtualDom",!1),F(this,"virtualDom",new qr),F(this,"mouse"),F(this,"mouseTail",null),F(this,"tailPositions",[]),F(this,"emitter",Dm()),F(this,"nextUserInteractionEvent"),F(this,"legacy_missingNodeRetryMap",{}),F(this,"cache",rl()),F(this,"imageMap",new Map),F(this,"canvasEventMap",new Map),F(this,"mirror",eo()),F(this,"styleMirror",new dm),F(this,"mediaManager"),F(this,"firstFullSnapshot",null),F(this,"seekCache"),F(this,"newDocumentQueue",[]),F(this,"mousePos",null),F(this,"touchActive",null),F(this,"seekInProgress",!1),F(this,"pendingCaptureTimer",null),F(this,"lastMouseDownEvent",null),F(this,"lastHoveredRootNode"),F(this,"lastSelectionData",null),F(this,"constructedStyleMutations",[]),F(this,"adoptedStyleSheets",[]),F(this,"snapshotAdoptedStyleSheetQueue",[]),F(this,"handleResize",l=>{this.iframe.style.display="inherit";for(const a of[this.mouseTail,this.iframe])a&&(a.setAttribute("width",String(l.width)),a.setAttribute("height",String(l.height)))}),F(this,"applyEventsSynchronously",l=>{var a;let f=-1;for(let h=l.length-1;h>=0;h--)if(l[h].type===te.FullSnapshot){f=h;break}let c=0;if(this.config.useSeekCache&&l.length>0){const h=l.find(p=>p.type===te.FullSnapshot);if(h){const p=l[l.length-1].timestamp,m=this.seekCache.findBestFor(p,h.timestamp);if(m){const g=l.find(S=>S.type===te.Meta);g&&this.getCastFn(g,!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,v=l.length;for(;w<v;){const S=w+v>>>1;l[S].timestamp<=m.timestamp?w=S+1:v=S}c=w}}}for(let h=c;h<l.length;h++){const p=l[h];switch(p.type){case te.DomContentLoaded:case te.Load:case te.Custom:continue;case te.IncrementalSnapshot:if(h<f)continue;break;case te.FullSnapshot:case te.Meta:case te.Plugin:break}this.getCastFn(p,!0)()}}),F(this,"getCastFn",(l,a=!1)=>{let f;switch(l.type){case te.DomContentLoaded:case te.Load:break;case te.Custom:f=()=>{this.emitter.emit(H.CustomEvent,l)};break;case te.Meta:f=()=>this.emitter.emit(H.Resize,{width:l.data.width,height:l.data.height});break;case te.FullSnapshot:f=()=>{var h;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,a),(h=this.iframe.contentWindow)==null||h.scrollTo(l.data.initialOffset)};break;case te.IncrementalSnapshot:f=()=>{if(this.applyIncremental(l,a),!a&&this.config.skipInactive&&!this.nextUserInteractionEvent){for(const h of this.service.state.context.events)if(!(h.timestamp<=l.timestamp)&&this.isUserInteraction(h)){h.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=h);break}if(this.nextUserInteractionEvent){const h=this.nextUserInteractionEvent.delay-l.delay;this.playInternal(this.getCurrentTime()+h),this.nextUserInteractionEvent=null}}};break}return()=>{f&&f();for(const p of this.config.plugins||[])p.handler&&p.handler(l,a,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});const h=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[h]){const p=()=>{h<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(H.Finish))};let m=50;l.type===te.IncrementalSnapshot&&l.data.source===j.MouseMove&&l.data.positions.length&&(m+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(p,m)}this.emitter.emit(H.EventCast,l)}}),!(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 l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(H.Flush,()=>{if(this.usingVirtualDom){const l={mirror:this.mirror,applyCanvas:(a,f,c)=>{Hl({event:a,mutation:f,target:c,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(a,f)=>{a.source===j.StyleSheetRule?this.applyStyleSheetRule(a,f):a.source===j.StyleDeclaration&&this.applyStyleDeclaration(a,f)},afterAppend:(a,f)=>{for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(a,{id:f,replayer:this})}};if(this.iframe.contentDocument)try{Vi(this.iframe.contentDocument,this.virtualDom,l,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 f=this.legacy_missingNodeRetryMap[a],c=Gi(f.node,this.mirror,this.virtualDom.mirror);Vi(c,f.node,l,this.virtualDom.mirror),f.node=c}catch(f){this.warn(f)}this.constructedStyleMutations.forEach(a=>{this.applyStyleSheetMutation(a)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(a=>{this.applyAdoptedStyleSheet(a)}),this.adoptedStyleSheets=[],this.snapshotAdoptedStyleSheetQueue.forEach(({id:a,adoptedStyleSheets:f})=>{this.applyQueuedSnapshotAdoptedStyleSheets(a,f)}),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[l,a]=this.lastMouseDownEvent;l.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 l=this.getTimeOffset();this.emitter.emit(H.SeekEnd,{timeOffset:l})}if(this.config.useSeekCache){const l=this.service.state.context.baselineTime;this.pendingCaptureTimer!==null&&clearTimeout(this.pendingCaptureTimer),this.pendingCaptureTimer=setTimeout(()=>{this.pendingCaptureTimer=null,this.captureSeekCacheEntry(l)},0)}});const s=new wm([],{speed:this.config.speed}),o=t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,a)=>l.timestamp-a.timestamp),n=bm(o);this.service=_m({events:o,timer:s,timeOffset:0,baselineTime:0,lastPlayedEvent:null,checkpointIndex:n},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(H.StateChange,{player:l})}),this.speedService=Em({normalSpeed:-1,timer:s}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(H.StateChange,{speed:l})}),this.mediaManager=new Am({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const u=this.service.state.context.events.find(l=>l.type===te.Meta),d=this.service.state.context.events.find(l=>l.type===te.FullSnapshot);if(u){const{width:l,height:a}=u.data;setTimeout(()=>{this.emitter.emit(H.Resize,{width:l,height:a})},0)}d&&setTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=d,this.rebuildFullSnapshot(d),(l=this.iframe.contentWindow)==null||l.scrollTo(d.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 n,u;if(!this.iframe.contentDocument||t<=0)return;const r=eo();this.mirror.getIds().forEach(d=>{const l=this.mirror.getNode(d);if(!l)return;const a=this.mirror.getMeta(l);a&&r.add(l,a)});const i=Pd(this.iframe.contentDocument,{mirror:r,blockClass:this.config.blockClass,inlineStylesheet:!0,onAdoptedStyleSheet:d=>this.styleMirror.add(d)});if(!i)return;const s=this.iframe.contentDocument.scrollingElement||this.iframe.contentDocument.documentElement,o={top:(n=s==null?void 0:s.scrollTop)!=null?n:0,left:(u=s==null?void 0:s.scrollLeft)!=null?u:0};this.seekCache.add(t,i,o)}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,o=(d,l)=>{var a;if(d.nodeName==="DIALOG"&&s.add(d),this.collectIframeAndAttachDocument(i,d),this.mediaManager.isSupportedMediaElement(d)){const{events:c}=this.service.state.context;this.mediaManager.addMediaElements(d,t.timestamp-c[0].timestamp,this.mirror)}const f=this.mirror.getMeta(d);f&&"adoptedStyleSheets"in f&&((a=f.adoptedStyleSheets)!=null&&a.length)&&this.applySnapshotAdoptedStyleSheets(d,f.adoptedStyleSheets);for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(d,{id:l,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),this.styleMirror.reset(),np(t.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror}),o(this.iframe.contentDocument,t.data.node.id);for(const{mutationInQueue:d,builtNode:l}of i)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==d);const{documentElement:n,head:u}=this.iframe.contentDocument;this.insertStyleRules(n,u),s.forEach(d=>Ai(d)),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 o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,so(o,this.virtualDom.unserializedId)),t.insertBefore(o,r),o.rules.push({source:j.StyleSheetRule,adds:s.map((n,u)=>({rule:n,index:u}))})}else{const o=document.createElement("style");t.insertBefore(o,r);for(let n=0;n<s.length;n++)(i=o.sheet)==null||i.insertRule(s[n],n)}}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")!==Oi){const o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,so(o,this.virtualDom.unserializedId)),o.setAttribute("id",Oi),t.insertBefore(o,t.firstChild||null),o.rules.push({source:j.StyleSheetRule,adds:i.map((n,u)=>({rule:n,index:u}))})}else if(this.isShadowRoot(t)&&!t.getElementById(Oi)){const o=document.createElement("style");o.id=Oi,t.insertBefore(o,(s=t.firstChild)!=null?s:null);for(let n=0;n<i.length;n++)(r=o.sheet)==null||r.insertRule(i[n],n)}}}attachDocumentToIframe(t,r){const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,s=[],o=new Set,n=(d,l)=>{var a;d.nodeName==="DIALOG"&&o.add(d),this.collectIframeAndAttachDocument(s,d);const f=i.getMeta(d);if((f==null?void 0:f.type)===Ge.Element&&(f==null?void 0:f.tagName.toUpperCase())==="HTML"){if(!r.contentDocument)return;const{documentElement:c,head:h}=r.contentDocument;this.insertStyleRules(c,h)}{const c=i.getMeta(d);if(c&&"adoptedStyleSheets"in c&&((a=c.adoptedStyleSheets)!=null&&a.length))if(this.usingVirtualDom){const h=i.getId(d);this.snapshotAdoptedStyleSheetQueue.push({id:h,adoptedStyleSheets:c.adoptedStyleSheets})}else this.applySnapshotAdoptedStyleSheets(d,c.adoptedStyleSheets)}if(!this.usingVirtualDom)for(const c of this.config.plugins||[])c.onBuild&&c.onBuild(d,{id:l,replayer:this})},u=r.contentDocument;if(u){si(t.node,{doc:u,mirror:i,hackCss:!0,skipChild:!1,afterAppend:n,cache:this.cache}),n(u,t.node.id);for(const{mutationInQueue:d,builtNode:l}of s)this.attachDocumentToIframe(d,l),this.newDocumentQueue=this.newDocumentQueue.filter(a=>a!==d);o.forEach(d=>Ai(d))}}collectIframeAndAttachDocument(t,r){if(On(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,o=this.service.state;const n=()=>{o=this.service.state};this.emitter.on(H.Start,n),this.emitter.on(H.Pause,n);const u=()=>{this.emitter.off(H.Start,n),this.emitter.off(H.Pause,n)};r.querySelectorAll('link[rel="stylesheet"]').forEach(d=>{d.sheet||(i.add(d),d.addEventListener("load",()=>{i.delete(d),i.size===0&&s!==-1&&(o.matches("playing")&&this.playInternal(this.getCurrentTime()),this.emitter.emit(H.LoadStylesheetEnd),s&&clearTimeout(s),u())}))}),i.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(H.LoadStylesheetStart),s=setTimeout(()=>{o.matches("playing")&&this.playInternal(this.getCurrentTime()),s=-1,u()},this.config.loadTimeout))}}async preloadAllImages(){const t=[];for(const r of this.service.state.context.events)r.type===te.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"),o=s==null?void 0:s.createImageData(i.width,i.height);o&&(s==null||s.putImageData(o,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 o=>{const n=await Promise.all(o.args.map(qt(this.imageMap,null,i)));return be(G({},o),{args:n})}));i.isUnchanged===!1&&this.canvasEventMap.set(r,be(G({},t),{commands:s}))}else{const s=await Promise.all(t.args.map(qt(this.imageMap,null,i)));i.isUnchanged===!1&&this.canvasEventMap.set(r,be(G({},t),{args:s}))}}}applyIncremental(t,r){var i,s,o;const{data:n}=t;switch(n.source){case j.Mutation:{try{this.applyMutation(n,r)}catch(u){this.warn(`Exception in mutation ${u.message||u}`,n)}break}case j.Drag:case j.TouchMove:case j.MouseMove:if(r){const u=n.positions[n.positions.length-1];this.mousePos={x:u.x,y:u.y,id:u.id,debugData:n}}else n.positions.forEach(u=>{const d={doAction:()=>{this.moveAndHover(u.x,u.y,u.id,r,n)},delay:u.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(d)}),this.timer.addAction({doAction(){},delay:t.delay-((i=n.positions[0])==null?void 0:i.timeOffset)});break;case j.MouseInteraction:{if(n.id===-1)break;const u=new Event(di(Se[n.type])),d=this.mirror.getNode(n.id);if(!d)return this.debugNodeNotFound(n,n.id);this.emitter.emit(H.MouseInteraction,{type:n.type,target:d});const{triggerFocus:l}=this.config;switch(n.type){case Se.Blur:"blur"in d&&d.blur();break;case Se.Focus:l&&d.focus&&d.focus({preventScroll:!0});break;case Se.Click:case Se.TouchStart:case Se.TouchEnd:case Se.MouseDown:case Se.MouseUp:r?(n.type===Se.TouchStart?this.touchActive=!0:n.type===Se.TouchEnd&&(this.touchActive=!1),n.type===Se.MouseDown?this.lastMouseDownEvent=[d,u]:n.type===Se.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:n.x||0,y:n.y||0,id:n.id,debugData:n}):(n.type===Se.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(n.x||0,n.y||0,n.id,r,n),n.type===Se.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):n.type===Se.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):n.type===Se.TouchEnd?this.mouse.classList.remove("touch-active"):d.dispatchEvent(u));break;case Se.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:d.dispatchEvent(u)}break}case j.Scroll:{if(n.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);u.scrollData=n;break}this.applyScroll(n,r);break}case j.ViewportResize:this.emitter.emit(H.Resize,{width:n.width,height:n.height});break;case j.Input:{if(n.id===-1)break;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);u.inputData=n;break}this.applyInput(n);break}case j.MediaInteraction:{const u=this.usingVirtualDom?this.virtualDom.mirror.getNode(n.id):this.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);const d=u,{events:l}=this.service.state.context;this.mediaManager.mediaMutation({target:d,timeOffset:t.timestamp-l[0].timestamp,mutation:n});break}case j.StyleSheetRule:case j.StyleDeclaration:{this.usingVirtualDom?n.styleId?this.constructedStyleMutations.push(n):n.id&&((s=this.virtualDom.mirror.getNode(n.id))==null||s.rules.push(n)):this.applyStyleSheetMutation(n);break}case j.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const u=this.virtualDom.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);u.canvasMutations.push({event:t,mutation:n})}else{const u=this.mirror.getNode(n.id);if(!u)return this.debugNodeNotFound(n,n.id);Hl({event:t,mutation:n,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case j.Font:{try{const u=new FontFace(n.family,n.buffer?new Uint8Array(JSON.parse(n.fontSource)):n.fontSource,n.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(u)}catch(u){this.warn(u)}break}case j.Selection:{if(r){this.lastSelectionData=n;break}this.applySelection(n);break}case j.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(n):this.applyAdoptedStyleSheet(n);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 l in this.legacy_missingNodeRetryMap)try{const a=this.legacy_missingNodeRetryMap[l],f=Rc(a.node,this.virtualDom,this.mirror);f&&(a.node=f)}catch(a){this.warn(a)}}const i=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(l=>i.getNode(l.id)?!0:(this.warnNodeNotFound(t,l.id),!1)),t.removes.forEach(l=>{var a;const f=i.getNode(l.id);if(!f)return;let c=i.getNode(l.parentId);if(!c)return this.warnNodeNotFound(t,l.parentId);if(l.isShadow&&Et(c)&&(c=c.shadowRoot),i.removeNodeFromMap(f),c)try{c.removeChild(f),this.usingVirtualDom&&f.nodeName==="#text"&&c.nodeName==="STYLE"&&((a=c.rules)==null?void 0:a.length)>0&&(c.rules=[])}catch(h){if(h instanceof DOMException)this.warn("parent could not remove child in mutation",c,f,t);else throw h}});const s=G({},this.legacy_missingNodeRetryMap),o=[],n=l=>{let a=null;return l.nextId&&(a=i.getNode(l.nextId)),l.nextId!==null&&l.nextId!==void 0&&l.nextId!==-1&&!a},u=l=>{var a,f;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=i.getNode(l.parentId);if(!c)return l.node.type===Ge.Document?this.newDocumentQueue.push(l):o.push(l);l.node.isShadow&&(Et(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot,this.insertStyleRulesIntoShadowRoot(c));let h=null,p=null;if(l.previousId&&(h=i.getNode(l.previousId)),l.nextId&&(p=i.getNode(l.nextId)),n(l))return o.push(l);if(l.node.rootId&&!i.getNode(l.node.rootId))return;const m=l.node.rootId?i.getNode(l.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(On(c,i)){this.attachDocumentToIframe(l,c);return}const g=(S,E)=>{const y=this.inlineAdoptedStyleSheetsFromMutationNode(l.node,S);if(y&&this.usingVirtualDom&&this.snapshotAdoptedStyleSheetQueue.push({id:E,adoptedStyleSheets:y}),!this.usingVirtualDom){Ai(S),y&&(this.ensureShadowHostForInlineAdoptedStyles(l.node,S),this.applySnapshotAdoptedStyleSheets(S,y));for(const b of this.config.plugins||[])b.onBuild&&b.onBuild(S,{id:E,replayer:this})}},w=si(l.node,{doc:m,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:g});if(l.previousId===-1||l.nextId===-1){s[l.node.id]={node:w,mutation:l};return}const v=i.getMeta(c);if(v&&v.type===Ge.Element&&l.node.type===Ge.Text){const S=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(v.tagName==="textarea")for(const E of S)E.nodeType===c.TEXT_NODE&&c.removeChild(E);else if(v.tagName==="style"&&S.length===1)for(const E of S)E.nodeType===c.TEXT_NODE&&!i.hasNode(E)&&(w.textContent=E.textContent,c.removeChild(E))}else if((v==null?void 0:v.type)===Ge.Document){const S=c;l.node.type===Ge.DocumentType&&((a=S.childNodes[0])==null?void 0:a.nodeType)===Node.DOCUMENT_TYPE_NODE&&S.removeChild(S.childNodes[0]),w.nodeName==="HTML"&&S.documentElement&&S.removeChild(S.documentElement)}if(h&&h.nextSibling&&h.nextSibling.parentNode?c.insertBefore(w,h.nextSibling):p&&p.parentNode?c.contains(p)?c.insertBefore(w,p):c.insertBefore(w,null):c.appendChild(w),g(w,l.node.id),this.usingVirtualDom&&w.nodeName==="#text"&&c.nodeName==="STYLE"&&((f=c.rules)==null?void 0:f.length)>0&&(c.rules=[]),On(w,this.mirror)){const S=this.mirror.getId(w),E=this.newDocumentQueue.find(y=>y.parentId===S);E&&(this.attachDocumentToIframe(E,w),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==E))}(l.previousId||l.nextId)&&this.legacy_resolveMissingNode(s,c,w,l)};t.adds.forEach(l=>{u(l)});const d=Date.now();for(;o.length;){const l=o.length,a=fm(o);if(o.length=0,Date.now()-d>500){this.warn("Timeout in the loop, please check the resolve tree data:",a);break}for(const f of a)i.getNode(f.value.parentId)?Nc(f,h=>{u(h)}):this.debug("Drop resolve tree since there is no parent for the root node.",f);if(o.length===l){this.warn("Dropping the resolve queue since none of the remaining nodes can be resolved",a.map(f=>({id:f.value.node.id,parentId:f.value.parentId,nextId:f.value.nextId,children:f.children.length})));break}}Object.keys(s).length&&Object.assign(this.legacy_missingNodeRetryMap,s),hm(t.texts).forEach(l=>{var a;const f=i.getNode(l.id);if(!f)return t.removes.find(h=>h.id===l.id)?void 0:this.warnNodeNotFound(t,l.id);const c=f.parentElement;if(l.value&&c&&c.tagName==="STYLE"?f.textContent=hs(l.value,this.cache):f.textContent=l.value,this.usingVirtualDom){const h=f.parentNode;((a=h==null?void 0:h.rules)==null?void 0:a.length)>0&&(h.rules=[])}}),t.attributes.forEach(l=>{var a;const f=i.getNode(l.id);if(!f)return t.removes.find(c=>c.id===l.id)?void 0:this.warnNodeNotFound(t,l.id);for(const c in l.attributes)if(typeof c=="string"){const h=l.attributes[c];if(h===null)f.removeAttribute(c),c==="open"&&Om(f,l);else if(typeof h=="string")try{if(c==="_cssText"&&(f.nodeName==="LINK"||f.nodeName==="STYLE"))try{const p=i.getMeta(f);Object.assign(p.attributes,l.attributes);const m=si(p,{doc:f.ownerDocument,mirror:i,skipChild:!0,hackCss:!0,cache:this.cache}),g=f.nextSibling,w=f.parentNode;if(m&&w){w.removeChild(f),w.insertBefore(m,g),i.replace(l.id,m);break}}catch(p){}if(c==="value"&&f.nodeName==="TEXTAREA"){const p=f;p.childNodes.forEach(g=>p.removeChild(g));const m=(a=f.ownerDocument)==null?void 0:a.createTextNode(h);m&&p.appendChild(m)}else f.setAttribute(c,h);c==="rr_open_mode"&&f.nodeName==="DIALOG"&&Ai(f,l)}catch(p){this.warn("An error occurred may due to the checkout feature.",p)}else if(c==="style"){const p=h,m=f;for(const g in p)if(p[g]===!1)m.style.removeProperty(g);else if(p[g]instanceof Array){const w=p[g];m.style.setProperty(g,w[0],w[1])}else{const w=p[g];m.style.setProperty(g,w)}}}})}applyScroll(t,r){var i,s;const o=this.mirror.getNode(t.id);if(!o)return this.debugNodeNotFound(t,t.id);const n=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(i=this.iframe.contentWindow)==null||i.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if((n==null?void 0:n.type)===Ge.Document)(s=o.defaultView)==null||s.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{o.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch(u){}}applyInput(t){const r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch(i){}}applySelection(t){try{const r=new Set,i=t.ranges.map(({start:s,startOffset:o,end:n,endOffset:u})=>{const d=this.mirror.getNode(s),l=this.mirror.getNode(n);if(!d||!l)return;const a=new Range;a.setStart(d,o),a.setEnd(l,u);const f=d.ownerDocument,c=f==null?void 0:f.getSelection();return c&&r.add(c),{range:a,selection:c}});r.forEach(s=>s.removeAllRanges()),i.forEach(s=>{var o;return s&&((o=s.selection)==null?void 0:o.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,o,n;if((i=t.adds)==null||i.forEach(({rule:u,index:d})=>{try{if(Array.isArray(d)){const{positions:l,index:a}=Fl(d);Zr(r.cssRules,l).insertRule(u,a)}else{const l=d===void 0?void 0:Math.min(d,r.cssRules.length);r==null||r.insertRule(u,l)}}catch(l){}}),(s=t.removes)==null||s.forEach(({index:u})=>{try{if(Array.isArray(u)){const{positions:d,index:l}=Fl(u);Zr(r.cssRules,d).deleteRule(l||0)}else r==null||r.deleteRule(u)}catch(d){}}),t.replace)try{(o=r.replace)==null||o.call(r,t.replace)}catch(u){}if(t.replaceSync)try{(n=r.replaceSync)==null||n.call(r,t.replaceSync)}catch(u){}}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)}applyQueuedSnapshotAdoptedStyleSheets(t,r){const i=this.mirror.getNode(t);if(!i)return;const s=this.mirror.getMeta(i);(s==null?void 0:s.type)===Ge.Element&&s.isShadowHost&&i.nodeType===Node.ELEMENT_NODE&&!Et(i)&&i.attachShadow({mode:"open"}),this.applySnapshotAdoptedStyleSheets(i,r)}inlineAdoptedStyleSheetsFromMutationNode(t,r){var i;return!("adoptedStyleSheets"in t)||!((i=t.adoptedStyleSheets)!=null&&i.length)?null:t.type===Ge.Document||t.type===Ge.Element&&t.isShadowHost||Et(r)?t.adoptedStyleSheets:null}ensureShadowHostForInlineAdoptedStyles(t,r){if(t.type!==Ge.Element||!t.isShadowHost)return;const i=r;i.nodeType!==Node.ELEMENT_NODE||Et(i)||i.attachShadow({mode:"open"})}applySnapshotAdoptedStyleSheets(t,r){var i;let s=null;if(Et(t)?s=((i=t.ownerDocument)==null?void 0:i.defaultView)||null:t.nodeName==="#document"&&(s=t.defaultView),!s)return;const o=[];for(const{styleId:n,rules:u}of r){const d=this.styleMirror.getStyle(n);if(d){u.length&&this.applyStyleSheetRule({source:j.StyleSheetRule,adds:u},d),o.push(d);continue}try{const l=new s.CSSStyleSheet;this.styleMirror.add(l,n),u.length&&this.applyStyleSheetRule({source:j.StyleSheetRule,adds:u},l),o.push(l)}catch(l){}}Et(t)?t.shadowRoot.adoptedStyleSheets=o:t.nodeName==="#document"&&(t.adoptedStyleSheets=o)}applyAdoptedStyleSheet(t){var r;const i=this.mirror.getNode(t.id);if(!i)return;(r=t.styles)==null||r.forEach(u=>{var d;let l=null,a=null;if(Et(i)?a=((d=i.ownerDocument)==null?void 0:d.defaultView)||null:i.nodeName==="#document"&&(a=i.defaultView),!!a)try{l=new a.CSSStyleSheet,this.styleMirror.add(l,u.styleId),this.applyStyleSheetRule({source:j.StyleSheetRule,adds:u.rules},l)}catch(f){}});const s=10;let o=0;const n=(u,d)=>{const l=d.map(a=>this.styleMirror.getStyle(a)).filter(a=>a!==null);Et(u)?u.shadowRoot.adoptedStyleSheets=l:u.nodeName==="#document"&&(u.adoptedStyleSheets=l),l.length!==d.length&&o<s&&(setTimeout(()=>n(u,d),0+100*o),o++)};n(i,t.styleIds)}legacy_resolveMissingNode(t,r,i,s){const{previousId:o,nextId:n}=s,u=o&&t[o],d=n&&t[n];if(u){const{node:l,mutation:a}=u;r.insertBefore(l,i),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,l,a)}if(d){const{node:l,mutation:a}=d;r.insertBefore(l,i.nextSibling),delete t[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(t,r,l,a)}}moveAndHover(t,r,i,s,o){const n=this.mirror.getNode(i);if(!n)return this.debugNodeNotFound(o,i);const u=Ac(n,this.iframe),d=t*u.absoluteScale+u.x,l=r*u.absoluteScale+u.y;this.mouse.style.left=`${d}px`,this.mouse.style.top=`${l}px`,s||this.drawMouseTail({x:d,y:l}),this.hoverElements(n)}drawMouseTail(t){if(!this.mouseTail)return;const{lineCap:r,lineWidth:i,strokeStyle:s,duration:o}=this.config.mouseTail===!0?kn:Object.assign({},kn,this.config.mouseTail),n=()=>{if(!this.mouseTail)return;const u=this.mouseTail.getContext("2d");!u||!this.tailPositions.length||(u.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),u.beginPath(),u.lineWidth=i,u.lineCap=r,u.strokeStyle=s,u.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(d=>u.lineTo(d.x,d.y)),u.stroke())};this.tailPositions.push(t),n(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(u=>u!==t),n()},o/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!==te.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 Ke=Uint8Array,jt=Uint16Array,oo=Uint32Array,Lc=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]),Fc=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]),km=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bc=function(e,t){for(var r=new jt(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 o=r[i];o<r[i+1];++o)s[o]=o-r[i]<<5|i;return[r,s]},Uc=Bc(Lc,2),$c=Uc[0],Im=Uc[1];$c[28]=258,Im[258]=28;var Pm=Bc(Fc,0),Lm=Pm[0],ao=new jt(32768);for(var de=0;de<32768;++de){var Ft=(de&43690)>>>1|(de&21845)<<1;Ft=(Ft&52428)>>>2|(Ft&13107)<<2,Ft=(Ft&61680)>>>4|(Ft&3855)<<4,ao[de]=((Ft&65280)>>>8|(Ft&255)<<8)>>>1}var ni=(function(e,t,r){for(var i=e.length,s=0,o=new jt(t);s<i;++s)++o[e[s]-1];var n=new jt(t);for(s=0;s<t;++s)n[s]=n[s-1]+o[s-1]<<1;var u;if(r){u=new jt(1<<t);var d=15-t;for(s=0;s<i;++s)if(e[s])for(var l=s<<4|e[s],a=t-e[s],f=n[e[s]-1]++<<a,c=f|(1<<a)-1;f<=c;++f)u[ao[f]>>>d]=l}else for(u=new jt(i),s=0;s<i;++s)u[s]=ao[n[e[s]-1]++]>>>15-e[s];return u}),gi=new Ke(288);for(var de=0;de<144;++de)gi[de]=8;for(var de=144;de<256;++de)gi[de]=9;for(var de=256;de<280;++de)gi[de]=7;for(var de=280;de<288;++de)gi[de]=8;var Wc=new Ke(32);for(var de=0;de<32;++de)Wc[de]=5;var Fm=ni(gi,9,1),Bm=ni(Wc,5,1),In=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},it=function(e,t,r){var i=t/8>>0;return(e[i]|e[i+1]<<8)>>>(t&7)&r},Pn=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)},zc=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var i=new(e instanceof jt?jt:e instanceof oo?oo:Ke)(r-t);return i.set(e.subarray(t,r)),i},$m=function(e,t,r){var i=e.length,s=!t||r,o=!r||r.i;r||(r={}),t||(t=new Ke(i*3));var n=function($){var Z=t.length;if($>Z){var B=new Ke(Math.max(Z*2,$));B.set(t),t=B}},u=r.f||0,d=r.p||0,l=r.b||0,a=r.l,f=r.d,c=r.m,h=r.n,p=i*8;do{if(!a){r.f=u=it(e,d,1);var m=it(e,d+1,3);if(d+=3,m)if(m==1)a=Fm,f=Bm,c=9,h=5;else if(m==2){var S=it(e,d,31)+257,E=it(e,d+10,15)+4,y=S+it(e,d+5,31)+1;d+=14;for(var b=new Ke(y),_=new Ke(19),C=0;C<E;++C)_[km[C]]=it(e,d+C*3,7);d+=E*3;var N=In(_),x=(1<<N)-1;if(!o&&d+y*(N+7)>p)break;for(var I=ni(_,N,1),C=0;C<y;){var D=I[it(e,d,x)];d+=D&15;var g=D>>>4;if(g<16)b[C++]=g;else{var ae=0,ee=0;for(g==16?(ee=3+it(e,d,3),d+=2,ae=b[C-1]):g==17?(ee=3+it(e,d,7),d+=3):g==18&&(ee=11+it(e,d,127),d+=7);ee--;)b[C++]=ae}}var R=b.subarray(0,S),ie=b.subarray(S);c=In(R),h=In(ie),a=ni(R,c,1),f=ni(ie,h,1)}else throw"invalid block type";else{var g=Um(d)+4,w=e[g-4]|e[g-3]<<8,v=g+w;if(v>i){if(o)throw"unexpected EOF";break}s&&n(l+w),t.set(e.subarray(g,v),l),r.b=l+=w,r.p=d=v*8;continue}if(d>p)throw"unexpected EOF"}s&&n(l+131072);for(var L=(1<<c)-1,q=(1<<h)-1,P=c+h+18;o||d+P<p;){var ae=a[Pn(e,d)&L],z=ae>>>4;if(d+=ae&15,d>p)throw"unexpected EOF";if(!ae)throw"invalid length/literal";if(z<256)t[l++]=z;else if(z==256){a=null;break}else{var Ce=z-254;if(z>264){var C=z-257,we=Lc[C];Ce=it(e,d,(1<<we)-1)+$c[C],d+=we}var O=f[Pn(e,d)&q],ue=O>>>4;if(!O)throw"invalid distance";d+=O&15;var ie=Lm[ue];if(ue>3){var we=Fc[ue];ie+=Pn(e,d)&(1<<we)-1,d+=we}if(d>p)throw"unexpected EOF";s&&n(l+131072);for(var k=l+Ce;l<k;l+=4)t[l]=t[l-ie],t[l+1]=t[l+1-ie],t[l+2]=t[l+2-ie],t[l+3]=t[l+3-ie];l=k}}r.l=a,r.p=d,r.b=l,a&&(u=1,r.m=c,r.d=f,r.n=h)}while(!u);return l==t.length?t:zc(t,0,l)},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 Ke(e.length+(e.length>>>1)),s=0,o=function(l){i[s++]=l},n=0;n<r;++n){if(s+5>i.length){var u=new Ke(s+8+(r-n<<1));u.set(i),i=u}var d=e.charCodeAt(n);o(d)}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!==te.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=me(t,"disabled",8),i=me(t,"checked",12),s=me(t,"id",8),o=me(t,"label",8);var n=Qm();let u;var d=ot(n);Rh(d);var l=He(d,2),a=He(l,2),f=ot(a,!0);nt(a),nt(n),Rr(()=>{u=Kn(n,1,"switch svelte-184lr04",null,u,{disabled:r()}),or(d,"id",s()),d.disabled=r(),or(l,"for",s()),Li(f,o())}),Ah(d,i),Rt(e,n)}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
|
|
162
162
|
512q0 53.00224-37.49888 90.50112t-90.50112
|
|
163
163
|
37.49888-90.50112-37.49888-37.49888-90.50112l0-512q0-53.00224
|
|
164
164
|
37.49888-90.50112t90.50112-37.49888zM341.34016 128q53.00224 0
|
|
@@ -178,10 +178,10 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
178
178
|
224C964 358.4 942.4 380 916 380zM231.2 860l108.8 0c26.4 0 48 21.6 48
|
|
179
179
|
48s-21.6 48-48 48l-224 0c-26.4 0-48-21.6-48-48l0-224c0-26.4 21.6-48
|
|
180
180
|
48-48 26.4 0 48 21.6 48 48L164 792l253.6-253.6c18.4-18.4 48.8-18.4
|
|
181
|
-
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=me(t,"replayer",8),s=me(t,"showController",8),o=me(t,"autoPlay",8),n=me(t,"skipInactive",12),u=me(t,"speedOption",8),d=me(t,"speed",28,()=>u().length?u()[0]:1),l=me(t,"tags",24,()=>({})),a=me(t,"inactiveColor",8),f=Oe(0),c=null,h=Oe(),p=Oe(),m=Oe(),g,w=!1,v=null,
|
|
182
|
-
${(jr=(A(le),Ee(()=>A(le).position)))!=null?jr:""};`)}),
|
|
183
|
-
2px;transform: translate(-50%, -50%);background: ${(
|
|
184
|
-
${(
|
|
181
|
+
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=me(t,"replayer",8),s=me(t,"showController",8),o=me(t,"autoPlay",8),n=me(t,"skipInactive",12),u=me(t,"speedOption",8),d=me(t,"speed",28,()=>u().length?u()[0]:1),l=me(t,"tags",24,()=>({})),a=me(t,"inactiveColor",8),f=Oe(0),c=null,h=Oe(),p=Oe(),m=Oe(),g,w=!1,v=null,S=null,E=Oe(),y=Oe();function b(k,$,Z){const B=$-k;return(100-($-Z)/B*100).toFixed(2)}let _=Oe(),C=Oe();const N=()=>{x();function k(){re(f,i().getCurrentTime()),w&&A(f)>=w&&(S?R(S.start,S.end,!0,void 0):(i().pause(),v&&(v(),v=null))),A(f)<A(E).totalTime&&(c=requestAnimationFrame(k))}c=requestAnimationFrame(k)},x=()=>{c&&(cancelAnimationFrame(c),c=null)},I=()=>{switch(A(h)){case"playing":ae();break;case"paused":D();break}},D=()=>{A(h)==="paused"&&(g?(i().play(),g=!1):i().play(A(f)))},ae=()=>{A(h)==="playing"&&(i().pause(),w=!1)},ee=(k,$)=>{re(f,k),w=!1,g=!1,(typeof $=="boolean"?$:A(h)==="playing")?i().play(k):i().pause(k)},R=(k,$,Z=!1,B=void 0)=>{Z?S={start:k,end:$}:S=null,re(f,k),w=$,v=B||null,i().play(k)},ie=k=>{if(A(p)==="skipping")return;const $=A(m).getBoundingClientRect();let B=(k.clientX-$.left)/$.width;B<0?B=0:B>1&&(B=1);const he=A(E).totalTime*B;ee(he)},L=k=>{A(p)!=="skipping"&&(k.key==="ArrowLeft"?ee(A(f)-5):k.key==="ArrowRight"&&ee(A(f)+5))},q=k=>{let $=A(h)==="playing";d(k),$&&i().pause(),i().setConfig({speed:d()}),$&&i().play(A(f))},P=()=>{n(!n())},z=()=>Promise.resolve().then(()=>{re(E,i().getMetaData())});xo(()=>{re(h,i().service.state.value),re(p,i().speedService.state.value),i().on("state-change",k=>{const{player:$,speed:Z}=k;if($!=null&&$.value&&A(h)!==$.value)switch(re(h,$.value),A(h)){case"playing":N();break;case"paused":x();break}Z!=null&&Z.value&&A(p)!==Z.value&&re(p,Z.value)}),i().on("finish",()=>{g=!0,v&&(v(),v=null)}),o()&&i().play()}),yh(()=>{n()!==i().config.skipInactive&&i().setConfig({skipInactive:n()})}),Zu(()=>{i().pause(),x()}),Wt(()=>A(f),()=>{r("ui-update-current-time",{payload:A(f)})}),Wt(()=>A(h),()=>{r("ui-update-player-state",{payload:A(h)})}),Wt(()=>$e(i()),()=>{re(E,i().getMetaData())}),Wt(()=>(A(f),A(E)),()=>{const k=Math.min(1,A(f)/A(E).totalTime);re(y,`${100*k}%`),r("ui-update-progress",{payload:k})}),Wt(()=>($e(i()),$e(l())),()=>{re(_,(()=>{const{context:k}=i().service.state,$=k.events.length,Z=k.events[0].timestamp,B=k.events[$-1].timestamp,he=[];return k.events.forEach(ce=>{if(ce.type===jc.Custom){const se={name:ce.data.tag,background:l()[ce.data.tag]||"rgb(73, 80, 246)",position:`${b(Z,B,ce.timestamp)}%`};he.push(se)}}),he})())}),Wt(()=>($e(i()),$e(a())),()=>{re(C,(()=>{try{const{context:k}=i().service.state,$=k.events.length,Z=k.events[0].timestamp,B=k.events[$-1].timestamp,he=Xm(k.events,i().config.inactivePeriodThreshold),ce=(se,ke,mt,vi)=>{const bs=ke-se;return((vi-mt)/bs*100).toFixed(2)};return he.map(se=>({name:"inactive period",background:a(),position:`${b(Z,B,se[0])}%`,width:`${ce(Z,B,se[0],se[1])}%`}))}catch(k){return[]}})())}),Lu();var Ce={toggle:I,play:D,pause:ae,goto:ee,playRange:R,setSpeed:q,toggleSkipInactive:P,triggerUpdateMeta:z};tc();var we=ch(),O=Yf(we);{var ue=k=>{var $=sg(),Z=ot($),B=ot(Z),he=ot(B,!0);nt(B);var ce=He(B,2);let se;var ke=ot(ce),mt=He(ke,2);Es(mt,1,()=>A(C),_s,(_e,le)=>{var Ne=Zm();Rr(()=>{var rt,gt,jr;or(Ne,"title",(A(le),Ee(()=>A(le).name))),Mr(Ne,`width: ${(rt=(A(le),Ee(()=>A(le).width)))!=null?rt:""};height: 4px;position: absolute;background: ${(gt=(A(le),Ee(()=>A(le).background)))!=null?gt:""};left:
|
|
182
|
+
${(jr=(A(le),Ee(()=>A(le).position)))!=null?jr:""};`)}),Rt(_e,Ne)});var vi=He(mt,2);Es(vi,1,()=>A(_),_s,(_e,le)=>{var Ne=eg();Rr(()=>{var rt,gt;or(Ne,"title",(A(le),Ee(()=>A(le).name))),Mr(Ne,`width: 10px;height: 5px;position: absolute;top:
|
|
183
|
+
2px;transform: translate(-50%, -50%);background: ${(rt=(A(le),Ee(()=>A(le).background)))!=null?rt:""};left:
|
|
184
|
+
${(gt=(A(le),Ee(()=>A(le).position)))!=null?gt:""};`)}),Rt(_e,Ne)});var bs=He(vi,2);nt(ce),Fi(ce,_e=>re(m,_e),()=>A(m));var Ss=He(ce,2),Yo=ot(Ss,!0);nt(Ss),nt(Z);var Jo=He(Z,2),yi=ot(Jo),Gc=ot(yi);{var Hc=_e=>{var le=tg();Rt(_e,le)},Yc=_e=>{var le=rg();Rt(_e,le)};Xn(Gc,_e=>{A(h)==="playing"?_e(Hc):_e(Yc,!1)})}nt(yi);var Xo=He(yi,2);Es(Xo,1,u,_s,(_e,le)=>{var Ne=ig();let rt;var gt=ot(Ne);nt(Ne),Rr(()=>{var jr;Ne.disabled=A(p)==="skipping",rt=Kn(Ne,1,"svelte-14v7dbr",null,rt,{active:A(le)===d()&&A(p)!=="skipping"}),Li(gt,`${(jr=A(le))!=null?jr:""}x`)}),Gr("click",Ne,()=>q(A(le))),Rt(_e,Ne)});var Qo=He(Xo,2);{let _e=ns(()=>A(p)==="skipping");Km(Qo,{id:"skip",get disabled(){return A(_e)},label:"skip inactive",get checked(){return n()},set checked(le){n(le)},$$legacy:!0})}var Jc=He(Qo,2);nt(Jo),nt($),Rr((_e,le,Ne)=>{var rt,gt;Li(he,_e),se=Kn(ce,1,"rr-progress svelte-14v7dbr",null,se,{disabled:A(p)==="skipping"}),or(ce,"aria-valuenow",le),Mr(ke,`width: ${(rt=A(y))!=null?rt:""}`),Mr(bs,`left: ${(gt=A(y))!=null?gt:""}`),Li(Yo,Ne)},[()=>($e(Di),A(f),Ee(()=>Di(A(f)))),()=>(A(y),Ee(()=>parseFloat(A(y)))),()=>($e(Di),A(E),Ee(()=>Di(A(E).totalTime)))]),Gr("click",ce,ie),Gr("keydown",ce,L),Gr("click",yi,I),Gr("click",Jc,()=>r("fullscreen")),Rt(k,$)};Xn(O,k=>{s()&&k(ue)})}return Rt(e,we),ve(t,"toggle",I),ve(t,"play",D),ve(t,"pause",ae),ve(t,"goto",ee),ve(t,"playRange",R),ve(t,"setSpeed",q),ve(t,"toggleSkipInactive",P),ve(t,"triggerUpdateMeta",z),bo(Ce)}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=me(t,"width",12,1024),s=me(t,"height",12,576),o=me(t,"maxScale",8,1),n=me(t,"events",8),u=me(t,"skipInactive",8,!0),d=me(t,"autoPlay",8,!0),l=me(t,"speedOption",24,()=>[1,2,4,8]),a=me(t,"speed",8,1),f=me(t,"showController",8,!0),c=me(t,"tags",24,()=>({})),h=me(t,"inactiveColor",8,"#D4D4D4"),p=Oe();const m=()=>A(p).getMirror(),g=80;let w=Oe(),v=Oe(),S,E=i(),y=s(),b=Oe(),_=Oe(),C=Oe();const N=(B,he)=>{const ce=i()/he.width,se=s()/he.height,ke=[ce,se];o()&&ke.push(o()),B.style.transform=`scale(${Math.min(...ke)})translate(-50%, -50%)`},x=()=>{N(A(p).wrapper,{width:A(p).iframe.offsetWidth,height:A(p).iframe.offsetHeight})},I=()=>{A(w)&&(Zl()?Hm():Gm(A(w)))},D=(B,he)=>{switch(A(p).on(B,he),B){case"ui-update-current-time":case"ui-update-progress":case"ui-update-player-state":A(b).$on(B,({detail:ce})=>he(ce))}},ae=B=>{A(p).addEvent(B),A(b).triggerUpdateMeta()},ee=()=>A(p).getMetaData(),R=()=>A(p),ie=()=>{A(b).toggle()},L=B=>{A(b).setSpeed(B)},q=()=>{A(b).toggleSkipInactive()},P=()=>{A(b).play()},z=()=>{A(b).pause()},Ce=(B,he)=>{A(b).goto(B,he)},we=(B,he,ce=!1,se=void 0)=>{A(b).playRange(B,he,ce,se)};xo(()=>{if(l()!==void 0&&eu(l())!=="array")throw new Error("speedOption must be array");if(l().forEach(B=>{if(eu(B)!=="number")throw new Error("item of speedOption must be number")}),l().indexOf(a())<0)throw new Error(`speed must be one of speedOption,
|
|
185
185
|
current config:
|
|
186
186
|
{
|
|
187
187
|
...
|
|
@@ -189,7 +189,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
189
189
|
speedOption: [${l().toString()}]
|
|
190
190
|
...
|
|
191
191
|
}
|
|
192
|
-
`);re(p,new Tm(n(),G({speed:a(),root:A(v),unpackFn:Vm},r))),A(p).on("resize",B=>{N(A(p).wrapper,B)}),
|
|
192
|
+
`);re(p,new Tm(n(),G({speed:a(),root:A(v),unpackFn:Vm},r))),A(p).on("resize",B=>{N(A(p).wrapper,B)}),S=Ym(()=>{Zl()?setTimeout(()=>{E=i(),y=s(),i(A(w).offsetWidth),s(A(w).offsetHeight-(f()?g:0)),N(A(p).wrapper,{width:A(p).iframe.offsetWidth,height:A(p).iframe.offsetHeight})},0):(i(E),s(y),N(A(p).wrapper,{width:A(p).iframe.offsetWidth,height:A(p).iframe.offsetHeight}))})}),Zu(()=>{S&&S()}),Wt(()=>($e(i()),$e(s())),()=>{re(_,Ql({width:`${i()}px`,height:`${s()}px`}))}),Wt(()=>($e(i()),$e(s()),$e(f())),()=>{re(C,Ql({width:`${i()}px`,height:`${s()+(f()?g:0)}px`}))}),Lu();var O={getMirror:m,triggerResize:x,toggleFullscreen:I,addEventListener:D,addEvent:ae,getMetaData:ee,getReplayer:R,toggle:ie,setSpeed:L,toggleSkipInactive:q,play:P,pause:z,goto:Ce,playRange:we};tc();var ue=og(),k=ot(ue);Fi(k,B=>re(v,B),()=>A(v));var $=He(k,2);{var Z=B=>{Fi(ng(B,{get replayer(){return A(p)},get showController(){return f()},get autoPlay(){return d()},get speedOption(){return l()},get skipInactive(){return u()},get tags(){return c()},get inactiveColor(){return h()},$$events:{fullscreen:()=>I()},$$legacy:!0}),he=>re(b,he),()=>A(b))};Xn($,B=>{A(p)&&B(Z)})}return nt(ue),Fi(ue,B=>re(w,B),()=>A(w)),Rr(()=>{Mr(ue,A(C)),Mr(k,A(_))}),Rt(e,ue),ve(t,"getMirror",m),ve(t,"triggerResize",x),ve(t,"toggleFullscreen",I),ve(t,"addEventListener",D),ve(t,"addEvent",ae),ve(t,"getMetaData",ee),ve(t,"getReplayer",R),ve(t,"toggle",ie),ve(t,"setSpeed",L),ve(t,"toggleSkipInactive",q),ve(t,"play",P),ve(t,"pause",z),ve(t,"goto",Ce),ve(t,"playRange",we),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;
|
|
193
193
|
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
194
194
|
var __cp = (to, from, except, desc) => {
|
|
195
195
|
if ((from && typeof from === "object") || typeof from === "function") {
|