@htmlbricks/hb-matrix-video 0.66.0 → 0.66.1
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/main.iife.js +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(en){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const tn=1,nn=2,rn=4,dr=8,hr=16,vr=1,_r=2,sn="[",st="[!",Ct="]",De={},M=Symbol(),pr="http://www.w3.org/1999/xhtml",Nt=!1;var fn=Array.isArray,mr=Array.prototype.indexOf,Rt=Array.from,ft=Object.keys,lt=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,wr=Object.prototype,yr=Array.prototype,ln=Object.getPrototypeOf,on=Object.isExtensible;function br(e){for(var t=0;t<e.length;t++)e[t]()}function an(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const D=2,St=4,Ot=8,ae=16,ue=32,pe=64,ot=128,ee=512,L=1024,B=2048,ce=4096,U=8192,de=16384,at=32768,Le=65536,un=1<<17,cn=1<<18,Ee=1<<19,$r=1<<20,xe=32768,Dt=1<<21,Mt=1<<22,me=1<<23,Lt=Symbol("$state"),Er=Symbol("legacy props"),xr=Symbol(""),Ie=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Tr=3,Pe=8;function kr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ar(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Cr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Nr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Sr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Or(){throw new Error("https://svelte.dev/e/hydration_failed")}function Dr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Lr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ir(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ut(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Pr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function te(e){$=e}let b;function ne(e){if(e===null)throw ut(),De;return b=e}function ct(){return ne(ve(b))}function dt(e){if($){if(ve(b)!==null)throw ut(),De;b=e}}function dn(e=1){if($){for(var t=e,n=b;t--;)n=ve(n);b=n}}function ht(e=!0){for(var t=0,n=b;;){if(n.nodeType===Pe){var r=n.data;if(r===Ct){if(t===0)return n;t-=1}else(r===sn||r===st)&&(t+=1)}var s=ve(n);e&&n.remove(),n=s}}function hn(e){if(!e||e.nodeType!==Pe)throw ut(),De;return e.data}function vn(e){return e===this.v}function Fr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function _n(e){return!Fr(e,this.v)}let jr=!1,W=null;function Fe(e){W=e}function pn(e,t=!1,n){W={p:W,i:!1,c:null,e:null,s:e,x:null,l:null}}function mn(e){var t=W,n=t.e;if(n!==null){t.e=null;for(var r of n)Fn(r)}return e!==void 0&&(t.x=e),t.i=!0,W=t.p,e??{}}function gn(){return!0}let Te=[];function wn(){var e=Te;Te=[],br(e)}function Ke(e){if(Te.length===0&&!Xe){var t=Te;queueMicrotask(()=>{t===Te&&wn()})}Te.push(e)}function qr(){for(;Te.length>0;)wn()}function yn(e){var t=g;if(t===null)return m.f|=me,e;if((t.f&at)===0){if((t.f&ot)===0)throw e;t.b.error(e)}else je(e,t)}function je(e,t){for(;t!==null;){if((t.f&ot)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const vt=new Set;let C=null,G=null,J=[],_t=null,It=!1,Xe=!1;class re{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){J=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#f(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(C=null,$n(n.render_effects),$n(n.effects),this.#o?.resolve()),G=null}#f(t,n){t.f^=L;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ue|pe))!==0,f=i&&(s&L)!==0,o=f||(s&U)!==0||this.skipped_effects.has(r);if((r.f&ot)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){i?r.f^=L:(s&St)!==0?n.effects.push(r):tt(r)&&((r.f&ae)!==0&&n.block_effects.push(r),nt(r));var l=r.first;if(l!==null){r=l;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#l(t){for(const n of t)((n.f&B)!==0?this.#s:this.#i).push(n),this.#a(n.deps),P(n,L)}#a(t){if(t!==null)for(const n of t)(n.f&D)===0||(n.f&xe)===0||(n.f^=xe,this.#a(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&me)===0&&(this.current.set(t,t.v),G?.set(t,t.v))}activate(){C=this,this.apply()}deactivate(){C===this&&(C=null,G=null)}flush(){if(this.activate(),J.length>0){if(bn(),C!==null&&C!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(vt.size>1){this.previous.clear();var t=G,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of vt){if(i===this){n=!1;continue}const f=[];for(const[l,a]of this.current){if(i.current.has(l))if(n&&a!==i.current.get(l))i.current.set(l,a);else continue;f.push(l)}if(f.length===0)continue;const o=[...i.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){var s=J;J=[];const l=new Set,a=new Map;for(const c of f)En(c,o,l,a);if(J.length>0){C=i,i.apply();for(const c of J)i.#f(c,r);i.deactivate()}J=s}}C=null,G=t}this.committed=!0,vt.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)P(t,B),ke(t);for(const t of this.#i)P(t,ce),ke(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=an()).promise}static ensure(){if(C===null){const t=C=new re;vt.add(C),Xe||re.enqueue(()=>{C===t&&t.flush()})}return C}static enqueue(t){Ke(t)}apply(){}}function Pt(e){var t=Xe;Xe=!0;try{for(var n;;){if(qr(),J.length===0&&(C?.flush(),J.length===0))return _t=null,n;bn()}}finally{Xe=t}}function bn(){var e=we;It=!0;var t=null;try{var n=0;for(yt(!0);J.length>0;){var r=re.ensure();if(n++>1e3){var s,i;Hr()}r.process(J),ge.clear()}}finally{It=!1,yt(e),_t=null}}function Hr(){try{Sr()}catch(e){je(e,_t)}}let he=null;function $n(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(de|U))===0&&tt(r)&&(he=new Set,nt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Bn(r):r.fn=null),he?.size>0)){ge.clear();for(const s of he){if((s.f&(de|U))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)he.has(f)&&(he.delete(f),i.push(f)),f=f.parent;for(let o=i.length-1;o>=0;o--){const l=i[o];(l.f&(de|U))===0&&nt(l)}}he.clear()}}he=null}}function En(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&D)!==0?En(s,t,n,r):(i&(Mt|ae))!==0&&(i&B)===0&&xn(s,t,r)&&(P(s,B),ke(s))}}function xn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&D)!==0&&xn(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ke(e){for(var t=_t=e;t.parent!==null;){t=t.parent;var n=t.f;if(It&&t===g&&(n&ae)!==0&&(n&cn)===0)return;if((n&(pe|ue))!==0){if((n&L)===0)return;t.f^=L}}J.push(t)}function Br(e){let t=0,n=Ae(0),r;return()=>{wt()&&(v(n),jn(()=>(t===0&&(r=tr(()=>e(()=>Ze(n)))),t+=1,()=>{Ke(()=>{t-=1,t===0&&(r?.(),r=void 0,Ze(n))})})))}}var Yr=Le|Ee|ot;function Ur(e,t,n){new Wr(e,t,n)}class Wr{parent;#t=!1;#e;#n=$?b:null;#r;#o;#s;#i=null;#f=null;#l=null;#a=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#w=Br(()=>(this.#h=Ae(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=g.b,this.#t=!!this.#r.pending,this.#s=Wt(()=>{if(g.b=this,$){const i=this.#n;ct(),i.nodeType===Pe&&i.data===st?this.#b():this.#y()}else{var s=this.#m();try{this.#i=K(()=>r(s))}catch(i){this.error(i)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},Yr),$&&(this.#e=b)}#y(){try{this.#i=K(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#b(){const t=this.#r.pending;t&&(this.#f=K(()=>t(this.#e)),re.enqueue(()=>{var n=this.#m();this.#i=this.#_(()=>(re.ensure(),K(()=>this.#o(n)))),this.#d>0?this.#p():(Be(this.#f,()=>{this.#f=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#u=se(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=g,r=m,s=W;X(this.#s),I(this.#s),Fe(this.#s.ctx);try{return t()}catch(i){return yn(i),null}finally{X(n),I(r),Fe(s)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),Wn(this.#i,this.#a)),this.#f===null&&(this.#f=K(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#f&&Be(this.#f,()=>{this.#f=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&qe(this.#h,this.#c)}get_effect_pending(){return this.#w(),v(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(j(this.#i),this.#i=null),this.#f&&(j(this.#f),this.#f=null),this.#l&&(j(this.#l),this.#l=null),$&&(ne(this.#n),dn(),ne(ht()));var s=!1,i=!1;const f=()=>{if(s){Pr();return}s=!0,i&&Ir(),re.ensure(),this.#c=0,this.#l!==null&&Be(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,K(()=>this.#o(this.#e)))),this.#d>0?this.#p():this.#t=!1};var o=m;try{I(null),i=!0,n?.(t,f),i=!1}catch(l){je(l,this.#s&&this.#s.parent)}finally{I(o)}r&&Ke(()=>{this.#l=this.#_(()=>{re.ensure(),this.#v=!0;try{return K(()=>{r(this.#e,()=>t,()=>f)})}catch(l){return je(l,this.#s.parent),null}finally{this.#v=!1}})})}}function Vr(e,t,n){for(var r=[],s=t.length,i=0;i<s;i++)Vt(t[i].e,r,!0);Yn(r,()=>{var f=r.length===0&&n!==null;if(f){var o=n,l=o.parentNode;Mn(l),l.append(o),e.items.clear(),ie(e,t[0].prev,t[s-1].next)}for(var a=0;a<s;a++){var c=t[a];f||(e.items.delete(c.k),ie(e,c.prev,c.next)),j(c.e,!f)}e.first===t[0]&&(e.first=t[0].prev)})}function Tn(e,t,n,r,s,i=null){var f=e,o=new Map,l=null,a=(t&rn)!==0,c=(t&tn)!==0,h=(t&nn)!==0;if(a){var u=e;f=$?ne(Ce(u)):u.appendChild(se())}$&&ct();var d=null,p=Qr(()=>{var N=n();return fn(N)?N:N==null?[]:Rt(N)}),k,_=!0;function E(){zr(ye,k,f,t,r),d!==null&&(k.length===0?(d.fragment?(f.before(d.fragment),d.fragment=null):zt(d.effect),z.first=d.effect):Be(d.effect,()=>{d=null}))}var z=Wt(()=>{k=v(p);var N=k.length;let be=!1;if($){var y=hn(f)===st;y!==(N===0)&&(f=ht(),ne(f),te(!1),be=!0)}for(var A=new Set,R=C,S=null,H=Ln(),w=0;w<N;w+=1){$&&b.nodeType===Pe&&b.data===Ct&&(f=b,be=!0,te(!1));var O=k[w],x=r(O,w),T=_?null:o.get(x);T?(c&&qe(T.v,O),h?qe(T.i,w):T.i=w,H&&R.skipped_effects.delete(T.e)):(T=Gr(_?f:null,S,O,x,w,s,t,n),_&&(T.o=!0,S===null?l=T:S.next=T,S=T),o.set(x,T)),A.add(x)}if(N===0&&i&&!d)if(_)d={fragment:null,effect:K(()=>i(f))};else{var kt=document.createDocumentFragment(),At=se();kt.append(At),d={fragment:kt,effect:K(()=>i(At))}}if($&&N>0&&ne(ht()),!_)if(H){for(const[Kt,oe]of o)A.has(Kt)||R.skipped_effects.add(oe.e);R.oncommit(E),R.ondiscard(()=>{})}else E();be&&te(!0),v(p)}),ye={effect:z,items:o,first:l};_=!1,$&&(f=b)}function zr(e,t,n,r,s){var i=(r&dr)!==0,f=t.length,o=e.items,l=e.first,a,c=null,h,u=[],d=[],p,k,_,E;if(i)for(E=0;E<f;E+=1)p=t[E],k=s(p,E),_=o.get(k),_.a?.measure(),(h??=new Set).add(_);for(E=0;E<f;E+=1){if(p=t[E],k=s(p,E),_=o.get(k),e.first??=_,!_.o){_.o=!0;var z=c?c.next:l;ie(e,c,_),ie(e,_,z),Ft(_,z,n),c=_,u=[],d=[],l=c.next;continue}if((_.e.f&U)!==0&&(zt(_.e),i&&(_.a?.unfix(),(h??=new Set).delete(_))),_!==l){if(a!==void 0&&a.has(_)){if(u.length<d.length){var ye=d[0],N;c=ye.prev;var be=u[0],y=u[u.length-1];for(N=0;N<u.length;N+=1)Ft(u[N],ye,n);for(N=0;N<d.length;N+=1)a.delete(d[N]);ie(e,be.prev,y.next),ie(e,c,be),ie(e,y,ye),l=ye,c=y,E-=1,u=[],d=[]}else a.delete(_),Ft(_,l,n),ie(e,_.prev,_.next),ie(e,_,c===null?e.first:c.next),ie(e,c,_),c=_;continue}for(u=[],d=[];l!==null&&l.k!==k;)(l.e.f&U)===0&&(a??=new Set).add(l),d.push(l),l=l.next;if(l===null)continue;_=l}u.push(_),c=_,l=_.next}if(l!==null||a!==void 0){for(var A=a===void 0?[]:Rt(a);l!==null;)(l.e.f&U)===0&&A.push(l),l=l.next;var R=A.length;if(R>0){var S=(r&rn)!==0&&f===0?n:null;if(i){for(E=0;E<R;E+=1)A[E].a?.measure();for(E=0;E<R;E+=1)A[E].a?.fix()}Vr(e,A,S)}}i&&Ke(()=>{if(h!==void 0)for(_ of h)_.a?.apply()})}function Gr(e,t,n,r,s,i,f,o){var l=(f&tn)!==0,a=(f&hr)===0,c=l?a?Nn(n,!1,!1):Ae(n):n,h=(f&nn)===0?s:Ae(s),u={i:h,v:c,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var d=document.createDocumentFragment();d.append(e=se())}return u.e=K(()=>i(e,c,h,o)),t!==null&&(t.next=u),u}finally{}}function Ft(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,s=t?t.e.nodes_start:n,i=e.e.nodes_start;i!==null&&i!==r;){var f=ve(i);s.before(i),i=f}}function ie(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Jr(e,t,n,r){const s=mt;if(n.length===0&&e.length===0){r(t.map(s));return}var i=C,f=g,o=Kr();function l(){Promise.all(n.map(a=>Xr(a))).then(a=>{o();try{r([...t.map(s),...a])}catch(c){(f.f&de)===0&&je(c,f)}i?.deactivate(),pt()}).catch(a=>{je(a,f)})}e.length>0?Promise.all(e).then(()=>{o();try{return l()}finally{i?.deactivate(),pt()}}):l()}function Kr(){var e=g,t=m,n=W,r=C;return function(i=!0){X(e),I(t),Fe(n),i&&r?.activate()}}function pt(){X(null),I(null),Fe(null)}function mt(e){var t=D|B,n=m!==null&&(m.f&D)!==0?m:null;return g!==null&&(g.f|=Ee),{ctx:W,deps:null,effects:null,equals:vn,f:t,fn:e,reactions:null,rv:0,v:M,wv:0,parent:n??g,ac:null}}function Xr(e,t){let n=g;n===null&&Ar();var r=n.b,s=void 0,i=Ae(M),f=!m,o=new Map;return li(()=>{var l=an();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{a===C&&a.committed&&a.deactivate(),pt()})}catch(u){l.reject(u),pt()}var a=C;if(f){var c=!r.is_pending();r.update_pending_count(1),a.increment(c),o.get(a)?.reject(Ie),o.delete(a),o.set(a,l)}const h=(u,d=void 0)=>{if(a.activate(),d)d!==Ie&&(i.f|=me,qe(i,d));else{(i.f&me)!==0&&(i.f^=me),qe(i,u);for(const[p,k]of o){if(o.delete(p),p===a)break;k.reject(Ie)}}f&&(r.update_pending_count(-1),a.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),In(()=>{for(const l of o.values())l.reject(Ie)}),new Promise(l=>{function a(c){function h(){c===s?l(i):a(s)}c.then(h,h)}a(s)})}function Zr(e){const t=mt(e);return zn(t),t}function Qr(e){const t=mt(e);return t.equals=_n,t}function kn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function ei(e){for(var t=e.parent;t!==null;){if((t.f&D)===0)return(t.f&de)===0?t:null;t=t.parent}return null}function jt(e){var t,n=g;X(ei(e));try{e.f&=~xe,kn(e),t=Zn(e)}finally{X(n)}return t}function An(e){var t=jt(e);if(e.equals(t)||(C?.is_fork||(e.v=t),e.wv=Kn()),!Ne)if(G!==null)wt()&&G.set(e,t);else{var n=(e.f&ee)===0?ce:L;P(e,n)}}let qt=new Set;const ge=new Map;let Cn=!1;function Ae(e,t){var n={f:0,v:e,reactions:null,equals:vn,rv:0,wv:0};return n}function Y(e,t){const n=Ae(e);return zn(n),n}function Nn(e,t=!1,n=!0){const r=Ae(e);return t||(r.equals=_n),r}function F(e,t,n=!1){m!==null&&(!le||(m.f&un)!==0)&&gn()&&(m.f&(D|ae|Mt|un))!==0&&!_e?.includes(e)&&Lr();let r=n?He(t):t;return qe(e,r)}function qe(e,t){if(!e.equals(t)){var n=e.v;Ne?ge.set(e,t):ge.set(e,n),e.v=t;var r=re.ensure();r.capture(e,n),(e.f&D)!==0&&((e.f&B)!==0&&jt(e),P(e,(e.f&ee)!==0?L:ce)),e.wv=Kn(),Rn(e,B),g!==null&&(g.f&L)!==0&&(g.f&(ue|pe))===0&&(Z===null?ui([e]):Z.push(e)),!r.is_fork&&qt.size>0&&!Cn&&ti()}return t}function ti(){Cn=!1;var e=we;yt(!0);const t=Array.from(qt);try{for(const n of t)(n.f&L)!==0&&P(n,ce),tt(n)&&nt(n)}finally{yt(e)}qt.clear()}function Ze(e){F(e,e.v+1)}function Rn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],f=i.f,o=(f&B)===0;if(o&&P(i,t),(f&D)!==0){var l=i;G?.delete(l),(f&xe)===0&&(f&ee&&(i.f|=xe),Rn(l,ce))}else o&&((f&ae)!==0&&he!==null&&he.add(i),ke(i))}}function He(e){if(typeof e!="object"||e===null||Lt in e)return e;const t=ln(e);if(t!==wr&&t!==yr)return e;var n=new Map,r=fn(e),s=Y(0),i=Re,f=o=>{if(Re===i)return o();var l=m,a=Re;I(null),Jn(i);var c=o();return I(l),Jn(a),c};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(o,l,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Dr();var c=n.get(l);return c===void 0?c=f(()=>{var h=Y(a.value);return n.set(l,h),h}):F(c,a.value,!0),!0},deleteProperty(o,l){var a=n.get(l);if(a===void 0){if(l in o){const c=f(()=>Y(M));n.set(l,c),Ze(s)}}else F(a,M),Ze(s);return!0},get(o,l,a){if(l===Lt)return e;var c=n.get(l),h=l in o;if(c===void 0&&(!h||Me(o,l)?.writable)&&(c=f(()=>{var d=He(h?o[l]:M),p=Y(d);return p}),n.set(l,c)),c!==void 0){var u=v(c);return u===M?void 0:u}return Reflect.get(o,l,a)},getOwnPropertyDescriptor(o,l){var a=Reflect.getOwnPropertyDescriptor(o,l);if(a&&"value"in a){var c=n.get(l);c&&(a.value=v(c))}else if(a===void 0){var h=n.get(l),u=h?.v;if(h!==void 0&&u!==M)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(o,l){if(l===Lt)return!0;var a=n.get(l),c=a!==void 0&&a.v!==M||Reflect.has(o,l);if(a!==void 0||g!==null&&(!c||Me(o,l)?.writable)){a===void 0&&(a=f(()=>{var u=c?He(o[l]):M,d=Y(u);return d}),n.set(l,a));var h=v(a);if(h===M)return!1}return c},set(o,l,a,c){var h=n.get(l),u=l in o;if(r&&l==="length")for(var d=a;d<h.v;d+=1){var p=n.get(d+"");p!==void 0?F(p,M):d in o&&(p=f(()=>Y(M)),n.set(d+"",p))}if(h===void 0)(!u||Me(o,l)?.writable)&&(h=f(()=>Y(void 0)),F(h,He(a)),n.set(l,h));else{u=h.v!==M;var k=f(()=>He(a));F(h,k)}var _=Reflect.getOwnPropertyDescriptor(o,l);if(_?.set&&_.set.call(c,a),!u){if(r&&typeof l=="string"){var E=n.get("length"),z=Number(l);Number.isInteger(z)&&z>=E.v&&F(E,z+1)}Ze(s)}return!0},ownKeys(o){v(s);var l=Reflect.ownKeys(o).filter(h=>{var u=n.get(h);return u===void 0||u.v!==M});for(var[a,c]of n)c.v!==M&&!(a in o)&&l.push(a);return l},setPrototypeOf(){Mr()}})}var Ht,Sn,On,Dn;function Bt(){if(Ht===void 0){Ht=window,Sn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;On=Me(t,"firstChild").get,Dn=Me(t,"nextSibling").get,on(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),on(n)&&(n.__t=void 0)}}function se(e=""){return document.createTextNode(e)}function Ce(e){return On.call(e)}function ve(e){return Dn.call(e)}function Yt(e,t){if(!$)return Ce(e);var n=Ce(b);return n===null&&(n=b.appendChild(se())),ne(n),n}function gt(e,t=!1){if(!$){var n=Ce(e);return n instanceof Comment&&n.data===""?ve(n):n}if(t&&b?.nodeType!==Tr){var r=se();return b?.before(r),ne(r),r}return b}function Mn(e){e.textContent=""}function Ln(){return!1}function Ut(e){var t=m,n=g;I(null),X(null);try{return e()}finally{I(t),X(n)}}function ni(e){g===null&&(m===null&&Rr(),Nr()),Ne&&Cr()}function ri(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function fe(e,t,n){var r=g;r!==null&&(r.f&U)!==0&&(e|=U);var s={ctx:W,deps:null,nodes_start:null,nodes_end:null,f:e|B|ee,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{nt(s),s.f|=at}catch(o){throw j(s),o}else t!==null&&ke(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Ee)===0&&(i=i.first,(e&ae)!==0&&(e&Le)!==0&&i!==null&&(i.f|=Le)),i!==null&&(i.parent=r,r!==null&&ri(i,r),m!==null&&(m.f&D)!==0&&(e&pe)===0)){var f=m;(f.effects??=[]).push(i)}return s}function wt(){return m!==null&&!le}function In(e){const t=fe(Ot,null,!1);return P(t,L),t.teardown=e,t}function Pn(e){ni();var t=g.f,n=!m&&(t&ue)!==0&&(t&at)===0;if(n){var r=W;(r.e??=[]).push(e)}else return Fn(e)}function Fn(e){return fe(St|$r,e,!1)}function ii(e){re.ensure();const t=fe(pe|Ee,e,!0);return()=>{j(t)}}function si(e){re.ensure();const t=fe(pe|Ee,e,!0);return(n={})=>new Promise(r=>{n.outro?Be(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function fi(e){return fe(St,e,!1)}function li(e){return fe(Mt|Ee,e,!0)}function jn(e,t=0){return fe(Ot|t,e,!0)}function Qe(e,t=[],n=[],r=[]){Jr(r,t,n,s=>{fe(Ot,()=>e(...s.map(v)),!0)})}function Wt(e,t=0){var n=fe(ae|t,e,!0);return n}function K(e){return fe(ue|Ee,e,!0)}function qn(e){var t=e.teardown;if(t!==null){const n=Ne,r=m;Vn(!0),I(null);try{t.call(null)}finally{Vn(n),I(r)}}}function Hn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Ut(()=>{s.abort(Ie)});var r=n.next;(n.f&pe)!==0?n.parent=null:j(n,t),n=r}}function oi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ue)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&cn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ai(e.nodes_start,e.nodes_end),n=!0),Hn(e,t&&!n),bt(e,0),P(e,de);var r=e.transitions;if(r!==null)for(const i of r)i.stop();qn(e);var s=e.parent;s!==null&&s.first!==null&&Bn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ai(e,t){for(;e!==null;){var n=e===t?null:ve(e);e.remove(),e=n}}function Bn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Be(e,t,n=!0){var r=[];Vt(e,r,!0),Yn(r,()=>{n&&j(e),t&&t()})}function Yn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Vt(e,t,n){if((e.f&U)===0){if(e.f^=U,e.transitions!==null)for(const f of e.transitions)(f.is_global||n)&&t.push(f);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Le)!==0||(r.f&ue)!==0&&(e.f&ae)!==0;Vt(r,t,i?n:!1),r=s}}}function zt(e){Un(e,!0)}function Un(e,t){if((e.f&U)!==0){e.f^=U,(e.f&L)===0&&(P(e,B),ke(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Le)!==0||(n.f&ue)!==0;Un(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function Wn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:ve(n);t.append(n),n=s}}let we=!1;function yt(e){we=e}let Ne=!1;function Vn(e){Ne=e}let m=null,le=!1;function I(e){m=e}let g=null;function X(e){g=e}let _e=null;function zn(e){m!==null&&(_e===null?_e=[e]:_e.push(e))}let q=null,V=0,Z=null;function ui(e){Z=e}let Gn=1,et=0,Re=et;function Jn(e){Re=e}function Kn(){return++Gn}function tt(e){var t=e.f;if((t&B)!==0)return!0;if(t&D&&(e.f&=~xe),(t&ce)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(tt(i)&&An(i),i.wv>e.wv)return!0}(t&ee)!==0&&G===null&&P(e,L)}return!1}function Xn(e,t,n=!0){var r=e.reactions;if(r!==null&&!_e?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&D)!==0?Xn(i,t,!1):t===i&&(n?P(i,B):(i.f&L)!==0&&P(i,ce),ke(i))}}function Zn(e){var t=q,n=V,r=Z,s=m,i=_e,f=W,o=le,l=Re,a=e.f;q=null,V=0,Z=null,m=(a&(ue|pe))===0?e:null,_e=null,Fe(e.ctx),le=!1,Re=++et,e.ac!==null&&(Ut(()=>{e.ac.abort(Ie)}),e.ac=null);try{e.f|=Dt;var c=e.fn,h=c(),u=e.deps;if(q!==null){var d;if(bt(e,V),u!==null&&V>0)for(u.length=V+q.length,d=0;d<q.length;d++)u[V+d]=q[d];else e.deps=u=q;if(we&&wt()&&(e.f&ee)!==0)for(d=V;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&V<u.length&&(bt(e,V),u.length=V);if(gn()&&Z!==null&&!le&&u!==null&&(e.f&(D|ce|B))===0)for(d=0;d<Z.length;d++)Xn(Z[d],e);return s!==null&&s!==e&&(et++,Z!==null&&(r===null?r=Z:r.push(...Z))),(e.f&me)!==0&&(e.f^=me),h}catch(p){return yn(p)}finally{e.f^=Dt,q=t,V=n,Z=r,m=s,_e=i,Fe(f),le=o,Re=l}}function ci(e,t){let n=t.reactions;if(n!==null){var r=mr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&D)!==0&&(q===null||!q.includes(t))&&(P(t,ce),(t.f&ee)!==0&&(t.f^=ee,t.f&=~xe),kn(t),bt(t,0))}function bt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ci(e,n[r])}function nt(e){var t=e.f;if((t&de)===0){P(e,L);var n=g,r=we;g=e,we=!0;try{(t&ae)!==0?oi(e):Hn(e),qn(e);var s=Zn(e);e.teardown=typeof s=="function"?s:null,e.wv=Gn;var i;Nt&&jr&&(e.f&B)!==0&&e.deps}finally{we=r,g=n}}}function v(e){var t=e.f,n=(t&D)!==0;if(m!==null&&!le){var r=g!==null&&(g.f&de)!==0;if(!r&&!_e?.includes(e)){var s=m.deps;if((m.f&Dt)!==0)e.rv<et&&(e.rv=et,q===null&&s!==null&&s[V]===e?V++:q===null?q=[e]:q.includes(e)||q.push(e));else{(m.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[m]:i.includes(m)||i.push(m)}}}if(Ne){if(ge.has(e))return ge.get(e);if(n){var f=e,o=f.v;return((f.f&L)===0&&f.reactions!==null||er(f))&&(o=jt(f)),ge.set(f,o),o}}else n&&!G?.has(e)&&(f=e,tt(f)&&An(f),we&&wt()&&(f.f&ee)===0&&Qn(f));if(G?.has(e))return G.get(e);if((e.f&me)!==0)throw e.v;return e.v}function Qn(e){if(e.deps!==null){e.f^=ee;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&D)!==0&&(t.f&ee)===0&&Qn(t)}}function er(e){if(e.v===M)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ge.has(t)||(t.f&D)!==0&&er(t))return!0;return!1}function tr(e){var t=le;try{return le=!0,e()}finally{le=t}}const di=-7169;function P(e,t){e.f=e.f&di|t}const hi=new Set,nr=new Set;function vi(e){if(!$)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function _i(e,t,n,r={}){function s(i){if(r.capture||rt.call(t,i),!i.cancelBubble)return Ut(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ke(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function $t(e,t,n,r,s){var i={capture:r,passive:s},f=_i(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&In(()=>{t.removeEventListener(e,f,i)})}let rr=null;function rt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;rr=e;var f=0,o=rr===e&&e.__root;if(o){var l=s.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var a=s.indexOf(t);if(a===-1)return;l<=a&&(f=l)}if(i=s[f]||e.target,i!==t){lt(e,"currentTarget",{configurable:!0,get(){return i||n}});var c=m,h=g;I(null),X(null);try{for(var u,d=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var k=i["__"+r];k!=null&&(!i.disabled||e.target===i)&&k.call(i,e)}catch(_){u?d.push(_):u=_}if(e.cancelBubble||p===t||p===null)break;i=p}if(u){for(let _ of d)queueMicrotask(()=>{throw _});throw u}}finally{e.__root=t,delete e.currentTarget,I(c),X(h)}}}function pi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ye(e,t){var n=g;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Se(e,t){var n=(t&vr)!==0,r=(t&_r)!==0,s,i=!e.startsWith("<!>");return()=>{if($)return Ye(b,null),b;s===void 0&&(s=pi(i?e:"<!>"+e),n||(s=Ce(s)));var f=r||Sn?document.importNode(s,!0):s.cloneNode(!0);if(n){var o=Ce(f),l=f.lastChild;Ye(o,l)}else Ye(f,f);return f}}function Et(){if($)return Ye(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),n=se();return e.append(t,n),Ye(t,n),e}function Q(e,t){if($){var n=g;((n.f&at)===0||n.nodes_end===null)&&(n.nodes_end=b),ct();return}e!==null&&e.before(t)}const mi=["touchstart","touchmove"];function gi(e){return mi.includes(e)}function ir(e,t){return sr(e,t)}function wi(e,t){Bt(),t.intro=t.intro??!1;const n=t.target,r=$,s=b;try{for(var i=Ce(n);i&&(i.nodeType!==Pe||i.data!==sn);)i=ve(i);if(!i)throw De;te(!0),ne(i);const f=sr(e,{...t,anchor:i});return te(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw f;return f!==De&&console.warn("Failed to hydrate: ",f),t.recover===!1&&Or(),Bt(),Mn(n),te(!1),ir(e,t)}finally{te(r),ne(s)}}const Ue=new Map;function sr(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0}){Bt();var o=new Set,l=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!o.has(d)){o.add(d);var p=gi(d);t.addEventListener(d,rt,{passive:p});var k=Ue.get(d);k===void 0?(document.addEventListener(d,rt,{passive:p}),Ue.set(d,1)):Ue.set(d,k+1)}}};l(Rt(hi)),nr.add(l);var a=void 0,c=si(()=>{var h=n??t.appendChild(se());return Ur(h,{pending:()=>{}},u=>{if(i){pn({});var d=W;d.c=i}if(s&&(r.$$events=s),$&&Ye(u,null),a=e(u,r)||{},$&&(g.nodes_end=b,b===null||b.nodeType!==Pe||b.data!==Ct))throw ut(),De;i&&mn()}),()=>{for(var u of o){t.removeEventListener(u,rt);var d=Ue.get(u);--d===0?(document.removeEventListener(u,rt),Ue.delete(u)):Ue.set(u,d)}nr.delete(l),h!==n&&h.parentNode?.removeChild(h)}});return Gt.set(a,c),a}let Gt=new WeakMap;function yi(e,t){const n=Gt.get(e);return n?(Gt.delete(e),n(t)):Promise.resolve()}class bi{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#o=!0;constructor(t,n=!0){this.anchor=t,this.#o=n}#s=()=>{var t=C;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)zt(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,f]of this.#t){if(this.#t.delete(i),i===t)break;const o=this.#n.get(f);o&&(j(o.effect),this.#n.delete(f))}for(const[i,f]of this.#e){if(i===n||this.#r.has(i))continue;const o=()=>{if(Array.from(this.#t.values()).includes(i)){var a=document.createDocumentFragment();Wn(f,a),a.append(se()),this.#n.set(i,{effect:f,fragment:a})}else j(f);this.#r.delete(i),this.#e.delete(i)};this.#o||!r?(this.#r.add(i),Be(f,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(j(s.effect),this.#n.delete(r))};ensure(t,n){var r=C,s=Ln();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),f=se();i.append(f),this.#n.set(t,{effect:K(()=>n(f)),fragment:i})}else this.#e.set(t,K(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[o,l]of this.#e)o===t?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[o,l]of this.#n)o===t?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else $&&(this.anchor=b),this.#s()}}function $i(e){W===null&&kr(),Pn(()=>{const t=tr(e);if(typeof t=="function")return t})}function it(e,t,n=!1){$&&ct();var r=new bi(e),s=n?Le:0;function i(f,o){if($){const a=hn(e)===st;if(f===a){var l=ht();ne(l),r.anchor=l,te(!1),r.ensure(f,o),te(!0);return}}r.ensure(f,o)}Wt(()=>{var f=!1;t((o,l=!0)=>{f=!0,i(l,o)}),f||i(!1,null)},s)}function Ei(e,t){fi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}const xi=Symbol("is custom element"),Ti=Symbol("is html");function We(e,t,n,r){var s=ki(e);$&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[xr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&fr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function xt(e,t,n){var r=m,s=g;let i=$;$&&te(!1),I(null),X(null);try{t!=="style"&&(Jt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?fr(e).includes(t):n&&typeof n=="object")?e[t]=n:We(e,t,n==null?n:String(n))}finally{I(r),X(s),i&&te(!0)}}function ki(e){return e.__attributes??={[xi]:e.nodeName.includes("-"),[Ti]:e.namespaceURI===pr}}var Jt=new Map;function fr(e){var t=e.getAttribute("is")||e.nodeName,n=Jt.get(t);if(n)return n;Jt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=gr(s);for(var f in r)r[f].set&&n.push(f);s=ln(s)}return n}function lr(e,t,n,r){var s=r,i=!0,f=()=>(i&&(i=!1,s=r),s),o;o=e[t],o===void 0&&r!==void 0&&(o=f());var l;l=()=>{var u=e[t];return u===void 0?f():(i=!0,u)};var a=!1,c=mt(()=>(a=!1,l())),h=g;return(function(u,d){if(arguments.length>0){const p=d?v(c):u;return F(c,p),a=!0,s!==void 0&&(s=p),u}return Ne&&a||(h.f&de)!==0?c.v:v(c)})}function Ai(e){return new Ci(e)}class Ci{#t;#e;constructor(t){var n=new Map,r=(i,f)=>{var o=Nn(f,!1,!1);return n.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return v(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Er?!0:(v(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,o){return F(n.get(f)??r(f,o),o),Reflect.set(i,f,o)}});this.#e=(t.hydrate?wi:ir)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Pt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||lt(this,i,{get(){return this.#e[i]},set(f){this.#e[i]=f},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{yi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let or;typeof HTMLElement=="function"&&(or=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),Q(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ni(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Tt(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ai({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ii(()=>{jn(()=>{this.$$r=!0;for(const r of ft(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Tt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Tt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ft(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Tt(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ni(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ri(e,t,n,r,s,i){let f=class extends or{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return ft(t).map(o=>(t[o].attribute||o).toLowerCase())}};return ft(t).forEach(o=>{lt(f.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Tt(o,l,t),this.$$d[o]=l;var a=this.$$c;if(a){var c=Me(a,o)?.get;c?a[o]=l:a.$set({[o]:l})}}})}),r.forEach(o=>{lt(f.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=f,f}const Si={version:"0.66.0"};function Oi(e,t=100,n={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");if(typeof n=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:r}=n;let s,i,f,o,l;function a(){const u=s,d=i;return s=void 0,i=void 0,l=e.apply(u,d),l}function c(){const u=Date.now()-o;u<t&&u>=0?f=setTimeout(c,t-u):(f=void 0,r||(l=a()))}const h=function(...u){if(s&&this!==s&&Object.getPrototypeOf(this)===Object.getPrototypeOf(s))throw new Error("Debounced method called with different contexts of the same prototype.");s=this,i=u,o=Date.now();const d=r&&!f;if(f||(f=setTimeout(c,t)),d)return l=a(),l};return Object.defineProperty(h,"isPending",{get(){return f!==void 0}}),h.clear=()=>{f&&(clearTimeout(f),f=void 0,s=void 0,i=void 0)},h.flush=()=>{f&&h.trigger()},h.trigger=()=>{l=a(),h.clear()},h}var Oe={},ar;function Di(){if(ar)return Oe;ar=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.LanguageTranslator=void 0,Oe.getChildStyleToPass=e,Oe.addComponent=t;function e(r,s){var i,f,o="";try{if(r&&s?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((f=s?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||f===void 0)&&f.length))for(var l=function(u){var d=s?.filter(function(p){return p.name===u&&p.defaultValue!==r[u]});d&&(o+="".concat(u,":").concat(r[u],";"))},a=0,c=Object.keys(r);a<c.length;a++){var h=c[a];l(h)}}catch(u){console.error("error getting child style to pass",u)}finally{return o}}function t(r){var s,i=((s=r?.repoName.split("/"))===null||s===void 0?void 0:s[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var f=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(f),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var l=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(f)}document.head.appendChild(o)}catch(a){console.warn(a)}}var n=(function(){function r(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return r.prototype.setLang=function(s){s||(s=r.getDefaultLang()),this.lang=s},r.prototype.translateWord=function(s,i){return r.getDictionaryWord(s,this.dictionary,i||this.lang)},r.prototype.translateDate=function(s,i,f){return r.formatDate(s,i,f||this.lang)},r.getDefaultLang=function(){var s,i,f,o="en";return navigator?.languages&&(!((f=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||f===void 0)&&f.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(s,i,f){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(f&&(!((o=i[f])===null||o===void 0)&&o[s]))return i[f][s];var l="",a=r.getDefaultLang();if(!f||a!==f){var c=i?.[a];c?.[s]&&(l=c[s])}return l},r.formatDate=function(s,i,f){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(f||r.getDefaultLang(),i);return o.format(s)},r})();return Oe.LanguageTranslator=n,Oe}var Mi=Di(),Li=Se('<iframe class="svelte-1f6x0x7"></iframe>'),Ii=Se("<hb-player-live></hb-player-live>",2),Pi=Se("<hb-player-live-camera-ptz></hb-player-live-camera-ptz>",2),Fi=Se('<video controls><source type="video/mp4"/> <track kind="captions" src="" srclang="en" label="English"/> Your browser does not support the video tag.</video>',2),ji=Se('<div class="col svelte-1f6x0x7" style="padding-right:0px;padding-left:0px;--bs-gutter-x: 0px;"><!></div>'),qi=Se('<div class="row svelte-1f6x0x7"></div>'),Hi=Se('<div id="matrix" class="svelte-1f6x0x7"><!></div>');const Bi={hash:"svelte-1f6x0x7",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;width:100%;display:block;background-color:black;}#matrix.svelte-1f6x0x7 {display:grid;gap:5px;
|
|
1
|
+
(function(Jt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const hr=1,vr=2,Kt=4,_r=8,pr=16,gr=1,mr=2,Xt="[",$t="[!",Zt="[?",Et="]",Pe={},P=Symbol(),Qt="http://www.w3.org/1999/xhtml",wr=!1;var en=Array.isArray,br=Array.prototype.indexOf,Fe=Array.prototype.includes,it=Array.from,st=Object.keys,lt=Object.defineProperty,je=Object.getOwnPropertyDescriptor,yr=Object.getOwnPropertyDescriptors,$r=Object.prototype,Er=Array.prototype,tn=Object.getPrototypeOf,nn=Object.isExtensible;const xr=()=>{};function Tr(e){for(var t=0;t<e.length;t++)e[t]()}function rn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const I=2,He=4,ot=8,sn=1<<24,ge=16,re=32,me=64,xt=128,X=512,M=1024,j=2048,fe=4096,G=8192,Z=16384,we=32768,ln=1<<25,ze=65536,on=1<<17,kr=1<<18,Ae=1<<19,Ar=1<<20,ae=1<<25,Se=65536,Tt=1<<21,kt=1<<22,be=1<<23,At=Symbol("$state"),Sr=Symbol("legacy props"),Cr=Symbol(""),de=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Nr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),fn=3,Ke=8;function Rr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Or(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Mr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Dr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ir(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Lr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Pr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Fr(){throw new Error("https://svelte.dev/e/hydration_failed")}function jr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Hr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function zr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Br(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ft(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function qr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let E=!1;function ie(e){E=e}let $;function se(e){if(e===null)throw ft(),Pe;return $=e}function at(){return se(_e($))}function ut(e){if(E){if(_e($)!==null)throw ft(),Pe;$=e}}function an(e=1){if(E){for(var t=e,n=$;t--;)n=_e(n);$=n}}function ct(e=!0){for(var t=0,n=$;;){if(n.nodeType===Ke){var r=n.data;if(r===Et){if(t===0)return n;t-=1}else(r===Xt||r===$t||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=_e(n);e&&n.remove(),n=i}}function un(e){if(!e||e.nodeType!==Ke)throw ft(),Pe;return e.data}function cn(e){return e===this.v}function Yr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function dn(e){return!Yr(e,this.v)}let Vr=!1,J=null;function Be(e){J=e}function hn(e,t=!1,n){J={p:J,i:!1,c:null,e:null,s:e,x:null,r:m,l:null}}function vn(e){var t=J,n=t.e;if(n!==null){t.e=null;for(var r of n)jn(r)}return e!==void 0&&(t.x=e),t.i=!0,J=t.p,e??{}}function _n(){return!0}let Ce=[];function pn(){var e=Ce;Ce=[],Tr(e)}function ye(e){if(Ce.length===0&&!Xe){var t=Ce;queueMicrotask(()=>{t===Ce&&pn()})}Ce.push(e)}function Wr(){for(;Ce.length>0;)pn()}function gn(e){var t=m;if(t===null)return g.f|=be,e;if((t.f&we)===0&&(t.f&He)===0)throw e;$e(e,t)}function $e(e,t){for(;t!==null;){if((t.f&xt)!==0){if((t.f&we)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Ur=-7169;function R(e,t){e.f=e.f&Ur|t}function St(e){(e.f&X)!==0||e.deps===null?R(e,M):R(e,fe)}function mn(e){if(e!==null)for(const t of e)(t.f&I)===0||(t.f&Se)===0||(t.f^=Se,mn(t.deps))}function wn(e,t,n){(e.f&j)!==0?t.add(e):(e.f&fe)!==0&&n.add(e),mn(e.deps),R(e,M)}const Ee=new Set;let k=null,le=null,Ct=null,Xe=!1,Nt=!1,qe=null,dt=null;var bn=0;let Gr=1;class he{id=Gr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#f=new Map;is_fork=!1;#c=!1;#a=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#a)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#f.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#f.get(t);if(n){this.#f.delete(t);for(var r of n.d)R(r,j),this.schedule(r);for(r of n.m)R(r,fe),this.schedule(r)}}#h(){if(bn++>1e3&&(Ee.delete(this),Jr()),!this.#d()){for(const o of this.#l)this.#o.delete(o),R(o,j),this.schedule(o);for(const o of this.#o)R(o,fe),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=qe=[],r=[],i=dt=[];for(const o of t)try{this.#u(o,n,r)}catch(f){throw Tn(o),f}if(k=null,i.length>0){var s=he.ensure();for(const o of i)s.schedule(o)}if(qe=null,dt=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[o,f]of this.#f)xn(o,f)}else{this.#t.size===0&&Ee.delete(this),this.#l.clear(),this.#o.clear();for(const o of this.#e)o(this);this.#e.clear(),yn(r),yn(n),this.#s?.resolve()}var l=k;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(f=>!o.#r.includes(f)))}l!==null&&(Ee.add(l),l.#h()),Ee.has(this)||this.#p()}#u(t,n,r){t.f^=M;for(var i=t.first;i!==null;){var s=i.f,l=(s&(re|me))!==0,o=l&&(s&M)!==0,f=o||(s&G)!==0||this.#f.has(i);if(!f&&i.fn!==null){l?i.f^=M:(s&He)!==0?n.push(i):et(i)&&((s&ge)!==0&&this.#o.add(i),We(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)wn(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==P&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&be)===0&&(this.current.set(t,[t.v,r]),le?.set(t,t.v))}activate(){k=this}deactivate(){k=null,le=null}flush(){try{Nt=!0,k=this,this.#h()}finally{bn=0,Ct=null,qe=null,dt=null,Nt=!1,k=null,le=null,xe.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Ee.delete(this)}#p(){for(const a of Ee){var t=a.id<this.id,n=[];for(const[u,[d,c]]of this.current){if(a.current.has(u)){var r=a.current.get(u)[0];if(t&&d!==r)a.current.set(u,[d,c]);else continue}n.push(u)}var i=[...a.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&a.discard();else if(n.length>0){a.activate();var s=new Set,l=new Map;for(var o of n)$n(o,i,s,l);if(a.#r.length>0){a.apply();for(var f of a.#r)a.#u(f,[],[]);a.#r=[]}a.deactivate()}}for(const a of Ee)a.#a.has(this)&&(a.#a.delete(this),a.#a.size===0&&!a.#d()&&(a.activate(),a.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,ye(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=rn()).promise}static ensure(){if(k===null){const t=k=new he;Nt||(Ee.add(k),Xe||ye(()=>{k===t&&t.flush()}))}return k}apply(){{le=null;return}}schedule(t){if(Ct=t,t.b?.is_pending&&(t.f&(He|ot|sn))!==0&&(t.f&we)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(qe!==null&&n===m&&(g===null||(g.f&I)===0))return;if((r&(me|re))!==0){if((r&M)===0)return;n.f^=M}}this.#r.push(n)}}function Rt(e){var t=Xe;Xe=!0;try{for(var n;;){if(Wr(),k===null)return n;k.flush()}}finally{Xe=t}}function Jr(){try{Pr()}catch(e){$e(e,Ct)}}let ve=null;function yn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Z|G))===0&&et(r)&&(ve=new Set,We(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Bn(r),ve?.size>0)){xe.clear();for(const i of ve){if((i.f&(Z|G))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)ve.has(l)&&(ve.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const f=s[o];(f.f&(Z|G))===0&&We(f)}}ve.clear()}}ve=null}}function $n(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&I)!==0?$n(i,t,n,r):(s&(kt|ge))!==0&&(s&j)===0&&En(i,t,r)&&(R(i,j),Ot(i))}}function En(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(Fe.call(t,i))return!0;if((i.f&I)!==0&&En(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ot(e){k.schedule(e)}function xn(e,t){if(!((e.f&re)!==0&&(e.f&M)!==0)){(e.f&j)!==0?t.d.push(e):(e.f&fe)!==0&&t.m.push(e),R(e,M);for(var n=e.first;n!==null;)xn(n,t),n=n.next}}function Tn(e){R(e,M);for(var t=e.first;t!==null;)Tn(t),t=t.next}function Kr(e){let t=0,n=Ne(0),r;return()=>{Ht()&&(p(n),Hn(()=>(t===0&&(r=er(()=>e(()=>Ze(n)))),t+=1,()=>{ye(()=>{t-=1,t===0&&(r?.(),r=void 0,Ze(n))})})))}}var Xr=ze|Ae;function Zr(e,t,n,r){new Qr(e,t,n,r)}class Qr{parent;is_pending=!1;transform_error;#e;#n=E?$:null;#t;#i;#s;#r=null;#l=null;#o=null;#f=null;#c=0;#a=0;#d=!1;#v=new Set;#h=new Set;#u=null;#_=Kr(()=>(this.#u=Ne(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=m;l.b=this,l.f|=xt,r(s)},this.parent=m.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=zt(()=>{if(E){const s=this.#n;at();const l=s.data===$t;if(s.data.startsWith(Zt)){const f=JSON.parse(s.data.slice(Zt.length));this.#y(f)}else l?this.#$():this.#p()}else this.#w()},Xr),E&&(this.#e=$)}#p(){try{this.#r=Q(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#o=Q(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=Q(()=>t(this.#e)),ye(()=>{var n=this.#f=document.createDocumentFragment(),r=ue();n.append(r),this.#r=this.#m(()=>Q(()=>this.#i(r))),this.#a===0&&(this.#e.before(n),this.#f=null,Oe(this.#l,()=>{this.#l=null}),this.#g(k))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#a=0,this.#c=0,this.#r=Q(()=>{this.#i(this.#e)}),this.#a>0){var t=this.#f=document.createDocumentFragment();Yt(this.#r,t);const n=this.#t.pending;this.#l=Q(()=>n(this.#e))}else this.#g(k)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){wn(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=m,r=g,i=J;ee(this.#s),q(this.#s),Be(this.#s.ctx);try{return he.ensure(),t()}catch(s){return gn(s),null}finally{ee(n),q(r),Be(i)}}#b(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t,n);return}this.#a+=t,this.#a===0&&(this.#g(n),this.#l&&Oe(this.#l,()=>{this.#l=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t,n){this.#b(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,ye(()=>{this.#d=!1,this.#u&&Ye(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),p(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(z(this.#r),this.#r=null),this.#l&&(z(this.#l),this.#l=null),this.#o&&(z(this.#o),this.#o=null),E&&(se(this.#n),an(),se(ct()));var i=!1,s=!1;const l=()=>{if(i){qr();return}i=!0,s&&Br(),this.#o!==null&&Oe(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#w()})},o=f=>{try{s=!0,n?.(f,l),s=!1}catch(a){$e(a,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return Q(()=>{var a=m;a.b=this,a.f|=xt,r(this.#e,()=>f,()=>l)})}catch(a){return $e(a,this.#s.parent),null}}))};ye(()=>{var f;try{f=this.transform_error(t)}catch(a){$e(a,this.#s&&this.#s.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(o,a=>$e(a,this.#s&&this.#s.parent)):o(f)})}}function ei(e,t,n,r){const i=vt;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=m,o=ti(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function a(c){o();try{r(c)}catch(_){(l.f&Z)===0&&$e(_,l)}ht()}if(n.length===0){f.then(()=>a(t.map(i)));return}var u=kn();function d(){Promise.all(n.map(c=>ni(c))).then(c=>a([...t.map(i),...c])).catch(c=>$e(c,l)).finally(()=>u())}f?f.then(()=>{o(),d(),ht()}):d()}function ti(){var e=m,t=g,n=J,r=k;return function(s=!0){ee(e),q(t),Be(n),s&&(e.f&Z)===0&&(r?.activate(),r?.apply())}}function ht(e=!0){ee(null),q(null),Be(null),e&&k?.deactivate()}function kn(){var e=m,t=e.b,n=k,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function vt(e){var t=I|j,n=g!==null&&(g.f&I)!==0?g:null;return m!==null&&(m.f|=Ae),{ctx:J,deps:null,effects:null,equals:cn,f:t,fn:e,reactions:null,rv:0,v:P,wv:0,parent:n??m,ac:null}}function ni(e,t,n){let r=m;r===null&&Or();var i=void 0,s=Ne(P),l=!g,o=new Map;return pi(()=>{var f=m,a=rn();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally(ht)}catch(_){a.reject(_),ht()}var u=k;if(l){if((f.f&we)!==0)var d=kn();if(r.b.is_rendered())o.get(u)?.reject(de),o.delete(u);else{for(const _ of o.values())_.reject(de);o.clear()}o.set(u,a)}const c=(_,v=void 0)=>{if(d){var w=v===de;d(w)}if(!(v===de||(f.f&Z)!==0)){if(u.activate(),v)s.f|=be,Ye(s,v);else{(s.f&be)!==0&&(s.f^=be),Ye(s,_);for(const[h,b]of o){if(o.delete(h),h===u)break;b.reject(de)}}u.deactivate()}};a.promise.then(c,_=>c(null,_||"unknown"))}),Pn(()=>{for(const f of o.values())f.reject(de)}),new Promise(f=>{function a(u){function d(){u===i?f(s):a(i)}u.then(d,d)}a(i)})}function ri(e){const t=vt(e);return Wn(t),t}function ii(e){const t=vt(e);return t.equals=dn,t}function si(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function li(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return(t.f&Z)===0?t:null;t=t.parent}return null}function Mt(e){var t,n=m;ee(li(e));try{e.f&=~Se,si(e),t=Xn(e)}finally{ee(n)}return t}function An(e){var t=e.v,n=Mt(e);if(!e.equals(n)&&(e.wv=Jn(),(!k?.is_fork||e.deps===null)&&(e.v=n,k?.capture(e,t,!0),e.deps===null))){R(e,M);return}Te||(le!==null?(Ht()||k?.is_fork)&&le.set(e,n):St(e))}function oi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(de),t.teardown=xr,t.ac=null,tt(t,0),Bt(t))}function Sn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&We(t)}let Dt=new Set;const xe=new Map;let Cn=!1;function Ne(e,t){var n={f:0,v:e,reactions:null,equals:cn,rv:0,wv:0};return n}function B(e,t){const n=Ne(e);return Wn(n),n}function Nn(e,t=!1,n=!0){const r=Ne(e);return t||(r.equals=dn),r}function H(e,t,n=!1){g!==null&&(!oe||(g.f&on)!==0)&&_n()&&(g.f&(I|ge|kt|on))!==0&&(te===null||!Fe.call(te,e))&&zr();let r=n?Ve(t):t;return Ye(e,r,dt)}function Ye(e,t,n=null){if(!e.equals(t)){var r=e.v;Te?xe.set(e,t):xe.set(e,r),e.v=t;var i=he.ensure();if(i.capture(e,r),(e.f&I)!==0){const s=e;(e.f&j)!==0&&Mt(s),le===null&&St(s)}e.wv=Jn(),Rn(e,j,n),m!==null&&(m.f&M)!==0&&(m.f&(re|me))===0&&(ne===null?wi([e]):ne.push(e)),!i.is_fork&&Dt.size>0&&!Cn&&fi()}return t}function fi(){Cn=!1;for(const e of Dt)(e.f&M)!==0&&R(e,fe),et(e)&&We(e);Dt.clear()}function Ze(e){H(e,e.v+1)}function Rn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,f=(o&j)===0;if(f&&R(l,t),(o&I)!==0){var a=l;le?.delete(a),(o&Se)===0&&(o&X&&(l.f|=Se),Rn(a,fe,n))}else if(f){var u=l;(o&ge)!==0&&ve!==null&&ve.add(u),n!==null?n.push(u):Ot(u)}}}function Ve(e){if(typeof e!="object"||e===null||At in e)return e;const t=tn(e);if(t!==$r&&t!==Er)return e;var n=new Map,r=en(e),i=B(0),s=De,l=o=>{if(De===s)return o();var f=g,a=De;q(null),Gn(s);var u=o();return q(f),Gn(a),u};return r&&n.set("length",B(e.length)),new Proxy(e,{defineProperty(o,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&jr();var u=n.get(f);return u===void 0?l(()=>{var d=B(a.value);return n.set(f,d),d}):H(u,a.value,!0),!0},deleteProperty(o,f){var a=n.get(f);if(a===void 0){if(f in o){const u=l(()=>B(P));n.set(f,u),Ze(i)}}else H(a,P),Ze(i);return!0},get(o,f,a){if(f===At)return e;var u=n.get(f),d=f in o;if(u===void 0&&(!d||je(o,f)?.writable)&&(u=l(()=>{var _=Ve(d?o[f]:P),v=B(_);return v}),n.set(f,u)),u!==void 0){var c=p(u);return c===P?void 0:c}return Reflect.get(o,f,a)},getOwnPropertyDescriptor(o,f){var a=Reflect.getOwnPropertyDescriptor(o,f);if(a&&"value"in a){var u=n.get(f);u&&(a.value=p(u))}else if(a===void 0){var d=n.get(f),c=d?.v;if(d!==void 0&&c!==P)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(o,f){if(f===At)return!0;var a=n.get(f),u=a!==void 0&&a.v!==P||Reflect.has(o,f);if(a!==void 0||m!==null&&(!u||je(o,f)?.writable)){a===void 0&&(a=l(()=>{var c=u?Ve(o[f]):P,_=B(c);return _}),n.set(f,a));var d=p(a);if(d===P)return!1}return u},set(o,f,a,u){var d=n.get(f),c=f in o;if(r&&f==="length")for(var _=a;_<d.v;_+=1){var v=n.get(_+"");v!==void 0?H(v,P):_ in o&&(v=l(()=>B(P)),n.set(_+"",v))}if(d===void 0)(!c||je(o,f)?.writable)&&(d=l(()=>B(void 0)),H(d,Ve(a)),n.set(f,d));else{c=d.v!==P;var w=l(()=>Ve(a));H(d,w)}var h=Reflect.getOwnPropertyDescriptor(o,f);if(h?.set&&h.set.call(u,a),!c){if(r&&typeof f=="string"){var b=n.get("length"),D=Number(f);Number.isInteger(D)&&D>=b.v&&H(b,D+1)}Ze(i)}return!0},ownKeys(o){p(i);var f=Reflect.ownKeys(o).filter(d=>{var c=n.get(d);return c===void 0||c.v!==P});for(var[a,u]of n)u.v!==P&&!(a in o)&&f.push(a);return f},setPrototypeOf(){Hr()}})}var It,On,Mn,Dn;function Lt(){if(It===void 0){It=window,On=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Mn=je(t,"firstChild").get,Dn=je(t,"nextSibling").get,nn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),nn(n)&&(n.__t=void 0)}}function ue(e=""){return document.createTextNode(e)}function Re(e){return Mn.call(e)}function _e(e){return Dn.call(e)}function Pt(e,t){if(!E)return Re(e);var n=Re($);return n===null&&(n=$.appendChild(ue())),se(n),n}function ai(e,t=!1){if(!E){var n=Re(e);return n instanceof Comment&&n.data===""?_e(n):n}if(t){if($?.nodeType!==fn){var r=ue();return $?.before(r),se(r),r}ui($)}return $}function In(e){e.textContent=""}function Ln(){return!1}function Ft(e,t,n){return document.createElementNS(Qt,e,void 0)}function ui(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===fn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function jt(e){var t=g,n=m;q(null),ee(null);try{return e()}finally{q(t),ee(n)}}function ci(e){m===null&&(g===null&&Lr(),Ir()),Te&&Dr()}function di(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ce(e,t){var n=m;n!==null&&(n.f&G)!==0&&(e|=G);var r={ctx:J,deps:null,nodes:null,f:e|j|X,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&He)!==0)qe!==null?qe.push(r):he.ensure().schedule(r);else if(t!==null){try{We(r)}catch(l){throw z(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ae)===0&&(i=i.first,(e&ge)!==0&&(e&ze)!==0&&i!==null&&(i.f|=ze))}if(i!==null&&(i.parent=n,n!==null&&di(i,n),g!==null&&(g.f&I)!==0&&(e&me)===0)){var s=g;(s.effects??=[]).push(i)}return r}function Ht(){return g!==null&&!oe}function Pn(e){const t=ce(ot,null);return R(t,M),t.teardown=e,t}function Fn(e){ci();var t=m.f,n=!g&&(t&re)!==0&&(t&we)===0;if(n){var r=J;(r.e??=[]).push(e)}else return jn(e)}function jn(e){return ce(He|Ar,e)}function hi(e){he.ensure();const t=ce(me|Ae,e);return()=>{z(t)}}function vi(e){he.ensure();const t=ce(me|Ae,e);return(n={})=>new Promise(r=>{n.outro?Oe(t,()=>{z(t),r(void 0)}):(z(t),r(void 0))})}function _i(e){return ce(He,e)}function pi(e){return ce(kt|Ae,e)}function Hn(e,t=0){return ce(ot|t,e)}function Qe(e,t=[],n=[],r=[]){ei(r,t,n,i=>{ce(ot,()=>e(...i.map(p)))})}function zt(e,t=0){var n=ce(ge|t,e);return n}function Q(e){return ce(re|Ae,e)}function zn(e){var t=e.teardown;if(t!==null){const n=Te,r=g;Vn(!0),q(null);try{t.call(null)}finally{Vn(n),q(r)}}}function Bt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&jt(()=>{i.abort(de)});var r=n.next;(n.f&me)!==0?n.parent=null:z(n,t),n=r}}function gi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&re)===0&&z(t),t=n}}function z(e,t=!0){var n=!1;(t||(e.f&kr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(mi(e.nodes.start,e.nodes.end),n=!0),R(e,ln),Bt(e,t&&!n),tt(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();zn(e),e.f^=ln,e.f|=Z;var i=e.parent;i!==null&&i.first!==null&&Bn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function mi(e,t){for(;e!==null;){var n=e===t?null:_e(e);e.remove(),e=n}}function Bn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Oe(e,t,n=!0){var r=[];qn(e,r,!0);var i=()=>{n&&z(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function qn(e,t,n){if((e.f&G)===0){e.f^=G;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&ze)!==0||(i.f&re)!==0&&(e.f&ge)!==0;qn(i,t,l?n:!1),i=s}}}function qt(e){Yn(e,!0)}function Yn(e,t){if((e.f&G)!==0){e.f^=G,(e.f&M)===0&&(R(e,j),he.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ze)!==0||(n.f&re)!==0;Yn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function Yt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:_e(n);t.append(n),n=i}}let _t=!1,Te=!1;function Vn(e){Te=e}let g=null,oe=!1;function q(e){g=e}let m=null;function ee(e){m=e}let te=null;function Wn(e){g!==null&&(te===null?te=[e]:te.push(e))}let Y=null,K=0,ne=null;function wi(e){ne=e}let Un=1,Me=0,De=Me;function Gn(e){De=e}function Jn(){return++Un}function et(e){var t=e.f;if((t&j)!==0)return!0;if(t&I&&(e.f&=~Se),(t&fe)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(et(s)&&An(s),s.wv>e.wv)return!0}(t&X)!==0&&le===null&&R(e,M)}return!1}function Kn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(te!==null&&Fe.call(te,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&I)!==0?Kn(s,t,!1):t===s&&(n?R(s,j):(s.f&M)!==0&&R(s,fe),Ot(s))}}function Xn(e){var t=Y,n=K,r=ne,i=g,s=te,l=J,o=oe,f=De,a=e.f;Y=null,K=0,ne=null,g=(a&(re|me))===0?e:null,te=null,Be(e.ctx),oe=!1,De=++Me,e.ac!==null&&(jt(()=>{e.ac.abort(de)}),e.ac=null);try{e.f|=Tt;var u=e.fn,d=u();e.f|=we;var c=e.deps,_=k?.is_fork;if(Y!==null){var v;if(_||tt(e,K),c!==null&&K>0)for(c.length=K+Y.length,v=0;v<Y.length;v++)c[K+v]=Y[v];else e.deps=c=Y;if(Ht()&&(e.f&X)!==0)for(v=K;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!_&&c!==null&&K<c.length&&(tt(e,K),c.length=K);if(_n()&&ne!==null&&!oe&&c!==null&&(e.f&(I|fe|j))===0)for(v=0;v<ne.length;v++)Kn(ne[v],e);if(i!==null&&i!==e){if(Me++,i.deps!==null)for(let w=0;w<n;w+=1)i.deps[w].rv=Me;if(t!==null)for(const w of t)w.rv=Me;ne!==null&&(r===null?r=ne:r.push(...ne))}return(e.f&be)!==0&&(e.f^=be),d}catch(w){return gn(w)}finally{e.f^=Tt,Y=t,K=n,ne=r,g=i,te=s,Be(l),oe=o,De=f}}function bi(e,t){let n=t.reactions;if(n!==null){var r=br.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&I)!==0&&(Y===null||!Fe.call(Y,t))){var s=t;(s.f&X)!==0&&(s.f^=X,s.f&=~Se),St(s),oi(s),tt(s,0)}}function tt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)bi(e,n[r])}function We(e){var t=e.f;if((t&Z)===0){R(e,M);var n=m,r=_t;m=e,_t=!0;try{(t&(ge|sn))!==0?gi(e):Bt(e),zn(e);var i=Xn(e);e.teardown=typeof i=="function"?i:null,e.wv=Un;var s;wr&&Vr&&(e.f&j)!==0&&e.deps}finally{_t=r,m=n}}}function p(e){var t=e.f,n=(t&I)!==0;if(g!==null&&!oe){var r=m!==null&&(m.f&Z)!==0;if(!r&&(te===null||!Fe.call(te,e))){var i=g.deps;if((g.f&Tt)!==0)e.rv<Me&&(e.rv=Me,Y===null&&i!==null&&i[K]===e?K++:Y===null?Y=[e]:Y.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:Fe.call(s,g)||s.push(g)}}}if(Te&&xe.has(e))return xe.get(e);if(n){var l=e;if(Te){var o=l.v;return((l.f&M)===0&&l.reactions!==null||Qn(l))&&(o=Mt(l)),xe.set(l,o),o}var f=(l.f&X)===0&&!oe&&g!==null&&(_t||(g.f&X)!==0),a=(l.f&we)===0;et(l)&&(f&&(l.f|=X),An(l)),f&&!a&&(Sn(l),Zn(l))}if(le?.has(e))return le.get(e);if((e.f&be)!==0)throw e.v;return e.v}function Zn(e){if(e.f|=X,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&I)!==0&&(t.f&X)===0&&(Sn(t),Zn(t))}function Qn(e){if(e.v===P)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(xe.has(t)||(t.f&I)!==0&&Qn(t))return!0;return!1}function er(e){var t=oe;try{return oe=!0,e()}finally{oe=t}}const pt=Symbol("events"),yi=new Set,tr=new Set;function $i(e){if(!E)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function Ei(e,t,n,r={}){function i(s){if(r.capture||Vt.call(t,s),!s.cancelBubble)return jt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ye(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function gt(e,t,n,r,i){var s={capture:r,passive:i},l=Ei(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Pn(()=>{t.removeEventListener(e,l,s)})}let nr=null;function Vt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;nr=e;var l=0,o=nr===e&&e[pt];if(o){var f=i.indexOf(o);if(f!==-1&&(t===document||t===window)){e[pt]=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(l=f)}if(s=i[l]||e.target,s!==t){lt(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=g,d=m;q(null),ee(null);try{for(var c,_=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var w=s[pt]?.[r];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(h){c?_.push(h):c=h}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let h of _)queueMicrotask(()=>{throw h});throw c}}finally{e[pt]=t,delete e.currentTarget,q(u),ee(d)}}}const xi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ti(e){return xi?.createHTML(e)??e}function ki(e){var t=Ft("template");return t.innerHTML=Ti(e.replaceAll("<!>","<!---->")),t.content}function Ue(e,t){var n=m;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ie(e,t){var n=(t&gr)!==0,r=(t&mr)!==0,i,s=!e.startsWith("<!>");return()=>{if(E)return Ue($,null),$;i===void 0&&(i=ki(s?e:"<!>"+e),n||(i=Re(i)));var l=r||On?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Re(l),f=l.lastChild;Ue(o,f)}else Ue(l,l);return l}}function Ai(){if(E)return Ue($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),n=ue();return e.append(t,n),Ue(t,n),e}function pe(e,t){if(E){var n=m;((n.f&we)===0||n.nodes.end===null)&&(n.nodes.end=$),at();return}e!==null&&e.before(t)}const Si=["touchstart","touchmove"];function Ci(e){return Si.includes(e)}function rr(e,t){return ir(e,t)}function Ni(e,t){Lt(),t.intro=t.intro??!1;const n=t.target,r=E,i=$;try{for(var s=Re(n);s&&(s.nodeType!==Ke||s.data!==Xt);)s=_e(s);if(!s)throw Pe;ie(!0),se(s);const l=ir(e,{...t,anchor:s});return ie(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Pe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Fr(),Lt(),In(n),ie(!1),rr(e,t)}finally{ie(r),se(i)}}const mt=new Map;function ir(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){Lt();var f=void 0,a=vi(()=>{var u=n??t.appendChild(ue());Zr(u,{pending:()=>{}},_=>{hn({});var v=J;if(s&&(v.c=s),i&&(r.$$events=i),E&&Ue(_,null),f=e(_,r)||{},E&&(m.nodes.end=$,$===null||$.nodeType!==Ke||$.data!==Et))throw ft(),Pe;vn()},o);var d=new Set,c=_=>{for(var v=0;v<_.length;v++){var w=_[v];if(!d.has(w)){d.add(w);var h=Ci(w);for(const A of[t,document]){var b=mt.get(A);b===void 0&&(b=new Map,mt.set(A,b));var D=b.get(w);D===void 0?(A.addEventListener(w,Vt,{passive:h}),b.set(w,1)):b.set(w,D+1)}}}};return c(it(yi)),tr.add(c),()=>{for(var _ of d)for(const h of[t,document]){var v=mt.get(h),w=v.get(_);--w==0?(h.removeEventListener(_,Vt),v.delete(_),v.size===0&&mt.delete(h)):v.set(_,w)}tr.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return Wt.set(f,a),f}let Wt=new WeakMap;function Ri(e,t){const n=Wt.get(e);return n?(Wt.delete(e),n(t)):Promise.resolve()}class Oi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)qt(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(z(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var a=document.createDocumentFragment();Yt(l,a),a.append(ue()),this.#t.set(s,{effect:l,fragment:a})}else z(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Oe(l,o,!1)):o()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(z(i.effect),this.#t.delete(r))};ensure(t,n){var r=k,i=Ln();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=ue();s.append(l),this.#t.set(t,{effect:Q(()=>n(l)),fragment:s})}else this.#n.set(t,Q(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,f]of this.#n)o===t?r.unskip_effect(f):r.skip_effect(f);for(const[o,f]of this.#t)o===t?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else E&&(this.anchor=$),this.#r(r)}}function Mi(e){J===null&&Rr(),Fn(()=>{const t=er(e);if(typeof t=="function")return t})}function sr(e,t,n=!1){var r;E&&(r=$,at());var i=new Oi(e),s=n?ze:0;function l(o,f){if(E){var a=un(r);if(o!==parseInt(a.substring(1))){var u=ct();se(u),i.anchor=u,ie(!1),i.ensure(o,f),ie(!0);return}}i.ensure(o,f)}zt(()=>{var o=!1;t((f,a=0)=>{o=!0,l(a,f)}),o||l(-1,null)},s)}function Di(e,t,n){for(var r=[],i=t.length,s,l=t.length,o=0;o<i;o++){let d=t[o];Oe(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var c=e.outrogroups;Ut(e,it(s.done)),c.delete(s),c.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=r.length===0&&n!==null;if(f){var a=n,u=a.parentNode;In(u),u.append(a),e.items.clear()}Ut(e,t,!f)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Ut(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const l of e.pending.values())for(const o of l)r.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ae;const l=document.createDocumentFragment();Yt(s,l)}else z(t[i],n)}}var lr;function or(e,t,n,r,i,s=null){var l=e,o=new Map,f=(t&Kt)!==0;if(f){var a=e;l=E?se(Re(a)):a.appendChild(ue())}E&&at();var u=null,d=ii(()=>{var A=n();return en(A)?A:A==null?[]:it(A)}),c,_=new Map,v=!0;function w(A){(D.effect.f&Z)===0&&(D.pending.delete(A),D.fallback=u,Ii(D,c,l,t,r),u!==null&&(c.length===0?(u.f&ae)===0?qt(u):(u.f^=ae,rt(u,null,l)):Oe(u,()=>{u=null})))}function h(A){D.pending.delete(A)}var b=zt(()=>{c=p(d);var A=c.length;let V=!1;if(E){var Je=un(l)===$t;Je!==(A===0)&&(l=ct(),se(l),ie(!1),V=!0)}for(var y=new Set,x=k,L=Ln(),O=0;O<A;O+=1){E&&$.nodeType===Ke&&$.data===Et&&(l=$,V=!0,ie(!1));var C=c[O],T=r(C,O),S=v?null:o.get(T);S?(S.v&&Ye(S.v,C),S.i&&Ye(S.i,O),L&&x.unskip_effect(S.e)):(S=Li(o,v?l:lr??=ue(),C,T,O,i,t,n),v||(S.e.f|=ae),o.set(T,S)),y.add(T)}if(A===0&&s&&!u&&(v?u=Q(()=>s(l)):(u=Q(()=>s(lr??=ue())),u.f|=ae)),A>y.size&&Mr(),E&&A>0&&se(ct()),!v)if(_.set(x,y),L){for(const[N,W]of o)y.has(N)||x.skip_effect(W.e);x.oncommit(w),x.ondiscard(h)}else w(x);V&&ie(!0),p(d)}),D={effect:b,items:o,pending:_,outrogroups:null,fallback:u};v=!1,E&&(l=$)}function nt(e){for(;e!==null&&(e.f&re)===0;)e=e.next;return e}function Ii(e,t,n,r,i){var s=(r&_r)!==0,l=t.length,o=e.items,f=nt(e.effect.first),a,u=null,d,c=[],_=[],v,w,h,b;if(s)for(b=0;b<l;b+=1)v=t[b],w=i(v,b),h=o.get(w).e,(h.f&ae)===0&&(h.nodes?.a?.measure(),(d??=new Set).add(h));for(b=0;b<l;b+=1){if(v=t[b],w=i(v,b),h=o.get(w).e,e.outrogroups!==null)for(const C of e.outrogroups)C.pending.delete(h),C.done.delete(h);if((h.f&G)!==0&&(qt(h),s&&(h.nodes?.a?.unfix(),(d??=new Set).delete(h))),(h.f&ae)!==0)if(h.f^=ae,h===f)rt(h,null,n);else{var D=u?u.next:f;h===e.effect.last&&(e.effect.last=h.prev),h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),ke(e,u,h),ke(e,h,D),rt(h,D,n),u=h,c=[],_=[],f=nt(u.next);continue}if(h!==f){if(a!==void 0&&a.has(h)){if(c.length<_.length){var A=_[0],V;u=A.prev;var Je=c[0],y=c[c.length-1];for(V=0;V<c.length;V+=1)rt(c[V],A,n);for(V=0;V<_.length;V+=1)a.delete(_[V]);ke(e,Je.prev,y.next),ke(e,u,Je),ke(e,y,A),f=A,u=y,b-=1,c=[],_=[]}else a.delete(h),rt(h,f,n),ke(e,h.prev,h.next),ke(e,h,u===null?e.effect.first:u.next),ke(e,u,h),u=h;continue}for(c=[],_=[];f!==null&&f!==h;)(a??=new Set).add(f),_.push(f),f=nt(f.next);if(f===null)continue}(h.f&ae)===0&&c.push(h),u=h,f=nt(h.next)}if(e.outrogroups!==null){for(const C of e.outrogroups)C.pending.size===0&&(Ut(e,it(C.done)),e.outrogroups?.delete(C));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||a!==void 0){var x=[];if(a!==void 0)for(h of a)(h.f&G)===0&&x.push(h);for(;f!==null;)(f.f&G)===0&&f!==e.fallback&&x.push(f),f=nt(f.next);var L=x.length;if(L>0){var O=(r&Kt)!==0&&l===0?n:null;if(s){for(b=0;b<L;b+=1)x[b].nodes?.a?.measure();for(b=0;b<L;b+=1)x[b].nodes?.a?.fix()}Di(e,x,O)}}s&&ye(()=>{if(d!==void 0)for(h of d)h.nodes?.a?.apply()})}function Li(e,t,n,r,i,s,l,o){var f=(l&hr)!==0?(l&pr)===0?Nn(n,!1,!1):Ne(n):null,a=(l&vr)!==0?Ne(i):null;return{v:f,i:a,e:Q(()=>(s(t,f??n,a??i,o),()=>{e.delete(r)}))}}function rt(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ae)===0?t.nodes.start:n;r!==null;){var l=_e(r);if(s.before(r),r===i)return;r=l}}function ke(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Pi(e,t){_i(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Ft("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Fi=Symbol("is custom element"),ji=Symbol("is html"),Hi=Nr?"link":"LINK";function Ge(e,t,n,r){var i=zi(e);E&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Hi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Cr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&fr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function wt(e,t,n){var r=g,i=m;let s=E;E&&ie(!1),q(null),ee(null);try{t!=="style"&&(Gt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?fr(e).includes(t):n&&typeof n=="object")?e[t]=n:Ge(e,t,n==null?n:String(n))}finally{q(r),ee(i),s&&ie(!0)}}function zi(e){return e.__attributes??={[Fi]:e.nodeName.includes("-"),[ji]:e.namespaceURI===Qt}}var Gt=new Map;function fr(e){var t=e.getAttribute("is")||e.nodeName,n=Gt.get(t);if(n)return n;Gt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=yr(i);for(var l in r)r[l].set&&n.push(l);i=tn(i)}return n}function ar(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var f;f=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var a=!1,u=vt(()=>(a=!1,f())),d=m;return(function(c,_){if(arguments.length>0){const v=_?p(u):c;return H(u,v),a=!0,i!==void 0&&(i=v),c}return Te&&a||(d.f&Z)!==0?u.v:p(u)})}function Bi(e){return new qi(e)}class qi{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=Nn(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return p(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Sr?!0:(p(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return H(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?Ni:rr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Rt(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||lt(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Ri(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let ur;typeof HTMLElement=="function"&&(ur=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=Ft("slot");r!=="default"&&(s.name=r),pe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Yi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=bt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Bi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=hi(()=>{Hn(()=>{this.$$r=!0;for(const r of st(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=bt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=bt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return st(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function bt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Yi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Vi(e,t,n,r,i,s){let l=class extends ur{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return st(t).map(o=>(t[o].attribute||o).toLowerCase())}};return st(t).forEach(o=>{lt(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=bt(o,f,t),this.$$d[o]=f;var a=this.$$c;if(a){var u=je(a,o)?.get;u?a[o]=f:a.$set({[o]:f})}}})}),r.forEach(o=>{lt(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Wi={version:"0.66.1"};function Ui(e,t=100,n={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");if(typeof n=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:r}=n;let i,s,l,o,f;function a(){const c=i,_=s;return i=void 0,s=void 0,f=e.apply(c,_),f}function u(){const c=Date.now()-o;c<t&&c>=0?l=setTimeout(u,t-c):(l=void 0,r||(f=a()))}const d=function(...c){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this,s=c,o=Date.now();const _=r&&!l;if(l||(l=setTimeout(u,t)),_)return f=a(),f};return Object.defineProperty(d,"isPending",{get(){return l!==void 0}}),d.clear=()=>{l&&(clearTimeout(l),l=void 0,i=void 0,s=void 0)},d.flush=()=>{l&&d.trigger()},d.trigger=()=>{f=a(),d.clear()},d}var Le={},cr;function Gi(){if(cr)return Le;cr=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.LanguageTranslator=void 0,Le.getChildStyleToPass=e,Le.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||l===void 0)&&l.length))for(var f=function(c){var _=i?.filter(function(v){return v.name===c&&v.defaultValue!==r[c]});_&&(o+="".concat(c,":").concat(r[c],";"))},a=0,u=Object.keys(r);a<u.length;a++){var d=u[a];f(d)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(a){console.warn(a)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var f="",a=r.getDefaultLang();if(!l||a!==l){var u=s?.[a];u?.[i]&&(f=u[i])}return f},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return Le.LanguageTranslator=n,Le}var Ji=Gi(),Ki=Ie('<iframe class="svelte-1f6x0x7"></iframe>'),Xi=Ie("<hb-player-live></hb-player-live>",2),Zi=Ie("<hb-player-live-camera-ptz></hb-player-live-camera-ptz>",2),Qi=Ie('<video controls=""><source type="video/mp4"/> <track kind="captions" src="" srclang="en" label="English"/> Your browser does not support the video tag.</video>',2),es=Ie('<div class="col svelte-1f6x0x7" style="padding-right:0px;padding-left:0px;--bs-gutter-x: 0px;"><!></div>'),ts=Ie('<div class="row svelte-1f6x0x7"></div>'),ns=Ie('<div id="matrix" class="svelte-1f6x0x7"><!></div>');const rs={hash:"svelte-1f6x0x7",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;width:100%;display:block;background-color:black;}#matrix.svelte-1f6x0x7 {display:grid;gap:5px;
|
|
3
3
|
/* Play with min-value */overflow:hidden;}.col.svelte-1f6x0x7 {margin:5px;}.row.svelte-1f6x0x7 {margin-top:5px !important;margin-left:5px !important;margin-right:5px !important;}iframe.svelte-1f6x0x7 {border:none;width:100%;height:100%;margin:0px;padding:0px;}
|
|
4
4
|
/*!
|
|
5
5
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
@media (min-width: 1200px) {
|
|
17
17
|
}
|
|
18
18
|
@media (min-width: 1400px) {
|
|
19
|
-
}`};function
|
|
19
|
+
}`};function dr(e,t){hn(t,!0),Pi(e,rs);function n(y,x){t.$$host.dispatchEvent(new CustomEvent(y,{detail:x}))}const r=t.$$host;let i=ar(t,"id",7,""),s=ar(t,"items"),l=B(0),o=B(0),f=B(0),a=B(0),u=B(void 0),d=B(Ve([]));function c(){if(p(o)&&p(l)){const y=1.7777777777777777,x=p(o)/p(l);let L=0,O=0;if(s().length===1)L=1,O=1;else if(p(o)<450)O=1,L=s().length;else if(s().length===2)x>y?(L=1,O=2):(L=2,O=1);else if(x>y){let C=1/0;for(let T=1;T<=s().length;T++){const S=Math.ceil(s().length/T),N=p(l)/T*y*S;if(N<=p(o)){const W=p(o)-N;W<C&&(C=W,L=T,O=S)}}}else{let C=1/0;for(let T=1;T<=s().length;T++){const S=Math.ceil(s().length/T),N=p(o)/T/y*S;if(N<=p(l)){const W=p(l)-N;W<C&&(C=W,O=T,L=S)}}}if(H(f,L,!0),H(a,O,!0),p(f)&&p(a)){const C=[];for(let T=0;T<p(f);T++)for(let S=0;S<p(a);S++){const N=s()[T*p(a)+S];N&&(C[T]||(C[T]={row:T,items:[]}),C[T].items[S]=N)}H(d,C,!0),console.log(p(d),p(f),p(a),"drawItems")}}}function _(){if(window.innerWidth&&window.innerHeight&&r?.shadowRoot){const x=r.shadowRoot.getElementById("matrix");x?.style&&(H(l,window.innerHeight-x.offsetTop),H(o,Number(x.clientWidth),!0),x.style.height=p(l)+"px",console.log(`setSize w:${p(o)} h:${p(l)}`),c())}}Fn(()=>{if(typeof s()=="string")try{s(JSON.parse(s())),c()}catch(y){console.error("error parsing items",y)}}),Ji.addComponent({repoName:"@htmlbricks/hb-player-live",version:Wi.version}),Mi(()=>{_()});function v(y){H(u,y,!0),n("hoverItem",{id:y,selected:!!p(u)})}function w(){p(u)?n("clickItem",{id:p(u)}):console.info("No video selected")}function h(y){const x=y;try{x.contentWindow?.document.addEventListener("click",()=>{w()})}catch(L){console.warn("error adding click event to iframe",L)}}var b={get id(){return i()},set id(y=""){i(y),Rt()},get items(){return s()},set items(y){s(y),Rt()}},D=ns(),A=ri(()=>Ui(_,200));gt("resize",It,function(...y){p(A)?.apply(this,y)});var V=Pt(D);{var Je=y=>{var x=Ai(),L=ai(x);or(L,17,()=>p(d),O=>O.row,(O,C)=>{var T=ts();or(T,21,()=>p(C).items,S=>S.id,(S,N)=>{var W=es(),is=Pt(W);{var ss=U=>{var F=Ki();Qe(()=>{Ge(F,"title",p(N).title),Ge(F,"src",p(N).uri)}),gt("load",F,yt=>h(yt.target)),$i(F),pe(U,F)},ls=U=>{var F=Xi();wt(F,"media_type","whep"),Qe(()=>wt(F,"mediauri",`${p(N).uri??""}/whep`)),pe(U,F)},os=U=>{var F=Zi();wt(F,"media_type","whep"),Qe(()=>wt(F,"live_uri",`${p(N).uri??""}/whep`)),pe(U,F)},fs=U=>{var F=Qi(),yt=Pt(F);an(3),ut(F),Qe(()=>{Ge(yt,"title",p(N).title),Ge(yt,"src",p(N).uri)}),pe(U,F)};sr(is,U=>{p(N).type==="iframe"?U(ss):p(N).type==="mediamtx-webrtc"?U(ls,1):p(N).type==="mediamtx-webrtc-ptz"?U(os,2):p(N).type==="video"&&U(fs,3)})}ut(W),Qe(()=>Ge(W,"id",`select_${p(N).id??""}`)),gt("mouseleave",W,U=>v()),gt("mouseenter",W,U=>v(p(N).id)),pe(S,W)}),ut(T),pe(O,T)}),pe(y,x)};sr(V,y=>{s()&&typeof s()=="object"&&y(Je)})}return ut(D),pe(e,D),vn(b)}customElements.define("hb-matrix-video",Vi(dr,{id:{},items:{}},[],[],{mode:"open"})),Jt.Component=dr,Object.defineProperty(Jt,Symbol.toStringTag,{value:"Module"})})(this["matrix-video"]=this["matrix-video"]||{});
|
|
20
20
|
//# sourceMappingURL=main.iife.js.map
|