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