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