@htmlbricks/hb-input-area 0.65.23 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +2 -39
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(vt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const wr=1,$r=2,_t="[",Ke="[!",bt="]",ce={},$=Symbol(),kr="http://www.w3.org/1999/xhtml",We=!1;var Er=Array.isArray,xr=Array.prototype.indexOf,Tr=Array.from,Ne=Object.keys,Re=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyDescriptors,jr=Object.prototype,Ar=Array.prototype,pt=Object.getPrototypeOf,gt=Object.isExtensible;function Nr(e){for(var t=0;t<e.length;t++)e[t]()}function mt(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const w=2,Ge=4,Je=8,V=16,z=32,Q=64,Ce=128,P=512,k=1024,S=2048,H=4096,F=8192,Y=16384,Oe=32768,he=65536,yt=1<<17,wt=1<<18,se=1<<19,Rr=1<<20,ie=32768,Xe=1<<21,Ze=1<<22,ee=1<<23,Qe=Symbol("$state"),Cr=Symbol("legacy props"),Or=Symbol(""),ve=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},et=3,me=8;function Mr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Lr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ir(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Fr(){throw new Error("https://svelte.dev/e/hydration_failed")}function qr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ur(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Vr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Me(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function zr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function _e(e){m=e}let y;function D(e){if(e===null)throw Me(),ce;return y=e}function tt(){return D(G(y))}function Hr(e){if(m){if(G(y)!==null)throw Me(),ce;y=e}}function Yr(e=1){if(m){for(var t=e,r=y;t--;)r=G(r);y=r}}function $t(e=!0){for(var t=0,r=y;;){if(r.nodeType===me){var n=r.data;if(n===bt){if(t===0)return r;t-=1}else(n===_t||n===Ke)&&(t+=1)}var i=G(r);e&&r.remove(),r=i}}function Kr(e){if(!e||e.nodeType!==me)throw Me(),ce;return e.data}function kt(e){return e===this.v}function Wr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Gr(e){return!Wr(e,this.v)}let Jr=!1,R=null;function be(e){R=e}function Et(e,t=!1,r){R={p:R,i:!1,c:null,e:null,s:e,x:null,l:null}}function xt(e){var t=R,r=t.e;if(r!==null){t.e=null;for(var n of r)Yt(n)}return e!==void 0&&(t.x=e),t.i=!0,R=t.p,e??{}}function Tt(){return!0}let oe=[];function St(){var e=oe;oe=[],Nr(e)}function Le(e){if(oe.length===0&&!ye){var t=oe;queueMicrotask(()=>{t===oe&&St()})}oe.push(e)}function Xr(){for(;oe.length>0;)St()}function jt(e){var t=b;if(t===null)return _.f|=ee,e;if((t.f&Oe)===0){if((t.f&Ce)===0)throw e;t.b.error(e)}else pe(e,t)}function pe(e,t){for(;t!==null;){if((t.f&Ce)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Pe=new Set;let p=null,De=null,C=null,O=[],Ie=null,rt=!1,ye=!1;class I{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#a=null;#i=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){O=[],De=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects)):(De=this,p=null,Nt(r.render_effects),Nt(r.effects),De=null,this.#a?.resolve()),C=null}#o(t,r){t.f^=k;for(var n=t.first;n!==null;){var i=n.f,s=(i&(z|Q))!==0,o=s&&(i&k)!==0,l=o||(i&F)!==0||this.skipped_effects.has(n);if((n.f&Ce)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){s?n.f^=k:(i&Ge)!==0?r.effects.push(n):Se(n)&&((n.f&V)!==0&&r.block_effects.push(n),je(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#l(t){for(const r of t)((r.f&S)!==0?this.#i:this.#s).push(r),this.#f(r.deps),E(r,k)}#f(t){if(t!==null)for(const r of t)(r.f&w)===0||(r.f&ie)===0||(r.f^=ie,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&ee)===0&&(this.current.set(t,t.v),C?.set(t,t.v))}activate(){p=this,this.apply()}deactivate(){p===this&&(p=null,C=null)}flush(){if(this.activate(),O.length>0){if(At(),p!==null&&p!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Pe.size>1){this.previous.clear();var t=C,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Pe){if(s===this){r=!1;continue}const o=[];for(const[a,f]of this.current){if(s.current.has(a))if(r&&f!==s.current.get(a))s.current.set(a,f);else continue;o.push(a)}if(o.length===0)continue;const l=[...s.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var i=O;O=[];const a=new Set,f=new Map;for(const c of o)Rt(c,l,a,f);if(O.length>0){p=s,s.apply();for(const c of O)s.#o(c,n);s.deactivate()}O=i}}p=null,C=t}this.committed=!0,Pe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#i)E(t,S),le(t);for(const t of this.#s)E(t,H),le(t);this.#i=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=mt()).promise}static ensure(){if(p===null){const t=p=new I;Pe.add(p),ye||I.enqueue(()=>{p===t&&t.flush()})}return p}static enqueue(t){Le(t)}apply(){}}function we(e){var t=ye;ye=!0;try{for(var r;;){if(Xr(),O.length===0&&(p?.flush(),O.length===0))return Ie=null,r;At()}}finally{ye=t}}function At(){var e=ne;rt=!0;var t=null;try{var r=0;for(Ve(!0);O.length>0;){var n=I.ensure();if(r++>1e3){var i,s;Zr()}n.process(O),te.clear()}}finally{rt=!1,Ve(e),Ie=null}}function Zr(){try{Ir()}catch(e){pe(e,Ie)}}let K=null;function Nt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Y|F))===0&&Se(n)&&(K=new Set,je(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Xt(n):n.fn=null),K?.size>0)){te.clear();for(const i of K){if((i.f&(Y|F))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)K.has(o)&&(K.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(Y|F))===0&&je(a)}}K.clear()}}K=null}}function Rt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&w)!==0?Rt(i,t,r,n):(s&(Ze|V))!==0&&(s&S)===0&&Ct(i,t,n)&&(E(i,S),le(i))}}function Ct(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&w)!==0&&Ct(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function le(e){for(var t=Ie=e;t.parent!==null;){t=t.parent;var r=t.f;if(rt&&t===b&&(r&V)!==0&&(r&wt)===0)return;if((r&(Q|z))!==0){if((r&k)===0)return;t.f^=k}}O.push(t)}function Qr(e){let t=0,r=$e(0),n;return()=>{Ue()&&(g(r),lt(()=>(t===0&&(n=ur(()=>e(()=>ke(r)))),t+=1,()=>{Le(()=>{t-=1,t===0&&(n?.(),n=void 0,ke(r))})})))}}var en=he|se|Ce;function tn(e,t,r){new rn(e,t,r)}class rn{parent;#t=!1;#e;#r=m?y:null;#n;#a;#i;#s=null;#o=null;#l=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=Qr(()=>(this.#h=$e(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#a=n,this.parent=b.b,this.#t=!!this.#n.pending,this.#i=Wt(()=>{if(b.b=this,m){const s=this.#r;tt(),s.nodeType===me&&s.data===Ke?this.#w():this.#y()}else{var i=this.#p();try{this.#s=J(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},en),m&&(this.#e=y)}#y(){try{this.#s=J(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#o=J(()=>t(this.#e)),I.enqueue(()=>{var r=this.#p();this.#s=this.#_(()=>(I.ensure(),J(()=>this.#a(r)))),this.#d>0?this.#b():(xe(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=re(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=b,n=_,i=R;U(this.#i),A(this.#i),be(this.#i.ctx);try{return t()}catch(s){return jt(s),null}finally{U(r),A(n),be(i)}}#b(){const t=this.#n.pending;this.#s!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),er(this.#s,this.#f)),this.#o===null&&(this.#o=J(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&xe(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&qe(this.#h,this.#c)}get_effect_pending(){return this.#m(),g(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#s&&(j(this.#s),this.#s=null),this.#o&&(j(this.#o),this.#o=null),this.#l&&(j(this.#l),this.#l=null),m&&(D(this.#r),Yr(),D($t()));var i=!1,s=!1;const o=()=>{if(i){zr();return}i=!0,s&&Vr(),I.ensure(),this.#c=0,this.#l!==null&&xe(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#v=!1,J(()=>this.#a(this.#e)))),this.#d>0?this.#b():this.#t=!1};var l=_;try{A(null),s=!0,r?.(t,o),s=!1}catch(a){pe(a,this.#i&&this.#i.parent)}finally{A(l)}n&&Le(()=>{this.#l=this.#_(()=>{I.ensure(),this.#v=!0;try{return J(()=>{n(this.#e,()=>t,()=>o)})}catch(a){return pe(a,this.#i.parent),null}finally{this.#v=!1}})})}}function nn(e,t,r,n){const i=nt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=p,o=b,l=sn();function a(){Promise.all(r.map(f=>on(f))).then(f=>{l();try{n([...t.map(i),...f])}catch(c){(o.f&Y)===0&&pe(c,o)}s?.deactivate(),Fe()}).catch(f=>{pe(f,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{s?.deactivate(),Fe()}}):a()}function sn(){var e=b,t=_,r=R,n=p;return function(s=!0){U(e),A(t),be(r),s&&n?.activate()}}function Fe(){U(null),A(null),be(null)}function nt(e){var t=w|S,r=_!==null&&(_.f&w)!==0?_:null;return b!==null&&(b.f|=se),{ctx:R,deps:null,effects:null,equals:kt,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:r??b,ac:null}}function on(e,t){let r=b;r===null&&Mr();var n=r.b,i=void 0,s=$e($),o=!_,l=new Map;return $n(()=>{var a=mt();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===p&&f.committed&&f.deactivate(),Fe()})}catch(u){a.reject(u),Fe()}var f=p;if(o){var c=!n.is_pending();n.update_pending_count(1),f.increment(c),l.get(f)?.reject(ve),l.delete(f),l.set(f,a)}const d=(u,h=void 0)=>{if(f.activate(),h)h!==ve&&(s.f|=ee,qe(s,h));else{(s.f&ee)!==0&&(s.f^=ee),qe(s,u);for(const[v,T]of l){if(l.delete(v),v===f)break;T.reject(ve)}}o&&(n.update_pending_count(-1),f.decrement(c))};a.promise.then(d,u=>d(null,u||"unknown"))}),zt(()=>{for(const a of l.values())a.reject(ve)}),new Promise(a=>{function f(c){function d(){c===i?a(s):f(i)}c.then(d,d)}f(i)})}function Ot(e){const t=nt(e);return rr(t),t}function Mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)j(t[r])}}function ln(e){for(var t=e.parent;t!==null;){if((t.f&w)===0)return(t.f&Y)===0?t:null;t=t.parent}return null}function st(e){var t,r=b;U(ln(e));try{e.f&=~ie,Mt(e),t=lr(e)}finally{U(r)}return t}function Lt(e){var t=st(e);if(e.equals(t)||(p?.is_fork||(e.v=t),e.wv=ir()),!fe)if(C!==null)Ue()&&C.set(e,t);else{var r=(e.f&P)===0?H:k;E(e,r)}}let it=new Set;const te=new Map;let Pt=!1;function $e(e,t){var r={f:0,v:e,reactions:null,equals:kt,rv:0,wv:0};return r}function W(e,t){const r=$e(e);return rr(r),r}function an(e,t=!1,r=!0){const n=$e(e);return t||(n.equals=Gr),n}function M(e,t,r=!1){_!==null&&(!B||(_.f&yt)!==0)&&Tt()&&(_.f&(w|V|Ze|yt))!==0&&!X?.includes(e)&&Ur();let n=r?Ee(t):t;return qe(e,n)}function qe(e,t){if(!e.equals(t)){var r=e.v;fe?te.set(e,t):te.set(e,r),e.v=t;var n=I.ensure();n.capture(e,r),(e.f&w)!==0&&((e.f&S)!==0&&st(e),E(e,(e.f&P)!==0?k:H)),e.wv=ir(),Dt(e,S),b!==null&&(b.f&k)!==0&&(b.f&(z|Q))===0&&(L===null?Sn([e]):L.push(e)),!n.is_fork&&it.size>0&&!Pt&&fn()}return t}function fn(){Pt=!1;var e=ne;Ve(!0);const t=Array.from(it);try{for(const r of t)(r.f&k)!==0&&E(r,H),Se(r)&&je(r)}finally{Ve(e)}it.clear()}function ke(e){M(e,e.v+1)}function Dt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,l=(o&S)===0;if(l&&E(s,t),(o&w)!==0){var a=s;C?.delete(a),(o&ie)===0&&(o&P&&(s.f|=ie),Dt(a,H))}else l&&((o&V)!==0&&K!==null&&K.add(s),le(s))}}function Ee(e){if(typeof e!="object"||e===null||Qe in e)return e;const t=pt(e);if(t!==jr&&t!==Ar)return e;var r=new Map,n=Er(e),i=W(0),s=ue,o=l=>{if(ue===s)return l();var a=_,f=ue;A(null),sr(s);var c=l();return A(a),sr(f),c};return n&&r.set("length",W(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&qr();var c=r.get(a);return c===void 0?c=o(()=>{var d=W(f.value);return r.set(a,d),d}):M(c,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const c=o(()=>W($));r.set(a,c),ke(i)}}else M(f,$),ke(i);return!0},get(l,a,f){if(a===Qe)return e;var c=r.get(a),d=a in l;if(c===void 0&&(!d||de(l,a)?.writable)&&(c=o(()=>{var h=Ee(d?l[a]:$),v=W(h);return v}),r.set(a,c)),c!==void 0){var u=g(c);return u===$?void 0:u}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var c=r.get(a);c&&(f.value=g(c))}else if(f===void 0){var d=r.get(a),u=d?.v;if(d!==void 0&&u!==$)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(l,a){if(a===Qe)return!0;var f=r.get(a),c=f!==void 0&&f.v!==$||Reflect.has(l,a);if(f!==void 0||b!==null&&(!c||de(l,a)?.writable)){f===void 0&&(f=o(()=>{var u=c?Ee(l[a]):$,h=W(u);return h}),r.set(a,f));var d=g(f);if(d===$)return!1}return c},set(l,a,f,c){var d=r.get(a),u=a in l;if(n&&a==="length")for(var h=f;h<d.v;h+=1){var v=r.get(h+"");v!==void 0?M(v,$):h in l&&(v=o(()=>W($)),r.set(h+"",v))}if(d===void 0)(!u||de(l,a)?.writable)&&(d=o(()=>W(void 0)),M(d,Ee(f)),r.set(a,d));else{u=d.v!==$;var T=o(()=>Ee(f));M(d,T)}var Z=Reflect.getOwnPropertyDescriptor(l,a);if(Z?.set&&Z.set.call(c,f),!u){if(n&&typeof a=="string"){var yr=r.get("length"),ht=Number(a);Number.isInteger(ht)&&ht>=yr.v&&M(yr,ht+1)}ke(i)}return!0},ownKeys(l){g(i);var a=Reflect.ownKeys(l).filter(d=>{var u=r.get(d);return u===void 0||u.v!==$});for(var[f,c]of r)c.v!==$&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Br()}})}var It,Ft,qt,Bt;function ot(){if(It===void 0){It=window,Ft=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qt=de(t,"firstChild").get,Bt=de(t,"nextSibling").get,gt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),gt(r)&&(r.__t=void 0)}}function re(e=""){return document.createTextNode(e)}function ae(e){return qt.call(e)}function G(e){return Bt.call(e)}function un(e,t){if(!m)return ae(e);var r=ae(y);if(r===null)r=y.appendChild(re());else if(r.nodeType!==et){var n=re();return r?.before(n),D(n),n}return D(r),r}function cn(e,t=!1){if(!m){var r=ae(e);return r instanceof Comment&&r.data===""?G(r):r}if(t&&y?.nodeType!==et){var n=re();return y?.before(n),D(n),n}return y}function dn(e,t=1,r=!1){let n=m?y:e;for(var i;t--;)i=n,n=G(n);if(!m)return n;if(r&&n?.nodeType!==et){var s=re();return n===null?i?.after(s):n.before(s),D(s),s}return D(n),n}function Ut(e){e.textContent=""}function hn(){return!1}function vn(e){m&&ae(e)!==null&&Ut(e)}let Vt=!1;function _n(){Vt||(Vt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Be(e){var t=_,r=b;A(null),U(null);try{return e()}finally{A(t),U(r)}}function bn(e,t,r,n=r){e.addEventListener(t,()=>Be(r));const i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),_n()}function pn(e){b===null&&(_===null&&Dr(),Pr()),fe&&Lr()}function gn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function q(e,t,r){var n=b;n!==null&&(n.f&F)!==0&&(e|=F);var i={ctx:R,deps:null,nodes_start:null,nodes_end:null,f:e|S|P,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{je(i),i.f|=Oe}catch(l){throw j(i),l}else t!==null&&le(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&se)===0&&(s=s.first,(e&V)!==0&&(e&he)!==0&&s!==null&&(s.f|=he)),s!==null&&(s.parent=n,n!==null&&gn(s,n),_!==null&&(_.f&w)!==0&&(e&Q)===0)){var o=_;(o.effects??=[]).push(s)}return i}function Ue(){return _!==null&&!B}function zt(e){const t=q(Je,null,!1);return E(t,k),t.teardown=e,t}function Ht(e){pn();var t=b.f,r=!_&&(t&z)!==0&&(t&Oe)===0;if(r){var n=R;(n.e??=[]).push(e)}else return Yt(e)}function Yt(e){return q(Ge|Rr,e,!1)}function mn(e){I.ensure();const t=q(Q|se,e,!0);return()=>{j(t)}}function yn(e){I.ensure();const t=q(Q|se,e,!0);return(r={})=>new Promise(n=>{r.outro?xe(t,()=>{j(t),n(void 0)}):(j(t),n(void 0))})}function wn(e){return q(Ge,e,!1)}function $n(e){return q(Ze|se,e,!0)}function lt(e,t=0){return q(Je|t,e,!0)}function Kt(e,t=[],r=[],n=[]){nn(n,t,r,i=>{q(Je,()=>e(...i.map(g)),!0)})}function Wt(e,t=0){var r=q(V|t,e,!0);return r}function J(e){return q(z|se,e,!0)}function Gt(e){var t=e.teardown;if(t!==null){const r=fe,n=_;tr(!0),A(null);try{t.call(null)}finally{tr(r),A(n)}}}function Jt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Be(()=>{i.abort(ve)});var n=r.next;(r.f&Q)!==0?r.parent=null:j(r,t),r=n}}function kn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&z)===0&&j(t),t=r}}function j(e,t=!0){var r=!1;(t||(e.f&wt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(En(e.nodes_start,e.nodes_end),r=!0),Jt(e,t&&!r),ze(e,0),E(e,Y);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Gt(e);var i=e.parent;i!==null&&i.first!==null&&Xt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function En(e,t){for(;e!==null;){var r=e===t?null:G(e);e.remove(),e=r}}function Xt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function xe(e,t,r=!0){var n=[];Zt(e,n,!0),xn(n,()=>{r&&j(e),t&&t()})}function xn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Zt(e,t,r){if((e.f&F)===0){if(e.f^=F,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&he)!==0||(n.f&z)!==0&&(e.f&V)!==0;Zt(n,t,s?r:!1),n=i}}}function Tn(e){Qt(e,!0)}function Qt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&k)===0&&(E(e,S),le(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&he)!==0||(r.f&z)!==0;Qt(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function er(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:G(r);t.append(r),r=i}}let ne=!1;function Ve(e){ne=e}let fe=!1;function tr(e){fe=e}let _=null,B=!1;function A(e){_=e}let b=null;function U(e){b=e}let X=null;function rr(e){_!==null&&(X===null?X=[e]:X.push(e))}let x=null,N=0,L=null;function Sn(e){L=e}let nr=1,Te=0,ue=Te;function sr(e){ue=e}function ir(){return++nr}function Se(e){var t=e.f;if((t&S)!==0)return!0;if(t&w&&(e.f&=~ie),(t&H)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(Se(s)&&Lt(s),s.wv>e.wv)return!0}(t&P)!==0&&C===null&&E(e,k)}return!1}function or(e,t,r=!0){var n=e.reactions;if(n!==null&&!X?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&w)!==0?or(s,t,!1):t===s&&(r?E(s,S):(s.f&k)!==0&&E(s,H),le(s))}}function lr(e){var t=x,r=N,n=L,i=_,s=X,o=R,l=B,a=ue,f=e.f;x=null,N=0,L=null,_=(f&(z|Q))===0?e:null,X=null,be(e.ctx),B=!1,ue=++Te,e.ac!==null&&(Be(()=>{e.ac.abort(ve)}),e.ac=null);try{e.f|=Xe;var c=e.fn,d=c(),u=e.deps;if(x!==null){var h;if(ze(e,N),u!==null&&N>0)for(u.length=N+x.length,h=0;h<x.length;h++)u[N+h]=x[h];else e.deps=u=x;if(ne&&Ue()&&(e.f&P)!==0)for(h=N;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&N<u.length&&(ze(e,N),u.length=N);if(Tt()&&L!==null&&!B&&u!==null&&(e.f&(w|H|S))===0)for(h=0;h<L.length;h++)or(L[h],e);return i!==null&&i!==e&&(Te++,L!==null&&(n===null?n=L:n.push(...L))),(e.f&ee)!==0&&(e.f^=ee),d}catch(v){return jt(v)}finally{e.f^=Xe,x=t,N=r,L=n,_=i,X=s,be(o),B=l,ue=a}}function jn(e,t){let r=t.reactions;if(r!==null){var n=xr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&w)!==0&&(x===null||!x.includes(t))&&(E(t,H),(t.f&P)!==0&&(t.f^=P,t.f&=~ie),Mt(t),ze(t,0))}function ze(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)jn(e,r[n])}function je(e){var t=e.f;if((t&Y)===0){E(e,k);var r=b,n=ne;b=e,ne=!0;try{(t&V)!==0?kn(e):Jt(e),Gt(e);var i=lr(e);e.teardown=typeof i=="function"?i:null,e.wv=nr;var s;We&&Jr&&(e.f&S)!==0&&e.deps}finally{ne=n,b=r}}}async function An(){await Promise.resolve(),we()}function g(e){var t=e.f,r=(t&w)!==0;if(_!==null&&!B){var n=b!==null&&(b.f&Y)!==0;if(!n&&!X?.includes(e)){var i=_.deps;if((_.f&Xe)!==0)e.rv<Te&&(e.rv=Te,x===null&&i!==null&&i[N]===e?N++:x===null?x=[e]:x.includes(e)||x.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(fe){if(te.has(e))return te.get(e);if(r){var o=e,l=o.v;return((o.f&k)===0&&o.reactions!==null||fr(o))&&(l=st(o)),te.set(o,l),l}}else r&&!C?.has(e)&&(o=e,Se(o)&&Lt(o),ne&&Ue()&&(o.f&P)===0&&ar(o));if(C?.has(e))return C.get(e);if((e.f&ee)!==0)throw e.v;return e.v}function ar(e){if(e.deps!==null){e.f^=P;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&w)!==0&&(t.f&P)===0&&ar(t)}}function fr(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(te.has(t)||(t.f&w)!==0&&fr(t))return!0;return!1}function ur(e){var t=B;try{return B=!0,e()}finally{B=t}}const Nn=-7169;function E(e,t){e.f=e.f&Nn|t}const Rn=new Set,cr=new Set;function Cn(e,t,r,n={}){function i(s){if(n.capture||Ae.call(t,s),!s.cancelBubble)return Be(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Le(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function On(e,t,r,n,i){var s={capture:n,passive:i},o=Cn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&zt(()=>{t.removeEventListener(e,o,s)})}let dr=null;function Ae(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;dr=e;var o=0,l=dr===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){Re(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=_,d=b;A(null),U(null);try{for(var u,h=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var T=s["__"+n];T!=null&&(!s.disabled||e.target===s)&&T.call(s,e)}catch(Z){u?h.push(Z):u=Z}if(e.cancelBubble||v===t||v===null)break;s=v}if(u){for(let Z of h)queueMicrotask(()=>{throw Z});throw u}}finally{e.__root=t,delete e.currentTarget,A(c),U(d)}}}function Mn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function He(e,t){var r=b;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function hr(e,t){var r=(t&wr)!==0,n=(t&$r)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return He(y,null),y;i===void 0&&(i=Mn(s?e:"<!>"+e),r||(i=ae(i)));var o=n||Ft?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=ae(o),a=o.lastChild;He(l,a)}else He(o,o);return o}}function at(e,t){if(m){var r=b;((r.f&Oe)===0||r.nodes_end===null)&&(r.nodes_end=y),tt();return}e!==null&&e.before(t)}const Ln=["touchstart","touchmove"];function Pn(e){return Ln.includes(e)}function Dn(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function vr(e,t){return _r(e,t)}function In(e,t){ot(),t.intro=t.intro??!1;const r=t.target,n=m,i=y;try{for(var s=ae(r);s&&(s.nodeType!==me||s.data!==_t);)s=G(s);if(!s)throw ce;_e(!0),D(s);const o=_r(e,{...t,anchor:s});return _e(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(
|
|
1
|
+
(function(vt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const yr=1,$r=2,_t="[",Ke="[!",pt="]",ce={},$=Symbol(),kr="http://www.w3.org/1999/xhtml",We=!1;var Er=Array.isArray,xr=Array.prototype.indexOf,Tr=Array.from,Re=Object.keys,Ne=Object.defineProperty,de=Object.getOwnPropertyDescriptor,jr=Object.getOwnPropertyDescriptors,Sr=Object.prototype,Ar=Array.prototype,mt=Object.getPrototypeOf,gt=Object.isExtensible;function Rr(e){for(var t=0;t<e.length;t++)e[t]()}function bt(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const y=2,Ge=4,Je=8,Y=16,z=32,Q=64,Oe=128,P=512,k=1024,j=2048,H=4096,F=8192,U=16384,Ce=32768,he=65536,wt=1<<17,yt=1<<18,ie=1<<19,Nr=1<<20,se=32768,Xe=1<<21,Ze=1<<22,ee=1<<23,Qe=Symbol("$state"),Or=Symbol("legacy props"),Cr=Symbol(""),ve=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},et=3,be=8;function Mr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Lr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ir(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Fr(){throw new Error("https://svelte.dev/e/hydration_failed")}function qr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Yr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Me(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function zr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let b=!1;function _e(e){b=e}let w;function D(e){if(e===null)throw Me(),ce;return w=e}function tt(){return D(G(w))}function Hr(e){if(b){if(G(w)!==null)throw Me(),ce;w=e}}function Ur(e=1){if(b){for(var t=e,r=w;t--;)r=G(r);w=r}}function $t(e=!0){for(var t=0,r=w;;){if(r.nodeType===be){var n=r.data;if(n===pt){if(t===0)return r;t-=1}else(n===_t||n===Ke)&&(t+=1)}var s=G(r);e&&r.remove(),r=s}}function Kr(e){if(!e||e.nodeType!==be)throw Me(),ce;return e.data}function kt(e){return e===this.v}function Wr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Gr(e){return!Wr(e,this.v)}let Jr=!1,N=null;function pe(e){N=e}function Et(e,t=!1,r){N={p:N,i:!1,c:null,e:null,s:e,x:null,l:null}}function xt(e){var t=N,r=t.e;if(r!==null){t.e=null;for(var n of r)Ut(n)}return e!==void 0&&(t.x=e),t.i=!0,N=t.p,e??{}}function Tt(){return!0}let le=[];function jt(){var e=le;le=[],Rr(e)}function Le(e){if(le.length===0&&!we){var t=le;queueMicrotask(()=>{t===le&&jt()})}le.push(e)}function Xr(){for(;le.length>0;)jt()}function St(e){var t=p;if(t===null)return _.f|=ee,e;if((t.f&Ce)===0){if((t.f&Oe)===0)throw e;t.b.error(e)}else me(e,t)}function me(e,t){for(;t!==null;){if((t.f&Oe)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Pe=new Set;let m=null,De=null,O=null,C=[],Ie=null,rt=!1,we=!1;class I{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#a=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){C=[],De=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#l(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects)):(De=this,m=null,Rt(r.render_effects),Rt(r.effects),De=null,this.#a?.resolve()),O=null}#l(t,r){t.f^=k;for(var n=t.first;n!==null;){var s=n.f,i=(s&(z|Q))!==0,l=i&&(s&k)!==0,o=l||(s&F)!==0||this.skipped_effects.has(n);if((n.f&Oe)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!o&&n.fn!==null){i?n.f^=k:(s&Ge)!==0?r.effects.push(n):je(n)&&((n.f&Y)!==0&&r.block_effects.push(n),Se(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#o(t){for(const r of t)((r.f&j)!==0?this.#s:this.#i).push(r),this.#f(r.deps),E(r,k)}#f(t){if(t!==null)for(const r of t)(r.f&y)===0||(r.f&se)===0||(r.f^=se,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&ee)===0&&(this.current.set(t,t.v),O?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m===this&&(m=null,O=null)}flush(){if(this.activate(),C.length>0){if(At(),m!==null&&m!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Pe.size>1){this.previous.clear();var t=O,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Pe){if(i===this){r=!1;continue}const l=[];for(const[a,f]of this.current){if(i.current.has(a))if(r&&f!==i.current.get(a))i.current.set(a,f);else continue;l.push(a)}if(l.length===0)continue;const o=[...i.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){var s=C;C=[];const a=new Set,f=new Map;for(const c of l)Nt(c,o,a,f);if(C.length>0){m=i,i.apply();for(const c of C)i.#l(c,n);i.deactivate()}C=s}}m=null,O=t}this.committed=!0,Pe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)E(t,j),oe(t);for(const t of this.#i)E(t,H),oe(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=bt()).promise}static ensure(){if(m===null){const t=m=new I;Pe.add(m),we||I.enqueue(()=>{m===t&&t.flush()})}return m}static enqueue(t){Le(t)}apply(){}}function ye(e){var t=we;we=!0;try{for(var r;;){if(Xr(),C.length===0&&(m?.flush(),C.length===0))return Ie=null,r;At()}}finally{we=t}}function At(){var e=ne;rt=!0;var t=null;try{var r=0;for(Ye(!0);C.length>0;){var n=I.ensure();if(r++>1e3){var s,i;Zr()}n.process(C),te.clear()}}finally{rt=!1,Ye(e),Ie=null}}function Zr(){try{Ir()}catch(e){me(e,Ie)}}let K=null;function Rt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(U|F))===0&&je(n)&&(K=new Set,Se(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Xt(n):n.fn=null),K?.size>0)){te.clear();for(const s of K){if((s.f&(U|F))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)K.has(l)&&(K.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(U|F))===0&&Se(a)}}K.clear()}}K=null}}function Nt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&y)!==0?Nt(s,t,r,n):(i&(Ze|Y))!==0&&(i&j)===0&&Ot(s,t,n)&&(E(s,j),oe(s))}}function Ot(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&y)!==0&&Ot(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function oe(e){for(var t=Ie=e;t.parent!==null;){t=t.parent;var r=t.f;if(rt&&t===p&&(r&Y)!==0&&(r&yt)===0)return;if((r&(Q|z))!==0){if((r&k)===0)return;t.f^=k}}C.push(t)}function Qr(e){let t=0,r=$e(0),n;return()=>{Ve()&&(g(r),ot(()=>(t===0&&(n=ur(()=>e(()=>ke(r)))),t+=1,()=>{Le(()=>{t-=1,t===0&&(n?.(),n=void 0,ke(r))})})))}}var en=he|ie|Oe;function tn(e,t,r){new rn(e,t,r)}class rn{parent;#t=!1;#e;#r=b?w:null;#n;#a;#s;#i=null;#l=null;#o=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#b=Qr(()=>(this.#h=$e(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#a=n,this.parent=p.b,this.#t=!!this.#n.pending,this.#s=Wt(()=>{if(p.b=this,b){const i=this.#r;tt(),i.nodeType===be&&i.data===Ke?this.#y():this.#w()}else{var s=this.#m();try{this.#i=J(()=>n(s))}catch(i){this.error(i)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},en),b&&(this.#e=w)}#w(){try{this.#i=J(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#l=J(()=>t(this.#e)),I.enqueue(()=>{var r=this.#m();this.#i=this.#_(()=>(I.ensure(),J(()=>this.#a(r)))),this.#d>0?this.#p():(xe(this.#l,()=>{this.#l=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#u=re(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=p,n=_,s=N;V(this.#s),A(this.#s),pe(this.#s.ctx);try{return t()}catch(i){return St(i),null}finally{V(r),A(n),pe(s)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),er(this.#i,this.#f)),this.#l===null&&(this.#l=J(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#l&&xe(this.#l,()=>{this.#l=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&qe(this.#h,this.#c)}get_effect_pending(){return this.#b(),g(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#i&&(S(this.#i),this.#i=null),this.#l&&(S(this.#l),this.#l=null),this.#o&&(S(this.#o),this.#o=null),b&&(D(this.#r),Ur(),D($t()));var s=!1,i=!1;const l=()=>{if(s){zr();return}s=!0,i&&Yr(),I.ensure(),this.#c=0,this.#o!==null&&xe(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,J(()=>this.#a(this.#e)))),this.#d>0?this.#p():this.#t=!1};var o=_;try{A(null),i=!0,r?.(t,l),i=!1}catch(a){me(a,this.#s&&this.#s.parent)}finally{A(o)}n&&Le(()=>{this.#o=this.#_(()=>{I.ensure(),this.#v=!0;try{return J(()=>{n(this.#e,()=>t,()=>l)})}catch(a){return me(a,this.#s.parent),null}finally{this.#v=!1}})})}}function nn(e,t,r,n){const s=nt;if(r.length===0&&e.length===0){n(t.map(s));return}var i=m,l=p,o=sn();function a(){Promise.all(r.map(f=>ln(f))).then(f=>{o();try{n([...t.map(s),...f])}catch(c){(l.f&U)===0&&me(c,l)}i?.deactivate(),Fe()}).catch(f=>{me(f,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return a()}finally{i?.deactivate(),Fe()}}):a()}function sn(){var e=p,t=_,r=N,n=m;return function(i=!0){V(e),A(t),pe(r),i&&n?.activate()}}function Fe(){V(null),A(null),pe(null)}function nt(e){var t=y|j,r=_!==null&&(_.f&y)!==0?_:null;return p!==null&&(p.f|=ie),{ctx:N,deps:null,effects:null,equals:kt,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:r??p,ac:null}}function ln(e,t){let r=p;r===null&&Mr();var n=r.b,s=void 0,i=$e($),l=!_,o=new Map;return $n(()=>{var a=bt();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===m&&f.committed&&f.deactivate(),Fe()})}catch(u){a.reject(u),Fe()}var f=m;if(l){var c=!n.is_pending();n.update_pending_count(1),f.increment(c),o.get(f)?.reject(ve),o.delete(f),o.set(f,a)}const d=(u,h=void 0)=>{if(f.activate(),h)h!==ve&&(i.f|=ee,qe(i,h));else{(i.f&ee)!==0&&(i.f^=ee),qe(i,u);for(const[v,T]of o){if(o.delete(v),v===f)break;T.reject(ve)}}l&&(n.update_pending_count(-1),f.decrement(c))};a.promise.then(d,u=>d(null,u||"unknown"))}),zt(()=>{for(const a of o.values())a.reject(ve)}),new Promise(a=>{function f(c){function d(){c===s?a(i):f(s)}c.then(d,d)}f(s)})}function Ct(e){const t=nt(e);return rr(t),t}function Mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)S(t[r])}}function on(e){for(var t=e.parent;t!==null;){if((t.f&y)===0)return(t.f&U)===0?t:null;t=t.parent}return null}function it(e){var t,r=p;V(on(e));try{e.f&=~se,Mt(e),t=or(e)}finally{V(r)}return t}function Lt(e){var t=it(e);if(e.equals(t)||(m?.is_fork||(e.v=t),e.wv=sr()),!fe)if(O!==null)Ve()&&O.set(e,t);else{var r=(e.f&P)===0?H:k;E(e,r)}}let st=new Set;const te=new Map;let Pt=!1;function $e(e,t){var r={f:0,v:e,reactions:null,equals:kt,rv:0,wv:0};return r}function W(e,t){const r=$e(e);return rr(r),r}function an(e,t=!1,r=!0){const n=$e(e);return t||(n.equals=Gr),n}function M(e,t,r=!1){_!==null&&(!B||(_.f&wt)!==0)&&Tt()&&(_.f&(y|Y|Ze|wt))!==0&&!X?.includes(e)&&Vr();let n=r?Ee(t):t;return qe(e,n)}function qe(e,t){if(!e.equals(t)){var r=e.v;fe?te.set(e,t):te.set(e,r),e.v=t;var n=I.ensure();n.capture(e,r),(e.f&y)!==0&&((e.f&j)!==0&&it(e),E(e,(e.f&P)!==0?k:H)),e.wv=sr(),Dt(e,j),p!==null&&(p.f&k)!==0&&(p.f&(z|Q))===0&&(L===null?jn([e]):L.push(e)),!n.is_fork&&st.size>0&&!Pt&&fn()}return t}function fn(){Pt=!1;var e=ne;Ye(!0);const t=Array.from(st);try{for(const r of t)(r.f&k)!==0&&E(r,H),je(r)&&Se(r)}finally{Ye(e)}st.clear()}function ke(e){M(e,e.v+1)}function Dt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],l=i.f,o=(l&j)===0;if(o&&E(i,t),(l&y)!==0){var a=i;O?.delete(a),(l&se)===0&&(l&P&&(i.f|=se),Dt(a,H))}else o&&((l&Y)!==0&&K!==null&&K.add(i),oe(i))}}function Ee(e){if(typeof e!="object"||e===null||Qe in e)return e;const t=mt(e);if(t!==Sr&&t!==Ar)return e;var r=new Map,n=Er(e),s=W(0),i=ue,l=o=>{if(ue===i)return o();var a=_,f=ue;A(null),ir(i);var c=o();return A(a),ir(f),c};return n&&r.set("length",W(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&qr();var c=r.get(a);return c===void 0?c=l(()=>{var d=W(f.value);return r.set(a,d),d}):M(c,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const c=l(()=>W($));r.set(a,c),ke(s)}}else M(f,$),ke(s);return!0},get(o,a,f){if(a===Qe)return e;var c=r.get(a),d=a in o;if(c===void 0&&(!d||de(o,a)?.writable)&&(c=l(()=>{var h=Ee(d?o[a]:$),v=W(h);return v}),r.set(a,c)),c!==void 0){var u=g(c);return u===$?void 0:u}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var c=r.get(a);c&&(f.value=g(c))}else if(f===void 0){var d=r.get(a),u=d?.v;if(d!==void 0&&u!==$)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(o,a){if(a===Qe)return!0;var f=r.get(a),c=f!==void 0&&f.v!==$||Reflect.has(o,a);if(f!==void 0||p!==null&&(!c||de(o,a)?.writable)){f===void 0&&(f=l(()=>{var u=c?Ee(o[a]):$,h=W(u);return h}),r.set(a,f));var d=g(f);if(d===$)return!1}return c},set(o,a,f,c){var d=r.get(a),u=a in o;if(n&&a==="length")for(var h=f;h<d.v;h+=1){var v=r.get(h+"");v!==void 0?M(v,$):h in o&&(v=l(()=>W($)),r.set(h+"",v))}if(d===void 0)(!u||de(o,a)?.writable)&&(d=l(()=>W(void 0)),M(d,Ee(f)),r.set(a,d));else{u=d.v!==$;var T=l(()=>Ee(f));M(d,T)}var Z=Reflect.getOwnPropertyDescriptor(o,a);if(Z?.set&&Z.set.call(c,f),!u){if(n&&typeof a=="string"){var wr=r.get("length"),ht=Number(a);Number.isInteger(ht)&&ht>=wr.v&&M(wr,ht+1)}ke(s)}return!0},ownKeys(o){g(s);var a=Reflect.ownKeys(o).filter(d=>{var u=r.get(d);return u===void 0||u.v!==$});for(var[f,c]of r)c.v!==$&&!(f in o)&&a.push(f);return a},setPrototypeOf(){Br()}})}var It,Ft,qt,Bt;function lt(){if(It===void 0){It=window,Ft=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qt=de(t,"firstChild").get,Bt=de(t,"nextSibling").get,gt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),gt(r)&&(r.__t=void 0)}}function re(e=""){return document.createTextNode(e)}function ae(e){return qt.call(e)}function G(e){return Bt.call(e)}function un(e,t){if(!b)return ae(e);var r=ae(w);if(r===null)r=w.appendChild(re());else if(r.nodeType!==et){var n=re();return r?.before(n),D(n),n}return D(r),r}function cn(e,t=!1){if(!b){var r=ae(e);return r instanceof Comment&&r.data===""?G(r):r}if(t&&w?.nodeType!==et){var n=re();return w?.before(n),D(n),n}return w}function dn(e,t=1,r=!1){let n=b?w:e;for(var s;t--;)s=n,n=G(n);if(!b)return n;if(r&&n?.nodeType!==et){var i=re();return n===null?s?.after(i):n.before(i),D(i),i}return D(n),n}function Vt(e){e.textContent=""}function hn(){return!1}function vn(e){b&&ae(e)!==null&&Vt(e)}let Yt=!1;function _n(){Yt||(Yt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Be(e){var t=_,r=p;A(null),V(null);try{return e()}finally{A(t),V(r)}}function pn(e,t,r,n=r){e.addEventListener(t,()=>Be(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),_n()}function mn(e){p===null&&(_===null&&Dr(),Pr()),fe&&Lr()}function gn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function q(e,t,r){var n=p;n!==null&&(n.f&F)!==0&&(e|=F);var s={ctx:N,deps:null,nodes_start:null,nodes_end:null,f:e|j|P,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Se(s),s.f|=Ce}catch(o){throw S(s),o}else t!==null&&oe(s);var i=s;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&ie)===0&&(i=i.first,(e&Y)!==0&&(e&he)!==0&&i!==null&&(i.f|=he)),i!==null&&(i.parent=n,n!==null&&gn(i,n),_!==null&&(_.f&y)!==0&&(e&Q)===0)){var l=_;(l.effects??=[]).push(i)}return s}function Ve(){return _!==null&&!B}function zt(e){const t=q(Je,null,!1);return E(t,k),t.teardown=e,t}function Ht(e){mn();var t=p.f,r=!_&&(t&z)!==0&&(t&Ce)===0;if(r){var n=N;(n.e??=[]).push(e)}else return Ut(e)}function Ut(e){return q(Ge|Nr,e,!1)}function bn(e){I.ensure();const t=q(Q|ie,e,!0);return()=>{S(t)}}function wn(e){I.ensure();const t=q(Q|ie,e,!0);return(r={})=>new Promise(n=>{r.outro?xe(t,()=>{S(t),n(void 0)}):(S(t),n(void 0))})}function yn(e){return q(Ge,e,!1)}function $n(e){return q(Ze|ie,e,!0)}function ot(e,t=0){return q(Je|t,e,!0)}function Kt(e,t=[],r=[],n=[]){nn(n,t,r,s=>{q(Je,()=>e(...s.map(g)),!0)})}function Wt(e,t=0){var r=q(Y|t,e,!0);return r}function J(e){return q(z|ie,e,!0)}function Gt(e){var t=e.teardown;if(t!==null){const r=fe,n=_;tr(!0),A(null);try{t.call(null)}finally{tr(r),A(n)}}}function Jt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Be(()=>{s.abort(ve)});var n=r.next;(r.f&Q)!==0?r.parent=null:S(r,t),r=n}}function kn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&z)===0&&S(t),t=r}}function S(e,t=!0){var r=!1;(t||(e.f&yt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(En(e.nodes_start,e.nodes_end),r=!0),Jt(e,t&&!r),ze(e,0),E(e,U);var n=e.transitions;if(n!==null)for(const i of n)i.stop();Gt(e);var s=e.parent;s!==null&&s.first!==null&&Xt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function En(e,t){for(;e!==null;){var r=e===t?null:G(e);e.remove(),e=r}}function Xt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function xe(e,t,r=!0){var n=[];Zt(e,n,!0),xn(n,()=>{r&&S(e),t&&t()})}function xn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function Zt(e,t,r){if((e.f&F)===0){if(e.f^=F,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&he)!==0||(n.f&z)!==0&&(e.f&Y)!==0;Zt(n,t,i?r:!1),n=s}}}function Tn(e){Qt(e,!0)}function Qt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&k)===0&&(E(e,j),oe(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&he)!==0||(r.f&z)!==0;Qt(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function er(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:G(r);t.append(r),r=s}}let ne=!1;function Ye(e){ne=e}let fe=!1;function tr(e){fe=e}let _=null,B=!1;function A(e){_=e}let p=null;function V(e){p=e}let X=null;function rr(e){_!==null&&(X===null?X=[e]:X.push(e))}let x=null,R=0,L=null;function jn(e){L=e}let nr=1,Te=0,ue=Te;function ir(e){ue=e}function sr(){return++nr}function je(e){var t=e.f;if((t&j)!==0)return!0;if(t&y&&(e.f&=~se),(t&H)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(je(i)&&Lt(i),i.wv>e.wv)return!0}(t&P)!==0&&O===null&&E(e,k)}return!1}function lr(e,t,r=!0){var n=e.reactions;if(n!==null&&!X?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&y)!==0?lr(i,t,!1):t===i&&(r?E(i,j):(i.f&k)!==0&&E(i,H),oe(i))}}function or(e){var t=x,r=R,n=L,s=_,i=X,l=N,o=B,a=ue,f=e.f;x=null,R=0,L=null,_=(f&(z|Q))===0?e:null,X=null,pe(e.ctx),B=!1,ue=++Te,e.ac!==null&&(Be(()=>{e.ac.abort(ve)}),e.ac=null);try{e.f|=Xe;var c=e.fn,d=c(),u=e.deps;if(x!==null){var h;if(ze(e,R),u!==null&&R>0)for(u.length=R+x.length,h=0;h<x.length;h++)u[R+h]=x[h];else e.deps=u=x;if(ne&&Ve()&&(e.f&P)!==0)for(h=R;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&R<u.length&&(ze(e,R),u.length=R);if(Tt()&&L!==null&&!B&&u!==null&&(e.f&(y|H|j))===0)for(h=0;h<L.length;h++)lr(L[h],e);return s!==null&&s!==e&&(Te++,L!==null&&(n===null?n=L:n.push(...L))),(e.f&ee)!==0&&(e.f^=ee),d}catch(v){return St(v)}finally{e.f^=Xe,x=t,R=r,L=n,_=s,X=i,pe(l),B=o,ue=a}}function Sn(e,t){let r=t.reactions;if(r!==null){var n=xr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&y)!==0&&(x===null||!x.includes(t))&&(E(t,H),(t.f&P)!==0&&(t.f^=P,t.f&=~se),Mt(t),ze(t,0))}function ze(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Sn(e,r[n])}function Se(e){var t=e.f;if((t&U)===0){E(e,k);var r=p,n=ne;p=e,ne=!0;try{(t&Y)!==0?kn(e):Jt(e),Gt(e);var s=or(e);e.teardown=typeof s=="function"?s:null,e.wv=nr;var i;We&&Jr&&(e.f&j)!==0&&e.deps}finally{ne=n,p=r}}}async function An(){await Promise.resolve(),ye()}function g(e){var t=e.f,r=(t&y)!==0;if(_!==null&&!B){var n=p!==null&&(p.f&U)!==0;if(!n&&!X?.includes(e)){var s=_.deps;if((_.f&Xe)!==0)e.rv<Te&&(e.rv=Te,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.includes(e)||x.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(fe){if(te.has(e))return te.get(e);if(r){var l=e,o=l.v;return((l.f&k)===0&&l.reactions!==null||fr(l))&&(o=it(l)),te.set(l,o),o}}else r&&!O?.has(e)&&(l=e,je(l)&&Lt(l),ne&&Ve()&&(l.f&P)===0&&ar(l));if(O?.has(e))return O.get(e);if((e.f&ee)!==0)throw e.v;return e.v}function ar(e){if(e.deps!==null){e.f^=P;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&y)!==0&&(t.f&P)===0&&ar(t)}}function fr(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(te.has(t)||(t.f&y)!==0&&fr(t))return!0;return!1}function ur(e){var t=B;try{return B=!0,e()}finally{B=t}}const Rn=-7169;function E(e,t){e.f=e.f&Rn|t}const Nn=new Set,cr=new Set;function On(e,t,r,n={}){function s(i){if(n.capture||Ae.call(t,i),!i.cancelBubble)return Be(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Le(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Cn(e,t,r,n,s){var i={capture:n,passive:s},l=On(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&zt(()=>{t.removeEventListener(e,l,i)})}let dr=null;function Ae(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;dr=e;var l=0,o=dr===e&&e.__root;if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){Ne(e,"currentTarget",{configurable:!0,get(){return i||r}});var c=_,d=p;A(null),V(null);try{for(var u,h=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var T=i["__"+n];T!=null&&(!i.disabled||e.target===i)&&T.call(i,e)}catch(Z){u?h.push(Z):u=Z}if(e.cancelBubble||v===t||v===null)break;i=v}if(u){for(let Z of h)queueMicrotask(()=>{throw Z});throw u}}finally{e.__root=t,delete e.currentTarget,A(c),V(d)}}}function Mn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function He(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function hr(e,t){var r=(t&yr)!==0,n=(t&$r)!==0,s,i=!e.startsWith("<!>");return()=>{if(b)return He(w,null),w;s===void 0&&(s=Mn(i?e:"<!>"+e),r||(s=ae(s)));var l=n||Ft?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=ae(l),a=l.lastChild;He(o,a)}else He(l,l);return l}}function at(e,t){if(b){var r=p;((r.f&Ce)===0||r.nodes_end===null)&&(r.nodes_end=w),tt();return}e!==null&&e.before(t)}const Ln=["touchstart","touchmove"];function Pn(e){return Ln.includes(e)}function Dn(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function vr(e,t){return _r(e,t)}function In(e,t){lt(),t.intro=t.intro??!1;const r=t.target,n=b,s=w;try{for(var i=ae(r);i&&(i.nodeType!==be||i.data!==_t);)i=G(i);if(!i)throw ce;_e(!0),D(i);const l=_r(e,{...t,anchor:i});return _e(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==ce&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Fr(),lt(),Vt(r),_e(!1),vr(e,t)}finally{_e(n),D(s)}}const ge=new Map;function _r(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:l=!0}){lt();var o=new Set,a=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!o.has(h)){o.add(h);var v=Pn(h);t.addEventListener(h,Ae,{passive:v});var T=ge.get(h);T===void 0?(document.addEventListener(h,Ae,{passive:v}),ge.set(h,1)):ge.set(h,T+1)}}};a(Tr(Nn)),cr.add(a);var f=void 0,c=wn(()=>{var d=r??t.appendChild(re());return tn(d,{pending:()=>{}},u=>{if(i){Et({});var h=N;h.c=i}if(s&&(n.$$events=s),b&&He(u,null),f=e(u,n)||{},b&&(p.nodes_end=w,w===null||w.nodeType!==be||w.data!==pt))throw Me(),ce;i&&xt()}),()=>{for(var u of o){t.removeEventListener(u,Ae);var h=ge.get(u);--h===0?(document.removeEventListener(u,Ae),ge.delete(u)):ge.set(u,h)}cr.delete(a),d!==r&&d.parentNode?.removeChild(d)}});return ft.set(f,c),f}let ft=new WeakMap;function Fn(e,t){const r=ft.get(e);return r?(ft.delete(e),r(t)):Promise.resolve()}class qn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#a=!0;constructor(t,r=!0){this.anchor=t,this.#a=r}#s=()=>{var t=m;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Tn(n),this.#n.delete(r);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,l]of this.#t){if(this.#t.delete(i),i===t)break;const o=this.#r.get(l);o&&(S(o.effect),this.#r.delete(l))}for(const[i,l]of this.#e){if(i===r||this.#n.has(i))continue;const o=()=>{if(Array.from(this.#t.values()).includes(i)){var f=document.createDocumentFragment();er(l,f),f.append(re()),this.#r.set(i,{effect:l,fragment:f})}else S(l);this.#n.delete(i),this.#e.delete(i)};this.#a||!n?(this.#n.add(i),xe(l,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(S(s.effect),this.#r.delete(n))};ensure(t,r){var n=m,s=hn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),l=re();i.append(l),this.#r.set(t,{effect:J(()=>r(l)),fragment:i})}else this.#e.set(t,J(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[o,a]of this.#e)o===t?n.skipped_effects.delete(a):n.skipped_effects.add(a);for(const[o,a]of this.#r)o===t?n.skipped_effects.delete(a.effect):n.skipped_effects.add(a.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else b&&(this.anchor=w),this.#s()}}function Bn(e,t,r=!1){b&&tt();var n=new qn(e),s=r?he:0;function i(l,o){if(b){const f=Kr(e)===Ke;if(l===f){var a=$t();D(a),n.anchor=a,_e(!1),n.ensure(l,o),_e(!0);return}}n.ensure(l,o)}Wt(()=>{var l=!1;t((o,a=!0)=>{l=!0,i(a,o)}),l||i(!1,null)},s)}function Vn(e,t){yn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Yn(e,t,r){var n=e==null?"":""+e;return n=n?n+" "+t:t,n===""?null:n}function zn(e,t,r,n,s,i){var l=e.__className;if(b||l!==r||l===void 0){var o=Yn(r,n);(!b||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}const Hn=Symbol("is custom element"),Un=Symbol("is html");function pr(e,t,r,n){var s=Kn(e);b&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Cr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Wn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Kn(e){return e.__attributes??={[Hn]:e.nodeName.includes("-"),[Un]:e.namespaceURI===kr}}var mr=new Map;function Wn(e){var t=e.getAttribute("is")||e.nodeName,r=mr.get(t);if(r)return r;mr.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=jr(s);for(var l in n)n[l].set&&r.push(l);s=mt(s)}return r}function Gn(e,t,r=t){var n=new WeakSet;pn(e,"input",async s=>{var i=s?e.defaultValue:e.value;if(i=ut(e)?ct(i):i,r(i),m!==null&&n.add(m),await An(),i!==(i=t())){var l=e.selectionStart,o=e.selectionEnd,a=e.value.length;if(e.value=i??"",o!==null){var f=e.value.length;l===o&&o===a&&f>a?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=l,e.selectionEnd=Math.min(o,f))}}}),(b&&e.defaultValue!==e.value||ur(t)==null&&e.value)&&(r(ut(e)?ct(e.value):e.value),m!==null&&n.add(m)),ot(()=>{var s=t();if(e===document.activeElement){var i=De??m;if(n.has(i))return}ut(e)&&s===ct(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function ut(e){var t=e.type;return t==="number"||t==="range"}function ct(e){return e===""?null:+e}function dt(e,t,r,n){var s=n,i=!0,l=()=>(i&&(i=!1,s=n),s),o;o=e[t],o===void 0&&n!==void 0&&(o=l());var a;a=()=>{var u=e[t];return u===void 0?l():(i=!0,u)};var f=!1,c=nt(()=>(f=!1,a())),d=p;return(function(u,h){if(arguments.length>0){const v=h?g(c):u;return M(c,v),f=!0,s!==void 0&&(s=v),u}return fe&&f||(d.f&U)!==0?c.v:g(c)})}function Jn(e){return new Xn(e)}class Xn{#t;#e;constructor(t){var r=new Map,n=(i,l)=>{var o=an(l,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return g(r.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===Or?!0:(g(r.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return M(r.get(l)??n(l,o),o),Reflect.set(i,l,o)}});this.#e=(t.hydrate?In:vr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ye(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ne(this,i,{get(){return this.#e[i]},set(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Fn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let gr;typeof HTMLElement=="function"&&(gr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),at(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Zn(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Ue(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Jn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=bn(()=>{ot(()=>{this.$$r=!0;for(const n of Re(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Ue(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ue(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Re(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ue(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Zn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Qn(e,t,r,n,s,i){let l=class extends gr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Re(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Re(t).forEach(o=>{Ne(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=Ue(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var c=de(f,o)?.get;c?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{Ne(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}var ei=hr('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1k6jt4"> </div>'),ti=hr('<textarea part="input"></textarea> <!>',1);const ri={hash:"svelte-1k6jt4",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");
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
6
6
|
* Copyright 2011-2021 Twitter, Inc.
|
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
8
|
-
|
|
8
|
+
*/.svelte-1k6jt4,
|
|
9
9
|
.svelte-1k6jt4::before,
|
|
10
10
|
.svelte-1k6jt4::after {box-sizing:border-box;}
|
|
11
11
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -73,5 +73,5 @@ textarea.svelte-1k6jt4 {margin:0;font-family:inherit;font-size:inherit;line-heig
|
|
|
73
73
|
@media (min-width: 1200px) {
|
|
74
74
|
}
|
|
75
75
|
@media (min-width: 1400px) {
|
|
76
|
-
}:host {font-family:"Roboto", sans-serif;}textarea.svelte-1k6jt4 {height:100%;}`};function
|
|
76
|
+
}:host {font-family:"Roboto", sans-serif;}textarea.svelte-1k6jt4 {height:100%;}`};function br(e,t){Et(t,!0),Vn(e,ri);let r=dt(t,"schemaentry"),n=dt(t,"show_validation",7,"no"),s=dt(t,"id",7,void 0),i=W(""),l=Ct(()=>{if(r()&&typeof r()=="object"&&r()?.validationRegex)return new RegExp(r().validationRegex)});function o(v,T){t.$$host.dispatchEvent(new CustomEvent(v,{detail:T}))}let a=Ct(()=>r()?r()?.required?g(i)?g(l)&&!g(l).test(g(i))||r().params?.min&&!(g(i).length>=r().params.min)?!1:!(r()?.params?.max&&g(i)&&!(g(i).length<=r().params.max)):!1:!0:!1);Ht(()=>{if(r()&&r()&&typeof r()=="string")try{r(JSON.parse(r())),r()?.value&&M(i,r().value,!0),r()?.id&&s(r().id)}catch{}M(i,g(i)!=null?g(i):r()?.value,!0)}),Ht(()=>{o("setVal",{value:g(i),valid:g(a),id:s()})});var f={get schemaentry(){return r()},set schemaentry(v){r(v),ye()},get show_validation(){return n()},set show_validation(v="no"){n(v),ye()},get id(){return s()},set id(v=void 0){s(v),ye()}},c=ti(),d=cn(c);vn(d);var u=dn(d,2);{var h=v=>{var T=ei(),Z=un(T);Hr(T),Kt(()=>Dn(Z,r().validationTip)),at(v,T)};Bn(u,v=>{r()?.validationTip&&n()==="yes"&&v(h)})}return Kt(()=>{zn(d,1,`form-control ${n()==="yes"&&r()?.required?g(a)?"is-valid":"is-invalid":""}`,"svelte-1k6jt4"),pr(d,"id",s()),d.required=r()?.required,pr(d,"placeholder",r()?.placeholder),d.readOnly=r()?.readonly}),Cn("keypress",d,v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),o("clickEnter",{value:g(i),valid:g(a),id:s()}))}),Gn(d,()=>g(i),v=>M(i,v)),at(e,c),xt(f)}customElements.define("hb-input-area",Qn(br,{schemaentry:{},show_validation:{},id:{}},[],[],!0)),vt.Component=br,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})})(this["input-area"]=this["input-area"]||{});
|
|
77
77
|
//# sourceMappingURL=main.iife.js.map
|