@htmlbricks/hb-editor-video 0.61.39 → 0.61.41

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 CHANGED
@@ -1,6 +1,6 @@
1
- (function(pr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Fn=1,Hn=4,qn=8,Un=16,Wn=1,Bn=2,qt="[",yr="[!",$r="]",Ze={},J=Symbol(),zn="http://www.w3.org/1999/xhtml",wr=!1;var xr=Array.isArray,Gn=Array.prototype.indexOf,Xn=Array.from,wt=Object.keys,Ke=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Jn=Object.getOwnPropertyDescriptors,Zn=Object.prototype,Kn=Array.prototype,Er=Object.getPrototypeOf,kr=Object.isExtensible;function Sr(e){for(var t=0;t<e.length;t++)e[t]()}function Qn(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const oe=2,Ut=4,Wt=8,Qe=16,Ee=32,Oe=64,jr=128,le=256,xt=512,Z=1024,ue=2048,Ne=4096,De=8192,Fe=16384,Bt=32768,zt=65536,Tr=1<<17,Mr=1<<18,et=1<<19,es=1<<20,Gt=1<<21,Xt=1<<22,He=1<<23,Et=Symbol("$state"),Or=Symbol("legacy props"),ts=Symbol(""),Jt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Nr=3,mt=8;function rs(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function ns(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ss(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function is(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function os(e){throw new Error("https://svelte.dev/e/effect_orphan")}function as(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ls(){throw new Error("https://svelte.dev/e/hydration_failed")}function us(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function cs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ds(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function kt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let L=!1;function _e(e){L=e}let B;function ge(e){if(e===null)throw kt(),Ze;return B=e}function Zt(){return ge(ke(B))}function ne(e){if(L){if(ke(B)!==null)throw kt(),Ze;B=e}}function Dr(e=1){if(L){for(var t=e,r=B;t--;)r=ke(r);B=r}}function bs(){for(var e=0,t=B;;){if(t.nodeType===mt){var r=t.data;if(r===$r){if(e===0)return t;e-=1}else(r===qt||r===yr)&&(e+=1)}var n=ke(t);t.remove(),t=n}}function hs(e){if(!e||e.nodeType!==mt)throw kt(),Ze;return e.data}function Vr(e){return e===this.v}function vs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ar(e){return!vs(e,this.v)}let ms=!1,ve=null;function St(e){ve=e}function Rr(e,t=!1,r){ve={p:ve,c:null,e:null,s:e,x:null,l:null}}function Cr(e){var t=ve,r=t.e;if(r!==null){t.e=null;for(var n of r)tn(n)}return e!==void 0&&(t.x=e),ve=t.p,e??{}}function Ir(){return!0}const _s=new WeakMap;function gs(e){var t=A;if(t===null)return C.f|=He,e;if((t.f&Bt)===0){if((t.f&jr)===0)throw!t.parent&&e instanceof Error&&Pr(e),e;t.b.error(e)}else Kt(e,t)}function Kt(e,t){for(;t!==null;){if((t.f&jr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Pr(e),e}function Pr(e){const t=_s.get(e);t&&(Ke(e,"message",{value:t.message}),Ke(e,"stack",{value:t.stack}))}const ps=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let _t=[],gt=[];function Lr(){var e=_t;_t=[],Sr(e)}function Yr(){var e=gt;gt=[],Sr(e)}function ys(e){_t.length===0&&queueMicrotask(Lr),_t.push(e)}function $s(e){gt.length===0&&ps(Yr),gt.push(e)}function ws(){_t.length>0&&Lr(),gt.length>0&&Yr()}function xs(){const e=A.b;return e===null&&rs(),e}function Qt(e){var t=oe|ue,r=C!==null&&(C.f&oe)!==0?C:null;return A===null||r!==null&&(r.f&le)!==0?t|=le:A.f|=et,{ctx:ve,deps:null,effects:null,equals:Vr,f:t,fn:e,reactions:null,rv:0,v:J,wv:0,parent:r??A,ac:null}}function Es(e,t){let r=A;r===null&&ns();var n=r.b,s=void 0,i=nr(J),o=null,l=!C;return Fs(()=>{try{var a=e();o&&Promise.resolve(a).catch(()=>{})}catch(h){a=Promise.reject(h)}var u=()=>a;s=o?.then(u,u)??Promise.resolve(a),o=s;var f=q,d=n.is_pending();l&&(n.update_pending_count(1),d||f.increment());const $=(h,p=void 0)=>{o=null,d||f.activate(),p?p!==Jt&&(i.f|=He,sr(i,p)):((i.f&He)!==0&&(i.f^=He),sr(i,h)),l&&(n.update_pending_count(-1),d||f.decrement()),qr()};if(s.then($,h=>$(null,h||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(a=>{function u(f){function d(){f===s?a(i):u(s)}f.then(d,d)}u(s)})}function ks(e){const t=Qt(e);return t.equals=Ar,t}function Fr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ae(t[r])}}function Ss(e){for(var t=e.parent;t!==null;){if((t.f&oe)===0)return t;t=t.parent}return null}function er(e){var t,r=A;$e(Ss(e));try{Fr(e),t=_n(e)}finally{$e(r)}return t}function Hr(e){var t=er(e);if(e.equals(t)||(e.v=t,e.wv=vn()),!Ge){var r=(Re||(e.f&le)!==0)&&e.deps!==null?Ne:Z;ie(e,r)}}function js(e,t,r){const n=Qt;if(t.length===0){r(e.map(n));return}var s=q,i=A,o=Ts(),l=xs();Promise.all(t.map(a=>Es(a))).then(a=>{s?.activate(),o();try{r([...e.map(n),...a])}catch(u){(i.f&Fe)===0&&Kt(u,i)}s?.deactivate(),qr()}).catch(a=>{l.error(a)})}function Ts(){var e=A,t=C,r=ve,n=q;return function(){$e(e),ce(t),St(r),n?.activate()}}function qr(){$e(null),ce(null),St(null)}const tr=new Set;let q=null,jt=null,Ur=new Set,Tt=[];function Wr(){const e=Tt.shift();Tt.length>0&&queueMicrotask(Wr),e()}let qe=[],Mt=null,rr=!1,Ot=!1;class Ue{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#c=!1;#s=[];#o=[];#i=[];#n=[];#a=[];#f=[];#d=[];skipped_effects=new Set;process(t){qe=[],jt=null;for(const s of t)this.#h(s);if(this.#s.length===0&&this.#r===0){this.#b();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#a=[],jt=q,q=null,zr(r),zr(n),q===null?q=this:tr.delete(this),this.#u?.resolve()}else this.#l(this.#i),this.#l(this.#n),this.#l(this.#a);for(const s of this.#s)it(s);for(const s of this.#o)it(s);this.#s=[],this.#o=[]}#h(t){t.f^=Z;for(var r=t.first;r!==null;){var n=r.f,s=(n&(Ee|Oe))!==0,i=s&&(n&Z)!==0,o=i||(n&De)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(s)r.f^=Z;else if((n&Ut)!==0)this.#n.push(r);else if((n&Z)===0)if((n&Xt)!==0){var l=r.b?.is_pending()?this.#o:this.#s;l.push(r)}else Dt(r)&&((r.f&Qe)!==0&&this.#a.push(r),it(r));var a=r.first;if(a!==null){r=a;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&ue)!==0?this.#f:this.#d).push(r),ie(r,Z);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){q=this}deactivate(){q=null,jt=null;for(const t of Ur)if(Ur.delete(t),t(),q!==null)break}neuter(){this.#c=!0}flush(){qe.length>0?Br():this.#b(),q===this&&(this.#r===0&&tr.delete(this),this.deactivate())}#b(){if(!this.#c)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#f)ie(t,ue),rt(t);for(const t of this.#d)ie(t,Ne),rt(t);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Qn()).promise}static ensure(){if(q===null){const t=q=new Ue;tr.add(q),Ot||Ue.enqueue(()=>{q===t&&t.flush()})}return q}static enqueue(t){Tt.length===0&&queueMicrotask(Wr),Tt.unshift(t)}}function tt(e){var t=Ot;Ot=!0;try{for(var r;;){if(ws(),qe.length===0&&(q?.flush(),qe.length===0))return Mt=null,r;Br()}}finally{Ot=t}}function Br(){var e=st;rr=!0;try{var t=0;for(fn(!0);qe.length>0;){var r=Ue.ensure();if(t++>1e3){var n,s;Ms()}r.process(qe),Ve.clear()}}finally{rr=!1,fn(e),Mt=null}}function Ms(){try{as()}catch(e){Kt(e,Mt)}}let We=null;function zr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Fe|De))===0&&Dt(n)&&(We=[],it(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?an(n):n.fn=null),We?.length>0)){Ve.clear();for(const s of We)it(s);We=[]}}We=null}}function rt(e){for(var t=Mt=e;t.parent!==null;){t=t.parent;var r=t.f;if(rr&&t===A&&(r&Qe)!==0)return;if((r&(Oe|Ee))!==0){if((r&Z)===0)return;t.f^=Z}}qe.push(t)}const Ve=new Map;function nr(e,t){var r={f:0,v:e,reactions:null,equals:Vr,rv:0,wv:0};return r}function Y(e,t){const r=nr(e);return Bs(r),r}function Os(e,t=!1,r=!0){const n=nr(e);return t||(n.equals=Ar),n}function R(e,t,r=!1){C!==null&&(!ye||(C.f&Tr)!==0)&&Ir()&&(C.f&(oe|Qe|Xt|Tr))!==0&&!je?.includes(e)&&ds();let n=r?Be(t):t;return sr(e,n)}function sr(e,t){if(!e.equals(t)){var r=e.v;Ge?Ve.set(e,t):Ve.set(e,r),e.v=t;var n=Ue.ensure();n.capture(e,r),(e.f&oe)!==0&&((e.f&ue)!==0&&er(e),ie(e,(e.f&le)===0?Z:Ne)),e.wv=vn(),Gr(e,ue),A!==null&&(A.f&Z)!==0&&(A.f&(Ee|Oe))===0&&(fe===null?zs([e]):fe.push(e))}return t}function ir(e){R(e,e.v+1)}function Gr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,l=(o&ue)===0;l&&ie(i,t),(o&oe)!==0?Gr(i,Ne):l&&((o&Qe)!==0&&We!==null&&We.push(i),rt(i))}}function Be(e){if(typeof e!="object"||e===null||Et in e)return e;const t=Er(e);if(t!==Zn&&t!==Kn)return e;var r=new Map,n=xr(e),s=Y(0),i=Xe,o=l=>{if(Xe===i)return l();var a=C,u=Xe;ce(null),hn(i);var f=l();return ce(a),hn(u),f};return n&&r.set("length",Y(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&cs();var f=r.get(a);return f===void 0?f=o(()=>{var d=Y(u.value);return r.set(a,d),d}):R(f,u.value,!0),!0},deleteProperty(l,a){var u=r.get(a);if(u===void 0){if(a in l){const f=o(()=>Y(J));r.set(a,f),ir(s)}}else R(u,J),ir(s);return!0},get(l,a,u){if(a===Et)return e;var f=r.get(a),d=a in l;if(f===void 0&&(!d||Ye(l,a)?.writable)&&(f=o(()=>{var h=Be(d?l[a]:J),p=Y(h);return p}),r.set(a,f)),f!==void 0){var $=g(f);return $===J?void 0:$}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var f=r.get(a);f&&(u.value=g(f))}else if(u===void 0){var d=r.get(a),$=d?.v;if(d!==void 0&&$!==J)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return u},has(l,a){if(a===Et)return!0;var u=r.get(a),f=u!==void 0&&u.v!==J||Reflect.has(l,a);if(u!==void 0||A!==null&&(!f||Ye(l,a)?.writable)){u===void 0&&(u=o(()=>{var $=f?Be(l[a]):J,h=Y($);return h}),r.set(a,u));var d=g(u);if(d===J)return!1}return f},set(l,a,u,f){var d=r.get(a),$=a in l;if(n&&a==="length")for(var h=u;h<d.v;h+=1){var p=r.get(h+"");p!==void 0?R(p,J):h in l&&(p=o(()=>Y(J)),r.set(h+"",p))}if(d===void 0)(!$||Ye(l,a)?.writable)&&(d=o(()=>Y(void 0)),R(d,Be(u)),r.set(a,d));else{$=d.v!==J;var E=o(()=>Be(u));R(d,E)}var I=Reflect.getOwnPropertyDescriptor(l,a);if(I?.set&&I.set.call(f,u),!$){if(n&&typeof a=="string"){var M=r.get("length"),S=Number(a);Number.isInteger(S)&&S>=M.v&&R(M,S+1)}ir(s)}return!0},ownKeys(l){g(s);var a=Reflect.ownKeys(l).filter(d=>{var $=r.get(d);return $===void 0||$.v!==J});for(var[u,f]of r)f.v!==J&&!(u in l)&&a.push(u);return a},setPrototypeOf(){fs()}})}var Xr,Jr,Zr,Kr;function or(){if(Xr===void 0){Xr=window,Jr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Zr=Ye(t,"firstChild").get,Kr=Ye(t,"nextSibling").get,kr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),kr(r)&&(r.__t=void 0)}}function ze(e=""){return document.createTextNode(e)}function nt(e){return Zr.call(e)}function ke(e){return Kr.call(e)}function se(e,t){if(!L)return nt(e);var r=nt(B);return r===null&&(r=B.appendChild(ze())),ge(r),r}function K(e,t=1,r=!1){let n=L?B:e;for(var s;t--;)s=n,n=ke(n);if(!L)return n;if(r&&n?.nodeType!==Nr){var i=ze();return n===null?s?.after(i):n.before(i),ge(i),i}return ge(n),n}function Ns(e){e.textContent=""}function Ds(){return!1}let Qr=!1;function en(){Qr||(Qr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Nt(e){var t=C,r=A;ce(null),$e(null);try{return e()}finally{ce(t),$e(r)}}function Vs(e,t,r,n=r){e.addEventListener(t,()=>Nt(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),en()}function As(e){A===null&&C===null&&os(),C!==null&&(C.f&le)!==0&&A===null&&is(),Ge&&ss()}function Rs(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function pe(e,t,r,n=!0){var s=A;s!==null&&(s.f&De)!==0&&(e|=De);var i={ctx:ve,deps:null,nodes_start:null,nodes_end:null,f:e|ue,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{it(i),i.f|=Bt}catch(a){throw Ae(i),a}else t!==null&&rt(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&et)===0&&(o=o.first),o!==null&&(o.parent=s,s!==null&&Rs(o,s),C!==null&&(C.f&oe)!==0&&(e&Oe)===0)){var l=C;(l.effects??=[]).push(o)}}return i}function Cs(e){const t=pe(Wt,null,!1);return ie(t,Z),t.teardown=e,t}function Is(e){As();var t=A.f,r=!C&&(t&Ee)!==0&&(t&Bt)===0;if(r){var n=ve;(n.e??=[]).push(e)}else return tn(e)}function tn(e){return pe(Ut|es,e,!1)}function Ps(e){Ue.ensure();const t=pe(Oe|et,e,!0);return()=>{Ae(t)}}function Ls(e){Ue.ensure();const t=pe(Oe|et,e,!0);return(r={})=>new Promise(n=>{r.outro?ln(t,()=>{Ae(t),n(void 0)}):(Ae(t),n(void 0))})}function Ys(e){return pe(Ut,e,!1)}function Fs(e){return pe(Xt|et,e,!0)}function rn(e,t=0){return pe(Wt|t,e,!0)}function Se(e,t=[],r=[]){js(t,r,n=>{pe(Wt,()=>e(...n.map(g)),!0)})}function nn(e,t=0){var r=pe(Qe|t,e,!0);return r}function ar(e,t=!0){return pe(Ee|et,e,!0,t)}function sn(e){var t=e.teardown;if(t!==null){const r=Ge,n=C;dn(!0),ce(null);try{t.call(null)}finally{dn(r),ce(n)}}}function on(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Nt(()=>{s.abort(Jt)});var n=r.next;(r.f&Oe)!==0?r.parent=null:Ae(r,t),r=n}}function Hs(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ee)===0&&Ae(t),t=r}}function Ae(e,t=!0){var r=!1;(t||(e.f&Mr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(qs(e.nodes_start,e.nodes_end),r=!0),on(e,t&&!r),Vt(e,0),ie(e,Fe);var n=e.transitions;if(n!==null)for(const i of n)i.stop();sn(e);var s=e.parent;s!==null&&s.first!==null&&an(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function qs(e,t){for(;e!==null;){var r=e===t?null:ke(e);e.remove(),e=r}}function an(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function ln(e,t){var r=[];un(e,r,!0),Us(r,()=>{Ae(e),t&&t()})}function Us(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function un(e,t,r){if((e.f&De)===0){if(e.f^=De,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&zt)!==0||(n.f&Ee)!==0;un(n,t,i?r:!1),n=s}}}function Ws(e){cn(e,!0)}function cn(e,t){if((e.f&De)!==0){e.f^=De,(e.f&Z)===0&&(ie(e,ue),rt(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&zt)!==0||(r.f&Ee)!==0;cn(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let st=!1;function fn(e){st=e}let Ge=!1;function dn(e){Ge=e}let C=null,ye=!1;function ce(e){C=e}let A=null;function $e(e){A=e}let je=null;function Bs(e){C!==null&&(je===null?je=[e]:je.push(e))}let Q=null,ae=0,fe=null;function zs(e){fe=e}let bn=1,pt=0,Xe=pt;function hn(e){Xe=e}let Re=!1;function vn(){return++bn}function Dt(e){var t=e.f;if((t&ue)!==0)return!0;if((t&Ne)!==0){var r=e.deps,n=(t&le)!==0;if(r!==null){var s,i,o=(t&xt)!==0,l=n&&A!==null&&!Re,a=r.length;if((o||l)&&(A===null||(A.f&Fe)===0)){var u=e,f=u.parent;for(s=0;s<a;s++)i=r[s],(o||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);o&&(u.f^=xt),l&&f!==null&&(f.f&le)===0&&(u.f^=le)}for(s=0;s<a;s++)if(i=r[s],Dt(i)&&Hr(i),i.wv>e.wv)return!0}(!n||A!==null&&!Re)&&ie(e,Z)}return!1}function mn(e,t,r=!0){var n=e.reactions;if(n!==null&&!je?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&oe)!==0?mn(i,t,!1):t===i&&(r?ie(i,ue):(i.f&Z)!==0&&ie(i,Ne),rt(i))}}function _n(e){var t=Q,r=ae,n=fe,s=C,i=Re,o=je,l=ve,a=ye,u=Xe,f=e.f;Q=null,ae=0,fe=null,Re=(f&le)!==0&&(ye||!st||C===null),C=(f&(Ee|Oe))===0?e:null,je=null,St(e.ctx),ye=!1,Xe=++pt,e.ac!==null&&(Nt(()=>{e.ac.abort(Jt)}),e.ac=null);try{e.f|=Gt;var d=e.fn,$=d(),h=e.deps;if(Q!==null){var p;if(Vt(e,ae),h!==null&&ae>0)for(h.length=ae+Q.length,p=0;p<Q.length;p++)h[ae+p]=Q[p];else e.deps=h=Q;if(!Re||(f&oe)!==0&&e.reactions!==null)for(p=ae;p<h.length;p++)(h[p].reactions??=[]).push(e)}else h!==null&&ae<h.length&&(Vt(e,ae),h.length=ae);if(Ir()&&fe!==null&&!ye&&h!==null&&(e.f&(oe|Ne|ue))===0)for(p=0;p<fe.length;p++)mn(fe[p],e);return s!==null&&s!==e&&(pt++,fe!==null&&(n===null?n=fe:n.push(...fe))),(e.f&He)!==0&&(e.f^=He),$}catch(E){return gs(E)}finally{e.f^=Gt,Q=t,ae=r,fe=n,C=s,Re=i,je=o,St(l),ye=a,Xe=u}}function Gs(e,t){let r=t.reactions;if(r!==null){var n=Gn.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&oe)!==0&&(Q===null||!Q.includes(t))&&(ie(t,Ne),(t.f&(le|xt))===0&&(t.f^=xt),Fr(t),Vt(t,0))}function Vt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Gs(e,r[n])}function it(e){var t=e.f;if((t&Fe)===0){ie(e,Z);var r=A,n=st;A=e,st=!0;try{(t&Qe)!==0?Hs(e):on(e),sn(e);var s=_n(e);e.teardown=typeof s=="function"?s:null,e.wv=bn;var i;wr&&ms&&(e.f&ue)!==0&&e.deps}finally{st=n,A=r}}}async function Xs(){await Promise.resolve(),tt()}function g(e){var t=e.f,r=(t&oe)!==0;if(C!==null&&!ye){var n=A!==null&&(A.f&Fe)!==0;if(!n&&!je?.includes(e)){var s=C.deps;if((C.f&Gt)!==0)e.rv<pt&&(e.rv=pt,Q===null&&s!==null&&s[ae]===e?ae++:Q===null?Q=[e]:(!Re||!Q.includes(e))&&Q.push(e));else{(C.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[C]:i.includes(C)||i.push(C)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,l=o.parent;l!==null&&(l.f&le)===0&&(o.f^=le)}if(Ge){if(Ve.has(e))return Ve.get(e);if(r){o=e;var a=o.v;return((o.f&Z)===0&&o.reactions!==null||gn(o))&&(a=er(o)),Ve.set(o,a),a}}else r&&(o=e,Dt(o)&&Hr(o));if((e.f&He)!==0)throw e.v;return e.v}function gn(e){if(e.v===J)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ve.has(t)||(t.f&oe)!==0&&gn(t))return!0;return!1}function pn(e){var t=ye;try{return ye=!0,e()}finally{ye=t}}const Js=-7169;function ie(e,t){e.f=e.f&Js|t}const yn=new Set,lr=new Set;function Zs(e,t,r,n={}){function s(i){if(n.capture||yt.call(t,i),!i.cancelBubble)return Nt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ys(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function ot(e,t,r,n,s){var i={capture:n,passive:s},o=Zs(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Cs(()=>{t.removeEventListener(e,o,i)})}function Ks(e){for(var t=0;t<e.length;t++)yn.add(e[t]);for(var r of lr)r(e)}let $n=null;function yt(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;$n=e;var o=0,l=$n===e&&e.__root;if(l){var a=s.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;a<=u&&(o=a)}if(i=s[o]||e.target,i!==t){Ke(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=C,d=A;ce(null),$e(null);try{for(var $,h=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var E=i["__"+n];if(E!=null&&(!i.disabled||e.target===i))if(xr(E)){var[I,...M]=E;I.apply(i,[e,...M])}else E.call(i,e)}catch(S){$?h.push(S):$=S}if(e.cancelBubble||p===t||p===null)break;i=p}if($){for(let S of h)queueMicrotask(()=>{throw S});throw $}}finally{e.__root=t,delete e.currentTarget,ce(f),$e(d)}}}let de;function Qs(){de=void 0}function ei(e){let t=null,r=L;var n;if(L){for(t=B,de===void 0&&(de=nt(document.head));de!==null&&(de.nodeType!==mt||de.data!==qt);)de=ke(de);de===null?_e(!1):de=ge(ke(de))}L||(n=document.head.appendChild(ze()));try{nn(()=>e(n),Mr)}finally{r&&(_e(!0),de=B,ge(t))}}function ti(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function at(e,t){var r=A;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Te(e,t){var r=(t&Wn)!==0,n=(t&Bn)!==0,s,i=!e.startsWith("<!>");return()=>{if(L)return at(B,null),B;s===void 0&&(s=ti(i?e:"<!>"+e),r||(s=nt(s)));var o=n||Jr?document.importNode(s,!0):s.cloneNode(!0);if(r){var l=nt(o),a=o.lastChild;at(l,a)}else at(o,o);return o}}function ri(e=""){if(!L){var t=ze(e+"");return at(t,t),t}var r=B;return r.nodeType!==Nr&&(r.before(r=ze()),ge(r)),at(r,r),r}function me(e,t){if(L){A.nodes_end=B,Zt();return}e!==null&&e.before(t)}const ni=["touchstart","touchmove"];function si(e){return ni.includes(e)}function ii(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function wn(e,t){return xn(e,t)}function oi(e,t){or(),t.intro=t.intro??!1;const r=t.target,n=L,s=B;try{for(var i=nt(r);i&&(i.nodeType!==mt||i.data!==qt);)i=ke(i);if(!i)throw Ze;_e(!0),ge(i),Zt();const o=xn(e,{...t,anchor:i});if(B===null||B.nodeType!==mt||B.data!==$r)throw kt(),Ze;return _e(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Ze&&console.warn("Failed to hydrate: ",o),t.recover===!1&&ls(),or(),Ns(r),_e(!1),wn(e,t)}finally{_e(n),ge(s),Qs()}}const lt=new Map;function xn(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){or();var l=new Set,a=d=>{for(var $=0;$<d.length;$++){var h=d[$];if(!l.has(h)){l.add(h);var p=si(h);t.addEventListener(h,yt,{passive:p});var E=lt.get(h);E===void 0?(document.addEventListener(h,yt,{passive:p}),lt.set(h,1)):lt.set(h,E+1)}}};a(Xn(yn)),lr.add(a);var u=void 0,f=Ls(()=>{var d=r??t.appendChild(ze());return ar(()=>{if(i){Rr({});var $=ve;$.c=i}s&&(n.$$events=s),L&&at(d,null),u=e(d,n)||{},L&&(A.nodes_end=B),i&&Cr()}),()=>{for(var $ of l){t.removeEventListener($,yt);var h=lt.get($);--h===0?(document.removeEventListener($,yt),lt.delete($)):lt.set($,h)}lr.delete(a),d!==r&&d.parentNode?.removeChild(d)}});return ur.set(u,f),u}let ur=new WeakMap;function ai(e,t){const r=ur.get(e);return r?(ur.delete(e),r(t)):Promise.resolve()}function ut(e,t,r=!1){L&&Zt();var n=e,s=null,i=null,o=J,l=r?zt:0,a=!1;const u=(h,p=!0)=>{a=!0,$(p,h)};var f=null;function d(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var h=o?s:i,p=o?i:s;h&&Ws(h),p&&ln(p,()=>{o?i=null:s=null})}const $=(h,p)=>{if(o===(o=h))return;let E=!1;if(L){const te=hs(n)===yr;!!o===te&&(n=bs(),ge(n),_e(!1),E=!0)}var I=Ds(),M=n;if(I&&(f=document.createDocumentFragment(),f.append(M=ze())),o?s??=p&&ar(()=>p(M)):i??=p&&ar(()=>p(M)),I){var S=q,F=o?s:i,ee=o?i:s;F&&S.skipped_effects.delete(F),ee&&S.skipped_effects.add(ee),S.add_callback(d)}else d();E&&_e(!0)};nn(()=>{a=!1,t(u),a||$(null,null)},l),L&&(n=B)}function li(e,t){Ys(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function ui(e,t,r){var n=""+e;return n}function ci(e,t){return e==null?null:String(e)}function En(e,t,r,n,s,i){var o=e.__className;if(L||o!==r||o===void 0){var l=ui(r);(!L||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return i}function kn(e,t,r,n){var s=e.__style;if(L||s!==t){var i=ci(t);(!L||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const fi=Symbol("is custom element"),di=Symbol("is html");function ct(e){if(L){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;At(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;At(e,"checked",null),e.checked=s}}};e.__on_r=r,$s(r),en()}}function At(e,t,r,n){var s=bi(e);L&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[ts]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Sn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ce(e,t,r){var n=C,s=A;let i=L;L&&_e(!1),ce(null),$e(null);try{t!=="style"&&(cr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Sn(e).includes(t):r&&typeof r=="object")?e[t]=r:At(e,t,r==null?r:String(r))}finally{ce(n),$e(s),i&&_e(!0)}}function bi(e){return e.__attributes??={[fi]:e.nodeName.includes("-"),[di]:e.namespaceURI===zn}}var cr=new Map;function Sn(e){var t=e.getAttribute("is")||e.nodeName,r=cr.get(t);if(r)return r;cr.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Jn(s);for(var o in n)n[o].set&&r.push(o);s=Er(s)}return r}function ft(e,t,r=t){var n=new WeakSet;Vs(e,"input",async s=>{var i=s?e.defaultValue:e.value;if(i=fr(e)?dr(i):i,r(i),q!==null&&n.add(q),await Xs(),i!==(i=t())){var o=e.selectionStart,l=e.selectionEnd;e.value=i??"",l!==null&&(e.selectionStart=o,e.selectionEnd=Math.min(l,e.value.length))}}),(L&&e.defaultValue!==e.value||pn(t)==null&&e.value)&&(r(fr(e)?dr(e.value):e.value),q!==null&&n.add(q)),rn(()=>{var s=t();if(e===document.activeElement){var i=jt??q;if(n.has(i))return}fr(e)&&s===dr(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function fr(e){var t=e.type;return t==="number"||t==="range"}function dr(e){return e===""?null:+e}let Rt=!1;function hi(e){var t=Rt;try{return Rt=!1,[e(),Rt]}finally{Rt=t}}function Ct(e,t,r,n){var s=(r&qn)!==0,i=(r&Un)!==0,o=n,l=!0,a=()=>(l&&(l=!1,o=i?pn(n):n),o),u;if(s){var f=Et in e||Or in e;u=Ye(e,t)?.set??(f&&t in e?S=>e[t]=S:void 0)}var d,$=!1;s?[d,$]=hi(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=a(),u&&(us(),u(d)));var h;if(h=()=>{var S=e[t];return S===void 0?a():(l=!0,S)},(r&Hn)===0)return h;if(u){var p=e.$$legacy;return(function(S,F){return arguments.length>0?((!F||p||$)&&u(F?h():S),S):h()})}var E=!1,I=((r&Fn)!==0?Qt:ks)(()=>(E=!1,h()));s&&g(I);var M=A;return(function(S,F){if(arguments.length>0){const ee=F?g(I):s?Be(S):S;return R(I,ee),E=!0,o!==void 0&&(o=ee),S}return Ge&&E||(M.f&Fe)!==0?I.v:g(I)})}function vi(e){return new mi(e)}class mi{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var l=Os(o,!1,!1);return r.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return g(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Or?!0:(g(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return R(r.get(o)??n(o,l),l),Reflect.set(i,o,l)}});this.#e=(t.hydrate?oi:wn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ke(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{ai(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let jn;typeof HTMLElement=="function"&&(jn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),me(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=_i(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=It(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=vi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ps(()=>{rn(()=>{this.$$r=!0;for(const n of wt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=It(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=It(e,r,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 wt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function It(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function _i(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function gi(e,t,r,n,s,i){let o=class extends jn{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return wt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return wt(t).forEach(l=>{Ke(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=It(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var f=Ye(u,l)?.get;f?u[l]=a:u.$set({[l]:a})}}})}),n.forEach(l=>{Ke(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pt={exports:{}},pi=Pt.exports,Tn;function yi(){return Tn||(Tn=1,(function(e,t){(function(r,n){e.exports=n()})(pi,(function(){var r=1e3,n=6e4,s=36e5,i="millisecond",o="second",l="minute",a="hour",u="day",f="week",d="month",$="quarter",h="year",p="date",E="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(c){var b=["th","st","nd","rd"],v=c%100;return"["+c+(b[(v-20)%10]||b[v]||b[0])+"]"}},F=function(c,b,v){var x=String(c);return!x||x.length>=b?c:""+Array(b+1-x.length).join(v)+c},ee={s:F,z:function(c){var b=-c.utcOffset(),v=Math.abs(b),x=Math.floor(v/60),m=v%60;return(b<=0?"+":"-")+F(x,2,"0")+":"+F(m,2,"0")},m:function c(b,v){if(b.date()<v.date())return-c(v,b);var x=12*(v.year()-b.year())+(v.month()-b.month()),m=b.clone().add(x,d),O=v-m<0,T=b.clone().add(x+(O?-1:1),d);return+(-(x+(v-m)/(O?m-T:T-m))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return{M:d,y:h,w:f,d:u,D:p,h:a,m:l,s:o,ms:i,Q:$}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return c===void 0}},te="en",D={};D[te]=S;var w="$isDayjsObject",_=function(c){return c instanceof U||!(!c||!c[w])},V=function c(b,v,x){var m;if(!b)return te;if(typeof b=="string"){var O=b.toLowerCase();D[O]&&(m=O),v&&(D[O]=v,m=O);var T=b.split("-");if(!m&&T.length>1)return c(T[0])}else{var P=b.name;D[P]=b,m=P}return!x&&m&&(te=m),m||!x&&te},N=function(c,b){if(_(c))return c.clone();var v=typeof b=="object"?b:{};return v.date=c,v.args=arguments,new U(v)},k=ee;k.l=V,k.i=_,k.w=function(c,b){return N(c,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var U=(function(){function c(v){this.$L=V(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[w]=!0}var b=c.prototype;return b.parse=function(v){this.$d=(function(x){var m=x.date,O=x.utc;if(m===null)return new Date(NaN);if(k.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var T=m.match(I);if(T){var P=T[2]-1||0,W=(T[7]||"0").substring(0,3);return O?new Date(Date.UTC(T[1],P,T[3]||1,T[4]||0,T[5]||0,T[6]||0,W)):new Date(T[1],P,T[3]||1,T[4]||0,T[5]||0,T[6]||0,W)}}return new Date(m)})(v),this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return k},b.isValid=function(){return this.$d.toString()!==E},b.isSame=function(v,x){var m=N(v);return this.startOf(x)<=m&&m<=this.endOf(x)},b.isAfter=function(v,x){return N(v)<this.startOf(x)},b.isBefore=function(v,x){return this.endOf(x)<N(v)},b.$g=function(v,x,m){return k.u(v)?this[x]:this.set(m,v)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(v,x){var m=this,O=!!k.u(x)||x,T=k.p(v),P=function(be,G){var he=k.w(m.$u?Date.UTC(m.$y,G,be):new Date(m.$y,G,be),m);return O?he:he.endOf(u)},W=function(be,G){return k.w(m.toDate()[be].apply(m.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(G)),m)},z=this.$W,X=this.$M,re=this.$D,we="set"+(this.$u?"UTC":"");switch(T){case h:return O?P(1,0):P(31,11);case d:return O?P(1,X):P(0,X+1);case f:var xe=this.$locale().weekStart||0,Ie=(z<xe?z+7:z)-xe;return P(O?re-Ie:re+(6-Ie),X);case u:case p:return W(we+"Hours",0);case a:return W(we+"Minutes",1);case l:return W(we+"Seconds",2);case o:return W(we+"Milliseconds",3);default:return this.clone()}},b.endOf=function(v){return this.startOf(v,!1)},b.$set=function(v,x){var m,O=k.p(v),T="set"+(this.$u?"UTC":""),P=(m={},m[u]=T+"Date",m[p]=T+"Date",m[d]=T+"Month",m[h]=T+"FullYear",m[a]=T+"Hours",m[l]=T+"Minutes",m[o]=T+"Seconds",m[i]=T+"Milliseconds",m)[O],W=O===u?this.$D+(x-this.$W):x;if(O===d||O===h){var z=this.clone().set(p,1);z.$d[P](W),z.init(),this.$d=z.set(p,Math.min(this.$D,z.daysInMonth())).$d}else P&&this.$d[P](W);return this.init(),this},b.set=function(v,x){return this.clone().$set(v,x)},b.get=function(v){return this[k.p(v)]()},b.add=function(v,x){var m,O=this;v=Number(v);var T=k.p(x),P=function(X){var re=N(O);return k.w(re.date(re.date()+Math.round(X*v)),O)};if(T===d)return this.set(d,this.$M+v);if(T===h)return this.set(h,this.$y+v);if(T===u)return P(1);if(T===f)return P(7);var W=(m={},m[l]=n,m[a]=s,m[o]=r,m)[T]||1,z=this.$d.getTime()+v*W;return k.w(z,this)},b.subtract=function(v,x){return this.add(-1*v,x)},b.format=function(v){var x=this,m=this.$locale();if(!this.isValid())return m.invalidDate||E;var O=v||"YYYY-MM-DDTHH:mm:ssZ",T=k.z(this),P=this.$H,W=this.$m,z=this.$M,X=m.weekdays,re=m.months,we=m.meridiem,xe=function(G,he,Pe,Me){return G&&(G[he]||G(x,O))||Pe[he].slice(0,Me)},Ie=function(G){return k.s(P%12||12,G,"0")},be=we||function(G,he,Pe){var Me=G<12?"AM":"PM";return Pe?Me.toLowerCase():Me};return O.replace(M,(function(G,he){return he||(function(Pe){switch(Pe){case"YY":return String(x.$y).slice(-2);case"YYYY":return k.s(x.$y,4,"0");case"M":return z+1;case"MM":return k.s(z+1,2,"0");case"MMM":return xe(m.monthsShort,z,re,3);case"MMMM":return xe(re,z);case"D":return x.$D;case"DD":return k.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return xe(m.weekdaysMin,x.$W,X,2);case"ddd":return xe(m.weekdaysShort,x.$W,X,3);case"dddd":return X[x.$W];case"H":return String(P);case"HH":return k.s(P,2,"0");case"h":return Ie(1);case"hh":return Ie(2);case"a":return be(P,W,!0);case"A":return be(P,W,!1);case"m":return String(W);case"mm":return k.s(W,2,"0");case"s":return String(x.$s);case"ss":return k.s(x.$s,2,"0");case"SSS":return k.s(x.$ms,3,"0");case"Z":return T}return null})(G)||T.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(v,x,m){var O,T=this,P=k.p(x),W=N(v),z=(W.utcOffset()-this.utcOffset())*n,X=this-W,re=function(){return k.m(T,W)};switch(P){case h:O=re()/12;break;case d:O=re();break;case $:O=re()/3;break;case f:O=(X-z)/6048e5;break;case u:O=(X-z)/864e5;break;case a:O=X/s;break;case l:O=X/n;break;case o:O=X/r;break;default:O=X}return m?O:k.a(O)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return D[this.$L]},b.locale=function(v,x){if(!v)return this.$L;var m=this.clone(),O=V(v,x,!0);return O&&(m.$L=O),m},b.clone=function(){return k.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},c})(),j=U.prototype;return N.prototype=j,[["$ms",i],["$s",o],["$m",l],["$H",a],["$W",u],["$M",d],["$y",h],["$D",p]].forEach((function(c){j[c[1]]=function(b){return this.$g(b,c[0],c[1])}})),N.extend=function(c,b){return c.$i||(c(b,U,N),c.$i=!0),N},N.locale=V,N.isDayjs=_,N.unix=function(c){return N(1e3*c)},N.en=D[te],N.Ls=D,N.p={},N}))})(Pt)),Pt.exports}var $i=yi();const dt=br($i),Mn={version:"0.61.39"};var Lt={exports:{}},wi=Lt.exports,On;function xi(){return On||(On=1,(function(e,t){(function(r,n){e.exports=n()})(wi,(function(){var r,n,s=1e3,i=6e4,o=36e5,l=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,f=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,$={years:u,months:f,days:l,hours:o,minutes:i,seconds:s,milliseconds:1,weeks:6048e5},h=function(D){return D instanceof ee},p=function(D,w,_){return new ee(D,_,w.$l)},E=function(D){return n.p(D)+"s"},I=function(D){return D<0},M=function(D){return I(D)?Math.ceil(D):Math.floor(D)},S=function(D){return Math.abs(D)},F=function(D,w){return D?I(D)?{negative:!0,format:""+S(D)+w}:{negative:!1,format:""+D+w}:{negative:!1,format:""}},ee=(function(){function D(_,V,N){var k=this;if(this.$d={},this.$l=N,_===void 0&&(this.$ms=0,this.parseFromMilliseconds()),V)return p(_*$[E(V)],this);if(typeof _=="number")return this.$ms=_,this.parseFromMilliseconds(),this;if(typeof _=="object")return Object.keys(_).forEach((function(c){k.$d[E(c)]=_[c]})),this.calMilliseconds(),this;if(typeof _=="string"){var U=_.match(d);if(U){var j=U.slice(2).map((function(c){return c!=null?Number(c):0}));return this.$d.years=j[0],this.$d.months=j[1],this.$d.weeks=j[2],this.$d.days=j[3],this.$d.hours=j[4],this.$d.minutes=j[5],this.$d.seconds=j[6],this.calMilliseconds(),this}}return this}var w=D.prototype;return w.calMilliseconds=function(){var _=this;this.$ms=Object.keys(this.$d).reduce((function(V,N){return V+(_.$d[N]||0)*$[N]}),0)},w.parseFromMilliseconds=function(){var _=this.$ms;this.$d.years=M(_/u),_%=u,this.$d.months=M(_/f),_%=f,this.$d.days=M(_/l),_%=l,this.$d.hours=M(_/o),_%=o,this.$d.minutes=M(_/i),_%=i,this.$d.seconds=M(_/s),_%=s,this.$d.milliseconds=_},w.toISOString=function(){var _=F(this.$d.years,"Y"),V=F(this.$d.months,"M"),N=+this.$d.days||0;this.$d.weeks&&(N+=7*this.$d.weeks);var k=F(N,"D"),U=F(this.$d.hours,"H"),j=F(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(1e3*c)/1e3);var b=F(c,"S"),v=_.negative||V.negative||k.negative||U.negative||j.negative||b.negative,x=U.format||j.format||b.format?"T":"",m=(v?"-":"")+"P"+_.format+V.format+k.format+x+U.format+j.format+b.format;return m==="P"||m==="-P"?"P0D":m},w.toJSON=function(){return this.toISOString()},w.format=function(_){var V=_||"YYYY-MM-DDTHH:mm:ss",N={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return V.replace(a,(function(k,U){return U||String(N[k])}))},w.as=function(_){return this.$ms/$[E(_)]},w.get=function(_){var V=this.$ms,N=E(_);return N==="milliseconds"?V%=1e3:V=N==="weeks"?M(V/$[N]):this.$d[N],V||0},w.add=function(_,V,N){var k;return k=V?_*$[E(V)]:h(_)?_.$ms:p(_,this).$ms,p(this.$ms+k*(N?-1:1),this)},w.subtract=function(_,V){return this.add(_,V,!0)},w.locale=function(_){var V=this.clone();return V.$l=_,V},w.clone=function(){return p(this.$ms,this)},w.humanize=function(_){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!_)},w.valueOf=function(){return this.asMilliseconds()},w.milliseconds=function(){return this.get("milliseconds")},w.asMilliseconds=function(){return this.as("milliseconds")},w.seconds=function(){return this.get("seconds")},w.asSeconds=function(){return this.as("seconds")},w.minutes=function(){return this.get("minutes")},w.asMinutes=function(){return this.as("minutes")},w.hours=function(){return this.get("hours")},w.asHours=function(){return this.as("hours")},w.days=function(){return this.get("days")},w.asDays=function(){return this.as("days")},w.weeks=function(){return this.get("weeks")},w.asWeeks=function(){return this.as("weeks")},w.months=function(){return this.get("months")},w.asMonths=function(){return this.as("months")},w.years=function(){return this.get("years")},w.asYears=function(){return this.as("years")},D})(),te=function(D,w,_){return D.add(w.years()*_,"y").add(w.months()*_,"M").add(w.days()*_,"d").add(w.hours()*_,"h").add(w.minutes()*_,"m").add(w.seconds()*_,"s").add(w.milliseconds()*_,"ms")};return function(D,w,_){r=_,n=_().$utils(),_.duration=function(k,U){var j=_.locale();return p(k,{$l:j},U)},_.isDuration=h;var V=w.prototype.add,N=w.prototype.subtract;w.prototype.add=function(k,U){return h(k)?te(this,k,1):V.bind(this)(k,U)},w.prototype.subtract=function(k,U){return h(k)?te(this,k,-1):N.bind(this)(k,U)}}}))})(Lt)),Lt.exports}var Ei=xi();const ki=br(Ei);function Nn(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}var bt={},hr,Dn;function Si(){if(Dn)return hr;Dn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,a=`
3
- `,u="/",f="*",d="",$="comment",h="declaration";hr=function(E,I){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];I=I||{};var M=1,S=1;function F(j){var c=j.match(t);c&&(M+=c.length);var b=j.lastIndexOf(a);S=~b?j.length-b:S+j.length}function ee(){var j={line:M,column:S};return function(c){return c.position=new te(j),_(),c}}function te(j){this.start=j,this.end={line:M,column:S},this.source=I.source}te.prototype.content=E;function D(j){var c=new Error(I.source+":"+M+":"+S+": "+j);if(c.reason=j,c.filename=I.source,c.line=M,c.column=S,c.source=E,!I.silent)throw c}function w(j){var c=j.exec(E);if(c){var b=c[0];return F(b),E=E.slice(b.length),c}}function _(){w(r)}function V(j){var c;for(j=j||[];c=N();)c!==!1&&j.push(c);return j}function N(){var j=ee();if(!(u!=E.charAt(0)||f!=E.charAt(1))){for(var c=2;d!=E.charAt(c)&&(f!=E.charAt(c)||u!=E.charAt(c+1));)++c;if(c+=2,d===E.charAt(c-1))return D("End of comment missing");var b=E.slice(2,c-2);return S+=2,F(b),E=E.slice(c),S+=2,j({type:$,comment:b})}}function k(){var j=ee(),c=w(n);if(c){if(N(),!w(s))return D("property missing ':'");var b=w(i),v=j({type:h,property:p(c[0].replace(e,d)),value:b?p(b[0].replace(e,d)):d});return w(o),v}}function U(){var j=[];V(j);for(var c;c=k();)c!==!1&&(j.push(c),V(j));return j}return _(),U()};function p(E){return E?E.replace(l,d):d}return hr}var Vn;function ji(){if(Vn)return bt;Vn=1;var e=bt&&bt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(bt,"__esModule",{value:!0}),bt.default=r;var t=e(Si());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var o=(0,t.default)(n),l=typeof s=="function";return o.forEach(function(a){if(a.type==="declaration"){var u=a.property,f=a.value;l?s(u,f,a):f&&(i=i||{},i[u]=f)}}),i}return bt}var Ti=ji();const An=br(Ti);An.default;function ht(e,t,r,n,s,i,o,l){t().maxValue=g(r)*3600+g(n)*60+g(s),t().minValue=g(i)*3600+g(o)*60+g(l)}function Rn(e,t,r,n,s){!t()||!t().minValue&&t().minValue!==0||!t().maxValue&&t().maxValue!==0||(r()?R(s,"yes"):(n("dispatchTrack",t()),console.log(t())))}var Mi=Te('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1xr6fjn"/>'),Oi=(e,t)=>g(t).paused?g(t).play():g(t).pause(),Ni=Te('<i class="bi bi-play-fill svelte-1xr6fjn"></i>'),Di=Te('<i class="bi bi-pause-fill svelte-1xr6fjn"></i>'),Vi=Te('<button class="btn btn-outline-dark svelte-1xr6fjn"><!></button>'),Ai=Te('<div style="width: 100%;margin-bottom:15px" class="svelte-1xr6fjn"><div style="display:inline-block; width:50px;" class="svelte-1xr6fjn"><!></div> <div style="display:inline-block;width:calc(100% - 60px);position:relative" class="svelte-1xr6fjn"><hb-range-slider></hb-range-slider></div></div>',2),Ri=(e,t)=>t(e.detail),Ci=Te("<hb-form></hb-form>",2),Ii=(e,t)=>{t("start")},Pi=(e,t,r)=>{t(r().minValue)},Li=(e,t,r)=>{t(r().maxValue)},Yi=(e,t)=>{t("end")},Fi=Te('<button class="btn btn-sm btn-primary svelte-1xr6fjn">send</button>'),Hi=Te('<button class="btn btn-sm btn-primary svelte-1xr6fjn" disabled>send</button>'),qi=Te('<div id="card" class="card h-100 svelte-1xr6fjn"><div class="ratio ratio-16x9 svelte-1xr6fjn" style="background-color: black;"><video id="video" class="ratio ratio-16x9 svelte-1xr6fjn"><source type="video/mp4" class="svelte-1xr6fjn"/> <track kind="captions" src="" srclang="en" label="English" class="svelte-1xr6fjn"/> Your browser does not support the video tag.</video></div> <div class="card-body svelte-1xr6fjn"><!> <!> <div id="controls" class="svelte-1xr6fjn"><div style="flex-grow: 2" class="svelte-1xr6fjn"><button class="btn btn-sm btn-secondary svelte-1xr6fjn">▼</button> <button class="btn btn-sm btn-secondary svelte-1xr6fjn">▲</button> <input type="number" class="form-control form-custom-control-numbers svelte-1xr6fjn"/>h <input class="form-control form-custom-control-numbers svelte-1xr6fjn" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-1xr6fjn"/>s</div> <div style="flex-grow: 2;text-align:center" class="svelte-1xr6fjn"></div> <div style="flex-grow: 2;text-align:right" class="svelte-1xr6fjn"><input type="number" class="form-control form-custom-control-numbers svelte-1xr6fjn"/>h <input class="form-control form-custom-control-numbers svelte-1xr6fjn" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-1xr6fjn"/>s <button class="btn btn-sm btn-secondary svelte-1xr6fjn">▲</button> <button class="btn btn-sm btn-secondary svelte-1xr6fjn">▼</button></div></div></div> <div class="card-footer svelte-1xr6fjn"><span style="float:left;height:30px;line-height:30px" class="svelte-1xr6fjn"><!></span> <span style="float:right;height:30px;line-height:30px" class="svelte-1xr6fjn"><!></span></div></div>',2);const Ui={hash:"svelte-1xr6fjn",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(yr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const qn=1,Wn=4,Un=8,Bn=16,zn=1,Gn=2,Wt="[",wr="[!",$r="]",Ke={},J=Symbol(),Xn="http://www.w3.org/1999/xhtml",xr=!1;var Er=Array.isArray,Jn=Array.prototype.indexOf,Zn=Array.from,xt=Object.keys,Qe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Kn=Object.getOwnPropertyDescriptors,Qn=Object.prototype,es=Array.prototype,kr=Object.getPrototypeOf,Sr=Object.isExtensible;function jr(e){for(var t=0;t<e.length;t++)e[t]()}function ts(){var e,t,r=new Promise((s,n)=>{e=s,t=n});return{promise:r,resolve:e,reject:t}}const oe=2,Ut=4,Bt=8,et=16,Ee=32,De=64,Tr=128,le=256,Et=512,Z=1024,ue=2048,Oe=4096,Ne=8192,Fe=16384,zt=32768,Gt=65536,Mr=1<<17,Dr=1<<18,tt=1<<19,rs=1<<20,Xt=1<<21,Jt=1<<22,He=1<<23,kt=Symbol("$state"),Or=Symbol("legacy props"),ns=Symbol(""),Zt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Nr=3,_t=8;function ss(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function is(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function os(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function as(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ls(e){throw new Error("https://svelte.dev/e/effect_orphan")}function us(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function fs(){throw new Error("https://svelte.dev/e/hydration_failed")}function cs(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ds(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function vs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function St(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let I=!1;function _e(e){I=e}let B;function ge(e){if(e===null)throw St(),Ke;return B=e}function Kt(){return ge(ke(B))}function ne(e){if(I){if(ke(B)!==null)throw St(),Ke;B=e}}function Vr(e=1){if(I){for(var t=e,r=B;t--;)r=ke(r);B=r}}function hs(){for(var e=0,t=B;;){if(t.nodeType===_t){var r=t.data;if(r===$r){if(e===0)return t;e-=1}else(r===Wt||r===wr)&&(e+=1)}var s=ke(t);t.remove(),t=s}}function ms(e){if(!e||e.nodeType!==_t)throw St(),Ke;return e.data}function Ar(e){return e===this.v}function _s(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Cr(e){return!_s(e,this.v)}let gs=!1,he=null;function jt(e){he=e}function Rr(e,t=!1,r){he={p:he,c:null,e:null,s:e,x:null,l:null}}function Pr(e){var t=he,r=t.e;if(r!==null){t.e=null;for(var s of r)rn(s)}return e!==void 0&&(t.x=e),he=t.p,e??{}}function Lr(){return!0}const ps=new WeakMap;function ys(e){var t=A;if(t===null)return R.f|=He,e;if((t.f&zt)===0){if((t.f&Tr)===0)throw!t.parent&&e instanceof Error&&Ir(e),e;t.b.error(e)}else Qt(e,t)}function Qt(e,t){for(;t!==null;){if((t.f&Tr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Ir(e),e}function Ir(e){const t=ps.get(e);t&&(Qe(e,"message",{value:t.message}),Qe(e,"stack",{value:t.stack}))}const ws=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let gt=[],pt=[];function Yr(){var e=gt;gt=[],jr(e)}function Fr(){var e=pt;pt=[],jr(e)}function $s(e){gt.length===0&&queueMicrotask(Yr),gt.push(e)}function xs(e){pt.length===0&&ws(Fr),pt.push(e)}function Es(){gt.length>0&&Yr(),pt.length>0&&Fr()}function ks(){const e=A.b;return e===null&&ss(),e}function er(e){var t=oe|ue,r=R!==null&&(R.f&oe)!==0?R:null;return A===null||r!==null&&(r.f&le)!==0?t|=le:A.f|=tt,{ctx:he,deps:null,effects:null,equals:Ar,f:t,fn:e,reactions:null,rv:0,v:J,wv:0,parent:r??A,ac:null}}function Ss(e,t){let r=A;r===null&&is();var s=r.b,n=void 0,i=sr(J),o=null,a=!R;return qs(()=>{try{var l=e();o&&Promise.resolve(l).catch(()=>{})}catch(b){l=Promise.reject(b)}var u=()=>l;n=o?.then(u,u)??Promise.resolve(l),o=n;var c=q,d=s.is_pending();a&&(s.update_pending_count(1),d||c.increment());const _=(b,y=void 0)=>{o=null,d||c.activate(),y?y!==Zt&&(i.f|=He,ir(i,y)):((i.f&He)!==0&&(i.f^=He),ir(i,b)),a&&(s.update_pending_count(-1),d||c.decrement()),Wr()};if(n.then(_,b=>_(null,b||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),new Promise(l=>{function u(c){function d(){c===n?l(i):u(n)}c.then(d,d)}u(n)})}function js(e){const t=er(e);return t.equals=Cr,t}function Hr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ae(t[r])}}function Ts(e){for(var t=e.parent;t!==null;){if((t.f&oe)===0)return t;t=t.parent}return null}function tr(e){var t,r=A;we(Ts(e));try{Hr(e),t=gn(e)}finally{we(r)}return t}function qr(e){var t=tr(e);if(e.equals(t)||(e.v=t,e.wv=mn()),!Ge){var r=(Ce||(e.f&le)!==0)&&e.deps!==null?Oe:Z;ie(e,r)}}function Ms(e,t,r){const s=er;if(t.length===0){r(e.map(s));return}var n=q,i=A,o=Ds(),a=ks();Promise.all(t.map(l=>Ss(l))).then(l=>{n?.activate(),o();try{r([...e.map(s),...l])}catch(u){(i.f&Fe)===0&&Qt(u,i)}n?.deactivate(),Wr()}).catch(l=>{a.error(l)})}function Ds(){var e=A,t=R,r=he,s=q;return function(){we(e),fe(t),jt(r),s?.activate()}}function Wr(){we(null),fe(null),jt(null)}const rr=new Set;let q=null,Tt=null,Ur=new Set,Mt=[];function Br(){const e=Mt.shift();Mt.length>0&&queueMicrotask(Br),e()}let qe=[],Dt=null,nr=!1,Ot=!1;class We{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#s=[];#o=[];#i=[];#n=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){qe=[],Tt=null;for(const n of t)this.#v(n);if(this.#s.length===0&&this.#r===0){this.#b();var r=this.#i,s=this.#n;this.#i=[],this.#n=[],this.#a=[],Tt=q,q=null,Gr(r),Gr(s),q===null?q=this:rr.delete(this),this.#u?.resolve()}else this.#l(this.#i),this.#l(this.#n),this.#l(this.#a);for(const n of this.#s)ot(n);for(const n of this.#o)ot(n);this.#s=[],this.#o=[]}#v(t){t.f^=Z;for(var r=t.first;r!==null;){var s=r.f,n=(s&(Ee|De))!==0,i=n&&(s&Z)!==0,o=i||(s&Ne)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(n)r.f^=Z;else if((s&Ut)!==0)this.#n.push(r);else if((s&Z)===0)if((s&Jt)!==0){var a=r.b?.is_pending()?this.#o:this.#s;a.push(r)}else Vt(r)&&((r.f&et)!==0&&this.#a.push(r),ot(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&ue)!==0?this.#c:this.#d).push(r),ie(r,Z);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){q=this}deactivate(){q=null,Tt=null;for(const t of Ur)if(Ur.delete(t),t(),q!==null)break}neuter(){this.#f=!0}flush(){qe.length>0?zr():this.#b(),q===this&&(this.#r===0&&rr.delete(this),this.deactivate())}#b(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)ie(t,ue),nt(t);for(const t of this.#d)ie(t,Oe),nt(t);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=ts()).promise}static ensure(){if(q===null){const t=q=new We;rr.add(q),Ot||We.enqueue(()=>{q===t&&t.flush()})}return q}static enqueue(t){Mt.length===0&&queueMicrotask(Br),Mt.unshift(t)}}function rt(e){var t=Ot;Ot=!0;try{for(var r;;){if(Es(),qe.length===0&&(q?.flush(),qe.length===0))return Dt=null,r;zr()}}finally{Ot=t}}function zr(){var e=it;nr=!0;try{var t=0;for(dn(!0);qe.length>0;){var r=We.ensure();if(t++>1e3){var s,n;Os()}r.process(qe),Ve.clear()}}finally{nr=!1,dn(e),Dt=null}}function Os(){try{us()}catch(e){Qt(e,Dt)}}let Ue=null;function Gr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var s=e[r++];if((s.f&(Fe|Ne))===0&&Vt(s)&&(Ue=[],ot(s),s.deps===null&&s.first===null&&s.nodes_start===null&&(s.teardown===null&&s.ac===null?ln(s):s.fn=null),Ue?.length>0)){Ve.clear();for(const n of Ue)ot(n);Ue=[]}}Ue=null}}function nt(e){for(var t=Dt=e;t.parent!==null;){t=t.parent;var r=t.f;if(nr&&t===A&&(r&et)!==0)return;if((r&(De|Ee))!==0){if((r&Z)===0)return;t.f^=Z}}qe.push(t)}const Ve=new Map;function sr(e,t){var r={f:0,v:e,reactions:null,equals:Ar,rv:0,wv:0};return r}function Y(e,t){const r=sr(e);return Gs(r),r}function Ns(e,t=!1,r=!0){const s=sr(e);return t||(s.equals=Cr),s}function C(e,t,r=!1){R!==null&&(!ye||(R.f&Mr)!==0)&&Lr()&&(R.f&(oe|et|Jt|Mr))!==0&&!je?.includes(e)&&vs();let s=r?Be(t):t;return ir(e,s)}function ir(e,t){if(!e.equals(t)){var r=e.v;Ge?Ve.set(e,t):Ve.set(e,r),e.v=t;var s=We.ensure();s.capture(e,r),(e.f&oe)!==0&&((e.f&ue)!==0&&tr(e),ie(e,(e.f&le)===0?Z:Oe)),e.wv=mn(),Xr(e,ue),A!==null&&(A.f&Z)!==0&&(A.f&(Ee|De))===0&&(ce===null?Xs([e]):ce.push(e))}return t}function or(e){C(e,e.v+1)}function Xr(e,t){var r=e.reactions;if(r!==null)for(var s=r.length,n=0;n<s;n++){var i=r[n],o=i.f,a=(o&ue)===0;a&&ie(i,t),(o&oe)!==0?Xr(i,Oe):a&&((o&et)!==0&&Ue!==null&&Ue.push(i),nt(i))}}function Be(e){if(typeof e!="object"||e===null||kt in e)return e;const t=kr(e);if(t!==Qn&&t!==es)return e;var r=new Map,s=Er(e),n=Y(0),i=Xe,o=a=>{if(Xe===i)return a();var l=R,u=Xe;fe(null),hn(i);var c=a();return fe(l),hn(u),c};return s&&r.set("length",Y(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&ds();var c=r.get(l);return c===void 0?c=o(()=>{var d=Y(u.value);return r.set(l,d),d}):C(c,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const c=o(()=>Y(J));r.set(l,c),or(n)}}else C(u,J),or(n);return!0},get(a,l,u){if(l===kt)return e;var c=r.get(l),d=l in a;if(c===void 0&&(!d||Ye(a,l)?.writable)&&(c=o(()=>{var b=Be(d?a[l]:J),y=Y(b);return y}),r.set(l,c)),c!==void 0){var _=p(c);return _===J?void 0:_}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var c=r.get(l);c&&(u.value=p(c))}else if(u===void 0){var d=r.get(l),_=d?.v;if(d!==void 0&&_!==J)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return u},has(a,l){if(l===kt)return!0;var u=r.get(l),c=u!==void 0&&u.v!==J||Reflect.has(a,l);if(u!==void 0||A!==null&&(!c||Ye(a,l)?.writable)){u===void 0&&(u=o(()=>{var _=c?Be(a[l]):J,b=Y(_);return b}),r.set(l,u));var d=p(u);if(d===J)return!1}return c},set(a,l,u,c){var d=r.get(l),_=l in a;if(s&&l==="length")for(var b=u;b<d.v;b+=1){var y=r.get(b+"");y!==void 0?C(y,J):b in a&&(y=o(()=>Y(J)),r.set(b+"",y))}if(d===void 0)(!_||Ye(a,l)?.writable)&&(d=o(()=>Y(void 0)),C(d,Be(u)),r.set(l,d));else{_=d.v!==J;var E=o(()=>Be(u));C(d,E)}var P=Reflect.getOwnPropertyDescriptor(a,l);if(P?.set&&P.set.call(c,u),!_){if(s&&typeof l=="string"){var M=r.get("length"),S=Number(l);Number.isInteger(S)&&S>=M.v&&C(M,S+1)}or(n)}return!0},ownKeys(a){p(n);var l=Reflect.ownKeys(a).filter(d=>{var _=r.get(d);return _===void 0||_.v!==J});for(var[u,c]of r)c.v!==J&&!(u in a)&&l.push(u);return l},setPrototypeOf(){bs()}})}var Jr,Zr,Kr,Qr;function ar(){if(Jr===void 0){Jr=window,Zr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Kr=Ye(t,"firstChild").get,Qr=Ye(t,"nextSibling").get,Sr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Sr(r)&&(r.__t=void 0)}}function ze(e=""){return document.createTextNode(e)}function st(e){return Kr.call(e)}function ke(e){return Qr.call(e)}function se(e,t){if(!I)return st(e);var r=st(B);return r===null&&(r=B.appendChild(ze())),ge(r),r}function K(e,t=1,r=!1){let s=I?B:e;for(var n;t--;)n=s,s=ke(s);if(!I)return s;if(r&&s?.nodeType!==Nr){var i=ze();return s===null?n?.after(i):s.before(i),ge(i),i}return ge(s),s}function Vs(e){e.textContent=""}function As(){return!1}let en=!1;function tn(){en||(en=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Nt(e){var t=R,r=A;fe(null),we(null);try{return e()}finally{fe(t),we(r)}}function Cs(e,t,r,s=r){e.addEventListener(t,()=>Nt(r));const n=e.__on_r;n?e.__on_r=()=>{n(),s(!0)}:e.__on_r=()=>s(!0),tn()}function Rs(e){A===null&&R===null&&ls(),R!==null&&(R.f&le)!==0&&A===null&&as(),Ge&&os()}function Ps(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function pe(e,t,r,s=!0){var n=A;n!==null&&(n.f&Ne)!==0&&(e|=Ne);var i={ctx:he,deps:null,nodes_start:null,nodes_end:null,f:e|ue,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ot(i),i.f|=zt}catch(l){throw Ae(i),l}else t!==null&&nt(i);if(s){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&tt)===0&&(o=o.first),o!==null&&(o.parent=n,n!==null&&Ps(o,n),R!==null&&(R.f&oe)!==0&&(e&De)===0)){var a=R;(a.effects??=[]).push(o)}}return i}function Ls(e){const t=pe(Bt,null,!1);return ie(t,Z),t.teardown=e,t}function Is(e){Rs();var t=A.f,r=!R&&(t&Ee)!==0&&(t&zt)===0;if(r){var s=he;(s.e??=[]).push(e)}else return rn(e)}function rn(e){return pe(Ut|rs,e,!1)}function Ys(e){We.ensure();const t=pe(De|tt,e,!0);return()=>{Ae(t)}}function Fs(e){We.ensure();const t=pe(De|tt,e,!0);return(r={})=>new Promise(s=>{r.outro?un(t,()=>{Ae(t),s(void 0)}):(Ae(t),s(void 0))})}function Hs(e){return pe(Ut,e,!1)}function qs(e){return pe(Jt|tt,e,!0)}function nn(e,t=0){return pe(Bt|t,e,!0)}function Se(e,t=[],r=[]){Ms(t,r,s=>{pe(Bt,()=>e(...s.map(p)),!0)})}function sn(e,t=0){var r=pe(et|t,e,!0);return r}function lr(e,t=!0){return pe(Ee|tt,e,!0,t)}function on(e){var t=e.teardown;if(t!==null){const r=Ge,s=R;bn(!0),fe(null);try{t.call(null)}finally{bn(r),fe(s)}}}function an(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const n=r.ac;n!==null&&Nt(()=>{n.abort(Zt)});var s=r.next;(r.f&De)!==0?r.parent=null:Ae(r,t),r=s}}function Ws(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ee)===0&&Ae(t),t=r}}function Ae(e,t=!0){var r=!1;(t||(e.f&Dr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Us(e.nodes_start,e.nodes_end),r=!0),an(e,t&&!r),At(e,0),ie(e,Fe);var s=e.transitions;if(s!==null)for(const i of s)i.stop();on(e);var n=e.parent;n!==null&&n.first!==null&&ln(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Us(e,t){for(;e!==null;){var r=e===t?null:ke(e);e.remove(),e=r}}function ln(e){var t=e.parent,r=e.prev,s=e.next;r!==null&&(r.next=s),s!==null&&(s.prev=r),t!==null&&(t.first===e&&(t.first=s),t.last===e&&(t.last=r))}function un(e,t){var r=[];fn(e,r,!0),Bs(r,()=>{Ae(e),t&&t()})}function Bs(e,t){var r=e.length;if(r>0){var s=()=>--r||t();for(var n of e)n.out(s)}else t()}function fn(e,t,r){if((e.f&Ne)===0){if(e.f^=Ne,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var s=e.first;s!==null;){var n=s.next,i=(s.f&Gt)!==0||(s.f&Ee)!==0;fn(s,t,i?r:!1),s=n}}}function zs(e){cn(e,!0)}function cn(e,t){if((e.f&Ne)!==0){e.f^=Ne,(e.f&Z)===0&&(ie(e,ue),nt(e));for(var r=e.first;r!==null;){var s=r.next,n=(r.f&Gt)!==0||(r.f&Ee)!==0;cn(r,n?t:!1),r=s}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let it=!1;function dn(e){it=e}let Ge=!1;function bn(e){Ge=e}let R=null,ye=!1;function fe(e){R=e}let A=null;function we(e){A=e}let je=null;function Gs(e){R!==null&&(je===null?je=[e]:je.push(e))}let Q=null,ae=0,ce=null;function Xs(e){ce=e}let vn=1,yt=0,Xe=yt;function hn(e){Xe=e}let Ce=!1;function mn(){return++vn}function Vt(e){var t=e.f;if((t&ue)!==0)return!0;if((t&Oe)!==0){var r=e.deps,s=(t&le)!==0;if(r!==null){var n,i,o=(t&Et)!==0,a=s&&A!==null&&!Ce,l=r.length;if((o||a)&&(A===null||(A.f&Fe)===0)){var u=e,c=u.parent;for(n=0;n<l;n++)i=r[n],(o||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);o&&(u.f^=Et),a&&c!==null&&(c.f&le)===0&&(u.f^=le)}for(n=0;n<l;n++)if(i=r[n],Vt(i)&&qr(i),i.wv>e.wv)return!0}(!s||A!==null&&!Ce)&&ie(e,Z)}return!1}function _n(e,t,r=!0){var s=e.reactions;if(s!==null&&!je?.includes(e))for(var n=0;n<s.length;n++){var i=s[n];(i.f&oe)!==0?_n(i,t,!1):t===i&&(r?ie(i,ue):(i.f&Z)!==0&&ie(i,Oe),nt(i))}}function gn(e){var t=Q,r=ae,s=ce,n=R,i=Ce,o=je,a=he,l=ye,u=Xe,c=e.f;Q=null,ae=0,ce=null,Ce=(c&le)!==0&&(ye||!it||R===null),R=(c&(Ee|De))===0?e:null,je=null,jt(e.ctx),ye=!1,Xe=++yt,e.ac!==null&&(Nt(()=>{e.ac.abort(Zt)}),e.ac=null);try{e.f|=Xt;var d=e.fn,_=d(),b=e.deps;if(Q!==null){var y;if(At(e,ae),b!==null&&ae>0)for(b.length=ae+Q.length,y=0;y<Q.length;y++)b[ae+y]=Q[y];else e.deps=b=Q;if(!Ce||(c&oe)!==0&&e.reactions!==null)for(y=ae;y<b.length;y++)(b[y].reactions??=[]).push(e)}else b!==null&&ae<b.length&&(At(e,ae),b.length=ae);if(Lr()&&ce!==null&&!ye&&b!==null&&(e.f&(oe|Oe|ue))===0)for(y=0;y<ce.length;y++)_n(ce[y],e);return n!==null&&n!==e&&(yt++,ce!==null&&(s===null?s=ce:s.push(...ce))),(e.f&He)!==0&&(e.f^=He),_}catch(E){return ys(E)}finally{e.f^=Xt,Q=t,ae=r,ce=s,R=n,Ce=i,je=o,jt(a),ye=l,Xe=u}}function Js(e,t){let r=t.reactions;if(r!==null){var s=Jn.call(r,e);if(s!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[s]=r[n],r.pop())}}r===null&&(t.f&oe)!==0&&(Q===null||!Q.includes(t))&&(ie(t,Oe),(t.f&(le|Et))===0&&(t.f^=Et),Hr(t),At(t,0))}function At(e,t){var r=e.deps;if(r!==null)for(var s=t;s<r.length;s++)Js(e,r[s])}function ot(e){var t=e.f;if((t&Fe)===0){ie(e,Z);var r=A,s=it;A=e,it=!0;try{(t&et)!==0?Ws(e):an(e),on(e);var n=gn(e);e.teardown=typeof n=="function"?n:null,e.wv=vn;var i;xr&&gs&&(e.f&ue)!==0&&e.deps}finally{it=s,A=r}}}async function Zs(){await Promise.resolve(),rt()}function p(e){var t=e.f,r=(t&oe)!==0;if(R!==null&&!ye){var s=A!==null&&(A.f&Fe)!==0;if(!s&&!je?.includes(e)){var n=R.deps;if((R.f&Xt)!==0)e.rv<yt&&(e.rv=yt,Q===null&&n!==null&&n[ae]===e?ae++:Q===null?Q=[e]:(!Ce||!Q.includes(e))&&Q.push(e));else{(R.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[R]:i.includes(R)||i.push(R)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,a=o.parent;a!==null&&(a.f&le)===0&&(o.f^=le)}if(Ge){if(Ve.has(e))return Ve.get(e);if(r){o=e;var l=o.v;return((o.f&Z)===0&&o.reactions!==null||pn(o))&&(l=tr(o)),Ve.set(o,l),l}}else r&&(o=e,Vt(o)&&qr(o));if((e.f&He)!==0)throw e.v;return e.v}function pn(e){if(e.v===J)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ve.has(t)||(t.f&oe)!==0&&pn(t))return!0;return!1}function yn(e){var t=ye;try{return ye=!0,e()}finally{ye=t}}const Ks=-7169;function ie(e,t){e.f=e.f&Ks|t}const wn=new Set,ur=new Set;function Qs(e,t,r,s={}){function n(i){if(s.capture||wt.call(t,i),!i.cancelBubble)return Nt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?$s(()=>{t.addEventListener(e,n,s)}):t.addEventListener(e,n,s),n}function at(e,t,r,s,n){var i={capture:s,passive:n},o=Qs(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ls(()=>{t.removeEventListener(e,o,i)})}function ei(e){for(var t=0;t<e.length;t++)wn.add(e[t]);for(var r of ur)r(e)}let $n=null;function wt(e){var t=this,r=t.ownerDocument,s=e.type,n=e.composedPath?.()||[],i=n[0]||e.target;$n=e;var o=0,a=$n===e&&e.__root;if(a){var l=n.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=n.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(i=n[o]||e.target,i!==t){Qe(e,"currentTarget",{configurable:!0,get(){return i||r}});var c=R,d=A;fe(null),we(null);try{for(var _,b=[];i!==null;){var y=i.assignedSlot||i.parentNode||i.host||null;try{var E=i["__"+s];if(E!=null&&(!i.disabled||e.target===i))if(Er(E)){var[P,...M]=E;P.apply(i,[e,...M])}else E.call(i,e)}catch(S){_?b.push(S):_=S}if(e.cancelBubble||y===t||y===null)break;i=y}if(_){for(let S of b)queueMicrotask(()=>{throw S});throw _}}finally{e.__root=t,delete e.currentTarget,fe(c),we(d)}}}let de;function ti(){de=void 0}function ri(e){let t=null,r=I;var s;if(I){for(t=B,de===void 0&&(de=st(document.head));de!==null&&(de.nodeType!==_t||de.data!==Wt);)de=ke(de);de===null?_e(!1):de=ge(ke(de))}I||(s=document.head.appendChild(ze()));try{sn(()=>e(s),Dr)}finally{r&&(_e(!0),de=B,ge(t))}}function ni(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function lt(e,t){var r=A;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Te(e,t){var r=(t&zn)!==0,s=(t&Gn)!==0,n,i=!e.startsWith("<!>");return()=>{if(I)return lt(B,null),B;n===void 0&&(n=ni(i?e:"<!>"+e),r||(n=st(n)));var o=s||Zr?document.importNode(n,!0):n.cloneNode(!0);if(r){var a=st(o),l=o.lastChild;lt(a,l)}else lt(o,o);return o}}function si(e=""){if(!I){var t=ze(e+"");return lt(t,t),t}var r=B;return r.nodeType!==Nr&&(r.before(r=ze()),ge(r)),lt(r,r),r}function me(e,t){if(I){A.nodes_end=B,Kt();return}e!==null&&e.before(t)}const ii=["touchstart","touchmove"];function oi(e){return ii.includes(e)}function ai(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xn(e,t){return En(e,t)}function li(e,t){ar(),t.intro=t.intro??!1;const r=t.target,s=I,n=B;try{for(var i=st(r);i&&(i.nodeType!==_t||i.data!==Wt);)i=ke(i);if(!i)throw Ke;_e(!0),ge(i),Kt();const o=En(e,{...t,anchor:i});if(B===null||B.nodeType!==_t||B.data!==$r)throw St(),Ke;return _e(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==Ke&&console.warn("Failed to hydrate: ",o),t.recover===!1&&fs(),ar(),Vs(r),_e(!1),xn(e,t)}finally{_e(s),ge(n),ti()}}const ut=new Map;function En(e,{target:t,anchor:r,props:s={},events:n,context:i,intro:o=!0}){ar();var a=new Set,l=d=>{for(var _=0;_<d.length;_++){var b=d[_];if(!a.has(b)){a.add(b);var y=oi(b);t.addEventListener(b,wt,{passive:y});var E=ut.get(b);E===void 0?(document.addEventListener(b,wt,{passive:y}),ut.set(b,1)):ut.set(b,E+1)}}};l(Zn(wn)),ur.add(l);var u=void 0,c=Fs(()=>{var d=r??t.appendChild(ze());return lr(()=>{if(i){Rr({});var _=he;_.c=i}n&&(s.$$events=n),I&&lt(d,null),u=e(d,s)||{},I&&(A.nodes_end=B),i&&Pr()}),()=>{for(var _ of a){t.removeEventListener(_,wt);var b=ut.get(_);--b===0?(document.removeEventListener(_,wt),ut.delete(_)):ut.set(_,b)}ur.delete(l),d!==r&&d.parentNode?.removeChild(d)}});return fr.set(u,c),u}let fr=new WeakMap;function ui(e,t){const r=fr.get(e);return r?(fr.delete(e),r(t)):Promise.resolve()}function ft(e,t,r=!1){I&&Kt();var s=e,n=null,i=null,o=J,a=r?Gt:0,l=!1;const u=(b,y=!0)=>{l=!0,_(y,b)};var c=null;function d(){c!==null&&(c.lastChild.remove(),s.before(c),c=null);var b=o?n:i,y=o?i:n;b&&zs(b),y&&un(y,()=>{o?i=null:n=null})}const _=(b,y)=>{if(o===(o=b))return;let E=!1;if(I){const te=ms(s)===wr;!!o===te&&(s=hs(),ge(s),_e(!1),E=!0)}var P=As(),M=s;if(P&&(c=document.createDocumentFragment(),c.append(M=ze())),o?n??=y&&lr(()=>y(M)):i??=y&&lr(()=>y(M)),P){var S=q,F=o?n:i,ee=o?i:n;F&&S.skipped_effects.delete(F),ee&&S.skipped_effects.add(ee),S.add_callback(d)}else d();E&&_e(!0)};sn(()=>{l=!1,t(u),l||_(null,null)},a),I&&(s=B)}function fi(e,t){Hs(()=>{var r=e.getRootNode(),s=r.host?r:r.head??r.ownerDocument.head;if(!s.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,s.appendChild(n)}})}function ci(e,t,r){var s=""+e;return s}function di(e,t){return e==null?null:String(e)}function kn(e,t,r,s,n,i){var o=e.__className;if(I||o!==r||o===void 0){var a=ci(r);(!I||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return i}function Sn(e,t,r,s){var n=e.__style;if(I||n!==t){var i=di(t);(!I||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return s}const bi=Symbol("is custom element"),vi=Symbol("is html");function ct(e){if(I){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var s=e.value;Ct(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var n=e.checked;Ct(e,"checked",null),e.checked=n}}};e.__on_r=r,xs(r),tn()}}function Ct(e,t,r,s){var n=hi(e);I&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="loading"&&(e[ns]=r),r==null?e.removeAttribute(t):typeof r!="string"&&jn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Re(e,t,r){var s=R,n=A;let i=I;I&&_e(!1),fe(null),we(null);try{t!=="style"&&(cr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?jn(e).includes(t):r&&typeof r=="object")?e[t]=r:Ct(e,t,r==null?r:String(r))}finally{fe(s),we(n),i&&_e(!0)}}function hi(e){return e.__attributes??={[bi]:e.nodeName.includes("-"),[vi]:e.namespaceURI===Xn}}var cr=new Map;function jn(e){var t=e.getAttribute("is")||e.nodeName,r=cr.get(t);if(r)return r;cr.set(t,r=[]);for(var s,n=e,i=Element.prototype;i!==n;){s=Kn(n);for(var o in s)s[o].set&&r.push(o);n=kr(n)}return r}function dt(e,t,r=t){var s=new WeakSet;Cs(e,"input",async n=>{var i=n?e.defaultValue:e.value;if(i=dr(e)?br(i):i,r(i),q!==null&&s.add(q),await Zs(),i!==(i=t())){var o=e.selectionStart,a=e.selectionEnd;e.value=i??"",a!==null&&(e.selectionStart=o,e.selectionEnd=Math.min(a,e.value.length))}}),(I&&e.defaultValue!==e.value||yn(t)==null&&e.value)&&(r(dr(e)?br(e.value):e.value),q!==null&&s.add(q)),nn(()=>{var n=t();if(e===document.activeElement){var i=Tt??q;if(s.has(i))return}dr(e)&&n===br(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function dr(e){var t=e.type;return t==="number"||t==="range"}function br(e){return e===""?null:+e}let Rt=!1;function mi(e){var t=Rt;try{return Rt=!1,[e(),Rt]}finally{Rt=t}}function Pt(e,t,r,s){var n=(r&Un)!==0,i=(r&Bn)!==0,o=s,a=!0,l=()=>(a&&(a=!1,o=i?yn(s):s),o),u;if(n){var c=kt in e||Or in e;u=Ye(e,t)?.set??(c&&t in e?S=>e[t]=S:void 0)}var d,_=!1;n?[d,_]=mi(()=>e[t]):d=e[t],d===void 0&&s!==void 0&&(d=l(),u&&(cs(),u(d)));var b;if(b=()=>{var S=e[t];return S===void 0?l():(a=!0,S)},(r&Wn)===0)return b;if(u){var y=e.$$legacy;return(function(S,F){return arguments.length>0?((!F||y||_)&&u(F?b():S),S):b()})}var E=!1,P=((r&qn)!==0?er:js)(()=>(E=!1,b()));n&&p(P);var M=A;return(function(S,F){if(arguments.length>0){const ee=F?p(P):n?Be(S):S;return C(P,ee),E=!0,o!==void 0&&(o=ee),S}return Ge&&E||(M.f&Fe)!==0?P.v:p(P)})}function _i(e){return new gi(e)}class gi{#t;#e;constructor(t){var r=new Map,s=(i,o)=>{var a=Ns(o,!1,!1);return r.set(i,a),a};const n=new Proxy({...t.props||{},$$events:{}},{get(i,o){return p(r.get(o)??s(o,Reflect.get(i,o)))},has(i,o){return o===Or?!0:(p(r.get(o)??s(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return C(r.get(o)??s(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?li:xn)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&rt(),this.#t=n.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Qe(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(n,i)},this.#e.$destroy=()=>{ui(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const s=(...n)=>r.call(this,...n);return this.#t[t].push(s),()=>{this.#t[t]=this.#t[t].filter(n=>n!==s)}}$destroy(){this.#e.$destroy()}}let Tn;typeof HTMLElement=="function"&&(Tn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const s=this.$$c.$on(e,t);this.$$l_u.set(t,s)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const s=this.$$l_u.get(t);s&&(s(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(s){return n=>{const i=document.createElement("slot");s!=="default"&&(i.name=s),me(n,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=pi(this);for(const s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=e(s),t.default=!0):t[s]=e(s));for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=Lt(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=_i({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ys(()=>{nn(()=>{this.$$r=!0;for(const s of xt(this.$$c)){if(!this.$$p_d[s]?.reflect)continue;this.$$d[s]=this.$$c[s];const n=Lt(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1})});for(const s in this.$$l)for(const n of this.$$l[s]){const i=this.$$c.$on(s,n);this.$$l_u.set(n,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Lt(e,r,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 xt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Lt(e,t,r,s){const n=r[e]?.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!r[e])return t;if(s==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function yi(e,t,r,s,n,i){let o=class extends Tn{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return xt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return xt(t).forEach(a=>{Qe(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=Lt(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var c=Ye(u,a)?.get;c?u[a]=l:u.$set({[a]:l})}}})}),s.forEach(a=>{Qe(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It={exports:{}},wi=It.exports,Mn;function $i(){return Mn||(Mn=1,(function(e,t){(function(r,s){e.exports=s()})(wi,(function(){var r=1e3,s=6e4,n=36e5,i="millisecond",o="second",a="minute",l="hour",u="day",c="week",d="month",_="quarter",b="year",y="date",E="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(f){var v=["th","st","nd","rd"],h=f%100;return"["+f+(v[(h-20)%10]||v[h]||v[0])+"]"}},F=function(f,v,h){var x=String(f);return!x||x.length>=v?f:""+Array(v+1-x.length).join(h)+f},ee={s:F,z:function(f){var v=-f.utcOffset(),h=Math.abs(v),x=Math.floor(h/60),m=h%60;return(v<=0?"+":"-")+F(x,2,"0")+":"+F(m,2,"0")},m:function f(v,h){if(v.date()<h.date())return-f(h,v);var x=12*(h.year()-v.year())+(h.month()-v.month()),m=v.clone().add(x,d),D=h-m<0,T=v.clone().add(x+(D?-1:1),d);return+(-(x+(h-m)/(D?m-T:T-m))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:d,y:b,w:c,d:u,D:y,h:l,m:a,s:o,ms:i,Q:_}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},te="en",N={};N[te]=S;var $="$isDayjsObject",g=function(f){return f instanceof W||!(!f||!f[$])},V=function f(v,h,x){var m;if(!v)return te;if(typeof v=="string"){var D=v.toLowerCase();N[D]&&(m=D),h&&(N[D]=h,m=D);var T=v.split("-");if(!m&&T.length>1)return f(T[0])}else{var L=v.name;N[L]=v,m=L}return!x&&m&&(te=m),m||!x&&te},O=function(f,v){if(g(f))return f.clone();var h=typeof v=="object"?v:{};return h.date=f,h.args=arguments,new W(h)},k=ee;k.l=V,k.i=g,k.w=function(f,v){return O(f,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var W=(function(){function f(h){this.$L=V(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[$]=!0}var v=f.prototype;return v.parse=function(h){this.$d=(function(x){var m=x.date,D=x.utc;if(m===null)return new Date(NaN);if(k.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var T=m.match(P);if(T){var L=T[2]-1||0,U=(T[7]||"0").substring(0,3);return D?new Date(Date.UTC(T[1],L,T[3]||1,T[4]||0,T[5]||0,T[6]||0,U)):new Date(T[1],L,T[3]||1,T[4]||0,T[5]||0,T[6]||0,U)}}return new Date(m)})(h),this.init()},v.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return this.$d.toString()!==E},v.isSame=function(h,x){var m=O(h);return this.startOf(x)<=m&&m<=this.endOf(x)},v.isAfter=function(h,x){return O(h)<this.startOf(x)},v.isBefore=function(h,x){return this.endOf(x)<O(h)},v.$g=function(h,x,m){return k.u(h)?this[x]:this.set(m,h)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(h,x){var m=this,D=!!k.u(x)||x,T=k.p(h),L=function(be,G){var ve=k.w(m.$u?Date.UTC(m.$y,G,be):new Date(m.$y,G,be),m);return D?ve:ve.endOf(u)},U=function(be,G){return k.w(m.toDate()[be].apply(m.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(G)),m)},z=this.$W,X=this.$M,re=this.$D,$e="set"+(this.$u?"UTC":"");switch(T){case b:return D?L(1,0):L(31,11);case d:return D?L(1,X):L(0,X+1);case c:var xe=this.$locale().weekStart||0,Pe=(z<xe?z+7:z)-xe;return L(D?re-Pe:re+(6-Pe),X);case u:case y:return U($e+"Hours",0);case l:return U($e+"Minutes",1);case a:return U($e+"Seconds",2);case o:return U($e+"Milliseconds",3);default:return this.clone()}},v.endOf=function(h){return this.startOf(h,!1)},v.$set=function(h,x){var m,D=k.p(h),T="set"+(this.$u?"UTC":""),L=(m={},m[u]=T+"Date",m[y]=T+"Date",m[d]=T+"Month",m[b]=T+"FullYear",m[l]=T+"Hours",m[a]=T+"Minutes",m[o]=T+"Seconds",m[i]=T+"Milliseconds",m)[D],U=D===u?this.$D+(x-this.$W):x;if(D===d||D===b){var z=this.clone().set(y,1);z.$d[L](U),z.init(),this.$d=z.set(y,Math.min(this.$D,z.daysInMonth())).$d}else L&&this.$d[L](U);return this.init(),this},v.set=function(h,x){return this.clone().$set(h,x)},v.get=function(h){return this[k.p(h)]()},v.add=function(h,x){var m,D=this;h=Number(h);var T=k.p(x),L=function(X){var re=O(D);return k.w(re.date(re.date()+Math.round(X*h)),D)};if(T===d)return this.set(d,this.$M+h);if(T===b)return this.set(b,this.$y+h);if(T===u)return L(1);if(T===c)return L(7);var U=(m={},m[a]=s,m[l]=n,m[o]=r,m)[T]||1,z=this.$d.getTime()+h*U;return k.w(z,this)},v.subtract=function(h,x){return this.add(-1*h,x)},v.format=function(h){var x=this,m=this.$locale();if(!this.isValid())return m.invalidDate||E;var D=h||"YYYY-MM-DDTHH:mm:ssZ",T=k.z(this),L=this.$H,U=this.$m,z=this.$M,X=m.weekdays,re=m.months,$e=m.meridiem,xe=function(G,ve,Le,Me){return G&&(G[ve]||G(x,D))||Le[ve].slice(0,Me)},Pe=function(G){return k.s(L%12||12,G,"0")},be=$e||function(G,ve,Le){var Me=G<12?"AM":"PM";return Le?Me.toLowerCase():Me};return D.replace(M,(function(G,ve){return ve||(function(Le){switch(Le){case"YY":return String(x.$y).slice(-2);case"YYYY":return k.s(x.$y,4,"0");case"M":return z+1;case"MM":return k.s(z+1,2,"0");case"MMM":return xe(m.monthsShort,z,re,3);case"MMMM":return xe(re,z);case"D":return x.$D;case"DD":return k.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return xe(m.weekdaysMin,x.$W,X,2);case"ddd":return xe(m.weekdaysShort,x.$W,X,3);case"dddd":return X[x.$W];case"H":return String(L);case"HH":return k.s(L,2,"0");case"h":return Pe(1);case"hh":return Pe(2);case"a":return be(L,U,!0);case"A":return be(L,U,!1);case"m":return String(U);case"mm":return k.s(U,2,"0");case"s":return String(x.$s);case"ss":return k.s(x.$s,2,"0");case"SSS":return k.s(x.$ms,3,"0");case"Z":return T}return null})(G)||T.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(h,x,m){var D,T=this,L=k.p(x),U=O(h),z=(U.utcOffset()-this.utcOffset())*s,X=this-U,re=function(){return k.m(T,U)};switch(L){case b:D=re()/12;break;case d:D=re();break;case _:D=re()/3;break;case c:D=(X-z)/6048e5;break;case u:D=(X-z)/864e5;break;case l:D=X/n;break;case a:D=X/s;break;case o:D=X/r;break;default:D=X}return m?D:k.a(D)},v.daysInMonth=function(){return this.endOf(d).$D},v.$locale=function(){return N[this.$L]},v.locale=function(h,x){if(!h)return this.$L;var m=this.clone(),D=V(h,x,!0);return D&&(m.$L=D),m},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},f})(),j=W.prototype;return O.prototype=j,[["$ms",i],["$s",o],["$m",a],["$H",l],["$W",u],["$M",d],["$y",b],["$D",y]].forEach((function(f){j[f[1]]=function(v){return this.$g(v,f[0],f[1])}})),O.extend=function(f,v){return f.$i||(f(v,W,O),f.$i=!0),O},O.locale=V,O.isDayjs=g,O.unix=function(f){return O(1e3*f)},O.en=N[te],O.Ls=N,O.p={},O}))})(It)),It.exports}var xi=$i();const bt=vr(xi),Dn={version:"0.61.41"};var Yt={exports:{}},Ei=Yt.exports,On;function ki(){return On||(On=1,(function(e,t){(function(r,s){e.exports=s()})(Ei,(function(){var r,s,n=1e3,i=6e4,o=36e5,a=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,c=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:u,months:c,days:a,hours:o,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},b=function(N){return N instanceof ee},y=function(N,$,g){return new ee(N,g,$.$l)},E=function(N){return s.p(N)+"s"},P=function(N){return N<0},M=function(N){return P(N)?Math.ceil(N):Math.floor(N)},S=function(N){return Math.abs(N)},F=function(N,$){return N?P(N)?{negative:!0,format:""+S(N)+$}:{negative:!1,format:""+N+$}:{negative:!1,format:""}},ee=(function(){function N(g,V,O){var k=this;if(this.$d={},this.$l=O,g===void 0&&(this.$ms=0,this.parseFromMilliseconds()),V)return y(g*_[E(V)],this);if(typeof g=="number")return this.$ms=g,this.parseFromMilliseconds(),this;if(typeof g=="object")return Object.keys(g).forEach((function(f){k.$d[E(f)]=g[f]})),this.calMilliseconds(),this;if(typeof g=="string"){var W=g.match(d);if(W){var j=W.slice(2).map((function(f){return f!=null?Number(f):0}));return this.$d.years=j[0],this.$d.months=j[1],this.$d.weeks=j[2],this.$d.days=j[3],this.$d.hours=j[4],this.$d.minutes=j[5],this.$d.seconds=j[6],this.calMilliseconds(),this}}return this}var $=N.prototype;return $.calMilliseconds=function(){var g=this;this.$ms=Object.keys(this.$d).reduce((function(V,O){return V+(g.$d[O]||0)*_[O]}),0)},$.parseFromMilliseconds=function(){var g=this.$ms;this.$d.years=M(g/u),g%=u,this.$d.months=M(g/c),g%=c,this.$d.days=M(g/a),g%=a,this.$d.hours=M(g/o),g%=o,this.$d.minutes=M(g/i),g%=i,this.$d.seconds=M(g/n),g%=n,this.$d.milliseconds=g},$.toISOString=function(){var g=F(this.$d.years,"Y"),V=F(this.$d.months,"M"),O=+this.$d.days||0;this.$d.weeks&&(O+=7*this.$d.weeks);var k=F(O,"D"),W=F(this.$d.hours,"H"),j=F(this.$d.minutes,"M"),f=this.$d.seconds||0;this.$d.milliseconds&&(f+=this.$d.milliseconds/1e3,f=Math.round(1e3*f)/1e3);var v=F(f,"S"),h=g.negative||V.negative||k.negative||W.negative||j.negative||v.negative,x=W.format||j.format||v.format?"T":"",m=(h?"-":"")+"P"+g.format+V.format+k.format+x+W.format+j.format+v.format;return m==="P"||m==="-P"?"P0D":m},$.toJSON=function(){return this.toISOString()},$.format=function(g){var V=g||"YYYY-MM-DDTHH:mm:ss",O={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return V.replace(l,(function(k,W){return W||String(O[k])}))},$.as=function(g){return this.$ms/_[E(g)]},$.get=function(g){var V=this.$ms,O=E(g);return O==="milliseconds"?V%=1e3:V=O==="weeks"?M(V/_[O]):this.$d[O],V||0},$.add=function(g,V,O){var k;return k=V?g*_[E(V)]:b(g)?g.$ms:y(g,this).$ms,y(this.$ms+k*(O?-1:1),this)},$.subtract=function(g,V){return this.add(g,V,!0)},$.locale=function(g){var V=this.clone();return V.$l=g,V},$.clone=function(){return y(this.$ms,this)},$.humanize=function(g){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!g)},$.valueOf=function(){return this.asMilliseconds()},$.milliseconds=function(){return this.get("milliseconds")},$.asMilliseconds=function(){return this.as("milliseconds")},$.seconds=function(){return this.get("seconds")},$.asSeconds=function(){return this.as("seconds")},$.minutes=function(){return this.get("minutes")},$.asMinutes=function(){return this.as("minutes")},$.hours=function(){return this.get("hours")},$.asHours=function(){return this.as("hours")},$.days=function(){return this.get("days")},$.asDays=function(){return this.as("days")},$.weeks=function(){return this.get("weeks")},$.asWeeks=function(){return this.as("weeks")},$.months=function(){return this.get("months")},$.asMonths=function(){return this.as("months")},$.years=function(){return this.get("years")},$.asYears=function(){return this.as("years")},N})(),te=function(N,$,g){return N.add($.years()*g,"y").add($.months()*g,"M").add($.days()*g,"d").add($.hours()*g,"h").add($.minutes()*g,"m").add($.seconds()*g,"s").add($.milliseconds()*g,"ms")};return function(N,$,g){r=g,s=g().$utils(),g.duration=function(k,W){var j=g.locale();return y(k,{$l:j},W)},g.isDuration=b;var V=$.prototype.add,O=$.prototype.subtract;$.prototype.add=function(k,W){return b(k)?te(this,k,1):V.bind(this)(k,W)},$.prototype.subtract=function(k,W){return b(k)?te(this,k,-1):O.bind(this)(k,W)}}}))})(Yt)),Yt.exports}var Si=ki();const ji=vr(Si);var Je={},Nn;function Ti(){if(Nn)return Je;Nn=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.LanguageTranslator=void 0,Je.getChildStyleToPass=e,Je.addComponent=t;function e(s,n){var i,o,a="";try{if(s&&n?.length&&(!((i=Object.keys(s))===null||i===void 0)&&i.length)&&(!((o=n?.filter(function(_){return Object.keys(s).includes(_.name)}))===null||o===void 0)&&o.length))for(var l=function(_){var b=n?.filter(function(y){return y.name===_&&y.defaultValue!==s[_]});b&&(a+="".concat(_,":").concat(s[_],";"))},u=0,c=Object.keys(s);u<c.length;u++){var d=c[u];l(d)}}catch(_){console.error("error getting child style to pass",_)}finally{return a}}function t(s){var n,i=((n=s?.repoName.split("/"))===null||n===void 0?void 0:n[1])||s?.repoName;if(!i)throw new Error("wrong componentPath "+s?.repoName);if(!s?.version)throw new Error("wrong version "+s?.version);var o=s?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var a=document.createElement("script");if(a.id=i+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(s.repoName,"@").concat(s.version,"/").concat(o),s?.local)a.src="".concat(s.local);else if(location.href.includes("localhost:6006")){var l=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(u){console.warn(u)}}var r=(function(){function s(n){if(this.lang="",!n?.dictionary)throw new Error("no dictionary provided");this.dictionary=n.dictionary,this.setLang(n?.lang)}return s.prototype.setLang=function(n){n||(n=s.getDefaultLang()),this.lang=n},s.prototype.translateWord=function(n,i){return s.getDictionaryWord(n,this.dictionary,i||this.lang)},s.prototype.translateDate=function(n,i,o){return s.formatDate(n,i,o||this.lang)},s.getDefaultLang=function(){var n,i,o,a,l,u="en";return navigator?.languages&&(!((o=(i=(n=navigator.languages[0])===null||n===void 0?void 0:n.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||o===void 0)&&o.length)&&(u=(l=(a=navigator.languages[0])===null||a===void 0?void 0:a.split("-")[0])===null||l===void 0?void 0:l.toLowerCase()),u},s.getDictionaryWord=function(n,i,o){var a;if(!n)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(o&&(!((a=i[o])===null||a===void 0)&&a[n]))return i[o][n];var l="",u=s.getDefaultLang();if(!o||u!==o){var c=i?.[u];c?.[n]&&(l=c[n])}return l},s.formatDate=function(n,i,o){if(!n)throw new Error("no date provided");if(typeof n.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||s.getDefaultLang(),i);return a.format(n)},s})();return Je.LanguageTranslator=r,Je}var Vn=Ti(),vt={},hr,An;function Mi(){if(An)return hr;An=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
3
+ `,u="/",c="*",d="",_="comment",b="declaration";hr=function(E,P){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];P=P||{};var M=1,S=1;function F(j){var f=j.match(t);f&&(M+=f.length);var v=j.lastIndexOf(l);S=~v?j.length-v:S+j.length}function ee(){var j={line:M,column:S};return function(f){return f.position=new te(j),g(),f}}function te(j){this.start=j,this.end={line:M,column:S},this.source=P.source}te.prototype.content=E;function N(j){var f=new Error(P.source+":"+M+":"+S+": "+j);if(f.reason=j,f.filename=P.source,f.line=M,f.column=S,f.source=E,!P.silent)throw f}function $(j){var f=j.exec(E);if(f){var v=f[0];return F(v),E=E.slice(v.length),f}}function g(){$(r)}function V(j){var f;for(j=j||[];f=O();)f!==!1&&j.push(f);return j}function O(){var j=ee();if(!(u!=E.charAt(0)||c!=E.charAt(1))){for(var f=2;d!=E.charAt(f)&&(c!=E.charAt(f)||u!=E.charAt(f+1));)++f;if(f+=2,d===E.charAt(f-1))return N("End of comment missing");var v=E.slice(2,f-2);return S+=2,F(v),E=E.slice(f),S+=2,j({type:_,comment:v})}}function k(){var j=ee(),f=$(s);if(f){if(O(),!$(n))return N("property missing ':'");var v=$(i),h=j({type:b,property:y(f[0].replace(e,d)),value:v?y(v[0].replace(e,d)):d});return $(o),h}}function W(){var j=[];V(j);for(var f;f=k();)f!==!1&&(j.push(f),V(j));return j}return g(),W()};function y(E){return E?E.replace(a,d):d}return hr}var Cn;function Di(){if(Cn)return vt;Cn=1;var e=vt&&vt.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(vt,"__esModule",{value:!0}),vt.default=r;var t=e(Mi());function r(s,n){var i=null;if(!s||typeof s!="string")return i;var o=(0,t.default)(s),a=typeof n=="function";return o.forEach(function(l){if(l.type==="declaration"){var u=l.property,c=l.value;a?n(u,c,l):c&&(i=i||{},i[u]=c)}}),i}return vt}var Oi=Di();const Rn=vr(Oi);Rn.default;function ht(e,t,r,s,n,i,o,a){t().maxValue=p(r)*3600+p(s)*60+p(n),t().minValue=p(i)*3600+p(o)*60+p(a)}function Pn(e,t,r,s,n){!t()||!t().minValue&&t().minValue!==0||!t().maxValue&&t().maxValue!==0||(r()?C(n,"yes"):(s("dispatchTrack",t()),console.log(t())))}var Ni=Te('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1xr6fjn"/>'),Vi=(e,t)=>p(t).paused?p(t).play():p(t).pause(),Ai=Te('<i class="bi bi-play-fill svelte-1xr6fjn"></i>'),Ci=Te('<i class="bi bi-pause-fill svelte-1xr6fjn"></i>'),Ri=Te('<button class="btn btn-outline-dark svelte-1xr6fjn"><!></button>'),Pi=Te('<div style="width: 100%;margin-bottom:15px" class="svelte-1xr6fjn"><div style="display:inline-block; width:50px;" class="svelte-1xr6fjn"><!></div> <div style="display:inline-block;width:calc(100% - 60px);position:relative" class="svelte-1xr6fjn"><hb-range-slider></hb-range-slider></div></div>',2),Li=(e,t)=>t(e.detail),Ii=Te("<hb-form></hb-form>",2),Yi=(e,t)=>{t("start")},Fi=(e,t,r)=>{t(r().minValue)},Hi=(e,t,r)=>{t(r().maxValue)},qi=(e,t)=>{t("end")},Wi=Te('<button class="btn btn-sm btn-primary svelte-1xr6fjn">send</button>'),Ui=Te('<button class="btn btn-sm btn-primary svelte-1xr6fjn" disabled>send</button>'),Bi=Te('<div id="card" class="card h-100 svelte-1xr6fjn"><div class="ratio ratio-16x9 svelte-1xr6fjn" style="background-color: black;"><video id="video" class="ratio ratio-16x9 svelte-1xr6fjn"><source type="video/mp4" class="svelte-1xr6fjn"/> <track kind="captions" src="" srclang="en" label="English" class="svelte-1xr6fjn"/> Your browser does not support the video tag.</video></div> <div class="card-body svelte-1xr6fjn"><!> <!> <div id="controls" class="svelte-1xr6fjn"><div style="flex-grow: 2" class="svelte-1xr6fjn"><button class="btn btn-sm btn-secondary svelte-1xr6fjn">▼</button> <button class="btn btn-sm btn-secondary svelte-1xr6fjn">▲</button> <input type="number" class="form-control form-custom-control-numbers svelte-1xr6fjn"/>h <input class="form-control form-custom-control-numbers svelte-1xr6fjn" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-1xr6fjn"/>s</div> <div style="flex-grow: 2;text-align:center" class="svelte-1xr6fjn"></div> <div style="flex-grow: 2;text-align:right" class="svelte-1xr6fjn"><input type="number" class="form-control form-custom-control-numbers svelte-1xr6fjn"/>h <input class="form-control form-custom-control-numbers svelte-1xr6fjn" type="number"/>m <input type="number" class="form-control form-custom-control-numbers svelte-1xr6fjn"/>s <button class="btn btn-sm btn-secondary svelte-1xr6fjn">▲</button> <button class="btn btn-sm btn-secondary svelte-1xr6fjn">▼</button></div></div></div> <div class="card-footer svelte-1xr6fjn"><span style="float:left;height:30px;line-height:30px" class="svelte-1xr6fjn"><!></span> <span style="float:right;height:30px;line-height:30px" class="svelte-1xr6fjn"><!></span></div></div>',2);const zi={hash:"svelte-1xr6fjn",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");
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
5
  /*!
6
6
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
@@ -66,7 +66,7 @@ button.svelte-1xr6fjn {margin:0;font-family:inherit;font-size:inherit;line-heigh
66
66
  @media (min-width: 1200px) {
67
67
  }
68
68
  @media (min-width: 1400px) {
69
- }:host {font-family:"Roboto", sans-serif;}.form-custom-control-numbers.svelte-1xr6fjn {width:40px;display:inline-block;padding:0px;}#controls.svelte-1xr6fjn {display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch;}`};function Cn(e,t){Rr(t,!0),li(e,Ui);/**
69
+ }:host {font-family:"Roboto", sans-serif;}.form-custom-control-numbers.svelte-1xr6fjn {width:40px;display:inline-block;padding:0px;}#controls.svelte-1xr6fjn {display:flex;justify-content:space-around;flex-flow:row wrap;align-items:stretch;}`};function Ln(e,t){Rr(t,!0),fi(e,zi);/**
70
70
  * Svelte Video Gallery WebComponent
71
71
  * =====================
72
72
  *
@@ -74,8 +74,8 @@ button.svelte-1xr6fjn {margin:0;font-family:inherit;font-size:inherit;line-heigh
74
74
  *
75
75
  * @license: MIT License
76
76
  *
77
- */dt.extend(ki);let r=Ct(t,"id",7,""),n=Ct(t,"src",7,""),s=Ct(t,"track",23,()=>({maxValue:0,minValue:0})),i=Ct(t,"form",7),o=Y(void 0),l=Y(0),a=Y(void 0),u=Y(void 0),f=Y(void 0),d=Y(void 0),$=Y(void 0),h=Y(void 0),p=Y(0),E=Y("no"),I=Y(!0),M=Y(void 0),S=Y(void 0),F=Y(!0);Be({});let ee=Y(""),te=Y("");Is(()=>{i()&&R(I,!1),s()&&typeof s()=="string"&&s(JSON.parse(s())),console.log("reload all"),console.log(g(S),"log",g(l)),s()&&R(S,s().minValue<(g(S)||0)?g(S)||0:s().minValue,!0),console.log(g(S),"log2")});function D(y,H){t.$$host.dispatchEvent(new CustomEvent(y,{detail:H}))}function w(y){g(M).currentTime=y}Nn({repoName:"@htmlbricks/hb-range-slider",version:Mn.version}),Nn({repoName:"@htmlbricks/hb-form",version:Mn.version});function _(y){s().minValue=y.minValue,s().maxValue=y.maxValue,g(M).currentTime=y.positionValReal,R(S,y.positionValReal,!0),V(),g(M).currentTime<s().minValue&&w(s().minValue),g(M).currentTime>s().maxValue&&w(s().maxValue),D("changeTrackValues",{minVaule:s().minValue,maxValue:s().maxValue})}function V(){R(a,parseInt((s().maxValue/3600).toString()),!0),R(u,parseInt((s().maxValue/3600).toString()),!0),R(f,parseInt(((s().maxValue-Number(g(a))*60)/60).toString()),!0),R(d,parseInt(((s().minValue-Number(g(u))*60)/60).toString()),!0),R($,s().maxValue-Number(g(a))*3600-Number(g(f))*60),R(h,s().minValue-Number(g(u))*3600-Number(g(d))*60)}function N(y){R(p,y.target.duration,!0),R(o,g(p),!0),(!s().maxValue||s().maxValue>g(o))&&(s().maxValue=g(o)),(!s().minValue||s().minValue<g(l))&&(s().minValue=g(l)),R(M,t.$$host?.shadowRoot?.querySelector("#video"),!0),V(),console.log("videoElement",g(M)),g(p)/5>100||g(p)/5}function k(y){switch(y){case"start":g(M).currentTime<s().maxValue&&(s().minValue=g(M).currentTime);break;case"end":g(M).currentTime>s().minValue&&(s().maxValue=g(M).currentTime);break;default:return console.error("no vaild point for cue")}V(),D("changeTrackValues",{minVaule:s().minValue,maxValue:s().maxValue})}function U(y){console.log("formSubmit",y._valid),R(I,y._valid,!0),g(E)==="yes"&&(y._valid&&!(!s()||!s().minValue&&s().minValue!==0||!s().maxValue&&s().maxValue!==0)&&D("dispatchTrack",Object.assign(s(),y)),console.log(s())),g(E)!=="no"&&R(E,"no")}function j(y){R(I,y._valid,!0)}function c(y){g(M).currentTime>s().maxValue?(g(M).pause(),w(s().maxValue)):g(M).currentTime<s().minValue-.01&&(g(M).pause(),w(s().minValue)),R(S,g(M).currentTime,!0)}var b={get id(){return r()},set id(y=""){r(y),tt()},get src(){return n()},set src(y=""){n(y),tt()},get track(){return s()},set track(y={maxValue:0,minValue:0}){s(y),tt()},get form(){return i()},set form(y){i(y),tt()}},v=qi();ei(y=>{var H=Mi();me(y,H)});var x=se(v),m=se(x),O=se(m);Dr(3),ne(m),ne(x);var T=K(x,2),P=se(T);{var W=y=>{var H=Ai(),Je=se(H),mr=se(Je);{var _r=$t=>{var Ht=Vi();Ht.__click=[Oi,M];var Zi=se(Ht);{var Ki=vt=>{var gr=Ni();me(vt,gr)},Qi=vt=>{var gr=Di();me(vt,gr)};ut(Zi,vt=>{g(F)?vt(Ki):vt(Qi,!1)})}ne(Ht),me($t,Ht)};ut(mr,$t=>{g(M)&&$t(_r)})}ne(Je);var Yn=K(Je,2),Le=se(Yn);kn(Le,g(te)+";--hb-slider-background-color: red;"),Se(()=>Ce(Le,"max",g(o).toString())),Se(()=>Ce(Le,"min",g(l).toString())),Se(()=>Ce(Le,"maxval",s().maxValue.toString())),Se(()=>Ce(Le,"minval",s().minValue.toString())),Se(()=>Ce(Le,"position_value",g(S).toString())),En(Le,1,"svelte-1xr6fjn"),ne(Yn),ne(H),ot("changeRangeValues",Le,$t=>{_($t.detail)}),me(y,H)};ut(P,y=>{g(p)&&s()&&y(W)})}var z=K(P,2);{var X=y=>{var H=Ci();Ce(H,"hide_submit","yes"),kn(H,g(ee)+"margin:40px auto 20px auto; display:block"),H.__change=[Ri,j],Se(()=>Ce(H,"submitted",g(E))),Se(()=>Ce(H,"schema",i())),En(H,1,"svelte-1xr6fjn"),ot("submit",H,Je=>U(Je.detail)),me(y,H)};ut(z,y=>{i()&&y(X)})}var re=K(z,2),we=se(re),xe=se(we);xe.__click=[Ii,k];var Ie=K(xe,2);Ie.__click=[Pi,w,s];var be=K(Ie,2);ct(be),be.__change=[ht,s,a,f,$,u,d,h];var G=K(be,2);ct(G),G.__change=[ht,s,a,f,$,u,d,h];var he=K(G,2);ct(he),he.__change=[ht,s,a,f,$,u,d,h],Dr(),ne(we);var Pe=K(we,4),Me=se(Pe);ct(Me),Me.__change=[ht,s,a,f,$,u,d,h];var Yt=K(Me,2);ct(Yt),Yt.__change=[ht,s,a,f,$,u,d,h];var Ft=K(Yt,2);ct(Ft),Ft.__change=[ht,s,a,f,$,u,d,h];var In=K(Ft,2);In.__click=[Li,w,s];var Wi=K(In,2);Wi.__click=[Yi,k],ne(Pe),ne(re),ne(T);var Pn=K(T,2),vr=se(Pn),Bi=se(vr);{var zi=y=>{var H=ri();Se((Je,mr,_r)=>ii(H,`duration:
78
- ${Je??""}
79
- ${mr??""}
80
- ${_r??""}`),[()=>dt.duration((s().maxValue-s().minValue)*1e3).hours()?dt.duration((s().maxValue-s().minValue)*1e3).format("H")+" hours":"",()=>dt.duration((s().maxValue-s().minValue)*1e3).minutes()?dt.duration((s().maxValue-s().minValue)*1e3).format("m")+" minutes":"",()=>dt.duration(parseInt(((s().maxValue-s().minValue)*1e3).toString())).format("s.SSS")+" seconds"]),me(y,H)};ut(Bi,y=>{s()?.maxValue&&y(zi)})}ne(vr);var Ln=K(vr,2),Gi=se(Ln);{var Xi=y=>{var H=Fi();H.__click=[Rn,s,i,D,E],me(y,H)},Ji=y=>{var H=Hi();H.__click=[Rn,s,i,D,E],me(y,H)};ut(Gi,y=>{g(I)?y(Xi):y(Ji,!1)})}return ne(Ln),ne(Pn),ne(v),Se(()=>At(O,"src",n())),ot("play",m,()=>R(F,!1)),ot("pause",m,()=>R(F,!0)),ot("timeupdate",m,y=>c()),ot("loadedmetadata",m,y=>N(y)),ft(be,()=>g(u),y=>R(u,y)),ft(G,()=>g(d),y=>R(d,y)),ft(he,()=>g(h),y=>R(h,y)),ft(Me,()=>g(a),y=>R(a,y)),ft(Yt,()=>g(f),y=>R(f,y)),ft(Ft,()=>g($),y=>R($,y)),me(e,v),Cr(b)}Ks(["click","change"]),customElements.define("hb-editor-video",gi(Cn,{id:{},src:{},track:{},form:{}},[],[],!0)),pr.Component=Cn,Object.defineProperty(pr,Symbol.toStringTag,{value:"Module"})})(this["editor-video"]=this["editor-video"]||{});
77
+ */bt.extend(ji);let r=Pt(t,"id",7,""),s=Pt(t,"src",7,""),n=Pt(t,"track",23,()=>({maxValue:0,minValue:0})),i=Pt(t,"form",7),o=Y(void 0),a=Y(0),l=Y(void 0),u=Y(void 0),c=Y(void 0),d=Y(void 0),_=Y(void 0),b=Y(void 0),y=Y(0),E=Y("no"),P=Y(!0),M=Y(void 0),S=Y(void 0),F=Y(!0);Be({});let ee=Y(""),te=Y("");Is(()=>{i()&&C(P,!1),n()&&typeof n()=="string"&&n(JSON.parse(n())),console.log("reload all"),console.log(p(S),"log",p(a)),n()&&C(S,n().minValue<(p(S)||0)?p(S)||0:n().minValue,!0),console.log(p(S),"log2")});function N(w,H){t.$$host.dispatchEvent(new CustomEvent(w,{detail:H}))}function $(w){p(M).currentTime=w}Vn.addComponent({repoName:"@htmlbricks/hb-range-slider",version:Dn.version}),Vn.addComponent({repoName:"@htmlbricks/hb-form",version:Dn.version});function g(w){n().minValue=w.minValue,n().maxValue=w.maxValue,p(M).currentTime=w.positionValReal,C(S,w.positionValReal,!0),V(),p(M).currentTime<n().minValue&&$(n().minValue),p(M).currentTime>n().maxValue&&$(n().maxValue),N("changeTrackValues",{minVaule:n().minValue,maxValue:n().maxValue})}function V(){C(l,parseInt((n().maxValue/3600).toString()),!0),C(u,parseInt((n().maxValue/3600).toString()),!0),C(c,parseInt(((n().maxValue-Number(p(l))*60)/60).toString()),!0),C(d,parseInt(((n().minValue-Number(p(u))*60)/60).toString()),!0),C(_,n().maxValue-Number(p(l))*3600-Number(p(c))*60),C(b,n().minValue-Number(p(u))*3600-Number(p(d))*60)}function O(w){C(y,w.target.duration,!0),C(o,p(y),!0),(!n().maxValue||n().maxValue>p(o))&&(n().maxValue=p(o)),(!n().minValue||n().minValue<p(a))&&(n().minValue=p(a)),C(M,t.$$host?.shadowRoot?.querySelector("#video"),!0),V(),console.log("videoElement",p(M)),p(y)/5>100||p(y)/5}function k(w){switch(w){case"start":p(M).currentTime<n().maxValue&&(n().minValue=p(M).currentTime);break;case"end":p(M).currentTime>n().minValue&&(n().maxValue=p(M).currentTime);break;default:return console.error("no vaild point for cue")}V(),N("changeTrackValues",{minVaule:n().minValue,maxValue:n().maxValue})}function W(w){console.log("formSubmit",w._valid),C(P,w._valid,!0),p(E)==="yes"&&(w._valid&&!(!n()||!n().minValue&&n().minValue!==0||!n().maxValue&&n().maxValue!==0)&&N("dispatchTrack",Object.assign(n(),w)),console.log(n())),p(E)!=="no"&&C(E,"no")}function j(w){C(P,w._valid,!0)}function f(w){p(M).currentTime>n().maxValue?(p(M).pause(),$(n().maxValue)):p(M).currentTime<n().minValue-.01&&(p(M).pause(),$(n().minValue)),C(S,p(M).currentTime,!0)}var v={get id(){return r()},set id(w=""){r(w),rt()},get src(){return s()},set src(w=""){s(w),rt()},get track(){return n()},set track(w={maxValue:0,minValue:0}){n(w),rt()},get form(){return i()},set form(w){i(w),rt()}},h=Bi();ri(w=>{var H=Ni();me(w,H)});var x=se(h),m=se(x),D=se(m);Vr(3),ne(m),ne(x);var T=K(x,2),L=se(T);{var U=w=>{var H=Pi(),Ze=se(H),_r=se(Ze);{var gr=$t=>{var qt=Ri();qt.__click=[Vi,M];var eo=se(qt);{var to=mt=>{var pr=Ai();me(mt,pr)},ro=mt=>{var pr=Ci();me(mt,pr)};ft(eo,mt=>{p(F)?mt(to):mt(ro,!1)})}ne(qt),me($t,qt)};ft(_r,$t=>{p(M)&&$t(gr)})}ne(Ze);var Hn=K(Ze,2),Ie=se(Hn);Sn(Ie,p(te)+";--hb-slider-background-color: red;"),Se(()=>Re(Ie,"max",p(o).toString())),Se(()=>Re(Ie,"min",p(a).toString())),Se(()=>Re(Ie,"maxval",n().maxValue.toString())),Se(()=>Re(Ie,"minval",n().minValue.toString())),Se(()=>Re(Ie,"position_value",p(S).toString())),kn(Ie,1,"svelte-1xr6fjn"),ne(Hn),ne(H),at("changeRangeValues",Ie,$t=>{g($t.detail)}),me(w,H)};ft(L,w=>{p(y)&&n()&&w(U)})}var z=K(L,2);{var X=w=>{var H=Ii();Re(H,"hide_submit","yes"),Sn(H,p(ee)+"margin:40px auto 20px auto; display:block"),H.__change=[Li,j],Se(()=>Re(H,"submitted",p(E))),Se(()=>Re(H,"schema",i())),kn(H,1,"svelte-1xr6fjn"),at("submit",H,Ze=>W(Ze.detail)),me(w,H)};ft(z,w=>{i()&&w(X)})}var re=K(z,2),$e=se(re),xe=se($e);xe.__click=[Yi,k];var Pe=K(xe,2);Pe.__click=[Fi,$,n];var be=K(Pe,2);ct(be),be.__change=[ht,n,l,c,_,u,d,b];var G=K(be,2);ct(G),G.__change=[ht,n,l,c,_,u,d,b];var ve=K(G,2);ct(ve),ve.__change=[ht,n,l,c,_,u,d,b],Vr(),ne($e);var Le=K($e,4),Me=se(Le);ct(Me),Me.__change=[ht,n,l,c,_,u,d,b];var Ft=K(Me,2);ct(Ft),Ft.__change=[ht,n,l,c,_,u,d,b];var Ht=K(Ft,2);ct(Ht),Ht.__change=[ht,n,l,c,_,u,d,b];var In=K(Ht,2);In.__click=[Hi,$,n];var Gi=K(In,2);Gi.__click=[qi,k],ne(Le),ne(re),ne(T);var Yn=K(T,2),mr=se(Yn),Xi=se(mr);{var Ji=w=>{var H=si();Se((Ze,_r,gr)=>ai(H,`duration:
78
+ ${Ze??""}
79
+ ${_r??""}
80
+ ${gr??""}`),[()=>bt.duration((n().maxValue-n().minValue)*1e3).hours()?bt.duration((n().maxValue-n().minValue)*1e3).format("H")+" hours":"",()=>bt.duration((n().maxValue-n().minValue)*1e3).minutes()?bt.duration((n().maxValue-n().minValue)*1e3).format("m")+" minutes":"",()=>bt.duration(parseInt(((n().maxValue-n().minValue)*1e3).toString())).format("s.SSS")+" seconds"]),me(w,H)};ft(Xi,w=>{n()?.maxValue&&w(Ji)})}ne(mr);var Fn=K(mr,2),Zi=se(Fn);{var Ki=w=>{var H=Wi();H.__click=[Pn,n,i,N,E],me(w,H)},Qi=w=>{var H=Ui();H.__click=[Pn,n,i,N,E],me(w,H)};ft(Zi,w=>{p(P)?w(Ki):w(Qi,!1)})}return ne(Fn),ne(Yn),ne(h),Se(()=>Ct(D,"src",s())),at("play",m,()=>C(F,!1)),at("pause",m,()=>C(F,!0)),at("timeupdate",m,w=>f()),at("loadedmetadata",m,w=>O(w)),dt(be,()=>p(u),w=>C(u,w)),dt(G,()=>p(d),w=>C(d,w)),dt(ve,()=>p(b),w=>C(b,w)),dt(Me,()=>p(l),w=>C(l,w)),dt(Ft,()=>p(c),w=>C(c,w)),dt(Ht,()=>p(_),w=>C(_,w)),me(e,h),Pr(v)}ei(["click","change"]),customElements.define("hb-editor-video",yi(Ln,{id:{},src:{},track:{},form:{}},[],[],!0)),yr.Component=Ln,Object.defineProperty(yr,Symbol.toStringTag,{value:"Module"})})(this["editor-video"]=this["editor-video"]||{});
81
81
  //# sourceMappingURL=main.iife.js.map