@htmlbricks/hb-dashboard-indicator 0.61.40 → 0.61.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +14 -6
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +3 -3
- package/types/webcomponent.type.d.ts +1 -1
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(dt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const hn=2,qe="[",vt="[!",ht="]",oe={},m=Symbol(),_t=!1;var pt=Array.isArray,_n=Array.prototype.indexOf,pn=Array.from,Te=Object.keys,ce=Object.defineProperty,de=Object.getOwnPropertyDescriptor,bn=Object.prototype,$n=Array.prototype,gn=Object.getPrototypeOf,bt=Object.isExtensible;function $t(e){for(var t=0;t<e.length;t++)e[t]()}function yn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const T=2,Ye=4,gt=8,ve=16,I=32,W=64,yt=128,S=256,Ne=512,E=1024,C=2048,z=4096,K=8192,ne=16384,Ve=32768,Be=65536,mt=1<<17,wt=1<<18,he=1<<19,mn=1<<20,Ue=1<<21,He=1<<22,re=1<<23,We=Symbol("$state"),wn=Symbol("legacy props"),ze=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Et=3,me=8;function En(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function xn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function kn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Tn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Nn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Rn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function On(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function An(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Re(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function G(e){$=e}let b;function D(e){if(e===null)throw Re(),oe;return b=e}function Ke(){return D(q(b))}function L(e){if($){if(q(b)!==null)throw Re(),oe;b=e}}function jn(e=1){if($){for(var t=e,n=b;t--;)n=q(n);b=n}}function Pn(){for(var e=0,t=b;;){if(t.nodeType===me){var n=t.data;if(n===ht){if(e===0)return t;e-=1}else(n===qe||n===vt)&&(e+=1)}var r=q(t);t.remove(),t=r}}function Dn(e){if(!e||e.nodeType!==me)throw Re(),oe;return e.data}function xt(e){return e===this.v}function Fn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function In(e){return!Fn(e,this.v)}let Ln=!1,j=null;function Se(e){j=e}function kt(e,t=!1,n){j={p:j,c:null,e:null,s:e,x:null,l:null}}function Tt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)Bt(r)}return e!==void 0&&(t.x=e),j=t.p,e??{}}function Nt(){return!0}const Mn=new WeakMap;function qn(e){var t=_;if(t===null)return p.f|=re,e;if((t.f&Ve)===0){if((t.f&yt)===0)throw!t.parent&&e instanceof Error&&Rt(e),e;t.b.error(e)}else Ge(e,t)}function Ge(e,t){for(;t!==null;){if((t.f&yt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Rt(e),e}function Rt(e){const t=Mn.get(e);t&&(ce(e,"message",{value:t.message}),ce(e,"stack",{value:t.stack}))}let Je=[],Xe=[];function Yn(){var e=Je;Je=[],$t(e)}function Vn(){var e=Xe;Xe=[],$t(e)}function Bn(){Je.length>0&&Yn(),Xe.length>0&&Vn()}function Un(){const e=_.b;return e===null&&En(),e}function St(e){var t=T|C,n=p!==null&&(p.f&T)!==0?p:null;return _===null||n!==null&&(n.f&S)!==0?t|=S:_.f|=he,{ctx:j,deps:null,effects:null,equals:xt,f:t,fn:e,reactions:null,rv:0,v:m,wv:0,parent:n??_,ac:null}}function Hn(e,t){let n=_;n===null&&xn();var r=n.b,i=void 0,s=tt(m),l=null,a=!p;return sr(()=>{try{var f=e();l&&Promise.resolve(f).catch(()=>{})}catch(c){f=Promise.reject(c)}var u=()=>f;i=l?.then(u,u)??Promise.resolve(f),l=i;var o=w,v=r.is_pending();a&&(r.update_pending_count(1),v||o.increment());const d=(c,h=void 0)=>{l=null,v||o.activate(),h?h!==ze&&(s.f|=re,nt(s,h)):((s.f&re)!==0&&(s.f^=re),nt(s,c)),a&&(r.update_pending_count(-1),v||o.decrement()),At()};if(i.then(d,c=>d(null,c||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(f=>{function u(o){function v(){o===i?f(s):u(i)}o.then(v,v)}u(i)})}function Ct(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Z(t[n])}}function Wn(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return t;t=t.parent}return null}function Ze(e){var t,n=_;Q(Wn(e));try{Ct(e),t=sn(e)}finally{Q(n)}return t}function Ot(e){var t=Ze(e);if(e.equals(t)||(e.v=t,e.wv=nn()),!ae){var n=(ee||(e.f&S)!==0)&&e.deps!==null?z:E;R(e,n)}}function zn(e,t,n){const r=St;if(t.length===0){n(e.map(r));return}var i=w,s=_,l=Kn(),a=Un();Promise.all(t.map(f=>Hn(f))).then(f=>{i?.activate(),l();try{n([...e.map(r),...f])}catch(u){(s.f&ne)===0&&Ge(u,s)}i?.deactivate(),At()}).catch(f=>{a.error(f)})}function Kn(){var e=_,t=p,n=j,r=w;return function(){Q(e),F(t),Se(n),r?.activate()}}function At(){Q(null),F(null),Se(null)}const Qe=new Set;let w=null,jt=new Set,Ce=[];function Pt(){const e=Ce.shift();Ce.length>0&&queueMicrotask(Pt),e()}let ie=[],Oe=null,et=!1,Ae=!1;class se{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#o=!1;#i=[];#l=[];#s=[];#r=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){ie=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#v();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#a=[],w=null,Ft(n),Ft(r),w===null?w=this:Qe.delete(this),this.#u?.resolve()}else this.#f(this.#s),this.#f(this.#r),this.#f(this.#a);for(const i of this.#i)ge(i);for(const i of this.#l)ge(i);this.#i=[],this.#l=[]}#h(t){t.f^=E;for(var n=t.first;n!==null;){var r=n.f,i=(r&(I|W))!==0,s=i&&(r&E)!==0,l=s||(r&K)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){if(i)n.f^=E;else if((r&Ye)!==0)this.#r.push(n);else if((r&E)===0)if((r&He)!==0){var a=n.b?.is_pending()?this.#l:this.#i;a.push(n)}else je(n)&&((n.f&ve)!==0&&this.#a.push(n),ge(n));var f=n.first;if(f!==null){n=f;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#f(t){for(const n of t)((n.f&C)!==0?this.#c:this.#d).push(n),R(n,E);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){w=this}deactivate(){w=null;for(const t of jt)if(jt.delete(t),t(),w!==null)break}neuter(){this.#o=!0}flush(){ie.length>0?Dt():this.#v(),w===this&&(this.#n===0&&Qe.delete(this),this.deactivate())}#v(){if(!this.#o)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)R(t,C),pe(t);for(const t of this.#d)R(t,z),pe(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=yn()).promise}static ensure(){if(w===null){const t=w=new se;Qe.add(w),Ae||se.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){Ce.length===0&&queueMicrotask(Pt),Ce.unshift(t)}}function _e(e){var t=Ae;Ae=!0;try{for(var n;;){if(Bn(),ie.length===0&&(w?.flush(),ie.length===0))return Oe=null,n;Dt()}}finally{Ae=t}}function Dt(){var e=$e;et=!0;try{var t=0;for(Zt(!0);ie.length>0;){var n=se.ensure();if(t++>1e3){var r,i;Gn()}n.process(ie),J.clear()}}finally{et=!1,Zt(e),Oe=null}}function Gn(){try{Rn()}catch(e){Ge(e,Oe)}}let le=null;function Ft(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ne|K))===0&&je(r)&&(le=[],ge(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Kt(r):r.fn=null),le?.length>0)){J.clear();for(const i of le)ge(i);le=[]}}le=null}}function pe(e){for(var t=Oe=e;t.parent!==null;){t=t.parent;var n=t.f;if(et&&t===_&&(n&ve)!==0)return;if((n&(W|I))!==0){if((n&E)===0)return;t.f^=E}}ie.push(t)}const J=new Map;function tt(e,t){var n={f:0,v:e,reactions:null,equals:xt,rv:0,wv:0};return n}function X(e,t){const n=tt(e);return cr(n),n}function Jn(e,t=!1,n=!0){const r=tt(e);return t||(r.equals=In),r}function M(e,t,n=!1){p!==null&&(!fe||(p.f&mt)!==0)&&Nt()&&(p.f&(T|ve|He|mt))!==0&&!B?.includes(e)&&An();let r=n?we(t):t;return nt(e,r)}function nt(e,t){if(!e.equals(t)){var n=e.v;ae?J.set(e,t):J.set(e,n),e.v=t;var r=se.ensure();r.capture(e,n),(e.f&T)!==0&&((e.f&C)!==0&&Ze(e),R(e,(e.f&S)===0?E:z)),e.wv=nn(),It(e,C),_!==null&&(_.f&E)!==0&&(_.f&(I|W))===0&&(O===null?dr([e]):O.push(e))}return t}function rt(e){M(e,e.v+1)}function It(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,a=(l&C)===0;a&&R(s,t),(l&T)!==0?It(s,z):a&&((l&ve)!==0&&le!==null&&le.push(s),pe(s))}}function we(e){if(typeof e!="object"||e===null||We in e)return e;const t=gn(e);if(t!==bn&&t!==$n)return e;var n=new Map,r=pt(e),i=X(0),s=ue,l=a=>{if(ue===s)return a();var f=p,u=ue;F(null),tn(s);var o=a();return F(f),tn(u),o};return r&&n.set("length",X(e.length)),new Proxy(e,{defineProperty(a,f,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Cn();var o=n.get(f);return o===void 0?o=l(()=>{var v=X(u.value);return n.set(f,v),v}):M(o,u.value,!0),!0},deleteProperty(a,f){var u=n.get(f);if(u===void 0){if(f in a){const o=l(()=>X(m));n.set(f,o),rt(i)}}else M(u,m),rt(i);return!0},get(a,f,u){if(f===We)return e;var o=n.get(f),v=f in a;if(o===void 0&&(!v||de(a,f)?.writable)&&(o=l(()=>{var c=we(v?a[f]:m),h=X(c);return h}),n.set(f,o)),o!==void 0){var d=U(o);return d===m?void 0:d}return Reflect.get(a,f,u)},getOwnPropertyDescriptor(a,f){var u=Reflect.getOwnPropertyDescriptor(a,f);if(u&&"value"in u){var o=n.get(f);o&&(u.value=U(o))}else if(u===void 0){var v=n.get(f),d=v?.v;if(v!==void 0&&d!==m)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(a,f){if(f===We)return!0;var u=n.get(f),o=u!==void 0&&u.v!==m||Reflect.has(a,f);if(u!==void 0||_!==null&&(!o||de(a,f)?.writable)){u===void 0&&(u=l(()=>{var d=o?we(a[f]):m,c=X(d);return c}),n.set(f,u));var v=U(u);if(v===m)return!1}return o},set(a,f,u,o){var v=n.get(f),d=f in a;if(r&&f==="length")for(var c=u;c<v.v;c+=1){var h=n.get(c+"");h!==void 0?M(h,m):c in a&&(h=l(()=>X(m)),n.set(c+"",h))}if(v===void 0)(!d||de(a,f)?.writable)&&(v=l(()=>X(void 0)),M(v,we(u)),n.set(f,v));else{d=v.v!==m;var y=l(()=>we(u));M(v,y)}var H=Reflect.getOwnPropertyDescriptor(a,f);if(H?.set&&H.set.call(o,u),!d){if(r&&typeof f=="string"){var P=n.get("length"),k=Number(f);Number.isInteger(k)&&k>=P.v&&M(P,k+1)}rt(i)}return!0},ownKeys(a){U(i);var f=Reflect.ownKeys(a).filter(v=>{var d=n.get(v);return d===void 0||d.v!==m});for(var[u,o]of n)o.v!==m&&!(u in a)&&f.push(u);return f},setPrototypeOf(){On()}})}var Lt,Mt,qt,Yt;function it(){if(Lt===void 0){Lt=window,Mt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;qt=de(t,"firstChild").get,Yt=de(t,"nextSibling").get,bt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),bt(n)&&(n.__t=void 0)}}function be(e=""){return document.createTextNode(e)}function Ee(e){return qt.call(e)}function q(e){return Yt.call(e)}function Y(e,t){if(!$)return Ee(e);var n=Ee(b);if(n===null)n=b.appendChild(be());else if(t&&n.nodeType!==Et){var r=be();return n?.before(r),D(r),r}return D(n),n}function st(e,t=1,n=!1){let r=$?b:e;for(var i;t--;)i=r,r=q(r);if(!$)return r;if(n&&r?.nodeType!==Et){var s=be();return r===null?i?.after(s):r.before(s),D(s),s}return D(r),r}function Xn(e){e.textContent=""}function Zn(){return!1}function Vt(e){var t=p,n=_;F(null),Q(null);try{return e()}finally{F(t),Q(n)}}function Qn(e){_===null&&p===null&&Nn(),p!==null&&(p.f&S)!==0&&_===null&&Tn(),ae&&kn()}function er(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t,n,r=!0){var i=_;i!==null&&(i.f&K)!==0&&(e|=K);var s={ctx:j,deps:null,nodes_start:null,nodes_end:null,f:e|C,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ge(s),s.f|=Ve}catch(f){throw Z(s),f}else t!==null&&pe(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&he)===0&&(l=l.first),l!==null&&(l.parent=i,i!==null&&er(l,i),p!==null&&(p.f&T)!==0&&(e&W)===0)){var a=p;(a.effects??=[]).push(l)}}return s}function tr(e){Qn();var t=_.f,n=!p&&(t&I)!==0&&(t&Ve)===0;if(n){var r=j;(r.e??=[]).push(e)}else return Bt(e)}function Bt(e){return V(Ye|mn,e,!1)}function nr(e){se.ensure();const t=V(W|he,e,!0);return()=>{Z(t)}}function rr(e){se.ensure();const t=V(W|he,e,!0);return(n={})=>new Promise(r=>{n.outro?Gt(t,()=>{Z(t),r(void 0)}):(Z(t),r(void 0))})}function ir(e){return V(Ye,e,!1)}function sr(e){return V(He|he,e,!0)}function lr(e,t=0){return V(gt|t,e,!0)}function Ut(e,t=[],n=[]){zn(t,n,r=>{V(gt,()=>e(...r.map(U)),!0)})}function Ht(e,t=0){var n=V(ve|t,e,!0);return n}function lt(e,t=!0){return V(I|he,e,!0,t)}function Wt(e){var t=e.teardown;if(t!==null){const n=ae,r=p;Qt(!0),F(null);try{t.call(null)}finally{Qt(n),F(r)}}}function zt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Vt(()=>{i.abort(ze)});var r=n.next;(n.f&W)!==0?n.parent=null:Z(n,t),n=r}}function ar(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&I)===0&&Z(t),t=n}}function Z(e,t=!0){var n=!1;(t||(e.f&wt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(fr(e.nodes_start,e.nodes_end),n=!0),zt(e,t&&!n),Pe(e,0),R(e,ne);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Wt(e);var i=e.parent;i!==null&&i.first!==null&&Kt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function fr(e,t){for(;e!==null;){var n=e===t?null:q(e);e.remove(),e=n}}function Kt(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 Gt(e,t){var n=[];Jt(e,n,!0),ur(n,()=>{Z(e),t&&t()})}function ur(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Jt(e,t,n){if((e.f&K)===0){if(e.f^=K,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Be)!==0||(r.f&I)!==0;Jt(r,t,s?n:!1),r=i}}}function or(e){Xt(e,!0)}function Xt(e,t){if((e.f&K)!==0){e.f^=K,(e.f&E)===0&&(R(e,C),pe(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Be)!==0||(n.f&I)!==0;Xt(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let $e=!1;function Zt(e){$e=e}let ae=!1;function Qt(e){ae=e}let p=null,fe=!1;function F(e){p=e}let _=null;function Q(e){_=e}let B=null;function cr(e){p!==null&&(B===null?B=[e]:B.push(e))}let x=null,N=0,O=null;function dr(e){O=e}let en=1,xe=0,ue=xe;function tn(e){ue=e}let ee=!1;function nn(){return++en}function je(e){var t=e.f;if((t&C)!==0)return!0;if((t&z)!==0){var n=e.deps,r=(t&S)!==0;if(n!==null){var i,s,l=(t&Ne)!==0,a=r&&_!==null&&!ee,f=n.length;if((l||a)&&(_===null||(_.f&ne)===0)){var u=e,o=u.parent;for(i=0;i<f;i++)s=n[i],(l||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);l&&(u.f^=Ne),a&&o!==null&&(o.f&S)===0&&(u.f^=S)}for(i=0;i<f;i++)if(s=n[i],je(s)&&Ot(s),s.wv>e.wv)return!0}(!r||_!==null&&!ee)&&R(e,E)}return!1}function rn(e,t,n=!0){var r=e.reactions;if(r!==null&&!B?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&T)!==0?rn(s,t,!1):t===s&&(n?R(s,C):(s.f&E)!==0&&R(s,z),pe(s))}}function sn(e){var t=x,n=N,r=O,i=p,s=ee,l=B,a=j,f=fe,u=ue,o=e.f;x=null,N=0,O=null,ee=(o&S)!==0&&(fe||!$e||p===null),p=(o&(I|W))===0?e:null,B=null,Se(e.ctx),fe=!1,ue=++xe,e.ac!==null&&(Vt(()=>{e.ac.abort(ze)}),e.ac=null);try{e.f|=Ue;var v=e.fn,d=v(),c=e.deps;if(x!==null){var h;if(Pe(e,N),c!==null&&N>0)for(c.length=N+x.length,h=0;h<x.length;h++)c[N+h]=x[h];else e.deps=c=x;if(!ee||(o&T)!==0&&e.reactions!==null)for(h=N;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&N<c.length&&(Pe(e,N),c.length=N);if(Nt()&&O!==null&&!fe&&c!==null&&(e.f&(T|z|C))===0)for(h=0;h<O.length;h++)rn(O[h],e);return i!==null&&i!==e&&(xe++,O!==null&&(r===null?r=O:r.push(...O))),(e.f&re)!==0&&(e.f^=re),d}catch(y){return qn(y)}finally{e.f^=Ue,x=t,N=n,O=r,p=i,ee=s,B=l,Se(a),fe=f,ue=u}}function vr(e,t){let n=t.reactions;if(n!==null){var r=_n.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&T)!==0&&(x===null||!x.includes(t))&&(R(t,z),(t.f&(S|Ne))===0&&(t.f^=Ne),Ct(t),Pe(t,0))}function Pe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)vr(e,n[r])}function ge(e){var t=e.f;if((t&ne)===0){R(e,E);var n=_,r=$e;_=e,$e=!0;try{(t&ve)!==0?ar(e):zt(e),Wt(e);var i=sn(e);e.teardown=typeof i=="function"?i:null,e.wv=en;var s;_t&&Ln&&(e.f&C)!==0&&e.deps}finally{$e=r,_=n}}}function U(e){var t=e.f,n=(t&T)!==0;if(p!==null&&!fe){var r=_!==null&&(_.f&ne)!==0;if(!r&&!B?.includes(e)){var i=p.deps;if((p.f&Ue)!==0)e.rv<xe&&(e.rv=xe,x===null&&i!==null&&i[N]===e?N++:x===null?x=[e]:(!ee||!x.includes(e))&&x.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:s.includes(p)||s.push(p)}}}else if(n&&e.deps===null&&e.effects===null){var l=e,a=l.parent;a!==null&&(a.f&S)===0&&(l.f^=S)}if(ae){if(J.has(e))return J.get(e);if(n){l=e;var f=l.v;return((l.f&E)===0&&l.reactions!==null||ln(l))&&(f=Ze(l)),J.set(l,f),f}}else n&&(l=e,je(l)&&Ot(l));if((e.f&re)!==0)throw e.v;return e.v}function ln(e){if(e.v===m)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(J.has(t)||(t.f&T)!==0&&ln(t))return!0;return!1}const hr=-7169;function R(e,t){e.f=e.f&hr|t}const an=new Set,at=new Set;function _r(e){for(var t=0;t<e.length;t++)an.add(e[t]);for(var n of at)n(e)}let fn=null;function De(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;fn=e;var l=0,a=fn===e&&e.__root;if(a){var f=i.indexOf(a);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;f<=u&&(l=f)}if(s=i[l]||e.target,s!==t){ce(e,"currentTarget",{configurable:!0,get(){return s||n}});var o=p,v=_;F(null),Q(null);try{for(var d,c=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+r];if(y!=null&&(!s.disabled||e.target===s))if(pt(y)){var[H,...P]=y;H.apply(s,[e,...P])}else y.call(s,e)}catch(k){d?c.push(k):d=k}if(e.cancelBubble||h===t||h===null)break;s=h}if(d){for(let k of c)queueMicrotask(()=>{throw k});throw d}}finally{e.__root=t,delete e.currentTarget,F(o),Q(v)}}}let A;function pr(){A=void 0}function br(e){let t=null,n=$;var r;if($){for(t=b,A===void 0&&(A=Ee(document.head));A!==null&&(A.nodeType!==me||A.data!==qe);)A=q(A);A===null?G(!1):A=D(q(A))}$||(r=document.head.appendChild(be()));try{Ht(()=>e(r),wt)}finally{n&&(G(!0),A=b,D(t))}}function $r(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ft(e,t){var n=_;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ut(e,t){var n=(t&hn)!==0,r,i=!e.startsWith("<!>");return()=>{if($)return ft(b,null),b;r===void 0&&(r=$r(i?e:"<!>"+e),r=Ee(r));var s=n||Mt?document.importNode(r,!0):r.cloneNode(!0);return ft(s,s),s}}function Fe(e,t){if($){_.nodes_end=b,Ke();return}e!==null&&e.before(t)}const gr=["touchstart","touchmove"];function yr(e){return gr.includes(e)}function ot(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function un(e,t){return on(e,t)}function mr(e,t){it(),t.intro=t.intro??!1;const n=t.target,r=$,i=b;try{for(var s=Ee(n);s&&(s.nodeType!==me||s.data!==qe);)s=q(s);if(!s)throw oe;G(!0),D(s),Ke();const l=on(e,{...t,anchor:s});if(b===null||b.nodeType!==me||b.data!==ht)throw Re(),oe;return G(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==
|
|
3
|
-
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;--hb--dashboard-indicator-background: #5cb85c;}#icon.svelte-jfnyo8 {font-size:4rem;}.row.svelte-jfnyo8 {display:grid;grid-template-columns:max-content auto;}#panel-heading-content.svelte-jfnyo8 {text-align:right;}#number.svelte-jfnyo8 {font-size:3rem;}.panel.svelte-jfnyo8 {margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.05);box-shadow:0 1px 1px rgba(0, 0, 0, 0.05);}.panel-green.svelte-jfnyo8 {border-color:var(--hb--dashboard-indicator-background);}.panel-green.svelte-jfnyo8 > .panel-heading:where(.svelte-jfnyo8) {color:#fff;background-color:var(--hb--dashboard-indicator-background);}.panel-heading.svelte-jfnyo8 {padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px;}.panel-footer.svelte-jfnyo8 {padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:var(--hb--dashboard-indicator-background);cursor:pointer;}`};function
|
|
1
|
+
(function(ce){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const vn=2,qt="[",de="[!",ve="]",ut={},m=Symbol(),he=!1;var _e=Array.isArray,hn=Array.prototype.indexOf,_n=Array.from,Tt=Object.keys,ot=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,pn=Object.prototype,$n=Array.prototype,bn=Object.getPrototypeOf,pe=Object.isExtensible;function $e(t){for(var e=0;e<t.length;e++)t[e]()}function gn(){var t,e,n=new Promise((r,i)=>{t=r,e=i});return{promise:n,resolve:t,reject:e}}const T=2,Yt=4,be=8,dt=16,H=32,W=64,ge=128,A=256,Nt=512,E=1024,S=2048,z=4096,K=8192,nt=16384,ye=32768,Vt=65536,me=1<<17,we=1<<18,vt=1<<19,yn=1<<20,Bt=1<<21,Ut=1<<22,rt=1<<23,Ht=Symbol("$state"),mn=Symbol("legacy props"),Wt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ee=3,mt=8;function wn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function En(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Tn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Nn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Rt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function G(t){b=t}let $;function P(t){if(t===null)throw Rt(),ut;return $=t}function zt(){return P(M($))}function I(t){if(b){if(M($)!==null)throw Rt(),ut;$=t}}function Sn(t=1){if(b){for(var e=t,n=$;e--;)n=M(n);$=n}}function Cn(){for(var t=0,e=$;;){if(e.nodeType===mt){var n=e.data;if(n===ve){if(t===0)return e;t-=1}else(n===qt||n===de)&&(t+=1)}var r=M(e);e.remove(),e=r}}function On(t){if(!t||t.nodeType!==mt)throw Rt(),ut;return t.data}function xe(t){return t===this.v}function An(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function jn(t){return!An(t,this.v)}let Pn=!1,D=null;function St(t){D=t}function ke(t,e=!1,n){D={p:D,c:null,e:null,s:t,x:null,l:null}}function Te(t){var e=D,n=e.e;if(n!==null){e.e=null;for(var r of n)Jn(r)}return t!==void 0&&(e.x=t),D=e.p,t??{}}function Ne(){return!0}const Dn=new WeakMap;function Fn(t){var e=_;if(e===null)return p.f|=rt,t;if((e.f&ye)===0){if((e.f&ge)===0)throw!e.parent&&t instanceof Error&&Re(t),t;e.b.error(t)}else Kt(t,e)}function Kt(t,e){for(;e!==null;){if((e.f&ge)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t instanceof Error&&Re(t),t}function Re(t){const e=Dn.get(t);e&&(ot(t,"message",{value:e.message}),ot(t,"stack",{value:e.stack}))}let Gt=[],Jt=[];function In(){var t=Gt;Gt=[],$e(t)}function Ln(){var t=Jt;Jt=[],$e(t)}function Mn(){Gt.length>0&&In(),Jt.length>0&&Ln()}function qn(){const t=_.b;return t===null&&wn(),t}function Se(t){var e=T|S,n=p!==null&&(p.f&T)!==0?p:null;return _===null||n!==null&&(n.f&A)!==0?e|=A:_.f|=vt,{ctx:D,deps:null,effects:null,equals:xe,f:e,fn:t,reactions:null,rv:0,v:m,wv:0,parent:n??_,ac:null}}function Yn(t,e){let n=_;n===null&&En();var r=n.b,i=void 0,s=te(m),l=null,a=!p;return tr(()=>{try{var f=t();l&&Promise.resolve(f).catch(()=>{})}catch(c){f=Promise.reject(c)}var u=()=>f;i=l?.then(u,u)??Promise.resolve(f),l=i;var o=w,v=r.is_pending();a&&(r.update_pending_count(1),v||o.increment());const d=(c,h=void 0)=>{l=null,v||o.activate(),h?h!==Wt&&(s.f|=rt,ee(s,h)):((s.f&rt)!==0&&(s.f^=rt),ee(s,c)),a&&(r.update_pending_count(-1),v||o.decrement()),Ae()};if(i.then(d,c=>d(null,c||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(f=>{function u(o){function v(){o===i?f(s):u(i)}o.then(v,v)}u(i)})}function Ce(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)Z(e[n])}}function Vn(t){for(var e=t.parent;e!==null;){if((e.f&T)===0)return e;e=e.parent}return null}function Xt(t){var e,n=_;Q(Vn(t));try{Ce(t),e=rn(t)}finally{Q(n)}return e}function Oe(t){var e=Xt(t);if(t.equals(e)||(t.v=e,t.wv=en()),!bt){var n=(tt||(t.f&A)!==0)&&t.deps!==null?z:E;R(t,n)}}function Bn(t,e,n){const r=Se;if(e.length===0){n(t.map(r));return}var i=w,s=_,l=Un(),a=qn();Promise.all(e.map(f=>Yn(f))).then(f=>{i?.activate(),l();try{n([...t.map(r),...f])}catch(u){(s.f&nt)===0&&Kt(u,s)}i?.deactivate(),Ae()}).catch(f=>{a.error(f)})}function Un(){var t=_,e=p,n=D,r=w;return function(){Q(t),F(e),St(n),r?.activate()}}function Ae(){Q(null),F(null),St(null)}const Zt=new Set;let w=null,je=new Set,Ct=[];function Pe(){const t=Ct.shift();Ct.length>0&&queueMicrotask(Pe),t()}let it=[],Ot=null,Qt=!1,At=!1;class st{current=new Map;#e=new Map;#t=new Set;#n=0;#u=null;#o=!1;#i=[];#l=[];#s=[];#r=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(e){it=[];for(const i of e)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#v();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#a=[],w=null,Fe(n),Fe(r),w===null?w=this:Zt.delete(this),this.#u?.resolve()}else this.#f(this.#s),this.#f(this.#r),this.#f(this.#a);for(const i of this.#i)gt(i);for(const i of this.#l)gt(i);this.#i=[],this.#l=[]}#h(e){e.f^=E;for(var n=e.first;n!==null;){var r=n.f,i=(r&(H|W))!==0,s=i&&(r&E)!==0,l=s||(r&K)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){if(i)n.f^=E;else if((r&Yt)!==0)this.#r.push(n);else if((r&E)===0)if((r&Ut)!==0){var a=n.b?.is_pending()?this.#l:this.#i;a.push(n)}else jt(n)&&((n.f&dt)!==0&&this.#a.push(n),gt(n));var f=n.first;if(f!==null){n=f;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#f(e){for(const n of e)((n.f&S)!==0?this.#c:this.#d).push(n),R(n,E);e.length=0}capture(e,n){this.#e.has(e)||this.#e.set(e,n),this.current.set(e,e.v)}activate(){w=this}deactivate(){w=null;for(const e of je)if(je.delete(e),e(),w!==null)break}neuter(){this.#o=!0}flush(){it.length>0?De():this.#v(),w===this&&(this.#n===0&&Zt.delete(this),this.deactivate())}#v(){if(!this.#o)for(const e of this.#t)e();this.#t.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const e of this.#c)R(e,S),_t(e);for(const e of this.#d)R(e,z),_t(e);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(e){this.#t.add(e)}settled(){return(this.#u??=gn()).promise}static ensure(){if(w===null){const e=w=new st;Zt.add(w),At||st.enqueue(()=>{w===e&&e.flush()})}return w}static enqueue(e){Ct.length===0&&queueMicrotask(Pe),Ct.unshift(e)}}function ht(t){var e=At;At=!0;try{for(var n;;){if(Mn(),it.length===0&&(w?.flush(),it.length===0))return Ot=null,n;De()}}finally{At=e}}function De(){var t=$t;Qt=!0;try{var e=0;for(Xe(!0);it.length>0;){var n=st.ensure();if(e++>1e3){var r,i;Hn()}n.process(it),J.clear()}}finally{Qt=!1,Xe(t),Ot=null}}function Hn(){try{xn()}catch(t){Kt(t,Ot)}}let lt=null;function Fe(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(nt|K))===0&&jt(r)&&(lt=[],gt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?ze(r):r.fn=null),lt?.length>0)){J.clear();for(const i of lt)gt(i);lt=[]}}lt=null}}function _t(t){for(var e=Ot=t;e.parent!==null;){e=e.parent;var n=e.f;if(Qt&&e===_&&(n&dt)!==0)return;if((n&(W|H))!==0){if((n&E)===0)return;e.f^=E}}it.push(e)}const J=new Map;function te(t,e){var n={f:0,v:t,reactions:null,equals:xe,rv:0,wv:0};return n}function X(t,e){const n=te(t);return lr(n),n}function Wn(t,e=!1,n=!0){const r=te(t);return e||(r.equals=jn),r}function L(t,e,n=!1){p!==null&&(!at||(p.f&me)!==0)&&Ne()&&(p.f&(T|dt|Ut|me))!==0&&!V?.includes(t)&&Rn();let r=n?wt(e):e;return ee(t,r)}function ee(t,e){if(!t.equals(e)){var n=t.v;bt?J.set(t,e):J.set(t,n),t.v=e;var r=st.ensure();r.capture(t,n),(t.f&T)!==0&&((t.f&S)!==0&&Xt(t),R(t,(t.f&A)===0?E:z)),t.wv=en(),Ie(t,S),_!==null&&(_.f&E)!==0&&(_.f&(H|W))===0&&(C===null?ar([t]):C.push(t))}return e}function ne(t){L(t,t.v+1)}function Ie(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,a=(l&S)===0;a&&R(s,e),(l&T)!==0?Ie(s,z):a&&((l&dt)!==0&<!==null&<.push(s),_t(s))}}function wt(t){if(typeof t!="object"||t===null||Ht in t)return t;const e=bn(t);if(e!==pn&&e!==$n)return t;var n=new Map,r=_e(t),i=X(0),s=ft,l=a=>{if(ft===s)return a();var f=p,u=ft;F(null),tn(s);var o=a();return F(f),tn(u),o};return r&&n.set("length",X(t.length)),new Proxy(t,{defineProperty(a,f,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Tn();var o=n.get(f);return o===void 0?o=l(()=>{var v=X(u.value);return n.set(f,v),v}):L(o,u.value,!0),!0},deleteProperty(a,f){var u=n.get(f);if(u===void 0){if(f in a){const o=l(()=>X(m));n.set(f,o),ne(i)}}else L(u,m),ne(i);return!0},get(a,f,u){if(f===Ht)return t;var o=n.get(f),v=f in a;if(o===void 0&&(!v||ct(a,f)?.writable)&&(o=l(()=>{var c=wt(v?a[f]:m),h=X(c);return h}),n.set(f,o)),o!==void 0){var d=B(o);return d===m?void 0:d}return Reflect.get(a,f,u)},getOwnPropertyDescriptor(a,f){var u=Reflect.getOwnPropertyDescriptor(a,f);if(u&&"value"in u){var o=n.get(f);o&&(u.value=B(o))}else if(u===void 0){var v=n.get(f),d=v?.v;if(v!==void 0&&d!==m)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(a,f){if(f===Ht)return!0;var u=n.get(f),o=u!==void 0&&u.v!==m||Reflect.has(a,f);if(u!==void 0||_!==null&&(!o||ct(a,f)?.writable)){u===void 0&&(u=l(()=>{var d=o?wt(a[f]):m,c=X(d);return c}),n.set(f,u));var v=B(u);if(v===m)return!1}return o},set(a,f,u,o){var v=n.get(f),d=f in a;if(r&&f==="length")for(var c=u;c<v.v;c+=1){var h=n.get(c+"");h!==void 0?L(h,m):c in a&&(h=l(()=>X(m)),n.set(c+"",h))}if(v===void 0)(!d||ct(a,f)?.writable)&&(v=l(()=>X(void 0)),L(v,wt(u)),n.set(f,v));else{d=v.v!==m;var y=l(()=>wt(u));L(v,y)}var U=Reflect.getOwnPropertyDescriptor(a,f);if(U?.set&&U.set.call(o,u),!d){if(r&&typeof f=="string"){var j=n.get("length"),k=Number(f);Number.isInteger(k)&&k>=j.v&&L(j,k+1)}ne(i)}return!0},ownKeys(a){B(i);var f=Reflect.ownKeys(a).filter(v=>{var d=n.get(v);return d===void 0||d.v!==m});for(var[u,o]of n)o.v!==m&&!(u in a)&&f.push(u);return f},setPrototypeOf(){Nn()}})}var Le,Me,qe,Ye;function re(){if(Le===void 0){Le=window,Me=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;qe=ct(e,"firstChild").get,Ye=ct(e,"nextSibling").get,pe(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),pe(n)&&(n.__t=void 0)}}function pt(t=""){return document.createTextNode(t)}function Et(t){return qe.call(t)}function M(t){return Ye.call(t)}function q(t,e){if(!b)return Et(t);var n=Et($);if(n===null)n=$.appendChild(pt());else if(e&&n.nodeType!==Ee){var r=pt();return n?.before(r),P(r),r}return P(n),n}function ie(t,e=1,n=!1){let r=b?$:t;for(var i;e--;)i=r,r=M(r);if(!b)return r;if(n&&r?.nodeType!==Ee){var s=pt();return r===null?i?.after(s):r.before(s),P(s),s}return P(r),r}function zn(t){t.textContent=""}function Kn(){return!1}function Ve(t){var e=p,n=_;F(null),Q(null);try{return t()}finally{F(e),Q(n)}}function Gn(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Y(t,e,n,r=!0){var i=_;i!==null&&(i.f&K)!==0&&(t|=K);var s={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:t|S,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{gt(s),s.f|=ye}catch(f){throw Z(s),f}else e!==null&&_t(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&vt)===0&&(l=l.first),l!==null&&(l.parent=i,i!==null&&Gn(l,i),p!==null&&(p.f&T)!==0&&(t&W)===0)){var a=p;(a.effects??=[]).push(l)}}return s}function Jn(t){return Y(Yt|yn,t,!1)}function Xn(t){st.ensure();const e=Y(W|vt,t,!0);return()=>{Z(e)}}function Zn(t){st.ensure();const e=Y(W|vt,t,!0);return(n={})=>new Promise(r=>{n.outro?Ke(e,()=>{Z(e),r(void 0)}):(Z(e),r(void 0))})}function Qn(t){return Y(Yt,t,!1)}function tr(t){return Y(Ut|vt,t,!0)}function er(t,e=0){return Y(be|e,t,!0)}function Be(t,e=[],n=[]){Bn(e,n,r=>{Y(be,()=>t(...r.map(B)),!0)})}function Ue(t,e=0){var n=Y(dt|e,t,!0);return n}function se(t,e=!0){return Y(H|vt,t,!0,e)}function He(t){var e=t.teardown;if(e!==null){const n=bt,r=p;Ze(!0),F(null);try{e.call(null)}finally{Ze(n),F(r)}}}function We(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&Ve(()=>{i.abort(Wt)});var r=n.next;(n.f&W)!==0?n.parent=null:Z(n,e),n=r}}function nr(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&H)===0&&Z(e),e=n}}function Z(t,e=!0){var n=!1;(e||(t.f&we)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(rr(t.nodes_start,t.nodes_end),n=!0),We(t,e&&!n),Pt(t,0),R(t,nt);var r=t.transitions;if(r!==null)for(const s of r)s.stop();He(t);var i=t.parent;i!==null&&i.first!==null&&ze(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function rr(t,e){for(;t!==null;){var n=t===e?null:M(t);t.remove(),t=n}}function ze(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function Ke(t,e){var n=[];Ge(t,n,!0),ir(n,()=>{Z(t),e&&e()})}function ir(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function Ge(t,e,n){if((t.f&K)===0){if(t.f^=K,t.transitions!==null)for(const l of t.transitions)(l.is_global||n)&&e.push(l);for(var r=t.first;r!==null;){var i=r.next,s=(r.f&Vt)!==0||(r.f&H)!==0;Ge(r,e,s?n:!1),r=i}}}function sr(t){Je(t,!0)}function Je(t,e){if((t.f&K)!==0){t.f^=K,(t.f&E)===0&&(R(t,S),_t(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&Vt)!==0||(n.f&H)!==0;Je(n,i?e:!1),n=r}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let $t=!1;function Xe(t){$t=t}let bt=!1;function Ze(t){bt=t}let p=null,at=!1;function F(t){p=t}let _=null;function Q(t){_=t}let V=null;function lr(t){p!==null&&(V===null?V=[t]:V.push(t))}let x=null,N=0,C=null;function ar(t){C=t}let Qe=1,xt=0,ft=xt;function tn(t){ft=t}let tt=!1;function en(){return++Qe}function jt(t){var e=t.f;if((e&S)!==0)return!0;if((e&z)!==0){var n=t.deps,r=(e&A)!==0;if(n!==null){var i,s,l=(e&Nt)!==0,a=r&&_!==null&&!tt,f=n.length;if((l||a)&&(_===null||(_.f&nt)===0)){var u=t,o=u.parent;for(i=0;i<f;i++)s=n[i],(l||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);l&&(u.f^=Nt),a&&o!==null&&(o.f&A)===0&&(u.f^=A)}for(i=0;i<f;i++)if(s=n[i],jt(s)&&Oe(s),s.wv>t.wv)return!0}(!r||_!==null&&!tt)&&R(t,E)}return!1}function nn(t,e,n=!0){var r=t.reactions;if(r!==null&&!V?.includes(t))for(var i=0;i<r.length;i++){var s=r[i];(s.f&T)!==0?nn(s,e,!1):e===s&&(n?R(s,S):(s.f&E)!==0&&R(s,z),_t(s))}}function rn(t){var e=x,n=N,r=C,i=p,s=tt,l=V,a=D,f=at,u=ft,o=t.f;x=null,N=0,C=null,tt=(o&A)!==0&&(at||!$t||p===null),p=(o&(H|W))===0?t:null,V=null,St(t.ctx),at=!1,ft=++xt,t.ac!==null&&(Ve(()=>{t.ac.abort(Wt)}),t.ac=null);try{t.f|=Bt;var v=t.fn,d=v(),c=t.deps;if(x!==null){var h;if(Pt(t,N),c!==null&&N>0)for(c.length=N+x.length,h=0;h<x.length;h++)c[N+h]=x[h];else t.deps=c=x;if(!tt||(o&T)!==0&&t.reactions!==null)for(h=N;h<c.length;h++)(c[h].reactions??=[]).push(t)}else c!==null&&N<c.length&&(Pt(t,N),c.length=N);if(Ne()&&C!==null&&!at&&c!==null&&(t.f&(T|z|S))===0)for(h=0;h<C.length;h++)nn(C[h],t);return i!==null&&i!==t&&(xt++,C!==null&&(r===null?r=C:r.push(...C))),(t.f&rt)!==0&&(t.f^=rt),d}catch(y){return Fn(y)}finally{t.f^=Bt,x=e,N=n,C=r,p=i,tt=s,V=l,St(a),at=f,ft=u}}function fr(t,e){let n=e.reactions;if(n!==null){var r=hn.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(e.f&T)!==0&&(x===null||!x.includes(e))&&(R(e,z),(e.f&(A|Nt))===0&&(e.f^=Nt),Ce(e),Pt(e,0))}function Pt(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)fr(t,n[r])}function gt(t){var e=t.f;if((e&nt)===0){R(t,E);var n=_,r=$t;_=t,$t=!0;try{(e&dt)!==0?nr(t):We(t),He(t);var i=rn(t);t.teardown=typeof i=="function"?i:null,t.wv=Qe;var s;he&&Pn&&(t.f&S)!==0&&t.deps}finally{$t=r,_=n}}}function B(t){var e=t.f,n=(e&T)!==0;if(p!==null&&!at){var r=_!==null&&(_.f&nt)!==0;if(!r&&!V?.includes(t)){var i=p.deps;if((p.f&Bt)!==0)t.rv<xt&&(t.rv=xt,x===null&&i!==null&&i[N]===t?N++:x===null?x=[t]:(!tt||!x.includes(t))&&x.push(t));else{(p.deps??=[]).push(t);var s=t.reactions;s===null?t.reactions=[p]:s.includes(p)||s.push(p)}}}else if(n&&t.deps===null&&t.effects===null){var l=t,a=l.parent;a!==null&&(a.f&A)===0&&(l.f^=A)}if(bt){if(J.has(t))return J.get(t);if(n){l=t;var f=l.v;return((l.f&E)===0&&l.reactions!==null||sn(l))&&(f=Xt(l)),J.set(l,f),f}}else n&&(l=t,jt(l)&&Oe(l));if((t.f&rt)!==0)throw t.v;return t.v}function sn(t){if(t.v===m)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(J.has(e)||(e.f&T)!==0&&sn(e))return!0;return!1}const ur=-7169;function R(t,e){t.f=t.f&ur|e}const ln=new Set,le=new Set;function or(t){for(var e=0;e<t.length;e++)ln.add(t[e]);for(var n of le)n(t)}let an=null;function Dt(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;an=t;var l=0,a=an===t&&t.__root;if(a){var f=i.indexOf(a);if(f!==-1&&(e===document||e===window)){t.__root=e;return}var u=i.indexOf(e);if(u===-1)return;f<=u&&(l=f)}if(s=i[l]||t.target,s!==e){ot(t,"currentTarget",{configurable:!0,get(){return s||n}});var o=p,v=_;F(null),Q(null);try{for(var d,c=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+r];if(y!=null&&(!s.disabled||t.target===s))if(_e(y)){var[U,...j]=y;U.apply(s,[t,...j])}else y.call(s,t)}catch(k){d?c.push(k):d=k}if(t.cancelBubble||h===e||h===null)break;s=h}if(d){for(let k of c)queueMicrotask(()=>{throw k});throw d}}finally{t.__root=e,delete t.currentTarget,F(o),Q(v)}}}let O;function cr(){O=void 0}function dr(t){let e=null,n=b;var r;if(b){for(e=$,O===void 0&&(O=Et(document.head));O!==null&&(O.nodeType!==mt||O.data!==qt);)O=M(O);O===null?G(!1):O=P(M(O))}b||(r=document.head.appendChild(pt()));try{Ue(()=>t(r),we)}finally{n&&(G(!0),O=$,P(e))}}function vr(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function ae(t,e){var n=_;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function fe(t,e){var n=(e&vn)!==0,r,i=!t.startsWith("<!>");return()=>{if(b)return ae($,null),$;r===void 0&&(r=vr(i?t:"<!>"+t),r=Et(r));var s=n||Me?document.importNode(r,!0):r.cloneNode(!0);return ae(s,s),s}}function Ft(t,e){if(b){_.nodes_end=$,zt();return}t!==null&&t.before(e)}const hr=["touchstart","touchmove"];function _r(t){return hr.includes(t)}function ue(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function fn(t,e){return un(t,e)}function pr(t,e){re(),e.intro=e.intro??!1;const n=e.target,r=b,i=$;try{for(var s=Et(n);s&&(s.nodeType!==mt||s.data!==qt);)s=M(s);if(!s)throw ut;G(!0),P(s),zt();const l=un(t,{...e,anchor:s});if($===null||$.nodeType!==mt||$.data!==ve)throw Rt(),ut;return G(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==ut&&console.warn("Failed to hydrate: ",l),e.recover===!1&&kn(),re(),zn(n),G(!1),fn(t,e)}finally{G(r),P(i),cr()}}const yt=new Map;function un(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:l=!0}){re();var a=new Set,f=v=>{for(var d=0;d<v.length;d++){var c=v[d];if(!a.has(c)){a.add(c);var h=_r(c);e.addEventListener(c,Dt,{passive:h});var y=yt.get(c);y===void 0?(document.addEventListener(c,Dt,{passive:h}),yt.set(c,1)):yt.set(c,y+1)}}};f(_n(ln)),le.add(f);var u=void 0,o=Zn(()=>{var v=n??e.appendChild(pt());return se(()=>{if(s){ke({});var d=D;d.c=s}i&&(r.$$events=i),b&&ae(v,null),u=t(v,r)||{},b&&(_.nodes_end=$),s&&Te()}),()=>{for(var d of a){e.removeEventListener(d,Dt);var c=yt.get(d);--c===0?(document.removeEventListener(d,Dt),yt.delete(d)):yt.set(d,c)}le.delete(f),v!==n&&v.parentNode?.removeChild(v)}});return oe.set(u,o),u}let oe=new WeakMap;function $r(t,e){const n=oe.get(t);return n?(oe.delete(t),n(e)):Promise.resolve()}function br(t,e,n=!1){b&&zt();var r=t,i=null,s=null,l=m,a=n?Vt:0,f=!1;const u=(c,h=!0)=>{f=!0,d(h,c)};var o=null;function v(){o!==null&&(o.lastChild.remove(),r.before(o),o=null);var c=l?i:s,h=l?s:i;c&&sr(c),h&&Ke(h,()=>{l?s=null:i=null})}const d=(c,h)=>{if(l===(l=c))return;let y=!1;if(b){const g=On(r)===de;!!l===g&&(r=Cn(),P(r),G(!1),y=!0)}var U=Kn(),j=r;if(U&&(o=document.createDocumentFragment(),o.append(j=pt())),l?i??=h&&se(()=>h(j)):s??=h&&se(()=>h(j)),U){var k=w,Lt=l?i:s,Mt=l?s:i;Lt&&k.skipped_effects.delete(Lt),Mt&&k.skipped_effects.add(Mt),k.add_callback(v)}else v();y&&G(!0)};Ue(()=>{f=!1,e(u),f||d(null,null)},a),b&&(r=$)}function gr(t,e){Qn(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=document.createElement("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}function yr(t,e,n){var r=t==null?"":""+t;return r=r?r+" "+e:e,r===""?null:r}function mr(t,e,n,r,i,s){var l=t.__className;if(b||l!==n||l===void 0){var a=yr(n,r);(!b||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):t.className=a),t.__className=n}return s}function kt(t,e,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),a;a=t[e],a===void 0&&r!==void 0&&(a=l());var f;f=()=>{var d=t[e];return d===void 0?l():(s=!0,d)};var u=!1,o=Se(()=>(u=!1,f())),v=_;return(function(d,c){if(arguments.length>0){const h=c?B(o):d;return L(o,h),u=!0,i!==void 0&&(i=h),d}return bt&&u||(v.f&nt)!==0?o.v:B(o)})}function wr(t){return new Er(t)}class Er{#e;#t;constructor(e){var n=new Map,r=(s,l)=>{var a=Wn(l,!1,!1);return n.set(s,a),a};const i=new Proxy({...e.props||{},$$events:{}},{get(s,l){return B(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===mn?!0:(B(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return L(n.get(l)??r(l,a),a),Reflect.set(s,l,a)}});this.#t=(e.hydrate?pr:fn)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&ht(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||ot(this,s,{get(){return this.#t[s]},set(l){this.#t[s]=l},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{$r(this.#t)}}$set(e){this.#t.$set(e)}$on(e,n){this.#e[e]=this.#e[e]||[];const r=(...i)=>n.call(this,...i);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(i=>i!==r)}}$destroy(){this.#t.$destroy()}}let on;typeof HTMLElement=="function"&&(on=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Ft(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=xr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=It(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=wr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Xn(()=>{er(()=>{this.$$r=!0;for(const r of Tt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=It(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(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=It(t,n,this.$$p_d,"toProp"),this.$$c?.$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 Tt(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function It(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function xr(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function kr(t,e,n,r,i,s){let l=class extends on{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Tt(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Tt(e).forEach(a=>{ot(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(f){f=It(a,f,e),this.$$d[a]=f;var u=this.$$c;if(u){var o=ct(u,a)?.get;o?u[a]=f:u.$set({[a]:f})}}})}),r.forEach(a=>{ot(l.prototype,a,{get(){return this.$$c?.[a]}})}),t.element=l,l}var Tr=fe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),Nr=(t,e,n)=>{e("dashboardIndicatorClick",{id:n()})},Rr=fe('<div class="panel-footer svelte-jfnyo8"><span class="pull-left"> </span><span style="float:right"><i class="bi bi-arrow-right-circle-fill"></i></span> <div class="clearfix"></div></div>'),Sr=fe('<div class="panel panel-green svelte-jfnyo8"><div class="panel-heading svelte-jfnyo8"><div class="row svelte-jfnyo8"><div><i id="icon"></i></div> <div id="panel-heading-content" class="svelte-jfnyo8"><div id="number" class="svelte-jfnyo8"> </div> <div> </div></div></div></div> <!></div>');const Cr={hash:"svelte-jfnyo8",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
3
|
+
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;--hb--dashboard-indicator-background: #5cb85c;}#icon.svelte-jfnyo8 {font-size:4rem;}.row.svelte-jfnyo8 {display:grid;grid-template-columns:max-content auto;}#panel-heading-content.svelte-jfnyo8 {text-align:right;}#number.svelte-jfnyo8 {font-size:3rem;}.panel.svelte-jfnyo8 {margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0, 0, 0, 0.05);box-shadow:0 1px 1px rgba(0, 0, 0, 0.05);}.panel-green.svelte-jfnyo8 {border-color:var(--hb--dashboard-indicator-background);}.panel-green.svelte-jfnyo8 > .panel-heading:where(.svelte-jfnyo8) {color:#fff;background-color:var(--hb--dashboard-indicator-background);}.panel-heading.svelte-jfnyo8 {padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px;}.panel-footer.svelte-jfnyo8 {padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:var(--hb--dashboard-indicator-background);cursor:pointer;}`};function cn(t,e){ke(e,!0),gr(t,Cr);/**
|
|
4
4
|
* Svelte Dashboard Indicator WebComponent
|
|
5
5
|
* =====================
|
|
6
6
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license: MIT License
|
|
10
10
|
*
|
|
11
|
-
*/function n(g,
|
|
11
|
+
*/function n(g,et){e.$$host.dispatchEvent(new CustomEvent(g,{detail:et}))}let r=kt(e,"id",7,""),i=kt(e,"number",7,0),s=kt(e,"text",7,""),l=kt(e,"link_label",7,""),a=kt(e,"icon",7,"hypnotize");var f={get id(){return r()},set id(g=""){r(g),ht()},get number(){return i()},set number(g=0){i(g),ht()},get text(){return s()},set text(g=""){s(g),ht()},get link_label(){return l()},set link_label(g=""){l(g),ht()},get icon(){return a()},set icon(g="hypnotize"){a(g),ht()}},u=Sr();dr(g=>{var et=Tr();Ft(g,et)});var o=q(u),v=q(o),d=q(v),c=q(d);I(d);var h=ie(d,2),y=q(h),U=q(y,!0);I(y);var j=ie(y,2),k=q(j,!0);I(j),I(h),I(v),I(o);var Lt=ie(o,2);{var Mt=g=>{var et=Rr();et.__click=[Nr,n,r];var dn=q(et),Or=q(dn,!0);I(dn),Sn(3),I(et),Be(()=>ue(Or,l())),Ft(g,et)};br(Lt,g=>{l()&&g(Mt)})}return I(u),Be(()=>{mr(c,1,`bi bi-${a()??""}`,"svelte-jfnyo8"),ue(U,i()),ue(k,s())}),Ft(t,u),Te(f)}or(["click"]),customElements.define("hb-dashboard-indicator",kr(cn,{id:{},number:{},text:{},link_label:{},icon:{}},[],[],!0)),ce.Component=cn,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})})(this["dashboard-indicator"]=this["dashboard-indicator"]||{});
|
|
12
12
|
//# sourceMappingURL=main.iife.js.map
|