@htmlbricks/hb-navbar 0.50.0-alpha.19 → 0.50.0-alpha.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,2 +1,2 @@
1
- var li=Object.defineProperty;var Rr=y=>{throw TypeError(y)};var ui=(y,E,N)=>E in y?li(y,E,{enumerable:!0,configurable:!0,writable:!0,value:N}):y[E]=N;var G=(y,E,N)=>ui(y,typeof E!="symbol"?E+"":E,N),Sr=(y,E,N)=>E.has(y)||Rr("Cannot "+N);var A=(y,E,N)=>(Sr(y,E,"read from private field"),N?N.call(y):E.get(y)),kt=(y,E,N)=>E.has(y)?Rr("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(y):E.set(y,N),Rt=(y,E,N,Ye)=>(Sr(y,E,"write to private field"),Ye?Ye.call(y,N):E.set(y,N),N);(function(y){"use strict";var re,H;const E="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(E);const N=1,Ye=2,St="[",Ct="[!",At="]",Se={},C=Symbol(),at=!1,V=2,Pt=4,He=8,ot=16,Z=32,ge=64,Be=128,q=256,Ve=512,R=1024,Q=2048,me=4096,pe=8192,Ge=16384,Cr=32768,ft=65536,Ar=1<<19,Dt=1<<20,ct=Symbol("$state"),Pr=Symbol("legacy props"),Dr=Symbol("");var Lt=Array.isArray,Lr=Array.prototype.indexOf,Ir=Array.from,Ue=Object.keys,We=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Mr=Object.getOwnPropertyDescriptors,jr=Object.prototype,Fr=Array.prototype,It=Object.getPrototypeOf;function qr(e){for(var t=0;t<e.length;t++)e[t]()}let Xe=!1,vt=[];function Mt(){Xe=!1;const e=vt.slice();vt=[],qr(e)}function jt(e){Xe||(Xe=!0,queueMicrotask(Mt)),vt.push(e)}function Yr(){Xe&&Mt()}function Ft(e){return e===this.v}function Hr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Br(e){return!Hr(e,this.v)}function Vr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ur(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Wr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Jr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Zr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Qr=!1;function U(e,t){var r={f:0,v:e,reactions:null,equals:Ft,rv:0,wv:0};return r}function qt(e){return en(U(e))}function Yt(e,t=!1){const r=U(e);return t||(r.equals=Br),r}function en(e){return p!==null&&!W&&p.f&V&&(z===null?an([e]):z.push(e)),e}function Y(e,t){return p!==null&&!W&&pr()&&p.f&(V|ot)&&(z===null||!z.includes(e))&&Zr(),tn(e,t)}function tn(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=rr(),Ht(e,Q),$!==null&&$.f&R&&!($.f&(Z|ge))&&(ee===null?on([e]):ee.push(e))),t}function Ht(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],l=s.f;l&Q||(J(s,t),l&(R|q)&&(l&V?Ht(s,me):tt(s)))}}function Bt(e){var t=V|Q,r=p!==null&&p.f&V?p:null;return $===null||r!==null&&r.f&q?t|=q:$.f|=Dt,{ctx:M,deps:null,effects:null,equals:Ft,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??$}}function Vt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ue(t[r])}}function rn(e){for(var t=e.parent;t!==null;){if(!(t.f&V))return t;t=t.parent}return null}function nn(e){var t,r=$;K(rn(e));try{Vt(e),t=ir(e)}finally{K(r)}return t}function Gt(e){var t=nn(e),r=(le||e.f&q)&&e.deps!==null?me:R;J(e,r),e.equals(t)||(e.v=t,e.wv=rr())}function _t(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function ne(e){b=e}let T;function ie(e){if(e===null)throw _t(),Se;return T=e}function Ke(){return ie(oe(T))}function P(e){if(b){if(oe(T)!==null)throw _t(),Se;T=e}}function sn(){for(var e=0,t=T;;){if(t.nodeType===8){var r=t.data;if(r===At){if(e===0)return t;e-=1}else(r===St||r===Ct)&&(e+=1)}var i=oe(t);t.remove(),t=i}}function se(e,t=null,r){if(typeof e!="object"||e===null||ct in e)return e;const i=It(e);if(i!==jr&&i!==Fr)return e;var n=new Map,s=Lt(e),l=U(0);s&&n.set("length",U(e.length));var u;return new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kr();var c=n.get(a);return c===void 0?(c=U(f.value),n.set(a,c)):Y(c,se(f.value,u)),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0)a in o&&n.set(a,U(C));else{if(s&&typeof a=="string"){var c=n.get("length"),v=Number(a);Number.isInteger(v)&&v<c.v&&Y(c,v)}Y(f,C),Ut(l)}return!0},get(o,a,f){var g;if(a===ct)return e;var c=n.get(a),v=a in o;if(c===void 0&&(!v||(g=$e(o,a))!=null&&g.writable)&&(c=U(se(v?o[a]:C,u)),n.set(a,c)),c!==void 0){var _=I(c);return _===C?void 0:_}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var c=n.get(a);c&&(f.value=I(c))}else if(f===void 0){var v=n.get(a),_=v==null?void 0:v.v;if(v!==void 0&&_!==C)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return f},has(o,a){var _;if(a===ct)return!0;var f=n.get(a),c=f!==void 0&&f.v!==C||Reflect.has(o,a);if(f!==void 0||$!==null&&(!c||(_=$e(o,a))!=null&&_.writable)){f===void 0&&(f=U(c?se(o[a],u):C),n.set(a,f));var v=I(f);if(v===C)return!1}return c},set(o,a,f,c){var B;var v=n.get(a),_=a in o;if(s&&a==="length")for(var g=f;g<v.v;g+=1){var d=n.get(g+"");d!==void 0?Y(d,C):g in o&&(d=U(C),n.set(g+"",d))}v===void 0?(!_||(B=$e(o,a))!=null&&B.writable)&&(v=U(void 0),Y(v,se(f,u)),n.set(a,v)):(_=v.v!==C,Y(v,se(f,u)));var k=Reflect.getOwnPropertyDescriptor(o,a);if(k!=null&&k.set&&k.set.call(c,f),!_){if(s&&typeof a=="string"){var j=n.get("length"),x=Number(a);Number.isInteger(x)&&x>=j.v&&Y(j,x+1)}Ut(l)}return!0},ownKeys(o){I(l);var a=Reflect.ownKeys(o).filter(v=>{var _=n.get(v);return _===void 0||_.v!==C});for(var[f,c]of n)c.v!==C&&!(f in o)&&a.push(f);return a},setPrototypeOf(){zr()}})}function Ut(e,t=1){Y(e,e.v+t)}var Wt,Xt,Kt,zt;function dt(){if(Wt===void 0){Wt=window,Xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Kt=$e(t,"firstChild").get,zt=$e(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Ce(e=""){return document.createTextNode(e)}function we(e){return Kt.call(e)}function oe(e){return zt.call(e)}function D(e,t){if(!b)return we(e);var r=we(T);return r===null&&(r=T.appendChild(Ce())),ie(r),r}function Jt(e,t){if(!b){var r=we(e);return r instanceof Comment&&r.data===""?oe(r):r}return T}function ye(e,t=1,r=!1){let i=b?T:e;for(var n;t--;)n=i,i=oe(i);if(!b)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var l=Ce();return i===null?n==null||n.after(l):i.before(l),ie(l),l}return ie(i),i}function ln(e){e.textContent=""}const Zt=0,un=1;let ze=!1,Je=Zt,Ae=!1,Pe=null,Ee=!1,ht=!1;function Qt(e){Ee=e}function er(e){ht=e}let fe=[],be=0,ai=[],p=null,W=!1;function X(e){p=e}let $=null;function K(e){$=e}let z=null;function an(e){z=e}let S=null,L=0,ee=null;function on(e){ee=e}let tr=1,Ze=0,le=!1;function rr(){return++tr}function De(e){var c;var t=e.f;if(t&Q)return!0;if(t&me){var r=e.deps,i=(t&q)!==0;if(r!==null){var n,s,l=(t&Ve)!==0,u=i&&$!==null&&!le,o=r.length;if(l||u){var a=e,f=a.parent;for(n=0;n<o;n++)s=r[n],(l||!((c=s==null?void 0:s.reactions)!=null&&c.includes(a)))&&(s.reactions??(s.reactions=[])).push(a);l&&(a.f^=Ve),u&&f!==null&&!(f.f&q)&&(a.f^=q)}for(n=0;n<o;n++)if(s=r[n],De(s)&&Gt(s),s.wv>e.wv)return!0}(!i||$!==null&&!le)&&J(e,R)}return!1}function fn(e,t){for(var r=t;r!==null;){if(r.f&Be)try{r.fn(e);return}catch{r.f^=Be}r=r.parent}throw ze=!1,e}function cn(e){return(e.f&Ge)===0&&(e.parent===null||(e.parent.f&Be)===0)}function Qe(e,t,r,i){if(ze){if(r===null&&(ze=!1),cn(t))throw e;return}r!==null&&(ze=!0);{fn(e,t);return}}function nr(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&V?nr(s,t,!1):t===s&&(r?J(s,Q):s.f&R&&J(s,me),tt(s))}}function ir(e){var _;var t=S,r=L,i=ee,n=p,s=le,l=z,u=M,o=W,a=e.f;S=null,L=0,ee=null,p=a&(Z|ge)?null:e,le=(a&q)!==0&&(!Ee||n===null||o),z=null,hr(e.ctx),W=!1,Ze++;try{var f=(0,e.fn)(),c=e.deps;if(S!==null){var v;if(et(e,L),c!==null&&L>0)for(c.length=L+S.length,v=0;v<S.length;v++)c[L+v]=S[v];else e.deps=c=S;if(!le)for(v=L;v<c.length;v++)((_=c[v]).reactions??(_.reactions=[])).push(e)}else c!==null&&L<c.length&&(et(e,L),c.length=L);if(pr()&&ee!==null&&!W&&c!==null&&!(e.f&(V|me|Q)))for(v=0;v<ee.length;v++)nr(ee[v],e);return n!==null&&Ze++,f}finally{S=t,L=r,ee=i,p=n,le=s,z=l,hr(u),W=o}}function vn(e,t){let r=t.reactions;if(r!==null){var i=Lr.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&V&&(S===null||!S.includes(t))&&(J(t,me),t.f&(q|Ve)||(t.f^=Ve),Vt(t),et(t,0))}function et(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)vn(e,r[i])}function gt(e){var t=e.f;if(!(t&Ge)){J(e,R);var r=$,i=M;$=e;try{t&ot?xn(e):fr(e),or(e);var n=ir(e);e.teardown=typeof n=="function"?n:null,e.wv=tr;var s=e.deps,l;at&&Qr&&e.f&Q}catch(u){Qe(u,e,r,i||e.ctx)}finally{$=r}}}function sr(){if(be>1e3){be=0;try{Wr()}catch(e){if(Pe!==null)Qe(e,Pe,null);else throw e}}be++}function lr(e){var t=e.length;if(t!==0){sr();var r=Ee;Ee=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&R||(n.f^=R);var s=hn(n);_n(s)}}finally{Ee=r}}}function _n(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(Ge|pe)))try{De(i)&&(gt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?cr(i):i.fn=null))}catch(n){Qe(n,i,null,i.ctx)}}}function dn(){if(Ae=!1,be>1001)return;const e=fe;fe=[],lr(e),Ae||(be=0,Pe=null)}function tt(e){Je===Zt&&(Ae||(Ae=!0,queueMicrotask(dn))),Pe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ge|Z)){if(!(r&R))return;t.f^=R}}fe.push(t)}function hn(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&Z)!==0,s=n&&(i&R)!==0,l=r.next;if(!s&&!(i&pe)){if(i&Pt)t.push(r);else if(n)r.f^=R;else{var u=p;try{p=r,De(r)&&gt(r)}catch(f){Qe(f,r,null,r.ctx)}finally{p=u}}var o=r.first;if(o!==null){r=o;continue}}if(l===null){let f=r.parent;for(;f!==null;){if(e===f)break e;var a=f.next;if(a!==null){r=a;continue e}f=f.parent}}r=l}return t}function te(e){var t=Je,r=fe;try{sr();const n=[];Je=un,fe=n,Ae=!1,lr(r);var i=e==null?void 0:e();return Yr(),(fe.length>0||n.length>0)&&te(),be=0,Pe=null,i}finally{Je=t,fe=r}}function I(e){var t=e.f,r=(t&V)!==0;if(p!==null&&!W){z!==null&&z.includes(e)&&Jr();var i=p.deps;e.rv<Ze&&(e.rv=Ze,S===null&&i!==null&&i[L]===e?L++:S===null?S=[e]:(!le||!S.includes(e))&&S.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&q)&&(n.f^=q)}return r&&(n=e,De(n)&&Gt(n)),e.v}function gn(e){var t=W;try{return W=!0,e()}finally{W=t}}const mn=-7169;function J(e,t){e.f=e.f&mn|t}function pn(e){$===null&&p===null&&Ur(),p!==null&&p.f&q&&$===null&&Gr(),ht&&Vr()}function $n(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ce(e,t,r,i=!0){var n=(e&ge)!==0,s=$,l={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|Q,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var u=Ee;try{Qt(!0),gt(l),l.f|=Cr}catch(f){throw ue(l),f}finally{Qt(u)}}else t!==null&&tt(l);var o=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(Dt|Be))===0;if(!o&&!n&&i&&(s!==null&&$n(l,s),p!==null&&p.f&V)){var a=p;(a.effects??(a.effects=[])).push(l)}return l}function wn(e){const t=ce(He,null,!1);return J(t,R),t.teardown=e,t}function yn(e){pn();var t=$!==null&&($.f&Z)!==0&&M!==null&&!M.m;if(t){var r=M;(r.e??(r.e=[])).push({fn:e,effect:$,reaction:p})}else{var i=ur(e);return i}}function En(e){const t=ce(ge,e,!0);return()=>{ue(t)}}function bn(e){const t=ce(ge,e,!0);return(r={})=>new Promise(i=>{r.outro?pt(t,()=>{ue(t),i(void 0)}):(ue(t),i(void 0))})}function ur(e){return ce(Pt,e,!1)}function Tn(e){return ce(He,e,!0)}function Le(e,t=[],r=Bt){const i=t.map(r);return ar(()=>e(...i.map(I)))}function ar(e,t=0){return ce(He|ot|t,e,!0)}function mt(e,t=!0){return ce(He|Z,e,!0,t)}function or(e){var t=e.teardown;if(t!==null){const r=ht,i=p;er(!0),X(null);try{t.call(null)}finally{er(r),X(i)}}}function fr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;ue(r,t),r=i}}function xn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Z||ue(t),t=r}}function ue(e,t=!0){var r=!1;if((t||e.f&Ar)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:oe(i);i.remove(),i=s}r=!0}fr(e,t&&!r),et(e,0),J(e,Ge);var l=e.transitions;if(l!==null)for(const o of l)o.stop();or(e);var u=e.parent;u!==null&&u.first!==null&&cr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function cr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function pt(e,t){var r=[];vr(e,r,!0),Nn(r,()=>{ue(e),t&&t()})}function Nn(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function vr(e,t,r){if(!(e.f&pe)){if(e.f^=pe,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&ft)!==0||(i.f&Z)!==0;vr(i,t,s?r:!1),i=n}}}function _r(e){dr(e,!0)}function dr(e,t){if(e.f&pe){e.f^=pe,e.f&R||(e.f^=R),De(e)&&(J(e,Q),tt(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&ft)!==0||(r.f&Z)!==0;dr(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let M=null;function hr(e){M=e}function gr(e,t=!1,r){M={p:M,c:null,e:null,m:!1,s:e,x:null,l:null}}function mr(e){const t=M;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var r=$,i=p;t.e=null;try{for(var n=0;n<l.length;n++){var s=l[n];K(s.effect),X(s.reaction),ur(s.fn)}}finally{K(r),X(i)}}M=t.p,t.m=!0}return e||{}}function pr(){return!0}const On=["touchstart","touchmove"];function kn(e){return On.includes(e)}function Rn(e){var t=p,r=$;X(null),K(null);try{return e()}finally{X(t),K(r)}}const $r=new Set,$t=new Set;function Sn(e,t,r,i={}){function n(s){if(i.capture||Ie.call(t,s),!s.cancelBubble)return Rn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?jt(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function Cn(e,t,r,i,n){var s={capture:i,passive:n},l=Sn(e,t,r,s);(t===document.body||t===window||t===document)&&wn(()=>{t.removeEventListener(e,l,s)})}function An(e){for(var t=0;t<e.length;t++)$r.add(e[t]);for(var r of $t)r(e)}function Ie(e){var x;var t=this,r=t.ownerDocument,i=e.type,n=((x=e.composedPath)==null?void 0:x.call(e))||[],s=n[0]||e.target,l=0,u=e.__root;if(u){var o=n.indexOf(u);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=n.indexOf(t);if(a===-1)return;o<=a&&(l=o)}if(s=n[l]||e.target,s!==t){We(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=p,c=$;X(null),K(null);try{for(var v,_=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var d=s["__"+i];if(d!==void 0&&!s.disabled)if(Lt(d)){var[k,...j]=d;k.apply(s,[e,...j])}else d.call(s,e)}catch(B){v?_.push(B):v=B}if(e.cancelBubble||g===t||g===null)break;s=g}if(v){for(let B of _)queueMicrotask(()=>{throw B});throw v}}finally{e.__root=t,delete e.currentTarget,X(f),K(c)}}}function Pn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Te(e,t){var r=$;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Me(e,t){var r=(t&N)!==0,i=(t&Ye)!==0,n,s=!e.startsWith("<!>");return()=>{if(b)return Te(T,null),T;n===void 0&&(n=Pn(s?e:"<!>"+e),r||(n=we(n)));var l=i||Xt?document.importNode(n,!0):n.cloneNode(!0);if(r){var u=we(l),o=l.lastChild;Te(u,o)}else Te(l,l);return l}}function Dn(e=""){if(!b){var t=Ce(e+"");return Te(t,t),t}var r=T;return r.nodeType!==3&&(r.before(r=Ce()),ie(r)),Te(r,r),r}function ve(e,t){if(b){$.nodes_end=T,Ke();return}e!==null&&e.before(t)}function Ln(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function wr(e,t){return yr(e,t)}function In(e,t){dt(),t.intro=t.intro??!1;const r=t.target,i=b,n=T;try{for(var s=we(r);s&&(s.nodeType!==8||s.data!==St);)s=oe(s);if(!s)throw Se;ne(!0),ie(s),Ke();const l=yr(e,{...t,anchor:s});if(T===null||T.nodeType!==8||T.data!==At)throw _t(),Se;return ne(!1),l}catch(l){if(l===Se)return t.recover===!1&&Xr(),dt(),ln(r),ne(!1),wr(e,t);throw l}finally{ne(i),ie(n)}}const xe=new Map;function yr(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:l=!0}){dt();var u=new Set,o=c=>{for(var v=0;v<c.length;v++){var _=c[v];if(!u.has(_)){u.add(_);var g=kn(_);t.addEventListener(_,Ie,{passive:g});var d=xe.get(_);d===void 0?(document.addEventListener(_,Ie,{passive:g}),xe.set(_,1)):xe.set(_,d+1)}}};o(Ir($r)),$t.add(o);var a=void 0,f=bn(()=>{var c=r??t.appendChild(Ce());return mt(()=>{if(s){gr({});var v=M;v.c=s}n&&(i.$$events=n),b&&Te(c,null),a=e(c,i)||{},b&&($.nodes_end=T),s&&mr()}),()=>{var g;for(var v of u){t.removeEventListener(v,Ie);var _=xe.get(v);--_===0?(document.removeEventListener(v,Ie),xe.delete(v)):xe.set(v,_)}$t.delete(o),c!==r&&((g=c.parentNode)==null||g.removeChild(c))}});return wt.set(a,f),a}let wt=new WeakMap;function Mn(e,t){const r=wt.get(e);return r?(wt.delete(e),r(t)):Promise.resolve()}function yt(e,t,r=!1){b&&Ke();var i=e,n=null,s=null,l=C,u=r?ft:0,o=!1;const a=(c,v=!0)=>{o=!0,f(v,c)},f=(c,v)=>{if(l===(l=c))return;let _=!1;if(b){const g=i.data===Ct;!!l===g&&(i=sn(),ie(i),ne(!1),_=!0)}l?(n?_r(n):v&&(n=mt(()=>v(i))),s&&pt(s,()=>{s=null})):(s?_r(s):v&&(s=mt(()=>v(i))),n&&pt(n,()=>{n=null})),_&&ne(!0)};ar(()=>{o=!1,t(a),o||f(null,null)},u),b&&(i=T)}function je(e,t,r,i,n){var u;b&&Ke();var s=(u=t.$$slots)==null?void 0:u[r],l=!1;s===!0&&(s=t[r==="default"?"children":r],l=!0),s===void 0?n!==null&&n(e):s(e,l?()=>i:i)}function jn(e,t){jt(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Et(e,t,r,i){var n=e.__attributes??(e.__attributes={});b&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Dr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Er(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function bt(e,t,r){var i=p,n=$;let s=b;b&&ne(!1),X(null),K(null);try{(Tt.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Er(e).includes(t):r&&typeof r=="object")?e[t]=r:Et(e,t,r==null?r:String(r))}finally{X(i),K(n),s&&ne(!0)}}var Tt=new Map;function Er(e){var t=Tt.get(e.nodeName);if(t)return t;Tt.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Mr(i);for(var s in r)r[s].set&&t.push(s);i=It(i)}return t}function _e(e,t,r,i){var n;n=e[t];var s=i,l=!0,u=!1,o=()=>(u=!0,l&&(l=!1,s=i),s);n===void 0&&i!==void 0&&(n=o());var a;a=()=>{var _=e[t];return _===void 0?o():(l=!0,u=!1,_)};var f=!1,c=Yt(n),v=Bt(()=>{var _=a(),g=I(c);return f?(f=!1,g):c.v=_});return function(_,g){if(arguments.length>0){const d=g?I(v):_;return v.equals(d)||(f=!0,Y(c,d),u&&s!==void 0&&(s=d),gn(()=>I(v))),_}return I(v)}}function Fn(e){return new qn(e)}class qn{constructor(t){kt(this,re);kt(this,H);var s;var r=new Map,i=(l,u)=>{var o=Yt(u);return r.set(l,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(l,u){return I(r.get(u)??i(u,Reflect.get(l,u)))},has(l,u){return u===Pr?!0:(I(r.get(u)??i(u,Reflect.get(l,u))),Reflect.has(l,u))},set(l,u,o){return Y(r.get(u)??i(u,o),o),Reflect.set(l,u,o)}});Rt(this,H,(t.hydrate?In:wr)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&te(),Rt(this,re,n.$$events);for(const l of Object.keys(A(this,H)))l==="$set"||l==="$destroy"||l==="$on"||We(this,l,{get(){return A(this,H)[l]},set(u){A(this,H)[l]=u},enumerable:!0});A(this,H).$set=l=>{Object.assign(n,l)},A(this,H).$destroy=()=>{Mn(A(this,H))}}$set(t){A(this,H).$set(t)}$on(t,r){A(this,re)[t]=A(this,re)[t]||[];const i=(...n)=>r.call(this,...n);return A(this,re)[t].push(i),()=>{A(this,re)[t]=A(this,re)[t].filter(n=>n!==i)}}$destroy(){A(this,H).$destroy()}}re=new WeakMap,H=new WeakMap;let br;typeof HTMLElement=="function"&&(br=class extends HTMLElement{constructor(t,r,i){super();G(this,"$$ctor");G(this,"$$s");G(this,"$$c");G(this,"$$cn",!1);G(this,"$$d",{});G(this,"$$r",!1);G(this,"$$p_d",{});G(this,"$$l",{});G(this,"$$l_u",new Map);G(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const l=document.createElement("slot");n!=="default"&&(l.name=n),ve(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Yn(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=rt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Fn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=En(()=>{Tn(()=>{var n;this.$$r=!0;for(const s of Ue(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const l=rt(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const l=this.$$c.$on(n,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=rt(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Ue(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function rt(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Yn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Hn(e,t,r,i,n,s){let l=class extends br{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Ue(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Ue(t).forEach(u=>{We(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var c;o=rt(u,o,t),this.$$d[u]=o;var a=this.$$c;if(a){var f=(c=$e(a,u))==null?void 0:c.get;f?a[u]=o:a.$set({[u]:o})}}})}),i.forEach(u=>{We(l.prototype,u,{get(){var o;return(o=this.$$c)==null?void 0:o[u]}})}),e.element=l,l}const Bn={version:"0.50.0-alpha.19"};function Vn(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(s=>Object.keys(e).includes(s.name)))!=null&&n.length))for(const s of Object.keys(e))(t==null?void 0:t.filter(u=>u.name===s&&u.defaultValue!==e[s]))&&(r+=`${s}:${e[s]};`);return r}function Gn(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}const xt={vars:[]};function Un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ne={},Nt,Tr;function Wn(){if(Tr)return Nt;Tr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,o=`
1
+ var li=Object.defineProperty;var Rr=y=>{throw TypeError(y)};var ui=(y,E,N)=>E in y?li(y,E,{enumerable:!0,configurable:!0,writable:!0,value:N}):y[E]=N;var G=(y,E,N)=>ui(y,typeof E!="symbol"?E+"":E,N),Sr=(y,E,N)=>E.has(y)||Rr("Cannot "+N);var A=(y,E,N)=>(Sr(y,E,"read from private field"),N?N.call(y):E.get(y)),kt=(y,E,N)=>E.has(y)?Rr("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(y):E.set(y,N),Rt=(y,E,N,Ye)=>(Sr(y,E,"write to private field"),Ye?Ye.call(y,N):E.set(y,N),N);(function(y){"use strict";var re,H;const E="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(E);const N=1,Ye=2,St="[",Ct="[!",At="]",Se={},C=Symbol(),at=!1,V=2,Pt=4,He=8,ot=16,Z=32,ge=64,Be=128,q=256,Ve=512,R=1024,Q=2048,me=4096,pe=8192,Ge=16384,Cr=32768,ft=65536,Ar=1<<19,Dt=1<<20,ct=Symbol("$state"),Pr=Symbol("legacy props"),Dr=Symbol("");var Lt=Array.isArray,Lr=Array.prototype.indexOf,Ir=Array.from,Ue=Object.keys,We=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Mr=Object.getOwnPropertyDescriptors,jr=Object.prototype,Fr=Array.prototype,It=Object.getPrototypeOf;function qr(e){for(var t=0;t<e.length;t++)e[t]()}let Xe=!1,vt=[];function Mt(){Xe=!1;const e=vt.slice();vt=[],qr(e)}function jt(e){Xe||(Xe=!0,queueMicrotask(Mt)),vt.push(e)}function Yr(){Xe&&Mt()}function Ft(e){return e===this.v}function Hr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Br(e){return!Hr(e,this.v)}function Vr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ur(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Wr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Jr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Zr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Qr=!1;function U(e,t){var r={f:0,v:e,reactions:null,equals:Ft,rv:0,wv:0};return r}function qt(e){return en(U(e))}function Yt(e,t=!1){const r=U(e);return t||(r.equals=Br),r}function en(e){return p!==null&&!W&&p.f&V&&(z===null?an([e]):z.push(e)),e}function Y(e,t){return p!==null&&!W&&pr()&&p.f&(V|ot)&&(z===null||!z.includes(e))&&Zr(),tn(e,t)}function tn(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=rr(),Ht(e,Q),$!==null&&$.f&R&&!($.f&(Z|ge))&&(ee===null?on([e]):ee.push(e))),t}function Ht(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],l=s.f;l&Q||(J(s,t),l&(R|q)&&(l&V?Ht(s,me):tt(s)))}}function Bt(e){var t=V|Q,r=p!==null&&p.f&V?p:null;return $===null||r!==null&&r.f&q?t|=q:$.f|=Dt,{ctx:M,deps:null,effects:null,equals:Ft,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??$}}function Vt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ue(t[r])}}function rn(e){for(var t=e.parent;t!==null;){if(!(t.f&V))return t;t=t.parent}return null}function nn(e){var t,r=$;K(rn(e));try{Vt(e),t=ir(e)}finally{K(r)}return t}function Gt(e){var t=nn(e),r=(le||e.f&q)&&e.deps!==null?me:R;J(e,r),e.equals(t)||(e.v=t,e.wv=rr())}function _t(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function ne(e){b=e}let T;function ie(e){if(e===null)throw _t(),Se;return T=e}function Ke(){return ie(oe(T))}function P(e){if(b){if(oe(T)!==null)throw _t(),Se;T=e}}function sn(){for(var e=0,t=T;;){if(t.nodeType===8){var r=t.data;if(r===At){if(e===0)return t;e-=1}else(r===St||r===Ct)&&(e+=1)}var i=oe(t);t.remove(),t=i}}function se(e,t=null,r){if(typeof e!="object"||e===null||ct in e)return e;const i=It(e);if(i!==jr&&i!==Fr)return e;var n=new Map,s=Lt(e),l=U(0);s&&n.set("length",U(e.length));var u;return new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kr();var c=n.get(a);return c===void 0?(c=U(f.value),n.set(a,c)):Y(c,se(f.value,u)),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0)a in o&&n.set(a,U(C));else{if(s&&typeof a=="string"){var c=n.get("length"),v=Number(a);Number.isInteger(v)&&v<c.v&&Y(c,v)}Y(f,C),Ut(l)}return!0},get(o,a,f){var g;if(a===ct)return e;var c=n.get(a),v=a in o;if(c===void 0&&(!v||(g=$e(o,a))!=null&&g.writable)&&(c=U(se(v?o[a]:C,u)),n.set(a,c)),c!==void 0){var _=I(c);return _===C?void 0:_}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var c=n.get(a);c&&(f.value=I(c))}else if(f===void 0){var v=n.get(a),_=v==null?void 0:v.v;if(v!==void 0&&_!==C)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return f},has(o,a){var _;if(a===ct)return!0;var f=n.get(a),c=f!==void 0&&f.v!==C||Reflect.has(o,a);if(f!==void 0||$!==null&&(!c||(_=$e(o,a))!=null&&_.writable)){f===void 0&&(f=U(c?se(o[a],u):C),n.set(a,f));var v=I(f);if(v===C)return!1}return c},set(o,a,f,c){var B;var v=n.get(a),_=a in o;if(s&&a==="length")for(var g=f;g<v.v;g+=1){var d=n.get(g+"");d!==void 0?Y(d,C):g in o&&(d=U(C),n.set(g+"",d))}v===void 0?(!_||(B=$e(o,a))!=null&&B.writable)&&(v=U(void 0),Y(v,se(f,u)),n.set(a,v)):(_=v.v!==C,Y(v,se(f,u)));var k=Reflect.getOwnPropertyDescriptor(o,a);if(k!=null&&k.set&&k.set.call(c,f),!_){if(s&&typeof a=="string"){var j=n.get("length"),x=Number(a);Number.isInteger(x)&&x>=j.v&&Y(j,x+1)}Ut(l)}return!0},ownKeys(o){I(l);var a=Reflect.ownKeys(o).filter(v=>{var _=n.get(v);return _===void 0||_.v!==C});for(var[f,c]of n)c.v!==C&&!(f in o)&&a.push(f);return a},setPrototypeOf(){zr()}})}function Ut(e,t=1){Y(e,e.v+t)}var Wt,Xt,Kt,zt;function dt(){if(Wt===void 0){Wt=window,Xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Kt=$e(t,"firstChild").get,zt=$e(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Ce(e=""){return document.createTextNode(e)}function we(e){return Kt.call(e)}function oe(e){return zt.call(e)}function D(e,t){if(!b)return we(e);var r=we(T);return r===null&&(r=T.appendChild(Ce())),ie(r),r}function Jt(e,t){if(!b){var r=we(e);return r instanceof Comment&&r.data===""?oe(r):r}return T}function ye(e,t=1,r=!1){let i=b?T:e;for(var n;t--;)n=i,i=oe(i);if(!b)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var l=Ce();return i===null?n==null||n.after(l):i.before(l),ie(l),l}return ie(i),i}function ln(e){e.textContent=""}const Zt=0,un=1;let ze=!1,Je=Zt,Ae=!1,Pe=null,Ee=!1,ht=!1;function Qt(e){Ee=e}function er(e){ht=e}let fe=[],be=0,ai=[],p=null,W=!1;function X(e){p=e}let $=null;function K(e){$=e}let z=null;function an(e){z=e}let S=null,L=0,ee=null;function on(e){ee=e}let tr=1,Ze=0,le=!1;function rr(){return++tr}function De(e){var c;var t=e.f;if(t&Q)return!0;if(t&me){var r=e.deps,i=(t&q)!==0;if(r!==null){var n,s,l=(t&Ve)!==0,u=i&&$!==null&&!le,o=r.length;if(l||u){var a=e,f=a.parent;for(n=0;n<o;n++)s=r[n],(l||!((c=s==null?void 0:s.reactions)!=null&&c.includes(a)))&&(s.reactions??(s.reactions=[])).push(a);l&&(a.f^=Ve),u&&f!==null&&!(f.f&q)&&(a.f^=q)}for(n=0;n<o;n++)if(s=r[n],De(s)&&Gt(s),s.wv>e.wv)return!0}(!i||$!==null&&!le)&&J(e,R)}return!1}function fn(e,t){for(var r=t;r!==null;){if(r.f&Be)try{r.fn(e);return}catch{r.f^=Be}r=r.parent}throw ze=!1,e}function cn(e){return(e.f&Ge)===0&&(e.parent===null||(e.parent.f&Be)===0)}function Qe(e,t,r,i){if(ze){if(r===null&&(ze=!1),cn(t))throw e;return}r!==null&&(ze=!0);{fn(e,t);return}}function nr(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&V?nr(s,t,!1):t===s&&(r?J(s,Q):s.f&R&&J(s,me),tt(s))}}function ir(e){var _;var t=S,r=L,i=ee,n=p,s=le,l=z,u=M,o=W,a=e.f;S=null,L=0,ee=null,p=a&(Z|ge)?null:e,le=(a&q)!==0&&(!Ee||n===null||o),z=null,hr(e.ctx),W=!1,Ze++;try{var f=(0,e.fn)(),c=e.deps;if(S!==null){var v;if(et(e,L),c!==null&&L>0)for(c.length=L+S.length,v=0;v<S.length;v++)c[L+v]=S[v];else e.deps=c=S;if(!le)for(v=L;v<c.length;v++)((_=c[v]).reactions??(_.reactions=[])).push(e)}else c!==null&&L<c.length&&(et(e,L),c.length=L);if(pr()&&ee!==null&&!W&&c!==null&&!(e.f&(V|me|Q)))for(v=0;v<ee.length;v++)nr(ee[v],e);return n!==null&&Ze++,f}finally{S=t,L=r,ee=i,p=n,le=s,z=l,hr(u),W=o}}function vn(e,t){let r=t.reactions;if(r!==null){var i=Lr.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&V&&(S===null||!S.includes(t))&&(J(t,me),t.f&(q|Ve)||(t.f^=Ve),Vt(t),et(t,0))}function et(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)vn(e,r[i])}function gt(e){var t=e.f;if(!(t&Ge)){J(e,R);var r=$,i=M;$=e;try{t&ot?xn(e):fr(e),or(e);var n=ir(e);e.teardown=typeof n=="function"?n:null,e.wv=tr;var s=e.deps,l;at&&Qr&&e.f&Q}catch(u){Qe(u,e,r,i||e.ctx)}finally{$=r}}}function sr(){if(be>1e3){be=0;try{Wr()}catch(e){if(Pe!==null)Qe(e,Pe,null);else throw e}}be++}function lr(e){var t=e.length;if(t!==0){sr();var r=Ee;Ee=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&R||(n.f^=R);var s=hn(n);_n(s)}}finally{Ee=r}}}function _n(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(Ge|pe)))try{De(i)&&(gt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?cr(i):i.fn=null))}catch(n){Qe(n,i,null,i.ctx)}}}function dn(){if(Ae=!1,be>1001)return;const e=fe;fe=[],lr(e),Ae||(be=0,Pe=null)}function tt(e){Je===Zt&&(Ae||(Ae=!0,queueMicrotask(dn))),Pe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ge|Z)){if(!(r&R))return;t.f^=R}}fe.push(t)}function hn(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&Z)!==0,s=n&&(i&R)!==0,l=r.next;if(!s&&!(i&pe)){if(i&Pt)t.push(r);else if(n)r.f^=R;else{var u=p;try{p=r,De(r)&&gt(r)}catch(f){Qe(f,r,null,r.ctx)}finally{p=u}}var o=r.first;if(o!==null){r=o;continue}}if(l===null){let f=r.parent;for(;f!==null;){if(e===f)break e;var a=f.next;if(a!==null){r=a;continue e}f=f.parent}}r=l}return t}function te(e){var t=Je,r=fe;try{sr();const n=[];Je=un,fe=n,Ae=!1,lr(r);var i=e==null?void 0:e();return Yr(),(fe.length>0||n.length>0)&&te(),be=0,Pe=null,i}finally{Je=t,fe=r}}function I(e){var t=e.f,r=(t&V)!==0;if(p!==null&&!W){z!==null&&z.includes(e)&&Jr();var i=p.deps;e.rv<Ze&&(e.rv=Ze,S===null&&i!==null&&i[L]===e?L++:S===null?S=[e]:(!le||!S.includes(e))&&S.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&q)&&(n.f^=q)}return r&&(n=e,De(n)&&Gt(n)),e.v}function gn(e){var t=W;try{return W=!0,e()}finally{W=t}}const mn=-7169;function J(e,t){e.f=e.f&mn|t}function pn(e){$===null&&p===null&&Ur(),p!==null&&p.f&q&&$===null&&Gr(),ht&&Vr()}function $n(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ce(e,t,r,i=!0){var n=(e&ge)!==0,s=$,l={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|Q,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var u=Ee;try{Qt(!0),gt(l),l.f|=Cr}catch(f){throw ue(l),f}finally{Qt(u)}}else t!==null&&tt(l);var o=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(Dt|Be))===0;if(!o&&!n&&i&&(s!==null&&$n(l,s),p!==null&&p.f&V)){var a=p;(a.effects??(a.effects=[])).push(l)}return l}function wn(e){const t=ce(He,null,!1);return J(t,R),t.teardown=e,t}function yn(e){pn();var t=$!==null&&($.f&Z)!==0&&M!==null&&!M.m;if(t){var r=M;(r.e??(r.e=[])).push({fn:e,effect:$,reaction:p})}else{var i=ur(e);return i}}function En(e){const t=ce(ge,e,!0);return()=>{ue(t)}}function bn(e){const t=ce(ge,e,!0);return(r={})=>new Promise(i=>{r.outro?pt(t,()=>{ue(t),i(void 0)}):(ue(t),i(void 0))})}function ur(e){return ce(Pt,e,!1)}function Tn(e){return ce(He,e,!0)}function Le(e,t=[],r=Bt){const i=t.map(r);return ar(()=>e(...i.map(I)))}function ar(e,t=0){return ce(He|ot|t,e,!0)}function mt(e,t=!0){return ce(He|Z,e,!0,t)}function or(e){var t=e.teardown;if(t!==null){const r=ht,i=p;er(!0),X(null);try{t.call(null)}finally{er(r),X(i)}}}function fr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;ue(r,t),r=i}}function xn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Z||ue(t),t=r}}function ue(e,t=!0){var r=!1;if((t||e.f&Ar)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:oe(i);i.remove(),i=s}r=!0}fr(e,t&&!r),et(e,0),J(e,Ge);var l=e.transitions;if(l!==null)for(const o of l)o.stop();or(e);var u=e.parent;u!==null&&u.first!==null&&cr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function cr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function pt(e,t){var r=[];vr(e,r,!0),Nn(r,()=>{ue(e),t&&t()})}function Nn(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function vr(e,t,r){if(!(e.f&pe)){if(e.f^=pe,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&ft)!==0||(i.f&Z)!==0;vr(i,t,s?r:!1),i=n}}}function _r(e){dr(e,!0)}function dr(e,t){if(e.f&pe){e.f^=pe,e.f&R||(e.f^=R),De(e)&&(J(e,Q),tt(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&ft)!==0||(r.f&Z)!==0;dr(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let M=null;function hr(e){M=e}function gr(e,t=!1,r){M={p:M,c:null,e:null,m:!1,s:e,x:null,l:null}}function mr(e){const t=M;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var r=$,i=p;t.e=null;try{for(var n=0;n<l.length;n++){var s=l[n];K(s.effect),X(s.reaction),ur(s.fn)}}finally{K(r),X(i)}}M=t.p,t.m=!0}return e||{}}function pr(){return!0}const On=["touchstart","touchmove"];function kn(e){return On.includes(e)}function Rn(e){var t=p,r=$;X(null),K(null);try{return e()}finally{X(t),K(r)}}const $r=new Set,$t=new Set;function Sn(e,t,r,i={}){function n(s){if(i.capture||Ie.call(t,s),!s.cancelBubble)return Rn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?jt(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function Cn(e,t,r,i,n){var s={capture:i,passive:n},l=Sn(e,t,r,s);(t===document.body||t===window||t===document)&&wn(()=>{t.removeEventListener(e,l,s)})}function An(e){for(var t=0;t<e.length;t++)$r.add(e[t]);for(var r of $t)r(e)}function Ie(e){var x;var t=this,r=t.ownerDocument,i=e.type,n=((x=e.composedPath)==null?void 0:x.call(e))||[],s=n[0]||e.target,l=0,u=e.__root;if(u){var o=n.indexOf(u);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=n.indexOf(t);if(a===-1)return;o<=a&&(l=o)}if(s=n[l]||e.target,s!==t){We(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=p,c=$;X(null),K(null);try{for(var v,_=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var d=s["__"+i];if(d!==void 0&&!s.disabled)if(Lt(d)){var[k,...j]=d;k.apply(s,[e,...j])}else d.call(s,e)}catch(B){v?_.push(B):v=B}if(e.cancelBubble||g===t||g===null)break;s=g}if(v){for(let B of _)queueMicrotask(()=>{throw B});throw v}}finally{e.__root=t,delete e.currentTarget,X(f),K(c)}}}function Pn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Te(e,t){var r=$;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Me(e,t){var r=(t&N)!==0,i=(t&Ye)!==0,n,s=!e.startsWith("<!>");return()=>{if(b)return Te(T,null),T;n===void 0&&(n=Pn(s?e:"<!>"+e),r||(n=we(n)));var l=i||Xt?document.importNode(n,!0):n.cloneNode(!0);if(r){var u=we(l),o=l.lastChild;Te(u,o)}else Te(l,l);return l}}function Dn(e=""){if(!b){var t=Ce(e+"");return Te(t,t),t}var r=T;return r.nodeType!==3&&(r.before(r=Ce()),ie(r)),Te(r,r),r}function ve(e,t){if(b){$.nodes_end=T,Ke();return}e!==null&&e.before(t)}function Ln(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function wr(e,t){return yr(e,t)}function In(e,t){dt(),t.intro=t.intro??!1;const r=t.target,i=b,n=T;try{for(var s=we(r);s&&(s.nodeType!==8||s.data!==St);)s=oe(s);if(!s)throw Se;ne(!0),ie(s),Ke();const l=yr(e,{...t,anchor:s});if(T===null||T.nodeType!==8||T.data!==At)throw _t(),Se;return ne(!1),l}catch(l){if(l===Se)return t.recover===!1&&Xr(),dt(),ln(r),ne(!1),wr(e,t);throw l}finally{ne(i),ie(n)}}const xe=new Map;function yr(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:l=!0}){dt();var u=new Set,o=c=>{for(var v=0;v<c.length;v++){var _=c[v];if(!u.has(_)){u.add(_);var g=kn(_);t.addEventListener(_,Ie,{passive:g});var d=xe.get(_);d===void 0?(document.addEventListener(_,Ie,{passive:g}),xe.set(_,1)):xe.set(_,d+1)}}};o(Ir($r)),$t.add(o);var a=void 0,f=bn(()=>{var c=r??t.appendChild(Ce());return mt(()=>{if(s){gr({});var v=M;v.c=s}n&&(i.$$events=n),b&&Te(c,null),a=e(c,i)||{},b&&($.nodes_end=T),s&&mr()}),()=>{var g;for(var v of u){t.removeEventListener(v,Ie);var _=xe.get(v);--_===0?(document.removeEventListener(v,Ie),xe.delete(v)):xe.set(v,_)}$t.delete(o),c!==r&&((g=c.parentNode)==null||g.removeChild(c))}});return wt.set(a,f),a}let wt=new WeakMap;function Mn(e,t){const r=wt.get(e);return r?(wt.delete(e),r(t)):Promise.resolve()}function yt(e,t,r=!1){b&&Ke();var i=e,n=null,s=null,l=C,u=r?ft:0,o=!1;const a=(c,v=!0)=>{o=!0,f(v,c)},f=(c,v)=>{if(l===(l=c))return;let _=!1;if(b){const g=i.data===Ct;!!l===g&&(i=sn(),ie(i),ne(!1),_=!0)}l?(n?_r(n):v&&(n=mt(()=>v(i))),s&&pt(s,()=>{s=null})):(s?_r(s):v&&(s=mt(()=>v(i))),n&&pt(n,()=>{n=null})),_&&ne(!0)};ar(()=>{o=!1,t(a),o||f(null,null)},u),b&&(i=T)}function je(e,t,r,i,n){var u;b&&Ke();var s=(u=t.$$slots)==null?void 0:u[r],l=!1;s===!0&&(s=t[r==="default"?"children":r],l=!0),s===void 0?n!==null&&n(e):s(e,l?()=>i:i)}function jn(e,t){jt(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Et(e,t,r,i){var n=e.__attributes??(e.__attributes={});b&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Dr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Er(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function bt(e,t,r){var i=p,n=$;let s=b;b&&ne(!1),X(null),K(null);try{(Tt.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Er(e).includes(t):r&&typeof r=="object")?e[t]=r:Et(e,t,r==null?r:String(r))}finally{X(i),K(n),s&&ne(!0)}}var Tt=new Map;function Er(e){var t=Tt.get(e.nodeName);if(t)return t;Tt.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Mr(i);for(var s in r)r[s].set&&t.push(s);i=It(i)}return t}function _e(e,t,r,i){var n;n=e[t];var s=i,l=!0,u=!1,o=()=>(u=!0,l&&(l=!1,s=i),s);n===void 0&&i!==void 0&&(n=o());var a;a=()=>{var _=e[t];return _===void 0?o():(l=!0,u=!1,_)};var f=!1,c=Yt(n),v=Bt(()=>{var _=a(),g=I(c);return f?(f=!1,g):c.v=_});return function(_,g){if(arguments.length>0){const d=g?I(v):_;return v.equals(d)||(f=!0,Y(c,d),u&&s!==void 0&&(s=d),gn(()=>I(v))),_}return I(v)}}function Fn(e){return new qn(e)}class qn{constructor(t){kt(this,re);kt(this,H);var s;var r=new Map,i=(l,u)=>{var o=Yt(u);return r.set(l,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(l,u){return I(r.get(u)??i(u,Reflect.get(l,u)))},has(l,u){return u===Pr?!0:(I(r.get(u)??i(u,Reflect.get(l,u))),Reflect.has(l,u))},set(l,u,o){return Y(r.get(u)??i(u,o),o),Reflect.set(l,u,o)}});Rt(this,H,(t.hydrate?In:wr)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&te(),Rt(this,re,n.$$events);for(const l of Object.keys(A(this,H)))l==="$set"||l==="$destroy"||l==="$on"||We(this,l,{get(){return A(this,H)[l]},set(u){A(this,H)[l]=u},enumerable:!0});A(this,H).$set=l=>{Object.assign(n,l)},A(this,H).$destroy=()=>{Mn(A(this,H))}}$set(t){A(this,H).$set(t)}$on(t,r){A(this,re)[t]=A(this,re)[t]||[];const i=(...n)=>r.call(this,...n);return A(this,re)[t].push(i),()=>{A(this,re)[t]=A(this,re)[t].filter(n=>n!==i)}}$destroy(){A(this,H).$destroy()}}re=new WeakMap,H=new WeakMap;let br;typeof HTMLElement=="function"&&(br=class extends HTMLElement{constructor(t,r,i){super();G(this,"$$ctor");G(this,"$$s");G(this,"$$c");G(this,"$$cn",!1);G(this,"$$d",{});G(this,"$$r",!1);G(this,"$$p_d",{});G(this,"$$l",{});G(this,"$$l_u",new Map);G(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const l=document.createElement("slot");n!=="default"&&(l.name=n),ve(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Yn(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=rt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Fn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=En(()=>{Tn(()=>{var n;this.$$r=!0;for(const s of Ue(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const l=rt(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const l=this.$$c.$on(n,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=rt(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Ue(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function rt(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Yn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Hn(e,t,r,i,n,s){let l=class extends br{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Ue(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Ue(t).forEach(u=>{We(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var c;o=rt(u,o,t),this.$$d[u]=o;var a=this.$$c;if(a){var f=(c=$e(a,u))==null?void 0:c.get;f?a[u]=o:a.$set({[u]:o})}}})}),i.forEach(u=>{We(l.prototype,u,{get(){var o;return(o=this.$$c)==null?void 0:o[u]}})}),e.element=l,l}const Bn={version:"0.50.0-alpha.22"};function Vn(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(s=>Object.keys(e).includes(s.name)))!=null&&n.length))for(const s of Object.keys(e))(t==null?void 0:t.filter(u=>u.name===s&&u.defaultValue!==e[s]))&&(r+=`${s}:${e[s]};`);return r}function Gn(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}const xt={vars:[]};function Un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ne={},Nt,Tr;function Wn(){if(Tr)return Nt;Tr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,o=`
2
2
  `,a="/",f="*",c="",v="comment",_="declaration";Nt=function(d,k){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];k=k||{};var j=1,x=1;function B(m){var h=m.match(t);h&&(j+=h.length);var F=m.lastIndexOf(o);x=~F?m.length-F:x+m.length}function Oe(){var m={line:j,column:x};return function(h){return h.position=new nt(m),de(),h}}function nt(m){this.start=m,this.end={line:j,column:x},this.source=k.source}nt.prototype.content=d;function ke(m){var h=new Error(k.source+":"+j+":"+x+": "+m);if(h.reason=m,h.filename=k.source,h.line=j,h.column=x,h.source=d,!k.silent)throw h}function ae(m){var h=m.exec(d);if(h){var F=h[0];return B(F),d=d.slice(F.length),h}}function de(){ae(r)}function it(m){var h;for(m=m||[];h=st();)h!==!1&&m.push(h);return m}function st(){var m=Oe();if(!(a!=d.charAt(0)||f!=d.charAt(1))){for(var h=2;c!=d.charAt(h)&&(f!=d.charAt(h)||a!=d.charAt(h+1));)++h;if(h+=2,c===d.charAt(h-1))return ke("End of comment missing");var F=d.slice(2,h-2);return x+=2,B(F),d=d.slice(h),x+=2,m({type:v,comment:F})}}function lt(){var m=Oe(),h=ae(i);if(h){if(st(),!ae(n))return ke("property missing ':'");var F=ae(s),Ot=m({type:_,property:g(h[0].replace(e,c)),value:F?g(F[0].replace(e,c)):c});return ae(l),Ot}}function ut(){var m=[];it(m);for(var h;h=lt();)h!==!1&&(m.push(h),it(m));return m}return de(),ut()};function g(d){return d?d.replace(u,c):c}return Nt}var xr;function Xn(){if(xr)return Ne;xr=1;var e=Ne&&Ne.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.default=r;var t=e(Wn());function r(i,n){var s=null;if(!i||typeof i!="string")return s;var l=(0,t.default)(i),u=typeof n=="function";return l.forEach(function(o){if(o.type==="declaration"){var a=o.property,f=o.value;u?n(a,f,o):f&&(s=s||{},s[a]=f)}}),s}return Ne}var Kn=Xn();const Nr=Un(Kn),zn=Nr.default||Nr;var Jn=(e,t)=>t(),Zn=Me('<button style="font-size:20px;border:none"><!></button>'),Qn=(e,t)=>t("navbarSlotClick",{side:"left"}),ei=(e,t)=>t("navbarSlotClick",{side:"center"}),ti=Me('<img style="height: 30px;vertical-align: middle;" alt="">'),ri=Me("<!> ",1),ni=Me('<hb-dropdown-simple><span slot="dropdownbutton"><img style="height: 30px;vertical-align: middle;" alt=""></span></hb-dropdown-simple>',2),ii=Me('<div id="left_side" class="navitem svelte-115fe9" part="left-slot"><div style="padding-left: 10px;"><div id="left_side_content" class="side svelte-115fe9"><!> <span style="cursor:pointer"><!></span></div></div></div> <div id="center_side" part="center-slot" class="navitem svelte-115fe9"><div class="side svelte-115fe9" style="margin:auto;max-width: 100%;"><span style="cursor:pointer"><!></span> <!></div></div> <div id="rigth_side" part="right-slot" class="navitem svelte-115fe9"><div id="rigth_side_content" class="svelte-115fe9"><div class="side svelte-115fe9"><!> <!></div></div></div>',1);const si={hash:"svelte-115fe9",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;width:100%;display:block;background-color:#f1f1f1;width:100%;height:30px;display:block;padding:10px 0px 10px 0px;}.side.svelte-115fe9 {position:relative;z-index:1;max-width:33%;}#left_side.svelte-115fe9 {text-align:left;}#center_side.svelte-115fe9 {text-align:center;}#rigth_side.svelte-115fe9 {text-align:right;}#rigth_side_content.svelte-115fe9 {display:inline-block;padding-right:10px;z-index:3;}#left_side_content.svelte-115fe9 {z-index:3;position:relative;}.navitem.svelte-115fe9 {position:absolute;width:100%;color:white;line-height:30px;font-size:22px;color:black;}'};function Or(e,t){gr(t,!0),jn(e,si);let r=qt(se({})),i=qt(""),n=_e(t,"id",7,""),s=_e(t,"style",7,""),l=_e(t,"noburger",7,void 0),u=_e(t,"usermenu",7,void 0),o=_e(t,"companybrandname",7,""),a=_e(t,"companylogouri",7,""),f=_e(t,"switchopen",7,void 0),c;yn(()=>{s()&&(Y(r,se(zn(s()))),Y(i,se(Vn(I(r),xt==null?void 0:xt.vars)))),!f()||f()==="no"?(f("no"),c=!1):c=!0,typeof u()=="string"&&u(JSON.parse(u()))}),Gn({repoName:"@htmlbricks/hb-dropdown-simple",version:Bn.version});function v(w,O){t.$$host.dispatchEvent(new CustomEvent(w,{detail:O}))}function _(){c=!c,v("navmenuswitch",{isOpen:c})}var g=ii(),d=Jt(g),k=D(d),j=D(k),x=D(j);{var B=w=>{var O=Zn();O.__click=[Jn,_];var he=D(O);je(he,t,"nav-switcher",{},Fe=>{var qe=Dn("☰");ve(Fe,qe)}),P(O),ve(w,O)};yt(x,w=>{l()||w(B)})}var Oe=ye(x,2);Oe.__click=[Qn,v];var nt=D(Oe);je(nt,t,"left-slot",{},null),P(Oe),P(j),P(k),P(d);var ke=ye(d,2),ae=D(ke),de=D(ae);de.__click=[ei,v];var it=D(de);je(it,t,"brand",{},w=>{var O=ri(),he=Jt(O);{var Fe=Re=>{var kr=ti();Le(()=>Et(kr,"src",a())),ve(Re,kr)};yt(he,Re=>{a()&&Re(Fe)})}var qe=ye(he);Le(()=>Ln(qe,` ${o()??""}`)),ve(w,O)}),P(de);var st=ye(de,2);je(st,t,"center-slot",{},null),P(ae),P(ke);var lt=ye(ke,2),ut=D(lt),m=D(ut),h=D(m);je(h,t,"right-slot",{},w=>{});var F=ye(h,2);{var Ot=w=>{var O=ni();Le(()=>bt(O,"style",I(i))),Le(()=>bt(O,"list",JSON.stringify(u().list))),bt(O,"position","right");var he=D(O),Fe=D(he);P(he),P(O),Le(()=>Et(Fe,"src",u().imgUri)),Cn("dropDownClick",O,qe=>{var Re;return v("navbarDropDownClick",(Re=qe.detail)==null?void 0:Re.key)}),ve(w,O)};yt(F,w=>{u()&&w(Ot)})}return P(m),P(ut),P(lt),ve(e,g),mr({get id(){return n()},set id(w=""){n(w),te()},get style(){return s()},set style(w=""){s(w),te()},get noburger(){return l()},set noburger(w=void 0){l(w),te()},get usermenu(){return u()},set usermenu(w=void 0){u(w),te()},get companybrandname(){return o()},set companybrandname(w=""){o(w),te()},get companylogouri(){return a()},set companylogouri(w=""){a(w),te()},get switchopen(){return f()},set switchopen(w=void 0){f(w),te()}})}An(["click"]),customElements.define("hb-navbar",Hn(Or,{id:{},style:{},noburger:{},usermenu:{},companybrandname:{},companylogouri:{},switchopen:{}},["nav-switcher","left-slot","brand","center-slot","right-slot"],[],!0)),y.Component=Or,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})})(this.navbar=this.navbar||{});
package/manifest.json CHANGED
@@ -252,5 +252,5 @@
252
252
  },
253
253
  "iifePath": "main.iife.js",
254
254
  "repoName": "@htmlbricks/hb-navbar",
255
- "version": "0.50.0-alpha.19"
255
+ "version": "0.50.0-alpha.22"
256
256
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-navbar",
3
- "version": "0.50.0-alpha.19",
3
+ "version": "0.50.0-alpha.22",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [
@@ -12,5 +12,9 @@
12
12
  }
13
13
  ],
14
14
  "main": "main.iife.js",
15
- "dependencies": []
15
+ "dependencies": {},
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "private": false
16
20
  }