@htmlbricks/hb-player-live-camera-ptz 0.65.22 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +10 -38
- package/package.json +2 -2
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Rn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ei=1,ti=4,ni=8,ri=16,ii=1,si=2,jn="[",Wt="[!",Ln="]",Ge={},L=Symbol(),oi="http://www.w3.org/1999/xhtml",Zt=!1;var li=Array.isArray,ai=Array.prototype.indexOf,fi=Array.from,bt=Object.keys,_t=Object.defineProperty,De=Object.getOwnPropertyDescriptor,ui=Object.getOwnPropertyDescriptors,ci=Object.prototype,di=Array.prototype,Mn=Object.getPrototypeOf,zn=Object.isExtensible;function vi(e){for(var t=0;t<e.length;t++)e[t]()}function In(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const j=2,Xt=4,Kt=8,ve=16,he=32,$e=64,pt=128,ne=512,M=1024,Y=2048,be=4096,le=8192,_e=16384,gt=32768,Je=65536,Fn=1<<17,Qt=1<<18,Re=1<<19,hi=1<<20,je=32768,en=1<<21,tn=1<<22,ke=1<<23,xt=Symbol("$state"),Vn=Symbol("legacy props"),bi=Symbol(""),Ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},nn=3,We=8;function _i(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function pi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function gi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yi(){throw new Error("https://svelte.dev/e/hydration_failed")}function wi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function $i(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ki(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ei(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ti(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function mt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Pi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function ae(e){$=e}let P;function J(e){if(e===null)throw mt(),Ge;return P=e}function rn(){return J(ie(P))}function A(e){if($){if(ie(P)!==null)throw mt(),Ge;P=e}}function Bn(e=1){if($){for(var t=e,n=P;t--;)n=ie(n);P=n}}function qn(e=!0){for(var t=0,n=P;;){if(n.nodeType===We){var r=n.data;if(r===Ln){if(t===0)return n;t-=1}else(r===jn||r===Wt)&&(t+=1)}var i=ie(n);e&&n.remove(),n=i}}function Si(e){if(!e||e.nodeType!==We)throw mt(),Ge;return e.data}function Yn(e){return e===this.v}function Ai(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Hn(e){return!Ai(e,this.v)}let Ci=!1,Z=null;function Ze(e){Z=e}function Gn(e,t=!1,n){Z={p:Z,i:!1,c:null,e:null,s:e,x:null,l:null}}function Jn(e){var t=Z,n=t.e;if(n!==null){t.e=null;for(var r of n)vr(r)}return e!==void 0&&(t.x=e),t.i=!0,Z=t.p,e??{}}function Un(){return!0}let Le=[];function Wn(){var e=Le;Le=[],vi(e)}function nt(e){if(Le.length===0&&!rt){var t=Le;queueMicrotask(()=>{t===Le&&Wn()})}Le.push(e)}function Ni(){for(;Le.length>0;)Wn()}function Zn(e){var t=w;if(t===null)return m.f|=ke,e;if((t.f>)===0){if((t.f&pt)===0)throw e;t.b.error(e)}else Xe(e,t)}function Xe(e,t){for(;t!==null;){if((t.f&pt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const yt=new Set;let E=null,wt=null,X=null,K=[],$t=null,sn=!1,rt=!1;class re{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#a=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){K=[],wt=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(wt=this,E=null,Kn(n.render_effects),Kn(n.effects),wt=null,this.#a?.resolve()),X=null}#o(t,n){t.f^=M;for(var r=t.first;r!==null;){var i=r.f,s=(i&(he|$e))!==0,o=s&&(i&M)!==0,l=o||(i&le)!==0||this.skipped_effects.has(r);if((r.f&pt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=M:(i&Xt)!==0?n.effects.push(r):at(r)&&((r.f&ve)!==0&&n.block_effects.push(r),ft(r));var f=r.first;if(f!==null){r=f;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&Y)!==0?this.#s:this.#i).push(n),this.#f(n.deps),I(n,M)}#f(t){if(t!==null)for(const n of t)(n.f&j)===0||(n.f&je)===0||(n.f^=je,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&ke)===0&&(this.current.set(t,t.v),X?.set(t,t.v))}activate(){E=this,this.apply()}deactivate(){E===this&&(E=null,X=null)}flush(){if(this.activate(),K.length>0){if(Xn(),E!==null&&E!==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(yt.size>1){this.previous.clear();var t=X,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of yt){if(s===this){n=!1;continue}const o=[];for(const[f,a]of this.current){if(s.current.has(f))if(n&&a!==s.current.get(f))s.current.set(f,a);else continue;o.push(f)}if(o.length===0)continue;const l=[...s.current.keys()].filter(f=>!this.current.has(f));if(l.length>0){var i=K;K=[];const f=new Set,a=new Map;for(const h of o)Qn(h,l,f,a);if(K.length>0){E=s,s.apply();for(const h of K)s.#o(h,r);s.deactivate()}K=i}}E=null,X=t}this.committed=!0,yt.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)I(t,Y),Me(t);for(const t of this.#i)I(t,be),Me(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=In()).promise}static ensure(){if(E===null){const t=E=new re;yt.add(E),rt||re.enqueue(()=>{E===t&&t.flush()})}return E}static enqueue(t){nt(t)}apply(){}}function Q(e){var t=rt;rt=!0;try{for(var n;;){if(Ni(),K.length===0&&(E?.flush(),K.length===0))return $t=null,n;Xn()}}finally{rt=t}}function Xn(){var e=Te;sn=!0;var t=null;try{var n=0;for(At(!0);K.length>0;){var r=re.ensure();if(n++>1e3){var i,s;Oi()}r.process(K),Ee.clear()}}finally{sn=!1,At(e),$t=null}}function Oi(){try{mi()}catch(e){Xe(e,$t)}}let pe=null;function Kn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(_e|le))===0&&at(r)&&(pe=new Set,ft(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?_r(r):r.fn=null),pe?.size>0)){Ee.clear();for(const i of pe){if((i.f&(_e|le))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)pe.has(o)&&(pe.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&(_e|le))===0&&ft(f)}}pe.clear()}}pe=null}}function Qn(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&j)!==0?Qn(i,t,n,r):(s&(tn|ve))!==0&&(s&Y)===0&&er(i,t,r)&&(I(i,Y),Me(i))}}function er(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(t.includes(i))return!0;if((i.f&j)!==0&&er(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Me(e){for(var t=$t=e;t.parent!==null;){t=t.parent;var n=t.f;if(sn&&t===w&&(n&ve)!==0&&(n&Qt)===0)return;if((n&($e|he))!==0){if((n&M)===0)return;t.f^=M}}K.push(t)}function Di(e){let t=0,n=it(0),r;return()=>{St()&&(c(n),fn(()=>(t===0&&(r=cn(()=>e(()=>st(n)))),t+=1,()=>{nt(()=>{t-=1,t===0&&(r?.(),r=void 0,st(n))})})))}}var Ri=Je|Re|pt;function ji(e,t,n){new Li(e,t,n)}class Li{parent;#t=!1;#e;#n=$?P:null;#r;#a;#s;#i=null;#o=null;#l=null;#f=null;#u=null;#c=0;#d=0;#h=!1;#v=null;#x=Di(()=>(this.#v=it(this.#c),()=>{this.#v=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#a=r,this.parent=w.b,this.#t=!!this.#r.pending,this.#s=un(()=>{if(w.b=this,$){const s=this.#n;rn(),s.nodeType===We&&s.data===Wt?this.#y():this.#m()}else{var i=this.#p();try{this.#i=me(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#_():this.#t=!1}return()=>{this.#u?.remove()}},Ri),$&&(this.#e=P)}#m(){try{this.#i=me(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#o=me(()=>t(this.#e)),re.enqueue(()=>{var n=this.#p();this.#i=this.#b(()=>(re.ensure(),me(()=>this.#a(n)))),this.#d>0?this.#_():(ot(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=xe(),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}#b(t){var n=w,r=m,i=Z;ee(this.#s),z(this.#s),Ze(this.#s.ctx);try{return t()}catch(s){return Zn(s),null}finally{ee(n),z(r),Ze(i)}}#_(){const t=this.#r.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),xr(this.#i,this.#f)),this.#o===null&&(this.#o=me(()=>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.#o&&ot(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#v&&Tt(this.#v,this.#c)}get_effect_pending(){return this.#x(),c(this.#v)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#h||!n&&!r)throw t;this.#i&&(H(this.#i),this.#i=null),this.#o&&(H(this.#o),this.#o=null),this.#l&&(H(this.#l),this.#l=null),$&&(J(this.#n),Bn(),J(qn()));var i=!1,s=!1;const o=()=>{if(i){Pi();return}i=!0,s&&Ti(),re.ensure(),this.#c=0,this.#l!==null&&ot(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#b(()=>(this.#h=!1,me(()=>this.#a(this.#e)))),this.#d>0?this.#_():this.#t=!1};var l=m;try{z(null),s=!0,n?.(t,o),s=!1}catch(f){Xe(f,this.#s&&this.#s.parent)}finally{z(l)}r&&nt(()=>{this.#l=this.#b(()=>{re.ensure(),this.#h=!0;try{return me(()=>{r(this.#e,()=>t,()=>o)})}catch(f){return Xe(f,this.#s.parent),null}finally{this.#h=!1}})})}}function Mi(e,t,n,r){const i=Et;if(n.length===0&&e.length===0){r(t.map(i));return}var s=E,o=w,l=zi();function f(){Promise.all(n.map(a=>Ii(a))).then(a=>{l();try{r([...t.map(i),...a])}catch(h){(o.f&_e)===0&&Xe(h,o)}s?.deactivate(),kt()}).catch(a=>{Xe(a,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return f()}finally{s?.deactivate(),kt()}}):f()}function zi(){var e=w,t=m,n=Z,r=E;return function(s=!0){ee(e),z(t),Ze(n),s&&r?.activate()}}function kt(){ee(null),z(null),Ze(null)}function Et(e){var t=j|Y,n=m!==null&&(m.f&j)!==0?m:null;return w!==null&&(w.f|=Re),{ctx:Z,deps:null,effects:null,equals:Yn,f:t,fn:e,reactions:null,rv:0,v:L,wv:0,parent:n??w,ac:null}}function Ii(e,t){let n=w;n===null&&_i();var r=n.b,i=void 0,s=it(L),o=!m,l=new Map;return es(()=>{var f=In();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{a===E&&a.committed&&a.deactivate(),kt()})}catch(d){f.reject(d),kt()}var a=E;if(o){var h=!r.is_pending();r.update_pending_count(1),a.increment(h),l.get(a)?.reject(Ue),l.delete(a),l.set(a,f)}const b=(d,v=void 0)=>{if(a.activate(),v)v!==Ue&&(s.f|=ke,Tt(s,v));else{(s.f&ke)!==0&&(s.f^=ke),Tt(s,d);for(const[S,B]of l){if(l.delete(S),S===a)break;B.reject(Ue)}}o&&(r.update_pending_count(-1),a.decrement(h))};f.promise.then(b,d=>b(null,d||"unknown"))}),dr(()=>{for(const f of l.values())f.reject(Ue)}),new Promise(f=>{function a(h){function b(){h===i?f(s):a(i)}h.then(b,b)}a(i)})}function Fi(e){const t=Et(e);return yr(t),t}function Vi(e){const t=Et(e);return t.equals=Hn,t}function tr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Bi(e){for(var t=e.parent;t!==null;){if((t.f&j)===0)return(t.f&_e)===0?t:null;t=t.parent}return null}function on(e){var t,n=w;ee(Bi(e));try{e.f&=~je,tr(e),t=Tr(e)}finally{ee(n)}return t}function nr(e){var t=on(e);if(e.equals(t)||(E?.is_fork||(e.v=t),e.wv=kr()),!Ie)if(X!==null)St()&&X.set(e,t);else{var n=(e.f&ne)===0?be:M;I(e,n)}}let ln=new Set;const Ee=new Map;let rr=!1;function it(e,t){var n={f:0,v:e,reactions:null,equals:Yn,rv:0,wv:0};return n}function k(e,t){const n=it(e);return yr(n),n}function qi(e,t=!1,n=!0){const r=it(e);return t||(r.equals=Hn),r}function g(e,t,n=!1){m!==null&&(!ue||(m.f&Fn)!==0)&&Un()&&(m.f&(j|ve|tn|Fn))!==0&&!ye?.includes(e)&&Ei();let r=n?ge(t):t;return Tt(e,r)}function Tt(e,t){if(!e.equals(t)){var n=e.v;Ie?Ee.set(e,t):Ee.set(e,n),e.v=t;var r=re.ensure();r.capture(e,n),(e.f&j)!==0&&((e.f&Y)!==0&&on(e),I(e,(e.f&ne)!==0?M:be)),e.wv=kr(),ir(e,Y),w!==null&&(w.f&M)!==0&&(w.f&(he|$e))===0&&(te===null?ss([e]):te.push(e)),!r.is_fork&&ln.size>0&&!rr&&Yi()}return t}function Yi(){rr=!1;var e=Te;At(!0);const t=Array.from(ln);try{for(const n of t)(n.f&M)!==0&&I(n,be),at(n)&&ft(n)}finally{At(e)}ln.clear()}function st(e){g(e,e.v+1)}function ir(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,l=(o&Y)===0;if(l&&I(s,t),(o&j)!==0){var f=s;X?.delete(f),(o&je)===0&&(o&ne&&(s.f|=je),ir(f,be))}else l&&((o&ve)!==0&&pe!==null&&pe.add(s),Me(s))}}function ge(e){if(typeof e!="object"||e===null||xt in e)return e;const t=Mn(e);if(t!==ci&&t!==di)return e;var n=new Map,r=li(e),i=k(0),s=Fe,o=l=>{if(Fe===s)return l();var f=m,a=Fe;z(null),$r(s);var h=l();return z(f),$r(a),h};return r&&n.set("length",k(e.length)),new Proxy(e,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&$i();var h=n.get(f);return h===void 0?h=o(()=>{var b=k(a.value);return n.set(f,b),b}):g(h,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const h=o(()=>k(L));n.set(f,h),st(i)}}else g(a,L),st(i);return!0},get(l,f,a){if(f===xt)return e;var h=n.get(f),b=f in l;if(h===void 0&&(!b||De(l,f)?.writable)&&(h=o(()=>{var v=ge(b?l[f]:L),S=k(v);return S}),n.set(f,h)),h!==void 0){var d=c(h);return d===L?void 0:d}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var h=n.get(f);h&&(a.value=c(h))}else if(a===void 0){var b=n.get(f),d=b?.v;if(b!==void 0&&d!==L)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return a},has(l,f){if(f===xt)return!0;var a=n.get(f),h=a!==void 0&&a.v!==L||Reflect.has(l,f);if(a!==void 0||w!==null&&(!h||De(l,f)?.writable)){a===void 0&&(a=o(()=>{var d=h?ge(l[f]):L,v=k(d);return v}),n.set(f,a));var b=c(a);if(b===L)return!1}return h},set(l,f,a,h){var b=n.get(f),d=f in l;if(r&&f==="length")for(var v=a;v<b.v;v+=1){var S=n.get(v+"");S!==void 0?g(S,L):v in l&&(S=o(()=>k(L)),n.set(v+"",S))}if(b===void 0)(!d||De(l,f)?.writable)&&(b=o(()=>k(void 0)),g(b,ge(a)),n.set(f,b));else{d=b.v!==L;var B=o(()=>ge(a));g(b,B)}var p=Reflect.getOwnPropertyDescriptor(l,f);if(p?.set&&p.set.call(h,a),!d){if(r&&typeof f=="string"){var Qe=n.get("length"),R=Number(f);Number.isInteger(R)&&R>=Qe.v&&g(Qe,R+1)}st(i)}return!0},ownKeys(l){c(i);var f=Reflect.ownKeys(l).filter(b=>{var d=n.get(b);return d===void 0||d.v!==L});for(var[a,h]of n)h.v!==L&&!(a in l)&&f.push(a);return f},setPrototypeOf(){ki()}})}var sr,or,lr,ar;function an(){if(sr===void 0){sr=window,or=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;lr=De(t,"firstChild").get,ar=De(t,"nextSibling").get,zn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),zn(n)&&(n.__t=void 0)}}function xe(e=""){return document.createTextNode(e)}function ze(e){return lr.call(e)}function ie(e){return ar.call(e)}function C(e,t){if(!$)return ze(e);var n=ze(P);if(n===null)n=P.appendChild(xe());else if(t&&n.nodeType!==nn){var r=xe();return n?.before(r),J(r),r}return J(n),n}function fr(e,t=!1){if(!$){var n=ze(e);return n instanceof Comment&&n.data===""?ie(n):n}if(t&&P?.nodeType!==nn){var r=xe();return P?.before(r),J(r),r}return P}function T(e,t=1,n=!1){let r=$?P:e;for(var i;t--;)i=r,r=ie(r);if(!$)return r;if(n&&r?.nodeType!==nn){var s=xe();return r===null?i?.after(s):r.before(s),J(s),s}return J(r),r}function Hi(e){e.textContent=""}function Gi(){return!1}let ur=!1;function cr(){ur||(ur=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Pt(e){var t=m,n=w;z(null),ee(null);try{return e()}finally{z(t),ee(n)}}function Ji(e,t,n,r=n){e.addEventListener(t,()=>Pt(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),cr()}function Ui(e){w===null&&(m===null&&xi(),gi()),Ie&&pi()}function Wi(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=w;r!==null&&(r.f&le)!==0&&(e|=le);var i={ctx:Z,deps:null,nodes_start:null,nodes_end:null,f:e|Y|ne,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{ft(i),i.f|=gt}catch(l){throw H(i),l}else t!==null&&Me(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Re)===0&&(s=s.first,(e&ve)!==0&&(e&Je)!==0&&s!==null&&(s.f|=Je)),s!==null&&(s.parent=r,r!==null&&Wi(s,r),m!==null&&(m.f&j)!==0&&(e&$e)===0)){var o=m;(o.effects??=[]).push(s)}return i}function St(){return m!==null&&!ue}function dr(e){const t=fe(Kt,null,!1);return I(t,M),t.teardown=e,t}function Zi(e){Ui();var t=w.f,n=!m&&(t&he)!==0&&(t>)===0;if(n){var r=Z;(r.e??=[]).push(e)}else return vr(e)}function vr(e){return fe(Xt|hi,e,!1)}function Xi(e){re.ensure();const t=fe($e|Re,e,!0);return()=>{H(t)}}function Ki(e){re.ensure();const t=fe($e|Re,e,!0);return(n={})=>new Promise(r=>{n.outro?ot(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function Qi(e){return fe(Xt,e,!1)}function es(e){return fe(tn|Re,e,!0)}function fn(e,t=0){return fe(Kt|t,e,!0)}function O(e,t=[],n=[],r=[]){Mi(r,t,n,i=>{fe(Kt,()=>e(...i.map(c)),!0)})}function un(e,t=0){var n=fe(ve|t,e,!0);return n}function me(e){return fe(he|Re,e,!0)}function hr(e){var t=e.teardown;if(t!==null){const n=Ie,r=m;mr(!0),z(null);try{t.call(null)}finally{mr(n),z(r)}}}function br(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Pt(()=>{i.abort(Ue)});var r=n.next;(n.f&$e)!==0?n.parent=null:H(n,t),n=r}}function ts(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&he)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&Qt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ns(e.nodes_start,e.nodes_end),n=!0),br(e,t&&!n),Ct(e,0),I(e,_e);var r=e.transitions;if(r!==null)for(const s of r)s.stop();hr(e);var i=e.parent;i!==null&&i.first!==null&&_r(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ns(e,t){for(;e!==null;){var n=e===t?null:ie(e);e.remove(),e=n}}function _r(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 ot(e,t,n=!0){var r=[];pr(e,r,!0),rs(r,()=>{n&&H(e),t&&t()})}function rs(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function pr(e,t,n){if((e.f&le)===0){if(e.f^=le,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Je)!==0||(r.f&he)!==0&&(e.f&ve)!==0;pr(r,t,s?n:!1),r=i}}}function is(e){gr(e,!0)}function gr(e,t){if((e.f&le)!==0){e.f^=le,(e.f&M)===0&&(I(e,Y),Me(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Je)!==0||(n.f&he)!==0;gr(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function xr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:ie(n);t.append(n),n=i}}let Te=!1;function At(e){Te=e}let Ie=!1;function mr(e){Ie=e}let m=null,ue=!1;function z(e){m=e}let w=null;function ee(e){w=e}let ye=null;function yr(e){m!==null&&(ye===null?ye=[e]:ye.push(e))}let V=null,U=0,te=null;function ss(e){te=e}let wr=1,lt=0,Fe=lt;function $r(e){Fe=e}function kr(){return++wr}function at(e){var t=e.f;if((t&Y)!==0)return!0;if(t&j&&(e.f&=~je),(t&be)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(at(s)&&nr(s),s.wv>e.wv)return!0}(t&ne)!==0&&X===null&&I(e,M)}return!1}function Er(e,t,n=!0){var r=e.reactions;if(r!==null&&!ye?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&j)!==0?Er(s,t,!1):t===s&&(n?I(s,Y):(s.f&M)!==0&&I(s,be),Me(s))}}function Tr(e){var t=V,n=U,r=te,i=m,s=ye,o=Z,l=ue,f=Fe,a=e.f;V=null,U=0,te=null,m=(a&(he|$e))===0?e:null,ye=null,Ze(e.ctx),ue=!1,Fe=++lt,e.ac!==null&&(Pt(()=>{e.ac.abort(Ue)}),e.ac=null);try{e.f|=en;var h=e.fn,b=h(),d=e.deps;if(V!==null){var v;if(Ct(e,U),d!==null&&U>0)for(d.length=U+V.length,v=0;v<V.length;v++)d[U+v]=V[v];else e.deps=d=V;if(Te&&St()&&(e.f&ne)!==0)for(v=U;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&U<d.length&&(Ct(e,U),d.length=U);if(Un()&&te!==null&&!ue&&d!==null&&(e.f&(j|be|Y))===0)for(v=0;v<te.length;v++)Er(te[v],e);return i!==null&&i!==e&&(lt++,te!==null&&(r===null?r=te:r.push(...te))),(e.f&ke)!==0&&(e.f^=ke),b}catch(S){return Zn(S)}finally{e.f^=en,V=t,U=n,te=r,m=i,ye=s,Ze(o),ue=l,Fe=f}}function os(e,t){let n=t.reactions;if(n!==null){var r=ai.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&j)!==0&&(V===null||!V.includes(t))&&(I(t,be),(t.f&ne)!==0&&(t.f^=ne,t.f&=~je),tr(t),Ct(t,0))}function Ct(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)os(e,n[r])}function ft(e){var t=e.f;if((t&_e)===0){I(e,M);var n=w,r=Te;w=e,Te=!0;try{(t&ve)!==0?ts(e):br(e),hr(e);var i=Tr(e);e.teardown=typeof i=="function"?i:null,e.wv=wr;var s;Zt&&Ci&&(e.f&Y)!==0&&e.deps}finally{Te=r,w=n}}}async function ls(){await Promise.resolve(),Q()}function c(e){var t=e.f,n=(t&j)!==0;if(m!==null&&!ue){var r=w!==null&&(w.f&_e)!==0;if(!r&&!ye?.includes(e)){var i=m.deps;if((m.f&en)!==0)e.rv<lt&&(e.rv=lt,V===null&&i!==null&&i[U]===e?U++:V===null?V=[e]:V.includes(e)||V.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:s.includes(m)||s.push(m)}}}if(Ie){if(Ee.has(e))return Ee.get(e);if(n){var o=e,l=o.v;return((o.f&M)===0&&o.reactions!==null||Sr(o))&&(l=on(o)),Ee.set(o,l),l}}else n&&!X?.has(e)&&(o=e,at(o)&&nr(o),Te&&St()&&(o.f&ne)===0&&Pr(o));if(X?.has(e))return X.get(e);if((e.f&ke)!==0)throw e.v;return e.v}function Pr(e){if(e.deps!==null){e.f^=ne;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&j)!==0&&(t.f&ne)===0&&Pr(t)}}function Sr(e){if(e.v===L)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ee.has(t)||(t.f&j)!==0&&Sr(t))return!0;return!1}function cn(e){var t=ue;try{return ue=!0,e()}finally{ue=t}}const as=-7169;function I(e,t){e.f=e.f&as|t}const Ar=new Set,dn=new Set;function fs(e,t,n,r={}){function i(s){if(r.capture||ut.call(t,s),!s.cancelBubble)return Pt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?nt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function W(e,t,n,r,i){var s={capture:r,passive:i},o=fs(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dr(()=>{t.removeEventListener(e,o,s)})}function us(e){for(var t=0;t<e.length;t++)Ar.add(e[t]);for(var n of dn)n(e)}let Cr=null;function ut(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Cr=e;var o=0,l=Cr===e&&e.__root;if(l){var f=i.indexOf(l);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(o=f)}if(s=i[o]||e.target,s!==t){_t(e,"currentTarget",{configurable:!0,get(){return s||n}});var h=m,b=w;z(null),ee(null);try{for(var d,v=[];s!==null;){var S=s.assignedSlot||s.parentNode||s.host||null;try{var B=s["__"+r];B!=null&&(!s.disabled||e.target===s)&&B.call(s,e)}catch(p){d?v.push(p):d=p}if(e.cancelBubble||S===t||S===null)break;s=S}if(d){for(let p of v)queueMicrotask(()=>{throw p});throw d}}finally{e.__root=t,delete e.currentTarget,z(h),ee(b)}}}function cs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Nt(e,t){var n=w;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ve(e,t){var n=(t&ii)!==0,r=(t&si)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return Nt(P,null),P;i===void 0&&(i=cs(s?e:"<!>"+e),n||(i=ze(i)));var o=r||or?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=ze(o),f=o.lastChild;Nt(l,f)}else Nt(o,o);return o}}function Pe(e,t){if($){var n=w;((n.f>)===0||n.nodes_end===null)&&(n.nodes_end=P),rn();return}e!==null&&e.before(t)}const ds=["touchstart","touchmove"];function vs(e){return ds.includes(e)}function Ot(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Nr(e,t){return Or(e,t)}function hs(e,t){an(),t.intro=t.intro??!1;const n=t.target,r=$,i=P;try{for(var s=ze(n);s&&(s.nodeType!==We||s.data!==jn);)s=ie(s);if(!s)throw Ge;ae(!0),J(s);const o=Or(e,{...t,anchor:s});return ae(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Ge&&console.warn("Failed to hydrate: ",o),t.recover===!1&&yi(),an(),Hi(n),ae(!1),Nr(e,t)}finally{ae(r),J(i)}}const Ke=new Map;function Or(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){an();var l=new Set,f=b=>{for(var d=0;d<b.length;d++){var v=b[d];if(!l.has(v)){l.add(v);var S=vs(v);t.addEventListener(v,ut,{passive:S});var B=Ke.get(v);B===void 0?(document.addEventListener(v,ut,{passive:S}),Ke.set(v,1)):Ke.set(v,B+1)}}};f(fi(Ar)),dn.add(f);var a=void 0,h=Ki(()=>{var b=n??t.appendChild(xe());return ji(b,{pending:()=>{}},d=>{if(s){Gn({});var v=Z;v.c=s}if(i&&(r.$$events=i),$&&Nt(d,null),a=e(d,r)||{},$&&(w.nodes_end=P,P===null||P.nodeType!==We||P.data!==Ln))throw mt(),Ge;s&&Jn()}),()=>{for(var d of l){t.removeEventListener(d,ut);var v=Ke.get(d);--v===0?(document.removeEventListener(d,ut),Ke.delete(d)):Ke.set(d,v)}dn.delete(f),b!==n&&b.parentNode?.removeChild(b)}});return vn.set(a,h),a}let vn=new WeakMap;function bs(e,t){const n=vn.get(e);return n?(vn.delete(e),n(t)):Promise.resolve()}class _s{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#a=!0;constructor(t,n=!0){this.anchor=t,this.#a=n}#s=()=>{var t=E;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)is(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(o);l&&(H(l.effect),this.#n.delete(o))}for(const[s,o]of this.#e){if(s===n||this.#r.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();xr(o,a),a.append(xe()),this.#n.set(s,{effect:o,fragment:a})}else H(o);this.#r.delete(s),this.#e.delete(s)};this.#a||!r?(this.#r.add(s),ot(o,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(H(i.effect),this.#n.delete(r))};ensure(t,n){var r=E,i=Gi();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),o=xe();s.append(o),this.#n.set(t,{effect:me(()=>n(o)),fragment:s})}else this.#e.set(t,me(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,f]of this.#e)l===t?r.skipped_effects.delete(f):r.skipped_effects.add(f);for(const[l,f]of this.#n)l===t?r.skipped_effects.delete(f.effect):r.skipped_effects.add(f.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else $&&(this.anchor=P),this.#s()}}function Dt(e,t,n=!1){$&&rn();var r=new _s(e),i=n?Je:0;function s(o,l){if($){const a=Si(e)===Wt;if(o===a){var f=qn();J(f),r.anchor=f,ae(!1),r.ensure(o,l),ae(!0);return}}r.ensure(o,l)}un(()=>{var o=!1;t((l,f=!0)=>{o=!0,s(f,l)}),o||s(!1,null)},i)}function ps(e,t){let n=null,r=$;var i;if($){n=P;for(var s=ze(document.head);s!==null&&(s.nodeType!==We||s.data!==e);)s=ie(s);if(s===null)ae(!1);else{var o=ie(s);s.remove(),J(o)}}$||(i=document.head.appendChild(xe()));try{un(()=>t(i),Qt)}finally{r&&(ae(!0),J(n))}}function gs(e,t){Qi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function xs(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function ms(e,t){return e==null?null:String(e)}function D(e,t,n,r,i,s){var o=e.__className;if($||o!==n||o===void 0){var l=xs(n,r);(!$||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}function Se(e,t,n,r){var i=e.__style;if($||i!==t){var s=ms(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const ys=Symbol("is custom element"),ws=Symbol("is html");function Dr(e){if($){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;ct(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;ct(e,"checked",null),e.checked=i}}};e.__on_r=n,nt(n),cr()}}function ct(e,t,n,r){var i=$s(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[bi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Rr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function y(e,t,n){var r=m,i=w;let s=$;$&&ae(!1),z(null),ee(null);try{t!=="style"&&(hn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Rr(e).includes(t):n&&typeof n=="object")?e[t]=n:ct(e,t,n==null?n:String(n))}finally{z(r),ee(i),s&&ae(!0)}}function $s(e){return e.__attributes??={[ys]:e.nodeName.includes("-"),[ws]:e.namespaceURI===oi}}var hn=new Map;function Rr(e){var t=e.getAttribute("is")||e.nodeName,n=hn.get(t);if(n)return n;hn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ui(i);for(var o in r)r[o].set&&n.push(o);i=Mn(i)}return n}function jr(e,t,n=t){var r=new WeakSet;Ji(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=bn(e)?_n(s):s,n(s),E!==null&&r.add(E),await ls(),s!==(s=t())){var o=e.selectionStart,l=e.selectionEnd,f=e.value.length;if(e.value=s??"",l!==null){var a=e.value.length;o===l&&l===f&&a>f?(e.selectionStart=a,e.selectionEnd=a):(e.selectionStart=o,e.selectionEnd=Math.min(l,a))}}}),($&&e.defaultValue!==e.value||cn(t)==null&&e.value)&&(n(bn(e)?_n(e.value):e.value),E!==null&&r.add(E)),fn(()=>{var i=t();if(e===document.activeElement){var s=wt??E;if(r.has(s))return}bn(e)&&i===_n(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function bn(e){var t=e.type;return t==="number"||t==="range"}function _n(e){return e===""?null:+e}let Rt=!1;function ks(e){var t=Rt;try{return Rt=!1,[e(),Rt]}finally{Rt=t}}function ce(e,t,n,r){var i=(n&ni)!==0,s=(n&ri)!==0,o=r,l=!0,f=()=>(l&&(l=!1,o=s?cn(r):r),o),a;if(i){var h=xt in e||Vn in e;a=De(e,t)?.set??(h&&t in e?R=>e[t]=R:void 0)}var b,d=!1;i?[b,d]=ks(()=>e[t]):b=e[t],b===void 0&&r!==void 0&&(b=f(),a&&(wi(),a(b)));var v;if(v=()=>{var R=e[t];return R===void 0?f():(l=!0,R)},(n&ti)===0)return v;if(a){var S=e.$$legacy;return(function(R,et){return arguments.length>0?((!et||S||d)&&a(et?v():R),R):v()})}var B=!1,p=((n&ei)!==0?Et:Vi)(()=>(B=!1,v()));i&&c(p);var Qe=w;return(function(R,et){if(arguments.length>0){const G=et?c(p):i?ge(R):R;return g(p,G),B=!0,o!==void 0&&(o=G),R}return Ie&&B||(Qe.f&_e)!==0?p.v:c(p)})}function Es(e){return new Ts(e)}class Ts{#t;#e;constructor(t){var n=new Map,r=(s,o)=>{var l=qi(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return c(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Vn?!0:(c(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return g(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#e=(t.hydrate?hs:Nr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Q(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||_t(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{bs(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Lr;typeof HTMLElement=="function"&&(Lr=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 i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Pe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ps(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]=jt(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=Es({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Xi(()=>{fn(()=>{this.$$r=!0;for(const r of bt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=jt(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]=jt(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 bt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function jt(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 Ps(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ss(e,t,n,r,i,s){let o=class extends Lr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return bt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return bt(t).forEach(l=>{_t(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=jt(l,f,t),this.$$d[l]=f;var a=this.$$c;if(a){var h=De(a,l)?.get;h?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{_t(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const Lt={version:"0.65.22"};var Be={},Mr;function As(){if(Mr)return Be;Mr=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.LanguageTranslator=void 0,Be.getChildStyleToPass=e,Be.addComponent=t;function e(r,i){var s,o,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||o===void 0)&&o.length))for(var f=function(d){var v=i?.filter(function(S){return S.name===d&&S.defaultValue!==r[d]});v&&(l+="".concat(d,":").concat(r[d],";"))},a=0,h=Object.keys(r);a<h.length;a++){var b=h[a];f(b)}}catch(d){console.error("error getting child style to pass",d)}finally{return l}}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 o=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(o)}document.head.appendChild(l)}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,o){return r.formatDate(i,s,o||this.lang)},r.getDefaultLang=function(){var i,s,o,l="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,o){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((l=s[o])===null||l===void 0)&&l[i]))return s[o][i];var f="",a=r.getDefaultLang();if(!o||a!==o){var h=s?.[a];h?.[i]&&(f=h[i])}return f},r.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return l.format(i)},r})();return Be.LanguageTranslator=n,Be}var Mt=As(),Cs=Ve('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-eex92x"/>'),Ns=Ve("<hb-table></hb-table>",2),Os=Ve("<hb-pad-joystick></hb-pad-joystick>",2),Ds=Ve("<hb-pad-joystick></hb-pad-joystick>",2),Rs=Ve('<div id="controller" class="svelte-eex92x"><div id="panel" class="svelte-eex92x"><div id="joystick" class="area svelte-eex92x"><!></div> <div id="buttons" class="area svelte-eex92x"><div class="btn-group svelte-eex92x" style="margin-right:10px"><button class="btn btn-sm btn-light svelte-eex92x" aria-label="Zoom In"><i class="bi bi-zoom-in svelte-eex92x"></i></button> <button class="btn btn-sm btn-light svelte-eex92x" aria-label="Zoom Out"><i class="bi bi-zoom-out svelte-eex92x"></i></button></div> <button aria-label="Go to home"><i class="bi bi-house-door-fill svelte-eex92x"></i></button> <button aria-label="select zone"><i class="bi bi-square svelte-eex92x"></i></button></div> <div id="speed" class="area svelte-eex92x"><span class="slider_label svelte-eex92x">speed:</span> <input class="range svelte-eex92x" type="range"/></div> <div id="precision" class="area svelte-eex92x"><span class="slider_label svelte-eex92x">precision:</span> <input class="range svelte-eex92x" type="range"/></div> <div id="presets_view" class="area svelte-eex92x"><button aria-label="showGrid"><i class="bi bi-grid-3x3 svelte-eex92x"></i></button> <button aria-label="Toggle joystick mode"><i class="bi bi-joystick svelte-eex92x"></i></button> <button style="float:right;margin-right:5px;" class="btn btn-sm btn-light svelte-eex92x" aria-label="Enter fullscreen mode"><i class="bi bi-arrows-fullscreen svelte-eex92x"></i></button></div> <div id="presets_select" class="area svelte-eex92x"><button class="btn btn-sm btn-light svelte-eex92x" aria-label="Add Scene to Preset"><i class="bi bi-plus-circle-fill svelte-eex92x"></i></button> <button style="width:130px!important;display:inline-block!important" aria-label="Open Presets Modal"> <i style="float:right" class="bi bi-arrow-down-up svelte-eex92x"></i></button></div> <div id="presets_buttons" class="area svelte-eex92x"><button><i></i></button> <button><i></i></button> <button class="btn btn-sm btn-light svelte-eex92x" aria-label="Open settings"><i class="bi bi-sliders svelte-eex92x"></i> <span class="timecell svelte-eex92x"><span class="svelte-eex92x"> </span></span></button></div></div></div>'),js=Ve('<!> <div id="opener" class="svelte-eex92x"><i></i></div>',1),Ls=Ve('<hb-dialog><div slot="body-content" class="svelte-eex92x"><!></div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x">Are You sure to add this scene to the preset?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x">Are You sure to go To Home?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x"> </div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x"> </div></hb-dialog> <div id="container" class="svelte-eex92x"><hb-player-live></hb-player-live> <div id="area_selector" class="svelte-eex92x"></div> <div id="grid" class="svelte-eex92x"><table id="grid_table" class="svelte-eex92x"><tbody class="svelte-eex92x"><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr></tbody></table></div> <!></div>',3);const Ms={hash:"svelte-eex92x",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");
|
|
1
|
+
(function(On){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Xr=1,Kr=4,Qr=8,ei=16,ti=1,ni=2,Dn="[",Ut="[!",Rn="]",Ge={},L=Symbol(),ri="http://www.w3.org/1999/xhtml",Jt=!1;var ii=Array.isArray,si=Array.prototype.indexOf,oi=Array.from,vt=Object.keys,ht=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,li=Object.getOwnPropertyDescriptors,ai=Object.prototype,fi=Array.prototype,jn=Object.getPrototypeOf,Ln=Object.isExtensible;function ui(e){for(var t=0;t<e.length;t++)e[t]()}function Mn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const j=2,Wt=4,Zt=8,de=16,ve=32,ye=64,bt=128,ne=512,M=1024,Y=2048,he=4096,le=8192,be=16384,_t=32768,Ue=65536,zn=1<<17,Xt=1<<18,Ne=1<<19,ci=1<<20,Oe=32768,Kt=1<<21,Qt=1<<22,we=1<<23,pt=Symbol("$state"),In=Symbol("legacy props"),di=Symbol(""),Je=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},en=3,We=8;function vi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function hi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function bi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _i(e){throw new Error("https://svelte.dev/e/effect_orphan")}function pi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function gi(){throw new Error("https://svelte.dev/e/hydration_failed")}function xi(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function mi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function yi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function wi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function $i(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function gt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ki(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function ae(e){$=e}let P;function G(e){if(e===null)throw gt(),Ge;return P=e}function tn(){return G(ie(P))}function S(e){if($){if(ie(P)!==null)throw gt(),Ge;P=e}}function Fn(e=1){if($){for(var t=e,n=P;t--;)n=ie(n);P=n}}function Vn(e=!0){for(var t=0,n=P;;){if(n.nodeType===We){var r=n.data;if(r===Rn){if(t===0)return n;t-=1}else(r===Dn||r===Ut)&&(t+=1)}var i=ie(n);e&&n.remove(),n=i}}function Ei(e){if(!e||e.nodeType!==We)throw gt(),Ge;return e.data}function Bn(e){return e===this.v}function Ti(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function qn(e){return!Ti(e,this.v)}let Pi=!1,Z=null;function Ze(e){Z=e}function Yn(e,t=!1,n){Z={p:Z,i:!1,c:null,e:null,s:e,x:null,l:null}}function Hn(e){var t=Z,n=t.e;if(n!==null){t.e=null;for(var r of n)cr(r)}return e!==void 0&&(t.x=e),t.i=!0,Z=t.p,e??{}}function Gn(){return!0}let De=[];function Un(){var e=De;De=[],ui(e)}function et(e){if(De.length===0&&!tt){var t=De;queueMicrotask(()=>{t===De&&Un()})}De.push(e)}function Ai(){for(;De.length>0;)Un()}function Jn(e){var t=w;if(t===null)return m.f|=we,e;if((t.f&_t)===0){if((t.f&bt)===0)throw e;t.b.error(e)}else Xe(e,t)}function Xe(e,t){for(;t!==null;){if((t.f&bt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const xt=new Set;let k=null,mt=null,X=null,K=[],yt=null,nn=!1,tt=!1;class re{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#a=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){K=[],mt=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(mt=this,k=null,Zn(n.render_effects),Zn(n.effects),mt=null,this.#a?.resolve()),X=null}#o(t,n){t.f^=M;for(var r=t.first;r!==null;){var i=r.f,s=(i&(ve|ye))!==0,o=s&&(i&M)!==0,l=o||(i&le)!==0||this.skipped_effects.has(r);if((r.f&bt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=M:(i&Wt)!==0?n.effects.push(r):ot(r)&&((r.f&de)!==0&&n.block_effects.push(r),lt(r));var f=r.first;if(f!==null){r=f;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&Y)!==0?this.#s:this.#i).push(n),this.#f(n.deps),I(n,M)}#f(t){if(t!==null)for(const n of t)(n.f&j)===0||(n.f&Oe)===0||(n.f^=Oe,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&we)===0&&(this.current.set(t,t.v),X?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k===this&&(k=null,X=null)}flush(){if(this.activate(),K.length>0){if(Wn(),k!==null&&k!==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(xt.size>1){this.previous.clear();var t=X,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of xt){if(s===this){n=!1;continue}const o=[];for(const[f,a]of this.current){if(s.current.has(f))if(n&&a!==s.current.get(f))s.current.set(f,a);else continue;o.push(f)}if(o.length===0)continue;const l=[...s.current.keys()].filter(f=>!this.current.has(f));if(l.length>0){var i=K;K=[];const f=new Set,a=new Map;for(const h of o)Xn(h,l,f,a);if(K.length>0){k=s,s.apply();for(const h of K)s.#o(h,r);s.deactivate()}K=i}}k=null,X=t}this.committed=!0,xt.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)I(t,Y),Re(t);for(const t of this.#i)I(t,he),Re(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=Mn()).promise}static ensure(){if(k===null){const t=k=new re;xt.add(k),tt||re.enqueue(()=>{k===t&&t.flush()})}return k}static enqueue(t){et(t)}apply(){}}function Q(e){var t=tt;tt=!0;try{for(var n;;){if(Ai(),K.length===0&&(k?.flush(),K.length===0))return yt=null,n;Wn()}}finally{tt=t}}function Wn(){var e=Ee;nn=!0;var t=null;try{var n=0;for(Pt(!0);K.length>0;){var r=re.ensure();if(n++>1e3){var i,s;Si()}r.process(K),$e.clear()}}finally{nn=!1,Pt(e),yt=null}}function Si(){try{pi()}catch(e){Xe(e,yt)}}let _e=null;function Zn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(be|le))===0&&ot(r)&&(_e=new Set,lt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?hr(r):r.fn=null),_e?.size>0)){$e.clear();for(const i of _e){if((i.f&(be|le))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)_e.has(o)&&(_e.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&(be|le))===0&<(f)}}_e.clear()}}_e=null}}function Xn(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&j)!==0?Xn(i,t,n,r):(s&(Qt|de))!==0&&(s&Y)===0&&Kn(i,t,r)&&(I(i,Y),Re(i))}}function Kn(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(t.includes(i))return!0;if((i.f&j)!==0&&Kn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Re(e){for(var t=yt=e;t.parent!==null;){t=t.parent;var n=t.f;if(nn&&t===w&&(n&de)!==0&&(n&Xt)===0)return;if((n&(ye|ve))!==0){if((n&M)===0)return;t.f^=M}}K.push(t)}function Ci(e){let t=0,n=nt(0),r;return()=>{Tt()&&(c(n),ln(()=>(t===0&&(r=fn(()=>e(()=>rt(n)))),t+=1,()=>{et(()=>{t-=1,t===0&&(r?.(),r=void 0,rt(n))})})))}}var Ni=Ue|Ne|bt;function Oi(e,t,n){new Di(e,t,n)}class Di{parent;#t=!1;#e;#n=$?P:null;#r;#a;#s;#i=null;#o=null;#l=null;#f=null;#u=null;#c=0;#d=0;#h=!1;#v=null;#x=Ci(()=>(this.#v=nt(this.#c),()=>{this.#v=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#a=r,this.parent=w.b,this.#t=!!this.#r.pending,this.#s=an(()=>{if(w.b=this,$){const s=this.#n;tn(),s.nodeType===We&&s.data===Ut?this.#y():this.#m()}else{var i=this.#p();try{this.#i=ge(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#_():this.#t=!1}return()=>{this.#u?.remove()}},Ni),$&&(this.#e=P)}#m(){try{this.#i=ge(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#o=ge(()=>t(this.#e)),re.enqueue(()=>{var n=this.#p();this.#i=this.#b(()=>(re.ensure(),ge(()=>this.#a(n)))),this.#d>0?this.#_():(it(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=pe(),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}#b(t){var n=w,r=m,i=Z;ee(this.#s),z(this.#s),Ze(this.#s.ctx);try{return t()}catch(s){return Jn(s),null}finally{ee(n),z(r),Ze(i)}}#_(){const t=this.#r.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),pr(this.#i,this.#f)),this.#o===null&&(this.#o=ge(()=>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.#o&&it(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#v&&kt(this.#v,this.#c)}get_effect_pending(){return this.#x(),c(this.#v)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#h||!n&&!r)throw t;this.#i&&(H(this.#i),this.#i=null),this.#o&&(H(this.#o),this.#o=null),this.#l&&(H(this.#l),this.#l=null),$&&(G(this.#n),Fn(),G(Vn()));var i=!1,s=!1;const o=()=>{if(i){ki();return}i=!0,s&&$i(),re.ensure(),this.#c=0,this.#l!==null&&it(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#b(()=>(this.#h=!1,ge(()=>this.#a(this.#e)))),this.#d>0?this.#_():this.#t=!1};var l=m;try{z(null),s=!0,n?.(t,o),s=!1}catch(f){Xe(f,this.#s&&this.#s.parent)}finally{z(l)}r&&et(()=>{this.#l=this.#b(()=>{re.ensure(),this.#h=!0;try{return ge(()=>{r(this.#e,()=>t,()=>o)})}catch(f){return Xe(f,this.#s.parent),null}finally{this.#h=!1}})})}}function Ri(e,t,n,r){const i=$t;if(n.length===0&&e.length===0){r(t.map(i));return}var s=k,o=w,l=ji();function f(){Promise.all(n.map(a=>Li(a))).then(a=>{l();try{r([...t.map(i),...a])}catch(h){(o.f&be)===0&&Xe(h,o)}s?.deactivate(),wt()}).catch(a=>{Xe(a,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return f()}finally{s?.deactivate(),wt()}}):f()}function ji(){var e=w,t=m,n=Z,r=k;return function(s=!0){ee(e),z(t),Ze(n),s&&r?.activate()}}function wt(){ee(null),z(null),Ze(null)}function $t(e){var t=j|Y,n=m!==null&&(m.f&j)!==0?m:null;return w!==null&&(w.f|=Ne),{ctx:Z,deps:null,effects:null,equals:Bn,f:t,fn:e,reactions:null,rv:0,v:L,wv:0,parent:n??w,ac:null}}function Li(e,t){let n=w;n===null&&vi();var r=n.b,i=void 0,s=nt(L),o=!m,l=new Map;return Xi(()=>{var f=Mn();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{a===k&&a.committed&&a.deactivate(),wt()})}catch(d){f.reject(d),wt()}var a=k;if(o){var h=!r.is_pending();r.update_pending_count(1),a.increment(h),l.get(a)?.reject(Je),l.delete(a),l.set(a,f)}const b=(d,v=void 0)=>{if(a.activate(),v)v!==Je&&(s.f|=we,kt(s,v));else{(s.f&we)!==0&&(s.f^=we),kt(s,d);for(const[A,q]of l){if(l.delete(A),A===a)break;q.reject(Je)}}o&&(r.update_pending_count(-1),a.decrement(h))};f.promise.then(b,d=>b(null,d||"unknown"))}),ur(()=>{for(const f of l.values())f.reject(Je)}),new Promise(f=>{function a(h){function b(){h===i?f(s):a(i)}h.then(b,b)}a(i)})}function Mi(e){const t=$t(e);return xr(t),t}function zi(e){const t=$t(e);return t.equals=qn,t}function Qn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Ii(e){for(var t=e.parent;t!==null;){if((t.f&j)===0)return(t.f&be)===0?t:null;t=t.parent}return null}function rn(e){var t,n=w;ee(Ii(e));try{e.f&=~Oe,Qn(e),t=kr(e)}finally{ee(n)}return t}function er(e){var t=rn(e);if(e.equals(t)||(k?.is_fork||(e.v=t),e.wv=wr()),!Le)if(X!==null)Tt()&&X.set(e,t);else{var n=(e.f&ne)===0?he:M;I(e,n)}}let sn=new Set;const $e=new Map;let tr=!1;function nt(e,t){var n={f:0,v:e,reactions:null,equals:Bn,rv:0,wv:0};return n}function N(e,t){const n=nt(e);return xr(n),n}function Fi(e,t=!1,n=!0){const r=nt(e);return t||(r.equals=qn),r}function g(e,t,n=!1){m!==null&&(!ue||(m.f&zn)!==0)&&Gn()&&(m.f&(j|de|Qt|zn))!==0&&!xe?.includes(e)&&wi();let r=n?ke(t):t;return kt(e,r)}function kt(e,t){if(!e.equals(t)){var n=e.v;Le?$e.set(e,t):$e.set(e,n),e.v=t;var r=re.ensure();r.capture(e,n),(e.f&j)!==0&&((e.f&Y)!==0&&rn(e),I(e,(e.f&ne)!==0?M:he)),e.wv=wr(),nr(e,Y),w!==null&&(w.f&M)!==0&&(w.f&(ve|ye))===0&&(te===null?ns([e]):te.push(e)),!r.is_fork&&sn.size>0&&!tr&&Vi()}return t}function Vi(){tr=!1;var e=Ee;Pt(!0);const t=Array.from(sn);try{for(const n of t)(n.f&M)!==0&&I(n,he),ot(n)&<(n)}finally{Pt(e)}sn.clear()}function rt(e){g(e,e.v+1)}function nr(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,l=(o&Y)===0;if(l&&I(s,t),(o&j)!==0){var f=s;X?.delete(f),(o&Oe)===0&&(o&ne&&(s.f|=Oe),nr(f,he))}else l&&((o&de)!==0&&_e!==null&&_e.add(s),Re(s))}}function ke(e){if(typeof e!="object"||e===null||pt in e)return e;const t=jn(e);if(t!==ai&&t!==fi)return e;var n=new Map,r=ii(e),i=N(0),s=Me,o=l=>{if(Me===s)return l();var f=m,a=Me;z(null),yr(s);var h=l();return z(f),yr(a),h};return r&&n.set("length",N(e.length)),new Proxy(e,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&mi();var h=n.get(f);return h===void 0?h=o(()=>{var b=N(a.value);return n.set(f,b),b}):g(h,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const h=o(()=>N(L));n.set(f,h),rt(i)}}else g(a,L),rt(i);return!0},get(l,f,a){if(f===pt)return e;var h=n.get(f),b=f in l;if(h===void 0&&(!b||Ce(l,f)?.writable)&&(h=o(()=>{var v=ke(b?l[f]:L),A=N(v);return A}),n.set(f,h)),h!==void 0){var d=c(h);return d===L?void 0:d}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var h=n.get(f);h&&(a.value=c(h))}else if(a===void 0){var b=n.get(f),d=b?.v;if(b!==void 0&&d!==L)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return a},has(l,f){if(f===pt)return!0;var a=n.get(f),h=a!==void 0&&a.v!==L||Reflect.has(l,f);if(a!==void 0||w!==null&&(!h||Ce(l,f)?.writable)){a===void 0&&(a=o(()=>{var d=h?ke(l[f]):L,v=N(d);return v}),n.set(f,a));var b=c(a);if(b===L)return!1}return h},set(l,f,a,h){var b=n.get(f),d=f in l;if(r&&f==="length")for(var v=a;v<b.v;v+=1){var A=n.get(v+"");A!==void 0?g(A,L):v in l&&(A=o(()=>N(L)),n.set(v+"",A))}if(b===void 0)(!d||Ce(l,f)?.writable)&&(b=o(()=>N(void 0)),g(b,ke(a)),n.set(f,b));else{d=b.v!==L;var q=o(()=>ke(a));g(b,q)}var p=Reflect.getOwnPropertyDescriptor(l,f);if(p?.set&&p.set.call(h,a),!d){if(r&&typeof f=="string"){var F=n.get("length"),T=Number(f);Number.isInteger(T)&&T>=F.v&&g(F,T+1)}rt(i)}return!0},ownKeys(l){c(i);var f=Reflect.ownKeys(l).filter(b=>{var d=n.get(b);return d===void 0||d.v!==L});for(var[a,h]of n)h.v!==L&&!(a in l)&&f.push(a);return f},setPrototypeOf(){yi()}})}var rr,ir,sr,or;function on(){if(rr===void 0){rr=window,ir=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;sr=Ce(t,"firstChild").get,or=Ce(t,"nextSibling").get,Ln(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ln(n)&&(n.__t=void 0)}}function pe(e=""){return document.createTextNode(e)}function je(e){return sr.call(e)}function ie(e){return or.call(e)}function C(e,t){if(!$)return je(e);var n=je(P);if(n===null)n=P.appendChild(pe());else if(t&&n.nodeType!==en){var r=pe();return n?.before(r),G(r),r}return G(n),n}function lr(e,t=!1){if(!$){var n=je(e);return n instanceof Comment&&n.data===""?ie(n):n}if(t&&P?.nodeType!==en){var r=pe();return P?.before(r),G(r),r}return P}function E(e,t=1,n=!1){let r=$?P:e;for(var i;t--;)i=r,r=ie(r);if(!$)return r;if(n&&r?.nodeType!==en){var s=pe();return r===null?i?.after(s):r.before(s),G(s),s}return G(r),r}function Bi(e){e.textContent=""}function qi(){return!1}let ar=!1;function fr(){ar||(ar=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Et(e){var t=m,n=w;z(null),ee(null);try{return e()}finally{z(t),ee(n)}}function Yi(e,t,n,r=n){e.addEventListener(t,()=>Et(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),fr()}function Hi(e){w===null&&(m===null&&_i(),bi()),Le&&hi()}function Gi(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=w;r!==null&&(r.f&le)!==0&&(e|=le);var i={ctx:Z,deps:null,nodes_start:null,nodes_end:null,f:e|Y|ne,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{lt(i),i.f|=_t}catch(l){throw H(i),l}else t!==null&&Re(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Ne)===0&&(s=s.first,(e&de)!==0&&(e&Ue)!==0&&s!==null&&(s.f|=Ue)),s!==null&&(s.parent=r,r!==null&&Gi(s,r),m!==null&&(m.f&j)!==0&&(e&ye)===0)){var o=m;(o.effects??=[]).push(s)}return i}function Tt(){return m!==null&&!ue}function ur(e){const t=fe(Zt,null,!1);return I(t,M),t.teardown=e,t}function Ui(e){Hi();var t=w.f,n=!m&&(t&ve)!==0&&(t&_t)===0;if(n){var r=Z;(r.e??=[]).push(e)}else return cr(e)}function cr(e){return fe(Wt|ci,e,!1)}function Ji(e){re.ensure();const t=fe(ye|Ne,e,!0);return()=>{H(t)}}function Wi(e){re.ensure();const t=fe(ye|Ne,e,!0);return(n={})=>new Promise(r=>{n.outro?it(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function Zi(e){return fe(Wt,e,!1)}function Xi(e){return fe(Qt|Ne,e,!0)}function ln(e,t=0){return fe(Zt|t,e,!0)}function D(e,t=[],n=[],r=[]){Ri(r,t,n,i=>{fe(Zt,()=>e(...i.map(c)),!0)})}function an(e,t=0){var n=fe(de|t,e,!0);return n}function ge(e){return fe(ve|Ne,e,!0)}function dr(e){var t=e.teardown;if(t!==null){const n=Le,r=m;gr(!0),z(null);try{t.call(null)}finally{gr(n),z(r)}}}function vr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Et(()=>{i.abort(Je)});var r=n.next;(n.f&ye)!==0?n.parent=null:H(n,t),n=r}}function Ki(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ve)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&Xt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Qi(e.nodes_start,e.nodes_end),n=!0),vr(e,t&&!n),At(e,0),I(e,be);var r=e.transitions;if(r!==null)for(const s of r)s.stop();dr(e);var i=e.parent;i!==null&&i.first!==null&&hr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Qi(e,t){for(;e!==null;){var n=e===t?null:ie(e);e.remove(),e=n}}function hr(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 it(e,t,n=!0){var r=[];br(e,r,!0),es(r,()=>{n&&H(e),t&&t()})}function es(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function br(e,t,n){if((e.f&le)===0){if(e.f^=le,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Ue)!==0||(r.f&ve)!==0&&(e.f&de)!==0;br(r,t,s?n:!1),r=i}}}function ts(e){_r(e,!0)}function _r(e,t){if((e.f&le)!==0){e.f^=le,(e.f&M)===0&&(I(e,Y),Re(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ue)!==0||(n.f&ve)!==0;_r(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function pr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:ie(n);t.append(n),n=i}}let Ee=!1;function Pt(e){Ee=e}let Le=!1;function gr(e){Le=e}let m=null,ue=!1;function z(e){m=e}let w=null;function ee(e){w=e}let xe=null;function xr(e){m!==null&&(xe===null?xe=[e]:xe.push(e))}let B=null,U=0,te=null;function ns(e){te=e}let mr=1,st=0,Me=st;function yr(e){Me=e}function wr(){return++mr}function ot(e){var t=e.f;if((t&Y)!==0)return!0;if(t&j&&(e.f&=~Oe),(t&he)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(ot(s)&&er(s),s.wv>e.wv)return!0}(t&ne)!==0&&X===null&&I(e,M)}return!1}function $r(e,t,n=!0){var r=e.reactions;if(r!==null&&!xe?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&j)!==0?$r(s,t,!1):t===s&&(n?I(s,Y):(s.f&M)!==0&&I(s,he),Re(s))}}function kr(e){var t=B,n=U,r=te,i=m,s=xe,o=Z,l=ue,f=Me,a=e.f;B=null,U=0,te=null,m=(a&(ve|ye))===0?e:null,xe=null,Ze(e.ctx),ue=!1,Me=++st,e.ac!==null&&(Et(()=>{e.ac.abort(Je)}),e.ac=null);try{e.f|=Kt;var h=e.fn,b=h(),d=e.deps;if(B!==null){var v;if(At(e,U),d!==null&&U>0)for(d.length=U+B.length,v=0;v<B.length;v++)d[U+v]=B[v];else e.deps=d=B;if(Ee&&Tt()&&(e.f&ne)!==0)for(v=U;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&U<d.length&&(At(e,U),d.length=U);if(Gn()&&te!==null&&!ue&&d!==null&&(e.f&(j|he|Y))===0)for(v=0;v<te.length;v++)$r(te[v],e);return i!==null&&i!==e&&(st++,te!==null&&(r===null?r=te:r.push(...te))),(e.f&we)!==0&&(e.f^=we),b}catch(A){return Jn(A)}finally{e.f^=Kt,B=t,U=n,te=r,m=i,xe=s,Ze(o),ue=l,Me=f}}function rs(e,t){let n=t.reactions;if(n!==null){var r=si.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&j)!==0&&(B===null||!B.includes(t))&&(I(t,he),(t.f&ne)!==0&&(t.f^=ne,t.f&=~Oe),Qn(t),At(t,0))}function At(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)rs(e,n[r])}function lt(e){var t=e.f;if((t&be)===0){I(e,M);var n=w,r=Ee;w=e,Ee=!0;try{(t&de)!==0?Ki(e):vr(e),dr(e);var i=kr(e);e.teardown=typeof i=="function"?i:null,e.wv=mr;var s;Jt&&Pi&&(e.f&Y)!==0&&e.deps}finally{Ee=r,w=n}}}async function is(){await Promise.resolve(),Q()}function c(e){var t=e.f,n=(t&j)!==0;if(m!==null&&!ue){var r=w!==null&&(w.f&be)!==0;if(!r&&!xe?.includes(e)){var i=m.deps;if((m.f&Kt)!==0)e.rv<st&&(e.rv=st,B===null&&i!==null&&i[U]===e?U++:B===null?B=[e]:B.includes(e)||B.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:s.includes(m)||s.push(m)}}}if(Le){if($e.has(e))return $e.get(e);if(n){var o=e,l=o.v;return((o.f&M)===0&&o.reactions!==null||Tr(o))&&(l=rn(o)),$e.set(o,l),l}}else n&&!X?.has(e)&&(o=e,ot(o)&&er(o),Ee&&Tt()&&(o.f&ne)===0&&Er(o));if(X?.has(e))return X.get(e);if((e.f&we)!==0)throw e.v;return e.v}function Er(e){if(e.deps!==null){e.f^=ne;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&j)!==0&&(t.f&ne)===0&&Er(t)}}function Tr(e){if(e.v===L)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($e.has(t)||(t.f&j)!==0&&Tr(t))return!0;return!1}function fn(e){var t=ue;try{return ue=!0,e()}finally{ue=t}}const ss=-7169;function I(e,t){e.f=e.f&ss|t}const Pr=new Set,un=new Set;function os(e,t,n,r={}){function i(s){if(r.capture||at.call(t,s),!s.cancelBubble)return Et(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?et(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function J(e,t,n,r,i){var s={capture:r,passive:i},o=os(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ur(()=>{t.removeEventListener(e,o,s)})}function ls(e){for(var t=0;t<e.length;t++)Pr.add(e[t]);for(var n of un)n(e)}let Ar=null;function at(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Ar=e;var o=0,l=Ar===e&&e.__root;if(l){var f=i.indexOf(l);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(o=f)}if(s=i[o]||e.target,s!==t){ht(e,"currentTarget",{configurable:!0,get(){return s||n}});var h=m,b=w;z(null),ee(null);try{for(var d,v=[];s!==null;){var A=s.assignedSlot||s.parentNode||s.host||null;try{var q=s["__"+r];q!=null&&(!s.disabled||e.target===s)&&q.call(s,e)}catch(p){d?v.push(p):d=p}if(e.cancelBubble||A===t||A===null)break;s=A}if(d){for(let p of v)queueMicrotask(()=>{throw p});throw d}}finally{e.__root=t,delete e.currentTarget,z(h),ee(b)}}}function as(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function St(e,t){var n=w;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ze(e,t){var n=(t&ti)!==0,r=(t&ni)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return St(P,null),P;i===void 0&&(i=as(s?e:"<!>"+e),n||(i=je(i)));var o=r||ir?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=je(o),f=o.lastChild;St(l,f)}else St(o,o);return o}}function Te(e,t){if($){var n=w;((n.f&_t)===0||n.nodes_end===null)&&(n.nodes_end=P),tn();return}e!==null&&e.before(t)}const fs=["touchstart","touchmove"];function us(e){return fs.includes(e)}function Ct(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Sr(e,t){return Cr(e,t)}function cs(e,t){on(),t.intro=t.intro??!1;const n=t.target,r=$,i=P;try{for(var s=je(n);s&&(s.nodeType!==We||s.data!==Dn);)s=ie(s);if(!s)throw Ge;ae(!0),G(s);const o=Cr(e,{...t,anchor:s});return ae(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Ge&&console.warn("Failed to hydrate: ",o),t.recover===!1&&gi(),on(),Bi(n),ae(!1),Sr(e,t)}finally{ae(r),G(i)}}const Ke=new Map;function Cr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0}){on();var l=new Set,f=b=>{for(var d=0;d<b.length;d++){var v=b[d];if(!l.has(v)){l.add(v);var A=us(v);t.addEventListener(v,at,{passive:A});var q=Ke.get(v);q===void 0?(document.addEventListener(v,at,{passive:A}),Ke.set(v,1)):Ke.set(v,q+1)}}};f(oi(Pr)),un.add(f);var a=void 0,h=Wi(()=>{var b=n??t.appendChild(pe());return Oi(b,{pending:()=>{}},d=>{if(s){Yn({});var v=Z;v.c=s}if(i&&(r.$$events=i),$&&St(d,null),a=e(d,r)||{},$&&(w.nodes_end=P,P===null||P.nodeType!==We||P.data!==Rn))throw gt(),Ge;s&&Hn()}),()=>{for(var d of l){t.removeEventListener(d,at);var v=Ke.get(d);--v===0?(document.removeEventListener(d,at),Ke.delete(d)):Ke.set(d,v)}un.delete(f),b!==n&&b.parentNode?.removeChild(b)}});return cn.set(a,h),a}let cn=new WeakMap;function ds(e,t){const n=cn.get(e);return n?(cn.delete(e),n(t)):Promise.resolve()}class vs{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#a=!0;constructor(t,n=!0){this.anchor=t,this.#a=n}#s=()=>{var t=k;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)ts(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(o);l&&(H(l.effect),this.#n.delete(o))}for(const[s,o]of this.#e){if(s===n||this.#r.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();pr(o,a),a.append(pe()),this.#n.set(s,{effect:o,fragment:a})}else H(o);this.#r.delete(s),this.#e.delete(s)};this.#a||!r?(this.#r.add(s),it(o,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(H(i.effect),this.#n.delete(r))};ensure(t,n){var r=k,i=qi();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),o=pe();s.append(o),this.#n.set(t,{effect:ge(()=>n(o)),fragment:s})}else this.#e.set(t,ge(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,f]of this.#e)l===t?r.skipped_effects.delete(f):r.skipped_effects.add(f);for(const[l,f]of this.#n)l===t?r.skipped_effects.delete(f.effect):r.skipped_effects.add(f.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else $&&(this.anchor=P),this.#s()}}function Nt(e,t,n=!1){$&&tn();var r=new vs(e),i=n?Ue:0;function s(o,l){if($){const a=Ei(e)===Ut;if(o===a){var f=Vn();G(f),r.anchor=f,ae(!1),r.ensure(o,l),ae(!0);return}}r.ensure(o,l)}an(()=>{var o=!1;t((l,f=!0)=>{o=!0,s(f,l)}),o||s(!1,null)},i)}function hs(e,t){let n=null,r=$;var i;if($){n=P;for(var s=je(document.head);s!==null&&(s.nodeType!==We||s.data!==e);)s=ie(s);if(s===null)ae(!1);else{var o=ie(s);s.remove(),G(o)}}$||(i=document.head.appendChild(pe()));try{an(()=>t(i),Xt)}finally{r&&(ae(!0),G(n))}}function bs(e,t){Zi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function _s(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function ps(e,t){return e==null?null:String(e)}function R(e,t,n,r,i,s){var o=e.__className;if($||o!==n||o===void 0){var l=_s(n,r);(!$||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}function Ot(e,t,n,r){var i=e.__style;if($||i!==t){var s=ps(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const gs=Symbol("is custom element"),xs=Symbol("is html");function Nr(e){if($){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;ft(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;ft(e,"checked",null),e.checked=i}}};e.__on_r=n,et(n),fr()}}function ft(e,t,n,r){var i=ms(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[di]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Or(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function y(e,t,n){var r=m,i=w;let s=$;$&&ae(!1),z(null),ee(null);try{t!=="style"&&(dn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Or(e).includes(t):n&&typeof n=="object")?e[t]=n:ft(e,t,n==null?n:String(n))}finally{z(r),ee(i),s&&ae(!0)}}function ms(e){return e.__attributes??={[gs]:e.nodeName.includes("-"),[xs]:e.namespaceURI===ri}}var dn=new Map;function Or(e){var t=e.getAttribute("is")||e.nodeName,n=dn.get(t);if(n)return n;dn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=li(i);for(var o in r)r[o].set&&n.push(o);i=jn(i)}return n}function Dr(e,t,n=t){var r=new WeakSet;Yi(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=vn(e)?hn(s):s,n(s),k!==null&&r.add(k),await is(),s!==(s=t())){var o=e.selectionStart,l=e.selectionEnd,f=e.value.length;if(e.value=s??"",l!==null){var a=e.value.length;o===l&&l===f&&a>f?(e.selectionStart=a,e.selectionEnd=a):(e.selectionStart=o,e.selectionEnd=Math.min(l,a))}}}),($&&e.defaultValue!==e.value||fn(t)==null&&e.value)&&(n(vn(e)?hn(e.value):e.value),k!==null&&r.add(k)),ln(()=>{var i=t();if(e===document.activeElement){var s=mt??k;if(r.has(s))return}vn(e)&&i===hn(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function vn(e){var t=e.type;return t==="number"||t==="range"}function hn(e){return e===""?null:+e}let Dt=!1;function ys(e){var t=Dt;try{return Dt=!1,[e(),Dt]}finally{Dt=t}}function ce(e,t,n,r){var i=(n&Qr)!==0,s=(n&ei)!==0,o=r,l=!0,f=()=>(l&&(l=!1,o=s?fn(r):r),o),a;if(i){var h=pt in e||In in e;a=Ce(e,t)?.set??(h&&t in e?T=>e[t]=T:void 0)}var b,d=!1;i?[b,d]=ys(()=>e[t]):b=e[t],b===void 0&&r!==void 0&&(b=f(),a&&(xi(),a(b)));var v;if(v=()=>{var T=e[t];return T===void 0?f():(l=!0,T)},(n&Kr)===0)return v;if(a){var A=e.$$legacy;return(function(T,Fe){return arguments.length>0?((!Fe||A||d)&&a(Fe?v():T),T):v()})}var q=!1,p=((n&Xr)!==0?$t:zi)(()=>(q=!1,v()));i&&c(p);var F=w;return(function(T,Fe){if(arguments.length>0){const Ve=Fe?c(p):i?ke(T):T;return g(p,Ve),q=!0,o!==void 0&&(o=Ve),T}return Le&&q||(F.f&be)!==0?p.v:c(p)})}function ws(e){return new $s(e)}class $s{#t;#e;constructor(t){var n=new Map,r=(s,o)=>{var l=Fi(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return c(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===In?!0:(c(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return g(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#e=(t.hydrate?cs:Sr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Q(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ht(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ds(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Rr;typeof HTMLElement=="function"&&(Rr=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 i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Te(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ks(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]=Rt(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=ws({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ji(()=>{ln(()=>{this.$$r=!0;for(const r of vt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Rt(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]=Rt(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 vt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Rt(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 ks(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Es(e,t,n,r,i,s){let o=class extends Rr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return vt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return vt(t).forEach(l=>{ht(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Rt(l,f,t),this.$$d[l]=f;var a=this.$$c;if(a){var h=Ce(a,l)?.get;h?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{ht(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const jt={version:"0.66.0"};var Ie={},jr;function Ts(){if(jr)return Ie;jr=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.LanguageTranslator=void 0,Ie.getChildStyleToPass=e,Ie.addComponent=t;function e(r,i){var s,o,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||o===void 0)&&o.length))for(var f=function(d){var v=i?.filter(function(A){return A.name===d&&A.defaultValue!==r[d]});v&&(l+="".concat(d,":").concat(r[d],";"))},a=0,h=Object.keys(r);a<h.length;a++){var b=h[a];f(b)}}catch(d){console.error("error getting child style to pass",d)}finally{return l}}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 o=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(o)}document.head.appendChild(l)}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,o){return r.formatDate(i,s,o||this.lang)},r.getDefaultLang=function(){var i,s,o,l="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,o){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((l=s[o])===null||l===void 0)&&l[i]))return s[o][i];var f="",a=r.getDefaultLang();if(!o||a!==o){var h=s?.[a];h?.[i]&&(f=h[i])}return f},r.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return l.format(i)},r})();return Ie.LanguageTranslator=n,Ie}var Lt=Ts(),Ps=ze('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-eex92x"/>'),As=ze("<hb-table></hb-table>",2),Ss=ze("<hb-pad-joystick></hb-pad-joystick>",2),Cs=ze("<hb-pad-joystick></hb-pad-joystick>",2),Ns=ze('<div id="controller" class="svelte-eex92x"><div id="panel" class="svelte-eex92x"><div id="joystick" class="area svelte-eex92x"><!></div> <div id="buttons" class="area svelte-eex92x"><div class="btn-group svelte-eex92x" style="margin-right:10px"><button class="btn btn-sm btn-light svelte-eex92x" aria-label="Zoom In"><i class="bi bi-zoom-in svelte-eex92x"></i></button> <button class="btn btn-sm btn-light svelte-eex92x" aria-label="Zoom Out"><i class="bi bi-zoom-out svelte-eex92x"></i></button></div> <button aria-label="Go to home"><i class="bi bi-house-door-fill svelte-eex92x"></i></button> <button aria-label="select zone"><i class="bi bi-square svelte-eex92x"></i></button></div> <div id="speed" class="area svelte-eex92x"><span class="slider_label svelte-eex92x">speed:</span> <input class="range svelte-eex92x" type="range"/></div> <div id="precision" class="area svelte-eex92x"><span class="slider_label svelte-eex92x">precision:</span> <input class="range svelte-eex92x" type="range"/></div> <div id="presets_view" class="area svelte-eex92x"><button aria-label="showGrid"><i class="bi bi-grid-3x3 svelte-eex92x"></i></button> <button aria-label="Toggle joystick mode"><i class="bi bi-joystick svelte-eex92x"></i></button> <button style="float:right;margin-right:5px;" class="btn btn-sm btn-light svelte-eex92x" aria-label="Enter fullscreen mode"><i class="bi bi-arrows-fullscreen svelte-eex92x"></i></button></div> <div id="presets_select" class="area svelte-eex92x"><button class="btn btn-sm btn-light svelte-eex92x" aria-label="Add Scene to Preset"><i class="bi bi-plus-circle-fill svelte-eex92x"></i></button> <button style="width:130px!important;display:inline-block!important" aria-label="Open Presets Modal"> <i style="float:right" class="bi bi-arrow-down-up svelte-eex92x"></i></button></div> <div id="presets_buttons" class="area svelte-eex92x"><button><i></i></button> <button><i></i></button> <button class="btn btn-sm btn-light svelte-eex92x" aria-label="Open settings"><i class="bi bi-sliders svelte-eex92x"></i> <span class="timecell svelte-eex92x"><span class="svelte-eex92x"> </span></span></button></div></div></div>'),Os=ze('<!> <div id="opener" class="svelte-eex92x"><i></i></div>',1),Ds=ze('<hb-dialog><div slot="body-content" class="svelte-eex92x"><!></div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x">Are You sure to add this scene to the preset?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x">Are You sure to go To Home?</div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x"> </div></hb-dialog> <hb-dialog><div slot="body-content" class="svelte-eex92x"> </div></hb-dialog> <div id="container" class="svelte-eex92x"><hb-player-live></hb-player-live> <div id="area_selector" class="svelte-eex92x"></div> <div id="grid" class="svelte-eex92x"><table id="grid_table" class="svelte-eex92x"><tbody class="svelte-eex92x"><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr><tr class="svelte-eex92x"><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td><td class="svelte-eex92x"></td></tr></tbody></table></div> <!></div>',3);const Rs={hash:"svelte-eex92x",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");
|
|
3
3
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}#grid_table.svelte-eex92x {width:100%;height:100%;}#area_selector.svelte-eex92x {position:absolute;z-index:2;border:solid 2px red;}#grid.svelte-eex92x {position:absolute;top:0px;z-index:2;width:100%;height:100%;}#grid.svelte-eex92x td:where(.svelte-eex92x) {border:2px solid black;}.area.svelte-eex92x {padding:5px;}#container.svelte-eex92x {position:relative;width:100%;height:100%;display:block;min-height:160px;}hb-pad-joystick.svelte-eex92x {--hb-pad-joystick-size: 100px;}#joystick.svelte-eex92x {grid-area:pad;margin-top:7px;display:block;width:100%;text-align:center;}#buttons.svelte-eex92x {grid-area:buttons;}#presets_buttons.svelte-eex92x {grid-area:presets_buttons;}#speed.svelte-eex92x {grid-area:speed;text-align:center;vertical-align:middle;line-height:28px;}#precision.svelte-eex92x {grid-area:precision;text-align:center;vertical-align:middle;line-height:28px;}#presets_select.svelte-eex92x {grid-area:presets_select;}#presets_view.svelte-eex92x {grid-area:presets_view;}#controller.svelte-eex92x {position:absolute;top:calc(100% - 160px);width:100%;z-index:3;}#opener.svelte-eex92x {background-color:silver;line-height:126px;vertical-align:middle;position:absolute;position:absolute;top:calc(100% - 160px);z-index:4;cursor:pointer;}#panel.svelte-eex92x {display:grid;width:500px;height:126px;background-color:rgba(127, 127, 127, 0.8);grid-template-areas:"pad buttons presets_view opener" "pad speed presets_select opener" "pad precision presets_buttons opener";grid-template-columns:120px 200px 180px;grid-template-rows:42px 42px 42px;}.slider_label.svelte-eex92x {font-size:0.6em;width:50px;display:inline-block;font-weight:bold;}#player.svelte-eex92x {z-index:1;}.timecell.svelte-eex92x {font-size:0.8em;line-height:20px;width:56px;display:inline-block;vertical-align:middle;}.range.svelte-eex92x {vertical-align:middle;line-height:28px;}
|
|
4
4
|
/*!
|
|
5
5
|
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
|
@@ -72,5 +72,5 @@ button.svelte-eex92x {margin:0;font-family:inherit;font-size:inherit;line-height
|
|
|
72
72
|
@media (min-width: 1200px) {
|
|
73
73
|
}
|
|
74
74
|
@media print {
|
|
75
|
-
}`};function zr(e,t){Gn(t,!0),gs(e,Ms);function n(u,_){t.$$host.dispatchEvent(new CustomEvent(u,{detail:_}))}const r={joystick:!0,presets:!0,deletePreset:!0,addPreset:!0,switchPreset:!0,home:!0,zoom:{in:!0,out:!0},pan:!0,tilt:!0,clickToCenter:!0,settings:!0};let i=ce(t,"id",7,""),s=ce(t,"live_uri",7,""),o=ce(t,"media_type",7,"auto"),l=ce(t,"presets",23,()=>[]),f=ce(t,"position",7,"right-bottom"),a=ce(t,"configuration",7,r),h=ce(t,"current_preset",7,""),b=ce(t,"is_home",7,void 0),d=ce(t,"is_ptz_connected",7,void 0),v=ce(t,"is_ptz_panel_opened",7,void 0);const S=[{label:"Name",key:"name",copyTxt:!0},{label:"Token",key:"token",copyTxt:!0}],B=[{name:"goto",type:"icon",iconOrText:"arrow-right-circle"},{name:"delete",type:"icon",iconOrText:"x-circle-fill",btnClass:"danger"}];let p=k(void 0);ge({});let Qe=k(""),R=k(""),et=k(""),G=k("");const de={precision:50,speed:50};let Ir=k(ge(new Date().toLocaleTimeString())),zt=Fi(()=>l()?.map(u=>({_id:u.token+"_"+u.name,name:u.name,token:u.token}))),pn=k(!0),It=k(!1),dt=k(!1),vt=k(!1),Ft=k(!1),gn=k(!1),xn=k(!1),Vt=k(!1),Bt=k(!1),Ae=k("dpad"),we=k(!1),Ce=k(ge({top:0,left:0,width:0,height:0})),x={};Zi(()=>{if(d()===""&&d(!0),d()||d(!1),typeof d()=="string"&&d(d()==="true"||d()==="yes"),v()===""&&v(!0),v()||v(!1),typeof v()=="string"&&v(v()==="true"||v()==="yes"),b()===""&&b(!0),b()||b(!1),typeof b()=="string"&&b(b()==="true"||b()==="yes"),typeof a()=="string")try{a(JSON.parse(a()))}catch{}if(typeof l()=="string")try{l(JSON.parse(l()))}catch{}}),setInterval(()=>{g(Ir,new Date().toLocaleTimeString(),!0)},1e3);function Fr(u){if(!a()?.zoom)return console.error("Zoom is not enabled in the configuration");if(!a().zoom[u])return console.error(`Zoom ${u} is not enabled in the configuration`);const _={time:new Date,id:i(),movementSettings:de,direction:u};n("zoomAction",_)}function zs(){if(!a()?.home)return console.error("Go to home is not enabled in the configuration");i(),n("goToHome",{id:i(),movementSettings:de})}function Is(){if(!a()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");const u={time:new Date,id:i()};n("setPreset",u)}function Fs(){if(!a()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");const u=c(p)?.getBoundingClientRect(),_=Object.assign({time:new Date,id:i(),movementSettings:de,htmlVideoElementWidth:u?.width,htmlVideoElementHeight:u?.height},c(Ce));n("goToSelectedArea",_),g(we,!1),g(Ce,{top:0,left:0,width:0,height:0},!0),x={}}function Vs(){if(!a()?.presets)return console.error("Presets is not enabled in the configuration");g(vt,!c(vt))}function Bs(){if(!a()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");g(Ft,!c(Ft))}function qs(){if(!a()?.home)return console.error("Go to home is not enabled in the configuration");g(Vt,!c(Vt))}function Ys(u){if(!a()?.switchPreset)return console.error("Switch preset is not enabled in the configuration");const _=l()?.find?.(N=>N.token===u);if(_){const N=Object.assign({time:new Date,playerId:i(),movementSettings:de},_);n("goToPreset",N)}else console.error("Preset not found")}function Hs(){const u={time:new Date,id:i(),htmlVideoElement:c(p)};n("initVideo",u),c(p)&&(c(p).onloadedmetadata=()=>{g(dt,!0)},c(p).onpause=()=>{g(pn,!0),g(It,!1)},c(p).onplay=()=>{g(pn,!1),g(It,!0)},c(p).onclick=_=>{if(c(we)){const N=c(p)?.getBoundingClientRect(),Yt={x:_.clientX-N?.left,y:_.clientY-N?.top,width:0,height:0};x.start?(x={start:x.start,end:Yt},Fs()):x={start:Yt}}},c(p).onmousemove=_=>{if(c(we)){const N={x:_.clientX,y:_.clientY};x.start&&(x={start:x.start,end:N},g(Ce,{top:x.start.y>x.end.y?x.end.y:x.start.y,left:x.start.x>x.end.x?x.end.x:x.start.x,width:Math.abs((x?.start?.x||0)-(x?.end?.x||0)),height:Math.abs((x?.start?.y||0)-(x?.end?.y||0))},!0))}})}function Gs(u){if(!a()?.deletePreset)return console.error("Delete preset is not enabled in the configuration");const _=l()?.find(N=>N.token===u);if(_){const N=Object.assign({time:new Date,playerId:i()},_);n("deletePreset",N)}else console.error("Preset not found")}function Js(u){if(!a()?.joystick||a()?.pan||a()?.tilt)return console.error("Pan and Tilt on joystick are not enabled in the configuration");n("sendJoystickPosition",{id:i(),x:u.x,y:u.y,cardinalDirection:u.cardinalDirection,joyId:u.id,movementSettings:de})}function Us(u){a()?.pan&&a()?.tilt?n("sendDirection",{id:i(),movementSettings:de,direction:u.direction,joyId:u.id}):console.error("Pan and Tilt are not enabled in the configuration")}function Ws(){g(Bt,!c(Bt))}function Zs(){if(!a()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");g(we,!c(we))}function Xs(){if(c(Ae)==="dpad"){if(!a()?.joystick)return console.error("Joystick is not enabled in the configuration");g(Ae,"joystick")}else g(Ae,"dpad")}function xo(){}function Ks(u){console.log(u,"presetclick"),g(vt,!1);const _=l()?.find(N=>u.itemId.includes(N.token+"_"))?.token;switch(_&&g(G,_,!0),u.action){case"goto":g(xn,!0);break;case"delete":g(gn,!0);break;default:return console.error("Action not found")}}function Qs(){if(!c(p))return console.error("Video element not found");c(p).paused?c(p).play():c(p).pause()}Mt.addComponent({repoName:"@htmlbricks/hb-player-live",version:Lt.version}),Mt.addComponent({repoName:"@htmlbricks/hb-pad-joystick",version:Lt.version}),Mt.addComponent({repoName:"@htmlbricks/hb-table",version:Lt.version}),Mt.addComponent({repoName:"@htmlbricks/hb-dialog",version:Lt.version});var eo={get id(){return i()},set id(u=""){i(u),Q()},get live_uri(){return s()},set live_uri(u=""){s(u),Q()},get media_type(){return o()},set media_type(u="auto"){o(u),Q()},get presets(){return l()},set presets(u=[]){l(u),Q()},get position(){return f()},set position(u="right-bottom"){f(u),Q()},get configuration(){return a()},set configuration(u=r){a(u),Q()},get current_preset(){return h()},set current_preset(u=""){h(u),Q()},get is_home(){return b()},set is_home(u=void 0){b(u),Q()},get is_ptz_connected(){return d()},set is_ptz_connected(u=void 0){d(u),Q()},get is_ptz_panel_opened(){return v()},set is_ptz_panel_opened(u=void 0){v(u),Q()}},Vr=Ls();ps("eex92x",u=>{var _=Cs();Pe(u,_)});var Ne=fr(Vr);y(Ne,"title","Presets"),O(()=>y(Ne,"show",c(vt)?"yes":"no")),y(Ne,"hide_confirm","yes"),D(Ne,1,"svelte-eex92x");var Br=C(Ne),to=C(Br);{var no=u=>{var _=Ns();Se(_,c(et)),O(()=>y(_,"rows",JSON.stringify(c(zt)))),O(()=>y(_,"headers",JSON.stringify(S))),O(()=>y(_,"actions",JSON.stringify(B))),y(_,"size","12"),O(()=>y(_,"disablepagination",c(zt)&&c(zt).length<12?"yes":"no")),D(_,1,"svelte-eex92x"),W("tableaction",_,N=>{Ks(N.detail)}),Pe(u,_)};Dt(to,u=>{c(zt)?.length&&u(no)})}A(Br),A(Ne);var tt=T(Ne,2);y(tt,"title","Add Scene to Preset"),O(()=>y(tt,"show",c(Ft)?"yes":"no")),D(tt,1,"svelte-eex92x");var qe=T(tt,2);y(qe,"title","Go to Home"),O(()=>y(qe,"show",c(Vt)?"yes":"no")),y(qe,"confirmlabel","GO"),D(qe,1,"svelte-eex92x");var se=T(qe,2);O(()=>y(se,"id","del_"+c(G))),O(()=>y(se,"title",`Go to Preset ${(c(G)?l()?.find(u=>u.token===c(G))?.token:"")??""}`)),O(()=>y(se,"show",c(gn)?"yes":"no")),y(se,"confirmlabel","delete"),y(se,"confirm_btn_class","danger"),D(se,1,"svelte-eex92x");var qr=C(se),ro=C(qr);A(qr),A(se);var oe=T(se,2);O(()=>y(oe,"id","goto_"+c(G))),O(()=>y(oe,"title",`Go to Preset ${(c(G)?l()?.find(u=>u.token===c(G))?.token:"")??""}`)),O(()=>y(oe,"show",c(xn)?"yes":"no")),y(oe,"confirmlabel","go"),y(oe,"confirm_btn_class","light"),D(oe,1,"svelte-eex92x");var Yr=C(oe),io=C(Yr);A(Yr),A(oe);var qt=T(oe,2);qt.__mousemove=u=>{if(c(we)){const _=c(p)?.getBoundingClientRect(),N={x:u.clientX-_?.left,y:u.clientY-_?.top};x.start&&(x={start:x.start,end:N},g(Ce,{top:x.start.y>x.end.y?x.end.y:x.start.y,left:x.start.x>x.end.x?x.end.x:x.start.x,width:Math.abs((x?.start?.x||0)-(x?.end?.x||0)),height:Math.abs((x?.start?.y||0)-(x?.end?.y||0))},!0))}};var Oe=C(qt);y(Oe,"no_controls","yes"),y(Oe,"id","player"),O(()=>y(Oe,"mediauri",s())),O(()=>y(Oe,"media_type",o())),Se(Oe,c(Qe)),D(Oe,1,"svelte-eex92x");var Hr=T(Oe,2),Gr=T(Hr,2),so=T(Gr,2);{var oo=u=>{var _=js(),N=fr(_);{var Yt=mn=>{var yn=Rs(),Jr=C(yn),wn=C(Jr),ao=C(wn);{var fo=F=>{var q=Os();O(()=>y(q,"id","pad_"+c(Ae))),y(q,"pad_or_joystick","dpad"),y(q,"size","60px"),Se(q,c(R)),D(q,1,"svelte-eex92x"),W("sendDirection",q,Dn=>{Us(Dn.detail)}),Pe(F,q)},uo=F=>{var q=Ds();O(()=>y(q,"id","pad_"+c(Ae))),y(q,"pad_or_joystick","joystick"),y(q,"size","60px"),Se(q,c(R)),D(q,1,"svelte-eex92x"),W("sendJoystickPosition",q,Dn=>{Js(Dn.detail)}),Pe(F,q)};Dt(ao,F=>{c(Ae)==="dpad"?F(fo):F(uo,!1)})}A(wn);var $n=T(wn,2),kn=C($n),En=C(kn);En.__click=()=>Fr("in");var Ur=T(En,2);Ur.__click=()=>Fr("out"),A(kn);var Gt=T(kn,2);Gt.__click=()=>qs();var Tn=T(Gt,2);Tn.__click=()=>Zs(),A($n);var Pn=T($n,2),Wr=T(C(Pn),2);Dr(Wr),A(Pn);var Sn=T(Pn,2),Zr=T(C(Sn),2);Dr(Zr),A(Sn);var An=T(Sn,2),Cn=C(An);Cn.__click=()=>Ws();var Jt=T(Cn,2);Jt.__click=()=>Xs();var co=T(Jt,2);co.__click=()=>c(p)?.requestFullscreen(),A(An);var Nn=T(An,2),On=C(Nn);On.__click=()=>Bs();var ht=T(On,2);ht.__click=()=>{Vs()};var vo=C(ht);Bn(),A(ht),A(Nn);var Xr=T(Nn,2),Ye=C(Xr);Ye.__click=()=>{c(p)&&(c(p).muted=!c(p).muted)};var ho=C(Ye);A(Ye);var He=T(Ye,2);He.__click=()=>Qs();var bo=C(He);A(He);var Ut=T(He,2);Ut.__click=()=>void 0;var Kr=T(C(Ut),2),Qr=C(Kr),_o=C(Qr,!0);A(Qr),A(Kr),A(Ut),A(Xr),A(Jr),A(yn),O(F=>{En.disabled=!a()?.zoom?.in,Ur.disabled=!a()?.zoom?.out,Gt.disabled=!a()?.home,D(Gt,1,`btn btn-sm btn-${b()?"primary":"light"}`,"svelte-eex92x"),Tn.disabled=!a()?.clickToCenter,D(Tn,1,`btn btn-sm btn-${c(we)?"primary":"light"}`,"svelte-eex92x"),D(Cn,1,`btn btn-sm btn-${c(Bt)?"primary":"light"}`,"svelte-eex92x"),Jt.disabled=!a()?.joystick,D(Jt,1,`btn btn-sm btn-${c(Ae)&&c(Ae)==="dpad"?"light":"primary"}`,"svelte-eex92x"),On.disabled=!a()?.addPreset,ht.disabled=!a()?.presets,D(ht,1,`btn btn-sm btn-${h()?"primary":"light"}`,"svelte-eex92x"),Ot(vo,`${F??""} `),Ye.disabled=!c(dt),D(Ye,1,`btn btn-sm btn-${c(dt)?c(p)?.muted?"warning":"primary":"light"}`,"svelte-eex92x"),ct(Ye,"aria-label",c(p)?.muted?"Unmute video":"Mute video"),D(ho,1,`bi bi-${c(p)?.muted||!c(p)?"volume-mute-fill":"volume-up-fill"}`,"svelte-eex92x"),He.disabled=!c(dt),D(He,1,`btn btn-sm btn-${c(dt)?c(It)?"primary":"warning":"light"}`,"svelte-eex92x"),ct(He,"aria-label",c(It)?"Pause video":"Play video"),D(bo,1,`bi bi-${c(pn)||!c(p)?"pause-fill":"play"}`,"svelte-eex92x"),Ut.disabled=!a()?.settings,Ot(_o,c(Ir))},[()=>h()&&l()?.find(F=>F.token===h())?l()?.find(F=>F.token===h())?.name:""]),jr(Wr,()=>de.speed,F=>de.speed=F),jr(Zr,()=>de.precision,F=>de.precision=F),Pe(mn,yn)};Dt(N,mn=>{v()&&mn(Yt)})}var Ht=T(N,2);Ht.__click=()=>{v(!v()),n("panelMove",{id:i(),opened:v()})};var lo=C(Ht);A(Ht),O(()=>{Se(Ht,`left:${v()?"500":"0"}px;`),D(lo,1,`bi-${v()?"caret-left-fill":"caret-right-fill"}`,"svelte-eex92x")}),Pe(u,_)};Dt(so,u=>{d()&&u(oo)})}return A(qt),O((u,_)=>{Ot(ro,`Are You sure to DELETE preset ${u??""}?`),Ot(io,`Are You sure to GO to preset "${_??""}"?`),Se(qt,`cursor: ${c(we)?"crosshair":""};`),Se(Hr,`display:${c(we)?"inherit":"none"}; width:${c(Ce).width??""}px; height:${c(Ce).height??""}px;top:${c(Ce).top??""}px;left:${c(Ce).left??""}px;`),Se(Gr,`display:${c(Bt)?"inherit":"none"}`)},[()=>c(G)?l()?.find(u=>u.token===c(G))?.token:"",()=>c(G)?l()?.find(u=>u.token===c(G))?.token:""]),W("modalShow",Ne,u=>{g(vt,u.detail.show,!0)}),W("modalShow",tt,u=>{g(Ft,u.detail.show,!0)}),W("modalConfirm",tt,u=>{u?.detail?.confirm&&Is()}),W("modalShow",qe,u=>{g(Vt,u.detail.show,!0)}),W("modalConfirm",qe,u=>{u?.detail?.confirm&&zs()}),W("modalShow",se,u=>{g(gn,u.detail.show,!0)}),W("modalConfirm",se,u=>{console.log(u.detail,"detail"),u?.detail?.confirm&&Gs(u.detail.id.split("del_")[1])}),W("modalShow",oe,u=>{g(xn,u.detail.show,!0)}),W("modalConfirm",oe,u=>{console.log(u.detail.id.split("goto")[1],"detail"),u?.detail?.confirm&&Ys(u.detail.id.split("goto_")[1])}),W("htmlVideoInit",Oe,u=>{console.log(u.detail,"detailvid"),g(p,u.detail.video,!0),Hs()}),Pe(e,Vr),Jn(eo)}us(["mousemove","click"]),customElements.define("hb-player-live-camera-ptz",Ss(zr,{id:{},live_uri:{},media_type:{},presets:{},position:{},configuration:{},current_preset:{},is_home:{},is_ptz_connected:{},is_ptz_panel_opened:{}},[],[],!0)),Rn.Component=zr,Object.defineProperty(Rn,Symbol.toStringTag,{value:"Module"})})(this["player-live-camera-ptz"]=this["player-live-camera-ptz"]||{});
|
|
75
|
+
}`};function Lr(e,t){Yn(t,!0),bs(e,Rs);function n(u,_){t.$$host.dispatchEvent(new CustomEvent(u,{detail:_}))}const r={joystick:!0,presets:!0,deletePreset:!0,addPreset:!0,switchPreset:!0,home:!0,zoom:{in:!0,out:!0},pan:!0,tilt:!0,clickToCenter:!0,settings:!0};let i=ce(t,"id",7,""),s=ce(t,"live_uri",7,""),o=ce(t,"media_type",7,"auto"),l=ce(t,"presets",23,()=>[]),f=ce(t,"position",7,"right-bottom"),a=ce(t,"configuration",7,r),h=ce(t,"current_preset",7,""),b=ce(t,"is_home",7,void 0),d=ce(t,"is_ptz_connected",7,void 0),v=ce(t,"is_ptz_panel_opened",7,void 0);const A=[{label:"Name",key:"name",copyTxt:!0},{label:"Token",key:"token",copyTxt:!0}],q=[{name:"goto",type:"icon",iconOrText:"arrow-right-circle"},{name:"delete",type:"icon",iconOrText:"x-circle-fill",btnClass:"danger"}];let p=N(void 0),F=N("");const T={precision:50,speed:50};let Fe=N(ke(new Date().toLocaleTimeString())),Ve=Mi(()=>l()?.map(u=>({_id:u.token+"_"+u.name,name:u.name,token:u.token}))),bn=N(!0),Mt=N(!1),ut=N(!1),ct=N(!1),zt=N(!1),_n=N(!1),pn=N(!1),It=N(!1),Ft=N(!1),Pe=N("dpad"),me=N(!1),Ae=N(ke({top:0,left:0,width:0,height:0})),x={};Ui(()=>{if(d()===""&&d(!0),d()||d(!1),typeof d()=="string"&&d(d()==="true"||d()==="yes"),v()===""&&v(!0),v()||v(!1),typeof v()=="string"&&v(v()==="true"||v()==="yes"),b()===""&&b(!0),b()||b(!1),typeof b()=="string"&&b(b()==="true"||b()==="yes"),typeof a()=="string")try{a(JSON.parse(a()))}catch{}if(typeof l()=="string")try{l(JSON.parse(l()))}catch{}}),setInterval(()=>{g(Fe,new Date().toLocaleTimeString(),!0)},1e3);function Mr(u){if(!a()?.zoom)return console.error("Zoom is not enabled in the configuration");if(!a().zoom[u])return console.error(`Zoom ${u} is not enabled in the configuration`);const _={time:new Date,id:i(),movementSettings:T,direction:u};n("zoomAction",_)}function js(){if(!a()?.home)return console.error("Go to home is not enabled in the configuration");i(),n("goToHome",{id:i(),movementSettings:T})}function Ls(){if(!a()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");const u={time:new Date,id:i()};n("setPreset",u)}function Ms(){if(!a()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");const u=c(p)?.getBoundingClientRect(),_=Object.assign({time:new Date,id:i(),movementSettings:T,htmlVideoElementWidth:u?.width,htmlVideoElementHeight:u?.height},c(Ae));n("goToSelectedArea",_),g(me,!1),g(Ae,{top:0,left:0,width:0,height:0},!0),x={}}function zs(){if(!a()?.presets)return console.error("Presets is not enabled in the configuration");g(ct,!c(ct))}function Is(){if(!a()?.addPreset)return console.error("Add scene to preset is not enabled in the configuration");g(zt,!c(zt))}function Fs(){if(!a()?.home)return console.error("Go to home is not enabled in the configuration");g(It,!c(It))}function Vs(u){if(!a()?.switchPreset)return console.error("Switch preset is not enabled in the configuration");const _=l()?.find?.(O=>O.token===u);if(_){const O=Object.assign({time:new Date,playerId:i(),movementSettings:T},_);n("goToPreset",O)}else console.error("Preset not found")}function Bs(){const u={time:new Date,id:i(),htmlVideoElement:c(p)};n("initVideo",u),c(p)&&(c(p).onloadedmetadata=()=>{g(ut,!0)},c(p).onpause=()=>{g(bn,!0),g(Mt,!1)},c(p).onplay=()=>{g(bn,!1),g(Mt,!0)},c(p).onclick=_=>{if(c(me)){const O=c(p)?.getBoundingClientRect(),Bt={x:_.clientX-O?.left,y:_.clientY-O?.top,width:0,height:0};x.start?(x={start:x.start,end:Bt},Ms()):x={start:Bt}}},c(p).onmousemove=_=>{if(c(me)){const O={x:_.clientX,y:_.clientY};x.start&&(x={start:x.start,end:O},g(Ae,{top:x.start.y>x.end.y?x.end.y:x.start.y,left:x.start.x>x.end.x?x.end.x:x.start.x,width:Math.abs((x?.start?.x||0)-(x?.end?.x||0)),height:Math.abs((x?.start?.y||0)-(x?.end?.y||0))},!0))}})}function qs(u){if(!a()?.deletePreset)return console.error("Delete preset is not enabled in the configuration");const _=l()?.find(O=>O.token===u);if(_){const O=Object.assign({time:new Date,playerId:i()},_);n("deletePreset",O)}else console.error("Preset not found")}function Ys(u){if(!a()?.joystick||a()?.pan||a()?.tilt)return console.error("Pan and Tilt on joystick are not enabled in the configuration");n("sendJoystickPosition",{id:i(),x:u.x,y:u.y,cardinalDirection:u.cardinalDirection,joyId:u.id,movementSettings:T})}function Hs(u){a()?.pan&&a()?.tilt?n("sendDirection",{id:i(),movementSettings:T,direction:u.direction,joyId:u.id}):console.error("Pan and Tilt are not enabled in the configuration")}function Gs(){g(Ft,!c(Ft))}function Us(){if(!a()?.clickToCenter)return console.error("Click to center is not enabled in the configuration");g(me,!c(me))}function Js(){if(c(Pe)==="dpad"){if(!a()?.joystick)return console.error("Joystick is not enabled in the configuration");g(Pe,"joystick")}else g(Pe,"dpad")}function _o(){}function Ws(u){console.log(u,"presetclick"),g(ct,!1);const _=l()?.find(O=>u.itemId.includes(O.token+"_"))?.token;switch(_&&g(F,_,!0),u.action){case"goto":g(pn,!0);break;case"delete":g(_n,!0);break;default:return console.error("Action not found")}}function Zs(){if(!c(p))return console.error("Video element not found");c(p).paused?c(p).play():c(p).pause()}Lt.addComponent({repoName:"@htmlbricks/hb-player-live",version:jt.version}),Lt.addComponent({repoName:"@htmlbricks/hb-pad-joystick",version:jt.version}),Lt.addComponent({repoName:"@htmlbricks/hb-table",version:jt.version}),Lt.addComponent({repoName:"@htmlbricks/hb-dialog",version:jt.version});var Xs={get id(){return i()},set id(u=""){i(u),Q()},get live_uri(){return s()},set live_uri(u=""){s(u),Q()},get media_type(){return o()},set media_type(u="auto"){o(u),Q()},get presets(){return l()},set presets(u=[]){l(u),Q()},get position(){return f()},set position(u="right-bottom"){f(u),Q()},get configuration(){return a()},set configuration(u=r){a(u),Q()},get current_preset(){return h()},set current_preset(u=""){h(u),Q()},get is_home(){return b()},set is_home(u=void 0){b(u),Q()},get is_ptz_connected(){return d()},set is_ptz_connected(u=void 0){d(u),Q()},get is_ptz_panel_opened(){return v()},set is_ptz_panel_opened(u=void 0){v(u),Q()}},zr=Ds();hs("eex92x",u=>{var _=Ps();Te(u,_)});var Se=lr(zr);y(Se,"title","Presets"),D(()=>y(Se,"show",c(ct)?"yes":"no")),y(Se,"hide_confirm","yes"),R(Se,1,"svelte-eex92x");var Ir=C(Se),Ks=C(Ir);{var Qs=u=>{var _=As();D(()=>y(_,"rows",JSON.stringify(c(Ve)))),D(()=>y(_,"headers",JSON.stringify(A))),D(()=>y(_,"actions",JSON.stringify(q))),y(_,"size","12"),D(()=>y(_,"disablepagination",c(Ve)&&c(Ve).length<12?"yes":"no")),R(_,1,"svelte-eex92x"),J("tableaction",_,O=>{Ws(O.detail)}),Te(u,_)};Nt(Ks,u=>{c(Ve)?.length&&u(Qs)})}S(Ir),S(Se);var Qe=E(Se,2);y(Qe,"title","Add Scene to Preset"),D(()=>y(Qe,"show",c(zt)?"yes":"no")),R(Qe,1,"svelte-eex92x");var Be=E(Qe,2);y(Be,"title","Go to Home"),D(()=>y(Be,"show",c(It)?"yes":"no")),y(Be,"confirmlabel","GO"),R(Be,1,"svelte-eex92x");var se=E(Be,2);D(()=>y(se,"id","del_"+c(F))),D(()=>y(se,"title",`Go to Preset ${(c(F)?l()?.find(u=>u.token===c(F))?.token:"")??""}`)),D(()=>y(se,"show",c(_n)?"yes":"no")),y(se,"confirmlabel","delete"),y(se,"confirm_btn_class","danger"),R(se,1,"svelte-eex92x");var Fr=C(se),eo=C(Fr);S(Fr),S(se);var oe=E(se,2);D(()=>y(oe,"id","goto_"+c(F))),D(()=>y(oe,"title",`Go to Preset ${(c(F)?l()?.find(u=>u.token===c(F))?.token:"")??""}`)),D(()=>y(oe,"show",c(pn)?"yes":"no")),y(oe,"confirmlabel","go"),y(oe,"confirm_btn_class","light"),R(oe,1,"svelte-eex92x");var Vr=C(oe),to=C(Vr);S(Vr),S(oe);var Vt=E(oe,2);Vt.__mousemove=u=>{if(c(me)){const _=c(p)?.getBoundingClientRect(),O={x:u.clientX-_?.left,y:u.clientY-_?.top};x.start&&(x={start:x.start,end:O},g(Ae,{top:x.start.y>x.end.y?x.end.y:x.start.y,left:x.start.x>x.end.x?x.end.x:x.start.x,width:Math.abs((x?.start?.x||0)-(x?.end?.x||0)),height:Math.abs((x?.start?.y||0)-(x?.end?.y||0))},!0))}};var qe=C(Vt);y(qe,"no_controls","yes"),y(qe,"id","player"),D(()=>y(qe,"mediauri",s())),D(()=>y(qe,"media_type",o())),R(qe,1,"svelte-eex92x");var Br=E(qe,2),qr=E(Br,2),no=E(qr,2);{var ro=u=>{var _=Os(),O=lr(_);{var Bt=gn=>{var xn=Ns(),Yr=C(xn),mn=C(Yr),so=C(mn);{var oo=V=>{var W=Ss();D(()=>y(W,"id","pad_"+c(Pe))),y(W,"pad_or_joystick","dpad"),y(W,"size","60px"),R(W,1,"svelte-eex92x"),J("sendDirection",W,Nn=>{Hs(Nn.detail)}),Te(V,W)},lo=V=>{var W=Cs();D(()=>y(W,"id","pad_"+c(Pe))),y(W,"pad_or_joystick","joystick"),y(W,"size","60px"),R(W,1,"svelte-eex92x"),J("sendJoystickPosition",W,Nn=>{Ys(Nn.detail)}),Te(V,W)};Nt(so,V=>{c(Pe)==="dpad"?V(oo):V(lo,!1)})}S(mn);var yn=E(mn,2),wn=C(yn),$n=C(wn);$n.__click=()=>Mr("in");var Hr=E($n,2);Hr.__click=()=>Mr("out"),S(wn);var Yt=E(wn,2);Yt.__click=()=>Fs();var kn=E(Yt,2);kn.__click=()=>Us(),S(yn);var En=E(yn,2),Gr=E(C(En),2);Nr(Gr),S(En);var Tn=E(En,2),Ur=E(C(Tn),2);Nr(Ur),S(Tn);var Pn=E(Tn,2),An=C(Pn);An.__click=()=>Gs();var Ht=E(An,2);Ht.__click=()=>Js();var ao=E(Ht,2);ao.__click=()=>c(p)?.requestFullscreen(),S(Pn);var Sn=E(Pn,2),Cn=C(Sn);Cn.__click=()=>Is();var dt=E(Cn,2);dt.__click=()=>{zs()};var fo=C(dt);Fn(),S(dt),S(Sn);var Jr=E(Sn,2),Ye=C(Jr);Ye.__click=()=>{c(p)&&(c(p).muted=!c(p).muted)};var uo=C(Ye);S(Ye);var He=E(Ye,2);He.__click=()=>Zs();var co=C(He);S(He);var Gt=E(He,2);Gt.__click=()=>void 0;var Wr=E(C(Gt),2),Zr=C(Wr),vo=C(Zr,!0);S(Zr),S(Wr),S(Gt),S(Jr),S(Yr),S(xn),D(V=>{$n.disabled=!a()?.zoom?.in,Hr.disabled=!a()?.zoom?.out,Yt.disabled=!a()?.home,R(Yt,1,`btn btn-sm btn-${b()?"primary":"light"}`,"svelte-eex92x"),kn.disabled=!a()?.clickToCenter,R(kn,1,`btn btn-sm btn-${c(me)?"primary":"light"}`,"svelte-eex92x"),R(An,1,`btn btn-sm btn-${c(Ft)?"primary":"light"}`,"svelte-eex92x"),Ht.disabled=!a()?.joystick,R(Ht,1,`btn btn-sm btn-${c(Pe)&&c(Pe)==="dpad"?"light":"primary"}`,"svelte-eex92x"),Cn.disabled=!a()?.addPreset,dt.disabled=!a()?.presets,R(dt,1,`btn btn-sm btn-${h()?"primary":"light"}`,"svelte-eex92x"),Ct(fo,`${V??""} `),Ye.disabled=!c(ut),R(Ye,1,`btn btn-sm btn-${c(ut)?c(p)?.muted?"warning":"primary":"light"}`,"svelte-eex92x"),ft(Ye,"aria-label",c(p)?.muted?"Unmute video":"Mute video"),R(uo,1,`bi bi-${c(p)?.muted||!c(p)?"volume-mute-fill":"volume-up-fill"}`,"svelte-eex92x"),He.disabled=!c(ut),R(He,1,`btn btn-sm btn-${c(ut)?c(Mt)?"primary":"warning":"light"}`,"svelte-eex92x"),ft(He,"aria-label",c(Mt)?"Pause video":"Play video"),R(co,1,`bi bi-${c(bn)||!c(p)?"pause-fill":"play"}`,"svelte-eex92x"),Gt.disabled=!a()?.settings,Ct(vo,c(Fe))},[()=>h()&&l()?.find(V=>V.token===h())?l()?.find(V=>V.token===h())?.name:""]),Dr(Gr,()=>T.speed,V=>T.speed=V),Dr(Ur,()=>T.precision,V=>T.precision=V),Te(gn,xn)};Nt(O,gn=>{v()&&gn(Bt)})}var qt=E(O,2);qt.__click=()=>{v(!v()),n("panelMove",{id:i(),opened:v()})};var io=C(qt);S(qt),D(()=>{Ot(qt,`left:${v()?"500":"0"}px;`),R(io,1,`bi-${v()?"caret-left-fill":"caret-right-fill"}`,"svelte-eex92x")}),Te(u,_)};Nt(no,u=>{d()&&u(ro)})}return S(Vt),D((u,_)=>{Ct(eo,`Are You sure to DELETE preset ${u??""}?`),Ct(to,`Are You sure to GO to preset "${_??""}"?`),Ot(Vt,`cursor: ${c(me)?"crosshair":""};`),Ot(Br,`display:${c(me)?"inherit":"none"}; width:${c(Ae).width??""}px; height:${c(Ae).height??""}px;top:${c(Ae).top??""}px;left:${c(Ae).left??""}px;`),Ot(qr,`display:${c(Ft)?"inherit":"none"}`)},[()=>c(F)?l()?.find(u=>u.token===c(F))?.token:"",()=>c(F)?l()?.find(u=>u.token===c(F))?.token:""]),J("modalShow",Se,u=>{g(ct,u.detail.show,!0)}),J("modalShow",Qe,u=>{g(zt,u.detail.show,!0)}),J("modalConfirm",Qe,u=>{u?.detail?.confirm&&Ls()}),J("modalShow",Be,u=>{g(It,u.detail.show,!0)}),J("modalConfirm",Be,u=>{u?.detail?.confirm&&js()}),J("modalShow",se,u=>{g(_n,u.detail.show,!0)}),J("modalConfirm",se,u=>{console.log(u.detail,"detail"),u?.detail?.confirm&&qs(u.detail.id.split("del_")[1])}),J("modalShow",oe,u=>{g(pn,u.detail.show,!0)}),J("modalConfirm",oe,u=>{console.log(u.detail.id.split("goto")[1],"detail"),u?.detail?.confirm&&Vs(u.detail.id.split("goto_")[1])}),J("htmlVideoInit",qe,u=>{console.log(u.detail,"detailvid"),g(p,u.detail.video,!0),Bs()}),Te(e,zr),Hn(Xs)}ls(["mousemove","click"]),customElements.define("hb-player-live-camera-ptz",Es(Lr,{id:{},live_uri:{},media_type:{},presets:{},position:{},configuration:{},current_preset:{},is_home:{},is_ptz_connected:{},is_ptz_panel_opened:{}},[],[],!0)),On.Component=Lr,Object.defineProperty(On,Symbol.toStringTag,{value:"Module"})})(this["player-live-camera-ptz"]=this["player-live-camera-ptz"]||{});
|
|
76
76
|
//# sourceMappingURL=main.iife.js.map
|