@htmlbricks/hb-messages-box 0.66.6 → 0.66.7
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 +5 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +49 -49
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
(function(mt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const On=1,kn=4,Cn=8,Pn=16,Mn=2,wt="[",yt="[!",$t="[?",bt="]",xe={},S=Symbol(),Et="http://www.w3.org/1999/xhtml",In=!1;var Ln=Array.isArray,Dn=Array.prototype.indexOf,ge=Array.prototype.includes,jn=Array.from,Ce=Object.keys,Pe=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,Fn=Object.getOwnPropertyDescriptors,Bn=Object.prototype,Hn=Array.prototype,Tt=Object.getPrototypeOf,xt=Object.isExtensible;const Yn=()=>{};function qn(e){for(var t=0;t<e.length;t++)e[t]()}function St(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const E=2,me=4,Me=8,Nt=1<<24,W=16,V=32,J=64,We=128,P=512,T=1024,N=2048,q=4096,X=8192,F=16384,Z=32768,At=1<<25,Ie=65536,Rt=1<<17,Un=1<<18,ae=1<<19,Vn=1<<20,ue=65536,Je=1<<21,Xe=1<<22,Q=1<<23,Le=Symbol("$state"),Ot=Symbol("legacy props"),zn=Symbol(""),z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Gn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),kt=3,Ze=8;function Kn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Wn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Jn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Zn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Qn(){throw new Error("https://svelte.dev/e/hydration_failed")}function er(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function tr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function nr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function rr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function sr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ir(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function we(e){y=e}let $;function ee(e){if(e===null)throw Qe(),xe;return $=e}function Ct(){return ee(ie($))}function et(e){if(y){if(ie($)!==null)throw Qe(),xe;$=e}}function lr(e=1){if(y){for(var t=e,n=$;t--;)n=ie(n);$=n}}function fr(e=!0){for(var t=0,n=$;;){if(n.nodeType===Ze){var r=n.data;if(r===bt){if(t===0)return n;t-=1}else(r===wt||r===yt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=ie(n);e&&n.remove(),n=s}}function Pt(e){return e===this.v}function or(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Mt(e){return!or(e,this.v)}let ar=!1,M=null;function ye(e){M=e}function It(e,t=!1,n){M={p:M,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function Lt(e){var t=M,n=t.e;if(n!==null){t.e=null;for(var r of n)sn(r)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function Dt(){return!0}let ce=[];function jt(){var e=ce;ce=[],qn(e)}function he(e){if(ce.length===0&&!Se){var t=ce;queueMicrotask(()=>{t===ce&&jt()})}ce.push(e)}function ur(){for(;ce.length>0;)jt()}function Ft(e){var t=g;if(t===null)return p.f|=Q,e;if((t.f&Z)===0&&(t.f&me)===0)throw e;te(e,t)}function te(e,t){for(;t!==null;){if((t.f&We)!==0){if((t.f&Z)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const cr=-7169;function b(e,t){e.f=e.f&cr|t}function tt(e){(e.f&P)!==0||e.deps===null?b(e,T):b(e,q)}function Bt(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&ue)===0||(t.f^=ue,Bt(t.deps))}function Ht(e,t,n){(e.f&N)!==0?t.add(e):(e.f&q)!==0&&n.add(e),Bt(e.deps),b(e,T)}let De=!1;function hr(e){var t=De;try{return De=!1,[e(),De]}finally{De=t}}const ne=new Set;let w=null,B=null,nt=null,Se=!1,rt=!1,$e=null,je=null;var Yt=0;let dr=1;class re{id=dr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#i=new Map;#o=new Map;#l=null;#t=[];#r=new Set;#s=new Set;#f=new Map;is_fork=!1;#c=!1;#a=new Set;#h(){return this.is_fork||this.#o.size>0}#_(){for(const r of this.#a)for(const s of r.#o.keys()){for(var t=!1,n=s;n.parent!==null;){if(this.#f.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#f.get(t);if(n){this.#f.delete(t);for(var r of n.d)b(r,N),this.schedule(r);for(r of n.m)b(r,q),this.schedule(r)}}#d(){if(Yt++>1e3&&(ne.delete(this),_r()),!this.#h()){for(const l of this.#r)this.#s.delete(l),b(l,N),this.schedule(l);for(const l of this.#s)b(l,q),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=$e=[],r=[],s=je=[];for(const l of t)try{this.#u(l,n,r)}catch(a){throw Gt(l),a}if(w=null,s.length>0){var i=re.ensure();for(const l of s)i.schedule(l)}if($e=null,je=null,this.#h()||this.#_()){this.#v(r),this.#v(n);for(const[l,a]of this.#f)zt(l,a)}else{this.#i.size===0&&ne.delete(this),this.#r.clear(),this.#s.clear();for(const l of this.#e)l(this);this.#e.clear(),qt(r),qt(n),this.#l?.resolve()}var f=w;if(this.#t.length>0){const l=f??=this;l.#t.push(...this.#t.filter(a=>!l.#t.includes(a)))}f!==null&&(ne.add(f),f.#d()),ne.has(this)||this.#p()}#u(t,n,r){t.f^=T;for(var s=t.first;s!==null;){var i=s.f,f=(i&(V|J))!==0,l=f&&(i&T)!==0,a=l||(i&X)!==0||this.#f.has(s);if(!a&&s.fn!==null){f?s.f^=T:(i&me)!==0?n.push(s):Re(s)&&((i&W)!==0&&this.#s.add(s),Te(s));var o=s.first;if(o!==null){s=o;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#v(t){for(var n=0;n<t.length;n+=1)Ht(t[n],this.#r,this.#s)}capture(t,n,r=!1){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,[t.v,r]),B?.set(t,t.v))}activate(){w=this}deactivate(){w=null,B=null}flush(){try{rt=!0,w=this,this.#d()}finally{Yt=0,nt=null,$e=null,je=null,rt=!1,w=null,B=null,se.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ne.delete(this)}#p(){for(const o of ne){var t=o.id<this.id,n=[];for(const[u,[h,c]]of this.current){if(o.current.has(u)){var r=o.current.get(u)[0];if(t&&h!==r)o.current.set(u,[h,c]);else continue}n.push(u)}var s=[...o.current.keys()].filter(u=>!this.current.has(u));if(s.length===0)t&&o.discard();else if(n.length>0){o.activate();var i=new Set,f=new Map;for(var l of n)Ut(l,s,i,f);if(o.#t.length>0){o.apply();for(var a of o.#t)o.#u(a,[],[]);o.#t=[]}o.deactivate()}}for(const o of ne)o.#a.has(this)&&(o.#a.delete(this),o.#a.size===0&&!o.#h()&&(o.activate(),o.#d()))}increment(t,n){let r=this.#i.get(n)??0;if(this.#i.set(n,r+1),t){let s=this.#o.get(n)??0;this.#o.set(n,s+1)}}decrement(t,n,r){let s=this.#i.get(n)??0;if(s===1?this.#i.delete(n):this.#i.set(n,s-1),t){let i=this.#o.get(n)??0;i===1?this.#o.delete(n):this.#o.set(n,i-1)}this.#c||r||(this.#c=!0,he(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#s.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#l??=St()).promise}static ensure(){if(w===null){const t=w=new re;rt||(ne.add(w),Se||he(()=>{w===t&&t.flush()}))}return w}apply(){{B=null;return}}schedule(t){if(nt=t,t.b?.is_pending&&(t.f&(me|Me|Nt))!==0&&(t.f&Z)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if($e!==null&&n===g&&(p===null||(p.f&E)===0))return;if((r&(J|V))!==0){if((r&T)===0)return;n.f^=T}}this.#t.push(n)}}function be(e){var t=Se;Se=!0;try{for(var n;;){if(ur(),w===null)return n;w.flush()}}finally{Se=t}}function _r(){try{Zn()}catch(e){te(e,nt)}}let G=null;function qt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(F|X))===0&&Re(r)&&(G=new Set,Te(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&on(r),G?.size>0)){se.clear();for(const s of G){if((s.f&(F|X))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)G.has(f)&&(G.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const a=i[l];(a.f&(F|X))===0&&Te(a)}}G.clear()}}G=null}}function Ut(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&E)!==0?Ut(s,t,n,r):(i&(Xe|W))!==0&&(i&N)===0&&Vt(s,t,r)&&(b(s,N),st(s))}}function Vt(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(ge.call(t,s))return!0;if((s.f&E)!==0&&Vt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function st(e){w.schedule(e)}function zt(e,t){if(!((e.f&V)!==0&&(e.f&T)!==0)){(e.f&N)!==0?t.d.push(e):(e.f&q)!==0&&t.m.push(e),b(e,T);for(var n=e.first;n!==null;)zt(n,t),n=n.next}}function Gt(e){b(e,T);for(var t=e.first;t!==null;)Gt(t),t=t.next}function vr(e){let t=0,n=Ne(0),r;return()=>{ht()&&(C(n),ln(()=>(t===0&&(r=mn(()=>e(()=>Ae(n)))),t+=1,()=>{he(()=>{t-=1,t===0&&(r?.(),r=void 0,Ae(n))})})))}}var pr=Ie|ae;function gr(e,t,n,r){new mr(e,t,n,r)}class mr{parent;is_pending=!1;transform_error;#e;#n=y?$:null;#i;#o;#l;#t=null;#r=null;#s=null;#f=null;#c=0;#a=0;#h=!1;#_=new Set;#d=new Set;#u=null;#v=vr(()=>(this.#u=Ne(this.#c),()=>{this.#u=null}));constructor(t,n,r,s){this.#e=t,this.#i=n,this.#o=i=>{var f=g;f.b=this,f.f|=We,r(i)},this.parent=g.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#l=jr(()=>{if(y){const i=this.#n;Ct();const f=i.data===yt;if(i.data.startsWith($t)){const a=JSON.parse(i.data.slice($t.length));this.#$(a)}else f?this.#b():this.#p()}else this.#w()},pr),y&&(this.#e=$)}#p(){try{this.#t=de(()=>this.#o(this.#e))}catch(t){this.error(t)}}#$(t){const n=this.#i.failed;n&&(this.#s=de(()=>{n(this.#e,()=>t,()=>()=>{})}))}#b(){const t=this.#i.pending;t&&(this.is_pending=!0,this.#r=de(()=>t(this.#e)),he(()=>{var n=this.#f=document.createDocumentFragment(),r=He();n.append(r),this.#t=this.#m(()=>de(()=>this.#o(r))),this.#a===0&&(this.#e.before(n),this.#f=null,Ue(this.#r,()=>{this.#r=null}),this.#g(w))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#a=0,this.#c=0,this.#t=de(()=>{this.#o(this.#e)}),this.#a>0){var t=this.#f=document.createDocumentFragment();Hr(this.#t,t);const n=this.#i.pending;this.#r=de(()=>n(this.#e))}else this.#g(w)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#_,this.#d)}defer_effect(t){Ht(t,this.#_,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#m(t){var n=g,r=p,s=M;L(this.#l),R(this.#l),ye(this.#l.ctx);try{return re.ensure(),t()}catch(i){return Ft(i),null}finally{L(n),R(r),ye(s)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#a+=t,this.#a===0&&(this.#g(n),this.#r&&Ue(this.#r,()=>{this.#r=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,he(()=>{this.#h=!1,this.#u&&Be(this.#u,this.#c)}))}get_effect_pending(){return this.#v(),C(this.#u)}error(t){var n=this.#i.onerror;let r=this.#i.failed;if(!n&&!r)throw t;this.#t&&(H(this.#t),this.#t=null),this.#r&&(H(this.#r),this.#r=null),this.#s&&(H(this.#s),this.#s=null),y&&(ee(this.#n),lr(),ee(fr()));var s=!1,i=!1;const f=()=>{if(s){ir();return}s=!0,i&&sr(),this.#s!==null&&Ue(this.#s,()=>{this.#s=null}),this.#m(()=>{this.#w()})},l=a=>{try{i=!0,n?.(a,f),i=!1}catch(o){te(o,this.#l&&this.#l.parent)}r&&(this.#s=this.#m(()=>{try{return de(()=>{var o=g;o.b=this,o.f|=We,r(this.#e,()=>a,()=>f)})}catch(o){return te(o,this.#l.parent),null}}))};he(()=>{var a;try{a=this.transform_error(t)}catch(o){te(o,this.#l&&this.#l.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,o=>te(o,this.#l&&this.#l.parent)):l(a)})}}function wr(e,t,n,r){const s=it;var i=e.filter(c=>!c.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var f=g,l=yr(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function o(c){l();try{r(c)}catch(d){(f.f&F)===0&&te(d,f)}Fe()}if(n.length===0){a.then(()=>o(t.map(s)));return}var u=Kt();function h(){Promise.all(n.map(c=>$r(c))).then(c=>o([...t.map(s),...c])).catch(c=>te(c,f)).finally(()=>u())}a?a.then(()=>{l(),h(),Fe()}):h()}function yr(){var e=g,t=p,n=M,r=w;return function(i=!0){L(e),R(t),ye(n),i&&(e.f&F)===0&&(r?.activate(),r?.apply())}}function Fe(e=!0){L(null),R(null),ye(null),e&&w?.deactivate()}function Kt(){var e=g,t=e.b,n=w,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(s=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,s)}}function it(e){var t=E|N,n=p!==null&&(p.f&E)!==0?p:null;return g!==null&&(g.f|=ae),{ctx:M,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??g,ac:null}}function $r(e,t,n){let r=g;r===null&&Kn();var s=void 0,i=Ne(S),f=!p,l=new Map;return Dr(()=>{var a=g,o=St();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(Fe)}catch(d){o.reject(d),Fe()}var u=w;if(f){if((a.f&Z)!==0)var h=Kt();if(r.b.is_rendered())l.get(u)?.reject(z),l.delete(u);else{for(const d of l.values())d.reject(z);l.clear()}l.set(u,o)}const c=(d,_=void 0)=>{if(h){var m=_===z;h(m)}if(!(_===z||(a.f&F)!==0)){if(u.activate(),_)i.f|=Q,Be(i,_);else{(i.f&Q)!==0&&(i.f^=Q),Be(i,d);for(const[v,A]of l){if(l.delete(v),v===u)break;A.reject(z)}}u.deactivate()}};o.promise.then(c,d=>c(null,d||"unknown"))}),rn(()=>{for(const a of l.values())a.reject(z)}),new Promise(a=>{function o(u){function h(){u===s?a(i):o(s)}u.then(h,h)}o(s)})}function br(e){const t=it(e);return t.equals=Mt,t}function Er(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Tr(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&F)===0?t:null;t=t.parent}return null}function lt(e){var t,n=g;L(Tr(e));try{e.f&=~ue,Er(e),t=vn(e)}finally{L(n)}return t}function Wt(e){var t=e.v,n=lt(e);if(!e.equals(n)&&(e.wv=dn(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){b(e,T);return}le||(B!==null?(ht()||w?.is_fork)&&B.set(e,n):tt(e))}function xr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(z),t.teardown=Yn,t.ac=null,Oe(t,0),dt(t))}function Jt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Te(t)}let ft=new Set;const se=new Map;let Xt=!1;function Ne(e,t){var n={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return n}function K(e,t){const n=Ne(e);return Yr(n),n}function Sr(e,t=!1,n=!0){const r=Ne(e);return t||(r.equals=Mt),r}function I(e,t,n=!1){p!==null&&(!Y||(p.f&Rt)!==0)&&Dt()&&(p.f&(E|W|Xe|Rt))!==0&&(D===null||!ge.call(D,e))&&rr();let r=n?Ee(t):t;return Be(e,r,je)}function Be(e,t,n=null){if(!e.equals(t)){var r=e.v;le?se.set(e,t):se.set(e,r),e.v=t;var s=re.ensure();if(s.capture(e,r),(e.f&E)!==0){const i=e;(e.f&N)!==0&<(i),B===null&&tt(i)}e.wv=dn(),Zt(e,N,n),g!==null&&(g.f&T)!==0&&(g.f&(V|J))===0&&(j===null?qr([e]):j.push(e)),!s.is_fork&&ft.size>0&&!Xt&&Nr()}return t}function Nr(){Xt=!1;for(const e of ft)(e.f&T)!==0&&b(e,q),Re(e)&&Te(e);ft.clear()}function Ae(e){I(e,e.v+1)}function Zt(e,t,n){var r=e.reactions;if(r!==null)for(var s=r.length,i=0;i<s;i++){var f=r[i],l=f.f,a=(l&N)===0;if(a&&b(f,t),(l&E)!==0){var o=f;B?.delete(o),(l&ue)===0&&(l&P&&(f.f|=ue),Zt(o,q,n))}else if(a){var u=f;(l&W)!==0&&G!==null&&G.add(u),n!==null?n.push(u):st(u)}}}function Ee(e){if(typeof e!="object"||e===null||Le in e)return e;const t=Tt(e);if(t!==Bn&&t!==Hn)return e;var n=new Map,r=Ln(e),s=K(0),i=ve,f=l=>{if(ve===i)return l();var a=p,o=ve;R(null),hn(i);var u=l();return R(a),hn(o),u};return r&&n.set("length",K(e.length)),new Proxy(e,{defineProperty(l,a,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&tr();var u=n.get(a);return u===void 0?f(()=>{var h=K(o.value);return n.set(a,h),h}):I(u,o.value,!0),!0},deleteProperty(l,a){var o=n.get(a);if(o===void 0){if(a in l){const u=f(()=>K(S));n.set(a,u),Ae(s)}}else I(o,S),Ae(s);return!0},get(l,a,o){if(a===Le)return e;var u=n.get(a),h=a in l;if(u===void 0&&(!h||oe(l,a)?.writable)&&(u=f(()=>{var d=Ee(h?l[a]:S),_=K(d);return _}),n.set(a,u)),u!==void 0){var c=C(u);return c===S?void 0:c}return Reflect.get(l,a,o)},getOwnPropertyDescriptor(l,a){var o=Reflect.getOwnPropertyDescriptor(l,a);if(o&&"value"in o){var u=n.get(a);u&&(o.value=C(u))}else if(o===void 0){var h=n.get(a),c=h?.v;if(h!==void 0&&c!==S)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return o},has(l,a){if(a===Le)return!0;var o=n.get(a),u=o!==void 0&&o.v!==S||Reflect.has(l,a);if(o!==void 0||g!==null&&(!u||oe(l,a)?.writable)){o===void 0&&(o=f(()=>{var c=u?Ee(l[a]):S,d=K(c);return d}),n.set(a,o));var h=C(o);if(h===S)return!1}return u},set(l,a,o,u){var h=n.get(a),c=a in l;if(r&&a==="length")for(var d=o;d<h.v;d+=1){var _=n.get(d+"");_!==void 0?I(_,S):d in l&&(_=f(()=>K(S)),n.set(d+"",_))}if(h===void 0)(!c||oe(l,a)?.writable)&&(h=f(()=>K(void 0)),I(h,Ee(o)),n.set(a,h));else{c=h.v!==S;var m=f(()=>Ee(o));I(h,m)}var v=Reflect.getOwnPropertyDescriptor(l,a);if(v?.set&&v.set.call(u,o),!c){if(r&&typeof a=="string"){var A=n.get("length"),x=Number(a);Number.isInteger(x)&&x>=A.v&&I(A,x+1)}Ae(s)}return!0},ownKeys(l){C(s);var a=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==S});for(var[o,u]of n)u.v!==S&&!(o in l)&&a.push(o);return a},setPrototypeOf(){nr()}})}var Qt,en,tn,nn;function ot(){if(Qt===void 0){Qt=window,en=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;tn=oe(t,"firstChild").get,nn=oe(t,"nextSibling").get,xt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),xt(n)&&(n.__t=void 0)}}function He(e=""){return document.createTextNode(e)}function Ye(e){return tn.call(e)}function ie(e){return nn.call(e)}function at(e,t){if(!y)return Ye(e);var n=Ye($);return n===null&&(n=$.appendChild(He())),ee(n),n}function Ar(e,t=1,n=!1){let r=y?$:e;for(var s;t--;)s=r,r=ie(r);if(!y)return r;if(n){if(r?.nodeType!==kt){var i=He();return r===null?s?.after(i):r.before(i),ee(i),i}Or(r)}return ee(r),r}function Rr(e){e.textContent=""}function ut(e,t,n){return document.createElementNS(Et,e,void 0)}function Or(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===kt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function ct(e){var t=p,n=g;R(null),L(null);try{return e()}finally{R(t),L(n)}}function kr(e){g===null&&(p===null&&Xn(),Jn()),le&&Wn()}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 U(e,t){var n=g;n!==null&&(n.f&X)!==0&&(e|=X);var r={ctx:M,deps:null,nodes:null,f:e|N|P,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&me)!==0)$e!==null?$e.push(r):re.ensure().schedule(r);else if(t!==null){try{Te(r)}catch(f){throw H(r),f}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&ae)===0&&(s=s.first,(e&W)!==0&&(e&Ie)!==0&&s!==null&&(s.f|=Ie))}if(s!==null&&(s.parent=n,n!==null&&Cr(s,n),p!==null&&(p.f&E)!==0&&(e&J)===0)){var i=p;(i.effects??=[]).push(s)}return r}function ht(){return p!==null&&!Y}function rn(e){const t=U(Me,null);return b(t,T),t.teardown=e,t}function Pr(e){kr();var t=g.f,n=!p&&(t&V)!==0&&(t&Z)===0;if(n){var r=M;(r.e??=[]).push(e)}else return sn(e)}function sn(e){return U(me|Vn,e)}function Mr(e){re.ensure();const t=U(J|ae,e);return()=>{H(t)}}function Ir(e){re.ensure();const t=U(J|ae,e);return(n={})=>new Promise(r=>{n.outro?Ue(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function Lr(e){return U(me,e)}function Dr(e){return U(Xe|ae,e)}function ln(e,t=0){return U(Me|t,e)}function qe(e,t=[],n=[],r=[]){wr(r,t,n,s=>{U(Me,()=>e(...s.map(C)))})}function jr(e,t=0){var n=U(W|t,e);return n}function de(e){return U(V|ae,e)}function fn(e){var t=e.teardown;if(t!==null){const n=le,r=p;un(!0),R(null);try{t.call(null)}finally{un(n),R(r)}}}function dt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&ct(()=>{s.abort(z)});var r=n.next;(n.f&J)!==0?n.parent=null:H(n,t),n=r}}function Fr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&V)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&Un)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Br(e.nodes.start,e.nodes.end),n=!0),b(e,At),dt(e,t&&!n),Oe(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();fn(e),e.f^=At,e.f|=F;var s=e.parent;s!==null&&s.first!==null&&on(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Br(e,t){for(;e!==null;){var n=e===t?null:ie(e);e.remove(),e=n}}function on(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=[];an(e,r,!0);var s=()=>{n&&H(e),t&&t()},i=r.length;if(i>0){var f=()=>--i||s();for(var l of r)l.out(f)}else s()}function an(e,t,n){if((e.f&X)===0){e.f^=X;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,f=(s.f&Ie)!==0||(s.f&V)!==0&&(e.f&W)!==0;an(s,t,f?n:!1),s=i}}}function Hr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:ie(n);t.append(n),n=s}}let Ve=!1,le=!1;function un(e){le=e}let p=null,Y=!1;function R(e){p=e}let g=null;function L(e){g=e}let D=null;function Yr(e){p!==null&&(D===null?D=[e]:D.push(e))}let O=null,k=0,j=null;function qr(e){j=e}let cn=1,_e=0,ve=_e;function hn(e){ve=e}function dn(){return++cn}function Re(e){var t=e.f;if((t&N)!==0)return!0;if(t&E&&(e.f&=~ue),(t&q)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Re(i)&&Wt(i),i.wv>e.wv)return!0}(t&P)!==0&&B===null&&b(e,T)}return!1}function _n(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&ge.call(D,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&E)!==0?_n(i,t,!1):t===i&&(n?b(i,N):(i.f&T)!==0&&b(i,q),st(i))}}function vn(e){var t=O,n=k,r=j,s=p,i=D,f=M,l=Y,a=ve,o=e.f;O=null,k=0,j=null,p=(o&(V|J))===0?e:null,D=null,ye(e.ctx),Y=!1,ve=++_e,e.ac!==null&&(ct(()=>{e.ac.abort(z)}),e.ac=null);try{e.f|=Je;var u=e.fn,h=u();e.f|=Z;var c=e.deps,d=w?.is_fork;if(O!==null){var _;if(d||Oe(e,k),c!==null&&k>0)for(c.length=k+O.length,_=0;_<O.length;_++)c[k+_]=O[_];else e.deps=c=O;if(ht()&&(e.f&P)!==0)for(_=k;_<c.length;_++)(c[_].reactions??=[]).push(e)}else!d&&c!==null&&k<c.length&&(Oe(e,k),c.length=k);if(Dt()&&j!==null&&!Y&&c!==null&&(e.f&(E|q|N))===0)for(_=0;_<j.length;_++)_n(j[_],e);if(s!==null&&s!==e){if(_e++,s.deps!==null)for(let m=0;m<n;m+=1)s.deps[m].rv=_e;if(t!==null)for(const m of t)m.rv=_e;j!==null&&(r===null?r=j:r.push(...j))}return(e.f&Q)!==0&&(e.f^=Q),h}catch(m){return Ft(m)}finally{e.f^=Je,O=t,k=n,j=r,p=s,D=i,ye(f),Y=l,ve=a}}function Ur(e,t){let n=t.reactions;if(n!==null){var r=Dn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&E)!==0&&(O===null||!ge.call(O,t))){var i=t;(i.f&P)!==0&&(i.f^=P,i.f&=~ue),tt(i),xr(i),Oe(i,0)}}function Oe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ur(e,n[r])}function Te(e){var t=e.f;if((t&F)===0){b(e,T);var n=g,r=Ve;g=e,Ve=!0;try{(t&(W|Nt))!==0?Fr(e):dt(e),fn(e);var s=vn(e);e.teardown=typeof s=="function"?s:null,e.wv=cn;var i;In&&ar&&(e.f&N)!==0&&e.deps}finally{Ve=r,g=n}}}function C(e){var t=e.f,n=(t&E)!==0;if(p!==null&&!Y){var r=g!==null&&(g.f&F)!==0;if(!r&&(D===null||!ge.call(D,e))){var s=p.deps;if((p.f&Je)!==0)e.rv<_e&&(e.rv=_e,O===null&&s!==null&&s[k]===e?k++:O===null?O=[e]:O.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:ge.call(i,p)||i.push(p)}}}if(le&&se.has(e))return se.get(e);if(n){var f=e;if(le){var l=f.v;return((f.f&T)===0&&f.reactions!==null||gn(f))&&(l=lt(f)),se.set(f,l),l}var a=(f.f&P)===0&&!Y&&p!==null&&(Ve||(p.f&P)!==0),o=(f.f&Z)===0;Re(f)&&(a&&(f.f|=P),Wt(f)),a&&!o&&(Jt(f),pn(f))}if(B?.has(e))return B.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function pn(e){if(e.f|=P,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&P)===0&&(Jt(t),pn(t))}function gn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(se.has(t)||(t.f&E)!==0&&gn(t))return!0;return!1}function mn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const ze=Symbol("events"),Vr=new Set,wn=new Set;function zr(e,t,n,r={}){function s(i){if(r.capture||_t.call(t,i),!i.cancelBubble)return ct(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?he(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Gr(e,t,n,r,s){var i={capture:r,passive:s},f=zr(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&rn(()=>{t.removeEventListener(e,f,i)})}let yn=null;function _t(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;yn=e;var f=0,l=yn===e&&e[ze];if(l){var a=s.indexOf(l);if(a!==-1&&(t===document||t===window)){e[ze]=t;return}var o=s.indexOf(t);if(o===-1)return;a<=o&&(f=a)}if(i=s[f]||e.target,i!==t){Pe(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=p,h=g;R(null),L(null);try{for(var c,d=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var m=i[ze]?.[r];m!=null&&(!i.disabled||e.target===i)&&m.call(i,e)}catch(v){c?d.push(v):c=v}if(e.cancelBubble||_===t||_===null)break;i=_}if(c){for(let v of d)queueMicrotask(()=>{throw v});throw c}}finally{e[ze]=t,delete e.currentTarget,R(u),L(h)}}}const Kr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Wr(e){return Kr?.createHTML(e)??e}function Jr(e){var t=ut("template");return t.innerHTML=Wr(e.replaceAll("<!>","<!---->")),t.content}function vt(e,t){var n=g;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Xr(e,t){var n=(t&Mn)!==0,r,s=!e.startsWith("<!>");return()=>{if(y)return vt($,null),$;r===void 0&&(r=Jr(s?e:"<!>"+e),r=Ye(r));var i=n||en?document.importNode(r,!0):r.cloneNode(!0);return vt(i,i),i}}function $n(e,t){if(y){var n=g;((n.f&Z)===0||n.nodes.end===null)&&(n.nodes.end=$),Ct();return}e!==null&&e.before(t)}const Zr=["touchstart","touchmove"];function Qr(e){return Zr.includes(e)}function bn(e,t){return En(e,t)}function es(e,t){ot(),t.intro=t.intro??!1;const n=t.target,r=y,s=$;try{for(var i=Ye(n);i&&(i.nodeType!==Ze||i.data!==wt);)i=ie(i);if(!i)throw xe;we(!0),ee(i);const f=En(e,{...t,anchor:i});return we(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
-
`).some(
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,ee=()=>{};function te(e){for(var t=0;t<e.length;t++)e[t]()}function g(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var _=1024,v=2048,y=4096,ne=8192,re=16384,ie=32768,ae=1<<25,oe=65536,se=1<<19,ce=1<<20,le=65536,ue=1<<21,de=1<<22,fe=1<<23,pe=Symbol(`$state`),me=Symbol(`legacy props`),he=Symbol(``),b=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function _e(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ve(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ye(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function be(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function xe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Se(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ce(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function we(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function De(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Oe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var x=!1;function Ae(e){x=e}var S;function C(e){if(e===null)throw Oe(),t;return S=e}function je(){return C(I(S))}function Me(e){if(x){if(I(S)!==null)throw Oe(),t;S=e}}function Ne(e=1){if(x){for(var t=e,n=S;t--;)n=I(n);S=n}}function Pe(e=!0){for(var t=0,n=S;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=I(n);e&&n.remove(),n=i}}function Fe(e){return e===this.v}function Ie(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Le(e){return!Ie(e,this.v)}var Re=!1,ze=!1,w=null;function Be(e){w=e}function Ve(e,t=!1,n){w={p:w,i:!1,c:null,e:null,s:e,x:null,r:W,l:ze&&!t?{s:null,u:null,$:[]}:null}}function He(e){var t=w,n=t.e;if(n!==null){t.e=null;for(var r of n)sn(r)}return e!==void 0&&(t.x=e),t.i=!0,w=t.p,e??{}}function Ue(){return!ze||w!==null&&w.l===null}var T=[];function We(){var e=T;T=[],te(e)}function E(e){if(T.length===0&&!tt){var t=T;queueMicrotask(()=>{t===T&&We()})}T.push(e)}function Ge(){for(;T.length>0;)We()}function Ke(e){var t=W;if(t===null)return V.f|=fe,e;if(!(t.f&32768)&&!(t.f&4))throw e;D(e,t)}function D(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var qe=~(v|y|_);function O(e,t){e.f=e.f&qe|t}function Je(e){e.f&512||e.deps===null?O(e,_):O(e,y)}function Ye(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=le,Ye(t.deps))}function Xe(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ye(e.deps),O(e,_)}var Ze=!1,Qe=!1;function $e(e){var t=Qe;try{return Qe=!1,[e(),Qe]}finally{Qe=t}}var k=new Set,A=null,j=null,et=null,tt=!1,nt=!1,rt=null,it=null,at=0,ot=1,st=class e{id=ot++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)O(n,v),this.schedule(n);for(n of t.m)O(n,y),this.schedule(n)}}#p(){if(at++>1e3&&(k.delete(this),lt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),O(e,v),this.schedule(e);for(let e of this.#s)O(e,y),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=rt=[],r=[],i=it=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw ht(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(rt=null,it=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)mt(e,t)}else{this.#n.size===0&&k.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ut(r),ut(n),this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(k.add(o),o.#p()),k.has(this)||this.#g()}#m(e,t,n){e.f^=_;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=_:i&4?t.push(r):Re&&i&16777224?n.push(r):jn(r)&&(i&16&&this.#s.add(r),In(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Xe(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{nt=!0,A=this,this.#p()}finally{at=0,et=null,rt=null,it=null,nt=!1,A=null,j=null,N.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),k.delete(this)}#g(){for(let c of k){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)dt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of k)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,E(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=g()).promise}static ensure(){if(A===null){let t=A=new e;nt||(k.add(A),tt||E(()=>{A===t&&t.flush()}))}return A}apply(){if(!Re||!this.is_fork&&k.size===1){j=null;return}j=new Map;for(let[e,[t]]of this.current)j.set(e,t);for(let n of k)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)j.has(e)||j.set(e,t)}}schedule(e){if(et=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(rt!==null&&t===W&&(Re||(V===null||!(V.f&2))&&!Ze))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#a.push(t)}};function ct(e){var t=tt;tt=!0;try{var n;for(e&&(A!==null&&!A.is_fork&&A.flush(),n=e());;){if(Ge(),A===null)return n;A.flush()}}finally{tt=t}}function lt(){try{xe()}catch(e){D(e,et)}}var M=null;function ut(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&jn(r)&&(M=new Set,In(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yn(r),M?.size>0)){N.clear();for(let e of M){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)M.has(n)&&(M.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||In(n)}}M.clear()}}M=null}}function dt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?dt(i,t,n,r):e&4194320&&!(e&2048)&&ft(i,t,r)&&(O(i,v),pt(i))}}function ft(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&ft(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function pt(e){A.schedule(e)}function mt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),O(e,_);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function ht(e){O(e,_);for(var t=e.first;t!==null;)ht(t),t=t.next}function gt(e){let t=0,n=Ft(0),r;return()=>{rn()&&(Q(n),fn(()=>(t===0&&(r=zn(()=>e(()=>zt(n)))),t+=1,()=>{E(()=>{--t,t===0&&(r?.(),r=void 0,zt(n))})})))}}var _t=oe|se;function vt(e,t,n,r){new yt(e,t,n,r)}var yt=class{parent;is_pending=!1;transform_error;#e;#t=x?S:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=gt(()=>(this.#m=Ft(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=W;t.b=this,t.f|=128,n(e)},this.parent=W.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=mn(()=>{if(x){let e=this.#t;je();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},_t),x&&(this.#e=S)}#g(){try{this.#a=R(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=R(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=R(()=>e(this.#e)),E(()=>{var e=this.#c=document.createDocumentFragment(),t=qt();e.append(t),this.#a=this.#x(()=>R(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,bn(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=R(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Sn(this.#a,e);let t=this.#n.pending;this.#o=R(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Xe(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=W,n=V,r=w;G(this.#i),U(this.#i),Be(this.#i.ctx);try{return st.ensure(),e()}catch(e){return Ke(e),null}finally{G(t),U(n),Be(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&bn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,E(()=>{this.#d=!1,this.#m&&Lt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(z(this.#a),null),this.#o&&=(z(this.#o),null),this.#s&&=(z(this.#s),null),x&&(C(this.#t),Ne(),C(Pe()));var r=!1,i=!1;let a=()=>{if(r){ke();return}r=!0,i&&De(),this.#s!==null&&bn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){D(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return R(()=>{var t=W;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return D(e,this.#i.parent),null}}))};E(()=>{var t;try{t=this.transform_error(e)}catch(e){D(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>D(e,this.#i&&this.#i.parent)):o(t)})}};function bt(e,t,n,r){let i=Ue()?wt:Et;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=W,s=xt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||D(e,o)}St()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ct();function d(){Promise.all(n.map(e=>Tt(e))).then(e=>l([...t.map(i),...e])).catch(e=>D(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),St()}):d()}function xt(){var e=W,t=V,n=w,r=A;return function(i=!0){G(e),U(t),Be(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function St(e=!0){G(null),U(null),Be(null),e&&A?.deactivate()}function Ct(){var e=W,t=e.b,n=A,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 wt(e){var t=2|v,r=V!==null&&V.f&2?V:null;return W!==null&&(W.f|=se),{ctx:w,deps:null,effects:null,equals:Fe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??W,ac:null}}function Tt(e,t,r){let i=W;i===null&&_e();var a=void 0,o=Ft(n),s=!V,c=new Map;return dn(()=>{var t=W,n=g();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(St)}catch(e){n.reject(e),St()}var r=A;if(s){if(t.f&32768)var l=Ct();if(i.b.is_rendered())c.get(r)?.reject(b),c.delete(r);else{for(let e of c.values())e.reject(b);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===b),!(n===b||t.f&16384)){if(r.activate(),n)o.f|=fe,Lt(o,n);else{o.f&8388608&&(o.f^=fe),Lt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(b)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),an(()=>{for(let e of c.values())e.reject(b)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Et(e){let t=wt(e);return t.equals=Le,t}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function Ot(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function kt(e){var t,n=W;G(Ot(e));try{e.f&=~le,Dt(e),t=Nn(e)}finally{G(n)}return t}function At(e){var t=e.v,n=kt(e);if(!e.equals(n)&&(e.wv=An(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t,!0),e.deps===null))){O(e,_);return}B||(j===null?Je(e):(rn()||A?.is_fork)&&j.set(e,n))}function jt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(b),t.teardown=ee,t.ac=null,Fn(t,0),gn(t))}function Mt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&In(t)}var Nt=new Set,N=new Map,Pt=!1;function Ft(e,t){return{f:0,v:e,reactions:null,equals:Fe,rv:0,wv:0}}function P(e,t){let n=Ft(e,t);return En(n),n}function It(e,t=!1,n=!0){let r=Ft(e);return t||(r.equals=Le),ze&&n&&w!==null&&w.l!==null&&(w.l.s??=[]).push(r),r}function F(e,t,n=!1){return V!==null&&(!H||V.f&131072)&&Ue()&&V.f&4325394&&(K===null||!o.call(K,e))&&Ee(),Lt(e,n?Vt(t):t,it)}function Lt(e,t,n=null){if(!e.equals(t)){var r=e.v;B?N.set(e,t):N.set(e,r),e.v=t;var i=st.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&kt(t),j===null&&Je(t)}e.wv=An(),Bt(e,v,n),Ue()&&W!==null&&W.f&1024&&!(W.f&96)&&(Y===null?Dn([e]):Y.push(e)),!i.is_fork&&Nt.size>0&&!Pt&&Rt()}return t}function Rt(){Pt=!1;for(let e of Nt)e.f&1024&&O(e,y),jn(e)&&In(e);Nt.clear()}function zt(e){F(e,e.v+1)}function Bt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ue(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===W)){var l=(c&v)===0;if(l&&O(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=le),Bt(u,y,n))}else if(l){var d=s;c&16&&M!==null&&M.add(d),n===null?pt(d):n.push(d)}}}}function Vt(e){if(typeof e!=`object`||!e||pe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=P(0),s=null,c=Z,l=e=>{if(Z===c)return e();var t=V,n=Z;U(null),kn(c);var r=e();return U(t),kn(n),r};return a&&r.set(`length`,P(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&we();var i=r.get(t);return i===void 0?l(()=>{var e=P(n.value,s);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>P(n,s));r.set(t,e),zt(o)}}else F(i,n),zt(o);return!0},get(t,i,a){if(i===pe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>P(Vt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=Q(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=Q(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===pe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||W!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>P(a?Vt(e[t]):n,s)),r.set(t,i)),Q(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>P(n,s)),r.set(p+``,m)):F(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>P(void 0,s)),F(d,Vt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Vt(i));F(d,h)}var ee=Reflect.getOwnPropertyDescriptor(e,t);if(ee?.set&&ee.set.call(c,i),!f){if(a&&typeof t==`string`){var te=r.get(`length`),g=Number(t);Number.isInteger(g)&&g>=te.v&&F(te,g+1)}zt(o)}return!0},ownKeys(e){Q(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Te()}})}var Ht,Ut,Wt,Gt;function Kt(){if(Ht===void 0){Ht=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=u(t,`firstChild`).get,Gt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function qt(e=``){return document.createTextNode(e)}function Jt(e){return Wt.call(e)}function I(e){return Gt.call(e)}function Yt(e,t){if(!x)return Jt(e);var n=Jt(S);if(n===null)n=S.appendChild(qt());else if(t&&n.nodeType!==3){var r=qt();return n?.before(r),C(r),r}return t&&$t(n),C(n),n}function Xt(e,t=1,n=!1){let r=x?S:e;for(var i;t--;)i=r,r=I(r);if(!x)return r;if(n){if(r?.nodeType!==3){var a=qt();return r===null?i?.after(a):r.before(a),C(a),a}$t(r)}return C(r),r}function Zt(e){e.textContent=``}function Qt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function $t(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function en(e){var t=V,n=W;U(null),G(null);try{return e()}finally{U(t),G(n)}}function tn(e){W===null&&(V===null&&be(e),ye()),B&&ve(e)}function nn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function L(e,t){var n=W;n!==null&&n.f&8192&&(e|=ne);var r={ctx:w,deps:null,nodes:null,f:e|v|512,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&4)rt===null?st.ensure().schedule(r):rt.push(r);else if(t!==null){try{In(r)}catch(e){throw z(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=oe))}if(i!==null&&(i.parent=n,n!==null&&nn(i,n),V!==null&&V.f&2&&!(e&64))){var a=V;(a.effects??=[]).push(i)}return r}function rn(){return V!==null&&!H}function an(e){let t=L(8,null);return O(t,_),t.teardown=e,t}function on(e){tn(`$effect`);var t=W.f;if(!V&&t&32&&!(t&32768)){var n=w;(n.e??=[]).push(e)}else return sn(e)}function sn(e){return L(4|ce,e)}function cn(e){st.ensure();let t=L(64|se,e);return()=>{z(t)}}function ln(e){st.ensure();let t=L(64|se,e);return(e={})=>new Promise(n=>{e.outro?bn(t,()=>{z(t),n(void 0)}):(z(t),n(void 0))})}function un(e){return L(4,e)}function dn(e){return L(de|se,e)}function fn(e,t=0){return L(8|t,e)}function pn(e,t=[],n=[],r=[]){bt(r,t,n,t=>{L(8,()=>e(...t.map(Q)))})}function mn(e,t=0){return L(16|t,e)}function R(e){return L(32|se,e)}function hn(e){var t=e.teardown;if(t!==null){let e=B,n=V;Tn(!0),U(null);try{t.call(null)}finally{Tn(e),U(n)}}}function gn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&en(()=>{e.abort(b)});var r=n.next;n.f&64?n.parent=null:z(n,t),n=r}}function _n(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||z(t),t=n}}function z(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(vn(e.nodes.start,e.nodes.end),n=!0),O(e,ae),gn(e,t&&!n),Fn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hn(e),e.f^=ae,e.f|=re;var i=e.parent;i!==null&&i.first!==null&&yn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function vn(e,t){for(;e!==null;){var n=e===t?null:I(e);e.remove(),e=n}}function yn(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 bn(e,t,n=!0){var r=[];xn(e,r,!0);var i=()=>{n&&z(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function xn(e,t,n){if(!(e.f&8192)){e.f^=ne;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;xn(i,t,o?n:!1),i=a}}}function Sn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:I(n);t.append(n),n=i}}var Cn=null,wn=!1,B=!1;function Tn(e){B=e}var V=null,H=!1;function U(e){V=e}var W=null;function G(e){W=e}var K=null;function En(e){V!==null&&(!Re||V.f&2)&&(K===null?K=[e]:K.push(e))}var q=null,J=0,Y=null;function Dn(e){Y=e}var On=1,X=0,Z=X;function kn(e){Z=e}function An(){return++On}function jn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~le),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(jn(a)&&At(a),a.wv>e.wv)return!0}t&512&&j===null&&O(e,_)}return!1}function Mn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Re&&K!==null&&o.call(K,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Mn(a,t,!1):t===a&&(n?O(a,v):a.f&1024&&O(a,y),pt(a))}}function Nn(e){var t=q,n=J,r=Y,i=V,a=K,o=w,s=H,c=Z,l=e.f;q=null,J=0,Y=null,V=l&96?null:e,K=null,Be(e.ctx),H=!1,Z=++X,e.ac!==null&&(en(()=>{e.ac.abort(b)}),e.ac=null);try{e.f|=ue;var u=e.fn,d=u();e.f|=ie;var f=e.deps,p=A?.is_fork;if(q!==null){var m;if(p||Fn(e,J),f!==null&&J>0)for(f.length=J+q.length,m=0;m<q.length;m++)f[J+m]=q[m];else e.deps=f=q;if(rn()&&e.f&512)for(m=J;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&J<f.length&&(Fn(e,J),f.length=J);if(Ue()&&Y!==null&&!H&&f!==null&&!(e.f&6146))for(m=0;m<Y.length;m++)Mn(Y[m],e);if(i!==null&&i!==e){if(X++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=X;if(t!==null)for(let e of t)e.rv=X;Y!==null&&(r===null?r=Y:r.push(...Y))}return e.f&8388608&&(e.f^=fe),d}catch(e){return Ke(e)}finally{e.f^=ue,q=t,J=n,Y=r,V=i,K=a,Be(o),H=s,Z=c}}function Pn(e,t){let n=t.reactions;if(n!==null){var r=a.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&2&&(q===null||!o.call(q,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~le),Je(s),jt(s),Fn(s,0)}}function Fn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Pn(e,n[r])}function In(e){var t=e.f;if(!(t&16384)){O(e,_);var n=W,r=wn;W=e,wn=!0;try{t&16777232?_n(e):gn(e),hn(e);var i=Nn(e);e.teardown=typeof i==`function`?i:null,e.wv=On}finally{wn=r,W=n}}}function Q(e){var t=(e.f&2)!=0;if(Cn?.add(e),V!==null&&!H&&!(W!==null&&W.f&16384)&&(K===null||!o.call(K,e))){var n=V.deps;if(V.f&2097152)e.rv<X&&(e.rv=X,q===null&&n!==null&&n[J]===e?J++:q===null?q=[e]:q.push(e));else{(V.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[V]:o.call(r,V)||r.push(V)}}if(B&&N.has(e))return N.get(e);if(t){var i=e;if(B){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Rn(i))&&(a=kt(i)),N.set(i,a),a}var s=(i.f&512)==0&&!H&&V!==null&&(wn||(V.f&512)!=0),c=(i.f&ie)===0;jn(i)&&(s&&(i.f|=512),At(i)),s&&!c&&(Mt(i),Ln(i))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function Ln(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Mt(t),Ln(t))}function Rn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(N.has(t)||t.f&2&&Rn(t))return!0;return!1}function zn(e){var t=H;try{return H=!0,e()}finally{H=t}}var Bn=Symbol(`events`),Vn=new Set,Hn=new Set;function Un(e,t,n,r={}){function i(e){if(r.capture||Kn.call(t,e),!e.cancelBubble)return en(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?E(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Wn(e,t,n,r,i){var a={capture:r,passive:i},o=Un(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&an(()=>{t.removeEventListener(e,o,a)})}var Gn=null;function Kn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Gn=e;var o=0,s=Gn===e&&e[Bn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Bn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=V,f=W;U(null),G(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var ee=a[Bn]?.[r];ee!=null&&(!a.disabled||e.target===a)&&ee.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Bn]=t,delete e.currentTarget,U(d),G(f)}}}var qn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Jn(e){return qn?.createHTML(e)??e}function Yn(e){var t=Qt(`template`);return t.innerHTML=Jn(e.replaceAll(`<!>`,`<!---->`)),t.content}function Xn(e,t){var n=W;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Zn(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(x)return Xn(S,null),S;i===void 0&&(i=Yn(a?e:`<!>`+e),n||(i=Jt(i)));var t=r||Ut?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Jt(t),s=t.lastChild;Xn(o,s)}else Xn(t,t);return t}}function Qn(e,t){if(x){var n=W;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=S),je();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var $n=[`touchstart`,`touchmove`];function er(e){return $n.includes(e)}function tr(e,t){return ir(e,t)}function nr(e,n){Kt(),n.intro=n.intro??!1;let r=n.target,i=x,a=S;try{for(var o=Jt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=I(o);if(!o)throw t;Ae(!0),C(o);let i=ir(e,{...n,anchor:o});return Ae(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&Se(),Kt(),Zt(r),Ae(!1),tr(e,n)}finally{Ae(i),C(a)}}var rr=new Map;function ir(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Kt();var u=void 0,d=ln(()=>{var c=r??n.appendChild(qt());vt(c,{pending:()=>{}},n=>{Ve({});var r=w;if(o&&(r.c=o),a&&(i.$$events=a),x&&Xn(n,null),u=e(n,i)||{},x&&(W.nodes.end=S,S===null||S.nodeType!==8||S.data!==`]`))throw Oe(),t;He()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=er(r);for(let e of[n,document]){var a=rr.get(e);a===void 0&&(a=new Map,rr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Kn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Vn)),Hn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=rr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,Kn),t.delete(e),t.size===0&&rr.delete(r)):t.set(e,i)}Hn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return ar.set(u,d),u}var ar=new WeakMap;function or(e,t){let n=ar.get(e);return n?(ar.delete(e),n(t)):Promise.resolve()}function sr(e,t){un(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Qt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var cr=[...`
|
|
3
|
+
\r\f\xA0\v`];function lr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||cr.includes(r[o-1]))&&(s===r.length||cr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function ur(e,t,n,r,i,a){var o=e.__className;if(x||o!==n||o===void 0){var s=lr(n,r,a);(!x||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var dr=Symbol(`is custom element`),fr=Symbol(`is html`),pr=ge?`link`:`LINK`;function mr(e,t,n,r){var i=hr(e);x&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===pr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[he]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&_r(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $(e,t,n){var r=V,i=W;let a=x;x&&Ae(!1),U(null),G(null);try{t!==`style`&&(gr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?_r(e).includes(t):n&&typeof n==`object`)?e[t]=n:mr(e,t,n==null?n:String(n))}finally{U(r),G(i),a&&Ae(!0)}}function hr(e){return e.__attributes??={[dr]:e.nodeName.includes(`-`),[fr]:e.namespaceURI===r}}var gr=new Map;function _r(e){var t=e.getAttribute(`is`)||e.nodeName,n=gr.get(t);if(n)return n;gr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function vr(e,t,n,r){var i=!ze||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?zn(r):r),s);let d;if(a){var f=pe in e||me in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=$e(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Ce(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var ee=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||ee||m)&&d(t?h():e),e):h()})}var te=!1,g=(n&1?wt:Et)(()=>(te=!1,h()));a&&Q(g);var _=W;return(function(e,t){if(arguments.length>0){let n=t?Q(g):i&&a?Vt(e):e;return F(g,n),te=!0,s!==void 0&&(s=n),e}return B&&te||_.f&16384?g.v:Q(g)})}function yr(e){return new br(e)}var br=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=It(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===me?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return F(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?nr:tr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Re&&(!e?.props?.$$host||e.sync===!1)&&ct(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{or(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},xr;typeof HTMLElement==`function`&&(xr=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){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Qt(`slot`);e!==`default`&&(n.name=e),Qn(t,n)}}let t={},n=Cr(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Sr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=yr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=cn(()=>{fn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Sr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Sr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Sr(e,t,n,r){let 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 Cr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function wr(e,t,n,r,i,a){let o=class extends xr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Sr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Tr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Er(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Dr=Zn(`<div id="compocontainer" class="svelte-11p6sry"><div id="list" class="svelte-11p6sry"><hb-messages-list></hb-messages-list></div> <div id="prompt" class="svelte-11p6sry"><hb-messages-send></hb-messages-send></div></div>`,2),Or={hash:`svelte-11p6sry`,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");
|
|
4
|
+
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;display:block;overflow:hidden;height:fit-content;min-height:100px;}#compocontainer.svelte-11p6sry {display:grid;grid-template-areas:"messages" "prompt";overflow:hidden;grid-template-rows:1fr 180px;height:100%;min-height:200px;}#list.svelte-11p6sry {overflow-y:auto;grid-area:messages;min-height:0;height:100%;}#list.svelte-11p6sry hb-messages-list:where(.svelte-11p6sry) {height:100%;display:block;}#prompt.svelte-11p6sry {grid-area:prompt;width:90%;max-width:1600px;margin:0 auto;}.msglist.svelte-11p6sry {width:90%;max-width:1400px;margin:0 auto;}`};function kr(e,t){Ve(t,!0),sr(e,Or);function n(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let r=vr(t,`id`,7,``),i=vr(t,`messages`,7),a=vr(t,`authors`,7),o=vr(t,`options`,7),s=vr(t,`message`,23,()=>({text:``})),c=P(``);on(()=>{if(typeof s()==`string`)try{s(JSON.parse(s())),F(c,s()?.text?s().text:``,!0)}catch(e){console.error(`error parsing message`,e)}});function l(e){if(!e?.file&&!e?.text)return console.warn(`no message to received`,e);n(`sendMessage`,e),F(c,e.text,!0),F(c,``)}Er({repoName:`@htmlbricks/hb-messages-list`,version:Tr.version}),Er({repoName:`@htmlbricks/hb-messages-send`,version:Tr.version});var u={get id(){return r()},set id(e=``){r(e),ct()},get messages(){return i()},set messages(e){i(e),ct()},get authors(){return a()},set authors(e){a(e),ct()},get options(){return o()},set options(e){o(e),ct()},get message(){return s()},set message(e={text:``}){s(e),ct()}},d=Dr(),f=Yt(d),p=Yt(f);$(p,`id`,`message-list`),pn(()=>$(p,`messages`,i())),pn(()=>$(p,`authors`,a())),pn(()=>$(p,`options`,o())),ur(p,1,`msglist svelte-11p6sry`),$(p,`part`,`msglist`),Me(f);var m=Xt(f,2),h=Yt(m);return pn(()=>$(h,`text`,Q(c))),$(h,`part`,`msgsend`),Me(m),Me(d),Wn(`sendMessage`,h,e=>l(e.detail)),Qn(e,d),He(u)}customElements.define(`hb-messages-box`,wr(kr,{id:{},messages:{},authors:{},options:{},message:{}},[],[],{mode:`open`})),e.Component=kr})(this[`messages-box`]=this[`messages-box`]||{});
|
|
5
|
+
//# sourceMappingURL=main.iife.js.map
|