@htmlbricks/hb-modal-video 0.61.50 → 0.61.52
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 +2 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
(function($e){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Or=1,Cr=2,Ee="[",be="[!",Te="]",gt={},T=Symbol(),Sr="http://www.w3.org/1999/xhtml",Ne=!1;var Re=Array.isArray,xr=Array.prototype.indexOf,kr=Array.from,jt=Object.keys,mt=Object.defineProperty,wt=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyDescriptors,Lr=Object.prototype,Mr=Array.prototype,Ae=Object.getPrototypeOf,Oe=Object.isExtensible;function Ce(t){for(var e=0;e<t.length;e++)t[e]()}function Dr(){var t,e,r=new Promise((n,i)=>{t=n,e=i});return{promise:r,resolve:t,reject:e}}const S=2,Zt=4,Qt=8,yt=16,K=32,J=64,Se=128,D=256,Ft=512,R=1024,P=2048,z=4096,Z=8192,at=16384,xe=32768,te=65536,ke=1<<17,Ir=1<<18,$t=1<<19,jr=1<<20,ee=1<<21,re=1<<22,lt=1<<23,ne=Symbol("$state"),Fr=Symbol("legacy props"),qr=Symbol(""),ie=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Pe=3,qt=8;function Yr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Hr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Vr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Wr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Br(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ur(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Yt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let E=!1;function Q(t){E=t}let b;function tt(t){if(t===null)throw Yt(),gt;return b=t}function Ht(){return tt(rt(b))}function Et(t){if(E){if(rt(b)!==null)throw Yt(),gt;b=t}}function Le(t=1){if(E){for(var e=t,r=b;e--;)r=rt(r);b=r}}function Xr(){for(var t=0,e=b;;){if(e.nodeType===qt){var r=e.data;if(r===Te){if(t===0)return e;t-=1}else(r===Ee||r===be)&&(t+=1)}var n=rt(e);e.remove(),e=n}}function Kr(t){if(!t||t.nodeType!==qt)throw Yt(),gt;return t.data}function Me(t){return t===this.v}function Jr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function zr(t){return!Jr(t,this.v)}let Zr=!1,j=null;function Vt(t){j=t}function De(t,e=!1,r){j={p:j,c:null,e:null,s:t,x:null,l:null}}function Ie(t){var e=j,r=e.e;if(r!==null){e.e=null;for(var n of r)gn(n)}return t!==void 0&&(e.x=t),j=e.p,t??{}}function je(){return!0}const Qr=new WeakMap;function tn(t){var e=m;if(e===null)return w.f|=lt,t;if((e.f&xe)===0){if((e.f&Se)===0)throw!e.parent&&t instanceof Error&&Fe(t),t;e.b.error(t)}else se(t,e)}function se(t,e){for(;e!==null;){if((e.f&Se)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t instanceof Error&&Fe(t),t}function Fe(t){const e=Qr.get(t);e&&(mt(t,"message",{value:e.message}),mt(t,"stack",{value:e.stack}))}let Pt=[],ae=[];function qe(){var t=Pt;Pt=[],Ce(t)}function en(){var t=ae;ae=[],Ce(t)}function rn(t){Pt.length===0&&queueMicrotask(qe),Pt.push(t)}function nn(){Pt.length>0&&qe(),ae.length>0&&en()}function sn(){const t=m.b;return t===null&&Yr(),t}function Ye(t){var e=S|P,r=w!==null&&(w.f&S)!==0?w:null;return m===null||r!==null&&(r.f&D)!==0?e|=D:m.f|=$t,{ctx:j,deps:null,effects:null,equals:Me,f:e,fn:t,reactions:null,rv:0,v:T,wv:0,parent:r??m,ac:null}}function an(t,e){let r=m;r===null&&Hr();var n=r.b,i=void 0,s=fe(T),a=null,l=!w;return $n(()=>{try{var o=t();a&&Promise.resolve(o).catch(()=>{})}catch(d){o=Promise.reject(d)}var u=()=>o;i=a?.then(u,u)??Promise.resolve(o),a=i;var f=N,c=n.is_pending();l&&(n.update_pending_count(1),c||f.increment());const v=(d,h=void 0)=>{a=null,c||f.activate(),h?h!==ie&&(s.f|=lt,ce(s,h)):((s.f<)!==0&&(s.f^=lt),ce(s,d)),l&&(n.update_pending_count(-1),c||f.decrement()),We()};if(i.then(v,d=>v(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(o=>{function u(f){function c(){f===i?o(s):u(i)}f.then(c,c)}u(i)})}function He(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)nt(e[r])}}function ln(t){for(var e=t.parent;e!==null;){if((e.f&S)===0)return e;e=e.parent}return null}function le(t){var e,r=m;Y(ln(t));try{He(t),e=dr(t)}finally{Y(r)}return e}function Ve(t){var e=le(t);if(t.equals(e)||(t.v=e,t.wv=cr()),!Ct){var r=(it||(t.f&D)!==0)&&t.deps!==null?z:R;C(t,r)}}function on(t,e,r){const n=Ye;if(e.length===0){r(t.map(n));return}var i=N,s=m,a=un(),l=sn();Promise.all(e.map(o=>an(o))).then(o=>{i?.activate(),a();try{r([...t.map(n),...o])}catch(u){(s.f&at)===0&&se(u,s)}i?.deactivate(),We()}).catch(o=>{l.error(o)})}function un(){var t=m,e=w,r=j,n=N;return function(){Y(t),L(e),Vt(r),n?.activate()}}function We(){Y(null),L(null),Vt(null)}const oe=new Set;let N=null,Be=new Set,Wt=[];function Ge(){const t=Wt.shift();Wt.length>0&&queueMicrotask(Ge),t()}let ot=[],Bt=null,ue=!1,Gt=!1;class ut{current=new Map;#e=new Map;#t=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#l=[];#c=[];#v=[];skipped_effects=new Set;process(e){ot=[];for(const i of e)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#d();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#l=[],N=null,Xe(r),Xe(n),N===null?N=this:oe.delete(this),this.#u?.resolve()}else this.#o(this.#s),this.#o(this.#n),this.#o(this.#l);for(const i of this.#i)St(i);for(const i of this.#a)St(i);this.#i=[],this.#a=[]}#h(e){e.f^=R;for(var r=e.first;r!==null;){var n=r.f,i=(n&(K|J))!==0,s=i&&(n&R)!==0,a=s||(n&Z)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=R;else if((n&Zt)!==0)this.#n.push(r);else if((n&R)===0)if((n&re)!==0){var l=r.b?.is_pending()?this.#a:this.#i;l.push(r)}else Ut(r)&&((r.f&yt)!==0&&this.#l.push(r),St(r));var o=r.first;if(o!==null){r=o;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#o(e){for(const r of e)((r.f&P)!==0?this.#c:this.#v).push(r),C(r,R);e.length=0}capture(e,r){this.#e.has(e)||this.#e.set(e,r),this.current.set(e,e.v)}activate(){N=this}deactivate(){N=null;for(const e of Be)if(Be.delete(e),e(),N!==null)break}neuter(){this.#f=!0}flush(){ot.length>0?Ue():this.#d(),N===this&&(this.#r===0&&oe.delete(this),this.deactivate())}#d(){if(!this.#f)for(const e of this.#t)e();this.#t.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const e of this.#c)C(e,P),Tt(e);for(const e of this.#v)C(e,z),Tt(e);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(e){this.#t.add(e)}settled(){return(this.#u??=Dr()).promise}static ensure(){if(N===null){const e=N=new ut;oe.add(N),Gt||ut.enqueue(()=>{N===e&&e.flush()})}return N}static enqueue(e){Wt.length===0&&queueMicrotask(Ge),Wt.unshift(e)}}function bt(t){var e=Gt;Gt=!0;try{for(var r;;){if(nn(),ot.length===0&&(N?.flush(),ot.length===0))return Bt=null,r;Ue()}}finally{Gt=e}}function Ue(){var t=Ot;ue=!0;try{var e=0;for(lr(!0);ot.length>0;){var r=ut.ensure();if(e++>1e3){var n,i;fn()}r.process(ot),et.clear()}}finally{ue=!1,lr(t),Bt=null}}function fn(){try{Vr()}catch(t){se(t,Bt)}}let ft=null;function Xe(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(at|Z))===0&&Ut(n)&&(ft=[],St(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?nr(n):n.fn=null),ft?.length>0)){et.clear();for(const i of ft)St(i);ft=[]}}ft=null}}function Tt(t){for(var e=Bt=t;e.parent!==null;){e=e.parent;var r=e.f;if(ue&&e===m&&(r&yt)!==0)return;if((r&(J|K))!==0){if((r&R)===0)return;e.f^=R}}ot.push(e)}const et=new Map;function fe(t,e){var r={f:0,v:t,reactions:null,equals:Me,rv:0,wv:0};return r}function F(t,e){const r=fe(t);return On(r),r}function cn(t,e=!1,r=!0){const n=fe(t);return e||(n.equals=zr),n}function V(t,e,r=!1){w!==null&&(!vt||(w.f&ke)!==0)&&je()&&(w.f&(S|yt|re|ke))!==0&&!W?.includes(t)&&Ur();let n=r?Nt(e):e;return ce(t,n)}function ce(t,e){if(!t.equals(e)){var r=t.v;Ct?et.set(t,e):et.set(t,r),t.v=e;var n=ut.ensure();n.capture(t,r),(t.f&S)!==0&&((t.f&P)!==0&&le(t),C(t,(t.f&D)===0?R:z)),t.wv=cr(),Ke(t,P),m!==null&&(m.f&R)!==0&&(m.f&(K|J))===0&&(M===null?Cn([t]):M.push(t))}return e}function ve(t){V(t,t.v+1)}function Ke(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,l=(a&P)===0;l&&C(s,e),(a&S)!==0?Ke(s,z):l&&((a&yt)!==0&&ft!==null&&ft.push(s),Tt(s))}}function Nt(t){if(typeof t!="object"||t===null||ne in t)return t;const e=Ae(t);if(e!==Lr&&e!==Mr)return t;var r=new Map,n=Re(t),i=F(0),s=dt,a=l=>{if(dt===s)return l();var o=w,u=dt;L(null),fr(s);var f=l();return L(o),fr(u),f};return n&&r.set("length",F(t.length)),new Proxy(t,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Br();var f=r.get(o);return f===void 0?f=a(()=>{var c=F(u.value);return r.set(o,c),c}):V(f,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const f=a(()=>F(T));r.set(o,f),ve(i)}}else V(u,T),ve(i);return!0},get(l,o,u){if(o===ne)return t;var f=r.get(o),c=o in l;if(f===void 0&&(!c||wt(l,o)?.writable)&&(f=a(()=>{var d=Nt(c?l[o]:T),h=F(d);return h}),r.set(o,f)),f!==void 0){var v=H(f);return v===T?void 0:v}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=r.get(o);f&&(u.value=H(f))}else if(u===void 0){var c=r.get(o),v=c?.v;if(c!==void 0&&v!==T)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(l,o){if(o===ne)return!0;var u=r.get(o),f=u!==void 0&&u.v!==T||Reflect.has(l,o);if(u!==void 0||m!==null&&(!f||wt(l,o)?.writable)){u===void 0&&(u=a(()=>{var v=f?Nt(l[o]):T,d=F(v);return d}),r.set(o,u));var c=H(u);if(c===T)return!1}return f},set(l,o,u,f){var c=r.get(o),v=o in l;if(n&&o==="length")for(var d=u;d<c.v;d+=1){var h=r.get(d+"");h!==void 0?V(h,T):d in l&&(h=a(()=>F(T)),r.set(d+"",h))}if(c===void 0)(!v||wt(l,o)?.writable)&&(c=a(()=>F(void 0)),V(c,Nt(u)),r.set(o,c));else{v=c.v!==T;var p=a(()=>Nt(u));V(c,p)}var A=Reflect.getOwnPropertyDescriptor(l,o);if(A?.set&&A.set.call(f,u),!v){if(n&&typeof o=="string"){var _=r.get("length"),y=Number(o);Number.isInteger(y)&&y>=_.v&&V(_,y+1)}ve(i)}return!0},ownKeys(l){H(i);var o=Reflect.ownKeys(l).filter(c=>{var v=r.get(c);return v===void 0||v.v!==T});for(var[u,f]of r)f.v!==T&&!(u in l)&&o.push(u);return o},setPrototypeOf(){Gr()}})}var Je,ze,Ze,Qe;function de(){if(Je===void 0){Je=window,ze=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Ze=wt(e,"firstChild").get,Qe=wt(e,"nextSibling").get,Oe(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Oe(r)&&(r.__t=void 0)}}function ct(t=""){return document.createTextNode(t)}function Rt(t){return Ze.call(t)}function rt(t){return Qe.call(t)}function At(t,e){if(!E)return Rt(t);var r=Rt(b);return r===null&&(r=b.appendChild(ct())),tt(r),r}function vn(t,e){if(!E){var r=Rt(t);return r instanceof Comment&&r.data===""?rt(r):r}return b}function tr(t,e=1,r=!1){let n=E?b:t;for(var i;e--;)i=n,n=rt(n);if(!E)return n;if(r&&n?.nodeType!==Pe){var s=ct();return n===null?i?.after(s):n.before(s),tt(s),s}return tt(n),n}function dn(t){t.textContent=""}function hn(){return!1}function he(t){var e=w,r=m;L(null),Y(null);try{return t()}finally{L(e),Y(r)}}function _n(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function q(t,e,r,n=!0){var i=m;i!==null&&(i.f&Z)!==0&&(t|=Z);var s={ctx:j,deps:null,nodes_start:null,nodes_end:null,f:t|P,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{St(s),s.f|=xe}catch(o){throw nt(s),o}else e!==null&&Tt(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&$t)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&_n(a,i),w!==null&&(w.f&S)!==0&&(t&J)===0)){var l=w;(l.effects??=[]).push(a)}}return s}function pn(t){const e=q(Qt,null,!1);return C(e,R),e.teardown=t,e}function gn(t){return q(Zt|jr,t,!1)}function mn(t){ut.ensure();const e=q(J|$t,t,!0);return()=>{nt(e)}}function wn(t){ut.ensure();const e=q(J|$t,t,!0);return(r={})=>new Promise(n=>{r.outro?ir(e,()=>{nt(e),n(void 0)}):(nt(e),n(void 0))})}function yn(t){return q(Zt,t,!1)}function $n(t){return q(re|$t,t,!0)}function En(t,e=0){return q(Qt|e,t,!0)}function Lt(t,e=[],r=[]){on(e,r,n=>{q(Qt,()=>t(...n.map(H)),!0)})}function bn(t,e=0){var r=q(yt|e,t,!0);return r}function _e(t,e=!0){return q(K|$t,t,!0,e)}function er(t){var e=t.teardown;if(e!==null){const r=Ct,n=w;or(!0),L(null);try{e.call(null)}finally{or(r),L(n)}}}function rr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&he(()=>{i.abort(ie)});var n=r.next;(r.f&J)!==0?r.parent=null:nt(r,e),r=n}}function Tn(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&K)===0&&nt(e),e=r}}function nt(t,e=!0){var r=!1;(e||(t.f&Ir)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Nn(t.nodes_start,t.nodes_end),r=!0),rr(t,e&&!r),Xt(t,0),C(t,at);var n=t.transitions;if(n!==null)for(const s of n)s.stop();er(t);var i=t.parent;i!==null&&i.first!==null&&nr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Nn(t,e){for(;t!==null;){var r=t===e?null:rt(t);t.remove(),t=r}}function nr(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function ir(t,e){var r=[];sr(t,r,!0),Rn(r,()=>{nt(t),e&&e()})}function Rn(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var i of t)i.out(n)}else e()}function sr(t,e,r){if((t.f&Z)===0){if(t.f^=Z,t.transitions!==null)for(const a of t.transitions)(a.is_global||r)&&e.push(a);for(var n=t.first;n!==null;){var i=n.next,s=(n.f&te)!==0||(n.f&K)!==0;sr(n,e,s?r:!1),n=i}}}function An(t){ar(t,!0)}function ar(t,e){if((t.f&Z)!==0){t.f^=Z,(t.f&R)===0&&(C(t,P),Tt(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&te)!==0||(r.f&K)!==0;ar(r,i?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let Ot=!1;function lr(t){Ot=t}let Ct=!1;function or(t){Ct=t}let w=null,vt=!1;function L(t){w=t}let m=null;function Y(t){m=t}let W=null;function On(t){w!==null&&(W===null?W=[t]:W.push(t))}let O=null,x=0,M=null;function Cn(t){M=t}let ur=1,Mt=0,dt=Mt;function fr(t){dt=t}let it=!1;function cr(){return++ur}function Ut(t){var e=t.f;if((e&P)!==0)return!0;if((e&z)!==0){var r=t.deps,n=(e&D)!==0;if(r!==null){var i,s,a=(e&Ft)!==0,l=n&&m!==null&&!it,o=r.length;if((a||l)&&(m===null||(m.f&at)===0)){var u=t,f=u.parent;for(i=0;i<o;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Ft),l&&f!==null&&(f.f&D)===0&&(u.f^=D)}for(i=0;i<o;i++)if(s=r[i],Ut(s)&&Ve(s),s.wv>t.wv)return!0}(!n||m!==null&&!it)&&C(t,R)}return!1}function vr(t,e,r=!0){var n=t.reactions;if(n!==null&&!W?.includes(t))for(var i=0;i<n.length;i++){var s=n[i];(s.f&S)!==0?vr(s,e,!1):e===s&&(r?C(s,P):(s.f&R)!==0&&C(s,z),Tt(s))}}function dr(t){var e=O,r=x,n=M,i=w,s=it,a=W,l=j,o=vt,u=dt,f=t.f;O=null,x=0,M=null,it=(f&D)!==0&&(vt||!Ot||w===null),w=(f&(K|J))===0?t:null,W=null,Vt(t.ctx),vt=!1,dt=++Mt,t.ac!==null&&(he(()=>{t.ac.abort(ie)}),t.ac=null);try{t.f|=ee;var c=t.fn,v=c(),d=t.deps;if(O!==null){var h;if(Xt(t,x),d!==null&&x>0)for(d.length=x+O.length,h=0;h<O.length;h++)d[x+h]=O[h];else t.deps=d=O;if(!it||(f&S)!==0&&t.reactions!==null)for(h=x;h<d.length;h++)(d[h].reactions??=[]).push(t)}else d!==null&&x<d.length&&(Xt(t,x),d.length=x);if(je()&&M!==null&&!vt&&d!==null&&(t.f&(S|z|P))===0)for(h=0;h<M.length;h++)vr(M[h],t);return i!==null&&i!==t&&(Mt++,M!==null&&(n===null?n=M:n.push(...M))),(t.f<)!==0&&(t.f^=lt),v}catch(p){return tn(p)}finally{t.f^=ee,O=e,x=r,M=n,w=i,it=s,W=a,Vt(l),vt=o,dt=u}}function Sn(t,e){let r=e.reactions;if(r!==null){var n=xr.call(r,t);if(n!==-1){var i=r.length-1;i===0?r=e.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(e.f&S)!==0&&(O===null||!O.includes(e))&&(C(e,z),(e.f&(D|Ft))===0&&(e.f^=Ft),He(e),Xt(e,0))}function Xt(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Sn(t,r[n])}function St(t){var e=t.f;if((e&at)===0){C(t,R);var r=m,n=Ot;m=t,Ot=!0;try{(e&yt)!==0?Tn(t):rr(t),er(t);var i=dr(t);t.teardown=typeof i=="function"?i:null,t.wv=ur;var s;Ne&&Zr&&(t.f&P)!==0&&t.deps}finally{Ot=n,m=r}}}function H(t){var e=t.f,r=(e&S)!==0;if(w!==null&&!vt){var n=m!==null&&(m.f&at)!==0;if(!n&&!W?.includes(t)){var i=w.deps;if((w.f&ee)!==0)t.rv<Mt&&(t.rv=Mt,O===null&&i!==null&&i[x]===t?x++:O===null?O=[t]:(!it||!O.includes(t))&&O.push(t));else{(w.deps??=[]).push(t);var s=t.reactions;s===null?t.reactions=[w]:s.includes(w)||s.push(w)}}}else if(r&&t.deps===null&&t.effects===null){var a=t,l=a.parent;l!==null&&(l.f&D)===0&&(a.f^=D)}if(Ct){if(et.has(t))return et.get(t);if(r){a=t;var o=a.v;return((a.f&R)===0&&a.reactions!==null||hr(a))&&(o=le(a)),et.set(a,o),o}}else r&&(a=t,Ut(a)&&Ve(a));if((t.f<)!==0)throw t.v;return t.v}function hr(t){if(t.v===T)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(et.has(e)||(e.f&S)!==0&&hr(e))return!0;return!1}const xn=-7169;function C(t,e){t.f=t.f&xn|e}const kn=new Set,_r=new Set;function Pn(t,e,r,n={}){function i(s){if(n.capture||Dt.call(e,s),!s.cancelBubble)return he(()=>r?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?rn(()=>{e.addEventListener(t,i,n)}):e.addEventListener(t,i,n),i}function Ln(t,e,r,n,i){var s={capture:n,passive:i},a=Pn(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&pn(()=>{e.removeEventListener(t,a,s)})}let pr=null;function Dt(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;pr=t;var a=0,l=pr===t&&t.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(e===document||e===window)){t.__root=e;return}var u=i.indexOf(e);if(u===-1)return;o<=u&&(a=o)}if(s=i[a]||t.target,s!==e){mt(t,"currentTarget",{configurable:!0,get(){return s||r}});var f=w,c=m;L(null),Y(null);try{for(var v,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+n];if(p!=null&&(!s.disabled||t.target===s))if(Re(p)){var[A,..._]=p;A.apply(s,[t,..._])}else p.call(s,t)}catch(y){v?d.push(y):v=y}if(t.cancelBubble||h===e||h===null)break;s=h}if(v){for(let y of d)queueMicrotask(()=>{throw y});throw v}}finally{t.__root=e,delete t.currentTarget,L(f),Y(c)}}}function Mn(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function st(t,e){var r=m;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Kt(t,e){var r=(e&Or)!==0,n=(e&Cr)!==0,i,s=!t.startsWith("<!>");return()=>{if(E)return st(b,null),b;i===void 0&&(i=Mn(s?t:"<!>"+t),r||(i=Rt(i)));var a=n||ze?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Rt(a),o=a.lastChild;st(l,o)}else st(a,a);return a}}function Dn(t=""){if(!E){var e=ct(t+"");return st(e,e),e}var r=b;return r.nodeType!==Pe&&(r.before(r=ct()),tt(r)),st(r,r),r}function In(){if(E)return st(b,null),b;var t=document.createDocumentFragment(),e=document.createComment(""),r=ct();return t.append(e,r),st(e,r),t}function ht(t,e){if(E){m.nodes_end=b,Ht();return}t!==null&&t.before(e)}const jn=["touchstart","touchmove"];function Fn(t){return jn.includes(t)}function qn(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function gr(t,e){return mr(t,e)}function Yn(t,e){de(),e.intro=e.intro??!1;const r=e.target,n=E,i=b;try{for(var s=Rt(r);s&&(s.nodeType!==qt||s.data!==Ee);)s=rt(s);if(!s)throw gt;Q(!0),tt(s),Ht();const a=mr(t,{...e,anchor:s});if(b===null||b.nodeType!==qt||b.data!==Te)throw Yt(),gt;return Q(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==gt&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Wr(),de(),dn(r),Q(!1),gr(t,e)}finally{Q(n),tt(i)}}const xt=new Map;function mr(t,{target:e,anchor:r,props:n={},events:i,context:s,intro:a=!0}){de();var l=new Set,o=c=>{for(var v=0;v<c.length;v++){var d=c[v];if(!l.has(d)){l.add(d);var h=Fn(d);e.addEventListener(d,Dt,{passive:h});var p=xt.get(d);p===void 0?(document.addEventListener(d,Dt,{passive:h}),xt.set(d,1)):xt.set(d,p+1)}}};o(kr(kn)),_r.add(o);var u=void 0,f=wn(()=>{var c=r??e.appendChild(ct());return _e(()=>{if(s){De({});var v=j;v.c=s}i&&(n.$$events=i),E&&st(c,null),u=t(c,n)||{},E&&(m.nodes_end=b),s&&Ie()}),()=>{for(var v of l){e.removeEventListener(v,Dt);var d=xt.get(v);--d===0?(document.removeEventListener(v,Dt),xt.delete(v)):xt.set(v,d)}_r.delete(o),c!==r&&c.parentNode?.removeChild(c)}});return pe.set(u,f),u}let pe=new WeakMap;function Hn(t,e){const r=pe.get(t);return r?(pe.delete(t),r(e)):Promise.resolve()}function ge(t,e,r=!1){E&&Ht();var n=t,i=null,s=null,a=T,l=r?te:0,o=!1;const u=(d,h=!0)=>{o=!0,v(h,d)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var d=a?i:s,h=a?s:i;d&&An(d),h&&ir(h,()=>{a?s=null:i=null})}const v=(d,h)=>{if(a===(a=d))return;let p=!1;if(E){const U=Kr(n)===be;!!a===U&&(n=Xr(),tt(n),Q(!1),p=!0)}var A=hn(),_=n;if(A&&(f=document.createDocumentFragment(),f.append(_=ct())),a?i??=h&&_e(()=>h(_)):s??=h&&_e(()=>h(_)),A){var y=N,B=a?i:s,G=a?s:i;B&&y.skipped_effects.delete(B),G&&y.skipped_effects.add(G),y.add_callback(c)}else c();p&&Q(!0)};bn(()=>{o=!1,e(u),o||v(null,null)},l),E&&(n=b)}function Vn(t,e,r,n,i){E&&Ht();var s=e.$$slots?.[r],a=!1;s===!0&&(s=e[r],a=!0),s===void 0?i!==null&&i(t):s(t,a?()=>n:n)}function Wn(t,e){yn(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const i=document.createElement("style");i.id=e.hash,i.textContent=e.code,n.appendChild(i)}})}function Bn(t,e){return t==null?null:String(t)}function Gn(t,e,r,n){var i=t.__style;if(E||i!==e){var s=Bn(e);(!E||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}return n}const Un=Symbol("is custom element"),Xn=Symbol("is html");function me(t,e,r,n){var i=Kn(t);E&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||i[e]!==(i[e]=r)&&(e==="loading"&&(t[qr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&yr(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function wr(t,e,r){var n=w,i=m;let s=E;E&&Q(!1),L(null),Y(null);try{e!=="style"&&(we.has(t.getAttribute("is")||t.nodeName)||!customElements||customElements.get(t.getAttribute("is")||t.tagName.toLowerCase())?yr(t).includes(e):r&&typeof r=="object")?t[e]=r:me(t,e,r==null?r:String(r))}finally{L(n),Y(i),s&&Q(!0)}}function Kn(t){return t.__attributes??={[Un]:t.nodeName.includes("-"),[Xn]:t.namespaceURI===Sr}}var we=new Map;function yr(t){var e=t.getAttribute("is")||t.nodeName,r=we.get(e);if(r)return r;we.set(e,r=[]);for(var n,i=t,s=Element.prototype;s!==i;){n=Pr(i);for(var a in n)n[a].set&&r.push(a);i=Ae(i)}return r}function It(t,e,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),l;l=t[e],l===void 0&&n!==void 0&&(l=a());var o;o=()=>{var v=t[e];return v===void 0?a():(s=!0,v)};var u=!1,f=Ye(()=>(u=!1,o())),c=m;return(function(v,d){if(arguments.length>0){const h=d?H(f):v;return V(f,h),u=!0,i!==void 0&&(i=h),v}return Ct&&u||(c.f&at)!==0?f.v:H(f)})}function Jn(t){return new zn(t)}class zn{#e;#t;constructor(e){var r=new Map,n=(s,a)=>{var l=cn(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...e.props||{},$$events:{}},{get(s,a){return H(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Fr?!0:(H(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return V(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#t=(e.hydrate?Yn:gr)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&bt(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||mt(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{Hn(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const n=(...i)=>r.call(this,...i);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}let $r;typeof HTMLElement=="function"&&($r=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),ht(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Zn(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Jt(i,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=Jn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=mn(()=>{En(()=>{this.$$r=!0;for(const n of jt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Jt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Jt(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return jt(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Jt(t,e,r,n){const i=r[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Zn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Qn(t,e,r,n,i,s){let a=class extends $r{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return jt(e).map(l=>(e[l].attribute||l).toLowerCase())}};return jt(e).forEach(l=>{mt(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=Jt(l,o,e),this.$$d[l]=o;var u=this.$$c;if(u){var f=wt(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{mt(a.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=a,a}function ti(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _t={},Er;function ei(){if(Er)return _t;Er=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.LanguageTranslator=void 0,_t.getChildStyleToPass=t,_t.addComponent=e;function t(n,i){var s,a,l="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(v){return Object.keys(n).includes(v.name)}))===null||a===void 0)&&a.length))for(var o=function(v){var d=i?.filter(function(h){return h.name===v&&h.defaultValue!==n[v]});d&&(l+="".concat(v,":").concat(n[v],";"))},u=0,f=Object.keys(n);u<f.length;u++){var c=f[u];o(c)}}catch(v){console.error("error getting child style to pass",v)}finally{return l}}function e(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(u){console.warn(u)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,l,o,u="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(u=(o=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||o===void 0?void 0:o.toLowerCase()),u},n.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",u=n.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(o=f[i])}return o},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return l.format(i)},n})();return _t.LanguageTranslator=r,_t}var ri=ei(),kt={},ye,br;function ni(){if(br)return ye;br=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
|
|
3
|
-
`,u="/",f="*",c="",v="comment",d="declaration";ye=function(p,A){if(typeof p!="string")throw new TypeError("First argument must be a string");if(!p)return[];A=A||{};var _=1,y=1;function B($){var g=$.match(e);g&&(_+=g.length);var I=$.lastIndexOf(o);y=~I?$.length-I:y+$.length}function G(){var $={line:_,column:y};return function(g){return g.position=new U($),pt(),g}}function U($){this.start=$,this.end={line:_,column:y},this.source=A.source}U.prototype.content=p;function X($){var g=new Error(A.source+":"+_+":"+y+": "+$);if(g.reason=$,g.filename=A.source,g.line=_,g.column=y,g.source=p,!A.silent)throw g}function k($){var g=$.exec(p);if(g){var I=g[0];return B(I),p=p.slice(I.length),g}}function pt(){k(r)}function zt($){var g;for($=$||[];g=Ar();)g!==!1&&$.push(g);return $}function Ar(){var $=G();if(!(u!=p.charAt(0)||f!=p.charAt(1))){for(var g=2;c!=p.charAt(g)&&(f!=p.charAt(g)||u!=p.charAt(g+1));)++g;if(g+=2,c===p.charAt(g-1))return X("End of comment missing");var I=p.slice(2,g-2);return y+=2,B(I),p=p.slice(g),y+=2,$({type:v,comment:I})}}function vi(){var $=G(),g=k(n);if(g){if(Ar(),!k(i))return X("property missing ':'");var I=k(s),hi=$({type:d,property:h(g[0].replace(t,c)),value:I?h(I[0].replace(t,c)):c});return k(a),hi}}function di(){var $=[];zt($);for(var g;g=vi();)g!==!1&&($.push(g),zt($));return $}return pt(),di()};function h(p){return p?p.replace(l,c):c}return ye}var Tr;function ii(){if(Tr)return kt;Tr=1;var t=kt&&kt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(kt,"__esModule",{value:!0}),kt.default=r;var e=t(ni());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,e.default)(n),l=typeof i=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?i(u,f,o):f&&(s=s||{},s[u]=f)}}),s}return kt}var si=ii();const Nr=ti(si);Nr.default;const ai={version:"0.61.50"};var li=Kt('<span slot="title"><!></span>'),oi=Kt('<div style="ratio:16/9;width:100%;text-align: center;"><iframe style="border:0;aspect-ratio: 16 / 9;width:100%" title="YouTube video" allowfullscreen=""></iframe></div>'),ui=Kt('<div style="aspect-ratio: 16 / 9;width:100%;text-align: center;background-color: black;"><video controls style="aspect-ratio: 16 / 9;width:100%"><track kind="captions"/> <source type="video/mp4"/> Your browser does not support the video tag.</video></div>',2),fi=Kt('<hb-dialog><!> <div slot="body-content"><!></div> <span slot="modal-footer"></span></hb-dialog>',2);const ci={hash:"svelte-40i2eu",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}'};function Rr(t,e){De(e,!0),Wn(t,ci);function r(_,y){e.$$host.dispatchEvent(new CustomEvent(_,{detail:y}))}ri.addComponent({repoName:"@htmlbricks/hb-dialog",version:ai.version});let n=F("");Nt({});let i=It(e,"id",7,""),s=It(e,"item",7,"defaultItem"),a=It(e,"uri",7,""),l=It(e,"title",7,""),o=It(e,"provider",7,"");function u(_){_.show?s(_.id):(s(""),a(""),l("")),r("videoModalEvent",{id:s(),show:_.show})}var f={get id(){return i()},set id(_=""){i(_),bt()},get item(){return s()},set item(_="defaultItem"){s(_),bt()},get uri(){return a()},set uri(_=""){a(_),bt()},get title(){return l()},set title(_=""){l(_),bt()},get provider(){return o()},set provider(_=""){o(_),bt()}},c=fi();Gn(c,H(n)),Lt(()=>wr(c,"id",s())),Lt(()=>wr(c,"show",a()?"yes":"no"));var v=At(c);{var d=_=>{var y=li(),B=At(y);Vn(B,e,"title",{},G=>{var U=Dn();Lt(()=>qn(U,`Video: ${l()??""}`)),ht(G,U)}),Et(y),ht(_,y)};ge(v,_=>{l()&&_(d)})}var h=tr(v,2),p=At(h);{var A=_=>{var y=In(),B=vn(y);{var G=X=>{var k=oi(),pt=At(k);Et(k),Lt(()=>me(pt,"src",a())),ht(X,k)},U=X=>{var k=ui(),pt=At(k),zt=tr(At(pt),2);Le(),Et(pt),Et(k),Lt(()=>me(zt,"src",a())),ht(X,k)};ge(B,X=>{o()==="youtube"?X(G):X(U,!1)})}ht(_,y)};ge(p,_=>{a()&&_(A)})}return Et(h),Le(2),Et(c),Ln("modalShow",c,_=>u(_.detail)),ht(t,c),Ie(f)}customElements.define("hb-modal-video",Qn(Rr,{id:{},item:{},uri:{},title:{},provider:{}},["title"],[],!0)),$e.Component=Rr,Object.defineProperty($e,Symbol.toStringTag,{value:"Module"})})(this["modal-video"]=this["modal-video"]||{});
|
|
1
|
+
(function(bt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const An=1,Nn=2,Et="[",it="[!",Tt="]",_e={},$=Symbol(),Sn="http://www.w3.org/1999/xhtml",kt=!1;var Cn=Array.isArray,Rn=Array.prototype.indexOf,On=Array.from,Be=Object.keys,Ye=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,Ln=Object.getOwnPropertyDescriptors,Dn=Object.prototype,Mn=Array.prototype,xt=Object.getPrototypeOf,At=Object.isExtensible;function Pn(e){for(var t=0;t<e.length;t++)e[t]()}function Nt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const b=2,Ve=4,st=8,W=16,ee=32,te=64,He=128,M=512,E=1024,A=2048,G=4096,q=8192,ne=16384,St=32768,ge=65536,Ct=1<<17,Rt=1<<18,fe=1<<19,Fn=1<<20,Se=32768,lt=1<<21,ft=1<<22,re=1<<23,ot=Symbol("$state"),jn=Symbol("legacy props"),In=Symbol(""),me=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},at=3,Ce=8;function qn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Yn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Vn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Hn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Un(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Wn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ue(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Gn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function ie(e){g=e}let m;function P(e){if(e===null)throw Ue(),_e;return m=e}function We(){return P(J(m))}function we(e){if(g){if(J(m)!==null)throw Ue(),_e;m=e}}function ut(e=1){if(g){for(var t=e,n=m;t--;)n=J(n);m=n}}function Ot(e=!0){for(var t=0,n=m;;){if(n.nodeType===Ce){var r=n.data;if(r===Tt){if(t===0)return n;t-=1}else(r===Et||r===it)&&(t+=1)}var i=J(n);e&&n.remove(),n=i}}function zn(e){if(!e||e.nodeType!==Ce)throw Ue(),_e;return e.data}function Lt(e){return e===this.v}function Kn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Jn(e){return!Kn(e,this.v)}let Xn=!1,F=null;function ye(e){F=e}function Dt(e,t=!1,n){F={p:F,i:!1,c:null,e:null,s:e,x:null,l:null}}function Mt(e){var t=F,n=t.e;if(n!==null){t.e=null;for(var r of n)vr(r)}return e!==void 0&&(t.x=e),t.i=!0,F=t.p,e??{}}function Pt(){return!0}let oe=[];function Ft(){var e=oe;oe=[],Pn(e)}function Ge(e){if(oe.length===0&&!Re){var t=oe;queueMicrotask(()=>{t===oe&&Ft()})}oe.push(e)}function Zn(){for(;oe.length>0;)Ft()}function jt(e){var t=_;if(t===null)return v.f|=re,e;if((t.f&St)===0){if((t.f&He)===0)throw e;t.b.error(e)}else $e(e,t)}function $e(e,t){for(;t!==null;){if((t.f&He)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const ze=new Set;let y=null,S=null,B=[],Ke=null,ct=!1,Re=!1;class j{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#l=[];#f=[];skipped_effects=new Set;is_fork=!1;process(t){B=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#a(),this.#r>0||this.is_fork?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(y=null,qt(n.render_effects),qt(n.effects),this.#o?.resolve()),S=null}#i(t,n){t.f^=E;for(var r=t.first;r!==null;){var i=r.f,s=(i&(ee|te))!==0,l=s&&(i&E)!==0,f=l||(i&q)!==0||this.skipped_effects.has(r);if((r.f&He)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!f&&r.fn!==null){s?r.f^=E:(i&Ve)!==0?n.effects.push(r):Fe(r)&&((r.f&W)!==0&&n.block_effects.push(r),je(r));var o=r.first;if(o!==null){r=o;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#s(t){for(const n of t)((n.f&A)!==0?this.#l:this.#f).push(n),k(n,E)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&re)===0&&(this.current.set(t,t.v),S?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y=null,S=null}flush(){if(this.activate(),B.length>0){if(It(),y!==null&&y!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#a(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#u()}#u(){if(ze.size>1){this.previous.clear();var t=S,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of ze){if(i===this){n=!1;continue}const s=[];for(const[f,o]of this.current){if(i.current.has(f))if(n&&o!==i.current.get(f))i.current.set(f,o);else continue;s.push(f)}if(s.length===0)continue;const l=[...i.current.keys()].filter(f=>!this.current.has(f));if(l.length>0){const f=new Set,o=new Map;for(const a of s)Bt(a,l,f,o);if(B.length>0){y=i,i.apply();for(const a of B)i.#i(a,r);B=[],i.deactivate()}}}y=null,S=t}this.committed=!0,ze.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#l)k(t,A),ae(t);for(const t of this.#f)k(t,G),ae(t);this.#l=[],this.#f=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=Nt()).promise}static ensure(){if(y===null){const t=y=new j;ze.add(y),Re||j.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){Ge(t)}apply(){}}function be(e){var t=Re;Re=!0;try{for(var n;;){if(Zn(),B.length===0&&(y?.flush(),B.length===0))return Ke=null,n;It()}}finally{Re=t}}function It(){var e=ue;ct=!0;try{var t=0;for(an(!0);B.length>0;){var n=j.ensure();if(t++>1e3){var r,i;Qn()}n.process(B),se.clear()}}finally{ct=!1,an(e),Ke=null}}function Qn(){try{Bn()}catch(e){$e(e,Ke)}}let z=null;function qt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ne|q))===0&&Fe(r)&&(z=new Set,je(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?sn(r):r.fn=null),z?.size>0)){se.clear();for(const i of z){if((i.f&(ne|q))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)z.has(l)&&(z.delete(l),s.push(l)),l=l.parent;for(let f=s.length-1;f>=0;f--){const o=s[f];(o.f&(ne|q))===0&&je(o)}}z.clear()}}z=null}}function Bt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&b)!==0?Bt(i,t,n,r):(s&(ft|W))!==0&&(s&A)===0&&Yt(i,t,r)&&(k(i,A),ae(i))}}function Yt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&b)!==0&&Yt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ae(e){for(var t=Ke=e;t.parent!==null;){t=t.parent;var n=t.f;if(ct&&t===_&&(n&W)!==0&&(n&Rt)===0)return;if((n&(te|ee))!==0){if((n&E)===0)return;t.f^=E}}B.push(t)}function er(e){let t=0,n=Oe(0),r;return()=>{Ze()&&(L(n),en(()=>(t===0&&(r=xr(()=>e(()=>Le(n)))),t+=1,()=>{Ge(()=>{t-=1,t===0&&(r?.(),r=void 0,Le(n))})})))}}var tr=ge|fe|He;function nr(e,t,n){new rr(e,t,n)}class rr{parent;#t=!1;#e;#n=g?m:null;#r;#o;#l;#f=null;#i=null;#s=null;#a=null;#u=null;#d=0;#c=0;#v=!1;#h=null;#w=er(()=>(this.#h=Oe(this.#d),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=_.b,this.#t=!!this.#r.pending,this.#l=tn(()=>{if(_.b=this,g){const s=this.#n;We(),s.nodeType===Ce&&s.data===it?this.#$():this.#y()}else{var i=this.#g();try{this.#f=X(()=>r(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},tr),g&&(this.#e=m)}#y(){try{this.#f=X(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#$(){const t=this.#r.pending;t&&(this.#i=X(()=>t(this.#e)),j.enqueue(()=>{var n=this.#g();this.#f=this.#_(()=>(j.ensure(),X(()=>this.#o(n)))),this.#c>0?this.#p():(Me(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=V(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=_,r=v,i=F;R(this.#l),T(this.#l),ye(this.#l.ctx);try{return t()}catch(s){return jt(s),null}finally{R(n),T(r),ye(i)}}#p(){const t=this.#r.pending;this.#f!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),on(this.#f,this.#a)),this.#i===null&&(this.#i=X(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&Me(this.#i,()=>{this.#i=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#d+=t,this.#h&&Xe(this.#h,this.#d)}get_effect_pending(){return this.#w(),L(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#f&&(N(this.#f),this.#f=null),this.#i&&(N(this.#i),this.#i=null),this.#s&&(N(this.#s),this.#s=null),g&&(P(this.#n),ut(),P(Ot()));var i=!1,s=!1;const l=()=>{if(i){Gn();return}i=!0,s&&Wn(),j.ensure(),this.#d=0,this.#s!==null&&Me(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#f=this.#_(()=>(this.#v=!1,X(()=>this.#o(this.#e)))),this.#c>0?this.#p():this.#t=!1};var f=v;try{T(null),s=!0,n?.(t,l),s=!1}catch(o){$e(o,this.#l&&this.#l.parent)}finally{T(f)}r&&Ge(()=>{this.#s=this.#_(()=>{j.ensure(),this.#v=!0;try{return X(()=>{r(this.#e,()=>t,()=>l)})}catch(o){return $e(o,this.#l.parent),null}finally{this.#v=!1}})})}}function ir(e,t,n,r){const i=Vt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=y,l=_,f=sr();function o(){Promise.all(n.map(a=>lr(a))).then(a=>{f();try{r([...t.map(i),...a])}catch(c){(l.f&ne)===0&&$e(c,l)}s?.deactivate(),Je()}).catch(a=>{$e(a,l)})}e.length>0?Promise.all(e).then(()=>{f();try{return o()}finally{s?.deactivate(),Je()}}):o()}function sr(){var e=_,t=v,n=F,r=y;return function(s=!0){R(e),T(t),ye(n),s&&r?.activate()}}function Je(){R(null),T(null),ye(null)}function Vt(e){var t=b|A,n=v!==null&&(v.f&b)!==0?v:null;return _!==null&&(_.f|=fe),{ctx:F,deps:null,effects:null,equals:Lt,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:n??_,ac:null}}function lr(e,t){let n=_;n===null&&qn();var r=n.b,i=void 0,s=Oe($),l=!v,f=new Map;return mr(()=>{var o=Nt();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{a===y&&a.committed&&a.deactivate(),Je()})}catch(u){o.reject(u),Je()}var a=y;if(l){var c=!r.is_pending();r.update_pending_count(1),a.increment(c),f.get(a)?.reject(me),f.delete(a),f.set(a,o)}const h=(u,d=void 0)=>{if(a.activate(),d)d!==me&&(s.f|=re,Xe(s,d));else{(s.f&re)!==0&&(s.f^=re),Xe(s,u);for(const[w,I]of f){if(f.delete(w),w===a)break;I.reject(me)}}l&&(r.update_pending_count(-1),a.decrement(c))};o.promise.then(h,u=>h(null,u||"unknown"))}),Qt(()=>{for(const o of f.values())o.reject(me)}),new Promise(o=>{function a(c){function h(){c===i?o(s):a(i)}c.then(h,h)}a(i)})}function Ht(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)N(t[n])}}function fr(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return t;t=t.parent}return null}function ht(e){var t,n=_;R(fr(e));try{e.f&=~Se,Ht(e),t=_n(e)}finally{R(n)}return t}function Ut(e){var t=ht(e);if(e.equals(t)||(e.v=t,e.wv=dn()),!xe)if(S!==null)Ze()&&S.set(e,e.v);else{var n=(e.f&M)===0?G:E;k(e,n)}}let dt=new Set;const se=new Map;let Wt=!1;function Oe(e,t){var n={f:0,v:e,reactions:null,equals:Lt,rv:0,wv:0};return n}function Y(e,t){const n=Oe(e);return Er(n),n}function or(e,t=!1,n=!0){const r=Oe(e);return t||(r.equals=Jn),r}function K(e,t,n=!1){v!==null&&(!U||(v.f&Ct)!==0)&&Pt()&&(v.f&(b|W|ft|Ct))!==0&&!Z?.includes(e)&&Un();let r=n?Ee(t):t;return Xe(e,r)}function Xe(e,t){if(!e.equals(t)){var n=e.v;xe?se.set(e,t):se.set(e,n),e.v=t;var r=j.ensure();r.capture(e,n),(e.f&b)!==0&&((e.f&A)!==0&&ht(e),k(e,(e.f&M)!==0?E:G)),e.wv=dn(),Gt(e,A),_!==null&&(_.f&E)!==0&&(_.f&(ee|te))===0&&(O===null?Tr([e]):O.push(e)),!r.is_fork&&dt.size>0&&!Wt&&ar()}return t}function ar(){Wt=!1;const e=Array.from(dt);for(const t of e)(t.f&E)!==0&&k(t,G),Fe(t)&&je(t);dt.clear()}function Le(e){K(e,e.v+1)}function Gt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,f=(l&A)===0;if(f&&k(s,t),(l&b)!==0){var o=s;S?.delete(o),(l&Se)===0&&(l&M&&(s.f|=Se),Gt(o,G))}else f&&((l&W)!==0&&z!==null&&z.add(s),ae(s))}}function Ee(e){if(typeof e!="object"||e===null||ot in e)return e;const t=xt(e);if(t!==Dn&&t!==Mn)return e;var n=new Map,r=Cn(e),i=Y(0),s=ce,l=f=>{if(ce===s)return f();var o=v,a=ce;T(null),hn(s);var c=f();return T(o),hn(a),c};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(f,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Vn();var c=n.get(o);return c===void 0?c=l(()=>{var h=Y(a.value);return n.set(o,h),h}):K(c,a.value,!0),!0},deleteProperty(f,o){var a=n.get(o);if(a===void 0){if(o in f){const c=l(()=>Y($));n.set(o,c),Le(i)}}else K(a,$),Le(i);return!0},get(f,o,a){if(o===ot)return e;var c=n.get(o),h=o in f;if(c===void 0&&(!h||pe(f,o)?.writable)&&(c=l(()=>{var d=Ee(h?f[o]:$),w=Y(d);return w}),n.set(o,c)),c!==void 0){var u=L(c);return u===$?void 0:u}return Reflect.get(f,o,a)},getOwnPropertyDescriptor(f,o){var a=Reflect.getOwnPropertyDescriptor(f,o);if(a&&"value"in a){var c=n.get(o);c&&(a.value=L(c))}else if(a===void 0){var h=n.get(o),u=h?.v;if(h!==void 0&&u!==$)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(f,o){if(o===ot)return!0;var a=n.get(o),c=a!==void 0&&a.v!==$||Reflect.has(f,o);if(a!==void 0||_!==null&&(!c||pe(f,o)?.writable)){a===void 0&&(a=l(()=>{var u=c?Ee(f[o]):$,d=Y(u);return d}),n.set(o,a));var h=L(a);if(h===$)return!1}return c},set(f,o,a,c){var h=n.get(o),u=o in f;if(r&&o==="length")for(var d=a;d<h.v;d+=1){var w=n.get(d+"");w!==void 0?K(w,$):d in f&&(w=l(()=>Y($)),n.set(d+"",w))}if(h===void 0)(!u||pe(f,o)?.writable)&&(h=l(()=>Y(void 0)),K(h,Ee(a)),n.set(o,h));else{u=h.v!==$;var I=l(()=>Ee(a));K(h,I)}var Q=Reflect.getOwnPropertyDescriptor(f,o);if(Q?.set&&Q.set.call(c,a),!u){if(r&&typeof o=="string"){var p=n.get("length"),D=Number(o);Number.isInteger(D)&&D>=p.v&&K(p,D+1)}Le(i)}return!0},ownKeys(f){L(i);var o=Reflect.ownKeys(f).filter(h=>{var u=n.get(h);return u===void 0||u.v!==$});for(var[a,c]of n)c.v!==$&&!(a in f)&&o.push(a);return o},setPrototypeOf(){Hn()}})}var zt,Kt,Jt,Xt;function vt(){if(zt===void 0){zt=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Jt=pe(t,"firstChild").get,Xt=pe(t,"nextSibling").get,At(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),At(n)&&(n.__t=void 0)}}function V(e=""){return document.createTextNode(e)}function Te(e){return Jt.call(e)}function J(e){return Xt.call(e)}function ke(e,t){if(!g)return Te(e);var n=Te(m);return n===null&&(n=m.appendChild(V())),P(n),n}function ur(e,t=!1){if(!g){var n=Te(e);return n instanceof Comment&&n.data===""?J(n):n}if(t&&m?.nodeType!==at){var r=V();return m?.before(r),P(r),r}return m}function Zt(e,t=1,n=!1){let r=g?m:e;for(var i;t--;)i=r,r=J(r);if(!g)return r;if(n&&r?.nodeType!==at){var s=V();return r===null?i?.after(s):r.before(s),P(s),s}return P(r),r}function cr(e){e.textContent=""}function hr(){return!1}function _t(e){var t=v,n=_;T(null),R(null);try{return e()}finally{T(t),R(n)}}function dr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function H(e,t,n,r=!0){var i=_;i!==null&&(i.f&q)!==0&&(e|=q);var s={ctx:F,deps:null,nodes_start:null,nodes_end:null,f:e|A|M,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{je(s),s.f|=St}catch(o){throw N(s),o}else t!==null&&ae(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&fe)===0&&(l=l.first,(e&W)!==0&&(e&ge)!==0&&l!==null&&(l.f|=ge)),l!==null&&(l.parent=i,i!==null&&dr(l,i),v!==null&&(v.f&b)!==0&&(e&te)===0)){var f=v;(f.effects??=[]).push(l)}}return s}function Ze(){return v!==null&&!U}function Qt(e){const t=H(st,null,!1);return k(t,E),t.teardown=e,t}function vr(e){return H(Ve|Fn,e,!1)}function _r(e){j.ensure();const t=H(te|fe,e,!0);return()=>{N(t)}}function pr(e){j.ensure();const t=H(te|fe,e,!0);return(n={})=>new Promise(r=>{n.outro?Me(t,()=>{N(t),r(void 0)}):(N(t),r(void 0))})}function gr(e){return H(Ve,e,!1)}function mr(e){return H(ft|fe,e,!0)}function en(e,t=0){return H(st|t,e,!0)}function De(e,t=[],n=[],r=[],i=!1){ir(r,t,n,s=>{H(i?Ve:st,()=>e(...s.map(L)),!0)})}function tn(e,t=0){var n=H(W|t,e,!0);return n}function X(e,t=!0){return H(ee|fe,e,!0,t)}function nn(e){var t=e.teardown;if(t!==null){const n=xe,r=v;un(!0),T(null);try{t.call(null)}finally{un(n),T(r)}}}function rn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&_t(()=>{i.abort(me)});var r=n.next;(n.f&te)!==0?n.parent=null:N(n,t),n=r}}function wr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ee)===0&&N(t),t=n}}function N(e,t=!0){var n=!1;(t||(e.f&Rt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(yr(e.nodes_start,e.nodes_end),n=!0),rn(e,t&&!n),Qe(e,0),k(e,ne);var r=e.transitions;if(r!==null)for(const s of r)s.stop();nn(e);var i=e.parent;i!==null&&i.first!==null&&sn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function yr(e,t){for(;e!==null;){var n=e===t?null:J(e);e.remove(),e=n}}function sn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Me(e,t,n=!0){var r=[];ln(e,r,!0),$r(r,()=>{n&&N(e),t&&t()})}function $r(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function ln(e,t,n){if((e.f&q)===0){if(e.f^=q,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&ge)!==0||(r.f&ee)!==0&&(e.f&W)!==0;ln(r,t,s?n:!1),r=i}}}function br(e){fn(e,!0)}function fn(e,t){if((e.f&q)!==0){e.f^=q,(e.f&E)===0&&(k(e,A),ae(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ge)!==0||(n.f&ee)!==0;fn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function on(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:J(n);t.append(n),n=i}}let ue=!1;function an(e){ue=e}let xe=!1;function un(e){xe=e}let v=null,U=!1;function T(e){v=e}let _=null;function R(e){_=e}let Z=null;function Er(e){v!==null&&(Z===null?Z=[e]:Z.push(e))}let x=null,C=0,O=null;function Tr(e){O=e}let cn=1,Pe=0,ce=Pe;function hn(e){ce=e}function dn(){return++cn}function Fe(e){var t=e.f;if((t&A)!==0)return!0;if(t&b&&(e.f&=~Se),(t&G)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Fe(s)&&Ut(s),s.wv>e.wv)return!0}(t&M)!==0&&S===null&&k(e,E)}return!1}function vn(e,t,n=!0){var r=e.reactions;if(r!==null&&!Z?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&b)!==0?vn(s,t,!1):t===s&&(n?k(s,A):(s.f&E)!==0&&k(s,G),ae(s))}}function _n(e){var t=x,n=C,r=O,i=v,s=Z,l=F,f=U,o=ce,a=e.f;x=null,C=0,O=null,v=(a&(ee|te))===0?e:null,Z=null,ye(e.ctx),U=!1,ce=++Pe,e.ac!==null&&(_t(()=>{e.ac.abort(me)}),e.ac=null);try{e.f|=lt;var c=e.fn,h=c(),u=e.deps;if(x!==null){var d;if(Qe(e,C),u!==null&&C>0)for(u.length=C+x.length,d=0;d<x.length;d++)u[C+d]=x[d];else e.deps=u=x;if(ue&&Ze()&&(e.f&M)!==0)for(d=C;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&C<u.length&&(Qe(e,C),u.length=C);if(Pt()&&O!==null&&!U&&u!==null&&(e.f&(b|G|A))===0)for(d=0;d<O.length;d++)vn(O[d],e);return i!==null&&i!==e&&(Pe++,O!==null&&(r===null?r=O:r.push(...O))),(e.f&re)!==0&&(e.f^=re),h}catch(w){return jt(w)}finally{e.f^=lt,x=t,C=n,O=r,v=i,Z=s,ye(l),U=f,ce=o}}function kr(e,t){let n=t.reactions;if(n!==null){var r=Rn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&b)!==0&&(x===null||!x.includes(t))&&(k(t,G),(t.f&M)!==0&&(t.f^=M,t.f&=~Se),Ht(t),Qe(t,0))}function Qe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)kr(e,n[r])}function je(e){var t=e.f;if((t&ne)===0){k(e,E);var n=_,r=ue;_=e,ue=!0;try{(t&W)!==0?wr(e):rn(e),nn(e);var i=_n(e);e.teardown=typeof i=="function"?i:null,e.wv=cn;var s;kt&&Xn&&(e.f&A)!==0&&e.deps}finally{ue=r,_=n}}}function L(e){var t=e.f,n=(t&b)!==0;if(v!==null&&!U){var r=_!==null&&(_.f&ne)!==0;if(!r&&!Z?.includes(e)){var i=v.deps;if((v.f<)!==0)e.rv<Pe&&(e.rv=Pe,x===null&&i!==null&&i[C]===e?C++:x===null?x=[e]:x.includes(e)||x.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(xe){if(se.has(e))return se.get(e);if(n){var l=e,f=l.v;return((l.f&E)===0&&l.reactions!==null||gn(l))&&(f=ht(l)),se.set(l,f),f}}else if(n){if(l=e,S?.has(l))return S.get(l);Fe(l)&&Ut(l),ue&&Ze()&&(l.f&M)===0&&pn(l)}else if(S?.has(e))return S.get(e);if((e.f&re)!==0)throw e.v;return e.v}function pn(e){if(e.deps!==null){e.f^=M;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&b)!==0&&(t.f&M)===0&&pn(t)}}function gn(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(se.has(t)||(t.f&b)!==0&&gn(t))return!0;return!1}function xr(e){var t=U;try{return U=!0,e()}finally{U=t}}const Ar=-7169;function k(e,t){e.f=e.f&Ar|t}const Nr=new Set,mn=new Set;function Sr(e,t,n,r={}){function i(s){if(r.capture||Ie.call(t,s),!s.cancelBubble)return _t(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ge(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Cr(e,t,n,r,i){var s={capture:r,passive:i},l=Sr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qt(()=>{t.removeEventListener(e,l,s)})}let wn=null;function Ie(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;wn=e;var l=0,f=wn===e&&e.__root;if(f){var o=i.indexOf(f);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;o<=a&&(l=o)}if(s=i[l]||e.target,s!==t){Ye(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,h=_;T(null),R(null);try{for(var u,d=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var I=s["__"+r];I!=null&&(!s.disabled||e.target===s)&&I.call(s,e)}catch(Q){u?d.push(Q):u=Q}if(e.cancelBubble||w===t||w===null)break;s=w}if(u){for(let Q of d)queueMicrotask(()=>{throw Q});throw u}}finally{e.__root=t,delete e.currentTarget,T(c),R(h)}}}function Rr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function le(e,t){var n=_;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function et(e,t){var n=(t&An)!==0,r=(t&Nn)!==0,i,s=!e.startsWith("<!>");return()=>{if(g)return le(m,null),m;i===void 0&&(i=Rr(s?e:"<!>"+e),n||(i=Te(i)));var l=r||Kt?document.importNode(i,!0):i.cloneNode(!0);if(n){var f=Te(l),o=l.lastChild;le(f,o)}else le(l,l);return l}}function Or(e=""){if(!g){var t=V(e+"");return le(t,t),t}var n=m;return n.nodeType!==at&&(n.before(n=V()),P(n)),le(n,n),n}function Lr(){if(g)return le(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),n=V();return e.append(t,n),le(t,n),e}function he(e,t){if(g){_.nodes_end=m,We();return}e!==null&&e.before(t)}const Dr=["touchstart","touchmove"];function Mr(e){return Dr.includes(e)}function Pr(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function yn(e,t){return $n(e,t)}function Fr(e,t){vt(),t.intro=t.intro??!1;const n=t.target,r=g,i=m;try{for(var s=Te(n);s&&(s.nodeType!==Ce||s.data!==Et);)s=J(s);if(!s)throw _e;ie(!0),P(s);const l=$n(e,{...t,anchor:s});return ie(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(f=>f.startsWith("https://svelte.dev/e/")))throw l;return l!==_e&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Yn(),vt(),cr(n),ie(!1),yn(e,t)}finally{ie(r),P(i)}}const Ae=new Map;function $n(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){vt();var f=new Set,o=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!f.has(d)){f.add(d);var w=Mr(d);t.addEventListener(d,Ie,{passive:w});var I=Ae.get(d);I===void 0?(document.addEventListener(d,Ie,{passive:w}),Ae.set(d,1)):Ae.set(d,I+1)}}};o(On(Nr)),mn.add(o);var a=void 0,c=pr(()=>{var h=n??t.appendChild(V());return nr(h,{pending:()=>{}},u=>{if(s){Dt({});var d=F;d.c=s}if(i&&(r.$$events=i),g&&le(u,null),a=e(u,r)||{},g&&(_.nodes_end=m,m===null||m.nodeType!==Ce||m.data!==Tt))throw Ue(),_e;s&&Mt()}),()=>{for(var u of f){t.removeEventListener(u,Ie);var d=Ae.get(u);--d===0?(document.removeEventListener(u,Ie),Ae.delete(u)):Ae.set(u,d)}mn.delete(o),h!==n&&h.parentNode?.removeChild(h)}});return pt.set(a,c),a}let pt=new WeakMap;function jr(e,t){const n=pt.get(e);return n?(pt.delete(e),n(t)):Promise.resolve()}class Ir{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#o=()=>{var t=y;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)br(r);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#t){if(this.#t.delete(s),s===t)break;const f=this.#n.get(l);f&&(N(f.effect),this.#n.delete(l))}for(const[s,l]of this.#e){if(s===n)continue;const f=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();on(l,a),a.append(V()),this.#n.set(s,{effect:l,fragment:a})}else N(l);this.#e.delete(s)};this.#r||!r?Me(l,f,!1):f()}}};#l=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(N(i.effect),this.#n.delete(r))};ensure(t,n){var r=y,i=hr();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),l=V();s.append(l),this.#n.set(t,{effect:X(()=>n(l)),fragment:s})}else this.#e.set(t,X(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[f,o]of this.#e)f===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[f,o]of this.#n)f===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#o),r.ondiscard(this.#l)}else g&&(this.anchor=m),this.#o()}}function gt(e,t,n=!1){g&&We();var r=new Ir(e),i=n?ge:0;function s(l,f){if(g){const a=zn(e)===it;if(l===a){var o=Ot();P(o),r.anchor=o,ie(!1),r.ensure(l,f),ie(!0);return}}r.ensure(l,f)}tn(()=>{var l=!1;t((f,o=!0)=>{l=!0,s(o,f)}),l||s(!1,null)},i)}function qr(e,t,n,r,i){g&&We();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n],l=!0),s===void 0?i!==null&&i(e):s(e,l?()=>r:r)}function Br(e,t){gr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Yr(e,t){return e==null?null:String(e)}function Vr(e,t,n,r){var i=e.__style;if(g||i!==t){var s=Yr(t);(!g||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Hr=Symbol("is custom element"),Ur=Symbol("is html");function mt(e,t,n,r){var i=Wr(e);g&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[In]=n),n==null?e.removeAttribute(t):typeof n!="string"&&En(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function bn(e,t,n){var r=v,i=_;let s=g;g&&ie(!1),T(null),R(null);try{t!=="style"&&(wt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?En(e).includes(t):n&&typeof n=="object")?e[t]=n:mt(e,t,n==null?n:String(n))}finally{T(r),R(i),s&&ie(!0)}}function Wr(e){return e.__attributes??={[Hr]:e.nodeName.includes("-"),[Ur]:e.namespaceURI===Sn}}var wt=new Map;function En(e){var t=e.getAttribute("is")||e.nodeName,n=wt.get(t);if(n)return n;wt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Ln(i);for(var l in r)r[l].set&&n.push(l);i=xt(i)}return n}function qe(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),f;f=e[t],f===void 0&&r!==void 0&&(f=l());var o;o=()=>{var u=e[t];return u===void 0?l():(s=!0,u)};var a=!1,c=Vt(()=>(a=!1,o())),h=_;return(function(u,d){if(arguments.length>0){const w=d?L(c):u;return K(c,w),a=!0,i!==void 0&&(i=w),u}return xe&&a||(h.f&ne)!==0?c.v:L(c)})}function Gr(e){return new zr(e)}class zr{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var f=or(l,!1,!1);return n.set(s,f),f};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return L(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===jn?!0:(L(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,f){return K(n.get(l)??r(l,f),f),Reflect.set(s,l,f)}});this.#e=(t.hydrate?Fr:yn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&be(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ye(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{jr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let 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,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),he(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Kr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=tt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Gr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_r(()=>{en(()=>{this.$$r=!0;for(const r of Be(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=tt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=tt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Be(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function tt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Kr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Jr(e,t,n,r,i,s){let l=class extends Tn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Be(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Be(t).forEach(f=>{Ye(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(o){o=tt(f,o,t),this.$$d[f]=o;var a=this.$$c;if(a){var c=pe(a,f)?.get;c?a[f]=o:a.$set({[f]:o})}}})}),r.forEach(f=>{Ye(l.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=l,l}var de={},kn;function Xr(){if(kn)return de;kn=1,Object.defineProperty(de,"__esModule",{value:!0}),de.LanguageTranslator=void 0,de.getChildStyleToPass=e,de.addComponent=t;function e(r,i){var s,l,f="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||l===void 0)&&l.length))for(var o=function(u){var d=i?.filter(function(w){return w.name===u&&w.defaultValue!==r[u]});d&&(f+="".concat(u,":").concat(r[u],";"))},a=0,c=Object.keys(r);a<c.length;a++){var h=c[a];o(h)}}catch(u){console.error("error getting child style to pass",u)}finally{return f}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var f=document.createElement("script");if(f.id=s+"-script",f.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)f.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];f.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(l)}document.head.appendChild(f)}catch(a){console.warn(a)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,f="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(f=navigator.languages[0].split("-")[0].toLowerCase()),f},r.getDictionaryWord=function(i,s,l){var f;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((f=s[l])===null||f===void 0)&&f[i]))return s[l][i];var o="",a=r.getDefaultLang();if(!l||a!==l){var c=s?.[a];c?.[i]&&(o=c[i])}return o},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var f=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return f.format(i)},r})();return de.LanguageTranslator=n,de}var Zr=Xr();const Qr={version:"0.61.52"};var ei=et('<span slot="title"><!></span>'),ti=et('<div style="ratio:16/9;width:100%;text-align: center;"><iframe style="border:0;aspect-ratio: 16 / 9;width:100%" title="YouTube video" allowfullscreen=""></iframe></div>'),ni=et('<div style="aspect-ratio: 16 / 9;width:100%;text-align: center;background-color: black;"><video controls style="aspect-ratio: 16 / 9;width:100%"><track kind="captions"/> <source type="video/mp4"/> Your browser does not support the video tag.</video></div>',2),ri=et('<hb-dialog><!> <div slot="body-content"><!></div> <span slot="modal-footer"></span></hb-dialog>',2);const ii={hash:"svelte-18hhnm9",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}'};function xn(e,t){Dt(t,!0),Br(e,ii);function n(p,D){t.$$host.dispatchEvent(new CustomEvent(p,{detail:D}))}Zr.addComponent({repoName:"@htmlbricks/hb-dialog",version:Qr.version});let r=Y("");Ee({});let i=qe(t,"id",7,""),s=qe(t,"item",7,"defaultItem"),l=qe(t,"uri",7,""),f=qe(t,"title",7,""),o=qe(t,"provider",7,"");function a(p){p.show?s(p.id):(s(""),l(""),f("")),n("videoModalEvent",{id:s(),show:p.show})}var c={get id(){return i()},set id(p=""){i(p),be()},get item(){return s()},set item(p="defaultItem"){s(p),be()},get uri(){return l()},set uri(p=""){l(p),be()},get title(){return f()},set title(p=""){f(p),be()},get provider(){return o()},set provider(p=""){o(p),be()}},h=ri();Vr(h,L(r)),De(()=>bn(h,"id",s())),De(()=>bn(h,"show",l()?"yes":"no"));var u=ke(h);{var d=p=>{var D=ei(),yt=ke(D);qr(yt,t,"title",{},$t=>{var nt=Or();De(()=>Pr(nt,`Video: ${f()??""}`)),he($t,nt)}),we(D),he(p,D)};gt(u,p=>{f()&&p(d)})}var w=Zt(u,2),I=ke(w);{var Q=p=>{var D=Lr(),yt=ur(D);{var $t=Ne=>{var ve=ti(),rt=ke(ve);we(ve),De(()=>mt(rt,"src",l())),he(Ne,ve)},nt=Ne=>{var ve=ni(),rt=ke(ve),si=Zt(ke(rt),2);ut(),we(rt),we(ve),De(()=>mt(si,"src",l())),he(Ne,ve)};gt(yt,Ne=>{o()==="youtube"?Ne($t):Ne(nt,!1)})}he(p,D)};gt(I,p=>{l()&&p(Q)})}return we(w),ut(2),we(h),Cr("modalShow",h,p=>a(p.detail)),he(e,h),Mt(c)}customElements.define("hb-modal-video",Jr(xn,{id:{},item:{},uri:{},title:{},provider:{}},["title"],[],!0)),bt.Component=xn,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})})(this["modal-video"]=this["modal-video"]||{});
|
|
4
3
|
//# sourceMappingURL=main.iife.js.map
|