@htmlbricks/hb-area-code 0.61.51 → 0.61.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,11 +1,3 @@
1
- (function(zt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Je=2,ze="[",Xe="]",ut={},$=Symbol(),Xt=!1;var Zt=Array.isArray,Ze=Array.prototype.indexOf,Qe=Array.from,ht=Object.keys,Q=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,tn=Object.prototype,en=Array.prototype,nn=Object.getPrototypeOf,Qt=Object.isExtensible;function te(t){for(var e=0;e<t.length;e++)t[e]()}function rn(){var t,e,n=new Promise((r,s)=>{t=r,e=s});return{promise:n,resolve:t,reject:e}}const m=2,Nt=4,ee=8,ft=16,U=32,I=64,ne=128,C=256,_t=512,b=1024,N=2048,M=4096,et=8192,H=16384,re=32768,sn=65536,se=1<<17,ln=1<<18,nt=1<<19,un=1<<20,Ot=1<<21,At=1<<22,W=1<<23,Pt=Symbol("$state"),fn=Symbol("legacy props"),Dt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ie=3,le=8;function an(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function on(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function cn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function dn(){throw new Error("https://svelte.dev/e/hydration_failed")}function hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function _n(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function vn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ft(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let T=!1;function vt(t){T=t}let y;function K(t){if(t===null)throw Ft(),ut;return y=t}function ue(){return K(ct(y))}function pt(t){if(T){if(ct(y)!==null)throw Ft(),ut;y=t}}function fe(t){return t===this.v}function pn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function $n(t){return!pn(t,this.v)}let gn=!1,A=null;function $t(t){A=t}function ae(t,e=!1,n){A={p:A,c:null,e:null,s:t,x:null,l:null}}function oe(t){var e=A,n=e.e;if(n!==null){e.e=null;for(var r of n)Pn(r)}return t!==void 0&&(e.x=t),A=e.p,t??{}}function ce(){return!0}const yn=new WeakMap;function wn(t){var e=v;if(e===null)return p.f|=W,t;if((e.f&re)===0){if((e.f&ne)===0)throw!e.parent&&t instanceof Error&&de(t),t;e.b.error(t)}else It(t,e)}function It(t,e){for(;e!==null;){if((e.f&ne)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t instanceof Error&&de(t),t}function de(t){const e=yn.get(t);e&&(Q(t,"message",{value:e.message}),Q(t,"stack",{value:e.stack}))}let Mt=[],Lt=[];function bn(){var t=Mt;Mt=[],te(t)}function mn(){var t=Lt;Lt=[],te(t)}function En(){Mt.length>0&&bn(),Lt.length>0&&mn()}function xn(){const t=v.b;return t===null&&an(),t}function he(t){var e=m|N,n=p!==null&&(p.f&m)!==0?p:null;return v===null||n!==null&&(n.f&C)!==0?e|=C:v.f|=nt,{ctx:A,deps:null,effects:null,equals:fe,f:e,fn:t,reactions:null,rv:0,v:$,wv:0,parent:n??v,ac:null}}function Tn(t,e){let n=v;n===null&&on();var r=n.b,s=void 0,i=Yt($),l=null,f=!p;return Mn(()=>{try{var u=t();l&&Promise.resolve(u).catch(()=>{})}catch(d){u=Promise.reject(d)}var a=()=>u;s=l?.then(a,a)??Promise.resolve(u),l=s;var o=g,h=r.is_pending();f&&(r.update_pending_count(1),h||o.increment());const c=(d,_=void 0)=>{l=null,h||o.activate(),_?_!==Dt&&(i.f|=W,Ut(i,_)):((i.f&W)!==0&&(i.f^=W),Ut(i,d)),f&&(r.update_pending_count(-1),h||o.decrement()),pe()};if(s.then(c,d=>c(null,d||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(u=>{function a(o){function h(){o===s?u(i):a(s)}o.then(h,h)}a(s)})}function _e(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)q(e[n])}}function kn(t){for(var e=t.parent;e!==null;){if((e.f&m)===0)return e;e=e.parent}return null}function jt(t){var e,n=v;B(kn(t));try{_e(t),e=Le(t)}finally{B(n)}return e}function ve(t){var e=jt(t);if(t.equals(e)||(t.v=e,t.wv=Ie()),!st){var n=(V||(t.f&C)!==0)&&t.deps!==null?M:b;R(t,n)}}function Sn(t,e,n){const r=he;if(e.length===0){n(t.map(r));return}var s=g,i=v,l=Rn(),f=xn();Promise.all(e.map(u=>Tn(u))).then(u=>{s?.activate(),l();try{n([...t.map(r),...u])}catch(a){(i.f&H)===0&&It(a,i)}s?.deactivate(),pe()}).catch(u=>{f.error(u)})}function Rn(){var t=v,e=p,n=A,r=g;return function(){B(t),P(e),$t(n),r?.activate()}}function pe(){B(null),P(null),$t(null)}const qt=new Set;let g=null,$e=new Set,gt=[];function ge(){const t=gt.shift();gt.length>0&&queueMicrotask(ge),t()}let G=[],yt=null,Bt=!1,wt=!1;class J{current=new Map;#e=new Map;#t=new Set;#n=0;#a=null;#o=!1;#s=[];#l=[];#i=[];#r=[];#u=[];#c=[];#d=[];skipped_effects=new Set;process(e){G=[];for(const s of e)this.#_(s);if(this.#s.length===0&&this.#n===0){this.#h();var n=this.#i,r=this.#r;this.#i=[],this.#r=[],this.#u=[],g=null,we(n),we(r),g===null?g=this:qt.delete(this),this.#a?.resolve()}else this.#f(this.#i),this.#f(this.#r),this.#f(this.#u);for(const s of this.#s)it(s);for(const s of this.#l)it(s);this.#s=[],this.#l=[]}#_(e){e.f^=b;for(var n=e.first;n!==null;){var r=n.f,s=(r&(U|I))!==0,i=s&&(r&b)!==0,l=i||(r&et)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){if(s)n.f^=b;else if((r&Nt)!==0)this.#r.push(n);else if((r&b)===0)if((r&At)!==0){var f=n.b?.is_pending()?this.#l:this.#s;f.push(n)}else xt(n)&&((n.f&ft)!==0&&this.#u.push(n),it(n));var u=n.first;if(u!==null){n=u;continue}}var a=n.parent;for(n=n.next;n===null&&a!==null;)n=a.next,a=a.parent}}#f(e){for(const n of e)((n.f&N)!==0?this.#c:this.#d).push(n),R(n,b);e.length=0}capture(e,n){this.#e.has(e)||this.#e.set(e,n),this.current.set(e,e.v)}activate(){g=this}deactivate(){g=null;for(const e of $e)if($e.delete(e),e(),g!==null)break}neuter(){this.#o=!0}flush(){G.length>0?ye():this.#h(),g===this&&(this.#n===0&&qt.delete(this),this.deactivate())}#h(){if(!this.#o)for(const e of this.#t)e();this.#t.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const e of this.#c)R(e,N),at(e);for(const e of this.#d)R(e,M),at(e);this.#i=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(e){this.#t.add(e)}settled(){return(this.#a??=rn()).promise}static ensure(){if(g===null){const e=g=new J;qt.add(g),wt||J.enqueue(()=>{g===e&&e.flush()})}return g}static enqueue(e){gt.length===0&&queueMicrotask(ge),gt.unshift(e)}}function Vt(t){var e=wt;wt=!0;try{for(var n;;){if(En(),G.length===0&&(g?.flush(),G.length===0))return yt=null,n;ye()}}finally{wt=e}}function ye(){var t=rt;Bt=!0;try{var e=0;for(Ae(!0);G.length>0;){var n=J.ensure();if(e++>1e3){var r,s;Cn()}n.process(G),L.clear()}}finally{Bt=!1,Ae(t),yt=null}}function Cn(){try{cn()}catch(t){It(t,yt)}}let z=null;function we(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(H|et))===0&&xt(r)&&(z=[],it(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Ne(r):r.fn=null),z?.length>0)){L.clear();for(const s of z)it(s);z=[]}}z=null}}function at(t){for(var e=yt=t;e.parent!==null;){e=e.parent;var n=e.f;if(Bt&&e===v&&(n&ft)!==0)return;if((n&(I|U))!==0){if((n&b)===0)return;e.f^=b}}G.push(e)}const L=new Map;function Yt(t,e){var n={f:0,v:t,reactions:null,equals:fe,rv:0,wv:0};return n}function D(t,e){const n=Yt(t);return Hn(n),n}function Nn(t,e=!1,n=!0){const r=Yt(t);return e||(r.equals=$n),r}function O(t,e,n=!1){p!==null&&(!X||(p.f&se)!==0)&&ce()&&(p.f&(m|ft|At|se))!==0&&!F?.includes(t)&&vn();let r=n?ot(e):e;return Ut(t,r)}function Ut(t,e){if(!t.equals(e)){var n=t.v;st?L.set(t,e):L.set(t,n),t.v=e;var r=J.ensure();r.capture(t,n),(t.f&m)!==0&&((t.f&N)!==0&&jt(t),R(t,(t.f&C)===0?b:M)),t.wv=Ie(),be(t,N),v!==null&&(v.f&b)!==0&&(v.f&(U|I))===0&&(k===null?Wn([t]):k.push(t))}return e}function Ht(t){O(t,t.v+1)}function be(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],l=i.f,f=(l&N)===0;f&&R(i,e),(l&m)!==0?be(i,M):f&&((l&ft)!==0&&z!==null&&z.push(i),at(i))}}function ot(t){if(typeof t!="object"||t===null||Pt in t)return t;const e=nn(t);if(e!==tn&&e!==en)return t;var n=new Map,r=Zt(t),s=D(0),i=Z,l=f=>{if(Z===i)return f();var u=p,a=Z;P(null),Fe(i);var o=f();return P(u),Fe(a),o};return r&&n.set("length",D(t.length)),new Proxy(t,{defineProperty(f,u,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&hn();var o=n.get(u);return o===void 0?o=l(()=>{var h=D(a.value);return n.set(u,h),h}):O(o,a.value,!0),!0},deleteProperty(f,u){var a=n.get(u);if(a===void 0){if(u in f){const o=l(()=>D($));n.set(u,o),Ht(s)}}else O(a,$),Ht(s);return!0},get(f,u,a){if(u===Pt)return t;var o=n.get(u),h=u in f;if(o===void 0&&(!h||tt(f,u)?.writable)&&(o=l(()=>{var d=ot(h?f[u]:$),_=D(d);return _}),n.set(u,o)),o!==void 0){var c=S(o);return c===$?void 0:c}return Reflect.get(f,u,a)},getOwnPropertyDescriptor(f,u){var a=Reflect.getOwnPropertyDescriptor(f,u);if(a&&"value"in a){var o=n.get(u);o&&(a.value=S(o))}else if(a===void 0){var h=n.get(u),c=h?.v;if(h!==void 0&&c!==$)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(f,u){if(u===Pt)return!0;var a=n.get(u),o=a!==void 0&&a.v!==$||Reflect.has(f,u);if(a!==void 0||v!==null&&(!o||tt(f,u)?.writable)){a===void 0&&(a=l(()=>{var c=o?ot(f[u]):$,d=D(c);return d}),n.set(u,a));var h=S(a);if(h===$)return!1}return o},set(f,u,a,o){var h=n.get(u),c=u in f;if(r&&u==="length")for(var d=a;d<h.v;d+=1){var _=n.get(d+"");_!==void 0?O(_,$):d in f&&(_=l(()=>D($)),n.set(d+"",_))}if(h===void 0)(!c||tt(f,u)?.writable)&&(h=l(()=>D(void 0)),O(h,ot(a)),n.set(u,h));else{c=h.v!==$;var x=l(()=>ot(a));O(h,x)}var Rt=Reflect.getOwnPropertyDescriptor(f,u);if(Rt?.set&&Rt.set.call(o,a),!c){if(r&&typeof u=="string"){var Ct=n.get("length"),Y=Number(u);Number.isInteger(Y)&&Y>=Ct.v&&O(Ct,Y+1)}Ht(s)}return!0},ownKeys(f){S(s);var u=Reflect.ownKeys(f).filter(h=>{var c=n.get(h);return c===void 0||c.v!==$});for(var[a,o]of n)o.v!==$&&!(a in f)&&u.push(a);return u},setPrototypeOf(){_n()}})}var me,Ee,xe,Te;function Wt(){if(me===void 0){me=window,Ee=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;xe=tt(e,"firstChild").get,Te=tt(e,"nextSibling").get,Qt(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Qt(n)&&(n.__t=void 0)}}function bt(t=""){return document.createTextNode(t)}function mt(t){return xe.call(t)}function ct(t){return Te.call(t)}function Et(t,e){if(!T)return mt(t);var n=mt(y);if(n===null)n=y.appendChild(bt());else if(e&&n.nodeType!==ie){var r=bt();return n?.before(r),K(r),r}return K(n),n}function ke(t,e=1,n=!1){let r=T?y:t;for(var s;e--;)s=r,r=ct(r);if(!T)return r;if(n&&r?.nodeType!==ie){var i=bt();return r===null?s?.after(i):r.before(i),K(i),i}return K(r),r}function On(t){t.textContent=""}function Se(t){var e=p,n=v;P(null),B(null);try{return t()}finally{P(e),B(n)}}function An(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function j(t,e,n,r=!0){var s=v;s!==null&&(s.f&et)!==0&&(t|=et);var i={ctx:A,deps:null,nodes_start:null,nodes_end:null,f:t|N,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{it(i),i.f|=re}catch(u){throw q(i),u}else e!==null&&at(i);if(r){var l=i;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&nt)===0&&(l=l.first),l!==null&&(l.parent=s,s!==null&&An(l,s),p!==null&&(p.f&m)!==0&&(t&I)===0)){var f=p;(f.effects??=[]).push(l)}}return i}function Pn(t){return j(Nt|un,t,!1)}function Dn(t){J.ensure();const e=j(I|nt,t,!0);return()=>{q(e)}}function Fn(t){J.ensure();const e=j(I|nt,t,!0);return(n={})=>new Promise(r=>{n.outro?Yn(e,()=>{q(e),r(void 0)}):(q(e),r(void 0))})}function In(t){return j(Nt,t,!1)}function Mn(t){return j(At|nt,t,!0)}function Ln(t,e=0){return j(ee|e,t,!0)}function jn(t,e=[],n=[]){Sn(e,n,r=>{j(ee,()=>t(...r.map(S)),!0)})}function qn(t,e=!0){return j(U|nt,t,!0,e)}function Re(t){var e=t.teardown;if(e!==null){const n=st,r=p;Pe(!0),P(null);try{e.call(null)}finally{Pe(n),P(r)}}}function Ce(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const s=n.ac;s!==null&&Se(()=>{s.abort(Dt)});var r=n.next;(n.f&I)!==0?n.parent=null:q(n,e),n=r}}function Bn(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&U)===0&&q(e),e=n}}function q(t,e=!0){var n=!1;(e||(t.f&ln)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Vn(t.nodes_start,t.nodes_end),n=!0),Ce(t,e&&!n),Tt(t,0),R(t,H);var r=t.transitions;if(r!==null)for(const i of r)i.stop();Re(t);var s=t.parent;s!==null&&s.first!==null&&Ne(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Vn(t,e){for(;t!==null;){var n=t===e?null:ct(t);t.remove(),t=n}}function Ne(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function Yn(t,e){var n=[];Oe(t,n,!0),Un(n,()=>{q(t),e&&e()})}function Un(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function Oe(t,e,n){if((t.f&et)===0){if(t.f^=et,t.transitions!==null)for(const l of t.transitions)(l.is_global||n)&&e.push(l);for(var r=t.first;r!==null;){var s=r.next,i=(r.f&sn)!==0||(r.f&U)!==0;Oe(r,e,i?n:!1),r=s}}}let rt=!1;function Ae(t){rt=t}let st=!1;function Pe(t){st=t}let p=null,X=!1;function P(t){p=t}let v=null;function B(t){v=t}let F=null;function Hn(t){p!==null&&(F===null?F=[t]:F.push(t))}let w=null,E=0,k=null;function Wn(t){k=t}let De=1,dt=0,Z=dt;function Fe(t){Z=t}let V=!1;function Ie(){return++De}function xt(t){var e=t.f;if((e&N)!==0)return!0;if((e&M)!==0){var n=t.deps,r=(e&C)!==0;if(n!==null){var s,i,l=(e&_t)!==0,f=r&&v!==null&&!V,u=n.length;if((l||f)&&(v===null||(v.f&H)===0)){var a=t,o=a.parent;for(s=0;s<u;s++)i=n[s],(l||!i?.reactions?.includes(a))&&(i.reactions??=[]).push(a);l&&(a.f^=_t),f&&o!==null&&(o.f&C)===0&&(a.f^=C)}for(s=0;s<u;s++)if(i=n[s],xt(i)&&ve(i),i.wv>t.wv)return!0}(!r||v!==null&&!V)&&R(t,b)}return!1}function Me(t,e,n=!0){var r=t.reactions;if(r!==null&&!F?.includes(t))for(var s=0;s<r.length;s++){var i=r[s];(i.f&m)!==0?Me(i,e,!1):e===i&&(n?R(i,N):(i.f&b)!==0&&R(i,M),at(i))}}function Le(t){var e=w,n=E,r=k,s=p,i=V,l=F,f=A,u=X,a=Z,o=t.f;w=null,E=0,k=null,V=(o&C)!==0&&(X||!rt||p===null),p=(o&(U|I))===0?t:null,F=null,$t(t.ctx),X=!1,Z=++dt,t.ac!==null&&(Se(()=>{t.ac.abort(Dt)}),t.ac=null);try{t.f|=Ot;var h=t.fn,c=h(),d=t.deps;if(w!==null){var _;if(Tt(t,E),d!==null&&E>0)for(d.length=E+w.length,_=0;_<w.length;_++)d[E+_]=w[_];else t.deps=d=w;if(!V||(o&m)!==0&&t.reactions!==null)for(_=E;_<d.length;_++)(d[_].reactions??=[]).push(t)}else d!==null&&E<d.length&&(Tt(t,E),d.length=E);if(ce()&&k!==null&&!X&&d!==null&&(t.f&(m|M|N))===0)for(_=0;_<k.length;_++)Me(k[_],t);return s!==null&&s!==t&&(dt++,k!==null&&(r===null?r=k:r.push(...k))),(t.f&W)!==0&&(t.f^=W),c}catch(x){return wn(x)}finally{t.f^=Ot,w=e,E=n,k=r,p=s,V=i,F=l,$t(f),X=u,Z=a}}function Kn(t,e){let n=e.reactions;if(n!==null){var r=Ze.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(e.f&m)!==0&&(w===null||!w.includes(e))&&(R(e,M),(e.f&(C|_t))===0&&(e.f^=_t),_e(e),Tt(e,0))}function Tt(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)Kn(t,n[r])}function it(t){var e=t.f;if((e&H)===0){R(t,b);var n=v,r=rt;v=t,rt=!0;try{(e&ft)!==0?Bn(t):Ce(t),Re(t);var s=Le(t);t.teardown=typeof s=="function"?s:null,t.wv=De;var i;Xt&&gn&&(t.f&N)!==0&&t.deps}finally{rt=r,v=n}}}function S(t){var e=t.f,n=(e&m)!==0;if(p!==null&&!X){var r=v!==null&&(v.f&H)!==0;if(!r&&!F?.includes(t)){var s=p.deps;if((p.f&Ot)!==0)t.rv<dt&&(t.rv=dt,w===null&&s!==null&&s[E]===t?E++:w===null?w=[t]:(!V||!w.includes(t))&&w.push(t));else{(p.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[p]:i.includes(p)||i.push(p)}}}else if(n&&t.deps===null&&t.effects===null){var l=t,f=l.parent;f!==null&&(f.f&C)===0&&(l.f^=C)}if(st){if(L.has(t))return L.get(t);if(n){l=t;var u=l.v;return((l.f&b)===0&&l.reactions!==null||je(l))&&(u=jt(l)),L.set(l,u),u}}else n&&(l=t,xt(l)&&ve(l));if((t.f&W)!==0)throw t.v;return t.v}function je(t){if(t.v===$)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(L.has(e)||(e.f&m)!==0&&je(e))return!0;return!1}const Gn=-7169;function R(t,e){t.f=t.f&Gn|e}const qe=new Set,Kt=new Set;function Jn(t){for(var e=0;e<t.length;e++)qe.add(t[e]);for(var n of Kt)n(t)}let Be=null;function kt(t){var e=this,n=e.ownerDocument,r=t.type,s=t.composedPath?.()||[],i=s[0]||t.target;Be=t;var l=0,f=Be===t&&t.__root;if(f){var u=s.indexOf(f);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var a=s.indexOf(e);if(a===-1)return;u<=a&&(l=u)}if(i=s[l]||t.target,i!==e){Q(t,"currentTarget",{configurable:!0,get(){return i||n}});var o=p,h=v;P(null),B(null);try{for(var c,d=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var x=i["__"+r];if(x!=null&&(!i.disabled||t.target===i))if(Zt(x)){var[Rt,...Ct]=x;Rt.apply(i,[t,...Ct])}else x.call(i,t)}catch(Y){c?d.push(Y):c=Y}if(t.cancelBubble||_===e||_===null)break;i=_}if(c){for(let Y of d)queueMicrotask(()=>{throw Y});throw c}}finally{t.__root=e,delete t.currentTarget,P(o),B(h)}}}function zn(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Gt(t,e){var n=v;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function Xn(t,e){var n=(e&Je)!==0,r,s=!t.startsWith("<!>");return()=>{if(T)return Gt(y,null),y;r===void 0&&(r=zn(s?t:"<!>"+t),r=mt(r));var i=n||Ee?document.importNode(r,!0):r.cloneNode(!0);return Gt(i,i),i}}function Ve(t,e){if(T){v.nodes_end=y,ue();return}t!==null&&t.before(e)}const Zn=["touchstart","touchmove"];function Qn(t){return Zn.includes(t)}function Ye(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function Ue(t,e){return He(t,e)}function tr(t,e){Wt(),e.intro=e.intro??!1;const n=e.target,r=T,s=y;try{for(var i=mt(n);i&&(i.nodeType!==le||i.data!==ze);)i=ct(i);if(!i)throw ut;vt(!0),K(i),ue();const l=He(t,{...e,anchor:i});if(y===null||y.nodeType!==le||y.data!==Xe)throw Ft(),ut;return vt(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw l;return l!==ut&&console.warn("Failed to hydrate: ",l),e.recover===!1&&dn(),Wt(),On(n),vt(!1),Ue(t,e)}finally{vt(r),K(s)}}const lt=new Map;function He(t,{target:e,anchor:n,props:r={},events:s,context:i,intro:l=!0}){Wt();var f=new Set,u=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!f.has(d)){f.add(d);var _=Qn(d);e.addEventListener(d,kt,{passive:_});var x=lt.get(d);x===void 0?(document.addEventListener(d,kt,{passive:_}),lt.set(d,1)):lt.set(d,x+1)}}};u(Qe(qe)),Kt.add(u);var a=void 0,o=Fn(()=>{var h=n??e.appendChild(bt());return qn(()=>{if(i){ae({});var c=A;c.c=i}s&&(r.$$events=s),T&&Gt(h,null),a=t(h,r)||{},T&&(v.nodes_end=y),i&&oe()}),()=>{for(var c of f){e.removeEventListener(c,kt);var d=lt.get(c);--d===0?(document.removeEventListener(c,kt),lt.delete(c)):lt.set(c,d)}Kt.delete(u),h!==n&&h.parentNode?.removeChild(h)}});return Jt.set(a,o),a}let Jt=new WeakMap;function er(t,e){const n=Jt.get(t);return n?(Jt.delete(t),n(e)):Promise.resolve()}function nr(t,e){In(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,r.appendChild(s)}})}function rr(t,e){return t==null?null:String(t)}function sr(t,e,n,r){var s=t.__style;if(T||s!==e){var i=rr(e);(!T||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t.__style=e}return r}function We(t,e,n,r){var s=r,i=!0,l=()=>(i&&(i=!1,s=r),s),f;f=t[e],f===void 0&&r!==void 0&&(f=l());var u;u=()=>{var c=t[e];return c===void 0?l():(i=!0,c)};var a=!1,o=he(()=>(a=!1,u())),h=v;return(function(c,d){if(arguments.length>0){const _=d?S(o):c;return O(o,_),a=!0,s!==void 0&&(s=_),c}return st&&a||(h.f&H)!==0?o.v:S(o)})}function ir(t){return new lr(t)}class lr{#e;#t;constructor(e){var n=new Map,r=(i,l)=>{var f=Nn(l,!1,!1);return n.set(i,f),f};const s=new Proxy({...e.props||{},$$events:{}},{get(i,l){return S(n.get(l)??r(l,Reflect.get(i,l)))},has(i,l){return l===fn?!0:(S(n.get(l)??r(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,f){return O(n.get(l)??r(l,f),f),Reflect.set(i,l,f)}});this.#t=(e.hydrate?tr:Ue)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Vt(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||Q(this,i,{get(){return this.#t[i]},set(l){this.#t[i]=l},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{er(this.#t)}}$set(e){this.#t.$set(e)}$on(e,n){this.#e[e]=this.#e[e]||[];const r=(...s)=>n.call(this,...s);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let Ke;typeof HTMLElement=="function"&&(Ke=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),Ve(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=ur(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=St(s,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=ir({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Dn(()=>{Ln(()=>{this.$$r=!0;for(const r of ht(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=St(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=St(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return ht(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function St(t,e,n,r){const s=n[t]?.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function ur(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function fr(t,e,n,r,s,i){let l=class extends Ke{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return ht(e).map(f=>(e[f].attribute||f).toLowerCase())}};return ht(e).forEach(f=>{Q(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(u){u=St(f,u,e),this.$$d[f]=u;var a=this.$$c;if(a){var o=tt(a,f)?.get;o?a[f]=u:a.$set({[f]:u})}}})}),r.forEach(f=>{Q(l.prototype,f,{get(){return this.$$c?.[f]}})}),t.element=l,l}function ar(t,e,n,r){S(e)||(navigator.clipboard.writeText(n()),O(e,!0),r("clipboardCopyText",{text:n()}),setInterval(()=>{O(e,!1)},5e3))}var or=Xn('<div id="content" part="content" class="svelte-10a6pgs"><div id="copycode" class="svelte-10a6pgs"><div id="flash">copied to the clipboard</div> <button id="copybutton" class="svelte-10a6pgs"> </button></div> <code part="content" style="overflow-wrap: break-word;"> </code></div>');const cr={hash:"svelte-10a6pgs",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;--hb-area-code-background: rgb(232 232 232 / 57%);}#content.svelte-10a6pgs {background-color:var(--hb-area-code-background);padding:28px 12px 28px 12px;position:relative;}#copycode.svelte-10a6pgs {position:absolute;right:6px;top:6px;font-size:0.6em;}#copybutton.svelte-10a6pgs {cursor:pointer;}'};function Ge(t,e){ae(e,!0),nr(t,cr);/**
3
- * Svelte Area Code WebComponent
4
- * =====================
5
- *
6
- * @contributors: Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)
7
- *
8
- * @license: MIT License
9
- *
10
- */let n=We(e,"id",7,""),r=We(e,"content",7,"");function s(_,x){e.$$host.dispatchEvent(new CustomEvent(_,{detail:x}))}let i=D(!1);var l={get id(){return n()},set id(_=""){n(_),Vt()},get content(){return r()},set content(_=""){r(_),Vt()}},f=or(),u=Et(f),a=Et(u),o=ke(a,2);o.__click=[ar,i,r,s];var h=Et(o,!0);pt(o),pt(u);var c=ke(u,2),d=Et(c,!0);return pt(c),pt(f),jn(()=>{sr(a,`display:${S(i)?"inline-block":"none"}`),Ye(h,S(i)?"ok!":"copy"),Ye(d,r())}),Ve(t,f),oe(l)}Jn(["click"]),customElements.define("hb-area-code",fr(Ge,{id:{},content:{}},[],[],!0)),zt.Component=Ge,Object.defineProperty(zt,Symbol.toStringTag,{value:"Module"})})(this["area-code"]=this["area-code"]||{});
1
+ (function(re){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ln=2,se="[",ie="[!",fe="]",dt={},w=Symbol(),le=!1;var un=Array.isArray,on=Array.prototype.indexOf,an=Array.from,Et=Object.keys,xt=Object.defineProperty,ft=Object.getOwnPropertyDescriptor,cn=Object.prototype,hn=Array.prototype,dn=Object.getPrototypeOf,ue=Object.isExtensible;function _n(t){for(var e=0;e<t.length;e++)t[e]()}function oe(){var t,e,n=new Promise((r,s)=>{t=r,e=s});return{promise:n,resolve:t,reject:e}}const b=2,Tt=4,Yt=8,B=16,tt=32,W=64,kt=128,N=512,m=1024,R=2048,Y=4096,G=8192,J=16384,ae=32768,St=65536,ce=1<<17,he=1<<18,et=1<<19,vn=1<<20,_t=32768,Vt=1<<21,Ht=1<<22,X=1<<23,Ut=Symbol("$state"),pn=Symbol("legacy props"),lt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},de=3,Rt=8;function $n(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yn(){throw new Error("https://svelte.dev/e/hydration_failed")}function wn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function En(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Kt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function xn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function At(t){g=t}let $;function V(t){if(t===null)throw Kt(),dt;return $=t}function _e(){return V(Q($))}function Ct(t){if(g){if(Q($)!==null)throw Kt(),dt;$=t}}function Tn(t=1){if(g){for(var e=t,n=$;e--;)n=Q(n);$=n}}function kn(t=!0){for(var e=0,n=$;;){if(n.nodeType===Rt){var r=n.data;if(r===fe){if(e===0)return n;e-=1}else(r===se||r===ie)&&(e+=1)}var s=Q(n);t&&n.remove(),n=s}}function ve(t){return t===this.v}function Sn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Rn(t){return!Sn(t,this.v)}let An=!1,P=null;function ut(t){P=t}function pe(t,e=!1,n){P={p:P,i:!1,c:null,e:null,s:t,x:null,l:null}}function $e(t){var e=P,n=e.e;if(n!==null){e.e=null;for(var r of n)Un(r)}return t!==void 0&&(e.x=t),e.i=!0,P=e.p,t??{}}function ge(){return!0}let nt=[];function ye(){var t=nt;nt=[],_n(t)}function zt(t){if(nt.length===0&&!vt){var e=nt;queueMicrotask(()=>{e===nt&&ye()})}nt.push(t)}function Cn(){for(;nt.length>0;)ye()}function we(t){var e=v;if(e===null)return _.f|=X,t;if((e.f&ae)===0){if((e.f&kt)===0)throw t;e.b.error(t)}else ot(t,e)}function ot(t,e){for(;e!==null;){if((e.f&kt)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t}const Ot=new Set;let y=null,A=null,L=[],Nt=null,Wt=!1,vt=!1;class D{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#u=0;#i=0;#o=null;#f=[];#s=[];skipped_effects=new Set;is_fork=!1;process(e){L=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#n(r,n);this.is_fork||this.#l(),this.#i>0||this.is_fork?(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects)):(y=null,me(n.render_effects),me(n.effects),this.#o?.resolve()),A=null}#n(e,n){e.f^=m;for(var r=e.first;r!==null;){var s=r.f,i=(s&(tt|W))!==0,f=i&&(s&m)!==0,l=f||(s&G)!==0||this.skipped_effects.has(r);if((r.f&kt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){i?r.f^=m:(s&Tt)!==0?n.effects.push(r):bt(r)&&((r.f&B)!==0&&n.block_effects.push(r),mt(r));var u=r.first;if(u!==null){r=u;continue}}var o=r.parent;for(r=r.next;r===null&&o!==null;)o===n.effect&&(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects),n=n.parent),r=o.next,o=o.parent}}#r(e){for(const n of e)((n.f&R)!==0?this.#f:this.#s).push(n),x(n,m)}capture(e,n){this.previous.has(e)||this.previous.set(e,n),(e.f&X)===0&&(this.current.set(e,e.v),A?.set(e,e.v))}activate(){y=this,this.apply()}deactivate(){y=null,A=null}flush(){if(this.activate(),L.length>0){if(be(),y!==null&&y!==this)return}else this.#u===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#l(){if(this.#i===0){for(const e of this.#e)e();this.#e.clear()}this.#u===0&&this.#a()}#a(){if(Ot.size>1){this.previous.clear();var e=A,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Ot){if(s===this){n=!1;continue}const i=[];for(const[l,u]of this.current){if(s.current.has(l))if(n&&u!==s.current.get(l))s.current.set(l,u);else continue;i.push(l)}if(i.length===0)continue;const f=[...s.current.keys()].filter(l=>!this.current.has(l));if(f.length>0){const l=new Set,u=new Map;for(const o of i)Ee(o,f,l,u);if(L.length>0){y=s,s.apply();for(const o of L)s.#n(o,r);L=[],s.deactivate()}}}y=null,A=e}this.committed=!0,Ot.delete(this)}increment(e){this.#u+=1,e&&(this.#i+=1)}decrement(e){this.#u-=1,e&&(this.#i-=1),this.revive()}revive(){for(const e of this.#f)x(e,R),at(e);for(const e of this.#s)x(e,Y),at(e);this.#f=[],this.#s=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#o??=oe()).promise}static ensure(){if(y===null){const e=y=new D;Ot.add(y),vt||D.enqueue(()=>{y===e&&e.flush()})}return y}static enqueue(e){zt(e)}apply(){}}function Gt(t){var e=vt;vt=!0;try{for(var n;;){if(Cn(),L.length===0&&(y?.flush(),L.length===0))return Nt=null,n;be()}}finally{vt=e}}function be(){var t=st;Wt=!0;try{var e=0;for(Be(!0);L.length>0;){var n=D.ensure();if(e++>1e3){var r,s;On()}n.process(L),Z.clear()}}finally{Wt=!1,Be(t),Nt=null}}function On(){try{gn()}catch(t){ot(t,Nt)}}let H=null;function me(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(J|G))===0&&bt(r)&&(H=new Set,mt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?je(r):r.fn=null),H?.size>0)){Z.clear();for(const s of H){if((s.f&(J|G))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)H.has(f)&&(H.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const u=i[l];(u.f&(J|G))===0&&mt(u)}}H.clear()}}H=null}}function Ee(t,e,n,r){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const s of t.reactions){const i=s.f;(i&b)!==0?Ee(s,e,n,r):(i&(Ht|B))!==0&&(i&R)===0&&xe(s,e,r)&&(x(s,R),at(s))}}function xe(t,e,n){const r=n.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const s of t.deps){if(e.includes(s))return!0;if((s.f&b)!==0&&xe(s,e,n))return n.set(s,!0),!0}return n.set(t,!1),!1}function at(t){for(var e=Nt=t;e.parent!==null;){e=e.parent;var n=e.f;if(Wt&&e===v&&(n&B)!==0&&(n&he)===0)return;if((n&(W|tt))!==0){if((n&m)===0)return;e.f^=m}}L.push(e)}function Nn(t){let e=0,n=pt(0),r;return()=>{Lt()&&(S(n),Ie(()=>(e===0&&(r=ir(()=>t(()=>$t(n)))),e+=1,()=>{zt(()=>{e-=1,e===0&&(r?.(),r=void 0,$t(n))})})))}}var Pn=St|et|kt;function Dn(t,e,n){new Fn(t,e,n)}class Fn{parent;#e=!1;#t;#u=g?$:null;#i;#o;#f;#s=null;#n=null;#r=null;#l=null;#a=null;#d=0;#c=0;#_=!1;#h=null;#y=Nn(()=>(this.#h=pt(this.#d),()=>{this.#h=null}));constructor(e,n,r){this.#t=e,this.#i=n,this.#o=r,this.parent=v.b,this.#e=!!this.#i.pending,this.#f=Xn(()=>{if(v.b=this,g){const i=this.#u;_e(),i.nodeType===Rt&&i.data===ie?this.#b():this.#w()}else{var s=this.#$();try{this.#s=rt(()=>r(s))}catch(i){this.error(i)}this.#c>0?this.#p():this.#e=!1}return()=>{this.#a?.remove()}},Pn),g&&(this.#t=$)}#w(){try{this.#s=rt(()=>this.#o(this.#t))}catch(e){this.error(e)}this.#e=!1}#b(){const e=this.#i.pending;e&&(this.#n=rt(()=>e(this.#t)),D.enqueue(()=>{var n=this.#$();this.#s=this.#v(()=>(D.ensure(),rt(()=>this.#o(n)))),this.#c>0?this.#p():(Mt(this.#n,()=>{this.#n=null}),this.#e=!1)}))}#$(){var e=this.#t;return this.#e&&(this.#a=yt(),this.#t.before(this.#a),e=this.#a),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#v(e){var n=v,r=_,s=P;q(this.#f),k(this.#f),ut(this.#f.ctx);try{return e()}catch(i){return we(i),null}finally{q(n),k(r),ut(s)}}#p(){const e=this.#i.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#a),er(this.#s,this.#l)),this.#n===null&&(this.#n=rt(()=>e(this.#t)))}#g(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(e);return}this.#c+=e,this.#c===0&&(this.#e=!1,this.#n&&Mt(this.#n,()=>{this.#n=null}),this.#l&&(this.#t.before(this.#l),this.#l=null))}update_pending_count(e){this.#g(e),this.#d+=e,this.#h&&Dt(this.#h,this.#d)}get_effect_pending(){return this.#y(),S(this.#h)}error(e){var n=this.#i.onerror;let r=this.#i.failed;if(this.#_||!n&&!r)throw e;this.#s&&(I(this.#s),this.#s=null),this.#n&&(I(this.#n),this.#n=null),this.#r&&(I(this.#r),this.#r=null),g&&(V(this.#u),Tn(),V(kn()));var s=!1,i=!1;const f=()=>{if(s){xn();return}s=!0,i&&En(),D.ensure(),this.#d=0,this.#r!==null&&Mt(this.#r,()=>{this.#r=null}),this.#e=this.has_pending_snippet(),this.#s=this.#v(()=>(this.#_=!1,rt(()=>this.#o(this.#t)))),this.#c>0?this.#p():this.#e=!1};var l=_;try{k(null),i=!0,n?.(e,f),i=!1}catch(u){ot(u,this.#f&&this.#f.parent)}finally{k(l)}r&&zt(()=>{this.#r=this.#v(()=>{D.ensure(),this.#_=!0;try{return rt(()=>{r(this.#t,()=>e,()=>f)})}catch(u){return ot(u,this.#f.parent),null}finally{this.#_=!1}})})}}function In(t,e,n,r){const s=Te;if(n.length===0&&t.length===0){r(e.map(s));return}var i=y,f=v,l=Ln();function u(){Promise.all(n.map(o=>Mn(o))).then(o=>{l();try{r([...e.map(s),...o])}catch(h){(f.f&J)===0&&ot(h,f)}i?.deactivate(),Pt()}).catch(o=>{ot(o,f)})}t.length>0?Promise.all(t).then(()=>{l();try{return u()}finally{i?.deactivate(),Pt()}}):u()}function Ln(){var t=v,e=_,n=P,r=y;return function(i=!0){q(t),k(e),ut(n),i&&r?.activate()}}function Pt(){q(null),k(null),ut(null)}function Te(t){var e=b|R,n=_!==null&&(_.f&b)!==0?_:null;return v!==null&&(v.f|=et),{ctx:P,deps:null,effects:null,equals:ve,f:e,fn:t,reactions:null,rv:0,v:w,wv:0,parent:n??v,ac:null}}function Mn(t,e){let n=v;n===null&&$n();var r=n.b,s=void 0,i=pt(w),f=!_,l=new Map;return Gn(()=>{var u=oe();s=u.promise;try{Promise.resolve(t()).then(u.resolve,u.reject).then(()=>{o===y&&o.committed&&o.deactivate(),Pt()})}catch(a){u.reject(a),Pt()}var o=y;if(f){var h=!r.is_pending();r.update_pending_count(1),o.increment(h),l.get(o)?.reject(lt),l.delete(o),l.set(o,u)}const d=(a,c=void 0)=>{if(o.activate(),c)c!==lt&&(i.f|=X,Dt(i,c));else{(i.f&X)!==0&&(i.f^=X),Dt(i,a);for(const[p,T]of l){if(l.delete(p),p===o)break;T.reject(lt)}}f&&(r.update_pending_count(-1),o.decrement(h))};u.promise.then(d,a=>d(null,a||"unknown"))}),Hn(()=>{for(const u of l.values())u.reject(lt)}),new Promise(u=>{function o(h){function d(){h===s?u(i):o(s)}h.then(d,d)}o(s)})}function ke(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)I(e[n])}}function jn(t){for(var e=t.parent;e!==null;){if((e.f&b)===0)return e;e=e.parent}return null}function Jt(t){var e,n=v;q(jn(t));try{t.f&=~_t,ke(t),e=ze(t)}finally{q(n)}return e}function Se(t){var e=Jt(t);if(t.equals(e)||(t.v=e,t.wv=Ue()),!ct)if(A!==null)Lt()&&A.set(t,t.v);else{var n=(t.f&N)===0?Y:m;x(t,n)}}let Xt=new Set;const Z=new Map;let Re=!1;function pt(t,e){var n={f:0,v:t,reactions:null,equals:ve,rv:0,wv:0};return n}function U(t,e){const n=pt(t);return nr(n),n}function qn(t,e=!1,n=!0){const r=pt(t);return e||(r.equals=Rn),r}function F(t,e,n=!1){_!==null&&(!j||(_.f&ce)!==0)&&ge()&&(_.f&(b|B|Ht|ce))!==0&&!K?.includes(t)&&mn();let r=n?gt(e):e;return Dt(t,r)}function Dt(t,e){if(!t.equals(e)){var n=t.v;ct?Z.set(t,e):Z.set(t,n),t.v=e;var r=D.ensure();r.capture(t,n),(t.f&b)!==0&&((t.f&R)!==0&&Jt(t),x(t,(t.f&N)!==0?m:Y)),t.wv=Ue(),Ae(t,R),v!==null&&(v.f&m)!==0&&(v.f&(tt|W))===0&&(O===null?rr([t]):O.push(t)),!r.is_fork&&Xt.size>0&&!Re&&Bn()}return e}function Bn(){Re=!1;const t=Array.from(Xt);for(const e of t)(e.f&m)!==0&&x(e,Y),bt(e)&&mt(e);Xt.clear()}function $t(t){F(t,t.v+1)}function Ae(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],f=i.f,l=(f&R)===0;if(l&&x(i,e),(f&b)!==0){var u=i;A?.delete(u),(f&_t)===0&&(f&N&&(i.f|=_t),Ae(u,Y))}else l&&((f&B)!==0&&H!==null&&H.add(i),at(i))}}function gt(t){if(typeof t!="object"||t===null||Ut in t)return t;const e=dn(t);if(e!==cn&&e!==hn)return t;var n=new Map,r=un(t),s=U(0),i=it,f=l=>{if(it===i)return l();var u=_,o=it;k(null),He(i);var h=l();return k(u),He(o),h};return r&&n.set("length",U(t.length)),new Proxy(t,{defineProperty(l,u,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&wn();var h=n.get(u);return h===void 0?h=f(()=>{var d=U(o.value);return n.set(u,d),d}):F(h,o.value,!0),!0},deleteProperty(l,u){var o=n.get(u);if(o===void 0){if(u in l){const h=f(()=>U(w));n.set(u,h),$t(s)}}else F(o,w),$t(s);return!0},get(l,u,o){if(u===Ut)return t;var h=n.get(u),d=u in l;if(h===void 0&&(!d||ft(l,u)?.writable)&&(h=f(()=>{var c=gt(d?l[u]:w),p=U(c);return p}),n.set(u,h)),h!==void 0){var a=S(h);return a===w?void 0:a}return Reflect.get(l,u,o)},getOwnPropertyDescriptor(l,u){var o=Reflect.getOwnPropertyDescriptor(l,u);if(o&&"value"in o){var h=n.get(u);h&&(o.value=S(h))}else if(o===void 0){var d=n.get(u),a=d?.v;if(d!==void 0&&a!==w)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return o},has(l,u){if(u===Ut)return!0;var o=n.get(u),h=o!==void 0&&o.v!==w||Reflect.has(l,u);if(o!==void 0||v!==null&&(!h||ft(l,u)?.writable)){o===void 0&&(o=f(()=>{var a=h?gt(l[u]):w,c=U(a);return c}),n.set(u,o));var d=S(o);if(d===w)return!1}return h},set(l,u,o,h){var d=n.get(u),a=u in l;if(r&&u==="length")for(var c=o;c<d.v;c+=1){var p=n.get(c+"");p!==void 0?F(p,w):c in l&&(p=f(()=>U(w)),n.set(c+"",p))}if(d===void 0)(!a||ft(l,u)?.writable)&&(d=f(()=>U(void 0)),F(d,gt(o)),n.set(u,d));else{a=d.v!==w;var T=f(()=>gt(o));F(d,T)}var z=Reflect.getOwnPropertyDescriptor(l,u);if(z?.set&&z.set.call(h,o),!a){if(r&&typeof u=="string"){var fn=n.get("length"),ne=Number(u);Number.isInteger(ne)&&ne>=fn.v&&F(fn,ne+1)}$t(s)}return!0},ownKeys(l){S(s);var u=Reflect.ownKeys(l).filter(d=>{var a=n.get(d);return a===void 0||a.v!==w});for(var[o,h]of n)h.v!==w&&!(o in l)&&u.push(o);return u},setPrototypeOf(){bn()}})}var Ce,Oe,Ne,Pe;function Zt(){if(Ce===void 0){Ce=window,Oe=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Ne=ft(e,"firstChild").get,Pe=ft(e,"nextSibling").get,ue(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ue(n)&&(n.__t=void 0)}}function yt(t=""){return document.createTextNode(t)}function Ft(t){return Ne.call(t)}function Q(t){return Pe.call(t)}function It(t,e){if(!g)return Ft(t);var n=Ft($);if(n===null)n=$.appendChild(yt());else if(e&&n.nodeType!==de){var r=yt();return n?.before(r),V(r),r}return V(n),n}function De(t,e=1,n=!1){let r=g?$:t;for(var s;e--;)s=r,r=Q(r);if(!g)return r;if(n&&r?.nodeType!==de){var i=yt();return r===null?s?.after(i):r.before(i),V(i),i}return V(r),r}function Yn(t){t.textContent=""}function Fe(t){var e=_,n=v;k(null),q(null);try{return t()}finally{k(e),q(n)}}function Vn(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function M(t,e,n,r=!0){var s=v;s!==null&&(s.f&G)!==0&&(t|=G);var i={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:t|R|N,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{mt(i),i.f|=ae}catch(u){throw I(i),u}else e!==null&&at(i);if(r){var f=i;if(n&&f.deps===null&&f.teardown===null&&f.nodes_start===null&&f.first===f.last&&(f.f&et)===0&&(f=f.first,(t&B)!==0&&(t&St)!==0&&f!==null&&(f.f|=St)),f!==null&&(f.parent=s,s!==null&&Vn(f,s),_!==null&&(_.f&b)!==0&&(t&W)===0)){var l=_;(l.effects??=[]).push(f)}}return i}function Lt(){return _!==null&&!j}function Hn(t){const e=M(Yt,null,!1);return x(e,m),e.teardown=t,e}function Un(t){return M(Tt|vn,t,!1)}function Kn(t){D.ensure();const e=M(W|et,t,!0);return()=>{I(e)}}function zn(t){D.ensure();const e=M(W|et,t,!0);return(n={})=>new Promise(r=>{n.outro?Mt(e,()=>{I(e),r(void 0)}):(I(e),r(void 0))})}function Wn(t){return M(Tt,t,!1)}function Gn(t){return M(Ht|et,t,!0)}function Ie(t,e=0){return M(Yt|e,t,!0)}function Jn(t,e=[],n=[],r=[],s=!1){In(r,e,n,i=>{M(s?Tt:Yt,()=>t(...i.map(S)),!0)})}function Xn(t,e=0){var n=M(B|e,t,!0);return n}function rt(t,e=!0){return M(tt|et,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const n=ct,r=_;Ye(!0),k(null);try{e.call(null)}finally{Ye(n),k(r)}}}function Me(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const s=n.ac;s!==null&&Fe(()=>{s.abort(lt)});var r=n.next;(n.f&W)!==0?n.parent=null:I(n,e),n=r}}function Zn(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&tt)===0&&I(e),e=n}}function I(t,e=!0){var n=!1;(e||(t.f&he)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Qn(t.nodes_start,t.nodes_end),n=!0),Me(t,e&&!n),jt(t,0),x(t,J);var r=t.transitions;if(r!==null)for(const i of r)i.stop();Le(t);var s=t.parent;s!==null&&s.first!==null&&je(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Qn(t,e){for(;t!==null;){var n=t===e?null:Q(t);t.remove(),t=n}}function je(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function Mt(t,e,n=!0){var r=[];qe(t,r,!0),tr(r,()=>{n&&I(t),e&&e()})}function tr(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function qe(t,e,n){if((t.f&G)===0){if(t.f^=G,t.transitions!==null)for(const f of t.transitions)(f.is_global||n)&&e.push(f);for(var r=t.first;r!==null;){var s=r.next,i=(r.f&St)!==0||(r.f&tt)!==0&&(t.f&B)!==0;qe(r,e,i?n:!1),r=s}}}function er(t,e){for(var n=t.nodes_start,r=t.nodes_end;n!==null;){var s=n===r?null:Q(n);e.append(n),n=s}}let st=!1;function Be(t){st=t}let ct=!1;function Ye(t){ct=t}let _=null,j=!1;function k(t){_=t}let v=null;function q(t){v=t}let K=null;function nr(t){_!==null&&(K===null?K=[t]:K.push(t))}let E=null,C=0,O=null;function rr(t){O=t}let Ve=1,wt=0,it=wt;function He(t){it=t}function Ue(){return++Ve}function bt(t){var e=t.f;if((e&R)!==0)return!0;if(e&b&&(t.f&=~_t),(e&Y)!==0){var n=t.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(bt(i)&&Se(i),i.wv>t.wv)return!0}(e&N)!==0&&A===null&&x(t,m)}return!1}function Ke(t,e,n=!0){var r=t.reactions;if(r!==null&&!K?.includes(t))for(var s=0;s<r.length;s++){var i=r[s];(i.f&b)!==0?Ke(i,e,!1):e===i&&(n?x(i,R):(i.f&m)!==0&&x(i,Y),at(i))}}function ze(t){var e=E,n=C,r=O,s=_,i=K,f=P,l=j,u=it,o=t.f;E=null,C=0,O=null,_=(o&(tt|W))===0?t:null,K=null,ut(t.ctx),j=!1,it=++wt,t.ac!==null&&(Fe(()=>{t.ac.abort(lt)}),t.ac=null);try{t.f|=Vt;var h=t.fn,d=h(),a=t.deps;if(E!==null){var c;if(jt(t,C),a!==null&&C>0)for(a.length=C+E.length,c=0;c<E.length;c++)a[C+c]=E[c];else t.deps=a=E;if(st&&Lt()&&(t.f&N)!==0)for(c=C;c<a.length;c++)(a[c].reactions??=[]).push(t)}else a!==null&&C<a.length&&(jt(t,C),a.length=C);if(ge()&&O!==null&&!j&&a!==null&&(t.f&(b|Y|R))===0)for(c=0;c<O.length;c++)Ke(O[c],t);return s!==null&&s!==t&&(wt++,O!==null&&(r===null?r=O:r.push(...O))),(t.f&X)!==0&&(t.f^=X),d}catch(p){return we(p)}finally{t.f^=Vt,E=e,C=n,O=r,_=s,K=i,ut(f),j=l,it=u}}function sr(t,e){let n=e.reactions;if(n!==null){var r=on.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(e.f&b)!==0&&(E===null||!E.includes(e))&&(x(e,Y),(e.f&N)!==0&&(e.f^=N,e.f&=~_t),ke(e),jt(e,0))}function jt(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)sr(t,n[r])}function mt(t){var e=t.f;if((e&J)===0){x(t,m);var n=v,r=st;v=t,st=!0;try{(e&B)!==0?Zn(t):Me(t),Le(t);var s=ze(t);t.teardown=typeof s=="function"?s:null,t.wv=Ve;var i;le&&An&&(t.f&R)!==0&&t.deps}finally{st=r,v=n}}}function S(t){var e=t.f,n=(e&b)!==0;if(_!==null&&!j){var r=v!==null&&(v.f&J)!==0;if(!r&&!K?.includes(t)){var s=_.deps;if((_.f&Vt)!==0)t.rv<wt&&(t.rv=wt,E===null&&s!==null&&s[C]===t?C++:E===null?E=[t]:E.includes(t)||E.push(t));else{(_.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[_]:i.includes(_)||i.push(_)}}}if(ct){if(Z.has(t))return Z.get(t);if(n){var f=t,l=f.v;return((f.f&m)===0&&f.reactions!==null||Ge(f))&&(l=Jt(f)),Z.set(f,l),l}}else if(n){if(f=t,A?.has(f))return A.get(f);bt(f)&&Se(f),st&&Lt()&&(f.f&N)===0&&We(f)}else if(A?.has(t))return A.get(t);if((t.f&X)!==0)throw t.v;return t.v}function We(t){if(t.deps!==null){t.f^=N;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&b)!==0&&(e.f&N)===0&&We(e)}}function Ge(t){if(t.v===w)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Z.has(e)||(e.f&b)!==0&&Ge(e))return!0;return!1}function ir(t){var e=j;try{return j=!0,t()}finally{j=e}}const fr=-7169;function x(t,e){t.f=t.f&fr|e}const Je=new Set,Qt=new Set;function lr(t){for(var e=0;e<t.length;e++)Je.add(t[e]);for(var n of Qt)n(t)}let Xe=null;function qt(t){var e=this,n=e.ownerDocument,r=t.type,s=t.composedPath?.()||[],i=s[0]||t.target;Xe=t;var f=0,l=Xe===t&&t.__root;if(l){var u=s.indexOf(l);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var o=s.indexOf(e);if(o===-1)return;u<=o&&(f=u)}if(i=s[f]||t.target,i!==e){xt(t,"currentTarget",{configurable:!0,get(){return i||n}});var h=_,d=v;k(null),q(null);try{for(var a,c=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var T=i["__"+r];T!=null&&(!i.disabled||t.target===i)&&T.call(i,t)}catch(z){a?c.push(z):a=z}if(t.cancelBubble||p===e||p===null)break;i=p}if(a){for(let z of c)queueMicrotask(()=>{throw z});throw a}}finally{t.__root=e,delete t.currentTarget,k(h),q(d)}}}function ur(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function te(t,e){var n=v;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function or(t,e){var n=(e&ln)!==0,r,s=!t.startsWith("<!>");return()=>{if(g)return te($,null),$;r===void 0&&(r=ur(s?t:"<!>"+t),r=Ft(r));var i=n||Oe?document.importNode(r,!0):r.cloneNode(!0);return te(i,i),i}}function Ze(t,e){if(g){v.nodes_end=$,_e();return}t!==null&&t.before(e)}const ar=["touchstart","touchmove"];function cr(t){return ar.includes(t)}function Qe(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function tn(t,e){return en(t,e)}function hr(t,e){Zt(),e.intro=e.intro??!1;const n=e.target,r=g,s=$;try{for(var i=Ft(n);i&&(i.nodeType!==Rt||i.data!==se);)i=Q(i);if(!i)throw dt;At(!0),V(i);const f=en(t,{...e,anchor:i});return At(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==dt&&console.warn("Failed to hydrate: ",f),e.recover===!1&&yn(),Zt(),Yn(n),At(!1),tn(t,e)}finally{At(r),V(s)}}const ht=new Map;function en(t,{target:e,anchor:n,props:r={},events:s,context:i,intro:f=!0}){Zt();var l=new Set,u=d=>{for(var a=0;a<d.length;a++){var c=d[a];if(!l.has(c)){l.add(c);var p=cr(c);e.addEventListener(c,qt,{passive:p});var T=ht.get(c);T===void 0?(document.addEventListener(c,qt,{passive:p}),ht.set(c,1)):ht.set(c,T+1)}}};u(an(Je)),Qt.add(u);var o=void 0,h=zn(()=>{var d=n??e.appendChild(yt());return Dn(d,{pending:()=>{}},a=>{if(i){pe({});var c=P;c.c=i}if(s&&(r.$$events=s),g&&te(a,null),o=t(a,r)||{},g&&(v.nodes_end=$,$===null||$.nodeType!==Rt||$.data!==fe))throw Kt(),dt;i&&$e()}),()=>{for(var a of l){e.removeEventListener(a,qt);var c=ht.get(a);--c===0?(document.removeEventListener(a,qt),ht.delete(a)):ht.set(a,c)}Qt.delete(u),d!==n&&d.parentNode?.removeChild(d)}});return ee.set(o,h),o}let ee=new WeakMap;function dr(t,e){const n=ee.get(t);return n?(ee.delete(t),n(e)):Promise.resolve()}function _r(t,e){Wn(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,r.appendChild(s)}})}function vr(t,e){return t==null?null:String(t)}function pr(t,e,n,r){var s=t.__style;if(g||s!==e){var i=vr(e);(!g||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t.__style=e}return r}function nn(t,e,n,r){var s=r,i=!0,f=()=>(i&&(i=!1,s=r),s),l;l=t[e],l===void 0&&r!==void 0&&(l=f());var u;u=()=>{var a=t[e];return a===void 0?f():(i=!0,a)};var o=!1,h=Te(()=>(o=!1,u())),d=v;return(function(a,c){if(arguments.length>0){const p=c?S(h):a;return F(h,p),o=!0,s!==void 0&&(s=p),a}return ct&&o||(d.f&J)!==0?h.v:S(h)})}function $r(t){return new gr(t)}class gr{#e;#t;constructor(e){var n=new Map,r=(i,f)=>{var l=qn(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...e.props||{},$$events:{}},{get(i,f){return S(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===pn?!0:(S(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return F(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#t=(e.hydrate?hr:tn)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Gt(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||xt(this,i,{get(){return this.#t[i]},set(f){this.#t[i]=f},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{dr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,n){this.#e[e]=this.#e[e]||[];const r=(...s)=>n.call(this,...s);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let rn;typeof HTMLElement=="function"&&(rn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),Ze(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=yr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Bt(s,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=$r({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Kn(()=>{Ie(()=>{this.$$r=!0;for(const r of Et(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Bt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Bt(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Et(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Bt(t,e,n,r){const s=n[t]?.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function yr(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function wr(t,e,n,r,s,i){let f=class extends rn{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return Et(e).map(l=>(e[l].attribute||l).toLowerCase())}};return Et(e).forEach(l=>{xt(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=Bt(l,u,e),this.$$d[l]=u;var o=this.$$c;if(o){var h=ft(o,l)?.get;h?o[l]=u:o.$set({[l]:u})}}})}),r.forEach(l=>{xt(f.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=f,f}var br=or('<div id="content" part="content" class="svelte-d9fq57"><div id="copycode" class="svelte-d9fq57"><div id="flash">copied to the clipboard</div> <button id="copybutton" class="svelte-d9fq57"> </button></div> <code part="content" style="overflow-wrap: break-word;"> </code></div>');const mr={hash:"svelte-d9fq57",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;--hb-area-code-background: rgb(232 232 232 / 57%);}#content.svelte-d9fq57 {background-color:var(--hb-area-code-background);padding:28px 12px 28px 12px;position:relative;}#copycode.svelte-d9fq57 {position:absolute;right:6px;top:6px;font-size:0.6em;}#copybutton.svelte-d9fq57 {cursor:pointer;}'};function sn(t,e){pe(e,!0),_r(t,mr);let n=nn(e,"id",7,""),r=nn(e,"content",7,"");function s(T,z){e.$$host.dispatchEvent(new CustomEvent(T,{detail:z}))}let i=U(!1);function f(){S(i)||(navigator.clipboard.writeText(r()),F(i,!0),s("clipboardCopyText",{text:r()}),setInterval(()=>{F(i,!1)},5e3))}var l={get id(){return n()},set id(T=""){n(T),Gt()},get content(){return r()},set content(T=""){r(T),Gt()}},u=br(),o=It(u),h=It(o),d=De(h,2);d.__click=f;var a=It(d,!0);Ct(d),Ct(o);var c=De(o,2),p=It(c,!0);return Ct(c),Ct(u),Jn(()=>{pr(h,`display:${S(i)?"inline-block":"none"}`),Qe(a,S(i)?"ok!":"copy"),Qe(p,r())}),Ze(t,u),$e(l)}lr(["click"]),customElements.define("hb-area-code",wr(sn,{id:{},content:{}},[],[],!0)),re.Component=sn,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})})(this["area-code"]=this["area-code"]||{});
11
3
  //# sourceMappingURL=main.iife.js.map