@htmlbricks/hb-site-slideshow-horizontal 0.65.22 → 0.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,3 +1,3 @@
1
- (function(pr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const yn=1,bn=2,$n=16,En=1,xn=2,mr="[",kt="[!",Vt="]",tt={},P=Symbol(),kn="http://www.w3.org/1999/xhtml",Yt=!1;var gr=Array.isArray,Tn=Array.prototype.indexOf,Ut=Array.from,Tt=Object.keys,At=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,An=Object.getOwnPropertyDescriptors,Cn=Object.prototype,Sn=Array.prototype,wr=Object.getPrototypeOf,yr=Object.isExtensible;function Nn(e){for(var t=0;t<e.length;t++)e[t]()}function br(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const D=2,Wt=4,Gt=8,Ce=16,Se=32,Fe=64,Ct=128,he=512,F=1024,W=2048,Ne=4096,Q=8192,Re=16384,St=32768,nt=65536,$r=1<<17,Er=1<<18,Ye=1<<19,Rn=1<<20,Ue=32768,Jt=1<<21,Kt=1<<22,Ie=1<<23,Xt=Symbol("$state"),On=Symbol("legacy props"),Dn=Symbol(""),it=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Zt=3,st=8;function Ln(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Mn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function In(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function zn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Bn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Hn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Nt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Vn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let b=!1;function Oe(e){b=e}let y;function ee(e){if(e===null)throw Nt(),tt;return y=e}function Rt(){return ee(Ee(y))}function E(e){if(b){if(Ee(y)!==null)throw Nt(),tt;y=e}}function Yn(e=1){if(b){for(var t=e,r=y;t--;)r=Ee(r);y=r}}function Ot(e=!0){for(var t=0,r=y;;){if(r.nodeType===st){var n=r.data;if(n===Vt){if(t===0)return r;t-=1}else(n===mr||n===kt)&&(t+=1)}var i=Ee(r);e&&r.remove(),r=i}}function xr(e){if(!e||e.nodeType!==st)throw Nt(),tt;return e.data}function kr(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 Tr(e){return!Un(e,this.v)}let Wn=!1,le=null;function lt(e){le=e}function Ar(e,t=!1,r){le={p:le,i:!1,c:null,e:null,s:e,x:null,l:null}}function Cr(e){var t=le,r=t.e;if(r!==null){t.e=null;for(var n of r)Gr(n)}return e!==void 0&&(t.x=e),t.i=!0,le=t.p,e??{}}function Sr(){return!0}let We=[];function Nr(){var e=We;We=[],Nn(e)}function Qt(e){if(We.length===0&&!pt){var t=We;queueMicrotask(()=>{t===We&&Nr()})}We.push(e)}function Gn(){for(;We.length>0;)Nr()}function Rr(e){var t=w;if(t===null)return g.f|=Ie,e;if((t.f&St)===0){if((t.f&Ct)===0)throw e;t.b.error(e)}else at(e,t)}function at(e,t){for(;t!==null;){if((t.f&Ct)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Dt=new Set;let A=null,ae=null,fe=[],Lt=null,er=!1,pt=!1;class _e{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#f=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){fe=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#l(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):(A=null,Dr(r.render_effects),Dr(r.effects),this.#f?.resolve()),ae=null}#l(t,r){t.f^=F;for(var n=t.first;n!==null;){var i=n.f,s=(i&(Se|Fe))!==0,l=s&&(i&F)!==0,a=l||(i&Q)!==0||this.skipped_effects.has(n);if((n.f&Ct)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){s?n.f^=F:(i&Wt)!==0?r.effects.push(n):yt(n)&&((n.f&Ce)!==0&&r.block_effects.push(n),bt(n));var o=n.first;if(o!==null){n=o;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#a(t){for(const r of t)((r.f&W)!==0?this.#s:this.#i).push(r),this.#o(r.deps),I(r,F)}#o(t){if(t!==null)for(const r of t)(r.f&D)===0||(r.f&Ue)===0||(r.f^=Ue,this.#o(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ie)===0&&(this.current.set(t,t.v),ae?.set(t,t.v))}activate(){A=this,this.apply()}deactivate(){A===this&&(A=null,ae=null)}flush(){if(this.activate(),fe.length>0){if(Or(),A!==null&&A!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Dt.size>1){this.previous.clear();var t=ae,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Dt){if(s===this){r=!1;continue}const l=[];for(const[o,f]of this.current){if(s.current.has(o))if(r&&f!==s.current.get(o))s.current.set(o,f);else continue;l.push(o)}if(l.length===0)continue;const a=[...s.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){var i=fe;fe=[];const o=new Set,f=new Map;for(const u of l)Lr(u,a,o,f);if(fe.length>0){A=s,s.apply();for(const u of fe)s.#l(u,n);s.deactivate()}fe=i}}A=null,ae=t}this.committed=!0,Dt.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)I(t,W),Ge(t);for(const t of this.#i)I(t,Ne),Ge(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=br()).promise}static ensure(){if(A===null){const t=A=new _e;Dt.add(A),pt||_e.enqueue(()=>{A===t&&t.flush()})}return A}static enqueue(t){Qt(t)}apply(){}}function ft(e){var t=pt;pt=!0;try{for(var r;;){if(Gn(),fe.length===0&&(A?.flush(),fe.length===0))return Lt=null,r;Or()}}finally{pt=t}}function Or(){var e=ze;er=!0;var t=null;try{var r=0;for(jt(!0);fe.length>0;){var n=_e.ensure();if(r++>1e3){var i,s;Jn()}n.process(fe),je.clear()}}finally{er=!1,jt(e),Lt=null}}function Jn(){try{In()}catch(e){at(e,Lt)}}let De=null;function Dr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Re|Q))===0&&yt(n)&&(De=new Set,bt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Zr(n):n.fn=null),De?.size>0)){je.clear();for(const i of De){if((i.f&(Re|Q))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)De.has(l)&&(De.delete(l),s.push(l)),l=l.parent;for(let a=s.length-1;a>=0;a--){const o=s[a];(o.f&(Re|Q))===0&&bt(o)}}De.clear()}}De=null}}function Lr(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&D)!==0?Lr(i,t,r,n):(s&(Kt|Ce))!==0&&(s&W)===0&&Mr(i,t,n)&&(I(i,W),Ge(i))}}function Mr(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&D)!==0&&Mr(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Ge(e){for(var t=Lt=e;t.parent!==null;){t=t.parent;var r=t.f;if(er&&t===w&&(r&Ce)!==0&&(r&Er)===0)return;if((r&(Fe|Se))!==0){if((r&F)===0)return;t.f^=F}}fe.push(t)}function Kn(e){let t=0,r=Je(0),n;return()=>{It()&&(d(r),Jr(()=>(t===0&&(n=$i(()=>e(()=>gt(r)))),t+=1,()=>{Qt(()=>{t-=1,t===0&&(n?.(),n=void 0,gt(r))})})))}}var Xn=nt|Ye|Ct;function Zn(e,t,r){new Qn(e,t,r)}class Qn{parent;#t=!1;#e;#r=b?y:null;#n;#f;#s;#i=null;#l=null;#a=null;#o=null;#u=null;#c=0;#v=0;#h=!1;#d=null;#w=Kn(()=>(this.#d=Je(this.#c),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#f=n,this.parent=w.b,this.#t=!!this.#n.pending,this.#s=lr(()=>{if(w.b=this,b){const s=this.#r;Rt(),s.nodeType===st&&s.data===kt?this.#b():this.#y()}else{var i=this.#m();try{this.#i=ce(()=>n(i))}catch(s){this.error(s)}this.#v>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},Xn),b&&(this.#e=y)}#y(){try{this.#i=ce(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#b(){const t=this.#n.pending;t&&(this.#l=ce(()=>t(this.#e)),_e.enqueue(()=>{var r=this.#m();this.#i=this.#_(()=>(_e.ensure(),ce(()=>this.#f(r)))),this.#v>0?this.#p():(ct(this.#l,()=>{this.#l=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#u=me(),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.#n.pending}#_(t){var r=w,n=g,i=le;Te(this.#s),J(this.#s),lt(this.#s.ctx);try{return t()}catch(s){return Rr(s),null}finally{Te(r),J(n),lt(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),tn(this.#i,this.#o)),this.#l===null&&(this.#l=ce(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#v+=t,this.#v===0&&(this.#t=!1,this.#l&&ct(this.#l,()=>{this.#l=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#d&&mt(this.#d,this.#c)}get_effect_pending(){return this.#w(),d(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#i&&(H(this.#i),this.#i=null),this.#l&&(H(this.#l),this.#l=null),this.#a&&(H(this.#a),this.#a=null),b&&(ee(this.#r),Yn(),ee(Ot()));var i=!1,s=!1;const l=()=>{if(i){Vn();return}i=!0,s&&Hn(),_e.ensure(),this.#c=0,this.#a!==null&&ct(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#h=!1,ce(()=>this.#f(this.#e)))),this.#v>0?this.#p():this.#t=!1};var a=g;try{J(null),s=!0,r?.(t,l),s=!1}catch(o){at(o,this.#s&&this.#s.parent)}finally{J(a)}n&&Qt(()=>{this.#a=this.#_(()=>{_e.ensure(),this.#h=!0;try{return ce(()=>{n(this.#e,()=>t,()=>l)})}catch(o){return at(o,this.#s.parent),null}finally{this.#h=!1}})})}}function ei(e,t,r){for(var n=[],i=t.length,s=0;s<i;s++)ar(t[s].e,n,!0);Qr(n,()=>{var l=n.length===0&&r!==null;if(l){var a=r,o=a.parentNode;Yr(o),o.append(a),e.items.clear(),$e(e,t[0].prev,t[i-1].next)}for(var f=0;f<i;f++){var u=t[f];l||(e.items.delete(u.k),$e(e,u.prev,u.next)),H(u.e,!l)}e.first===t[0]&&(e.first=t[0].prev)})}function ti(e,t,r,n,i,s=null){var l=e,a=new Map,o=null;b&&Rt();var f=null,u=ai(()=>{var T=r();return gr(T)?T:T==null?[]:Ut(T)}),v,c=!0;function h(){ri(N,v,l,t,n),f!==null&&(v.length===0?(f.fragment?(l.before(f.fragment),f.fragment=null):fr(f.effect),_.first=f.effect):ct(f.effect,()=>{f=null}))}var _=lr(()=>{v=d(u);var T=v.length;let re=!1;if(b){var z=xr(l)===kt;z!==(T===0)&&(l=Ot(),ee(l),Oe(!1),re=!0)}for(var m=new Set,$=A,C=null,q=Ur(),ne=0;ne<T;ne+=1){b&&y.nodeType===st&&y.data===Vt&&(l=y,re=!0,Oe(!1));var ht=v[ne],Be=n(ht,ne),p=c?null:a.get(Be);p?(mt(p.v,ht),p.i=ne,q&&$.skipped_effects.delete(p.e)):(p=ni(c?l:null,C,ht,Be,ne,i,t,r),c&&(p.o=!0,C===null?o=p:C.next=p,C=p),a.set(Be,p)),m.add(Be)}if(T===0&&s&&!f)if(c)f={fragment:null,effect:ce(()=>s(l))};else{var Et=document.createDocumentFragment(),Ht=me();Et.append(Ht),f={fragment:Et,effect:ce(()=>s(Ht))}}if(b&&T>0&&ee(Ot()),!c)if(q){for(const[cr,vr]of a)m.has(cr)||$.skipped_effects.add(vr.e);$.oncommit(h),$.ondiscard(()=>{})}else h();re&&Oe(!0),d(u)}),N={effect:_,items:a,first:o};c=!1,b&&(l=y)}function ri(e,t,r,n,i){var s=t.length,l=e.items,a=e.first,o,f=null,u=[],v=[],c,h,_,N;for(N=0;N<s;N+=1){if(c=t[N],h=i(c,N),_=l.get(h),e.first??=_,!_.o){_.o=!0;var T=f?f.next:a;$e(e,f,_),$e(e,_,T),tr(_,T,r),f=_,u=[],v=[],a=f.next;continue}if((_.e.f&Q)!==0&&fr(_.e),_!==a){if(o!==void 0&&o.has(_)){if(u.length<v.length){var re=v[0],z;f=re.prev;var m=u[0],$=u[u.length-1];for(z=0;z<u.length;z+=1)tr(u[z],re,r);for(z=0;z<v.length;z+=1)o.delete(v[z]);$e(e,m.prev,$.next),$e(e,f,m),$e(e,$,re),a=re,f=$,N-=1,u=[],v=[]}else o.delete(_),tr(_,a,r),$e(e,_.prev,_.next),$e(e,_,f===null?e.first:f.next),$e(e,f,_),f=_;continue}for(u=[],v=[];a!==null&&a.k!==h;)(a.e.f&Q)===0&&(o??=new Set).add(a),v.push(a),a=a.next;if(a===null)continue;_=a}u.push(_),f=_,a=_.next}if(a!==null||o!==void 0){for(var C=o===void 0?[]:Ut(o);a!==null;)(a.e.f&Q)===0&&C.push(a),a=a.next;var q=C.length;if(q>0){var ne=null;ei(e,C,ne)}}}function ni(e,t,r,n,i,s,l,a){var o=(l&yn)!==0,f=(l&$n)===0,u=o?f?jr(r,!1,!1):Je(r):r,v=(l&bn)===0?i:Je(i),c={i:v,v:u,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var h=document.createDocumentFragment();h.append(e=me())}return c.e=ce(()=>s(e,u,v,a)),t!==null&&(t.next=c),c}finally{}}function tr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var l=Ee(s);i.before(s),s=l}}function $e(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r===null?e.effect.last=t&&t.e:(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function ii(e,t,r,n){const i=Pt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=A,l=w,a=si();function o(){Promise.all(r.map(f=>li(f))).then(f=>{a();try{n([...t.map(i),...f])}catch(u){(l.f&Re)===0&&at(u,l)}s?.deactivate(),Mt()}).catch(f=>{at(f,l)})}e.length>0?Promise.all(e).then(()=>{a();try{return o()}finally{s?.deactivate(),Mt()}}):o()}function si(){var e=w,t=g,r=le,n=A;return function(s=!0){Te(e),J(t),lt(r),s&&n?.activate()}}function Mt(){Te(null),J(null),lt(null)}function Pt(e){var t=D|W,r=g!==null&&(g.f&D)!==0?g:null;return w!==null&&(w.f|=Ye),{ctx:le,deps:null,effects:null,equals:kr,f:t,fn:e,reactions:null,rv:0,v:P,wv:0,parent:r??w,ac:null}}function li(e,t){let r=w;r===null&&Ln();var n=r.b,i=void 0,s=Je(P),l=!g,a=new Map;return mi(()=>{var o=br();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===A&&f.committed&&f.deactivate(),Mt()})}catch(c){o.reject(c),Mt()}var f=A;if(l){var u=!n.is_pending();n.update_pending_count(1),f.increment(u),a.get(f)?.reject(it),a.delete(f),a.set(f,o)}const v=(c,h=void 0)=>{if(f.activate(),h)h!==it&&(s.f|=Ie,mt(s,h));else{(s.f&Ie)!==0&&(s.f^=Ie),mt(s,c);for(const[_,N]of a){if(a.delete(_),_===f)break;N.reject(it)}}l&&(n.update_pending_count(-1),f.decrement(u))};o.promise.then(v,c=>v(null,c||"unknown"))}),Wr(()=>{for(const o of a.values())o.reject(it)}),new Promise(o=>{function f(u){function v(){u===i?o(s):f(i)}u.then(v,v)}f(i)})}function Ft(e){const t=Pt(e);return nn(t),t}function ai(e){const t=Pt(e);return t.equals=Tr,t}function Pr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)H(t[r])}}function fi(e){for(var t=e.parent;t!==null;){if((t.f&D)===0)return(t.f&Re)===0?t:null;t=t.parent}return null}function rr(e){var t,r=w;Te(fi(e));try{e.f&=~Ue,Pr(e),t=on(e)}finally{Te(r)}return t}function Fr(e){var t=rr(e);if(e.equals(t)||(A?.is_fork||(e.v=t),e.wv=an()),!Ke)if(ae!==null)It()&&ae.set(e,t);else{var r=(e.f&he)===0?Ne:F;I(e,r)}}let nr=new Set;const je=new Map;let Ir=!1;function Je(e,t){var r={f:0,v:e,reactions:null,equals:kr,rv:0,wv:0};return r}function pe(e,t){const r=Je(e);return nn(r),r}function jr(e,t=!1,r=!0){const n=Je(e);return t||(n.equals=Tr),n}function oe(e,t,r=!1){g!==null&&(!ke||(g.f&$r)!==0)&&Sr()&&(g.f&(D|Ce|Kt|$r))!==0&&!Le?.includes(e)&&Bn();let n=r?ot(t):t;return mt(e,n)}function mt(e,t){if(!e.equals(t)){var r=e.v;Ke?je.set(e,t):je.set(e,r),e.v=t;var n=_e.ensure();n.capture(e,r),(e.f&D)!==0&&((e.f&W)!==0&&rr(e),I(e,(e.f&he)!==0?F:Ne)),e.wv=an(),zr(e,W),w!==null&&(w.f&F)!==0&&(w.f&(Se|Fe))===0&&(ve===null?yi([e]):ve.push(e)),!n.is_fork&&nr.size>0&&!Ir&&oi()}return t}function oi(){Ir=!1;var e=ze;jt(!0);const t=Array.from(nr);try{for(const r of t)(r.f&F)!==0&&I(r,Ne),yt(r)&&bt(r)}finally{jt(e)}nr.clear()}function gt(e){oe(e,e.v+1)}function zr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],l=s.f,a=(l&W)===0;if(a&&I(s,t),(l&D)!==0){var o=s;ae?.delete(o),(l&Ue)===0&&(l&he&&(s.f|=Ue),zr(o,Ne))}else a&&((l&Ce)!==0&&De!==null&&De.add(s),Ge(s))}}function ot(e){if(typeof e!="object"||e===null||Xt in e)return e;const t=wr(e);if(t!==Cn&&t!==Sn)return e;var r=new Map,n=gr(e),i=pe(0),s=Xe,l=a=>{if(Xe===s)return a();var o=g,f=Xe;J(null),ln(s);var u=a();return J(o),ln(f),u};return n&&r.set("length",pe(e.length)),new Proxy(e,{defineProperty(a,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&zn();var u=r.get(o);return u===void 0?u=l(()=>{var v=pe(f.value);return r.set(o,v),v}):oe(u,f.value,!0),!0},deleteProperty(a,o){var f=r.get(o);if(f===void 0){if(o in a){const u=l(()=>pe(P));r.set(o,u),gt(i)}}else oe(f,P),gt(i);return!0},get(a,o,f){if(o===Xt)return e;var u=r.get(o),v=o in a;if(u===void 0&&(!v||rt(a,o)?.writable)&&(u=l(()=>{var h=ot(v?a[o]:P),_=pe(h);return _}),r.set(o,u)),u!==void 0){var c=d(u);return c===P?void 0:c}return Reflect.get(a,o,f)},getOwnPropertyDescriptor(a,o){var f=Reflect.getOwnPropertyDescriptor(a,o);if(f&&"value"in f){var u=r.get(o);u&&(f.value=d(u))}else if(f===void 0){var v=r.get(o),c=v?.v;if(v!==void 0&&c!==P)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,o){if(o===Xt)return!0;var f=r.get(o),u=f!==void 0&&f.v!==P||Reflect.has(a,o);if(f!==void 0||w!==null&&(!u||rt(a,o)?.writable)){f===void 0&&(f=l(()=>{var c=u?ot(a[o]):P,h=pe(c);return h}),r.set(o,f));var v=d(f);if(v===P)return!1}return u},set(a,o,f,u){var v=r.get(o),c=o in a;if(n&&o==="length")for(var h=f;h<v.v;h+=1){var _=r.get(h+"");_!==void 0?oe(_,P):h in a&&(_=l(()=>pe(P)),r.set(h+"",_))}if(v===void 0)(!c||rt(a,o)?.writable)&&(v=l(()=>pe(void 0)),oe(v,ot(f)),r.set(o,v));else{c=v.v!==P;var N=l(()=>ot(f));oe(v,N)}var T=Reflect.getOwnPropertyDescriptor(a,o);if(T?.set&&T.set.call(u,f),!c){if(n&&typeof o=="string"){var re=r.get("length"),z=Number(o);Number.isInteger(z)&&z>=re.v&&oe(re,z+1)}gt(i)}return!0},ownKeys(a){d(i);var o=Reflect.ownKeys(a).filter(v=>{var c=r.get(v);return c===void 0||c.v!==P});for(var[f,u]of r)u.v!==P&&!(f in a)&&o.push(f);return o},setPrototypeOf(){qn()}})}var qr,Br,Hr,Vr;function ir(){if(qr===void 0){qr=window,Br=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Hr=rt(t,"firstChild").get,Vr=rt(t,"nextSibling").get,yr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yr(r)&&(r.__t=void 0)}}function me(e=""){return document.createTextNode(e)}function ut(e){return Hr.call(e)}function Ee(e){return Vr.call(e)}function x(e,t){if(!b)return ut(e);var r=ut(y);if(r===null)r=y.appendChild(me());else if(t&&r.nodeType!==Zt){var n=me();return r?.before(n),ee(n),n}return ee(r),r}function ue(e,t=!1){if(!b){var r=ut(e);return r instanceof Comment&&r.data===""?Ee(r):r}if(t&&y?.nodeType!==Zt){var n=me();return y?.before(n),ee(n),n}return y}function G(e,t=1,r=!1){let n=b?y:e;for(var i;t--;)i=n,n=Ee(n);if(!b)return n;if(r&&n?.nodeType!==Zt){var s=me();return n===null?i?.after(s):n.before(s),ee(s),s}return ee(n),n}function Yr(e){e.textContent=""}function Ur(){return!1}function ui(e,t,r,n=!0){n&&r();for(var i of t)e.addEventListener(i,r);Wr(()=>{for(var s of t)e.removeEventListener(s,r)})}function sr(e){var t=g,r=w;J(null),Te(null);try{return e()}finally{J(t),Te(r)}}function ci(e){w===null&&(g===null&&Fn(),Pn()),Ke&&Mn()}function vi(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function xe(e,t,r){var n=w;n!==null&&(n.f&Q)!==0&&(e|=Q);var i={ctx:le,deps:null,nodes_start:null,nodes_end:null,f:e|W|he,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{bt(i),i.f|=St}catch(a){throw H(i),a}else t!==null&&Ge(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Ye)===0&&(s=s.first,(e&Ce)!==0&&(e&nt)!==0&&s!==null&&(s.f|=nt)),s!==null&&(s.parent=n,n!==null&&vi(s,n),g!==null&&(g.f&D)!==0&&(e&Fe)===0)){var l=g;(l.effects??=[]).push(s)}return i}function It(){return g!==null&&!ke}function Wr(e){const t=xe(Gt,null,!1);return I(t,F),t.teardown=e,t}function di(e){ci();var t=w.f,r=!g&&(t&Se)!==0&&(t&St)===0;if(r){var n=le;(n.e??=[]).push(e)}else return Gr(e)}function Gr(e){return xe(Wt|Rn,e,!1)}function hi(e){_e.ensure();const t=xe(Fe|Ye,e,!0);return()=>{H(t)}}function _i(e){_e.ensure();const t=xe(Fe|Ye,e,!0);return(r={})=>new Promise(n=>{r.outro?ct(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function pi(e){return xe(Wt,e,!1)}function mi(e){return xe(Kt|Ye,e,!0)}function Jr(e,t=0){return xe(Gt|t,e,!0)}function L(e,t=[],r=[],n=[]){ii(n,t,r,i=>{xe(Gt,()=>e(...i.map(d)),!0)})}function lr(e,t=0){var r=xe(Ce|t,e,!0);return r}function ce(e){return xe(Se|Ye,e,!0)}function Kr(e){var t=e.teardown;if(t!==null){const r=Ke,n=g;rn(!0),J(null);try{t.call(null)}finally{rn(r),J(n)}}}function Xr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&sr(()=>{i.abort(it)});var n=r.next;(r.f&Fe)!==0?r.parent=null:H(r,t),r=n}}function gi(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Se)===0&&H(t),t=r}}function H(e,t=!0){var r=!1;(t||(e.f&Er)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(wi(e.nodes_start,e.nodes_end),r=!0),Xr(e,t&&!r),zt(e,0),I(e,Re);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Kr(e);var i=e.parent;i!==null&&i.first!==null&&Zr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function wi(e,t){for(;e!==null;){var r=e===t?null:Ee(e);e.remove(),e=r}}function Zr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function ct(e,t,r=!0){var n=[];ar(e,n,!0),Qr(n,()=>{r&&H(e),t&&t()})}function Qr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ar(e,t,r){if((e.f&Q)===0){if(e.f^=Q,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&nt)!==0||(n.f&Se)!==0&&(e.f&Ce)!==0;ar(n,t,s?r:!1),n=i}}}function fr(e){en(e,!0)}function en(e,t){if((e.f&Q)!==0){e.f^=Q,(e.f&F)===0&&(I(e,W),Ge(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&nt)!==0||(r.f&Se)!==0;en(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function tn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:Ee(r);t.append(r),r=i}}let ze=!1;function jt(e){ze=e}let Ke=!1;function rn(e){Ke=e}let g=null,ke=!1;function J(e){g=e}let w=null;function Te(e){w=e}let Le=null;function nn(e){g!==null&&(Le===null?Le=[e]:Le.push(e))}let V=null,te=0,ve=null;function yi(e){ve=e}let sn=1,wt=0,Xe=wt;function ln(e){Xe=e}function an(){return++sn}function yt(e){var t=e.f;if((t&W)!==0)return!0;if(t&D&&(e.f&=~Ue),(t&Ne)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(yt(s)&&Fr(s),s.wv>e.wv)return!0}(t&he)!==0&&ae===null&&I(e,F)}return!1}function fn(e,t,r=!0){var n=e.reactions;if(n!==null&&!Le?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&D)!==0?fn(s,t,!1):t===s&&(r?I(s,W):(s.f&F)!==0&&I(s,Ne),Ge(s))}}function on(e){var t=V,r=te,n=ve,i=g,s=Le,l=le,a=ke,o=Xe,f=e.f;V=null,te=0,ve=null,g=(f&(Se|Fe))===0?e:null,Le=null,lt(e.ctx),ke=!1,Xe=++wt,e.ac!==null&&(sr(()=>{e.ac.abort(it)}),e.ac=null);try{e.f|=Jt;var u=e.fn,v=u(),c=e.deps;if(V!==null){var h;if(zt(e,te),c!==null&&te>0)for(c.length=te+V.length,h=0;h<V.length;h++)c[te+h]=V[h];else e.deps=c=V;if(ze&&It()&&(e.f&he)!==0)for(h=te;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&te<c.length&&(zt(e,te),c.length=te);if(Sr()&&ve!==null&&!ke&&c!==null&&(e.f&(D|Ne|W))===0)for(h=0;h<ve.length;h++)fn(ve[h],e);return i!==null&&i!==e&&(wt++,ve!==null&&(n===null?n=ve:n.push(...ve))),(e.f&Ie)!==0&&(e.f^=Ie),v}catch(_){return Rr(_)}finally{e.f^=Jt,V=t,te=r,ve=n,g=i,Le=s,lt(l),ke=a,Xe=o}}function bi(e,t){let r=t.reactions;if(r!==null){var n=Tn.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&D)!==0&&(V===null||!V.includes(t))&&(I(t,Ne),(t.f&he)!==0&&(t.f^=he,t.f&=~Ue),Pr(t),zt(t,0))}function zt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)bi(e,r[n])}function bt(e){var t=e.f;if((t&Re)===0){I(e,F);var r=w,n=ze;w=e,ze=!0;try{(t&Ce)!==0?gi(e):Xr(e),Kr(e);var i=on(e);e.teardown=typeof i=="function"?i:null,e.wv=sn;var s;Yt&&Wn&&(e.f&W)!==0&&e.deps}finally{ze=n,w=r}}}function d(e){var t=e.f,r=(t&D)!==0;if(g!==null&&!ke){var n=w!==null&&(w.f&Re)!==0;if(!n&&!Le?.includes(e)){var i=g.deps;if((g.f&Jt)!==0)e.rv<wt&&(e.rv=wt,V===null&&i!==null&&i[te]===e?te++:V===null?V=[e]:V.includes(e)||V.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:s.includes(g)||s.push(g)}}}if(Ke){if(je.has(e))return je.get(e);if(r){var l=e,a=l.v;return((l.f&F)===0&&l.reactions!==null||cn(l))&&(a=rr(l)),je.set(l,a),a}}else r&&!ae?.has(e)&&(l=e,yt(l)&&Fr(l),ze&&It()&&(l.f&he)===0&&un(l));if(ae?.has(e))return ae.get(e);if((e.f&Ie)!==0)throw e.v;return e.v}function un(e){if(e.deps!==null){e.f^=he;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&D)!==0&&(t.f&he)===0&&un(t)}}function cn(e){if(e.v===P)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(je.has(t)||(t.f&D)!==0&&cn(t))return!0;return!1}function $i(e){var t=ke;try{return ke=!0,e()}finally{ke=t}}const Ei=-7169;function I(e,t){e.f=e.f&Ei|t}const vn=new Set,or=new Set;function xi(e){for(var t=0;t<e.length;t++)vn.add(e[t]);for(var r of or)r(e)}let dn=null;function qt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;dn=e;var l=0,a=dn===e&&e.__root;if(a){var o=i.indexOf(a);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(l=o)}if(s=i[l]||e.target,s!==t){At(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=g,v=w;J(null),Te(null);try{for(var c,h=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var N=s["__"+n];N!=null&&(!s.disabled||e.target===s)&&N.call(s,e)}catch(T){c?h.push(T):c=T}if(e.cancelBubble||_===t||_===null)break;s=_}if(c){for(let T of h)queueMicrotask(()=>{throw T});throw c}}finally{e.__root=t,delete e.currentTarget,J(u),Te(v)}}}function ki(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function vt(e,t){var r=w;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function M(e,t){var r=(t&En)!==0,n=(t&xn)!==0,i,s=!e.startsWith("<!>");return()=>{if(b)return vt(y,null),y;i===void 0&&(i=ki(s?e:"<!>"+e),r||(i=ut(i)));var l=n||Br?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=ut(l),o=l.lastChild;vt(a,o)}else vt(l,l);return l}}function qe(){if(b)return vt(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),r=me();return e.append(t,r),vt(t,r),e}function k(e,t){if(b){var r=w;((r.f&St)===0||r.nodes_end===null)&&(r.nodes_end=y),Rt();return}e!==null&&e.before(t)}const Ti=["touchstart","touchmove"];function Ai(e){return Ti.includes(e)}function de(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function hn(e,t){return _n(e,t)}function Ci(e,t){ir(),t.intro=t.intro??!1;const r=t.target,n=b,i=y;try{for(var s=ut(r);s&&(s.nodeType!==st||s.data!==mr);)s=Ee(s);if(!s)throw tt;Oe(!0),ee(s);const l=_n(e,{...t,anchor:s});return Oe(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==tt&&console.warn("Failed to hydrate: ",l),t.recover===!1&&jn(),ir(),Yr(r),Oe(!1),hn(e,t)}finally{Oe(n),ee(i)}}const dt=new Map;function _n(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:l=!0}){ir();var a=new Set,o=v=>{for(var c=0;c<v.length;c++){var h=v[c];if(!a.has(h)){a.add(h);var _=Ai(h);t.addEventListener(h,qt,{passive:_});var N=dt.get(h);N===void 0?(document.addEventListener(h,qt,{passive:_}),dt.set(h,1)):dt.set(h,N+1)}}};o(Ut(vn)),or.add(o);var f=void 0,u=_i(()=>{var v=r??t.appendChild(me());return Zn(v,{pending:()=>{}},c=>{if(s){Ar({});var h=le;h.c=s}if(i&&(n.$$events=i),b&&vt(c,null),f=e(c,n)||{},b&&(w.nodes_end=y,y===null||y.nodeType!==st||y.data!==Vt))throw Nt(),tt;s&&Cr()}),()=>{for(var c of a){t.removeEventListener(c,qt);var h=dt.get(c);--h===0?(document.removeEventListener(c,qt),dt.delete(c)):dt.set(c,h)}or.delete(o),v!==r&&v.parentNode?.removeChild(v)}});return ur.set(f,u),f}let ur=new WeakMap;function Si(e,t){const r=ur.get(e);return r?(ur.delete(e),r(t)):Promise.resolve()}class Ni{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#f=!0;constructor(t,r=!0){this.anchor=t,this.#f=r}#s=()=>{var t=A;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)fr(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,l]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#r.get(l);a&&(H(a.effect),this.#r.delete(l))}for(const[s,l]of this.#e){if(s===r||this.#n.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();tn(l,f),f.append(me()),this.#r.set(s,{effect:l,fragment:f})}else H(l);this.#n.delete(s),this.#e.delete(s)};this.#f||!n?(this.#n.add(s),ct(l,a,!1)):a()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(H(i.effect),this.#r.delete(n))};ensure(t,r){var n=A,i=Ur();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),l=me();s.append(l),this.#r.set(t,{effect:ce(()=>r(l)),fragment:s})}else this.#e.set(t,ce(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,o]of this.#e)a===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[a,o]of this.#r)a===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else b&&(this.anchor=y),this.#s()}}function j(e,t,r=!1){b&&Rt();var n=new Ni(e),i=r?nt:0;function s(l,a){if(b){const f=xr(e)===kt;if(l===f){var o=Ot();ee(o),n.anchor=o,Oe(!1),n.ensure(l,a),Oe(!0);return}}n.ensure(l,a)}lr(()=>{var l=!1;t((a,o=!0)=>{l=!0,s(o,a)}),l||s(!1,null)},i)}function Ri(e,t){pi(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Oi(e,t){return e==null?null:String(e)}function Di(e,t,r,n){var i=e.__style;if(b||i!==t){var s=Oi(t);(!b||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Li=Symbol("is custom element"),Mi=Symbol("is html");function Ae(e,t,r,n){var i=Pi(e);b&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Dn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Fi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Pi(e){return e.__attributes??={[Li]:e.nodeName.includes("-"),[Mi]:e.namespaceURI===kn}}var pn=new Map;function Fi(e){var t=e.getAttribute("is")||e.nodeName,r=pn.get(t);if(r)return r;pn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=An(i);for(var l in n)n[l].set&&r.push(l);i=wr(i)}return r}function Ii(e,t){ui(window,["resize"],()=>sr(()=>t(window[e])))}function $t(e,t,r,n){var i=n,s=!0,l=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=l());var o;o=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var f=!1,u=Pt(()=>(f=!1,o())),v=w;return(function(c,h){if(arguments.length>0){const _=h?d(u):c;return oe(u,_),f=!0,i!==void 0&&(i=_),c}return Ke&&f||(v.f&Re)!==0?u.v:d(u)})}function ji(e){return new zi(e)}class zi{#t;#e;constructor(t){var r=new Map,n=(s,l)=>{var a=jr(l,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return d(r.get(l)??n(l,Reflect.get(s,l)))},has(s,l){return l===On?!0:(d(r.get(l)??n(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return oe(r.get(l)??n(l,a),a),Reflect.set(s,l,a)}});this.#e=(t.hydrate?Ci:hn)(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)&&ft(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||At(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=()=>{Si(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let mn;typeof HTMLElement=="function"&&(mn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),k(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=qi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Bt(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=ji({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=hi(()=>{Jr(()=>{this.$$r=!0;for(const n of Tt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Bt(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(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Bt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Tt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Bt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 qi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Bi(e,t,r,n,i,s){let l=class extends mn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Tt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Tt(t).forEach(a=>{At(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(o){o=Bt(a,o,t),this.$$d[a]=o;var f=this.$$c;if(f){var u=rt(f,a)?.get;u?f[a]=o:f.$set({[a]:o})}}})}),n.forEach(a=>{At(l.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=l,l}var Ze={},gn;function Hi(){if(gn)return Ze;gn=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.LanguageTranslator=void 0,Ze.getChildStyleToPass=e,Ze.addComponent=t;function e(n,i){var s,l,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||l===void 0)&&l.length))for(var o=function(c){var h=i?.filter(function(_){return _.name===c&&_.defaultValue!==n[c]});h&&(a+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var v=u[f];o(v)}}catch(c){console.error("error getting child style to pass",c)}finally{return a}}function t(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 l=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(l),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(l)}document.head.appendChild(a)}catch(f){console.warn(f)}}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,l){return n.formatDate(i,s,l||this.lang)},n.getDefaultLang=function(){var i,s,l,a="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)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(i,s,l){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((a=s[l])===null||a===void 0)&&a[i]))return s[l][i];var o="",f=n.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(o=u[i])}return o},n.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 a=new Intl.DateTimeFormat(l||n.getDefaultLang(),s);return a.format(i)},n})();return Ze.LanguageTranslator=r,Ze}Hi();var Vi=M('<div class="video_sub_time svelte-1fmd5hv" part="video_sub_time"> </div>'),Yi=M('<div class="play svelte-1fmd5hv"><div class="play_container svelte-1fmd5hv"><div class="play_symbol svelte-1fmd5hv">▶</div></div></div> <div class="video_sub svelte-1fmd5hv"><div class="video_sub_title svelte-1fmd5hv" part="video_sub_title"> </div> <!></div>',1),Ui=M('<div class="caption svelte-1fmd5hv"><div class="caption_content svelte-1fmd5hv" part="caption_content"> </div></div>'),Wi=M('<div class="item svelte-1fmd5hv"><img class="svelte-1fmd5hv"/> <!></div>'),Gi=M('<div class="video_sub_time svelte-1fmd5hv" part="video_sub_time"> </div>'),Ji=M('<div class="play svelte-1fmd5hv"><div class="play_container svelte-1fmd5hv"><div class="play_symbol svelte-1fmd5hv">▶</div></div></div> <div class="video_sub svelte-1fmd5hv"><div class="video_sub_title svelte-1fmd5hv" part="video_sub_title"> </div> <!></div>',1),Ki=M('<div class="caption svelte-1fmd5hv"><div class="caption_content svelte-1fmd5hv" part="caption_content"> </div></div>'),Xi=M('<div class="item svelte-1fmd5hv"><img class="svelte-1fmd5hv"/> <!></div>'),Zi=M('<div class="video_sub_time svelte-1fmd5hv" part="video_sub_time"> </div>'),Qi=M('<div class="play svelte-1fmd5hv"><div class="play_container svelte-1fmd5hv"><div class="play_symbol svelte-1fmd5hv">▶</div></div></div> <div class="video_sub svelte-1fmd5hv"><div class="video_sub_title svelte-1fmd5hv" part="video_sub_title"> </div> <!></div>',1),es=M('<div class="caption svelte-1fmd5hv"><div class="caption_content svelte-1fmd5hv" part="caption_content"> </div></div>'),ts=M('<div class="item svelte-1fmd5hv"><img class="svelte-1fmd5hv"/> <!></div>'),rs=M('<div class="video_sub_time svelte-1fmd5hv" part="video_sub_time"> </div>'),ns=M('<div class="play svelte-1fmd5hv"><div class="play_container svelte-1fmd5hv"><div class="play_symbol svelte-1fmd5hv">▶</div></div></div> <div class="video_sub svelte-1fmd5hv"><div class="video_sub_title svelte-1fmd5hv" part="video_sub_title"> </div> <!></div>',1),is=M('<div class="caption svelte-1fmd5hv"><div class="caption_content svelte-1fmd5hv" part="caption_content"> </div></div>'),ss=M('<div class="item svelte-1fmd5hv"><img class="svelte-1fmd5hv"/> <!></div>'),ls=M('<div class="wrapper svelte-1fmd5hv"><section class="svelte-1fmd5hv"><a class="arrow__btn svelte-1fmd5hv"><div>‹</div></a> <!> <a class="arrow__btn svelte-1fmd5hv"><div>›</div></a></section></div>');const as={hash:"svelte-1fmd5hv",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;}.wrapper.svelte-1fmd5hv {display:grid;grid-template-columns:repeat(3, 100%);overflow:hidden;scroll-behavior:smooth;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) {width:100%;position:relative;display:grid;margin:20px 0;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) .item:where(.svelte-1fmd5hv) {position:relative;padding:0 0px;transition:250ms all;z-index:1;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) .item:where(.svelte-1fmd5hv):hover {margin:0 40px;transform:scale(1.2);cursor:pointer;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) .item:where(.svelte-1fmd5hv):hover .video_sub:where(.svelte-1fmd5hv) {display:block;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv) {padding:0 20px;position:absolute;display:flex;color:white;text-decoration:none;font-size:6em;z-index:3;align-items:center;justify-content:center;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv):nth-of-type(1) {top:0;bottom:0;left:0;background:linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv):nth-of-type(1):hover {background:linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%) !important;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv):nth-of-type(2) {top:0;bottom:0;right:0;background:linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv):nth-of-type(2):hover {background:linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%) !important;}.wrapper.svelte-1fmd5hv img:where(.svelte-1fmd5hv) {width:100%;height:100%;object-fit:cover;}.wrapper.svelte-1fmd5hv a:where(.svelte-1fmd5hv) {cursor:pointer;}.wrapper.svelte-1fmd5hv a:where(.svelte-1fmd5hv):hover {color:white !important;}.wrapper.svelte-1fmd5hv .play:where(.svelte-1fmd5hv) {position:absolute;z-index:10;top:0;height:100%;width:100%;vertical-align:middle;line-height:100%;text-align:center;display:flex;}.wrapper.svelte-1fmd5hv .play:where(.svelte-1fmd5hv):hover {background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);}.wrapper.svelte-1fmd5hv .play:where(.svelte-1fmd5hv):hover .play_container:where(.svelte-1fmd5hv) {display:flex;}.wrapper.svelte-1fmd5hv .play:where(.svelte-1fmd5hv) {align-items:center;justify-content:center;}.wrapper.svelte-1fmd5hv .play_container:where(.svelte-1fmd5hv) {display:none;align-items:center;justify-content:center;color:white;border:6px solid white;border-radius:50%;width:4rem;height:4rem;text-align:center;}.wrapper.svelte-1fmd5hv .play_symbol:where(.svelte-1fmd5hv) {text-align:center;font-size:2rem;font-weight:bold;margin:0px 0px 3px 3px;}.wrapper.svelte-1fmd5hv .caption:where(.svelte-1fmd5hv) {position:absolute;z-index:10;top:0;height:100%;width:100%;vertical-align:middle;line-height:100%;text-align:center;display:flex;align-items:center;justify-content:center;}.wrapper.svelte-1fmd5hv .caption:where(.svelte-1fmd5hv):hover {background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);}.wrapper.svelte-1fmd5hv .caption:where(.svelte-1fmd5hv):hover .caption_content:where(.svelte-1fmd5hv) {display:block;}.wrapper.svelte-1fmd5hv .caption_content:where(.svelte-1fmd5hv) {color:white;font-weight:bold;display:none;}.wrapper.svelte-1fmd5hv .video_sub:where(.svelte-1fmd5hv) {display:none;position:absolute;z-index:10;bottom:0;width:100%;}.wrapper.svelte-1fmd5hv .video_sub:where(.svelte-1fmd5hv) div:where(.svelte-1fmd5hv) {display:inline-block;color:white;}.wrapper.svelte-1fmd5hv .video_sub_time:where(.svelte-1fmd5hv) {float:right;margin-right:10px;}.wrapper.svelte-1fmd5hv .video_sub_title:where(.svelte-1fmd5hv) {margin-left:10px;}.wrapper.svelte-1fmd5hv:hover a:where(.svelte-1fmd5hv) {color:transparent;background:transparent !important;}'};function wn(e,t){Ar(t,!0),Ri(e,as);function r(m,$){t.$$host.dispatchEvent(new CustomEvent(m,{detail:$}))}let n=$t(t,"id",7,""),i=$t(t,"data"),s=$t(t,"slide",7,0),l=$t(t,"type",7,"images"),a=$t(t,"size",7,void 0);ot({});let o=pe(0),f=pe(0);const u=Ft(()=>typeof s()=="string"?Number(s()):s());di(()=>{oe(f,d(u),!0)});let v=Ft(()=>a()?a():Math.round(d(o)/250));const c=Ft(()=>{let m=i();if(typeof i()=="string")try{m=JSON.parse(i())}catch(q){return console.error("error parsing data",q),[]}if(!m)return[];const $=m.filter(q=>q.href).sort((q,ne)=>(q.index||0)-(ne.index||0));let C=0;return $.map(q=>({...q,index:C++}))}),h=Ft(()=>{if(!d(c).length)return[];const m=d(c);let $=d(f);if($>=0){$===m.length&&($=0);let C=m.slice($,$+d(v));return C.length<d(v)&&m.length>d(v)&&(C=C.concat(m.slice(0,d(v)-C.length))),C}else if($<0)return $>-d(v)?m.slice($).concat(m.slice(0,$+d(v))):$>m.length*-1?m.slice($).slice(0,d(v)):m.slice(0,d(v));return[]});function _(m){oe(f,m,!0)}var N={get id(){return n()},set id(m=""){n(m),ft()},get data(){return i()},set data(m){i(m),ft()},get slide(){return s()},set slide(m=0){s(m),ft()},get type(){return l()},set type(m="images"){l(m),ft()},get size(){return a()},set size(m=void 0){a(m),ft()}},T=qe(),re=ue(T);{var z=m=>{var $=ls(),C=x($),q=x(C);q.__click=()=>{_(d(f)-1)},Ae(q,"href",null);var ne=G(q,2);ti(ne,17,()=>d(h),Be=>Be.index,(Be,p)=>{var Et=qe(),Ht=ue(Et);{var cr=_t=>{var Qe=Wi();Qe.__click=()=>window.open(d(p).externalLink,"_blank");var xt=x(Qe),dr=G(xt,2);{var hr=K=>{var ge=Yi(),Ve=G(ue(ge),2),Me=x(Ve),X=x(Me,!0);E(Me);var S=G(Me,2);{var O=Z=>{var ie=Vi(),we=x(ie,!0);E(ie),L(()=>de(we,d(p).duration)),k(Z,ie)};j(S,Z=>{d(p).duration&&Z(O)})}E(Ve),L(()=>de(X,d(p).caption)),k(K,ge)},He=K=>{var ge=qe(),Ve=ue(ge);{var Me=X=>{var S=Ui(),O=x(S),Z=x(O,!0);E(O),E(S),L(()=>de(Z,d(p).caption)),k(X,S)};j(Ve,X=>{d(p).caption&&X(Me)},!0)}k(K,ge)};j(dr,K=>{l()==="videos"?K(hr):K(He,!1)})}E(Qe),L(()=>{Ae(xt,"src",d(p).href),Ae(xt,"alt",d(p).caption)}),k(_t,Qe)},vr=_t=>{var Qe=qe(),xt=ue(Qe);{var dr=He=>{var K=Xi();K.__click=()=>{d(p).link&&(window.location.href=d(p).link)};var ge=x(K),Ve=G(ge,2);{var Me=S=>{var O=Ji(),Z=G(ue(O),2),ie=x(Z),we=x(ie,!0);E(ie);var R=G(ie,2);{var B=Y=>{var U=Gi(),se=x(U,!0);E(U),L(()=>de(se,d(p).duration)),k(Y,U)};j(R,Y=>{d(p).duration&&Y(B)})}E(Z),L(()=>de(we,d(p).caption)),k(S,O)},X=S=>{var O=qe(),Z=ue(O);{var ie=we=>{var R=Ki(),B=x(R),Y=x(B,!0);E(B),E(R),L(()=>de(Y,d(p).caption)),k(we,R)};j(Z,we=>{d(p).caption&&we(ie)},!0)}k(S,O)};j(Ve,S=>{l()==="videos"?S(Me):S(X,!1)})}E(K),L(()=>{Ae(ge,"src",d(p).href),Ae(ge,"alt",d(p).caption)}),k(He,K)},hr=He=>{var K=qe(),ge=ue(K);{var Ve=X=>{var S=ts();S.__click=()=>r("slideClick",{key:d(p).key});var O=x(S),Z=G(O,2);{var ie=R=>{var B=Qi(),Y=G(ue(B),2),U=x(Y),se=x(U,!0);E(U);var ye=G(U,2);{var Pe=be=>{var et=Zi(),_r=x(et,!0);E(et),L(()=>de(_r,d(p).duration)),k(be,et)};j(ye,be=>{d(p).duration&&be(Pe)})}E(Y),L(()=>de(se,d(p).caption)),k(R,B)},we=R=>{var B=qe(),Y=ue(B);{var U=se=>{var ye=es(),Pe=x(ye),be=x(Pe,!0);E(Pe),E(ye),L(()=>de(be,d(p).caption)),k(se,ye)};j(Y,se=>{d(p).caption&&se(U)},!0)}k(R,B)};j(Z,R=>{l()==="videos"?R(ie):R(we,!1)})}E(S),L(()=>{Ae(O,"src",d(p).href),Ae(O,"alt",d(p).caption)}),k(X,S)},Me=X=>{var S=ss(),O=x(S),Z=G(O,2);{var ie=R=>{var B=ns(),Y=G(ue(B),2),U=x(Y),se=x(U,!0);E(U);var ye=G(U,2);{var Pe=be=>{var et=rs(),_r=x(et,!0);E(et),L(()=>de(_r,d(p).duration)),k(be,et)};j(ye,be=>{d(p).duration&&be(Pe)})}E(Y),L(()=>de(se,d(p).caption)),k(R,B)},we=R=>{var B=qe(),Y=ue(B);{var U=se=>{var ye=is(),Pe=x(ye),be=x(Pe,!0);E(Pe),E(ye),L(()=>de(be,d(p).caption)),k(se,ye)};j(Y,se=>{d(p).caption&&se(U)},!0)}k(R,B)};j(Z,R=>{l()==="videos"?R(ie):R(we,!1)})}E(S),L(()=>{Ae(O,"src",d(p).href),Ae(O,"alt",d(p).caption)}),k(X,S)};j(ge,X=>{d(p).key?X(Ve):X(Me,!1)},!0)}k(He,K)};j(xt,He=>{d(p).link?He(dr):He(hr,!1)},!0)}k(_t,Qe)};j(Ht,_t=>{d(p).externalLink?_t(cr):_t(vr,!1)})}k(Be,Et)});var ht=G(ne,2);ht.__click=()=>{_(d(f)+1)},Ae(ht,"href",null),E(C),E($),L(()=>Di(C,`grid-template-columns: repeat(${d(v)??""}, auto);`)),k(m,$)};j(re,m=>{d(h)?.length&&m(z)})}return Ii("innerWidth",m=>oe(o,m,!0)),k(e,T),Cr(N)}xi(["click"]),customElements.define("hb-site-slideshow-horizontal",Bi(wn,{id:{},data:{},slide:{},type:{},size:{}},[],[],!0)),pr.Component=wn,Object.defineProperty(pr,Symbol.toStringTag,{value:"Module"})})(this["site-slideshow-horizontal"]=this["site-slideshow-horizontal"]||{});
1
+ (function(pr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const yn=1,bn=2,$n=16,En=1,xn=2,mr="[",kt="[!",Vt="]",tt={},P=Symbol(),kn="http://www.w3.org/1999/xhtml",Yt=!1;var gr=Array.isArray,Tn=Array.prototype.indexOf,Ut=Array.from,Tt=Object.keys,At=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,An=Object.getOwnPropertyDescriptors,Cn=Object.prototype,Sn=Array.prototype,wr=Object.getPrototypeOf,yr=Object.isExtensible;function Nn(e){for(var t=0;t<e.length;t++)e[t]()}function br(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const D=2,Wt=4,Gt=8,Ce=16,Se=32,Fe=64,Ct=128,he=512,F=1024,W=2048,Ne=4096,Q=8192,Re=16384,St=32768,nt=65536,$r=1<<17,Er=1<<18,Ye=1<<19,Rn=1<<20,Ue=32768,Jt=1<<21,Kt=1<<22,Ie=1<<23,Xt=Symbol("$state"),On=Symbol("legacy props"),Dn=Symbol(""),it=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Zt=3,st=8;function Ln(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Mn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function In(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function zn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Bn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Hn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Nt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Vn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let b=!1;function Oe(e){b=e}let y;function ee(e){if(e===null)throw Nt(),tt;return y=e}function Rt(){return ee(Ee(y))}function E(e){if(b){if(Ee(y)!==null)throw Nt(),tt;y=e}}function Yn(e=1){if(b){for(var t=e,r=y;t--;)r=Ee(r);y=r}}function Ot(e=!0){for(var t=0,r=y;;){if(r.nodeType===st){var n=r.data;if(n===Vt){if(t===0)return r;t-=1}else(n===mr||n===kt)&&(t+=1)}var i=Ee(r);e&&r.remove(),r=i}}function xr(e){if(!e||e.nodeType!==st)throw Nt(),tt;return e.data}function kr(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 Tr(e){return!Un(e,this.v)}let Wn=!1,le=null;function lt(e){le=e}function Ar(e,t=!1,r){le={p:le,i:!1,c:null,e:null,s:e,x:null,l:null}}function Cr(e){var t=le,r=t.e;if(r!==null){t.e=null;for(var n of r)Gr(n)}return e!==void 0&&(t.x=e),t.i=!0,le=t.p,e??{}}function Sr(){return!0}let We=[];function Nr(){var e=We;We=[],Nn(e)}function Qt(e){if(We.length===0&&!_t){var t=We;queueMicrotask(()=>{t===We&&Nr()})}We.push(e)}function Gn(){for(;We.length>0;)Nr()}function Rr(e){var t=w;if(t===null)return g.f|=Ie,e;if((t.f&St)===0){if((t.f&Ct)===0)throw e;t.b.error(e)}else at(e,t)}function at(e,t){for(;t!==null;){if((t.f&Ct)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Dt=new Set;let A=null,ae=null,fe=[],Lt=null,er=!1,_t=!1;class _e{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#f=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){fe=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#l(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):(A=null,Dr(r.render_effects),Dr(r.effects),this.#f?.resolve()),ae=null}#l(t,r){t.f^=F;for(var n=t.first;n!==null;){var i=n.f,s=(i&(Se|Fe))!==0,l=s&&(i&F)!==0,a=l||(i&Q)!==0||this.skipped_effects.has(n);if((n.f&Ct)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){s?n.f^=F:(i&Wt)!==0?r.effects.push(n):yt(n)&&((n.f&Ce)!==0&&r.block_effects.push(n),bt(n));var o=n.first;if(o!==null){n=o;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#a(t){for(const r of t)((r.f&W)!==0?this.#s:this.#i).push(r),this.#o(r.deps),I(r,F)}#o(t){if(t!==null)for(const r of t)(r.f&D)===0||(r.f&Ue)===0||(r.f^=Ue,this.#o(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ie)===0&&(this.current.set(t,t.v),ae?.set(t,t.v))}activate(){A=this,this.apply()}deactivate(){A===this&&(A=null,ae=null)}flush(){if(this.activate(),fe.length>0){if(Or(),A!==null&&A!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Dt.size>1){this.previous.clear();var t=ae,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Dt){if(s===this){r=!1;continue}const l=[];for(const[o,f]of this.current){if(s.current.has(o))if(r&&f!==s.current.get(o))s.current.set(o,f);else continue;l.push(o)}if(l.length===0)continue;const a=[...s.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){var i=fe;fe=[];const o=new Set,f=new Map;for(const u of l)Lr(u,a,o,f);if(fe.length>0){A=s,s.apply();for(const u of fe)s.#l(u,n);s.deactivate()}fe=i}}A=null,ae=t}this.committed=!0,Dt.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)I(t,W),Ge(t);for(const t of this.#i)I(t,Ne),Ge(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=br()).promise}static ensure(){if(A===null){const t=A=new _e;Dt.add(A),_t||_e.enqueue(()=>{A===t&&t.flush()})}return A}static enqueue(t){Qt(t)}apply(){}}function ft(e){var t=_t;_t=!0;try{for(var r;;){if(Gn(),fe.length===0&&(A?.flush(),fe.length===0))return Lt=null,r;Or()}}finally{_t=t}}function Or(){var e=ze;er=!0;var t=null;try{var r=0;for(jt(!0);fe.length>0;){var n=_e.ensure();if(r++>1e3){var i,s;Jn()}n.process(fe),je.clear()}}finally{er=!1,jt(e),Lt=null}}function Jn(){try{In()}catch(e){at(e,Lt)}}let De=null;function Dr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Re|Q))===0&&yt(n)&&(De=new Set,bt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Zr(n):n.fn=null),De?.size>0)){je.clear();for(const i of De){if((i.f&(Re|Q))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)De.has(l)&&(De.delete(l),s.push(l)),l=l.parent;for(let a=s.length-1;a>=0;a--){const o=s[a];(o.f&(Re|Q))===0&&bt(o)}}De.clear()}}De=null}}function Lr(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&D)!==0?Lr(i,t,r,n):(s&(Kt|Ce))!==0&&(s&W)===0&&Mr(i,t,n)&&(I(i,W),Ge(i))}}function Mr(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&D)!==0&&Mr(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Ge(e){for(var t=Lt=e;t.parent!==null;){t=t.parent;var r=t.f;if(er&&t===w&&(r&Ce)!==0&&(r&Er)===0)return;if((r&(Fe|Se))!==0){if((r&F)===0)return;t.f^=F}}fe.push(t)}function Kn(e){let t=0,r=Je(0),n;return()=>{It()&&(d(r),Jr(()=>(t===0&&(n=$i(()=>e(()=>mt(r)))),t+=1,()=>{Qt(()=>{t-=1,t===0&&(n?.(),n=void 0,mt(r))})})))}}var Xn=nt|Ye|Ct;function Zn(e,t,r){new Qn(e,t,r)}class Qn{parent;#t=!1;#e;#r=b?y:null;#n;#f;#s;#i=null;#l=null;#a=null;#o=null;#u=null;#c=0;#v=0;#h=!1;#d=null;#w=Kn(()=>(this.#d=Je(this.#c),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#f=n,this.parent=w.b,this.#t=!!this.#n.pending,this.#s=lr(()=>{if(w.b=this,b){const s=this.#r;Rt(),s.nodeType===st&&s.data===kt?this.#b():this.#y()}else{var i=this.#m();try{this.#i=ce(()=>n(i))}catch(s){this.error(s)}this.#v>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},Xn),b&&(this.#e=y)}#y(){try{this.#i=ce(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#b(){const t=this.#n.pending;t&&(this.#l=ce(()=>t(this.#e)),_e.enqueue(()=>{var r=this.#m();this.#i=this.#_(()=>(_e.ensure(),ce(()=>this.#f(r)))),this.#v>0?this.#p():(ut(this.#l,()=>{this.#l=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#u=pe(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=w,n=g,i=le;Te(this.#s),J(this.#s),lt(this.#s.ctx);try{return t()}catch(s){return Rr(s),null}finally{Te(r),J(n),lt(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),tn(this.#i,this.#o)),this.#l===null&&(this.#l=ce(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#v+=t,this.#v===0&&(this.#t=!1,this.#l&&ut(this.#l,()=>{this.#l=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#d&&pt(this.#d,this.#c)}get_effect_pending(){return this.#w(),d(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#i&&(H(this.#i),this.#i=null),this.#l&&(H(this.#l),this.#l=null),this.#a&&(H(this.#a),this.#a=null),b&&(ee(this.#r),Yn(),ee(Ot()));var i=!1,s=!1;const l=()=>{if(i){Vn();return}i=!0,s&&Hn(),_e.ensure(),this.#c=0,this.#a!==null&&ut(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#h=!1,ce(()=>this.#f(this.#e)))),this.#v>0?this.#p():this.#t=!1};var a=g;try{J(null),s=!0,r?.(t,l),s=!1}catch(o){at(o,this.#s&&this.#s.parent)}finally{J(a)}n&&Qt(()=>{this.#a=this.#_(()=>{_e.ensure(),this.#h=!0;try{return ce(()=>{n(this.#e,()=>t,()=>l)})}catch(o){return at(o,this.#s.parent),null}finally{this.#h=!1}})})}}function ei(e,t,r){for(var n=[],i=t.length,s=0;s<i;s++)ar(t[s].e,n,!0);Qr(n,()=>{var l=n.length===0&&r!==null;if(l){var a=r,o=a.parentNode;Yr(o),o.append(a),e.items.clear(),be(e,t[0].prev,t[i-1].next)}for(var f=0;f<i;f++){var u=t[f];l||(e.items.delete(u.k),be(e,u.prev,u.next)),H(u.e,!l)}e.first===t[0]&&(e.first=t[0].prev)})}function ti(e,t,r,n,i,s=null){var l=e,a=new Map,o=null;b&&Rt();var f=null,u=ai(()=>{var T=r();return gr(T)?T:T==null?[]:Ut(T)}),v,c=!0;function h(){ri(N,v,l,t,n),f!==null&&(v.length===0?(f.fragment?(l.before(f.fragment),f.fragment=null):fr(f.effect),_.first=f.effect):ut(f.effect,()=>{f=null}))}var _=lr(()=>{v=d(u);var T=v.length;let re=!1;if(b){var z=xr(l)===kt;z!==(T===0)&&(l=Ot(),ee(l),Oe(!1),re=!0)}for(var m=new Set,$=A,C=null,q=Ur(),ne=0;ne<T;ne+=1){b&&y.nodeType===st&&y.data===Vt&&(l=y,re=!0,Oe(!1));var dt=v[ne],Be=n(dt,ne),p=c?null:a.get(Be);p?(pt(p.v,dt),p.i=ne,q&&$.skipped_effects.delete(p.e)):(p=ni(c?l:null,C,dt,Be,ne,i,t,r),c&&(p.o=!0,C===null?o=p:C.next=p,C=p),a.set(Be,p)),m.add(Be)}if(T===0&&s&&!f)if(c)f={fragment:null,effect:ce(()=>s(l))};else{var Et=document.createDocumentFragment(),Ht=pe();Et.append(Ht),f={fragment:Et,effect:ce(()=>s(Ht))}}if(b&&T>0&&ee(Ot()),!c)if(q){for(const[cr,vr]of a)m.has(cr)||$.skipped_effects.add(vr.e);$.oncommit(h),$.ondiscard(()=>{})}else h();re&&Oe(!0),d(u)}),N={effect:_,items:a,first:o};c=!1,b&&(l=y)}function ri(e,t,r,n,i){var s=t.length,l=e.items,a=e.first,o,f=null,u=[],v=[],c,h,_,N;for(N=0;N<s;N+=1){if(c=t[N],h=i(c,N),_=l.get(h),e.first??=_,!_.o){_.o=!0;var T=f?f.next:a;be(e,f,_),be(e,_,T),tr(_,T,r),f=_,u=[],v=[],a=f.next;continue}if((_.e.f&Q)!==0&&fr(_.e),_!==a){if(o!==void 0&&o.has(_)){if(u.length<v.length){var re=v[0],z;f=re.prev;var m=u[0],$=u[u.length-1];for(z=0;z<u.length;z+=1)tr(u[z],re,r);for(z=0;z<v.length;z+=1)o.delete(v[z]);be(e,m.prev,$.next),be(e,f,m),be(e,$,re),a=re,f=$,N-=1,u=[],v=[]}else o.delete(_),tr(_,a,r),be(e,_.prev,_.next),be(e,_,f===null?e.first:f.next),be(e,f,_),f=_;continue}for(u=[],v=[];a!==null&&a.k!==h;)(a.e.f&Q)===0&&(o??=new Set).add(a),v.push(a),a=a.next;if(a===null)continue;_=a}u.push(_),f=_,a=_.next}if(a!==null||o!==void 0){for(var C=o===void 0?[]:Ut(o);a!==null;)(a.e.f&Q)===0&&C.push(a),a=a.next;var q=C.length;if(q>0){var ne=null;ei(e,C,ne)}}}function ni(e,t,r,n,i,s,l,a){var o=(l&yn)!==0,f=(l&$n)===0,u=o?f?jr(r,!1,!1):Je(r):r,v=(l&bn)===0?i:Je(i),c={i:v,v:u,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var h=document.createDocumentFragment();h.append(e=pe())}return c.e=ce(()=>s(e,u,v,a)),t!==null&&(t.next=c),c}finally{}}function tr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var l=Ee(s);i.before(s),s=l}}function be(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r===null?e.effect.last=t&&t.e:(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function ii(e,t,r,n){const i=Pt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=A,l=w,a=si();function o(){Promise.all(r.map(f=>li(f))).then(f=>{a();try{n([...t.map(i),...f])}catch(u){(l.f&Re)===0&&at(u,l)}s?.deactivate(),Mt()}).catch(f=>{at(f,l)})}e.length>0?Promise.all(e).then(()=>{a();try{return o()}finally{s?.deactivate(),Mt()}}):o()}function si(){var e=w,t=g,r=le,n=A;return function(s=!0){Te(e),J(t),lt(r),s&&n?.activate()}}function Mt(){Te(null),J(null),lt(null)}function Pt(e){var t=D|W,r=g!==null&&(g.f&D)!==0?g:null;return w!==null&&(w.f|=Ye),{ctx:le,deps:null,effects:null,equals:kr,f:t,fn:e,reactions:null,rv:0,v:P,wv:0,parent:r??w,ac:null}}function li(e,t){let r=w;r===null&&Ln();var n=r.b,i=void 0,s=Je(P),l=!g,a=new Map;return mi(()=>{var o=br();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===A&&f.committed&&f.deactivate(),Mt()})}catch(c){o.reject(c),Mt()}var f=A;if(l){var u=!n.is_pending();n.update_pending_count(1),f.increment(u),a.get(f)?.reject(it),a.delete(f),a.set(f,o)}const v=(c,h=void 0)=>{if(f.activate(),h)h!==it&&(s.f|=Ie,pt(s,h));else{(s.f&Ie)!==0&&(s.f^=Ie),pt(s,c);for(const[_,N]of a){if(a.delete(_),_===f)break;N.reject(it)}}l&&(n.update_pending_count(-1),f.decrement(u))};o.promise.then(v,c=>v(null,c||"unknown"))}),Wr(()=>{for(const o of a.values())o.reject(it)}),new Promise(o=>{function f(u){function v(){u===i?o(s):f(i)}u.then(v,v)}f(i)})}function Ft(e){const t=Pt(e);return nn(t),t}function ai(e){const t=Pt(e);return t.equals=Tr,t}function Pr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)H(t[r])}}function fi(e){for(var t=e.parent;t!==null;){if((t.f&D)===0)return(t.f&Re)===0?t:null;t=t.parent}return null}function rr(e){var t,r=w;Te(fi(e));try{e.f&=~Ue,Pr(e),t=on(e)}finally{Te(r)}return t}function Fr(e){var t=rr(e);if(e.equals(t)||(A?.is_fork||(e.v=t),e.wv=an()),!Ke)if(ae!==null)It()&&ae.set(e,t);else{var r=(e.f&he)===0?Ne:F;I(e,r)}}let nr=new Set;const je=new Map;let Ir=!1;function Je(e,t){var r={f:0,v:e,reactions:null,equals:kr,rv:0,wv:0};return r}function $e(e,t){const r=Je(e);return nn(r),r}function jr(e,t=!1,r=!0){const n=Je(e);return t||(n.equals=Tr),n}function oe(e,t,r=!1){g!==null&&(!ke||(g.f&$r)!==0)&&Sr()&&(g.f&(D|Ce|Kt|$r))!==0&&!Le?.includes(e)&&Bn();let n=r?gt(t):t;return pt(e,n)}function pt(e,t){if(!e.equals(t)){var r=e.v;Ke?je.set(e,t):je.set(e,r),e.v=t;var n=_e.ensure();n.capture(e,r),(e.f&D)!==0&&((e.f&W)!==0&&rr(e),I(e,(e.f&he)!==0?F:Ne)),e.wv=an(),zr(e,W),w!==null&&(w.f&F)!==0&&(w.f&(Se|Fe))===0&&(ve===null?yi([e]):ve.push(e)),!n.is_fork&&nr.size>0&&!Ir&&oi()}return t}function oi(){Ir=!1;var e=ze;jt(!0);const t=Array.from(nr);try{for(const r of t)(r.f&F)!==0&&I(r,Ne),yt(r)&&bt(r)}finally{jt(e)}nr.clear()}function mt(e){oe(e,e.v+1)}function zr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],l=s.f,a=(l&W)===0;if(a&&I(s,t),(l&D)!==0){var o=s;ae?.delete(o),(l&Ue)===0&&(l&he&&(s.f|=Ue),zr(o,Ne))}else a&&((l&Ce)!==0&&De!==null&&De.add(s),Ge(s))}}function gt(e){if(typeof e!="object"||e===null||Xt in e)return e;const t=wr(e);if(t!==Cn&&t!==Sn)return e;var r=new Map,n=gr(e),i=$e(0),s=Xe,l=a=>{if(Xe===s)return a();var o=g,f=Xe;J(null),ln(s);var u=a();return J(o),ln(f),u};return n&&r.set("length",$e(e.length)),new Proxy(e,{defineProperty(a,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&zn();var u=r.get(o);return u===void 0?u=l(()=>{var v=$e(f.value);return r.set(o,v),v}):oe(u,f.value,!0),!0},deleteProperty(a,o){var f=r.get(o);if(f===void 0){if(o in a){const u=l(()=>$e(P));r.set(o,u),mt(i)}}else oe(f,P),mt(i);return!0},get(a,o,f){if(o===Xt)return e;var u=r.get(o),v=o in a;if(u===void 0&&(!v||rt(a,o)?.writable)&&(u=l(()=>{var h=gt(v?a[o]:P),_=$e(h);return _}),r.set(o,u)),u!==void 0){var c=d(u);return c===P?void 0:c}return Reflect.get(a,o,f)},getOwnPropertyDescriptor(a,o){var f=Reflect.getOwnPropertyDescriptor(a,o);if(f&&"value"in f){var u=r.get(o);u&&(f.value=d(u))}else if(f===void 0){var v=r.get(o),c=v?.v;if(v!==void 0&&c!==P)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,o){if(o===Xt)return!0;var f=r.get(o),u=f!==void 0&&f.v!==P||Reflect.has(a,o);if(f!==void 0||w!==null&&(!u||rt(a,o)?.writable)){f===void 0&&(f=l(()=>{var c=u?gt(a[o]):P,h=$e(c);return h}),r.set(o,f));var v=d(f);if(v===P)return!1}return u},set(a,o,f,u){var v=r.get(o),c=o in a;if(n&&o==="length")for(var h=f;h<v.v;h+=1){var _=r.get(h+"");_!==void 0?oe(_,P):h in a&&(_=l(()=>$e(P)),r.set(h+"",_))}if(v===void 0)(!c||rt(a,o)?.writable)&&(v=l(()=>$e(void 0)),oe(v,gt(f)),r.set(o,v));else{c=v.v!==P;var N=l(()=>gt(f));oe(v,N)}var T=Reflect.getOwnPropertyDescriptor(a,o);if(T?.set&&T.set.call(u,f),!c){if(n&&typeof o=="string"){var re=r.get("length"),z=Number(o);Number.isInteger(z)&&z>=re.v&&oe(re,z+1)}mt(i)}return!0},ownKeys(a){d(i);var o=Reflect.ownKeys(a).filter(v=>{var c=r.get(v);return c===void 0||c.v!==P});for(var[f,u]of r)u.v!==P&&!(f in a)&&o.push(f);return o},setPrototypeOf(){qn()}})}var qr,Br,Hr,Vr;function ir(){if(qr===void 0){qr=window,Br=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Hr=rt(t,"firstChild").get,Vr=rt(t,"nextSibling").get,yr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yr(r)&&(r.__t=void 0)}}function pe(e=""){return document.createTextNode(e)}function ot(e){return Hr.call(e)}function Ee(e){return Vr.call(e)}function x(e,t){if(!b)return ot(e);var r=ot(y);if(r===null)r=y.appendChild(pe());else if(t&&r.nodeType!==Zt){var n=pe();return r?.before(n),ee(n),n}return ee(r),r}function ue(e,t=!1){if(!b){var r=ot(e);return r instanceof Comment&&r.data===""?Ee(r):r}if(t&&y?.nodeType!==Zt){var n=pe();return y?.before(n),ee(n),n}return y}function G(e,t=1,r=!1){let n=b?y:e;for(var i;t--;)i=n,n=Ee(n);if(!b)return n;if(r&&n?.nodeType!==Zt){var s=pe();return n===null?i?.after(s):n.before(s),ee(s),s}return ee(n),n}function Yr(e){e.textContent=""}function Ur(){return!1}function ui(e,t,r,n=!0){n&&r();for(var i of t)e.addEventListener(i,r);Wr(()=>{for(var s of t)e.removeEventListener(s,r)})}function sr(e){var t=g,r=w;J(null),Te(null);try{return e()}finally{J(t),Te(r)}}function ci(e){w===null&&(g===null&&Fn(),Pn()),Ke&&Mn()}function vi(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function xe(e,t,r){var n=w;n!==null&&(n.f&Q)!==0&&(e|=Q);var i={ctx:le,deps:null,nodes_start:null,nodes_end:null,f:e|W|he,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{bt(i),i.f|=St}catch(a){throw H(i),a}else t!==null&&Ge(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Ye)===0&&(s=s.first,(e&Ce)!==0&&(e&nt)!==0&&s!==null&&(s.f|=nt)),s!==null&&(s.parent=n,n!==null&&vi(s,n),g!==null&&(g.f&D)!==0&&(e&Fe)===0)){var l=g;(l.effects??=[]).push(s)}return i}function It(){return g!==null&&!ke}function Wr(e){const t=xe(Gt,null,!1);return I(t,F),t.teardown=e,t}function di(e){ci();var t=w.f,r=!g&&(t&Se)!==0&&(t&St)===0;if(r){var n=le;(n.e??=[]).push(e)}else return Gr(e)}function Gr(e){return xe(Wt|Rn,e,!1)}function hi(e){_e.ensure();const t=xe(Fe|Ye,e,!0);return()=>{H(t)}}function _i(e){_e.ensure();const t=xe(Fe|Ye,e,!0);return(r={})=>new Promise(n=>{r.outro?ut(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function pi(e){return xe(Wt,e,!1)}function mi(e){return xe(Kt|Ye,e,!0)}function Jr(e,t=0){return xe(Gt|t,e,!0)}function L(e,t=[],r=[],n=[]){ii(n,t,r,i=>{xe(Gt,()=>e(...i.map(d)),!0)})}function lr(e,t=0){var r=xe(Ce|t,e,!0);return r}function ce(e){return xe(Se|Ye,e,!0)}function Kr(e){var t=e.teardown;if(t!==null){const r=Ke,n=g;rn(!0),J(null);try{t.call(null)}finally{rn(r),J(n)}}}function Xr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&sr(()=>{i.abort(it)});var n=r.next;(r.f&Fe)!==0?r.parent=null:H(r,t),r=n}}function gi(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Se)===0&&H(t),t=r}}function H(e,t=!0){var r=!1;(t||(e.f&Er)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(wi(e.nodes_start,e.nodes_end),r=!0),Xr(e,t&&!r),zt(e,0),I(e,Re);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Kr(e);var i=e.parent;i!==null&&i.first!==null&&Zr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function wi(e,t){for(;e!==null;){var r=e===t?null:Ee(e);e.remove(),e=r}}function Zr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function ut(e,t,r=!0){var n=[];ar(e,n,!0),Qr(n,()=>{r&&H(e),t&&t()})}function Qr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ar(e,t,r){if((e.f&Q)===0){if(e.f^=Q,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&nt)!==0||(n.f&Se)!==0&&(e.f&Ce)!==0;ar(n,t,s?r:!1),n=i}}}function fr(e){en(e,!0)}function en(e,t){if((e.f&Q)!==0){e.f^=Q,(e.f&F)===0&&(I(e,W),Ge(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&nt)!==0||(r.f&Se)!==0;en(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function tn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:Ee(r);t.append(r),r=i}}let ze=!1;function jt(e){ze=e}let Ke=!1;function rn(e){Ke=e}let g=null,ke=!1;function J(e){g=e}let w=null;function Te(e){w=e}let Le=null;function nn(e){g!==null&&(Le===null?Le=[e]:Le.push(e))}let V=null,te=0,ve=null;function yi(e){ve=e}let sn=1,wt=0,Xe=wt;function ln(e){Xe=e}function an(){return++sn}function yt(e){var t=e.f;if((t&W)!==0)return!0;if(t&D&&(e.f&=~Ue),(t&Ne)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(yt(s)&&Fr(s),s.wv>e.wv)return!0}(t&he)!==0&&ae===null&&I(e,F)}return!1}function fn(e,t,r=!0){var n=e.reactions;if(n!==null&&!Le?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&D)!==0?fn(s,t,!1):t===s&&(r?I(s,W):(s.f&F)!==0&&I(s,Ne),Ge(s))}}function on(e){var t=V,r=te,n=ve,i=g,s=Le,l=le,a=ke,o=Xe,f=e.f;V=null,te=0,ve=null,g=(f&(Se|Fe))===0?e:null,Le=null,lt(e.ctx),ke=!1,Xe=++wt,e.ac!==null&&(sr(()=>{e.ac.abort(it)}),e.ac=null);try{e.f|=Jt;var u=e.fn,v=u(),c=e.deps;if(V!==null){var h;if(zt(e,te),c!==null&&te>0)for(c.length=te+V.length,h=0;h<V.length;h++)c[te+h]=V[h];else e.deps=c=V;if(ze&&It()&&(e.f&he)!==0)for(h=te;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&te<c.length&&(zt(e,te),c.length=te);if(Sr()&&ve!==null&&!ke&&c!==null&&(e.f&(D|Ne|W))===0)for(h=0;h<ve.length;h++)fn(ve[h],e);return i!==null&&i!==e&&(wt++,ve!==null&&(n===null?n=ve:n.push(...ve))),(e.f&Ie)!==0&&(e.f^=Ie),v}catch(_){return Rr(_)}finally{e.f^=Jt,V=t,te=r,ve=n,g=i,Le=s,lt(l),ke=a,Xe=o}}function bi(e,t){let r=t.reactions;if(r!==null){var n=Tn.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&D)!==0&&(V===null||!V.includes(t))&&(I(t,Ne),(t.f&he)!==0&&(t.f^=he,t.f&=~Ue),Pr(t),zt(t,0))}function zt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)bi(e,r[n])}function bt(e){var t=e.f;if((t&Re)===0){I(e,F);var r=w,n=ze;w=e,ze=!0;try{(t&Ce)!==0?gi(e):Xr(e),Kr(e);var i=on(e);e.teardown=typeof i=="function"?i:null,e.wv=sn;var s;Yt&&Wn&&(e.f&W)!==0&&e.deps}finally{ze=n,w=r}}}function d(e){var t=e.f,r=(t&D)!==0;if(g!==null&&!ke){var n=w!==null&&(w.f&Re)!==0;if(!n&&!Le?.includes(e)){var i=g.deps;if((g.f&Jt)!==0)e.rv<wt&&(e.rv=wt,V===null&&i!==null&&i[te]===e?te++:V===null?V=[e]:V.includes(e)||V.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:s.includes(g)||s.push(g)}}}if(Ke){if(je.has(e))return je.get(e);if(r){var l=e,a=l.v;return((l.f&F)===0&&l.reactions!==null||cn(l))&&(a=rr(l)),je.set(l,a),a}}else r&&!ae?.has(e)&&(l=e,yt(l)&&Fr(l),ze&&It()&&(l.f&he)===0&&un(l));if(ae?.has(e))return ae.get(e);if((e.f&Ie)!==0)throw e.v;return e.v}function un(e){if(e.deps!==null){e.f^=he;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&D)!==0&&(t.f&he)===0&&un(t)}}function cn(e){if(e.v===P)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(je.has(t)||(t.f&D)!==0&&cn(t))return!0;return!1}function $i(e){var t=ke;try{return ke=!0,e()}finally{ke=t}}const Ei=-7169;function I(e,t){e.f=e.f&Ei|t}const vn=new Set,or=new Set;function xi(e){for(var t=0;t<e.length;t++)vn.add(e[t]);for(var r of or)r(e)}let dn=null;function qt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;dn=e;var l=0,a=dn===e&&e.__root;if(a){var o=i.indexOf(a);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(l=o)}if(s=i[l]||e.target,s!==t){At(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=g,v=w;J(null),Te(null);try{for(var c,h=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var N=s["__"+n];N!=null&&(!s.disabled||e.target===s)&&N.call(s,e)}catch(T){c?h.push(T):c=T}if(e.cancelBubble||_===t||_===null)break;s=_}if(c){for(let T of h)queueMicrotask(()=>{throw T});throw c}}finally{e.__root=t,delete e.currentTarget,J(u),Te(v)}}}function ki(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ct(e,t){var r=w;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function M(e,t){var r=(t&En)!==0,n=(t&xn)!==0,i,s=!e.startsWith("<!>");return()=>{if(b)return ct(y,null),y;i===void 0&&(i=ki(s?e:"<!>"+e),r||(i=ot(i)));var l=n||Br?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=ot(l),o=l.lastChild;ct(a,o)}else ct(l,l);return l}}function qe(){if(b)return ct(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),r=pe();return e.append(t,r),ct(t,r),e}function k(e,t){if(b){var r=w;((r.f&St)===0||r.nodes_end===null)&&(r.nodes_end=y),Rt();return}e!==null&&e.before(t)}const Ti=["touchstart","touchmove"];function Ai(e){return Ti.includes(e)}function de(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function hn(e,t){return _n(e,t)}function Ci(e,t){ir(),t.intro=t.intro??!1;const r=t.target,n=b,i=y;try{for(var s=ot(r);s&&(s.nodeType!==st||s.data!==mr);)s=Ee(s);if(!s)throw tt;Oe(!0),ee(s);const l=_n(e,{...t,anchor:s});return Oe(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==tt&&console.warn("Failed to hydrate: ",l),t.recover===!1&&jn(),ir(),Yr(r),Oe(!1),hn(e,t)}finally{Oe(n),ee(i)}}const vt=new Map;function _n(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:l=!0}){ir();var a=new Set,o=v=>{for(var c=0;c<v.length;c++){var h=v[c];if(!a.has(h)){a.add(h);var _=Ai(h);t.addEventListener(h,qt,{passive:_});var N=vt.get(h);N===void 0?(document.addEventListener(h,qt,{passive:_}),vt.set(h,1)):vt.set(h,N+1)}}};o(Ut(vn)),or.add(o);var f=void 0,u=_i(()=>{var v=r??t.appendChild(pe());return Zn(v,{pending:()=>{}},c=>{if(s){Ar({});var h=le;h.c=s}if(i&&(n.$$events=i),b&&ct(c,null),f=e(c,n)||{},b&&(w.nodes_end=y,y===null||y.nodeType!==st||y.data!==Vt))throw Nt(),tt;s&&Cr()}),()=>{for(var c of a){t.removeEventListener(c,qt);var h=vt.get(c);--h===0?(document.removeEventListener(c,qt),vt.delete(c)):vt.set(c,h)}or.delete(o),v!==r&&v.parentNode?.removeChild(v)}});return ur.set(f,u),f}let ur=new WeakMap;function Si(e,t){const r=ur.get(e);return r?(ur.delete(e),r(t)):Promise.resolve()}class Ni{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#f=!0;constructor(t,r=!0){this.anchor=t,this.#f=r}#s=()=>{var t=A;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)fr(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,l]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#r.get(l);a&&(H(a.effect),this.#r.delete(l))}for(const[s,l]of this.#e){if(s===r||this.#n.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();tn(l,f),f.append(pe()),this.#r.set(s,{effect:l,fragment:f})}else H(l);this.#n.delete(s),this.#e.delete(s)};this.#f||!n?(this.#n.add(s),ut(l,a,!1)):a()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(H(i.effect),this.#r.delete(n))};ensure(t,r){var n=A,i=Ur();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),l=pe();s.append(l),this.#r.set(t,{effect:ce(()=>r(l)),fragment:s})}else this.#e.set(t,ce(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,o]of this.#e)a===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[a,o]of this.#r)a===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else b&&(this.anchor=y),this.#s()}}function j(e,t,r=!1){b&&Rt();var n=new Ni(e),i=r?nt:0;function s(l,a){if(b){const f=xr(e)===kt;if(l===f){var o=Ot();ee(o),n.anchor=o,Oe(!1),n.ensure(l,a),Oe(!0);return}}n.ensure(l,a)}lr(()=>{var l=!1;t((a,o=!0)=>{l=!0,s(o,a)}),l||s(!1,null)},i)}function Ri(e,t){pi(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Oi(e,t){return e==null?null:String(e)}function Di(e,t,r,n){var i=e.__style;if(b||i!==t){var s=Oi(t);(!b||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Li=Symbol("is custom element"),Mi=Symbol("is html");function Ae(e,t,r,n){var i=Pi(e);b&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Dn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Fi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Pi(e){return e.__attributes??={[Li]:e.nodeName.includes("-"),[Mi]:e.namespaceURI===kn}}var pn=new Map;function Fi(e){var t=e.getAttribute("is")||e.nodeName,r=pn.get(t);if(r)return r;pn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=An(i);for(var l in n)n[l].set&&r.push(l);i=wr(i)}return r}function Ii(e,t){ui(window,["resize"],()=>sr(()=>t(window[e])))}function $t(e,t,r,n){var i=n,s=!0,l=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=l());var o;o=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var f=!1,u=Pt(()=>(f=!1,o())),v=w;return(function(c,h){if(arguments.length>0){const _=h?d(u):c;return oe(u,_),f=!0,i!==void 0&&(i=_),c}return Ke&&f||(v.f&Re)!==0?u.v:d(u)})}function ji(e){return new zi(e)}class zi{#t;#e;constructor(t){var r=new Map,n=(s,l)=>{var a=jr(l,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return d(r.get(l)??n(l,Reflect.get(s,l)))},has(s,l){return l===On?!0:(d(r.get(l)??n(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return oe(r.get(l)??n(l,a),a),Reflect.set(s,l,a)}});this.#e=(t.hydrate?Ci:hn)(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)&&ft(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||At(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=()=>{Si(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let mn;typeof HTMLElement=="function"&&(mn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),k(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=qi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Bt(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=ji({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=hi(()=>{Jr(()=>{this.$$r=!0;for(const n of Tt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Bt(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(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Bt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Tt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Bt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 qi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Bi(e,t,r,n,i,s){let l=class extends mn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Tt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Tt(t).forEach(a=>{At(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(o){o=Bt(a,o,t),this.$$d[a]=o;var f=this.$$c;if(f){var u=rt(f,a)?.get;u?f[a]=o:f.$set({[a]:o})}}})}),n.forEach(a=>{At(l.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=l,l}var Ze={},gn;function Hi(){if(gn)return Ze;gn=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.LanguageTranslator=void 0,Ze.getChildStyleToPass=e,Ze.addComponent=t;function e(n,i){var s,l,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||l===void 0)&&l.length))for(var o=function(c){var h=i?.filter(function(_){return _.name===c&&_.defaultValue!==n[c]});h&&(a+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var v=u[f];o(v)}}catch(c){console.error("error getting child style to pass",c)}finally{return a}}function t(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 l=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(l),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(l)}document.head.appendChild(a)}catch(f){console.warn(f)}}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,l){return n.formatDate(i,s,l||this.lang)},n.getDefaultLang=function(){var i,s,l,a="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)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(i,s,l){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((a=s[l])===null||a===void 0)&&a[i]))return s[l][i];var o="",f=n.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(o=u[i])}return o},n.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 a=new Intl.DateTimeFormat(l||n.getDefaultLang(),s);return a.format(i)},n})();return Ze.LanguageTranslator=r,Ze}Hi();var Vi=M('<div class="video_sub_time svelte-1fmd5hv" part="video_sub_time"> </div>'),Yi=M('<div class="play svelte-1fmd5hv"><div class="play_container svelte-1fmd5hv"><div class="play_symbol svelte-1fmd5hv">▶</div></div></div> <div class="video_sub svelte-1fmd5hv"><div class="video_sub_title svelte-1fmd5hv" part="video_sub_title"> </div> <!></div>',1),Ui=M('<div class="caption svelte-1fmd5hv"><div class="caption_content svelte-1fmd5hv" part="caption_content"> </div></div>'),Wi=M('<div class="item svelte-1fmd5hv"><img class="svelte-1fmd5hv"/> <!></div>'),Gi=M('<div class="video_sub_time svelte-1fmd5hv" part="video_sub_time"> </div>'),Ji=M('<div class="play svelte-1fmd5hv"><div class="play_container svelte-1fmd5hv"><div class="play_symbol svelte-1fmd5hv">▶</div></div></div> <div class="video_sub svelte-1fmd5hv"><div class="video_sub_title svelte-1fmd5hv" part="video_sub_title"> </div> <!></div>',1),Ki=M('<div class="caption svelte-1fmd5hv"><div class="caption_content svelte-1fmd5hv" part="caption_content"> </div></div>'),Xi=M('<div class="item svelte-1fmd5hv"><img class="svelte-1fmd5hv"/> <!></div>'),Zi=M('<div class="video_sub_time svelte-1fmd5hv" part="video_sub_time"> </div>'),Qi=M('<div class="play svelte-1fmd5hv"><div class="play_container svelte-1fmd5hv"><div class="play_symbol svelte-1fmd5hv">▶</div></div></div> <div class="video_sub svelte-1fmd5hv"><div class="video_sub_title svelte-1fmd5hv" part="video_sub_title"> </div> <!></div>',1),es=M('<div class="caption svelte-1fmd5hv"><div class="caption_content svelte-1fmd5hv" part="caption_content"> </div></div>'),ts=M('<div class="item svelte-1fmd5hv"><img class="svelte-1fmd5hv"/> <!></div>'),rs=M('<div class="video_sub_time svelte-1fmd5hv" part="video_sub_time"> </div>'),ns=M('<div class="play svelte-1fmd5hv"><div class="play_container svelte-1fmd5hv"><div class="play_symbol svelte-1fmd5hv">▶</div></div></div> <div class="video_sub svelte-1fmd5hv"><div class="video_sub_title svelte-1fmd5hv" part="video_sub_title"> </div> <!></div>',1),is=M('<div class="caption svelte-1fmd5hv"><div class="caption_content svelte-1fmd5hv" part="caption_content"> </div></div>'),ss=M('<div class="item svelte-1fmd5hv"><img class="svelte-1fmd5hv"/> <!></div>'),ls=M('<div class="wrapper svelte-1fmd5hv"><section class="svelte-1fmd5hv"><a class="arrow__btn svelte-1fmd5hv"><div>‹</div></a> <!> <a class="arrow__btn svelte-1fmd5hv"><div>›</div></a></section></div>');const as={hash:"svelte-1fmd5hv",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;}.wrapper.svelte-1fmd5hv {display:grid;grid-template-columns:repeat(3, 100%);overflow:hidden;scroll-behavior:smooth;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) {width:100%;position:relative;display:grid;margin:20px 0;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) .item:where(.svelte-1fmd5hv) {position:relative;padding:0 0px;transition:250ms all;z-index:1;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) .item:where(.svelte-1fmd5hv):hover {margin:0 40px;transform:scale(1.2);cursor:pointer;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) .item:where(.svelte-1fmd5hv):hover .video_sub:where(.svelte-1fmd5hv) {display:block;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv) {padding:0 20px;position:absolute;display:flex;color:white;text-decoration:none;font-size:6em;z-index:3;align-items:center;justify-content:center;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv):nth-of-type(1) {top:0;bottom:0;left:0;background:linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv):nth-of-type(1):hover {background:linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%) !important;}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv):nth-of-type(2) {top:0;bottom:0;right:0;background:linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);}.wrapper.svelte-1fmd5hv section:where(.svelte-1fmd5hv) a:where(.svelte-1fmd5hv):nth-of-type(2):hover {background:linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%) !important;}.wrapper.svelte-1fmd5hv img:where(.svelte-1fmd5hv) {width:100%;height:100%;object-fit:cover;}.wrapper.svelte-1fmd5hv a:where(.svelte-1fmd5hv) {cursor:pointer;}.wrapper.svelte-1fmd5hv a:where(.svelte-1fmd5hv):hover {color:white !important;}.wrapper.svelte-1fmd5hv .play:where(.svelte-1fmd5hv) {position:absolute;z-index:10;top:0;height:100%;width:100%;vertical-align:middle;line-height:100%;text-align:center;display:flex;}.wrapper.svelte-1fmd5hv .play:where(.svelte-1fmd5hv):hover {background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);}.wrapper.svelte-1fmd5hv .play:where(.svelte-1fmd5hv):hover .play_container:where(.svelte-1fmd5hv) {display:flex;}.wrapper.svelte-1fmd5hv .play:where(.svelte-1fmd5hv) {align-items:center;justify-content:center;}.wrapper.svelte-1fmd5hv .play_container:where(.svelte-1fmd5hv) {display:none;align-items:center;justify-content:center;color:white;border:6px solid white;border-radius:50%;width:4rem;height:4rem;text-align:center;}.wrapper.svelte-1fmd5hv .play_symbol:where(.svelte-1fmd5hv) {text-align:center;font-size:2rem;font-weight:bold;margin:0px 0px 3px 3px;}.wrapper.svelte-1fmd5hv .caption:where(.svelte-1fmd5hv) {position:absolute;z-index:10;top:0;height:100%;width:100%;vertical-align:middle;line-height:100%;text-align:center;display:flex;align-items:center;justify-content:center;}.wrapper.svelte-1fmd5hv .caption:where(.svelte-1fmd5hv):hover {background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);}.wrapper.svelte-1fmd5hv .caption:where(.svelte-1fmd5hv):hover .caption_content:where(.svelte-1fmd5hv) {display:block;}.wrapper.svelte-1fmd5hv .caption_content:where(.svelte-1fmd5hv) {color:white;font-weight:bold;display:none;}.wrapper.svelte-1fmd5hv .video_sub:where(.svelte-1fmd5hv) {display:none;position:absolute;z-index:10;bottom:0;width:100%;}.wrapper.svelte-1fmd5hv .video_sub:where(.svelte-1fmd5hv) div:where(.svelte-1fmd5hv) {display:inline-block;color:white;}.wrapper.svelte-1fmd5hv .video_sub_time:where(.svelte-1fmd5hv) {float:right;margin-right:10px;}.wrapper.svelte-1fmd5hv .video_sub_title:where(.svelte-1fmd5hv) {margin-left:10px;}.wrapper.svelte-1fmd5hv:hover a:where(.svelte-1fmd5hv) {color:transparent;background:transparent !important;}'};function wn(e,t){Ar(t,!0),Ri(e,as);function r(m,$){t.$$host.dispatchEvent(new CustomEvent(m,{detail:$}))}let n=$t(t,"id",7,""),i=$t(t,"data"),s=$t(t,"slide",7,0),l=$t(t,"type",7,"images"),a=$t(t,"size",7,void 0),o=$e(0),f=$e(0);const u=Ft(()=>typeof s()=="string"?Number(s()):s());di(()=>{oe(f,d(u),!0)});let v=Ft(()=>a()?a():Math.round(d(o)/250));const c=Ft(()=>{let m=i();if(typeof i()=="string")try{m=JSON.parse(i())}catch(q){return console.error("error parsing data",q),[]}if(!m)return[];const $=m.filter(q=>q.href).sort((q,ne)=>(q.index||0)-(ne.index||0));let C=0;return $.map(q=>({...q,index:C++}))}),h=Ft(()=>{if(!d(c).length)return[];const m=d(c);let $=d(f);if($>=0){$===m.length&&($=0);let C=m.slice($,$+d(v));return C.length<d(v)&&m.length>d(v)&&(C=C.concat(m.slice(0,d(v)-C.length))),C}else if($<0)return $>-d(v)?m.slice($).concat(m.slice(0,$+d(v))):$>m.length*-1?m.slice($).slice(0,d(v)):m.slice(0,d(v));return[]});function _(m){oe(f,m,!0)}var N={get id(){return n()},set id(m=""){n(m),ft()},get data(){return i()},set data(m){i(m),ft()},get slide(){return s()},set slide(m=0){s(m),ft()},get type(){return l()},set type(m="images"){l(m),ft()},get size(){return a()},set size(m=void 0){a(m),ft()}},T=qe(),re=ue(T);{var z=m=>{var $=ls(),C=x($),q=x(C);q.__click=()=>{_(d(f)-1)},Ae(q,"href",null);var ne=G(q,2);ti(ne,17,()=>d(h),Be=>Be.index,(Be,p)=>{var Et=qe(),Ht=ue(Et);{var cr=ht=>{var Qe=Wi();Qe.__click=()=>window.open(d(p).externalLink,"_blank");var xt=x(Qe),dr=G(xt,2);{var hr=K=>{var me=Yi(),Ve=G(ue(me),2),Me=x(Ve),X=x(Me,!0);E(Me);var S=G(Me,2);{var O=Z=>{var ie=Vi(),ge=x(ie,!0);E(ie),L(()=>de(ge,d(p).duration)),k(Z,ie)};j(S,Z=>{d(p).duration&&Z(O)})}E(Ve),L(()=>de(X,d(p).caption)),k(K,me)},He=K=>{var me=qe(),Ve=ue(me);{var Me=X=>{var S=Ui(),O=x(S),Z=x(O,!0);E(O),E(S),L(()=>de(Z,d(p).caption)),k(X,S)};j(Ve,X=>{d(p).caption&&X(Me)},!0)}k(K,me)};j(dr,K=>{l()==="videos"?K(hr):K(He,!1)})}E(Qe),L(()=>{Ae(xt,"src",d(p).href),Ae(xt,"alt",d(p).caption)}),k(ht,Qe)},vr=ht=>{var Qe=qe(),xt=ue(Qe);{var dr=He=>{var K=Xi();K.__click=()=>{d(p).link&&(window.location.href=d(p).link)};var me=x(K),Ve=G(me,2);{var Me=S=>{var O=Ji(),Z=G(ue(O),2),ie=x(Z),ge=x(ie,!0);E(ie);var R=G(ie,2);{var B=Y=>{var U=Gi(),se=x(U,!0);E(U),L(()=>de(se,d(p).duration)),k(Y,U)};j(R,Y=>{d(p).duration&&Y(B)})}E(Z),L(()=>de(ge,d(p).caption)),k(S,O)},X=S=>{var O=qe(),Z=ue(O);{var ie=ge=>{var R=Ki(),B=x(R),Y=x(B,!0);E(B),E(R),L(()=>de(Y,d(p).caption)),k(ge,R)};j(Z,ge=>{d(p).caption&&ge(ie)},!0)}k(S,O)};j(Ve,S=>{l()==="videos"?S(Me):S(X,!1)})}E(K),L(()=>{Ae(me,"src",d(p).href),Ae(me,"alt",d(p).caption)}),k(He,K)},hr=He=>{var K=qe(),me=ue(K);{var Ve=X=>{var S=ts();S.__click=()=>r("slideClick",{key:d(p).key});var O=x(S),Z=G(O,2);{var ie=R=>{var B=Qi(),Y=G(ue(B),2),U=x(Y),se=x(U,!0);E(U);var we=G(U,2);{var Pe=ye=>{var et=Zi(),_r=x(et,!0);E(et),L(()=>de(_r,d(p).duration)),k(ye,et)};j(we,ye=>{d(p).duration&&ye(Pe)})}E(Y),L(()=>de(se,d(p).caption)),k(R,B)},ge=R=>{var B=qe(),Y=ue(B);{var U=se=>{var we=es(),Pe=x(we),ye=x(Pe,!0);E(Pe),E(we),L(()=>de(ye,d(p).caption)),k(se,we)};j(Y,se=>{d(p).caption&&se(U)},!0)}k(R,B)};j(Z,R=>{l()==="videos"?R(ie):R(ge,!1)})}E(S),L(()=>{Ae(O,"src",d(p).href),Ae(O,"alt",d(p).caption)}),k(X,S)},Me=X=>{var S=ss(),O=x(S),Z=G(O,2);{var ie=R=>{var B=ns(),Y=G(ue(B),2),U=x(Y),se=x(U,!0);E(U);var we=G(U,2);{var Pe=ye=>{var et=rs(),_r=x(et,!0);E(et),L(()=>de(_r,d(p).duration)),k(ye,et)};j(we,ye=>{d(p).duration&&ye(Pe)})}E(Y),L(()=>de(se,d(p).caption)),k(R,B)},ge=R=>{var B=qe(),Y=ue(B);{var U=se=>{var we=is(),Pe=x(we),ye=x(Pe,!0);E(Pe),E(we),L(()=>de(ye,d(p).caption)),k(se,we)};j(Y,se=>{d(p).caption&&se(U)},!0)}k(R,B)};j(Z,R=>{l()==="videos"?R(ie):R(ge,!1)})}E(S),L(()=>{Ae(O,"src",d(p).href),Ae(O,"alt",d(p).caption)}),k(X,S)};j(me,X=>{d(p).key?X(Ve):X(Me,!1)},!0)}k(He,K)};j(xt,He=>{d(p).link?He(dr):He(hr,!1)},!0)}k(ht,Qe)};j(Ht,ht=>{d(p).externalLink?ht(cr):ht(vr,!1)})}k(Be,Et)});var dt=G(ne,2);dt.__click=()=>{_(d(f)+1)},Ae(dt,"href",null),E(C),E($),L(()=>Di(C,`grid-template-columns: repeat(${d(v)??""}, auto);`)),k(m,$)};j(re,m=>{d(h)?.length&&m(z)})}return Ii("innerWidth",m=>oe(o,m,!0)),k(e,T),Cr(N)}xi(["click"]),customElements.define("hb-site-slideshow-horizontal",Bi(wn,{id:{},data:{},slide:{},type:{},size:{}},[],[],!0)),pr.Component=wn,Object.defineProperty(pr,Symbol.toStringTag,{value:"Module"})})(this["site-slideshow-horizontal"]=this["site-slideshow-horizontal"]||{});
3
3
  //# sourceMappingURL=main.iife.js.map