@htmlbricks/hb-navbar 0.66.6 → 0.66.8

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,3 +1,3 @@
1
- (function(qt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Jn=1,Xn=2,Dt="[",Pt="[!",Lt="[?",It="]",Ee={},S=Symbol(),Ft="http://www.w3.org/1999/xhtml",Zn=!1;var Qn=Array.isArray,er=Array.prototype.indexOf,xe=Array.prototype.includes,tr=Array.from,Ke=Object.keys,We=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,nr=Object.getOwnPropertyDescriptors,rr=Object.prototype,ir=Array.prototype,jt=Object.getPrototypeOf,Ht=Object.isExtensible;const sr=()=>{};function lr(e){for(var t=0;t<e.length;t++)e[t]()}function Bt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const T=2,Se=4,Je=8,Yt=1<<24,ie=16,U=32,se=64,at=128,P=512,E=1024,k=2048,G=4096,K=8192,H=16384,le=32768,zt=1<<25,ke=65536,Vt=1<<17,or=1<<18,ve=1<<19,fr=1<<20,_e=65536,ut=1<<21,ct=1<<22,oe=1<<23,ht=Symbol("$state"),ar=Symbol("legacy props"),ur=Symbol(""),X=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},cr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Xe=3,Ze=8;function hr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function dr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function vr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _r(e){throw new Error("https://svelte.dev/e/effect_orphan")}function pr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function gr(){throw new Error("https://svelte.dev/e/hydration_failed")}function mr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function yr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function br(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function $r(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function fe(e){y=e}let m;function B(e){if(e===null)throw Qe(),Ee;return m=e}function et(){return B(ne(m))}function C(e){if(y){if(ne(m)!==null)throw Qe(),Ee;m=e}}function Er(e=1){if(y){for(var t=e,n=m;t--;)n=ne(n);m=n}}function Ut(e=!0){for(var t=0,n=m;;){if(n.nodeType===Ze){var r=n.data;if(r===It){if(t===0)return n;t-=1}else(r===Dt||r===Pt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ne(n);e&&n.remove(),n=i}}function xr(e){if(!e||e.nodeType!==Ze)throw Qe(),Ee;return e.data}function Gt(e){return e===this.v}function Tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Sr(e){return!Tr(e,this.v)}let kr=!1,L=null;function Ne(e){L=e}function Kt(e,t=!1,n){L={p:L,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function Wt(e){var t=L,n=t.e;if(n!==null){t.e=null;for(var r of n)yn(r)}return e!==void 0&&(t.x=e),t.i=!0,L=t.p,e??{}}function Jt(){return!0}let pe=[];function Xt(){var e=pe;pe=[],lr(e)}function ge(e){if(pe.length===0&&!De){var t=pe;queueMicrotask(()=>{t===pe&&Xt()})}pe.push(e)}function Nr(){for(;pe.length>0;)Xt()}function Zt(e){var t=p;if(t===null)return _.f|=oe,e;if((t.f&le)===0&&(t.f&Se)===0)throw e;ae(e,t)}function ae(e,t){for(;t!==null;){if((t.f&at)!==0){if((t.f&le)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Ar=-7169;function $(e,t){e.f=e.f&Ar|t}function dt(e){(e.f&P)!==0||e.deps===null?$(e,E):$(e,G)}function Qt(e){if(e!==null)for(const t of e)(t.f&T)===0||(t.f&_e)===0||(t.f^=_e,Qt(t.deps))}function en(e,t,n){(e.f&k)!==0?t.add(e):(e.f&G)!==0&&n.add(e),Qt(e.deps),$(e,E)}const ue=new Set;let w=null,Y=null,vt=null,De=!1,_t=!1,Ae=null,tt=null;var tn=0;let Rr=1;class Z{id=Rr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#f=new Map;is_fork=!1;#c=!1;#a=new Set;#h(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#a)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#f.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#f.get(t);if(n){this.#f.delete(t);for(var r of n.d)$(r,k),this.schedule(r);for(r of n.m)$(r,G),this.schedule(r)}}#d(){if(tn++>1e3&&(ue.delete(this),Or()),!this.#h()){for(const l of this.#l)this.#o.delete(l),$(l,k),this.schedule(l);for(const l of this.#o)$(l,G),this.schedule(l)}const t=this.#r;this.#r=[],this.apply();var n=Ae=[],r=[],i=tt=[];for(const l of t)try{this.#u(l,n,r)}catch(f){throw on(l),f}if(w=null,i.length>0){var s=Z.ensure();for(const l of i)s.schedule(l)}if(Ae=null,tt=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[l,f]of this.#f)ln(l,f)}else{this.#t.size===0&&ue.delete(this),this.#l.clear(),this.#o.clear();for(const l of this.#e)l(this);this.#e.clear(),nn(r),nn(n),this.#s?.resolve()}var o=w;if(this.#r.length>0){const l=o??=this;l.#r.push(...this.#r.filter(f=>!l.#r.includes(f)))}o!==null&&(ue.add(o),o.#d()),ue.has(this)||this.#p()}#u(t,n,r){t.f^=E;for(var i=t.first;i!==null;){var s=i.f,o=(s&(U|se))!==0,l=o&&(s&E)!==0,f=l||(s&K)!==0||this.#f.has(i);if(!f&&i.fn!==null){o?i.f^=E:(s&Se)!==0?n.push(i):je(i)&&((s&ie)!==0&&this.#o.add(i),Ce(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)en(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&oe)===0&&(this.current.set(t,[t.v,r]),Y?.set(t,t.v))}activate(){w=this}deactivate(){w=null,Y=null}flush(){try{_t=!0,w=this,this.#d()}finally{tn=0,vt=null,Ae=null,tt=null,_t=!1,w=null,Y=null,ce.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ue.delete(this)}#p(){for(const a of ue){var t=a.id<this.id,n=[];for(const[u,[d,c]]of this.current){if(a.current.has(u)){var r=a.current.get(u)[0];if(t&&d!==r)a.current.set(u,[d,c]);else continue}n.push(u)}var i=[...a.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&a.discard();else if(n.length>0){a.activate();var s=new Set,o=new Map;for(var l of n)rn(l,i,s,o);if(a.#r.length>0){a.apply();for(var f of a.#r)a.#u(f,[],[]);a.#r=[]}a.deactivate()}}for(const a of ue)a.#a.has(this)&&(a.#a.delete(this),a.#a.size===0&&!a.#h()&&(a.activate(),a.#d()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,ge(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Bt()).promise}static ensure(){if(w===null){const t=w=new Z;_t||(ue.add(w),De||ge(()=>{w===t&&t.flush()}))}return w}apply(){{Y=null;return}}schedule(t){if(vt=t,t.b?.is_pending&&(t.f&(Se|Je|Yt))!==0&&(t.f&le)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Ae!==null&&n===p&&(_===null||(_.f&T)===0))return;if((r&(se|U))!==0){if((r&E)===0)return;n.f^=E}}this.#r.push(n)}}function me(e){var t=De;De=!0;try{for(var n;;){if(Nr(),w===null)return n;w.flush()}}finally{De=t}}function Or(){try{pr()}catch(e){ae(e,vt)}}let Q=null;function nn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|K))===0&&je(r)&&(Q=new Set,Ce(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&xn(r),Q?.size>0)){ce.clear();for(const i of Q){if((i.f&(H|K))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)Q.has(o)&&(Q.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&(H|K))===0&&Ce(f)}}Q.clear()}}Q=null}}function rn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&T)!==0?rn(i,t,n,r):(s&(ct|ie))!==0&&(s&k)===0&&sn(i,t,r)&&($(i,k),pt(i))}}function sn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(xe.call(t,i))return!0;if((i.f&T)!==0&&sn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function pt(e){w.schedule(e)}function ln(e,t){if(!((e.f&U)!==0&&(e.f&E)!==0)){(e.f&k)!==0?t.d.push(e):(e.f&G)!==0&&t.m.push(e),$(e,E);for(var n=e.first;n!==null;)ln(n,t),n=n.next}}function on(e){$(e,E);for(var t=e.first;t!==null;)on(t),t=t.next}function Cr(e){let t=0,n=Pe(0),r;return()=>{Et()&&(V(n),bn(()=>(t===0&&(r=si(()=>e(()=>Le(n)))),t+=1,()=>{ge(()=>{t-=1,t===0&&(r?.(),r=void 0,Le(n))})})))}}var Mr=ke|ve;function qr(e,t,n,r){new Dr(e,t,n,r)}class Dr{parent;is_pending=!1;transform_error;#e;#n=y?m:null;#t;#i;#s;#r=null;#l=null;#o=null;#f=null;#c=0;#a=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=Cr(()=>(this.#u=Pe(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var o=p;o.b=this,o.f|=at,r(s)},this.parent=p.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=$n(()=>{if(y){const s=this.#n;et();const o=s.data===Pt;if(s.data.startsWith(Lt)){const f=JSON.parse(s.data.slice(Lt.length));this.#b(f)}else o?this.#$():this.#p()}else this.#w()},Mr),y&&(this.#e=m)}#p(){try{this.#r=re(()=>this.#i(this.#e))}catch(t){this.error(t)}}#b(t){const n=this.#t.failed;n&&(this.#o=re(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=re(()=>t(this.#e)),ge(()=>{var n=this.#f=document.createDocumentFragment(),r=te();n.append(r),this.#r=this.#m(()=>re(()=>this.#i(r))),this.#a===0&&(this.#e.before(n),this.#f=null,Fe(this.#l,()=>{this.#l=null}),this.#g(w))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#a=0,this.#c=0,this.#r=re(()=>{this.#i(this.#e)}),this.#a>0){var t=this.#f=document.createDocumentFragment();kn(this.#r,t);const n=this.#t.pending;this.#l=re(()=>n(this.#e))}else this.#g(w)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){en(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=p,r=_,i=L;I(this.#s),R(this.#s),Ne(this.#s.ctx);try{return Z.ensure(),t()}catch(s){return Zt(s),null}finally{I(n),R(r),Ne(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#a+=t,this.#a===0&&(this.#g(n),this.#l&&Fe(this.#l,()=>{this.#l=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,ge(()=>{this.#h=!1,this.#u&&rt(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),V(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(A(this.#r),this.#r=null),this.#l&&(A(this.#l),this.#l=null),this.#o&&(A(this.#o),this.#o=null),y&&(B(this.#n),Er(),B(Ut()));var i=!1,s=!1;const o=()=>{if(i){$r();return}i=!0,s&&br(),this.#o!==null&&Fe(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#w()})},l=f=>{try{s=!0,n?.(f,o),s=!1}catch(a){ae(a,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return re(()=>{var a=p;a.b=this,a.f|=at,r(this.#e,()=>f,()=>o)})}catch(a){return ae(a,this.#s.parent),null}}))};ge(()=>{var f;try{f=this.transform_error(t)}catch(a){ae(a,this.#s&&this.#s.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(l,a=>ae(a,this.#s&&this.#s.parent)):l(f)})}}function Pr(e,t,n,r){const i=an;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=p,l=Lr(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function a(c){l();try{r(c)}catch(v){(o.f&H)===0&&ae(v,o)}nt()}if(n.length===0){f.then(()=>a(t.map(i)));return}var u=fn();function d(){Promise.all(n.map(c=>Ir(c))).then(c=>a([...t.map(i),...c])).catch(c=>ae(c,o)).finally(()=>u())}f?f.then(()=>{l(),d(),nt()}):d()}function Lr(){var e=p,t=_,n=L,r=w;return function(s=!0){I(e),R(t),Ne(n),s&&(e.f&H)===0&&(r?.activate(),r?.apply())}}function nt(e=!0){I(null),R(null),Ne(null),e&&w?.deactivate()}function fn(){var e=p,t=e.b,n=w,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function an(e){var t=T|k,n=_!==null&&(_.f&T)!==0?_:null;return p!==null&&(p.f|=ve),{ctx:L,deps:null,effects:null,equals:Gt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??p,ac:null}}function Ir(e,t,n){let r=p;r===null&&hr();var i=void 0,s=Pe(S),o=!_,l=new Map;return Zr(()=>{var f=p,a=Bt();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally(nt)}catch(v){a.reject(v),nt()}var u=w;if(o){if((f.f&le)!==0)var d=fn();if(r.b.is_rendered())l.get(u)?.reject(X),l.delete(u);else{for(const v of l.values())v.reject(X);l.clear()}l.set(u,a)}const c=(v,h=void 0)=>{if(d){var g=h===X;d(g)}if(!(h===X||(f.f&H)!==0)){if(u.activate(),h)s.f|=oe,rt(s,h);else{(s.f&oe)!==0&&(s.f^=oe),rt(s,v);for(const[x,D]of l){if(l.delete(x),x===u)break;D.reject(X)}}u.deactivate()}};a.promise.then(c,v=>c(null,v||"unknown"))}),wn(()=>{for(const f of l.values())f.reject(X)}),new Promise(f=>{function a(u){function d(){u===i?f(s):a(i)}u.then(d,d)}a(i)})}function Fr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)A(t[n])}}function jr(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function gt(e){var t,n=p;I(jr(e));try{e.f&=~_e,Fr(e),t=Mn(e)}finally{I(n)}return t}function un(e){var t=e.v,n=gt(e);if(!e.equals(n)&&(e.wv=On(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){$(e,E);return}de||(Y!==null?(Et()||w?.is_fork)&&Y.set(e,n):dt(e))}function Hr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(X),t.teardown=sr,t.ac=null,He(t,0),xt(t))}function cn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ce(t)}let mt=new Set;const ce=new Map;let hn=!1;function Pe(e,t){var n={f:0,v:e,reactions:null,equals:Gt,rv:0,wv:0};return n}function he(e,t){const n=Pe(e);return ni(n),n}function Br(e,t=!1,n=!0){const r=Pe(e);return t||(r.equals=Sr),r}function ee(e,t,n=!1){_!==null&&(!z||(_.f&Vt)!==0)&&Jt()&&(_.f&(T|ie|ct|Vt))!==0&&(F===null||!xe.call(F,e))&&yr();let r=n?Ie(t):t;return rt(e,r,tt)}function rt(e,t,n=null){if(!e.equals(t)){var r=e.v;de?ce.set(e,t):ce.set(e,r),e.v=t;var i=Z.ensure();if(i.capture(e,r),(e.f&T)!==0){const s=e;(e.f&k)!==0&&gt(s),Y===null&&dt(s)}e.wv=On(),dn(e,k,n),p!==null&&(p.f&E)!==0&&(p.f&(U|se))===0&&(j===null?ri([e]):j.push(e)),!i.is_fork&&mt.size>0&&!hn&&Yr()}return t}function Yr(){hn=!1;for(const e of mt)(e.f&E)!==0&&$(e,G),je(e)&&Ce(e);mt.clear()}function Le(e){ee(e,e.v+1)}function dn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,f=(l&k)===0;if(f&&$(o,t),(l&T)!==0){var a=o;Y?.delete(a),(l&_e)===0&&(l&P&&(o.f|=_e),dn(a,G,n))}else if(f){var u=o;(l&ie)!==0&&Q!==null&&Q.add(u),n!==null?n.push(u):pt(u)}}}function Ie(e){if(typeof e!="object"||e===null||ht in e)return e;const t=jt(e);if(t!==rr&&t!==ir)return e;var n=new Map,r=Qn(e),i=he(0),s=ye,o=l=>{if(ye===s)return l();var f=_,a=ye;R(null),Rn(s);var u=l();return R(f),Rn(a),u};return r&&n.set("length",he(e.length)),new Proxy(e,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&mr();var u=n.get(f);return u===void 0?o(()=>{var d=he(a.value);return n.set(f,d),d}):ee(u,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const u=o(()=>he(S));n.set(f,u),Le(i)}}else ee(a,S),Le(i);return!0},get(l,f,a){if(f===ht)return e;var u=n.get(f),d=f in l;if(u===void 0&&(!d||Te(l,f)?.writable)&&(u=o(()=>{var v=Ie(d?l[f]:S),h=he(v);return h}),n.set(f,u)),u!==void 0){var c=V(u);return c===S?void 0:c}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var u=n.get(f);u&&(a.value=V(u))}else if(a===void 0){var d=n.get(f),c=d?.v;if(d!==void 0&&c!==S)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,f){if(f===ht)return!0;var a=n.get(f),u=a!==void 0&&a.v!==S||Reflect.has(l,f);if(a!==void 0||p!==null&&(!u||Te(l,f)?.writable)){a===void 0&&(a=o(()=>{var c=u?Ie(l[f]):S,v=he(c);return v}),n.set(f,a));var d=V(a);if(d===S)return!1}return u},set(l,f,a,u){var d=n.get(f),c=f in l;if(r&&f==="length")for(var v=a;v<d.v;v+=1){var h=n.get(v+"");h!==void 0?ee(h,S):v in l&&(h=o(()=>he(S)),n.set(v+"",h))}if(d===void 0)(!c||Te(l,f)?.writable)&&(d=o(()=>he(void 0)),ee(d,Ie(a)),n.set(f,d));else{c=d.v!==S;var g=o(()=>Ie(a));ee(d,g)}var x=Reflect.getOwnPropertyDescriptor(l,f);if(x?.set&&x.set.call(u,a),!c){if(r&&typeof f=="string"){var D=n.get("length"),J=Number(f);Number.isInteger(J)&&J>=D.v&&ee(D,J+1)}Le(i)}return!0},ownKeys(l){V(i);var f=Reflect.ownKeys(l).filter(d=>{var c=n.get(d);return c===void 0||c.v!==S});for(var[a,u]of n)u.v!==S&&!(a in l)&&f.push(a);return f},setPrototypeOf(){wr()}})}var vn,_n,pn,gn;function wt(){if(vn===void 0){vn=window,_n=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;pn=Te(t,"firstChild").get,gn=Te(t,"nextSibling").get,Ht(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ht(n)&&(n.__t=void 0)}}function te(e=""){return document.createTextNode(e)}function Re(e){return pn.call(e)}function ne(e){return gn.call(e)}function M(e,t){if(!y)return Re(e);var n=Re(m);return n===null&&(n=m.appendChild(te())),B(n),n}function mn(e,t=!1){if(!y){var n=Re(e);return n instanceof Comment&&n.data===""?ne(n):n}if(t){if(m?.nodeType!==Xe){var r=te();return m?.before(r),B(r),r}bt(m)}return m}function Oe(e,t=1,n=!1){let r=y?m:e;for(var i;t--;)i=r,r=ne(r);if(!y)return r;if(n){if(r?.nodeType!==Xe){var s=te();return r===null?i?.after(s):r.before(s),B(s),s}bt(r)}return B(r),r}function zr(e){e.textContent=""}function Vr(){return!1}function yt(e,t,n){return document.createElementNS(Ft,e,void 0)}function bt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Xe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function $t(e){var t=_,n=p;R(null),I(null);try{return e()}finally{R(t),I(n)}}function Ur(e){p===null&&(_===null&&_r(),vr()),de&&dr()}function Gr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function W(e,t){var n=p;n!==null&&(n.f&K)!==0&&(e|=K);var r={ctx:L,deps:null,nodes:null,f:e|k|P,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&Se)!==0)Ae!==null?Ae.push(r):Z.ensure().schedule(r);else if(t!==null){try{Ce(r)}catch(o){throw A(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ve)===0&&(i=i.first,(e&ie)!==0&&(e&ke)!==0&&i!==null&&(i.f|=ke))}if(i!==null&&(i.parent=n,n!==null&&Gr(i,n),_!==null&&(_.f&T)!==0&&(e&se)===0)){var s=_;(s.effects??=[]).push(i)}return r}function Et(){return _!==null&&!z}function wn(e){const t=W(Je,null);return $(t,E),t.teardown=e,t}function Kr(e){Ur();var t=p.f,n=!_&&(t&U)!==0&&(t&le)===0;if(n){var r=L;(r.e??=[]).push(e)}else return yn(e)}function yn(e){return W(Se|fr,e)}function Wr(e){Z.ensure();const t=W(se|ve,e);return()=>{A(t)}}function Jr(e){Z.ensure();const t=W(se|ve,e);return(n={})=>new Promise(r=>{n.outro?Fe(t,()=>{A(t),r(void 0)}):(A(t),r(void 0))})}function Xr(e){return W(Se,e)}function Zr(e){return W(ct|ve,e)}function bn(e,t=0){return W(Je|t,e)}function it(e,t=[],n=[],r=[]){Pr(r,t,n,i=>{W(Je,()=>e(...i.map(V)))})}function $n(e,t=0){var n=W(ie|t,e);return n}function re(e){return W(U|ve,e)}function En(e){var t=e.teardown;if(t!==null){const n=de,r=_;Nn(!0),R(null);try{t.call(null)}finally{Nn(n),R(r)}}}function xt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&$t(()=>{i.abort(X)});var r=n.next;(n.f&se)!==0?n.parent=null:A(n,t),n=r}}function Qr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&A(t),t=n}}function A(e,t=!0){var n=!1;(t||(e.f&or)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ei(e.nodes.start,e.nodes.end),n=!0),$(e,zt),xt(e,t&&!n),He(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();En(e),e.f^=zt,e.f|=H;var i=e.parent;i!==null&&i.first!==null&&xn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function ei(e,t){for(;e!==null;){var n=e===t?null:ne(e);e.remove(),e=n}}function xn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Fe(e,t,n=!0){var r=[];Tn(e,r,!0);var i=()=>{n&&A(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function Tn(e,t,n){if((e.f&K)===0){e.f^=K;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&ke)!==0||(i.f&U)!==0&&(e.f&ie)!==0;Tn(i,t,o?n:!1),i=s}}}function ti(e){Sn(e,!0)}function Sn(e,t){if((e.f&K)!==0){e.f^=K,(e.f&E)===0&&($(e,k),Z.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ke)!==0||(n.f&U)!==0;Sn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function kn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ne(n);t.append(n),n=i}}let st=!1,de=!1;function Nn(e){de=e}let _=null,z=!1;function R(e){_=e}let p=null;function I(e){p=e}let F=null;function ni(e){_!==null&&(F===null?F=[e]:F.push(e))}let O=null,q=0,j=null;function ri(e){j=e}let An=1,we=0,ye=we;function Rn(e){ye=e}function On(){return++An}function je(e){var t=e.f;if((t&k)!==0)return!0;if(t&T&&(e.f&=~_e),(t&G)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(je(s)&&un(s),s.wv>e.wv)return!0}(t&P)!==0&&Y===null&&$(e,E)}return!1}function Cn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(F!==null&&xe.call(F,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&T)!==0?Cn(s,t,!1):t===s&&(n?$(s,k):(s.f&E)!==0&&$(s,G),pt(s))}}function Mn(e){var t=O,n=q,r=j,i=_,s=F,o=L,l=z,f=ye,a=e.f;O=null,q=0,j=null,_=(a&(U|se))===0?e:null,F=null,Ne(e.ctx),z=!1,ye=++we,e.ac!==null&&($t(()=>{e.ac.abort(X)}),e.ac=null);try{e.f|=ut;var u=e.fn,d=u();e.f|=le;var c=e.deps,v=w?.is_fork;if(O!==null){var h;if(v||He(e,q),c!==null&&q>0)for(c.length=q+O.length,h=0;h<O.length;h++)c[q+h]=O[h];else e.deps=c=O;if(Et()&&(e.f&P)!==0)for(h=q;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!v&&c!==null&&q<c.length&&(He(e,q),c.length=q);if(Jt()&&j!==null&&!z&&c!==null&&(e.f&(T|G|k))===0)for(h=0;h<j.length;h++)Cn(j[h],e);if(i!==null&&i!==e){if(we++,i.deps!==null)for(let g=0;g<n;g+=1)i.deps[g].rv=we;if(t!==null)for(const g of t)g.rv=we;j!==null&&(r===null?r=j:r.push(...j))}return(e.f&oe)!==0&&(e.f^=oe),d}catch(g){return Zt(g)}finally{e.f^=ut,O=t,q=n,j=r,_=i,F=s,Ne(o),z=l,ye=f}}function ii(e,t){let n=t.reactions;if(n!==null){var r=er.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&T)!==0&&(O===null||!xe.call(O,t))){var s=t;(s.f&P)!==0&&(s.f^=P,s.f&=~_e),dt(s),Hr(s),He(s,0)}}function He(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ii(e,n[r])}function Ce(e){var t=e.f;if((t&H)===0){$(e,E);var n=p,r=st;p=e,st=!0;try{(t&(ie|Yt))!==0?Qr(e):xt(e),En(e);var i=Mn(e);e.teardown=typeof i=="function"?i:null,e.wv=An;var s;Zn&&kr&&(e.f&k)!==0&&e.deps}finally{st=r,p=n}}}function V(e){var t=e.f,n=(t&T)!==0;if(_!==null&&!z){var r=p!==null&&(p.f&H)!==0;if(!r&&(F===null||!xe.call(F,e))){var i=_.deps;if((_.f&ut)!==0)e.rv<we&&(e.rv=we,O===null&&i!==null&&i[q]===e?q++:O===null?O=[e]:O.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:xe.call(s,_)||s.push(_)}}}if(de&&ce.has(e))return ce.get(e);if(n){var o=e;if(de){var l=o.v;return((o.f&E)===0&&o.reactions!==null||Dn(o))&&(l=gt(o)),ce.set(o,l),l}var f=(o.f&P)===0&&!z&&_!==null&&(st||(_.f&P)!==0),a=(o.f&le)===0;je(o)&&(f&&(o.f|=P),un(o)),f&&!a&&(cn(o),qn(o))}if(Y?.has(e))return Y.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function qn(e){if(e.f|=P,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&P)===0&&(cn(t),qn(t))}function Dn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&T)!==0&&Dn(t))return!0;return!1}function si(e){var t=z;try{return z=!0,e()}finally{z=t}}const Be=Symbol("events"),Pn=new Set,Tt=new Set;function li(e,t,n,r={}){function i(s){if(r.capture||kt.call(t,s),!s.cancelBubble)return $t(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ge(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function oi(e,t,n,r,i){var s={capture:r,passive:i},o=li(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&wn(()=>{t.removeEventListener(e,o,s)})}function St(e,t,n){(t[Be]??={})[e]=n}function fi(e){for(var t=0;t<e.length;t++)Pn.add(e[t]);for(var n of Tt)n(e)}let Ln=null;function kt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Ln=e;var o=0,l=Ln===e&&e[Be];if(l){var f=i.indexOf(l);if(f!==-1&&(t===document||t===window)){e[Be]=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(o=f)}if(s=i[o]||e.target,s!==t){We(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=_,d=p;R(null),I(null);try{for(var c,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var g=s[Be]?.[r];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(x){c?v.push(x):c=x}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let x of v)queueMicrotask(()=>{throw x});throw c}}finally{e[Be]=t,delete e.currentTarget,R(u),I(d)}}}const ai=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ui(e){return ai?.createHTML(e)??e}function ci(e){var t=yt("template");return t.innerHTML=ui(e.replaceAll("<!>","<!---->")),t.content}function Me(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ye(e,t){var n=(t&Jn)!==0,r=(t&Xn)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return Me(m,null),m;i===void 0&&(i=ci(s?e:"<!>"+e),n||(i=Re(i)));var o=r||_n?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Re(o),f=o.lastChild;Me(l,f)}else Me(o,o);return o}}function hi(e=""){if(!y){var t=te(e+"");return Me(t,t),t}var n=m;return n.nodeType!==Xe?(n.before(n=te()),B(n)):bt(n),Me(n,n),n}function be(e,t){if(y){var n=p;((n.f&le)===0||n.nodes.end===null)&&(n.nodes.end=m),et();return}e!==null&&e.before(t)}const di=["touchstart","touchmove"];function vi(e){return di.includes(e)}function _i(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function In(e,t){return Fn(e,t)}function pi(e,t){wt(),t.intro=t.intro??!1;const n=t.target,r=y,i=m;try{for(var s=Re(n);s&&(s.nodeType!==Ze||s.data!==Dt);)s=ne(s);if(!s)throw Ee;fe(!0),B(s);const o=Fn(e,{...t,anchor:s});return fe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Ee&&console.warn("Failed to hydrate: ",o),t.recover===!1&&gr(),wt(),zr(n),fe(!1),In(e,t)}finally{fe(r),B(i)}}const lt=new Map;function Fn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){wt();var f=void 0,a=Jr(()=>{var u=n??t.appendChild(te());qr(u,{pending:()=>{}},v=>{Kt({});var h=L;if(s&&(h.c=s),i&&(r.$$events=i),y&&Me(v,null),f=e(v,r)||{},y&&(p.nodes.end=m,m===null||m.nodeType!==Ze||m.data!==It))throw Qe(),Ee;Wt()},l);var d=new Set,c=v=>{for(var h=0;h<v.length;h++){var g=v[h];if(!d.has(g)){d.add(g);var x=vi(g);for(const Ve of[t,document]){var D=lt.get(Ve);D===void 0&&(D=new Map,lt.set(Ve,D));var J=D.get(g);J===void 0?(Ve.addEventListener(g,kt,{passive:x}),D.set(g,1)):D.set(g,J+1)}}}};return c(tr(Pn)),Tt.add(c),()=>{for(var v of d)for(const x of[t,document]){var h=lt.get(x),g=h.get(v);--g==0?(x.removeEventListener(v,kt),h.delete(v),h.size===0&&lt.delete(x)):h.set(v,g)}Tt.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return Nt.set(f,a),f}let Nt=new WeakMap;function gi(e,t){const n=Nt.get(e);return n?(Nt.delete(e),n(t)):Promise.resolve()}class mi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)ti(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(A(l.effect),this.#t.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var a=document.createDocumentFragment();kn(o,a),a.append(te()),this.#t.set(s,{effect:o,fragment:a})}else A(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Fe(o,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(A(i.effect),this.#t.delete(r))};ensure(t,n){var r=w,i=Vr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=te();s.append(o),this.#t.set(t,{effect:re(()=>n(o)),fragment:s})}else this.#n.set(t,re(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,f]of this.#n)l===t?r.unskip_effect(f):r.skip_effect(f);for(const[l,f]of this.#t)l===t?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else y&&(this.anchor=m),this.#r(r)}}function At(e,t,n=!1){var r;y&&(r=m,et());var i=new mi(e),s=n?ke:0;function o(l,f){if(y){var a=xr(r);if(l!==parseInt(a.substring(1))){var u=Ut();B(u),i.anchor=u,fe(!1),i.ensure(l,f),fe(!0);return}}i.ensure(l,f)}$n(()=>{var l=!1;t((f,a=0)=>{l=!0,o(a,f)}),l||o(-1,null)},s)}function ze(e,t,n,r,i){y&&et();var s=t.$$slots?.[n],o=!1;s===!0&&(s=t[n==="default"?"children":n],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>r:r)}function wi(e,t){Xr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=yt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const yi=Symbol("is custom element"),bi=Symbol("is html"),$i=cr?"link":"LINK";function Rt(e,t,n,r){var i=Ei(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===$i)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[ur]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Hn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function jn(e,t,n){var r=_,i=p;let s=y;y&&fe(!1),R(null),I(null);try{t!=="style"&&(Ot.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Hn(e).includes(t):n&&typeof n=="object")?e[t]=n:Rt(e,t,n==null?n:String(n))}finally{R(r),I(i),s&&fe(!0)}}function Ei(e){return e.__attributes??={[yi]:e.nodeName.includes("-"),[bi]:e.namespaceURI===Ft}}var Ot=new Map;function Hn(e){var t=e.getAttribute("is")||e.nodeName,n=Ot.get(t);if(n)return n;Ot.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=nr(i);for(var o in r)r[o].set&&n.push(o);i=jt(i)}return n}function qe(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var f;f=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var a=!1,u=an(()=>(a=!1,f())),d=p;return(function(c,v){if(arguments.length>0){const h=v?V(u):c;return ee(u,h),a=!0,i!==void 0&&(i=h),c}return de&&a||(d.f&H)!==0?u.v:V(u)})}function xi(e){return new Ti(e)}class Ti{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=Br(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return V(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===ar?!0:(V(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return ee(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?pi:In)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&me(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||We(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{gi(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Bn;typeof HTMLElement=="function"&&(Bn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=yt("slot");r!=="default"&&(s.name=r),be(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Si(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=ot(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=xi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Wr(()=>{bn(()=>{this.$$r=!0;for(const r of Ke(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=ot(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ot(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ke(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ot(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Si(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ki(e,t,n,r,i,s){let o=class extends Bn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ke(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ke(t).forEach(l=>{We(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=ot(l,f,t),this.$$d[l]=f;var a=this.$$c;if(a){var u=Te(a,l)?.get;u?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{We(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const Ni={version:"0.66.6"};function Ai(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Ri=Ye('<button style="font-size:20px;border:none"><!></button>'),Oi=Ye('<img style="height: 30px;vertical-align: middle;" alt=""/>'),Ci=Ye("<!> ",1),Mi=Ye('<hb-dropdown-simple><span slot="dropdownbutton"><img style="height: 30px;vertical-align: middle;" alt=""/></span></hb-dropdown-simple>',2),qi=Ye('<div id="left_side" class="navitem svelte-6l0qqc" part="left-slot"><div style="padding-left: 10px;"><div id="left_side_content" class="side svelte-6l0qqc"><!> <span style="cursor:pointer"><!></span></div></div></div> <div id="center_side" part="center-slot" class="navitem svelte-6l0qqc"><div class="side svelte-6l0qqc" style="margin:auto;max-width: 100%;"><span style="cursor:pointer"><!></span> <!></div></div> <div id="rigth_side" part="right-slot" class="navitem svelte-6l0qqc"><div id="rigth_side_content" class="svelte-6l0qqc"><div class="side svelte-6l0qqc"><!> <!></div></div></div>',1);const Di={hash:"svelte-6l0qqc",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-6l0qqc {position:relative;z-index:1;max-width:33%;}#left_side.svelte-6l0qqc {text-align:left;}#center_side.svelte-6l0qqc {text-align:center;}#rigth_side.svelte-6l0qqc {text-align:right;}#rigth_side_content.svelte-6l0qqc {display:inline-block;padding-right:10px;z-index:3;}#left_side_content.svelte-6l0qqc {z-index:3;position:relative;}.navitem.svelte-6l0qqc {position:absolute;width:100%;color:white;line-height:30px;font-size:22px;color:black;}'};function Yn(e,t){Kt(t,!0),wi(e,Di);let n=qe(t,"id",7,""),r=qe(t,"noburger",7,void 0),i=qe(t,"usermenu",7,void 0),s=qe(t,"companybrandname",7,""),o=qe(t,"companylogouri",7,""),l=qe(t,"switchopen",7,void 0),f;Kr(()=>{!l()||l()==="no"?(l("no"),f=!1):f=!0,typeof i()=="string"&&i(JSON.parse(i()))}),Ai({repoName:"@htmlbricks/hb-dropdown-simple",version:Ni.version});function a(b,N){t.$$host.dispatchEvent(new CustomEvent(b,{detail:N}))}function u(){f=!f,a("navmenuswitch",{isOpen:f})}var d={get id(){return n()},set id(b=""){n(b),me()},get noburger(){return r()},set noburger(b=void 0){r(b),me()},get usermenu(){return i()},set usermenu(b=void 0){i(b),me()},get companybrandname(){return s()},set companybrandname(b=""){s(b),me()},get companylogouri(){return o()},set companylogouri(b=""){o(b),me()},get switchopen(){return l()},set switchopen(b=void 0){l(b),me()}},c=qi(),v=mn(c),h=M(v),g=M(h),x=M(g);{var D=b=>{var N=Ri(),$e=M(N);ze($e,t,"nav-switcher",{},Ue=>{var Ge=hi("☰");be(Ue,Ge)}),C(N),St("click",N,()=>u()),be(b,N)};At(x,b=>{r()||b(D)})}var J=Oe(x,2),Ve=M(J);ze(Ve,t,"left-slot",{},null),C(J),C(g),C(h),C(v);var Ct=Oe(v,2),zn=M(Ct),ft=M(zn),Pi=M(ft);ze(Pi,t,"brand",{},b=>{var N=Ci(),$e=mn(N);{var Ue=Mt=>{var Wn=Oi();it(()=>Rt(Wn,"src",o())),be(Mt,Wn)};At($e,Mt=>{o()&&Mt(Ue)})}var Ge=Oe($e);it(()=>_i(Ge,` ${s()??""}`)),be(b,N)}),C(ft);var Li=Oe(ft,2);ze(Li,t,"center-slot",{},null),C(zn),C(Ct);var Vn=Oe(Ct,2),Un=M(Vn),Gn=M(Un),Kn=M(Gn);ze(Kn,t,"right-slot",{},b=>{});var Ii=Oe(Kn,2);{var Fi=b=>{var N=Mi();it(()=>jn(N,"list",JSON.stringify(i().list))),jn(N,"position","right");var $e=M(N),Ue=M($e);C($e),C(N),it(()=>Rt(Ue,"src",i().imgUri)),oi("dropDownClick",N,Ge=>a("navbarDropDownClick",Ge.detail?.key)),be(b,N)};At(Ii,b=>{i()&&b(Fi)})}return C(Gn),C(Un),C(Vn),St("click",J,()=>a("navbarSlotClick",{side:"left"})),St("click",ft,()=>a("navbarSlotClick",{side:"center"})),be(e,c),Wt(d)}fi(["click"]),customElements.define("hb-navbar",ki(Yn,{id:{},noburger:{},usermenu:{},companybrandname:{},companylogouri:{},switchopen:{}},["nav-switcher","left-slot","brand","center-slot","right-slot"],[],{mode:"open"})),qt.Component=Yn,Object.defineProperty(qt,Symbol.toStringTag,{value:"Module"})})(this.navbar=this.navbar||{});
3
- //# sourceMappingURL=main.iife.js.map
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function ee(e){for(var t=0;t<e.length;t++)e[t]()}function _(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var v=1024,y=2048,b=4096,te=8192,ne=16384,re=32768,ie=1<<25,ae=65536,oe=1<<19,se=1<<20,ce=65536,le=1<<21,ue=1<<22,de=1<<23,fe=Symbol(`$state`),pe=Symbol(`legacy props`),me=Symbol(``),x=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},he=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ge(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function _e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ye(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function be(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function xe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Se(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function De(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Oe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var S=!1;function C(e){S=e}var w;function T(e){if(e===null)throw De(),t;return w=e}function ke(){return T(R(w))}function E(e){if(S){if(R(w)!==null)throw De(),t;w=e}}function Ae(e=1){if(S){for(var t=e,n=w;t--;)n=R(n);w=n}}function je(e=!0){for(var t=0,n=w;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function Me(e){if(!e||e.nodeType!==8)throw De(),t;return e.data}function Ne(e){return e===this.v}function Pe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Fe(e){return!Pe(e,this.v)}var Ie=!1,Le=!1,D=null;function Re(e){D=e}function ze(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,r:q,l:Le&&!t?{s:null,u:null,$:[]}:null}}function Be(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)sn(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function Ve(){return!Le||D!==null&&D.l===null}var He=[];function Ue(){var e=He;He=[],ee(e)}function We(e){if(He.length===0&&!tt){var t=He;queueMicrotask(()=>{t===He&&Ue()})}He.push(e)}function Ge(){for(;He.length>0;)Ue()}function Ke(e){var t=q;if(t===null)return W.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;O(e,t)}function O(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var qe=~(y|b|v);function k(e,t){e.f=e.f&qe|t}function Je(e){e.f&512||e.deps===null?k(e,v):k(e,b)}function Ye(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,Ye(t.deps))}function Xe(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ye(e.deps),k(e,v)}var Ze=!1,Qe=!1;function $e(e){var t=Qe;try{return Qe=!1,[e(),Qe]}finally{Qe=t}}var A=new Set,j=null,M=null,et=null,tt=!1,nt=!1,rt=null,it=null,at=0,ot=1,st=class e{id=ot++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)k(n,y),this.schedule(n);for(n of t.m)k(n,b),this.schedule(n)}}#p(){if(at++>1e3&&(A.delete(this),lt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),k(e,y),this.schedule(e);for(let e of this.#s)k(e,b),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=rt=[],r=[],i=it=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw ht(e),t}if(j=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(rt=null,it=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)mt(e,t)}else{this.#n.size===0&&A.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ut(r),ut(n),this.#i?.resolve()}var o=j;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(A.add(o),o.#p()),A.has(this)||this.#g()}#m(e,t,n){e.f^=v;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=v:i&4?t.push(r):Ie&&i&16777224?n.push(r):Fn(r)&&(i&16&&this.#s.add(r),Bn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Xe(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),M?.set(e,e.v))}activate(){j=this}deactivate(){j=null,M=null}flush(){try{nt=!0,j=this,this.#p()}finally{at=0,et=null,rt=null,it=null,nt=!1,j=null,M=null,P.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),A.delete(this)}#g(){for(let c of A){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)dt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of A)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,We(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=_()).promise}static ensure(){if(j===null){let t=j=new e;nt||(A.add(j),tt||We(()=>{j===t&&t.flush()}))}return j}apply(){if(!Ie||!this.is_fork&&A.size===1){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let n of A)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)M.has(e)||M.set(e,t)}}schedule(e){if(et=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(rt!==null&&t===q&&(Ie||(W===null||!(W.f&2))&&!Ze))return;if(n&96){if(!(n&1024))return;t.f^=v}}this.#a.push(t)}};function ct(e){var t=tt;tt=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(Ge(),j===null)return n;j.flush()}}finally{tt=t}}function lt(){try{be()}catch(e){O(e,et)}}var N=null;function ut(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Fn(r)&&(N=new Set,Bn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yn(r),N?.size>0)){P.clear();for(let e of N){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)N.has(n)&&(N.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Bn(n)}}N.clear()}}N=null}}function dt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?dt(i,t,n,r):e&4194320&&!(e&2048)&&ft(i,t,r)&&(k(i,y),pt(i))}}function ft(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&ft(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function pt(e){j.schedule(e)}function mt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,v);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function ht(e){k(e,v);for(var t=e.first;t!==null;)ht(t),t=t.next}function gt(e){let t=0,n=Ft(0),r;return()=>{rn()&&($(n),fn(()=>(t===0&&(r=Un(()=>e(()=>zt(n)))),t+=1,()=>{We(()=>{--t,t===0&&(r?.(),r=void 0,zt(n))})})))}}var _t=ae|oe;function vt(e,t,n,r){new yt(e,t,n,r)}var yt=class{parent;is_pending=!1;transform_error;#e;#t=S?w:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=gt(()=>(this.#m=Ft(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=mn(()=>{if(S){let e=this.#t;ke();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},_t),S&&(this.#e=w)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),We(()=>{var e=this.#c=document.createDocumentFragment(),t=L();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,bn(this.#o,()=>{this.#o=null}),this.#b(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();wn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(j)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Xe(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=q,n=W,r=D;J(this.#i),K(this.#i),Re(this.#i.ctx);try{return st.ensure(),e()}catch(e){return Ke(e),null}finally{J(t),K(n),Re(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&bn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,We(()=>{this.#d=!1,this.#m&&Lt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),$(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),S&&(T(this.#t),Ae(),T(je()));var r=!1,i=!1;let a=()=>{if(r){Oe();return}r=!0,i&&Ee(),this.#s!==null&&bn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){O(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=q;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return O(e,this.#i.parent),null}}))};We(()=>{var t;try{t=this.transform_error(e)}catch(e){O(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>O(e,this.#i&&this.#i.parent)):o(t)})}};function bt(e,t,n,r){let i=Ve()?wt:Et;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=q,s=xt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||O(e,o)}St()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ct();function d(){Promise.all(n.map(e=>Tt(e))).then(e=>l([...t.map(i),...e])).catch(e=>O(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),St()}):d()}function xt(){var e=q,t=W,n=D,r=j;return function(i=!0){J(e),K(t),Re(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function St(e=!0){J(null),K(null),Re(null),e&&j?.deactivate()}function Ct(){var e=q,t=e.b,n=j,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function wt(e){var t=2|y,r=W!==null&&W.f&2?W:null;return q!==null&&(q.f|=oe),{ctx:D,deps:null,effects:null,equals:Ne,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??q,ac:null}}function Tt(e,t,r){let i=q;i===null&&ge();var a=void 0,o=Ft(n),s=!W,c=new Map;return dn(()=>{var t=q,n=_();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(St)}catch(e){n.reject(e),St()}var r=j;if(s){if(t.f&32768)var l=Ct();if(i.b.is_rendered())c.get(r)?.reject(x),c.delete(r);else{for(let e of c.values())e.reject(x);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===x),!(n===x||t.f&16384)){if(r.activate(),n)o.f|=de,Lt(o,n);else{o.f&8388608&&(o.f^=de),Lt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(x)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),an(()=>{for(let e of c.values())e.reject(x)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Et(e){let t=wt(e);return t.equals=Fe,t}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Ot(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function kt(e){var t,n=q;J(Ot(e));try{e.f&=~ce,Dt(e),t=Ln(e)}finally{J(n)}return t}function At(e){var t=e.v,n=kt(e);if(!e.equals(n)&&(e.wv=Pn(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){k(e,v);return}U||(M===null?Je(e):(rn()||j?.is_fork)&&M.set(e,n))}function jt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(x),t.teardown=g,t.ac=null,zn(t,0),gn(t))}function Mt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Bn(t)}var Nt=new Set,P=new Map,Pt=!1;function Ft(e,t){return{f:0,v:e,reactions:null,equals:Ne,rv:0,wv:0}}function F(e,t){let n=Ft(e,t);return On(n),n}function It(e,t=!1,n=!0){let r=Ft(e);return t||(r.equals=Fe),Le&&n&&D!==null&&D.l!==null&&(D.l.s??=[]).push(r),r}function I(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&Ve()&&W.f&4325394&&(Y===null||!o.call(Y,e))&&Te(),Lt(e,n?Vt(t):t,it)}function Lt(e,t,n=null){if(!e.equals(t)){var r=e.v;U?P.set(e,t):P.set(e,r),e.v=t;var i=st.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&kt(t),M===null&&Je(t)}e.wv=Pn(),Bt(e,y,n),Ve()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?kn([e]):Q.push(e)),!i.is_fork&&Nt.size>0&&!Pt&&Rt()}return t}function Rt(){Pt=!1;for(let e of Nt)e.f&1024&&k(e,b),Fn(e)&&Bn(e);Nt.clear()}function zt(e){I(e,e.v+1)}function Bt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ve(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&y)===0;if(l&&k(s,t),c&2){var u=s;M?.delete(u),c&65536||(c&512&&(s.f|=ce),Bt(u,b,n))}else if(l){var d=s;c&16&&N!==null&&N.add(d),n===null?pt(d):n.push(d)}}}}function Vt(e){if(typeof e!=`object`||!e||fe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=F(0),s=null,c=Mn,l=e=>{if(Mn===c)return e();var t=W,n=Mn;K(null),Nn(c);var r=e();return K(t),Nn(n),r};return a&&r.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var i=r.get(t);return i===void 0?l(()=>{var e=F(n.value,s);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>F(n,s));r.set(t,e),zt(o)}}else I(i,n),zt(o);return!0},get(t,i,a){if(i===fe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>F(Vt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=$(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=$(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===fe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||q!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>F(a?Vt(e[t]):n,s)),r.set(t,i)),$(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>F(n,s)),r.set(p+``,m)):I(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>F(void 0,s)),I(d,Vt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Vt(i));I(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var ee=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=ee.v&&I(ee,_+1)}zt(o)}return!0},ownKeys(e){$(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){we()}})}var Ht,Ut,Wt,Gt;function Kt(){if(Ht===void 0){Ht=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=u(t,`firstChild`).get,Gt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function L(e=``){return document.createTextNode(e)}function qt(e){return Wt.call(e)}function R(e){return Gt.call(e)}function z(e,t){if(!S)return qt(e);var n=qt(w);if(n===null)n=w.appendChild(L());else if(t&&n.nodeType!==3){var r=L();return n?.before(r),T(r),r}return t&&$t(n),T(n),n}function Jt(e,t=!1){if(!S){var n=qt(e);return n instanceof Comment&&n.data===``?R(n):n}if(t){if(w?.nodeType!==3){var r=L();return w?.before(r),T(r),r}$t(w)}return w}function Yt(e,t=1,n=!1){let r=S?w:e;for(var i;t--;)i=r,r=R(r);if(!S)return r;if(n){if(r?.nodeType!==3){var a=L();return r===null?i?.after(a):r.before(a),T(a),a}$t(r)}return T(r),r}function Xt(e){e.textContent=``}function Zt(){return!Ie||N!==null?!1:(q.f&re)!==0}function Qt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function $t(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function en(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function tn(e){q===null&&(W===null&&ye(e),ve()),U&&_e(e)}function nn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=q;n!==null&&n.f&8192&&(e|=te);var r={ctx:D,deps:null,nodes:null,f:e|y|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)rt===null?st.ensure().schedule(r):rt.push(r);else if(t!==null){try{Bn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ae))}if(i!==null&&(i.parent=n,n!==null&&nn(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function rn(){return W!==null&&!G}function an(e){let t=B(8,null);return k(t,v),t.teardown=e,t}function on(e){tn(`$effect`);var t=q.f;if(!W&&t&32&&!(t&32768)){var n=D;(n.e??=[]).push(e)}else return sn(e)}function sn(e){return B(4|se,e)}function cn(e){st.ensure();let t=B(64|oe,e);return()=>{H(t)}}function ln(e){st.ensure();let t=B(64|oe,e);return(e={})=>new Promise(n=>{e.outro?bn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function un(e){return B(4,e)}function dn(e){return B(ue|oe,e)}function fn(e,t=0){return B(8|t,e)}function pn(e,t=[],n=[],r=[]){bt(r,t,n,t=>{B(8,()=>e(...t.map($)))})}function mn(e,t=0){return B(16|t,e)}function V(e){return B(32|oe,e)}function hn(e){var t=e.teardown;if(t!==null){let e=U,n=W;Dn(!0),K(null);try{t.call(null)}finally{Dn(e),K(n)}}}function gn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&en(()=>{e.abort(x)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function _n(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(vn(e.nodes.start,e.nodes.end),n=!0),k(e,ie),gn(e,t&&!n),zn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hn(e),e.f^=ie,e.f|=ne;var i=e.parent;i!==null&&i.first!==null&&yn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function vn(e,t){for(;e!==null;){var n=e===t?null:R(e);e.remove(),e=n}}function yn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function bn(e,t,n=!0){var r=[];xn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function xn(e,t,n){if(!(e.f&8192)){e.f^=te;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;xn(i,t,o?n:!1),i=a}}}function Sn(e){Cn(e,!0)}function Cn(e,t){if(e.f&8192){e.f^=te,e.f&1024||(k(e,y),st.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Cn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function wn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var Tn=null,En=!1,U=!1;function Dn(e){U=e}var W=null,G=!1;function K(e){W=e}var q=null;function J(e){q=e}var Y=null;function On(e){W!==null&&(!Ie||W.f&2)&&(Y===null?Y=[e]:Y.push(e))}var X=null,Z=0,Q=null;function kn(e){Q=e}var An=1,jn=0,Mn=jn;function Nn(e){Mn=e}function Pn(){return++An}function Fn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Fn(a)&&At(a),a.wv>e.wv)return!0}t&512&&M===null&&k(e,v)}return!1}function In(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ie&&Y!==null&&o.call(Y,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?In(a,t,!1):t===a&&(n?k(a,y):a.f&1024&&k(a,b),pt(a))}}function Ln(e){var t=X,n=Z,r=Q,i=W,a=Y,o=D,s=G,c=Mn,l=e.f;X=null,Z=0,Q=null,W=l&96?null:e,Y=null,Re(e.ctx),G=!1,Mn=++jn,e.ac!==null&&(en(()=>{e.ac.abort(x)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=re;var f=e.deps,p=j?.is_fork;if(X!==null){var m;if(p||zn(e,Z),f!==null&&Z>0)for(f.length=Z+X.length,m=0;m<X.length;m++)f[Z+m]=X[m];else e.deps=f=X;if(rn()&&e.f&512)for(m=Z;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Z<f.length&&(zn(e,Z),f.length=Z);if(Ve()&&Q!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<Q.length;m++)In(Q[m],e);if(i!==null&&i!==e){if(jn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=jn;if(t!==null)for(let e of t)e.rv=jn;Q!==null&&(r===null?r=Q:r.push(...Q))}return e.f&8388608&&(e.f^=de),d}catch(e){return Ke(e)}finally{e.f^=le,X=t,Z=n,Q=r,W=i,Y=a,Re(o),G=s,Mn=c}}function Rn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(X===null||!o.call(X,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ce),Je(s),jt(s),zn(s,0)}}function zn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Rn(e,n[r])}function Bn(e){var t=e.f;if(!(t&16384)){k(e,v);var n=q,r=En;q=e,En=!0;try{t&16777232?_n(e):gn(e),hn(e);var i=Ln(e);e.teardown=typeof i==`function`?i:null,e.wv=An}finally{En=r,q=n}}}function $(e){var t=(e.f&2)!=0;if(Tn?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Y===null||!o.call(Y,e))){var n=W.deps;if(W.f&2097152)e.rv<jn&&(e.rv=jn,X===null&&n!==null&&n[Z]===e?Z++:X===null?X=[e]:X.push(e));else{(W.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[W]:o.call(r,W)||r.push(W)}}if(U&&P.has(e))return P.get(e);if(t){var i=e;if(U){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Hn(i))&&(a=kt(i)),P.set(i,a),a}var s=(i.f&512)==0&&!G&&W!==null&&(En||(W.f&512)!=0),c=(i.f&re)===0;Fn(i)&&(s&&(i.f|=512),At(i)),s&&!c&&(Mt(i),Vn(i))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function Vn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Mt(t),Vn(t))}function Hn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(P.has(t)||t.f&2&&Hn(t))return!0;return!1}function Un(e){var t=G;try{return G=!0,e()}finally{G=t}}var Wn=Symbol(`events`),Gn=new Set,Kn=new Set;function qn(e,t,n,r={}){function i(e){if(r.capture||Qn.call(t,e),!e.cancelBubble)return en(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?We(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Jn(e,t,n,r,i){var a={capture:r,passive:i},o=qn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&an(()=>{t.removeEventListener(e,o,a)})}function Yn(e,t,n){(t[Wn]??={})[e]=n}function Xn(e){for(var t=0;t<e.length;t++)Gn.add(e[t]);for(var n of Kn)n(e)}var Zn=null;function Qn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Zn=e;var o=0,s=Zn===e&&e[Wn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Wn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=W,f=q;K(null),J(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Wn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Wn]=t,delete e.currentTarget,K(d),J(f)}}}var $n=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function er(e){return $n?.createHTML(e)??e}function tr(e){var t=Qt(`template`);return t.innerHTML=er(e.replaceAll(`<!>`,`<!---->`)),t.content}function nr(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function rr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(S)return nr(w,null),w;i===void 0&&(i=tr(a?e:`<!>`+e),n||(i=qt(i)));var t=r||Ut?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=qt(t),s=t.lastChild;nr(o,s)}else nr(t,t);return t}}function ir(e=``){if(!S){var t=L(e+``);return nr(t,t),t}var n=w;return n.nodeType===3?$t(n):(n.before(n=L()),T(n)),nr(n,n),n}function ar(e,t){if(S){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=w),ke();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var or=[`touchstart`,`touchmove`];function sr(e){return or.includes(e)}function cr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function lr(e,t){return fr(e,t)}function ur(e,n){Kt(),n.intro=n.intro??!1;let r=n.target,i=S,a=w;try{for(var o=qt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=R(o);if(!o)throw t;C(!0),T(o);let i=fr(e,{...n,anchor:o});return C(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&xe(),Kt(),Xt(r),C(!1),lr(e,n)}finally{C(i),T(a)}}var dr=new Map;function fr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Kt();var u=void 0,d=ln(()=>{var c=r??n.appendChild(L());vt(c,{pending:()=>{}},n=>{ze({});var r=D;if(o&&(r.c=o),a&&(i.$$events=a),S&&nr(n,null),u=e(n,i)||{},S&&(q.nodes.end=w,w===null||w.nodeType!==8||w.data!==`]`))throw De(),t;Be()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=sr(r);for(let e of[n,document]){var a=dr.get(e);a===void 0&&(a=new Map,dr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Qn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Gn)),Kn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=dr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,Qn),t.delete(e),t.size===0&&dr.delete(r)):t.set(e,i)}Kn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return pr.set(u,d),u}var pr=new WeakMap;function mr(e,t){let n=pr.get(e);return n?(pr.delete(e),n(t)):Promise.resolve()}var hr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Sn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();wn(r,t),t.append(L()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),bn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=j,r=Zt();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=L();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else S&&(this.anchor=w),this.#a(n)}};function gr(e,t,n=!1){var r;S&&(r=w,ke());var i=new hr(e),a=n?ae:0;function o(e,t){if(S){var n=Me(r);if(e!==parseInt(n.substring(1))){var a=je();T(a),i.anchor=a,C(!1),i.ensure(e,t),C(!0);return}}i.ensure(e,t)}mn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function _r(e,t,n,r,i){S&&ke();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function vr(e,t){un(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Qt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var yr=Symbol(`is custom element`),br=Symbol(`is html`),xr=he?`link`:`LINK`;function Sr(e,t,n,r){var i=wr(e);S&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===xr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Er(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Cr(e,t,n){var r=W,i=q;let a=S;S&&C(!1),K(null),J(null);try{t!==`style`&&(Tr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Er(e).includes(t):n&&typeof n==`object`)?e[t]=n:Sr(e,t,n==null?n:String(n))}finally{K(r),J(i),a&&C(!0)}}function wr(e){return e.__attributes??={[yr]:e.nodeName.includes(`-`),[br]:e.namespaceURI===r}}var Tr=new Map;function Er(e){var t=e.getAttribute(`is`)||e.nodeName,n=Tr.get(t);if(n)return n;Tr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Dr(e,t,n,r){var i=!Le||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Un(r):r),s);let d;if(a){var f=fe in e||pe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=$e(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Se(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var ee=!1,_=(n&1?wt:Et)(()=>(ee=!1,h()));a&&$(_);var v=q;return(function(e,t){if(arguments.length>0){let n=t?$(_):i&&a?Vt(e):e;return I(_,n),ee=!0,s!==void 0&&(s=n),e}return U&&ee||v.f&16384?_.v:$(_)})}function Or(e){return new kr(e)}var kr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=It(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return $(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===pe?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?ur:lr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Ie&&(!e?.props?.$$host||e.sync===!1)&&ct(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{mr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Ar;typeof HTMLElement==`function`&&(Ar=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Qt(`slot`);e!==`default`&&(n.name=e),ar(t,n)}}let t={},n=Mr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=jr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Or({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=cn(()=>{fn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=jr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=jr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function jr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Mr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Nr(e,t,n,r,i,a){let o=class extends Ar{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=jr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Pr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.8`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Fr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Ir=rr(`<button style="font-size:20px;border:none"><!></button>`),Lr=rr(`<img style="height: 30px;vertical-align: middle;" alt=""/>`),Rr=rr(`<!> `,1),zr=rr(`<hb-dropdown-simple><span slot="dropdownbutton"><img style="height: 30px;vertical-align: middle;" alt=""/></span></hb-dropdown-simple>`,2),Br=rr(`<div id="left_side" class="navitem svelte-6l0qqc" part="left-slot"><div style="padding-left: 10px;"><div id="left_side_content" class="side svelte-6l0qqc"><!> <span style="cursor:pointer"><!></span></div></div></div> <div id="center_side" part="center-slot" class="navitem svelte-6l0qqc"><div class="side svelte-6l0qqc" style="margin:auto;max-width: 100%;"><span style="cursor:pointer"><!></span> <!></div></div> <div id="rigth_side" part="right-slot" class="navitem svelte-6l0qqc"><div id="rigth_side_content" class="svelte-6l0qqc"><div class="side svelte-6l0qqc"><!> <!></div></div></div>`,1),Vr={hash:`svelte-6l0qqc`,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-6l0qqc {position:relative;z-index:1;max-width:33%;}#left_side.svelte-6l0qqc {text-align:left;}#center_side.svelte-6l0qqc {text-align:center;}#rigth_side.svelte-6l0qqc {text-align:right;}#rigth_side_content.svelte-6l0qqc {display:inline-block;padding-right:10px;z-index:3;}#left_side_content.svelte-6l0qqc {z-index:3;position:relative;}.navitem.svelte-6l0qqc {position:absolute;width:100%;color:white;line-height:30px;font-size:22px;color:black;}`};function Hr(e,t){ze(t,!0),vr(e,Vr);let n=Dr(t,`id`,7,``),r=Dr(t,`noburger`,7,void 0),i=Dr(t,`usermenu`,7,void 0),a=Dr(t,`companybrandname`,7,``),o=Dr(t,`companylogouri`,7,``),s=Dr(t,`switchopen`,7,void 0),c;on(()=>{!s()||s()===`no`?(s(`no`),c=!1):c=!0,typeof i()==`string`&&i(JSON.parse(i()))}),Fr({repoName:`@htmlbricks/hb-dropdown-simple`,version:Pr.version});function l(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}function u(){c=!c,l(`navmenuswitch`,{isOpen:c})}var d={get id(){return n()},set id(e=``){n(e),ct()},get noburger(){return r()},set noburger(e=void 0){r(e),ct()},get usermenu(){return i()},set usermenu(e=void 0){i(e),ct()},get companybrandname(){return a()},set companybrandname(e=``){a(e),ct()},get companylogouri(){return o()},set companylogouri(e=``){o(e),ct()},get switchopen(){return s()},set switchopen(e=void 0){s(e),ct()}},f=Br(),p=Jt(f),m=z(p),h=z(m),g=z(h),ee=e=>{var n=Ir();_r(z(n),t,`nav-switcher`,{},e=>{ar(e,ir(`☰`))}),E(n),Yn(`click`,n,()=>u()),ar(e,n)};gr(g,e=>{r()||e(ee)});var _=Yt(g,2);_r(z(_),t,`left-slot`,{},null),E(_),E(h),E(m),E(p);var v=Yt(p,2),y=z(v),b=z(y);_r(z(b),t,`brand`,{},e=>{var t=Rr(),n=Jt(t),r=e=>{var t=Lr();pn(()=>Sr(t,`src`,o())),ar(e,t)};gr(n,e=>{o()&&e(r)});var i=Yt(n);pn(()=>cr(i,` ${a()??``}`)),ar(e,t)}),E(b),_r(Yt(b,2),t,`center-slot`,{},null),E(y),E(v);var te=Yt(v,2),ne=z(te),re=z(ne),ie=z(re);_r(ie,t,`right-slot`,{},e=>{});var ae=Yt(ie,2),oe=e=>{var t=zr();pn(()=>Cr(t,`list`,JSON.stringify(i().list))),Cr(t,`position`,`right`);var n=z(t),r=z(n);E(n),E(t),pn(()=>Sr(r,`src`,i().imgUri)),Jn(`dropDownClick`,t,e=>l(`navbarDropDownClick`,e.detail?.key)),ar(e,t)};return gr(ae,e=>{i()&&e(oe)}),E(re),E(ne),E(te),Yn(`click`,_,()=>l(`navbarSlotClick`,{side:`left`})),Yn(`click`,b,()=>l(`navbarSlotClick`,{side:`center`})),ar(e,f),Be(d)}Xn([`click`]),customElements.define(`hb-navbar`,Nr(Hr,{id:{},noburger:{},usermenu:{},companybrandname:{},companylogouri:{},switchopen:{}},[`nav-switcher`,`left-slot`,`brand`,`center-slot`,`right-slot`],[],{mode:`open`})),e.Component=Hr})(this.navbar=this.navbar||{});
3
+ //# sourceMappingURL=main.iife.js.map