@htmlbricks/hb-gauge 0.66.5 → 0.66.7

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,7 +1,7 @@
1
- (function(zn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const gs=2,Ln="[",Bn="[!",On="[?",Pn="]",Ri={},Vt=Symbol(),vs="http://www.w3.org/1999/xhtml",ms=!1;var xs=Array.isArray,ys=Array.prototype.indexOf,Ze=Array.prototype.includes,_s=Array.from,zi=Object.keys,Li=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,bs=Object.prototype,ws=Array.prototype,ks=Object.getPrototypeOf,In=Object.isExtensible;const Es=()=>{};function Ms(n){for(var i=0;i<n.length;i++)n[i]()}function Cs(){var n,i,a=new Promise((g,v)=>{n=g,i=v});return{promise:a,resolve:n,reject:i}}const Pt=2,Qe=4,tn=8,Vn=1<<24,_e=16,ve=32,be=64,en=128,ie=512,It=1024,Yt=2048,fe=4096,we=8192,ke=16384,Oe=32768,Dn=1<<25,Bi=65536,jn=1<<17,$s=1<<18,Je=1<<19,Ss=1<<20,Pe=65536,nn=1<<21,Yn=1<<22,mi=1<<23,rn=Symbol("$state"),Fs=Symbol("legacy props"),sn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},an=8;function Hn(n){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ts(n){throw new Error("https://svelte.dev/e/effect_in_teardown")}function As(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ns(n){throw new Error("https://svelte.dev/e/effect_orphan")}function Rs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zs(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ls(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Bs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Os(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ps(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function qn(n){console.warn("https://svelte.dev/e/hydration_mismatch")}function Is(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ae=!1;function Oi(n){ae=n}let Ht;function xi(n){if(n===null)throw qn(),Ri;return Ht=n}function Xn(){return xi(ii(Ht))}function Vs(n=1){if(ae){for(var i=n,a=Ht;i--;)a=ii(a);Ht=a}}function Ds(n=!0){for(var i=0,a=Ht;;){if(a.nodeType===an){var g=a.data;if(g===Pn){if(i===0)return a;i-=1}else(g===Ln||g===Bn||g[0]==="["&&!isNaN(Number(g.slice(1))))&&(i+=1)}var v=ii(a);n&&a.remove(),a=v}}function Gn(n){return n===this.v}function js(n,i){return n!=n?i==i:n!==i||n!==null&&typeof n=="object"||typeof n=="function"}function Ys(n){return!js(n,this.v)}let Hs=!1,Wt=null;function Pi(n){Wt=n}function Un(n,i=!1,a){Wt={p:Wt,i:!1,c:null,e:null,s:n,x:null,r:At,l:null}}function Wn(n){var i=Wt,a=i.e;if(a!==null){i.e=null;for(var g of a)yr(g)}return n!==void 0&&(i.x=n),i.i=!0,Wt=i.p,n??{}}function Zn(){return!0}let Ie=[];function Kn(){var n=Ie;Ie=[],Ms(n)}function Ve(n){if(Ie.length===0&&!yi){var i=Ie;queueMicrotask(()=>{i===Ie&&Kn()})}Ie.push(n)}function qs(){for(;Ie.length>0;)Kn()}function Qn(n){var i=At;if(i===null)return Ct.f|=mi,n;if((i.f&Oe)===0&&(i.f&Qe)===0)throw n;ti(n,i)}function ti(n,i){for(;i!==null;){if((i.f&en)!==0){if((i.f&Oe)===0)throw n;try{i.b.error(n);return}catch(a){n=a}}i=i.parent}throw n}const Xs=-7169;function Bt(n,i){n.f=n.f&Xs|i}function on(n){(n.f&ie)!==0||n.deps===null?Bt(n,It):Bt(n,fe)}function Jn(n){if(n!==null)for(const i of n)(i.f&Pt)===0||(i.f&Pe)===0||(i.f^=Pe,Jn(i.deps))}function tr(n,i,a){(n.f&Yt)!==0?i.add(n):(n.f&fe)!==0&&a.add(n),Jn(n.deps),Bt(n,It)}const Ee=new Set;let Lt=null,oe=null,ln=null,yi=!1,un=!1,ei=null,Ii=null;var er=0;let Gs=1;class Me{id=Gs++;current=new Map;previous=new Map;#t=new Set;#i=new Set;#s=new Map;#l=new Map;#a=null;#e=[];#n=new Set;#r=new Set;#o=new Map;is_fork=!1;#f=!1;#u=new Set;#c(){return this.is_fork||this.#l.size>0}#p(){for(const g of this.#u)for(const v of g.#l.keys()){for(var i=!1,a=v;a.parent!==null;){if(this.#o.has(a)){i=!0;break}a=a.parent}if(!i)return!0}return!1}skip_effect(i){this.#o.has(i)||this.#o.set(i,{d:[],m:[]})}unskip_effect(i){var a=this.#o.get(i);if(a){this.#o.delete(i);for(var g of a.d)Bt(g,Yt),this.schedule(g);for(g of a.m)Bt(g,fe),this.schedule(g)}}#d(){if(er++>1e3&&(Ee.delete(this),Us()),!this.#c()){for(const u of this.#n)this.#r.delete(u),Bt(u,Yt),this.schedule(u);for(const u of this.#r)Bt(u,fe),this.schedule(u)}const i=this.#e;this.#e=[],this.apply();var a=ei=[],g=[],v=Ii=[];for(const u of i)try{this.#h(u,a,g)}catch(h){throw ar(u),h}if(Lt=null,v.length>0){var b=Me.ensure();for(const u of v)b.schedule(u)}if(ei=null,Ii=null,this.#c()||this.#p()){this.#g(g),this.#g(a);for(const[u,h]of this.#o)sr(u,h)}else{this.#s.size===0&&Ee.delete(this),this.#n.clear(),this.#r.clear();for(const u of this.#t)u(this);this.#t.clear(),ir(g),ir(a),this.#a?.resolve()}var w=Lt;if(this.#e.length>0){const u=w??=this;u.#e.push(...this.#e.filter(h=>!u.#e.includes(h)))}w!==null&&(Ee.add(w),w.#d()),Ee.has(this)||this.#v()}#h(i,a,g){i.f^=It;for(var v=i.first;v!==null;){var b=v.f,w=(b&(ve|be))!==0,u=w&&(b&It)!==0,h=u||(b&we)!==0||this.#o.has(v);if(!h&&v.fn!==null){w?v.f^=It:(b&Qe)!==0?a.push(v):wi(v)&&((b&_e)!==0&&this.#r.add(v),ni(v));var C=v.first;if(C!==null){v=C;continue}}for(;v!==null;){var F=v.next;if(F!==null){v=F;break}v=v.parent}}}#g(i){for(var a=0;a<i.length;a+=1)tr(i[a],this.#n,this.#r)}capture(i,a,g=!1){a!==Vt&&!this.previous.has(i)&&this.previous.set(i,a),(i.f&mi)===0&&(this.current.set(i,[i.v,g]),oe?.set(i,i.v))}activate(){Lt=this}deactivate(){Lt=null,oe=null}flush(){try{un=!0,Lt=this,this.#d()}finally{er=0,ln=null,ei=null,Ii=null,un=!1,Lt=null,oe=null,Ce.clear()}}discard(){for(const i of this.#i)i(this);this.#i.clear(),Ee.delete(this)}#v(){for(const C of Ee){var i=C.id<this.id,a=[];for(const[F,[K,q]]of this.current){if(C.current.has(F)){var g=C.current.get(F)[0];if(i&&K!==g)C.current.set(F,[K,q]);else continue}a.push(F)}var v=[...C.current.keys()].filter(F=>!this.current.has(F));if(v.length===0)i&&C.discard();else if(a.length>0){C.activate();var b=new Set,w=new Map;for(var u of a)nr(u,v,b,w);if(C.#e.length>0){C.apply();for(var h of C.#e)C.#h(h,[],[]);C.#e=[]}C.deactivate()}}for(const C of Ee)C.#u.has(this)&&(C.#u.delete(this),C.#u.size===0&&!C.#c()&&(C.activate(),C.#d()))}increment(i,a){let g=this.#s.get(a)??0;if(this.#s.set(a,g+1),i){let v=this.#l.get(a)??0;this.#l.set(a,v+1)}}decrement(i,a,g){let v=this.#s.get(a)??0;if(v===1?this.#s.delete(a):this.#s.set(a,v-1),i){let b=this.#l.get(a)??0;b===1?this.#l.delete(a):this.#l.set(a,b-1)}this.#f||g||(this.#f=!0,Ve(()=>{this.#f=!1,this.flush()}))}transfer_effects(i,a){for(const g of i)this.#n.add(g);for(const g of a)this.#r.add(g);i.clear(),a.clear()}oncommit(i){this.#t.add(i)}ondiscard(i){this.#i.add(i)}settled(){return(this.#a??=Cs()).promise}static ensure(){if(Lt===null){const i=Lt=new Me;un||(Ee.add(Lt),yi||Ve(()=>{Lt===i&&i.flush()}))}return Lt}apply(){{oe=null;return}}schedule(i){if(ln=i,i.b?.is_pending&&(i.f&(Qe|tn|Vn))!==0&&(i.f&Oe)===0){i.b.defer_effect(i);return}for(var a=i;a.parent!==null;){a=a.parent;var g=a.f;if(ei!==null&&a===At&&(Ct===null||(Ct.f&Pt)===0))return;if((g&(be|ve))!==0){if((g&It)===0)return;a.f^=It}}this.#e.push(a)}}function hn(n){var i=yi;yi=!0;try{for(var a;;){if(qs(),Lt===null)return a;Lt.flush()}}finally{yi=i}}function Us(){try{Rs()}catch(n){ti(n,ln)}}let me=null;function ir(n){var i=n.length;if(i!==0){for(var a=0;a<i;){var g=n[a++];if((g.f&(ke|we))===0&&wi(g)&&(me=new Set,ni(g),g.deps===null&&g.first===null&&g.nodes===null&&g.teardown===null&&g.ac===null&&wr(g),me?.size>0)){Ce.clear();for(const v of me){if((v.f&(ke|we))!==0)continue;const b=[v];let w=v.parent;for(;w!==null;)me.has(w)&&(me.delete(w),b.push(w)),w=w.parent;for(let u=b.length-1;u>=0;u--){const h=b[u];(h.f&(ke|we))===0&&ni(h)}}me.clear()}}me=null}}function nr(n,i,a,g){if(!a.has(n)&&(a.add(n),n.reactions!==null))for(const v of n.reactions){const b=v.f;(b&Pt)!==0?nr(v,i,a,g):(b&(Yn|_e))!==0&&(b&Yt)===0&&rr(v,i,g)&&(Bt(v,Yt),fn(v))}}function rr(n,i,a){const g=a.get(n);if(g!==void 0)return g;if(n.deps!==null)for(const v of n.deps){if(Ze.call(i,v))return!0;if((v.f&Pt)!==0&&rr(v,i,a))return a.set(v,!0),!0}return a.set(n,!1),!1}function fn(n){Lt.schedule(n)}function sr(n,i){if(!((n.f&ve)!==0&&(n.f&It)!==0)){(n.f&Yt)!==0?i.d.push(n):(n.f&fe)!==0&&i.m.push(n),Bt(n,It);for(var a=n.first;a!==null;)sr(a,i),a=a.next}}function ar(n){Bt(n,It);for(var i=n.first;i!==null;)ar(i),i=i.next}function Ws(n){let i=0,a=Vi(0),g;return()=>{xn()&&(Rt(a),_r(()=>(i===0&&(g=_n(()=>n(()=>_i(a)))),i+=1,()=>{Ve(()=>{i-=1,i===0&&(g?.(),g=void 0,_i(a))})})))}}var Zs=Bi|Je;function Ks(n,i,a,g){new Qs(n,i,a,g)}class Qs{parent;is_pending=!1;transform_error;#t;#i=ae?Ht:null;#s;#l;#a;#e=null;#n=null;#r=null;#o=null;#f=0;#u=0;#c=!1;#p=new Set;#d=new Set;#h=null;#g=Ws(()=>(this.#h=Vi(this.#f),()=>{this.#h=null}));constructor(i,a,g,v){this.#t=i,this.#s=a,this.#l=b=>{var w=At;w.b=this,w.f|=en,g(b)},this.parent=At.b,this.transform_error=v??this.parent?.transform_error??(b=>b),this.#a=ca(()=>{if(ae){const b=this.#i;Xn();const w=b.data===Bn;if(b.data.startsWith(On)){const h=JSON.parse(b.data.slice(On.length));this.#b(h)}else w?this.#w():this.#v()}else this.#y()},Zs),ae&&(this.#t=Ht)}#v(){try{this.#e=De(()=>this.#l(this.#t))}catch(i){this.error(i)}}#b(i){const a=this.#s.failed;a&&(this.#r=De(()=>{a(this.#t,()=>i,()=>()=>{})}))}#w(){const i=this.#s.pending;i&&(this.is_pending=!0,this.#n=De(()=>i(this.#t)),Ve(()=>{var a=this.#o=document.createDocumentFragment(),g=vr();a.append(g),this.#e=this.#x(()=>De(()=>this.#l(g))),this.#u===0&&(this.#t.before(a),this.#o=null,Di(this.#n,()=>{this.#n=null}),this.#m(Lt))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#f=0,this.#e=De(()=>{this.#l(this.#t)}),this.#u>0){var i=this.#o=document.createDocumentFragment();ga(this.#e,i);const a=this.#s.pending;this.#n=De(()=>a(this.#t))}else this.#m(Lt)}catch(a){this.error(a)}}#m(i){this.is_pending=!1,i.transfer_effects(this.#p,this.#d)}defer_effect(i){tr(i,this.#p,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#x(i){var a=At,g=Ct,v=Wt;Fe(this.#a),de(this.#a),Pi(this.#a.ctx);try{return Me.ensure(),i()}catch(b){return Qn(b),null}finally{Fe(a),de(g),Pi(v)}}#_(i,a){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(i,a);return}this.#u+=i,this.#u===0&&(this.#m(a),this.#n&&Di(this.#n,()=>{this.#n=null}),this.#o&&(this.#t.before(this.#o),this.#o=null))}update_pending_count(i,a){this.#_(i,a),this.#f+=i,!(!this.#h||this.#c)&&(this.#c=!0,Ve(()=>{this.#c=!1,this.#h&&fr(this.#h,this.#f)}))}get_effect_pending(){return this.#g(),Rt(this.#h)}error(i){var a=this.#s.onerror;let g=this.#s.failed;if(!a&&!g)throw i;this.#e&&(le(this.#e),this.#e=null),this.#n&&(le(this.#n),this.#n=null),this.#r&&(le(this.#r),this.#r=null),ae&&(xi(this.#i),Vs(),xi(Ds()));var v=!1,b=!1;const w=()=>{if(v){Is();return}v=!0,b&&Ps(),this.#r!==null&&Di(this.#r,()=>{this.#r=null}),this.#x(()=>{this.#y()})},u=h=>{try{b=!0,a?.(h,w),b=!1}catch(C){ti(C,this.#a&&this.#a.parent)}g&&(this.#r=this.#x(()=>{try{return De(()=>{var C=At;C.b=this,C.f|=en,g(this.#t,()=>h,()=>w)})}catch(C){return ti(C,this.#a.parent),null}}))};Ve(()=>{var h;try{h=this.transform_error(i)}catch(C){ti(C,this.#a&&this.#a.parent);return}h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(u,C=>ti(C,this.#a&&this.#a.parent)):u(h)})}}function or(n){var i=Pt|Yt,a=Ct!==null&&(Ct.f&Pt)!==0?Ct:null;return At!==null&&(At.f|=Je),{ctx:Wt,deps:null,effects:null,equals:Gn,f:i,fn:n,reactions:null,rv:0,v:Vt,wv:0,parent:a??At,ac:null}}function Js(n){const i=or(n);return Mr(i),i}function ta(n){var i=n.effects;if(i!==null){n.effects=null;for(var a=0;a<i.length;a+=1)le(i[a])}}function ea(n){for(var i=n.parent;i!==null;){if((i.f&Pt)===0)return(i.f&ke)===0?i:null;i=i.parent}return null}function cn(n){var i,a=At;Fe(ea(n));try{n.f&=~Pe,ta(n),i=Tr(n)}finally{Fe(a)}return i}function lr(n){var i=n.v,a=cn(n);if(!n.equals(a)&&(n.wv=Sr(),(!Lt?.is_fork||n.deps===null)&&(n.v=a,Lt?.capture(n,i,!0),n.deps===null))){Bt(n,It);return}Se||(oe!==null?(xn()||Lt?.is_fork)&&oe.set(n,a):on(n))}function ia(n){if(n.effects!==null)for(const i of n.effects)(i.teardown||i.ac)&&(i.teardown?.(),i.ac?.abort(sn),i.teardown=Es,i.ac=null,ki(i,0),yn(i))}function ur(n){if(n.effects!==null)for(const i of n.effects)i.teardown&&ni(i)}let dn=new Set;const Ce=new Map;let hr=!1;function Vi(n,i){var a={f:0,v:n,reactions:null,equals:Gn,rv:0,wv:0};return a}function ce(n,i){const a=Vi(n);return Mr(a),a}function na(n,i=!1,a=!0){const g=Vi(n);return i||(g.equals=Ys),g}function Zt(n,i,a=!1){Ct!==null&&(!ue||(Ct.f&jn)!==0)&&Zn()&&(Ct.f&(Pt|_e|Yn|jn))!==0&&(ne===null||!Ze.call(ne,n))&&Os();let g=a?bi(i):i;return fr(n,g,Ii)}function fr(n,i,a=null){if(!n.equals(i)){var g=n.v;Se?Ce.set(n,i):Ce.set(n,g),n.v=i;var v=Me.ensure();if(v.capture(n,g),(n.f&Pt)!==0){const b=n;(n.f&Yt)!==0&&cn(b),oe===null&&on(b)}n.wv=Sr(),cr(n,Yt,a),At!==null&&(At.f&It)!==0&&(At.f&(ve|be))===0&&(re===null?va([n]):re.push(n)),!v.is_fork&&dn.size>0&&!hr&&ra()}return i}function ra(){hr=!1;for(const n of dn)(n.f&It)!==0&&Bt(n,fe),wi(n)&&ni(n);dn.clear()}function _i(n){Zt(n,n.v+1)}function cr(n,i,a){var g=n.reactions;if(g!==null)for(var v=g.length,b=0;b<v;b++){var w=g[b],u=w.f,h=(u&Yt)===0;if(h&&Bt(w,i),(u&Pt)!==0){var C=w;oe?.delete(C),(u&Pe)===0&&(u&ie&&(w.f|=Pe),cr(C,fe,a))}else if(h){var F=w;(u&_e)!==0&&me!==null&&me.add(F),a!==null?a.push(F):fn(F)}}}function bi(n){if(typeof n!="object"||n===null||rn in n)return n;const i=ks(n);if(i!==bs&&i!==ws)return n;var a=new Map,g=xs(n),v=ce(0),b=Ye,w=u=>{if(Ye===b)return u();var h=Ct,C=Ye;de(null),$r(b);var F=u();return de(h),$r(C),F};return g&&a.set("length",ce(n.length)),new Proxy(n,{defineProperty(u,h,C){(!("value"in C)||C.configurable===!1||C.enumerable===!1||C.writable===!1)&&Ls();var F=a.get(h);return F===void 0?w(()=>{var K=ce(C.value);return a.set(h,K),K}):Zt(F,C.value,!0),!0},deleteProperty(u,h){var C=a.get(h);if(C===void 0){if(h in u){const F=w(()=>ce(Vt));a.set(h,F),_i(v)}}else Zt(C,Vt),_i(v);return!0},get(u,h,C){if(h===rn)return n;var F=a.get(h),K=h in u;if(F===void 0&&(!K||Ke(u,h)?.writable)&&(F=w(()=>{var nt=bi(K?u[h]:Vt),U=ce(nt);return U}),a.set(h,F)),F!==void 0){var q=Rt(F);return q===Vt?void 0:q}return Reflect.get(u,h,C)},getOwnPropertyDescriptor(u,h){var C=Reflect.getOwnPropertyDescriptor(u,h);if(C&&"value"in C){var F=a.get(h);F&&(C.value=Rt(F))}else if(C===void 0){var K=a.get(h),q=K?.v;if(K!==void 0&&q!==Vt)return{enumerable:!0,configurable:!0,value:q,writable:!0}}return C},has(u,h){if(h===rn)return!0;var C=a.get(h),F=C!==void 0&&C.v!==Vt||Reflect.has(u,h);if(C!==void 0||At!==null&&(!F||Ke(u,h)?.writable)){C===void 0&&(C=w(()=>{var q=F?bi(u[h]):Vt,nt=ce(q);return nt}),a.set(h,C));var K=Rt(C);if(K===Vt)return!1}return F},set(u,h,C,F){var K=a.get(h),q=h in u;if(g&&h==="length")for(var nt=C;nt<K.v;nt+=1){var U=a.get(nt+"");U!==void 0?Zt(U,Vt):nt in u&&(U=w(()=>ce(Vt)),a.set(nt+"",U))}if(K===void 0)(!q||Ke(u,h)?.writable)&&(K=w(()=>ce(void 0)),Zt(K,bi(C)),a.set(h,K));else{q=K.v!==Vt;var H=w(()=>bi(C));Zt(K,H)}var gt=Reflect.getOwnPropertyDescriptor(u,h);if(gt?.set&&gt.set.call(F,C),!q){if(g&&typeof h=="string"){var bt=a.get("length"),W=Number(h);Number.isInteger(W)&&W>=bt.v&&Zt(bt,W+1)}_i(v)}return!0},ownKeys(u){Rt(v);var h=Reflect.ownKeys(u).filter(K=>{var q=a.get(K);return q===void 0||q.v!==Vt});for(var[C,F]of a)F.v!==Vt&&!(C in u)&&h.push(C);return h},setPrototypeOf(){Bs()}})}var pn,dr,pr,gr;function gn(){if(pn===void 0){pn=window,dr=/Firefox/.test(navigator.userAgent);var n=Element.prototype,i=Node.prototype,a=Text.prototype;pr=Ke(i,"firstChild").get,gr=Ke(i,"nextSibling").get,In(n)&&(n.__click=void 0,n.__className=void 0,n.__attributes=null,n.__style=void 0,n.__e=void 0),In(a)&&(a.__t=void 0)}}function vr(n=""){return document.createTextNode(n)}function mr(n){return pr.call(n)}function ii(n){return gr.call(n)}function sa(n){n.textContent=""}function vn(n,i,a){return document.createElementNS(vs,n,void 0)}function mn(n){var i=Ct,a=At;de(null),Fe(null);try{return n()}finally{de(i),Fe(a)}}function aa(n){At===null&&(Ct===null&&Ns(),As()),Se&&Ts()}function oa(n,i){var a=i.last;a===null?i.last=i.first=n:(a.next=n,n.prev=a,i.last=n)}function $e(n,i){var a=At;a!==null&&(a.f&we)!==0&&(n|=we);var g={ctx:Wt,deps:null,nodes:null,f:n|Yt|ie,first:null,fn:i,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,wv:0,ac:null},v=g;if((n&Qe)!==0)ei!==null?ei.push(g):Me.ensure().schedule(g);else if(i!==null){try{ni(g)}catch(w){throw le(g),w}v.deps===null&&v.teardown===null&&v.nodes===null&&v.first===v.last&&(v.f&Je)===0&&(v=v.first,(n&_e)!==0&&(n&Bi)!==0&&v!==null&&(v.f|=Bi))}if(v!==null&&(v.parent=a,a!==null&&oa(v,a),Ct!==null&&(Ct.f&Pt)!==0&&(n&be)===0)){var b=Ct;(b.effects??=[]).push(v)}return g}function xn(){return Ct!==null&&!ue}function la(n){const i=$e(tn,null);return Bt(i,It),i.teardown=n,i}function xr(n){aa();var i=At.f,a=!Ct&&(i&ve)!==0&&(i&Oe)===0;if(a){var g=Wt;(g.e??=[]).push(n)}else return yr(n)}function yr(n){return $e(Qe|Ss,n)}function ua(n){Me.ensure();const i=$e(be|Je,n);return()=>{le(i)}}function ha(n){Me.ensure();const i=$e(be|Je,n);return(a={})=>new Promise(g=>{a.outro?Di(i,()=>{le(i),g(void 0)}):(le(i),g(void 0))})}function fa(n){return $e(Qe,n)}function _r(n,i=0){return $e(tn|i,n)}function ca(n,i=0){var a=$e(_e|i,n);return a}function De(n){return $e(ve|Je,n)}function br(n){var i=n.teardown;if(i!==null){const a=Se,g=Ct;Er(!0),de(null);try{i.call(null)}finally{Er(a),de(g)}}}function yn(n,i=!1){var a=n.first;for(n.first=n.last=null;a!==null;){const v=a.ac;v!==null&&mn(()=>{v.abort(sn)});var g=a.next;(a.f&be)!==0?a.parent=null:le(a,i),a=g}}function da(n){for(var i=n.first;i!==null;){var a=i.next;(i.f&ve)===0&&le(i),i=a}}function le(n,i=!0){var a=!1;(i||(n.f&$s)!==0)&&n.nodes!==null&&n.nodes.end!==null&&(pa(n.nodes.start,n.nodes.end),a=!0),Bt(n,Dn),yn(n,i&&!a),ki(n,0);var g=n.nodes&&n.nodes.t;if(g!==null)for(const b of g)b.stop();br(n),n.f^=Dn,n.f|=ke;var v=n.parent;v!==null&&v.first!==null&&wr(n),n.next=n.prev=n.teardown=n.ctx=n.deps=n.fn=n.nodes=n.ac=n.b=null}function pa(n,i){for(;n!==null;){var a=n===i?null:ii(n);n.remove(),n=a}}function wr(n){var i=n.parent,a=n.prev,g=n.next;a!==null&&(a.next=g),g!==null&&(g.prev=a),i!==null&&(i.first===n&&(i.first=g),i.last===n&&(i.last=a))}function Di(n,i,a=!0){var g=[];kr(n,g,!0);var v=()=>{a&&le(n),i&&i()},b=g.length;if(b>0){var w=()=>--b||v();for(var u of g)u.out(w)}else v()}function kr(n,i,a){if((n.f&we)===0){n.f^=we;var g=n.nodes&&n.nodes.t;if(g!==null)for(const u of g)(u.is_global||a)&&i.push(u);for(var v=n.first;v!==null;){var b=v.next,w=(v.f&Bi)!==0||(v.f&ve)!==0&&(n.f&_e)!==0;kr(v,i,w?a:!1),v=b}}}function ga(n,i){if(n.nodes)for(var a=n.nodes.start,g=n.nodes.end;a!==null;){var v=a===g?null:ii(a);i.append(a),a=v}}let ji=!1,Se=!1;function Er(n){Se=n}let Ct=null,ue=!1;function de(n){Ct=n}let At=null;function Fe(n){At=n}let ne=null;function Mr(n){Ct!==null&&(ne===null?ne=[n]:ne.push(n))}let Xt=null,Kt=0,re=null;function va(n){re=n}let Cr=1,je=0,Ye=je;function $r(n){Ye=n}function Sr(){return++Cr}function wi(n){var i=n.f;if((i&Yt)!==0)return!0;if(i&Pt&&(n.f&=~Pe),(i&fe)!==0){for(var a=n.deps,g=a.length,v=0;v<g;v++){var b=a[v];if(wi(b)&&lr(b),b.wv>n.wv)return!0}(i&ie)!==0&&oe===null&&Bt(n,It)}return!1}function Fr(n,i,a=!0){var g=n.reactions;if(g!==null&&!(ne!==null&&Ze.call(ne,n)))for(var v=0;v<g.length;v++){var b=g[v];(b.f&Pt)!==0?Fr(b,i,!1):i===b&&(a?Bt(b,Yt):(b.f&It)!==0&&Bt(b,fe),fn(b))}}function Tr(n){var i=Xt,a=Kt,g=re,v=Ct,b=ne,w=Wt,u=ue,h=Ye,C=n.f;Xt=null,Kt=0,re=null,Ct=(C&(ve|be))===0?n:null,ne=null,Pi(n.ctx),ue=!1,Ye=++je,n.ac!==null&&(mn(()=>{n.ac.abort(sn)}),n.ac=null);try{n.f|=nn;var F=n.fn,K=F();n.f|=Oe;var q=n.deps,nt=Lt?.is_fork;if(Xt!==null){var U;if(nt||ki(n,Kt),q!==null&&Kt>0)for(q.length=Kt+Xt.length,U=0;U<Xt.length;U++)q[Kt+U]=Xt[U];else n.deps=q=Xt;if(xn()&&(n.f&ie)!==0)for(U=Kt;U<q.length;U++)(q[U].reactions??=[]).push(n)}else!nt&&q!==null&&Kt<q.length&&(ki(n,Kt),q.length=Kt);if(Zn()&&re!==null&&!ue&&q!==null&&(n.f&(Pt|fe|Yt))===0)for(U=0;U<re.length;U++)Fr(re[U],n);if(v!==null&&v!==n){if(je++,v.deps!==null)for(let H=0;H<a;H+=1)v.deps[H].rv=je;if(i!==null)for(const H of i)H.rv=je;re!==null&&(g===null?g=re:g.push(...re))}return(n.f&mi)!==0&&(n.f^=mi),K}catch(H){return Qn(H)}finally{n.f^=nn,Xt=i,Kt=a,re=g,Ct=v,ne=b,Pi(w),ue=u,Ye=h}}function ma(n,i){let a=i.reactions;if(a!==null){var g=ys.call(a,n);if(g!==-1){var v=a.length-1;v===0?a=i.reactions=null:(a[g]=a[v],a.pop())}}if(a===null&&(i.f&Pt)!==0&&(Xt===null||!Ze.call(Xt,i))){var b=i;(b.f&ie)!==0&&(b.f^=ie,b.f&=~Pe),on(b),ia(b),ki(b,0)}}function ki(n,i){var a=n.deps;if(a!==null)for(var g=i;g<a.length;g++)ma(n,a[g])}function ni(n){var i=n.f;if((i&ke)===0){Bt(n,It);var a=At,g=ji;At=n,ji=!0;try{(i&(_e|Vn))!==0?da(n):yn(n),br(n);var v=Tr(n);n.teardown=typeof v=="function"?v:null,n.wv=Cr;var b;ms&&Hs&&(n.f&Yt)!==0&&n.deps}finally{ji=g,At=a}}}function Rt(n){var i=n.f,a=(i&Pt)!==0;if(Ct!==null&&!ue){var g=At!==null&&(At.f&ke)!==0;if(!g&&(ne===null||!Ze.call(ne,n))){var v=Ct.deps;if((Ct.f&nn)!==0)n.rv<je&&(n.rv=je,Xt===null&&v!==null&&v[Kt]===n?Kt++:Xt===null?Xt=[n]:Xt.push(n));else{(Ct.deps??=[]).push(n);var b=n.reactions;b===null?n.reactions=[Ct]:Ze.call(b,Ct)||b.push(Ct)}}}if(Se&&Ce.has(n))return Ce.get(n);if(a){var w=n;if(Se){var u=w.v;return((w.f&It)===0&&w.reactions!==null||Nr(w))&&(u=cn(w)),Ce.set(w,u),u}var h=(w.f&ie)===0&&!ue&&Ct!==null&&(ji||(Ct.f&ie)!==0),C=(w.f&Oe)===0;wi(w)&&(h&&(w.f|=ie),lr(w)),h&&!C&&(ur(w),Ar(w))}if(oe?.has(n))return oe.get(n);if((n.f&mi)!==0)throw n.v;return n.v}function Ar(n){if(n.f|=ie,n.deps!==null)for(const i of n.deps)(i.reactions??=[]).push(n),(i.f&Pt)!==0&&(i.f&ie)===0&&(ur(i),Ar(i))}function Nr(n){if(n.v===Vt)return!0;if(n.deps===null)return!1;for(const i of n.deps)if(Ce.has(i)||(i.f&Pt)!==0&&Nr(i))return!0;return!1}function _n(n){var i=ue;try{return ue=!0,n()}finally{ue=i}}const Yi=Symbol("events"),xa=new Set,Rr=new Set;function ya(n,i,a,g={}){function v(b){if(g.capture||bn.call(i,b),!b.cancelBubble)return mn(()=>a?.call(this,b))}return n.startsWith("pointer")||n.startsWith("touch")||n==="wheel"?Ve(()=>{i.addEventListener(n,v,g)}):i.addEventListener(n,v,g),v}function _a(n,i,a,g,v){var b={capture:g,passive:v},w=ya(n,i,a,b);(i===document.body||i===window||i===document||i instanceof HTMLMediaElement)&&la(()=>{i.removeEventListener(n,w,b)})}let zr=null;function bn(n){var i=this,a=i.ownerDocument,g=n.type,v=n.composedPath?.()||[],b=v[0]||n.target;zr=n;var w=0,u=zr===n&&n[Yi];if(u){var h=v.indexOf(u);if(h!==-1&&(i===document||i===window)){n[Yi]=i;return}var C=v.indexOf(i);if(C===-1)return;h<=C&&(w=h)}if(b=v[w]||n.target,b!==i){Li(n,"currentTarget",{configurable:!0,get(){return b||a}});var F=Ct,K=At;de(null),Fe(null);try{for(var q,nt=[];b!==null;){var U=b.assignedSlot||b.parentNode||b.host||null;try{var H=b[Yi]?.[g];H!=null&&(!b.disabled||n.target===b)&&H.call(b,n)}catch(gt){q?nt.push(gt):q=gt}if(n.cancelBubble||U===i||U===null)break;b=U}if(q){for(let gt of nt)queueMicrotask(()=>{throw gt});throw q}}finally{n[Yi]=i,delete n.currentTarget,de(F),Fe(K)}}}const ba=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:n=>n});function wa(n){return ba?.createHTML(n)??n}function ka(n){var i=vn("template");return i.innerHTML=wa(n.replaceAll("<!>","<!---->")),i.content}function wn(n,i){var a=At;a.nodes===null&&(a.nodes={start:n,end:i,a:null,t:null})}function Ea(n,i){var a=(i&gs)!==0,g,v=!n.startsWith("<!>");return()=>{if(ae)return wn(Ht,null),Ht;g===void 0&&(g=ka(v?n:"<!>"+n),g=mr(g));var b=a||dr?document.importNode(g,!0):g.cloneNode(!0);return wn(b,b),b}}function Lr(n,i){if(ae){var a=At;((a.f&Oe)===0||a.nodes.end===null)&&(a.nodes.end=Ht),Xn();return}n!==null&&n.before(i)}const Ma=["touchstart","touchmove"];function Ca(n){return Ma.includes(n)}function Br(n,i){return Or(n,i)}function $a(n,i){gn(),i.intro=i.intro??!1;const a=i.target,g=ae,v=Ht;try{for(var b=mr(a);b&&(b.nodeType!==an||b.data!==Ln);)b=ii(b);if(!b)throw Ri;Oi(!0),xi(b);const w=Or(n,{...i,anchor:b});return Oi(!1),w}catch(w){if(w instanceof Error&&w.message.split(`
2
- `).some(u=>u.startsWith("https://svelte.dev/e/")))throw w;return w!==Ri&&console.warn("Failed to hydrate: ",w),i.recover===!1&&zs(),gn(),sa(a),Oi(!1),Br(n,i)}finally{Oi(g),xi(v)}}const Hi=new Map;function Or(n,{target:i,anchor:a,props:g={},events:v,context:b,intro:w=!0,transformError:u}){gn();var h=void 0,C=ha(()=>{var F=a??i.appendChild(vr());Ks(F,{pending:()=>{}},nt=>{Un({});var U=Wt;if(b&&(U.c=b),v&&(g.$$events=v),ae&&wn(nt,null),h=n(nt,g)||{},ae&&(At.nodes.end=Ht,Ht===null||Ht.nodeType!==an||Ht.data!==Pn))throw qn(),Ri;Wn()},u);var K=new Set,q=nt=>{for(var U=0;U<nt.length;U++){var H=nt[U];if(!K.has(H)){K.add(H);var gt=Ca(H);for(const z of[i,document]){var bt=Hi.get(z);bt===void 0&&(bt=new Map,Hi.set(z,bt));var W=bt.get(H);W===void 0?(z.addEventListener(H,bn,{passive:gt}),bt.set(H,1)):bt.set(H,W+1)}}}};return q(_s(xa)),Rr.add(q),()=>{for(var nt of K)for(const gt of[i,document]){var U=Hi.get(gt),H=U.get(nt);--H==0?(gt.removeEventListener(nt,bn),U.delete(nt),U.size===0&&Hi.delete(gt)):U.set(nt,H)}Rr.delete(q),F!==a&&F.parentNode?.removeChild(F)}});return kn.set(h,C),h}let kn=new WeakMap;function Sa(n,i){const a=kn.get(n);return a?(kn.delete(n),a(i)):Promise.resolve()}function Pr(n){Wt===null&&Hn(),xr(()=>{const i=_n(n);if(typeof i=="function")return i})}function Fa(n){Wt===null&&Hn(),Pr(()=>()=>_n(n))}function Ta(n,i){fa(()=>{var a=n.getRootNode(),g=a.host?a:a.head??a.ownerDocument.head;if(!g.querySelector("#"+i.hash)){const v=vn("style");v.id=i.hash,v.textContent=i.code,g.appendChild(v)}})}function Ir(n,i,a,g){var v=g,b=!0,w=()=>(b&&(b=!1,v=g),v),u;u=n[i],u===void 0&&g!==void 0&&(u=w());var h;h=()=>{var q=n[i];return q===void 0?w():(b=!0,q)};var C=!1,F=or(()=>(C=!1,h())),K=At;return(function(q,nt){if(arguments.length>0){const U=nt?Rt(F):q;return Zt(F,U),C=!0,v!==void 0&&(v=U),q}return Se&&C||(K.f&ke)!==0?F.v:Rt(F)})}function Aa(n){return new Na(n)}class Na{#t;#i;constructor(i){var a=new Map,g=(b,w)=>{var u=na(w,!1,!1);return a.set(b,u),u};const v=new Proxy({...i.props||{},$$events:{}},{get(b,w){return Rt(a.get(w)??g(w,Reflect.get(b,w)))},has(b,w){return w===Fs?!0:(Rt(a.get(w)??g(w,Reflect.get(b,w))),Reflect.has(b,w))},set(b,w,u){return Zt(a.get(w)??g(w,u),u),Reflect.set(b,w,u)}});this.#i=(i.hydrate?$a:Br)(i.component,{target:i.target,anchor:i.anchor,props:v,context:i.context,intro:i.intro??!1,recover:i.recover,transformError:i.transformError}),(!i?.props?.$$host||i.sync===!1)&&hn(),this.#t=v.$$events;for(const b of Object.keys(this.#i))b==="$set"||b==="$destroy"||b==="$on"||Li(this,b,{get(){return this.#i[b]},set(w){this.#i[b]=w},enumerable:!0});this.#i.$set=b=>{Object.assign(v,b)},this.#i.$destroy=()=>{Sa(this.#i)}}$set(i){this.#i.$set(i)}$on(i,a){this.#t[i]=this.#t[i]||[];const g=(...v)=>a.call(this,...v);return this.#t[i].push(g),()=>{this.#t[i]=this.#t[i].filter(v=>v!==g)}}$destroy(){this.#i.$destroy()}}let Vr;typeof HTMLElement=="function"&&(Vr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(n,i,a){super(),this.$$ctor=n,this.$$s=i,a&&(this.$$shadowRoot=this.attachShadow(a))}addEventListener(n,i,a){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(i),this.$$c){const g=this.$$c.$on(n,i);this.$$l_u.set(i,g)}super.addEventListener(n,i,a)}removeEventListener(n,i,a){if(super.removeEventListener(n,i,a),this.$$c){const g=this.$$l_u.get(i);g&&(g(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let n=function(g){return v=>{const b=vn("slot");g!=="default"&&(b.name=g),Lr(v,b)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const i={},a=Ra(this);for(const g of this.$$s)g in a&&(g==="default"&&!this.$$d.children?(this.$$d.children=n(g),i.default=!0):i[g]=n(g));for(const g of this.attributes){const v=this.$$g_p(g.name);v in this.$$d||(this.$$d[v]=qi(v,g.value,this.$$p_d,"toProp"))}for(const g in this.$$p_d)!(g in this.$$d)&&this[g]!==void 0&&(this.$$d[g]=this[g],delete this[g]);this.$$c=Aa({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=ua(()=>{_r(()=>{this.$$r=!0;for(const g of zi(this.$$c)){if(!this.$$p_d[g]?.reflect)continue;this.$$d[g]=this.$$c[g];const v=qi(g,this.$$d[g],this.$$p_d,"toAttribute");v==null?this.removeAttribute(this.$$p_d[g].attribute||g):this.setAttribute(this.$$p_d[g].attribute||g,v)}this.$$r=!1})});for(const g in this.$$l)for(const v of this.$$l[g]){const b=this.$$c.$on(g,v);this.$$l_u.set(v,b)}this.$$l={}}}attributeChangedCallback(n,i,a){this.$$r||(n=this.$$g_p(n),this.$$d[n]=qi(n,a,this.$$p_d,"toProp"),this.$$c?.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(n){return zi(this.$$p_d).find(i=>this.$$p_d[i].attribute===n||!this.$$p_d[i].attribute&&i.toLowerCase()===n)||n}});function qi(n,i,a,g){const v=a[n]?.type;if(i=v==="Boolean"&&typeof i!="boolean"?i!=null:i,!g||!a[n])return i;if(g==="toAttribute")switch(v){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i??null;default:return i}else switch(v){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function Ra(n){const i={};return n.childNodes.forEach(a=>{i[a.slot||"default"]=!0}),i}function za(n,i,a,g,v,b){let w=class extends Vr{constructor(){super(n,a,v),this.$$p_d=i}static get observedAttributes(){return zi(i).map(u=>(i[u].attribute||u).toLowerCase())}};return zi(i).forEach(u=>{Li(w.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(h){h=qi(u,h,i),this.$$d[u]=h;var C=this.$$c;if(C){var F=Ke(C,u)?.get;F?C[u]=h:C.$set({[u]:h})}}})}),g.forEach(u=>{Li(w.prototype,u,{get(){return this.$$c?.[u]}})}),n.element=w,w}function La(n,i=100,a={}){if(typeof n!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof n}\`.`);if(i<0)throw new RangeError("`wait` must not be negative.");if(typeof a=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:g}=a;let v,b,w,u,h;function C(){const q=v,nt=b;return v=void 0,b=void 0,h=n.apply(q,nt),h}function F(){const q=Date.now()-u;q<i&&q>=0?w=setTimeout(F,i-q):(w=void 0,g||(h=C()))}const K=function(...q){if(v&&this!==v&&Object.getPrototypeOf(this)===Object.getPrototypeOf(v))throw new Error("Debounced method called with different contexts of the same prototype.");v=this,b=q,u=Date.now();const nt=g&&!w;if(w||(w=setTimeout(F,i)),nt)return h=C(),h};return Object.defineProperty(K,"isPending",{get(){return w!==void 0}}),K.clear=()=>{w&&(clearTimeout(w),w=void 0,v=void 0,b=void 0)},K.flush=()=>{w&&K.trigger()},K.trigger=()=>{h=C(),K.clear()},K}function Ba(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var En={exports:{}},Dr;function Oa(){return Dr||(Dr=1,(function(n,i){(function(a,g){n.exports=g()})(window,function(){return(function(a){var g={};function v(b){if(g[b])return g[b].exports;var w=g[b]={i:b,l:!1,exports:{}};return a[b].call(w.exports,w,w.exports,v),w.l=!0,w.exports}return v.m=a,v.c=g,v.d=function(b,w,u){v.o(b,w)||Object.defineProperty(b,w,{enumerable:!0,get:u})},v.r=function(b){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},v.t=function(b,w){if(1&w&&(b=v(b)),8&w||4&w&&typeof b=="object"&&b&&b.__esModule)return b;var u=Object.create(null);if(v.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:b}),2&w&&typeof b!="string")for(var h in b)v.d(u,h,(function(C){return b[C]}).bind(null,h));return u},v.n=function(b){var w=b&&b.__esModule?function(){return b.default}:function(){return b};return v.d(w,"a",w),w},v.o=function(b,w){return Object.prototype.hasOwnProperty.call(b,w)},v.p="",v(v.s=1)})([function(a,g,v){var b,w;b=[v(2)],(w=(function(u){function h(t){if(h.is(t,"function"))return C?t():u.on("raphael.DOMload",t);if(h.is(t,yt))return h._engine.create[W](h,t.splice(0,3+h.is(t[0],ct))).add(t);var e=Array.prototype.slice.call(arguments,0);if(h.is(e[e.length-1],"function")){var r=e.pop();return C?r.call(h._engine.create[W](h,e)):u.on("raphael.DOMload",function(){r.call(h._engine.create[W](h,e))})}return h._engine.create[W](h,arguments)}h.version="2.3.0",h.eve=u;var C,F,K=/[, ]+/,q={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},nt=/\{(\d+)\}/g,U="hasOwnProperty",H={doc:document,win:window},gt={was:Object.prototype[U].call(H.win,"Raphael"),is:H.win.Raphael},bt=function(){this.ca=this.customAttributes={}},W="apply",z="concat",J="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,lt="",ft=" ",I=String,et="split",rt="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[et](ft),kt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},st=I.prototype.toLowerCase,G=Math,Q=G.max,Z=G.min,ot=G.abs,_t=G.pow,St=G.PI,ct="number",yt="array",Jt=Object.prototype.toString,p=(h._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),f={NaN:1,Infinity:1,"-Infinity":1},o=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,c=G.round,_=parseFloat,E=parseInt,M=I.prototype.toUpperCase,L=h._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},$=h._availableAnimAttrs={blur:ct,"clip-rect":"csv",cx:ct,cy:ct,fill:"colour","fill-opacity":ct,"font-size":ct,height:ct,opacity:ct,path:"path",r:ct,rx:ct,ry:ct,stroke:"colour","stroke-opacity":ct,"stroke-width":ct,transform:"transform",width:ct,x:ct,y:ct},R=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,X={hs:1,rg:1},it=/,?([achlmqrstvxz]),?/gi,pt=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,xt=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,dt=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,Et=(h._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),$t=function(t,e){return _(t)-_(e)},wt=function(t){return t},at=h._rectPath=function(t,e,r,s,l){return l?[["M",t+l,e],["l",r-2*l,0],["a",l,l,0,0,1,l,l],["l",0,s-2*l],["a",l,l,0,0,1,-l,l],["l",2*l-r,0],["a",l,l,0,0,1,-l,-l],["l",0,2*l-s],["a",l,l,0,0,1,l,-l],["z"]]:[["M",t,e],["l",r,0],["l",0,s],["l",-r,0],["z"]]},Ft=function(t,e,r,s){return s==null&&(s=r),[["M",t,e],["m",0,-s],["a",r,s,0,1,1,0,2*s],["a",r,s,0,1,1,0,-2*s],["z"]]},zt=h._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return Ft(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return Ft(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return at(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return at(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return at(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return at(e.x,e.y,e.width,e.height)}},Ot=h.mapPath=function(t,e){if(!e)return t;var r,s,l,d,x,m,y;for(l=0,x=(t=Fi(t)).length;l<x;l++)for(d=1,m=(y=t[l]).length;d<m;d+=2)r=e.x(y[d],y[d+1]),s=e.y(y[d],y[d+1]),y[d]=r,y[d+1]=s;return t};if(h._g=H,h.type=H.win.SVGAngle||H.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",h.type=="VML"){var Nt,te=H.doc.createElement("div");if(te.innerHTML='<v:shape adj="1"/>',(Nt=te.firstChild).style.behavior="url(#default#VML)",!Nt||typeof Nt.adj!="object")return h.type=lt;te=null}function qt(t){if(typeof t=="function"||Object(t)!==t)return t;var e=new t.constructor;for(var r in t)t[U](r)&&(e[r]=qt(t[r]));return e}h.svg=!(h.vml=h.type=="VML"),h._Paper=bt,h.fn=F=bt.prototype=h.prototype,h._id=0,h.is=function(t,e){return(e=st.call(e))=="finite"?!f[U](+t):e=="array"?t instanceof Array:e=="null"&&t===null||e==typeof t&&t!==null||e=="object"&&t===Object(t)||e=="array"&&Array.isArray&&Array.isArray(t)||Jt.call(t).slice(8,-1).toLowerCase()==e},h.angle=function(t,e,r,s,l,d){if(l==null){var x=t-r,m=e-s;return x||m?(180+180*G.atan2(-m,-x)/St+360)%360:0}return h.angle(t,e,l,d)-h.angle(r,s,l,d)},h.rad=function(t){return t%360*St/180},h.deg=function(t){return Math.round(180*t/St%360*1e3)/1e3},h.snapTo=function(t,e,r){if(r=h.is(r,"finite")?r:10,h.is(t,yt)){for(var s=t.length;s--;)if(ot(t[s]-e)<=r)return t[s]}else{var l=e%(t=+t);if(l<r)return e-l;if(l>t-r)return e-l+t}return e};var Te,Mi;h.createUUID=(Te=/[xy]/g,Mi=function(t){var e=16*G.random()|0;return(t=="x"?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Te,Mi).toUpperCase()}),h.setWindow=function(t){u("raphael.setWindow",h,H.win,t),H.win=t,H.doc=H.win.document,h._engine.initWin&&h._engine.initWin(H.win)};var Ae=function(t){if(h.vml){var e,r=/^\s+|\s+$/g;try{var s=new ActiveXObject("htmlfile");s.write("<body>"),s.close(),e=s.body}catch{e=createPopup().document.body}var l=e.createTextRange();Ae=Dt(function(x){try{e.style.color=I(x).replace(r,lt);var m=l.queryCommandValue("ForeColor");return"#"+("000000"+(m=(255&m)<<16|65280&m|(16711680&m)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var d=H.doc.createElement("i");d.title="Raphaël Colour Picker",d.style.display="none",H.doc.body.appendChild(d),Ae=Dt(function(x){return d.style.color=x,H.doc.defaultView.getComputedStyle(d,lt).getPropertyValue("color")})}return Ae(t)},ri=function(){return"hsb("+[this.h,this.s,this.b]+")"},si=function(){return"hsl("+[this.h,this.s,this.l]+")"},Ci=function(){return this.hex},ai=function(t,e,r){if(e==null&&h.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,e=t.g,t=t.r),e==null&&h.is(t,"string")){var s=h.getRGB(t);t=s.r,e=s.g,r=s.b}return(t>1||e>1||r>1)&&(t/=255,e/=255,r/=255),[t,e,r]},Gi=function(t,e,r,s){var l={r:t*=255,g:e*=255,b:r*=255,hex:h.rgb(t,e,r),toString:Ci};return h.is(s,"finite")&&(l.opacity=s),l};function Dt(t,e,r){return function s(){var l=Array.prototype.slice.call(arguments,0),d=l.join("␀"),x=s.cache=s.cache||{},m=s.count=s.count||[];return x[U](d)?((function(y,k){for(var T=0,P=y.length;T<P;T++)if(y[T]===k)return y.push(y.splice(T,1)[0])})(m,d),r?r(x[d]):x[d]):(m.length>=1e3&&delete x[m.shift()],m.push(d),x[d]=t[W](e,l),r?r(x[d]):x[d])}}h.color=function(t){var e;return h.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=h.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):h.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=h.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):(h.is(t,"string")&&(t=h.getRGB(t)),h.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(e=h.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=h.rgb2hsb(t),t.v=e.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=Ci,t},h.hsb2rgb=function(t,e,r,s){var l,d,x,m,y;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(r=t.b,e=t.s,s=t.o,t=t.h),m=(y=r*e)*(1-ot((t=(t*=360)%360/60)%2-1)),l=d=x=r-y,Gi(l+=[y,m,0,0,m,y][t=~~t],d+=[m,y,y,m,0,0][t],x+=[0,0,m,y,y,m][t],s)},h.hsl2rgb=function(t,e,r,s){var l,d,x,m,y;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(r=t.l,e=t.s,t=t.h),(t>1||e>1||r>1)&&(t/=360,e/=100,r/=100),m=(y=2*e*(r<.5?r:1-r))*(1-ot((t=(t*=360)%360/60)%2-1)),l=d=x=r-y/2,Gi(l+=[y,m,0,0,m,y][t=~~t],d+=[m,y,y,m,0,0][t],x+=[0,0,m,y,y,m][t],s)},h.rgb2hsb=function(t,e,r){var s,l;return t=(r=ai(t,e,r))[0],e=r[1],r=r[2],{h:(((l=(s=Q(t,e,r))-Z(t,e,r))==0?null:s==t?(e-r)/l:s==e?(r-t)/l+2:(t-e)/l+4)+360)%6*60/360,s:l==0?0:l/s,b:s,toString:ri}},h.rgb2hsl=function(t,e,r){var s,l,d,x;return t=(r=ai(t,e,r))[0],e=r[1],r=r[2],s=((l=Q(t,e,r))+(d=Z(t,e,r)))/2,{h:(((x=l-d)==0?null:l==t?(e-r)/x:l==e?(r-t)/x+2:(t-e)/x+4)+360)%6*60/360,s:x==0?0:s<.5?x/(2*s):x/(2-2*s),l:s,toString:si}},h._path2string=function(){return this.join(",").replace(it,"$1")},h._preload=function(t,e){var r=H.doc.createElement("img");r.style.cssText="position:absolute;left:-9999em;top:-9999em",r.onload=function(){e.call(this),this.onload=null,H.doc.body.removeChild(this)},r.onerror=function(){H.doc.body.removeChild(this)},H.doc.body.appendChild(r),r.src=t};function Ne(){return this.hex}function oi(t,e){for(var r=[],s=0,l=t.length;l-2*!e>s;s+=2){var d=[{x:+t[s-2],y:+t[s-1]},{x:+t[s],y:+t[s+1]},{x:+t[s+2],y:+t[s+3]},{x:+t[s+4],y:+t[s+5]}];e?s?l-4==s?d[3]={x:+t[0],y:+t[1]}:l-2==s&&(d[2]={x:+t[0],y:+t[1]},d[3]={x:+t[2],y:+t[3]}):d[0]={x:+t[l-2],y:+t[l-1]}:l-4==s?d[3]=d[2]:s||(d[0]={x:+t[s],y:+t[s+1]}),r.push(["C",(-d[0].x+6*d[1].x+d[2].x)/6,(-d[0].y+6*d[1].y+d[2].y)/6,(d[1].x+6*d[2].x-d[3].x)/6,(d[1].y+6*d[2].y-d[3].y)/6,d[2].x,d[2].y])}return r}h.getRGB=Dt(function(t){if(!t||(t=I(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ne};if(t=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Ne};!X[U](t.toLowerCase().substring(0,2))&&t.charAt()!="#"&&(t=Ae(t));var e,r,s,l,d,x,m=t.match(p);return m?(m[2]&&(s=E(m[2].substring(5),16),r=E(m[2].substring(3,5),16),e=E(m[2].substring(1,3),16)),m[3]&&(s=E((d=m[3].charAt(3))+d,16),r=E((d=m[3].charAt(2))+d,16),e=E((d=m[3].charAt(1))+d,16)),m[4]&&(x=m[4][et](R),e=_(x[0]),x[0].slice(-1)=="%"&&(e*=2.55),r=_(x[1]),x[1].slice(-1)=="%"&&(r*=2.55),s=_(x[2]),x[2].slice(-1)=="%"&&(s*=2.55),m[1].toLowerCase().slice(0,4)=="rgba"&&(l=_(x[3])),x[3]&&x[3].slice(-1)=="%"&&(l/=100)),m[5]?(x=m[5][et](R),e=_(x[0]),x[0].slice(-1)=="%"&&(e*=2.55),r=_(x[1]),x[1].slice(-1)=="%"&&(r*=2.55),s=_(x[2]),x[2].slice(-1)=="%"&&(s*=2.55),(x[0].slice(-3)=="deg"||x[0].slice(-1)=="°")&&(e/=360),m[1].toLowerCase().slice(0,4)=="hsba"&&(l=_(x[3])),x[3]&&x[3].slice(-1)=="%"&&(l/=100),h.hsb2rgb(e,r,s,l)):m[6]?(x=m[6][et](R),e=_(x[0]),x[0].slice(-1)=="%"&&(e*=2.55),r=_(x[1]),x[1].slice(-1)=="%"&&(r*=2.55),s=_(x[2]),x[2].slice(-1)=="%"&&(s*=2.55),(x[0].slice(-3)=="deg"||x[0].slice(-1)=="°")&&(e/=360),m[1].toLowerCase().slice(0,4)=="hsla"&&(l=_(x[3])),x[3]&&x[3].slice(-1)=="%"&&(l/=100),h.hsl2rgb(e,r,s,l)):((m={r:e,g:r,b:s,toString:Ne}).hex="#"+(16777216|s|r<<8|e<<16).toString(16).slice(1),h.is(l,"finite")&&(m.opacity=l),m)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ne}},h),h.hsb=Dt(function(t,e,r){return h.hsb2rgb(t,e,r).hex}),h.hsl=Dt(function(t,e,r){return h.hsl2rgb(t,e,r).hex}),h.rgb=Dt(function(t,e,r){function s(l){return l+.5|0}return"#"+(16777216|s(r)|s(e)<<8|s(t)<<16).toString(16).slice(1)}),h.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},r=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),r.hex},h.getColor.reset=function(){delete this.start},h.parsePathString=function(t){if(!t)return null;var e=se(t);if(e.arr)return Gt(e.arr);var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},s=[];return h.is(t,yt)&&h.is(t[0],yt)&&(s=Gt(t)),s.length||I(t).replace(pt,function(l,d,x){var m=[],y=d.toLowerCase();if(x.replace(dt,function(k,T){T&&m.push(+T)}),y=="m"&&m.length>2&&(s.push([d][z](m.splice(0,2))),y="l",d=d=="m"?"l":"L"),y=="r")s.push([d][z](m));else for(;m.length>=r[y]&&(s.push([d][z](m.splice(0,r[y]))),r[y]););}),s.toString=h._path2string,e.arr=Gt(s),s},h.parseTransformString=Dt(function(t){if(!t)return null;var e=[];return h.is(t,yt)&&h.is(t[0],yt)&&(e=Gt(t)),e.length||I(t).replace(xt,function(r,s,l){var d=[];st.call(s),l.replace(dt,function(x,m){m&&d.push(+m)}),e.push([s][z](d))}),e.toString=h._path2string,e},this,function(t){if(!t)return t;for(var e=[],r=0;r<t.length;r++){for(var s=[],l=0;l<t[r].length;l++)s.push(t[r][l]);e.push(s)}return e});var se=function(t){var e=se.ps=se.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var r in e)e[U](r)&&r!=t&&(e[r].sleep--,!e[r].sleep&&delete e[r])}),e[t]};function li(t,e,r,s,l){return t*(t*(-3*e+9*r-9*s+3*l)+6*e-12*r+6*s)-3*e+3*r}function he(t,e,r,s,l,d,x,m,y){y==null&&(y=1);for(var k=(y=y>1?1:y<0?0:y)/2,T=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],P=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],N=0,S=0;S<12;S++){var B=k*T[S]+k,V=li(B,t,r,l,x),O=li(B,e,s,d,m),A=V*V+O*O;N+=P[S]*G.sqrt(A)}return k*N}function $i(t,e,r,s,l,d,x,m){if(!(Q(t,r)<Z(l,x)||Z(t,r)>Q(l,x)||Q(e,s)<Z(d,m)||Z(e,s)>Q(d,m))){var y=(t-r)*(d-m)-(e-s)*(l-x);if(y){var k=((t*s-e*r)*(l-x)-(t-r)*(l*m-d*x))/y,T=((t*s-e*r)*(d-m)-(e-s)*(l*m-d*x))/y,P=+k.toFixed(2),N=+T.toFixed(2);if(!(P<+Z(t,r).toFixed(2)||P>+Q(t,r).toFixed(2)||P<+Z(l,x).toFixed(2)||P>+Q(l,x).toFixed(2)||N<+Z(e,s).toFixed(2)||N>+Q(e,s).toFixed(2)||N<+Z(d,m).toFixed(2)||N>+Q(d,m).toFixed(2)))return{x:k,y:T}}}}function ui(t,e,r){var s=h.bezierBBox(t),l=h.bezierBBox(e);if(!h.isBBoxIntersect(s,l))return r?0:[];for(var d=he.apply(0,t),x=he.apply(0,e),m=Q(~~(d/5),1),y=Q(~~(x/5),1),k=[],T=[],P={},N=r?0:[],S=0;S<m+1;S++){var B=h.findDotsAtSegment.apply(h,t.concat(S/m));k.push({x:B.x,y:B.y,t:S/m})}for(S=0;S<y+1;S++)B=h.findDotsAtSegment.apply(h,e.concat(S/y)),T.push({x:B.x,y:B.y,t:S/y});for(S=0;S<m;S++)for(var V=0;V<y;V++){var O=k[S],A=k[S+1],tt=T[V],D=T[V+1],Y=ot(A.x-O.x)<.001?"y":"x",j=ot(D.x-tt.x)<.001?"y":"x",vt=$i(O.x,O.y,A.x,A.y,tt.x,tt.y,D.x,D.y);if(vt){if(P[vt.x.toFixed(4)]==vt.y.toFixed(4))continue;P[vt.x.toFixed(4)]=vt.y.toFixed(4);var ut=O.t+ot((vt[Y]-O[Y])/(A[Y]-O[Y]))*(A.t-O.t),mt=tt.t+ot((vt[j]-tt[j])/(D[j]-tt[j]))*(D.t-tt.t);ut>=0&&ut<=1.001&&mt>=0&&mt<=1.001&&(r?N++:N.push({x:vt.x,y:vt.y,t1:Z(ut,1),t2:Z(mt,1)}))}}return N}function Si(t,e,r){t=h._path2curve(t),e=h._path2curve(e);for(var s,l,d,x,m,y,k,T,P,N,S=r?0:[],B=0,V=t.length;B<V;B++){var O=t[B];if(O[0]=="M")s=m=O[1],l=y=O[2];else{O[0]=="C"?(P=[s,l].concat(O.slice(1)),s=P[6],l=P[7]):(P=[s,l,s,l,m,y,m,y],s=m,l=y);for(var A=0,tt=e.length;A<tt;A++){var D=e[A];if(D[0]=="M")d=k=D[1],x=T=D[2];else{D[0]=="C"?(N=[d,x].concat(D.slice(1)),d=N[6],x=N[7]):(N=[d,x,d,x,k,T,k,T],d=k,x=T);var Y=ui(P,N,r);if(r)S+=Y;else{for(var j=0,vt=Y.length;j<vt;j++)Y[j].segment1=B,Y[j].segment2=A,Y[j].bez1=P,Y[j].bez2=N;S=S.concat(Y)}}}}}return S}h.findDotsAtSegment=function(t,e,r,s,l,d,x,m,y){var k=1-y,T=_t(k,3),P=_t(k,2),N=y*y,S=N*y,B=T*t+3*P*y*r+3*k*y*y*l+S*x,V=T*e+3*P*y*s+3*k*y*y*d+S*m,O=t+2*y*(r-t)+N*(l-2*r+t),A=e+2*y*(s-e)+N*(d-2*s+e),tt=r+2*y*(l-r)+N*(x-2*l+r),D=s+2*y*(d-s)+N*(m-2*d+s),Y=k*t+y*r,j=k*e+y*s,vt=k*l+y*x,ut=k*d+y*m,mt=90-180*G.atan2(O-tt,A-D)/St;return(O>tt||A<D)&&(mt+=180),{x:B,y:V,m:{x:O,y:A},n:{x:tt,y:D},start:{x:Y,y:j},end:{x:vt,y:ut},alpha:mt}},h.bezierBBox=function(t,e,r,s,l,d,x,m){h.is(t,"array")||(t=[t,e,r,s,l,d,x,m]);var y=Wi.apply(null,t);return{x:y.min.x,y:y.min.y,x2:y.max.x,y2:y.max.y,width:y.max.x-y.min.x,height:y.max.y-y.min.y}},h.isPointInsideBBox=function(t,e,r){return e>=t.x&&e<=t.x2&&r>=t.y&&r<=t.y2},h.isBBoxIntersect=function(t,e){var r=h.isPointInsideBBox;return r(e,t.x,t.y)||r(e,t.x2,t.y)||r(e,t.x,t.y2)||r(e,t.x2,t.y2)||r(t,e.x,e.y)||r(t,e.x2,e.y)||r(t,e.x,e.y2)||r(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},h.pathIntersection=function(t,e){return Si(t,e)},h.pathIntersectionNumber=function(t,e){return Si(t,e,1)},h.isPointInsidePath=function(t,e,r){var s=h.pathBBox(t);return h.isPointInsideBBox(s,e,r)&&Si(t,[["M",e,r],["H",s.x2+10]],1)%2==1},h._removedFactory=function(t){return function(){u("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var Re=h.pathBBox=function(t){var e=se(t);if(e.bbox)return qt(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var r,s=0,l=0,d=[],x=[],m=0,y=(t=Fi(t)).length;m<y;m++)if((r=t[m])[0]=="M")s=r[1],l=r[2],d.push(s),x.push(l);else{var k=Wi(s,l,r[1],r[2],r[3],r[4],r[5],r[6]);d=d[z](k.min.x,k.max.x),x=x[z](k.min.y,k.max.y),s=r[5],l=r[6]}var T=Z[W](0,d),P=Z[W](0,x),N=Q[W](0,d),S=Q[W](0,x),B=N-T,V=S-P,O={x:T,y:P,x2:N,y2:S,width:B,height:V,cx:T+B/2,cy:P+V/2};return e.bbox=qt(O),O},Gt=function(t){var e=qt(t);return e.toString=h._path2string,e},Wr=h._pathToRelative=function(t){var e=se(t);if(e.rel)return Gt(e.rel);h.is(t,yt)&&h.is(t&&t[0],yt)||(t=h.parsePathString(t));var r=[],s=0,l=0,d=0,x=0,m=0;t[0][0]=="M"&&(d=s=t[0][1],x=l=t[0][2],m++,r.push(["M",s,l]));for(var y=m,k=t.length;y<k;y++){var T=r[y]=[],P=t[y];if(P[0]!=st.call(P[0]))switch(T[0]=st.call(P[0]),T[0]){case"a":T[1]=P[1],T[2]=P[2],T[3]=P[3],T[4]=P[4],T[5]=P[5],T[6]=+(P[6]-s).toFixed(3),T[7]=+(P[7]-l).toFixed(3);break;case"v":T[1]=+(P[1]-l).toFixed(3);break;case"m":d=P[1],x=P[2];default:for(var N=1,S=P.length;N<S;N++)T[N]=+(P[N]-(N%2?s:l)).toFixed(3)}else{T=r[y]=[],P[0]=="m"&&(d=P[1]+s,x=P[2]+l);for(var B=0,V=P.length;B<V;B++)r[y][B]=P[B]}var O=r[y].length;switch(r[y][0]){case"z":s=d,l=x;break;case"h":s+=+r[y][O-1];break;case"v":l+=+r[y][O-1];break;default:s+=+r[y][O-2],l+=+r[y][O-1]}}return r.toString=h._path2string,e.rel=Gt(r),r},hi=h._pathToAbsolute=function(t){var e=se(t);if(e.abs)return Gt(e.abs);if(h.is(t,yt)&&h.is(t&&t[0],yt)||(t=h.parsePathString(t)),!t||!t.length)return[["M",0,0]];var r=[],s=0,l=0,d=0,x=0,m=0;t[0][0]=="M"&&(d=s=+t[0][1],x=l=+t[0][2],m++,r[0]=["M",s,l]);for(var y,k,T=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",P=m,N=t.length;P<N;P++){if(r.push(y=[]),(k=t[P])[0]!=M.call(k[0]))switch(y[0]=M.call(k[0]),y[0]){case"A":y[1]=k[1],y[2]=k[2],y[3]=k[3],y[4]=k[4],y[5]=k[5],y[6]=+(k[6]+s),y[7]=+(k[7]+l);break;case"V":y[1]=+k[1]+l;break;case"H":y[1]=+k[1]+s;break;case"R":for(var S=[s,l][z](k.slice(1)),B=2,V=S.length;B<V;B++)S[B]=+S[B]+s,S[++B]=+S[B]+l;r.pop(),r=r[z](oi(S,T));break;case"M":d=+k[1]+s,x=+k[2]+l;default:for(B=1,V=k.length;B<V;B++)y[B]=+k[B]+(B%2?s:l)}else if(k[0]=="R")S=[s,l][z](k.slice(1)),r.pop(),r=r[z](oi(S,T)),y=["R"][z](k.slice(-2));else for(var O=0,A=k.length;O<A;O++)y[O]=k[O];switch(y[0]){case"Z":s=d,l=x;break;case"H":s=y[1];break;case"V":l=y[1];break;case"M":d=y[y.length-2],x=y[y.length-1];default:s=y[y.length-2],l=y[y.length-1]}}return r.toString=h._path2string,e.abs=Gt(r),r},fi=function(t,e,r,s){return[t,e,r,s,r,s]},ze=function(t,e,r,s,l,d){return[1/3*t+2/3*r,1/3*e+2/3*s,1/3*l+2/3*r,1/3*d+2/3*s,l,d]},Ui=function(t,e,r,s,l,d,x,m,y,k){var T,P=120*St/180,N=St/180*(+l||0),S=[],B=Dt(function(ds,ps,Ji){return{x:ds*G.cos(Ji)-ps*G.sin(Ji),y:ds*G.sin(Ji)+ps*G.cos(Ji)}});if(k)ut=k[0],mt=k[1],j=k[2],vt=k[3];else{t=(T=B(t,e,-N)).x,e=T.y,m=(T=B(m,y,-N)).x,y=T.y;var V=(t-m)/2,O=(e-y)/2,A=V*V/(r*r)+O*O/(s*s);A>1&&(r*=A=G.sqrt(A),s*=A);var tt=r*r,D=s*s,Y=(d==x?-1:1)*G.sqrt(ot((tt*D-tt*O*O-D*V*V)/(tt*O*O+D*V*V))),j=Y*r*O/s+(t+m)/2,vt=Y*-s*V/r+(e+y)/2,ut=G.asin(((e-vt)/s).toFixed(9)),mt=G.asin(((y-vt)/s).toFixed(9));(ut=t<j?St-ut:ut)<0&&(ut=2*St+ut),(mt=m<j?St-mt:mt)<0&&(mt=2*St+mt),x&&ut>mt&&(ut-=2*St),!x&&mt>ut&&(mt-=2*St)}var di=mt-ut;if(ot(di)>P){var Ni=mt,Ut=m,ge=y;mt=ut+P*(x&&mt>ut?1:-1),m=j+r*G.cos(mt),y=vt+s*G.sin(mt),S=Ui(m,y,r,s,l,0,x,Ut,ge,[mt,Ni,j,vt])}di=mt-ut;var pi=G.cos(ut),gi=G.sin(ut),Ki=G.cos(mt),ye=G.sin(mt),We=G.tan(di/4),Qi=4/3*r*We,ls=4/3*s*We,us=[t,e],vi=[t+Qi*gi,e-ls*pi],hs=[m+Qi*ye,y-ls*Ki],fs=[m,y];if(vi[0]=2*us[0]-vi[0],vi[1]=2*us[1]-vi[1],k)return[vi,hs,fs][z](S);for(var cs=[],Be=0,Qa=(S=[vi,hs,fs][z](S).join()[et](",")).length;Be<Qa;Be++)cs[Be]=Be%2?B(S[Be-1],S[Be],N).y:B(S[Be],S[Be+1],N).x;return cs},Xe=function(t,e,r,s,l,d,x,m,y){var k=1-y;return{x:_t(k,3)*t+3*_t(k,2)*y*r+3*k*y*y*l+_t(y,3)*x,y:_t(k,3)*e+3*_t(k,2)*y*s+3*k*y*y*d+_t(y,3)*m}},Wi=Dt(function(t,e,r,s,l,d,x,m){var y,k=l-2*r+t-(x-2*l+r),T=2*(r-t)-2*(l-r),P=t-r,N=(-T+G.sqrt(T*T-4*k*P))/2/k,S=(-T-G.sqrt(T*T-4*k*P))/2/k,B=[e,m],V=[t,x];return ot(N)>"1e12"&&(N=.5),ot(S)>"1e12"&&(S=.5),N>0&&N<1&&(y=Xe(t,e,r,s,l,d,x,m,N),V.push(y.x),B.push(y.y)),S>0&&S<1&&(y=Xe(t,e,r,s,l,d,x,m,S),V.push(y.x),B.push(y.y)),k=d-2*s+e-(m-2*d+s),P=e-s,N=(-(T=2*(s-e)-2*(d-s))+G.sqrt(T*T-4*k*P))/2/k,S=(-T-G.sqrt(T*T-4*k*P))/2/k,ot(N)>"1e12"&&(N=.5),ot(S)>"1e12"&&(S=.5),N>0&&N<1&&(y=Xe(t,e,r,s,l,d,x,m,N),V.push(y.x),B.push(y.y)),S>0&&S<1&&(y=Xe(t,e,r,s,l,d,x,m,S),V.push(y.x),B.push(y.y)),{min:{x:Z[W](0,V),y:Z[W](0,B)},max:{x:Q[W](0,V),y:Q[W](0,B)}}}),Fi=h._path2curve=Dt(function(t,e){var r=!e&&se(t);if(!e&&r.curve)return Gt(r.curve);for(var s=hi(t),l=e&&hi(e),d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},x={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},m=function(Y,j,vt){var ut,mt;if(!Y)return["C",j.x,j.y,j.x,j.y,j.x,j.y];switch(!(Y[0]in{T:1,Q:1})&&(j.qx=j.qy=null),Y[0]){case"M":j.X=Y[1],j.Y=Y[2];break;case"A":Y=["C"][z](Ui[W](0,[j.x,j.y][z](Y.slice(1))));break;case"S":vt=="C"||vt=="S"?(ut=2*j.x-j.bx,mt=2*j.y-j.by):(ut=j.x,mt=j.y),Y=["C",ut,mt][z](Y.slice(1));break;case"T":vt=="Q"||vt=="T"?(j.qx=2*j.x-j.qx,j.qy=2*j.y-j.qy):(j.qx=j.x,j.qy=j.y),Y=["C"][z](ze(j.x,j.y,j.qx,j.qy,Y[1],Y[2]));break;case"Q":j.qx=Y[1],j.qy=Y[2],Y=["C"][z](ze(j.x,j.y,Y[1],Y[2],Y[3],Y[4]));break;case"L":Y=["C"][z](fi(j.x,j.y,Y[1],Y[2]));break;case"H":Y=["C"][z](fi(j.x,j.y,Y[1],j.y));break;case"V":Y=["C"][z](fi(j.x,j.y,j.x,Y[1]));break;case"Z":Y=["C"][z](fi(j.x,j.y,j.X,j.Y))}return Y},y=function(Y,j){if(Y[j].length>7){Y[j].shift();for(var vt=Y[j];vt.length;)T[j]="A",l&&(P[j]="A"),Y.splice(j++,0,["C"][z](vt.splice(0,6)));Y.splice(j,1),V=Q(s.length,l&&l.length||0)}},k=function(Y,j,vt,ut,mt){Y&&j&&Y[mt][0]=="M"&&j[mt][0]!="M"&&(j.splice(mt,0,["M",ut.x,ut.y]),vt.bx=0,vt.by=0,vt.x=Y[mt][1],vt.y=Y[mt][2],V=Q(s.length,l&&l.length||0))},T=[],P=[],N="",S="",B=0,V=Q(s.length,l&&l.length||0);B<V;B++){s[B]&&(N=s[B][0]),N!="C"&&(T[B]=N,B&&(S=T[B-1])),s[B]=m(s[B],d,S),T[B]!="A"&&N=="C"&&(T[B]="C"),y(s,B),l&&(l[B]&&(N=l[B][0]),N!="C"&&(P[B]=N,B&&(S=P[B-1])),l[B]=m(l[B],x,S),P[B]!="A"&&N=="C"&&(P[B]="C"),y(l,B)),k(s,l,d,x,B),k(l,s,x,d,B);var O=s[B],A=l&&l[B],tt=O.length,D=l&&A.length;d.x=O[tt-2],d.y=O[tt-1],d.bx=_(O[tt-4])||d.x,d.by=_(O[tt-3])||d.y,x.bx=l&&(_(A[D-4])||x.x),x.by=l&&(_(A[D-3])||x.y),x.x=l&&A[D-2],x.y=l&&A[D-1]}return l||(r.curve=Gt(s)),l?[s,l]:s},null,Gt),Zi=(h._parseDots=Dt(function(t){for(var e=[],r=0,s=t.length;r<s;r++){var l={},d=t[r].match(/^([^:]*):?([\d\.]*)/);if(l.color=h.getRGB(d[1]),l.color.error)return null;l.opacity=l.color.opacity,l.color=l.color.hex,d[2]&&(l.offset=d[2]+"%"),e.push(l)}for(r=1,s=e.length-1;r<s;r++)if(!e[r].offset){for(var x=_(e[r-1].offset||0),m=0,y=r+1;y<s;y++)if(e[y].offset){m=e[y].offset;break}m||(m=100,y=s);for(var k=((m=_(m))-x)/(y-r+1);r<y;r++)x+=k,e[r].offset=x+"%"}return e}),h._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),Ha=(h._tofront=function(t,e){e.top!==t&&(Zi(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},h._toback=function(t,e){e.bottom!==t&&(Zi(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},h._insertafter=function(t,e,r){Zi(t,r),e==r.top&&(r.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},h._insertbefore=function(t,e,r){Zi(t,r),e==r.bottom&&(r.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},h.toMatrix=function(t,e){var r=Re(t),s={_:{transform:lt},getBBox:function(){return r}};return Zr(s,e),s.matrix}),Zr=(h.transformPath=function(t,e){return Ot(t,Ha(t,e))},h._extractTransform=function(t,e){if(e==null)return t._.transform;e=I(e).replace(/\.{3}|\u2026/g,t._.transform||lt);var r,s,l=h.parseTransformString(e),d=0,x=1,m=1,y=t._,k=new Ge;if(y.transform=l||[],l)for(var T=0,P=l.length;T<P;T++){var N,S,B,V,O,A=l[T],tt=A.length,D=I(A[0]).toLowerCase(),Y=A[0]!=D,j=Y?k.invert():0;D=="t"&&tt==3?Y?(N=j.x(0,0),S=j.y(0,0),B=j.x(A[1],A[2]),V=j.y(A[1],A[2]),k.translate(B-N,V-S)):k.translate(A[1],A[2]):D=="r"?tt==2?(O=O||t.getBBox(1),k.rotate(A[1],O.x+O.width/2,O.y+O.height/2),d+=A[1]):tt==4&&(Y?(B=j.x(A[2],A[3]),V=j.y(A[2],A[3]),k.rotate(A[1],B,V)):k.rotate(A[1],A[2],A[3]),d+=A[1]):D=="s"?tt==2||tt==3?(O=O||t.getBBox(1),k.scale(A[1],A[tt-1],O.x+O.width/2,O.y+O.height/2),x*=A[1],m*=A[tt-1]):tt==5&&(Y?(B=j.x(A[3],A[4]),V=j.y(A[3],A[4]),k.scale(A[1],A[2],B,V)):k.scale(A[1],A[2],A[3],A[4]),x*=A[1],m*=A[2]):D=="m"&&tt==7&&k.add(A[1],A[2],A[3],A[4],A[5],A[6]),y.dirtyT=1,t.matrix=k}t.matrix=k,y.sx=x,y.sy=m,y.deg=d,y.dx=r=k.e,y.dy=s=k.f,x==1&&m==1&&!d&&y.bbox?(y.bbox.x+=+r,y.bbox.y+=+s):y.dirtyT=1}),Kr=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return t.length==4?[e,0,t[2],t[3]]:[e,0];case"s":return t.length==5?[e,1,1,t[3],t[4]]:t.length==3?[e,1,1]:[e,1]}},qa=h._equaliseTransform=function(t,e){e=I(e).replace(/\.{3}|\u2026/g,t),t=h.parseTransformString(t)||[],e=h.parseTransformString(e)||[];for(var r,s,l,d,x=Q(t.length,e.length),m=[],y=[],k=0;k<x;k++){if(l=t[k]||Kr(e[k]),d=e[k]||Kr(l),l[0]!=d[0]||l[0].toLowerCase()=="r"&&(l[2]!=d[2]||l[3]!=d[3])||l[0].toLowerCase()=="s"&&(l[3]!=d[3]||l[4]!=d[4]))return;for(m[k]=[],y[k]=[],r=0,s=Q(l.length,d.length);r<s;r++)r in l&&(m[k][r]=l[r]),r in d&&(y[k][r]=d[r])}return{from:m,to:y}};function Ge(t,e,r,s,l,d){t!=null?(this.a=+t,this.b=+e,this.c=+r,this.d=+s,this.e=+l,this.f=+d):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}h._getContainer=function(t,e,r,s){var l;if((l=s!=null||h.is(t,"object")?t:H.doc.getElementById(t))!=null)return l.tagName?e==null?{container:l,width:l.style.pixelWidth||l.offsetWidth,height:l.style.pixelHeight||l.offsetHeight}:{container:l,width:e,height:r}:{container:1,x:t,y:e,width:r,height:s}},h.pathToRelative=Wr,h._engine={},h.path2curve=Fi,h.matrix=function(t,e,r,s,l,d){return new Ge(t,e,r,s,l,d)},(function(t){function e(s){return s[0]*s[0]+s[1]*s[1]}function r(s){var l=G.sqrt(e(s));s[0]&&(s[0]/=l),s[1]&&(s[1]/=l)}t.add=function(s,l,d,x,m,y){var k,T,P,N,S=[[],[],[]],B=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],V=[[s,d,m],[l,x,y],[0,0,1]];for(s&&s instanceof Ge&&(V=[[s.a,s.c,s.e],[s.b,s.d,s.f],[0,0,1]]),k=0;k<3;k++)for(T=0;T<3;T++){for(N=0,P=0;P<3;P++)N+=B[k][P]*V[P][T];S[k][T]=N}this.a=S[0][0],this.b=S[1][0],this.c=S[0][1],this.d=S[1][1],this.e=S[0][2],this.f=S[1][2]},t.invert=function(){var s=this,l=s.a*s.d-s.b*s.c;return new Ge(s.d/l,-s.b/l,-s.c/l,s.a/l,(s.c*s.f-s.d*s.e)/l,(s.b*s.e-s.a*s.f)/l)},t.clone=function(){return new Ge(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(s,l){this.add(1,0,0,1,s,l)},t.scale=function(s,l,d,x){l==null&&(l=s),(d||x)&&this.add(1,0,0,1,d,x),this.add(s,0,0,l,0,0),(d||x)&&this.add(1,0,0,1,-d,-x)},t.rotate=function(s,l,d){s=h.rad(s),l=l||0,d=d||0;var x=+G.cos(s).toFixed(9),m=+G.sin(s).toFixed(9);this.add(x,m,-m,x,l,d),this.add(1,0,0,1,-l,-d)},t.x=function(s,l){return s*this.a+l*this.c+this.e},t.y=function(s,l){return s*this.b+l*this.d+this.f},t.get=function(s){return+this[I.fromCharCode(97+s)].toFixed(4)},t.toString=function(){return h.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var s={};s.dx=this.e,s.dy=this.f;var l=[[this.a,this.c],[this.b,this.d]];s.scalex=G.sqrt(e(l[0])),r(l[0]),s.shear=l[0][0]*l[1][0]+l[0][1]*l[1][1],l[1]=[l[1][0]-l[0][0]*s.shear,l[1][1]-l[0][1]*s.shear],s.scaley=G.sqrt(e(l[1])),r(l[1]),s.shear/=s.scaley;var d=-l[0][1],x=l[1][1];return x<0?(s.rotate=h.deg(G.acos(x)),d<0&&(s.rotate=360-s.rotate)):s.rotate=h.deg(G.asin(d)),s.isSimple=!(+s.shear.toFixed(9)||s.scalex.toFixed(9)!=s.scaley.toFixed(9)&&s.rotate),s.isSuperSimple=!+s.shear.toFixed(9)&&s.scalex.toFixed(9)==s.scaley.toFixed(9)&&!s.rotate,s.noRotation=!+s.shear.toFixed(9)&&!s.rotate,s},t.toTransformString=function(s){var l=s||this[et]();return l.isSimple?(l.scalex=+l.scalex.toFixed(4),l.scaley=+l.scaley.toFixed(4),l.rotate=+l.rotate.toFixed(4),(l.dx||l.dy?"t"+[l.dx,l.dy]:lt)+(l.scalex!=1||l.scaley!=1?"s"+[l.scalex,l.scaley,0,0]:lt)+(l.rotate?"r"+[l.rotate,0,0]:lt)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(Ge.prototype);for(var Xa=function(){this.returnValue=!1},Ga=function(){return this.originalEvent.preventDefault()},Ua=function(){this.cancelBubble=!0},Wa=function(){return this.originalEvent.stopPropagation()},Qr=function(t){var e=H.doc.documentElement.scrollTop||H.doc.body.scrollTop,r=H.doc.documentElement.scrollLeft||H.doc.body.scrollLeft;return{x:t.clientX+r,y:t.clientY+e}},Za=H.doc.addEventListener?function(t,e,r,s){var l=function(x){var m=Qr(x);return r.call(s,x,m.x,m.y)};if(t.addEventListener(e,l,!1),J&&kt[e]){var d=function(x){for(var m=Qr(x),y=x,k=0,T=x.targetTouches&&x.targetTouches.length;k<T;k++)if(x.targetTouches[k].target==t){(x=x.targetTouches[k]).originalEvent=y,x.preventDefault=Ga,x.stopPropagation=Wa;break}return r.call(s,x,m.x,m.y)};t.addEventListener(kt[e],d,!1)}return function(){return t.removeEventListener(e,l,!1),J&&kt[e]&&t.removeEventListener(kt[e],d,!1),!0}}:H.doc.attachEvent?function(t,e,r,s){var l=function(d){d=d||H.win.event;var x=H.doc.documentElement.scrollTop||H.doc.body.scrollTop,m=H.doc.documentElement.scrollLeft||H.doc.body.scrollLeft,y=d.clientX+m,k=d.clientY+x;return d.preventDefault=d.preventDefault||Xa,d.stopPropagation=d.stopPropagation||Ua,r.call(s,d,y,k)};return t.attachEvent("on"+e,l),function(){return t.detachEvent("on"+e,l),!0}}:void 0,Le=[],Cn=function(t){for(var e,r=t.clientX,s=t.clientY,l=H.doc.documentElement.scrollTop||H.doc.body.scrollTop,d=H.doc.documentElement.scrollLeft||H.doc.body.scrollLeft,x=Le.length;x--;){if(e=Le[x],J&&t.touches){for(var m,y=t.touches.length;y--;)if((m=t.touches[y]).identifier==e.el._drag.id){r=m.clientX,s=m.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var k,T=e.el.node,P=T.nextSibling,N=T.parentNode,S=T.style.display;H.win.opera&&N.removeChild(T),T.style.display="none",k=e.el.paper.getElementByPoint(r,s),T.style.display=S,H.win.opera&&(P?N.insertBefore(T,P):N.appendChild(T)),k&&u("raphael.drag.over."+e.el.id,e.el,k),r+=d,s+=l,u("raphael.drag.move."+e.el.id,e.move_scope||e.el,r-e.el._drag.x,s-e.el._drag.y,r,s,t)}},$n=function(t){h.unmousemove(Cn).unmouseup($n);for(var e,r=Le.length;r--;)(e=Le[r]).el._drag={},u("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);Le=[]},Tt=h.el={},Jr=rt.length;Jr--;)(function(t){h[t]=Tt[t]=function(e,r){return h.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:Za(this.shape||this.node||H.doc,t,e,r||this)})),this},h["un"+t]=Tt["un"+t]=function(e){for(var r=this.events||[],s=r.length;s--;)r[s].name!=t||!h.is(e,"undefined")&&r[s].f!=e||(r[s].unbind(),r.splice(s,1),!r.length&&delete this.events);return this}})(rt[Jr]);Tt.data=function(t,e){var r=Et[this.id]=Et[this.id]||{};if(arguments.length==0)return r;if(arguments.length==1){if(h.is(t,"object")){for(var s in t)t[U](s)&&this.data(s,t[s]);return this}return u("raphael.data.get."+this.id,this,r[t],t),r[t]}return r[t]=e,u("raphael.data.set."+this.id,this,e,t),this},Tt.removeData=function(t){return t==null?delete Et[this.id]:Et[this.id]&&delete Et[this.id][t],this},Tt.getData=function(){return qt(Et[this.id]||{})},Tt.hover=function(t,e,r,s){return this.mouseover(t,r).mouseout(e,s||r)},Tt.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var ci=[];Tt.drag=function(t,e,r,s,l,d){function x(m){(m.originalEvent||m).preventDefault();var y=m.clientX,k=m.clientY,T=H.doc.documentElement.scrollTop||H.doc.body.scrollTop,P=H.doc.documentElement.scrollLeft||H.doc.body.scrollLeft;if(this._drag.id=m.identifier,J&&m.touches){for(var N,S=m.touches.length;S--;)if(N=m.touches[S],this._drag.id=N.identifier,N.identifier==this._drag.id){y=N.clientX,k=N.clientY;break}}this._drag.x=y+P,this._drag.y=k+T,!Le.length&&h.mousemove(Cn).mouseup($n),Le.push({el:this,move_scope:s,start_scope:l,end_scope:d}),e&&u.on("raphael.drag.start."+this.id,e),t&&u.on("raphael.drag.move."+this.id,t),r&&u.on("raphael.drag.end."+this.id,r),u("raphael.drag.start."+this.id,l||s||this,this._drag.x,this._drag.y,m)}return this._drag={},ci.push({el:this,start:x}),this.mousedown(x),this},Tt.onDragOver=function(t){t?u.on("raphael.drag.over."+this.id,t):u.unbind("raphael.drag.over."+this.id)},Tt.undrag=function(){for(var t=ci.length;t--;)ci[t].el==this&&(this.unmousedown(ci[t].start),ci.splice(t,1),u.unbind("raphael.drag.*."+this.id));!ci.length&&h.unmousemove(Cn).unmouseup($n),Le=[]},F.circle=function(t,e,r){var s=h._engine.circle(this,t||0,e||0,r||0);return this.__set__&&this.__set__.push(s),s},F.rect=function(t,e,r,s,l){var d=h._engine.rect(this,t||0,e||0,r||0,s||0,l||0);return this.__set__&&this.__set__.push(d),d},F.ellipse=function(t,e,r,s){var l=h._engine.ellipse(this,t||0,e||0,r||0,s||0);return this.__set__&&this.__set__.push(l),l},F.path=function(t){t&&!h.is(t,"string")&&!h.is(t[0],yt)&&(t+=lt);var e=h._engine.path(h.format[W](h,arguments),this);return this.__set__&&this.__set__.push(e),e},F.image=function(t,e,r,s,l){var d=h._engine.image(this,t||"about:blank",e||0,r||0,s||0,l||0);return this.__set__&&this.__set__.push(d),d},F.text=function(t,e,r){var s=h._engine.text(this,t||0,e||0,I(r));return this.__set__&&this.__set__.push(s),s},F.set=function(t){!h.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var e=new Ai(t);return this.__set__&&this.__set__.push(e),e.paper=this,e.type="set",e},F.setStart=function(t){this.__set__=t||this.set()},F.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},F.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},F.setSize=function(t,e){return h._engine.setSize.call(this,t,e)},F.setViewBox=function(t,e,r,s,l){return h._engine.setViewBox.call(this,t,e,r,s,l)},F.top=F.bottom=null,F.raphael=h;function ts(){return this.x+ft+this.y+ft+this.width+" × "+this.height}F.getElementByPoint=function(t,e){var r,s,l,d,x,m,y,k=this.canvas,T=H.doc.elementFromPoint(t,e);if(H.win.opera&&T.tagName=="svg"){var P=(s=(r=k).getBoundingClientRect(),l=r.ownerDocument,d=l.body,x=l.documentElement,m=x.clientTop||d.clientTop||0,y=x.clientLeft||d.clientLeft||0,{y:s.top+(H.win.pageYOffset||x.scrollTop||d.scrollTop)-m,x:s.left+(H.win.pageXOffset||x.scrollLeft||d.scrollLeft)-y}),N=k.createSVGRect();N.x=t-P.x,N.y=e-P.y,N.width=N.height=1;var S=k.getIntersectionList(N,null);S.length&&(T=S[S.length-1])}if(!T)return null;for(;T.parentNode&&T!=k.parentNode&&!T.raphael;)T=T.parentNode;return T==this.canvas.parentNode&&(T=k),T=T&&T.raphael?this.getById(T.raphaelid):null},F.getElementsByBBox=function(t){var e=this.set();return this.forEach(function(r){h.isBBoxIntersect(r.getBBox(),t)&&e.push(r)}),e},F.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},F.forEach=function(t,e){for(var r=this.bottom;r;){if(t.call(e,r)===!1)return this;r=r.next}return this},F.getElementsByPoint=function(t,e){var r=this.set();return this.forEach(function(s){s.isPointInside(t,e)&&r.push(s)}),r},Tt.isPointInside=function(t,e){var r=this.realPath=zt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(r=h.transformPath(r,this.attr("transform"))),h.isPointInsidePath(r,t,e)},Tt.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=zt[this.type](this),e.bboxwt=Re(this.realPath),e.bboxwt.toString=ts,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=zt[this.type](this)),e.bbox=Re(Ot(this.realPath,this.matrix)),e.bbox.toString=ts,e.dirty=e.dirtyT=0),e.bbox)},Tt.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},Tt.glow=function(t){if(this.type=="text")return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:t.opacity==null?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},r=e.width/2,s=this.paper,l=s.set(),d=this.realPath||zt[this.type](this);d=this.matrix?Ot(d,this.matrix):d;for(var x=1;x<r+1;x++)l.push(s.path(d).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/r*x).toFixed(3),opacity:+(e.opacity/r).toFixed(3)}));return l.insertBefore(this).translate(e.offsetx,e.offsety)};var Sn=function(t,e,r,s,l,d,x,m,y){return y==null?he(t,e,r,s,l,d,x,m):h.findDotsAtSegment(t,e,r,s,l,d,x,m,(function(k,T,P,N,S,B,V,O,A){if(!(A<0||he(k,T,P,N,S,B,V,O)<A)){var tt,D=.5,Y=1-D;for(tt=he(k,T,P,N,S,B,V,O,Y);ot(tt-A)>.01;)tt=he(k,T,P,N,S,B,V,O,Y+=(tt<A?1:-1)*(D/=2));return Y}})(t,e,r,s,l,d,x,m,y))},Fn=function(t,e){return function(r,s,l){for(var d,x,m,y,k,T="",P={},N=0,S=0,B=(r=Fi(r)).length;S<B;S++){if((m=r[S])[0]=="M")d=+m[1],x=+m[2];else{if(N+(y=Sn(d,x,m[1],m[2],m[3],m[4],m[5],m[6]))>s){if(e&&!P.start){if(T+=["C"+(k=Sn(d,x,m[1],m[2],m[3],m[4],m[5],m[6],s-N)).start.x,k.start.y,k.m.x,k.m.y,k.x,k.y],l)return T;P.start=T,T=["M"+k.x,k.y+"C"+k.n.x,k.n.y,k.end.x,k.end.y,m[5],m[6]].join(),N+=y,d=+m[5],x=+m[6];continue}if(!t&&!e)return{x:(k=Sn(d,x,m[1],m[2],m[3],m[4],m[5],m[6],s-N)).x,y:k.y,alpha:k.alpha}}N+=y,d=+m[5],x=+m[6]}T+=m.shift()+m}return P.end=T,(k=t?N:e?P:h.findDotsAtSegment(d,x,m[0],m[1],m[2],m[3],m[4],m[5],1)).alpha&&(k={x:k.x,y:k.y,alpha:k.alpha}),k}},es=Fn(1),is=Fn(),Tn=Fn(0,1);h.getTotalLength=es,h.getPointAtLength=is,h.getSubpath=function(t,e,r){if(this.getTotalLength(t)-r<1e-6)return Tn(t,e).end;var s=Tn(t,r,1);return e?Tn(s,e).end:s},Tt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():es(t)},Tt.getPointAtLength=function(t){var e=this.getPath();if(e)return is(e,t)},Tt.getPath=function(){var t,e=h._getPath[this.type];if(this.type!="text"&&this.type!="set")return e&&(t=e(this)),t},Tt.getSubpath=function(t,e){var r=this.getPath();if(r)return h.getSubpath(r,t,e)};var ee=h.easing_formulas={linear:function(t){return t},"<":function(t){return _t(t,1.7)},">":function(t){return _t(t,.48)},"<>":function(t){var e=.48-t/1.04,r=G.sqrt(.1734+e*e),s=r-e,l=-r-e,d=_t(ot(s),1/3)*(s<0?-1:1)+_t(ot(l),1/3)*(l<0?-1:1)+.5;return 3*(1-d)*d*d+d*d*d},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:_t(2,-10*t)*G.sin(2*St*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375}};ee.easeIn=ee["ease-in"]=ee["<"],ee.easeOut=ee["ease-out"]=ee[">"],ee.easeInOut=ee["ease-in-out"]=ee["<>"],ee["back-in"]=ee.backIn,ee["back-out"]=ee.backOut;var Mt=[],ns=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},An=function(){for(var t=+new Date,e=0;e<Mt.length;e++){var r=Mt[e];if(!r.el.removed&&!r.paused){var s,l,d=t-r.start,x=r.ms,m=r.easing,y=r.from,k=r.diff,T=r.to,P=(r.t,r.el),N={},S={};if(r.initstatus?(d=(r.initstatus*r.anim.top-r.prev)/(r.percent-r.prev)*x,r.status=r.initstatus,delete r.initstatus,r.stop&&Mt.splice(e--,1)):r.status=(r.prev+(r.percent-r.prev)*(d/x))/r.anim.top,!(d<0))if(d<x){var B=m(d/x);for(var V in y)if(y[U](V)){switch($[V]){case ct:s=+y[V]+B*x*k[V];break;case"colour":s="rgb("+[Nn(c(y[V].r+B*x*k[V].r)),Nn(c(y[V].g+B*x*k[V].g)),Nn(c(y[V].b+B*x*k[V].b))].join(",")+")";break;case"path":s=[];for(var O=0,A=y[V].length;O<A;O++){s[O]=[y[V][O][0]];for(var tt=1,D=y[V][O].length;tt<D;tt++)s[O][tt]=+y[V][O][tt]+B*x*k[V][O][tt];s[O]=s[O].join(ft)}s=s.join(ft);break;case"transform":if(k[V].real)for(s=[],O=0,A=y[V].length;O<A;O++)for(s[O]=[y[V][O][0]],tt=1,D=y[V][O].length;tt<D;tt++)s[O][tt]=y[V][O][tt]+B*x*k[V][O][tt];else{var Y=function(vt){return+y[V][vt]+B*x*k[V][vt]};s=[["m",Y(0),Y(1),Y(2),Y(3),Y(4),Y(5)]]}break;case"csv":if(V=="clip-rect")for(s=[],O=4;O--;)s[O]=+y[V][O]+B*x*k[V][O];break;default:var j=[][z](y[V]);for(s=[],O=P.paper.customAttributes[V].length;O--;)s[O]=+j[O]+B*x*k[V][O]}N[V]=s}P.attr(N),(function(vt,ut,mt){setTimeout(function(){u("raphael.anim.frame."+vt,ut,mt)})})(P.id,P,r.anim)}else{if((function(vt,ut,mt){setTimeout(function(){u("raphael.anim.frame."+ut.id,ut,mt),u("raphael.anim.finish."+ut.id,ut,mt),h.is(vt,"function")&&vt.call(ut)})})(r.callback,P,r.anim),P.attr(T),Mt.splice(e--,1),r.repeat>1&&!r.next){for(l in T)T[U](l)&&(S[l]=r.totalOrigin[l]);r.el.attr(S),Ti(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&Ti(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}Mt.length&&ns(An)},Nn=function(t){return t>255?255:t<0?0:t};function Ka(t,e,r,s,l,d){var x=3*e,m=3*(s-e)-x,y=1-x-m,k=3*r,T=3*(l-r)-k,P=1-k-T;function N(S){return((y*S+m)*S+x)*S}return(function(S,B){var V=(function(O,A){var tt,D,Y,j,vt,ut;for(Y=O,ut=0;ut<8;ut++){if(j=N(Y)-O,ot(j)<A)return Y;if(ot(vt=(3*y*Y+2*m)*Y+x)<1e-6)break;Y-=j/vt}if(D=1,(Y=O)<(tt=0))return tt;if(Y>D)return D;for(;tt<D;){if(j=N(Y),ot(j-O)<A)return Y;O>j?tt=Y:D=Y,Y=(D-tt)/2+tt}return Y})(S,B);return((P*V+T)*V+k)*V})(t,1/(200*d))}function xe(t,e){var r=[],s={};if(this.ms=e,this.times=1,t){for(var l in t)t[U](l)&&(s[_(l)]=t[l],r.push(_(l)));r.sort($t)}this.anim=s,this.top=r[r.length-1],this.percents=r}function Ti(t,e,r,s,l,d){r=_(r);var x,m,y,k,T,P,N=t.ms,S={},B={},V={};if(s)for(A=0,tt=Mt.length;A<tt;A++){var O=Mt[A];if(O.el.id==e.id&&O.anim==t){O.percent!=r?(Mt.splice(A,1),y=1):m=O,e.attr(O.totalOrigin);break}}else s=+B;for(var A=0,tt=t.percents.length;A<tt;A++){if(t.percents[A]==r||t.percents[A]>s*t.top){r=t.percents[A],T=t.percents[A-1]||0,N=N/t.top*(r-T),k=t.percents[A+1],x=t.anim[r];break}s&&e.attr(t.anim[t.percents[A]])}if(x){if(m)m.initstatus=s,m.start=new Date-m.ms*s;else{for(var D in x)if(x[U](D)&&($[U](D)||e.paper.customAttributes[U](D)))switch(S[D]=e.attr(D),S[D]==null&&(S[D]=L[D]),B[D]=x[D],$[D]){case ct:V[D]=(B[D]-S[D])/N;break;case"colour":S[D]=h.getRGB(S[D]);var Y=h.getRGB(B[D]);V[D]={r:(Y.r-S[D].r)/N,g:(Y.g-S[D].g)/N,b:(Y.b-S[D].b)/N};break;case"path":var j=Fi(S[D],B[D]),vt=j[1];for(S[D]=j[0],V[D]=[],A=0,tt=S[D].length;A<tt;A++){V[D][A]=[0];for(var ut=1,mt=S[D][A].length;ut<mt;ut++)V[D][A][ut]=(vt[A][ut]-S[D][A][ut])/N}break;case"transform":var di=e._,Ni=qa(di[D],B[D]);if(Ni)for(S[D]=Ni.from,B[D]=Ni.to,V[D]=[],V[D].real=!0,A=0,tt=S[D].length;A<tt;A++)for(V[D][A]=[S[D][A][0]],ut=1,mt=S[D][A].length;ut<mt;ut++)V[D][A][ut]=(B[D][A][ut]-S[D][A][ut])/N;else{var Ut=e.matrix||new Ge,ge={_:{transform:di.transform},getBBox:function(){return e.getBBox(1)}};S[D]=[Ut.a,Ut.b,Ut.c,Ut.d,Ut.e,Ut.f],Zr(ge,B[D]),B[D]=ge._.transform,V[D]=[(ge.matrix.a-Ut.a)/N,(ge.matrix.b-Ut.b)/N,(ge.matrix.c-Ut.c)/N,(ge.matrix.d-Ut.d)/N,(ge.matrix.e-Ut.e)/N,(ge.matrix.f-Ut.f)/N]}break;case"csv":var pi=I(x[D])[et](K),gi=I(S[D])[et](K);if(D=="clip-rect")for(S[D]=gi,V[D]=[],A=gi.length;A--;)V[D][A]=(pi[A]-S[D][A])/N;B[D]=pi;break;default:for(pi=[][z](x[D]),gi=[][z](S[D]),V[D]=[],A=e.paper.customAttributes[D].length;A--;)V[D][A]=((pi[A]||0)-(gi[A]||0))/N}var Ki=x.easing,ye=h.easing_formulas[Ki];if(!ye)if((ye=I(Ki).match(o))&&ye.length==5){var We=ye;ye=function(Qi){return Ka(Qi,+We[1],+We[2],+We[3],+We[4],N)}}else ye=wt;if(O={anim:t,percent:r,timestamp:P=x.start||t.start||+new Date,start:P+(t.del||0),status:0,initstatus:s||0,stop:!1,ms:N,easing:ye,from:S,diff:V,to:B,el:e,callback:x.callback,prev:T,next:k,repeat:d||t.times,origin:e.attr(),totalOrigin:l},Mt.push(O),s&&!m&&!y&&(O.stop=!0,O.start=new Date-N*s,Mt.length==1))return An();y&&(O.start=new Date-O.ms*s),Mt.length==1&&ns(An)}u("raphael.anim.start."+e.id,e,t)}}function rs(t){for(var e=0;e<Mt.length;e++)Mt[e].el.paper==t&&Mt.splice(e--,1)}Tt.animateWith=function(t,e,r,s,l,d){if(this.removed)return d&&d.call(this),this;var x=r instanceof xe?r:h.animation(r,s,l,d);Ti(x,this,x.percents[0],null,this.attr());for(var m=0,y=Mt.length;m<y;m++)if(Mt[m].anim==e&&Mt[m].el==t){Mt[y-1].start=Mt[m].start;break}return this},Tt.onAnimation=function(t){return t?u.on("raphael.anim.frame."+this.id,t):u.unbind("raphael.anim.frame."+this.id),this},xe.prototype.delay=function(t){var e=new xe(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},xe.prototype.repeat=function(t){var e=new xe(this.anim,this.ms);return e.del=this.del,e.times=G.floor(Q(t,0))||1,e},h.animation=function(t,e,r,s){if(t instanceof xe)return t;!h.is(r,"function")&&r||(s=s||r||null,r=null),t=Object(t),e=+e||0;var l,d,x={};for(d in t)t[U](d)&&_(d)!=d&&_(d)+"%"!=d&&(l=!0,x[d]=t[d]);if(l)return r&&(x.easing=r),s&&(x.callback=s),new xe({100:x},e);if(s){var m=0;for(var y in t){var k=E(y);t[U](y)&&k>m&&(m=k)}!t[m+="%"].callback&&(t[m].callback=s)}return new xe(t,e)},Tt.animate=function(t,e,r,s){if(this.removed)return s&&s.call(this),this;var l=t instanceof xe?t:h.animation(t,e,r,s);return Ti(l,this,l.percents[0],null,this.attr()),this},Tt.setTime=function(t,e){return t&&e!=null&&this.status(t,Z(e,t.ms)/t.ms),this},Tt.status=function(t,e){var r,s,l=[],d=0;if(e!=null)return Ti(t,this,-1,Z(e,1)),this;for(r=Mt.length;d<r;d++)if((s=Mt[d]).el.id==this.id&&(!t||s.anim==t)){if(t)return s.status;l.push({anim:s.anim,status:s.status})}return t?0:l},Tt.pause=function(t){for(var e=0;e<Mt.length;e++)Mt[e].el.id!=this.id||t&&Mt[e].anim!=t||u("raphael.anim.pause."+this.id,this,Mt[e].anim)!==!1&&(Mt[e].paused=!0);return this},Tt.resume=function(t){for(var e=0;e<Mt.length;e++)if(Mt[e].el.id==this.id&&(!t||Mt[e].anim==t)){var r=Mt[e];u("raphael.anim.resume."+this.id,this,r.anim)!==!1&&(delete r.paused,this.status(r.anim,r.status))}return this},Tt.stop=function(t){for(var e=0;e<Mt.length;e++)Mt[e].el.id!=this.id||t&&Mt[e].anim!=t||u("raphael.anim.stop."+this.id,this,Mt[e].anim)!==!1&&Mt.splice(e--,1);return this},u.on("raphael.remove",rs),u.on("raphael.clear",rs),Tt.toString=function(){return"Raphaël’s object"};var ss,as,Ue,os,Ai=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,r=t.length;e<r;e++)!t[e]||t[e].constructor!=Tt.constructor&&t[e].constructor!=Ai||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},jt=Ai.prototype;for(var Rn in jt.push=function(){for(var t,e,r=0,s=arguments.length;r<s;r++)!(t=arguments[r])||t.constructor!=Tt.constructor&&t.constructor!=Ai||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},jt.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},jt.forEach=function(t,e){for(var r=0,s=this.items.length;r<s;r++)if(t.call(e,this.items[r],r)===!1)return this;return this},Tt)Tt[U](Rn)&&(jt[Rn]=(function(t){return function(){var e=arguments;return this.forEach(function(r){r[t][W](r,e)})}})(Rn));return jt.attr=function(t,e){if(t&&h.is(t,yt)&&h.is(t[0],"object"))for(var r=0,s=t.length;r<s;r++)this.items[r].attr(t[r]);else for(var l=0,d=this.items.length;l<d;l++)this.items[l].attr(t,e);return this},jt.clear=function(){for(;this.length;)this.pop()},jt.splice=function(t,e,r){t=t<0?Q(this.length+t,0):t,e=Q(0,Z(this.length-t,e));var s,l=[],d=[],x=[];for(s=2;s<arguments.length;s++)x.push(arguments[s]);for(s=0;s<e;s++)d.push(this[t+s]);for(;s<this.length-t;s++)l.push(this[t+s]);var m=x.length;for(s=0;s<m+l.length;s++)this.items[t+s]=this[t+s]=s<m?x[s]:l[s-m];for(s=this.items.length=this.length-=e-m;this[s];)delete this[s++];return new Ai(d)},jt.exclude=function(t){for(var e=0,r=this.length;e<r;e++)if(this[e]==t)return this.splice(e,1),!0},jt.animate=function(t,e,r,s){(h.is(r,"function")||!r)&&(s=r||null);var l,d,x=this.items.length,m=x,y=this;if(!x)return this;s&&(d=function(){!--x&&s.call(y)}),r=h.is(r,"string")?r:d;var k=h.animation(t,e,r,d);for(l=this.items[--m].animate(k);m--;)this.items[m]&&!this.items[m].removed&&this.items[m].animateWith(l,k,k),this.items[m]&&!this.items[m].removed||x--;return this},jt.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},jt.getBBox=function(){for(var t=[],e=[],r=[],s=[],l=this.items.length;l--;)if(!this.items[l].removed){var d=this.items[l].getBBox();t.push(d.x),e.push(d.y),r.push(d.x+d.width),s.push(d.y+d.height)}return{x:t=Z[W](0,t),y:e=Z[W](0,e),x2:r=Q[W](0,r),y2:s=Q[W](0,s),width:r-t,height:s-e}},jt.clone=function(t){t=this.paper.set();for(var e=0,r=this.items.length;e<r;e++)t.push(this.items[e].clone());return t},jt.toString=function(){return"Raphaël‘s set"},jt.glow=function(t){var e=this.paper.set();return this.forEach(function(r,s){var l=r.glow(t);l?.forEach(function(d,x){e.push(d)})}),e},jt.isPointInside=function(t,e){var r=!1;return this.forEach(function(s){if(s.isPointInside(t,e))return r=!0,!1}),r},h.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},r=t.face["font-family"];for(var s in t.face)t.face[U](s)&&(e.face[s]=t.face[s]);if(this.fonts[r]?this.fonts[r].push(e):this.fonts[r]=[e],!t.svg){for(var l in e.face["units-per-em"]=E(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[U](l)){var d=t.glyphs[l];if(e.glyphs[l]={w:d.w,k:{},d:d.d&&"M"+d.d.replace(/[mlcxtrv]/g,function(m){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[m]||"M"})+"z"},d.k)for(var x in d.k)d[U](x)&&(e.glyphs[l].k[x]=d.k[x])}}return t},F.getFont=function(t,e,r,s){if(s=s||"normal",r=r||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,h.fonts){var l,d=h.fonts[t];if(!d){var x=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,lt)+"(\\s|$)","i");for(var m in h.fonts)if(h.fonts[U](m)&&x.test(m)){d=h.fonts[m];break}}if(d)for(var y=0,k=d.length;y<k&&((l=d[y]).face["font-weight"]!=e||l.face["font-style"]!=r&&l.face["font-style"]||l.face["font-stretch"]!=s);y++);return l}},F.print=function(t,e,r,s,l,d,x,m){d=d||"middle",x=Q(Z(x||0,1),-1),m=Q(Z(m||1,3),1);var y,k=I(r)[et](lt),T=0,P=0,N=lt;if(h.is(s,"string")&&(s=this.getFont(s)),s){y=(l||16)/s.face["units-per-em"];for(var S=s.face.bbox[et](K),B=+S[0],V=S[3]-S[1],O=0,A=+S[1]+(d=="baseline"?V+ +s.face.descent:V/2),tt=0,D=k.length;tt<D;tt++){if(k[tt]==`
3
- `)T=0,j=0,P=0,O+=V*m;else{var Y=P&&s.glyphs[k[tt-1]]||{},j=s.glyphs[k[tt]];T+=P?(Y.w||s.w)+(Y.k&&Y.k[k[tt]]||0)+s.w*x:0,P=1}j&&j.d&&(N+=h.transformPath(j.d,["t",T*y,O*y,"s",y,y,B,A,"t",(t-B)/y,(e-A)/y]))}}return this.path(N).attr({fill:"#000",stroke:"none"})},F.add=function(t){if(h.is(t,"array"))for(var e,r=this.set(),s=0,l=t.length;s<l;s++)e=t[s]||{},q[U](e.type)&&r.push(this[e.type]().attr(e));return r},h.format=function(t,e){var r=h.is(e,yt)?[0][z](e):arguments;return t&&h.is(t,"string")&&r.length-1&&(t=t.replace(nt,function(s,l){return r[++l]==null?lt:r[l]})),t||lt},h.fullfill=(ss=/\{([^\}]+)\}/g,as=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return String(t).replace(ss,function(r,s){return(function(l,d,x){var m=x;return d.replace(as,function(y,k,T,P,N){k=k||P,m&&(k in m&&(m=m[k]),typeof m=="function"&&N&&(m=m()))}),m=(m==null||m==x?l:m)+""})(r,s,e)})}),h.ninja=function(){if(gt.was)H.win.Raphael=gt.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return h},h.st=jt,u.on("raphael.DOMload",function(){C=!0}),(Ue=document).readyState==null&&Ue.addEventListener&&(Ue.addEventListener("DOMContentLoaded",os=function(){Ue.removeEventListener("DOMContentLoaded",os,!1),Ue.readyState="complete"},!1),Ue.readyState="loading"),(function t(){/in/.test(Ue.readyState)?setTimeout(t,9):h.eve("raphael.DOMload")})(),h}).apply(g,b))===void 0||(a.exports=w)},function(a,g,v){var b,w;b=[v(0),v(3),v(4)],(w=(function(u){return u}).apply(g,b))===void 0||(a.exports=w)},function(a,g,v){var b,w,u,h,C,F,K,q,nt,U,H,gt,bt,W;h="hasOwnProperty",C=/[\.\/]/,F=/\s*,\s*/,K=function(z,J){return z-J},q={n:{}},nt=function(){for(var z=0,J=this.length;z<J;z++)if(this[z]!==void 0)return this[z]},U=function(){for(var z=this.length;--z;)if(this[z]!==void 0)return this[z]},H=Object.prototype.toString,gt=String,bt=Array.isArray||function(z){return z instanceof Array||H.call(z)=="[object Array]"},(W=function(z,J){var lt,ft=u,I=Array.prototype.slice.call(arguments,2),et=W.listeners(z),rt=0,kt=[],st={},G=[],Q=w;G.firstDefined=nt,G.lastDefined=U,w=z,u=0;for(var Z=0,ot=et.length;Z<ot;Z++)"zIndex"in et[Z]&&(kt.push(et[Z].zIndex),et[Z].zIndex<0&&(st[et[Z].zIndex]=et[Z]));for(kt.sort(K);kt[rt]<0;)if(lt=st[kt[rt++]],G.push(lt.apply(J,I)),u)return u=ft,G;for(Z=0;Z<ot;Z++)if("zIndex"in(lt=et[Z]))if(lt.zIndex==kt[rt]){if(G.push(lt.apply(J,I)),u)break;do if((lt=st[kt[++rt]])&&G.push(lt.apply(J,I)),u)break;while(lt)}else st[lt.zIndex]=lt;else if(G.push(lt.apply(J,I)),u)break;return u=ft,w=Q,G})._events=q,W.listeners=function(z){var J,lt,ft,I,et,rt,kt,st,G=bt(z)?z:z.split(C),Q=q,Z=[Q],ot=[];for(I=0,et=G.length;I<et;I++){for(st=[],rt=0,kt=Z.length;rt<kt;rt++)for(lt=[(Q=Z[rt].n)[G[I]],Q["*"]],ft=2;ft--;)(J=lt[ft])&&(st.push(J),ot=ot.concat(J.f||[]));Z=st}return ot},W.separator=function(z){z?(z="["+(z=gt(z).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",C=new RegExp(z)):C=/[\.\/]/},W.on=function(z,J){if(typeof J!="function")return function(){};for(var lt=bt(z)?bt(z[0])?z:[z]:gt(z).split(F),ft=0,I=lt.length;ft<I;ft++)(function(et){for(var rt,kt=bt(et)?et:gt(et).split(C),st=q,G=0,Q=kt.length;G<Q;G++)st=(st=st.n).hasOwnProperty(kt[G])&&st[kt[G]]||(st[kt[G]]={n:{}});for(st.f=st.f||[],G=0,Q=st.f.length;G<Q;G++)if(st.f[G]==J){rt=!0;break}!rt&&st.f.push(J)})(lt[ft]);return function(et){+et==+et&&(J.zIndex=+et)}},W.f=function(z){var J=[].slice.call(arguments,1);return function(){W.apply(null,[z,null].concat(J).concat([].slice.call(arguments,0)))}},W.stop=function(){u=1},W.nt=function(z){var J=bt(w)?w.join("."):w;return z?new RegExp("(?:\\.|\\/|^)"+z+"(?:\\.|\\/|$)").test(J):J},W.nts=function(){return bt(w)?w:w.split(C)},W.off=W.unbind=function(z,J){if(z){var lt=bt(z)?bt(z[0])?z:[z]:gt(z).split(F);if(lt.length>1)for(var ft=0,I=lt.length;ft<I;ft++)W.off(lt[ft],J);else{lt=bt(z)?z:gt(z).split(C);var et,rt,kt,st,G,Q=[q];for(ft=0,I=lt.length;ft<I;ft++)for(st=0;st<Q.length;st+=kt.length-2){if(kt=[st,1],et=Q[st].n,lt[ft]!="*")et[lt[ft]]&&kt.push(et[lt[ft]]);else for(rt in et)et[h](rt)&&kt.push(et[rt]);Q.splice.apply(Q,kt)}for(ft=0,I=Q.length;ft<I;ft++)for(et=Q[ft];et.n;){if(J){if(et.f){for(st=0,G=et.f.length;st<G;st++)if(et.f[st]==J){et.f.splice(st,1);break}!et.f.length&&delete et.f}for(rt in et.n)if(et.n[h](rt)&&et.n[rt].f){var Z=et.n[rt].f;for(st=0,G=Z.length;st<G;st++)if(Z[st]==J){Z.splice(st,1);break}!Z.length&&delete et.n[rt].f}}else for(rt in delete et.f,et.n)et.n[h](rt)&&et.n[rt].f&&delete et.n[rt].f;et=et.n}}}else W._events=q={n:{}}},W.once=function(z,J){var lt=function(){return W.off(z,lt),J.apply(this,arguments)};return W.on(z,lt)},W.version="0.5.0",W.toString=function(){return"You are running Eve 0.5.0"},a.exports?a.exports=W:(b=(function(){return W}).apply(g,[]))===void 0||(a.exports=b)},function(a,g,v){var b,w;b=[v(0)],(w=(function(u){if(!u||u.svg){var h="hasOwnProperty",C=String,F=parseFloat,K=parseInt,q=Math,nt=q.max,U=q.abs,H=q.pow,gt=/[, ]+/,bt=u.eve,W="",z=" ",J="http://www.w3.org/1999/xlink",lt={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},ft={};u.toString=function(){return`Your browser supports SVG.
4
- You are running Raphaël `+this.version};var I=function(p,f){if(f)for(var o in typeof p=="string"&&(p=I(p)),f)f[h](o)&&(o.substring(0,6)=="xlink:"?p.setAttributeNS(J,o.substring(6),C(f[o])):p.setAttribute(o,C(f[o])));else(p=u._g.doc.createElementNS("http://www.w3.org/2000/svg",p)).style&&(p.style.webkitTapHighlightColor="rgba(0,0,0,0)");return p},et=function(p,f){var o="linear",c=p.id+f,_=.5,E=.5,M=p.node,L=p.paper,$=M.style,R=u._g.doc.getElementById(c);if(!R){if(f=(f=C(f).replace(u._radial_gradient,function($t,wt,at){if(o="radial",wt&&at){_=F(wt);var Ft=2*((E=F(at))>.5)-1;H(_-.5,2)+H(E-.5,2)>.25&&(E=q.sqrt(.25-H(_-.5,2))*Ft+.5)&&E!=.5&&(E=E.toFixed(5)-1e-5*Ft)}return W})).split(/\s*\-\s*/),o=="linear"){var X=f.shift();if(X=-F(X),isNaN(X))return null;var it=[0,0,q.cos(u.rad(X)),q.sin(u.rad(X))],pt=1/(nt(U(it[2]),U(it[3]))||1);it[2]*=pt,it[3]*=pt,it[2]<0&&(it[0]=-it[2],it[2]=0),it[3]<0&&(it[1]=-it[3],it[3]=0)}var xt=u._parseDots(f);if(!xt)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),p.gradient&&c!=p.gradient.id&&(L.defs.removeChild(p.gradient),delete p.gradient),!p.gradient){R=I(o+"Gradient",{id:c}),p.gradient=R,I(R,o=="radial"?{fx:_,fy:E}:{x1:it[0],y1:it[1],x2:it[2],y2:it[3],gradientTransform:p.matrix.invert()}),L.defs.appendChild(R);for(var dt=0,Et=xt.length;dt<Et;dt++)R.appendChild(I("stop",{offset:xt[dt].offset?xt[dt].offset:dt?"100%":"0%","stop-color":xt[dt].color||"#fff","stop-opacity":isFinite(xt[dt].opacity)?xt[dt].opacity:1}))}}return I(M,{fill:rt(c),opacity:1,"fill-opacity":1}),$.fill=W,$.opacity=1,$.fillOpacity=1,1},rt=function(p){if((f=document.documentMode)&&(f===9||f===10))return"url('#"+p+"')";var f,o=document.location;return"url('"+(o.protocol+"//"+o.host+o.pathname+o.search)+"#"+p+"')"},kt=function(p){var f=p.getBBox(1);I(p.pattern,{patternTransform:p.matrix.invert()+" translate("+f.x+","+f.y+")"})},st=function(p,f,o){if(p.type=="path"){for(var c,_,E,M,L,$=C(f).toLowerCase().split("-"),R=p.paper,X=o?"end":"start",it=p.node,pt=p.attrs,xt=pt["stroke-width"],dt=$.length,Et="classic",$t=3,wt=3,at=5;dt--;)switch($[dt]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Et=$[dt];break;case"wide":wt=5;break;case"narrow":wt=2;break;case"long":$t=5;break;case"short":$t=2}if(Et=="open"?($t+=2,wt+=2,at+=2,E=1,M=o?4:1,L={fill:"none",stroke:pt.stroke}):(M=E=$t/2,L={fill:pt.stroke,stroke:"none"}),p._.arrows?o?(p._.arrows.endPath&&ft[p._.arrows.endPath]--,p._.arrows.endMarker&&ft[p._.arrows.endMarker]--):(p._.arrows.startPath&&ft[p._.arrows.startPath]--,p._.arrows.startMarker&&ft[p._.arrows.startMarker]--):p._.arrows={},Et!="none"){var Ft="raphael-marker-"+Et,zt="raphael-marker-"+X+Et+$t+wt+"-obj"+p.id;u._g.doc.getElementById(Ft)?ft[Ft]++:(R.defs.appendChild(I(I("path"),{"stroke-linecap":"round",d:lt[Et],id:Ft})),ft[Ft]=1);var Ot,Nt=u._g.doc.getElementById(zt);Nt?(ft[zt]++,Ot=Nt.getElementsByTagName("use")[0]):(Nt=I(I("marker"),{id:zt,markerHeight:wt,markerWidth:$t,orient:"auto",refX:M,refY:wt/2}),Ot=I(I("use"),{"xlink:href":"#"+Ft,transform:(o?"rotate(180 "+$t/2+" "+wt/2+") ":W)+"scale("+$t/at+","+wt/at+")","stroke-width":(1/(($t/at+wt/at)/2)).toFixed(4)}),Nt.appendChild(Ot),R.defs.appendChild(Nt),ft[zt]=1),I(Ot,L);var te=E*(Et!="diamond"&&Et!="oval");o?(c=p._.arrows.startdx*xt||0,_=u.getTotalLength(pt.path)-te*xt):(c=te*xt,_=u.getTotalLength(pt.path)-(p._.arrows.enddx*xt||0)),(L={})["marker-"+X]="url(#"+zt+")",(_||c)&&(L.d=u.getSubpath(pt.path,c,_)),I(it,L),p._.arrows[X+"Path"]=Ft,p._.arrows[X+"Marker"]=zt,p._.arrows[X+"dx"]=te,p._.arrows[X+"Type"]=Et,p._.arrows[X+"String"]=f}else o?(c=p._.arrows.startdx*xt||0,_=u.getTotalLength(pt.path)-c):(c=0,_=u.getTotalLength(pt.path)-(p._.arrows.enddx*xt||0)),p._.arrows[X+"Path"]&&I(it,{d:u.getSubpath(pt.path,c,_)}),delete p._.arrows[X+"Path"],delete p._.arrows[X+"Marker"],delete p._.arrows[X+"dx"],delete p._.arrows[X+"Type"],delete p._.arrows[X+"String"];for(L in ft)if(ft[h](L)&&!ft[L]){var qt=u._g.doc.getElementById(L);qt&&qt.parentNode.removeChild(qt)}}},G={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},Q=function(p,f,o){if(f=G[C(f).toLowerCase()]){for(var c=p.attrs["stroke-width"]||"1",_={round:c,square:c,butt:0}[p.attrs["stroke-linecap"]||o["stroke-linecap"]]||0,E=[],M=f.length;M--;)E[M]=f[M]*c+(M%2?1:-1)*_;I(p.node,{"stroke-dasharray":E.join(",")})}else I(p.node,{"stroke-dasharray":"none"})},Z=function(p,f){var o=p.node,c=p.attrs,_=o.style.visibility;for(var E in o.style.visibility="hidden",f)if(f[h](E)){if(!u._availableAttrs[h](E))continue;var M=f[E];switch(c[E]=M,E){case"blur":p.blur(M);break;case"title":var L=o.getElementsByTagName("title");if(L.length&&(L=L[0]))L.firstChild.nodeValue=M;else{L=I("title");var $=u._g.doc.createTextNode(M);L.appendChild($),o.appendChild(L)}break;case"href":case"target":var R=o.parentNode;if(R.tagName.toLowerCase()!="a"){var X=I("a");R.insertBefore(X,o),X.appendChild(o),R=X}E=="target"?R.setAttributeNS(J,"show",M=="blank"?"new":M):R.setAttributeNS(J,E,M);break;case"cursor":o.style.cursor=M;break;case"transform":p.transform(M);break;case"arrow-start":st(p,M);break;case"arrow-end":st(p,M,1);break;case"clip-rect":var it=C(M).split(gt);if(it.length==4){p.clip&&p.clip.parentNode.parentNode.removeChild(p.clip.parentNode);var pt=I("clipPath"),xt=I("rect");pt.id=u.createUUID(),I(xt,{x:it[0],y:it[1],width:it[2],height:it[3]}),pt.appendChild(xt),p.paper.defs.appendChild(pt),I(o,{"clip-path":"url(#"+pt.id+")"}),p.clip=xt}if(!M){var dt=o.getAttribute("clip-path");if(dt){var Et=u._g.doc.getElementById(dt.replace(/(^url\(#|\)$)/g,W));Et&&Et.parentNode.removeChild(Et),I(o,{"clip-path":W}),delete p.clip}}break;case"path":p.type=="path"&&(I(o,{d:M?c.path=u._pathToAbsolute(M):"M0,0"}),p._.dirty=1,p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1)));break;case"width":if(o.setAttribute(E,M),p._.dirty=1,!c.fx)break;E="x",M=c.x;case"x":c.fx&&(M=-c.x-(c.width||0));case"rx":if(E=="rx"&&p.type=="rect")break;case"cx":o.setAttribute(E,M),p.pattern&&kt(p),p._.dirty=1;break;case"height":if(o.setAttribute(E,M),p._.dirty=1,!c.fy)break;E="y",M=c.y;case"y":c.fy&&(M=-c.y-(c.height||0));case"ry":if(E=="ry"&&p.type=="rect")break;case"cy":o.setAttribute(E,M),p.pattern&&kt(p),p._.dirty=1;break;case"r":p.type=="rect"?I(o,{rx:M,ry:M}):o.setAttribute(E,M),p._.dirty=1;break;case"src":p.type=="image"&&o.setAttributeNS(J,"href",M);break;case"stroke-width":p._.sx==1&&p._.sy==1||(M/=nt(U(p._.sx),U(p._.sy))||1),o.setAttribute(E,M),c["stroke-dasharray"]&&Q(p,c["stroke-dasharray"],f),p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1));break;case"stroke-dasharray":Q(p,M,f);break;case"fill":var $t=C(M).match(u._ISURL);if($t){pt=I("pattern");var wt=I("image");pt.id=u.createUUID(),I(pt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),I(wt,{x:0,y:0,"xlink:href":$t[1]}),pt.appendChild(wt),(function(Nt){u._preload($t[1],function(){var te=this.offsetWidth,qt=this.offsetHeight;I(Nt,{width:te,height:qt}),I(wt,{width:te,height:qt})})})(pt),p.paper.defs.appendChild(pt),I(o,{fill:"url(#"+pt.id+")"}),p.pattern=pt,p.pattern&&kt(p);break}var at=u.getRGB(M);if(at.error){if((p.type=="circle"||p.type=="ellipse"||C(M).charAt()!="r")&&et(p,M)){if("opacity"in c||"fill-opacity"in c){var Ft=u._g.doc.getElementById(o.getAttribute("fill").replace(/^url\(#|\)$/g,W));if(Ft){var zt=Ft.getElementsByTagName("stop");I(zt[zt.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=M,c.fill="none";break}}else delete f.gradient,delete c.gradient,!u.is(c.opacity,"undefined")&&u.is(f.opacity,"undefined")&&I(o,{opacity:c.opacity}),!u.is(c["fill-opacity"],"undefined")&&u.is(f["fill-opacity"],"undefined")&&I(o,{"fill-opacity":c["fill-opacity"]});at[h]("opacity")&&I(o,{"fill-opacity":at.opacity>1?at.opacity/100:at.opacity});case"stroke":at=u.getRGB(M),o.setAttribute(E,at.hex),E=="stroke"&&at[h]("opacity")&&I(o,{"stroke-opacity":at.opacity>1?at.opacity/100:at.opacity}),E=="stroke"&&p._.arrows&&("startString"in p._.arrows&&st(p,p._.arrows.startString),"endString"in p._.arrows&&st(p,p._.arrows.endString,1));break;case"gradient":(p.type=="circle"||p.type=="ellipse"||C(M).charAt()!="r")&&et(p,M);break;case"opacity":c.gradient&&!c[h]("stroke-opacity")&&I(o,{"stroke-opacity":M>1?M/100:M});case"fill-opacity":if(c.gradient){(Ft=u._g.doc.getElementById(o.getAttribute("fill").replace(/^url\(#|\)$/g,W)))&&(zt=Ft.getElementsByTagName("stop"),I(zt[zt.length-1],{"stop-opacity":M}));break}default:E=="font-size"&&(M=K(M,10)+"px");var Ot=E.replace(/(\-.)/g,function(Nt){return Nt.substring(1).toUpperCase()});o.style[Ot]=M,p._.dirty=1,o.setAttribute(E,M)}}ot(p,f),o.style.visibility=_},ot=function(p,f){if(p.type=="text"&&(f[h]("text")||f[h]("font")||f[h]("font-size")||f[h]("x")||f[h]("y"))){var o=p.attrs,c=p.node,_=c.firstChild?K(u._g.doc.defaultView.getComputedStyle(c.firstChild,W).getPropertyValue("font-size"),10):10;if(f[h]("text")){for(o.text=f.text;c.firstChild;)c.removeChild(c.firstChild);for(var E,M=C(f.text).split(`
5
- `),L=[],$=0,R=M.length;$<R;$++)E=I("tspan"),$&&I(E,{dy:1.2*_,x:o.x}),E.appendChild(u._g.doc.createTextNode(M[$])),c.appendChild(E),L[$]=E}else for($=0,R=(L=c.getElementsByTagName("tspan")).length;$<R;$++)$?I(L[$],{dy:1.2*_,x:o.x}):I(L[0],{dy:0});I(c,{x:o.x,y:o.y}),p._.dirty=1;var X=p._getBBox(),it=o.y-(X.y+X.height/2);it&&u.is(it,"finite")&&I(L[0],{dy:it})}},_t=function(p){return p.parentNode&&p.parentNode.tagName.toLowerCase()==="a"?p.parentNode:p},St=function(p,f){this[0]=this.node=p,p.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),p.raphaelid=this.id,this.matrix=u.matrix(),this.realPath=null,this.paper=f,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!f.bottom&&(f.bottom=this),this.prev=f.top,f.top&&(f.top.next=this),f.top=this,this.next=null},ct=u.el;St.prototype=ct,ct.constructor=St,u._engine.path=function(p,f){var o=I("path");f.canvas&&f.canvas.appendChild(o);var c=new St(o,f);return c.type="path",Z(c,{fill:"none",stroke:"#000",path:p}),c},ct.rotate=function(p,f,o){if(this.removed)return this;if((p=C(p).split(gt)).length-1&&(f=F(p[1]),o=F(p[2])),p=F(p[0]),o==null&&(f=o),f==null||o==null){var c=this.getBBox(1);f=c.x+c.width/2,o=c.y+c.height/2}return this.transform(this._.transform.concat([["r",p,f,o]])),this},ct.scale=function(p,f,o,c){if(this.removed)return this;if((p=C(p).split(gt)).length-1&&(f=F(p[1]),o=F(p[2]),c=F(p[3])),p=F(p[0]),f==null&&(f=p),c==null&&(o=c),o==null||c==null)var _=this.getBBox(1);return o=o??_.x+_.width/2,c=c??_.y+_.height/2,this.transform(this._.transform.concat([["s",p,f,o,c]])),this},ct.translate=function(p,f){return this.removed?this:((p=C(p).split(gt)).length-1&&(f=F(p[1])),p=F(p[0])||0,f=+f||0,this.transform(this._.transform.concat([["t",p,f]])),this)},ct.transform=function(p){var f=this._;if(p==null)return f.transform;if(u._extractTransform(this,p),this.clip&&I(this.clip,{transform:this.matrix.invert()}),this.pattern&&kt(this),this.node&&I(this.node,{transform:this.matrix}),f.sx!=1||f.sy!=1){var o=this.attrs[h]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":o})}return this},ct.hide=function(){return this.removed||(this.node.style.display="none"),this},ct.show=function(){return this.removed||(this.node.style.display=""),this},ct.remove=function(){var p=_t(this.node);if(!this.removed&&p.parentNode){var f=this.paper;for(var o in f.__set__&&f.__set__.exclude(this),bt.unbind("raphael.*.*."+this.id),this.gradient&&f.defs.removeChild(this.gradient),u._tear(this,f),p.parentNode.removeChild(p),this.removeData(),this)this[o]=typeof this[o]=="function"?u._removedFactory(o):null;this.removed=!0}},ct._getBBox=function(){if(this.node.style.display=="none"){this.show();var p=!0}var f,o=!1;this.paper.canvas.parentElement?f=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(f=this.paper.canvas.parentNode.style),f&&f.display=="none"&&(o=!0,f.display="");var c={};try{c=this.node.getBBox()}catch{c={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{c=c||{},o&&(f.display="none")}return p&&this.hide(),c},ct.attr=function(p,f){if(this.removed)return this;if(p==null){var o={};for(var c in this.attrs)this.attrs[h](c)&&(o[c]=this.attrs[c]);return o.gradient&&o.fill=="none"&&(o.fill=o.gradient)&&delete o.gradient,o.transform=this._.transform,o}if(f==null&&u.is(p,"string")){if(p=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(p=="transform")return this._.transform;for(var _=p.split(gt),E={},M=0,L=_.length;M<L;M++)(p=_[M])in this.attrs?E[p]=this.attrs[p]:u.is(this.paper.customAttributes[p],"function")?E[p]=this.paper.customAttributes[p].def:E[p]=u._availableAttrs[p];return L-1?E:E[_[0]]}if(f==null&&u.is(p,"array")){for(E={},M=0,L=p.length;M<L;M++)E[p[M]]=this.attr(p[M]);return E}if(f!=null){var $={};$[p]=f}else p!=null&&u.is(p,"object")&&($=p);for(var R in $)bt("raphael.attr."+R+"."+this.id,this,$[R]);for(R in this.paper.customAttributes)if(this.paper.customAttributes[h](R)&&$[h](R)&&u.is(this.paper.customAttributes[R],"function")){var X=this.paper.customAttributes[R].apply(this,[].concat($[R]));for(var it in this.attrs[R]=$[R],X)X[h](it)&&($[it]=X[it])}return Z(this,$),this},ct.toFront=function(){if(this.removed)return this;var p=_t(this.node);p.parentNode.appendChild(p);var f=this.paper;return f.top!=this&&u._tofront(this,f),this},ct.toBack=function(){if(this.removed)return this;var p=_t(this.node),f=p.parentNode;return f.insertBefore(p,f.firstChild),u._toback(this,this.paper),this.paper,this},ct.insertAfter=function(p){if(this.removed||!p)return this;var f=_t(this.node),o=_t(p.node||p[p.length-1].node);return o.nextSibling?o.parentNode.insertBefore(f,o.nextSibling):o.parentNode.appendChild(f),u._insertafter(this,p,this.paper),this},ct.insertBefore=function(p){if(this.removed||!p)return this;var f=_t(this.node),o=_t(p.node||p[0].node);return o.parentNode.insertBefore(f,o),u._insertbefore(this,p,this.paper),this},ct.blur=function(p){var f=this;if(+p!=0){var o=I("filter"),c=I("feGaussianBlur");f.attrs.blur=p,o.id=u.createUUID(),I(c,{stdDeviation:+p||1.5}),o.appendChild(c),f.paper.defs.appendChild(o),f._blur=o,I(f.node,{filter:"url(#"+o.id+")"})}else f._blur&&(f._blur.parentNode.removeChild(f._blur),delete f._blur,delete f.attrs.blur),f.node.removeAttribute("filter");return f},u._engine.circle=function(p,f,o,c){var _=I("circle");p.canvas&&p.canvas.appendChild(_);var E=new St(_,p);return E.attrs={cx:f,cy:o,r:c,fill:"none",stroke:"#000"},E.type="circle",I(_,E.attrs),E},u._engine.rect=function(p,f,o,c,_,E){var M=I("rect");p.canvas&&p.canvas.appendChild(M);var L=new St(M,p);return L.attrs={x:f,y:o,width:c,height:_,rx:E||0,ry:E||0,fill:"none",stroke:"#000"},L.type="rect",I(M,L.attrs),L},u._engine.ellipse=function(p,f,o,c,_){var E=I("ellipse");p.canvas&&p.canvas.appendChild(E);var M=new St(E,p);return M.attrs={cx:f,cy:o,rx:c,ry:_,fill:"none",stroke:"#000"},M.type="ellipse",I(E,M.attrs),M},u._engine.image=function(p,f,o,c,_,E){var M=I("image");I(M,{x:o,y:c,width:_,height:E,preserveAspectRatio:"none"}),M.setAttributeNS(J,"href",f),p.canvas&&p.canvas.appendChild(M);var L=new St(M,p);return L.attrs={x:o,y:c,width:_,height:E,src:f},L.type="image",L},u._engine.text=function(p,f,o,c){var _=I("text");p.canvas&&p.canvas.appendChild(_);var E=new St(_,p);return E.attrs={x:f,y:o,"text-anchor":"middle",text:c,"font-family":u._availableAttrs["font-family"],"font-size":u._availableAttrs["font-size"],stroke:"none",fill:"#000"},E.type="text",Z(E,E.attrs),E},u._engine.setSize=function(p,f){return this.width=p||this.width,this.height=f||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},u._engine.create=function(){var p=u._getContainer.apply(0,arguments),f=p&&p.container;if(!f)throw new Error("SVG container not found.");var o,c=p.x,_=p.y,E=p.width,M=p.height,L=I("svg"),$="overflow:hidden;";return c=c||0,_=_||0,I(L,{height:M=M||342,version:1.1,width:E=E||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),f==1?(L.style.cssText=$+"position:absolute;left:"+c+"px;top:"+_+"px",u._g.doc.body.appendChild(L),o=1):(L.style.cssText=$+"position:relative",f.firstChild?f.insertBefore(L,f.firstChild):f.appendChild(L)),(f=new u._Paper).width=E,f.height=M,f.canvas=L,f.clear(),f._left=f._top=0,o&&(f.renderfix=function(){}),f.renderfix(),f},u._engine.setViewBox=function(p,f,o,c,_){bt("raphael.setViewBox",this,this._viewBox,[p,f,o,c,_]);var E,M,L=this.getSize(),$=nt(o/L.width,c/L.height),R=this.top,X=_?"xMidYMid meet":"xMinYMin";for(p==null?(this._vbSize&&($=1),delete this._vbSize,E="0 0 "+this.width+z+this.height):(this._vbSize=$,E=p+z+f+z+o+z+c),I(this.canvas,{viewBox:E,preserveAspectRatio:X});$&&R;)M="stroke-width"in R.attrs?R.attrs["stroke-width"]:1,R.attr({"stroke-width":M}),R._.dirty=1,R._.dirtyT=1,R=R.prev;return this._viewBox=[p,f,o,c,!!_],this},u.prototype.renderfix=function(){var p,f=this.canvas,o=f.style;try{p=f.getScreenCTM()||f.createSVGMatrix()}catch{p=f.createSVGMatrix()}var c=-p.e%1,_=-p.f%1;(c||_)&&(c&&(this._left=(this._left+c)%1,o.left=this._left+"px"),_&&(this._top=(this._top+_)%1,o.top=this._top+"px"))},u.prototype.clear=function(){u.eve("raphael.clear",this);for(var p=this.canvas;p.firstChild;)p.removeChild(p.firstChild);this.bottom=this.top=null,(this.desc=I("desc")).appendChild(u._g.doc.createTextNode("Created with Raphaël "+u.version)),p.appendChild(this.desc),p.appendChild(this.defs=I("defs"))},u.prototype.remove=function(){for(var p in bt("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[p]=typeof this[p]=="function"?u._removedFactory(p):null};var yt=u.st;for(var Jt in ct)ct[h](Jt)&&!yt[h](Jt)&&(yt[Jt]=(function(p){return function(){var f=arguments;return this.forEach(function(o){o[p].apply(o,f)})}})(Jt))}}).apply(g,b))===void 0||(a.exports=w)},function(a,g,v){var b,w;b=[v(0)],(w=(function(u){if(!u||u.vml){var h="hasOwnProperty",C=String,F=parseFloat,K=Math,q=K.round,nt=K.max,U=K.min,H=K.abs,gt=/[, ]+/,bt=u.eve,W=" ",z="",J={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},lt=/([clmz]),?([^clmz]*)/gi,ft=/ progid:\S+Blur\([^\)]+\)/g,I=/-?[^,\s-]+/g,et="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",rt=21600,kt={path:1,rect:1,image:1},st={circle:1,ellipse:1},G=function(f,o,c){var _=u.matrix();return _.rotate(-f,.5,.5),{dx:_.x(o,c),dy:_.y(o,c)}},Q=function(f,o,c,_,E,M){var L=f._,$=f.matrix,R=L.fillpos,X=f.node,it=X.style,pt=1,xt="",dt=rt/o,Et=rt/c;if(it.visibility="hidden",o&&c){if(X.coordsize=H(dt)+W+H(Et),it.rotation=M*(o*c<0?-1:1),M){var $t=G(M,_,E);_=$t.dx,E=$t.dy}if(o<0&&(xt+="x"),c<0&&(xt+=" y")&&(pt=-1),it.flip=xt,X.coordorigin=_*-dt+W+E*-Et,R||L.fillsize){var wt=X.getElementsByTagName("fill");wt=wt&&wt[0],X.removeChild(wt),R&&($t=G(M,$.x(R[0],R[1]),$.y(R[0],R[1])),wt.position=$t.dx*pt+W+$t.dy*pt),L.fillsize&&(wt.size=L.fillsize[0]*H(o)+W+L.fillsize[1]*H(c)),X.appendChild(wt)}it.visibility="visible"}};u.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
6
- You are running Raphaël `+this.version};var Z,ot=function(f,o,c){for(var _=C(o).toLowerCase().split("-"),E=c?"end":"start",M=_.length,L="classic",$="medium",R="medium";M--;)switch(_[M]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":L=_[M];break;case"wide":case"narrow":R=_[M];break;case"long":case"short":$=_[M]}var X=f.node.getElementsByTagName("stroke")[0];X[E+"arrow"]=L,X[E+"arrowlength"]=$,X[E+"arrowwidth"]=R},_t=function(f,o){f.attrs=f.attrs||{};var c=f.node,_=f.attrs,E=c.style,M=kt[f.type]&&(o.x!=_.x||o.y!=_.y||o.width!=_.width||o.height!=_.height||o.cx!=_.cx||o.cy!=_.cy||o.rx!=_.rx||o.ry!=_.ry||o.r!=_.r),L=st[f.type]&&(_.cx!=o.cx||_.cy!=o.cy||_.r!=o.r||_.rx!=o.rx||_.ry!=o.ry),$=f;for(var R in o)o[h](R)&&(_[R]=o[R]);if(M&&(_.path=u._getPath[f.type](f),f._.dirty=1),o.href&&(c.href=o.href),o.title&&(c.title=o.title),o.target&&(c.target=o.target),o.cursor&&(E.cursor=o.cursor),"blur"in o&&f.blur(o.blur),(o.path&&f.type=="path"||M)&&(c.path=(function(Dt){var Ne=/[ahqstv]/gi,oi=u._pathToAbsolute;if(C(Dt).match(Ne)&&(oi=u._path2curve),Ne=/[clmz]/g,oi==u._pathToAbsolute&&!C(Dt).match(Ne)){var se=C(Dt).replace(lt,function(Wr,hi,fi){var ze=[],Ui=hi.toLowerCase()=="m",Xe=J[hi];return fi.replace(I,function(Wi){Ui&&ze.length==2&&(Xe+=ze+J[hi=="m"?"l":"L"],ze=[]),ze.push(q(Wi*rt))}),Xe+ze});return se}var li,he,$i=oi(Dt);se=[];for(var ui=0,Si=$i.length;ui<Si;ui++){li=$i[ui],(he=$i[ui][0].toLowerCase())=="z"&&(he="x");for(var Re=1,Gt=li.length;Re<Gt;Re++)he+=q(li[Re]*rt)+(Re!=Gt-1?",":z);se.push(he)}return se.join(W)})(~C(_.path).toLowerCase().indexOf("r")?u._pathToAbsolute(_.path):_.path),f._.dirty=1,f.type=="image"&&(f._.fillpos=[_.x,_.y],f._.fillsize=[_.width,_.height],Q(f,1,1,0,0,0))),"transform"in o&&f.transform(o.transform),L){var X=+_.cx,it=+_.cy,pt=+_.rx||+_.r||0,xt=+_.ry||+_.r||0;c.path=u.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",q((X-pt)*rt),q((it-xt)*rt),q((X+pt)*rt),q((it+xt)*rt),q(X*rt)),f._.dirty=1}if("clip-rect"in o){var dt=C(o["clip-rect"]).split(gt);if(dt.length==4){dt[2]=+dt[2]+ +dt[0],dt[3]=+dt[3]+ +dt[1];var Et=c.clipRect||u._g.doc.createElement("div"),$t=Et.style;$t.clip=u.format("rect({1}px {2}px {3}px {0}px)",dt),c.clipRect||($t.position="absolute",$t.top=0,$t.left=0,$t.width=f.paper.width+"px",$t.height=f.paper.height+"px",c.parentNode.insertBefore(Et,c),Et.appendChild(c),c.clipRect=Et)}o["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(f.textpath){var wt=f.textpath.style;o.font&&(wt.font=o.font),o["font-family"]&&(wt.fontFamily='"'+o["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,z)+'"'),o["font-size"]&&(wt.fontSize=o["font-size"]),o["font-weight"]&&(wt.fontWeight=o["font-weight"]),o["font-style"]&&(wt.fontStyle=o["font-style"])}if("arrow-start"in o&&ot($,o["arrow-start"]),"arrow-end"in o&&ot($,o["arrow-end"],1),o.opacity!=null||o.fill!=null||o.src!=null||o.stroke!=null||o["stroke-width"]!=null||o["stroke-opacity"]!=null||o["fill-opacity"]!=null||o["stroke-dasharray"]!=null||o["stroke-miterlimit"]!=null||o["stroke-linejoin"]!=null||o["stroke-linecap"]!=null){var at=c.getElementsByTagName("fill");if(!(at=at&&at[0])&&(at=Z("fill")),f.type=="image"&&o.src&&(at.src=o.src),o.fill&&(at.on=!0),at.on!=null&&o.fill!="none"&&o.fill!==null||(at.on=!1),at.on&&o.fill){var Ft=C(o.fill).match(u._ISURL);if(Ft){at.parentNode==c&&c.removeChild(at),at.rotate=!0,at.src=Ft[1],at.type="tile";var zt=f.getBBox(1);at.position=zt.x+W+zt.y,f._.fillpos=[zt.x,zt.y],u._preload(Ft[1],function(){f._.fillsize=[this.offsetWidth,this.offsetHeight]})}else at.color=u.getRGB(o.fill).hex,at.src=z,at.type="solid",u.getRGB(o.fill).error&&($.type in{circle:1,ellipse:1}||C(o.fill).charAt()!="r")&&St($,o.fill,at)&&(_.fill="none",_.gradient=o.fill,at.rotate=!1)}if("fill-opacity"in o||"opacity"in o){var Ot=((+_["fill-opacity"]+1||2)-1)*((+_.opacity+1||2)-1)*((+u.getRGB(o.fill).o+1||2)-1);Ot=U(nt(Ot,0),1),at.opacity=Ot,at.src&&(at.color="none")}c.appendChild(at);var Nt=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],te=!1;!Nt&&(te=Nt=Z("stroke")),(o.stroke&&o.stroke!="none"||o["stroke-width"]||o["stroke-opacity"]!=null||o["stroke-dasharray"]||o["stroke-miterlimit"]||o["stroke-linejoin"]||o["stroke-linecap"])&&(Nt.on=!0),(o.stroke=="none"||o.stroke===null||Nt.on==null||o.stroke==0||o["stroke-width"]==0)&&(Nt.on=!1);var qt=u.getRGB(o.stroke);Nt.on&&o.stroke&&(Nt.color=qt.hex),Ot=((+_["stroke-opacity"]+1||2)-1)*((+_.opacity+1||2)-1)*((+qt.o+1||2)-1);var Te=.75*(F(o["stroke-width"])||1);if(Ot=U(nt(Ot,0),1),o["stroke-width"]==null&&(Te=_["stroke-width"]),o["stroke-width"]&&(Nt.weight=Te),Te&&Te<1&&(Ot*=Te)&&(Nt.weight=1),Nt.opacity=Ot,o["stroke-linejoin"]&&(Nt.joinstyle=o["stroke-linejoin"]||"miter"),Nt.miterlimit=o["stroke-miterlimit"]||8,o["stroke-linecap"]&&(Nt.endcap=o["stroke-linecap"]=="butt"?"flat":o["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in o){var Mi={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Nt.dashstyle=Mi[h](o["stroke-dasharray"])?Mi[o["stroke-dasharray"]]:z}te&&c.appendChild(Nt)}if($.type=="text"){$.paper.canvas.style.display=z;var Ae=$.paper.span,ri=_.font&&_.font.match(/\d+(?:\.\d*)?(?=px)/);E=Ae.style,_.font&&(E.font=_.font),_["font-family"]&&(E.fontFamily=_["font-family"]),_["font-weight"]&&(E.fontWeight=_["font-weight"]),_["font-style"]&&(E.fontStyle=_["font-style"]),ri=F(_["font-size"]||ri&&ri[0])||10,E.fontSize=100*ri+"px",$.textpath.string&&(Ae.innerHTML=C($.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var si=Ae.getBoundingClientRect();$.W=_.w=(si.right-si.left)/100,$.H=_.h=(si.bottom-si.top)/100,$.X=_.x,$.Y=_.y+$.H/2,("x"in o||"y"in o)&&($.path.v=u.format("m{0},{1}l{2},{1}",q(_.x*rt),q(_.y*rt),q(_.x*rt)+1));for(var Ci=["x","y","text","font","font-family","font-weight","font-style","font-size"],ai=0,Gi=Ci.length;ai<Gi;ai++)if(Ci[ai]in o){$._.dirty=1;break}switch(_["text-anchor"]){case"start":$.textpath.style["v-text-align"]="left",$.bbx=$.W/2;break;case"end":$.textpath.style["v-text-align"]="right",$.bbx=-$.W/2;break;default:$.textpath.style["v-text-align"]="center",$.bbx=0}$.textpath.style["v-text-kern"]=!0}},St=function(f,o,c){f.attrs=f.attrs||{},f.attrs;var _=Math.pow,E="linear",M=".5 .5";if(f.attrs.gradient=o,o=(o=C(o).replace(u._radial_gradient,function(pt,xt,dt){return E="radial",xt&&dt&&(xt=F(xt),dt=F(dt),_(xt-.5,2)+_(dt-.5,2)>.25&&(dt=K.sqrt(.25-_(xt-.5,2))*(2*(dt>.5)-1)+.5),M=xt+W+dt),z})).split(/\s*\-\s*/),E=="linear"){var L=o.shift();if(L=-F(L),isNaN(L))return null}var $=u._parseDots(o);if(!$)return null;if(f=f.shape||f.node,$.length){f.removeChild(c),c.on=!0,c.method="none",c.color=$[0].color,c.color2=$[$.length-1].color;for(var R=[],X=0,it=$.length;X<it;X++)$[X].offset&&R.push($[X].offset+W+$[X].color);c.colors=R.length?R.join():"0% "+c.color,E=="radial"?(c.type="gradientTitle",c.focus="100%",c.focussize="0 0",c.focusposition=M,c.angle=0):(c.type="gradient",c.angle=(270-L)%360),f.appendChild(c)}return 1},ct=function(f,o){this[0]=this.node=f,f.raphael=!0,this.id=u._oid++,f.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=o,this.matrix=u.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!o.bottom&&(o.bottom=this),this.prev=o.top,o.top&&(o.top.next=this),o.top=this,this.next=null},yt=u.el;ct.prototype=yt,yt.constructor=ct,yt.transform=function(f){if(f==null)return this._.transform;var o,c=this.paper._viewBoxShift,_=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:z;c&&(o=f=C(f).replace(/\.{3}|\u2026/g,this._.transform||z)),u._extractTransform(this,_+f);var E,M=this.matrix.clone(),L=this.skew,$=this.node,R=~C(this.attrs.fill).indexOf("-"),X=!C(this.attrs.fill).indexOf("url(");if(M.translate(1,1),X||R||this.type=="image")if(L.matrix="1 0 0 1",L.offset="0 0",E=M.split(),R&&E.noRotation||!E.isSimple){$.style.filter=M.toFilter();var it=this.getBBox(),pt=this.getBBox(1),xt=it.x-pt.x,dt=it.y-pt.y;$.coordorigin=xt*-rt+W+dt*-rt,Q(this,1,1,xt,dt,0)}else $.style.filter=z,Q(this,E.scalex,E.scaley,E.dx,E.dy,E.rotate);else $.style.filter=z,L.matrix=C(M),L.offset=M.offset();return o!==null&&(this._.transform=o,u._extractTransform(this,o)),this},yt.rotate=function(f,o,c){if(this.removed)return this;if(f!=null){if((f=C(f).split(gt)).length-1&&(o=F(f[1]),c=F(f[2])),f=F(f[0]),c==null&&(o=c),o==null||c==null){var _=this.getBBox(1);o=_.x+_.width/2,c=_.y+_.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",f,o,c]])),this}},yt.translate=function(f,o){return this.removed?this:((f=C(f).split(gt)).length-1&&(o=F(f[1])),f=F(f[0])||0,o=+o||0,this._.bbox&&(this._.bbox.x+=f,this._.bbox.y+=o),this.transform(this._.transform.concat([["t",f,o]])),this)},yt.scale=function(f,o,c,_){if(this.removed)return this;if((f=C(f).split(gt)).length-1&&(o=F(f[1]),c=F(f[2]),_=F(f[3]),isNaN(c)&&(c=null),isNaN(_)&&(_=null)),f=F(f[0]),o==null&&(o=f),_==null&&(c=_),c==null||_==null)var E=this.getBBox(1);return c=c??E.x+E.width/2,_=_??E.y+E.height/2,this.transform(this._.transform.concat([["s",f,o,c,_]])),this._.dirtyT=1,this},yt.hide=function(){return!this.removed&&(this.node.style.display="none"),this},yt.show=function(){return!this.removed&&(this.node.style.display=z),this},yt.auxGetBBox=u.el.getBBox,yt.getBBox=function(){var f=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var o={},c=1/this.paper._viewBoxShift.scale;return o.x=f.x-this.paper._viewBoxShift.dx,o.x*=c,o.y=f.y-this.paper._viewBoxShift.dy,o.y*=c,o.width=f.width*c,o.height=f.height*c,o.x2=o.x+o.width,o.y2=o.y+o.height,o}return f},yt._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},yt.remove=function(){if(!this.removed&&this.node.parentNode){for(var f in this.paper.__set__&&this.paper.__set__.exclude(this),u.eve.unbind("raphael.*.*."+this.id),u._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[f]=typeof this[f]=="function"?u._removedFactory(f):null;this.removed=!0}},yt.attr=function(f,o){if(this.removed)return this;if(f==null){var c={};for(var _ in this.attrs)this.attrs[h](_)&&(c[_]=this.attrs[_]);return c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient,c.transform=this._.transform,c}if(o==null&&u.is(f,"string")){if(f=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var E=f.split(gt),M={},L=0,$=E.length;L<$;L++)(f=E[L])in this.attrs?M[f]=this.attrs[f]:u.is(this.paper.customAttributes[f],"function")?M[f]=this.paper.customAttributes[f].def:M[f]=u._availableAttrs[f];return $-1?M:M[E[0]]}if(this.attrs&&o==null&&u.is(f,"array")){for(M={},L=0,$=f.length;L<$;L++)M[f[L]]=this.attr(f[L]);return M}var R;for(var X in o!=null&&((R={})[f]=o),o==null&&u.is(f,"object")&&(R=f),R)bt("raphael.attr."+X+"."+this.id,this,R[X]);if(R){for(X in this.paper.customAttributes)if(this.paper.customAttributes[h](X)&&R[h](X)&&u.is(this.paper.customAttributes[X],"function")){var it=this.paper.customAttributes[X].apply(this,[].concat(R[X]));for(var pt in this.attrs[X]=R[X],it)it[h](pt)&&(R[pt]=it[pt])}R.text&&this.type=="text"&&(this.textpath.string=R.text),_t(this,R)}return this},yt.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&u._tofront(this,this.paper),this},yt.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),u._toback(this,this.paper)),this)},yt.insertAfter=function(f){return this.removed?this:(f.constructor==u.st.constructor&&(f=f[f.length-1]),f.node.nextSibling?f.node.parentNode.insertBefore(this.node,f.node.nextSibling):f.node.parentNode.appendChild(this.node),u._insertafter(this,f,this.paper),this)},yt.insertBefore=function(f){return this.removed?this:(f.constructor==u.st.constructor&&(f=f[0]),f.node.parentNode.insertBefore(this.node,f.node),u._insertbefore(this,f,this.paper),this)},yt.blur=function(f){var o=this.node.runtimeStyle,c=o.filter;return c=c.replace(ft,z),+f!=0?(this.attrs.blur=f,o.filter=c+W+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+f||1.5)+")",o.margin=u.format("-{0}px 0 0 -{0}px",q(+f||1.5))):(o.filter=c,o.margin=0,delete this.attrs.blur),this},u._engine.path=function(f,o){var c=Z("shape");c.style.cssText=et,c.coordsize=rt+W+rt,c.coordorigin=o.coordorigin;var _=new ct(c,o),E={fill:"none",stroke:"#000"};f&&(E.path=f),_.type="path",_.path=[],_.Path=z,_t(_,E),o.canvas&&o.canvas.appendChild(c);var M=Z("skew");return M.on=!0,c.appendChild(M),_.skew=M,_.transform(z),_},u._engine.rect=function(f,o,c,_,E,M){var L=u._rectPath(o,c,_,E,M),$=f.path(L),R=$.attrs;return $.X=R.x=o,$.Y=R.y=c,$.W=R.width=_,$.H=R.height=E,R.r=M,R.path=L,$.type="rect",$},u._engine.ellipse=function(f,o,c,_,E){var M=f.path();return M.attrs,M.X=o-_,M.Y=c-E,M.W=2*_,M.H=2*E,M.type="ellipse",_t(M,{cx:o,cy:c,rx:_,ry:E}),M},u._engine.circle=function(f,o,c,_){var E=f.path();return E.attrs,E.X=o-_,E.Y=c-_,E.W=E.H=2*_,E.type="circle",_t(E,{cx:o,cy:c,r:_}),E},u._engine.image=function(f,o,c,_,E,M){var L=u._rectPath(c,_,E,M),$=f.path(L).attr({stroke:"none"}),R=$.attrs,X=$.node,it=X.getElementsByTagName("fill")[0];return R.src=o,$.X=R.x=c,$.Y=R.y=_,$.W=R.width=E,$.H=R.height=M,R.path=L,$.type="image",it.parentNode==X&&X.removeChild(it),it.rotate=!0,it.src=o,it.type="tile",$._.fillpos=[c,_],$._.fillsize=[E,M],X.appendChild(it),Q($,1,1,0,0,0),$},u._engine.text=function(f,o,c,_){var E=Z("shape"),M=Z("path"),L=Z("textpath");o=o||0,c=c||0,_=_||"",M.v=u.format("m{0},{1}l{2},{1}",q(o*rt),q(c*rt),q(o*rt)+1),M.textpathok=!0,L.string=C(_),L.on=!0,E.style.cssText=et,E.coordsize=rt+W+rt,E.coordorigin="0 0";var $=new ct(E,f),R={fill:"#000",stroke:"none",font:u._availableAttrs.font,text:_};$.shape=E,$.path=M,$.textpath=L,$.type="text",$.attrs.text=C(_),$.attrs.x=o,$.attrs.y=c,$.attrs.w=1,$.attrs.h=1,_t($,R),E.appendChild(L),E.appendChild(M),f.canvas.appendChild(E);var X=Z("skew");return X.on=!0,E.appendChild(X),$.skew=X,$.transform(z),$},u._engine.setSize=function(f,o){var c=this.canvas.style;return this.width=f,this.height=o,f==+f&&(f+="px"),o==+o&&(o+="px"),c.width=f,c.height=o,c.clip="rect(0 "+f+" "+o+" 0)",this._viewBox&&u._engine.setViewBox.apply(this,this._viewBox),this},u._engine.setViewBox=function(f,o,c,_,E){u.eve("raphael.setViewBox",this,this._viewBox,[f,o,c,_,E]);var M,L,$=this.getSize(),R=$.width,X=$.height;return E&&(c*(M=X/_)<R&&(f-=(R-c*M)/2/M),_*(L=R/c)<X&&(o-=(X-_*L)/2/L)),this._viewBox=[f,o,c,_,!!E],this._viewBoxShift={dx:-f,dy:-o,scale:$},this.forEach(function(it){it.transform("...")}),this},u._engine.initWin=function(f){var o=f.document;o.styleSheets.length<31?o.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):o.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!o.namespaces.rvml&&o.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),Z=function(c){return o.createElement("<rvml:"+c+' class="rvml">')}}catch{Z=function(_){return o.createElement("<"+_+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},u._engine.initWin(u._g.win),u._engine.create=function(){var f=u._getContainer.apply(0,arguments),o=f.container,c=f.height,_=f.width,E=f.x,M=f.y;if(!o)throw new Error("VML container not found.");var L=new u._Paper,$=L.canvas=u._g.doc.createElement("div"),R=$.style;return E=E||0,M=M||0,_=_||512,c=c||342,L.width=_,L.height=c,_==+_&&(_+="px"),c==+c&&(c+="px"),L.coordsize=216e5+W+216e5,L.coordorigin="0 0",L.span=u._g.doc.createElement("span"),L.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",$.appendChild(L.span),R.cssText=u.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",_,c),o==1?(u._g.doc.body.appendChild($),R.left=E+"px",R.top=M+"px",R.position="absolute"):o.firstChild?o.insertBefore($,o.firstChild):o.appendChild($),L.renderfix=function(){},L},u.prototype.clear=function(){u.eve("raphael.clear",this),this.canvas.innerHTML=z,this.span=u._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},u.prototype.remove=function(){for(var f in u.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[f]=typeof this[f]=="function"?u._removedFactory(f):null;return!0};var Jt=u.st;for(var p in yt)yt[h](p)&&!Jt[h](p)&&(Jt[p]=(function(f){return function(){var o=arguments;return this.forEach(function(c){c[f].apply(c,o)})}})(p))}}).apply(g,b))===void 0||(a.exports=w)}])})})(En)),En.exports}var Pa=Oa();const Xi=Ba(Pa);class Ia{constructor(i){if(pe(i))throw new Error("* justgage: Make sure to pass options to the constructor!");this.events={},this.node=i.element;const a=this.node.dataset?this.node.dataset:{};(pe(i.defaults)?!1:i.defaults)!==!1&&(i=Va({}),delete i.defaults),this.config={element:i.element,classId:Da(),value:ht("value",i,a,0,"float"),defaults:ht("defaults",i,a,0,!1),parentNode:ht("parentNode",i,a,null),width:ht("width",i,a,null),height:ht("height",i,a,null),valueFontColor:ht("valueFontColor",i,a,"#010101"),valueFontFamily:ht("valueFontFamily",i,a,"Arial"),symbol:ht("symbol",i,a,""),min:ht("min",i,a,0,"float"),minTxt:ht("minTxt",i,a,!1),max:ht("max",i,a,100,"float"),maxTxt:ht("maxTxt",i,a,!1),reverse:ht("reverse",i,a,!1),humanFriendlyDecimal:ht("humanFriendlyDecimal",i,a,0),textRenderer:ht("textRenderer",i,a,null),onAnimationEnd:ht("onAnimationEnd",i,a,null),gaugeWidthScale:ht("gaugeWidthScale",i,a,1),gaugeColor:ht("gaugeColor",i,a,"#edebeb"),label:ht("label",i,a,""),labelFontColor:ht("labelFontColor",i,a,"#b3b3b3"),labelFontFamily:ht("labelFontFamily",i,a,"Arial"),shadowOpacity:ht("shadowOpacity",i,a,.2),shadowSize:ht("shadowSize",i,a,5),shadowVerticalOffset:ht("shadowVerticalOffset",i,a,3),levelColors:ht("levelColors",i,a,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:ht("startAnimationTime",i,a,700),startAnimationType:ht("startAnimationType",i,a,">"),refreshAnimationTime:ht("refreshAnimationTime",i,a,700),refreshAnimationType:ht("refreshAnimationType",i,a,">"),donutStartAngle:ht("donutStartAngle",i,a,90),valueMinFontSize:ht("valueMinFontSize",i,a,16),labelMinFontSize:ht("labelMinFontSize",i,a,10),minLabelMinFontSize:ht("minLabelMinFontSize",i,a,10),maxLabelMinFontSize:ht("maxLabelMinFontSize",i,a,10),hideValue:ht("hideValue",i,a,!1),hideMinMax:ht("hideMinMax",i,a,!1),showInnerShadow:ht("showInnerShadow",i,a,!1),humanFriendly:ht("humanFriendly",i,a,!1),noGradient:ht("noGradient",i,a,!1),donut:ht("donut",i,a,!1),relativeGaugeSize:ht("relativeGaugeSize",i,a,!1),counter:ht("counter",i,a,!1),decimals:ht("decimals",i,a,0),customSectors:ht("customSectors",i,a,{}),formatNumber:ht("formatNumber",i,a,!1),pointer:ht("pointer",i,a,!1),pointerOptions:ht("pointerOptions",i,a,{}),displayRemaining:ht("displayRemaining",i,a,!1)};let v,b,w,u,h,C,F,K,q,nt,U,H,gt,bt,W,z,J,lt,ft;this.config.value>this.config.max&&(this.config.value=this.config.max),this.config.value<this.config.min&&(this.config.value=this.config.min),this.originalValue=ht("value",i,a,-1,"float"),this.canvas=Xi(this.config.element,"100%","100%"),this.config.relativeGaugeSize===!0?this.config.donut===!0?(this.canvas.setViewBox(0,0,200,200,!0),v=200,b=200):(this.canvas.setViewBox(0,0,200,100,!0),v=200,b=100):this.config.width!==null&&this.config.height!==null?(v=this.config.width,b=this.config.height):this.config.parentNode!==null?(this.canvas.setViewBox(0,0,200,100,!0),v=200,b=100):(v=Number(qr(this.config.element,"width").slice(0,-2))*1,b=Number(qr(this.config.element,"height").slice(0,-2))*1),this.config.donut===!0?(v>b?(u=b,w=u):(v<b,w=v,u=w),C=(v-w)/2,F=(b-u)/2,K=u/6.4>16?u/5.4:18,q=C+w/2,this.config.label!==""?nt=F+u/1.85:nt=F+u/1.7,U=u/16>10?u/16:10,H=C+w/2,gt=nt+U,bt=u/16>10?u/16:10,W=C+w/10+w/6.666666666666667*this.config.gaugeWidthScale/2,z=gt,J=u/16>10?u/16:10,lt=C+w-w/10-w/6.666666666666667*this.config.gaugeWidthScale/2,ft=gt):(v>b?(u=b,w=u*2,w>v&&(h=w/v,w=w/h,u=u/h)):v<b?(w=v,u=w/2):(w=v,u=w*.5),C=(v-w)/2,F=(b-u)/2,K=u/6.5>this.config.valueMinFontSize?u/6.5:this.config.valueMinFontSize,q=C+w/2,nt=F+u/1.275,U=u/16>this.config.labelMinFontSize?u/16:this.config.labelMinFontSize,H=C+w/2,gt=nt+K/2+5,bt=u/16>this.config.minLabelMinFontSize?u/16:this.config.minLabelMinFontSize,W=C+w/10+w/6.666666666666667*this.config.gaugeWidthScale/2,z=gt,J=u/16>this.config.maxLabelMinFontSize?u/16:this.config.maxLabelMinFontSize,lt=C+w-w/10-w/6.666666666666667*this.config.gaugeWidthScale/2,ft=gt),this.params={canvasW:v,canvasH:b,widgetW:w,widgetH:u,dx:C,dy:F,valueFontSize:K,valueX:q,valueY:nt,labelFontSize:U,labelX:H,labelY:gt,minFontSize:bt,minX:W,minY:z,maxFontSize:J,maxX:lt,maxY:ft},this.canvas.customAttributes.pki=G=>{let Q=this.config.min,Z=this.config.max;const ot=this.params.widgetW,_t=this.params.widgetH,St=this.params.dx,ct=this.params.dy,yt=this.config.gaugeWidthScale,Jt=this.config.donut;let p,f,o,c,_,E,M,L,$,R;return Q<0&&(Z-=Q,G-=Q,Q=0),Jt?(p=(1-2*(G-Q)/(Z-Q))*Math.PI,f=ot/2-ot/30,o=f-ot/6.666666666666667*yt,c=ot/2+St,_=_t/2+ct,E=c+f*Math.cos(p),M=_-f*Math.sin(p),L=c+o*Math.cos(p),$=_-o*Math.sin(p),R="M"+(c-o)+","+_+" ",R+="L"+(c-f)+","+_+" ",G-Q>(Z-Q)/2&&(R+="A"+f+","+f+" 0 0 1 "+(c+f)+","+_+" "),R+="A"+f+","+f+" 0 0 1 "+E+","+M+" ",R+="L"+L+","+$+" ",G-Q>(Z-Q)/2&&(R+="A"+o+","+o+" 0 0 0 "+(c+o)+","+_+" "),R+="A"+o+","+o+" 0 0 0 "+(c-o)+","+_+" ",R+="Z ",{path:R}):(p=(1-(G-Q)/(Z-Q))*Math.PI,f=ot/2-ot/10,o=f-ot/6.666666666666667*yt,c=ot/2+St,_=_t/1.25+ct,E=c+f*Math.cos(p),M=_-f*Math.sin(p),L=c+o*Math.cos(p),$=_-o*Math.sin(p),R="M"+(c-o)+","+_+" ",R+="L"+(c-f)+","+_+" ",R+="A"+f+","+f+" 0 0 1 "+E+","+M+" ",R+="L"+L+","+$+" ",R+="A"+o+","+o+" 0 0 0 "+(c-o)+","+_+" ",R+="Z ",{path:R})},this.canvas.customAttributes.ndl=function(G){const Q=this.config.min,Z=this.config.max,ot=this.params.widgetW,_t=this.params.widgetH,St=this.params.dx,ct=this.params.dy,yt=this.config.gaugeWidthScale,Jt=this.config.donut;let p=ot*3.5/100,f=ot/15,o=ot/100;this.config.pointerOptions.toplength!=null&&this.config.pointerOptions.toplength!==void 0&&(p=this.config.pointerOptions.toplength),this.config.pointerOptions.bottomlength!=null&&this.config.pointerOptions.bottomlength!==void 0&&(f=this.config.pointerOptions.bottomlength),this.config.pointerOptions.bottomwidth!=null&&this.config.pointerOptions.bottomwidth!==void 0&&(o=this.config.pointerOptions.bottomwidth);let c,_,E,M,L,$,R,X,it,pt,xt,dt,Et,$t,wt,at,Ft;return Jt?(c=(1-2*(G-Q)/(Z-Q))*Math.PI,_=ot/2-ot/30,E=_-ot/6.666666666666667*yt,M=_t/2+ct,L=ot/2+St+_*Math.cos(c),$=_t-(_t-M)-_*Math.sin(c),R=ot/2+St+E*Math.cos(c),X=_t-(_t-M)-E*Math.sin(c),it=L+p*Math.cos(c),pt=$-p*Math.sin(c),xt=R-f*Math.cos(c),dt=X+f*Math.sin(c),Et=xt+o*Math.sin(c),$t=dt+o*Math.cos(c),wt=xt-o*Math.sin(c),at=dt-o*Math.cos(c),Ft="M"+Et+","+$t+" ",Ft+="L"+wt+","+at+" ",Ft+="L"+it+","+pt+" ",Ft+="Z ",{path:Ft}):(c=(1-(G-Q)/(Z-Q))*Math.PI,_=ot/2-ot/10,E=_-ot/6.666666666666667*yt,M=_t/1.25+ct,L=ot/2+St+_*Math.cos(c),$=_t-(_t-M)-_*Math.sin(c),R=ot/2+St+E*Math.cos(c),X=_t-(_t-M)-E*Math.sin(c),it=L+p*Math.cos(c),pt=$-p*Math.sin(c),xt=R-f*Math.cos(c),dt=X+f*Math.sin(c),Et=xt+o*Math.sin(c),$t=dt+o*Math.cos(c),wt=xt-o*Math.sin(c),at=dt-o*Math.cos(c),Ft="M"+Et+","+$t+" ",Ft+="L"+wt+","+at+" ",Ft+="L"+it+","+pt+" ",Ft+="Z ",{path:Ft})},this.gauge=this.canvas.path().attr({stroke:"none",fill:this.config.gaugeColor,pki:[this.config.max]}),this.level=this.canvas.path().attr({stroke:"none",fill:Yr(this.config.value,(this.config.value-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors),pki:[this.config.min]}),this.config.donut&&this.level.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy)),this.config.pointer&&(this.needle=this.canvas.path().attr({stroke:pe(this.config.pointerOptions.stroke)?"none":this.config.pointerOptions.stroke,"stroke-width":pe(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":pe(this.config.pointerOptions.stroke_linecap)?"square":this.config.pointerOptions.stroke_linecap,fill:pe(this.config.pointerOptions.color)?"#000000":this.config.pointerOptions.color,ndl:[this.config.min]}),this.config.donut&&this.needle.transform("r"+this.config.donutStartAngle+", "+(this.params.widgetW/2+this.params.dx)+", "+(this.params.widgetH/2+this.params.dy))),this.txtValue=this.canvas.text(this.params.valueX,this.params.valueY,0),this.txtValue.attr({"font-size":this.params.valueFontSize,"font-weight":"bold","font-family":this.config.valueFontFamily,fill:this.config.valueFontColor,"fill-opacity":"0"}),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY),this.txtLabel=this.canvas.text(this.params.labelX,this.params.labelY,this.config.label),this.txtLabel.attr({"font-size":this.params.labelFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":"0"}),Qt(this.txtLabel,this.params.labelFontSize,this.params.labelY);let I=this.config.min;this.config.reverse&&(I=this.config.max),this.txtMinimum=I,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=He(I,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=qe(I)),this.txtMin=this.canvas.text(this.params.minX,this.params.minY,this.txtMinimum),this.txtMin.attr({"font-size":this.params.minFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),Qt(this.txtMin,this.params.minFontSize,this.params.minY);let et=this.config.max;this.config.reverse&&(et=this.config.min),this.txtMaximum=et,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=He(et,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=qe(et)),this.txtMax=this.canvas.text(this.params.maxX,this.params.maxY,this.txtMaximum),this.txtMax.attr({"font-size":this.params.maxFontSize,"font-weight":"normal","font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?"0":"1"}),Qt(this.txtMax,this.params.maxFontSize,this.params.maxY);const rt=this.canvas.canvas.childNodes[1],kt="http://www.w3.org/2000/svg";if(Ei!==void 0&&Ei<9||(Ei!==void 0?Xr(()=>{this.generateShadow(kt,rt)}):this.generateShadow(kt,rt)),this.config.textRenderer&&this.config.textRenderer(this.originalValue)!==!1?this.originalValue=this.config.textRenderer(this.originalValue):this.config.humanFriendly?this.originalValue=He(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=qe(this.originalValue)+this.config.symbol:this.config.displayRemaining?this.originalValue=((this.config.max-this.originalValue)*1).toFixed(this.config.decimals)+this.config.symbol:this.originalValue=(this.originalValue*1).toFixed(this.config.decimals)+this.config.symbol,this.config.counter===!0){const G=()=>{let Z=this.level.attr("pki")[0];this.config.reverse&&(Z=this.config.max*1+this.config.min*1-this.level.attr("pki")[0]*1),this.config.textRenderer&&this.config.textRenderer(Math.floor(Z))!==!1?this.txtValue.attr("text",this.config.textRenderer(Math.floor(Z))):this.config.humanFriendly?this.txtValue.attr("text",He(Math.floor(Z),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",qe(Math.floor(Z))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",((this.config.max-Z)*1).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(Z*1).toFixed(this.config.decimals)+this.config.symbol),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY),Z=null},Q=()=>{this.txtValue.attr({text:this.originalValue}),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",Q),this.bindEvent("raphael.anim.frame",G)}else{const G=()=>{this.txtValue.attr({text:this.originalValue}),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.start",G)}let st=this.config.value;this.config.reverse&&(st=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[st]},this.config.startAnimationTime,this.config.startAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[st]},this.config.startAnimationTime,this.config.startAnimationType),this.txtValue.animate({"fill-opacity":this.config.hideValue?"0":"1"},this.config.startAnimationTime,this.config.startAnimationType),this.txtLabel.animate({"fill-opacity":"1"},this.config.startAnimationTime,this.config.startAnimationType)}bindEvent(i,a){i+="."+this.level.id,this.events[i]&&Xi.eve.off(i,this.events[i]),Xi.eve.on(i,a),this.events[i]=a}refresh(i,a,g,v){let b;a=Gr(a)?a:null,g=Gr(g)?g:null,v=v||null,v!==null&&(this.config.label=v,this.txtLabel.attr({text:this.config.label}),Qt(this.txtLabel,this.params.labelFontSize,this.params.labelY)),g!==null&&(this.config.min=g,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=He(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=qe(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),Qt(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),Qt(this.txtMin,this.params.minFontSize,this.params.minY))),a!==null&&(this.config.max=a,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=He(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=qe(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),Qt(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),Qt(this.txtMax,this.params.maxFontSize,this.params.maxY))),b=i,i*1>this.config.max*1&&(i=this.config.max*1),i*1<this.config.min*1&&(i=this.config.min*1);const w=Yr(i,(i-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);this.config.textRenderer&&this.config.textRenderer(b)!==!1?b=this.config.textRenderer(b):this.config.humanFriendly?b=He(b,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?b=qe((b*1).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?b=((this.config.max-b)*1).toFixed(this.config.decimals)+this.config.symbol:b=(b*1).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=b,this.config.value=i*1,this.config.counter||(this.txtValue.attr({text:b}),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY));let u=this.config.value;this.config.reverse&&(u=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[u],fill:w},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[u]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(i,a){const g=this;if(i instanceof Object)for(const v in i)a=i[v],jr(g,v,a);else jr(g,i,a)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const i in this.events)Xi.eve.off(i,this.events[i]);this.events={}}generateShadow(i,a){const g="inner-shadow-"+(this.config.element.id||this.config.classId),v=document.createElementNS(i,"filter");v.setAttribute("id",g),a.appendChild(v);const b=document.createElementNS(i,"feOffset");b.setAttribute("dx","0"),b.setAttribute("dy",this.config.shadowVerticalOffset),v.appendChild(b);const w=document.createElementNS(i,"feGaussianBlur");w.setAttribute("result","offset-blur"),w.setAttribute("stdDeviation",this.config.shadowSize),v.appendChild(w);const u=document.createElementNS(i,"feComposite");u.setAttribute("operator","out"),u.setAttribute("in","SourceGraphic"),u.setAttribute("in2","offset-blur"),u.setAttribute("result","inverse"),v.appendChild(u);const h=document.createElementNS(i,"feFlood");h.setAttribute("flood-color","black"),h.setAttribute("flood-opacity",this.config.shadowOpacity),h.setAttribute("result","color"),v.appendChild(h);const C=document.createElementNS(i,"feComposite");C.setAttribute("operator","in"),C.setAttribute("in","color"),C.setAttribute("in2","inverse"),C.setAttribute("result","shadow"),v.appendChild(C);const F=document.createElementNS(i,"feComposite");F.setAttribute("operator","over"),F.setAttribute("in","shadow"),F.setAttribute("in2","SourceGraphic"),v.appendChild(F),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+g+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+g+")"))}}function jr(n,i,a){switch(i){case"valueFontColor":if(!Hr(a)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}n.txtValue.attr({fill:a});break;case"labelFontColor":if(!Hr(a)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}n.txtMin.attr({fill:a}),n.txtMax.attr({fill:a}),n.txtLabel.attr({fill:a});break;default:console.log(`* justgage: "${i}" is not a supported update setting`)}}function ht(n,i,a,g,v,b){let w=g,u=!1;if(!pe(n)&&(!pe(a)&&typeof a=="object"&&n in a?(w=a[n],u=!0):!pe(i)&&typeof i=="object"&&n in i?(w=i[n],u=!0):w=g,u===!0&&!pe(v)))switch(v){case"int":w=parseInt(w,10);break;case"float":w=parseFloat(w);break}return w}function pe(n){return n==null}function Yr(n,i,a,g,v){let b,w,u,h,C,F,K,q,nt,U,H;const gt=v&&v.ranges&&v.ranges.length>0;if(g=g||gt,gt){v.percents===!0&&(n=i*100);for(let J=0;J<v.ranges.length;J++)if(n>=v.ranges[J].lo&&n<=v.ranges[J].hi)return v.ranges[J].color}const bt=a.length;if(bt===1)return a[0];const W=g?1/bt:1/(bt-1),z=[];for(let J=0;J<a.length;J++)b=g?W*(J+1):W*J,w=parseInt(Mn(a[J]).substring(0,2),16),u=parseInt(Mn(a[J]).substring(2,4),16),h=parseInt(Mn(a[J]).substring(4,6),16),z[J]={pct:b,color:{r:w,g:u,b:h}};if(i===0)return"rgb("+[z[0].color.r,z[0].color.g,z[0].color.b].join(",")+")";for(let J=0;J<z.length;J++)if(i<=z[J].pct)return g?"rgb("+[z[J].color.r,z[J].color.g,z[J].color.b].join(",")+")":(C=z[J-1],F=z[J],K=F.pct-C.pct,q=(i-C.pct)/K,nt=1-q,U=q,H={r:Math.floor(C.color.r*nt+F.color.r*U),g:Math.floor(C.color.g*nt+F.color.g*U),b:Math.floor(C.color.b*nt+F.color.b*U)},"rgb("+[H.r,H.g,H.b].join(",")+")")}function Qt(n,i,a){(!Ei||Ei>9)&&n.node.firstChild.attributes.dy&&(n.node.firstChild.attributes.dy.value=0)}function Mn(n){return n.charAt(0)==="#"?n.substring(1,7):n}function Hr(n){return typeof n=="string"&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(n)}function He(n,i){const a=Math.pow(10,i),g=" KMGTPE";let v=0;const b=1e3;for(;(n>=b||n<=-b)&&++v<g.length;)n=n/b;return v=v>=g.length?g.length-1:v,Math.round(n*a)/a+g[v]}function qe(n){const i=n.toString().split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function qr(n,i){let a="";return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(n,"").getPropertyValue(i):n.currentStyle&&(i=i.replace(/-(\w)/g,function(g,v){return v.toUpperCase()}),a=n.currentStyle[i]),a}function Xr(n){document.createElementNS!==void 0?n():setTimeout(function(){Xr(n)},100)}const Ei=(function(){let n=3;const i=document.createElement("div"),a=i.getElementsByTagName("i");for(;a[0];)i.innerHTML="<!--[if gt IE "+ ++n+"]><i></i><![endif]-->";return n>4?n:void 0})();function Va(n){n=n||{};for(let i=1;i<arguments.length;i++)if(arguments[i])for(const a in arguments[i])Object.prototype.hasOwnProperty.call(arguments[i],a)&&(n[a]=arguments[i][a]);return n}function Gr(n){return n!=null&&!isNaN(n)}function Da(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const i=Math.random()*16|0;return(n==="x"?i:i&3|8).toString(16)})}var ja=Ea('<div part="gauge" style="width:100%" id="gauge"></div>');const Ya={hash:"svelte-1ozhsul",code:""};function Ur(n,i){Un(i,!0),Ta(n,Ya);let a=ce(void 0),g=ce(void 0),v=Ir(i,"id",7,""),b=Ir(i,"options");xr(()=>{b()&&typeof b()=="string"&&(b(JSON.parse(b())),Rt(a)&&Rt(g)&&w())});function w(){if(!Rt(a))return console.error("cannot recreateGauge gauge");Rt(g)&&Rt(g).destroy(),Zt(g,void 0),u()}function u(){if(!b()||!Rt(a))return console.error("cannot create gauge");if(Rt(g))console.error("cannot create html gauge");else{const K=Object.assign({element:Rt(a)},b());Zt(g,new Ia(K),!0)}}Pr(()=>{Zt(a,i.$$host?.shadowRoot?.querySelector("#gauge"),!0),console.log("gaugeEl",Rt(a)),u()}),Fa(()=>{Rt(g)&&Rt(g).destroy(),Zt(g,void 0)});var h={get id(){return v()},set id(K=""){v(K),hn()},get options(){return b()},set options(K){b(K),hn()}},C=ja(),F=Js(()=>La(w,200));return _a("resize",pn,function(...K){Rt(F)?.apply(this,K)}),Lr(n,C),Wn(h)}customElements.define("hb-gauge",za(Ur,{id:{},options:{}},[],[],{mode:"open"})),zn.Component=Ur,Object.defineProperty(zn,Symbol.toStringTag,{value:"Module"})})(this.gauge=this.gauge||{});
7
- //# sourceMappingURL=main.iife.js.map
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var u={},d=Symbol(),f=Array.isArray,p=Array.prototype.indexOf,m=Array.prototype.includes,h=Array.from,g=Object.keys,_=Object.defineProperty,v=Object.getOwnPropertyDescriptor,y=Object.prototype,b=Array.prototype,x=Object.getPrototypeOf,S=Object.isExtensible,C=()=>{};function w(e){for(var t=0;t<e.length;t++)e[t]()}function T(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var E=1024,D=2048,O=4096,k=8192,A=16384,j=32768,ee=1<<25,M=65536,N=1<<19,P=1<<20,F=65536,I=1<<21,te=1<<23,L=Symbol(`$state`),R=Symbol(`legacy props`),z=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"};globalThis.document?.contentType;function B(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function ne(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function V(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function re(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ie(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ae(){throw Error(`https://svelte.dev/e/hydration_failed`)}function oe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function se(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function ce(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function le(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function ue(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function de(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function fe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var pe=!1;function me(e){pe=e}var H;function he(e){if(e===null)throw de(),u;return H=e}function ge(){return he(Pt(H))}function _e(e=1){if(pe){for(var t=e,n=H;t--;)n=Pt(n);H=n}}function ve(e=!0){for(var t=0,n=H;;){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=Pt(n);e&&n.remove(),n=i}}function ye(e){return e===this.v}function be(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function xe(e){return!be(e,this.v)}var Se=!1,Ce=!1,U=null;function we(e){U=e}function Te(e,t=!1,n){U={p:U,i:!1,c:null,e:null,s:e,x:null,r:Z,l:Ce&&!t?{s:null,u:null,$:[]}:null}}function Ee(e){var t=U,n=t.e;if(n!==null){t.e=null;for(var r of n)Wt(r)}return e!==void 0&&(t.x=e),t.i=!0,U=t.p,e??{}}function De(){return!Ce||U!==null&&U.l===null}var Oe=[];function ke(){var e=Oe;Oe=[],w(e)}function Ae(e){if(Oe.length===0&&!Ue){var t=Oe;queueMicrotask(()=>{t===Oe&&ke()})}Oe.push(e)}function je(){for(;Oe.length>0;)ke()}function Me(e){var t=Z;if(t===null)return X.f|=te,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ne(e,t)}function Ne(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 Pe=~(D|O|E);function W(e,t){e.f=e.f&Pe|t}function Fe(e){e.f&512||e.deps===null?W(e,E):W(e,O)}function Ie(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=F,Ie(t.deps))}function Le(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ie(e.deps),W(e,E)}var Re=!1,ze=!1;function Be(e){var t=ze;try{return ze=!1,[e(),ze]}finally{ze=t}}var Ve=new Set,G=null,K=null,He=null,Ue=!1,We=!1,Ge=null,Ke=null,qe=0,Je=1,Ye=class e{id=Je++;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)W(n,D),this.schedule(n);for(n of t.m)W(n,O),this.schedule(n)}}#p(){if(qe++>1e3&&(Ve.delete(this),Xe()),!this.#d()){for(let e of this.#o)this.#s.delete(e),W(e,D),this.schedule(e);for(let e of this.#s)W(e,O),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=Ge=[],r=[],i=Ke=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw rt(e),t}if(G=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Ge=null,Ke=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)nt(e,t)}else{this.#n.size===0&&Ve.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),Qe(r),Qe(n),this.#i?.resolve()}var o=G;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(Ve.add(o),o.#p()),Ve.has(this)||this.#g()}#m(e,t,n){e.f^=E;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^=E:i&4?t.push(r):Se&&i&16777224?n.push(r):Tn(r)&&(i&16&&this.#s.add(r),An(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)Le(e[t],this.#o,this.#s)}capture(e,t,n=!1){t!==d&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),K?.set(e,e.v))}activate(){G=this}deactivate(){G=null,K=null}flush(){try{We=!0,G=this,this.#p()}finally{qe=0,He=null,Ge=null,Ke=null,We=!1,G=null,K=null,Y.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),Ve.delete(this)}#g(){for(let c of Ve){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)$e(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 Ve)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,Ae(()=>{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??=T()).promise}static ensure(){if(G===null){let t=G=new e;We||(Ve.add(G),Ue||Ae(()=>{G===t&&t.flush()}))}return G}apply(){if(!Se||!this.is_fork&&Ve.size===1){K=null;return}K=new Map;for(let[e,[t]]of this.current)K.set(e,t);for(let n of Ve)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)K.has(e)||K.set(e,t)}}schedule(e){if(He=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(Ge!==null&&t===Z&&(Se||(X===null||!(X.f&2))&&!Re))return;if(n&96){if(!(n&1024))return;t.f^=E}}this.#a.push(t)}};function q(e){var t=Ue;Ue=!0;try{var n;for(e&&(G!==null&&!G.is_fork&&G.flush(),n=e());;){if(je(),G===null)return n;G.flush()}}finally{Ue=t}}function Xe(){try{ie()}catch(e){Ne(e,He)}}var Ze=null;function Qe(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Tn(r)&&(Ze=new Set,An(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&nn(r),Ze?.size>0)){Y.clear();for(let e of Ze){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Ze.has(n)&&(Ze.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||An(n)}}Ze.clear()}}Ze=null}}function $e(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?$e(i,t,n,r):e&4194320&&!(e&2048)&&et(i,t,r)&&(W(i,D),tt(i))}}function et(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(m.call(t,r))return!0;if(r.f&2&&et(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function tt(e){G.schedule(e)}function nt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),W(e,E);for(var n=e.first;n!==null;)nt(n,t),n=n.next}}function rt(e){W(e,E);for(var t=e.first;t!==null;)rt(t),t=t.next}function it(e){let t=0,n=vt(0),r;return()=>{Vt()&&(Q(n),Jt(()=>(t===0&&(r=Nn(()=>e(()=>wt(n)))),t+=1,()=>{Ae(()=>{--t,t===0&&(r?.(),r=void 0,wt(n))})})))}}var J=M|N;function at(e,t,n,r){new ot(e,t,n,r)}var ot=class{parent;is_pending=!1;transform_error;#e;#t=pe?H: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=it(()=>(this.#m=vt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Z;t.b=this,t.f|=128,n(e)},this.parent=Z.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Yt(()=>{if(pe){let e=this.#t;ge();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()},J),pe&&(this.#e=H)}#g(){try{this.#a=Xt(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=Xt(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Xt(()=>e(this.#e)),Ae(()=>{var e=this.#c=document.createDocumentFragment(),t=Mt();e.append(t),this.#a=this.#x(()=>Xt(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,rn(this.#o,()=>{this.#o=null}),this.#b(G))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Xt(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();on(this.#a,e);let t=this.#n.pending;this.#o=Xt(()=>t(this.#e))}else this.#b(G)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Le(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=Z,n=X,r=U;pn(this.#i),fn(this.#i),we(this.#i.ctx);try{return Ye.ensure(),e()}catch(e){return Me(e),null}finally{pn(t),fn(n),we(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&&rn(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,Ae(()=>{this.#d=!1,this.#m&&St(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(en(this.#a),null),this.#o&&=(en(this.#o),null),this.#s&&=(en(this.#s),null),pe&&(he(this.#t),_e(),he(ve()));var r=!1,i=!1;let a=()=>{if(r){fe();return}r=!0,i&&ue(),this.#s!==null&&rn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ne(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return Xt(()=>{var t=Z;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ne(e,this.#i.parent),null}}))};Ae(()=>{var t;try{t=this.transform_error(e)}catch(e){Ne(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ne(e,this.#i&&this.#i.parent)):o(t)})}};function st(e){var t=2|D,n=X!==null&&X.f&2?X:null;return Z!==null&&(Z.f|=N),{ctx:U,deps:null,effects:null,equals:ye,f:t,fn:e,reactions:null,rv:0,v:d,wv:0,parent:n??Z,ac:null}}function ct(e){let t=st(e);return Se||hn(t),t}function lt(e){let t=st(e);return t.equals=xe,t}function ut(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)en(t[n])}}function dt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function ft(e){var t,n=Z;pn(dt(e));try{e.f&=~F,ut(e),t=Dn(e)}finally{pn(n)}return t}function pt(e){var t=e.v,n=ft(e);if(!e.equals(n)&&(e.wv=wn(),(!G?.is_fork||e.deps===null)&&(e.v=n,G?.capture(e,t,!0),e.deps===null))){W(e,E);return}ln||(K===null?Fe(e):(Vt()||G?.is_fork)&&K.set(e,n))}function mt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(z),t.teardown=C,t.ac=null,kn(t,0),Qt(t))}function ht(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&An(t)}var gt=new Set,Y=new Map,_t=!1;function vt(e,t){return{f:0,v:e,reactions:null,equals:ye,rv:0,wv:0}}function yt(e,t){let n=vt(e,t);return hn(n),n}function bt(e,t=!1,n=!0){let r=vt(e);return t||(r.equals=xe),Ce&&n&&U!==null&&U.l!==null&&(U.l.s??=[]).push(r),r}function xt(e,t,n=!1){return X!==null&&(!dn||X.f&131072)&&De()&&X.f&4325394&&(mn===null||!m.call(mn,e))&&le(),St(e,n?Et(t):t,Ke)}function St(e,t,n=null){if(!e.equals(t)){var r=e.v;ln?Y.set(e,t):Y.set(e,r),e.v=t;var i=Ye.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&ft(t),K===null&&Fe(t)}e.wv=wn(),Tt(e,D,n),De()&&Z!==null&&Z.f&1024&&!(Z.f&96)&&(vn===null?yn([e]):vn.push(e)),!i.is_fork&&gt.size>0&&!_t&&Ct()}return t}function Ct(){_t=!1;for(let e of gt)e.f&1024&&W(e,O),Tn(e)&&An(e);gt.clear()}function wt(e){xt(e,e.v+1)}function Tt(e,t,n){var r=e.reactions;if(r!==null)for(var i=De(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Z)){var l=(c&D)===0;if(l&&W(s,t),c&2){var u=s;K?.delete(u),c&65536||(c&512&&(s.f|=F),Tt(u,O,n))}else if(l){var d=s;c&16&&Ze!==null&&Ze.add(d),n===null?tt(d):n.push(d)}}}}function Et(e){if(typeof e!=`object`||!e||L in e)return e;let t=x(e);if(t!==y&&t!==b)return e;var n=new Map,r=f(e),i=yt(0),a=null,o=Sn,s=e=>{if(Sn===o)return e();var t=X,n=Sn;fn(null),Cn(o);var r=e();return fn(t),Cn(n),r};return r&&n.set(`length`,yt(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&se();var i=n.get(t);return i===void 0?s(()=>{var e=yt(r.value,a);return n.set(t,e),e}):xt(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>yt(d,a));n.set(t,e),wt(i)}}else xt(r,d),wt(i);return!0},get(t,r,i){if(r===L)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||v(t,r)?.writable)&&(o=s(()=>yt(Et(c?t[r]:d),a)),n.set(r,o)),o!==void 0){var l=Q(o);return l===d?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Q(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==d)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===L)return!0;var r=n.get(t),i=r!==void 0&&r.v!==d||Reflect.has(e,t);return(r!==void 0||Z!==null&&(!i||v(e,t)?.writable))&&(r===void 0&&(r=s(()=>yt(i?Et(e[t]):d,a)),n.set(t,r)),Q(r)===d)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var f=o;f<l.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=s(()=>yt(d,a)),n.set(f+``,p)):xt(p,d)}if(l===void 0)(!u||v(e,t)?.writable)&&(l=s(()=>yt(void 0,a)),xt(l,Et(o)),n.set(t,l));else{u=l.v!==d;var m=s(()=>Et(o));xt(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&xt(g,_+1)}wt(i)}return!0},ownKeys(e){Q(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==d});for(var[r,a]of n)a.v!==d&&!(r in e)&&t.push(r);return t},setPrototypeOf(){ce()}})}var Dt,Ot,kt,At;function jt(){if(Dt===void 0){Dt=window,Ot=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;kt=v(t,`firstChild`).get,At=v(t,`nextSibling`).get,S(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),S(n)&&(n.__t=void 0)}}function Mt(e=``){return document.createTextNode(e)}function Nt(e){return kt.call(e)}function Pt(e){return At.call(e)}function Ft(e){e.textContent=``}function It(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Lt(e){var t=X,n=Z;fn(null),pn(null);try{return e()}finally{fn(t),pn(n)}}function Rt(e){Z===null&&(X===null&&re(e),V()),ln&&ne(e)}function zt(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Bt(e,t){var n=Z;n!==null&&n.f&8192&&(e|=k);var r={ctx:U,deps:null,nodes:null,f:e|D|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)Ge===null?Ye.ensure().schedule(r):Ge.push(r);else if(t!==null){try{An(r)}catch(e){throw en(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|=M))}if(i!==null&&(i.parent=n,n!==null&&zt(i,n),X!==null&&X.f&2&&!(e&64))){var a=X;(a.effects??=[]).push(i)}return r}function Vt(){return X!==null&&!dn}function Ht(e){let t=Bt(8,null);return W(t,E),t.teardown=e,t}function Ut(e){Rt(`$effect`);var t=Z.f;if(!X&&t&32&&!(t&32768)){var n=U;(n.e??=[]).push(e)}else return Wt(e)}function Wt(e){return Bt(4|P,e)}function Gt(e){Ye.ensure();let t=Bt(64|N,e);return()=>{en(t)}}function Kt(e){Ye.ensure();let t=Bt(64|N,e);return(e={})=>new Promise(n=>{e.outro?rn(t,()=>{en(t),n(void 0)}):(en(t),n(void 0))})}function qt(e){return Bt(4,e)}function Jt(e,t=0){return Bt(8|t,e)}function Yt(e,t=0){return Bt(16|t,e)}function Xt(e){return Bt(32|N,e)}function Zt(e){var t=e.teardown;if(t!==null){let e=ln,n=X;un(!0),fn(null);try{t.call(null)}finally{un(e),fn(n)}}}function Qt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Lt(()=>{e.abort(z)});var r=n.next;n.f&64?n.parent=null:en(n,t),n=r}}function $t(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||en(t),t=n}}function en(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(tn(e.nodes.start,e.nodes.end),n=!0),W(e,ee),Qt(e,t&&!n),kn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Zt(e),e.f^=ee,e.f|=A;var i=e.parent;i!==null&&i.first!==null&&nn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function tn(e,t){for(;e!==null;){var n=e===t?null:Pt(e);e.remove(),e=n}}function nn(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 rn(e,t,n=!0){var r=[];an(e,r,!0);var i=()=>{n&&en(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function an(e,t,n){if(!(e.f&8192)){e.f^=k;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;an(i,t,o?n:!1),i=a}}}function on(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Pt(n);t.append(n),n=i}}var sn=null,cn=!1,ln=!1;function un(e){ln=e}var X=null,dn=!1;function fn(e){X=e}var Z=null;function pn(e){Z=e}var mn=null;function hn(e){X!==null&&(!Se||X.f&2)&&(mn===null?mn=[e]:mn.push(e))}var gn=null,_n=0,vn=null;function yn(e){vn=e}var bn=1,xn=0,Sn=xn;function Cn(e){Sn=e}function wn(){return++bn}function Tn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~F),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Tn(a)&&pt(a),a.wv>e.wv)return!0}t&512&&K===null&&W(e,E)}return!1}function En(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Se&&mn!==null&&m.call(mn,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?En(a,t,!1):t===a&&(n?W(a,D):a.f&1024&&W(a,O),tt(a))}}function Dn(e){var t=gn,n=_n,r=vn,i=X,a=mn,o=U,s=dn,c=Sn,l=e.f;gn=null,_n=0,vn=null,X=l&96?null:e,mn=null,we(e.ctx),dn=!1,Sn=++xn,e.ac!==null&&(Lt(()=>{e.ac.abort(z)}),e.ac=null);try{e.f|=I;var u=e.fn,d=u();e.f|=j;var f=e.deps,p=G?.is_fork;if(gn!==null){var m;if(p||kn(e,_n),f!==null&&_n>0)for(f.length=_n+gn.length,m=0;m<gn.length;m++)f[_n+m]=gn[m];else e.deps=f=gn;if(Vt()&&e.f&512)for(m=_n;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&_n<f.length&&(kn(e,_n),f.length=_n);if(De()&&vn!==null&&!dn&&f!==null&&!(e.f&6146))for(m=0;m<vn.length;m++)En(vn[m],e);if(i!==null&&i!==e){if(xn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=xn;if(t!==null)for(let e of t)e.rv=xn;vn!==null&&(r===null?r=vn:r.push(...vn))}return e.f&8388608&&(e.f^=te),d}catch(e){return Me(e)}finally{e.f^=I,gn=t,_n=n,vn=r,X=i,mn=a,we(o),dn=s,Sn=c}}function On(e,t){let n=t.reactions;if(n!==null){var r=p.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&&(gn===null||!m.call(gn,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~F),Fe(a),mt(a),kn(a,0)}}function kn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)On(e,n[r])}function An(e){var t=e.f;if(!(t&16384)){W(e,E);var n=Z,r=cn;Z=e,cn=!0;try{t&16777232?$t(e):Qt(e),Zt(e);var i=Dn(e);e.teardown=typeof i==`function`?i:null,e.wv=bn}finally{cn=r,Z=n}}}function Q(e){var t=(e.f&2)!=0;if(sn?.add(e),X!==null&&!dn&&!(Z!==null&&Z.f&16384)&&(mn===null||!m.call(mn,e))){var n=X.deps;if(X.f&2097152)e.rv<xn&&(e.rv=xn,gn===null&&n!==null&&n[_n]===e?_n++:gn===null?gn=[e]:gn.push(e));else{(X.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[X]:m.call(r,X)||r.push(X)}}if(ln&&Y.has(e))return Y.get(e);if(t){var i=e;if(ln){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Mn(i))&&(a=ft(i)),Y.set(i,a),a}var o=(i.f&512)==0&&!dn&&X!==null&&(cn||(X.f&512)!=0),s=(i.f&j)===0;Tn(i)&&(o&&(i.f|=512),pt(i)),o&&!s&&(ht(i),jn(i))}if(K?.has(e))return K.get(e);if(e.f&8388608)throw e.v;return e.v}function jn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(ht(t),jn(t))}function Mn(e){if(e.v===d)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Y.has(t)||t.f&2&&Mn(t))return!0;return!1}function Nn(e){var t=dn;try{return dn=!0,e()}finally{dn=t}}var Pn=Symbol(`events`),Fn=new Set,In=new Set;function Ln(e,t,n,r={}){function i(e){if(r.capture||Bn.call(t,e),!e.cancelBubble)return Lt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ae(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Rn(e,t,n,r,i){var a={capture:r,passive:i},o=Ln(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ht(()=>{t.removeEventListener(e,o,a)})}var zn=null;function Bn(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[Pn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Pn]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){_(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=X,d=Z;fn(null),pn(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[Pn]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Pn]=t,delete e.currentTarget,fn(u),pn(d)}}}var Vn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Hn(e){return Vn?.createHTML(e)??e}function Un(e){var t=It(`template`);return t.innerHTML=Hn(e.replaceAll(`<!>`,`<!---->`)),t.content}function Wn(e,t){var n=Z;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Gn(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(pe)return Wn(H,null),H;i===void 0&&(i=Un(a?e:`<!>`+e),n||(i=Nt(i)));var t=r||Ot?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Nt(t),s=t.lastChild;Wn(o,s)}else Wn(t,t);return t}}function Kn(e,t){if(pe){var n=Z;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=H),ge();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 qn=[`touchstart`,`touchmove`];function Jn(e){return qn.includes(e)}function Yn(e,t){return Qn(e,t)}function Xn(e,t){jt(),t.intro=t.intro??!1;let n=t.target,r=pe,i=H;try{for(var a=Nt(n);a&&(a.nodeType!==8||a.data!==`[`);)a=Pt(a);if(!a)throw u;me(!0),he(a);let r=Qn(e,{...t,anchor:a});return me(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==u&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&ae(),jt(),Ft(n),me(!1),Yn(e,t)}finally{me(r),he(i)}}var Zn=new Map;function Qn(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){jt();var c=void 0,l=Kt(()=>{var o=n??t.appendChild(Mt());at(o,{pending:()=>{}},t=>{Te({});var n=U;if(a&&(n.c=a),i&&(r.$$events=i),pe&&Wn(t,null),c=e(t,r)||{},pe&&(Z.nodes.end=H,H===null||H.nodeType!==8||H.data!==`]`))throw de(),u;Ee()},s);var l=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=Jn(r);for(let e of[t,document]){var a=Zn.get(e);a===void 0&&(a=new Map,Zn.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Bn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(h(Fn)),In.add(d),()=>{for(var e of l)for(let n of[t,document]){var r=Zn.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Bn),r.delete(e),r.size===0&&Zn.delete(n)):r.set(e,i)}In.delete(d),o!==n&&o.parentNode?.removeChild(o)}});return $n.set(c,l),c}var $n=new WeakMap;function er(e,t){let n=$n.get(e);return n?($n.delete(e),n(t)):Promise.resolve()}function tr(e){U===null&&B(`onMount`),Ce&&U.l!==null?rr(U).m.push(e):Ut(()=>{let t=Nn(e);if(typeof t==`function`)return t})}function nr(e){U===null&&B(`onDestroy`),tr(()=>()=>Nn(e))}function rr(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function ir(e,t){qt(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=It(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function ar(e,t,n,r){var i=!Ce||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Nn(r):r),s);let u;if(a){var d=L in e||R in e;u=v(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=Be(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&oe(t),u(f)));var m=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 m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?st:lt)(()=>(g=!1,m()));a&&Q(_);var y=Z;return(function(e,t){if(arguments.length>0){let n=t?Q(_):i&&a?Et(e):e;return xt(_,n),g=!0,s!==void 0&&(s=n),e}return ln&&g||y.f&16384?_.v:Q(_)})}function or(e){return new sr(e)}var sr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=bt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===R?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return xt(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Xn:Yn)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Se&&(!e?.props?.$$host||e.sync===!1)&&q(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||_(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=()=>{er(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()}},cr;typeof HTMLElement==`function`&&(cr=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=It(`slot`);e!==`default`&&(n.name=e),Kn(t,n)}}let t={},n=ur(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]=lr(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=Gt(()=>{Jt(()=>{this.$$r=!0;for(let e of g(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=lr(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]=lr(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 g(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function lr(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 ur(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function dr(e,t,n,r,i,a){let o=class extends cr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return g(t).map(e=>(t[e].attribute||e).toLowerCase())}};return g(t).forEach(e=>{_(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=lr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(v(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{_(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function fr(e,t=100,n={}){if(typeof e!=`function`)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");if(typeof n==`boolean`)throw TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");let{immediate:r}=n,i,a,o,s,c;function l(){let t=i,n=a;return i=void 0,a=void 0,c=e.apply(t,n),c}function u(){let e=Date.now()-s;e<t&&e>=0?o=setTimeout(u,t-e):(o=void 0,r||(c=l()))}let d=function(...e){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw Error(`Debounced method called with different contexts of the same prototype.`);i=this,a=e,s=Date.now();let n=r&&!o;if(o||=setTimeout(u,t),n)return c=l(),c};return Object.defineProperty(d,`isPending`,{get(){return o!==void 0}}),d.clear=()=>{o&&(clearTimeout(o),o=void 0,i=void 0,a=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{c=l(),d.clear()},d}var pr=l(s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.Raphael=r():n.Raphael=r()})(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,`default`,{enumerable:!0,value:e}),2&t&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)}([function(e,t,n){var r=[n(2)],i;(i=function(e){function t(r){if(t.is(r,`function`))return n?r():e.on(`raphael.DOMload`,r);if(t.is(r,O))return t._engine.create[d](t,r.splice(0,3+t.is(r[0],D))).add(r);var i=Array.prototype.slice.call(arguments,0);if(t.is(i[i.length-1],`function`)){var a=i.pop();return n?a.call(t._engine.create[d](t,i)):e.on(`raphael.DOMload`,function(){a.call(t._engine.create[d](t,i))})}return t._engine.create[d](t,arguments)}t.version=`2.3.0`,t.eve=e;var n,r,i=/[, ]+/,a={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},o=/\{(\d+)\}/g,s=`hasOwnProperty`,c={doc:document,win:window},l={was:Object.prototype[s].call(c.win,`Raphael`),is:c.win.Raphael},u=function(){this.ca=this.customAttributes={}},d=`apply`,f=`concat`,p=`ontouchstart`in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,m=``,h=` `,g=String,_=`split`,v=`click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel`[_](h),y={mousedown:`touchstart`,mousemove:`touchmove`,mouseup:`touchend`},b=g.prototype.toLowerCase,x=Math,S=x.max,C=x.min,w=x.abs,T=x.pow,E=x.PI,D=`number`,O=`array`,k=Object.prototype.toString,A=(t._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),j={NaN:1,Infinity:1,"-Infinity":1},ee=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,M=x.round,N=parseFloat,P=parseInt,F=g.prototype.toUpperCase,I=t._availableAttrs={"arrow-end":`none`,"arrow-start":`none`,blur:0,"clip-rect":`0 0 1e9 1e9`,cursor:`default`,cx:0,cy:0,fill:`#fff`,"fill-opacity":1,font:`10px "Arial"`,"font-family":`"Arial"`,"font-size":`10`,"font-style":`normal`,"font-weight":400,gradient:0,height:0,href:`http://raphaeljs.com/`,"letter-spacing":0,opacity:1,path:`M0,0`,r:0,rx:0,ry:0,src:``,stroke:`#000`,"stroke-dasharray":``,"stroke-linecap":`butt`,"stroke-linejoin":`butt`,"stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:`_blank`,"text-anchor":`middle`,title:`Raphael`,transform:``,width:0,x:0,y:0,class:``},te=t._availableAnimAttrs={blur:D,"clip-rect":`csv`,cx:D,cy:D,fill:`colour`,"fill-opacity":D,"font-size":D,height:D,opacity:D,path:`path`,r:D,rx:D,ry:D,stroke:`colour`,"stroke-opacity":D,"stroke-width":D,transform:`transform`,width:D,x:D,y:D},L=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,R={hs:1,rg:1},z=/,?([achlmqrstvxz]),?/gi,B=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,ne=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,V=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,re=(t._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),ie=function(e,t){return N(e)-N(t)},ae=function(e){return e},oe=t._rectPath=function(e,t,n,r,i){return i?[[`M`,e+i,t],[`l`,n-2*i,0],[`a`,i,i,0,0,1,i,i],[`l`,0,r-2*i],[`a`,i,i,0,0,1,-i,i],[`l`,2*i-n,0],[`a`,i,i,0,0,1,-i,-i],[`l`,0,2*i-r],[`a`,i,i,0,0,1,i,-i],[`z`]]:[[`M`,e,t],[`l`,n,0],[`l`,0,r],[`l`,-n,0],[`z`]]},se=function(e,t,n,r){return r??=n,[[`M`,e,t],[`m`,0,-r],[`a`,n,r,0,1,1,0,2*r],[`a`,n,r,0,1,1,0,-2*r],[`z`]]},ce=t._getPath={path:function(e){return e.attr(`path`)},circle:function(e){var t=e.attrs;return se(t.cx,t.cy,t.r)},ellipse:function(e){var t=e.attrs;return se(t.cx,t.cy,t.rx,t.ry)},rect:function(e){var t=e.attrs;return oe(t.x,t.y,t.width,t.height,t.r)},image:function(e){var t=e.attrs;return oe(t.x,t.y,t.width,t.height)},text:function(e){var t=e._getBBox();return oe(t.x,t.y,t.width,t.height)},set:function(e){var t=e._getBBox();return oe(t.x,t.y,t.width,t.height)}},le=t.mapPath=function(e,t){if(!t)return e;var n,r,i,a,o,s,c;for(i=0,o=(e=Ie(e)).length;i<o;i++)for(a=1,s=(c=e[i]).length;a<s;a+=2)n=t.x(c[a],c[a+1]),r=t.y(c[a],c[a+1]),c[a]=n,c[a+1]=r;return e};if(t._g=c,t.type=c.win.SVGAngle||c.doc.implementation.hasFeature(`http://www.w3.org/TR/SVG11/feature#BasicStructure`,`1.1`)?`SVG`:`VML`,t.type==`VML`){var ue,de=c.doc.createElement(`div`);if(de.innerHTML=`<v:shape adj="1"/>`,(ue=de.firstChild).style.behavior=`url(#default#VML)`,!ue||typeof ue.adj!=`object`)return t.type=m;de=null}function fe(e){if(typeof e==`function`||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)e[s](n)&&(t[n]=fe(e[n]));return t}t.svg=!(t.vml=t.type==`VML`),t._Paper=u,t.fn=r=u.prototype=t.prototype,t._id=0,t.is=function(e,t){return(t=b.call(t))==`finite`?!j[s](+e):t==`array`?e instanceof Array:t==`null`&&e===null||t==typeof e&&e!==null||t==`object`&&e===Object(e)||t==`array`&&Array.isArray&&Array.isArray(e)||k.call(e).slice(8,-1).toLowerCase()==t},t.angle=function(e,n,r,i,a,o){if(a==null){var s=e-r,c=n-i;return s||c?(180+180*x.atan2(-c,-s)/E+360)%360:0}return t.angle(e,n,a,o)-t.angle(r,i,a,o)},t.rad=function(e){return e%360*E/180},t.deg=function(e){return Math.round(180*e/E%360*1e3)/1e3},t.snapTo=function(e,n,r){if(r=t.is(r,`finite`)?r:10,t.is(e,O)){for(var i=e.length;i--;)if(w(e[i]-n)<=r)return e[i]}else{var a=n%(e=+e);if(a<r)return n-a;if(a>e-r)return n-a+e}return n};var pe,me;t.createUUID=(pe=/[xy]/g,me=function(e){var t=16*x.random()|0;return(e==`x`?t:3&t|8).toString(16)},function(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(pe,me).toUpperCase()}),t.setWindow=function(n){e(`raphael.setWindow`,t,c.win,n),c.win=n,c.doc=c.win.document,t._engine.initWin&&t._engine.initWin(c.win)};var H=function(e){if(t.vml){var n,r=/^\s+|\s+$/g;try{var i=new ActiveXObject(`htmlfile`);i.write(`<body>`),i.close(),n=i.body}catch{n=createPopup().document.body}var a=n.createTextRange();H=be(function(e){try{n.style.color=g(e).replace(r,m);var t=a.queryCommandValue(`ForeColor`);return`#`+(`000000`+(t=(255&t)<<16|65280&t|(16711680&t)>>>16).toString(16)).slice(-6)}catch{return`none`}})}else{var o=c.doc.createElement(`i`);o.title=`Raphaël Colour Picker`,o.style.display=`none`,c.doc.body.appendChild(o),H=be(function(e){return o.style.color=e,c.doc.defaultView.getComputedStyle(o,m).getPropertyValue(`color`)})}return H(e)},he=function(){return`hsb(`+[this.h,this.s,this.b]+`)`},ge=function(){return`hsl(`+[this.h,this.s,this.l]+`)`},_e=function(){return this.hex},ve=function(e,n,r){if(n==null&&t.is(e,`object`)&&`r`in e&&`g`in e&&`b`in e&&(r=e.b,n=e.g,e=e.r),n==null&&t.is(e,`string`)){var i=t.getRGB(e);e=i.r,n=i.g,r=i.b}return(e>1||n>1||r>1)&&(e/=255,n/=255,r/=255),[e,n,r]},ye=function(e,n,r,i){var a={r:e*=255,g:n*=255,b:r*=255,hex:t.rgb(e,n,r),toString:_e};return t.is(i,`finite`)&&(a.opacity=i),a};function be(e,t,n){return function r(){var i=Array.prototype.slice.call(arguments,0),a=i.join(`␀`),o=r.cache=r.cache||{},c=r.count=r.count||[];return o[s](a)?(function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}(c,a),n?n(o[a]):o[a]):(c.length>=1e3&&delete o[c.shift()],c.push(a),o[a]=e[d](t,i),n?n(o[a]):o[a])}}t.color=function(e){var n;return t.is(e,`object`)&&`h`in e&&`s`in e&&`b`in e?(n=t.hsb2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.hex=n.hex):t.is(e,`object`)&&`h`in e&&`s`in e&&`l`in e?(n=t.hsl2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.hex=n.hex):(t.is(e,`string`)&&(e=t.getRGB(e)),t.is(e,`object`)&&`r`in e&&`g`in e&&`b`in e?(n=t.rgb2hsl(e),e.h=n.h,e.s=n.s,e.l=n.l,n=t.rgb2hsb(e),e.v=n.b):(e={hex:`none`}).r=e.g=e.b=e.h=e.s=e.v=e.l=-1),e.toString=_e,e},t.hsb2rgb=function(e,t,n,r){var i,a,o,s,c;return this.is(e,`object`)&&`h`in e&&`s`in e&&`b`in e&&(n=e.b,t=e.s,r=e.o,e=e.h),s=(c=n*t)*(1-w((e=(e*=360)%360/60)%2-1)),i=a=o=n-c,ye(i+=[c,s,0,0,s,c][e=~~e],a+=[s,c,c,s,0,0][e],o+=[0,0,s,c,c,s][e],r)},t.hsl2rgb=function(e,t,n,r){var i,a,o,s,c;return this.is(e,`object`)&&`h`in e&&`s`in e&&`l`in e&&(n=e.l,t=e.s,e=e.h),(e>1||t>1||n>1)&&(e/=360,t/=100,n/=100),s=(c=2*t*(n<.5?n:1-n))*(1-w((e=(e*=360)%360/60)%2-1)),i=a=o=n-c/2,ye(i+=[c,s,0,0,s,c][e=~~e],a+=[s,c,c,s,0,0][e],o+=[0,0,s,c,c,s][e],r)},t.rgb2hsb=function(e,t,n){var r,i;return e=(n=ve(e,t,n))[0],t=n[1],n=n[2],{h:(((i=(r=S(e,t,n))-C(e,t,n))==0?null:r==e?(t-n)/i:r==t?(n-e)/i+2:(e-t)/i+4)+360)%6*60/360,s:i==0?0:i/r,b:r,toString:he}},t.rgb2hsl=function(e,t,n){var r,i,a,o;return e=(n=ve(e,t,n))[0],t=n[1],n=n[2],r=((i=S(e,t,n))+(a=C(e,t,n)))/2,{h:(((o=i-a)==0?null:i==e?(t-n)/o:i==t?(n-e)/o+2:(e-t)/o+4)+360)%6*60/360,s:o==0?0:r<.5?o/(2*r):o/(2-2*r),l:r,toString:ge}},t._path2string=function(){return this.join(`,`).replace(z,`$1`)},t._preload=function(e,t){var n=c.doc.createElement(`img`);n.style.cssText=`position:absolute;left:-9999em;top:-9999em`,n.onload=function(){t.call(this),this.onload=null,c.doc.body.removeChild(this)},n.onerror=function(){c.doc.body.removeChild(this)},c.doc.body.appendChild(n),n.src=e};function xe(){return this.hex}function Se(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var a=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4==r?a[3]={x:+e[0],y:+e[1]}:i-2==r&&(a[2]={x:+e[0],y:+e[1]},a[3]={x:+e[2],y:+e[3]}):a[0]={x:+e[i-2],y:+e[i-1]}:i-4==r?a[3]=a[2]:r||(a[0]={x:+e[r],y:+e[r+1]}),n.push([`C`,(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}t.getRGB=be(function(e){if(!e||(e=g(e)).indexOf(`-`)+1)return{r:-1,g:-1,b:-1,hex:`none`,error:1,toString:xe};if(e==`none`)return{r:-1,g:-1,b:-1,hex:`none`,toString:xe};!R[s](e.toLowerCase().substring(0,2))&&e.charAt()!=`#`&&(e=H(e));var n,r,i,a,o,c,l=e.match(A);return l?(l[2]&&(i=P(l[2].substring(5),16),r=P(l[2].substring(3,5),16),n=P(l[2].substring(1,3),16)),l[3]&&(i=P((o=l[3].charAt(3))+o,16),r=P((o=l[3].charAt(2))+o,16),n=P((o=l[3].charAt(1))+o,16)),l[4]&&(c=l[4][_](L),n=N(c[0]),c[0].slice(-1)==`%`&&(n*=2.55),r=N(c[1]),c[1].slice(-1)==`%`&&(r*=2.55),i=N(c[2]),c[2].slice(-1)==`%`&&(i*=2.55),l[1].toLowerCase().slice(0,4)==`rgba`&&(a=N(c[3])),c[3]&&c[3].slice(-1)==`%`&&(a/=100)),l[5]?(c=l[5][_](L),n=N(c[0]),c[0].slice(-1)==`%`&&(n*=2.55),r=N(c[1]),c[1].slice(-1)==`%`&&(r*=2.55),i=N(c[2]),c[2].slice(-1)==`%`&&(i*=2.55),(c[0].slice(-3)==`deg`||c[0].slice(-1)==`°`)&&(n/=360),l[1].toLowerCase().slice(0,4)==`hsba`&&(a=N(c[3])),c[3]&&c[3].slice(-1)==`%`&&(a/=100),t.hsb2rgb(n,r,i,a)):l[6]?(c=l[6][_](L),n=N(c[0]),c[0].slice(-1)==`%`&&(n*=2.55),r=N(c[1]),c[1].slice(-1)==`%`&&(r*=2.55),i=N(c[2]),c[2].slice(-1)==`%`&&(i*=2.55),(c[0].slice(-3)==`deg`||c[0].slice(-1)==`°`)&&(n/=360),l[1].toLowerCase().slice(0,4)==`hsla`&&(a=N(c[3])),c[3]&&c[3].slice(-1)==`%`&&(a/=100),t.hsl2rgb(n,r,i,a)):((l={r:n,g:r,b:i,toString:xe}).hex=`#`+(16777216|i|r<<8|n<<16).toString(16).slice(1),t.is(a,`finite`)&&(l.opacity=a),l)):{r:-1,g:-1,b:-1,hex:`none`,error:1,toString:xe}},t),t.hsb=be(function(e,n,r){return t.hsb2rgb(e,n,r).hex}),t.hsl=be(function(e,n,r){return t.hsl2rgb(e,n,r).hex}),t.rgb=be(function(e,t,n){function r(e){return e+.5|0}return`#`+(16777216|r(n)|r(t)<<8|r(e)<<16).toString(16).slice(1)}),t.getColor=function(e){var t=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||.75},n=this.hsb2rgb(t.h,t.s,t.b);return t.h+=.075,t.h>1&&(t.h=0,t.s-=.2,t.s<=0&&(this.getColor.start={h:0,s:1,b:t.b})),n.hex},t.getColor.reset=function(){delete this.start},t.parsePathString=function(e){if(!e)return null;var n=Ce(e);if(n.arr)return ke(n.arr);var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[];return t.is(e,O)&&t.is(e[0],O)&&(i=ke(e)),i.length||g(e).replace(B,function(e,t,n){var a=[],o=t.toLowerCase();if(n.replace(V,function(e,t){t&&a.push(+t)}),o==`m`&&a.length>2&&(i.push([t][f](a.splice(0,2))),o=`l`,t=t==`m`?`l`:`L`),o==`r`)i.push([t][f](a));else for(;a.length>=r[o]&&(i.push([t][f](a.splice(0,r[o]))),r[o]););}),i.toString=t._path2string,n.arr=ke(i),i},t.parseTransformString=be(function(e){if(!e)return null;var n=[];return t.is(e,O)&&t.is(e[0],O)&&(n=ke(e)),n.length||g(e).replace(ne,function(e,t,r){var i=[];b.call(t),r.replace(V,function(e,t){t&&i.push(+t)}),n.push([t][f](i))}),n.toString=t._path2string,n},this,function(e){if(!e)return e;for(var t=[],n=0;n<e.length;n++){for(var r=[],i=0;i<e[n].length;i++)r.push(e[n][i]);t.push(r)}return t});var Ce=function(e){var t=Ce.ps=Ce.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(function(){for(var n in t)t[s](n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])}),t[e]};function U(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n}function we(e,t,n,r,i,a,o,s,c){c??=1;for(var l=(c=c>1?1:c<0?0:c)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var m=l*u[p]+l,h=U(m,e,n,i,o),g=U(m,t,r,a,s),_=h*h+g*g;f+=d[p]*x.sqrt(_)}return l*f}function Te(e,t,n,r,i,a,o,s){if(!(S(e,n)<C(i,o)||C(e,n)>S(i,o)||S(t,r)<C(a,s)||C(t,r)>S(a,s))){var c=(e-n)*(a-s)-(t-r)*(i-o);if(c){var l=((e*r-t*n)*(i-o)-(e-n)*(i*s-a*o))/c,u=((e*r-t*n)*(a-s)-(t-r)*(i*s-a*o))/c,d=+l.toFixed(2),f=+u.toFixed(2);if(!(d<+C(e,n).toFixed(2)||d>+S(e,n).toFixed(2)||d<+C(i,o).toFixed(2)||d>+S(i,o).toFixed(2)||f<+C(t,r).toFixed(2)||f>+S(t,r).toFixed(2)||f<+C(a,s).toFixed(2)||f>+S(a,s).toFixed(2)))return{x:l,y:u}}}}function Ee(e,n,r){var i=t.bezierBBox(e),a=t.bezierBBox(n);if(!t.isBBoxIntersect(i,a))return r?0:[];for(var o=we.apply(0,e),s=we.apply(0,n),c=S(~~(o/5),1),l=S(~~(s/5),1),u=[],d=[],f={},p=r?0:[],m=0;m<c+1;m++){var h=t.findDotsAtSegment.apply(t,e.concat(m/c));u.push({x:h.x,y:h.y,t:m/c})}for(m=0;m<l+1;m++)h=t.findDotsAtSegment.apply(t,n.concat(m/l)),d.push({x:h.x,y:h.y,t:m/l});for(m=0;m<c;m++)for(var g=0;g<l;g++){var _=u[m],v=u[m+1],y=d[g],b=d[g+1],x=w(v.x-_.x)<.001?`y`:`x`,T=w(b.x-y.x)<.001?`y`:`x`,E=Te(_.x,_.y,v.x,v.y,y.x,y.y,b.x,b.y);if(E){if(f[E.x.toFixed(4)]==E.y.toFixed(4))continue;f[E.x.toFixed(4)]=E.y.toFixed(4);var D=_.t+w((E[x]-_[x])/(v[x]-_[x]))*(v.t-_.t),O=y.t+w((E[T]-y[T])/(b[T]-y[T]))*(b.t-y.t);D>=0&&D<=1.001&&O>=0&&O<=1.001&&(r?p++:p.push({x:E.x,y:E.y,t1:C(D,1),t2:C(O,1)}))}}return p}function De(e,n,r){e=t._path2curve(e),n=t._path2curve(n);for(var i,a,o,s,c,l,u,d,f,p,m=r?0:[],h=0,g=e.length;h<g;h++){var _=e[h];if(_[0]==`M`)i=c=_[1],a=l=_[2];else{_[0]==`C`?(f=[i,a].concat(_.slice(1)),i=f[6],a=f[7]):(f=[i,a,i,a,c,l,c,l],i=c,a=l);for(var v=0,y=n.length;v<y;v++){var b=n[v];if(b[0]==`M`)o=u=b[1],s=d=b[2];else{b[0]==`C`?(p=[o,s].concat(b.slice(1)),o=p[6],s=p[7]):(p=[o,s,o,s,u,d,u,d],o=u,s=d);var x=Ee(f,p,r);if(r)m+=x;else{for(var S=0,C=x.length;S<C;S++)x[S].segment1=h,x[S].segment2=v,x[S].bez1=f,x[S].bez2=p;m=m.concat(x)}}}}}return m}t.findDotsAtSegment=function(e,t,n,r,i,a,o,s,c){var l=1-c,u=T(l,3),d=T(l,2),f=c*c,p=f*c,m=u*e+3*d*c*n+3*l*c*c*i+p*o,h=u*t+3*d*c*r+3*l*c*c*a+p*s,g=e+2*c*(n-e)+f*(i-2*n+e),_=t+2*c*(r-t)+f*(a-2*r+t),v=n+2*c*(i-n)+f*(o-2*i+n),y=r+2*c*(a-r)+f*(s-2*a+r),b=l*e+c*n,S=l*t+c*r,C=l*i+c*o,w=l*a+c*s,D=90-180*x.atan2(g-v,_-y)/E;return(g>v||_<y)&&(D+=180),{x:m,y:h,m:{x:g,y:_},n:{x:v,y},start:{x:b,y:S},end:{x:C,y:w},alpha:D}},t.bezierBBox=function(e,n,r,i,a,o,s,c){t.is(e,`array`)||(e=[e,n,r,i,a,o,s,c]);var l=Fe.apply(null,e);return{x:l.min.x,y:l.min.y,x2:l.max.x,y2:l.max.y,width:l.max.x-l.min.x,height:l.max.y-l.min.y}},t.isPointInsideBBox=function(e,t,n){return t>=e.x&&t<=e.x2&&n>=e.y&&n<=e.y2},t.isBBoxIntersect=function(e,n){var r=t.isPointInsideBBox;return r(n,e.x,e.y)||r(n,e.x2,e.y)||r(n,e.x,e.y2)||r(n,e.x2,e.y2)||r(e,n.x,n.y)||r(e,n.x2,n.y)||r(e,n.x,n.y2)||r(e,n.x2,n.y2)||(e.x<n.x2&&e.x>n.x||n.x<e.x2&&n.x>e.x)&&(e.y<n.y2&&e.y>n.y||n.y<e.y2&&n.y>e.y)},t.pathIntersection=function(e,t){return De(e,t)},t.pathIntersectionNumber=function(e,t){return De(e,t,1)},t.isPointInsidePath=function(e,n,r){var i=t.pathBBox(e);return t.isPointInsideBBox(i,n,r)&&De(e,[[`M`,n,r],[`H`,i.x2+10]],1)%2==1},t._removedFactory=function(t){return function(){e(`raphael.log`,null,`Raphaël: you are calling to method “`+t+`” of removed object`,t)}};var Oe=t.pathBBox=function(e){var t=Ce(e);if(t.bbox)return fe(t.bbox);if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var n,r=0,i=0,a=[],o=[],s=0,c=(e=Ie(e)).length;s<c;s++)if((n=e[s])[0]==`M`)r=n[1],i=n[2],a.push(r),o.push(i);else{var l=Fe(r,i,n[1],n[2],n[3],n[4],n[5],n[6]);a=a[f](l.min.x,l.max.x),o=o[f](l.min.y,l.max.y),r=n[5],i=n[6]}var u=C[d](0,a),p=C[d](0,o),m=S[d](0,a),h=S[d](0,o),g=m-u,_=h-p,v={x:u,y:p,x2:m,y2:h,width:g,height:_,cx:u+g/2,cy:p+_/2};return t.bbox=fe(v),v},ke=function(e){var n=fe(e);return n.toString=t._path2string,n},Ae=t._pathToRelative=function(e){var n=Ce(e);if(n.rel)return ke(n.rel);t.is(e,O)&&t.is(e&&e[0],O)||(e=t.parsePathString(e));var r=[],i=0,a=0,o=0,s=0,c=0;e[0][0]==`M`&&(o=i=e[0][1],s=a=e[0][2],c++,r.push([`M`,i,a]));for(var l=c,u=e.length;l<u;l++){var d=r[l]=[],f=e[l];if(f[0]!=b.call(f[0]))switch(d[0]=b.call(f[0]),d[0]){case`a`:d[1]=f[1],d[2]=f[2],d[3]=f[3],d[4]=f[4],d[5]=f[5],d[6]=+(f[6]-i).toFixed(3),d[7]=+(f[7]-a).toFixed(3);break;case`v`:d[1]=+(f[1]-a).toFixed(3);break;case`m`:o=f[1],s=f[2];default:for(var p=1,m=f.length;p<m;p++)d[p]=+(f[p]-(p%2?i:a)).toFixed(3)}else{d=r[l]=[],f[0]==`m`&&(o=f[1]+i,s=f[2]+a);for(var h=0,g=f.length;h<g;h++)r[l][h]=f[h]}var _=r[l].length;switch(r[l][0]){case`z`:i=o,a=s;break;case`h`:i+=+r[l][_-1];break;case`v`:a+=+r[l][_-1];break;default:i+=+r[l][_-2],a+=+r[l][_-1]}}return r.toString=t._path2string,n.rel=ke(r),r},je=t._pathToAbsolute=function(e){var n=Ce(e);if(n.abs)return ke(n.abs);if(t.is(e,O)&&t.is(e&&e[0],O)||(e=t.parsePathString(e)),!e||!e.length)return[[`M`,0,0]];var r=[],i=0,a=0,o=0,s=0,c=0;e[0][0]==`M`&&(o=i=+e[0][1],s=a=+e[0][2],c++,r[0]=[`M`,i,a]);for(var l,u,d=e.length==3&&e[0][0]==`M`&&e[1][0].toUpperCase()==`R`&&e[2][0].toUpperCase()==`Z`,p=c,m=e.length;p<m;p++){if(r.push(l=[]),(u=e[p])[0]!=F.call(u[0]))switch(l[0]=F.call(u[0]),l[0]){case`A`:l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+a);break;case`V`:l[1]=+u[1]+a;break;case`H`:l[1]=+u[1]+i;break;case`R`:for(var h=[i,a][f](u.slice(1)),g=2,_=h.length;g<_;g++)h[g]=+h[g]+i,h[++g]=+h[g]+a;r.pop(),r=r[f](Se(h,d));break;case`M`:o=+u[1]+i,s=+u[2]+a;default:for(g=1,_=u.length;g<_;g++)l[g]=+u[g]+(g%2?i:a)}else if(u[0]==`R`)h=[i,a][f](u.slice(1)),r.pop(),r=r[f](Se(h,d)),l=[`R`][f](u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case`Z`:i=o,a=s;break;case`H`:i=l[1];break;case`V`:a=l[1];break;case`M`:o=l[l.length-2],s=l[l.length-1];default:i=l[l.length-2],a=l[l.length-1]}}return r.toString=t._path2string,n.abs=ke(r),r},Me=function(e,t,n,r){return[e,t,n,r,n,r]},Ne=function(e,t,n,r,i,a){return[1/3*e+2/3*n,1/3*t+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},Pe=function(e,t,n,r,i,a,o,s,c,l){var u,d=120*E/180,p=E/180*(+i||0),m=[],h=be(function(e,t,n){return{x:e*x.cos(n)-t*x.sin(n),y:e*x.sin(n)+t*x.cos(n)}});if(l)O=l[0],k=l[1],T=l[2],D=l[3];else{e=(u=h(e,t,-p)).x,t=u.y,s=(u=h(s,c,-p)).x,c=u.y,x.cos(E/180*i),x.sin(E/180*i);var g=(e-s)/2,v=(t-c)/2,y=g*g/(n*n)+v*v/(r*r);y>1&&(n*=y=x.sqrt(y),r*=y);var b=n*n,S=r*r,C=(a==o?-1:1)*x.sqrt(w((b*S-b*v*v-S*g*g)/(b*v*v+S*g*g))),T=C*n*v/r+(e+s)/2,D=C*-r*g/n+(t+c)/2,O=x.asin(((t-D)/r).toFixed(9)),k=x.asin(((c-D)/r).toFixed(9));(O=e<T?E-O:O)<0&&(O=2*E+O),(k=s<T?E-k:k)<0&&(k=2*E+k),o&&O>k&&(O-=2*E),!o&&k>O&&(k-=2*E)}var A=k-O;if(w(A)>d){var j=k,ee=s,M=c;k=O+d*(o&&k>O?1:-1),s=T+n*x.cos(k),c=D+r*x.sin(k),m=Pe(s,c,n,r,i,0,o,ee,M,[k,j,T,D])}A=k-O;var N=x.cos(O),P=x.sin(O),F=x.cos(k),I=x.sin(k),te=x.tan(A/4),L=4/3*n*te,R=4/3*r*te,z=[e,t],B=[e+L*P,t-R*N],ne=[s+L*I,c-R*F],V=[s,c];if(B[0]=2*z[0]-B[0],B[1]=2*z[1]-B[1],l)return[B,ne,V][f](m);for(var re=[],ie=0,ae=(m=[B,ne,V][f](m).join()[_](`,`)).length;ie<ae;ie++)re[ie]=ie%2?h(m[ie-1],m[ie],p).y:h(m[ie],m[ie+1],p).x;return re},W=function(e,t,n,r,i,a,o,s,c){var l=1-c;return{x:T(l,3)*e+3*T(l,2)*c*n+3*l*c*c*i+T(c,3)*o,y:T(l,3)*t+3*T(l,2)*c*r+3*l*c*c*a+T(c,3)*s}},Fe=be(function(e,t,n,r,i,a,o,s){var c,l=i-2*n+e-(o-2*i+n),u=2*(n-e)-2*(i-n),f=e-n,p=(-u+x.sqrt(u*u-4*l*f))/2/l,m=(-u-x.sqrt(u*u-4*l*f))/2/l,h=[t,s],g=[e,o];return w(p)>`1e12`&&(p=.5),w(m)>`1e12`&&(m=.5),p>0&&p<1&&(c=W(e,t,n,r,i,a,o,s,p),g.push(c.x),h.push(c.y)),m>0&&m<1&&(c=W(e,t,n,r,i,a,o,s,m),g.push(c.x),h.push(c.y)),l=a-2*r+t-(s-2*a+r),f=t-r,p=(-(u=2*(r-t)-2*(a-r))+x.sqrt(u*u-4*l*f))/2/l,m=(-u-x.sqrt(u*u-4*l*f))/2/l,w(p)>`1e12`&&(p=.5),w(m)>`1e12`&&(m=.5),p>0&&p<1&&(c=W(e,t,n,r,i,a,o,s,p),g.push(c.x),h.push(c.y)),m>0&&m<1&&(c=W(e,t,n,r,i,a,o,s,m),g.push(c.x),h.push(c.y)),{min:{x:C[d](0,g),y:C[d](0,h)},max:{x:S[d](0,g),y:S[d](0,h)}}}),Ie=t._path2curve=be(function(e,t){var n=!t&&Ce(e);if(!t&&n.curve)return ke(n.curve);for(var r=je(e),i=t&&je(t),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(e,t,n){var r,i;if(!e)return[`C`,t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case`M`:t.X=e[1],t.Y=e[2];break;case`A`:e=[`C`][f](Pe[d](0,[t.x,t.y][f](e.slice(1))));break;case`S`:n==`C`||n==`S`?(r=2*t.x-t.bx,i=2*t.y-t.by):(r=t.x,i=t.y),e=[`C`,r,i][f](e.slice(1));break;case`T`:n==`Q`||n==`T`?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[`C`][f](Ne(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case`Q`:t.qx=e[1],t.qy=e[2],e=[`C`][f](Ne(t.x,t.y,e[1],e[2],e[3],e[4]));break;case`L`:e=[`C`][f](Me(t.x,t.y,e[1],e[2]));break;case`H`:e=[`C`][f](Me(t.x,t.y,e[1],t.y));break;case`V`:e=[`C`][f](Me(t.x,t.y,t.x,e[1]));break;case`Z`:e=[`C`][f](Me(t.x,t.y,t.X,t.Y))}return e},c=function(e,t){if(e[t].length>7){e[t].shift();for(var n=e[t];n.length;)u[t]=`A`,i&&(p[t]=`A`),e.splice(t++,0,[`C`][f](n.splice(0,6)));e.splice(t,1),_=S(r.length,i&&i.length||0)}},l=function(e,t,n,a,o){e&&t&&e[o][0]==`M`&&t[o][0]!=`M`&&(t.splice(o,0,[`M`,a.x,a.y]),n.bx=0,n.by=0,n.x=e[o][1],n.y=e[o][2],_=S(r.length,i&&i.length||0))},u=[],p=[],m=``,h=``,g=0,_=S(r.length,i&&i.length||0);g<_;g++){r[g]&&(m=r[g][0]),m!=`C`&&(u[g]=m,g&&(h=u[g-1])),r[g]=s(r[g],a,h),u[g]!=`A`&&m==`C`&&(u[g]=`C`),c(r,g),i&&(i[g]&&(m=i[g][0]),m!=`C`&&(p[g]=m,g&&(h=p[g-1])),i[g]=s(i[g],o,h),p[g]!=`A`&&m==`C`&&(p[g]=`C`),c(i,g)),l(r,i,a,o,g),l(i,r,o,a,g);var v=r[g],y=i&&i[g],b=v.length,x=i&&y.length;a.x=v[b-2],a.y=v[b-1],a.bx=N(v[b-4])||a.x,a.by=N(v[b-3])||a.y,o.bx=i&&(N(y[x-4])||o.x),o.by=i&&(N(y[x-3])||o.y),o.x=i&&y[x-2],o.y=i&&y[x-1]}return i||(n.curve=ke(r)),i?[r,i]:r},null,ke),Le=(t._parseDots=be(function(e){for(var n=[],r=0,i=e.length;r<i;r++){var a={},o=e[r].match(/^([^:]*):?([\d\.]*)/);if(a.color=t.getRGB(o[1]),a.color.error)return null;a.opacity=a.color.opacity,a.color=a.color.hex,o[2]&&(a.offset=o[2]+`%`),n.push(a)}for(r=1,i=n.length-1;r<i;r++)if(!n[r].offset){for(var s=N(n[r-1].offset||0),c=0,l=r+1;l<i;l++)if(n[l].offset){c=n[l].offset;break}c||(c=100,l=i);for(var u=((c=N(c))-s)/(l-r+1);r<l;r++)s+=u,n[r].offset=s+`%`}return n}),t._tear=function(e,t){e==t.top&&(t.top=e.prev),e==t.bottom&&(t.bottom=e.next),e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next)}),Re=(t._tofront=function(e,t){t.top!==e&&(Le(e,t),e.next=null,e.prev=t.top,t.top.next=e,t.top=e)},t._toback=function(e,t){t.bottom!==e&&(Le(e,t),e.next=t.bottom,e.prev=null,t.bottom.prev=e,t.bottom=e)},t._insertafter=function(e,t,n){Le(e,n),t==n.top&&(n.top=e),t.next&&(t.next.prev=e),e.next=t.next,e.prev=t,t.next=e},t._insertbefore=function(e,t,n){Le(e,n),t==n.bottom&&(n.bottom=e),t.prev&&(t.prev.next=e),e.prev=t.prev,t.prev=e,e.next=t},t.toMatrix=function(e,t){var n=Oe(e),r={_:{transform:m},getBBox:function(){return n}};return ze(r,t),r.matrix}),ze=(t.transformPath=function(e,t){return le(e,Re(e,t))},t._extractTransform=function(e,n){if(n==null)return e._.transform;n=g(n).replace(/\.{3}|\u2026/g,e._.transform||m);var r,i,a=t.parseTransformString(n),o=0,s=1,c=1,l=e._,u=new G;if(l.transform=a||[],a)for(var d=0,f=a.length;d<f;d++){var p,h,_,v,y,b=a[d],x=b.length,S=g(b[0]).toLowerCase(),C=b[0]!=S,w=C?u.invert():0;S==`t`&&x==3?C?(p=w.x(0,0),h=w.y(0,0),_=w.x(b[1],b[2]),v=w.y(b[1],b[2]),u.translate(_-p,v-h)):u.translate(b[1],b[2]):S==`r`?x==2?(y||=e.getBBox(1),u.rotate(b[1],y.x+y.width/2,y.y+y.height/2),o+=b[1]):x==4&&(C?(_=w.x(b[2],b[3]),v=w.y(b[2],b[3]),u.rotate(b[1],_,v)):u.rotate(b[1],b[2],b[3]),o+=b[1]):S==`s`?x==2||x==3?(y||=e.getBBox(1),u.scale(b[1],b[x-1],y.x+y.width/2,y.y+y.height/2),s*=b[1],c*=b[x-1]):x==5&&(C?(_=w.x(b[3],b[4]),v=w.y(b[3],b[4]),u.scale(b[1],b[2],_,v)):u.scale(b[1],b[2],b[3],b[4]),s*=b[1],c*=b[2]):S==`m`&&x==7&&u.add(b[1],b[2],b[3],b[4],b[5],b[6]),l.dirtyT=1,e.matrix=u}e.matrix=u,l.sx=s,l.sy=c,l.deg=o,l.dx=r=u.e,l.dy=i=u.f,s==1&&c==1&&!o&&l.bbox?(l.bbox.x+=+r,l.bbox.y+=+i):l.dirtyT=1}),Be=function(e){var t=e[0];switch(t.toLowerCase()){case`t`:return[t,0,0];case`m`:return[t,1,0,0,1,0,0];case`r`:return e.length==4?[t,0,e[2],e[3]]:[t,0];case`s`:return e.length==5?[t,1,1,e[3],e[4]]:e.length==3?[t,1,1]:[t,1]}},Ve=t._equaliseTransform=function(e,n){n=g(n).replace(/\.{3}|\u2026/g,e),e=t.parseTransformString(e)||[],n=t.parseTransformString(n)||[];for(var r,i,a,o,s=S(e.length,n.length),c=[],l=[],u=0;u<s;u++){if(a=e[u]||Be(n[u]),o=n[u]||Be(a),a[0]!=o[0]||a[0].toLowerCase()==`r`&&(a[2]!=o[2]||a[3]!=o[3])||a[0].toLowerCase()==`s`&&(a[3]!=o[3]||a[4]!=o[4]))return;for(c[u]=[],l[u]=[],r=0,i=S(a.length,o.length);r<i;r++)r in a&&(c[u][r]=a[r]),r in o&&(l[u][r]=o[r])}return{from:c,to:l}};function G(e,t,n,r,i,a){e==null?(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0):(this.a=+e,this.b=+t,this.c=+n,this.d=+r,this.e=+i,this.f=+a)}t._getContainer=function(e,n,r,i){var a;if((a=i!=null||t.is(e,`object`)?e:c.doc.getElementById(e))!=null)return a.tagName?n==null?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:n,height:r}:{container:1,x:e,y:n,width:r,height:i}},t.pathToRelative=Ae,t._engine={},t.path2curve=Ie,t.matrix=function(e,t,n,r,i,a){return new G(e,t,n,r,i,a)},function(e){function n(e){return e[0]*e[0]+e[1]*e[1]}function r(e){var t=x.sqrt(n(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}e.add=function(e,t,n,r,i,a){var o,s,c,l,u=[[],[],[]],d=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],f=[[e,n,i],[t,r,a],[0,0,1]];for(e&&e instanceof G&&(f=[[e.a,e.c,e.e],[e.b,e.d,e.f],[0,0,1]]),o=0;o<3;o++)for(s=0;s<3;s++){for(l=0,c=0;c<3;c++)l+=d[o][c]*f[c][s];u[o][s]=l}this.a=u[0][0],this.b=u[1][0],this.c=u[0][1],this.d=u[1][1],this.e=u[0][2],this.f=u[1][2]},e.invert=function(){var e=this,t=e.a*e.d-e.b*e.c;return new G(e.d/t,-e.b/t,-e.c/t,e.a/t,(e.c*e.f-e.d*e.e)/t,(e.b*e.e-e.a*e.f)/t)},e.clone=function(){return new G(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(e,t){this.add(1,0,0,1,e,t)},e.scale=function(e,t,n,r){t??=e,(n||r)&&this.add(1,0,0,1,n,r),this.add(e,0,0,t,0,0),(n||r)&&this.add(1,0,0,1,-n,-r)},e.rotate=function(e,n,r){e=t.rad(e),n||=0,r||=0;var i=+x.cos(e).toFixed(9),a=+x.sin(e).toFixed(9);this.add(i,a,-a,i,n,r),this.add(1,0,0,1,-n,-r)},e.x=function(e,t){return e*this.a+t*this.c+this.e},e.y=function(e,t){return e*this.b+t*this.d+this.f},e.get=function(e){return+this[g.fromCharCode(97+e)].toFixed(4)},e.toString=function(){return t.svg?`matrix(`+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+`)`:[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},e.toFilter=function(){return`progid:DXImageTransform.Microsoft.Matrix(M11=`+this.get(0)+`, M12=`+this.get(2)+`, M21=`+this.get(1)+`, M22=`+this.get(3)+`, Dx=`+this.get(4)+`, Dy=`+this.get(5)+`, sizingmethod='auto expand')`},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var i=[[this.a,this.c],[this.b,this.d]];e.scalex=x.sqrt(n(i[0])),r(i[0]),e.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*e.shear,i[1][1]-i[0][1]*e.shear],e.scaley=x.sqrt(n(i[1])),r(i[1]),e.shear/=e.scaley;var a=-i[0][1],o=i[1][1];return o<0?(e.rotate=t.deg(x.acos(o)),a<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(x.asin(a)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(e){var t=e||this[_]();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?`t`+[t.dx,t.dy]:m)+(t.scalex!=1||t.scaley!=1?`s`+[t.scalex,t.scaley,0,0]:m)+(t.rotate?`r`+[t.rotate,0,0]:m)):`m`+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(G.prototype);for(var K=function(){this.returnValue=!1},He=function(){return this.originalEvent.preventDefault()},Ue=function(){this.cancelBubble=!0},We=function(){return this.originalEvent.stopPropagation()},Ge=function(e){var t=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,n=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft;return{x:e.clientX+n,y:e.clientY+t}},Ke=c.doc.addEventListener?function(e,t,n,r){var i=function(e){var t=Ge(e);return n.call(r,e,t.x,t.y)};if(e.addEventListener(t,i,!1),p&&y[t]){var a=function(t){for(var i=Ge(t),a=t,o=0,s=t.targetTouches&&t.targetTouches.length;o<s;o++)if(t.targetTouches[o].target==e){(t=t.targetTouches[o]).originalEvent=a,t.preventDefault=He,t.stopPropagation=We;break}return n.call(r,t,i.x,i.y)};e.addEventListener(y[t],a,!1)}return function(){return e.removeEventListener(t,i,!1),p&&y[t]&&e.removeEventListener(y[t],a,!1),!0}}:c.doc.attachEvent?function(e,t,n,r){var i=function(e){e||=c.win.event;var t=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,i=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft,a=e.clientX+i,o=e.clientY+t;return e.preventDefault=e.preventDefault||K,e.stopPropagation=e.stopPropagation||Ue,n.call(r,e,a,o)};return e.attachEvent(`on`+t,i),function(){return e.detachEvent(`on`+t,i),!0}}:void 0,qe=[],Je=function(t){for(var n,r=t.clientX,i=t.clientY,a=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,o=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft,s=qe.length;s--;){if(n=qe[s],p&&t.touches){for(var l,u=t.touches.length;u--;)if((l=t.touches[u]).identifier==n.el._drag.id){r=l.clientX,i=l.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var d,f=n.el.node,m=f.nextSibling,h=f.parentNode,g=f.style.display;c.win.opera&&h.removeChild(f),f.style.display=`none`,d=n.el.paper.getElementByPoint(r,i),f.style.display=g,c.win.opera&&(m?h.insertBefore(f,m):h.appendChild(f)),d&&e(`raphael.drag.over.`+n.el.id,n.el,d),r+=o,i+=a,e(`raphael.drag.move.`+n.el.id,n.move_scope||n.el,r-n.el._drag.x,i-n.el._drag.y,r,i,t)}},Ye=function(n){t.unmousemove(Je).unmouseup(Ye);for(var r,i=qe.length;i--;)(r=qe[i]).el._drag={},e(`raphael.drag.end.`+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,n);qe=[]},q=t.el={},Xe=v.length;Xe--;)(function(e){t[e]=q[e]=function(n,r){return t.is(n,`function`)&&(this.events=this.events||[],this.events.push({name:e,f:n,unbind:Ke(this.shape||this.node||c.doc,e,n,r||this)})),this},t[`un`+e]=q[`un`+e]=function(n){for(var r=this.events||[],i=r.length;i--;)r[i].name!=e||!t.is(n,`undefined`)&&r[i].f!=n||(r[i].unbind(),r.splice(i,1),!r.length&&delete this.events);return this}})(v[Xe]);q.data=function(n,r){var i=re[this.id]=re[this.id]||{};if(arguments.length==0)return i;if(arguments.length==1){if(t.is(n,`object`)){for(var a in n)n[s](a)&&this.data(a,n[a]);return this}return e(`raphael.data.get.`+this.id,this,i[n],n),i[n]}return i[n]=r,e(`raphael.data.set.`+this.id,this,r,n),this},q.removeData=function(e){return e==null?delete re[this.id]:re[this.id]&&delete re[this.id][e],this},q.getData=function(){return fe(re[this.id]||{})},q.hover=function(e,t,n,r){return this.mouseover(e,n).mouseout(t,r||n)},q.unhover=function(e,t){return this.unmouseover(e).unmouseout(t)};var Ze=[];q.drag=function(n,r,i,a,o,s){function l(l){(l.originalEvent||l).preventDefault();var u=l.clientX,d=l.clientY,f=c.doc.documentElement.scrollTop||c.doc.body.scrollTop,m=c.doc.documentElement.scrollLeft||c.doc.body.scrollLeft;if(this._drag.id=l.identifier,p&&l.touches){for(var h,g=l.touches.length;g--;)if(h=l.touches[g],this._drag.id=h.identifier,h.identifier==this._drag.id){u=h.clientX,d=h.clientY;break}}this._drag.x=u+m,this._drag.y=d+f,!qe.length&&t.mousemove(Je).mouseup(Ye),qe.push({el:this,move_scope:a,start_scope:o,end_scope:s}),r&&e.on(`raphael.drag.start.`+this.id,r),n&&e.on(`raphael.drag.move.`+this.id,n),i&&e.on(`raphael.drag.end.`+this.id,i),e(`raphael.drag.start.`+this.id,o||a||this,this._drag.x,this._drag.y,l)}return this._drag={},Ze.push({el:this,start:l}),this.mousedown(l),this},q.onDragOver=function(t){t?e.on(`raphael.drag.over.`+this.id,t):e.unbind(`raphael.drag.over.`+this.id)},q.undrag=function(){for(var n=Ze.length;n--;)Ze[n].el==this&&(this.unmousedown(Ze[n].start),Ze.splice(n,1),e.unbind(`raphael.drag.*.`+this.id));!Ze.length&&t.unmousemove(Je).unmouseup(Ye),qe=[]},r.circle=function(e,n,r){var i=t._engine.circle(this,e||0,n||0,r||0);return this.__set__&&this.__set__.push(i),i},r.rect=function(e,n,r,i,a){var o=t._engine.rect(this,e||0,n||0,r||0,i||0,a||0);return this.__set__&&this.__set__.push(o),o},r.ellipse=function(e,n,r,i){var a=t._engine.ellipse(this,e||0,n||0,r||0,i||0);return this.__set__&&this.__set__.push(a),a},r.path=function(e){e&&!t.is(e,`string`)&&!t.is(e[0],O)&&(e+=m);var n=t._engine.path(t.format[d](t,arguments),this);return this.__set__&&this.__set__.push(n),n},r.image=function(e,n,r,i,a){var o=t._engine.image(this,e||`about:blank`,n||0,r||0,i||0,a||0);return this.__set__&&this.__set__.push(o),o},r.text=function(e,n,r){var i=t._engine.text(this,e||0,n||0,g(r));return this.__set__&&this.__set__.push(i),i},r.set=function(e){!t.is(e,`array`)&&(e=Array.prototype.splice.call(arguments,0,arguments.length));var n=new gt(e);return this.__set__&&this.__set__.push(n),n.paper=this,n.type=`set`,n},r.setStart=function(e){this.__set__=e||this.set()},r.setFinish=function(e){var t=this.__set__;return delete this.__set__,t},r.getSize=function(){var e=this.canvas.parentNode;return{width:e.offsetWidth,height:e.offsetHeight}},r.setSize=function(e,n){return t._engine.setSize.call(this,e,n)},r.setViewBox=function(e,n,r,i,a){return t._engine.setViewBox.call(this,e,n,r,i,a)},r.top=r.bottom=null,r.raphael=t;function Qe(){return this.x+h+this.y+h+this.width+` × `+this.height}r.getElementByPoint=function(e,t){var n,r,i,a,o,s,l,u=this.canvas,d=c.doc.elementFromPoint(e,t);if(c.win.opera&&d.tagName==`svg`){var f=(r=(n=u).getBoundingClientRect(),i=n.ownerDocument,a=i.body,o=i.documentElement,s=o.clientTop||a.clientTop||0,l=o.clientLeft||a.clientLeft||0,{y:r.top+(c.win.pageYOffset||o.scrollTop||a.scrollTop)-s,x:r.left+(c.win.pageXOffset||o.scrollLeft||a.scrollLeft)-l}),p=u.createSVGRect();p.x=e-f.x,p.y=t-f.y,p.width=p.height=1;var m=u.getIntersectionList(p,null);m.length&&(d=m[m.length-1])}if(!d)return null;for(;d.parentNode&&d!=u.parentNode&&!d.raphael;)d=d.parentNode;return d==this.canvas.parentNode&&(d=u),d=d&&d.raphael?this.getById(d.raphaelid):null},r.getElementsByBBox=function(e){var n=this.set();return this.forEach(function(r){t.isBBoxIntersect(r.getBBox(),e)&&n.push(r)}),n},r.getById=function(e){for(var t=this.bottom;t;){if(t.id==e)return t;t=t.next}return null},r.forEach=function(e,t){for(var n=this.bottom;n;){if(!1===e.call(t,n))return this;n=n.next}return this},r.getElementsByPoint=function(e,t){var n=this.set();return this.forEach(function(r){r.isPointInside(e,t)&&n.push(r)}),n},q.isPointInside=function(e,n){var r=this.realPath=ce[this.type](this);return this.attr(`transform`)&&this.attr(`transform`).length&&(r=t.transformPath(r,this.attr(`transform`))),t.isPointInsidePath(r,e,n)},q.getBBox=function(e){if(this.removed)return{};var t=this._;return e?(!t.dirty&&t.bboxwt||(this.realPath=ce[this.type](this),t.bboxwt=Oe(this.realPath),t.bboxwt.toString=Qe,t.dirty=0),t.bboxwt):((t.dirty||t.dirtyT||!t.bbox)&&(!t.dirty&&this.realPath||(t.bboxwt=0,this.realPath=ce[this.type](this)),t.bbox=Oe(le(this.realPath,this.matrix)),t.bbox.toString=Qe,t.dirty=t.dirtyT=0),t.bbox)},q.clone=function(){if(this.removed)return null;var e=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(e),e},q.glow=function(e){if(this.type==`text`)return null;var t={width:((e||={}).width||10)+(+this.attr(`stroke-width`)||1),fill:e.fill||!1,opacity:e.opacity==null?.5:e.opacity,offsetx:e.offsetx||0,offsety:e.offsety||0,color:e.color||`#000`},n=t.width/2,r=this.paper,i=r.set(),a=this.realPath||ce[this.type](this);a=this.matrix?le(a,this.matrix):a;for(var o=1;o<n+1;o++)i.push(r.path(a).attr({stroke:t.color,fill:t.fill?t.color:`none`,"stroke-linejoin":`round`,"stroke-linecap":`round`,"stroke-width":+(t.width/n*o).toFixed(3),opacity:+(t.opacity/n).toFixed(3)}));return i.insertBefore(this).translate(t.offsetx,t.offsety)};var $e=function(e,n,r,i,a,o,s,c,l){return l==null?we(e,n,r,i,a,o,s,c):t.findDotsAtSegment(e,n,r,i,a,o,s,c,function(e,t,n,r,i,a,o,s,c){if(!(c<0||we(e,t,n,r,i,a,o,s)<c)){var l,u=.5,d=1-u;for(l=we(e,t,n,r,i,a,o,s,d);w(l-c)>.01;)l=we(e,t,n,r,i,a,o,s,d+=(l<c?1:-1)*(u/=2));return d}}(e,n,r,i,a,o,s,c,l))},et=function(e,n){return function(r,i,a){for(var o,s,c,l,u,d=``,f={},p=0,m=0,h=(r=Ie(r)).length;m<h;m++){if((c=r[m])[0]==`M`)o=+c[1],s=+c[2];else{if(p+(l=$e(o,s,c[1],c[2],c[3],c[4],c[5],c[6]))>i){if(n&&!f.start){if(d+=[`C`+(u=$e(o,s,c[1],c[2],c[3],c[4],c[5],c[6],i-p)).start.x,u.start.y,u.m.x,u.m.y,u.x,u.y],a)return d;f.start=d,d=[`M`+u.x,u.y+`C`+u.n.x,u.n.y,u.end.x,u.end.y,c[5],c[6]].join(),p+=l,o=+c[5],s=+c[6];continue}if(!e&&!n)return{x:(u=$e(o,s,c[1],c[2],c[3],c[4],c[5],c[6],i-p)).x,y:u.y,alpha:u.alpha}}p+=l,o=+c[5],s=+c[6]}d+=c.shift()+c}return f.end=d,(u=e?p:n?f:t.findDotsAtSegment(o,s,c[0],c[1],c[2],c[3],c[4],c[5],1)).alpha&&(u={x:u.x,y:u.y,alpha:u.alpha}),u}},tt=et(1),nt=et(),rt=et(0,1);t.getTotalLength=tt,t.getPointAtLength=nt,t.getSubpath=function(e,t,n){if(this.getTotalLength(e)-n<1e-6)return rt(e,t).end;var r=rt(e,n,1);return t?rt(r,t).end:r},q.getTotalLength=function(){var e=this.getPath();if(e)return this.node.getTotalLength?this.node.getTotalLength():tt(e)},q.getPointAtLength=function(e){var t=this.getPath();if(t)return nt(t,e)},q.getPath=function(){var e,n=t._getPath[this.type];if(this.type!=`text`&&this.type!=`set`)return n&&(e=n(this)),e},q.getSubpath=function(e,n){var r=this.getPath();if(r)return t.getSubpath(r,e,n)};var it=t.easing_formulas={linear:function(e){return e},"<":function(e){return T(e,1.7)},">":function(e){return T(e,.48)},"<>":function(e){var t=.48-e/1.04,n=x.sqrt(.1734+t*t),r=n-t,i=-n-t,a=T(w(r),1/3)*(r<0?-1:1)+T(w(i),1/3)*(i<0?-1:1)+.5;return 3*(1-a)*a*a+a*a*a},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},elastic:function(e){return e==!!e?e:T(2,-10*e)*x.sin(2*E*(e-.075)/.3)+1},bounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}};it.easeIn=it[`ease-in`]=it[`<`],it.easeOut=it[`ease-out`]=it[`>`],it.easeInOut=it[`ease-in-out`]=it[`<>`],it[`back-in`]=it.backIn,it[`back-out`]=it.backOut;var J=[],at=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,16)},ot=function(){for(var n=+new Date,r=0;r<J.length;r++){var i=J[r];if(!i.el.removed&&!i.paused){var a,o,c=n-i.start,l=i.ms,u=i.easing,d=i.from,p=i.diff,m=i.to,g=(i.t,i.el),_={},v={};if(i.initstatus?(c=(i.initstatus*i.anim.top-i.prev)/(i.percent-i.prev)*l,i.status=i.initstatus,delete i.initstatus,i.stop&&J.splice(r--,1)):i.status=(i.prev+(i.percent-i.prev)*(c/l))/i.anim.top,!(c<0))if(c<l){var y=u(c/l);for(var b in d)if(d[s](b)){switch(te[b]){case D:a=+d[b]+y*l*p[b];break;case`colour`:a=`rgb(`+[st(M(d[b].r+y*l*p[b].r)),st(M(d[b].g+y*l*p[b].g)),st(M(d[b].b+y*l*p[b].b))].join(`,`)+`)`;break;case`path`:a=[];for(var x=0,S=d[b].length;x<S;x++){a[x]=[d[b][x][0]];for(var C=1,w=d[b][x].length;C<w;C++)a[x][C]=+d[b][x][C]+y*l*p[b][x][C];a[x]=a[x].join(h)}a=a.join(h);break;case`transform`:if(p[b].real)for(a=[],x=0,S=d[b].length;x<S;x++)for(a[x]=[d[b][x][0]],C=1,w=d[b][x].length;C<w;C++)a[x][C]=d[b][x][C]+y*l*p[b][x][C];else{var T=function(e){return+d[b][e]+y*l*p[b][e]};a=[[`m`,T(0),T(1),T(2),T(3),T(4),T(5)]]}break;case`csv`:if(b==`clip-rect`)for(a=[],x=4;x--;)a[x]=+d[b][x]+y*l*p[b][x];break;default:var E=[][f](d[b]);for(a=[],x=g.paper.customAttributes[b].length;x--;)a[x]=+E[x]+y*l*p[b][x]}_[b]=a}g.attr(_),function(t,n,r){setTimeout(function(){e(`raphael.anim.frame.`+t,n,r)})}(g.id,g,i.anim)}else{if(function(n,r,i){setTimeout(function(){e(`raphael.anim.frame.`+r.id,r,i),e(`raphael.anim.finish.`+r.id,r,i),t.is(n,`function`)&&n.call(r)})}(i.callback,g,i.anim),g.attr(m),J.splice(r--,1),i.repeat>1&&!i.next){for(o in m)m[s](o)&&(v[o]=i.totalOrigin[o]);i.el.attr(v),ut(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&ut(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}J.length&&at(ot)},st=function(e){return e>255?255:e<0?0:e};function ct(e,t,n,r,i,a){var o=3*t,s=3*(r-t)-o,c=1-o-s,l=3*n,u=3*(i-n)-l,d=1-l-u;function f(e){return((c*e+s)*e+o)*e}return function(e,t){var n=function(e,t){var n,r,i,a,l,u;for(i=e,u=0;u<8;u++){if(a=f(i)-e,w(a)<t)return i;if(w(l=(3*c*i+2*s)*i+o)<1e-6)break;i-=a/l}if(r=1,(i=e)<(n=0))return n;if(i>r)return r;for(;n<r;){if(a=f(i),w(a-e)<t)return i;e>a?n=i:r=i,i=(r-n)/2+n}return i}(e,t);return((d*n+u)*n+l)*n}(e,1/(200*a))}function lt(e,t){var n=[],r={};if(this.ms=t,this.times=1,e){for(var i in e)e[s](i)&&(r[N(i)]=e[i],n.push(N(i)));n.sort(ie)}this.anim=r,this.top=n[n.length-1],this.percents=n}function ut(n,r,a,o,c,l){a=N(a);var u,d,p,m,h,v,y=n.ms,b={},x={},S={};if(o)for(w=0,T=J.length;w<T;w++){var C=J[w];if(C.el.id==r.id&&C.anim==n){C.percent==a?d=C:(J.splice(w,1),p=1),r.attr(C.totalOrigin);break}}else o=+x;for(var w=0,T=n.percents.length;w<T;w++){if(n.percents[w]==a||n.percents[w]>o*n.top){a=n.percents[w],h=n.percents[w-1]||0,y=y/n.top*(a-h),m=n.percents[w+1],u=n.anim[a];break}o&&r.attr(n.anim[n.percents[w]])}if(u){if(d)d.initstatus=o,d.start=new Date-d.ms*o;else{for(var E in u)if(u[s](E)&&(te[s](E)||r.paper.customAttributes[s](E)))switch(b[E]=r.attr(E),b[E]??(b[E]=I[E]),x[E]=u[E],te[E]){case D:S[E]=(x[E]-b[E])/y;break;case`colour`:b[E]=t.getRGB(b[E]);var O=t.getRGB(x[E]);S[E]={r:(O.r-b[E].r)/y,g:(O.g-b[E].g)/y,b:(O.b-b[E].b)/y};break;case`path`:var k=Ie(b[E],x[E]),A=k[1];for(b[E]=k[0],S[E]=[],w=0,T=b[E].length;w<T;w++){S[E][w]=[0];for(var j=1,M=b[E][w].length;j<M;j++)S[E][w][j]=(A[w][j]-b[E][w][j])/y}break;case`transform`:var P=r._,F=Ve(P[E],x[E]);if(F)for(b[E]=F.from,x[E]=F.to,S[E]=[],S[E].real=!0,w=0,T=b[E].length;w<T;w++)for(S[E][w]=[b[E][w][0]],j=1,M=b[E][w].length;j<M;j++)S[E][w][j]=(x[E][w][j]-b[E][w][j])/y;else{var L=r.matrix||new G,R={_:{transform:P.transform},getBBox:function(){return r.getBBox(1)}};b[E]=[L.a,L.b,L.c,L.d,L.e,L.f],ze(R,x[E]),x[E]=R._.transform,S[E]=[(R.matrix.a-L.a)/y,(R.matrix.b-L.b)/y,(R.matrix.c-L.c)/y,(R.matrix.d-L.d)/y,(R.matrix.e-L.e)/y,(R.matrix.f-L.f)/y]}break;case`csv`:var z=g(u[E])[_](i),B=g(b[E])[_](i);if(E==`clip-rect`)for(b[E]=B,S[E]=[],w=B.length;w--;)S[E][w]=(z[w]-b[E][w])/y;x[E]=z;break;default:for(z=[][f](u[E]),B=[][f](b[E]),S[E]=[],w=r.paper.customAttributes[E].length;w--;)S[E][w]=((z[w]||0)-(B[w]||0))/y}var ne=u.easing,V=t.easing_formulas[ne];if(!V)if((V=g(ne).match(ee))&&V.length==5){var re=V;V=function(e){return ct(e,+re[1],+re[2],+re[3],+re[4],y)}}else V=ae;if(C={anim:n,percent:a,timestamp:v=u.start||n.start||+new Date,start:v+(n.del||0),status:0,initstatus:o||0,stop:!1,ms:y,easing:V,from:b,diff:S,to:x,el:r,callback:u.callback,prev:h,next:m,repeat:l||n.times,origin:r.attr(),totalOrigin:c},J.push(C),o&&!d&&!p&&(C.stop=!0,C.start=new Date-y*o,J.length==1))return ot();p&&(C.start=new Date-C.ms*o),J.length==1&&at(ot)}e(`raphael.anim.start.`+r.id,r,n)}}function dt(e){for(var t=0;t<J.length;t++)J[t].el.paper==e&&J.splice(t--,1)}q.animateWith=function(e,n,r,i,a,o){if(this.removed)return o&&o.call(this),this;var s=r instanceof lt?r:t.animation(r,i,a,o);ut(s,this,s.percents[0],null,this.attr());for(var c=0,l=J.length;c<l;c++)if(J[c].anim==n&&J[c].el==e){J[l-1].start=J[c].start;break}return this},q.onAnimation=function(t){return t?e.on(`raphael.anim.frame.`+this.id,t):e.unbind(`raphael.anim.frame.`+this.id),this},lt.prototype.delay=function(e){var t=new lt(this.anim,this.ms);return t.times=this.times,t.del=+e||0,t},lt.prototype.repeat=function(e){var t=new lt(this.anim,this.ms);return t.del=this.del,t.times=x.floor(S(e,0))||1,t},t.animation=function(e,n,r,i){if(e instanceof lt)return e;!t.is(r,`function`)&&r||(i=i||r||null,r=null),e=Object(e),n=+n||0;var a,o,c={};for(o in e)e[s](o)&&N(o)!=o&&N(o)+`%`!=o&&(a=!0,c[o]=e[o]);if(a)return r&&(c.easing=r),i&&(c.callback=i),new lt({100:c},n);if(i){var l=0;for(var u in e){var d=P(u);e[s](u)&&d>l&&(l=d)}!e[l+=`%`].callback&&(e[l].callback=i)}return new lt(e,n)},q.animate=function(e,n,r,i){if(this.removed)return i&&i.call(this),this;var a=e instanceof lt?e:t.animation(e,n,r,i);return ut(a,this,a.percents[0],null,this.attr()),this},q.setTime=function(e,t){return e&&t!=null&&this.status(e,C(t,e.ms)/e.ms),this},q.status=function(e,t){var n,r,i=[],a=0;if(t!=null)return ut(e,this,-1,C(t,1)),this;for(n=J.length;a<n;a++)if((r=J[a]).el.id==this.id&&(!e||r.anim==e)){if(e)return r.status;i.push({anim:r.anim,status:r.status})}return e?0:i},q.pause=function(t){for(var n=0;n<J.length;n++)J[n].el.id!=this.id||t&&J[n].anim!=t||!1!==e(`raphael.anim.pause.`+this.id,this,J[n].anim)&&(J[n].paused=!0);return this},q.resume=function(t){for(var n=0;n<J.length;n++)if(J[n].el.id==this.id&&(!t||J[n].anim==t)){var r=J[n];!1!==e(`raphael.anim.resume.`+this.id,this,r.anim)&&(delete r.paused,this.status(r.anim,r.status))}return this},q.stop=function(t){for(var n=0;n<J.length;n++)J[n].el.id!=this.id||t&&J[n].anim!=t||!1!==e(`raphael.anim.stop.`+this.id,this,J[n].anim)&&J.splice(n--,1);return this},e.on(`raphael.remove`,dt),e.on(`raphael.clear`,dt),q.toString=function(){return`Raphaël’s object`};var ft,pt,mt,ht,gt=function(e){if(this.items=[],this.length=0,this.type=`set`,e)for(var t=0,n=e.length;t<n;t++)!e[t]||e[t].constructor!=q.constructor&&e[t].constructor!=gt||(this[this.items.length]=this.items[this.items.length]=e[t],this.length++)},Y=gt.prototype;for(var _t in Y.push=function(){for(var e,t,n=0,r=arguments.length;n<r;n++)!(e=arguments[n])||e.constructor!=q.constructor&&e.constructor!=gt||(this[t=this.items.length]=this.items[t]=e,this.length++);return this},Y.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Y.forEach=function(e,t){for(var n=0,r=this.items.length;n<r;n++)if(!1===e.call(t,this.items[n],n))return this;return this},q)q[s](_t)&&(Y[_t]=function(e){return function(){var t=arguments;return this.forEach(function(n){n[e][d](n,t)})}}(_t));return Y.attr=function(e,n){if(e&&t.is(e,O)&&t.is(e[0],`object`))for(var r=0,i=e.length;r<i;r++)this.items[r].attr(e[r]);else for(var a=0,o=this.items.length;a<o;a++)this.items[a].attr(e,n);return this},Y.clear=function(){for(;this.length;)this.pop()},Y.splice=function(e,t,n){e=e<0?S(this.length+e,0):e,t=S(0,C(this.length-e,t));var r,i=[],a=[],o=[];for(r=2;r<arguments.length;r++)o.push(arguments[r]);for(r=0;r<t;r++)a.push(this[e+r]);for(;r<this.length-e;r++)i.push(this[e+r]);var s=o.length;for(r=0;r<s+i.length;r++)this.items[e+r]=this[e+r]=r<s?o[r]:i[r-s];for(r=this.items.length=this.length-=t-s;this[r];)delete this[r++];return new gt(a)},Y.exclude=function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]==e)return this.splice(t,1),!0},Y.animate=function(e,n,r,i){(t.is(r,`function`)||!r)&&(i=r||null);var a,o,s=this.items.length,c=s,l=this;if(!s)return this;i&&(o=function(){!--s&&i.call(l)}),r=t.is(r,`string`)?r:o;var u=t.animation(e,n,r,o);for(a=this.items[--c].animate(u);c--;)this.items[c]&&!this.items[c].removed&&this.items[c].animateWith(a,u,u),this.items[c]&&!this.items[c].removed||s--;return this},Y.insertAfter=function(e){for(var t=this.items.length;t--;)this.items[t].insertAfter(e);return this},Y.getBBox=function(){for(var e=[],t=[],n=[],r=[],i=this.items.length;i--;)if(!this.items[i].removed){var a=this.items[i].getBBox();e.push(a.x),t.push(a.y),n.push(a.x+a.width),r.push(a.y+a.height)}return{x:e=C[d](0,e),y:t=C[d](0,t),x2:n=S[d](0,n),y2:r=S[d](0,r),width:n-e,height:r-t}},Y.clone=function(e){e=this.paper.set();for(var t=0,n=this.items.length;t<n;t++)e.push(this.items[t].clone());return e},Y.toString=function(){return`Raphaël‘s set`},Y.glow=function(e){var t=this.paper.set();return this.forEach(function(n,r){n.glow(e)?.forEach(function(e,n){t.push(e)})}),t},Y.isPointInside=function(e,t){var n=!1;return this.forEach(function(r){if(r.isPointInside(e,t))return n=!0,!1}),n},t.registerFont=function(e){if(!e.face)return e;this.fonts=this.fonts||{};var t={w:e.w,face:{},glyphs:{}},n=e.face[`font-family`];for(var r in e.face)e.face[s](r)&&(t.face[r]=e.face[r]);if(this.fonts[n]?this.fonts[n].push(t):this.fonts[n]=[t],!e.svg){for(var i in t.face[`units-per-em`]=P(e.face[`units-per-em`],10),e.glyphs)if(e.glyphs[s](i)){var a=e.glyphs[i];if(t.glyphs[i]={w:a.w,k:{},d:a.d&&`M`+a.d.replace(/[mlcxtrv]/g,function(e){return{l:`L`,c:`C`,x:`z`,t:`m`,r:`l`,v:`c`}[e]||`M`})+`z`},a.k)for(var o in a.k)a[s](o)&&(t.glyphs[i].k[o]=a.k[o])}}return e},r.getFont=function(e,n,r,i){if(i||=`normal`,r||=`normal`,n=+n||{normal:400,bold:700,lighter:300,bolder:800}[n]||400,t.fonts){var a,o=t.fonts[e];if(!o){var c=RegExp(`(^|\\s)`+e.replace(/[^\w\d\s+!~.:_-]/g,m)+`(\\s|$)`,`i`);for(var l in t.fonts)if(t.fonts[s](l)&&c.test(l)){o=t.fonts[l];break}}if(o)for(var u=0,d=o.length;u<d&&((a=o[u]).face[`font-weight`]!=n||a.face[`font-style`]!=r&&a.face[`font-style`]||a.face[`font-stretch`]!=i);u++);return a}},r.print=function(e,n,r,a,o,s,c,l){s||=`middle`,c=S(C(c||0,1),-1),l=S(C(l||1,3),1);var u,d=g(r)[_](m),f=0,p=0,h=m;if(t.is(a,`string`)&&(a=this.getFont(a)),a){u=(o||16)/a.face[`units-per-em`];for(var v=a.face.bbox[_](i),y=+v[0],b=v[3]-v[1],x=0,w=+v[1]+(s==`baseline`?b+ +a.face.descent:b/2),T=0,E=d.length;T<E;T++){if(d[T]==`
3
+ `)f=0,O=0,p=0,x+=b*l;else{var D=p&&a.glyphs[d[T-1]]||{},O=a.glyphs[d[T]];f+=p?(D.w||a.w)+(D.k&&D.k[d[T]]||0)+a.w*c:0,p=1}O&&O.d&&(h+=t.transformPath(O.d,[`t`,f*u,x*u,`s`,u,u,y,w,`t`,(e-y)/u,(n-w)/u]))}}return this.path(h).attr({fill:`#000`,stroke:`none`})},r.add=function(e){if(t.is(e,`array`))for(var n,r=this.set(),i=0,o=e.length;i<o;i++)n=e[i]||{},a[s](n.type)&&r.push(this[n.type]().attr(n));return r},t.format=function(e,n){var r=t.is(n,O)?[0][f](n):arguments;return e&&t.is(e,`string`)&&r.length-1&&(e=e.replace(o,function(e,t){return r[++t]==null?m:r[t]})),e||m},t.fullfill=(ft=/\{([^\}]+)\}/g,pt=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(e,t){return String(e).replace(ft,function(e,n){return function(e,t,n){var r=n;return t.replace(pt,function(e,t,n,i,a){t||=i,r&&(t in r&&(r=r[t]),typeof r==`function`&&a&&(r=r()))}),r=(r==null||r==n?e:r)+``}(e,n,t)})}),t.ninja=function(){if(l.was)c.win.Raphael=l.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return t},t.st=Y,e.on(`raphael.DOMload`,function(){n=!0}),(mt=document).readyState==null&&mt.addEventListener&&(mt.addEventListener(`DOMContentLoaded`,ht=function(){mt.removeEventListener(`DOMContentLoaded`,ht,!1),mt.readyState=`complete`},!1),mt.readyState=`loading`),function e(){/in/.test(mt.readyState)?setTimeout(e,9):t.eve(`raphael.DOMload`)}(),t}.apply(t,r))===void 0||(e.exports=i)},function(e,t,n){var r=[n(0),n(3),n(4)],i;(i=function(e){return e}.apply(t,r))===void 0||(e.exports=i)},function(e,t,n){var r,i,a,o=`hasOwnProperty`,s=/[\.\/]/,c=/\s*,\s*/,l=function(e,t){return e-t},u={n:{}},d=function(){for(var e=0,t=this.length;e<t;e++)if(this[e]!==void 0)return this[e]},f=function(){for(var e=this.length;--e;)if(this[e]!==void 0)return this[e]},p=Object.prototype.toString,m=String,h=Array.isArray||function(e){return e instanceof Array||p.call(e)==`[object Array]`},g;(g=function(e,t){var n,r=a,o=Array.prototype.slice.call(arguments,2),s=g.listeners(e),c=0,u=[],p={},m=[],h=i;m.firstDefined=d,m.lastDefined=f,i=e,a=0;for(var _=0,v=s.length;_<v;_++)`zIndex`in s[_]&&(u.push(s[_].zIndex),s[_].zIndex<0&&(p[s[_].zIndex]=s[_]));for(u.sort(l);u[c]<0;)if(n=p[u[c++]],m.push(n.apply(t,o)),a)return a=r,m;for(_=0;_<v;_++)if(`zIndex`in(n=s[_]))if(n.zIndex==u[c]){if(m.push(n.apply(t,o)),a)break;do if((n=p[u[++c]])&&m.push(n.apply(t,o)),a)break;while(n)}else p[n.zIndex]=n;else if(m.push(n.apply(t,o)),a)break;return a=r,i=h,m})._events=u,g.listeners=function(e){var t,n,r,i,a,o,c,l,d=h(e)?e:e.split(s),f=u,p=[f],m=[];for(i=0,a=d.length;i<a;i++){for(l=[],o=0,c=p.length;o<c;o++)for(n=[(f=p[o].n)[d[i]],f[`*`]],r=2;r--;)(t=n[r])&&(l.push(t),m=m.concat(t.f||[]));p=l}return m},g.separator=function(e){e?(e=`[`+(e=m(e).replace(/(?=[\.\^\]\[\-])/g,`\\`))+`]`,s=new RegExp(e)):s=/[\.\/]/},g.on=function(e,t){if(typeof t!=`function`)return function(){};for(var n=h(e)?h(e[0])?e:[e]:m(e).split(c),r=0,i=n.length;r<i;r++)(function(e){for(var n,r=h(e)?e:m(e).split(s),i=u,a=0,o=r.length;a<o;a++)i=(i=i.n).hasOwnProperty(r[a])&&i[r[a]]||(i[r[a]]={n:{}});for(i.f=i.f||[],a=0,o=i.f.length;a<o;a++)if(i.f[a]==t){n=!0;break}!n&&i.f.push(t)})(n[r]);return function(e){+e==+e&&(t.zIndex=+e)}},g.f=function(e){var t=[].slice.call(arguments,1);return function(){g.apply(null,[e,null].concat(t,[].slice.call(arguments,0)))}},g.stop=function(){a=1},g.nt=function(e){var t=h(i)?i.join(`.`):i;return e?RegExp(`(?:\\.|\\/|^)`+e+`(?:\\.|\\/|$)`).test(t):t},g.nts=function(){return h(i)?i:i.split(s)},g.off=g.unbind=function(e,t){if(e){var n=h(e)?h(e[0])?e:[e]:m(e).split(c);if(n.length>1)for(var r=0,i=n.length;r<i;r++)g.off(n[r],t);else{n=h(e)?e:m(e).split(s);var a,l,d,f,p,_=[u];for(r=0,i=n.length;r<i;r++)for(f=0;f<_.length;f+=d.length-2){if(d=[f,1],a=_[f].n,n[r]!=`*`)a[n[r]]&&d.push(a[n[r]]);else for(l in a)a[o](l)&&d.push(a[l]);_.splice.apply(_,d)}for(r=0,i=_.length;r<i;r++)for(a=_[r];a.n;){if(t){if(a.f){for(f=0,p=a.f.length;f<p;f++)if(a.f[f]==t){a.f.splice(f,1);break}!a.f.length&&delete a.f}for(l in a.n)if(a.n[o](l)&&a.n[l].f){var v=a.n[l].f;for(f=0,p=v.length;f<p;f++)if(v[f]==t){v.splice(f,1);break}!v.length&&delete a.n[l].f}}else for(l in delete a.f,a.n)a.n[o](l)&&a.n[l].f&&delete a.n[l].f;a=a.n}}}else g._events=u={n:{}}},g.once=function(e,t){var n=function(){return g.off(e,n),t.apply(this,arguments)};return g.on(e,n)},g.version=`0.5.0`,g.toString=function(){return`You are running Eve 0.5.0`},e.exports?e.exports=g:(r=function(){return g}.apply(t,[]))===void 0||(e.exports=r)},function(e,t,n){var r=[n(0)],i;(i=function(e){if(!e||e.svg){var t=`hasOwnProperty`,n=String,r=parseFloat,i=parseInt,a=Math,o=a.max,s=a.abs,c=a.pow,l=/[, ]+/,u=e.eve,d=``,f=` `,p=`http://www.w3.org/1999/xlink`,m={block:`M5,0 0,2.5 5,5z`,classic:`M5,0 0,2.5 5,5 3.5,3 3.5,2z`,diamond:`M2.5,0 5,2.5 2.5,5 0,2.5z`,open:`M6,1 1,3.5 6,6`,oval:`M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z`},h={};e.toString=function(){return`Your browser supports SVG.
4
+ You are running Raphaël `+this.version};var g=function(r,i){if(i)for(var a in typeof r==`string`&&(r=g(r)),i)i[t](a)&&(a.substring(0,6)==`xlink:`?r.setAttributeNS(p,a.substring(6),n(i[a])):r.setAttribute(a,n(i[a])));else (r=e._g.doc.createElementNS(`http://www.w3.org/2000/svg`,r)).style&&(r.style.webkitTapHighlightColor=`rgba(0,0,0,0)`);return r},_=function(t,i){var l=`linear`,u=t.id+i,f=.5,p=.5,m=t.node,h=t.paper,_=m.style,y=e._g.doc.getElementById(u);if(!y){if(i=(i=n(i).replace(e._radial_gradient,function(e,t,n){if(l=`radial`,t&&n){f=r(t);var i=2*((p=r(n))>.5)-1;c(f-.5,2)+c(p-.5,2)>.25&&(p=a.sqrt(.25-c(f-.5,2))*i+.5)&&p!=.5&&(p=p.toFixed(5)-1e-5*i)}return d})).split(/\s*\-\s*/),l==`linear`){var b=i.shift();if(b=-r(b),isNaN(b))return null;var x=[0,0,a.cos(e.rad(b)),a.sin(e.rad(b))],S=1/(o(s(x[2]),s(x[3]))||1);x[2]*=S,x[3]*=S,x[2]<0&&(x[0]=-x[2],x[2]=0),x[3]<0&&(x[1]=-x[3],x[3]=0)}var C=e._parseDots(i);if(!C)return null;if(u=u.replace(/[\(\)\s,\xb0#]/g,`_`),t.gradient&&u!=t.gradient.id&&(h.defs.removeChild(t.gradient),delete t.gradient),!t.gradient){y=g(l+`Gradient`,{id:u}),t.gradient=y,g(y,l==`radial`?{fx:f,fy:p}:{x1:x[0],y1:x[1],x2:x[2],y2:x[3],gradientTransform:t.matrix.invert()}),h.defs.appendChild(y);for(var w=0,T=C.length;w<T;w++)y.appendChild(g(`stop`,{offset:C[w].offset?C[w].offset:w?`100%`:`0%`,"stop-color":C[w].color||`#fff`,"stop-opacity":isFinite(C[w].opacity)?C[w].opacity:1}))}}return g(m,{fill:v(u),opacity:1,"fill-opacity":1}),_.fill=d,_.opacity=1,_.fillOpacity=1,1},v=function(e){if((t=document.documentMode)&&(t===9||t===10))return`url('#`+e+`')`;var t,n=document.location;return`url('`+(n.protocol+`//`+n.host+n.pathname+n.search)+`#`+e+`')`},y=function(e){var t=e.getBBox(1);g(e.pattern,{patternTransform:e.matrix.invert()+` translate(`+t.x+`,`+t.y+`)`})},b=function(r,i,a){if(r.type==`path`){for(var o,s,c,l,u,f=n(i).toLowerCase().split(`-`),p=r.paper,_=a?`end`:`start`,v=r.node,y=r.attrs,b=y[`stroke-width`],x=f.length,S=`classic`,C=3,w=3,T=5;x--;)switch(f[x]){case`block`:case`classic`:case`oval`:case`diamond`:case`open`:case`none`:S=f[x];break;case`wide`:w=5;break;case`narrow`:w=2;break;case`long`:C=5;break;case`short`:C=2}if(S==`open`?(C+=2,w+=2,T+=2,c=1,l=a?4:1,u={fill:`none`,stroke:y.stroke}):(l=c=C/2,u={fill:y.stroke,stroke:`none`}),r._.arrows?a?(r._.arrows.endPath&&h[r._.arrows.endPath]--,r._.arrows.endMarker&&h[r._.arrows.endMarker]--):(r._.arrows.startPath&&h[r._.arrows.startPath]--,r._.arrows.startMarker&&h[r._.arrows.startMarker]--):r._.arrows={},S!=`none`){var E=`raphael-marker-`+S,D=`raphael-marker-`+_+S+C+w+`-obj`+r.id;e._g.doc.getElementById(E)?h[E]++:(p.defs.appendChild(g(g(`path`),{"stroke-linecap":`round`,d:m[S],id:E})),h[E]=1);var O,k=e._g.doc.getElementById(D);k?(h[D]++,O=k.getElementsByTagName(`use`)[0]):(k=g(g(`marker`),{id:D,markerHeight:w,markerWidth:C,orient:`auto`,refX:l,refY:w/2}),O=g(g(`use`),{"xlink:href":`#`+E,transform:(a?`rotate(180 `+C/2+` `+w/2+`) `:d)+`scale(`+C/T+`,`+w/T+`)`,"stroke-width":(1/((C/T+w/T)/2)).toFixed(4)}),k.appendChild(O),p.defs.appendChild(k),h[D]=1),g(O,u);var A=c*(S!=`diamond`&&S!=`oval`);a?(o=r._.arrows.startdx*b||0,s=e.getTotalLength(y.path)-A*b):(o=A*b,s=e.getTotalLength(y.path)-(r._.arrows.enddx*b||0)),(u={})[`marker-`+_]=`url(#`+D+`)`,(s||o)&&(u.d=e.getSubpath(y.path,o,s)),g(v,u),r._.arrows[_+`Path`]=E,r._.arrows[_+`Marker`]=D,r._.arrows[_+`dx`]=A,r._.arrows[_+`Type`]=S,r._.arrows[_+`String`]=i}else a?(o=r._.arrows.startdx*b||0,s=e.getTotalLength(y.path)-o):(o=0,s=e.getTotalLength(y.path)-(r._.arrows.enddx*b||0)),r._.arrows[_+`Path`]&&g(v,{d:e.getSubpath(y.path,o,s)}),delete r._.arrows[_+`Path`],delete r._.arrows[_+`Marker`],delete r._.arrows[_+`dx`],delete r._.arrows[_+`Type`],delete r._.arrows[_+`String`];for(u in h)if(h[t](u)&&!h[u]){var j=e._g.doc.getElementById(u);j&&j.parentNode.removeChild(j)}}},x={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},S=function(e,t,r){if(t=x[n(t).toLowerCase()]){for(var i=e.attrs[`stroke-width`]||`1`,a={round:i,square:i,butt:0}[e.attrs[`stroke-linecap`]||r[`stroke-linecap`]]||0,o=[],s=t.length;s--;)o[s]=t[s]*i+(s%2?1:-1)*a;g(e.node,{"stroke-dasharray":o.join(`,`)})}else g(e.node,{"stroke-dasharray":`none`})},C=function(r,a){var c=r.node,u=r.attrs,f=c.style.visibility;for(var m in c.style.visibility=`hidden`,a)if(a[t](m)){if(!e._availableAttrs[t](m))continue;var h=a[m];switch(u[m]=h,m){case`blur`:r.blur(h);break;case`title`:var v=c.getElementsByTagName(`title`);if(v.length&&(v=v[0]))v.firstChild.nodeValue=h;else{v=g(`title`);var x=e._g.doc.createTextNode(h);v.appendChild(x),c.appendChild(v)}break;case`href`:case`target`:var C=c.parentNode;if(C.tagName.toLowerCase()!=`a`){var T=g(`a`);C.insertBefore(T,c),T.appendChild(c),C=T}m==`target`?C.setAttributeNS(p,`show`,h==`blank`?`new`:h):C.setAttributeNS(p,m,h);break;case`cursor`:c.style.cursor=h;break;case`transform`:r.transform(h);break;case`arrow-start`:b(r,h);break;case`arrow-end`:b(r,h,1);break;case`clip-rect`:var E=n(h).split(l);if(E.length==4){r.clip&&r.clip.parentNode.parentNode.removeChild(r.clip.parentNode);var D=g(`clipPath`),O=g(`rect`);D.id=e.createUUID(),g(O,{x:E[0],y:E[1],width:E[2],height:E[3]}),D.appendChild(O),r.paper.defs.appendChild(D),g(c,{"clip-path":`url(#`+D.id+`)`}),r.clip=O}if(!h){var k=c.getAttribute(`clip-path`);if(k){var A=e._g.doc.getElementById(k.replace(/(^url\(#|\)$)/g,d));A&&A.parentNode.removeChild(A),g(c,{"clip-path":d}),delete r.clip}}break;case`path`:r.type==`path`&&(g(c,{d:h?u.path=e._pathToAbsolute(h):`M0,0`}),r._.dirty=1,r._.arrows&&(`startString`in r._.arrows&&b(r,r._.arrows.startString),`endString`in r._.arrows&&b(r,r._.arrows.endString,1)));break;case`width`:if(c.setAttribute(m,h),r._.dirty=1,!u.fx)break;m=`x`,h=u.x;case`x`:u.fx&&(h=-u.x-(u.width||0));case`rx`:if(m==`rx`&&r.type==`rect`)break;case`cx`:c.setAttribute(m,h),r.pattern&&y(r),r._.dirty=1;break;case`height`:if(c.setAttribute(m,h),r._.dirty=1,!u.fy)break;m=`y`,h=u.y;case`y`:u.fy&&(h=-u.y-(u.height||0));case`ry`:if(m==`ry`&&r.type==`rect`)break;case`cy`:c.setAttribute(m,h),r.pattern&&y(r),r._.dirty=1;break;case`r`:r.type==`rect`?g(c,{rx:h,ry:h}):c.setAttribute(m,h),r._.dirty=1;break;case`src`:r.type==`image`&&c.setAttributeNS(p,`href`,h);break;case`stroke-width`:r._.sx==1&&r._.sy==1||(h/=o(s(r._.sx),s(r._.sy))||1),c.setAttribute(m,h),u[`stroke-dasharray`]&&S(r,u[`stroke-dasharray`],a),r._.arrows&&(`startString`in r._.arrows&&b(r,r._.arrows.startString),`endString`in r._.arrows&&b(r,r._.arrows.endString,1));break;case`stroke-dasharray`:S(r,h,a);break;case`fill`:var j=n(h).match(e._ISURL);if(j){D=g(`pattern`);var ee=g(`image`);D.id=e.createUUID(),g(D,{x:0,y:0,patternUnits:`userSpaceOnUse`,height:1,width:1}),g(ee,{x:0,y:0,"xlink:href":j[1]}),D.appendChild(ee),function(t){e._preload(j[1],function(){var e=this.offsetWidth,n=this.offsetHeight;g(t,{width:e,height:n}),g(ee,{width:e,height:n})})}(D),r.paper.defs.appendChild(D),g(c,{fill:`url(#`+D.id+`)`}),r.pattern=D,r.pattern&&y(r);break}var M=e.getRGB(h);if(M.error){if((r.type==`circle`||r.type==`ellipse`||n(h).charAt()!=`r`)&&_(r,h)){if(`opacity`in u||`fill-opacity`in u){var N=e._g.doc.getElementById(c.getAttribute(`fill`).replace(/^url\(#|\)$/g,d));if(N){var P=N.getElementsByTagName(`stop`);g(P[P.length-1],{"stop-opacity":(`opacity`in u?u.opacity:1)*(`fill-opacity`in u?u[`fill-opacity`]:1)})}}u.gradient=h,u.fill=`none`;break}}else delete a.gradient,delete u.gradient,!e.is(u.opacity,`undefined`)&&e.is(a.opacity,`undefined`)&&g(c,{opacity:u.opacity}),!e.is(u[`fill-opacity`],`undefined`)&&e.is(a[`fill-opacity`],`undefined`)&&g(c,{"fill-opacity":u[`fill-opacity`]});M[t](`opacity`)&&g(c,{"fill-opacity":M.opacity>1?M.opacity/100:M.opacity});case`stroke`:M=e.getRGB(h),c.setAttribute(m,M.hex),m==`stroke`&&M[t](`opacity`)&&g(c,{"stroke-opacity":M.opacity>1?M.opacity/100:M.opacity}),m==`stroke`&&r._.arrows&&(`startString`in r._.arrows&&b(r,r._.arrows.startString),`endString`in r._.arrows&&b(r,r._.arrows.endString,1));break;case`gradient`:(r.type==`circle`||r.type==`ellipse`||n(h).charAt()!=`r`)&&_(r,h);break;case`opacity`:u.gradient&&!u[t](`stroke-opacity`)&&g(c,{"stroke-opacity":h>1?h/100:h});case`fill-opacity`:if(u.gradient){(N=e._g.doc.getElementById(c.getAttribute(`fill`).replace(/^url\(#|\)$/g,d)))&&(P=N.getElementsByTagName(`stop`),g(P[P.length-1],{"stop-opacity":h}));break}default:m==`font-size`&&(h=i(h,10)+`px`);var F=m.replace(/(\-.)/g,function(e){return e.substring(1).toUpperCase()});c.style[F]=h,r._.dirty=1,c.setAttribute(m,h)}}w(r,a),c.style.visibility=f},w=function(r,a){if(r.type==`text`&&(a[t](`text`)||a[t](`font`)||a[t](`font-size`)||a[t](`x`)||a[t](`y`))){var o=r.attrs,s=r.node,c=s.firstChild?i(e._g.doc.defaultView.getComputedStyle(s.firstChild,d).getPropertyValue(`font-size`),10):10;if(a[t](`text`)){for(o.text=a.text;s.firstChild;)s.removeChild(s.firstChild);for(var l,u=n(a.text).split(`
5
+ `),f=[],p=0,m=u.length;p<m;p++)l=g(`tspan`),p&&g(l,{dy:1.2*c,x:o.x}),l.appendChild(e._g.doc.createTextNode(u[p])),s.appendChild(l),f[p]=l}else for(p=0,m=(f=s.getElementsByTagName(`tspan`)).length;p<m;p++)p?g(f[p],{dy:1.2*c,x:o.x}):g(f[0],{dy:0});g(s,{x:o.x,y:o.y}),r._.dirty=1;var h=r._getBBox(),_=o.y-(h.y+h.height/2);_&&e.is(_,`finite`)&&g(f[0],{dy:_})}},T=function(e){return e.parentNode&&e.parentNode.tagName.toLowerCase()===`a`?e.parentNode:e},E=function(t,n){this[0]=this.node=t,t.raphael=!0,this.id=(`0000`+(Math.random()*36**5<<0).toString(36)).slice(-5),t.raphaelid=this.id,this.matrix=e.matrix(),this.realPath=null,this.paper=n,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},D=e.el;E.prototype=D,D.constructor=E,e._engine.path=function(e,t){var n=g(`path`);t.canvas&&t.canvas.appendChild(n);var r=new E(n,t);return r.type=`path`,C(r,{fill:`none`,stroke:`#000`,path:e}),r},D.rotate=function(e,t,i){if(this.removed)return this;if((e=n(e).split(l)).length-1&&(t=r(e[1]),i=r(e[2])),e=r(e[0]),i??(t=i),t==null||i==null){var a=this.getBBox(1);t=a.x+a.width/2,i=a.y+a.height/2}return this.transform(this._.transform.concat([[`r`,e,t,i]])),this},D.scale=function(e,t,i,a){if(this.removed)return this;if((e=n(e).split(l)).length-1&&(t=r(e[1]),i=r(e[2]),a=r(e[3])),e=r(e[0]),t??=e,a??(i=a),i==null||a==null)var o=this.getBBox(1);return i??=o.x+o.width/2,a??=o.y+o.height/2,this.transform(this._.transform.concat([[`s`,e,t,i,a]])),this},D.translate=function(e,t){return this.removed?this:((e=n(e).split(l)).length-1&&(t=r(e[1])),e=r(e[0])||0,t=+t||0,this.transform(this._.transform.concat([[`t`,e,t]])),this)},D.transform=function(n){var r=this._;if(n==null)return r.transform;if(e._extractTransform(this,n),this.clip&&g(this.clip,{transform:this.matrix.invert()}),this.pattern&&y(this),this.node&&g(this.node,{transform:this.matrix}),r.sx!=1||r.sy!=1){var i=this.attrs[t](`stroke-width`)?this.attrs[`stroke-width`]:1;this.attr({"stroke-width":i})}return this},D.hide=function(){return this.removed||(this.node.style.display=`none`),this},D.show=function(){return this.removed||(this.node.style.display=``),this},D.remove=function(){var t=T(this.node);if(!this.removed&&t.parentNode){var n=this.paper;for(var r in n.__set__&&n.__set__.exclude(this),u.unbind(`raphael.*.*.`+this.id),this.gradient&&n.defs.removeChild(this.gradient),e._tear(this,n),t.parentNode.removeChild(t),this.removeData(),this)this[r]=typeof this[r]==`function`?e._removedFactory(r):null;this.removed=!0}},D._getBBox=function(){if(this.node.style.display==`none`){this.show();var e=!0}var t,n=!1;this.paper.canvas.parentElement?t=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(t=this.paper.canvas.parentNode.style),t&&t.display==`none`&&(n=!0,t.display=``);var r={};try{r=this.node.getBBox()}catch{r={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{r||={},n&&(t.display=`none`)}return e&&this.hide(),r},D.attr=function(n,r){if(this.removed)return this;if(n==null){var i={};for(var a in this.attrs)this.attrs[t](a)&&(i[a]=this.attrs[a]);return i.gradient&&i.fill==`none`&&(i.fill=i.gradient)&&delete i.gradient,i.transform=this._.transform,i}if(r==null&&e.is(n,`string`)){if(n==`fill`&&this.attrs.fill==`none`&&this.attrs.gradient)return this.attrs.gradient;if(n==`transform`)return this._.transform;for(var o=n.split(l),s={},c=0,d=o.length;c<d;c++)(n=o[c])in this.attrs?s[n]=this.attrs[n]:e.is(this.paper.customAttributes[n],`function`)?s[n]=this.paper.customAttributes[n].def:s[n]=e._availableAttrs[n];return d-1?s:s[o[0]]}if(r==null&&e.is(n,`array`)){for(s={},c=0,d=n.length;c<d;c++)s[n[c]]=this.attr(n[c]);return s}if(r!=null){var f={};f[n]=r}else n!=null&&e.is(n,`object`)&&(f=n);for(var p in f)u(`raphael.attr.`+p+`.`+this.id,this,f[p]);for(p in this.paper.customAttributes)if(this.paper.customAttributes[t](p)&&f[t](p)&&e.is(this.paper.customAttributes[p],`function`)){var m=this.paper.customAttributes[p].apply(this,[].concat(f[p]));for(var h in this.attrs[p]=f[p],m)m[t](h)&&(f[h]=m[h])}return C(this,f),this},D.toFront=function(){if(this.removed)return this;var t=T(this.node);t.parentNode.appendChild(t);var n=this.paper;return n.top!=this&&e._tofront(this,n),this},D.toBack=function(){if(this.removed)return this;var t=T(this.node),n=t.parentNode;return n.insertBefore(t,n.firstChild),e._toback(this,this.paper),this.paper,this},D.insertAfter=function(t){if(this.removed||!t)return this;var n=T(this.node),r=T(t.node||t[t.length-1].node);return r.nextSibling?r.parentNode.insertBefore(n,r.nextSibling):r.parentNode.appendChild(n),e._insertafter(this,t,this.paper),this},D.insertBefore=function(t){if(this.removed||!t)return this;var n=T(this.node),r=T(t.node||t[0].node);return r.parentNode.insertBefore(n,r),e._insertbefore(this,t,this.paper),this},D.blur=function(t){var n=this;if(+t!=0){var r=g(`filter`),i=g(`feGaussianBlur`);n.attrs.blur=t,r.id=e.createUUID(),g(i,{stdDeviation:+t||1.5}),r.appendChild(i),n.paper.defs.appendChild(r),n._blur=r,g(n.node,{filter:`url(#`+r.id+`)`})}else n._blur&&(n._blur.parentNode.removeChild(n._blur),delete n._blur,delete n.attrs.blur),n.node.removeAttribute(`filter`);return n},e._engine.circle=function(e,t,n,r){var i=g(`circle`);e.canvas&&e.canvas.appendChild(i);var a=new E(i,e);return a.attrs={cx:t,cy:n,r,fill:`none`,stroke:`#000`},a.type=`circle`,g(i,a.attrs),a},e._engine.rect=function(e,t,n,r,i,a){var o=g(`rect`);e.canvas&&e.canvas.appendChild(o);var s=new E(o,e);return s.attrs={x:t,y:n,width:r,height:i,rx:a||0,ry:a||0,fill:`none`,stroke:`#000`},s.type=`rect`,g(o,s.attrs),s},e._engine.ellipse=function(e,t,n,r,i){var a=g(`ellipse`);e.canvas&&e.canvas.appendChild(a);var o=new E(a,e);return o.attrs={cx:t,cy:n,rx:r,ry:i,fill:`none`,stroke:`#000`},o.type=`ellipse`,g(a,o.attrs),o},e._engine.image=function(e,t,n,r,i,a){var o=g(`image`);g(o,{x:n,y:r,width:i,height:a,preserveAspectRatio:`none`}),o.setAttributeNS(p,`href`,t),e.canvas&&e.canvas.appendChild(o);var s=new E(o,e);return s.attrs={x:n,y:r,width:i,height:a,src:t},s.type=`image`,s},e._engine.text=function(t,n,r,i){var a=g(`text`);t.canvas&&t.canvas.appendChild(a);var o=new E(a,t);return o.attrs={x:n,y:r,"text-anchor":`middle`,text:i,"font-family":e._availableAttrs[`font-family`],"font-size":e._availableAttrs[`font-size`],stroke:`none`,fill:`#000`},o.type=`text`,C(o,o.attrs),o},e._engine.setSize=function(e,t){return this.width=e||this.width,this.height=t||this.height,this.canvas.setAttribute(`width`,this.width),this.canvas.setAttribute(`height`,this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},e._engine.create=function(){var t=e._getContainer.apply(0,arguments),n=t&&t.container;if(!n)throw Error(`SVG container not found.`);var r,i=t.x,a=t.y,o=t.width,s=t.height,c=g(`svg`),l=`overflow:hidden;`;return i||=0,a||=0,g(c,{height:s||=342,version:1.1,width:o||=512,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`}),n==1?(c.style.cssText=l+`position:absolute;left:`+i+`px;top:`+a+`px`,e._g.doc.body.appendChild(c),r=1):(c.style.cssText=l+`position:relative`,n.firstChild?n.insertBefore(c,n.firstChild):n.appendChild(c)),(n=new e._Paper).width=o,n.height=s,n.canvas=c,n.clear(),n._left=n._top=0,r&&(n.renderfix=function(){}),n.renderfix(),n},e._engine.setViewBox=function(e,t,n,r,i){u(`raphael.setViewBox`,this,this._viewBox,[e,t,n,r,i]);var a,s,c=this.getSize(),l=o(n/c.width,r/c.height),d=this.top,p=i?`xMidYMid meet`:`xMinYMin`;for(e==null?(this._vbSize&&(l=1),delete this._vbSize,a=`0 0 `+this.width+f+this.height):(this._vbSize=l,a=e+f+t+f+n+f+r),g(this.canvas,{viewBox:a,preserveAspectRatio:p});l&&d;)s=`stroke-width`in d.attrs?d.attrs[`stroke-width`]:1,d.attr({"stroke-width":s}),d._.dirty=1,d._.dirtyT=1,d=d.prev;return this._viewBox=[e,t,n,r,!!i],this},e.prototype.renderfix=function(){var e,t=this.canvas,n=t.style;try{e=t.getScreenCTM()||t.createSVGMatrix()}catch{e=t.createSVGMatrix()}var r=-e.e%1,i=-e.f%1;(r||i)&&(r&&(this._left=(this._left+r)%1,n.left=this._left+`px`),i&&(this._top=(this._top+i)%1,n.top=this._top+`px`))},e.prototype.clear=function(){e.eve(`raphael.clear`,this);for(var t=this.canvas;t.firstChild;)t.removeChild(t.firstChild);this.bottom=this.top=null,(this.desc=g(`desc`)).appendChild(e._g.doc.createTextNode(`Created with Raphaël `+e.version)),t.appendChild(this.desc),t.appendChild(this.defs=g(`defs`))},e.prototype.remove=function(){for(var t in u(`raphael.remove`,this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[t]=typeof this[t]==`function`?e._removedFactory(t):null};var O=e.st;for(var k in D)D[t](k)&&!O[t](k)&&(O[k]=function(e){return function(){var t=arguments;return this.forEach(function(n){n[e].apply(n,t)})}}(k))}}.apply(t,r))===void 0||(e.exports=i)},function(e,t,n){var r=[n(0)],i;(i=function(e){if(!e||e.vml){var t=`hasOwnProperty`,n=String,r=parseFloat,i=Math,a=i.round,o=i.max,s=i.min,c=i.abs,l=/[, ]+/,u=e.eve,d=` `,f=``,p={M:`m`,L:`l`,C:`c`,Z:`x`,m:`t`,l:`r`,c:`v`,z:`x`},m=/([clmz]),?([^clmz]*)/gi,h=/ progid:\S+Blur\([^\)]+\)/g,g=/-?[^,\s-]+/g,_=`position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)`,v=21600,y={path:1,rect:1,image:1},b={circle:1,ellipse:1},x=function(t,n,r){var i=e.matrix();return i.rotate(-t,.5,.5),{dx:i.x(n,r),dy:i.y(n,r)}},S=function(e,t,n,r,i,a){var o=e._,s=e.matrix,l=o.fillpos,u=e.node,f=u.style,p=1,m=``,h=v/t,g=v/n;if(f.visibility=`hidden`,t&&n){if(u.coordsize=c(h)+d+c(g),f.rotation=a*(t*n<0?-1:1),a){var _=x(a,r,i);r=_.dx,i=_.dy}if(t<0&&(m+=`x`),n<0&&(m+=` y`)&&(p=-1),f.flip=m,u.coordorigin=r*-h+d+i*-g,l||o.fillsize){var y=u.getElementsByTagName(`fill`);y&&=y[0],u.removeChild(y),l&&(_=x(a,s.x(l[0],l[1]),s.y(l[0],l[1])),y.position=_.dx*p+d+_.dy*p),o.fillsize&&(y.size=o.fillsize[0]*c(t)+d+o.fillsize[1]*c(n)),u.appendChild(y)}f.visibility=`visible`}};e.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
6
+ You are running Raphaël `+this.version};var C,w=function(e,t,r){for(var i=n(t).toLowerCase().split(`-`),a=r?`end`:`start`,o=i.length,s=`classic`,c=`medium`,l=`medium`;o--;)switch(i[o]){case`block`:case`classic`:case`oval`:case`diamond`:case`open`:case`none`:s=i[o];break;case`wide`:case`narrow`:l=i[o];break;case`long`:case`short`:c=i[o]}var u=e.node.getElementsByTagName(`stroke`)[0];u[a+`arrow`]=s,u[a+`arrowlength`]=c,u[a+`arrowwidth`]=l},T=function(i,c){i.attrs=i.attrs||{};var u=i.node,h=i.attrs,_=u.style,x=y[i.type]&&(c.x!=h.x||c.y!=h.y||c.width!=h.width||c.height!=h.height||c.cx!=h.cx||c.cy!=h.cy||c.rx!=h.rx||c.ry!=h.ry||c.r!=h.r),T=b[i.type]&&(h.cx!=c.cx||h.cy!=c.cy||h.r!=c.r||h.rx!=c.rx||h.ry!=c.ry),D=i;for(var O in c)c[t](O)&&(h[O]=c[O]);if(x&&(h.path=e._getPath[i.type](i),i._.dirty=1),c.href&&(u.href=c.href),c.title&&(u.title=c.title),c.target&&(u.target=c.target),c.cursor&&(_.cursor=c.cursor),`blur`in c&&i.blur(c.blur),(c.path&&i.type==`path`||x)&&(u.path=function(t){var r=/[ahqstv]/gi,i=e._pathToAbsolute;if(n(t).match(r)&&(i=e._path2curve),r=/[clmz]/g,i==e._pathToAbsolute&&!n(t).match(r)){var o=n(t).replace(m,function(e,t,n){var r=[],i=t.toLowerCase()==`m`,o=p[t];return n.replace(g,function(e){i&&r.length==2&&(o+=r+p[t==`m`?`l`:`L`],r=[]),r.push(a(e*v))}),o+r});return o}var s,c,l=i(t);o=[];for(var u=0,h=l.length;u<h;u++){s=l[u],(c=l[u][0].toLowerCase())==`z`&&(c=`x`);for(var _=1,y=s.length;_<y;_++)c+=a(s[_]*v)+(_==y-1?f:`,`);o.push(c)}return o.join(d)}(~n(h.path).toLowerCase().indexOf(`r`)?e._pathToAbsolute(h.path):h.path),i._.dirty=1,i.type==`image`&&(i._.fillpos=[h.x,h.y],i._.fillsize=[h.width,h.height],S(i,1,1,0,0,0))),`transform`in c&&i.transform(c.transform),T){var k=+h.cx,A=+h.cy,j=+h.rx||+h.r||0,ee=+h.ry||+h.r||0;u.path=e.format(`ar{0},{1},{2},{3},{4},{1},{4},{1}x`,a((k-j)*v),a((A-ee)*v),a((k+j)*v),a((A+ee)*v),a(k*v)),i._.dirty=1}if(`clip-rect`in c){var M=n(c[`clip-rect`]).split(l);if(M.length==4){M[2]=+M[2]+ +M[0],M[3]=+M[3]+ +M[1];var N=u.clipRect||e._g.doc.createElement(`div`),P=N.style;P.clip=e.format(`rect({1}px {2}px {3}px {0}px)`,M),u.clipRect||=(P.position=`absolute`,P.top=0,P.left=0,P.width=i.paper.width+`px`,P.height=i.paper.height+`px`,u.parentNode.insertBefore(N,u),N.appendChild(u),N)}c[`clip-rect`]||u.clipRect&&(u.clipRect.style.clip=`auto`)}if(i.textpath){var F=i.textpath.style;c.font&&(F.font=c.font),c[`font-family`]&&(F.fontFamily=`"`+c[`font-family`].split(`,`)[0].replace(/^['"]+|['"]+$/g,f)+`"`),c[`font-size`]&&(F.fontSize=c[`font-size`]),c[`font-weight`]&&(F.fontWeight=c[`font-weight`]),c[`font-style`]&&(F.fontStyle=c[`font-style`])}if(`arrow-start`in c&&w(D,c[`arrow-start`]),`arrow-end`in c&&w(D,c[`arrow-end`],1),c.opacity!=null||c.fill!=null||c.src!=null||c.stroke!=null||c[`stroke-width`]!=null||c[`stroke-opacity`]!=null||c[`fill-opacity`]!=null||c[`stroke-dasharray`]!=null||c[`stroke-miterlimit`]!=null||c[`stroke-linejoin`]!=null||c[`stroke-linecap`]!=null){var I=u.getElementsByTagName(`fill`);if(!(I&&=I[0])&&(I=C(`fill`)),i.type==`image`&&c.src&&(I.src=c.src),c.fill&&(I.on=!0),I.on!=null&&c.fill!=`none`&&c.fill!==null||(I.on=!1),I.on&&c.fill){var te=n(c.fill).match(e._ISURL);if(te){I.parentNode==u&&u.removeChild(I),I.rotate=!0,I.src=te[1],I.type=`tile`;var L=i.getBBox(1);I.position=L.x+d+L.y,i._.fillpos=[L.x,L.y],e._preload(te[1],function(){i._.fillsize=[this.offsetWidth,this.offsetHeight]})}else I.color=e.getRGB(c.fill).hex,I.src=f,I.type=`solid`,e.getRGB(c.fill).error&&(D.type in{circle:1,ellipse:1}||n(c.fill).charAt()!=`r`)&&E(D,c.fill,I)&&(h.fill=`none`,h.gradient=c.fill,I.rotate=!1)}if(`fill-opacity`in c||`opacity`in c){var R=((+h[`fill-opacity`]+1||2)-1)*((+h.opacity+1||2)-1)*((+e.getRGB(c.fill).o+1||2)-1);R=s(o(R,0),1),I.opacity=R,I.src&&(I.color=`none`)}u.appendChild(I);var z=u.getElementsByTagName(`stroke`)&&u.getElementsByTagName(`stroke`)[0],B=!1;!z&&(B=z=C(`stroke`)),(c.stroke&&c.stroke!=`none`||c[`stroke-width`]||c[`stroke-opacity`]!=null||c[`stroke-dasharray`]||c[`stroke-miterlimit`]||c[`stroke-linejoin`]||c[`stroke-linecap`])&&(z.on=!0),(c.stroke==`none`||c.stroke===null||z.on==null||c.stroke==0||c[`stroke-width`]==0)&&(z.on=!1);var ne=e.getRGB(c.stroke);z.on&&c.stroke&&(z.color=ne.hex),R=((+h[`stroke-opacity`]+1||2)-1)*((+h.opacity+1||2)-1)*((+ne.o+1||2)-1);var V=.75*(r(c[`stroke-width`])||1);if(R=s(o(R,0),1),c[`stroke-width`]??(V=h[`stroke-width`]),c[`stroke-width`]&&(z.weight=V),V&&V<1&&(R*=V)&&(z.weight=1),z.opacity=R,c[`stroke-linejoin`]&&(z.joinstyle=c[`stroke-linejoin`]||`miter`),z.miterlimit=c[`stroke-miterlimit`]||8,c[`stroke-linecap`]&&(z.endcap=c[`stroke-linecap`]==`butt`?`flat`:c[`stroke-linecap`]==`square`?`square`:`round`),`stroke-dasharray`in c){var re={"-":`shortdash`,".":`shortdot`,"-.":`shortdashdot`,"-..":`shortdashdotdot`,". ":`dot`,"- ":`dash`,"--":`longdash`,"- .":`dashdot`,"--.":`longdashdot`,"--..":`longdashdotdot`};z.dashstyle=re[t](c[`stroke-dasharray`])?re[c[`stroke-dasharray`]]:f}B&&u.appendChild(z)}if(D.type==`text`){D.paper.canvas.style.display=f;var ie=D.paper.span,ae=h.font&&h.font.match(/\d+(?:\.\d*)?(?=px)/);_=ie.style,h.font&&(_.font=h.font),h[`font-family`]&&(_.fontFamily=h[`font-family`]),h[`font-weight`]&&(_.fontWeight=h[`font-weight`]),h[`font-style`]&&(_.fontStyle=h[`font-style`]),ae=r(h[`font-size`]||ae&&ae[0])||10,_.fontSize=100*ae+`px`,D.textpath.string&&(ie.innerHTML=n(D.textpath.string).replace(/</g,`&#60;`).replace(/&/g,`&#38;`).replace(/\n/g,`<br>`));var oe=ie.getBoundingClientRect();D.W=h.w=(oe.right-oe.left)/100,D.H=h.h=(oe.bottom-oe.top)/100,D.X=h.x,D.Y=h.y+D.H/2,(`x`in c||`y`in c)&&(D.path.v=e.format(`m{0},{1}l{2},{1}`,a(h.x*v),a(h.y*v),a(h.x*v)+1));for(var se=[`x`,`y`,`text`,`font`,`font-family`,`font-weight`,`font-style`,`font-size`],ce=0,le=se.length;ce<le;ce++)if(se[ce]in c){D._.dirty=1;break}switch(h[`text-anchor`]){case`start`:D.textpath.style[`v-text-align`]=`left`,D.bbx=D.W/2;break;case`end`:D.textpath.style[`v-text-align`]=`right`,D.bbx=-D.W/2;break;default:D.textpath.style[`v-text-align`]=`center`,D.bbx=0}D.textpath.style[`v-text-kern`]=!0}},E=function(t,a,o){t.attrs=t.attrs||{},t.attrs;var s=Math.pow,c=`linear`,l=`.5 .5`;if(t.attrs.gradient=a,a=(a=n(a).replace(e._radial_gradient,function(e,t,n){return c=`radial`,t&&n&&(t=r(t),n=r(n),s(t-.5,2)+s(n-.5,2)>.25&&(n=i.sqrt(.25-s(t-.5,2))*(2*(n>.5)-1)+.5),l=t+d+n),f})).split(/\s*\-\s*/),c==`linear`){var u=a.shift();if(u=-r(u),isNaN(u))return null}var p=e._parseDots(a);if(!p)return null;if(t=t.shape||t.node,p.length){t.removeChild(o),o.on=!0,o.method=`none`,o.color=p[0].color,o.color2=p[p.length-1].color;for(var m=[],h=0,g=p.length;h<g;h++)p[h].offset&&m.push(p[h].offset+d+p[h].color);o.colors=m.length?m.join():`0% `+o.color,c==`radial`?(o.type=`gradientTitle`,o.focus=`100%`,o.focussize=`0 0`,o.focusposition=l,o.angle=0):(o.type=`gradient`,o.angle=(270-u)%360),t.appendChild(o)}return 1},D=function(t,n){this[0]=this.node=t,t.raphael=!0,this.id=e._oid++,t.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=n,this.matrix=e.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},O=e.el;D.prototype=O,O.constructor=D,O.transform=function(t){if(t==null)return this._.transform;var r,i=this.paper._viewBoxShift,a=i?`s`+[i.scale,i.scale]+`-1-1t`+[i.dx,i.dy]:f;i&&(r=t=n(t).replace(/\.{3}|\u2026/g,this._.transform||f)),e._extractTransform(this,a+t);var o,s=this.matrix.clone(),c=this.skew,l=this.node,u=~n(this.attrs.fill).indexOf(`-`),p=!n(this.attrs.fill).indexOf(`url(`);if(s.translate(1,1),p||u||this.type==`image`)if(c.matrix=`1 0 0 1`,c.offset=`0 0`,o=s.split(),u&&o.noRotation||!o.isSimple){l.style.filter=s.toFilter();var m=this.getBBox(),h=this.getBBox(1),g=m.x-h.x,_=m.y-h.y;l.coordorigin=g*-v+d+_*-v,S(this,1,1,g,_,0)}else l.style.filter=f,S(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else l.style.filter=f,c.matrix=n(s),c.offset=s.offset();return r!==null&&(this._.transform=r,e._extractTransform(this,r)),this},O.rotate=function(e,t,i){if(this.removed)return this;if(e!=null){if((e=n(e).split(l)).length-1&&(t=r(e[1]),i=r(e[2])),e=r(e[0]),i??(t=i),t==null||i==null){var a=this.getBBox(1);t=a.x+a.width/2,i=a.y+a.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([[`r`,e,t,i]])),this}},O.translate=function(e,t){return this.removed?this:((e=n(e).split(l)).length-1&&(t=r(e[1])),e=r(e[0])||0,t=+t||0,this._.bbox&&(this._.bbox.x+=e,this._.bbox.y+=t),this.transform(this._.transform.concat([[`t`,e,t]])),this)},O.scale=function(e,t,i,a){if(this.removed)return this;if((e=n(e).split(l)).length-1&&(t=r(e[1]),i=r(e[2]),a=r(e[3]),isNaN(i)&&(i=null),isNaN(a)&&(a=null)),e=r(e[0]),t??=e,a??(i=a),i==null||a==null)var o=this.getBBox(1);return i??=o.x+o.width/2,a??=o.y+o.height/2,this.transform(this._.transform.concat([[`s`,e,t,i,a]])),this._.dirtyT=1,this},O.hide=function(){return!this.removed&&(this.node.style.display=`none`),this},O.show=function(){return!this.removed&&(this.node.style.display=f),this},O.auxGetBBox=e.el.getBBox,O.getBBox=function(){var e=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var t={},n=1/this.paper._viewBoxShift.scale;return t.x=e.x-this.paper._viewBoxShift.dx,t.x*=n,t.y=e.y-this.paper._viewBoxShift.dy,t.y*=n,t.width=e.width*n,t.height=e.height*n,t.x2=t.x+t.width,t.y2=t.y+t.height,t}return e},O._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},O.remove=function(){if(!this.removed&&this.node.parentNode){for(var t in this.paper.__set__&&this.paper.__set__.exclude(this),e.eve.unbind(`raphael.*.*.`+this.id),e._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[t]=typeof this[t]==`function`?e._removedFactory(t):null;this.removed=!0}},O.attr=function(n,r){if(this.removed)return this;if(n==null){var i={};for(var a in this.attrs)this.attrs[t](a)&&(i[a]=this.attrs[a]);return i.gradient&&i.fill==`none`&&(i.fill=i.gradient)&&delete i.gradient,i.transform=this._.transform,i}if(r==null&&e.is(n,`string`)){if(n==`fill`&&this.attrs.fill==`none`&&this.attrs.gradient)return this.attrs.gradient;for(var o=n.split(l),s={},c=0,d=o.length;c<d;c++)(n=o[c])in this.attrs?s[n]=this.attrs[n]:e.is(this.paper.customAttributes[n],`function`)?s[n]=this.paper.customAttributes[n].def:s[n]=e._availableAttrs[n];return d-1?s:s[o[0]]}if(this.attrs&&r==null&&e.is(n,`array`)){for(s={},c=0,d=n.length;c<d;c++)s[n[c]]=this.attr(n[c]);return s}var f;for(var p in r!=null&&((f={})[n]=r),r==null&&e.is(n,`object`)&&(f=n),f)u(`raphael.attr.`+p+`.`+this.id,this,f[p]);if(f){for(p in this.paper.customAttributes)if(this.paper.customAttributes[t](p)&&f[t](p)&&e.is(this.paper.customAttributes[p],`function`)){var m=this.paper.customAttributes[p].apply(this,[].concat(f[p]));for(var h in this.attrs[p]=f[p],m)m[t](h)&&(f[h]=m[h])}f.text&&this.type==`text`&&(this.textpath.string=f.text),T(this,f)}return this},O.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&e._tofront(this,this.paper),this},O.toBack=function(){return this.removed||this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),e._toback(this,this.paper)),this},O.insertAfter=function(t){return this.removed?this:(t.constructor==e.st.constructor&&(t=t[t.length-1]),t.node.nextSibling?t.node.parentNode.insertBefore(this.node,t.node.nextSibling):t.node.parentNode.appendChild(this.node),e._insertafter(this,t,this.paper),this)},O.insertBefore=function(t){return this.removed?this:(t.constructor==e.st.constructor&&(t=t[0]),t.node.parentNode.insertBefore(this.node,t.node),e._insertbefore(this,t,this.paper),this)},O.blur=function(t){var n=this.node.runtimeStyle,r=n.filter;return r=r.replace(h,f),+t==0?(n.filter=r,n.margin=0,delete this.attrs.blur):(this.attrs.blur=t,n.filter=r+d+` progid:DXImageTransform.Microsoft.Blur(pixelradius=`+(+t||1.5)+`)`,n.margin=e.format(`-{0}px 0 0 -{0}px`,a(+t||1.5))),this},e._engine.path=function(e,t){var n=C(`shape`);n.style.cssText=_,n.coordsize=v+d+v,n.coordorigin=t.coordorigin;var r=new D(n,t),i={fill:`none`,stroke:`#000`};e&&(i.path=e),r.type=`path`,r.path=[],r.Path=f,T(r,i),t.canvas&&t.canvas.appendChild(n);var a=C(`skew`);return a.on=!0,n.appendChild(a),r.skew=a,r.transform(f),r},e._engine.rect=function(t,n,r,i,a,o){var s=e._rectPath(n,r,i,a,o),c=t.path(s),l=c.attrs;return c.X=l.x=n,c.Y=l.y=r,c.W=l.width=i,c.H=l.height=a,l.r=o,l.path=s,c.type=`rect`,c},e._engine.ellipse=function(e,t,n,r,i){var a=e.path();return a.attrs,a.X=t-r,a.Y=n-i,a.W=2*r,a.H=2*i,a.type=`ellipse`,T(a,{cx:t,cy:n,rx:r,ry:i}),a},e._engine.circle=function(e,t,n,r){var i=e.path();return i.attrs,i.X=t-r,i.Y=n-r,i.W=i.H=2*r,i.type=`circle`,T(i,{cx:t,cy:n,r}),i},e._engine.image=function(t,n,r,i,a,o){var s=e._rectPath(r,i,a,o),c=t.path(s).attr({stroke:`none`}),l=c.attrs,u=c.node,d=u.getElementsByTagName(`fill`)[0];return l.src=n,c.X=l.x=r,c.Y=l.y=i,c.W=l.width=a,c.H=l.height=o,l.path=s,c.type=`image`,d.parentNode==u&&u.removeChild(d),d.rotate=!0,d.src=n,d.type=`tile`,c._.fillpos=[r,i],c._.fillsize=[a,o],u.appendChild(d),S(c,1,1,0,0,0),c},e._engine.text=function(t,r,i,o){var s=C(`shape`),c=C(`path`),l=C(`textpath`);r||=0,i||=0,o||=``,c.v=e.format(`m{0},{1}l{2},{1}`,a(r*v),a(i*v),a(r*v)+1),c.textpathok=!0,l.string=n(o),l.on=!0,s.style.cssText=_,s.coordsize=v+d+v,s.coordorigin=`0 0`;var u=new D(s,t),p={fill:`#000`,stroke:`none`,font:e._availableAttrs.font,text:o};u.shape=s,u.path=c,u.textpath=l,u.type=`text`,u.attrs.text=n(o),u.attrs.x=r,u.attrs.y=i,u.attrs.w=1,u.attrs.h=1,T(u,p),s.appendChild(l),s.appendChild(c),t.canvas.appendChild(s);var m=C(`skew`);return m.on=!0,s.appendChild(m),u.skew=m,u.transform(f),u},e._engine.setSize=function(t,n){var r=this.canvas.style;return this.width=t,this.height=n,t==+t&&(t+=`px`),n==+n&&(n+=`px`),r.width=t,r.height=n,r.clip=`rect(0 `+t+` `+n+` 0)`,this._viewBox&&e._engine.setViewBox.apply(this,this._viewBox),this},e._engine.setViewBox=function(t,n,r,i,a){e.eve(`raphael.setViewBox`,this,this._viewBox,[t,n,r,i,a]);var o,s,c=this.getSize(),l=c.width,u=c.height;return a&&(r*(o=u/i)<l&&(t-=(l-r*o)/2/o),i*(s=l/r)<u&&(n-=(u-i*s)/2/s)),this._viewBox=[t,n,r,i,!!a],this._viewBoxShift={dx:-t,dy:-n,scale:c},this.forEach(function(e){e.transform(`...`)}),this},e._engine.initWin=function(e){var t=e.document;t.styleSheets.length<31?t.createStyleSheet().addRule(`.rvml`,`behavior:url(#default#VML)`):t.styleSheets[0].addRule(`.rvml`,`behavior:url(#default#VML)`);try{!t.namespaces.rvml&&t.namespaces.add(`rvml`,`urn:schemas-microsoft-com:vml`),C=function(e){return t.createElement(`<rvml:`+e+` class="rvml">`)}}catch{C=function(e){return t.createElement(`<`+e+` xmlns="urn:schemas-microsoft.com:vml" class="rvml">`)}}},e._engine.initWin(e._g.win),e._engine.create=function(){var t=e._getContainer.apply(0,arguments),n=t.container,r=t.height,i=t.width,a=t.x,o=t.y;if(!n)throw Error(`VML container not found.`);var s=new e._Paper,c=s.canvas=e._g.doc.createElement(`div`),l=c.style;return a||=0,o||=0,i||=512,r||=342,s.width=i,s.height=r,i==+i&&(i+=`px`),r==+r&&(r+=`px`),s.coordsize=216e5+d+216e5,s.coordorigin=`0 0`,s.span=e._g.doc.createElement(`span`),s.span.style.cssText=`position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;`,c.appendChild(s.span),l.cssText=e.format(`top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden`,i,r),n==1?(e._g.doc.body.appendChild(c),l.left=a+`px`,l.top=o+`px`,l.position=`absolute`):n.firstChild?n.insertBefore(c,n.firstChild):n.appendChild(c),s.renderfix=function(){},s},e.prototype.clear=function(){e.eve(`raphael.clear`,this),this.canvas.innerHTML=f,this.span=e._g.doc.createElement(`span`),this.span.style.cssText=`position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;`,this.canvas.appendChild(this.span),this.bottom=this.top=null},e.prototype.remove=function(){for(var t in e.eve(`raphael.remove`,this),this.canvas.parentNode.removeChild(this.canvas),this)this[t]=typeof this[t]==`function`?e._removedFactory(t):null;return!0};var k=e.st;for(var A in O)O[t](A)&&!k[t](A)&&(k[A]=function(e){return function(){var t=arguments;return this.forEach(function(n){n[e].apply(n,t)})}}(A))}}.apply(t,r))===void 0||(e.exports=i)}])})}))(),1),mr=class{constructor(e){if(gr(e))throw Error(`* justgage: Make sure to pass options to the constructor!`);this.events={},this.node=e.element;let t=this.node.dataset?this.node.dataset:{};(gr(e.defaults)?!1:e.defaults)!==!1&&(e=Er({}),delete e.defaults),this.config={element:e.element,classId:Or(),value:$(`value`,e,t,0,`float`),defaults:$(`defaults`,e,t,0,!1),parentNode:$(`parentNode`,e,t,null),width:$(`width`,e,t,null),height:$(`height`,e,t,null),valueFontColor:$(`valueFontColor`,e,t,`#010101`),valueFontFamily:$(`valueFontFamily`,e,t,`Arial`),symbol:$(`symbol`,e,t,``),min:$(`min`,e,t,0,`float`),minTxt:$(`minTxt`,e,t,!1),max:$(`max`,e,t,100,`float`),maxTxt:$(`maxTxt`,e,t,!1),reverse:$(`reverse`,e,t,!1),humanFriendlyDecimal:$(`humanFriendlyDecimal`,e,t,0),textRenderer:$(`textRenderer`,e,t,null),onAnimationEnd:$(`onAnimationEnd`,e,t,null),gaugeWidthScale:$(`gaugeWidthScale`,e,t,1),gaugeColor:$(`gaugeColor`,e,t,`#edebeb`),label:$(`label`,e,t,``),labelFontColor:$(`labelFontColor`,e,t,`#b3b3b3`),labelFontFamily:$(`labelFontFamily`,e,t,`Arial`),shadowOpacity:$(`shadowOpacity`,e,t,.2),shadowSize:$(`shadowSize`,e,t,5),shadowVerticalOffset:$(`shadowVerticalOffset`,e,t,3),levelColors:$(`levelColors`,e,t,[`#a9d70b`,`#f9c802`,`#ff0000`],`array`,`,`),startAnimationTime:$(`startAnimationTime`,e,t,700),startAnimationType:$(`startAnimationType`,e,t,`>`),refreshAnimationTime:$(`refreshAnimationTime`,e,t,700),refreshAnimationType:$(`refreshAnimationType`,e,t,`>`),donutStartAngle:$(`donutStartAngle`,e,t,90),valueMinFontSize:$(`valueMinFontSize`,e,t,16),labelMinFontSize:$(`labelMinFontSize`,e,t,10),minLabelMinFontSize:$(`minLabelMinFontSize`,e,t,10),maxLabelMinFontSize:$(`maxLabelMinFontSize`,e,t,10),hideValue:$(`hideValue`,e,t,!1),hideMinMax:$(`hideMinMax`,e,t,!1),showInnerShadow:$(`showInnerShadow`,e,t,!1),humanFriendly:$(`humanFriendly`,e,t,!1),noGradient:$(`noGradient`,e,t,!1),donut:$(`donut`,e,t,!1),relativeGaugeSize:$(`relativeGaugeSize`,e,t,!1),counter:$(`counter`,e,t,!1),decimals:$(`decimals`,e,t,0),customSectors:$(`customSectors`,e,t,{}),formatNumber:$(`formatNumber`,e,t,!1),pointer:$(`pointer`,e,t,!1),pointerOptions:$(`pointerOptions`,e,t,{}),displayRemaining:$(`displayRemaining`,e,t,!1)};let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;this.config.value>this.config.max&&(this.config.value=this.config.max),this.config.value<this.config.min&&(this.config.value=this.config.min),this.originalValue=$(`value`,e,t,-1,`float`),this.canvas=(0,pr.default)(this.config.element,`100%`,`100%`),this.config.relativeGaugeSize===!0?this.config.donut===!0?(this.canvas.setViewBox(0,0,200,200,!0),n=200,r=200):(this.canvas.setViewBox(0,0,200,100,!0),n=200,r=100):this.config.width!==null&&this.config.height!==null?(n=this.config.width,r=this.config.height):this.config.parentNode===null?(n=Number(Cr(this.config.element,`width`).slice(0,-2))*1,r=Number(Cr(this.config.element,`height`).slice(0,-2))*1):(this.canvas.setViewBox(0,0,200,100,!0),n=200,r=100),this.config.donut===!0?(n>r?(a=r,i=a):(i=n,a=i),s=(n-i)/2,c=(r-a)/2,l=a/6.4>16?a/5.4:18,u=s+i/2,d=this.config.label===``?c+a/1.7:c+a/1.85,f=a/16>10?a/16:10,p=s+i/2,m=d+f,h=a/16>10?a/16:10,g=s+i/10+i/6.666666666666667*this.config.gaugeWidthScale/2,_=m,v=a/16>10?a/16:10,y=s+i-i/10-i/6.666666666666667*this.config.gaugeWidthScale/2,b=m):(n>r?(a=r,i=a*2,i>n&&(o=i/n,i/=o,a/=o)):n<r?(i=n,a=i/2):(i=n,a=i*.5),s=(n-i)/2,c=(r-a)/2,l=a/6.5>this.config.valueMinFontSize?a/6.5:this.config.valueMinFontSize,u=s+i/2,d=c+a/1.275,f=a/16>this.config.labelMinFontSize?a/16:this.config.labelMinFontSize,p=s+i/2,m=d+l/2+5,h=a/16>this.config.minLabelMinFontSize?a/16:this.config.minLabelMinFontSize,g=s+i/10+i/6.666666666666667*this.config.gaugeWidthScale/2,_=m,v=a/16>this.config.maxLabelMinFontSize?a/16:this.config.maxLabelMinFontSize,y=s+i-i/10-i/6.666666666666667*this.config.gaugeWidthScale/2,b=m),this.params={canvasW:n,canvasH:r,widgetW:i,widgetH:a,dx:s,dy:c,valueFontSize:l,valueX:u,valueY:d,labelFontSize:f,labelX:p,labelY:m,minFontSize:h,minX:g,minY:_,maxFontSize:v,maxX:y,maxY:b},this.canvas.customAttributes.pki=e=>{let t=this.config.min,n=this.config.max,r=this.params.widgetW,i=this.params.widgetH,a=this.params.dx,o=this.params.dy,s=this.config.gaugeWidthScale,c=this.config.donut,l,u,d,f,p,m,h,g,_,v;return t<0&&(n-=t,e-=t,t=0),c?(l=(1-2*(e-t)/(n-t))*Math.PI,u=r/2-r/30,d=u-r/6.666666666666667*s,f=r/2+a,p=i/2+o,m=f+u*Math.cos(l),h=p-u*Math.sin(l),g=f+d*Math.cos(l),_=p-d*Math.sin(l),v=`M`+(f-d)+`,`+p+` `,v+=`L`+(f-u)+`,`+p+` `,e-t>(n-t)/2&&(v+=`A`+u+`,`+u+` 0 0 1 `+(f+u)+`,`+p+` `),v+=`A`+u+`,`+u+` 0 0 1 `+m+`,`+h+` `,v+=`L`+g+`,`+_+` `,e-t>(n-t)/2&&(v+=`A`+d+`,`+d+` 0 0 0 `+(f+d)+`,`+p+` `),v+=`A`+d+`,`+d+` 0 0 0 `+(f-d)+`,`+p+` `,v+=`Z `,{path:v}):(l=(1-(e-t)/(n-t))*Math.PI,u=r/2-r/10,d=u-r/6.666666666666667*s,f=r/2+a,p=i/1.25+o,m=f+u*Math.cos(l),h=p-u*Math.sin(l),g=f+d*Math.cos(l),_=p-d*Math.sin(l),v=`M`+(f-d)+`,`+p+` `,v+=`L`+(f-u)+`,`+p+` `,v+=`A`+u+`,`+u+` 0 0 1 `+m+`,`+h+` `,v+=`L`+g+`,`+_+` `,v+=`A`+d+`,`+d+` 0 0 0 `+(f-d)+`,`+p+` `,v+=`Z `,{path:v})},this.canvas.customAttributes.ndl=function(e){let t=this.config.min,n=this.config.max,r=this.params.widgetW,i=this.params.widgetH,a=this.params.dx,o=this.params.dy,s=this.config.gaugeWidthScale,c=this.config.donut,l=r*3.5/100,u=r/15,d=r/100;this.config.pointerOptions.toplength!=null&&this.config.pointerOptions.toplength!==void 0&&(l=this.config.pointerOptions.toplength),this.config.pointerOptions.bottomlength!=null&&this.config.pointerOptions.bottomlength!==void 0&&(u=this.config.pointerOptions.bottomlength),this.config.pointerOptions.bottomwidth!=null&&this.config.pointerOptions.bottomwidth!==void 0&&(d=this.config.pointerOptions.bottomwidth);let f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O;return c?(f=(1-2*(e-t)/(n-t))*Math.PI,p=r/2-r/30,m=p-r/6.666666666666667*s,h=i/2+o,g=r/2+a+p*Math.cos(f),_=i-(i-h)-p*Math.sin(f),v=r/2+a+m*Math.cos(f),y=i-(i-h)-m*Math.sin(f),b=g+l*Math.cos(f),x=_-l*Math.sin(f),S=v-u*Math.cos(f),C=y+u*Math.sin(f),w=S+d*Math.sin(f),T=C+d*Math.cos(f),E=S-d*Math.sin(f),D=C-d*Math.cos(f),O=`M`+w+`,`+T+` `,O+=`L`+E+`,`+D+` `,O+=`L`+b+`,`+x+` `,O+=`Z `,{path:O}):(f=(1-(e-t)/(n-t))*Math.PI,p=r/2-r/10,m=p-r/6.666666666666667*s,h=i/1.25+o,g=r/2+a+p*Math.cos(f),_=i-(i-h)-p*Math.sin(f),v=r/2+a+m*Math.cos(f),y=i-(i-h)-m*Math.sin(f),b=g+l*Math.cos(f),x=_-l*Math.sin(f),S=v-u*Math.cos(f),C=y+u*Math.sin(f),w=S+d*Math.sin(f),T=C+d*Math.cos(f),E=S-d*Math.sin(f),D=C-d*Math.cos(f),O=`M`+w+`,`+T+` `,O+=`L`+E+`,`+D+` `,O+=`L`+b+`,`+x+` `,O+=`Z `,{path:O})},this.gauge=this.canvas.path().attr({stroke:`none`,fill:this.config.gaugeColor,pki:[this.config.max]}),this.level=this.canvas.path().attr({stroke:`none`,fill:_r(this.config.value,(this.config.value-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors),pki:[this.config.min]}),this.config.donut&&this.level.transform(`r`+this.config.donutStartAngle+`, `+(this.params.widgetW/2+this.params.dx)+`, `+(this.params.widgetH/2+this.params.dy)),this.config.pointer&&(this.needle=this.canvas.path().attr({stroke:gr(this.config.pointerOptions.stroke)?`none`:this.config.pointerOptions.stroke,"stroke-width":gr(this.config.pointerOptions.stroke_width)?0:this.config.pointerOptions.stroke_width,"stroke-linecap":gr(this.config.pointerOptions.stroke_linecap)?`square`:this.config.pointerOptions.stroke_linecap,fill:gr(this.config.pointerOptions.color)?`#000000`:this.config.pointerOptions.color,ndl:[this.config.min]}),this.config.donut&&this.needle.transform(`r`+this.config.donutStartAngle+`, `+(this.params.widgetW/2+this.params.dx)+`, `+(this.params.widgetH/2+this.params.dy))),this.txtValue=this.canvas.text(this.params.valueX,this.params.valueY,0),this.txtValue.attr({"font-size":this.params.valueFontSize,"font-weight":`bold`,"font-family":this.config.valueFontFamily,fill:this.config.valueFontColor,"fill-opacity":`0`}),vr(this.txtValue,this.params.valueFontSize,this.params.valueY),this.txtLabel=this.canvas.text(this.params.labelX,this.params.labelY,this.config.label),this.txtLabel.attr({"font-size":this.params.labelFontSize,"font-weight":`normal`,"font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":`0`}),vr(this.txtLabel,this.params.labelFontSize,this.params.labelY);let x=this.config.min;this.config.reverse&&(x=this.config.max),this.txtMinimum=x,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=xr(x,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Sr(x)),this.txtMin=this.canvas.text(this.params.minX,this.params.minY,this.txtMinimum),this.txtMin.attr({"font-size":this.params.minFontSize,"font-weight":`normal`,"font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?`0`:`1`}),vr(this.txtMin,this.params.minFontSize,this.params.minY);let S=this.config.max;this.config.reverse&&(S=this.config.min),this.txtMaximum=S,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=xr(S,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Sr(S)),this.txtMax=this.canvas.text(this.params.maxX,this.params.maxY,this.txtMaximum),this.txtMax.attr({"font-size":this.params.maxFontSize,"font-weight":`normal`,"font-family":this.config.labelFontFamily,fill:this.config.labelFontColor,"fill-opacity":this.config.hideMinMax||this.config.donut?`0`:`1`}),vr(this.txtMax,this.params.maxFontSize,this.params.maxY);let C=this.canvas.canvas.childNodes[1],w=`http://www.w3.org/2000/svg`;Tr!==void 0&&Tr<9||(Tr===void 0?this.generateShadow(w,C):wr(()=>{this.generateShadow(w,C)})),this.config.textRenderer&&this.config.textRenderer(this.originalValue)!==!1?this.originalValue=this.config.textRenderer(this.originalValue):this.config.humanFriendly?this.originalValue=xr(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=Sr(this.originalValue)+this.config.symbol:this.config.displayRemaining?this.originalValue=((this.config.max-this.originalValue)*1).toFixed(this.config.decimals)+this.config.symbol:this.originalValue=(this.originalValue*1).toFixed(this.config.decimals)+this.config.symbol,this.config.counter===!0?(this.bindEvent(`raphael.anim.finish`,()=>{this.txtValue.attr({text:this.originalValue}),vr(this.txtValue,this.params.valueFontSize,this.params.valueY)}),this.bindEvent(`raphael.anim.frame`,()=>{let e=this.level.attr(`pki`)[0];this.config.reverse&&(e=this.config.max*1+this.config.min*1-this.level.attr(`pki`)[0]*1),this.config.textRenderer&&this.config.textRenderer(Math.floor(e))!==!1?this.txtValue.attr(`text`,this.config.textRenderer(Math.floor(e))):this.config.humanFriendly?this.txtValue.attr(`text`,xr(Math.floor(e),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr(`text`,Sr(Math.floor(e))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr(`text`,((this.config.max-e)*1).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr(`text`,(e*1).toFixed(this.config.decimals)+this.config.symbol),vr(this.txtValue,this.params.valueFontSize,this.params.valueY),e=null})):this.bindEvent(`raphael.anim.start`,()=>{this.txtValue.attr({text:this.originalValue}),vr(this.txtValue,this.params.valueFontSize,this.params.valueY)});let T=this.config.value;this.config.reverse&&(T=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[T]},this.config.startAnimationTime,this.config.startAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[T]},this.config.startAnimationTime,this.config.startAnimationType),this.txtValue.animate({"fill-opacity":this.config.hideValue?`0`:`1`},this.config.startAnimationTime,this.config.startAnimationType),this.txtLabel.animate({"fill-opacity":`1`},this.config.startAnimationTime,this.config.startAnimationType)}bindEvent(e,t){e+=`.`+this.level.id,this.events[e]&&pr.default.eve.off(e,this.events[e]),pr.default.eve.on(e,t),this.events[e]=t}refresh(e,t,n,r){let i;t=Dr(t)?t:null,n=Dr(n)?n:null,r||=null,r!==null&&(this.config.label=r,this.txtLabel.attr({text:this.config.label}),vr(this.txtLabel,this.params.labelFontSize,this.params.labelY)),n!==null&&(this.config.min=n,this.txtMinimum=this.config.min,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=xr(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Sr(this.config.min)),this.config.reverse?(this.txtMax.attr({text:this.txtMinimum}),vr(this.txtMax,this.params.minFontSize,this.params.minY)):(this.txtMin.attr({text:this.txtMinimum}),vr(this.txtMin,this.params.minFontSize,this.params.minY))),t!==null&&(this.config.max=t,this.txtMaximum=this.config.max,this.config.maxTxt?this.txtMaximum=this.config.maxTxt:this.config.humanFriendly?this.txtMaximum=xr(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Sr(this.config.max)),this.config.reverse?(this.txtMin.attr({text:this.txtMaximum}),vr(this.txtMin,this.params.maxFontSize,this.params.maxY)):(this.txtMax.attr({text:this.txtMaximum}),vr(this.txtMax,this.params.maxFontSize,this.params.maxY))),i=e,e*1>this.config.max*1&&(e=this.config.max*1),e*1<this.config.min*1&&(e=this.config.min*1);let a=_r(e,(e-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.noGradient,this.config.customSectors);i=this.config.textRenderer&&this.config.textRenderer(i)!==!1?this.config.textRenderer(i):this.config.humanFriendly?xr(i,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?Sr((i*1).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?((this.config.max-i)*1).toFixed(this.config.decimals)+this.config.symbol:(i*1).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=i,this.config.value=e*1,this.config.counter||(this.txtValue.attr({text:i}),vr(this.txtValue,this.params.valueFontSize,this.params.valueY));let o=this.config.value;this.config.reverse&&(o=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[o],fill:a},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[o]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(e,t){let n=this;if(e instanceof Object)for(let r in e)t=e[r],hr(n,r,t);else hr(n,e,t)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML=``);for(let e in this.events)pr.default.eve.off(e,this.events[e]);this.events={}}generateShadow(e,t){let n=`inner-shadow-`+(this.config.element.id||this.config.classId),r=document.createElementNS(e,`filter`);r.setAttribute(`id`,n),t.appendChild(r);let i=document.createElementNS(e,`feOffset`);i.setAttribute(`dx`,`0`),i.setAttribute(`dy`,this.config.shadowVerticalOffset),r.appendChild(i);let a=document.createElementNS(e,`feGaussianBlur`);a.setAttribute(`result`,`offset-blur`),a.setAttribute(`stdDeviation`,this.config.shadowSize),r.appendChild(a);let o=document.createElementNS(e,`feComposite`);o.setAttribute(`operator`,`out`),o.setAttribute(`in`,`SourceGraphic`),o.setAttribute(`in2`,`offset-blur`),o.setAttribute(`result`,`inverse`),r.appendChild(o);let s=document.createElementNS(e,`feFlood`);s.setAttribute(`flood-color`,`black`),s.setAttribute(`flood-opacity`,this.config.shadowOpacity),s.setAttribute(`result`,`color`),r.appendChild(s);let c=document.createElementNS(e,`feComposite`);c.setAttribute(`operator`,`in`),c.setAttribute(`in`,`color`),c.setAttribute(`in2`,`inverse`),c.setAttribute(`result`,`shadow`),r.appendChild(c);let l=document.createElementNS(e,`feComposite`);l.setAttribute(`operator`,`over`),l.setAttribute(`in`,`shadow`),l.setAttribute(`in2`,`SourceGraphic`),r.appendChild(l),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute(`filter`,`url(#`+n+`)`),this.canvas.canvas.childNodes[3].setAttribute(`filter`,`url(#`+n+`)`))}};function hr(e,t,n){switch(t){case`valueFontColor`:if(!br(n)){console.log(`* justgage: the updated valueFontColor value is not a valid hex color`);break}e.txtValue.attr({fill:n});break;case`labelFontColor`:if(!br(n)){console.log(`* justgage: the updated labelFontColor value is not a valid hex color`);break}e.txtMin.attr({fill:n}),e.txtMax.attr({fill:n}),e.txtLabel.attr({fill:n});break;default:console.log(`* justgage: "${t}" is not a supported update setting`)}}function $(e,t,n,r,i,a){let o=r,s=!1;if(!gr(e)&&(!gr(n)&&typeof n==`object`&&e in n?(o=n[e],s=!0):!gr(t)&&typeof t==`object`&&e in t?(o=t[e],s=!0):o=r,s===!0&&!gr(i)))switch(i){case`int`:o=parseInt(o,10);break;case`float`:o=parseFloat(o);break;default:break}return o}function gr(e){return e==null}function _r(e,t,n,r,i){let a,o,s,c,l,u,d,f,p,m,h,g=i&&i.ranges&&i.ranges.length>0;if(r||=g,g){i.percents===!0&&(e=t*100);for(let t=0;t<i.ranges.length;t++)if(e>=i.ranges[t].lo&&e<=i.ranges[t].hi)return i.ranges[t].color}let _=n.length;if(_===1)return n[0];let v=r?1/_:1/(_-1),y=[];for(let e=0;e<n.length;e++)a=r?v*(e+1):v*e,o=parseInt(yr(n[e]).substring(0,2),16),s=parseInt(yr(n[e]).substring(2,4),16),c=parseInt(yr(n[e]).substring(4,6),16),y[e]={pct:a,color:{r:o,g:s,b:c}};if(t===0)return`rgb(`+[y[0].color.r,y[0].color.g,y[0].color.b].join(`,`)+`)`;for(let e=0;e<y.length;e++)if(t<=y[e].pct)return r?`rgb(`+[y[e].color.r,y[e].color.g,y[e].color.b].join(`,`)+`)`:(l=y[e-1],u=y[e],d=u.pct-l.pct,f=(t-l.pct)/d,p=1-f,m=f,h={r:Math.floor(l.color.r*p+u.color.r*m),g:Math.floor(l.color.g*p+u.color.g*m),b:Math.floor(l.color.b*p+u.color.b*m)},`rgb(`+[h.r,h.g,h.b].join(`,`)+`)`)}function vr(e,t,n){(!Tr||Tr>9)&&e.node.firstChild.attributes.dy&&(e.node.firstChild.attributes.dy.value=0)}function yr(e){return e.charAt(0)===`#`?e.substring(1,7):e}function br(e){return typeof e==`string`&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(e)}function xr(e,t){let n=10**t,r=0,i=1e3;for(;(e>=i||e<=-i)&&++r<7;)e/=i;return r=r>=7?6:r,Math.round(e*n)/n+` KMGTPE`[r]}function Sr(e){let t=e.toString().split(`.`);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,`,`),t.join(`.`)}function Cr(e,t){let n=``;return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``).getPropertyValue(t):e.currentStyle&&(t=t.replace(/-(\w)/g,function(e,t){return t.toUpperCase()}),n=e.currentStyle[t]),n}function wr(e){document.createElementNS===void 0?setTimeout(function(){wr(e)},100):e()}var Tr=(function(){let e=3,t=document.createElement(`div`),n=t.getElementsByTagName(`i`);for(;n[0];)t.innerHTML=`<!--[if gt IE `+ ++e+`]><i></i><![endif]-->`;return e>4?e:void 0})();function Er(e){e||={};for(let t=1;t<arguments.length;t++)if(arguments[t])for(let n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}function Dr(e){return e!=null&&!isNaN(e)}function Or(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}var kr=Gn(`<div part="gauge" style="width:100%" id="gauge"></div>`),Ar={hash:`svelte-1ozhsul`,code:``};function jr(e,t){Te(t,!0),ir(e,Ar);let n=yt(void 0),r=yt(void 0),i=ar(t,`id`,7,``),a=ar(t,`options`,7);Ut(()=>{a()&&typeof a()==`string`&&(a(JSON.parse(a())),Q(n)&&Q(r)&&o())});function o(){if(!Q(n))return console.error(`cannot recreateGauge gauge`);Q(r)&&Q(r).destroy(),xt(r,void 0),s()}function s(){if(!a()||!Q(n))return console.error(`cannot create gauge`);Q(r)?console.error(`cannot create html gauge`):xt(r,new mr(Object.assign({element:Q(n)},a())),!0)}tr(()=>{xt(n,t.$$host?.shadowRoot?.querySelector(`#gauge`),!0),console.log(`gaugeEl`,Q(n)),s()}),nr(()=>{Q(r)&&Q(r).destroy(),xt(r,void 0)});var c={get id(){return i()},set id(e=``){i(e),q()},get options(){return a()},set options(e){a(e),q()}},l=kr(),u=ct(()=>fr(o,200));return Rn(`resize`,Dt,function(...e){Q(u)?.apply(this,e)}),Kn(e,l),Ee(c)}customElements.define(`hb-gauge`,dr(jr,{id:{},options:{}},[],[],{mode:`open`})),e.Component=jr})(this.gauge=this.gauge||{});
7
+ //# sourceMappingURL=main.iife.js.map