@htmlbricks/hb-searchbar 0.60.8 → 0.60.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +21 -1
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +11 -0
- package/types/webcomponent.type.d.ts +1 -0
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(at){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const me=1,de=2,bt=4,ko=8,_o=16,$o=1,zo=2,Te="[",Se="[!",Ce="]",Ir={},C=Symbol(),jo="http://www.w3.org/1999/xhtml",ft=!1;var Ne=Array.isArray,Eo=Array.prototype.indexOf,Be=Array.from,pe=Object.keys,Pr=Object.defineProperty,Dr=Object.getOwnPropertyDescriptor,Ao=Object.getOwnPropertyDescriptors,Ro=Object.prototype,To=Array.prototype,mt=Object.getPrototypeOf,dt=Object.isExtensible;function pt(r){for(var e=0;e<r.length;e++)r[e]()}function So(){var r,e,t=new Promise((o,l)=>{r=o,e=l});return{promise:t,resolve:r,reject:e}}const V=2,Oe=4,vt=8,Fr=16,xr=32,hr=64,xt=128,X=256,ve=512,P=1024,Z=2048,wr=4096,or=8192,Rr=16384,Me=32768,Ge=65536,ct=1<<17,gt=1<<18,qr=1<<19,Co=1<<20,Le=1<<21,Ie=1<<22,Tr=1<<23,Pe=Symbol("$state"),No=Symbol("legacy props"),Bo=Symbol(""),De=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ut=3,Hr=8;function Oo(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Mo(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Go(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Lo(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Io(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Po(r){throw new Error("https://svelte.dev/e/effect_orphan")}function Do(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Fo(){throw new Error("https://svelte.dev/e/hydration_failed")}function qo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ho(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Uo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xe(r){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function lr(r){$=r}let E;function Y(r){if(r===null)throw xe(),Ir;return E=r}function ce(){return Y(ar(E))}function M(r){if($){if(ar(E)!==null)throw xe(),Ir;E=r}}function Fe(){for(var r=0,e=E;;){if(e.nodeType===Hr){var t=e.data;if(t===Ce){if(r===0)return e;r-=1}else(t===Te||t===Se)&&(r+=1)}var o=ar(e);e.remove(),e=o}}function ht(r){if(!r||r.nodeType!==Hr)throw xe(),Ir;return r.data}function wt(r){return r===this.v}function Vo(r,e){return r!=r?e==e:r!==e||r!==null&&typeof r=="object"||typeof r=="function"}function yt(r){return!Vo(r,this.v)}let Yo=!1,Q=null;function ge(r){Q=r}function kt(r,e=!1,t){Q={p:Q,c:null,e:null,s:r,x:null,l:null}}function _t(r){var e=Q,t=e.e;if(t!==null){e.e=null;for(var o of t)Wt(o)}return r!==void 0&&(e.x=r),Q=e.p,r??{}}function $t(){return!0}const Wo=new WeakMap;function Ko(r){var e=w;if(e===null)return k.f|=Tr,r;if((e.f&Me)===0){if((e.f&xt)===0)throw!e.parent&&r instanceof Error&&zt(r),r;e.b.error(r)}else qe(r,e)}function qe(r,e){for(;e!==null;){if((e.f&xt)!==0)try{e.b.error(r);return}catch(t){r=t}e=e.parent}throw r instanceof Error&&zt(r),r}function zt(r){const e=Wo.get(r);e&&(Pr(r,"message",{value:e.message}),Pr(r,"stack",{value:e.stack}))}const Jo=typeof requestIdleCallback>"u"?r=>setTimeout(r,1):requestIdleCallback;let Qr=[],re=[];function jt(){var r=Qr;Qr=[],pt(r)}function Et(){var r=re;re=[],pt(r)}function Xo(r){Qr.length===0&&queueMicrotask(jt),Qr.push(r)}function Zo(r){re.length===0&&Jo(Et),re.push(r)}function Qo(){Qr.length>0&&jt(),re.length>0&&Et()}function rl(){const r=w.b;return r===null&&Oo(),r}function ue(r){var e=V|Z,t=k!==null&&(k.f&V)!==0?k:null;return w===null||t!==null&&(t.f&X)!==0?e|=X:w.f|=qr,{ctx:Q,deps:null,effects:null,equals:wt,f:e,fn:r,reactions:null,rv:0,v:C,wv:0,parent:t??w,ac:null}}function el(r,e){let t=w;t===null&&Go();var o=t.b,l=void 0,i=ee(C),n=null,s=!k;return pl(()=>{try{var a=r();n&&Promise.resolve(a).catch(()=>{})}catch(p){a=Promise.reject(p)}var b=()=>a;l=n?.then(b,b)??Promise.resolve(a),n=l;var m=A,v=o.is_pending();s&&(o.update_pending_count(1),v||m.increment());const x=(p,f=void 0)=>{n=null,v||m.activate(),f?f!==De&&(i.f|=Tr,te(i,f)):((i.f&Tr)!==0&&(i.f^=Tr),te(i,p)),s&&(o.update_pending_count(-1),v||m.decrement()),St()};if(l.then(x,p=>x(null,p||"unknown")),m)return()=>{queueMicrotask(()=>m.neuter())}}),new Promise(a=>{function b(m){function v(){m===l?a(i):b(l)}m.then(v,v)}b(l)})}function At(r){const e=ue(r);return oo(e),e}function tl(r){const e=ue(r);return e.equals=yt,e}function Rt(r){var e=r.effects;if(e!==null){r.effects=null;for(var t=0;t<e.length;t+=1)br(e[t])}}function ol(r){for(var e=r.parent;e!==null;){if((e.f&V)===0)return e;e=e.parent}return null}function He(r){var e,t=w;$r(ol(r));try{Rt(r),e=ao(r)}finally{$r(t)}return e}function Tt(r){var e=He(r);if(r.equals(e)||(r.v=e,r.wv=no()),!Or){var t=(zr||(r.f&X)!==0)&&r.deps!==null?wr:P;J(r,t)}}function ll(r,e,t){const o=ue;if(e.length===0){t(r.map(o));return}var l=A,i=w,n=il(),s=rl();Promise.all(e.map(a=>el(a))).then(a=>{l?.activate(),n();try{t([...r.map(o),...a])}catch(b){(i.f&Rr)===0&&qe(b,i)}l?.deactivate(),St()}).catch(a=>{s.error(a)})}function il(){var r=w,e=k,t=Q,o=A;return function(){$r(r),mr(e),ge(t),o?.activate()}}function St(){$r(null),mr(null),ge(null)}const Ue=new Set;let A=null,he=null,Ct=new Set,we=[];function Nt(){const r=we.shift();we.length>0&&queueMicrotask(Nt),r()}let Sr=[],ye=null,Ve=!1,ke=!1;class Cr{current=new Map;#e=new Map;#r=new Set;#t=0;#b=null;#f=!1;#l=[];#n=[];#i=[];#o=[];#s=[];#m=[];#d=[];skipped_effects=new Set;process(e){Sr=[],he=null;for(const l of e)this.#v(l);if(this.#l.length===0&&this.#t===0){this.#p();var t=this.#i,o=this.#o;this.#i=[],this.#o=[],this.#s=[],he=A,A=null,Ot(t),Ot(o),A===null?A=this:Ue.delete(this),this.#b?.resolve()}else this.#a(this.#i),this.#a(this.#o),this.#a(this.#s);for(const l of this.#l)Wr(l);for(const l of this.#n)Wr(l);this.#l=[],this.#n=[]}#v(e){e.f^=P;for(var t=e.first;t!==null;){var o=t.f,l=(o&(xr|hr))!==0,i=l&&(o&P)!==0,n=i||(o&or)!==0||this.skipped_effects.has(t);if(!n&&t.fn!==null){if(l)t.f^=P;else if((o&Oe)!==0)this.#o.push(t);else if((o&P)===0)if((o&Ie)!==0){var s=t.b?.is_pending()?this.#n:this.#l;s.push(t)}else _e(t)&&((t.f&Fr)!==0&&this.#s.push(t),Wr(t));var a=t.first;if(a!==null){t=a;continue}}var b=t.parent;for(t=t.next;t===null&&b!==null;)t=b.next,b=b.parent}}#a(e){for(const t of e)((t.f&Z)!==0?this.#m:this.#d).push(t),J(t,P);e.length=0}capture(e,t){this.#e.has(e)||this.#e.set(e,t),this.current.set(e,e.v)}activate(){A=this}deactivate(){A=null,he=null;for(const e of Ct)if(Ct.delete(e),e(),A!==null)break}neuter(){this.#f=!0}flush(){Sr.length>0?Bt():this.#p(),A===this&&(this.#t===0&&Ue.delete(this),this.deactivate())}#p(){if(!this.#f)for(const e of this.#r)e();this.#r.clear()}increment(){this.#t+=1}decrement(){if(this.#t-=1,this.#t===0){for(const e of this.#m)J(e,Z),Ur(e);for(const e of this.#d)J(e,wr),Ur(e);this.#i=[],this.#o=[],this.flush()}else this.deactivate()}add_callback(e){this.#r.add(e)}settled(){return(this.#b??=So()).promise}static ensure(){if(A===null){const e=A=new Cr;Ue.add(A),ke||Cr.enqueue(()=>{A===e&&e.flush()})}return A}static enqueue(e){we.length===0&&queueMicrotask(Nt),we.unshift(e)}}function Nr(r){var e=ke;ke=!0;try{for(var t;;){if(Qo(),Sr.length===0&&(A?.flush(),Sr.length===0))return ye=null,t;Bt()}}finally{ke=e}}function Bt(){var r=Yr;Ve=!0;try{var e=0;for(eo(!0);Sr.length>0;){var t=Cr.ensure();if(e++>1e3){var o,l;nl()}t.process(Sr),yr.clear()}}finally{Ve=!1,eo(r),ye=null}}function nl(){try{Do()}catch(r){qe(r,ye)}}let Br=null;function Ot(r){var e=r.length;if(e!==0){for(var t=0;t<e;){var o=r[t++];if((o.f&(Rr|or))===0&&_e(o)&&(Br=[],Wr(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null&&o.ac===null?Zt(o):o.fn=null),Br?.length>0)){yr.clear();for(const l of Br)Wr(l);Br=[]}}Br=null}}function Ur(r){for(var e=ye=r;e.parent!==null;){e=e.parent;var t=e.f;if(Ve&&e===w&&(t&Fr)!==0)return;if((t&(hr|xr))!==0){if((t&P)===0)return;e.f^=P}}Sr.push(e)}const yr=new Map;function ee(r,e){var t={f:0,v:r,reactions:null,equals:wt,rv:0,wv:0};return t}function ir(r,e){const t=ee(r);return oo(t),t}function Mt(r,e=!1,t=!0){const o=ee(r);return e||(o.equals=yt),o}function G(r,e,t=!1){k!==null&&(!fr||(k.f&ct)!==0)&&$t()&&(k.f&(V|Fr|Ie|ct))!==0&&!gr?.includes(r)&&Uo();let o=t?oe(e):e;return te(r,o)}function te(r,e){if(!r.equals(e)){var t=r.v;Or?yr.set(r,e):yr.set(r,t),r.v=e;var o=Cr.ensure();o.capture(r,t),(r.f&V)!==0&&((r.f&Z)!==0&&He(r),J(r,(r.f&X)===0?P:wr)),r.wv=no(),Gt(r,Z),w!==null&&(w.f&P)!==0&&(w.f&(xr|hr))===0&&(rr===null?cl([r]):rr.push(r))}return e}function Ye(r){G(r,r.v+1)}function Gt(r,e){var t=r.reactions;if(t!==null)for(var o=t.length,l=0;l<o;l++){var i=t[l],n=i.f,s=(n&Z)===0;s&&J(i,e),(n&V)!==0?Gt(i,wr):s&&((n&Fr)!==0&&Br!==null&&Br.push(i),Ur(i))}}function oe(r){if(typeof r!="object"||r===null||Pe in r)return r;const e=mt(r);if(e!==Ro&&e!==To)return r;var t=new Map,o=Ne(r),l=ir(0),i=Mr,n=s=>{if(Mr===i)return s();var a=k,b=Mr;mr(null),io(i);var m=s();return mr(a),io(b),m};return o&&t.set("length",ir(r.length)),new Proxy(r,{defineProperty(s,a,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&qo();var m=t.get(a);return m===void 0?m=n(()=>{var v=ir(b.value);return t.set(a,v),v}):G(m,b.value,!0),!0},deleteProperty(s,a){var b=t.get(a);if(b===void 0){if(a in s){const m=n(()=>ir(C));t.set(a,m),Ye(l)}}else G(b,C),Ye(l);return!0},get(s,a,b){if(a===Pe)return r;var m=t.get(a),v=a in s;if(m===void 0&&(!v||Dr(s,a)?.writable)&&(m=n(()=>{var p=oe(v?s[a]:C),f=ir(p);return f}),t.set(a,m)),m!==void 0){var x=d(m);return x===C?void 0:x}return Reflect.get(s,a,b)},getOwnPropertyDescriptor(s,a){var b=Reflect.getOwnPropertyDescriptor(s,a);if(b&&"value"in b){var m=t.get(a);m&&(b.value=d(m))}else if(b===void 0){var v=t.get(a),x=v?.v;if(v!==void 0&&x!==C)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return b},has(s,a){if(a===Pe)return!0;var b=t.get(a),m=b!==void 0&&b.v!==C||Reflect.has(s,a);if(b!==void 0||w!==null&&(!m||Dr(s,a)?.writable)){b===void 0&&(b=n(()=>{var x=m?oe(s[a]):C,p=ir(x);return p}),t.set(a,b));var v=d(b);if(v===C)return!1}return m},set(s,a,b,m){var v=t.get(a),x=a in s;if(o&&a==="length")for(var p=b;p<v.v;p+=1){var f=t.get(p+"");f!==void 0?G(f,C):p in s&&(f=n(()=>ir(C)),t.set(p+"",f))}if(v===void 0)(!x||Dr(s,a)?.writable)&&(v=n(()=>ir(void 0)),G(v,oe(b)),t.set(a,v));else{x=v.v!==C;var u=n(()=>oe(b));G(v,u)}var h=Reflect.getOwnPropertyDescriptor(s,a);if(h?.set&&h.set.call(m,b),!x){if(o&&typeof a=="string"){var j=t.get("length"),y=Number(a);Number.isInteger(y)&&y>=j.v&&G(j,y+1)}Ye(l)}return!0},ownKeys(s){d(l);var a=Reflect.ownKeys(s).filter(v=>{var x=t.get(v);return x===void 0||x.v!==C});for(var[b,m]of t)m.v!==C&&!(b in s)&&a.push(b);return a},setPrototypeOf(){Ho()}})}var Lt,It,Pt,Dt;function We(){if(Lt===void 0){Lt=window,It=/Firefox/.test(navigator.userAgent);var r=Element.prototype,e=Node.prototype,t=Text.prototype;Pt=Dr(e,"firstChild").get,Dt=Dr(e,"nextSibling").get,dt(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),dt(t)&&(t.__t=void 0)}}function kr(r=""){return document.createTextNode(r)}function _r(r){return Pt.call(r)}function ar(r){return Dt.call(r)}function D(r,e){if(!$)return _r(r);var t=_r(E);if(t===null)t=E.appendChild(kr());else if(e&&t.nodeType!==ut){var o=kr();return t?.before(o),Y(o),o}return Y(t),t}function Ft(r,e){if(!$){var t=_r(r);return t instanceof Comment&&t.data===""?ar(t):t}return E}function W(r,e=1,t=!1){let o=$?E:r;for(var l;e--;)l=o,o=ar(o);if(!$)return o;if(t&&o?.nodeType!==ut){var i=kr();return o===null?l?.after(i):o.before(i),Y(i),i}return Y(o),o}function qt(r){r.textContent=""}function Ht(){return!1}let Ut=!1;function Vt(){Ut||(Ut=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{if(!r.defaultPrevented)for(const e of r.target.elements)e.__on_r?.()})},{capture:!0}))}function Ke(r){var e=k,t=w;mr(null),$r(null);try{return r()}finally{mr(e),$r(t)}}function sl(r,e,t,o=t){r.addEventListener(e,()=>Ke(t));const l=r.__on_r;l?r.__on_r=()=>{l(),o(!0)}:r.__on_r=()=>o(!0),Vt()}function al(r){w===null&&k===null&&Po(),k!==null&&(k.f&X)!==0&&w===null&&Io(),Or&&Lo()}function bl(r,e){var t=e.last;t===null?e.last=e.first=r:(t.next=r,r.prev=t,e.last=r)}function cr(r,e,t,o=!0){var l=w;l!==null&&(l.f&or)!==0&&(r|=or);var i={ctx:Q,deps:null,nodes_start:null,nodes_end:null,f:r|Z,first:null,fn:e,last:null,next:null,parent:l,b:l&&l.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(t)try{Wr(i),i.f|=Me}catch(a){throw br(i),a}else e!==null&&Ur(i);if(o){var n=i;if(t&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&qr)===0&&(n=n.first),n!==null&&(n.parent=l,l!==null&&bl(n,l),k!==null&&(k.f&V)!==0&&(r&hr)===0)){var s=k;(s.effects??=[]).push(n)}}return i}function Yt(r){al();var e=w.f,t=!k&&(e&xr)!==0&&(e&Me)===0;if(t){var o=Q;(o.e??=[]).push(r)}else return Wt(r)}function Wt(r){return cr(Oe|Co,r,!1)}function fl(r){Cr.ensure();const e=cr(hr|qr,r,!0);return()=>{br(e)}}function ml(r){Cr.ensure();const e=cr(hr|qr,r,!0);return(t={})=>new Promise(o=>{t.outro?Xe(e,()=>{br(e),o(void 0)}):(br(e),o(void 0))})}function dl(r){return cr(Oe,r,!1)}function pl(r){return cr(Ie|qr,r,!0)}function Kt(r,e=0){return cr(vt|e,r,!0)}function nr(r,e=[],t=[]){ll(e,t,o=>{cr(vt,()=>r(...o.map(d)),!0)})}function Je(r,e=0){var t=cr(Fr|e,r,!0);return t}function Vr(r,e=!0){return cr(xr|qr,r,!0,e)}function Jt(r){var e=r.teardown;if(e!==null){const t=Or,o=k;to(!0),mr(null);try{e.call(null)}finally{to(t),mr(o)}}}function Xt(r,e=!1){var t=r.first;for(r.first=r.last=null;t!==null;){const l=t.ac;l!==null&&Ke(()=>{l.abort(De)});var o=t.next;(t.f&hr)!==0?t.parent=null:br(t,e),t=o}}function vl(r){for(var e=r.first;e!==null;){var t=e.next;(e.f&xr)===0&&br(e),e=t}}function br(r,e=!0){var t=!1;(e||(r.f>)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(xl(r.nodes_start,r.nodes_end),t=!0),Xt(r,e&&!t),$e(r,0),J(r,Rr);var o=r.transitions;if(o!==null)for(const i of o)i.stop();Jt(r);var l=r.parent;l!==null&&l.first!==null&&Zt(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function xl(r,e){for(;r!==null;){var t=r===e?null:ar(r);r.remove(),r=t}}function Zt(r){var e=r.parent,t=r.prev,o=r.next;t!==null&&(t.next=o),o!==null&&(o.prev=t),e!==null&&(e.first===r&&(e.first=o),e.last===r&&(e.last=t))}function Xe(r,e){var t=[];Ze(r,t,!0),Qt(t,()=>{br(r),e&&e()})}function Qt(r,e){var t=r.length;if(t>0){var o=()=>--t||e();for(var l of r)l.out(o)}else e()}function Ze(r,e,t){if((r.f&or)===0){if(r.f^=or,r.transitions!==null)for(const n of r.transitions)(n.is_global||t)&&e.push(n);for(var o=r.first;o!==null;){var l=o.next,i=(o.f&Ge)!==0||(o.f&xr)!==0;Ze(o,e,i?t:!1),o=l}}}function Qe(r){ro(r,!0)}function ro(r,e){if((r.f&or)!==0){r.f^=or,(r.f&P)===0&&(J(r,Z),Ur(r));for(var t=r.first;t!==null;){var o=t.next,l=(t.f&Ge)!==0||(t.f&xr)!==0;ro(t,l?e:!1),t=o}if(r.transitions!==null)for(const i of r.transitions)(i.is_global||e)&&i.in()}}let Yr=!1;function eo(r){Yr=r}let Or=!1;function to(r){Or=r}let k=null,fr=!1;function mr(r){k=r}let w=null;function $r(r){w=r}let gr=null;function oo(r){k!==null&&(gr===null?gr=[r]:gr.push(r))}let F=null,K=0,rr=null;function cl(r){rr=r}let lo=1,le=0,Mr=le;function io(r){Mr=r}let zr=!1;function no(){return++lo}function _e(r){var e=r.f;if((e&Z)!==0)return!0;if((e&wr)!==0){var t=r.deps,o=(e&X)!==0;if(t!==null){var l,i,n=(e&ve)!==0,s=o&&w!==null&&!zr,a=t.length;if((n||s)&&(w===null||(w.f&Rr)===0)){var b=r,m=b.parent;for(l=0;l<a;l++)i=t[l],(n||!i?.reactions?.includes(b))&&(i.reactions??=[]).push(b);n&&(b.f^=ve),s&&m!==null&&(m.f&X)===0&&(b.f^=X)}for(l=0;l<a;l++)if(i=t[l],_e(i)&&Tt(i),i.wv>r.wv)return!0}(!o||w!==null&&!zr)&&J(r,P)}return!1}function so(r,e,t=!0){var o=r.reactions;if(o!==null&&!gr?.includes(r))for(var l=0;l<o.length;l++){var i=o[l];(i.f&V)!==0?so(i,e,!1):e===i&&(t?J(i,Z):(i.f&P)!==0&&J(i,wr),Ur(i))}}function ao(r){var e=F,t=K,o=rr,l=k,i=zr,n=gr,s=Q,a=fr,b=Mr,m=r.f;F=null,K=0,rr=null,zr=(m&X)!==0&&(fr||!Yr||k===null),k=(m&(xr|hr))===0?r:null,gr=null,ge(r.ctx),fr=!1,Mr=++le,r.ac!==null&&(Ke(()=>{r.ac.abort(De)}),r.ac=null);try{r.f|=Le;var v=r.fn,x=v(),p=r.deps;if(F!==null){var f;if($e(r,K),p!==null&&K>0)for(p.length=K+F.length,f=0;f<F.length;f++)p[K+f]=F[f];else r.deps=p=F;if(!zr||(m&V)!==0&&r.reactions!==null)for(f=K;f<p.length;f++)(p[f].reactions??=[]).push(r)}else p!==null&&K<p.length&&($e(r,K),p.length=K);if($t()&&rr!==null&&!fr&&p!==null&&(r.f&(V|wr|Z))===0)for(f=0;f<rr.length;f++)so(rr[f],r);return l!==null&&l!==r&&(le++,rr!==null&&(o===null?o=rr:o.push(...rr))),(r.f&Tr)!==0&&(r.f^=Tr),x}catch(u){return Ko(u)}finally{r.f^=Le,F=e,K=t,rr=o,k=l,zr=i,gr=n,ge(s),fr=a,Mr=b}}function gl(r,e){let t=e.reactions;if(t!==null){var o=Eo.call(t,r);if(o!==-1){var l=t.length-1;l===0?t=e.reactions=null:(t[o]=t[l],t.pop())}}t===null&&(e.f&V)!==0&&(F===null||!F.includes(e))&&(J(e,wr),(e.f&(X|ve))===0&&(e.f^=ve),Rt(e),$e(e,0))}function $e(r,e){var t=r.deps;if(t!==null)for(var o=e;o<t.length;o++)gl(r,t[o])}function Wr(r){var e=r.f;if((e&Rr)===0){J(r,P);var t=w,o=Yr;w=r,Yr=!0;try{(e&Fr)!==0?vl(r):Xt(r),Jt(r);var l=ao(r);r.teardown=typeof l=="function"?l:null,r.wv=lo;var i;ft&&Yo&&(r.f&Z)!==0&&r.deps}finally{Yr=o,w=t}}}async function ul(){await Promise.resolve(),Nr()}function d(r){var e=r.f,t=(e&V)!==0;if(k!==null&&!fr){var o=w!==null&&(w.f&Rr)!==0;if(!o&&!gr?.includes(r)){var l=k.deps;if((k.f&Le)!==0)r.rv<le&&(r.rv=le,F===null&&l!==null&&l[K]===r?K++:F===null?F=[r]:(!zr||!F.includes(r))&&F.push(r));else{(k.deps??=[]).push(r);var i=r.reactions;i===null?r.reactions=[k]:i.includes(k)||i.push(k)}}}else if(t&&r.deps===null&&r.effects===null){var n=r,s=n.parent;s!==null&&(s.f&X)===0&&(n.f^=X)}if(Or){if(yr.has(r))return yr.get(r);if(t){n=r;var a=n.v;return((n.f&P)===0&&n.reactions!==null||bo(n))&&(a=He(n)),yr.set(n,a),a}}else t&&(n=r,_e(n)&&Tt(n));if((r.f&Tr)!==0)throw r.v;return r.v}function bo(r){if(r.v===C)return!0;if(r.deps===null)return!1;for(const e of r.deps)if(yr.has(e)||(e.f&V)!==0&&bo(e))return!0;return!1}function fo(r){var e=fr;try{return fr=!0,r()}finally{fr=e}}const hl=-7169;function J(r,e){r.f=r.f&hl|e}const mo=new Set,rt=new Set;function wl(r){for(var e=0;e<r.length;e++)mo.add(r[e]);for(var t of rt)t(r)}let po=null;function ze(r){var e=this,t=e.ownerDocument,o=r.type,l=r.composedPath?.()||[],i=l[0]||r.target;po=r;var n=0,s=po===r&&r.__root;if(s){var a=l.indexOf(s);if(a!==-1&&(e===document||e===window)){r.__root=e;return}var b=l.indexOf(e);if(b===-1)return;a<=b&&(n=a)}if(i=l[n]||r.target,i!==e){Pr(r,"currentTarget",{configurable:!0,get(){return i||t}});var m=k,v=w;mr(null),$r(null);try{for(var x,p=[];i!==null;){var f=i.assignedSlot||i.parentNode||i.host||null;try{var u=i["__"+o];if(u!=null&&(!i.disabled||r.target===i))if(Ne(u)){var[h,...j]=u;h.apply(i,[r,...j])}else u.call(i,r)}catch(y){x?p.push(y):x=y}if(r.cancelBubble||f===e||f===null)break;i=f}if(x){for(let y of p)queueMicrotask(()=>{throw y});throw x}}finally{r.__root=e,delete r.currentTarget,mr(m),$r(v)}}}let er;function yl(){er=void 0}function kl(r){let e=null,t=$;var o;if($){for(e=E,er===void 0&&(er=_r(document.head));er!==null&&(er.nodeType!==Hr||er.data!==Te);)er=ar(er);er===null?lr(!1):er=Y(ar(er))}$||(o=document.head.appendChild(kr()));try{Je(()=>r(o),gt)}finally{t&&(lr(!0),er=E,Y(e))}}function _l(r){var e=document.createElement("template");return e.innerHTML=r.replaceAll("<!>","<!---->"),e.content}function je(r,e){var t=w;t.nodes_start===null&&(t.nodes_start=r,t.nodes_end=e)}function L(r,e){var t=(e&$o)!==0,o=(e&zo)!==0,l,i=!r.startsWith("<!>");return()=>{if($)return je(E,null),E;l===void 0&&(l=_l(i?r:"<!>"+r),t||(l=_r(l)));var n=o||It?document.importNode(l,!0):l.cloneNode(!0);if(t){var s=_r(n),a=n.lastChild;je(s,a)}else je(n,n);return n}}function N(r,e){if($){w.nodes_end=E,ce();return}r!==null&&r.before(e)}const $l=["touchstart","touchmove"];function zl(r){return $l.includes(r)}function Kr(r,e){var t=e==null?"":typeof e=="object"?e+"":e;t!==(r.__t??=r.nodeValue)&&(r.__t=t,r.nodeValue=t+"")}function vo(r,e){return xo(r,e)}function jl(r,e){We(),e.intro=e.intro??!1;const t=e.target,o=$,l=E;try{for(var i=_r(t);i&&(i.nodeType!==Hr||i.data!==Te);)i=ar(i);if(!i)throw Ir;lr(!0),Y(i),ce();const n=xo(r,{...e,anchor:i});if(E===null||E.nodeType!==Hr||E.data!==Ce)throw xe(),Ir;return lr(!1),n}catch(n){if(n instanceof Error&&n.message.split(`
|
|
2
|
-
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw n;return n!==Ir&&console.warn("Failed to hydrate: ",n),e.recover===!1&&Fo(),We(),qt(t),lr(!1),vo(r,e)}finally{lr(o),Y(l),yl()}}const Jr=new Map;function xo(r,{target:e,anchor:t,props:o={},events:l,context:i,intro:n=!0}){We();var s=new Set,a=v=>{for(var x=0;x<v.length;x++){var p=v[x];if(!s.has(p)){s.add(p);var f=zl(p);e.addEventListener(p,ze,{passive:f});var u=Jr.get(p);u===void 0?(document.addEventListener(p,ze,{passive:f}),Jr.set(p,1)):Jr.set(p,u+1)}}};a(Be(mo)),rt.add(a);var b=void 0,m=ml(()=>{var v=t??e.appendChild(kr());return Vr(()=>{if(i){kt({});var x=Q;x.c=i}l&&(o.$$events=l),$&&je(v,null),b=r(v,o)||{},$&&(w.nodes_end=E),i&&_t()}),()=>{for(var x of s){e.removeEventListener(x,ze);var p=Jr.get(x);--p===0?(document.removeEventListener(x,ze),Jr.delete(x)):Jr.set(x,p)}rt.delete(a),v!==t&&v.parentNode?.removeChild(v)}});return et.set(b,m),b}let et=new WeakMap;function El(r,e){const t=et.get(r);return t?(et.delete(r),t(e)):Promise.resolve()}function Al(r){Q===null&&Mo(),Yt(()=>{const e=fo(r);if(typeof e=="function")return e})}function sr(r,e,t=!1){$&&ce();var o=r,l=null,i=null,n=C,s=t?Ge:0,a=!1;const b=(p,f=!0)=>{a=!0,x(f,p)};var m=null;function v(){m!==null&&(m.lastChild.remove(),o.before(m),m=null);var p=n?l:i,f=n?i:l;p&&Qe(p),f&&Xe(f,()=>{n?i=null:l=null})}const x=(p,f)=>{if(n===(n=p))return;let u=!1;if($){const T=ht(o)===Se;!!n===T&&(o=Fe(),Y(o),lr(!1),u=!0)}var h=Ht(),j=o;if(h&&(m=document.createDocumentFragment(),m.append(j=kr())),n?l??=f&&Vr(()=>f(j)):i??=f&&Vr(()=>f(j)),h){var y=A,q=n?l:i,H=n?i:l;q&&y.skipped_effects.delete(q),H&&y.skipped_effects.add(H),y.add_callback(v)}else v();u&&lr(!0)};Je(()=>{a=!1,e(b),a||x(null,null)},s),$&&(o=E)}function Rl(r,e){return e}function Tl(r,e,t){for(var o=r.items,l=[],i=e.length,n=0;n<i;n++)Ze(e[n].e,l,!0);var s=i>0&&l.length===0&&t!==null;if(s){var a=t.parentNode;qt(a),a.append(t),o.clear(),dr(r,e[0].prev,e[i-1].next)}Qt(l,()=>{for(var b=0;b<i;b++){var m=e[b];s||(o.delete(m.k),dr(r,m.prev,m.next)),br(m.e,!s)}})}function co(r,e,t,o,l,i=null){var n=r,s={flags:e,items:new Map,first:null},a=(e&bt)!==0;if(a){var b=r;n=$?Y(_r(b)):b.appendChild(kr())}$&&ce();var m=null,v=!1,x=new Map,p=tl(()=>{var j=t();return Ne(j)?j:j==null?[]:Be(j)}),f,u;function h(){Sl(u,f,s,x,n,l,e,o,t),i!==null&&(f.length===0?m?Qe(m):m=Vr(()=>i(n)):m!==null&&Xe(m,()=>{m=null}))}Je(()=>{u??=w,f=d(p);var j=f.length;if(v&&j===0)return;v=j===0;let y=!1;if($){var q=ht(n)===Se;q!==(j===0)&&(n=Fe(),Y(n),lr(!1),y=!0)}if($){for(var H=null,T,c=0;c<j;c++){if(E.nodeType===Hr&&E.data===Ce){n=E,y=!0,lr(!1);break}var _=f[c],B=o(_,c);T=tt(E,s,H,null,_,B,c,l,e,t),s.items.set(B,T),H=T}j>0&&Y(Fe())}if($)j===0&&i&&(m=Vr(()=>i(n)));else if(Ht()){var Gr=new Set,Xr=A;for(c=0;c<j;c+=1){_=f[c],B=o(_,c);var g=s.items.get(B)??x.get(B);g?(e&(me|de))!==0&&go(g,_,c,e):(T=tt(null,s,null,null,_,B,c,l,e,t,!0),x.set(B,T)),Gr.add(B)}for(const[S,vr]of s.items)Gr.has(S)||Xr.skipped_effects.add(vr.e);Xr.add_callback(h)}else h();y&&lr(!0),d(p)}),$&&(n=E)}function Sl(r,e,t,o,l,i,n,s,a){var b=(n&ko)!==0,m=(n&(me|de))!==0,v=e.length,x=t.items,p=t.first,f=p,u,h=null,j,y=[],q=[],H,T,c,_;if(b)for(_=0;_<v;_+=1)H=e[_],T=s(H,_),c=x.get(T),c!==void 0&&(c.a?.measure(),(j??=new Set).add(c));for(_=0;_<v;_+=1){if(H=e[_],T=s(H,_),c=x.get(T),c===void 0){var B=o.get(T);if(B!==void 0){o.delete(T),x.set(T,B);var Gr=h?h.next:f;dr(t,h,B),dr(t,B,Gr),ot(B,Gr,l),h=B}else{var Xr=f?f.e.nodes_start:l;h=tt(Xr,t,h,h===null?t.first:h.next,H,T,_,i,n,a)}x.set(T,h),y=[],q=[],f=h.next;continue}if(m&&go(c,H,_,n),(c.e.f&or)!==0&&(Qe(c.e),b&&(c.a?.unfix(),(j??=new Set).delete(c))),c!==f){if(u!==void 0&&u.has(c)){if(y.length<q.length){var g=q[0],S;h=g.prev;var vr=y[0],ur=y[y.length-1];for(S=0;S<y.length;S+=1)ot(y[S],g,l);for(S=0;S<q.length;S+=1)u.delete(q[S]);dr(t,vr.prev,ur.next),dr(t,h,vr),dr(t,ur,g),f=g,h=ur,_-=1,y=[],q=[]}else u.delete(c),ot(c,f,l),dr(t,c.prev,c.next),dr(t,c,h===null?t.first:h.next),dr(t,h,c),h=c;continue}for(y=[],q=[];f!==null&&f.k!==T;)(f.e.f&or)===0&&(u??=new Set).add(f),q.push(f),f=f.next;if(f===null)continue;c=f}y.push(c),h=c,f=c.next}if(f!==null||u!==void 0){for(var z=u===void 0?[]:Be(u);f!==null;)(f.e.f&or)===0&&z.push(f),f=f.next;var ne=z.length;if(ne>0){var Re=(n&bt)!==0&&v===0?l:null;if(b){for(_=0;_<ne;_+=1)z[_].a?.measure();for(_=0;_<ne;_+=1)z[_].a?.fix()}Tl(t,z,Re)}}b&&Xo(()=>{if(j!==void 0)for(c of j)c.a?.apply()}),r.first=t.first&&t.first.e,r.last=h&&h.e;for(var se of o.values())br(se.e);o.clear()}function go(r,e,t,o){(o&me)!==0&&te(r.v,e),(o&de)!==0?te(r.i,t):r.i=t}function tt(r,e,t,o,l,i,n,s,a,b,m){var v=(a&me)!==0,x=(a&_o)===0,p=v?x?Mt(l,!1,!1):ee(l):l,f=(a&de)===0?n:ee(n),u={i:f,v:p,k:i,a:null,e:null,prev:t,next:o};try{if(r===null){var h=document.createDocumentFragment();h.append(r=kr())}return u.e=Vr(()=>s(r,p,f,b),$),u.e.prev=t&&t.e,u.e.next=o&&o.e,t===null?m||(e.first=u):(t.next=u,t.e.next=u.e),o!==null&&(o.prev=u,o.e.prev=u.e),u}finally{}}function ot(r,e,t){for(var o=r.next?r.next.e.nodes_start:t,l=e?e.e.nodes_start:t,i=r.e.nodes_start;i!==null&&i!==o;){var n=ar(i);l.before(i),i=n}}function dr(r,e,t){e===null?r.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function Cl(r,e){dl(()=>{var t=r.getRootNode(),o=t.host?t:t.head??t.ownerDocument.head;if(!o.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,o.appendChild(l)}})}function Nl(r,e,t){var o=r==null?"":""+r;return o=o?o+" "+e:e,o===""?null:o}function Bl(r,e){return r==null?null:String(r)}function pr(r,e,t,o,l,i){var n=r.__className;if($||n!==t||n===void 0){var s=Nl(t,o);(!$||s!==r.getAttribute("class"))&&(s==null?r.removeAttribute("class"):r.className=s),r.__className=t}return i}function Ol(r,e,t,o){var l=r.__style;if($||l!==e){var i=Bl(e);(!$||i!==r.getAttribute("style"))&&(i==null?r.removeAttribute("style"):r.style.cssText=i),r.__style=e}return o}const Ml=Symbol("is custom element"),Gl=Symbol("is html");function Ll(r){if($){var e=!1,t=()=>{if(!e){if(e=!0,r.hasAttribute("value")){var o=r.value;Ee(r,"value",null),r.value=o}if(r.hasAttribute("checked")){var l=r.checked;Ee(r,"checked",null),r.checked=l}}};r.__on_r=t,Zo(t),Vt()}}function Ee(r,e,t,o){var l=Il(r);$&&(l[e]=r.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&r.nodeName==="LINK")||l[e]!==(l[e]=t)&&(e==="loading"&&(r[Bo]=t),t==null?r.removeAttribute(e):typeof t!="string"&&Pl(r).includes(e)?r[e]=t:r.setAttribute(e,t))}function Il(r){return r.__attributes??={[Ml]:r.nodeName.includes("-"),[Gl]:r.namespaceURI===jo}}var uo=new Map;function Pl(r){var e=r.getAttribute("is")||r.nodeName,t=uo.get(e);if(t)return t;uo.set(e,t=[]);for(var o,l=r,i=Element.prototype;i!==l;){o=Ao(l);for(var n in o)o[n].set&&t.push(n);l=mt(l)}return t}function Dl(r,e,t=e){var o=new WeakSet;sl(r,"input",async l=>{var i=l?r.defaultValue:r.value;if(i=lt(r)?it(i):i,t(i),A!==null&&o.add(A),await ul(),i!==(i=e())){var n=r.selectionStart,s=r.selectionEnd;r.value=i??"",s!==null&&(r.selectionStart=n,r.selectionEnd=Math.min(s,r.value.length))}}),($&&r.defaultValue!==r.value||fo(e)==null&&r.value)&&(t(lt(r)?it(r.value):r.value),A!==null&&o.add(A)),Kt(()=>{var l=e();if(r===document.activeElement){var i=he??A;if(o.has(i))return}lt(r)&&l===it(r.value)||r.type==="date"&&!l&&!r.value||l!==r.value&&(r.value=l??"")})}function lt(r){var e=r.type;return e==="number"||e==="range"}function it(r){return r===""?null:+r}function ie(r,e,t,o){var l=o,i=!0,n=()=>(i&&(i=!1,l=o),l),s;s=r[e],s===void 0&&o!==void 0&&(s=n());var a;a=()=>{var x=r[e];return x===void 0?n():(i=!0,x)};var b=!1,m=ue(()=>(b=!1,a())),v=w;return(function(x,p){if(arguments.length>0){const f=p?d(m):x;return G(m,f),b=!0,l!==void 0&&(l=f),x}return Or&&b||(v.f&Rr)!==0?m.v:d(m)})}function Fl(r){return new ql(r)}class ql{#e;#r;constructor(e){var t=new Map,o=(i,n)=>{var s=Mt(n,!1,!1);return t.set(i,s),s};const l=new Proxy({...e.props||{},$$events:{}},{get(i,n){return d(t.get(n)??o(n,Reflect.get(i,n)))},has(i,n){return n===No?!0:(d(t.get(n)??o(n,Reflect.get(i,n))),Reflect.has(i,n))},set(i,n,s){return G(t.get(n)??o(n,s),s),Reflect.set(i,n,s)}});this.#r=(e.hydrate?jl:vo)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Nr(),this.#e=l.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||Pr(this,i,{get(){return this.#r[i]},set(n){this.#r[i]=n},enumerable:!0});this.#r.$set=i=>{Object.assign(l,i)},this.#r.$destroy=()=>{El(this.#r)}}$set(e){this.#r.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];const o=(...l)=>t.call(this,...l);return this.#e[e].push(o),()=>{this.#e[e]=this.#e[e].filter(l=>l!==o)}}$destroy(){this.#r.$destroy()}}let ho;typeof HTMLElement=="function"&&(ho=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,e,t){super(),this.$$ctor=r,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(r,e,t){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(e),this.$$c){const o=this.$$c.$on(r,e);this.$$l_u.set(e,o)}super.addEventListener(r,e,t)}removeEventListener(r,e,t){if(super.removeEventListener(r,e,t),this.$$c){const o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(o){return l=>{const i=document.createElement("slot");o!=="default"&&(i.name=o),N(l,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},t=Hl(this);for(const o of this.$$s)o in t&&(o==="default"&&!this.$$d.children?(this.$$d.children=r(o),e.default=!0):e[o]=r(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Ae(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=Fl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=fl(()=>{Kt(()=>{this.$$r=!0;for(const o of pe(this.$$c)){if(!this.$$p_d[o]?.reflect)continue;this.$$d[o]=this.$$c[o];const l=Ae(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const i=this.$$c.$on(o,l);this.$$l_u.set(l,i)}this.$$l={}}}attributeChangedCallback(r,e,t){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Ae(r,t,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return pe(this.$$p_d).find(e=>this.$$p_d[e].attribute===r||!this.$$p_d[e].attribute&&e.toLowerCase()===r)||r}});function Ae(r,e,t,o){const l=t[r]?.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!t[r])return e;if(o==="toAttribute")switch(l){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Hl(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ul(r,e,t,o,l,i){let n=class extends ho{constructor(){super(r,t,l),this.$$p_d=e}static get observedAttributes(){return pe(e).map(s=>(e[s].attribute||s).toLowerCase())}};return pe(e).forEach(s=>{Pr(n.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(a){a=Ae(s,a,e),this.$$d[s]=a;var b=this.$$c;if(b){var m=Dr(b,s)?.get;m?b[s]=a:b.$set({[s]:a})}}})}),o.forEach(s=>{Pr(n.prototype,s,{get(){return this.$$c?.[s]}})}),r.element=n,n}function Vl(r,e,t,o,l,i){G(e,!0),r.key!=="Enter"&&(console.log("debouncing",d(t)),d(o)&&clearTimeout(d(o)),G(o,setTimeout(()=>{d(t)&&d(t).length>Number(l())&&i("input")},500),!0))}function Yl(r,e){r&&r.preventDefault?.(),console.log("clicked searching"),e("button")}var Wl=L('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1rxrfb7"/>'),Kl=(r,e)=>{e("button")},Jl=(r,e,t,o)=>{G(e,d(t).text,!0),o("searchlist",d(t).id)},Xl=L("<i></i>"),Zl=L("<i></i>"),Ql=L("<span><!> </span>"),ri=L('<a class="dropdown-item d-flex align-items-center gap-2 text-decoration-none svelte-1rxrfb7"><!> <span class="flex-grow-1 svelte-1rxrfb7"> </span> <!></a>'),ei=(r,e,t,o)=>{G(e,d(t).text,!0),o("searchlist",d(t).id)},ti=L("<i></i>"),oi=L("<i></i>"),li=L("<span><!> </span>"),ii=L('<button class="dropdown-item d-flex align-items-center gap-2 svelte-1rxrfb7"><!> <span class="flex-grow-1 svelte-1rxrfb7"> </span> <!></button>'),ni=L("<i></i>"),si=L("<span><!> </span>"),ai=L('<div class="px-3 pb-2 svelte-1rxrfb7"><div class="d-flex flex-wrap gap-1 svelte-1rxrfb7"></div></div>'),bi=L('<li class="svelte-1rxrfb7"><hr class="dropdown-divider svelte-1rxrfb7"/></li>'),fi=L('<li class="svelte-1rxrfb7"><!> <!></li> <!>',1),mi=L('<li class="svelte-1rxrfb7"><h6 class="dropdown-header svelte-1rxrfb7">Suggested results</h6></li> <!>',1),di=L('<div><div class="position-relative svelte-1rxrfb7"><input id="custom-search-input" class="form-control svelte-1rxrfb7" type="search" aria-label="Search" aria-describedby="search"/> <button class="btn bg-transparent px-2 py-0 position-absolute top-50 start-5 translate-middle-y svelte-1rxrfb7" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search svelte-1rxrfb7" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" class="svelte-1rxrfb7"></path></svg></button></div> <div class="dropdown svelte-1rxrfb7" style="position: absolute; width:100%"><ul id="custom-search-list"><li class="svelte-1rxrfb7"><button class="dropdown-item svelte-1rxrfb7"> </button></li> <!></ul></div></div>');const pi={hash:"svelte-1rxrfb7",code:`@charset "UTF-8";
|
|
1
|
+
(function(ft){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const me=1,de=2,mt=4,$o=8,zo=16,jo=1,Eo=2,Te="[",Se="[!",Ce="]",Pr={},B=Symbol(),Ao="http://www.w3.org/1999/xhtml",dt=!1;var Be=Array.isArray,Ro=Array.prototype.indexOf,Ne=Array.from,pe=Object.keys,Dr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,To=Object.getOwnPropertyDescriptors,So=Object.prototype,Co=Array.prototype,pt=Object.getPrototypeOf,vt=Object.isExtensible;function xt(r){for(var e=0;e<r.length;e++)r[e]()}function Bo(){var r,e,t=new Promise((o,l)=>{r=o,e=l});return{promise:t,resolve:r,reject:e}}const Y=2,Me=4,Oe=8,qr=16,cr=32,wr=64,ct=128,X=256,ve=512,O=1024,Z=2048,yr=4096,or=8192,Sr=16384,Le=32768,Ge=65536,gt=1<<17,ut=1<<18,Hr=1<<19,No=1<<20,Ie=1<<21,Pe=1<<22,Cr=1<<23,De=Symbol("$state"),Mo=Symbol("legacy props"),Oo=Symbol(""),Fe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ht=3,Ur=8;function Lo(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Go(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Io(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Po(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Do(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fo(r){throw new Error("https://svelte.dev/e/effect_orphan")}function qo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ho(){throw new Error("https://svelte.dev/e/hydration_failed")}function Uo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xe(r){console.warn("https://svelte.dev/e/hydration_mismatch")}let _=!1;function lr(r){_=r}let E;function W(r){if(r===null)throw xe(),Pr;return E=r}function ce(){return W(br(E))}function L(r){if(_){if(br(E)!==null)throw xe(),Pr;E=r}}function qe(){for(var r=0,e=E;;){if(e.nodeType===Ur){var t=e.data;if(t===Ce){if(r===0)return e;r-=1}else(t===Te||t===Se)&&(r+=1)}var o=br(e);e.remove(),e=o}}function wt(r){if(!r||r.nodeType!==Ur)throw xe(),Pr;return r.data}function yt(r){return r===this.v}function Wo(r,e){return r!=r?e==e:r!==e||r!==null&&typeof r=="object"||typeof r=="function"}function kt(r){return!Wo(r,this.v)}let Ko=!1,Q=null;function ge(r){Q=r}function _t(r,e=!1,t){Q={p:Q,c:null,e:null,s:r,x:null,l:null}}function $t(r){var e=Q,t=e.e;if(t!==null){e.e=null;for(var o of t)Jt(o)}return r!==void 0&&(e.x=r),Q=e.p,r??{}}function zt(){return!0}const Jo=new WeakMap;function Xo(r){var e=h;if(e===null)return y.f|=Cr,r;if((e.f&Le)===0){if((e.f&ct)===0)throw!e.parent&&r instanceof Error&&jt(r),r;e.b.error(r)}else He(r,e)}function He(r,e){for(;e!==null;){if((e.f&ct)!==0)try{e.b.error(r);return}catch(t){r=t}e=e.parent}throw r instanceof Error&&jt(r),r}function jt(r){const e=Jo.get(r);e&&(Dr(r,"message",{value:e.message}),Dr(r,"stack",{value:e.stack}))}const Zo=typeof requestIdleCallback>"u"?r=>setTimeout(r,1):requestIdleCallback;let ee=[],te=[];function Et(){var r=ee;ee=[],xt(r)}function At(){var r=te;te=[],xt(r)}function Rt(r){ee.length===0&&queueMicrotask(Et),ee.push(r)}function Qo(r){te.length===0&&Zo(At),te.push(r)}function rl(){ee.length>0&&Et(),te.length>0&&At()}function el(){const r=h.b;return r===null&&Lo(),r}function ue(r){var e=Y|Z,t=y!==null&&(y.f&Y)!==0?y:null;return h===null||t!==null&&(t.f&X)!==0?e|=X:h.f|=Hr,{ctx:Q,deps:null,effects:null,equals:yt,f:e,fn:r,reactions:null,rv:0,v:B,wv:0,parent:t??h,ac:null}}function tl(r,e){let t=h;t===null&&Io();var o=t.b,l=void 0,i=oe(B),n=null,s=!y;return xl(()=>{try{var a=r();n&&Promise.resolve(a).catch(()=>{})}catch(v){a=Promise.reject(v)}var b=()=>a;l=n?.then(b,b)??Promise.resolve(a),n=l;var f=A,x=o.is_pending();s&&(o.update_pending_count(1),x||f.increment());const p=(v,m=void 0)=>{n=null,x||f.activate(),m?m!==Fe&&(i.f|=Cr,le(i,m)):((i.f&Cr)!==0&&(i.f^=Cr),le(i,v)),s&&(o.update_pending_count(-1),x||f.decrement()),Bt()};if(l.then(p,v=>p(null,v||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(a=>{function b(f){function x(){f===l?a(i):b(l)}f.then(x,x)}b(l)})}function Tt(r){const e=ue(r);return io(e),e}function ol(r){const e=ue(r);return e.equals=kt,e}function St(r){var e=r.effects;if(e!==null){r.effects=null;for(var t=0;t<e.length;t+=1)mr(e[t])}}function ll(r){for(var e=r.parent;e!==null;){if((e.f&Y)===0)return e;e=e.parent}return null}function Ue(r){var e,t=h;jr(ll(r));try{St(r),e=fo(r)}finally{jr(t)}return e}function Ct(r){var e=Ue(r);if(r.equals(e)||(r.v=e,r.wv=ao()),!Or){var t=(Er||(r.f&X)!==0)&&r.deps!==null?yr:O;q(r,t)}}function il(r,e,t){const o=ue;if(e.length===0){t(r.map(o));return}var l=A,i=h,n=nl(),s=el();Promise.all(e.map(a=>tl(a))).then(a=>{l?.activate(),n();try{t([...r.map(o),...a])}catch(b){(i.f&Sr)===0&&He(b,i)}l?.deactivate(),Bt()}).catch(a=>{s.error(a)})}function nl(){var r=h,e=y,t=Q,o=A;return function(){jr(r),pr(e),ge(t),o?.activate()}}function Bt(){jr(null),pr(null),ge(null)}const Ve=new Set;let A=null,he=null,Nt=new Set,we=[];function Mt(){const r=we.shift();we.length>0&&queueMicrotask(Mt),r()}let Br=[],ye=null,Ye=!1,ke=!1;class Nr{current=new Map;#e=new Map;#r=new Set;#t=0;#b=null;#f=!1;#l=[];#n=[];#i=[];#o=[];#s=[];#m=[];#d=[];skipped_effects=new Set;process(e){Br=[],he=null;for(const l of e)this.#v(l);if(this.#l.length===0&&this.#t===0){this.#p();var t=this.#i,o=this.#o;this.#i=[],this.#o=[],this.#s=[],he=A,A=null,Lt(t),Lt(o),A===null?A=this:Ve.delete(this),this.#b?.resolve()}else this.#a(this.#i),this.#a(this.#o),this.#a(this.#s);for(const l of this.#l)Kr(l);for(const l of this.#n)Kr(l);this.#l=[],this.#n=[]}#v(e){e.f^=O;for(var t=e.first;t!==null;){var o=t.f,l=(o&(cr|wr))!==0,i=l&&(o&O)!==0,n=i||(o&or)!==0||this.skipped_effects.has(t);if(!n&&t.fn!==null){if(l)t.f^=O;else if((o&Me)!==0)this.#o.push(t);else if((o&O)===0)if((o&Pe)!==0){var s=t.b?.is_pending()?this.#n:this.#l;s.push(t)}else $e(t)&&((t.f&qr)!==0&&this.#s.push(t),Kr(t));var a=t.first;if(a!==null){t=a;continue}}var b=t.parent;for(t=t.next;t===null&&b!==null;)t=b.next,b=b.parent}}#a(e){for(const t of e)((t.f&Z)!==0?this.#m:this.#d).push(t),q(t,O);e.length=0}capture(e,t){this.#e.has(e)||this.#e.set(e,t),this.current.set(e,e.v)}activate(){A=this}deactivate(){A=null,he=null;for(const e of Nt)if(Nt.delete(e),e(),A!==null)break}neuter(){this.#f=!0}flush(){Br.length>0?Ot():this.#p(),A===this&&(this.#t===0&&Ve.delete(this),this.deactivate())}#p(){if(!this.#f)for(const e of this.#r)e();this.#r.clear()}increment(){this.#t+=1}decrement(){if(this.#t-=1,this.#t===0){for(const e of this.#m)q(e,Z),Vr(e);for(const e of this.#d)q(e,yr),Vr(e);this.#i=[],this.#o=[],this.flush()}else this.deactivate()}add_callback(e){this.#r.add(e)}settled(){return(this.#b??=Bo()).promise}static ensure(){if(A===null){const e=A=new Nr;Ve.add(A),ke||Nr.enqueue(()=>{A===e&&e.flush()})}return A}static enqueue(e){we.length===0&&queueMicrotask(Mt),we.unshift(e)}}function kr(r){var e=ke;ke=!0;try{for(var t;;){if(rl(),Br.length===0&&(A?.flush(),Br.length===0))return ye=null,t;Ot()}}finally{ke=e}}function Ot(){var r=Wr;Ye=!0;try{var e=0;for(oo(!0);Br.length>0;){var t=Nr.ensure();if(e++>1e3){var o,l;sl()}t.process(Br),_r.clear()}}finally{Ye=!1,oo(r),ye=null}}function sl(){try{qo()}catch(r){He(r,ye)}}let Mr=null;function Lt(r){var e=r.length;if(e!==0){for(var t=0;t<e;){var o=r[t++];if((o.f&(Sr|or))===0&&$e(o)&&(Mr=[],Kr(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null&&o.ac===null?ro(o):o.fn=null),Mr?.length>0)){_r.clear();for(const l of Mr)Kr(l);Mr=[]}}Mr=null}}function Vr(r){for(var e=ye=r;e.parent!==null;){e=e.parent;var t=e.f;if(Ye&&e===h&&(t&qr)!==0)return;if((t&(wr|cr))!==0){if((t&O)===0)return;e.f^=O}}Br.push(e)}const _r=new Map;function oe(r,e){var t={f:0,v:r,reactions:null,equals:yt,rv:0,wv:0};return t}function ir(r,e){const t=oe(r);return io(t),t}function Gt(r,e=!1,t=!0){const o=oe(r);return e||(o.equals=kt),o}function G(r,e,t=!1){y!==null&&(!dr||(y.f>)!==0)&&zt()&&(y.f&(Y|qr|Pe|gt))!==0&&!gr?.includes(r)&&Yo();let o=t?ie(e):e;return le(r,o)}function le(r,e){if(!r.equals(e)){var t=r.v;Or?_r.set(r,e):_r.set(r,t),r.v=e;var o=Nr.ensure();o.capture(r,t),(r.f&Y)!==0&&((r.f&Z)!==0&&Ue(r),q(r,(r.f&X)===0?O:yr)),r.wv=ao(),It(r,Z),h!==null&&(h.f&O)!==0&&(h.f&(cr|wr))===0&&(rr===null?ul([r]):rr.push(r))}return e}function We(r){G(r,r.v+1)}function It(r,e){var t=r.reactions;if(t!==null)for(var o=t.length,l=0;l<o;l++){var i=t[l],n=i.f,s=(n&Z)===0;s&&q(i,e),(n&Y)!==0?It(i,yr):s&&((n&qr)!==0&&Mr!==null&&Mr.push(i),Vr(i))}}function ie(r){if(typeof r!="object"||r===null||De in r)return r;const e=pt(r);if(e!==So&&e!==Co)return r;var t=new Map,o=Be(r),l=ir(0),i=Lr,n=s=>{if(Lr===i)return s();var a=y,b=Lr;pr(null),so(i);var f=s();return pr(a),so(b),f};return o&&t.set("length",ir(r.length)),new Proxy(r,{defineProperty(s,a,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Uo();var f=t.get(a);return f===void 0?f=n(()=>{var x=ir(b.value);return t.set(a,x),x}):G(f,b.value,!0),!0},deleteProperty(s,a){var b=t.get(a);if(b===void 0){if(a in s){const f=n(()=>ir(B));t.set(a,f),We(l)}}else G(b,B),We(l);return!0},get(s,a,b){if(a===De)return r;var f=t.get(a),x=a in s;if(f===void 0&&(!x||Fr(s,a)?.writable)&&(f=n(()=>{var v=ie(x?s[a]:B),m=ir(v);return m}),t.set(a,f)),f!==void 0){var p=d(f);return p===B?void 0:p}return Reflect.get(s,a,b)},getOwnPropertyDescriptor(s,a){var b=Reflect.getOwnPropertyDescriptor(s,a);if(b&&"value"in b){var f=t.get(a);f&&(b.value=d(f))}else if(b===void 0){var x=t.get(a),p=x?.v;if(x!==void 0&&p!==B)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return b},has(s,a){if(a===De)return!0;var b=t.get(a),f=b!==void 0&&b.v!==B||Reflect.has(s,a);if(b!==void 0||h!==null&&(!f||Fr(s,a)?.writable)){b===void 0&&(b=n(()=>{var p=f?ie(s[a]):B,v=ir(p);return v}),t.set(a,b));var x=d(b);if(x===B)return!1}return f},set(s,a,b,f){var x=t.get(a),p=a in s;if(o&&a==="length")for(var v=b;v<x.v;v+=1){var m=t.get(v+"");m!==void 0?G(m,B):v in s&&(m=n(()=>ir(B)),t.set(v+"",m))}if(x===void 0)(!p||Fr(s,a)?.writable)&&(x=n(()=>ir(void 0)),G(x,ie(b)),t.set(a,x));else{p=x.v!==B;var u=n(()=>ie(b));G(x,u)}var w=Reflect.getOwnPropertyDescriptor(s,a);if(w?.set&&w.set.call(f,b),!p){if(o&&typeof a=="string"){var $=t.get("length"),z=Number(a);Number.isInteger(z)&&z>=$.v&&G($,z+1)}We(l)}return!0},ownKeys(s){d(l);var a=Reflect.ownKeys(s).filter(x=>{var p=t.get(x);return p===void 0||p.v!==B});for(var[b,f]of t)f.v!==B&&!(b in s)&&a.push(b);return a},setPrototypeOf(){Vo()}})}var Pt,Dt,Ft,qt;function Ke(){if(Pt===void 0){Pt=window,Dt=/Firefox/.test(navigator.userAgent);var r=Element.prototype,e=Node.prototype,t=Text.prototype;Ft=Fr(e,"firstChild").get,qt=Fr(e,"nextSibling").get,vt(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),vt(t)&&(t.__t=void 0)}}function $r(r=""){return document.createTextNode(r)}function zr(r){return Ft.call(r)}function br(r){return qt.call(r)}function D(r,e){if(!_)return zr(r);var t=zr(E);if(t===null)t=E.appendChild($r());else if(e&&t.nodeType!==ht){var o=$r();return t?.before(o),W(o),o}return W(t),t}function Ht(r,e){if(!_){var t=zr(r);return t instanceof Comment&&t.data===""?br(t):t}return E}function K(r,e=1,t=!1){let o=_?E:r;for(var l;e--;)l=o,o=br(o);if(!_)return o;if(t&&o?.nodeType!==ht){var i=$r();return o===null?l?.after(i):o.before(i),W(i),i}return W(o),o}function Ut(r){r.textContent=""}function Vt(){return!1}let Yt=!1;function Wt(){Yt||(Yt=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{if(!r.defaultPrevented)for(const e of r.target.elements)e.__on_r?.()})},{capture:!0}))}function _e(r){var e=y,t=h;pr(null),jr(null);try{return r()}finally{pr(e),jr(t)}}function al(r,e,t,o=t){r.addEventListener(e,()=>_e(t));const l=r.__on_r;l?r.__on_r=()=>{l(),o(!0)}:r.__on_r=()=>o(!0),Wt()}function bl(r){h===null&&y===null&&Fo(),y!==null&&(y.f&X)!==0&&h===null&&Do(),Or&&Po()}function fl(r,e){var t=e.last;t===null?e.last=e.first=r:(t.next=r,r.prev=t,e.last=r)}function fr(r,e,t,o=!0){var l=h;l!==null&&(l.f&or)!==0&&(r|=or);var i={ctx:Q,deps:null,nodes_start:null,nodes_end:null,f:r|Z,first:null,fn:e,last:null,next:null,parent:l,b:l&&l.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(t)try{Kr(i),i.f|=Le}catch(a){throw mr(i),a}else e!==null&&Vr(i);if(o){var n=i;if(t&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&Hr)===0&&(n=n.first),n!==null&&(n.parent=l,l!==null&&fl(n,l),y!==null&&(y.f&Y)!==0&&(r&wr)===0)){var s=y;(s.effects??=[]).push(n)}}return i}function ml(r){const e=fr(Oe,null,!1);return q(e,O),e.teardown=r,e}function Kt(r){bl();var e=h.f,t=!y&&(e&cr)!==0&&(e&Le)===0;if(t){var o=Q;(o.e??=[]).push(r)}else return Jt(r)}function Jt(r){return fr(Me|No,r,!1)}function dl(r){Nr.ensure();const e=fr(wr|Hr,r,!0);return()=>{mr(e)}}function pl(r){Nr.ensure();const e=fr(wr|Hr,r,!0);return(t={})=>new Promise(o=>{t.outro?Xe(e,()=>{mr(e),o(void 0)}):(mr(e),o(void 0))})}function vl(r){return fr(Me,r,!1)}function xl(r){return fr(Pe|Hr,r,!0)}function Xt(r,e=0){return fr(Oe|e,r,!0)}function nr(r,e=[],t=[]){il(e,t,o=>{fr(Oe,()=>r(...o.map(d)),!0)})}function Je(r,e=0){var t=fr(qr|e,r,!0);return t}function Yr(r,e=!0){return fr(cr|Hr,r,!0,e)}function Zt(r){var e=r.teardown;if(e!==null){const t=Or,o=y;lo(!0),pr(null);try{e.call(null)}finally{lo(t),pr(o)}}}function Qt(r,e=!1){var t=r.first;for(r.first=r.last=null;t!==null;){const l=t.ac;l!==null&&_e(()=>{l.abort(Fe)});var o=t.next;(t.f&wr)!==0?t.parent=null:mr(t,e),t=o}}function cl(r){for(var e=r.first;e!==null;){var t=e.next;(e.f&cr)===0&&mr(e),e=t}}function mr(r,e=!0){var t=!1;(e||(r.f&ut)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(gl(r.nodes_start,r.nodes_end),t=!0),Qt(r,e&&!t),ze(r,0),q(r,Sr);var o=r.transitions;if(o!==null)for(const i of o)i.stop();Zt(r);var l=r.parent;l!==null&&l.first!==null&&ro(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function gl(r,e){for(;r!==null;){var t=r===e?null:br(r);r.remove(),r=t}}function ro(r){var e=r.parent,t=r.prev,o=r.next;t!==null&&(t.next=o),o!==null&&(o.prev=t),e!==null&&(e.first===r&&(e.first=o),e.last===r&&(e.last=t))}function Xe(r,e){var t=[];Ze(r,t,!0),eo(t,()=>{mr(r),e&&e()})}function eo(r,e){var t=r.length;if(t>0){var o=()=>--t||e();for(var l of r)l.out(o)}else e()}function Ze(r,e,t){if((r.f&or)===0){if(r.f^=or,r.transitions!==null)for(const n of r.transitions)(n.is_global||t)&&e.push(n);for(var o=r.first;o!==null;){var l=o.next,i=(o.f&Ge)!==0||(o.f&cr)!==0;Ze(o,e,i?t:!1),o=l}}}function Qe(r){to(r,!0)}function to(r,e){if((r.f&or)!==0){r.f^=or,(r.f&O)===0&&(q(r,Z),Vr(r));for(var t=r.first;t!==null;){var o=t.next,l=(t.f&Ge)!==0||(t.f&cr)!==0;to(t,l?e:!1),t=o}if(r.transitions!==null)for(const i of r.transitions)(i.is_global||e)&&i.in()}}let Wr=!1;function oo(r){Wr=r}let Or=!1;function lo(r){Or=r}let y=null,dr=!1;function pr(r){y=r}let h=null;function jr(r){h=r}let gr=null;function io(r){y!==null&&(gr===null?gr=[r]:gr.push(r))}let F=null,J=0,rr=null;function ul(r){rr=r}let no=1,ne=0,Lr=ne;function so(r){Lr=r}let Er=!1;function ao(){return++no}function $e(r){var e=r.f;if((e&Z)!==0)return!0;if((e&yr)!==0){var t=r.deps,o=(e&X)!==0;if(t!==null){var l,i,n=(e&ve)!==0,s=o&&h!==null&&!Er,a=t.length;if((n||s)&&(h===null||(h.f&Sr)===0)){var b=r,f=b.parent;for(l=0;l<a;l++)i=t[l],(n||!i?.reactions?.includes(b))&&(i.reactions??=[]).push(b);n&&(b.f^=ve),s&&f!==null&&(f.f&X)===0&&(b.f^=X)}for(l=0;l<a;l++)if(i=t[l],$e(i)&&Ct(i),i.wv>r.wv)return!0}(!o||h!==null&&!Er)&&q(r,O)}return!1}function bo(r,e,t=!0){var o=r.reactions;if(o!==null&&!gr?.includes(r))for(var l=0;l<o.length;l++){var i=o[l];(i.f&Y)!==0?bo(i,e,!1):e===i&&(t?q(i,Z):(i.f&O)!==0&&q(i,yr),Vr(i))}}function fo(r){var e=F,t=J,o=rr,l=y,i=Er,n=gr,s=Q,a=dr,b=Lr,f=r.f;F=null,J=0,rr=null,Er=(f&X)!==0&&(dr||!Wr||y===null),y=(f&(cr|wr))===0?r:null,gr=null,ge(r.ctx),dr=!1,Lr=++ne,r.ac!==null&&(_e(()=>{r.ac.abort(Fe)}),r.ac=null);try{r.f|=Ie;var x=r.fn,p=x(),v=r.deps;if(F!==null){var m;if(ze(r,J),v!==null&&J>0)for(v.length=J+F.length,m=0;m<F.length;m++)v[J+m]=F[m];else r.deps=v=F;if(!Er||(f&Y)!==0&&r.reactions!==null)for(m=J;m<v.length;m++)(v[m].reactions??=[]).push(r)}else v!==null&&J<v.length&&(ze(r,J),v.length=J);if(zt()&&rr!==null&&!dr&&v!==null&&(r.f&(Y|yr|Z))===0)for(m=0;m<rr.length;m++)bo(rr[m],r);return l!==null&&l!==r&&(ne++,rr!==null&&(o===null?o=rr:o.push(...rr))),(r.f&Cr)!==0&&(r.f^=Cr),p}catch(u){return Xo(u)}finally{r.f^=Ie,F=e,J=t,rr=o,y=l,Er=i,gr=n,ge(s),dr=a,Lr=b}}function hl(r,e){let t=e.reactions;if(t!==null){var o=Ro.call(t,r);if(o!==-1){var l=t.length-1;l===0?t=e.reactions=null:(t[o]=t[l],t.pop())}}t===null&&(e.f&Y)!==0&&(F===null||!F.includes(e))&&(q(e,yr),(e.f&(X|ve))===0&&(e.f^=ve),St(e),ze(e,0))}function ze(r,e){var t=r.deps;if(t!==null)for(var o=e;o<t.length;o++)hl(r,t[o])}function Kr(r){var e=r.f;if((e&Sr)===0){q(r,O);var t=h,o=Wr;h=r,Wr=!0;try{(e&qr)!==0?cl(r):Qt(r),Zt(r);var l=fo(r);r.teardown=typeof l=="function"?l:null,r.wv=no;var i;dt&&Ko&&(r.f&Z)!==0&&r.deps}finally{Wr=o,h=t}}}async function wl(){await Promise.resolve(),kr()}function d(r){var e=r.f,t=(e&Y)!==0;if(y!==null&&!dr){var o=h!==null&&(h.f&Sr)!==0;if(!o&&!gr?.includes(r)){var l=y.deps;if((y.f&Ie)!==0)r.rv<ne&&(r.rv=ne,F===null&&l!==null&&l[J]===r?J++:F===null?F=[r]:(!Er||!F.includes(r))&&F.push(r));else{(y.deps??=[]).push(r);var i=r.reactions;i===null?r.reactions=[y]:i.includes(y)||i.push(y)}}}else if(t&&r.deps===null&&r.effects===null){var n=r,s=n.parent;s!==null&&(s.f&X)===0&&(n.f^=X)}if(Or){if(_r.has(r))return _r.get(r);if(t){n=r;var a=n.v;return((n.f&O)===0&&n.reactions!==null||mo(n))&&(a=Ue(n)),_r.set(n,a),a}}else t&&(n=r,$e(n)&&Ct(n));if((r.f&Cr)!==0)throw r.v;return r.v}function mo(r){if(r.v===B)return!0;if(r.deps===null)return!1;for(const e of r.deps)if(_r.has(e)||(e.f&Y)!==0&&mo(e))return!0;return!1}function po(r){var e=dr;try{return dr=!0,r()}finally{dr=e}}const yl=-7169;function q(r,e){r.f=r.f&yl|e}const vo=new Set,rt=new Set;function kl(r,e,t,o={}){function l(i){if(o.capture||se.call(e,i),!i.cancelBubble)return _e(()=>t?.call(this,i))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Rt(()=>{e.addEventListener(r,l,o)}):e.addEventListener(r,l,o),l}function _l(r,e,t,o,l){var i={capture:o,passive:l},n=kl(r,e,t,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ml(()=>{e.removeEventListener(r,n,i)})}function $l(r){for(var e=0;e<r.length;e++)vo.add(r[e]);for(var t of rt)t(r)}let xo=null;function se(r){var e=this,t=e.ownerDocument,o=r.type,l=r.composedPath?.()||[],i=l[0]||r.target;xo=r;var n=0,s=xo===r&&r.__root;if(s){var a=l.indexOf(s);if(a!==-1&&(e===document||e===window)){r.__root=e;return}var b=l.indexOf(e);if(b===-1)return;a<=b&&(n=a)}if(i=l[n]||r.target,i!==e){Dr(r,"currentTarget",{configurable:!0,get(){return i||t}});var f=y,x=h;pr(null),jr(null);try{for(var p,v=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var u=i["__"+o];if(u!=null&&(!i.disabled||r.target===i))if(Be(u)){var[w,...$]=u;w.apply(i,[r,...$])}else u.call(i,r)}catch(z){p?v.push(z):p=z}if(r.cancelBubble||m===e||m===null)break;i=m}if(p){for(let z of v)queueMicrotask(()=>{throw z});throw p}}finally{r.__root=e,delete r.currentTarget,pr(f),jr(x)}}}let er;function zl(){er=void 0}function jl(r){let e=null,t=_;var o;if(_){for(e=E,er===void 0&&(er=zr(document.head));er!==null&&(er.nodeType!==Ur||er.data!==Te);)er=br(er);er===null?lr(!1):er=W(br(er))}_||(o=document.head.appendChild($r()));try{Je(()=>r(o),ut)}finally{t&&(lr(!0),er=E,W(e))}}function El(r){var e=document.createElement("template");return e.innerHTML=r.replaceAll("<!>","<!---->"),e.content}function je(r,e){var t=h;t.nodes_start===null&&(t.nodes_start=r,t.nodes_end=e)}function I(r,e){var t=(e&jo)!==0,o=(e&Eo)!==0,l,i=!r.startsWith("<!>");return()=>{if(_)return je(E,null),E;l===void 0&&(l=El(i?r:"<!>"+r),t||(l=zr(l)));var n=o||Dt?document.importNode(l,!0):l.cloneNode(!0);if(t){var s=zr(n),a=n.lastChild;je(s,a)}else je(n,n);return n}}function N(r,e){if(_){h.nodes_end=E,ce();return}r!==null&&r.before(e)}const Al=["touchstart","touchmove"];function Rl(r){return Al.includes(r)}function Jr(r,e){var t=e==null?"":typeof e=="object"?e+"":e;t!==(r.__t??=r.nodeValue)&&(r.__t=t,r.nodeValue=t+"")}function co(r,e){return go(r,e)}function Tl(r,e){Ke(),e.intro=e.intro??!1;const t=e.target,o=_,l=E;try{for(var i=zr(t);i&&(i.nodeType!==Ur||i.data!==Te);)i=br(i);if(!i)throw Pr;lr(!0),W(i),ce();const n=go(r,{...e,anchor:i});if(E===null||E.nodeType!==Ur||E.data!==Ce)throw xe(),Pr;return lr(!1),n}catch(n){if(n instanceof Error&&n.message.split(`
|
|
2
|
+
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw n;return n!==Pr&&console.warn("Failed to hydrate: ",n),e.recover===!1&&Ho(),Ke(),Ut(t),lr(!1),co(r,e)}finally{lr(o),W(l),zl()}}const Xr=new Map;function go(r,{target:e,anchor:t,props:o={},events:l,context:i,intro:n=!0}){Ke();var s=new Set,a=x=>{for(var p=0;p<x.length;p++){var v=x[p];if(!s.has(v)){s.add(v);var m=Rl(v);e.addEventListener(v,se,{passive:m});var u=Xr.get(v);u===void 0?(document.addEventListener(v,se,{passive:m}),Xr.set(v,1)):Xr.set(v,u+1)}}};a(Ne(vo)),rt.add(a);var b=void 0,f=pl(()=>{var x=t??e.appendChild($r());return Yr(()=>{if(i){_t({});var p=Q;p.c=i}l&&(o.$$events=l),_&&je(x,null),b=r(x,o)||{},_&&(h.nodes_end=E),i&&$t()}),()=>{for(var p of s){e.removeEventListener(p,se);var v=Xr.get(p);--v===0?(document.removeEventListener(p,se),Xr.delete(p)):Xr.set(p,v)}rt.delete(a),x!==t&&x.parentNode?.removeChild(x)}});return et.set(b,f),b}let et=new WeakMap;function Sl(r,e){const t=et.get(r);return t?(et.delete(r),t(e)):Promise.resolve()}function Cl(r){Q===null&&Go(),Kt(()=>{const e=po(r);if(typeof e=="function")return e})}function sr(r,e,t=!1){_&&ce();var o=r,l=null,i=null,n=B,s=t?Ge:0,a=!1;const b=(v,m=!0)=>{a=!0,p(m,v)};var f=null;function x(){f!==null&&(f.lastChild.remove(),o.before(f),f=null);var v=n?l:i,m=n?i:l;v&&Qe(v),m&&Xe(m,()=>{n?i=null:l=null})}const p=(v,m)=>{if(n===(n=v))return;let u=!1;if(_){const S=wt(o)===Se;!!n===S&&(o=qe(),W(o),lr(!1),u=!0)}var w=Vt(),$=o;if(w&&(f=document.createDocumentFragment(),f.append($=$r())),n?l??=m&&Yr(()=>m($)):i??=m&&Yr(()=>m($)),w){var z=A,T=n?l:i,H=n?i:l;T&&z.skipped_effects.delete(T),H&&z.skipped_effects.add(H),z.add_callback(x)}else x();u&&lr(!0)};Je(()=>{a=!1,e(b),a||p(null,null)},s),_&&(o=E)}function Bl(r,e){return e}function Nl(r,e,t){for(var o=r.items,l=[],i=e.length,n=0;n<i;n++)Ze(e[n].e,l,!0);var s=i>0&&l.length===0&&t!==null;if(s){var a=t.parentNode;Ut(a),a.append(t),o.clear(),vr(r,e[0].prev,e[i-1].next)}eo(l,()=>{for(var b=0;b<i;b++){var f=e[b];s||(o.delete(f.k),vr(r,f.prev,f.next)),mr(f.e,!s)}})}function uo(r,e,t,o,l,i=null){var n=r,s={flags:e,items:new Map,first:null},a=(e&mt)!==0;if(a){var b=r;n=_?W(zr(b)):b.appendChild($r())}_&&ce();var f=null,x=!1,p=new Map,v=ol(()=>{var $=t();return Be($)?$:$==null?[]:Ne($)}),m,u;function w(){Ml(u,m,s,p,n,l,e,o,t),i!==null&&(m.length===0?f?Qe(f):f=Yr(()=>i(n)):f!==null&&Xe(f,()=>{f=null}))}Je(()=>{u??=h,m=d(v);var $=m.length;if(x&&$===0)return;x=$===0;let z=!1;if(_){var T=wt(n)===Se;T!==($===0)&&(n=qe(),W(n),lr(!1),z=!0)}if(_){for(var H=null,S,g=0;g<$;g++){if(E.nodeType===Ur&&E.data===Ce){n=E,z=!0,lr(!1);break}var k=m[g],C=o(k,g);S=tt(E,s,H,null,k,C,g,l,e,t),s.items.set(C,S),H=S}$>0&&W(qe())}if(_)$===0&&i&&(f=Yr(()=>i(n)));else if(Vt()){var Gr=new Set,Qr=A;for(g=0;g<$;g+=1){k=m[g],C=o(k,g);var ur=s.items.get(C)??p.get(C);ur?(e&(me|de))!==0&&ho(ur,k,g,e):(S=tt(null,s,null,null,k,C,g,l,e,t,!0),p.set(C,S)),Gr.add(C)}for(const[c,U]of s.items)Gr.has(c)||Qr.skipped_effects.add(U.e);Qr.add_callback(w)}else w();z&&lr(!0),d(v)}),_&&(n=E)}function Ml(r,e,t,o,l,i,n,s,a){var b=(n&$o)!==0,f=(n&(me|de))!==0,x=e.length,p=t.items,v=t.first,m=v,u,w=null,$,z=[],T=[],H,S,g,k;if(b)for(k=0;k<x;k+=1)H=e[k],S=s(H,k),g=p.get(S),g!==void 0&&(g.a?.measure(),($??=new Set).add(g));for(k=0;k<x;k+=1){if(H=e[k],S=s(H,k),g=p.get(S),g===void 0){var C=o.get(S);if(C!==void 0){o.delete(S),p.set(S,C);var Gr=w?w.next:m;vr(t,w,C),vr(t,C,Gr),ot(C,Gr,l),w=C}else{var Qr=m?m.e.nodes_start:l;w=tt(Qr,t,w,w===null?t.first:w.next,H,S,k,i,n,a)}p.set(S,w),z=[],T=[],m=w.next;continue}if(f&&ho(g,H,k,n),(g.e.f&or)!==0&&(Qe(g.e),b&&(g.a?.unfix(),($??=new Set).delete(g))),g!==m){if(u!==void 0&&u.has(g)){if(z.length<T.length){var ur=T[0],c;w=ur.prev;var U=z[0],hr=z[z.length-1];for(c=0;c<z.length;c+=1)ot(z[c],ur,l);for(c=0;c<T.length;c+=1)u.delete(T[c]);vr(t,U.prev,hr.next),vr(t,w,U),vr(t,hr,ur),m=ur,w=hr,k-=1,z=[],T=[]}else u.delete(g),ot(g,m,l),vr(t,g.prev,g.next),vr(t,g,w===null?t.first:w.next),vr(t,w,g),w=g;continue}for(z=[],T=[];m!==null&&m.k!==S;)(m.e.f&or)===0&&(u??=new Set).add(m),T.push(m),m=m.next;if(m===null)continue;g=m}z.push(g),w=g,m=g.next}if(m!==null||u!==void 0){for(var ar=u===void 0?[]:Ne(u);m!==null;)(m.e.f&or)===0&&ar.push(m),m=m.next;var j=ar.length;if(j>0){var nt=(n&mt)!==0&&x===0?l:null;if(b){for(k=0;k<j;k+=1)ar[k].a?.measure();for(k=0;k<j;k+=1)ar[k].a?.fix()}Nl(t,ar,nt)}}b&&Rt(()=>{if($!==void 0)for(g of $)g.a?.apply()}),r.first=t.first&&t.first.e,r.last=w&&w.e;for(var Re of o.values())mr(Re.e);o.clear()}function ho(r,e,t,o){(o&me)!==0&&le(r.v,e),(o&de)!==0?le(r.i,t):r.i=t}function tt(r,e,t,o,l,i,n,s,a,b,f){var x=(a&me)!==0,p=(a&zo)===0,v=x?p?Gt(l,!1,!1):oe(l):l,m=(a&de)===0?n:oe(n),u={i:m,v,k:i,a:null,e:null,prev:t,next:o};try{if(r===null){var w=document.createDocumentFragment();w.append(r=$r())}return u.e=Yr(()=>s(r,v,m,b),_),u.e.prev=t&&t.e,u.e.next=o&&o.e,t===null?f||(e.first=u):(t.next=u,t.e.next=u.e),o!==null&&(o.prev=u,o.e.prev=u.e),u}finally{}}function ot(r,e,t){for(var o=r.next?r.next.e.nodes_start:t,l=e?e.e.nodes_start:t,i=r.e.nodes_start;i!==null&&i!==o;){var n=br(i);l.before(i),i=n}}function vr(r,e,t){e===null?r.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function Ol(r,e){vl(()=>{var t=r.getRootNode(),o=t.host?t:t.head??t.ownerDocument.head;if(!o.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,o.appendChild(l)}})}function Ll(r,e,t){var o=r==null?"":""+r;return o=o?o+" "+e:e,o===""?null:o}function Gl(r,e){return r==null?null:String(r)}function xr(r,e,t,o,l,i){var n=r.__className;if(_||n!==t||n===void 0){var s=Ll(t,o);(!_||s!==r.getAttribute("class"))&&(s==null?r.removeAttribute("class"):r.className=s),r.__className=t}return i}function Il(r,e,t,o){var l=r.__style;if(_||l!==e){var i=Gl(e);(!_||i!==r.getAttribute("style"))&&(i==null?r.removeAttribute("style"):r.style.cssText=i),r.__style=e}return o}const Pl=Symbol("is custom element"),Dl=Symbol("is html");function Fl(r){if(_){var e=!1,t=()=>{if(!e){if(e=!0,r.hasAttribute("value")){var o=r.value;Ee(r,"value",null),r.value=o}if(r.hasAttribute("checked")){var l=r.checked;Ee(r,"checked",null),r.checked=l}}};r.__on_r=t,Qo(t),Wt()}}function Ee(r,e,t,o){var l=ql(r);_&&(l[e]=r.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&r.nodeName==="LINK")||l[e]!==(l[e]=t)&&(e==="loading"&&(r[Oo]=t),t==null?r.removeAttribute(e):typeof t!="string"&&Hl(r).includes(e)?r[e]=t:r.setAttribute(e,t))}function ql(r){return r.__attributes??={[Pl]:r.nodeName.includes("-"),[Dl]:r.namespaceURI===Ao}}var wo=new Map;function Hl(r){var e=r.getAttribute("is")||r.nodeName,t=wo.get(e);if(t)return t;wo.set(e,t=[]);for(var o,l=r,i=Element.prototype;i!==l;){o=To(l);for(var n in o)o[n].set&&t.push(n);l=pt(l)}return t}function Ul(r,e,t=e){var o=new WeakSet;al(r,"input",async l=>{var i=l?r.defaultValue:r.value;if(i=lt(r)?it(i):i,t(i),A!==null&&o.add(A),await wl(),i!==(i=e())){var n=r.selectionStart,s=r.selectionEnd;r.value=i??"",s!==null&&(r.selectionStart=n,r.selectionEnd=Math.min(s,r.value.length))}}),(_&&r.defaultValue!==r.value||po(e)==null&&r.value)&&(t(lt(r)?it(r.value):r.value),A!==null&&o.add(A)),Xt(()=>{var l=e();if(r===document.activeElement){var i=he??A;if(o.has(i))return}lt(r)&&l===it(r.value)||r.type==="date"&&!l&&!r.value||l!==r.value&&(r.value=l??"")})}function lt(r){var e=r.type;return e==="number"||e==="range"}function it(r){return r===""?null:+r}function Zr(r,e,t,o){var l=o,i=!0,n=()=>(i&&(i=!1,l=o),l),s;s=r[e],s===void 0&&o!==void 0&&(s=n());var a;a=()=>{var p=r[e];return p===void 0?n():(i=!0,p)};var b=!1,f=ue(()=>(b=!1,a())),x=h;return(function(p,v){if(arguments.length>0){const m=v?d(f):p;return G(f,m),b=!0,l!==void 0&&(l=m),p}return Or&&b||(x.f&Sr)!==0?f.v:d(f)})}function Vl(r){return new Yl(r)}class Yl{#e;#r;constructor(e){var t=new Map,o=(i,n)=>{var s=Gt(n,!1,!1);return t.set(i,s),s};const l=new Proxy({...e.props||{},$$events:{}},{get(i,n){return d(t.get(n)??o(n,Reflect.get(i,n)))},has(i,n){return n===Mo?!0:(d(t.get(n)??o(n,Reflect.get(i,n))),Reflect.has(i,n))},set(i,n,s){return G(t.get(n)??o(n,s),s),Reflect.set(i,n,s)}});this.#r=(e.hydrate?Tl:co)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&kr(),this.#e=l.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||Dr(this,i,{get(){return this.#r[i]},set(n){this.#r[i]=n},enumerable:!0});this.#r.$set=i=>{Object.assign(l,i)},this.#r.$destroy=()=>{Sl(this.#r)}}$set(e){this.#r.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];const o=(...l)=>t.call(this,...l);return this.#e[e].push(o),()=>{this.#e[e]=this.#e[e].filter(l=>l!==o)}}$destroy(){this.#r.$destroy()}}let yo;typeof HTMLElement=="function"&&(yo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,e,t){super(),this.$$ctor=r,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(r,e,t){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(e),this.$$c){const o=this.$$c.$on(r,e);this.$$l_u.set(e,o)}super.addEventListener(r,e,t)}removeEventListener(r,e,t){if(super.removeEventListener(r,e,t),this.$$c){const o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(o){return l=>{const i=document.createElement("slot");o!=="default"&&(i.name=o),N(l,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},t=Wl(this);for(const o of this.$$s)o in t&&(o==="default"&&!this.$$d.children?(this.$$d.children=r(o),e.default=!0):e[o]=r(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Ae(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=Vl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=dl(()=>{Xt(()=>{this.$$r=!0;for(const o of pe(this.$$c)){if(!this.$$p_d[o]?.reflect)continue;this.$$d[o]=this.$$c[o];const l=Ae(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const i=this.$$c.$on(o,l);this.$$l_u.set(l,i)}this.$$l={}}}attributeChangedCallback(r,e,t){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Ae(r,t,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return pe(this.$$p_d).find(e=>this.$$p_d[e].attribute===r||!this.$$p_d[e].attribute&&e.toLowerCase()===r)||r}});function Ae(r,e,t,o){const l=t[r]?.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!t[r])return e;if(o==="toAttribute")switch(l){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Wl(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Kl(r,e,t,o,l,i){let n=class extends yo{constructor(){super(r,t,l),this.$$p_d=e}static get observedAttributes(){return pe(e).map(s=>(e[s].attribute||s).toLowerCase())}};return pe(e).forEach(s=>{Dr(n.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(a){a=Ae(s,a,e),this.$$d[s]=a;var b=this.$$c;if(b){var f=Fr(b,s)?.get;f?b[s]=a:b.$set({[s]:a})}}})}),o.forEach(s=>{Dr(n.prototype,s,{get(){return this.$$c?.[s]}})}),r.element=n,n}function Jl(r,e,t,o,l,i){G(e,!0),r.key!=="Enter"&&(console.log("debouncing",d(t)),d(o)&&clearTimeout(d(o)),G(o,setTimeout(()=>{d(t)&&d(t).length>Number(l())&&i("input")},500),!0))}function Xl(r,e){r&&r.preventDefault?.(),console.log("clicked searching"),e("button")}var Zl=I('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1rxrfb7"/>'),Ql=(r,e)=>{e("button")},ri=(r,e,t,o)=>{G(e,d(t).text,!0),o("searchlist",d(t).id)},ei=I("<i></i>"),ti=I("<i></i>"),oi=I("<span><!> </span>"),li=I('<a class="dropdown-item d-flex align-items-center gap-2 text-decoration-none svelte-1rxrfb7"><!> <span class="flex-grow-1 svelte-1rxrfb7"> </span> <!></a>'),ii=(r,e,t,o)=>{G(e,d(t).text,!0),o("searchlist",d(t).id)},ni=I("<i></i>"),si=I("<i></i>"),ai=I("<span><!> </span>"),bi=I('<button class="dropdown-item d-flex align-items-center gap-2 svelte-1rxrfb7"><!> <span class="flex-grow-1 svelte-1rxrfb7"> </span> <!></button>'),fi=I("<i></i>"),mi=I("<span><!> </span>"),di=I('<div class="px-3 pb-2 svelte-1rxrfb7"><div class="d-flex flex-wrap gap-1 svelte-1rxrfb7"></div></div>'),pi=I('<li class="svelte-1rxrfb7"><hr class="dropdown-divider svelte-1rxrfb7"/></li>'),vi=I('<li class="svelte-1rxrfb7"><!> <!></li> <!>',1),xi=I('<li class="svelte-1rxrfb7"><h6 class="dropdown-header svelte-1rxrfb7">Suggested results</h6></li> <!>',1),ci=I('<div><div class="position-relative svelte-1rxrfb7"><input id="custom-search-input" class="form-control svelte-1rxrfb7" type="search" aria-label="Search" aria-describedby="search"/> <button class="btn bg-transparent px-2 py-0 position-absolute top-50 start-5 translate-middle-y svelte-1rxrfb7" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search svelte-1rxrfb7" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" class="svelte-1rxrfb7"></path></svg></button></div> <div class="dropdown svelte-1rxrfb7" style="position: absolute; width:100%"><ul id="custom-search-list"><li class="svelte-1rxrfb7"><button class="dropdown-item svelte-1rxrfb7"> </button></li> <!></ul></div></div>');const gi={hash:"svelte-1rxrfb7",code:`@charset "UTF-8";
|
|
3
3
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
4
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
5
5
|
/*!
|
|
@@ -270,5 +270,5 @@ button.svelte-1rxrfb7 {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
270
270
|
}
|
|
271
271
|
@media print {.d-print-inline.svelte-1rxrfb7 {display:inline !important;}.d-print-inline-block.svelte-1rxrfb7 {display:inline-block !important;}.d-print-block.svelte-1rxrfb7 {display:block !important;}.d-print-grid.svelte-1rxrfb7 {display:grid !important;}.d-print-inline-grid.svelte-1rxrfb7 {display:inline-grid !important;}.d-print-table.svelte-1rxrfb7 {display:table !important;}.d-print-table-row.svelte-1rxrfb7 {display:table-row !important;}.d-print-table-cell.svelte-1rxrfb7 {display:table-cell !important;}.d-print-flex.svelte-1rxrfb7 {display:flex !important;}.d-print-inline-flex.svelte-1rxrfb7 {display:inline-flex !important;}.d-print-none.svelte-1rxrfb7 {display:none !important;}
|
|
272
272
|
}:host {font-family:"Roboto", sans-serif;}#custom-search-input.svelte-1rxrfb7 {background-color:#ebeef4;color:var(--bs-secondary-color);border-bottom:0px;padding-left:33px;
|
|
273
|
-
/* 36px - between ps-4 (24px) and ps-5 (48px) */}#custom-search-input.svelte-1rxrfb7::placeholder {color:var(--bs-secondary-color);opacity:0.5;}#custom-search-list.svelte-1rxrfb7 {position:static;margin:0px;background-color:rgba(255, 255, 255, 0.95);border-radius:0px 0px 5px 5px;border-top:none;max-height:200px;overflow-y:auto;}`};function
|
|
273
|
+
/* 36px - between ps-4 (24px) and ps-5 (48px) */}#custom-search-input.svelte-1rxrfb7::placeholder {color:var(--bs-secondary-color);opacity:0.5;}#custom-search-list.svelte-1rxrfb7 {position:static;margin:0px;background-color:rgba(255, 255, 255, 0.95);border-radius:0px 0px 5px 5px;border-top:none;max-height:200px;overflow-y:auto;}`};function ko(r,e){_t(e,!0),Ol(r,gi);let t=Zr(e,"id",7,""),o=Zr(e,"style",7,""),l=Zr(e,"searchlabel",7,"Search"),i=Zr(e,"searchlist"),n=Zr(e,"minlength",7,0),s=Zr(e,"disable_preview",7,"no"),a=ir(""),b=ir(!1),f=Tt(()=>i()?.filter?.(c=>c?.fixed||c?.text?.toLowerCase().includes(d(a).toLowerCase())));const x=Tt(()=>s()!=="yes"&&s()!=="true"&&s()!=="on"&&d(a)?.length>Number(n())&&d(b));Kt(()=>{if(t()||t(""),i()||i([]),typeof i()=="string")try{i(JSON.parse(i()))}catch(c){console.error("error parsing searchlist",c)}});async function p(c,U){if(!d(a))return;console.log("searching",c,d(a));let hr;U?(hr=i()?.find(ar=>ar.id===U),hr&&u("search",{input:d(a),by:c,item:hr})):u("search",{input:d(a),by:c}),c!=="input"&&G(b,!1)}let v=ir(void 0);function m(c){console.log("closeDropdown",c.target.closest("hb-searchbar")),!(!d(b)||c.target.closest("hb-searchbar"))&&G(b,!1)}Cl(()=>(console.log("mounting searchbar"),window.addEventListener("click",m),()=>{console.log("unmounting searchbar"),window.removeEventListener("click",m)}));function u(c,U){e.$$host.dispatchEvent(new CustomEvent(c,{detail:U}))}var w={get id(){return t()},set id(c=""){t(c),kr()},get style(){return o()},set style(c=""){o(c),kr()},get searchlabel(){return l()},set searchlabel(c="Search"){l(c),kr()},get searchlist(){return i()},set searchlist(c){i(c),kr()},get minlength(){return n()},set minlength(c=0){n(c),kr()},get disable_preview(){return s()},set disable_preview(c="no"){s(c),kr()}},$=ci();jl(c=>{var U=Zl();N(c,U)});var z=D($),T=D(z);Fl(T),T.__input=[Jl,b,a,v,n,p];var H=K(T,2);H.__click=[Xl,p],L(z);var S=K(z,2),g=D(S),k=D(g),C=D(k);C.__click=[Ql,p];var Gr=D(C);L(C),L(k);var Qr=K(k,2);{var ur=c=>{var U=xi(),hr=K(Ht(U),2);uo(hr,19,()=>d(f),ar=>ar.id,(ar,j,nt)=>{var Re=vi(),st=Ht(Re),_o=D(st);{var ui=V=>{var P=li();P.__click=[ri,a,j,p];var Ar=D(P);{var ae=M=>{var R=ei();nr(()=>xr(R,1,`bi bi-${d(j).icon?d(j).icon:"dot"}`,"svelte-1rxrfb7")),N(M,R)};sr(Ar,M=>{(d(j).icon||d(f).find(R=>R.icon))&&M(ae)})}var tr=K(Ar,2),Rr=D(tr,!0);L(tr);var re=K(tr,2);{var be=M=>{var R=oi(),Tr=D(R);{var at=Ir=>{var fe=ti();nr(()=>xr(fe,1,`bi bi-${d(j).badge.icon}`,"svelte-1rxrfb7")),N(Ir,fe)};sr(Tr,Ir=>{d(j).badge.icon&&Ir(at)})}var bt=K(Tr);L(R),nr(()=>{xr(R,1,`badge bg-${d(j).badge.color||"secondary"} d-flex align-items-center gap-1`,"svelte-1rxrfb7"),Jr(bt,` ${d(j).badge.text??""}`)}),N(M,R)};sr(re,M=>{d(j).badge&&M(be)})}L(P),nr(()=>{Ee(P,"href",d(j).url),Jr(Rr,d(j).text)}),N(V,P)},hi=V=>{var P=bi();P.__click=[ii,a,j,p];var Ar=D(P);{var ae=M=>{var R=ni();nr(()=>xr(R,1,`bi bi-${d(j).icon?d(j).icon:"dot"}`,"svelte-1rxrfb7")),N(M,R)};sr(Ar,M=>{(d(j).icon||d(f).find(R=>R.icon))&&M(ae)})}var tr=K(Ar,2),Rr=D(tr,!0);L(tr);var re=K(tr,2);{var be=M=>{var R=ai(),Tr=D(R);{var at=Ir=>{var fe=si();nr(()=>xr(fe,1,`bi bi-${d(j).badge.icon}`,"svelte-1rxrfb7")),N(Ir,fe)};sr(Tr,Ir=>{d(j).badge.icon&&Ir(at)})}var bt=K(Tr);L(R),nr(()=>{xr(R,1,`badge bg-${d(j).badge.color||"secondary"} d-flex align-items-center gap-1`,"svelte-1rxrfb7"),Jr(bt,` ${d(j).badge.text??""}`)}),N(M,R)};sr(re,M=>{d(j).badge&&M(be)})}L(P),nr(()=>Jr(Rr,d(j).text)),N(V,P)};sr(_o,V=>{d(j).url?V(ui):V(hi,!1)})}var wi=K(_o,2);{var yi=V=>{var P=di(),Ar=D(P);uo(Ar,21,()=>d(j).tags,Bl,(ae,tr)=>{var Rr=mi(),re=D(Rr);{var be=R=>{var Tr=fi();nr(()=>xr(Tr,1,`bi bi-${d(tr).icon}`,"svelte-1rxrfb7")),N(R,Tr)};sr(re,R=>{d(tr).icon&&R(be)})}var M=K(re);L(Rr),nr(()=>{xr(Rr,1,`badge bg-${d(tr).color||"light"} text-dark d-flex align-items-center gap-1`,"svelte-1rxrfb7"),Jr(M,` ${d(tr).text??""}`)}),N(ae,Rr)}),L(Ar),L(P),N(V,P)};sr(wi,V=>{d(j).tags&&d(j).tags.length>0&&V(yi)})}L(st);var ki=K(st,2);{var _i=V=>{var P=pi();N(V,P)};sr(ki,V=>{d(nt)<d(f).length-1&&V(_i)})}N(ar,Re)}),N(c,U)};sr(Qr,c=>{d(f)?.length&&c(ur)})}return L(g),L(S),L($),nr(()=>{xr($,1,`${d(x)?"border-primary-subtle":""} position-relative`,"svelte-1rxrfb7"),Il(T,d(x)?"border-radius: 5px 5px 0px 0px;":"border-radius: 5px"),Ee(T,"placeholder",l()),xr(g,1,`dropdown-menu ${d(x)?"show":""}`,"svelte-1rxrfb7"),Jr(Gr,`... ${d(a)??""}`)}),_l("keypress",T,c=>{c.key==="Enter"&&(c.preventDefault(),p("button"))}),Ul(T,()=>d(a),c=>G(a,c)),N(r,$),$t(w)}$l(["input","click"]),customElements.define("hb-searchbar",Kl(ko,{id:{},style:{},searchlabel:{},searchlist:{},minlength:{},disable_preview:{}},[],[],!0)),ft.Component=ko,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})})(this.searchbar=this.searchbar||{});
|
|
274
274
|
//# sourceMappingURL=main.iife.js.map
|