@htmlbricks/hb-skeleton-component 0.66.0 → 0.66.1
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,5 +1,5 @@
|
|
|
1
|
-
(function(vt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const dn=2,pt="[",gt="[!",mt="]",ge={},b=Symbol(),_n="http://www.w3.org/1999/xhtml",Ge=!1;var vn=Array.isArray,pn=Array.prototype.indexOf,gn=Array.from,Oe=Object.keys,Ce=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,wn=Object.prototype,$n=Array.prototype,wt=Object.getPrototypeOf,$t=Object.isExtensible;function bn(e){for(var t=0;t<e.length;t++)e[t]()}function bt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const $=2,Xe=4,Ze=8,U=16,ne=32,W=64,Ne=128,N=512,y=1024,S=2048,Y=4096,G=8192,H=16384,Qe=32768,Pe=65536,yt=1<<17,Et=1<<18,re=1<<19,yn=1<<20,ie=32768,et=1<<21,tt=1<<22,X=1<<23,nt=Symbol("$state"),En=Symbol("legacy props"),ae=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xt=3,De=8;function xn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function kn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Tn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Sn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function An(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function On(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function rt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Cn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function je(e){w=e}let g;function V(e){if(e===null)throw rt(),ge;return g=e}function it(){return V(ee(g))}function me(e){if(w){if(ee(g)!==null)throw rt(),ge;g=e}}function Nn(e=1){if(w){for(var t=e,n=g;t--;)n=ee(n);g=n}}function Pn(e=!0){for(var t=0,n=g;;){if(n.nodeType===De){var r=n.data;if(r===mt){if(t===0)return n;t-=1}else(r===pt||r===gt)&&(t+=1)}var s=ee(n);e&&n.remove(),n=s}}function kt(e){return e===this.v}function Dn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jn(e){return!Dn(e,this.v)}let Mn=!1,P=null;function ce(e){P=e}function Tt(e,t=!1,n){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function St(e){var t=P,n=t.e;if(n!==null){t.e=null;for(var r of n)Zn(r)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function At(){return!0}let se=[];function Rt(){var e=se;se=[],bn(e)}function st(e){if(se.length===0&&!we){var t=se;queueMicrotask(()=>{t===se&&Rt()})}se.push(e)}function In(){for(;se.length>0;)Rt()}function Ot(e){var t=v;if(t===null)return _.f|=X,e;if((t.f&Qe)===0){if((t.f&Ne)===0)throw e;t.b.error(e)}else he(e,t)}function he(e,t){for(;t!==null;){if((t.f&Ne)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Me=new Set;let m=null,R=null,O=[],Ie=null,lt=!1,we=!1;class D{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#o=0;#s=0;#u=null;#l=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(t){O=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#n(r,n);this.is_fork||this.#a(),this.is_deferred()?(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects)):(m=null,Nt(n.render_effects),Nt(n.effects),this.#u?.resolve()),R=null}#n(t,n){t.f^=y;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ne|W))!==0,l=i&&(s&y)!==0,o=l||(s&G)!==0||this.skipped_effects.has(r);if((r.f&Ne)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){i?r.f^=y:(s&Xe)!==0?n.effects.push(r):Se(r)&&((r.f&U)!==0&&n.block_effects.push(r),Ae(r));var f=r.first;if(f!==null){r=f;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)u===n.effect&&(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects),n=n.parent),r=u.next,u=u.parent}}#r(t){for(const n of t)((n.f&S)!==0?this.#l:this.#i).push(n),this.#f(n.deps),x(n,y)}#f(t){if(t!==null)for(const n of t)(n.f&$)===0||(n.f&ie)===0||(n.f^=ie,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&X)===0&&(this.current.set(t,t.v),R?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m===this&&(m=null,R=null)}flush(){if(this.activate(),O.length>0){if(Ct(),m!==null&&m!==this)return}else this.#o===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#a(){if(this.#s===0){for(const t of this.#t)t();this.#t.clear()}this.#o===0&&this.#c()}#c(){if(Me.size>1){this.previous.clear();var t=R,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Me){if(i===this){n=!1;continue}const l=[];for(const[f,u]of this.current){if(i.current.has(f))if(n&&u!==i.current.get(f))i.current.set(f,u);else continue;l.push(f)}if(l.length===0)continue;const o=[...i.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var s=O;O=[];const f=new Set,u=new Map;for(const c of l)Pt(c,o,f,u);if(O.length>0){m=i,i.apply();for(const c of O)i.#n(c,r);i.deactivate()}O=s}}m=null,R=t}this.committed=!0,Me.delete(this)}increment(t){this.#o+=1,t&&(this.#s+=1)}decrement(t){this.#o-=1,t&&(this.#s-=1),this.revive()}revive(){for(const t of this.#l)x(t,S),de(t);for(const t of this.#i)x(t,Y),de(t);this.#l=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#u??=bt()).promise}static ensure(){if(m===null){const t=m=new D;Me.add(m),we||D.enqueue(()=>{m===t&&t.flush()})}return m}static enqueue(t){st(t)}apply(){}}function $e(e){var t=we;we=!0;try{for(var n;;){if(In(),O.length===0&&(m?.flush(),O.length===0))return Ie=null,n;Ct()}}finally{we=t}}function Ct(){var e=te;lt=!0;var t=null;try{var n=0;for(Ye(!0);O.length>0;){var r=D.ensure();if(n++>1e3){var s,i;Ln()}r.process(O),Z.clear()}}finally{lt=!1,Ye(e),Ie=null}}function Ln(){try{kn()}catch(e){he(e,Ie)}}let z=null;function Nt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|G))===0&&Se(r)&&(z=new Set,Ae(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Jt(r):r.fn=null),z?.size>0)){Z.clear();for(const s of z){if((s.f&(H|G))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)z.has(l)&&(z.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const f=i[o];(f.f&(H|G))===0&&Ae(f)}}z.clear()}}z=null}}function Pt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&$)!==0?Pt(s,t,n,r):(i&(tt|U))!==0&&(i&S)===0&&Dt(s,t,r)&&(x(s,S),de(s))}}function Dt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&$)!==0&&Dt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function de(e){for(var t=Ie=e;t.parent!==null;){t=t.parent;var n=t.f;if(lt&&t===v&&(n&U)!==0&&(n&Et)===0)return;if((n&(W|ne))!==0){if((n&y)===0)return;t.f^=y}}O.push(t)}function Fn(e){let t=0,n=be(0),r;return()=>{Be()&&(T(n),Ht(()=>(t===0&&(r=cr(()=>e(()=>ye(n)))),t+=1,()=>{st(()=>{t-=1,t===0&&(r?.(),r=void 0,ye(n))})})))}}var qn=Pe|re|Ne;function Bn(e,t,n){new Un(e,t,n)}class Un{parent;#t=!1;#e;#o=w?g:null;#s;#u;#l;#i=null;#n=null;#r=null;#f=null;#a=null;#c=0;#h=0;#_=!1;#d=null;#w=Fn(()=>(this.#d=be(this.#c),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#s=n,this.#u=r,this.parent=v.b,this.#t=!!this.#s.pending,this.#l=ir(()=>{if(v.b=this,w){const i=this.#o;it(),i.nodeType===De&&i.data===gt?this.#b():this.#$()}else{var s=this.#g();try{this.#i=le(()=>r(s))}catch(i){this.error(i)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#a?.remove()}},qn),w&&(this.#e=g)}#$(){try{this.#i=le(()=>this.#u(this.#e))}catch(t){this.error(t)}this.#t=!1}#b(){const t=this.#s.pending;t&&(this.#n=le(()=>t(this.#e)),D.enqueue(()=>{var n=this.#g();this.#i=this.#v(()=>(D.ensure(),le(()=>this.#u(n)))),this.#h>0?this.#p():(Ue(this.#n,()=>{this.#n=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#a=_e(),this.#e.before(this.#a),t=this.#a),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#v(t){var n=v,r=_,s=P;B(this.#l),k(this.#l),ce(this.#l.ctx);try{return t()}catch(i){return Ot(i),null}finally{B(n),k(r),ce(s)}}#p(){const t=this.#s.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#a),or(this.#i,this.#f)),this.#n===null&&(this.#n=le(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#n&&Ue(this.#n,()=>{this.#n=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#d&&Fe(this.#d,this.#c)}get_effect_pending(){return this.#w(),T(this.#d)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(this.#_||!n&&!r)throw t;this.#i&&(j(this.#i),this.#i=null),this.#n&&(j(this.#n),this.#n=null),this.#r&&(j(this.#r),this.#r=null),w&&(V(this.#o),Nn(),V(Pn()));var s=!1,i=!1;const l=()=>{if(s){Cn();return}s=!0,i&&On(),D.ensure(),this.#c=0,this.#r!==null&&Ue(this.#r,()=>{this.#r=null}),this.#t=this.has_pending_snippet(),this.#i=this.#v(()=>(this.#_=!1,le(()=>this.#u(this.#e)))),this.#h>0?this.#p():this.#t=!1};var o=_;try{k(null),i=!0,n?.(t,l),i=!1}catch(f){he(f,this.#l&&this.#l.parent)}finally{k(o)}r&&st(()=>{this.#r=this.#v(()=>{D.ensure(),this.#_=!0;try{return le(()=>{r(this.#e,()=>t,()=>l)})}catch(f){return he(f,this.#l.parent),null}finally{this.#_=!1}})})}}function Yn(e,t,n,r){const s=ft;if(n.length===0&&e.length===0){r(t.map(s));return}var i=m,l=v,o=Hn();function f(){Promise.all(n.map(u=>Vn(u))).then(u=>{o();try{r([...t.map(s),...u])}catch(c){(l.f&H)===0&&he(c,l)}i?.deactivate(),Le()}).catch(u=>{he(u,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return f()}finally{i?.deactivate(),Le()}}):f()}function Hn(){var e=v,t=_,n=P,r=m;return function(i=!0){B(e),k(t),ce(n),i&&r?.activate()}}function Le(){B(null),k(null),ce(null)}function ft(e){var t=$|S,n=_!==null&&(_.f&$)!==0?_:null;return v!==null&&(v.f|=re),{ctx:P,deps:null,effects:null,equals:kt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??v,ac:null}}function Vn(e,t){let n=v;n===null&&xn();var r=n.b,s=void 0,i=be(b),l=!_,o=new Map;return nr(()=>{var f=bt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{u===m&&u.committed&&u.deactivate(),Le()})}catch(a){f.reject(a),Le()}var u=m;if(l){var c=!r.is_pending();r.update_pending_count(1),u.increment(c),o.get(u)?.reject(ae),o.delete(u),o.set(u,f)}const d=(a,h=void 0)=>{if(u.activate(),h)h!==ae&&(i.f|=X,Fe(i,h));else{(i.f&X)!==0&&(i.f^=X),Fe(i,a);for(const[p,M]of o){if(o.delete(p),p===u)break;M.reject(ae)}}l&&(r.update_pending_count(-1),u.decrement(c))};f.promise.then(d,a=>d(null,a||"unknown"))}),Xn(()=>{for(const f of o.values())f.reject(ae)}),new Promise(f=>{function u(c){function d(){c===s?f(i):u(s)}c.then(d,d)}u(s)})}function ot(e){const t=ft(e);return Gt(t),t}function jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function zn(e){for(var t=e.parent;t!==null;){if((t.f&$)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function ut(e){var t,n=v;B(zn(e));try{e.f&=~ie,jt(e),t=tn(e)}finally{B(n)}return t}function Mt(e){var t=ut(e);if(e.equals(t)||(m?.is_fork||(e.v=t),e.wv=Qt()),!ve)if(R!==null)Be()&&R.set(e,t);else{var n=(e.f&N)===0?Y:y;x(e,n)}}let at=new Set;const Z=new Map;let It=!1;function be(e,t){var n={f:0,v:e,reactions:null,equals:kt,rv:0,wv:0};return n}function Q(e,t){const n=be(e);return Gt(n),n}function Jn(e,t=!1,n=!0){const r=be(e);return t||(r.equals=jn),r}function J(e,t,n=!1){_!==null&&(!q||(_.f&yt)!==0)&&At()&&(_.f&($|U|tt|yt))!==0&&!K?.includes(e)&&Rn();let r=n?Ee(t):t;return Fe(e,r)}function Fe(e,t){if(!e.equals(t)){var n=e.v;ve?Z.set(e,t):Z.set(e,n),e.v=t;var r=D.ensure();r.capture(e,n),(e.f&$)!==0&&((e.f&S)!==0&&ut(e),x(e,(e.f&N)!==0?y:Y)),e.wv=Qt(),Lt(e,S),v!==null&&(v.f&y)!==0&&(v.f&(ne|W))===0&&(C===null?ur([e]):C.push(e)),!r.is_fork&&at.size>0&&!It&&Kn()}return t}function Kn(){It=!1;var e=te;Ye(!0);const t=Array.from(at);try{for(const n of t)(n.f&y)!==0&&x(n,Y),Se(n)&&Ae(n)}finally{Ye(e)}at.clear()}function ye(e){J(e,e.v+1)}function Lt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],l=i.f,o=(l&S)===0;if(o&&x(i,t),(l&$)!==0){var f=i;R?.delete(f),(l&ie)===0&&(l&N&&(i.f|=ie),Lt(f,Y))}else o&&((l&U)!==0&&z!==null&&z.add(i),de(i))}}function Ee(e){if(typeof e!="object"||e===null||nt in e)return e;const t=wt(e);if(t!==wn&&t!==$n)return e;var n=new Map,r=vn(e),s=Q(0),i=fe,l=o=>{if(fe===i)return o();var f=_,u=fe;k(null),Zt(i);var c=o();return k(f),Zt(u),c};return r&&n.set("length",Q(e.length)),new Proxy(e,{defineProperty(o,f,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Sn();var c=n.get(f);return c===void 0?c=l(()=>{var d=Q(u.value);return n.set(f,d),d}):J(c,u.value,!0),!0},deleteProperty(o,f){var u=n.get(f);if(u===void 0){if(f in o){const c=l(()=>Q(b));n.set(f,c),ye(s)}}else J(u,b),ye(s);return!0},get(o,f,u){if(f===nt)return e;var c=n.get(f),d=f in o;if(c===void 0&&(!d||ue(o,f)?.writable)&&(c=l(()=>{var h=Ee(d?o[f]:b),p=Q(h);return p}),n.set(f,c)),c!==void 0){var a=T(c);return a===b?void 0:a}return Reflect.get(o,f,u)},getOwnPropertyDescriptor(o,f){var u=Reflect.getOwnPropertyDescriptor(o,f);if(u&&"value"in u){var c=n.get(f);c&&(u.value=T(c))}else if(u===void 0){var d=n.get(f),a=d?.v;if(d!==void 0&&a!==b)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return u},has(o,f){if(f===nt)return!0;var u=n.get(f),c=u!==void 0&&u.v!==b||Reflect.has(o,f);if(u!==void 0||v!==null&&(!c||ue(o,f)?.writable)){u===void 0&&(u=l(()=>{var a=c?Ee(o[f]):b,h=Q(a);return h}),n.set(f,u));var d=T(u);if(d===b)return!1}return c},set(o,f,u,c){var d=n.get(f),a=f in o;if(r&&f==="length")for(var h=u;h<d.v;h+=1){var p=n.get(h+"");p!==void 0?J(p,b):h in o&&(p=l(()=>Q(b)),n.set(h+"",p))}if(d===void 0)(!a||ue(o,f)?.writable)&&(d=l(()=>Q(void 0)),J(d,Ee(u)),n.set(f,d));else{a=d.v!==b;var M=l(()=>Ee(u));J(d,M)}var I=Reflect.getOwnPropertyDescriptor(o,f);if(I?.set&&I.set.call(c,u),!a){if(r&&typeof f=="string"){var We=n.get("length"),oe=Number(f);Number.isInteger(oe)&&oe>=We.v&&J(We,oe+1)}ye(s)}return!0},ownKeys(o){T(s);var f=Reflect.ownKeys(o).filter(d=>{var a=n.get(d);return a===void 0||a.v!==b});for(var[u,c]of n)c.v!==b&&!(u in o)&&f.push(u);return f},setPrototypeOf(){An()}})}var Ft,qt,Bt,Ut;function ct(){if(Ft===void 0){Ft=window,qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Bt=ue(t,"firstChild").get,Ut=ue(t,"nextSibling").get,$t(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),$t(n)&&(n.__t=void 0)}}function _e(e=""){return document.createTextNode(e)}function qe(e){return Bt.call(e)}function ee(e){return Ut.call(e)}function xe(e,t){if(!w)return qe(e);var n=qe(g);return n===null&&(n=g.appendChild(_e())),V(n),n}function ke(e,t=1,n=!1){let r=w?g:e;for(var s;t--;)s=r,r=ee(r);if(!w)return r;if(n&&r?.nodeType!==xt){var i=_e();return r===null?s?.after(i):r.before(i),V(i),i}return V(r),r}function Wn(e){e.textContent=""}function Yt(e){var t=_,n=v;k(null),B(null);try{return e()}finally{k(t),B(n)}}function Gn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function F(e,t,n){var r=v;r!==null&&(r.f&G)!==0&&(e|=G);var s={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|S|N,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ae(s),s.f|=Qe}catch(o){throw j(s),o}else t!==null&&de(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&re)===0&&(i=i.first,(e&U)!==0&&(e&Pe)!==0&&i!==null&&(i.f|=Pe)),i!==null&&(i.parent=r,r!==null&&Gn(i,r),_!==null&&(_.f&$)!==0&&(e&W)===0)){var l=_;(l.effects??=[]).push(i)}return s}function Be(){return _!==null&&!q}function Xn(e){const t=F(Ze,null,!1);return x(t,y),t.teardown=e,t}function Zn(e){return F(Xe|yn,e,!1)}function Qn(e){D.ensure();const t=F(W|re,e,!0);return()=>{j(t)}}function er(e){D.ensure();const t=F(W|re,e,!0);return(n={})=>new Promise(r=>{n.outro?Ue(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function tr(e){return F(Xe,e,!1)}function nr(e){return F(tt|re,e,!0)}function Ht(e,t=0){return F(Ze|t,e,!0)}function rr(e,t=[],n=[],r=[]){Yn(r,t,n,s=>{F(Ze,()=>e(...s.map(T)),!0)})}function ir(e,t=0){var n=F(U|t,e,!0);return n}function le(e){return F(ne|re,e,!0)}function Vt(e){var t=e.teardown;if(t!==null){const n=ve,r=_;Wt(!0),k(null);try{t.call(null)}finally{Wt(n),k(r)}}}function zt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Yt(()=>{s.abort(ae)});var r=n.next;(n.f&W)!==0?n.parent=null:j(n,t),n=r}}function sr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ne)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&Et)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(lr(e.nodes_start,e.nodes_end),n=!0),zt(e,t&&!n),He(e,0),x(e,H);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Vt(e);var s=e.parent;s!==null&&s.first!==null&&Jt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function lr(e,t){for(;e!==null;){var n=e===t?null:ee(e);e.remove(),e=n}}function Jt(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 Ue(e,t,n=!0){var r=[];Kt(e,r,!0),fr(r,()=>{n&&j(e),t&&t()})}function fr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Kt(e,t,n){if((e.f&G)===0){if(e.f^=G,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Pe)!==0||(r.f&ne)!==0&&(e.f&U)!==0;Kt(r,t,i?n:!1),r=s}}}function or(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:ee(n);t.append(n),n=s}}let te=!1;function Ye(e){te=e}let ve=!1;function Wt(e){ve=e}let _=null,q=!1;function k(e){_=e}let v=null;function B(e){v=e}let K=null;function Gt(e){_!==null&&(K===null?K=[e]:K.push(e))}let E=null,A=0,C=null;function ur(e){C=e}let Xt=1,Te=0,fe=Te;function Zt(e){fe=e}function Qt(){return++Xt}function Se(e){var t=e.f;if((t&S)!==0)return!0;if(t&$&&(e.f&=~ie),(t&Y)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(Se(i)&&Mt(i),i.wv>e.wv)return!0}(t&N)!==0&&R===null&&x(e,y)}return!1}function en(e,t,n=!0){var r=e.reactions;if(r!==null&&!K?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&$)!==0?en(i,t,!1):t===i&&(n?x(i,S):(i.f&y)!==0&&x(i,Y),de(i))}}function tn(e){var t=E,n=A,r=C,s=_,i=K,l=P,o=q,f=fe,u=e.f;E=null,A=0,C=null,_=(u&(ne|W))===0?e:null,K=null,ce(e.ctx),q=!1,fe=++Te,e.ac!==null&&(Yt(()=>{e.ac.abort(ae)}),e.ac=null);try{e.f|=et;var c=e.fn,d=c(),a=e.deps;if(E!==null){var h;if(He(e,A),a!==null&&A>0)for(a.length=A+E.length,h=0;h<E.length;h++)a[A+h]=E[h];else e.deps=a=E;if(te&&Be()&&(e.f&N)!==0)for(h=A;h<a.length;h++)(a[h].reactions??=[]).push(e)}else a!==null&&A<a.length&&(He(e,A),a.length=A);if(At()&&C!==null&&!q&&a!==null&&(e.f&($|Y|S))===0)for(h=0;h<C.length;h++)en(C[h],e);return s!==null&&s!==e&&(Te++,C!==null&&(r===null?r=C:r.push(...C))),(e.f&X)!==0&&(e.f^=X),d}catch(p){return Ot(p)}finally{e.f^=et,E=t,A=n,C=r,_=s,K=i,ce(l),q=o,fe=f}}function ar(e,t){let n=t.reactions;if(n!==null){var r=pn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&$)!==0&&(E===null||!E.includes(t))&&(x(t,Y),(t.f&N)!==0&&(t.f^=N,t.f&=~ie),jt(t),He(t,0))}function He(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ar(e,n[r])}function Ae(e){var t=e.f;if((t&H)===0){x(e,y);var n=v,r=te;v=e,te=!0;try{(t&U)!==0?sr(e):zt(e),Vt(e);var s=tn(e);e.teardown=typeof s=="function"?s:null,e.wv=Xt;var i;Ge&&Mn&&(e.f&S)!==0&&e.deps}finally{te=r,v=n}}}function T(e){var t=e.f,n=(t&$)!==0;if(_!==null&&!q){var r=v!==null&&(v.f&H)!==0;if(!r&&!K?.includes(e)){var s=_.deps;if((_.f&et)!==0)e.rv<Te&&(e.rv=Te,E===null&&s!==null&&s[A]===e?A++:E===null?E=[e]:E.includes(e)||E.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(ve){if(Z.has(e))return Z.get(e);if(n){var l=e,o=l.v;return((l.f&y)===0&&l.reactions!==null||rn(l))&&(o=ut(l)),Z.set(l,o),o}}else n&&!R?.has(e)&&(l=e,Se(l)&&Mt(l),te&&Be()&&(l.f&N)===0&&nn(l));if(R?.has(e))return R.get(e);if((e.f&X)!==0)throw e.v;return e.v}function nn(e){if(e.deps!==null){e.f^=N;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&$)!==0&&(t.f&N)===0&&nn(t)}}function rn(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&$)!==0&&rn(t))return!0;return!1}function cr(e){var t=q;try{return q=!0,e()}finally{q=t}}const hr=-7169;function x(e,t){e.f=e.f&hr|t}const sn=new Set,ht=new Set;function dr(e){for(var t=0;t<e.length;t++)sn.add(e[t]);for(var n of ht)n(e)}let ln=null;function Ve(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;ln=e;var l=0,o=ln===e&&e.__root;if(o){var f=s.indexOf(o);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;f<=u&&(l=f)}if(i=s[l]||e.target,i!==t){Ce(e,"currentTarget",{configurable:!0,get(){return i||n}});var c=_,d=v;k(null),B(null);try{for(var a,h=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var M=i["__"+r];M!=null&&(!i.disabled||e.target===i)&&M.call(i,e)}catch(I){a?h.push(I):a=I}if(e.cancelBubble||p===t||p===null)break;i=p}if(a){for(let I of h)queueMicrotask(()=>{throw I});throw a}}finally{e.__root=t,delete e.currentTarget,k(c),B(d)}}}function _r(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Re(e,t){var n=v;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function vr(e,t){var n=(t&dn)!==0,r,s=!e.startsWith("<!>");return()=>{if(w)return Re(g,null),g;r===void 0&&(r=_r(s?e:"<!>"+e),r=qe(r));var i=n||qt?document.importNode(r,!0):r.cloneNode(!0);return Re(i,i),i}}function pr(e=""){if(!w){var t=_e(e+"");return Re(t,t),t}var n=g;return n.nodeType!==xt&&(n.before(n=_e()),V(n)),Re(n,n),n}function dt(e,t){if(w){var n=v;((n.f&Qe)===0||n.nodes_end===null)&&(n.nodes_end=g),it();return}e!==null&&e.before(t)}const gr=["touchstart","touchmove"];function mr(e){return gr.includes(e)}function ze(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function fn(e,t){return on(e,t)}function wr(e,t){ct(),t.intro=t.intro??!1;const n=t.target,r=w,s=g;try{for(var i=qe(n);i&&(i.nodeType!==De||i.data!==pt);)i=ee(i);if(!i)throw ge;je(!0),V(i);const l=on(e,{...t,anchor:i});return je(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(
|
|
1
|
+
(function(bt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const kn=2,$t="[",yt="[!",Et="[?",xt="]",ye={},T=Symbol(),Tt="http://www.w3.org/1999/xhtml",Sn=!1;var An=Array.isArray,Nn=Array.prototype.indexOf,_e=Array.prototype.includes,Rn=Array.from,je=Object.keys,Ie=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,On=Object.getOwnPropertyDescriptors,Cn=Object.prototype,Dn=Array.prototype,kt=Object.getPrototypeOf,St=Object.isExtensible;const Mn=()=>{};function Pn(e){for(var t=0;t<e.length;t++)e[t]()}function At(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const y=2,pe=4,Le=8,Nt=1<<24,K=16,W=32,X=64,Xe=128,O=512,E=1024,k=2048,H=4096,Z=8192,P=16384,le=32768,Rt=1<<25,Fe=65536,Ot=1<<17,jn=1<<18,oe=1<<19,In=1<<20,fe=65536,Ze=1<<21,Qe=1<<22,Q=1<<23,et=Symbol("$state"),Ln=Symbol("legacy props"),U=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},tt=3,nt=8;function Fn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Vn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Un(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function rt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function zn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let x=!1;function Be(e){x=e}let w;function z(e){if(e===null)throw rt(),ye;return w=e}function it(){return z(se(w))}function Ee(e){if(x){if(se(w)!==null)throw rt(),ye;w=e}}function Jn(e=1){if(x){for(var t=e,n=w;t--;)n=se(n);w=n}}function Gn(e=!0){for(var t=0,n=w;;){if(n.nodeType===nt){var r=n.data;if(r===xt){if(t===0)return n;t-=1}else(r===$t||r===yt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=se(n);e&&n.remove(),n=i}}function Ct(e){return e===this.v}function Kn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Wn(e){return!Kn(e,this.v)}let Xn=!1,j=null;function ge(e){j=e}function Dt(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function Mt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)gr(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Pt(){return!0}let ue=[];function jt(){var e=ue;ue=[],Pn(e)}function me(e){if(ue.length===0&&!xe){var t=ue;queueMicrotask(()=>{t===ue&&jt()})}ue.push(e)}function Zn(){for(;ue.length>0;)jt()}function It(e){var t=p;if(t===null)return v.f|=Q,e;if((t.f&le)===0&&(t.f&pe)===0)throw e;ee(e,t)}function ee(e,t){for(;t!==null;){if((t.f&Xe)!==0){if((t.f&le)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Qn=-7169;function $(e,t){e.f=e.f&Qn|t}function st(e){(e.f&O)!==0||e.deps===null?$(e,E):$(e,H)}function Lt(e){if(e!==null)for(const t of e)(t.f&y)===0||(t.f&fe)===0||(t.f^=fe,Lt(t.deps))}function Ft(e,t,n){(e.f&k)!==0?t.add(e):(e.f&H)!==0&&n.add(e),Lt(e.deps),$(e,E)}const te=new Set;let m=null,I=null,lt=null,xe=!1,ot=!1,we=null,He=null;var Bt=0;let er=1;class ne{id=er++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#s=new Map;#f=new Map;#l=null;#t=[];#r=new Set;#i=new Set;#o=new Map;is_fork=!1;#c=!1;#u=new Set;#h(){return this.is_fork||this.#f.size>0}#_(){for(const r of this.#u)for(const i of r.#f.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#o.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#o.has(t)||this.#o.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#o.get(t);if(n){this.#o.delete(t);for(var r of n.d)$(r,k),this.schedule(r);for(r of n.m)$(r,H),this.schedule(r)}}#d(){if(Bt++>1e3&&(te.delete(this),tr()),!this.#h()){for(const l of this.#r)this.#i.delete(l),$(l,k),this.schedule(l);for(const l of this.#i)$(l,H),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=we=[],r=[],i=He=[];for(const l of t)try{this.#a(l,n,r)}catch(u){throw Ut(l),u}if(m=null,i.length>0){var s=ne.ensure();for(const l of i)s.schedule(l)}if(we=null,He=null,this.#h()||this.#_()){this.#v(r),this.#v(n);for(const[l,u]of this.#o)qt(l,u)}else{this.#s.size===0&&te.delete(this),this.#r.clear(),this.#i.clear();for(const l of this.#e)l(this);this.#e.clear(),Ht(r),Ht(n),this.#l?.resolve()}var o=m;if(this.#t.length>0){const l=o??=this;l.#t.push(...this.#t.filter(u=>!l.#t.includes(u)))}o!==null&&(te.add(o),o.#d()),te.has(this)||this.#p()}#a(t,n,r){t.f^=E;for(var i=t.first;i!==null;){var s=i.f,o=(s&(W|X))!==0,l=o&&(s&E)!==0,u=l||(s&Z)!==0||this.#o.has(i);if(!u&&i.fn!==null){o?i.f^=E:(s&pe)!==0?n.push(i):Oe(i)&&((s&K)!==0&&this.#i.add(i),$e(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var a=i.next;if(a!==null){i=a;break}i=i.parent}}}#v(t){for(var n=0;n<t.length;n+=1)Ft(t[n],this.#r,this.#i)}capture(t,n,r=!1){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,[t.v,r]),I?.set(t,t.v))}activate(){m=this}deactivate(){m=null,I=null}flush(){try{ot=!0,m=this,this.#d()}finally{Bt=0,lt=null,we=null,He=null,ot=!1,m=null,I=null,re.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),te.delete(this)}#p(){for(const f of te){var t=f.id<this.id,n=[];for(const[a,[h,c]]of this.current){if(f.current.has(a)){var r=f.current.get(a)[0];if(t&&h!==r)f.current.set(a,[h,c]);else continue}n.push(a)}var i=[...f.current.keys()].filter(a=>!this.current.has(a));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,o=new Map;for(var l of n)Vt(l,i,s,o);if(f.#t.length>0){f.apply();for(var u of f.#t)f.#a(u,[],[]);f.#t=[]}f.deactivate()}}for(const f of te)f.#u.has(this)&&(f.#u.delete(this),f.#u.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,n){let r=this.#s.get(n)??0;if(this.#s.set(n,r+1),t){let i=this.#f.get(n)??0;this.#f.set(n,i+1)}}decrement(t,n,r){let i=this.#s.get(n)??0;if(i===1?this.#s.delete(n):this.#s.set(n,i-1),t){let s=this.#f.get(n)??0;s===1?this.#f.delete(n):this.#f.set(n,s-1)}this.#c||r||(this.#c=!0,me(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#i.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#l??=At()).promise}static ensure(){if(m===null){const t=m=new ne;ot||(te.add(m),xe||me(()=>{m===t&&t.flush()}))}return m}apply(){{I=null;return}}schedule(t){if(lt=t,t.b?.is_pending&&(t.f&(pe|Le|Nt))!==0&&(t.f&le)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(we!==null&&n===p&&(v===null||(v.f&y)===0))return;if((r&(X|W))!==0){if((r&E)===0)return;n.f^=E}}this.#t.push(n)}}function Te(e){var t=xe;xe=!0;try{for(var n;;){if(Zn(),m===null)return n;m.flush()}}finally{xe=t}}function tr(){try{Bn()}catch(e){ee(e,lt)}}let J=null;function Ht(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(P|Z))===0&&Oe(r)&&(J=new Set,$e(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&ln(r),J?.size>0)){re.clear();for(const i of J){if((i.f&(P|Z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)J.has(o)&&(J.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const u=s[l];(u.f&(P|Z))===0&&$e(u)}}J.clear()}}J=null}}function Vt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&y)!==0?Vt(i,t,n,r):(s&(Qe|K))!==0&&(s&k)===0&&Yt(i,t,r)&&($(i,k),ft(i))}}function Yt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(_e.call(t,i))return!0;if((i.f&y)!==0&&Yt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ft(e){m.schedule(e)}function qt(e,t){if(!((e.f&W)!==0&&(e.f&E)!==0)){(e.f&k)!==0?t.d.push(e):(e.f&H)!==0&&t.m.push(e),$(e,E);for(var n=e.first;n!==null;)qt(n,t),n=n.next}}function Ut(e){$(e,E);for(var t=e.first;t!==null;)Ut(t),t=t.next}function nr(e){let t=0,n=ke(0),r;return()=>{vt()&&(A(n),rn(()=>(t===0&&(r=Nr(()=>e(()=>Se(n)))),t+=1,()=>{me(()=>{t-=1,t===0&&(r?.(),r=void 0,Se(n))})})))}}var rr=Fe|oe;function ir(e,t,n,r){new sr(e,t,n,r)}class sr{parent;is_pending=!1;transform_error;#e;#n=x?w:null;#s;#f;#l;#t=null;#r=null;#i=null;#o=null;#c=0;#u=0;#h=!1;#_=new Set;#d=new Set;#a=null;#v=nr(()=>(this.#a=ke(this.#c),()=>{this.#a=null}));constructor(t,n,r,i){this.#e=t,this.#s=n,this.#f=s=>{var o=p;o.b=this,o.f|=Xe,r(s)},this.parent=p.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#l=Er(()=>{if(x){const s=this.#n;it();const o=s.data===yt;if(s.data.startsWith(Et)){const u=JSON.parse(s.data.slice(Et.length));this.#$(u)}else o?this.#y():this.#p()}else this.#w()},rr),x&&(this.#e=w)}#p(){try{this.#t=ae(()=>this.#f(this.#e))}catch(t){this.error(t)}}#$(t){const n=this.#s.failed;n&&(this.#i=ae(()=>{n(this.#e,()=>t,()=>()=>{})}))}#y(){const t=this.#s.pending;t&&(this.is_pending=!0,this.#r=ae(()=>t(this.#e)),me(()=>{var n=this.#o=document.createDocumentFragment(),r=be();n.append(r),this.#t=this.#m(()=>ae(()=>this.#f(r))),this.#u===0&&(this.#e.before(n),this.#o=null,Ue(this.#r,()=>{this.#r=null}),this.#g(m))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#t=ae(()=>{this.#f(this.#e)}),this.#u>0){var t=this.#o=document.createDocumentFragment();kr(this.#t,t);const n=this.#s.pending;this.#r=ae(()=>n(this.#e))}else this.#g(m)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#_,this.#d)}defer_effect(t){Ft(t,this.#_,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#m(t){var n=p,r=v,i=j;Y(this.#l),C(this.#l),ge(this.#l.ctx);try{return ne.ensure(),t()}catch(s){return It(s),null}finally{Y(n),C(r),ge(i)}}#b(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t,n);return}this.#u+=t,this.#u===0&&(this.#g(n),this.#r&&Ue(this.#r,()=>{this.#r=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t,n){this.#b(t,n),this.#c+=t,!(!this.#a||this.#h)&&(this.#h=!0,me(()=>{this.#h=!1,this.#a&&Ye(this.#a,this.#c)}))}get_effect_pending(){return this.#v(),A(this.#a)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(!n&&!r)throw t;this.#t&&(L(this.#t),this.#t=null),this.#r&&(L(this.#r),this.#r=null),this.#i&&(L(this.#i),this.#i=null),x&&(z(this.#n),Jn(),z(Gn()));var i=!1,s=!1;const o=()=>{if(i){zn();return}i=!0,s&&Un(),this.#i!==null&&Ue(this.#i,()=>{this.#i=null}),this.#m(()=>{this.#w()})},l=u=>{try{s=!0,n?.(u,o),s=!1}catch(f){ee(f,this.#l&&this.#l.parent)}r&&(this.#i=this.#m(()=>{try{return ae(()=>{var f=p;f.b=this,f.f|=Xe,r(this.#e,()=>u,()=>o)})}catch(f){return ee(f,this.#l.parent),null}}))};me(()=>{var u;try{u=this.transform_error(t)}catch(f){ee(f,this.#l&&this.#l.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(l,f=>ee(f,this.#l&&this.#l.parent)):l(u)})}}function lr(e,t,n,r){const i=ut;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=p,l=or(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){l();try{r(c)}catch(_){(o.f&P)===0&&ee(_,o)}Ve()}if(n.length===0){u.then(()=>f(t.map(i)));return}var a=zt();function h(){Promise.all(n.map(c=>fr(c))).then(c=>f([...t.map(i),...c])).catch(c=>ee(c,o)).finally(()=>a())}u?u.then(()=>{l(),h(),Ve()}):h()}function or(){var e=p,t=v,n=j,r=m;return function(s=!0){Y(e),C(t),ge(n),s&&(e.f&P)===0&&(r?.activate(),r?.apply())}}function Ve(e=!0){Y(null),C(null),ge(null),e&&m?.deactivate()}function zt(){var e=p,t=e.b,n=m,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function ut(e){var t=y|k,n=v!==null&&(v.f&y)!==0?v:null;return p!==null&&(p.f|=oe),{ctx:j,deps:null,effects:null,equals:Ct,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??p,ac:null}}function fr(e,t,n){let r=p;r===null&&Fn();var i=void 0,s=ke(T),o=!v,l=new Map;return $r(()=>{var u=p,f=At();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Ve)}catch(_){f.reject(_),Ve()}var a=m;if(o){if((u.f&le)!==0)var h=zt();if(r.b.is_rendered())l.get(a)?.reject(U),l.delete(a);else{for(const _ of l.values())_.reject(U);l.clear()}l.set(a,f)}const c=(_,d=void 0)=>{if(h){var g=d===U;h(g)}if(!(d===U||(u.f&P)!==0)){if(a.activate(),d)s.f|=Q,Ye(s,d);else{(s.f&Q)!==0&&(s.f^=Q),Ye(s,_);for(const[b,R]of l){if(l.delete(b),b===a)break;R.reject(U)}}a.deactivate()}};f.promise.then(c,_=>c(null,_||"unknown"))}),pr(()=>{for(const u of l.values())u.reject(U)}),new Promise(u=>{function f(a){function h(){a===i?u(s):f(i)}a.then(h,h)}f(i)})}function at(e){const t=ut(e);return un(t),t}function ur(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)L(t[n])}}function ar(e){for(var t=e.parent;t!==null;){if((t.f&y)===0)return(t.f&P)===0?t:null;t=t.parent}return null}function ct(e){var t,n=p;Y(ar(e));try{e.f&=~fe,ur(e),t=_n(e)}finally{Y(n)}return t}function Jt(e){var t=e.v,n=ct(e);if(!e.equals(n)&&(e.wv=hn(),(!m?.is_fork||e.deps===null)&&(e.v=n,m?.capture(e,t,!0),e.deps===null))){$(e,E);return}ce||(I!==null?(vt()||m?.is_fork)&&I.set(e,n):st(e))}function cr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(U),t.teardown=Mn,t.ac=null,Ce(t,0),pt(t))}function Gt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&$e(t)}let ht=new Set;const re=new Map;let Kt=!1;function ke(e,t){var n={f:0,v:e,reactions:null,equals:Ct,rv:0,wv:0};return n}function ie(e,t){const n=ke(e);return un(n),n}function hr(e,t=!1,n=!0){const r=ke(e);return t||(r.equals=Wn),r}function G(e,t,n=!1){v!==null&&(!F||(v.f&Ot)!==0)&&Pt()&&(v.f&(y|K|Qe|Ot))!==0&&(D===null||!_e.call(D,e))&&qn();let r=n?Ae(t):t;return Ye(e,r,He)}function Ye(e,t,n=null){if(!e.equals(t)){var r=e.v;ce?re.set(e,t):re.set(e,r),e.v=t;var i=ne.ensure();if(i.capture(e,r),(e.f&y)!==0){const s=e;(e.f&k)!==0&&ct(s),I===null&&st(s)}e.wv=hn(),Wt(e,k,n),p!==null&&(p.f&E)!==0&&(p.f&(W|X))===0&&(M===null?Sr([e]):M.push(e)),!i.is_fork&&ht.size>0&&!Kt&&dr()}return t}function dr(){Kt=!1;for(const e of ht)(e.f&E)!==0&&$(e,H),Oe(e)&&$e(e);ht.clear()}function Se(e){G(e,e.v+1)}function Wt(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&k)===0;if(u&&$(o,t),(l&y)!==0){var f=o;I?.delete(f),(l&fe)===0&&(l&O&&(o.f|=fe),Wt(f,H,n))}else if(u){var a=o;(l&K)!==0&&J!==null&&J.add(a),n!==null?n.push(a):ft(a)}}}function Ae(e){if(typeof e!="object"||e===null||et in e)return e;const t=kt(e);if(t!==Cn&&t!==Dn)return e;var n=new Map,r=An(e),i=ie(0),s=de,o=l=>{if(de===s)return l();var u=v,f=de;C(null),cn(s);var a=l();return C(u),cn(f),a};return r&&n.set("length",ie(e.length)),new Proxy(e,{defineProperty(l,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Vn();var a=n.get(u);return a===void 0?o(()=>{var h=ie(f.value);return n.set(u,h),h}):G(a,f.value,!0),!0},deleteProperty(l,u){var f=n.get(u);if(f===void 0){if(u in l){const a=o(()=>ie(T));n.set(u,a),Se(i)}}else G(f,T),Se(i);return!0},get(l,u,f){if(u===et)return e;var a=n.get(u),h=u in l;if(a===void 0&&(!h||ve(l,u)?.writable)&&(a=o(()=>{var _=Ae(h?l[u]:T),d=ie(_);return d}),n.set(u,a)),a!==void 0){var c=A(a);return c===T?void 0:c}return Reflect.get(l,u,f)},getOwnPropertyDescriptor(l,u){var f=Reflect.getOwnPropertyDescriptor(l,u);if(f&&"value"in f){var a=n.get(u);a&&(f.value=A(a))}else if(f===void 0){var h=n.get(u),c=h?.v;if(h!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,u){if(u===et)return!0;var f=n.get(u),a=f!==void 0&&f.v!==T||Reflect.has(l,u);if(f!==void 0||p!==null&&(!a||ve(l,u)?.writable)){f===void 0&&(f=o(()=>{var c=a?Ae(l[u]):T,_=ie(c);return _}),n.set(u,f));var h=A(f);if(h===T)return!1}return a},set(l,u,f,a){var h=n.get(u),c=u in l;if(r&&u==="length")for(var _=f;_<h.v;_+=1){var d=n.get(_+"");d!==void 0?G(d,T):_ in l&&(d=o(()=>ie(T)),n.set(_+"",d))}if(h===void 0)(!c||ve(l,u)?.writable)&&(h=o(()=>ie(void 0)),G(h,Ae(f)),n.set(u,h));else{c=h.v!==T;var g=o(()=>Ae(f));G(h,g)}var b=Reflect.getOwnPropertyDescriptor(l,u);if(b?.set&&b.set.call(a,f),!c){if(r&&typeof u=="string"){var R=n.get("length"),q=Number(u);Number.isInteger(q)&&q>=R.v&&G(R,q+1)}Se(i)}return!0},ownKeys(l){A(i);var u=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==T});for(var[f,a]of n)a.v!==T&&!(f in l)&&u.push(f);return u},setPrototypeOf(){Yn()}})}var Xt,Zt,Qt,en;function dt(){if(Xt===void 0){Xt=window,Zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Qt=ve(t,"firstChild").get,en=ve(t,"nextSibling").get,St(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),St(n)&&(n.__t=void 0)}}function be(e=""){return document.createTextNode(e)}function qe(e){return Qt.call(e)}function se(e){return en.call(e)}function Ne(e,t){if(!x)return qe(e);var n=qe(w);return n===null&&(n=w.appendChild(be())),z(n),n}function Re(e,t=1,n=!1){let r=x?w:e;for(var i;t--;)i=r,r=se(r);if(!x)return r;if(n){if(r?.nodeType!==tt){var s=be();return r===null?i?.after(s):r.before(s),z(s),s}tn(r)}return z(r),r}function _r(e){e.textContent=""}function _t(e,t,n){return document.createElementNS(Tt,e,void 0)}function tn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===tt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function nn(e){var t=v,n=p;C(null),Y(null);try{return e()}finally{C(t),Y(n)}}function vr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=p;n!==null&&(n.f&Z)!==0&&(e|=Z);var r={ctx:j,deps:null,nodes:null,f:e|k|O,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&pe)!==0)we!==null?we.push(r):ne.ensure().schedule(r);else if(t!==null){try{$e(r)}catch(o){throw L(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&oe)===0&&(i=i.first,(e&K)!==0&&(e&Fe)!==0&&i!==null&&(i.f|=Fe))}if(i!==null&&(i.parent=n,n!==null&&vr(i,n),v!==null&&(v.f&y)!==0&&(e&X)===0)){var s=v;(s.effects??=[]).push(i)}return r}function vt(){return v!==null&&!F}function pr(e){const t=V(Le,null);return $(t,E),t.teardown=e,t}function gr(e){return V(pe|In,e)}function mr(e){ne.ensure();const t=V(X|oe,e);return()=>{L(t)}}function wr(e){ne.ensure();const t=V(X|oe,e);return(n={})=>new Promise(r=>{n.outro?Ue(t,()=>{L(t),r(void 0)}):(L(t),r(void 0))})}function br(e){return V(pe,e)}function $r(e){return V(Qe|oe,e)}function rn(e,t=0){return V(Le|t,e)}function yr(e,t=[],n=[],r=[]){lr(r,t,n,i=>{V(Le,()=>e(...i.map(A)))})}function Er(e,t=0){var n=V(K|t,e);return n}function ae(e){return V(W|oe,e)}function sn(e){var t=e.teardown;if(t!==null){const n=ce,r=v;fn(!0),C(null);try{t.call(null)}finally{fn(n),C(r)}}}function pt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&nn(()=>{i.abort(U)});var r=n.next;(n.f&X)!==0?n.parent=null:L(n,t),n=r}}function xr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&W)===0&&L(t),t=n}}function L(e,t=!0){var n=!1;(t||(e.f&jn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Tr(e.nodes.start,e.nodes.end),n=!0),$(e,Rt),pt(e,t&&!n),Ce(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();sn(e),e.f^=Rt,e.f|=P;var i=e.parent;i!==null&&i.first!==null&&ln(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Tr(e,t){for(;e!==null;){var n=e===t?null:se(e);e.remove(),e=n}}function ln(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 Ue(e,t,n=!0){var r=[];on(e,r,!0);var i=()=>{n&&L(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function on(e,t,n){if((e.f&Z)===0){e.f^=Z;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&Fe)!==0||(i.f&W)!==0&&(e.f&K)!==0;on(i,t,o?n:!1),i=s}}}function kr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:se(n);t.append(n),n=i}}let ze=!1,ce=!1;function fn(e){ce=e}let v=null,F=!1;function C(e){v=e}let p=null;function Y(e){p=e}let D=null;function un(e){v!==null&&(D===null?D=[e]:D.push(e))}let S=null,N=0,M=null;function Sr(e){M=e}let an=1,he=0,de=he;function cn(e){de=e}function hn(){return++an}function Oe(e){var t=e.f;if((t&k)!==0)return!0;if(t&y&&(e.f&=~fe),(t&H)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Oe(s)&&Jt(s),s.wv>e.wv)return!0}(t&O)!==0&&I===null&&$(e,E)}return!1}function dn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&_e.call(D,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&y)!==0?dn(s,t,!1):t===s&&(n?$(s,k):(s.f&E)!==0&&$(s,H),ft(s))}}function _n(e){var t=S,n=N,r=M,i=v,s=D,o=j,l=F,u=de,f=e.f;S=null,N=0,M=null,v=(f&(W|X))===0?e:null,D=null,ge(e.ctx),F=!1,de=++he,e.ac!==null&&(nn(()=>{e.ac.abort(U)}),e.ac=null);try{e.f|=Ze;var a=e.fn,h=a();e.f|=le;var c=e.deps,_=m?.is_fork;if(S!==null){var d;if(_||Ce(e,N),c!==null&&N>0)for(c.length=N+S.length,d=0;d<S.length;d++)c[N+d]=S[d];else e.deps=c=S;if(vt()&&(e.f&O)!==0)for(d=N;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!_&&c!==null&&N<c.length&&(Ce(e,N),c.length=N);if(Pt()&&M!==null&&!F&&c!==null&&(e.f&(y|H|k))===0)for(d=0;d<M.length;d++)dn(M[d],e);if(i!==null&&i!==e){if(he++,i.deps!==null)for(let g=0;g<n;g+=1)i.deps[g].rv=he;if(t!==null)for(const g of t)g.rv=he;M!==null&&(r===null?r=M:r.push(...M))}return(e.f&Q)!==0&&(e.f^=Q),h}catch(g){return It(g)}finally{e.f^=Ze,S=t,N=n,M=r,v=i,D=s,ge(o),F=l,de=u}}function Ar(e,t){let n=t.reactions;if(n!==null){var r=Nn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&y)!==0&&(S===null||!_e.call(S,t))){var s=t;(s.f&O)!==0&&(s.f^=O,s.f&=~fe),st(s),cr(s),Ce(s,0)}}function Ce(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ar(e,n[r])}function $e(e){var t=e.f;if((t&P)===0){$(e,E);var n=p,r=ze;p=e,ze=!0;try{(t&(K|Nt))!==0?xr(e):pt(e),sn(e);var i=_n(e);e.teardown=typeof i=="function"?i:null,e.wv=an;var s;Sn&&Xn&&(e.f&k)!==0&&e.deps}finally{ze=r,p=n}}}function A(e){var t=e.f,n=(t&y)!==0;if(v!==null&&!F){var r=p!==null&&(p.f&P)!==0;if(!r&&(D===null||!_e.call(D,e))){var i=v.deps;if((v.f&Ze)!==0)e.rv<he&&(e.rv=he,S===null&&i!==null&&i[N]===e?N++:S===null?S=[e]:S.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:_e.call(s,v)||s.push(v)}}}if(ce&&re.has(e))return re.get(e);if(n){var o=e;if(ce){var l=o.v;return((o.f&E)===0&&o.reactions!==null||pn(o))&&(l=ct(o)),re.set(o,l),l}var u=(o.f&O)===0&&!F&&v!==null&&(ze||(v.f&O)!==0),f=(o.f&le)===0;Oe(o)&&(u&&(o.f|=O),Jt(o)),u&&!f&&(Gt(o),vn(o))}if(I?.has(e))return I.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function vn(e){if(e.f|=O,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&y)!==0&&(t.f&O)===0&&(Gt(t),vn(t))}function pn(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(re.has(t)||(t.f&y)!==0&&pn(t))return!0;return!1}function Nr(e){var t=F;try{return F=!0,e()}finally{F=t}}const De=Symbol("events"),gn=new Set,gt=new Set;function Rr(e,t,n){(t[De]??={})[e]=n}function Or(e){for(var t=0;t<e.length;t++)gn.add(e[t]);for(var n of gt)n(e)}let mn=null;function wn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;mn=e;var o=0,l=mn===e&&e[De];if(l){var u=i.indexOf(l);if(u!==-1&&(t===document||t===window)){e[De]=t;return}var f=i.indexOf(t);if(f===-1)return;u<=f&&(o=u)}if(s=i[o]||e.target,s!==t){Ie(e,"currentTarget",{configurable:!0,get(){return s||n}});var a=v,h=p;C(null),Y(null);try{for(var c,_=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var g=s[De]?.[r];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(b){c?_.push(b):c=b}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let b of _)queueMicrotask(()=>{throw b});throw c}}finally{e[De]=t,delete e.currentTarget,C(a),Y(h)}}}const Cr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Dr(e){return Cr?.createHTML(e)??e}function Mr(e){var t=_t("template");return t.innerHTML=Dr(e.replaceAll("<!>","<!---->")),t.content}function Me(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Pr(e,t){var n=(t&kn)!==0,r,i=!e.startsWith("<!>");return()=>{if(x)return Me(w,null),w;r===void 0&&(r=Mr(i?e:"<!>"+e),r=qe(r));var s=n||Zt?document.importNode(r,!0):r.cloneNode(!0);return Me(s,s),s}}function jr(e=""){if(!x){var t=be(e+"");return Me(t,t),t}var n=w;return n.nodeType!==tt?(n.before(n=be()),z(n)):tn(n),Me(n,n),n}function mt(e,t){if(x){var n=p;((n.f&le)===0||n.nodes.end===null)&&(n.nodes.end=w),it();return}e!==null&&e.before(t)}const Ir=["touchstart","touchmove"];function Lr(e){return Ir.includes(e)}function Je(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function bn(e,t){return $n(e,t)}function Fr(e,t){dt(),t.intro=t.intro??!1;const n=t.target,r=x,i=w;try{for(var s=qe(n);s&&(s.nodeType!==nt||s.data!==$t);)s=se(s);if(!s)throw ye;Be(!0),z(s);const o=$n(e,{...t,anchor:s});return Be(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==ye&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Hn(),dt(),_r(n),Be(!1),bn(e,t)}finally{Be(r),z(i)}}const Ge=new Map;function $n(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){dt();var u=void 0,f=wr(()=>{var a=n??t.appendChild(be());ir(a,{pending:()=>{}},_=>{Dt({});var d=j;if(s&&(d.c=s),i&&(r.$$events=i),x&&Me(_,null),u=e(_,r)||{},x&&(p.nodes.end=w,w===null||w.nodeType!==nt||w.data!==xt))throw rt(),ye;Mt()},l);var h=new Set,c=_=>{for(var d=0;d<_.length;d++){var g=_[d];if(!h.has(g)){h.add(g);var b=Lr(g);for(const Pe of[t,document]){var R=Ge.get(Pe);R===void 0&&(R=new Map,Ge.set(Pe,R));var q=R.get(g);q===void 0?(Pe.addEventListener(g,wn,{passive:b}),R.set(g,1)):R.set(g,q+1)}}}};return c(Rn(gn)),gt.add(c),()=>{for(var _ of h)for(const b of[t,document]){var d=Ge.get(b),g=d.get(_);--g==0?(b.removeEventListener(_,wn),d.delete(_),d.size===0&&Ge.delete(b)):d.set(_,g)}gt.delete(c),a!==n&&a.parentNode?.removeChild(a)}});return wt.set(u,f),u}let wt=new WeakMap;function Br(e,t){const n=wt.get(e);return n?(wt.delete(e),n(t)):Promise.resolve()}function Hr(e,t,n,r,i){x&&it();var s=t.$$slots?.[n],o=!1;s===!0&&(s=t[n],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>r:r)}function Vr(e,t){br(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=_t("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Yr=Symbol("is custom element"),qr=Symbol("is html");function Ur(e,t,n,r){var i=zr(e);x&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Jr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function zr(e){return e.__attributes??={[Yr]:e.nodeName.includes("-"),[qr]:e.namespaceURI===Tt}}var yn=new Map;function Jr(e){var t=e.getAttribute("is")||e.nodeName,n=yn.get(t);if(n)return n;yn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=On(i);for(var o in r)r[o].set&&n.push(o);i=kt(i)}return n}function Ke(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var u;u=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var f=!1,a=ut(()=>(f=!1,u())),h=p;return(function(c,_){if(arguments.length>0){const d=_?A(a):c;return G(a,d),f=!0,i!==void 0&&(i=d),c}return ce&&f||(h.f&P)!==0?a.v:A(a)})}function Gr(e){return new Kr(e)}class Kr{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=hr(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return A(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Ln?!0:(A(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return G(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?Fr:bn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Te(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Ie(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Br(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let En;typeof HTMLElement=="function"&&(En=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=_t("slot");r!=="default"&&(s.name=r),mt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Wr(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]=We(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Gr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=mr(()=>{rn(()=>{this.$$r=!0;for(const r of je(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=We(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=We(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 je(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function We(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 Wr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Xr(e,t,n,r,i,s){let o=class extends En{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return je(t).map(l=>(t[l].attribute||l).toLowerCase())}};return je(t).forEach(l=>{Ie(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=We(l,u,t),this.$$d[l]=u;var f=this.$$c;if(f){var a=ve(f,l)?.get;a?f[l]=u:f.$set({[l]:u})}}})}),r.forEach(l=>{Ie(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}var Zr=Pr('<div class="skeleton-root svelte-10p6erh"><p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <p class="svelte-10p6erh"> </p> <button class="btn btn-primary svelte-10p6erh">Dispatch Event</button> <!></div>');const Qr={hash:"svelte-10p6erh",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;}
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
@@ -56,5 +56,5 @@ button.svelte-10p6erh {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
56
56
|
@media (min-width: 1200px) {
|
|
57
57
|
}
|
|
58
58
|
@media (min-width: 1400px) {
|
|
59
|
-
}`};function
|
|
59
|
+
}`};function xn(e,t){Dt(t,!0),Vr(e,Qr);let n=Ke(t,"id",7,""),r=Ke(t,"string",7,""),i=Ke(t,"json",7,"{}"),s=Ke(t,"boolean",7,!1),o=at(()=>r()?r().toUpperCase():""),l=at(()=>{if(typeof i()=="object")return i();try{return JSON.parse(i()||"{}")}catch{return{}}}),u=at(()=>s()===!0||s()==="true"||s()==="");function f(){t.$$host.dispatchEvent(new CustomEvent("event",{detail:{test:!0}}))}var a={get id(){return n()},set id(B=""){n(B),Te()},get string(){return r()},set string(B=""){r(B),Te()},get json(){return i()},set json(B="{}"){i(B),Te()},get boolean(){return s()},set boolean(B=!1){s(B),Te()}},h=Zr(),c=Ne(h),_=Ne(c);Ee(c);var d=Re(c,2),g=Ne(d);Ee(d);var b=Re(d,2),R=Ne(b);Ee(b);var q=Re(b,2),Pe=Ne(q);Ee(q);var Tn=Re(q,2),ei=Re(Tn,2);return Hr(ei,t,"content",{},B=>{var ti=jr("Default slot content");mt(B,ti)}),Ee(h),yr(B=>{Ur(h,"id",n()),Je(_,`String: ${r()??""}`),Je(g,`Upper: ${A(o)??""}`),Je(R,`Boolean: ${A(u)??""}`),Je(Pe,`JSON keys: ${B??""}`)},[()=>Object.keys(A(l)).join(", ")]),Rr("click",Tn,f),mt(e,h),Mt(a)}Or(["click"]),customElements.define("hb-skeleton-component",Xr(xn,{id:{},string:{},json:{},boolean:{}},["content"],[],{mode:"open"})),bt.Component=xn,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})})(this["skeleton-component"]=this["skeleton-component"]||{});
|
|
60
60
|
//# sourceMappingURL=main.iife.js.map
|