@htmlbricks/hb-gallery-video 0.20.17 → 0.50.0-alpha.10

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 ADDED
@@ -0,0 +1,102 @@
1
+ var ia=Object.defineProperty;var kn=H=>{throw TypeError(H)};var aa=(H,B,J)=>B in H?ia(H,B,{enumerable:!0,configurable:!0,writable:!0,value:J}):H[B]=J;var we=(H,B,J)=>aa(H,typeof B!="symbol"?B+"":B,J),Sn=(H,B,J)=>B.has(H)||kn("Cannot "+J);var ue=(H,B,J)=>(Sn(H,B,"read from private field"),J?J.call(H):B.get(H)),cr=(H,B,J)=>B.has(H)?kn("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(H):B.set(H,J),vr=(H,B,J,dt)=>(Sn(H,B,"write to private field"),dt?dt.call(H,J):B.set(H,J),J);(function(H){"use strict";var Re,he;const B="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(B);const J=1,dt=2,Mn=16,Dn=1,On=4,Tn=8,Cn=16,An=1,Nn=2,hr="[",Lt="[!",Yt="]",at={},ae=Symbol(),Pt=!1,_e=2,_r=4,ct=8,jt=16,De=32,Ze=64,vt=128,ce=256,ht=512,re=1024,Oe=2048,Qe=4096,Te=8192,_t=16384,Rn=32768,Ft=65536,In=1<<19,mr=1<<20,mt=Symbol("$state"),gr=Symbol("legacy props"),Ln=Symbol("");var qt=Array.isArray,Yn=Array.prototype.indexOf,Ht=Array.from,gt=Object.keys,pt=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyDescriptors,jn=Object.prototype,Fn=Array.prototype,pr=Object.getPrototypeOf;function br(e){for(var t=0;t<e.length;t++)e[t]()}const qn=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let bt=!1,wt=!1,Vt=[],Ut=[];function wr(){bt=!1;const e=Vt.slice();Vt=[],br(e)}function yr(){wt=!1;const e=Ut.slice();Ut=[],br(e)}function $r(e){bt||(bt=!0,queueMicrotask(wr)),Vt.push(e)}function Hn(e){wt||(wt=!0,qn(yr)),Ut.push(e)}function Vn(){bt&&wr(),wt&&yr()}function xr(e){return e===this.v}function Un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Bt(e){return!Un(e,this.v)}function Bn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function zn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Xn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Jn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qn(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function ei(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ti=!1;function ve(e,t){var r={f:0,v:e,reactions:null,equals:xr,rv:0,wv:0};return r}function We(e){return ri(ve(e))}function Wt(e,t=!1){const r=ve(e);return t||(r.equals=Bt),r}function ri(e){return N!==null&&!$e&&N.f&_e&&(ke===null?li([e]):ke.push(e)),e}function W(e,t){return N!==null&&!$e&&en()&&N.f&(_e|jt)&&(ke===null||!ke.includes(e))&&ei(),Er(e,t)}function Er(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=jr(),kr(e,Oe),A!==null&&A.f&re&&!(A.f&(De|Ze))&&(Ce===null?oi([e]):Ce.push(e))),t}function kr(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var a=r[n],s=a.f;s&Oe||(Se(a,t),s&(re|ce)&&(s&_e?kr(a,Qe):Dt(a)))}}function zt(e){var t=_e|Oe,r=N!==null&&N.f&_e?N:null;return A===null||r!==null&&r.f&ce?t|=ce:A.f|=mr,{ctx:de,deps:null,effects:null,equals:xr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??A}}function ni(e){const t=zt(e);return t.equals=Bt,t}function Sr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ae(t[r])}}function ii(e){for(var t=e.parent;t!==null;){if(!(t.f&_e))return t;t=t.parent}return null}function ai(e){var t,r=A;Ee(ii(e));try{Sr(e),t=qr(e)}finally{Ee(r)}return t}function Mr(e){var t=ai(e),r=(Pe||e.f&ce)&&e.deps!==null?Qe:re;Se(e,r),e.equals(t)||(e.v=t,e.wv=jr())}function Gt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let Y=!1;function me(e){Y=e}let V;function ye(e){if(e===null)throw Gt(),at;return V=e}function yt(){return ye(Ye(V))}function Z(e){if(Y){if(Ye(V)!==null)throw Gt(),at;V=e}}function Kt(){for(var e=0,t=V;;){if(t.nodeType===8){var r=t.data;if(r===Yt){if(e===0)return t;e-=1}else(r===hr||r===Lt)&&(e+=1)}var i=Ye(t);t.remove(),t=i}}function K(e,t=null,r){if(typeof e!="object"||e===null||mt in e)return e;const i=pr(e);if(i!==jn&&i!==Fn)return e;var n=new Map,a=qt(e),s=ve(0);a&&n.set("length",ve(e.length));var c;return new Proxy(e,{defineProperty(v,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Jn();var o=n.get(u);return o===void 0?(o=ve(f.value),n.set(u,o)):W(o,K(f.value,c)),!0},deleteProperty(v,u){var f=n.get(u);if(f===void 0)u in v&&n.set(u,ve(ae));else{if(a&&typeof u=="string"){var o=n.get("length"),l=Number(u);Number.isInteger(l)&&l<o.v&&W(o,l)}W(f,ae),Dr(s)}return!0},get(v,u,f){var b;if(u===mt)return e;var o=n.get(u),l=u in v;if(o===void 0&&(!l||(b=Be(v,u))!=null&&b.writable)&&(o=ve(K(l?v[u]:ae,c)),n.set(u,o)),o!==void 0){var m=$(o);return m===ae?void 0:m}return Reflect.get(v,u,f)},getOwnPropertyDescriptor(v,u){var f=Reflect.getOwnPropertyDescriptor(v,u);if(f&&"value"in f){var o=n.get(u);o&&(f.value=$(o))}else if(f===void 0){var l=n.get(u),m=l==null?void 0:l.v;if(l!==void 0&&m!==ae)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return f},has(v,u){var m;if(u===mt)return!0;var f=n.get(u),o=f!==void 0&&f.v!==ae||Reflect.has(v,u);if(f!==void 0||A!==null&&(!o||(m=Be(v,u))!=null&&m.writable)){f===void 0&&(f=ve(o?K(v[u],c):ae),n.set(u,f));var l=$(f);if(l===ae)return!1}return o},set(v,u,f,o){var C;var l=n.get(u),m=u in v;if(a&&u==="length")for(var b=f;b<l.v;b+=1){var y=n.get(b+"");y!==void 0?W(y,ae):b in v&&(y=ve(ae),n.set(b+"",y))}l===void 0?(!m||(C=Be(v,u))!=null&&C.writable)&&(l=ve(void 0),W(l,K(f,c)),n.set(u,l)):(m=l.v!==ae,W(l,K(f,c)));var D=Reflect.getOwnPropertyDescriptor(v,u);if(D!=null&&D.set&&D.set.call(o,f),!m){if(a&&typeof u=="string"){var S=n.get("length"),M=Number(u);Number.isInteger(M)&&M>=S.v&&W(S,M+1)}Dr(s)}return!0},ownKeys(v){$(s);var u=Reflect.ownKeys(v).filter(l=>{var m=n.get(l);return m===void 0||m.v!==ae});for(var[f,o]of n)o.v!==ae&&!(f in v)&&u.push(f);return u},setPrototypeOf(){Zn()}})}function Dr(e,t=1){W(e,e.v+t)}var Or,Tr,Cr,Ar;function Xt(){if(Or===void 0){Or=window,Tr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Cr=Be(t,"firstChild").get,Ar=Be(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function $t(e=""){return document.createTextNode(e)}function ze(e){return Cr.call(e)}function Ye(e){return Ar.call(e)}function Q(e,t){if(!Y)return ze(e);var r=ze(V);return r===null&&(r=V.appendChild($t())),ye(r),r}function Nr(e,t){if(!Y){var r=ze(e);return r instanceof Comment&&r.data===""?Ye(r):r}return V}function ge(e,t=1,r=!1){let i=Y?V:e;for(var n;t--;)n=i,i=Ye(i);if(!Y)return i;var a=i==null?void 0:i.nodeType;if(r&&a!==3){var s=$t();return i===null?n==null||n.after(s):i.before(s),ye(s),s}return ye(i),i}function Rr(e){e.textContent=""}const Ir=0,si=1;let xt=!1,Et=Ir,st=!1,lt=null,et=!1,Jt=!1;function Lr(e){et=e}function Yr(e){Jt=e}let Ge=[],tt=0,sa=[],N=null,$e=!1;function xe(e){N=e}let A=null;function Ee(e){A=e}let ke=null;function li(e){ke=e}let ne=null,fe=0,Ce=null;function oi(e){Ce=e}let Pr=1,kt=0,Pe=!1;function jr(){return++Pr}function ot(e){var o;var t=e.f;if(t&Oe)return!0;if(t&Qe){var r=e.deps,i=(t&ce)!==0;if(r!==null){var n,a,s=(t&ht)!==0,c=i&&A!==null&&!Pe,v=r.length;if(s||c){var u=e,f=u.parent;for(n=0;n<v;n++)a=r[n],(s||!((o=a==null?void 0:a.reactions)!=null&&o.includes(u)))&&(a.reactions??(a.reactions=[])).push(u);s&&(u.f^=ht),c&&f!==null&&!(f.f&ce)&&(u.f^=ce)}for(n=0;n<v;n++)if(a=r[n],ot(a)&&Mr(a),a.wv>e.wv)return!0}(!i||A!==null&&!Pe)&&Se(e,re)}return!1}function ui(e,t){for(var r=t;r!==null;){if(r.f&vt)try{r.fn(e);return}catch{r.f^=vt}r=r.parent}throw xt=!1,e}function fi(e){return(e.f&_t)===0&&(e.parent===null||(e.parent.f&vt)===0)}function St(e,t,r,i){if(xt){if(r===null&&(xt=!1),fi(t))throw e;return}r!==null&&(xt=!0);{ui(e,t);return}}function Fr(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var a=i[n];a.f&_e?Fr(a,t,!1):t===a&&(r?Se(a,Oe):a.f&re&&Se(a,Qe),Dt(a))}}function qr(e){var m;var t=ne,r=fe,i=Ce,n=N,a=Pe,s=ke,c=de,v=$e,u=e.f;ne=null,fe=0,Ce=null,N=u&(De|Ze)?null:e,Pe=(u&ce)!==0&&(!et||n===null||v),ke=null,Jr(e.ctx),$e=!1,kt++;try{var f=(0,e.fn)(),o=e.deps;if(ne!==null){var l;if(Mt(e,fe),o!==null&&fe>0)for(o.length=fe+ne.length,l=0;l<ne.length;l++)o[fe+l]=ne[l];else e.deps=o=ne;if(!Pe)for(l=fe;l<o.length;l++)((m=o[l]).reactions??(m.reactions=[])).push(e)}else o!==null&&fe<o.length&&(Mt(e,fe),o.length=fe);if(en()&&Ce!==null&&!$e&&o!==null&&!(e.f&(_e|Qe|Oe)))for(l=0;l<Ce.length;l++)Fr(Ce[l],e);return n!==null&&kt++,f}finally{ne=t,fe=r,Ce=i,N=n,Pe=a,ke=s,Jr(c),$e=v}}function di(e,t){let r=t.reactions;if(r!==null){var i=Yn.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&_e&&(ne===null||!ne.includes(t))&&(Se(t,Qe),t.f&(ce|ht)||(t.f^=ht),Sr(t),Mt(t,0))}function Mt(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)di(e,r[i])}function Zt(e){var t=e.f;if(!(t&_t)){Se(e,re);var r=A,i=de;A=e;try{t&jt?$i(e):zr(e),Wr(e);var n=qr(e);e.teardown=typeof n=="function"?n:null,e.wv=Pr;var a=e.deps,s;Pt&&ti&&e.f&Oe}catch(c){St(c,e,r,i||e.ctx)}finally{A=r}}}function Hr(){if(tt>1e3){tt=0;try{Gn()}catch(e){if(lt!==null)St(e,lt,null);else throw e}}tt++}function Vr(e){var t=e.length;if(t!==0){Hr();var r=et;et=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&re||(n.f^=re);var a=hi(n);ci(a)}}finally{et=r}}}function ci(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(_t|Te)))try{ot(i)&&(Zt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Gr(i):i.fn=null))}catch(n){St(n,i,null,i.ctx)}}}function vi(){if(st=!1,tt>1001)return;const e=Ge;Ge=[],Vr(e),st||(tt=0,lt=null)}function Dt(e){Et===Ir&&(st||(st=!0,queueMicrotask(vi))),lt=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(Ze|De)){if(!(r&re))return;t.f^=re}}Ge.push(t)}function hi(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&De)!==0,a=n&&(i&re)!==0,s=r.next;if(!a&&!(i&Te)){if(i&_r)t.push(r);else if(n)r.f^=re;else{var c=N;try{N=r,ot(r)&&Zt(r)}catch(f){St(f,r,null,r.ctx)}finally{N=c}}var v=r.first;if(v!==null){r=v;continue}}if(s===null){let f=r.parent;for(;f!==null;){if(e===f)break e;var u=f.next;if(u!==null){r=u;continue e}f=f.parent}}r=s}return t}function ee(e){var t=Et,r=Ge;try{Hr();const n=[];Et=si,Ge=n,st=!1,Vr(r);var i=e==null?void 0:e();return Vn(),(Ge.length>0||n.length>0)&&ee(),tt=0,lt=null,i}finally{Et=t,Ge=r}}function $(e){var t=e.f,r=(t&_e)!==0;if(N!==null&&!$e){ke!==null&&ke.includes(e)&&Qn();var i=N.deps;e.rv<kt&&(e.rv=kt,ne===null&&i!==null&&i[fe]===e?fe++:ne===null?ne=[e]:(!Pe||!ne.includes(e))&&ne.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,a=n.parent;a!==null&&!(a.f&ce)&&(n.f^=ce)}return r&&(n=e,ot(n)&&Mr(n)),e.v}function Qt(e){var t=$e;try{return $e=!0,e()}finally{$e=t}}const _i=-7169;function Se(e,t){e.f=e.f&_i|t}function mi(e){A===null&&N===null&&zn(),N!==null&&N.f&ce&&A===null&&Wn(),Jt&&Bn()}function gi(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ke(e,t,r,i=!0){var n=(e&Ze)!==0,a=A,s={ctx:de,deps:null,nodes_start:null,nodes_end:null,f:e|Oe,first:null,fn:t,last:null,next:null,parent:n?null:a,prev:null,teardown:null,transitions:null,wv:0};if(r){var c=et;try{Lr(!0),Zt(s),s.f|=Rn}catch(f){throw Ae(s),f}finally{Lr(c)}}else t!==null&&Dt(s);var v=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&(mr|vt))===0;if(!v&&!n&&i&&(a!==null&&gi(s,a),N!==null&&N.f&_e)){var u=N;(u.effects??(u.effects=[])).push(s)}return s}function pi(e){const t=Ke(ct,null,!1);return Se(t,re),t.teardown=e,t}function bi(e){mi();var t=A!==null&&(A.f&De)!==0&&de!==null&&!de.m;if(t){var r=de;(r.e??(r.e=[])).push({fn:e,effect:A,reaction:N})}else{var i=Ur(e);return i}}function wi(e){const t=Ke(Ze,e,!0);return()=>{Ae(t)}}function yi(e){const t=Ke(Ze,e,!0);return(r={})=>new Promise(i=>{r.outro?Ot(t,()=>{Ae(t),i(void 0)}):(Ae(t),i(void 0))})}function Ur(e){return Ke(_r,e,!1)}function Br(e){return Ke(ct,e,!0)}function se(e,t=[],r=zt){const i=t.map(r);return er(()=>e(...i.map($)))}function er(e,t=0){return Ke(ct|jt|t,e,!0)}function ut(e,t=!0){return Ke(ct|De,e,!0,t)}function Wr(e){var t=e.teardown;if(t!==null){const r=Jt,i=N;Yr(!0),xe(null);try{t.call(null)}finally{Yr(r),xe(i)}}}function zr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;Ae(r,t),r=i}}function $i(e){for(var t=e.first;t!==null;){var r=t.next;t.f&De||Ae(t),t=r}}function Ae(e,t=!0){var r=!1;if((t||e.f&In)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var a=i===n?null:Ye(i);i.remove(),i=a}r=!0}zr(e,t&&!r),Mt(e,0),Se(e,_t);var s=e.transitions;if(s!==null)for(const v of s)v.stop();Wr(e);var c=e.parent;c!==null&&c.first!==null&&Gr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Gr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function Ot(e,t){var r=[];tr(e,r,!0),Kr(r,()=>{Ae(e),t&&t()})}function Kr(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function tr(e,t,r){if(!(e.f&Te)){if(e.f^=Te,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var i=e.first;i!==null;){var n=i.next,a=(i.f&Ft)!==0||(i.f&De)!==0;tr(i,t,a?r:!1),i=n}}}function Tt(e){Xr(e,!0)}function Xr(e,t){if(e.f&Te){e.f^=Te,e.f&re||(e.f^=re),ot(e)&&(Se(e,Oe),Dt(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&Ft)!==0||(r.f&De)!==0;Xr(r,n?t:!1),r=i}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let de=null;function Jr(e){de=e}function Zr(e,t=!1,r){de={p:de,c:null,e:null,m:!1,s:e,x:null,l:null}}function Qr(e){const t=de;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=A,i=N;t.e=null;try{for(var n=0;n<s.length;n++){var a=s[n];Ee(a.effect),xe(a.reaction),Ur(a.fn)}}finally{Ee(r),xe(i)}}de=t.p,t.m=!0}return e||{}}function en(){return!0}const xi=["touchstart","touchmove"];function Ei(e){return xi.includes(e)}let tn=!1;function rn(){tn||(tn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function nn(e){var t=N,r=A;xe(null),Ee(null);try{return e()}finally{xe(t),Ee(r)}}function ki(e,t,r,i=r){e.addEventListener(t,()=>nn(r));const n=e.__on_r;n?e.__on_r=()=>{n(),i(!0)}:e.__on_r=()=>i(!0),rn()}const an=new Set,rr=new Set;function Si(e,t,r,i={}){function n(a){if(i.capture||ft.call(t,a),!a.cancelBubble)return nn(()=>r==null?void 0:r.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?$r(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function Mi(e,t,r,i,n){var a={capture:i,passive:n},s=Si(e,t,r,a);(t===document.body||t===window||t===document)&&pi(()=>{t.removeEventListener(e,s,a)})}function Di(e){for(var t=0;t<e.length;t++)an.add(e[t]);for(var r of rr)r(e)}function ft(e){var M;var t=this,r=t.ownerDocument,i=e.type,n=((M=e.composedPath)==null?void 0:M.call(e))||[],a=n[0]||e.target,s=0,c=e.__root;if(c){var v=n.indexOf(c);if(v!==-1&&(t===document||t===window)){e.__root=t;return}var u=n.indexOf(t);if(u===-1)return;v<=u&&(s=v)}if(a=n[s]||e.target,a!==t){pt(e,"currentTarget",{configurable:!0,get(){return a||r}});var f=N,o=A;xe(null),Ee(null);try{for(var l,m=[];a!==null;){var b=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+i];if(y!==void 0&&!a.disabled)if(qt(y)){var[D,...S]=y;D.apply(a,[e,...S])}else y.call(a,e)}catch(C){l?m.push(C):l=C}if(e.cancelBubble||b===t||b===null)break;a=b}if(l){for(let C of m)queueMicrotask(()=>{throw C});throw l}}finally{e.__root=t,delete e.currentTarget,xe(f),Ee(o)}}}function Oi(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Ct(e,t){var r=A;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function je(e,t){var r=(t&An)!==0,i=(t&Nn)!==0,n,a=!e.startsWith("<!>");return()=>{if(Y)return Ct(V,null),V;n===void 0&&(n=Oi(a?e:"<!>"+e),r||(n=ze(n)));var s=i||Tr?document.importNode(n,!0):n.cloneNode(!0);if(r){var c=ze(s),v=s.lastChild;Ct(c,v)}else Ct(s,s);return s}}function Ne(e,t){if(Y){A.nodes_end=V,yt();return}e!==null&&e.before(t)}function sn(e,t){return ln(e,t)}function Ti(e,t){Xt(),t.intro=t.intro??!1;const r=t.target,i=Y,n=V;try{for(var a=ze(r);a&&(a.nodeType!==8||a.data!==hr);)a=Ye(a);if(!a)throw at;me(!0),ye(a),yt();const s=ln(e,{...t,anchor:a});if(V===null||V.nodeType!==8||V.data!==Yt)throw Gt(),at;return me(!1),s}catch(s){if(s===at)return t.recover===!1&&Kn(),Xt(),Rr(r),me(!1),sn(e,t);throw s}finally{me(i),ye(n)}}const rt=new Map;function ln(e,{target:t,anchor:r,props:i={},events:n,context:a,intro:s=!0}){Xt();var c=new Set,v=o=>{for(var l=0;l<o.length;l++){var m=o[l];if(!c.has(m)){c.add(m);var b=Ei(m);t.addEventListener(m,ft,{passive:b});var y=rt.get(m);y===void 0?(document.addEventListener(m,ft,{passive:b}),rt.set(m,1)):rt.set(m,y+1)}}};v(Ht(an)),rr.add(v);var u=void 0,f=yi(()=>{var o=r??t.appendChild($t());return ut(()=>{if(a){Zr({});var l=de;l.c=a}n&&(i.$$events=n),Y&&Ct(o,null),u=e(o,i)||{},Y&&(A.nodes_end=V),a&&Qr()}),()=>{var b;for(var l of c){t.removeEventListener(l,ft);var m=rt.get(l);--m===0?(document.removeEventListener(l,ft),rt.delete(l)):rt.set(l,m)}rr.delete(v),o!==r&&((b=o.parentNode)==null||b.removeChild(o))}});return nr.set(u,f),u}let nr=new WeakMap;function Ci(e,t){const r=nr.get(e);return r?(nr.delete(e),r(t)):Promise.resolve()}function nt(e,t,r=!1){Y&&yt();var i=e,n=null,a=null,s=ae,c=r?Ft:0,v=!1;const u=(o,l=!0)=>{v=!0,f(l,o)},f=(o,l)=>{if(s===(s=o))return;let m=!1;if(Y){const b=i.data===Lt;!!s===b&&(i=Kt(),ye(i),me(!1),m=!0)}s?(n?Tt(n):l&&(n=ut(()=>l(i))),a&&Ot(a,()=>{a=null})):(a?Tt(a):l&&(a=ut(()=>l(i))),n&&Ot(n,()=>{n=null})),m&&me(!0)};er(()=>{v=!1,t(u),v||f(null,null)},c),Y&&(i=V)}function Ai(e,t,r,i){for(var n=[],a=t.length,s=0;s<a;s++)tr(t[s].e,n,!0);var c=a>0&&n.length===0&&r!==null;if(c){var v=r.parentNode;Rr(v),v.append(r),i.clear(),Fe(e,t[0].prev,t[a-1].next)}Kr(n,()=>{for(var u=0;u<a;u++){var f=t[u];c||(i.delete(f.k),Fe(e,f.prev,f.next)),Ae(f.e,!c)}})}function Ni(e,t,r,i,n,a=null){var s=e,c={items:new Map,first:null};{var v=e;s=Y?ye(ze(v)):v.appendChild($t())}Y&&yt();var u=null,f=!1,o=ni(()=>{var l=r();return qt(l)?l:l==null?[]:Ht(l)});er(()=>{var l=$(o),m=l.length;if(f&&m===0)return;f=m===0;let b=!1;if(Y){var y=s.data===Lt;y!==(m===0)&&(s=Kt(),ye(s),me(!1),b=!0)}if(Y){for(var D=null,S,M=0;M<m;M++){if(V.nodeType===8&&V.data===Yt){s=V,b=!0,me(!1);break}var C=l[M],j=i(C,M);S=on(V,c,D,null,C,j,M,n,t,r),c.items.set(j,S),D=S}m>0&&ye(Kt())}Y||Ri(l,c,s,n,t,i,r),a!==null&&(m===0?u?Tt(u):u=ut(()=>a(s)):u!==null&&Ot(u,()=>{u=null})),b&&me(!0),$(o)}),Y&&(s=V)}function Ri(e,t,r,i,n,a,s){var c=e.length,v=t.items,u=t.first,f=u,o,l=null,m=[],b=[],y,D,S,M;for(M=0;M<c;M+=1){if(y=e[M],D=a(y,M),S=v.get(D),S===void 0){var C=f?f.e.nodes_start:r;l=on(C,t,l,l===null?t.first:l.next,y,D,M,i,n,s),v.set(D,l),m=[],b=[],f=l.next;continue}if(Ii(S,y,M),S.e.f&Te&&Tt(S.e),S!==f){if(o!==void 0&&o.has(S)){if(m.length<b.length){var j=b[0],F;l=j.prev;var x=m[0],P=m[m.length-1];for(F=0;F<m.length;F+=1)un(m[F],j,r);for(F=0;F<b.length;F+=1)o.delete(b[F]);Fe(t,x.prev,P.next),Fe(t,l,x),Fe(t,P,j),f=j,l=P,M-=1,m=[],b=[]}else o.delete(S),un(S,f,r),Fe(t,S.prev,S.next),Fe(t,S,l===null?t.first:l.next),Fe(t,l,S),l=S;continue}for(m=[],b=[];f!==null&&f.k!==D;)f.e.f&Te||(o??(o=new Set)).add(f),b.push(f),f=f.next;if(f===null)continue;S=f}m.push(S),l=S,f=S.next}if(f!==null||o!==void 0){for(var te=o===void 0?[]:Ht(o);f!==null;)f.e.f&Te||te.push(f),f=f.next;var pe=te.length;if(pe>0){var I=c===0?r:null;Ai(t,te,I,v)}}A.first=t.first&&t.first.e,A.last=l&&l.e}function Ii(e,t,r,i){Er(e.v,t),e.i=r}function on(e,t,r,i,n,a,s,c,v,u){var f=(v&J)!==0,o=(v&Mn)===0,l=f?o?Wt(n):ve(n):n,m=v&dt?ve(s):s,b={i:m,v:l,k:a,a:null,e:null,prev:r,next:i};try{return b.e=ut(()=>c(e,l,m,u),Y),b.e.prev=r&&r.e,b.e.next=i&&i.e,r===null?t.first=b:(r.next=b,r.e.next=b.e),i!==null&&(i.prev=b,i.e.prev=b.e),b}finally{}}function un(e,t,r){for(var i=e.next?e.next.e.nodes_start:r,n=t?t.e.nodes_start:r,a=e.e.nodes_start;a!==i;){var s=Ye(a);n.before(a),a=s}}function Fe(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Li(e,t){$r(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function At(e){if(Y){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;ir(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var n=e.checked;ir(e,"checked",null),e.checked=n}}};e.__on_r=r,Hn(r),rn()}}function fn(e,t){var r=e.__attributes??(e.__attributes={});r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function ir(e,t,r,i){var n=e.__attributes??(e.__attributes={});Y&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Ln]=r),r==null?e.removeAttribute(t):typeof r!="string"&&dn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ie(e,t,r){var i=N,n=A;let a=Y;Y&&me(!1),xe(null),Ee(null);try{(ar.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?dn(e).includes(t):r&&typeof r=="object")?e[t]=r:ir(e,t,r==null?r:String(r))}finally{xe(i),Ee(n),a&&me(!0)}}var ar=new Map;function dn(e){var t=ar.get(e.nodeName);if(t)return t;ar.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Pn(i);for(var a in r)r[a].set&&t.push(a);i=pr(i)}return t}function cn(e,t,r=t){ki(e,"input",i=>{var n=i?e.defaultValue:e.value;if(n=sr(e)?lr(n):n,r(n),n!==(n=t())){var a=e.selectionStart,s=e.selectionEnd;e.value=n??"",s!==null&&(e.selectionStart=a,e.selectionEnd=Math.min(s,e.value.length))}}),(Y&&e.defaultValue!==e.value||Qt(t)==null&&e.value)&&r(sr(e)?lr(e.value):e.value),Br(()=>{var i=t();sr(e)&&i===lr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function sr(e){var t=e.type;return t==="number"||t==="range"}function lr(e){return e===""?null:+e}let Nt=!1;function Yi(e){var t=Nt;try{return Nt=!1,[e(),Nt]}finally{Nt=t}}function le(e,t,r,i){var F;var n=(r&Dn)!==0,a=!0,s=(r&Tn)!==0,c=(r&Cn)!==0,v=!1,u;s?[u,v]=Yi(()=>e[t]):u=e[t];var f=mt in e||gr in e,o=s&&(((F=Be(e,t))==null?void 0:F.set)??(f&&t in e&&(x=>e[t]=x)))||void 0,l=i,m=!0,b=!1,y=()=>(b=!0,m&&(m=!1,c?l=Qt(i):l=i),l);u===void 0&&i!==void 0&&(o&&a&&Xn(),u=y(),o&&o(u));var D;if(D=()=>{var x=e[t];return x===void 0?y():(m=!0,b=!1,x)},!(r&On))return D;if(o){var S=e.$$legacy;return function(x,P){return arguments.length>0?((!P||S||v)&&o(P?D():x),x):D()}}var M=!1,C=Wt(u),j=zt(()=>{var x=D(),P=$(C);return M?(M=!1,P):C.v=x});return n||(j.equals=Bt),function(x,P){if(arguments.length>0){const te=P?$(j):s?K(x):x;return j.equals(te)||(M=!0,W(C,te),b&&l!==void 0&&(l=te),Qt(()=>$(j))),x}return $(j)}}function Pi(e){return new ji(e)}class ji{constructor(t){cr(this,Re);cr(this,he);var a;var r=new Map,i=(s,c)=>{var v=Wt(c);return r.set(s,v),v};const n=new Proxy({...t.props||{},$$events:{}},{get(s,c){return $(r.get(c)??i(c,Reflect.get(s,c)))},has(s,c){return c===gr?!0:($(r.get(c)??i(c,Reflect.get(s,c))),Reflect.has(s,c))},set(s,c,v){return W(r.get(c)??i(c,v),v),Reflect.set(s,c,v)}});vr(this,he,(t.hydrate?Ti:sn)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&ee(),vr(this,Re,n.$$events);for(const s of Object.keys(ue(this,he)))s==="$set"||s==="$destroy"||s==="$on"||pt(this,s,{get(){return ue(this,he)[s]},set(c){ue(this,he)[s]=c},enumerable:!0});ue(this,he).$set=s=>{Object.assign(n,s)},ue(this,he).$destroy=()=>{Ci(ue(this,he))}}$set(t){ue(this,he).$set(t)}$on(t,r){ue(this,Re)[t]=ue(this,Re)[t]||[];const i=(...n)=>r.call(this,...n);return ue(this,Re)[t].push(i),()=>{ue(this,Re)[t]=ue(this,Re)[t].filter(n=>n!==i)}}$destroy(){ue(this,he).$destroy()}}Re=new WeakMap,he=new WeakMap;let vn;typeof HTMLElement=="function"&&(vn=class extends HTMLElement{constructor(t,r,i){super();we(this,"$$ctor");we(this,"$$s");we(this,"$$c");we(this,"$$cn",!1);we(this,"$$d",{});we(this,"$$r",!1);we(this,"$$p_d",{});we(this,"$$l",{});we(this,"$$l_u",new Map);we(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return a=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),Ne(a,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Fi(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=Rt(a,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=Pi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=wi(()=>{Br(()=>{var n;this.$$r=!0;for(const a of gt(this.$$c)){if(!((n=this.$$p_d[a])!=null&&n.reflect))continue;this.$$d[a]=this.$$c[a];const s=Rt(a,this.$$d[a],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,s)}this.$$r=!1})});for(const n in this.$$l)for(const a of this.$$l[n]){const s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Rt(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$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 gt(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Rt(e,t,r,i){var a;const n=(a=r[e])==null?void 0:a.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="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 Fi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function qi(e,t,r,i,n,a){let s=class extends vn{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return gt(t).map(c=>(t[c].attribute||c).toLowerCase())}};return gt(t).forEach(c=>{pt(s.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(v){var o;v=Rt(c,v,t),this.$$d[c]=v;var u=this.$$c;if(u){var f=(o=Be(u,c))==null?void 0:o.get;f?u[c]=v:u.$set({[c]:v})}}})}),i.forEach(c=>{pt(s.prototype,c,{get(){var v;return(v=this.$$c)==null?void 0:v[c]}})}),e.element=s,s}function hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It={exports:{}},Hi=It.exports,_n;function Vi(){return _n||(_n=1,function(e,t){(function(r,i){e.exports=i()})(Hi,function(){var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",c="minute",v="hour",u="day",f="week",o="month",l="quarter",m="year",b="date",y="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,M={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(d){var h=["th","st","nd","rd"],_=d%100;return"["+d+(h[(_-20)%10]||h[_]||h[0])+"]"}},C=function(d,h,_){var w=String(d);return!w||w.length>=h?d:""+Array(h+1-w.length).join(_)+d},j={s:C,z:function(d){var h=-d.utcOffset(),_=Math.abs(h),w=Math.floor(_/60),p=_%60;return(h<=0?"+":"-")+C(w,2,"0")+":"+C(p,2,"0")},m:function d(h,_){if(h.date()<_.date())return-d(_,h);var w=12*(_.year()-h.year())+(_.month()-h.month()),p=h.clone().add(w,o),E=_-p<0,k=h.clone().add(w+(E?-1:1),o);return+(-(w+(_-p)/(E?p-k:k-p))||0)},a:function(d){return d<0?Math.ceil(d)||0:Math.floor(d)},p:function(d){return{M:o,y:m,w:f,d:u,D:b,h:v,m:c,s,ms:a,Q:l}[d]||String(d||"").toLowerCase().replace(/s$/,"")},u:function(d){return d===void 0}},F="en",x={};x[F]=M;var P="$isDayjsObject",te=function(d){return d instanceof He||!(!d||!d[P])},pe=function d(h,_,w){var p;if(!h)return F;if(typeof h=="string"){var E=h.toLowerCase();x[E]&&(p=E),_&&(x[E]=_,p=E);var k=h.split("-");if(!p&&k.length>1)return d(k[0])}else{var R=h.name;x[R]=h,p=R}return!w&&p&&(F=p),p||!w&&F},I=function(d,h){if(te(d))return d.clone();var _=typeof h=="object"?h:{};return _.date=d,_.args=arguments,new He(_)},T=j;T.l=pe,T.i=te,T.w=function(d,h){return I(d,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var He=function(){function d(_){this.$L=pe(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[P]=!0}var h=d.prototype;return h.parse=function(_){this.$d=function(w){var p=w.date,E=w.utc;if(p===null)return new Date(NaN);if(T.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var k=p.match(D);if(k){var R=k[2]-1||0,q=(k[7]||"0").substring(0,3);return E?new Date(Date.UTC(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,q)):new Date(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,q)}}return new Date(p)}(_),this.init()},h.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},h.$utils=function(){return T},h.isValid=function(){return this.$d.toString()!==y},h.isSame=function(_,w){var p=I(_);return this.startOf(w)<=p&&p<=this.endOf(w)},h.isAfter=function(_,w){return I(_)<this.startOf(w)},h.isBefore=function(_,w){return this.endOf(w)<I(_)},h.$g=function(_,w,p){return T.u(_)?this[w]:this.set(p,_)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(_,w){var p=this,E=!!T.u(w)||w,k=T.p(_),R=function(Le,O){var L=T.w(p.$u?Date.UTC(p.$y,O,Le):new Date(p.$y,O,Le),p);return E?L:L.endOf(u)},q=function(Le,O){return T.w(p.toDate()[Le].apply(p.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(O)),p)},z=this.$W,X=this.$M,oe=this.$D,Ve="set"+(this.$u?"UTC":"");switch(k){case m:return E?R(1,0):R(31,11);case o:return E?R(1,X):R(0,X+1);case f:var Ie=this.$locale().weekStart||0,Xe=(z<Ie?z+7:z)-Ie;return R(E?oe-Xe:oe+(6-Xe),X);case u:case b:return q(Ve+"Hours",0);case v:return q(Ve+"Minutes",1);case c:return q(Ve+"Seconds",2);case s:return q(Ve+"Milliseconds",3);default:return this.clone()}},h.endOf=function(_){return this.startOf(_,!1)},h.$set=function(_,w){var p,E=T.p(_),k="set"+(this.$u?"UTC":""),R=(p={},p[u]=k+"Date",p[b]=k+"Date",p[o]=k+"Month",p[m]=k+"FullYear",p[v]=k+"Hours",p[c]=k+"Minutes",p[s]=k+"Seconds",p[a]=k+"Milliseconds",p)[E],q=E===u?this.$D+(w-this.$W):w;if(E===o||E===m){var z=this.clone().set(b,1);z.$d[R](q),z.init(),this.$d=z.set(b,Math.min(this.$D,z.daysInMonth())).$d}else R&&this.$d[R](q);return this.init(),this},h.set=function(_,w){return this.clone().$set(_,w)},h.get=function(_){return this[T.p(_)]()},h.add=function(_,w){var p,E=this;_=Number(_);var k=T.p(w),R=function(X){var oe=I(E);return T.w(oe.date(oe.date()+Math.round(X*_)),E)};if(k===o)return this.set(o,this.$M+_);if(k===m)return this.set(m,this.$y+_);if(k===u)return R(1);if(k===f)return R(7);var q=(p={},p[c]=i,p[v]=n,p[s]=r,p)[k]||1,z=this.$d.getTime()+_*q;return T.w(z,this)},h.subtract=function(_,w){return this.add(-1*_,w)},h.format=function(_){var w=this,p=this.$locale();if(!this.isValid())return p.invalidDate||y;var E=_||"YYYY-MM-DDTHH:mm:ssZ",k=T.z(this),R=this.$H,q=this.$m,z=this.$M,X=p.weekdays,oe=p.months,Ve=p.meridiem,Ie=function(O,L,U,G){return O&&(O[L]||O(w,E))||U[L].slice(0,G)},Xe=function(O){return T.s(R%12||12,O,"0")},Le=Ve||function(O,L,U){var G=O<12?"AM":"PM";return U?G.toLowerCase():G};return E.replace(S,function(O,L){return L||function(U){switch(U){case"YY":return String(w.$y).slice(-2);case"YYYY":return T.s(w.$y,4,"0");case"M":return z+1;case"MM":return T.s(z+1,2,"0");case"MMM":return Ie(p.monthsShort,z,oe,3);case"MMMM":return Ie(oe,z);case"D":return w.$D;case"DD":return T.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return Ie(p.weekdaysMin,w.$W,X,2);case"ddd":return Ie(p.weekdaysShort,w.$W,X,3);case"dddd":return X[w.$W];case"H":return String(R);case"HH":return T.s(R,2,"0");case"h":return Xe(1);case"hh":return Xe(2);case"a":return Le(R,q,!0);case"A":return Le(R,q,!1);case"m":return String(q);case"mm":return T.s(q,2,"0");case"s":return String(w.$s);case"ss":return T.s(w.$s,2,"0");case"SSS":return T.s(w.$ms,3,"0");case"Z":return k}return null}(O)||k.replace(":","")})},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(_,w,p){var E,k=this,R=T.p(w),q=I(_),z=(q.utcOffset()-this.utcOffset())*i,X=this-q,oe=function(){return T.m(k,q)};switch(R){case m:E=oe()/12;break;case o:E=oe();break;case l:E=oe()/3;break;case f:E=(X-z)/6048e5;break;case u:E=(X-z)/864e5;break;case v:E=X/n;break;case c:E=X/i;break;case s:E=X/r;break;default:E=X}return p?E:T.a(E)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return x[this.$L]},h.locale=function(_,w){if(!_)return this.$L;var p=this.clone(),E=pe(_,w,!0);return E&&(p.$L=E),p},h.clone=function(){return T.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}(),g=He.prototype;return I.prototype=g,[["$ms",a],["$s",s],["$m",c],["$H",v],["$W",u],["$M",o],["$y",m],["$D",b]].forEach(function(d){g[d[1]]=function(h){return this.$g(h,d[0],d[1])}}),I.extend=function(d,h){return d.$i||(d(h,He,I),d.$i=!0),I},I.locale=pe,I.isDayjs=te,I.unix=function(d){return I(1e3*d)},I.en=x[F],I.Ls=x,I.p={},I})}(It)),It.exports}var Ui=Vi();const qe=hn(Ui),mn={version:"0.50.0-alpha.10"};function gn(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(a=>Object.keys(e).includes(a.name)))!=null&&n.length))for(const a of Object.keys(e))(t==null?void 0:t.filter(c=>c.name===a&&c.defaultValue!==e[a]))&&(r+=`${a}:${e[a]};`);return r}function pn(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}var it={},or,bn;function Bi(){if(bn)return or;bn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,v=`
2
+ `,u="/",f="*",o="",l="comment",m="declaration";or=function(y,D){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];D=D||{};var S=1,M=1;function C(g){var d=g.match(t);d&&(S+=d.length);var h=g.lastIndexOf(v);M=~h?g.length-h:M+g.length}function j(){var g={line:S,column:M};return function(d){return d.position=new F(g),te(),d}}function F(g){this.start=g,this.end={line:S,column:M},this.source=D.source}F.prototype.content=y;function x(g){var d=new Error(D.source+":"+S+":"+M+": "+g);if(d.reason=g,d.filename=D.source,d.line=S,d.column=M,d.source=y,!D.silent)throw d}function P(g){var d=g.exec(y);if(d){var h=d[0];return C(h),y=y.slice(h.length),d}}function te(){P(r)}function pe(g){var d;for(g=g||[];d=I();)d!==!1&&g.push(d);return g}function I(){var g=j();if(!(u!=y.charAt(0)||f!=y.charAt(1))){for(var d=2;o!=y.charAt(d)&&(f!=y.charAt(d)||u!=y.charAt(d+1));)++d;if(d+=2,o===y.charAt(d-1))return x("End of comment missing");var h=y.slice(2,d-2);return M+=2,C(h),y=y.slice(d),M+=2,g({type:l,comment:h})}}function T(){var g=j(),d=P(i);if(d){if(I(),!P(n))return x("property missing ':'");var h=P(a),_=g({type:m,property:b(d[0].replace(e,o)),value:h?b(h[0].replace(e,o)):o});return P(s),_}}function He(){var g=[];pe(g);for(var d;d=T();)d!==!1&&(g.push(d),pe(g));return g}return te(),He()};function b(y){return y?y.replace(c,o):o}return or}var wn;function Wi(){if(wn)return it;wn=1;var e=it&&it.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(it,"__esModule",{value:!0}),it.default=r;var t=e(Bi());function r(i,n){var a=null;if(!i||typeof i!="string")return a;var s=(0,t.default)(i),c=typeof n=="function";return s.forEach(function(v){if(v.type==="declaration"){var u=v.property,f=v.value;c?n(u,f,v):f&&(a=a||{},a[u]=f)}}),a}return it}var zi=Wi();const yn=hn(zi),Gi=yn.default||yn,ur={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"}]},fr={vars:[]};function $n(e,t,r,i,n){var s;const a=(s=e==null?void 0:e.target)==null?void 0:s.value;a&&(t("dateFilterVideos",{start:qe(a,"YYYY-MM-DD").startOf("day").toDate(),dateKey:"start"}),r()||W(i,K(qe(a,"YYYY-MM-DD").startOf("day").toDate())),n(void 0))}function xn(e,t,r,i,n){const a=e.target.value;t("dateFilterVideos",{end:qe(a,"YYYY-MM-DD").startOf("day").toDate(),dateKey:"end"}),r()||W(i,K(qe(a,"YYYY-MM-DD").endOf("day").toDate())),n(void 0)}var Ki=je('<div class="col-4 col-xxl-2 svelte-1d6vd3r"><div class="input-group mb-3 svelte-1d6vd3r"><span class="input-group-text svelte-1d6vd3r" id="search">&#x1F50E;</span> <input type="text" class="form-control svelte-1d6vd3r" placeholder="..." aria-label="Search" aria-describedby="search"></div></div>'),Xi=je('<div class="input-group mb-3 svelte-1d6vd3r"><span class="input-group-text svelte-1d6vd3r">&#128197;</span> <input type="date" class="form-control svelte-1d6vd3r" style="max-width: 200px"> <input type="date" class="form-control svelte-1d6vd3r" style="max-width: 200px"></div>'),Ji=je('<div class="col-12 svelte-1d6vd3r"><div class="input-group mb-3 svelte-1d6vd3r"><span class="input-group-text svelte-1d6vd3r" id="search">&#x1F50E;</span> <input type="text" class="form-control svelte-1d6vd3r" placeholder="..." aria-label="Search" aria-describedby="search"></div></div>'),Zi=je('<div class="row svelte-1d6vd3r"><div class="col-12 svelte-1d6vd3r"><div class="input-group mb-3 svelte-1d6vd3r"><span class="input-group-text svelte-1d6vd3r">&#128197;</span> <input type="date" class="form-control svelte-1d6vd3r"> <input type="date" class="form-control svelte-1d6vd3r"></div></div></div>'),Qi=je('<div class="col-12 col-xxl-3 col-xl-4 col-md-6 svelte-1d6vd3r" style="padding:12px"><hb-card-video></hb-card-video></div>',2),ea=je('<div class="row svelte-1d6vd3r"></div> <nav style="margin-top:20px" aria-label="Page navigation example" class="svelte-1d6vd3r"><hb-paginate></hb-paginate></nav>',3),ta=je('<div class="d-none d-md-block svelte-1d6vd3r"><div class="row svelte-1d6vd3r"><!> <div class="col-8 col-xxl-10 svelte-1d6vd3r"><!></div></div></div> <div class="d-block d-md-none svelte-1d6vd3r"><div class="row svelte-1d6vd3r"><!></div> <!></div> <!>',1),ra=je('<div class="container-fluid svelte-1d6vd3r" part="container"><!></div>');const na={hash:"svelte-1d6vd3r",code:`@charset "UTF-8";
3
+ @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
+ /*!
5
+ * Bootstrap v5.1.0 (https://getbootstrap.com/)
6
+ * Copyright 2011-2021 The Bootstrap Authors
7
+ * Copyright 2011-2021 Twitter, Inc.
8
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
9
+ */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;}.svelte-1d6vd3r,
10
+ .svelte-1d6vd3r::before,
11
+ .svelte-1d6vd3r::after {box-sizing:border-box;}
12
+ @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
13
+ }
14
+ @media (min-width: 1200px) {
15
+ }
16
+ @media (min-width: 1200px) {
17
+ }
18
+ @media (min-width: 1200px) {
19
+ }
20
+ @media (min-width: 1200px) {
21
+ }input.svelte-1d6vd3r {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}.svelte-1d6vd3r::-moz-focus-inner {padding:0;border-style:none;}
22
+ @media (min-width: 1200px) {
23
+ }.svelte-1d6vd3r::-webkit-datetime-edit-fields-wrapper,
24
+ .svelte-1d6vd3r::-webkit-datetime-edit-text,
25
+ .svelte-1d6vd3r::-webkit-datetime-edit-minute,
26
+ .svelte-1d6vd3r::-webkit-datetime-edit-hour-field,
27
+ .svelte-1d6vd3r::-webkit-datetime-edit-day-field,
28
+ .svelte-1d6vd3r::-webkit-datetime-edit-month-field,
29
+ .svelte-1d6vd3r::-webkit-datetime-edit-year-field {padding:0;}.svelte-1d6vd3r::-webkit-inner-spin-button {height:auto;}
30
+ /* rtl:raw:
31
+ [type="tel"],
32
+ [type="url"],
33
+ [type="email"],
34
+ [type="number"] {
35
+ direction: ltr;
36
+ }
37
+ */.svelte-1d6vd3r::-webkit-search-decoration {-webkit-appearance:none;}.svelte-1d6vd3r::-webkit-color-swatch-wrapper {padding:0;}.svelte-1d6vd3r::file-selector-button {font:inherit;}.svelte-1d6vd3r::-webkit-file-upload-button {font:inherit;-webkit-appearance:button;}
38
+ @media (min-width: 1200px) {
39
+ }
40
+ @media (min-width: 1200px) {
41
+ }
42
+ @media (min-width: 1200px) {
43
+ }
44
+ @media (min-width: 1200px) {
45
+ }
46
+ @media (min-width: 1200px) {
47
+ }
48
+ @media (min-width: 1200px) {
49
+ }
50
+ .container-fluid.svelte-1d6vd3r {width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto;}
51
+ @media (min-width: 576px) {
52
+ }
53
+ @media (min-width: 768px) {
54
+ }
55
+ @media (min-width: 992px) {
56
+ }
57
+ @media (min-width: 1200px) {
58
+ }
59
+ @media (min-width: 1400px) {
60
+ }.row.svelte-1d6vd3r {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x));}.row.svelte-1d6vd3r > :where(.svelte-1d6vd3r) {flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y);}.col-4.svelte-1d6vd3r {flex:0 0 auto;width:33.33333333%;}.col-8.svelte-1d6vd3r {flex:0 0 auto;width:66.66666667%;}.col-12.svelte-1d6vd3r {flex:0 0 auto;width:100%;}
61
+ @media (min-width: 576px) {
62
+ }
63
+ @media (min-width: 768px) {.col-md-6.svelte-1d6vd3r {flex:0 0 auto;width:50%;}
64
+ }
65
+ @media (min-width: 992px) {
66
+ }
67
+ @media (min-width: 1200px) {.col-xl-4.svelte-1d6vd3r {flex:0 0 auto;width:33.33333333%;}
68
+ }
69
+ @media (min-width: 1400px) {.col-xxl-2.svelte-1d6vd3r {flex:0 0 auto;width:16.66666667%;}.col-xxl-3.svelte-1d6vd3r {flex:0 0 auto;width:25%;}.col-xxl-10.svelte-1d6vd3r {flex:0 0 auto;width:83.33333333%;}
70
+ }.form-control.svelte-1d6vd3r {display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
71
+ @media (prefers-reduced-motion: reduce) {.form-control.svelte-1d6vd3r {transition:none;}
72
+ }.form-control.svelte-1d6vd3r:focus {color:#212529;background-color:#fff;border-color:rgb(134, 182.5, 254);outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);}.form-control.svelte-1d6vd3r::-webkit-date-and-time-value {height:1.5em;}.form-control.svelte-1d6vd3r::placeholder {color:#6c757d;opacity:1;}.form-control.svelte-1d6vd3r:disabled {background-color:#e9ecef;opacity:1;}.form-control.svelte-1d6vd3r::file-selector-button {padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
73
+ @media (prefers-reduced-motion: reduce) {.form-control.svelte-1d6vd3r::file-selector-button {transition:none;}
74
+ }.form-control.svelte-1d6vd3r:hover:not(:disabled):not([readonly])::file-selector-button {background-color:rgb(221.35, 224.2, 227.05);}.form-control.svelte-1d6vd3r::-webkit-file-upload-button {padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
75
+ @media (prefers-reduced-motion: reduce) {.form-control.svelte-1d6vd3r::-webkit-file-upload-button {transition:none;}
76
+ }.form-control.svelte-1d6vd3r:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {background-color:rgb(221.35, 224.2, 227.05);}
77
+ @media (prefers-reduced-motion: reduce) {
78
+ }
79
+ @media (prefers-reduced-motion: reduce) {
80
+ }
81
+ @media (prefers-reduced-motion: reduce) {
82
+ }
83
+ @media (prefers-reduced-motion: reduce) {
84
+ }
85
+ @media (prefers-reduced-motion: reduce) {
86
+ }.input-group.svelte-1d6vd3r {position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%;}.input-group.svelte-1d6vd3r > .form-control:where(.svelte-1d6vd3r) {position:relative;flex:1 1 auto;width:1%;min-width:0;}.input-group.svelte-1d6vd3r > .form-control:where(.svelte-1d6vd3r):focus {z-index:3;}.input-group-text.svelte-1d6vd3r {display:flex;align-items:center;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:0.25rem;}.input-group.svelte-1d6vd3r:not(.has-validation) > :where(.svelte-1d6vd3r):not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {border-top-right-radius:0;border-bottom-right-radius:0;}.input-group.svelte-1d6vd3r > :where(.svelte-1d6vd3r):not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0;}.d-block.svelte-1d6vd3r {display:block !important;}.d-none.svelte-1d6vd3r {display:none !important;}.mb-3.svelte-1d6vd3r {margin-bottom:1rem !important;}
87
+ /* rtl:begin:remove */
88
+ /* rtl:end:remove */
89
+ @media (min-width: 576px) {
90
+ }
91
+ @media (min-width: 768px) {.d-md-block.svelte-1d6vd3r {display:block !important;}.d-md-none.svelte-1d6vd3r {display:none !important;}
92
+ }
93
+ @media (min-width: 992px) {
94
+ }
95
+ @media (min-width: 1200px) {
96
+ }
97
+ @media (min-width: 1400px) {
98
+ }
99
+ @media (min-width: 1200px) {
100
+ }
101
+ @media print {
102
+ }:host {font-family:"Roboto", sans-serif;}`};function En(e,t){Zr(t,!0),Li(e,na);let r=le(t,"id",7,""),i=le(t,"style",7),n=le(t,"cards",7),a=le(t,"size",7,12),s=le(t,"page",7,0),c=le(t,"pages",7,1),v=le(t,"linkLabel",7,""),u=le(t,"dateformat",7,"dddd DD MMMM YYYY HH:mm"),f=le(t,"primarycolor",7,void 0),o=le(t,"filter",7,void 0),l=le(t,"externalfilter",7,void 0),m=le(t,"disabletextfilter",7,void 0),b=le(t,"initialdate",23,()=>new Date),y=le(t,"lastdate",23,()=>new Date),D=We(K({})),S=We(""),M=We(""),C=We(void 0),j=We(void 0),F=We(!0),x=We(K([]));bi(()=>{i()&&(W(D,K(Gi(i()))),W(S,K(gn($(D),ur==null?void 0:ur.vars))),W(M,K(gn($(D),fr==null?void 0:fr.vars)))),console.log(m(),"disabletextfilter"),v()||v(""),m()&&m()!=="yes"&&m(void 0),f()||f(void 0),u()||u("dddd DD MMMM YYYY HH:mm"),c()?c(Number(c())):c(1),l()||l(void 0),a()?a(parseInt(a())):a(12),s()?s(parseInt(s())):s(0),o()||o(void 0);try{typeof n()=="string"&&W(x,K(JSON.parse(n())));let g=0;for(const d of $(x)){if(d._id=`${g.toString()+(d.title?d.title.replace(/ /g,"-"):d.description?d.description.replace(/ /g,"-"):Date.now().toString())}`,!d.time){W(F,!1),console.warn("UNABLE TO ACTIVATE SEARCH FILTER!");break}d.time=qe(d.time).toDate(),(!b()||b().valueOf()>d.time.valueOf())&&b(d.time),(!y()||y().valueOf()<d.time.valueOf())&&y(d.time),g++}$(F)&&!l()&&(W(x,K($(x).sort((d,h)=>{var _,w;return(((_=h.time)==null?void 0:_.valueOf())||0)-(((w=d.time)==null?void 0:w.valueOf())||0)}))),$(C)||W(C,K(b())),$(j)||W(j,K(y())),W(x,K($(x).filter(d=>d.time&&$(C)&&$(j)&&d.time.valueOf()>=$(C).valueOf()&&d.time.valueOf()<=$(j).valueOf())))),o()&&!l()?(console.info(o()),W(x,K($(x).filter(d=>{var h,_;return!!(o()&&((h=d.title)!=null&&h.toLowerCase().includes(o().toLowerCase()))||o()&&((_=d.description)!=null&&_.toLowerCase().includes(o().toLowerCase())))})))):l()&&(console.info(o()),P("textFilterVideos",{filter:o()||void 0})),$(x).length&&(!l()||!c())&&(console.log("calcpage",$(x).length,!l()||!c(),c()),c(Math.floor($(x).length/a())+($(x).length%a()?1:0)))}catch{}});function P(g,d){t.$$host.dispatchEvent(new CustomEvent(g,{detail:d}))}function te(g){l()||s(g.detail.page),P("pageChange",{page:g.detail.page,cards:pe()})}function pe(){return l()?$(x):$(x).slice(s()*a(),(s()+1)*a())}pn({repoName:"@htmlbricks/hb-paginate",version:mn.version,local:"/webcomponents/paginate/main.iife.js"}),pn({repoName:"@htmlbricks/hb-card-video",version:mn.version,local:"/webcomponents/card-video/main.iife.js"});var I=ra(),T=Q(I);{var He=g=>{var d=ta(),h=Nr(d),_=Q(h),w=Q(_);{var p=O=>{var L=Ki(),U=Q(L),G=ge(Q(U),2);At(G),Z(U),Z(L),cn(G,o),Ne(O,L)};nt(w,O=>{m()||O(p)})}var E=ge(w,2),k=Q(E);{var R=O=>{var L=Xi(),U=ge(Q(L),2);At(U),U.__input=[$n,P,l,C,o];var G=ge(U,2);At(G),G.__input=[xn,P,l,j,o],Z(L),se((be,Je)=>{fn(U,be),fn(G,Je)},[()=>qe(b()).format("YYYY-MM-DD"),()=>qe(y()).format("YYYY-MM-DD")]),Ne(O,L)};nt(k,O=>{$(F)&&O(R)})}Z(E),Z(_),Z(h);var q=ge(h,2),z=Q(q),X=Q(z);{var oe=O=>{var L=Ji(),U=Q(L),G=ge(Q(U),2);At(G),Z(U),Z(L),cn(G,o),Ne(O,L)};nt(X,O=>{m()||O(oe)})}Z(z);var Ve=ge(z,2);{var Ie=O=>{var L=Zi(),U=Q(L),G=Q(U),be=ge(Q(G),2);be.__input=[$n,P,l,C,o];var Je=ge(be,2);Je.__input=[xn,P,l,j,o],Z(G),Z(U),Z(L),Ne(O,L)};nt(Ve,O=>{$(F)&&O(Ie)})}Z(q);var Xe=ge(q,2);{var Le=O=>{var L=ea(),U=Nr(L);Ni(U,21,()=>l()?$(x):$(x).slice(s()*a(),(s()+1)*a()),Je=>Je._id,(Je,Ue)=>{var dr=Qi(),Me=Q(dr);se(()=>ie(Me,"key",$(Ue)._id)),se(()=>ie(Me,"style",$(M))),se(()=>ie(Me,"title",$(Ue).title||"")),se(()=>ie(Me,"description",$(Ue).description||"")),se(()=>ie(Me,"time",$(Ue).time?qe($(Ue).time).format():void 0)),se(()=>ie(Me,"dateformat",u()||"")),se(()=>ie(Me,"pageuri",$(Ue).pageUri||"")),se(()=>ie(Me,"videosrc",$(Ue).videoSrc||"")),se(()=>ie(Me,"provider",$(Ue).provider||"")),ie(Me,"class","svelte-1d6vd3r"),Z(dr),Ne(Je,dr)}),Z(U);var G=ge(U,2),be=Q(G);se(()=>ie(be,"style",$(S))),se(()=>ie(be,"page",s().toString())),se(()=>ie(be,"pages",c().toString())),se(()=>ie(be,"primarycolor",f()||"")),ie(be,"class","svelte-1d6vd3r"),Z(G),Mi("pageChange",be,te),Ne(O,L)};nt(Xe,O=>{$(x)&&$(x).length&&O(Le)})}Ne(g,d)};nt(T,g=>{$(x)&&($(x).length||$(x).length===0)&&g(He)})}return Z(I),Ne(e,I),Qr({get id(){return r()},set id(g=""){r(g),ee()},get style(){return i()},set style(g){i(g),ee()},get cards(){return n()},set cards(g){n(g),ee()},get size(){return a()},set size(g=12){a(g),ee()},get page(){return s()},set page(g=0){s(g),ee()},get pages(){return c()},set pages(g=1){c(g),ee()},get linkLabel(){return v()},set linkLabel(g=""){v(g),ee()},get dateformat(){return u()},set dateformat(g="dddd DD MMMM YYYY HH:mm"){u(g),ee()},get primarycolor(){return f()},set primarycolor(g=void 0){f(g),ee()},get filter(){return o()},set filter(g=void 0){o(g),ee()},get externalfilter(){return l()},set externalfilter(g=void 0){l(g),ee()},get disabletextfilter(){return m()},set disabletextfilter(g=void 0){m(g),ee()},get initialdate(){return b()},set initialdate(g=new Date){b(g),ee()},get lastdate(){return y()},set lastdate(g=new Date){y(g),ee()}})}Di(["input"]),customElements.define("hb-gallery-video",qi(En,{id:{},style:{},cards:{},size:{},page:{},pages:{},linkLabel:{},dateformat:{},primarycolor:{},filter:{},externalfilter:{},disabletextfilter:{},initialdate:{},lastdate:{}},[],[],!0)),H.Component=En,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})})(this["gallery-video"]=this["gallery-video"]||{});
@@ -108,6 +108,7 @@
108
108
  }
109
109
  }
110
110
  },
111
+ "description": "",
111
112
  "storybookArgs": {
112
113
  "size": {
113
114
  "control": {
@@ -165,9 +166,7 @@
165
166
  }
166
167
  ]
167
168
  },
168
- "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
169
169
  "contributors": [],
170
- "owner": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
171
170
  "htmlSlots": [],
172
171
  "i18n": [],
173
172
  "examples": [
@@ -216,7 +215,7 @@
216
215
  "archives"
217
216
  ],
218
217
  "size": {},
219
- "iifePath": "release/release.js",
218
+ "iifePath": "main.iife.js",
220
219
  "repoName": "@htmlbricks/hb-gallery-video",
221
- "version": "0.20.17"
220
+ "version": "0.50.0-alpha.10"
222
221
  }
package/package.json CHANGED
@@ -1,84 +1,16 @@
1
1
  {
2
- "name": "@htmlbricks/hb-gallery-video",
3
- "displayName": "Svelte Boostrap Video Gallery WebComponent",
4
- "description": "Svelte Boostrap Video Gallery WebComponent",
5
- "version": "0.20.17",
6
- "main": "release/release.js",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
11
- "authorUrl": "https://dariocaruso.info",
12
- "license": "MIT",
13
- "license-docs": "CC BY 4.0",
14
- "license-translations": "CC BY 4.0",
15
- "license-images": "CC BY-NC 4.0",
16
- "engines": {
17
- "node": ">=16.0.0"
18
- },
19
- "scripts": {
20
- "start": "sirv dist",
21
- "dev": "rm -rf ./dist && rollup -c -w",
22
- "build": "rm -rf ./dist && rollup -c",
23
- "generate-manifest": "npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD",
24
- "generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
25
- "generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
26
- "generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
27
- "copydest": "rsync -avh dist/* ./release/ --delete",
28
- "build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
29
- "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
30
- "prepublish": "npm run build:release"
31
- },
32
- "devDependencies": {
33
- "@rollup/plugin-alias": "^3.1.2",
34
- "@rollup/plugin-commonjs": "^18.0.0",
35
- "@rollup/plugin-json": "^4.1.0",
36
- "@rollup/plugin-node-resolve": "^11.2.1",
37
- "@rollup/plugin-replace": "^4.0.0",
38
- "@rollup/plugin-typescript": "^8.2.1",
39
- "@tsconfig/svelte": "^1.0.10",
40
- "@types/node": "^16.7.1",
41
- "@typescript-eslint/eslint-plugin": "^4.22.0",
42
- "@typescript-eslint/parser": "^4.22.0",
43
- "eslint": "^7.25.0",
44
- "eslint-plugin-jsdoc": "^33.0.0",
45
- "eslint-plugin-svelte3": "^3.2.0",
46
- "monorepo-wc-packages-manifester": "^0.0.3",
47
- "node-sass": "^9.0.0",
48
- "postcss": "^8.2.13",
49
- "postcss-load-config": "^3.0.1",
50
- "prettier": "^2.8.4",
51
- "rollup": "^2.46.0",
52
- "rollup-plugin-copy": "^3.4.0",
53
- "rollup-plugin-css-only": "^3.1.0",
54
- "rollup-plugin-livereload": "^2.0.0",
55
- "rollup-plugin-svelte": "^7.1.0",
56
- "rollup-plugin-terser": "^7.0.2",
57
- "rollup-plugin-ts-paths": "^1.0.5",
58
- "rollup-plugin-typescript2": "^0.31.1",
59
- "sass": "^1.32.12",
60
- "sirv-cli": "^1.0.11",
61
- "svelte": "^3.46.2",
62
- "svelte-check": "^1.5.2",
63
- "svelte-preprocess": "^4.7.2",
64
- "ts-json-schema-generator": "^0.98.0",
65
- "ts-node": "^9.1.1",
66
- "tslib": "^2.2.0",
67
- "ttypescript": "^1.5.12",
68
- "typescript": "^4.3.5",
69
- "typescript-transform-paths": "^2.2.3",
70
- "wc-js-utils": "^0.0.1"
71
- },
72
- "keywords": [
73
- "svelte",
74
- "svelte-webcomponents",
75
- "webcomponents"
76
- ],
77
- "contributors": [],
78
- "dependencies": {
79
- "@htmlbricks/hb-card-video": "^0.20.17",
80
- "@htmlbricks/hb-paginate": "^0.20.17",
81
- "dayjs": "^1.10.7"
82
- },
83
- "gitHead": "0670e46cc090b813b86b0bdec8587eb30a4d655a"
84
- }
2
+ "name": "@htmlbricks/hb-gallery-video",
3
+ "version": "0.50.0-alpha.10",
4
+ "contributors": [],
5
+ "description": "",
6
+ "licenses": [
7
+ {
8
+ "type": "Apache-2.0",
9
+ "path": "LICENSE.md",
10
+ "cost": 0,
11
+ "currency": "EUR"
12
+ }
13
+ ],
14
+ "main": "main.iife.js",
15
+ "dependencies": []
16
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "$ref": "#/definitions/Component",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Component": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "cards": {
9
+ "items": {
10
+ "$ref": "#/definitions/ICard"
11
+ },
12
+ "type": "array"
13
+ },
14
+ "dateformat": {
15
+ "type": "string"
16
+ },
17
+ "disabletextfilter": {
18
+ "type": "string"
19
+ },
20
+ "externalfilter": {
21
+ "type": "string"
22
+ },
23
+ "filter": {
24
+ "type": "string"
25
+ },
26
+ "id": {
27
+ "type": "string"
28
+ },
29
+ "initialdate": {
30
+ "format": "date-time",
31
+ "type": "string"
32
+ },
33
+ "lastdate": {
34
+ "format": "date-time",
35
+ "type": "string"
36
+ },
37
+ "linkLabel": {
38
+ "type": "string"
39
+ },
40
+ "page": {
41
+ "type": "number"
42
+ },
43
+ "pages": {
44
+ "type": "number"
45
+ },
46
+ "primarycolor": {
47
+ "type": "string"
48
+ },
49
+ "size": {
50
+ "type": "number"
51
+ },
52
+ "style": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "required": [
57
+ "cards"
58
+ ],
59
+ "type": "object"
60
+ },
61
+ "ICard": {
62
+ "additionalProperties": false,
63
+ "properties": {
64
+ "_id": {
65
+ "type": "string"
66
+ },
67
+ "dateformat": {
68
+ "type": "string"
69
+ },
70
+ "description": {
71
+ "type": "string"
72
+ },
73
+ "pageUri": {
74
+ "type": "string"
75
+ },
76
+ "provider": {
77
+ "const": "youtube",
78
+ "type": "string"
79
+ },
80
+ "time": {
81
+ "format": "date-time",
82
+ "type": "string"
83
+ },
84
+ "title": {
85
+ "type": "string"
86
+ },
87
+ "videoSrc": {
88
+ "type": "string"
89
+ }
90
+ },
91
+ "required": [
92
+ "videoSrc"
93
+ ],
94
+ "type": "object"
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$ref": "#/definitions/Events",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Events": {
6
+ "additionalProperties": false,
7
+ "type": "object"
8
+ }
9
+ }
10
+ }
package/LICENSE.md DELETED
@@ -1,68 +0,0 @@
1
- ## MIT License
2
-
3
- > Code and Contributions
4
-
5
- Copyright (c) 2021 Dario Caruso (dottgonzo)
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in all
15
- copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- SOFTWARE.
24
-
25
- ##### https://choosealicense.com/licenses/mit/
26
-
27
- ## Creative Commons BY-NC 4.0 License
28
-
29
- > Images, assets and logos
30
-
31
- Copyleft (c) 2021 Dario Caruso (dottgonzo)
32
-
33
- #### You are free to:
34
-
35
- - Share — copy and redistribute the material in any medium or format
36
- - Adapt — remix, transform, and build upon the material
37
-
38
- The licensor cannot revoke these freedoms as long as you follow the license terms.
39
-
40
- #### Under the following terms:
41
-
42
- - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that - suggests the licensor endorses you or your use.
43
- - NonCommercial — You may not use the material for commercial purposes.
44
-
45
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
46
-
47
- ##### https://creativecommons.org/licenses/by-nc/4.0/
48
-
49
- ## Creative Commons BY 4.0 License
50
-
51
- > Documentation and Translations
52
-
53
- Copyleft (c) 2021 Dario Caruso (dottgonzo)
54
-
55
- #### You are free to:
56
-
57
- - Share — copy and redistribute the material in any medium or format
58
- - Adapt — remix, transform, and build upon the material for any purpose, even commercially.
59
-
60
- The licensor cannot revoke these freedoms as long as you follow the license terms.
61
-
62
- #### Under the following terms:
63
-
64
- - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
65
-
66
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
67
-
68
- ##### https://creativecommons.org/licenses/by/4.0/
package/README.md DELETED
@@ -1,2 +0,0 @@
1
- # gallery-video web component
2
-
package/extra/docs.ts DELETED
@@ -1,79 +0,0 @@
1
- import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
2
- import type { Component } from "../app/types/webcomponent.type";
3
-
4
- export const storybookArgs = {
5
- size: { control: { type: "range", min: 1, max: 100 } },
6
- page: { control: { type: "number" } },
7
- resturi: { control: { type: "object" } },
8
- headers: { control: { type: "array" } },
9
- cards: { control: { type: "array" } },
10
- primarycolor: { control: { type: "color" } },
11
- pageChange: { action: "pagechangeEvent" },
12
- externalfilter: { control: { type: "boolean" } },
13
- textFilterVideos: { action: "textFilterVideosEvent" },
14
- dateFilterVideos: { action: "dateFilterVideosEvent" },
15
- };
16
-
17
- const cssVars: CssVar[] = [];
18
- export const cssParts: CssPart[] = [{ name: "container", description: "" }];
19
- export const htmlSlots: HtmlSlot[] = [];
20
- export const i18nLanguages: i18nLang[] = [];
21
-
22
- export const styleSetup: StyleSetup = {
23
- vars: cssVars,
24
- parts: cssParts,
25
- };
26
- const cards: Component["cards"] = [
27
- {
28
- title: "bau",
29
- videoSrc: "https://comapi.be-on.tv/v1/public/records/61043eedb50af916a6429fdc/video",
30
- time: new Date("2021-08-06T22:46:30.565Z"),
31
- },
32
- {
33
- title: "bb1",
34
- videoSrc: "https://comapi.be-on.tv/v1/public/records/61043eedb50af916a6429fdc/video",
35
- time: new Date("2021-08-06T22:46:31.565Z"),
36
- },
37
-
38
- {
39
- title: "bb4",
40
- time: new Date("2021-08-06T22:46:34.565Z"),
41
- videoSrc: "https://www.youtube.com/embed/tgbNymZ7vqY",
42
- provider: "youtube",
43
- },
44
-
45
- {
46
- title: "bb12",
47
- time: new Date("2021-08-06T22:46:34.565Z"),
48
- videoSrc: "https://comapi.be-on.tv/v1/public/records/61043eedb50af916a6429fdc/video",
49
- },
50
- ];
51
- const examples: { name: string; description?: string; data: Component }[] = [
52
- {
53
- name: "default",
54
- data: {
55
- cards,
56
- },
57
- },
58
- ];
59
- export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
60
- definitions: null as any,
61
- storybookArgs,
62
- styleSetup,
63
- author: null as any,
64
- contributors: [],
65
- owner: null as any,
66
- htmlSlots,
67
- i18n: i18nLanguages,
68
- examples,
69
- screenshots: [],
70
- licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
71
- readmePath: "README.md",
72
- name: "hb-gallery-video",
73
- category: "archives",
74
- tags: ["archives"],
75
- size: {},
76
- iifePath: "release/release.js",
77
- repoName: "@htmlbricks/hb-gallery-video",
78
- version: null as any,
79
- };