@htmlbricks/hb-gauge 0.66.0 → 0.66.2
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(Sn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const os=2,Fn="[",An="[!",Tn="]",Ai={},Vt=Symbol(),rn=!1;var as=Array.isArray,ls=Array.prototype.indexOf,us=Array.from,Ti=Object.keys,Ni=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,fs=Object.prototype,hs=Array.prototype,cs=Object.getPrototypeOf,Nn=Object.isExtensible;function ds(r){for(var i=0;i<r.length;i++)r[i]()}function ps(){var r,i,a=new Promise((g,b)=>{r=g,i=b});return{promise:a,resolve:r,reject:i}}const Bt=2,sn=4,Ln=8,ve=16,we=32,ke=64,Li=128,ae=512,It=1024,Ut=2048,me=4096,Ee=8192,Ce=16384,Ri=32768,zi=65536,Rn=1<<17,zn=1<<18,We=1<<19,gs=1<<20,Oe=32768,on=1<<21,Bn=1<<22,ci=1<<23,an=Symbol("$state"),vs=Symbol("legacy props"),On=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Bi=8;function Pn(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ms(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ys(r){throw new Error("https://svelte.dev/e/effect_orphan")}function _s(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function bs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ws(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ks(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Vn(r){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ms(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let le=!1;function Oi(r){le=r}let Dt;function di(r){if(r===null)throw Vn(),Ai;return Dt=r}function In(){return di(Ke(Dt))}function $s(r=1){if(le){for(var i=r,a=Dt;i--;)a=Ke(a);Dt=a}}function Ss(r=!0){for(var i=0,a=Dt;;){if(a.nodeType===Bi){var g=a.data;if(g===Tn){if(i===0)return a;i-=1}else(g===Fn||g===An)&&(i+=1)}var b=Ke(a);r&&a.remove(),a=b}}function Dn(r){return r===this.v}function Fs(r,i){return r!=r?i==i:r!==i||r!==null&&typeof r=="object"||typeof r=="function"}function As(r){return!Fs(r,this.v)}let Ts=!1,Wt=null;function Pi(r){Wt=r}function jn(r,i=!1,a){Wt={p:Wt,i:!1,c:null,e:null,s:r,x:null,l:null}}function Yn(r){var i=Wt,a=i.e;if(a!==null){i.e=null;for(var g of a)ur(g)}return r!==void 0&&(i.x=r),i.i=!0,Wt=i.p,r??{}}function qn(){return!0}let Pe=[];function Xn(){var r=Pe;Pe=[],ds(r)}function Vi(r){if(Pe.length===0&&!pi){var i=Pe;queueMicrotask(()=>{i===Pe&&Xn()})}Pe.push(r)}function Ns(){for(;Pe.length>0;)Xn()}function Hn(r){var i=Nt;if(i===null)return St.f|=ci,r;if((i.f&Ri)===0){if((i.f&Li)===0)throw r;i.b.error(r)}else Ii(r,i)}function Ii(r,i){for(;i!==null;){if((i.f&Li)!==0)try{i.b.error(r);return}catch(a){r=a}i=i.parent}throw r}const Di=new Set;let jt=null,ie=null,ne=[],ji=null,ln=!1,pi=!1;class ue{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#l=0;#s=0;#u=null;#o=[];#r=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(i){ne=[],this.apply();var a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const g of i)this.#i(g,a);this.is_fork||this.#f(),this.is_deferred()?(this.#n(a.effects),this.#n(a.render_effects),this.#n(a.block_effects)):(jt=null,Un(a.render_effects),Un(a.effects),this.#u?.resolve()),ie=null}#i(i,a){i.f^=It;for(var g=i.first;g!==null;){var b=g.f,y=(b&(we|ke))!==0,k=y&&(b&It)!==0,h=k||(b&Ee)!==0||this.skipped_effects.has(g);if((g.f&Li)!==0&&g.b?.is_pending()&&(a={parent:a,effect:g,effects:[],render_effects:[],block_effects:[]}),!h&&g.fn!==null){y?g.f^=It:(b&sn)!==0?a.effects.push(g):xi(g)&&((g.f&ve)!==0&&a.block_effects.push(g),yi(g));var f=g.first;if(f!==null){g=f;continue}}var $=g.parent;for(g=g.next;g===null&&$!==null;)$===a.effect&&(this.#n(a.effects),this.#n(a.render_effects),this.#n(a.block_effects),a=a.parent),g=$.next,$=$.parent}}#n(i){for(const a of i)((a.f&Ut)!==0?this.#o:this.#r).push(a),this.#a(a.deps),qt(a,It)}#a(i){if(i!==null)for(const a of i)(a.f&Bt)===0||(a.f&Oe)===0||(a.f^=Oe,this.#a(a.deps))}capture(i,a){this.previous.has(i)||this.previous.set(i,a),(i.f&ci)===0&&(this.current.set(i,i.v),ie?.set(i,i.v))}activate(){jt=this,this.apply()}deactivate(){jt===this&&(jt=null,ie=null)}flush(){if(this.activate(),ne.length>0){if(Gn(),jt!==null&&jt!==this)return}else this.#l===0&&this.process([]);this.deactivate()}discard(){for(const i of this.#t)i(this);this.#t.clear()}#f(){if(this.#s===0){for(const i of this.#e)i();this.#e.clear()}this.#l===0&&this.#h()}#h(){if(Di.size>1){this.previous.clear();var i=ie,a=!0,g={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const y of Di){if(y===this){a=!1;continue}const k=[];for(const[f,$]of this.current){if(y.current.has(f))if(a&&$!==y.current.get(f))y.current.set(f,$);else continue;k.push(f)}if(k.length===0)continue;const h=[...y.current.keys()].filter(f=>!this.current.has(f));if(h.length>0){var b=ne;ne=[];const f=new Set,$=new Map;for(const L of k)Wn(L,h,f,$);if(ne.length>0){jt=y,y.apply();for(const L of ne)y.#i(L,g);y.deactivate()}ne=b}}jt=null,ie=i}this.committed=!0,Di.delete(this)}increment(i){this.#l+=1,i&&(this.#s+=1)}decrement(i){this.#l-=1,i&&(this.#s-=1),this.revive()}revive(){for(const i of this.#o)qt(i,Ut),Ze(i);for(const i of this.#r)qt(i,me),Ze(i);this.#o=[],this.#r=[],this.flush()}oncommit(i){this.#e.add(i)}ondiscard(i){this.#t.add(i)}settled(){return(this.#u??=ps()).promise}static ensure(){if(jt===null){const i=jt=new ue;Di.add(jt),pi||ue.enqueue(()=>{jt===i&&i.flush()})}return jt}static enqueue(i){Vi(i)}apply(){}}function un(r){var i=pi;pi=!0;try{for(var a;;){if(Ns(),ne.length===0&&(jt?.flush(),ne.length===0))return ji=null,a;Gn()}}finally{pi=i}}function Gn(){var r=Se;ln=!0;var i=null;try{var a=0;for(Hi(!0);ne.length>0;){var g=ue.ensure();if(a++>1e3){var b,y;Ls()}g.process(ne),Me.clear()}}finally{ln=!1,Hi(r),ji=null}}function Ls(){try{_s()}catch(r){Ii(r,ji)}}let xe=null;function Un(r){var i=r.length;if(i!==0){for(var a=0;a<i;){var g=r[a++];if((g.f&(Ce|Ee))===0&&xi(g)&&(xe=new Set,yi(g),g.deps===null&&g.first===null&&g.nodes_start===null&&(g.teardown===null&&g.ac===null?dr(g):g.fn=null),xe?.size>0)){Me.clear();for(const b of xe){if((b.f&(Ce|Ee))!==0)continue;const y=[b];let k=b.parent;for(;k!==null;)xe.has(k)&&(xe.delete(k),y.push(k)),k=k.parent;for(let h=y.length-1;h>=0;h--){const f=y[h];(f.f&(Ce|Ee))===0&&yi(f)}}xe.clear()}}xe=null}}function Wn(r,i,a,g){if(!a.has(r)&&(a.add(r),r.reactions!==null))for(const b of r.reactions){const y=b.f;(y&Bt)!==0?Wn(b,i,a,g):(y&(Bn|ve))!==0&&(y&Ut)===0&&Zn(b,i,g)&&(qt(b,Ut),Ze(b))}}function Zn(r,i,a){const g=a.get(r);if(g!==void 0)return g;if(r.deps!==null)for(const b of r.deps){if(i.includes(b))return!0;if((b.f&Bt)!==0&&Zn(b,i,a))return a.set(b,!0),!0}return a.set(r,!1),!1}function Ze(r){for(var i=ji=r;i.parent!==null;){i=i.parent;var a=i.f;if(ln&&i===Nt&&(a&ve)!==0&&(a&zn)===0)return;if((a&(ke|we))!==0){if((a&It)===0)return;i.f^=It}}ne.push(i)}function Rs(r){let i=0,a=Yi(0),g;return()=>{qi()&&(Lt(a),fr(()=>(i===0&&(g=gn(()=>r(()=>gi(a)))),i+=1,()=>{Vi(()=>{i-=1,i===0&&(g?.(),g=void 0,gi(a))})})))}}var zs=zi|We|Li;function Bs(r,i,a){new Os(r,i,a)}class Os{parent;#e=!1;#t;#l=le?Dt:null;#s;#u;#o;#r=null;#i=null;#n=null;#a=null;#f=null;#h=0;#c=0;#p=!1;#d=null;#y=Rs(()=>(this.#d=Yi(this.#h),()=>{this.#d=null}));constructor(i,a,g){this.#t=i,this.#s=a,this.#u=g,this.parent=Nt.b,this.#e=!!this.#s.pending,this.#o=Ws(()=>{if(Nt.b=this,le){const y=this.#l;In(),y.nodeType===Bi&&y.data===An?this.#b():this.#_()}else{var b=this.#m();try{this.#r=Ve(()=>g(b))}catch(y){this.error(y)}this.#c>0?this.#v():this.#e=!1}return()=>{this.#f?.remove()}},zs),le&&(this.#t=Dt)}#_(){try{this.#r=Ve(()=>this.#u(this.#t))}catch(i){this.error(i)}this.#e=!1}#b(){const i=this.#s.pending;i&&(this.#i=Ve(()=>i(this.#t)),ue.enqueue(()=>{var a=this.#m();this.#r=this.#g(()=>(ue.ensure(),Ve(()=>this.#u(a)))),this.#c>0?this.#v():(Xi(this.#i,()=>{this.#i=null}),this.#e=!1)}))}#m(){var i=this.#t;return this.#e&&(this.#f=or(),this.#t.before(this.#f),i=this.#f),i}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#g(i){var a=Nt,g=St,b=Wt;Fe(this.#o),re(this.#o),Pi(this.#o.ctx);try{return i()}catch(y){return Hn(y),null}finally{Fe(a),re(g),Pi(b)}}#v(){const i=this.#s.pending;this.#r!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#f),Js(this.#r,this.#a)),this.#i===null&&(this.#i=Ve(()=>i(this.#t)))}#x(i){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(i);return}this.#c+=i,this.#c===0&&(this.#e=!1,this.#i&&Xi(this.#i,()=>{this.#i=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(i){this.#x(i),this.#h+=i,this.#d&&er(this.#d,this.#h)}get_effect_pending(){return this.#y(),Lt(this.#d)}error(i){var a=this.#s.onerror;let g=this.#s.failed;if(this.#p||!a&&!g)throw i;this.#r&&(fe(this.#r),this.#r=null),this.#i&&(fe(this.#i),this.#i=null),this.#n&&(fe(this.#n),this.#n=null),le&&(di(this.#l),$s(),di(Ss()));var b=!1,y=!1;const k=()=>{if(b){Ms();return}b=!0,y&&Cs(),ue.ensure(),this.#h=0,this.#n!==null&&Xi(this.#n,()=>{this.#n=null}),this.#e=this.has_pending_snippet(),this.#r=this.#g(()=>(this.#p=!1,Ve(()=>this.#u(this.#t)))),this.#c>0?this.#v():this.#e=!1};var h=St;try{re(null),y=!0,a?.(i,k),y=!1}catch(f){Ii(f,this.#o&&this.#o.parent)}finally{re(h)}g&&Vi(()=>{this.#n=this.#g(()=>{ue.ensure(),this.#p=!0;try{return Ve(()=>{g(this.#t,()=>i,()=>k)})}catch(f){return Ii(f,this.#o.parent),null}finally{this.#p=!1}})})}}function Kn(r){var i=Bt|Ut,a=St!==null&&(St.f&Bt)!==0?St:null;return Nt!==null&&(Nt.f|=We),{ctx:Wt,deps:null,effects:null,equals:Dn,f:i,fn:r,reactions:null,rv:0,v:Vt,wv:0,parent:a??Nt,ac:null}}function Ps(r){const i=Kn(r);return vr(i),i}function Qn(r){var i=r.effects;if(i!==null){r.effects=null;for(var a=0;a<i.length;a+=1)fe(i[a])}}function Vs(r){for(var i=r.parent;i!==null;){if((i.f&Bt)===0)return(i.f&Ce)===0?i:null;i=i.parent}return null}function fn(r){var i,a=Nt;Fe(Vs(r));try{r.f&=~Oe,Qn(r),i=br(r)}finally{Fe(a)}return i}function Jn(r){var i=fn(r);if(r.equals(i)||(jt?.is_fork||(r.v=i),r.wv=yr()),!Ie)if(ie!==null)qi()&&ie.set(r,i);else{var a=(r.f&ae)===0?me:It;qt(r,a)}}let hn=new Set;const Me=new Map;let tr=!1;function Yi(r,i){var a={f:0,v:r,reactions:null,equals:Dn,rv:0,wv:0};return a}function ce(r,i){const a=Yi(r);return vr(a),a}function Is(r,i=!1,a=!0){const g=Yi(r);return i||(g.equals=As),g}function Zt(r,i,a=!1){St!==null&&(!de||(St.f&Rn)!==0)&&qn()&&(St.f&(Bt|ve|Bn|Rn))!==0&&!ye?.includes(r)&&Es();let g=a?vi(i):i;return er(r,g)}function er(r,i){if(!r.equals(i)){var a=r.v;Ie?Me.set(r,i):Me.set(r,a),r.v=i;var g=ue.ensure();g.capture(r,a),(r.f&Bt)!==0&&((r.f&Ut)!==0&&fn(r),qt(r,(r.f&ae)!==0?It:me)),r.wv=yr(),ir(r,Ut),Nt!==null&&(Nt.f&It)!==0&&(Nt.f&(we|ke))===0&&(se===null?to([r]):se.push(r)),!g.is_fork&&hn.size>0&&!tr&&Ds()}return i}function Ds(){tr=!1;var r=Se;Hi(!0);const i=Array.from(hn);try{for(const a of i)(a.f&It)!==0&&qt(a,me),xi(a)&&yi(a)}finally{Hi(r)}hn.clear()}function gi(r){Zt(r,r.v+1)}function ir(r,i){var a=r.reactions;if(a!==null)for(var g=a.length,b=0;b<g;b++){var y=a[b],k=y.f,h=(k&Ut)===0;if(h&&qt(y,i),(k&Bt)!==0){var f=y;ie?.delete(f),(k&Oe)===0&&(k&ae&&(y.f|=Oe),ir(f,me))}else h&&((k&ve)!==0&&xe!==null&&xe.add(y),Ze(y))}}function vi(r){if(typeof r!="object"||r===null||an in r)return r;const i=cs(r);if(i!==fs&&i!==hs)return r;var a=new Map,g=as(r),b=ce(0),y=De,k=h=>{if(De===y)return h();var f=St,$=De;re(null),xr(y);var L=h();return re(f),xr($),L};return g&&a.set("length",ce(r.length)),new Proxy(r,{defineProperty(h,f,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&ws();var L=a.get(f);return L===void 0?L=k(()=>{var Z=ce($.value);return a.set(f,Z),Z}):Zt(L,$.value,!0),!0},deleteProperty(h,f){var $=a.get(f);if($===void 0){if(f in h){const L=k(()=>ce(Vt));a.set(f,L),gi(b)}}else Zt($,Vt),gi(b);return!0},get(h,f,$){if(f===an)return r;var L=a.get(f),Z=f in h;if(L===void 0&&(!Z||Ue(h,f)?.writable)&&(L=k(()=>{var tt=vi(Z?h[f]:Vt),nt=ce(tt);return nt}),a.set(f,L)),L!==void 0){var Y=Lt(L);return Y===Vt?void 0:Y}return Reflect.get(h,f,$)},getOwnPropertyDescriptor(h,f){var $=Reflect.getOwnPropertyDescriptor(h,f);if($&&"value"in $){var L=a.get(f);L&&($.value=Lt(L))}else if($===void 0){var Z=a.get(f),Y=Z?.v;if(Z!==void 0&&Y!==Vt)return{enumerable:!0,configurable:!0,value:Y,writable:!0}}return $},has(h,f){if(f===an)return!0;var $=a.get(f),L=$!==void 0&&$.v!==Vt||Reflect.has(h,f);if($!==void 0||Nt!==null&&(!L||Ue(h,f)?.writable)){$===void 0&&($=k(()=>{var Y=L?vi(h[f]):Vt,tt=ce(Y);return tt}),a.set(f,$));var Z=Lt($);if(Z===Vt)return!1}return L},set(h,f,$,L){var Z=a.get(f),Y=f in h;if(g&&f==="length")for(var tt=$;tt<Z.v;tt+=1){var nt=a.get(tt+"");nt!==void 0?Zt(nt,Vt):tt in h&&(nt=k(()=>ce(Vt)),a.set(tt+"",nt))}if(Z===void 0)(!Y||Ue(h,f)?.writable)&&(Z=k(()=>ce(void 0)),Zt(Z,vi($)),a.set(f,Z));else{Y=Z.v!==Vt;var W=k(()=>vi($));Zt(Z,W)}var _t=Reflect.getOwnPropertyDescriptor(h,f);if(_t?.set&&_t.set.call(L,$),!Y){if(g&&typeof f=="string"){var Ft=a.get("length"),U=Number(f);Number.isInteger(U)&&U>=Ft.v&&Zt(Ft,U+1)}gi(b)}return!0},ownKeys(h){Lt(b);var f=Reflect.ownKeys(h).filter(Z=>{var Y=a.get(Z);return Y===void 0||Y.v!==Vt});for(var[$,L]of a)L.v!==Vt&&!($ in h)&&f.push($);return f},setPrototypeOf(){ks()}})}var cn,nr,rr,sr;function dn(){if(cn===void 0){cn=window,nr=/Firefox/.test(navigator.userAgent);var r=Element.prototype,i=Node.prototype,a=Text.prototype;rr=Ue(i,"firstChild").get,sr=Ue(i,"nextSibling").get,Nn(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),Nn(a)&&(a.__t=void 0)}}function or(r=""){return document.createTextNode(r)}function ar(r){return rr.call(r)}function Ke(r){return sr.call(r)}function js(r){r.textContent=""}function pn(r){var i=St,a=Nt;re(null),Fe(null);try{return r()}finally{re(i),Fe(a)}}function Ys(r){Nt===null&&(St===null&&ys(),xs()),Ie&&ms()}function qs(r,i){var a=i.last;a===null?i.last=i.first=r:(a.next=r,r.prev=a,i.last=r)}function $e(r,i,a){var g=Nt;g!==null&&(g.f&Ee)!==0&&(r|=Ee);var b={ctx:Wt,deps:null,nodes_start:null,nodes_end:null,f:r|Ut|ae,first:null,fn:i,last:null,next:null,parent:g,b:g&&g.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(a)try{yi(b),b.f|=Ri}catch(h){throw fe(b),h}else i!==null&&Ze(b);var y=b;if(a&&y.deps===null&&y.teardown===null&&y.nodes_start===null&&y.first===y.last&&(y.f&We)===0&&(y=y.first,(r&ve)!==0&&(r&zi)!==0&&y!==null&&(y.f|=zi)),y!==null&&(y.parent=g,g!==null&&qs(y,g),St!==null&&(St.f&Bt)!==0&&(r&ke)===0)){var k=St;(k.effects??=[]).push(y)}return b}function qi(){return St!==null&&!de}function Xs(r){const i=$e(Ln,null,!1);return qt(i,It),i.teardown=r,i}function lr(r){Ys();var i=Nt.f,a=!St&&(i&we)!==0&&(i&Ri)===0;if(a){var g=Wt;(g.e??=[]).push(r)}else return ur(r)}function ur(r){return $e(sn|gs,r,!1)}function Hs(r){ue.ensure();const i=$e(ke|We,r,!0);return()=>{fe(i)}}function Gs(r){ue.ensure();const i=$e(ke|We,r,!0);return(a={})=>new Promise(g=>{a.outro?Xi(i,()=>{fe(i),g(void 0)}):(fe(i),g(void 0))})}function Us(r){return $e(sn,r,!1)}function fr(r,i=0){return $e(Ln|i,r,!0)}function Ws(r,i=0){var a=$e(ve|i,r,!0);return a}function Ve(r){return $e(we|We,r,!0)}function hr(r){var i=r.teardown;if(i!==null){const a=Ie,g=St;gr(!0),re(null);try{i.call(null)}finally{gr(a),re(g)}}}function cr(r,i=!1){var a=r.first;for(r.first=r.last=null;a!==null;){const b=a.ac;b!==null&&pn(()=>{b.abort(On)});var g=a.next;(a.f&ke)!==0?a.parent=null:fe(a,i),a=g}}function Zs(r){for(var i=r.first;i!==null;){var a=i.next;(i.f&we)===0&&fe(i),i=a}}function fe(r,i=!0){var a=!1;(i||(r.f&zn)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(Ks(r.nodes_start,r.nodes_end),a=!0),cr(r,i&&!a),Gi(r,0),qt(r,Ce);var g=r.transitions;if(g!==null)for(const y of g)y.stop();hr(r);var b=r.parent;b!==null&&b.first!==null&&dr(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function Ks(r,i){for(;r!==null;){var a=r===i?null:Ke(r);r.remove(),r=a}}function dr(r){var i=r.parent,a=r.prev,g=r.next;a!==null&&(a.next=g),g!==null&&(g.prev=a),i!==null&&(i.first===r&&(i.first=g),i.last===r&&(i.last=a))}function Xi(r,i,a=!0){var g=[];pr(r,g,!0),Qs(g,()=>{a&&fe(r),i&&i()})}function Qs(r,i){var a=r.length;if(a>0){var g=()=>--a||i();for(var b of r)b.out(g)}else i()}function pr(r,i,a){if((r.f&Ee)===0){if(r.f^=Ee,r.transitions!==null)for(const k of r.transitions)(k.is_global||a)&&i.push(k);for(var g=r.first;g!==null;){var b=g.next,y=(g.f&zi)!==0||(g.f&we)!==0&&(r.f&ve)!==0;pr(g,i,y?a:!1),g=b}}}function Js(r,i){for(var a=r.nodes_start,g=r.nodes_end;a!==null;){var b=a===g?null:Ke(a);i.append(a),a=b}}let Se=!1;function Hi(r){Se=r}let Ie=!1;function gr(r){Ie=r}let St=null,de=!1;function re(r){St=r}let Nt=null;function Fe(r){Nt=r}let ye=null;function vr(r){St!==null&&(ye===null?ye=[r]:ye.push(r))}let Yt=null,Kt=0,se=null;function to(r){se=r}let mr=1,mi=0,De=mi;function xr(r){De=r}function yr(){return++mr}function xi(r){var i=r.f;if((i&Ut)!==0)return!0;if(i&Bt&&(r.f&=~Oe),(i&me)!==0){var a=r.deps;if(a!==null)for(var g=a.length,b=0;b<g;b++){var y=a[b];if(xi(y)&&Jn(y),y.wv>r.wv)return!0}(i&ae)!==0&&ie===null&&qt(r,It)}return!1}function _r(r,i,a=!0){var g=r.reactions;if(g!==null&&!ye?.includes(r))for(var b=0;b<g.length;b++){var y=g[b];(y.f&Bt)!==0?_r(y,i,!1):i===y&&(a?qt(y,Ut):(y.f&It)!==0&&qt(y,me),Ze(y))}}function br(r){var i=Yt,a=Kt,g=se,b=St,y=ye,k=Wt,h=de,f=De,$=r.f;Yt=null,Kt=0,se=null,St=($&(we|ke))===0?r:null,ye=null,Pi(r.ctx),de=!1,De=++mi,r.ac!==null&&(pn(()=>{r.ac.abort(On)}),r.ac=null);try{r.f|=on;var L=r.fn,Z=L(),Y=r.deps;if(Yt!==null){var tt;if(Gi(r,Kt),Y!==null&&Kt>0)for(Y.length=Kt+Yt.length,tt=0;tt<Yt.length;tt++)Y[Kt+tt]=Yt[tt];else r.deps=Y=Yt;if(Se&&qi()&&(r.f&ae)!==0)for(tt=Kt;tt<Y.length;tt++)(Y[tt].reactions??=[]).push(r)}else Y!==null&&Kt<Y.length&&(Gi(r,Kt),Y.length=Kt);if(qn()&&se!==null&&!de&&Y!==null&&(r.f&(Bt|me|Ut))===0)for(tt=0;tt<se.length;tt++)_r(se[tt],r);return b!==null&&b!==r&&(mi++,se!==null&&(g===null?g=se:g.push(...se))),(r.f&ci)!==0&&(r.f^=ci),Z}catch(nt){return Hn(nt)}finally{r.f^=on,Yt=i,Kt=a,se=g,St=b,ye=y,Pi(k),de=h,De=f}}function eo(r,i){let a=i.reactions;if(a!==null){var g=ls.call(a,r);if(g!==-1){var b=a.length-1;b===0?a=i.reactions=null:(a[g]=a[b],a.pop())}}a===null&&(i.f&Bt)!==0&&(Yt===null||!Yt.includes(i))&&(qt(i,me),(i.f&ae)!==0&&(i.f^=ae,i.f&=~Oe),Qn(i),Gi(i,0))}function Gi(r,i){var a=r.deps;if(a!==null)for(var g=i;g<a.length;g++)eo(r,a[g])}function yi(r){var i=r.f;if((i&Ce)===0){qt(r,It);var a=Nt,g=Se;Nt=r,Se=!0;try{(i&ve)!==0?Zs(r):cr(r),hr(r);var b=br(r);r.teardown=typeof b=="function"?b:null,r.wv=mr;var y;rn&&Ts&&(r.f&Ut)!==0&&r.deps}finally{Se=g,Nt=a}}}function Lt(r){var i=r.f,a=(i&Bt)!==0;if(St!==null&&!de){var g=Nt!==null&&(Nt.f&Ce)!==0;if(!g&&!ye?.includes(r)){var b=St.deps;if((St.f&on)!==0)r.rv<mi&&(r.rv=mi,Yt===null&&b!==null&&b[Kt]===r?Kt++:Yt===null?Yt=[r]:Yt.includes(r)||Yt.push(r));else{(St.deps??=[]).push(r);var y=r.reactions;y===null?r.reactions=[St]:y.includes(St)||y.push(St)}}}if(Ie){if(Me.has(r))return Me.get(r);if(a){var k=r,h=k.v;return((k.f&It)===0&&k.reactions!==null||kr(k))&&(h=fn(k)),Me.set(k,h),h}}else a&&!ie?.has(r)&&(k=r,xi(k)&&Jn(k),Se&&qi()&&(k.f&ae)===0&&wr(k));if(ie?.has(r))return ie.get(r);if((r.f&ci)!==0)throw r.v;return r.v}function wr(r){if(r.deps!==null){r.f^=ae;for(const i of r.deps)(i.reactions??=[]).push(r),(i.f&Bt)!==0&&(i.f&ae)===0&&wr(i)}}function kr(r){if(r.v===Vt)return!0;if(r.deps===null)return!1;for(const i of r.deps)if(Me.has(i)||(i.f&Bt)!==0&&kr(i))return!0;return!1}function gn(r){var i=de;try{return de=!0,r()}finally{de=i}}const io=-7169;function qt(r,i){r.f=r.f&io|i}const no=new Set,Er=new Set;function ro(r,i,a,g={}){function b(y){if(g.capture||_i.call(i,y),!y.cancelBubble)return pn(()=>a?.call(this,y))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Vi(()=>{i.addEventListener(r,b,g)}):i.addEventListener(r,b,g),b}function so(r,i,a,g,b){var y={capture:g,passive:b},k=ro(r,i,a,y);(i===document.body||i===window||i===document||i instanceof HTMLMediaElement)&&Xs(()=>{i.removeEventListener(r,k,y)})}let Cr=null;function _i(r){var i=this,a=i.ownerDocument,g=r.type,b=r.composedPath?.()||[],y=b[0]||r.target;Cr=r;var k=0,h=Cr===r&&r.__root;if(h){var f=b.indexOf(h);if(f!==-1&&(i===document||i===window)){r.__root=i;return}var $=b.indexOf(i);if($===-1)return;f<=$&&(k=f)}if(y=b[k]||r.target,y!==i){Ni(r,"currentTarget",{configurable:!0,get(){return y||a}});var L=St,Z=Nt;re(null),Fe(null);try{for(var Y,tt=[];y!==null;){var nt=y.assignedSlot||y.parentNode||y.host||null;try{var W=y["__"+g];W!=null&&(!y.disabled||r.target===y)&&W.call(y,r)}catch(_t){Y?tt.push(_t):Y=_t}if(r.cancelBubble||nt===i||nt===null)break;y=nt}if(Y){for(let _t of tt)queueMicrotask(()=>{throw _t});throw Y}}finally{r.__root=i,delete r.currentTarget,re(L),Fe(Z)}}}function oo(r){var i=document.createElement("template");return i.innerHTML=r.replaceAll("<!>","<!---->"),i.content}function vn(r,i){var a=Nt;a.nodes_start===null&&(a.nodes_start=r,a.nodes_end=i)}function ao(r,i){var a=(i&os)!==0,g,b=!r.startsWith("<!>");return()=>{if(le)return vn(Dt,null),Dt;g===void 0&&(g=oo(b?r:"<!>"+r),g=ar(g));var y=a||nr?document.importNode(g,!0):g.cloneNode(!0);return vn(y,y),y}}function Mr(r,i){if(le){var a=Nt;((a.f&Ri)===0||a.nodes_end===null)&&(a.nodes_end=Dt),In();return}r!==null&&r.before(i)}const lo=["touchstart","touchmove"];function uo(r){return lo.includes(r)}function $r(r,i){return Sr(r,i)}function fo(r,i){dn(),i.intro=i.intro??!1;const a=i.target,g=le,b=Dt;try{for(var y=ar(a);y&&(y.nodeType!==Bi||y.data!==Fn);)y=Ke(y);if(!y)throw Ai;Oi(!0),di(y);const k=Sr(r,{...i,anchor:y});return Oi(!1),k}catch(k){if(k instanceof Error&&k.message.split(`
|
|
2
|
-
`).some(h=>h.startsWith("https://svelte.dev/e/")))throw k;return k!==Ai&&console.warn("Failed to hydrate: ",k),i.recover===!1&&bs(),dn(),js(a),Oi(!1),$r(r,i)}finally{Oi(g),di(b)}}const Qe=new Map;function Sr(r,{target:i,anchor:a,props:g={},events:b,context:y,intro:k=!0}){dn();var h=new Set,f=Z=>{for(var Y=0;Y<Z.length;Y++){var tt=Z[Y];if(!h.has(tt)){h.add(tt);var nt=uo(tt);i.addEventListener(tt,_i,{passive:nt});var W=Qe.get(tt);W===void 0?(document.addEventListener(tt,_i,{passive:nt}),Qe.set(tt,1)):Qe.set(tt,W+1)}}};f(us(no)),Er.add(f);var $=void 0,L=Gs(()=>{var Z=a??i.appendChild(or());return Bs(Z,{pending:()=>{}},Y=>{if(y){jn({});var tt=Wt;tt.c=y}if(b&&(g.$$events=b),le&&vn(Y,null),$=r(Y,g)||{},le&&(Nt.nodes_end=Dt,Dt===null||Dt.nodeType!==Bi||Dt.data!==Tn))throw Vn(),Ai;y&&Yn()}),()=>{for(var Y of h){i.removeEventListener(Y,_i);var tt=Qe.get(Y);--tt===0?(document.removeEventListener(Y,_i),Qe.delete(Y)):Qe.set(Y,tt)}Er.delete(f),Z!==a&&Z.parentNode?.removeChild(Z)}});return mn.set($,L),$}let mn=new WeakMap;function ho(r,i){const a=mn.get(r);return a?(mn.delete(r),a(i)):Promise.resolve()}function Fr(r){Wt===null&&Pn(),lr(()=>{const i=gn(r);if(typeof i=="function")return i})}function co(r){Wt===null&&Pn(),Fr(()=>()=>gn(r))}function po(r,i){Us(()=>{var a=r.getRootNode(),g=a.host?a:a.head??a.ownerDocument.head;if(!g.querySelector("#"+i.hash)){const b=document.createElement("style");b.id=i.hash,b.textContent=i.code,g.appendChild(b)}})}function Ar(r,i,a,g){var b=g,y=!0,k=()=>(y&&(y=!1,b=g),b),h;h=r[i],h===void 0&&g!==void 0&&(h=k());var f;f=()=>{var Y=r[i];return Y===void 0?k():(y=!0,Y)};var $=!1,L=Kn(()=>($=!1,f())),Z=Nt;return(function(Y,tt){if(arguments.length>0){const nt=tt?Lt(L):Y;return Zt(L,nt),$=!0,b!==void 0&&(b=nt),Y}return Ie&&$||(Z.f&Ce)!==0?L.v:Lt(L)})}function go(r){return new vo(r)}class vo{#e;#t;constructor(i){var a=new Map,g=(y,k)=>{var h=Is(k,!1,!1);return a.set(y,h),h};const b=new Proxy({...i.props||{},$$events:{}},{get(y,k){return Lt(a.get(k)??g(k,Reflect.get(y,k)))},has(y,k){return k===vs?!0:(Lt(a.get(k)??g(k,Reflect.get(y,k))),Reflect.has(y,k))},set(y,k,h){return Zt(a.get(k)??g(k,h),h),Reflect.set(y,k,h)}});this.#t=(i.hydrate?fo:$r)(i.component,{target:i.target,anchor:i.anchor,props:b,context:i.context,intro:i.intro??!1,recover:i.recover}),(!i?.props?.$$host||i.sync===!1)&&un(),this.#e=b.$$events;for(const y of Object.keys(this.#t))y==="$set"||y==="$destroy"||y==="$on"||Ni(this,y,{get(){return this.#t[y]},set(k){this.#t[y]=k},enumerable:!0});this.#t.$set=y=>{Object.assign(b,y)},this.#t.$destroy=()=>{ho(this.#t)}}$set(i){this.#t.$set(i)}$on(i,a){this.#e[i]=this.#e[i]||[];const g=(...b)=>a.call(this,...b);return this.#e[i].push(g),()=>{this.#e[i]=this.#e[i].filter(b=>b!==g)}}$destroy(){this.#t.$destroy()}}let Tr;typeof HTMLElement=="function"&&(Tr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,i,a){super(),this.$$ctor=r,this.$$s=i,a&&this.attachShadow({mode:"open"})}addEventListener(r,i,a){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(i),this.$$c){const g=this.$$c.$on(r,i);this.$$l_u.set(i,g)}super.addEventListener(r,i,a)}removeEventListener(r,i,a){if(super.removeEventListener(r,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 r=function(g){return b=>{const y=document.createElement("slot");g!=="default"&&(y.name=g),Mr(b,y)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const i={},a=mo(this);for(const g of this.$$s)g in a&&(g==="default"&&!this.$$d.children?(this.$$d.children=r(g),i.default=!0):i[g]=r(g));for(const g of this.attributes){const b=this.$$g_p(g.name);b in this.$$d||(this.$$d[b]=Ui(b,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=go({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Hs(()=>{fr(()=>{this.$$r=!0;for(const g of Ti(this.$$c)){if(!this.$$p_d[g]?.reflect)continue;this.$$d[g]=this.$$c[g];const b=Ui(g,this.$$d[g],this.$$p_d,"toAttribute");b==null?this.removeAttribute(this.$$p_d[g].attribute||g):this.setAttribute(this.$$p_d[g].attribute||g,b)}this.$$r=!1})});for(const g in this.$$l)for(const b of this.$$l[g]){const y=this.$$c.$on(g,b);this.$$l_u.set(b,y)}this.$$l={}}}attributeChangedCallback(r,i,a){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Ui(r,a,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return Ti(this.$$p_d).find(i=>this.$$p_d[i].attribute===r||!this.$$p_d[i].attribute&&i.toLowerCase()===r)||r}});function Ui(r,i,a,g){const b=a[r]?.type;if(i=b==="Boolean"&&typeof i!="boolean"?i!=null:i,!g||!a[r])return i;if(g==="toAttribute")switch(b){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(b){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function mo(r){const i={};return r.childNodes.forEach(a=>{i[a.slot||"default"]=!0}),i}function xo(r,i,a,g,b,y){let k=class extends Tr{constructor(){super(r,a,b),this.$$p_d=i}static get observedAttributes(){return Ti(i).map(h=>(i[h].attribute||h).toLowerCase())}};return Ti(i).forEach(h=>{Ni(k.prototype,h,{get(){return this.$$c&&h in this.$$c?this.$$c[h]:this.$$d[h]},set(f){f=Ui(h,f,i),this.$$d[h]=f;var $=this.$$c;if($){var L=Ue($,h)?.get;L?$[h]=f:$.$set({[h]:f})}}})}),g.forEach(h=>{Ni(k.prototype,h,{get(){return this.$$c?.[h]}})}),r.element=k,k}function yo(r,i=100,a={}){if(typeof r!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);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 b,y,k,h,f;function $(){const Y=b,tt=y;return b=void 0,y=void 0,f=r.apply(Y,tt),f}function L(){const Y=Date.now()-h;Y<i&&Y>=0?k=setTimeout(L,i-Y):(k=void 0,g||(f=$()))}const Z=function(...Y){if(b&&this!==b&&Object.getPrototypeOf(this)===Object.getPrototypeOf(b))throw new Error("Debounced method called with different contexts of the same prototype.");b=this,y=Y,h=Date.now();const tt=g&&!k;if(k||(k=setTimeout(L,i)),tt)return f=$(),f};return Object.defineProperty(Z,"isPending",{get(){return k!==void 0}}),Z.clear=()=>{k&&(clearTimeout(k),k=void 0,b=void 0,y=void 0)},Z.flush=()=>{k&&Z.trigger()},Z.trigger=()=>{f=$(),Z.clear()},Z}function _o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var xn={exports:{}},Nr;function bo(){return Nr||(Nr=1,(function(r,i){(function(a,g){r.exports=g()})(window,function(){return(function(a){var g={};function b(y){if(g[y])return g[y].exports;var k=g[y]={i:y,l:!1,exports:{}};return a[y].call(k.exports,k,k.exports,b),k.l=!0,k.exports}return b.m=a,b.c=g,b.d=function(y,k,h){b.o(y,k)||Object.defineProperty(y,k,{enumerable:!0,get:h})},b.r=function(y){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},b.t=function(y,k){if(1&k&&(y=b(y)),8&k||4&k&&typeof y=="object"&&y&&y.__esModule)return y;var h=Object.create(null);if(b.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:y}),2&k&&typeof y!="string")for(var f in y)b.d(h,f,(function($){return y[$]}).bind(null,f));return h},b.n=function(y){var k=y&&y.__esModule?function(){return y.default}:function(){return y};return b.d(k,"a",k),k},b.o=function(y,k){return Object.prototype.hasOwnProperty.call(y,k)},b.p="",b(b.s=1)})([function(a,g,b){var y,k;y=[b(2)],(k=(function(h){function f(t){if(f.is(t,"function"))return $?t():h.on("raphael.DOMload",t);if(f.is(t,xt))return f._engine.create[U](f,t.splice(0,3+f.is(t[0],ct))).add(t);var e=Array.prototype.slice.call(arguments,0);if(f.is(e[e.length-1],"function")){var n=e.pop();return $?n.call(f._engine.create[U](f,e)):h.on("raphael.DOMload",function(){n.call(f._engine.create[U](f,e))})}return f._engine.create[U](f,arguments)}f.version="2.3.0",f.eve=h;var $,L,Z=/[, ]+/,Y={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},tt=/\{(\d+)\}/g,nt="hasOwnProperty",W={doc:document,win:window},_t={was:Object.prototype[nt].call(W.win,"Raphael"),is:W.win.Raphael},Ft=function(){this.ca=this.customAttributes={}},U="apply",B="concat",Q="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,lt="",ht=" ",V=String,et="split",rt="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[et](ht),wt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},st=V.prototype.toLowerCase,H=Math,K=H.max,G=H.min,at=H.abs,yt=H.pow,Mt=H.PI,ct="number",xt="array",Jt=Object.prototype.toString,p=(f._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),u={NaN:1,Infinity:1,"-Infinity":1},o=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,c=H.round,_=parseFloat,E=parseInt,C=V.prototype.toUpperCase,R=f._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:""},M=f._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},N=/[\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,mt=/([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,kt=(f._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]*([^\)]+?)\))?/,{}),Ct=function(t,e){return _(t)-_(e)},bt=function(t){return t},ot=f._rectPath=function(t,e,n,s,l){return l?[["M",t+l,e],["l",n-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-n,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",n,0],["l",0,s],["l",-n,0],["z"]]},$t=function(t,e,n,s){return s==null&&(s=n),[["M",t,e],["m",0,-s],["a",n,s,0,1,1,0,2*s],["a",n,s,0,1,1,0,-2*s],["z"]]},Rt=f._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return $t(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return $t(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return ot(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return ot(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return ot(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return ot(e.x,e.y,e.width,e.height)}},zt=f.mapPath=function(t,e){if(!e)return t;var n,s,l,d,m,v,x;for(l=0,m=(t=Mi(t)).length;l<m;l++)for(d=1,v=(x=t[l]).length;d<v;d+=2)n=e.x(x[d],x[d+1]),s=e.y(x[d],x[d+1]),x[d]=n,x[d+1]=s;return t};if(f._g=W,f.type=W.win.SVGAngle||W.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",f.type=="VML"){var Tt,te=W.doc.createElement("div");if(te.innerHTML='<v:shape adj="1"/>',(Tt=te.firstChild).style.behavior="url(#default#VML)",!Tt||typeof Tt.adj!="object")return f.type=lt;te=null}function Xt(t){if(typeof t=="function"||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[nt](n)&&(e[n]=Xt(t[n]));return e}f.svg=!(f.vml=f.type=="VML"),f._Paper=Ft,f.fn=L=Ft.prototype=f.prototype,f._id=0,f.is=function(t,e){return(e=st.call(e))=="finite"?!u[nt](+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},f.angle=function(t,e,n,s,l,d){if(l==null){var m=t-n,v=e-s;return m||v?(180+180*H.atan2(-v,-m)/Mt+360)%360:0}return f.angle(t,e,l,d)-f.angle(n,s,l,d)},f.rad=function(t){return t%360*Mt/180},f.deg=function(t){return Math.round(180*t/Mt%360*1e3)/1e3},f.snapTo=function(t,e,n){if(n=f.is(n,"finite")?n:10,f.is(t,xt)){for(var s=t.length;s--;)if(at(t[s]-e)<=n)return t[s]}else{var l=e%(t=+t);if(l<n)return e-l;if(l>t-n)return e-l+t}return e};var Ae,wi;f.createUUID=(Ae=/[xy]/g,wi=function(t){var e=16*H.random()|0;return(t=="x"?e:3&e|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ae,wi).toUpperCase()}),f.setWindow=function(t){h("raphael.setWindow",f,W.win,t),W.win=t,W.doc=W.win.document,f._engine.initWin&&f._engine.initWin(W.win)};var Te=function(t){if(f.vml){var e,n=/^\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();Te=Ot(function(m){try{e.style.color=V(m).replace(n,lt);var v=l.queryCommandValue("ForeColor");return"#"+("000000"+(v=(255&v)<<16|65280&v|(16711680&v)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var d=W.doc.createElement("i");d.title="Raphaël Colour Picker",d.style.display="none",W.doc.body.appendChild(d),Te=Ot(function(m){return d.style.color=m,W.doc.defaultView.getComputedStyle(d,lt).getPropertyValue("color")})}return Te(t)},Je=function(){return"hsb("+[this.h,this.s,this.b]+")"},ti=function(){return"hsl("+[this.h,this.s,this.l]+")"},ki=function(){return this.hex},ei=function(t,e,n){if(e==null&&f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,e=t.g,t=t.r),e==null&&f.is(t,"string")){var s=f.getRGB(t);t=s.r,e=s.g,n=s.b}return(t>1||e>1||n>1)&&(t/=255,e/=255,n/=255),[t,e,n]},Zi=function(t,e,n,s){var l={r:t*=255,g:e*=255,b:n*=255,hex:f.rgb(t,e,n),toString:ki};return f.is(s,"finite")&&(l.opacity=s),l};function Ot(t,e,n){return function s(){var l=Array.prototype.slice.call(arguments,0),d=l.join("␀"),m=s.cache=s.cache||{},v=s.count=s.count||[];return m[nt](d)?((function(x,w){for(var F=0,P=x.length;F<P;F++)if(x[F]===w)return x.push(x.splice(F,1)[0])})(v,d),n?n(m[d]):m[d]):(v.length>=1e3&&delete m[v.shift()],v.push(d),m[d]=t[U](e,l),n?n(m[d]):m[d])}}f.color=function(t){var e;return f.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=f.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):f.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=f.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):(f.is(t,"string")&&(t=f.getRGB(t)),f.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(e=f.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=f.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=ki,t},f.hsb2rgb=function(t,e,n,s){var l,d,m,v,x;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,s=t.o,t=t.h),v=(x=n*e)*(1-at((t=(t*=360)%360/60)%2-1)),l=d=m=n-x,Zi(l+=[x,v,0,0,v,x][t=~~t],d+=[v,x,x,v,0,0][t],m+=[0,0,v,x,x,v][t],s)},f.hsl2rgb=function(t,e,n,s){var l,d,m,v,x;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),v=(x=2*e*(n<.5?n:1-n))*(1-at((t=(t*=360)%360/60)%2-1)),l=d=m=n-x/2,Zi(l+=[x,v,0,0,v,x][t=~~t],d+=[v,x,x,v,0,0][t],m+=[0,0,v,x,x,v][t],s)},f.rgb2hsb=function(t,e,n){var s,l;return t=(n=ei(t,e,n))[0],e=n[1],n=n[2],{h:(((l=(s=K(t,e,n))-G(t,e,n))==0?null:s==t?(e-n)/l:s==e?(n-t)/l+2:(t-e)/l+4)+360)%6*60/360,s:l==0?0:l/s,b:s,toString:Je}},f.rgb2hsl=function(t,e,n){var s,l,d,m;return t=(n=ei(t,e,n))[0],e=n[1],n=n[2],s=((l=K(t,e,n))+(d=G(t,e,n)))/2,{h:(((m=l-d)==0?null:l==t?(e-n)/m:l==e?(n-t)/m+2:(t-e)/m+4)+360)%6*60/360,s:m==0?0:s<.5?m/(2*s):m/(2-2*s),l:s,toString:ti}},f._path2string=function(){return this.join(",").replace(it,"$1")},f._preload=function(t,e){var n=W.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,W.doc.body.removeChild(this)},n.onerror=function(){W.doc.body.removeChild(this)},W.doc.body.appendChild(n),n.src=t};function Ne(){return this.hex}function ii(t,e){for(var n=[],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]}),n.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 n}f.getRGB=Ot(function(t){if(!t||(t=V(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[nt](t.toLowerCase().substring(0,2))&&t.charAt()!="#"&&(t=Te(t));var e,n,s,l,d,m,v=t.match(p);return v?(v[2]&&(s=E(v[2].substring(5),16),n=E(v[2].substring(3,5),16),e=E(v[2].substring(1,3),16)),v[3]&&(s=E((d=v[3].charAt(3))+d,16),n=E((d=v[3].charAt(2))+d,16),e=E((d=v[3].charAt(1))+d,16)),v[4]&&(m=v[4][et](N),e=_(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=_(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=_(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),v[1].toLowerCase().slice(0,4)=="rgba"&&(l=_(m[3])),m[3]&&m[3].slice(-1)=="%"&&(l/=100)),v[5]?(m=v[5][et](N),e=_(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=_(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=_(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),v[1].toLowerCase().slice(0,4)=="hsba"&&(l=_(m[3])),m[3]&&m[3].slice(-1)=="%"&&(l/=100),f.hsb2rgb(e,n,s,l)):v[6]?(m=v[6][et](N),e=_(m[0]),m[0].slice(-1)=="%"&&(e*=2.55),n=_(m[1]),m[1].slice(-1)=="%"&&(n*=2.55),s=_(m[2]),m[2].slice(-1)=="%"&&(s*=2.55),(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(e/=360),v[1].toLowerCase().slice(0,4)=="hsla"&&(l=_(m[3])),m[3]&&m[3].slice(-1)=="%"&&(l/=100),f.hsl2rgb(e,n,s,l)):((v={r:e,g:n,b:s,toString:Ne}).hex="#"+(16777216|s|n<<8|e<<16).toString(16).slice(1),f.is(l,"finite")&&(v.opacity=l),v)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ne}},f),f.hsb=Ot(function(t,e,n){return f.hsb2rgb(t,e,n).hex}),f.hsl=Ot(function(t,e,n){return f.hsl2rgb(t,e,n).hex}),f.rgb=Ot(function(t,e,n){function s(l){return l+.5|0}return"#"+(16777216|s(n)|s(e)<<8|s(t)<<16).toString(16).slice(1)}),f.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},n=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})),n.hex},f.getColor.reset=function(){delete this.start},f.parsePathString=function(t){if(!t)return null;var e=oe(t);if(e.arr)return Ht(e.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},s=[];return f.is(t,xt)&&f.is(t[0],xt)&&(s=Ht(t)),s.length||V(t).replace(pt,function(l,d,m){var v=[],x=d.toLowerCase();if(m.replace(dt,function(w,F){F&&v.push(+F)}),x=="m"&&v.length>2&&(s.push([d][B](v.splice(0,2))),x="l",d=d=="m"?"l":"L"),x=="r")s.push([d][B](v));else for(;v.length>=n[x]&&(s.push([d][B](v.splice(0,n[x]))),n[x]););}),s.toString=f._path2string,e.arr=Ht(s),s},f.parseTransformString=Ot(function(t){if(!t)return null;var e=[];return f.is(t,xt)&&f.is(t[0],xt)&&(e=Ht(t)),e.length||V(t).replace(mt,function(n,s,l){var d=[];st.call(s),l.replace(dt,function(m,v){v&&d.push(+v)}),e.push([s][B](d))}),e.toString=f._path2string,e},this,function(t){if(!t)return t;for(var e=[],n=0;n<t.length;n++){for(var s=[],l=0;l<t[n].length;l++)s.push(t[n][l]);e.push(s)}return e});var oe=function(t){var e=oe.ps=oe.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[nt](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};function ni(t,e,n,s,l){return t*(t*(-3*e+9*n-9*s+3*l)+6*e-12*n+6*s)-3*e+3*n}function he(t,e,n,s,l,d,m,v,x){x==null&&(x=1);for(var w=(x=x>1?1:x<0?0:x)/2,F=[-.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],T=0,S=0;S<12;S++){var z=w*F[S]+w,I=ni(z,t,n,l,m),O=ni(z,e,s,d,v),A=I*I+O*O;T+=P[S]*H.sqrt(A)}return w*T}function Ei(t,e,n,s,l,d,m,v){if(!(K(t,n)<G(l,m)||G(t,n)>K(l,m)||K(e,s)<G(d,v)||G(e,s)>K(d,v))){var x=(t-n)*(d-v)-(e-s)*(l-m);if(x){var w=((t*s-e*n)*(l-m)-(t-n)*(l*v-d*m))/x,F=((t*s-e*n)*(d-v)-(e-s)*(l*v-d*m))/x,P=+w.toFixed(2),T=+F.toFixed(2);if(!(P<+G(t,n).toFixed(2)||P>+K(t,n).toFixed(2)||P<+G(l,m).toFixed(2)||P>+K(l,m).toFixed(2)||T<+G(e,s).toFixed(2)||T>+K(e,s).toFixed(2)||T<+G(d,v).toFixed(2)||T>+K(d,v).toFixed(2)))return{x:w,y:F}}}}function ri(t,e,n){var s=f.bezierBBox(t),l=f.bezierBBox(e);if(!f.isBBoxIntersect(s,l))return n?0:[];for(var d=he.apply(0,t),m=he.apply(0,e),v=K(~~(d/5),1),x=K(~~(m/5),1),w=[],F=[],P={},T=n?0:[],S=0;S<v+1;S++){var z=f.findDotsAtSegment.apply(f,t.concat(S/v));w.push({x:z.x,y:z.y,t:S/v})}for(S=0;S<x+1;S++)z=f.findDotsAtSegment.apply(f,e.concat(S/x)),F.push({x:z.x,y:z.y,t:S/x});for(S=0;S<v;S++)for(var I=0;I<x;I++){var O=w[S],A=w[S+1],J=F[I],D=F[I+1],q=at(A.x-O.x)<.001?"y":"x",j=at(D.x-J.x)<.001?"y":"x",gt=Ei(O.x,O.y,A.x,A.y,J.x,J.y,D.x,D.y);if(gt){if(P[gt.x.toFixed(4)]==gt.y.toFixed(4))continue;P[gt.x.toFixed(4)]=gt.y.toFixed(4);var ut=O.t+at((gt[q]-O[q])/(A[q]-O[q]))*(A.t-O.t),vt=J.t+at((gt[j]-J[j])/(D[j]-J[j]))*(D.t-J.t);ut>=0&&ut<=1.001&&vt>=0&&vt<=1.001&&(n?T++:T.push({x:gt.x,y:gt.y,t1:G(ut,1),t2:G(vt,1)}))}}return T}function Ci(t,e,n){t=f._path2curve(t),e=f._path2curve(e);for(var s,l,d,m,v,x,w,F,P,T,S=n?0:[],z=0,I=t.length;z<I;z++){var O=t[z];if(O[0]=="M")s=v=O[1],l=x=O[2];else{O[0]=="C"?(P=[s,l].concat(O.slice(1)),s=P[6],l=P[7]):(P=[s,l,s,l,v,x,v,x],s=v,l=x);for(var A=0,J=e.length;A<J;A++){var D=e[A];if(D[0]=="M")d=w=D[1],m=F=D[2];else{D[0]=="C"?(T=[d,m].concat(D.slice(1)),d=T[6],m=T[7]):(T=[d,m,d,m,w,F,w,F],d=w,m=F);var q=ri(P,T,n);if(n)S+=q;else{for(var j=0,gt=q.length;j<gt;j++)q[j].segment1=z,q[j].segment2=A,q[j].bez1=P,q[j].bez2=T;S=S.concat(q)}}}}}return S}f.findDotsAtSegment=function(t,e,n,s,l,d,m,v,x){var w=1-x,F=yt(w,3),P=yt(w,2),T=x*x,S=T*x,z=F*t+3*P*x*n+3*w*x*x*l+S*m,I=F*e+3*P*x*s+3*w*x*x*d+S*v,O=t+2*x*(n-t)+T*(l-2*n+t),A=e+2*x*(s-e)+T*(d-2*s+e),J=n+2*x*(l-n)+T*(m-2*l+n),D=s+2*x*(d-s)+T*(v-2*d+s),q=w*t+x*n,j=w*e+x*s,gt=w*l+x*m,ut=w*d+x*v,vt=90-180*H.atan2(O-J,A-D)/Mt;return(O>J||A<D)&&(vt+=180),{x:z,y:I,m:{x:O,y:A},n:{x:J,y:D},start:{x:q,y:j},end:{x:gt,y:ut},alpha:vt}},f.bezierBBox=function(t,e,n,s,l,d,m,v){f.is(t,"array")||(t=[t,e,n,s,l,d,m,v]);var x=Qi.apply(null,t);return{x:x.min.x,y:x.min.y,x2:x.max.x,y2:x.max.y,width:x.max.x-x.min.x,height:x.max.y-x.min.y}},f.isPointInsideBBox=function(t,e,n){return e>=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},f.isBBoxIntersect=function(t,e){var n=f.isPointInsideBBox;return n(e,t.x,t.y)||n(e,t.x2,t.y)||n(e,t.x,t.y2)||n(e,t.x2,t.y2)||n(t,e.x,e.y)||n(t,e.x2,e.y)||n(t,e.x,e.y2)||n(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)},f.pathIntersection=function(t,e){return Ci(t,e)},f.pathIntersectionNumber=function(t,e){return Ci(t,e,1)},f.isPointInsidePath=function(t,e,n){var s=f.pathBBox(t);return f.isPointInsideBBox(s,e,n)&&Ci(t,[["M",e,n],["H",s.x2+10]],1)%2==1},f._removedFactory=function(t){return function(){h("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var Le=f.pathBBox=function(t){var e=oe(t);if(e.bbox)return Xt(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var n,s=0,l=0,d=[],m=[],v=0,x=(t=Mi(t)).length;v<x;v++)if((n=t[v])[0]=="M")s=n[1],l=n[2],d.push(s),m.push(l);else{var w=Qi(s,l,n[1],n[2],n[3],n[4],n[5],n[6]);d=d[B](w.min.x,w.max.x),m=m[B](w.min.y,w.max.y),s=n[5],l=n[6]}var F=G[U](0,d),P=G[U](0,m),T=K[U](0,d),S=K[U](0,m),z=T-F,I=S-P,O={x:F,y:P,x2:T,y2:S,width:z,height:I,cx:F+z/2,cy:P+I/2};return e.bbox=Xt(O),O},Ht=function(t){var e=Xt(t);return e.toString=f._path2string,e},Ir=f._pathToRelative=function(t){var e=oe(t);if(e.rel)return Ht(e.rel);f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t));var n=[],s=0,l=0,d=0,m=0,v=0;t[0][0]=="M"&&(d=s=t[0][1],m=l=t[0][2],v++,n.push(["M",s,l]));for(var x=v,w=t.length;x<w;x++){var F=n[x]=[],P=t[x];if(P[0]!=st.call(P[0]))switch(F[0]=st.call(P[0]),F[0]){case"a":F[1]=P[1],F[2]=P[2],F[3]=P[3],F[4]=P[4],F[5]=P[5],F[6]=+(P[6]-s).toFixed(3),F[7]=+(P[7]-l).toFixed(3);break;case"v":F[1]=+(P[1]-l).toFixed(3);break;case"m":d=P[1],m=P[2];default:for(var T=1,S=P.length;T<S;T++)F[T]=+(P[T]-(T%2?s:l)).toFixed(3)}else{F=n[x]=[],P[0]=="m"&&(d=P[1]+s,m=P[2]+l);for(var z=0,I=P.length;z<I;z++)n[x][z]=P[z]}var O=n[x].length;switch(n[x][0]){case"z":s=d,l=m;break;case"h":s+=+n[x][O-1];break;case"v":l+=+n[x][O-1];break;default:s+=+n[x][O-2],l+=+n[x][O-1]}}return n.toString=f._path2string,e.rel=Ht(n),n},si=f._pathToAbsolute=function(t){var e=oe(t);if(e.abs)return Ht(e.abs);if(f.is(t,xt)&&f.is(t&&t[0],xt)||(t=f.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n=[],s=0,l=0,d=0,m=0,v=0;t[0][0]=="M"&&(d=s=+t[0][1],m=l=+t[0][2],v++,n[0]=["M",s,l]);for(var x,w,F=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",P=v,T=t.length;P<T;P++){if(n.push(x=[]),(w=t[P])[0]!=C.call(w[0]))switch(x[0]=C.call(w[0]),x[0]){case"A":x[1]=w[1],x[2]=w[2],x[3]=w[3],x[4]=w[4],x[5]=w[5],x[6]=+(w[6]+s),x[7]=+(w[7]+l);break;case"V":x[1]=+w[1]+l;break;case"H":x[1]=+w[1]+s;break;case"R":for(var S=[s,l][B](w.slice(1)),z=2,I=S.length;z<I;z++)S[z]=+S[z]+s,S[++z]=+S[z]+l;n.pop(),n=n[B](ii(S,F));break;case"M":d=+w[1]+s,m=+w[2]+l;default:for(z=1,I=w.length;z<I;z++)x[z]=+w[z]+(z%2?s:l)}else if(w[0]=="R")S=[s,l][B](w.slice(1)),n.pop(),n=n[B](ii(S,F)),x=["R"][B](w.slice(-2));else for(var O=0,A=w.length;O<A;O++)x[O]=w[O];switch(x[0]){case"Z":s=d,l=m;break;case"H":s=x[1];break;case"V":l=x[1];break;case"M":d=x[x.length-2],m=x[x.length-1];default:s=x[x.length-2],l=x[x.length-1]}}return n.toString=f._path2string,e.abs=Ht(n),n},oi=function(t,e,n,s){return[t,e,n,s,n,s]},Re=function(t,e,n,s,l,d){return[1/3*t+2/3*n,1/3*e+2/3*s,1/3*l+2/3*n,1/3*d+2/3*s,l,d]},Ki=function(t,e,n,s,l,d,m,v,x,w){var F,P=120*Mt/180,T=Mt/180*(+l||0),S=[],z=Ot(function(rs,ss,nn){return{x:rs*H.cos(nn)-ss*H.sin(nn),y:rs*H.sin(nn)+ss*H.cos(nn)}});if(w)ut=w[0],vt=w[1],j=w[2],gt=w[3];else{t=(F=z(t,e,-T)).x,e=F.y,v=(F=z(v,x,-T)).x,x=F.y;var I=(t-v)/2,O=(e-x)/2,A=I*I/(n*n)+O*O/(s*s);A>1&&(n*=A=H.sqrt(A),s*=A);var J=n*n,D=s*s,q=(d==m?-1:1)*H.sqrt(at((J*D-J*O*O-D*I*I)/(J*O*O+D*I*I))),j=q*n*O/s+(t+v)/2,gt=q*-s*I/n+(e+x)/2,ut=H.asin(((e-gt)/s).toFixed(9)),vt=H.asin(((x-gt)/s).toFixed(9));(ut=t<j?Mt-ut:ut)<0&&(ut=2*Mt+ut),(vt=v<j?Mt-vt:vt)<0&&(vt=2*Mt+vt),m&&ut>vt&&(ut-=2*Mt),!m&&vt>ut&&(vt-=2*Mt)}var li=vt-ut;if(at(li)>P){var Fi=vt,Gt=v,ge=x;vt=ut+P*(m&&vt>ut?1:-1),v=j+n*H.cos(vt),x=gt+s*H.sin(vt),S=Ki(v,x,n,s,l,0,m,Gt,ge,[vt,Fi,j,gt])}li=vt-ut;var ui=H.cos(ut),fi=H.sin(ut),tn=H.cos(vt),be=H.sin(vt),Ge=H.tan(li/4),en=4/3*n*Ge,Jr=4/3*s*Ge,ts=[t,e],hi=[t+en*fi,e-Jr*ui],es=[v+en*be,x-Jr*tn],is=[v,x];if(hi[0]=2*ts[0]-hi[0],hi[1]=2*ts[1]-hi[1],w)return[hi,es,is][B](S);for(var ns=[],Be=0,Bo=(S=[hi,es,is][B](S).join()[et](",")).length;Be<Bo;Be++)ns[Be]=Be%2?z(S[Be-1],S[Be],T).y:z(S[Be],S[Be+1],T).x;return ns},qe=function(t,e,n,s,l,d,m,v,x){var w=1-x;return{x:yt(w,3)*t+3*yt(w,2)*x*n+3*w*x*x*l+yt(x,3)*m,y:yt(w,3)*e+3*yt(w,2)*x*s+3*w*x*x*d+yt(x,3)*v}},Qi=Ot(function(t,e,n,s,l,d,m,v){var x,w=l-2*n+t-(m-2*l+n),F=2*(n-t)-2*(l-n),P=t-n,T=(-F+H.sqrt(F*F-4*w*P))/2/w,S=(-F-H.sqrt(F*F-4*w*P))/2/w,z=[e,v],I=[t,m];return at(T)>"1e12"&&(T=.5),at(S)>"1e12"&&(S=.5),T>0&&T<1&&(x=qe(t,e,n,s,l,d,m,v,T),I.push(x.x),z.push(x.y)),S>0&&S<1&&(x=qe(t,e,n,s,l,d,m,v,S),I.push(x.x),z.push(x.y)),w=d-2*s+e-(v-2*d+s),P=e-s,T=(-(F=2*(s-e)-2*(d-s))+H.sqrt(F*F-4*w*P))/2/w,S=(-F-H.sqrt(F*F-4*w*P))/2/w,at(T)>"1e12"&&(T=.5),at(S)>"1e12"&&(S=.5),T>0&&T<1&&(x=qe(t,e,n,s,l,d,m,v,T),I.push(x.x),z.push(x.y)),S>0&&S<1&&(x=qe(t,e,n,s,l,d,m,v,S),I.push(x.x),z.push(x.y)),{min:{x:G[U](0,I),y:G[U](0,z)},max:{x:K[U](0,I),y:K[U](0,z)}}}),Mi=f._path2curve=Ot(function(t,e){var n=!e&&oe(t);if(!e&&n.curve)return Ht(n.curve);for(var s=si(t),l=e&&si(e),d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},m={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},v=function(q,j,gt){var ut,vt;if(!q)return["C",j.x,j.y,j.x,j.y,j.x,j.y];switch(!(q[0]in{T:1,Q:1})&&(j.qx=j.qy=null),q[0]){case"M":j.X=q[1],j.Y=q[2];break;case"A":q=["C"][B](Ki[U](0,[j.x,j.y][B](q.slice(1))));break;case"S":gt=="C"||gt=="S"?(ut=2*j.x-j.bx,vt=2*j.y-j.by):(ut=j.x,vt=j.y),q=["C",ut,vt][B](q.slice(1));break;case"T":gt=="Q"||gt=="T"?(j.qx=2*j.x-j.qx,j.qy=2*j.y-j.qy):(j.qx=j.x,j.qy=j.y),q=["C"][B](Re(j.x,j.y,j.qx,j.qy,q[1],q[2]));break;case"Q":j.qx=q[1],j.qy=q[2],q=["C"][B](Re(j.x,j.y,q[1],q[2],q[3],q[4]));break;case"L":q=["C"][B](oi(j.x,j.y,q[1],q[2]));break;case"H":q=["C"][B](oi(j.x,j.y,q[1],j.y));break;case"V":q=["C"][B](oi(j.x,j.y,j.x,q[1]));break;case"Z":q=["C"][B](oi(j.x,j.y,j.X,j.Y))}return q},x=function(q,j){if(q[j].length>7){q[j].shift();for(var gt=q[j];gt.length;)F[j]="A",l&&(P[j]="A"),q.splice(j++,0,["C"][B](gt.splice(0,6)));q.splice(j,1),I=K(s.length,l&&l.length||0)}},w=function(q,j,gt,ut,vt){q&&j&&q[vt][0]=="M"&&j[vt][0]!="M"&&(j.splice(vt,0,["M",ut.x,ut.y]),gt.bx=0,gt.by=0,gt.x=q[vt][1],gt.y=q[vt][2],I=K(s.length,l&&l.length||0))},F=[],P=[],T="",S="",z=0,I=K(s.length,l&&l.length||0);z<I;z++){s[z]&&(T=s[z][0]),T!="C"&&(F[z]=T,z&&(S=F[z-1])),s[z]=v(s[z],d,S),F[z]!="A"&&T=="C"&&(F[z]="C"),x(s,z),l&&(l[z]&&(T=l[z][0]),T!="C"&&(P[z]=T,z&&(S=P[z-1])),l[z]=v(l[z],m,S),P[z]!="A"&&T=="C"&&(P[z]="C"),x(l,z)),w(s,l,d,m,z),w(l,s,m,d,z);var O=s[z],A=l&&l[z],J=O.length,D=l&&A.length;d.x=O[J-2],d.y=O[J-1],d.bx=_(O[J-4])||d.x,d.by=_(O[J-3])||d.y,m.bx=l&&(_(A[D-4])||m.x),m.by=l&&(_(A[D-3])||m.y),m.x=l&&A[D-2],m.y=l&&A[D-1]}return l||(n.curve=Ht(s)),l?[s,l]:s},null,Ht),Ji=(f._parseDots=Ot(function(t){for(var e=[],n=0,s=t.length;n<s;n++){var l={},d=t[n].match(/^([^:]*):?([\d\.]*)/);if(l.color=f.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(n=1,s=e.length-1;n<s;n++)if(!e[n].offset){for(var m=_(e[n-1].offset||0),v=0,x=n+1;x<s;x++)if(e[x].offset){v=e[x].offset;break}v||(v=100,x=s);for(var w=((v=_(v))-m)/(x-n+1);n<x;n++)m+=w,e[n].offset=m+"%"}return e}),f._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)}),So=(f._tofront=function(t,e){e.top!==t&&(Ji(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},f._toback=function(t,e){e.bottom!==t&&(Ji(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},f._insertafter=function(t,e,n){Ji(t,n),e==n.top&&(n.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},f._insertbefore=function(t,e,n){Ji(t,n),e==n.bottom&&(n.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},f.toMatrix=function(t,e){var n=Le(t),s={_:{transform:lt},getBBox:function(){return n}};return Dr(s,e),s.matrix}),Dr=(f.transformPath=function(t,e){return zt(t,So(t,e))},f._extractTransform=function(t,e){if(e==null)return t._.transform;e=V(e).replace(/\.{3}|\u2026/g,t._.transform||lt);var n,s,l=f.parseTransformString(e),d=0,m=1,v=1,x=t._,w=new Xe;if(x.transform=l||[],l)for(var F=0,P=l.length;F<P;F++){var T,S,z,I,O,A=l[F],J=A.length,D=V(A[0]).toLowerCase(),q=A[0]!=D,j=q?w.invert():0;D=="t"&&J==3?q?(T=j.x(0,0),S=j.y(0,0),z=j.x(A[1],A[2]),I=j.y(A[1],A[2]),w.translate(z-T,I-S)):w.translate(A[1],A[2]):D=="r"?J==2?(O=O||t.getBBox(1),w.rotate(A[1],O.x+O.width/2,O.y+O.height/2),d+=A[1]):J==4&&(q?(z=j.x(A[2],A[3]),I=j.y(A[2],A[3]),w.rotate(A[1],z,I)):w.rotate(A[1],A[2],A[3]),d+=A[1]):D=="s"?J==2||J==3?(O=O||t.getBBox(1),w.scale(A[1],A[J-1],O.x+O.width/2,O.y+O.height/2),m*=A[1],v*=A[J-1]):J==5&&(q?(z=j.x(A[3],A[4]),I=j.y(A[3],A[4]),w.scale(A[1],A[2],z,I)):w.scale(A[1],A[2],A[3],A[4]),m*=A[1],v*=A[2]):D=="m"&&J==7&&w.add(A[1],A[2],A[3],A[4],A[5],A[6]),x.dirtyT=1,t.matrix=w}t.matrix=w,x.sx=m,x.sy=v,x.deg=d,x.dx=n=w.e,x.dy=s=w.f,m==1&&v==1&&!d&&x.bbox?(x.bbox.x+=+n,x.bbox.y+=+s):x.dirtyT=1}),jr=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]}},Fo=f._equaliseTransform=function(t,e){e=V(e).replace(/\.{3}|\u2026/g,t),t=f.parseTransformString(t)||[],e=f.parseTransformString(e)||[];for(var n,s,l,d,m=K(t.length,e.length),v=[],x=[],w=0;w<m;w++){if(l=t[w]||jr(e[w]),d=e[w]||jr(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(v[w]=[],x[w]=[],n=0,s=K(l.length,d.length);n<s;n++)n in l&&(v[w][n]=l[n]),n in d&&(x[w][n]=d[n])}return{from:v,to:x}};function Xe(t,e,n,s,l,d){t!=null?(this.a=+t,this.b=+e,this.c=+n,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)}f._getContainer=function(t,e,n,s){var l;if((l=s!=null||f.is(t,"object")?t:W.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:n}:{container:1,x:t,y:e,width:n,height:s}},f.pathToRelative=Ir,f._engine={},f.path2curve=Mi,f.matrix=function(t,e,n,s,l,d){return new Xe(t,e,n,s,l,d)},(function(t){function e(s){return s[0]*s[0]+s[1]*s[1]}function n(s){var l=H.sqrt(e(s));s[0]&&(s[0]/=l),s[1]&&(s[1]/=l)}t.add=function(s,l,d,m,v,x){var w,F,P,T,S=[[],[],[]],z=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],I=[[s,d,v],[l,m,x],[0,0,1]];for(s&&s instanceof Xe&&(I=[[s.a,s.c,s.e],[s.b,s.d,s.f],[0,0,1]]),w=0;w<3;w++)for(F=0;F<3;F++){for(T=0,P=0;P<3;P++)T+=z[w][P]*I[P][F];S[w][F]=T}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 Xe(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 Xe(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,m){l==null&&(l=s),(d||m)&&this.add(1,0,0,1,d,m),this.add(s,0,0,l,0,0),(d||m)&&this.add(1,0,0,1,-d,-m)},t.rotate=function(s,l,d){s=f.rad(s),l=l||0,d=d||0;var m=+H.cos(s).toFixed(9),v=+H.sin(s).toFixed(9);this.add(m,v,-v,m,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[V.fromCharCode(97+s)].toFixed(4)},t.toString=function(){return f.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=H.sqrt(e(l[0])),n(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=H.sqrt(e(l[1])),n(l[1]),s.shear/=s.scaley;var d=-l[0][1],m=l[1][1];return m<0?(s.rotate=f.deg(H.acos(m)),d<0&&(s.rotate=360-s.rotate)):s.rotate=f.deg(H.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)]}})(Xe.prototype);for(var Ao=function(){this.returnValue=!1},To=function(){return this.originalEvent.preventDefault()},No=function(){this.cancelBubble=!0},Lo=function(){return this.originalEvent.stopPropagation()},Yr=function(t){var e=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,n=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft;return{x:t.clientX+n,y:t.clientY+e}},Ro=W.doc.addEventListener?function(t,e,n,s){var l=function(m){var v=Yr(m);return n.call(s,m,v.x,v.y)};if(t.addEventListener(e,l,!1),Q&&wt[e]){var d=function(m){for(var v=Yr(m),x=m,w=0,F=m.targetTouches&&m.targetTouches.length;w<F;w++)if(m.targetTouches[w].target==t){(m=m.targetTouches[w]).originalEvent=x,m.preventDefault=To,m.stopPropagation=Lo;break}return n.call(s,m,v.x,v.y)};t.addEventListener(wt[e],d,!1)}return function(){return t.removeEventListener(e,l,!1),Q&&wt[e]&&t.removeEventListener(wt[e],d,!1),!0}}:W.doc.attachEvent?function(t,e,n,s){var l=function(d){d=d||W.win.event;var m=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,v=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft,x=d.clientX+v,w=d.clientY+m;return d.preventDefault=d.preventDefault||Ao,d.stopPropagation=d.stopPropagation||No,n.call(s,d,x,w)};return t.attachEvent("on"+e,l),function(){return t.detachEvent("on"+e,l),!0}}:void 0,ze=[],_n=function(t){for(var e,n=t.clientX,s=t.clientY,l=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,d=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft,m=ze.length;m--;){if(e=ze[m],Q&&t.touches){for(var v,x=t.touches.length;x--;)if((v=t.touches[x]).identifier==e.el._drag.id){n=v.clientX,s=v.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var w,F=e.el.node,P=F.nextSibling,T=F.parentNode,S=F.style.display;W.win.opera&&T.removeChild(F),F.style.display="none",w=e.el.paper.getElementByPoint(n,s),F.style.display=S,W.win.opera&&(P?T.insertBefore(F,P):T.appendChild(F)),w&&h("raphael.drag.over."+e.el.id,e.el,w),n+=d,s+=l,h("raphael.drag.move."+e.el.id,e.move_scope||e.el,n-e.el._drag.x,s-e.el._drag.y,n,s,t)}},bn=function(t){f.unmousemove(_n).unmouseup(bn);for(var e,n=ze.length;n--;)(e=ze[n]).el._drag={},h("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);ze=[]},At=f.el={},qr=rt.length;qr--;)(function(t){f[t]=At[t]=function(e,n){return f.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:Ro(this.shape||this.node||W.doc,t,e,n||this)})),this},f["un"+t]=At["un"+t]=function(e){for(var n=this.events||[],s=n.length;s--;)n[s].name!=t||!f.is(e,"undefined")&&n[s].f!=e||(n[s].unbind(),n.splice(s,1),!n.length&&delete this.events);return this}})(rt[qr]);At.data=function(t,e){var n=kt[this.id]=kt[this.id]||{};if(arguments.length==0)return n;if(arguments.length==1){if(f.is(t,"object")){for(var s in t)t[nt](s)&&this.data(s,t[s]);return this}return h("raphael.data.get."+this.id,this,n[t],t),n[t]}return n[t]=e,h("raphael.data.set."+this.id,this,e,t),this},At.removeData=function(t){return t==null?delete kt[this.id]:kt[this.id]&&delete kt[this.id][t],this},At.getData=function(){return Xt(kt[this.id]||{})},At.hover=function(t,e,n,s){return this.mouseover(t,n).mouseout(e,s||n)},At.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var ai=[];At.drag=function(t,e,n,s,l,d){function m(v){(v.originalEvent||v).preventDefault();var x=v.clientX,w=v.clientY,F=W.doc.documentElement.scrollTop||W.doc.body.scrollTop,P=W.doc.documentElement.scrollLeft||W.doc.body.scrollLeft;if(this._drag.id=v.identifier,Q&&v.touches){for(var T,S=v.touches.length;S--;)if(T=v.touches[S],this._drag.id=T.identifier,T.identifier==this._drag.id){x=T.clientX,w=T.clientY;break}}this._drag.x=x+P,this._drag.y=w+F,!ze.length&&f.mousemove(_n).mouseup(bn),ze.push({el:this,move_scope:s,start_scope:l,end_scope:d}),e&&h.on("raphael.drag.start."+this.id,e),t&&h.on("raphael.drag.move."+this.id,t),n&&h.on("raphael.drag.end."+this.id,n),h("raphael.drag.start."+this.id,l||s||this,this._drag.x,this._drag.y,v)}return this._drag={},ai.push({el:this,start:m}),this.mousedown(m),this},At.onDragOver=function(t){t?h.on("raphael.drag.over."+this.id,t):h.unbind("raphael.drag.over."+this.id)},At.undrag=function(){for(var t=ai.length;t--;)ai[t].el==this&&(this.unmousedown(ai[t].start),ai.splice(t,1),h.unbind("raphael.drag.*."+this.id));!ai.length&&f.unmousemove(_n).unmouseup(bn),ze=[]},L.circle=function(t,e,n){var s=f._engine.circle(this,t||0,e||0,n||0);return this.__set__&&this.__set__.push(s),s},L.rect=function(t,e,n,s,l){var d=f._engine.rect(this,t||0,e||0,n||0,s||0,l||0);return this.__set__&&this.__set__.push(d),d},L.ellipse=function(t,e,n,s){var l=f._engine.ellipse(this,t||0,e||0,n||0,s||0);return this.__set__&&this.__set__.push(l),l},L.path=function(t){t&&!f.is(t,"string")&&!f.is(t[0],xt)&&(t+=lt);var e=f._engine.path(f.format[U](f,arguments),this);return this.__set__&&this.__set__.push(e),e},L.image=function(t,e,n,s,l){var d=f._engine.image(this,t||"about:blank",e||0,n||0,s||0,l||0);return this.__set__&&this.__set__.push(d),d},L.text=function(t,e,n){var s=f._engine.text(this,t||0,e||0,V(n));return this.__set__&&this.__set__.push(s),s},L.set=function(t){!f.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var e=new Si(t);return this.__set__&&this.__set__.push(e),e.paper=this,e.type="set",e},L.setStart=function(t){this.__set__=t||this.set()},L.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},L.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},L.setSize=function(t,e){return f._engine.setSize.call(this,t,e)},L.setViewBox=function(t,e,n,s,l){return f._engine.setViewBox.call(this,t,e,n,s,l)},L.top=L.bottom=null,L.raphael=f;function Xr(){return this.x+ht+this.y+ht+this.width+" × "+this.height}L.getElementByPoint=function(t,e){var n,s,l,d,m,v,x,w=this.canvas,F=W.doc.elementFromPoint(t,e);if(W.win.opera&&F.tagName=="svg"){var P=(s=(n=w).getBoundingClientRect(),l=n.ownerDocument,d=l.body,m=l.documentElement,v=m.clientTop||d.clientTop||0,x=m.clientLeft||d.clientLeft||0,{y:s.top+(W.win.pageYOffset||m.scrollTop||d.scrollTop)-v,x:s.left+(W.win.pageXOffset||m.scrollLeft||d.scrollLeft)-x}),T=w.createSVGRect();T.x=t-P.x,T.y=e-P.y,T.width=T.height=1;var S=w.getIntersectionList(T,null);S.length&&(F=S[S.length-1])}if(!F)return null;for(;F.parentNode&&F!=w.parentNode&&!F.raphael;)F=F.parentNode;return F==this.canvas.parentNode&&(F=w),F=F&&F.raphael?this.getById(F.raphaelid):null},L.getElementsByBBox=function(t){var e=this.set();return this.forEach(function(n){f.isBBoxIntersect(n.getBBox(),t)&&e.push(n)}),e},L.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},L.forEach=function(t,e){for(var n=this.bottom;n;){if(t.call(e,n)===!1)return this;n=n.next}return this},L.getElementsByPoint=function(t,e){var n=this.set();return this.forEach(function(s){s.isPointInside(t,e)&&n.push(s)}),n},At.isPointInside=function(t,e){var n=this.realPath=Rt[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=f.transformPath(n,this.attr("transform"))),f.isPointInsidePath(n,t,e)},At.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=Rt[this.type](this),e.bboxwt=Le(this.realPath),e.bboxwt.toString=Xr,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=Rt[this.type](this)),e.bbox=Le(zt(this.realPath,this.matrix)),e.bbox.toString=Xr,e.dirty=e.dirtyT=0),e.bbox)},At.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},At.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"},n=e.width/2,s=this.paper,l=s.set(),d=this.realPath||Rt[this.type](this);d=this.matrix?zt(d,this.matrix):d;for(var m=1;m<n+1;m++)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/n*m).toFixed(3),opacity:+(e.opacity/n).toFixed(3)}));return l.insertBefore(this).translate(e.offsetx,e.offsety)};var wn=function(t,e,n,s,l,d,m,v,x){return x==null?he(t,e,n,s,l,d,m,v):f.findDotsAtSegment(t,e,n,s,l,d,m,v,(function(w,F,P,T,S,z,I,O,A){if(!(A<0||he(w,F,P,T,S,z,I,O)<A)){var J,D=.5,q=1-D;for(J=he(w,F,P,T,S,z,I,O,q);at(J-A)>.01;)J=he(w,F,P,T,S,z,I,O,q+=(J<A?1:-1)*(D/=2));return q}})(t,e,n,s,l,d,m,v,x))},kn=function(t,e){return function(n,s,l){for(var d,m,v,x,w,F="",P={},T=0,S=0,z=(n=Mi(n)).length;S<z;S++){if((v=n[S])[0]=="M")d=+v[1],m=+v[2];else{if(T+(x=wn(d,m,v[1],v[2],v[3],v[4],v[5],v[6]))>s){if(e&&!P.start){if(F+=["C"+(w=wn(d,m,v[1],v[2],v[3],v[4],v[5],v[6],s-T)).start.x,w.start.y,w.m.x,w.m.y,w.x,w.y],l)return F;P.start=F,F=["M"+w.x,w.y+"C"+w.n.x,w.n.y,w.end.x,w.end.y,v[5],v[6]].join(),T+=x,d=+v[5],m=+v[6];continue}if(!t&&!e)return{x:(w=wn(d,m,v[1],v[2],v[3],v[4],v[5],v[6],s-T)).x,y:w.y,alpha:w.alpha}}T+=x,d=+v[5],m=+v[6]}F+=v.shift()+v}return P.end=F,(w=t?T:e?P:f.findDotsAtSegment(d,m,v[0],v[1],v[2],v[3],v[4],v[5],1)).alpha&&(w={x:w.x,y:w.y,alpha:w.alpha}),w}},Hr=kn(1),Gr=kn(),En=kn(0,1);f.getTotalLength=Hr,f.getPointAtLength=Gr,f.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return En(t,e).end;var s=En(t,n,1);return e?En(s,e).end:s},At.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Hr(t)},At.getPointAtLength=function(t){var e=this.getPath();if(e)return Gr(e,t)},At.getPath=function(){var t,e=f._getPath[this.type];if(this.type!="text"&&this.type!="set")return e&&(t=e(this)),t},At.getSubpath=function(t,e){var n=this.getPath();if(n)return f.getSubpath(n,t,e)};var ee=f.easing_formulas={linear:function(t){return t},"<":function(t){return yt(t,1.7)},">":function(t){return yt(t,.48)},"<>":function(t){var e=.48-t/1.04,n=H.sqrt(.1734+e*e),s=n-e,l=-n-e,d=yt(at(s),1/3)*(s<0?-1:1)+yt(at(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:yt(2,-10*t)*H.sin(2*Mt*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*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 Et=[],Ur=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},Cn=function(){for(var t=+new Date,e=0;e<Et.length;e++){var n=Et[e];if(!n.el.removed&&!n.paused){var s,l,d=t-n.start,m=n.ms,v=n.easing,x=n.from,w=n.diff,F=n.to,P=(n.t,n.el),T={},S={};if(n.initstatus?(d=(n.initstatus*n.anim.top-n.prev)/(n.percent-n.prev)*m,n.status=n.initstatus,delete n.initstatus,n.stop&&Et.splice(e--,1)):n.status=(n.prev+(n.percent-n.prev)*(d/m))/n.anim.top,!(d<0))if(d<m){var z=v(d/m);for(var I in x)if(x[nt](I)){switch(M[I]){case ct:s=+x[I]+z*m*w[I];break;case"colour":s="rgb("+[Mn(c(x[I].r+z*m*w[I].r)),Mn(c(x[I].g+z*m*w[I].g)),Mn(c(x[I].b+z*m*w[I].b))].join(",")+")";break;case"path":s=[];for(var O=0,A=x[I].length;O<A;O++){s[O]=[x[I][O][0]];for(var J=1,D=x[I][O].length;J<D;J++)s[O][J]=+x[I][O][J]+z*m*w[I][O][J];s[O]=s[O].join(ht)}s=s.join(ht);break;case"transform":if(w[I].real)for(s=[],O=0,A=x[I].length;O<A;O++)for(s[O]=[x[I][O][0]],J=1,D=x[I][O].length;J<D;J++)s[O][J]=x[I][O][J]+z*m*w[I][O][J];else{var q=function(gt){return+x[I][gt]+z*m*w[I][gt]};s=[["m",q(0),q(1),q(2),q(3),q(4),q(5)]]}break;case"csv":if(I=="clip-rect")for(s=[],O=4;O--;)s[O]=+x[I][O]+z*m*w[I][O];break;default:var j=[][B](x[I]);for(s=[],O=P.paper.customAttributes[I].length;O--;)s[O]=+j[O]+z*m*w[I][O]}T[I]=s}P.attr(T),(function(gt,ut,vt){setTimeout(function(){h("raphael.anim.frame."+gt,ut,vt)})})(P.id,P,n.anim)}else{if((function(gt,ut,vt){setTimeout(function(){h("raphael.anim.frame."+ut.id,ut,vt),h("raphael.anim.finish."+ut.id,ut,vt),f.is(gt,"function")&>.call(ut)})})(n.callback,P,n.anim),P.attr(F),Et.splice(e--,1),n.repeat>1&&!n.next){for(l in F)F[nt](l)&&(S[l]=n.totalOrigin[l]);n.el.attr(S),$i(n.anim,n.el,n.anim.percents[0],null,n.totalOrigin,n.repeat-1)}n.next&&!n.stop&&$i(n.anim,n.el,n.next,null,n.totalOrigin,n.repeat)}}}Et.length&&Ur(Cn)},Mn=function(t){return t>255?255:t<0?0:t};function zo(t,e,n,s,l,d){var m=3*e,v=3*(s-e)-m,x=1-m-v,w=3*n,F=3*(l-n)-w,P=1-w-F;function T(S){return((x*S+v)*S+m)*S}return(function(S,z){var I=(function(O,A){var J,D,q,j,gt,ut;for(q=O,ut=0;ut<8;ut++){if(j=T(q)-O,at(j)<A)return q;if(at(gt=(3*x*q+2*v)*q+m)<1e-6)break;q-=j/gt}if(D=1,(q=O)<(J=0))return J;if(q>D)return D;for(;J<D;){if(j=T(q),at(j-O)<A)return q;O>j?J=q:D=q,q=(D-J)/2+J}return q})(S,z);return((P*I+F)*I+w)*I})(t,1/(200*d))}function _e(t,e){var n=[],s={};if(this.ms=e,this.times=1,t){for(var l in t)t[nt](l)&&(s[_(l)]=t[l],n.push(_(l)));n.sort(Ct)}this.anim=s,this.top=n[n.length-1],this.percents=n}function $i(t,e,n,s,l,d){n=_(n);var m,v,x,w,F,P,T=t.ms,S={},z={},I={};if(s)for(A=0,J=Et.length;A<J;A++){var O=Et[A];if(O.el.id==e.id&&O.anim==t){O.percent!=n?(Et.splice(A,1),x=1):v=O,e.attr(O.totalOrigin);break}}else s=+z;for(var A=0,J=t.percents.length;A<J;A++){if(t.percents[A]==n||t.percents[A]>s*t.top){n=t.percents[A],F=t.percents[A-1]||0,T=T/t.top*(n-F),w=t.percents[A+1],m=t.anim[n];break}s&&e.attr(t.anim[t.percents[A]])}if(m){if(v)v.initstatus=s,v.start=new Date-v.ms*s;else{for(var D in m)if(m[nt](D)&&(M[nt](D)||e.paper.customAttributes[nt](D)))switch(S[D]=e.attr(D),S[D]==null&&(S[D]=R[D]),z[D]=m[D],M[D]){case ct:I[D]=(z[D]-S[D])/T;break;case"colour":S[D]=f.getRGB(S[D]);var q=f.getRGB(z[D]);I[D]={r:(q.r-S[D].r)/T,g:(q.g-S[D].g)/T,b:(q.b-S[D].b)/T};break;case"path":var j=Mi(S[D],z[D]),gt=j[1];for(S[D]=j[0],I[D]=[],A=0,J=S[D].length;A<J;A++){I[D][A]=[0];for(var ut=1,vt=S[D][A].length;ut<vt;ut++)I[D][A][ut]=(gt[A][ut]-S[D][A][ut])/T}break;case"transform":var li=e._,Fi=Fo(li[D],z[D]);if(Fi)for(S[D]=Fi.from,z[D]=Fi.to,I[D]=[],I[D].real=!0,A=0,J=S[D].length;A<J;A++)for(I[D][A]=[S[D][A][0]],ut=1,vt=S[D][A].length;ut<vt;ut++)I[D][A][ut]=(z[D][A][ut]-S[D][A][ut])/T;else{var Gt=e.matrix||new Xe,ge={_:{transform:li.transform},getBBox:function(){return e.getBBox(1)}};S[D]=[Gt.a,Gt.b,Gt.c,Gt.d,Gt.e,Gt.f],Dr(ge,z[D]),z[D]=ge._.transform,I[D]=[(ge.matrix.a-Gt.a)/T,(ge.matrix.b-Gt.b)/T,(ge.matrix.c-Gt.c)/T,(ge.matrix.d-Gt.d)/T,(ge.matrix.e-Gt.e)/T,(ge.matrix.f-Gt.f)/T]}break;case"csv":var ui=V(m[D])[et](Z),fi=V(S[D])[et](Z);if(D=="clip-rect")for(S[D]=fi,I[D]=[],A=fi.length;A--;)I[D][A]=(ui[A]-S[D][A])/T;z[D]=ui;break;default:for(ui=[][B](m[D]),fi=[][B](S[D]),I[D]=[],A=e.paper.customAttributes[D].length;A--;)I[D][A]=((ui[A]||0)-(fi[A]||0))/T}var tn=m.easing,be=f.easing_formulas[tn];if(!be)if((be=V(tn).match(o))&&be.length==5){var Ge=be;be=function(en){return zo(en,+Ge[1],+Ge[2],+Ge[3],+Ge[4],T)}}else be=bt;if(O={anim:t,percent:n,timestamp:P=m.start||t.start||+new Date,start:P+(t.del||0),status:0,initstatus:s||0,stop:!1,ms:T,easing:be,from:S,diff:I,to:z,el:e,callback:m.callback,prev:F,next:w,repeat:d||t.times,origin:e.attr(),totalOrigin:l},Et.push(O),s&&!v&&!x&&(O.stop=!0,O.start=new Date-T*s,Et.length==1))return Cn();x&&(O.start=new Date-O.ms*s),Et.length==1&&Ur(Cn)}h("raphael.anim.start."+e.id,e,t)}}function Wr(t){for(var e=0;e<Et.length;e++)Et[e].el.paper==t&&Et.splice(e--,1)}At.animateWith=function(t,e,n,s,l,d){if(this.removed)return d&&d.call(this),this;var m=n instanceof _e?n:f.animation(n,s,l,d);$i(m,this,m.percents[0],null,this.attr());for(var v=0,x=Et.length;v<x;v++)if(Et[v].anim==e&&Et[v].el==t){Et[x-1].start=Et[v].start;break}return this},At.onAnimation=function(t){return t?h.on("raphael.anim.frame."+this.id,t):h.unbind("raphael.anim.frame."+this.id),this},_e.prototype.delay=function(t){var e=new _e(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},_e.prototype.repeat=function(t){var e=new _e(this.anim,this.ms);return e.del=this.del,e.times=H.floor(K(t,0))||1,e},f.animation=function(t,e,n,s){if(t instanceof _e)return t;!f.is(n,"function")&&n||(s=s||n||null,n=null),t=Object(t),e=+e||0;var l,d,m={};for(d in t)t[nt](d)&&_(d)!=d&&_(d)+"%"!=d&&(l=!0,m[d]=t[d]);if(l)return n&&(m.easing=n),s&&(m.callback=s),new _e({100:m},e);if(s){var v=0;for(var x in t){var w=E(x);t[nt](x)&&w>v&&(v=w)}!t[v+="%"].callback&&(t[v].callback=s)}return new _e(t,e)},At.animate=function(t,e,n,s){if(this.removed)return s&&s.call(this),this;var l=t instanceof _e?t:f.animation(t,e,n,s);return $i(l,this,l.percents[0],null,this.attr()),this},At.setTime=function(t,e){return t&&e!=null&&this.status(t,G(e,t.ms)/t.ms),this},At.status=function(t,e){var n,s,l=[],d=0;if(e!=null)return $i(t,this,-1,G(e,1)),this;for(n=Et.length;d<n;d++)if((s=Et[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},At.pause=function(t){for(var e=0;e<Et.length;e++)Et[e].el.id!=this.id||t&&Et[e].anim!=t||h("raphael.anim.pause."+this.id,this,Et[e].anim)!==!1&&(Et[e].paused=!0);return this},At.resume=function(t){for(var e=0;e<Et.length;e++)if(Et[e].el.id==this.id&&(!t||Et[e].anim==t)){var n=Et[e];h("raphael.anim.resume."+this.id,this,n.anim)!==!1&&(delete n.paused,this.status(n.anim,n.status))}return this},At.stop=function(t){for(var e=0;e<Et.length;e++)Et[e].el.id!=this.id||t&&Et[e].anim!=t||h("raphael.anim.stop."+this.id,this,Et[e].anim)!==!1&&Et.splice(e--,1);return this},h.on("raphael.remove",Wr),h.on("raphael.clear",Wr),At.toString=function(){return"Raphaël’s object"};var Zr,Kr,He,Qr,Si=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)!t[e]||t[e].constructor!=At.constructor&&t[e].constructor!=Si||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},Pt=Si.prototype;for(var $n in Pt.push=function(){for(var t,e,n=0,s=arguments.length;n<s;n++)!(t=arguments[n])||t.constructor!=At.constructor&&t.constructor!=Si||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},Pt.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Pt.forEach=function(t,e){for(var n=0,s=this.items.length;n<s;n++)if(t.call(e,this.items[n],n)===!1)return this;return this},At)At[nt]($n)&&(Pt[$n]=(function(t){return function(){var e=arguments;return this.forEach(function(n){n[t][U](n,e)})}})($n));return Pt.attr=function(t,e){if(t&&f.is(t,xt)&&f.is(t[0],"object"))for(var n=0,s=t.length;n<s;n++)this.items[n].attr(t[n]);else for(var l=0,d=this.items.length;l<d;l++)this.items[l].attr(t,e);return this},Pt.clear=function(){for(;this.length;)this.pop()},Pt.splice=function(t,e,n){t=t<0?K(this.length+t,0):t,e=K(0,G(this.length-t,e));var s,l=[],d=[],m=[];for(s=2;s<arguments.length;s++)m.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 v=m.length;for(s=0;s<v+l.length;s++)this.items[t+s]=this[t+s]=s<v?m[s]:l[s-v];for(s=this.items.length=this.length-=e-v;this[s];)delete this[s++];return new Si(d)},Pt.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0},Pt.animate=function(t,e,n,s){(f.is(n,"function")||!n)&&(s=n||null);var l,d,m=this.items.length,v=m,x=this;if(!m)return this;s&&(d=function(){!--m&&s.call(x)}),n=f.is(n,"string")?n:d;var w=f.animation(t,e,n,d);for(l=this.items[--v].animate(w);v--;)this.items[v]&&!this.items[v].removed&&this.items[v].animateWith(l,w,w),this.items[v]&&!this.items[v].removed||m--;return this},Pt.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},Pt.getBBox=function(){for(var t=[],e=[],n=[],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),n.push(d.x+d.width),s.push(d.y+d.height)}return{x:t=G[U](0,t),y:e=G[U](0,e),x2:n=K[U](0,n),y2:s=K[U](0,s),width:n-t,height:s-e}},Pt.clone=function(t){t=this.paper.set();for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},Pt.toString=function(){return"Raphaël‘s set"},Pt.glow=function(t){var e=this.paper.set();return this.forEach(function(n,s){var l=n.glow(t);l?.forEach(function(d,m){e.push(d)})}),e},Pt.isPointInside=function(t,e){var n=!1;return this.forEach(function(s){if(s.isPointInside(t,e))return n=!0,!1}),n},f.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},n=t.face["font-family"];for(var s in t.face)t.face[nt](s)&&(e.face[s]=t.face[s]);if(this.fonts[n]?this.fonts[n].push(e):this.fonts[n]=[e],!t.svg){for(var l in e.face["units-per-em"]=E(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[nt](l)){var d=t.glyphs[l];if(e.glyphs[l]={w:d.w,k:{},d:d.d&&"M"+d.d.replace(/[mlcxtrv]/g,function(v){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[v]||"M"})+"z"},d.k)for(var m in d.k)d[nt](m)&&(e.glyphs[l].k[m]=d.k[m])}}return t},L.getFont=function(t,e,n,s){if(s=s||"normal",n=n||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,f.fonts){var l,d=f.fonts[t];if(!d){var m=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,lt)+"(\\s|$)","i");for(var v in f.fonts)if(f.fonts[nt](v)&&m.test(v)){d=f.fonts[v];break}}if(d)for(var x=0,w=d.length;x<w&&((l=d[x]).face["font-weight"]!=e||l.face["font-style"]!=n&&l.face["font-style"]||l.face["font-stretch"]!=s);x++);return l}},L.print=function(t,e,n,s,l,d,m,v){d=d||"middle",m=K(G(m||0,1),-1),v=K(G(v||1,3),1);var x,w=V(n)[et](lt),F=0,P=0,T=lt;if(f.is(s,"string")&&(s=this.getFont(s)),s){x=(l||16)/s.face["units-per-em"];for(var S=s.face.bbox[et](Z),z=+S[0],I=S[3]-S[1],O=0,A=+S[1]+(d=="baseline"?I+ +s.face.descent:I/2),J=0,D=w.length;J<D;J++){if(w[J]==`
|
|
3
|
-
`)
|
|
4
|
-
You are running Raphaël `+this.version};var
|
|
5
|
-
`),R=[],M=0,N=C.length;M<N;M++)E=V("tspan"),M&&V(E,{dy:1.2*_,x:o.x}),E.appendChild(h._g.doc.createTextNode(C[M])),c.appendChild(E),R[M]=E}else for(M=0,N=(R=c.getElementsByTagName("tspan")).length;M<N;M++)M?V(R[M],{dy:1.2*_,x:o.x}):V(R[0],{dy:0});V(c,{x:o.x,y:o.y}),p._.dirty=1;var X=p._getBBox(),it=o.y-(X.y+X.height/2);it&&h.is(it,"finite")&&V(R[0],{dy:it})}},yt=function(p){return p.parentNode&&p.parentNode.tagName.toLowerCase()==="a"?p.parentNode:p},Mt=function(p,u){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=h.matrix(),this.realPath=null,this.paper=u,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!u.bottom&&(u.bottom=this),this.prev=u.top,u.top&&(u.top.next=this),u.top=this,this.next=null},ct=h.el;Mt.prototype=ct,ct.constructor=Mt,h._engine.path=function(p,u){var o=V("path");u.canvas&&u.canvas.appendChild(o);var c=new Mt(o,u);return c.type="path",G(c,{fill:"none",stroke:"#000",path:p}),c},ct.rotate=function(p,u,o){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(u=L(p[1]),o=L(p[2])),p=L(p[0]),o==null&&(u=o),u==null||o==null){var c=this.getBBox(1);u=c.x+c.width/2,o=c.y+c.height/2}return this.transform(this._.transform.concat([["r",p,u,o]])),this},ct.scale=function(p,u,o,c){if(this.removed)return this;if((p=$(p).split(_t)).length-1&&(u=L(p[1]),o=L(p[2]),c=L(p[3])),p=L(p[0]),u==null&&(u=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,u,o,c]])),this},ct.translate=function(p,u){return this.removed?this:((p=$(p).split(_t)).length-1&&(u=L(p[1])),p=L(p[0])||0,u=+u||0,this.transform(this._.transform.concat([["t",p,u]])),this)},ct.transform=function(p){var u=this._;if(p==null)return u.transform;if(h._extractTransform(this,p),this.clip&&V(this.clip,{transform:this.matrix.invert()}),this.pattern&&wt(this),this.node&&V(this.node,{transform:this.matrix}),u.sx!=1||u.sy!=1){var o=this.attrs[f]("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=yt(this.node);if(!this.removed&&p.parentNode){var u=this.paper;for(var o in u.__set__&&u.__set__.exclude(this),Ft.unbind("raphael.*.*."+this.id),this.gradient&&u.defs.removeChild(this.gradient),h._tear(this,u),p.parentNode.removeChild(p),this.removeData(),this)this[o]=typeof this[o]=="function"?h._removedFactory(o):null;this.removed=!0}},ct._getBBox=function(){if(this.node.style.display=="none"){this.show();var p=!0}var u,o=!1;this.paper.canvas.parentElement?u=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(u=this.paper.canvas.parentNode.style),u&&u.display=="none"&&(o=!0,u.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&&(u.display="none")}return p&&this.hide(),c},ct.attr=function(p,u){if(this.removed)return this;if(p==null){var o={};for(var c in this.attrs)this.attrs[f](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(u==null&&h.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(_t),E={},C=0,R=_.length;C<R;C++)(p=_[C])in this.attrs?E[p]=this.attrs[p]:h.is(this.paper.customAttributes[p],"function")?E[p]=this.paper.customAttributes[p].def:E[p]=h._availableAttrs[p];return R-1?E:E[_[0]]}if(u==null&&h.is(p,"array")){for(E={},C=0,R=p.length;C<R;C++)E[p[C]]=this.attr(p[C]);return E}if(u!=null){var M={};M[p]=u}else p!=null&&h.is(p,"object")&&(M=p);for(var N in M)Ft("raphael.attr."+N+"."+this.id,this,M[N]);for(N in this.paper.customAttributes)if(this.paper.customAttributes[f](N)&&M[f](N)&&h.is(this.paper.customAttributes[N],"function")){var X=this.paper.customAttributes[N].apply(this,[].concat(M[N]));for(var it in this.attrs[N]=M[N],X)X[f](it)&&(M[it]=X[it])}return G(this,M),this},ct.toFront=function(){if(this.removed)return this;var p=yt(this.node);p.parentNode.appendChild(p);var u=this.paper;return u.top!=this&&h._tofront(this,u),this},ct.toBack=function(){if(this.removed)return this;var p=yt(this.node),u=p.parentNode;return u.insertBefore(p,u.firstChild),h._toback(this,this.paper),this.paper,this},ct.insertAfter=function(p){if(this.removed||!p)return this;var u=yt(this.node),o=yt(p.node||p[p.length-1].node);return o.nextSibling?o.parentNode.insertBefore(u,o.nextSibling):o.parentNode.appendChild(u),h._insertafter(this,p,this.paper),this},ct.insertBefore=function(p){if(this.removed||!p)return this;var u=yt(this.node),o=yt(p.node||p[0].node);return o.parentNode.insertBefore(u,o),h._insertbefore(this,p,this.paper),this},ct.blur=function(p){var u=this;if(+p!=0){var o=V("filter"),c=V("feGaussianBlur");u.attrs.blur=p,o.id=h.createUUID(),V(c,{stdDeviation:+p||1.5}),o.appendChild(c),u.paper.defs.appendChild(o),u._blur=o,V(u.node,{filter:"url(#"+o.id+")"})}else u._blur&&(u._blur.parentNode.removeChild(u._blur),delete u._blur,delete u.attrs.blur),u.node.removeAttribute("filter");return u},h._engine.circle=function(p,u,o,c){var _=V("circle");p.canvas&&p.canvas.appendChild(_);var E=new Mt(_,p);return E.attrs={cx:u,cy:o,r:c,fill:"none",stroke:"#000"},E.type="circle",V(_,E.attrs),E},h._engine.rect=function(p,u,o,c,_,E){var C=V("rect");p.canvas&&p.canvas.appendChild(C);var R=new Mt(C,p);return R.attrs={x:u,y:o,width:c,height:_,rx:E||0,ry:E||0,fill:"none",stroke:"#000"},R.type="rect",V(C,R.attrs),R},h._engine.ellipse=function(p,u,o,c,_){var E=V("ellipse");p.canvas&&p.canvas.appendChild(E);var C=new Mt(E,p);return C.attrs={cx:u,cy:o,rx:c,ry:_,fill:"none",stroke:"#000"},C.type="ellipse",V(E,C.attrs),C},h._engine.image=function(p,u,o,c,_,E){var C=V("image");V(C,{x:o,y:c,width:_,height:E,preserveAspectRatio:"none"}),C.setAttributeNS(Q,"href",u),p.canvas&&p.canvas.appendChild(C);var R=new Mt(C,p);return R.attrs={x:o,y:c,width:_,height:E,src:u},R.type="image",R},h._engine.text=function(p,u,o,c){var _=V("text");p.canvas&&p.canvas.appendChild(_);var E=new Mt(_,p);return E.attrs={x:u,y:o,"text-anchor":"middle",text:c,"font-family":h._availableAttrs["font-family"],"font-size":h._availableAttrs["font-size"],stroke:"none",fill:"#000"},E.type="text",G(E,E.attrs),E},h._engine.setSize=function(p,u){return this.width=p||this.width,this.height=u||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},h._engine.create=function(){var p=h._getContainer.apply(0,arguments),u=p&&p.container;if(!u)throw new Error("SVG container not found.");var o,c=p.x,_=p.y,E=p.width,C=p.height,R=V("svg"),M="overflow:hidden;";return c=c||0,_=_||0,V(R,{height:C=C||342,version:1.1,width:E=E||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),u==1?(R.style.cssText=M+"position:absolute;left:"+c+"px;top:"+_+"px",h._g.doc.body.appendChild(R),o=1):(R.style.cssText=M+"position:relative",u.firstChild?u.insertBefore(R,u.firstChild):u.appendChild(R)),(u=new h._Paper).width=E,u.height=C,u.canvas=R,u.clear(),u._left=u._top=0,o&&(u.renderfix=function(){}),u.renderfix(),u},h._engine.setViewBox=function(p,u,o,c,_){Ft("raphael.setViewBox",this,this._viewBox,[p,u,o,c,_]);var E,C,R=this.getSize(),M=tt(o/R.width,c/R.height),N=this.top,X=_?"xMidYMid meet":"xMinYMin";for(p==null?(this._vbSize&&(M=1),delete this._vbSize,E="0 0 "+this.width+B+this.height):(this._vbSize=M,E=p+B+u+B+o+B+c),V(this.canvas,{viewBox:E,preserveAspectRatio:X});M&&N;)C="stroke-width"in N.attrs?N.attrs["stroke-width"]:1,N.attr({"stroke-width":C}),N._.dirty=1,N._.dirtyT=1,N=N.prev;return this._viewBox=[p,u,o,c,!!_],this},h.prototype.renderfix=function(){var p,u=this.canvas,o=u.style;try{p=u.getScreenCTM()||u.createSVGMatrix()}catch{p=u.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"))},h.prototype.clear=function(){h.eve("raphael.clear",this);for(var p=this.canvas;p.firstChild;)p.removeChild(p.firstChild);this.bottom=this.top=null,(this.desc=V("desc")).appendChild(h._g.doc.createTextNode("Created with Raphaël "+h.version)),p.appendChild(this.desc),p.appendChild(this.defs=V("defs"))},h.prototype.remove=function(){for(var p in Ft("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[p]=typeof this[p]=="function"?h._removedFactory(p):null};var xt=h.st;for(var Jt in ct)ct[f](Jt)&&!xt[f](Jt)&&(xt[Jt]=(function(p){return function(){var u=arguments;return this.forEach(function(o){o[p].apply(o,u)})}})(Jt))}}).apply(g,y))===void 0||(a.exports=k)},function(a,g,b){var y,k;y=[b(0)],(k=(function(h){if(!h||h.vml){var f="hasOwnProperty",$=String,L=parseFloat,Z=Math,Y=Z.round,tt=Z.max,nt=Z.min,W=Z.abs,_t=/[, ]+/,Ft=h.eve,U=" ",B="",Q={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},lt=/([clmz]),?([^clmz]*)/gi,ht=/ progid:\S+Blur\([^\)]+\)/g,V=/-?[^,\s-]+/g,et="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",rt=21600,wt={path:1,rect:1,image:1},st={circle:1,ellipse:1},H=function(u,o,c){var _=h.matrix();return _.rotate(-u,.5,.5),{dx:_.x(o,c),dy:_.y(o,c)}},K=function(u,o,c,_,E,C){var R=u._,M=u.matrix,N=R.fillpos,X=u.node,it=X.style,pt=1,mt="",dt=rt/o,kt=rt/c;if(it.visibility="hidden",o&&c){if(X.coordsize=W(dt)+U+W(kt),it.rotation=C*(o*c<0?-1:1),C){var Ct=H(C,_,E);_=Ct.dx,E=Ct.dy}if(o<0&&(mt+="x"),c<0&&(mt+=" y")&&(pt=-1),it.flip=mt,X.coordorigin=_*-dt+U+E*-kt,N||R.fillsize){var bt=X.getElementsByTagName("fill");bt=bt&&bt[0],X.removeChild(bt),N&&(Ct=H(C,M.x(N[0],N[1]),M.y(N[0],N[1])),bt.position=Ct.dx*pt+U+Ct.dy*pt),R.fillsize&&(bt.size=R.fillsize[0]*W(o)+U+R.fillsize[1]*W(c)),X.appendChild(bt)}it.visibility="visible"}};h.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
|
|
6
|
-
You are running Raphaël `+this.version};var G,at=function(u,o,c){for(var _=$(o).toLowerCase().split("-"),E=c?"end":"start",C=_.length,R="classic",M="medium",N="medium";C--;)switch(_[C]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":R=_[C];break;case"wide":case"narrow":N=_[C];break;case"long":case"short":M=_[C]}var X=u.node.getElementsByTagName("stroke")[0];X[E+"arrow"]=R,X[E+"arrowlength"]=M,X[E+"arrowwidth"]=N},yt=function(u,o){u.attrs=u.attrs||{};var c=u.node,_=u.attrs,E=c.style,C=wt[u.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),R=st[u.type]&&(_.cx!=o.cx||_.cy!=o.cy||_.r!=o.r||_.rx!=o.rx||_.ry!=o.ry),M=u;for(var N in o)o[f](N)&&(_[N]=o[N]);if(C&&(_.path=h._getPath[u.type](u),u._.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&&u.blur(o.blur),(o.path&&u.type=="path"||C)&&(c.path=(function(Ot){var Ne=/[ahqstv]/gi,ii=h._pathToAbsolute;if($(Ot).match(Ne)&&(ii=h._path2curve),Ne=/[clmz]/g,ii==h._pathToAbsolute&&!$(Ot).match(Ne)){var oe=$(Ot).replace(lt,function(Ir,si,oi){var Re=[],Ki=si.toLowerCase()=="m",qe=Q[si];return oi.replace(V,function(Qi){Ki&&Re.length==2&&(qe+=Re+Q[si=="m"?"l":"L"],Re=[]),Re.push(Y(Qi*rt))}),qe+Re});return oe}var ni,he,Ei=ii(Ot);oe=[];for(var ri=0,Ci=Ei.length;ri<Ci;ri++){ni=Ei[ri],(he=Ei[ri][0].toLowerCase())=="z"&&(he="x");for(var Le=1,Ht=ni.length;Le<Ht;Le++)he+=Y(ni[Le]*rt)+(Le!=Ht-1?",":B);oe.push(he)}return oe.join(U)})(~$(_.path).toLowerCase().indexOf("r")?h._pathToAbsolute(_.path):_.path),u._.dirty=1,u.type=="image"&&(u._.fillpos=[_.x,_.y],u._.fillsize=[_.width,_.height],K(u,1,1,0,0,0))),"transform"in o&&u.transform(o.transform),R){var X=+_.cx,it=+_.cy,pt=+_.rx||+_.r||0,mt=+_.ry||+_.r||0;c.path=h.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",Y((X-pt)*rt),Y((it-mt)*rt),Y((X+pt)*rt),Y((it+mt)*rt),Y(X*rt)),u._.dirty=1}if("clip-rect"in o){var dt=$(o["clip-rect"]).split(_t);if(dt.length==4){dt[2]=+dt[2]+ +dt[0],dt[3]=+dt[3]+ +dt[1];var kt=c.clipRect||h._g.doc.createElement("div"),Ct=kt.style;Ct.clip=h.format("rect({1}px {2}px {3}px {0}px)",dt),c.clipRect||(Ct.position="absolute",Ct.top=0,Ct.left=0,Ct.width=u.paper.width+"px",Ct.height=u.paper.height+"px",c.parentNode.insertBefore(kt,c),kt.appendChild(c),c.clipRect=kt)}o["clip-rect"]||c.clipRect&&(c.clipRect.style.clip="auto")}if(u.textpath){var bt=u.textpath.style;o.font&&(bt.font=o.font),o["font-family"]&&(bt.fontFamily='"'+o["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,B)+'"'),o["font-size"]&&(bt.fontSize=o["font-size"]),o["font-weight"]&&(bt.fontWeight=o["font-weight"]),o["font-style"]&&(bt.fontStyle=o["font-style"])}if("arrow-start"in o&&at(M,o["arrow-start"]),"arrow-end"in o&&at(M,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 ot=c.getElementsByTagName("fill");if(!(ot=ot&&ot[0])&&(ot=G("fill")),u.type=="image"&&o.src&&(ot.src=o.src),o.fill&&(ot.on=!0),ot.on!=null&&o.fill!="none"&&o.fill!==null||(ot.on=!1),ot.on&&o.fill){var $t=$(o.fill).match(h._ISURL);if($t){ot.parentNode==c&&c.removeChild(ot),ot.rotate=!0,ot.src=$t[1],ot.type="tile";var Rt=u.getBBox(1);ot.position=Rt.x+U+Rt.y,u._.fillpos=[Rt.x,Rt.y],h._preload($t[1],function(){u._.fillsize=[this.offsetWidth,this.offsetHeight]})}else ot.color=h.getRGB(o.fill).hex,ot.src=B,ot.type="solid",h.getRGB(o.fill).error&&(M.type in{circle:1,ellipse:1}||$(o.fill).charAt()!="r")&&Mt(M,o.fill,ot)&&(_.fill="none",_.gradient=o.fill,ot.rotate=!1)}if("fill-opacity"in o||"opacity"in o){var zt=((+_["fill-opacity"]+1||2)-1)*((+_.opacity+1||2)-1)*((+h.getRGB(o.fill).o+1||2)-1);zt=nt(tt(zt,0),1),ot.opacity=zt,ot.src&&(ot.color="none")}c.appendChild(ot);var Tt=c.getElementsByTagName("stroke")&&c.getElementsByTagName("stroke")[0],te=!1;!Tt&&(te=Tt=G("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"])&&(Tt.on=!0),(o.stroke=="none"||o.stroke===null||Tt.on==null||o.stroke==0||o["stroke-width"]==0)&&(Tt.on=!1);var Xt=h.getRGB(o.stroke);Tt.on&&o.stroke&&(Tt.color=Xt.hex),zt=((+_["stroke-opacity"]+1||2)-1)*((+_.opacity+1||2)-1)*((+Xt.o+1||2)-1);var Ae=.75*(L(o["stroke-width"])||1);if(zt=nt(tt(zt,0),1),o["stroke-width"]==null&&(Ae=_["stroke-width"]),o["stroke-width"]&&(Tt.weight=Ae),Ae&&Ae<1&&(zt*=Ae)&&(Tt.weight=1),Tt.opacity=zt,o["stroke-linejoin"]&&(Tt.joinstyle=o["stroke-linejoin"]||"miter"),Tt.miterlimit=o["stroke-miterlimit"]||8,o["stroke-linecap"]&&(Tt.endcap=o["stroke-linecap"]=="butt"?"flat":o["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in o){var wi={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Tt.dashstyle=wi[f](o["stroke-dasharray"])?wi[o["stroke-dasharray"]]:B}te&&c.appendChild(Tt)}if(M.type=="text"){M.paper.canvas.style.display=B;var Te=M.paper.span,Je=_.font&&_.font.match(/\d+(?:\.\d*)?(?=px)/);E=Te.style,_.font&&(E.font=_.font),_["font-family"]&&(E.fontFamily=_["font-family"]),_["font-weight"]&&(E.fontWeight=_["font-weight"]),_["font-style"]&&(E.fontStyle=_["font-style"]),Je=L(_["font-size"]||Je&&Je[0])||10,E.fontSize=100*Je+"px",M.textpath.string&&(Te.innerHTML=$(M.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));var ti=Te.getBoundingClientRect();M.W=_.w=(ti.right-ti.left)/100,M.H=_.h=(ti.bottom-ti.top)/100,M.X=_.x,M.Y=_.y+M.H/2,("x"in o||"y"in o)&&(M.path.v=h.format("m{0},{1}l{2},{1}",Y(_.x*rt),Y(_.y*rt),Y(_.x*rt)+1));for(var ki=["x","y","text","font","font-family","font-weight","font-style","font-size"],ei=0,Zi=ki.length;ei<Zi;ei++)if(ki[ei]in o){M._.dirty=1;break}switch(_["text-anchor"]){case"start":M.textpath.style["v-text-align"]="left",M.bbx=M.W/2;break;case"end":M.textpath.style["v-text-align"]="right",M.bbx=-M.W/2;break;default:M.textpath.style["v-text-align"]="center",M.bbx=0}M.textpath.style["v-text-kern"]=!0}},Mt=function(u,o,c){u.attrs=u.attrs||{},u.attrs;var _=Math.pow,E="linear",C=".5 .5";if(u.attrs.gradient=o,o=(o=$(o).replace(h._radial_gradient,function(pt,mt,dt){return E="radial",mt&&dt&&(mt=L(mt),dt=L(dt),_(mt-.5,2)+_(dt-.5,2)>.25&&(dt=Z.sqrt(.25-_(mt-.5,2))*(2*(dt>.5)-1)+.5),C=mt+U+dt),B})).split(/\s*\-\s*/),E=="linear"){var R=o.shift();if(R=-L(R),isNaN(R))return null}var M=h._parseDots(o);if(!M)return null;if(u=u.shape||u.node,M.length){u.removeChild(c),c.on=!0,c.method="none",c.color=M[0].color,c.color2=M[M.length-1].color;for(var N=[],X=0,it=M.length;X<it;X++)M[X].offset&&N.push(M[X].offset+U+M[X].color);c.colors=N.length?N.join():"0% "+c.color,E=="radial"?(c.type="gradientTitle",c.focus="100%",c.focussize="0 0",c.focusposition=C,c.angle=0):(c.type="gradient",c.angle=(270-R)%360),u.appendChild(c)}return 1},ct=function(u,o){this[0]=this.node=u,u.raphael=!0,this.id=h._oid++,u.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=o,this.matrix=h.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},xt=h.el;ct.prototype=xt,xt.constructor=ct,xt.transform=function(u){if(u==null)return this._.transform;var o,c=this.paper._viewBoxShift,_=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:B;c&&(o=u=$(u).replace(/\.{3}|\u2026/g,this._.transform||B)),h._extractTransform(this,_+u);var E,C=this.matrix.clone(),R=this.skew,M=this.node,N=~$(this.attrs.fill).indexOf("-"),X=!$(this.attrs.fill).indexOf("url(");if(C.translate(1,1),X||N||this.type=="image")if(R.matrix="1 0 0 1",R.offset="0 0",E=C.split(),N&&E.noRotation||!E.isSimple){M.style.filter=C.toFilter();var it=this.getBBox(),pt=this.getBBox(1),mt=it.x-pt.x,dt=it.y-pt.y;M.coordorigin=mt*-rt+U+dt*-rt,K(this,1,1,mt,dt,0)}else M.style.filter=B,K(this,E.scalex,E.scaley,E.dx,E.dy,E.rotate);else M.style.filter=B,R.matrix=$(C),R.offset=C.offset();return o!==null&&(this._.transform=o,h._extractTransform(this,o)),this},xt.rotate=function(u,o,c){if(this.removed)return this;if(u!=null){if((u=$(u).split(_t)).length-1&&(o=L(u[1]),c=L(u[2])),u=L(u[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",u,o,c]])),this}},xt.translate=function(u,o){return this.removed?this:((u=$(u).split(_t)).length-1&&(o=L(u[1])),u=L(u[0])||0,o=+o||0,this._.bbox&&(this._.bbox.x+=u,this._.bbox.y+=o),this.transform(this._.transform.concat([["t",u,o]])),this)},xt.scale=function(u,o,c,_){if(this.removed)return this;if((u=$(u).split(_t)).length-1&&(o=L(u[1]),c=L(u[2]),_=L(u[3]),isNaN(c)&&(c=null),isNaN(_)&&(_=null)),u=L(u[0]),o==null&&(o=u),_==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",u,o,c,_]])),this._.dirtyT=1,this},xt.hide=function(){return!this.removed&&(this.node.style.display="none"),this},xt.show=function(){return!this.removed&&(this.node.style.display=B),this},xt.auxGetBBox=h.el.getBBox,xt.getBBox=function(){var u=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var o={},c=1/this.paper._viewBoxShift.scale;return o.x=u.x-this.paper._viewBoxShift.dx,o.x*=c,o.y=u.y-this.paper._viewBoxShift.dy,o.y*=c,o.width=u.width*c,o.height=u.height*c,o.x2=o.x+o.width,o.y2=o.y+o.height,o}return u},xt._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}},xt.remove=function(){if(!this.removed&&this.node.parentNode){for(var u in this.paper.__set__&&this.paper.__set__.exclude(this),h.eve.unbind("raphael.*.*."+this.id),h._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[u]=typeof this[u]=="function"?h._removedFactory(u):null;this.removed=!0}},xt.attr=function(u,o){if(this.removed)return this;if(u==null){var c={};for(var _ in this.attrs)this.attrs[f](_)&&(c[_]=this.attrs[_]);return c.gradient&&c.fill=="none"&&(c.fill=c.gradient)&&delete c.gradient,c.transform=this._.transform,c}if(o==null&&h.is(u,"string")){if(u=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var E=u.split(_t),C={},R=0,M=E.length;R<M;R++)(u=E[R])in this.attrs?C[u]=this.attrs[u]:h.is(this.paper.customAttributes[u],"function")?C[u]=this.paper.customAttributes[u].def:C[u]=h._availableAttrs[u];return M-1?C:C[E[0]]}if(this.attrs&&o==null&&h.is(u,"array")){for(C={},R=0,M=u.length;R<M;R++)C[u[R]]=this.attr(u[R]);return C}var N;for(var X in o!=null&&((N={})[u]=o),o==null&&h.is(u,"object")&&(N=u),N)Ft("raphael.attr."+X+"."+this.id,this,N[X]);if(N){for(X in this.paper.customAttributes)if(this.paper.customAttributes[f](X)&&N[f](X)&&h.is(this.paper.customAttributes[X],"function")){var it=this.paper.customAttributes[X].apply(this,[].concat(N[X]));for(var pt in this.attrs[X]=N[X],it)it[f](pt)&&(N[pt]=it[pt])}N.text&&this.type=="text"&&(this.textpath.string=N.text),yt(this,N)}return this},xt.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&h._tofront(this,this.paper),this},xt.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),h._toback(this,this.paper)),this)},xt.insertAfter=function(u){return this.removed?this:(u.constructor==h.st.constructor&&(u=u[u.length-1]),u.node.nextSibling?u.node.parentNode.insertBefore(this.node,u.node.nextSibling):u.node.parentNode.appendChild(this.node),h._insertafter(this,u,this.paper),this)},xt.insertBefore=function(u){return this.removed?this:(u.constructor==h.st.constructor&&(u=u[0]),u.node.parentNode.insertBefore(this.node,u.node),h._insertbefore(this,u,this.paper),this)},xt.blur=function(u){var o=this.node.runtimeStyle,c=o.filter;return c=c.replace(ht,B),+u!=0?(this.attrs.blur=u,o.filter=c+U+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+u||1.5)+")",o.margin=h.format("-{0}px 0 0 -{0}px",Y(+u||1.5))):(o.filter=c,o.margin=0,delete this.attrs.blur),this},h._engine.path=function(u,o){var c=G("shape");c.style.cssText=et,c.coordsize=rt+U+rt,c.coordorigin=o.coordorigin;var _=new ct(c,o),E={fill:"none",stroke:"#000"};u&&(E.path=u),_.type="path",_.path=[],_.Path=B,yt(_,E),o.canvas&&o.canvas.appendChild(c);var C=G("skew");return C.on=!0,c.appendChild(C),_.skew=C,_.transform(B),_},h._engine.rect=function(u,o,c,_,E,C){var R=h._rectPath(o,c,_,E,C),M=u.path(R),N=M.attrs;return M.X=N.x=o,M.Y=N.y=c,M.W=N.width=_,M.H=N.height=E,N.r=C,N.path=R,M.type="rect",M},h._engine.ellipse=function(u,o,c,_,E){var C=u.path();return C.attrs,C.X=o-_,C.Y=c-E,C.W=2*_,C.H=2*E,C.type="ellipse",yt(C,{cx:o,cy:c,rx:_,ry:E}),C},h._engine.circle=function(u,o,c,_){var E=u.path();return E.attrs,E.X=o-_,E.Y=c-_,E.W=E.H=2*_,E.type="circle",yt(E,{cx:o,cy:c,r:_}),E},h._engine.image=function(u,o,c,_,E,C){var R=h._rectPath(c,_,E,C),M=u.path(R).attr({stroke:"none"}),N=M.attrs,X=M.node,it=X.getElementsByTagName("fill")[0];return N.src=o,M.X=N.x=c,M.Y=N.y=_,M.W=N.width=E,M.H=N.height=C,N.path=R,M.type="image",it.parentNode==X&&X.removeChild(it),it.rotate=!0,it.src=o,it.type="tile",M._.fillpos=[c,_],M._.fillsize=[E,C],X.appendChild(it),K(M,1,1,0,0,0),M},h._engine.text=function(u,o,c,_){var E=G("shape"),C=G("path"),R=G("textpath");o=o||0,c=c||0,_=_||"",C.v=h.format("m{0},{1}l{2},{1}",Y(o*rt),Y(c*rt),Y(o*rt)+1),C.textpathok=!0,R.string=$(_),R.on=!0,E.style.cssText=et,E.coordsize=rt+U+rt,E.coordorigin="0 0";var M=new ct(E,u),N={fill:"#000",stroke:"none",font:h._availableAttrs.font,text:_};M.shape=E,M.path=C,M.textpath=R,M.type="text",M.attrs.text=$(_),M.attrs.x=o,M.attrs.y=c,M.attrs.w=1,M.attrs.h=1,yt(M,N),E.appendChild(R),E.appendChild(C),u.canvas.appendChild(E);var X=G("skew");return X.on=!0,E.appendChild(X),M.skew=X,M.transform(B),M},h._engine.setSize=function(u,o){var c=this.canvas.style;return this.width=u,this.height=o,u==+u&&(u+="px"),o==+o&&(o+="px"),c.width=u,c.height=o,c.clip="rect(0 "+u+" "+o+" 0)",this._viewBox&&h._engine.setViewBox.apply(this,this._viewBox),this},h._engine.setViewBox=function(u,o,c,_,E){h.eve("raphael.setViewBox",this,this._viewBox,[u,o,c,_,E]);var C,R,M=this.getSize(),N=M.width,X=M.height;return E&&(c*(C=X/_)<N&&(u-=(N-c*C)/2/C),_*(R=N/c)<X&&(o-=(X-_*R)/2/R)),this._viewBox=[u,o,c,_,!!E],this._viewBoxShift={dx:-u,dy:-o,scale:M},this.forEach(function(it){it.transform("...")}),this},h._engine.initWin=function(u){var o=u.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"),G=function(c){return o.createElement("<rvml:"+c+' class="rvml">')}}catch{G=function(_){return o.createElement("<"+_+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},h._engine.initWin(h._g.win),h._engine.create=function(){var u=h._getContainer.apply(0,arguments),o=u.container,c=u.height,_=u.width,E=u.x,C=u.y;if(!o)throw new Error("VML container not found.");var R=new h._Paper,M=R.canvas=h._g.doc.createElement("div"),N=M.style;return E=E||0,C=C||0,_=_||512,c=c||342,R.width=_,R.height=c,_==+_&&(_+="px"),c==+c&&(c+="px"),R.coordsize=216e5+U+216e5,R.coordorigin="0 0",R.span=h._g.doc.createElement("span"),R.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",M.appendChild(R.span),N.cssText=h.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?(h._g.doc.body.appendChild(M),N.left=E+"px",N.top=C+"px",N.position="absolute"):o.firstChild?o.insertBefore(M,o.firstChild):o.appendChild(M),R.renderfix=function(){},R},h.prototype.clear=function(){h.eve("raphael.clear",this),this.canvas.innerHTML=B,this.span=h._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},h.prototype.remove=function(){for(var u in h.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[u]=typeof this[u]=="function"?h._removedFactory(u):null;return!0};var Jt=h.st;for(var p in xt)xt[f](p)&&!Jt[f](p)&&(Jt[p]=(function(u){return function(){var o=arguments;return this.forEach(function(c){c[u].apply(c,o)})}})(p))}}).apply(g,y))===void 0||(a.exports=k)}])})})(xn)),xn.exports}var wo=bo();const Wi=_o(wo);class ko{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=Eo({}),delete i.defaults),this.config={element:i.element,classId:Co(),value:ft("value",i,a,0,"float"),defaults:ft("defaults",i,a,0,!1),parentNode:ft("parentNode",i,a,null),width:ft("width",i,a,null),height:ft("height",i,a,null),valueFontColor:ft("valueFontColor",i,a,"#010101"),valueFontFamily:ft("valueFontFamily",i,a,"Arial"),symbol:ft("symbol",i,a,""),min:ft("min",i,a,0,"float"),minTxt:ft("minTxt",i,a,!1),max:ft("max",i,a,100,"float"),maxTxt:ft("maxTxt",i,a,!1),reverse:ft("reverse",i,a,!1),humanFriendlyDecimal:ft("humanFriendlyDecimal",i,a,0),textRenderer:ft("textRenderer",i,a,null),onAnimationEnd:ft("onAnimationEnd",i,a,null),gaugeWidthScale:ft("gaugeWidthScale",i,a,1),gaugeColor:ft("gaugeColor",i,a,"#edebeb"),label:ft("label",i,a,""),labelFontColor:ft("labelFontColor",i,a,"#b3b3b3"),labelFontFamily:ft("labelFontFamily",i,a,"Arial"),shadowOpacity:ft("shadowOpacity",i,a,.2),shadowSize:ft("shadowSize",i,a,5),shadowVerticalOffset:ft("shadowVerticalOffset",i,a,3),levelColors:ft("levelColors",i,a,["#a9d70b","#f9c802","#ff0000"],"array"),startAnimationTime:ft("startAnimationTime",i,a,700),startAnimationType:ft("startAnimationType",i,a,">"),refreshAnimationTime:ft("refreshAnimationTime",i,a,700),refreshAnimationType:ft("refreshAnimationType",i,a,">"),donutStartAngle:ft("donutStartAngle",i,a,90),valueMinFontSize:ft("valueMinFontSize",i,a,16),labelMinFontSize:ft("labelMinFontSize",i,a,10),minLabelMinFontSize:ft("minLabelMinFontSize",i,a,10),maxLabelMinFontSize:ft("maxLabelMinFontSize",i,a,10),hideValue:ft("hideValue",i,a,!1),hideMinMax:ft("hideMinMax",i,a,!1),showInnerShadow:ft("showInnerShadow",i,a,!1),humanFriendly:ft("humanFriendly",i,a,!1),noGradient:ft("noGradient",i,a,!1),donut:ft("donut",i,a,!1),relativeGaugeSize:ft("relativeGaugeSize",i,a,!1),counter:ft("counter",i,a,!1),decimals:ft("decimals",i,a,0),customSectors:ft("customSectors",i,a,{}),formatNumber:ft("formatNumber",i,a,!1),pointer:ft("pointer",i,a,!1),pointerOptions:ft("pointerOptions",i,a,{}),displayRemaining:ft("displayRemaining",i,a,!1)};let b,y,k,h,f,$,L,Z,Y,tt,nt,W,_t,Ft,U,B,Q,lt,ht;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=ft("value",i,a,-1,"float"),this.canvas=Wi(this.config.element,"100%","100%"),this.config.relativeGaugeSize===!0?this.config.donut===!0?(this.canvas.setViewBox(0,0,200,200,!0),b=200,y=200):(this.canvas.setViewBox(0,0,200,100,!0),b=200,y=100):this.config.width!==null&&this.config.height!==null?(b=this.config.width,y=this.config.height):this.config.parentNode!==null?(this.canvas.setViewBox(0,0,200,100,!0),b=200,y=100):(b=Number(Br(this.config.element,"width").slice(0,-2))*1,y=Number(Br(this.config.element,"height").slice(0,-2))*1),this.config.donut===!0?(b>y?(h=y,k=h):(b<y,k=b,h=k),$=(b-k)/2,L=(y-h)/2,Z=h/6.4>16?h/5.4:18,Y=$+k/2,this.config.label!==""?tt=L+h/1.85:tt=L+h/1.7,nt=h/16>10?h/16:10,W=$+k/2,_t=tt+nt,Ft=h/16>10?h/16:10,U=$+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,Q=h/16>10?h/16:10,lt=$+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ht=_t):(b>y?(h=y,k=h*2,k>b&&(f=k/b,k=k/f,h=h/f)):b<y?(k=b,h=k/2):(k=b,h=k*.5),$=(b-k)/2,L=(y-h)/2,Z=h/6.5>this.config.valueMinFontSize?h/6.5:this.config.valueMinFontSize,Y=$+k/2,tt=L+h/1.275,nt=h/16>this.config.labelMinFontSize?h/16:this.config.labelMinFontSize,W=$+k/2,_t=tt+Z/2+5,Ft=h/16>this.config.minLabelMinFontSize?h/16:this.config.minLabelMinFontSize,U=$+k/10+k/6.666666666666667*this.config.gaugeWidthScale/2,B=_t,Q=h/16>this.config.maxLabelMinFontSize?h/16:this.config.maxLabelMinFontSize,lt=$+k-k/10-k/6.666666666666667*this.config.gaugeWidthScale/2,ht=_t),this.params={canvasW:b,canvasH:y,widgetW:k,widgetH:h,dx:$,dy:L,valueFontSize:Z,valueX:Y,valueY:tt,labelFontSize:nt,labelX:W,labelY:_t,minFontSize:Ft,minX:U,minY:B,maxFontSize:Q,maxX:lt,maxY:ht},this.canvas.customAttributes.pki=H=>{let K=this.config.min,G=this.config.max;const at=this.params.widgetW,yt=this.params.widgetH,Mt=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Jt=this.config.donut;let p,u,o,c,_,E,C,R,M,N;return K<0&&(G-=K,H-=K,K=0),Jt?(p=(1-2*(H-K)/(G-K))*Math.PI,u=at/2-at/30,o=u-at/6.666666666666667*xt,c=at/2+Mt,_=yt/2+ct,E=c+u*Math.cos(p),C=_-u*Math.sin(p),R=c+o*Math.cos(p),M=_-o*Math.sin(p),N="M"+(c-o)+","+_+" ",N+="L"+(c-u)+","+_+" ",H-K>(G-K)/2&&(N+="A"+u+","+u+" 0 0 1 "+(c+u)+","+_+" "),N+="A"+u+","+u+" 0 0 1 "+E+","+C+" ",N+="L"+R+","+M+" ",H-K>(G-K)/2&&(N+="A"+o+","+o+" 0 0 0 "+(c+o)+","+_+" "),N+="A"+o+","+o+" 0 0 0 "+(c-o)+","+_+" ",N+="Z ",{path:N}):(p=(1-(H-K)/(G-K))*Math.PI,u=at/2-at/10,o=u-at/6.666666666666667*xt,c=at/2+Mt,_=yt/1.25+ct,E=c+u*Math.cos(p),C=_-u*Math.sin(p),R=c+o*Math.cos(p),M=_-o*Math.sin(p),N="M"+(c-o)+","+_+" ",N+="L"+(c-u)+","+_+" ",N+="A"+u+","+u+" 0 0 1 "+E+","+C+" ",N+="L"+R+","+M+" ",N+="A"+o+","+o+" 0 0 0 "+(c-o)+","+_+" ",N+="Z ",{path:N})},this.canvas.customAttributes.ndl=function(H){const K=this.config.min,G=this.config.max,at=this.params.widgetW,yt=this.params.widgetH,Mt=this.params.dx,ct=this.params.dy,xt=this.config.gaugeWidthScale,Jt=this.config.donut;let p=at*3.5/100,u=at/15,o=at/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&&(u=this.config.pointerOptions.bottomlength),this.config.pointerOptions.bottomwidth!=null&&this.config.pointerOptions.bottomwidth!==void 0&&(o=this.config.pointerOptions.bottomwidth);let c,_,E,C,R,M,N,X,it,pt,mt,dt,kt,Ct,bt,ot,$t;return Jt?(c=(1-2*(H-K)/(G-K))*Math.PI,_=at/2-at/30,E=_-at/6.666666666666667*xt,C=yt/2+ct,R=at/2+Mt+_*Math.cos(c),M=yt-(yt-C)-_*Math.sin(c),N=at/2+Mt+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),it=R+p*Math.cos(c),pt=M-p*Math.sin(c),mt=N-u*Math.cos(c),dt=X+u*Math.sin(c),kt=mt+o*Math.sin(c),Ct=dt+o*Math.cos(c),bt=mt-o*Math.sin(c),ot=dt-o*Math.cos(c),$t="M"+kt+","+Ct+" ",$t+="L"+bt+","+ot+" ",$t+="L"+it+","+pt+" ",$t+="Z ",{path:$t}):(c=(1-(H-K)/(G-K))*Math.PI,_=at/2-at/10,E=_-at/6.666666666666667*xt,C=yt/1.25+ct,R=at/2+Mt+_*Math.cos(c),M=yt-(yt-C)-_*Math.sin(c),N=at/2+Mt+E*Math.cos(c),X=yt-(yt-C)-E*Math.sin(c),it=R+p*Math.cos(c),pt=M-p*Math.sin(c),mt=N-u*Math.cos(c),dt=X+u*Math.sin(c),kt=mt+o*Math.sin(c),Ct=dt+o*Math.cos(c),bt=mt-o*Math.sin(c),ot=dt-o*Math.cos(c),$t="M"+kt+","+Ct+" ",$t+="L"+bt+","+ot+" ",$t+="L"+it+","+pt+" ",$t+="Z ",{path:$t})},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:Rr(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 V=this.config.min;this.config.reverse&&(V=this.config.max),this.txtMinimum=V,this.config.minTxt?this.txtMinimum=this.config.minTxt:this.config.humanFriendly?this.txtMinimum=je(V,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Ye(V)),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=je(et,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Ye(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],wt="http://www.w3.org/2000/svg";if(bi!==void 0&&bi<9||(bi!==void 0?Or(()=>{this.generateShadow(wt,rt)}):this.generateShadow(wt,rt)),this.config.textRenderer&&this.config.textRenderer(this.originalValue)!==!1?this.originalValue=this.config.textRenderer(this.originalValue):this.config.humanFriendly?this.originalValue=je(this.originalValue,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?this.originalValue=Ye(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 H=()=>{let G=this.level.attr("pki")[0];this.config.reverse&&(G=this.config.max*1+this.config.min*1-this.level.attr("pki")[0]*1),this.config.textRenderer&&this.config.textRenderer(Math.floor(G))!==!1?this.txtValue.attr("text",this.config.textRenderer(Math.floor(G))):this.config.humanFriendly?this.txtValue.attr("text",je(Math.floor(G),this.config.humanFriendlyDecimal)+this.config.symbol):this.config.formatNumber?this.txtValue.attr("text",Ye(Math.floor(G))+this.config.symbol):this.config.displayRemaining?this.txtValue.attr("text",((this.config.max-G)*1).toFixed(this.config.decimals)+this.config.symbol):this.txtValue.attr("text",(G*1).toFixed(this.config.decimals)+this.config.symbol),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY),G=null},K=()=>{this.txtValue.attr({text:this.originalValue}),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.finish",K),this.bindEvent("raphael.anim.frame",H)}else{const H=()=>{this.txtValue.attr({text:this.originalValue}),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY)};this.bindEvent("raphael.anim.start",H)}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]&&Wi.eve.off(i,this.events[i]),Wi.eve.on(i,a),this.events[i]=a}refresh(i,a,g,b){let y;a=Pr(a)?a:null,g=Pr(g)?g:null,b=b||null,b!==null&&(this.config.label=b,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=je(this.config.min,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMinimum=Ye(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=je(this.config.max,this.config.humanFriendlyDecimal):this.config.formatNumber&&(this.txtMaximum=Ye(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))),y=i,i*1>this.config.max*1&&(i=this.config.max*1),i*1<this.config.min*1&&(i=this.config.min*1);const k=Rr(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(y)!==!1?y=this.config.textRenderer(y):this.config.humanFriendly?y=je(y,this.config.humanFriendlyDecimal)+this.config.symbol:this.config.formatNumber?y=Ye((y*1).toFixed(this.config.decimals))+this.config.symbol:this.config.displayRemaining?y=((this.config.max-y)*1).toFixed(this.config.decimals)+this.config.symbol:y=(y*1).toFixed(this.config.decimals)+this.config.symbol,this.originalValue=y,this.config.value=i*1,this.config.counter||(this.txtValue.attr({text:y}),Qt(this.txtValue,this.params.valueFontSize,this.params.valueY));let h=this.config.value;this.config.reverse&&(h=this.config.max*1+this.config.min*1-this.config.value*1),this.level.animate({pki:[h],fill:k},this.config.refreshAnimationTime,this.config.refreshAnimationType,this.config.onAnimationEnd),this.config.pointer&&this.needle.animate({ndl:[h]},this.config.refreshAnimationTime,this.config.refreshAnimationType)}update(i,a){const g=this;if(i instanceof Object)for(const b in i)a=i[b],Lr(g,b,a);else Lr(g,i,a)}destroy(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const i in this.events)Wi.eve.off(i,this.events[i]);this.events={}}generateShadow(i,a){const g="inner-shadow-"+(this.config.element.id||this.config.classId),b=document.createElementNS(i,"filter");b.setAttribute("id",g),a.appendChild(b);const y=document.createElementNS(i,"feOffset");y.setAttribute("dx","0"),y.setAttribute("dy",this.config.shadowVerticalOffset),b.appendChild(y);const k=document.createElementNS(i,"feGaussianBlur");k.setAttribute("result","offset-blur"),k.setAttribute("stdDeviation",this.config.shadowSize),b.appendChild(k);const h=document.createElementNS(i,"feComposite");h.setAttribute("operator","out"),h.setAttribute("in","SourceGraphic"),h.setAttribute("in2","offset-blur"),h.setAttribute("result","inverse"),b.appendChild(h);const f=document.createElementNS(i,"feFlood");f.setAttribute("flood-color","black"),f.setAttribute("flood-opacity",this.config.shadowOpacity),f.setAttribute("result","color"),b.appendChild(f);const $=document.createElementNS(i,"feComposite");$.setAttribute("operator","in"),$.setAttribute("in","color"),$.setAttribute("in2","inverse"),$.setAttribute("result","shadow"),b.appendChild($);const L=document.createElementNS(i,"feComposite");L.setAttribute("operator","over"),L.setAttribute("in","shadow"),L.setAttribute("in2","SourceGraphic"),b.appendChild(L),this.config.showInnerShadow&&(this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+g+")"),this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+g+")"))}}function Lr(r,i,a){switch(i){case"valueFontColor":if(!zr(a)){console.log("* justgage: the updated valueFontColor value is not a valid hex color");break}r.txtValue.attr({fill:a});break;case"labelFontColor":if(!zr(a)){console.log("* justgage: the updated labelFontColor value is not a valid hex color");break}r.txtMin.attr({fill:a}),r.txtMax.attr({fill:a}),r.txtLabel.attr({fill:a});break;default:console.log(`* justgage: "${i}" is not a supported update setting`)}}function ft(r,i,a,g,b,y){let k=g,h=!1;if(!pe(r)&&(!pe(a)&&typeof a=="object"&&r in a?(k=a[r],h=!0):!pe(i)&&typeof i=="object"&&r in i?(k=i[r],h=!0):k=g,h===!0&&!pe(b)))switch(b){case"int":k=parseInt(k,10);break;case"float":k=parseFloat(k);break}return k}function pe(r){return r==null}function Rr(r,i,a,g,b){let y,k,h,f,$,L,Z,Y,tt,nt,W;const _t=b&&b.ranges&&b.ranges.length>0;if(g=g||_t,_t){b.percents===!0&&(r=i*100);for(let Q=0;Q<b.ranges.length;Q++)if(r>=b.ranges[Q].lo&&r<=b.ranges[Q].hi)return b.ranges[Q].color}const Ft=a.length;if(Ft===1)return a[0];const U=g?1/Ft:1/(Ft-1),B=[];for(let Q=0;Q<a.length;Q++)y=g?U*(Q+1):U*Q,k=parseInt(yn(a[Q]).substring(0,2),16),h=parseInt(yn(a[Q]).substring(2,4),16),f=parseInt(yn(a[Q]).substring(4,6),16),B[Q]={pct:y,color:{r:k,g:h,b:f}};if(i===0)return"rgb("+[B[0].color.r,B[0].color.g,B[0].color.b].join(",")+")";for(let Q=0;Q<B.length;Q++)if(i<=B[Q].pct)return g?"rgb("+[B[Q].color.r,B[Q].color.g,B[Q].color.b].join(",")+")":($=B[Q-1],L=B[Q],Z=L.pct-$.pct,Y=(i-$.pct)/Z,tt=1-Y,nt=Y,W={r:Math.floor($.color.r*tt+L.color.r*nt),g:Math.floor($.color.g*tt+L.color.g*nt),b:Math.floor($.color.b*tt+L.color.b*nt)},"rgb("+[W.r,W.g,W.b].join(",")+")")}function Qt(r,i,a){(!bi||bi>9)&&r.node.firstChild.attributes.dy&&(r.node.firstChild.attributes.dy.value=0)}function yn(r){return r.charAt(0)==="#"?r.substring(1,7):r}function zr(r){return typeof r=="string"&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(r)}function je(r,i){const a=Math.pow(10,i),g=" KMGTPE";let b=0;const y=1e3;for(;(r>=y||r<=-y)&&++b<g.length;)r=r/y;return b=b>=g.length?g.length-1:b,Math.round(r*a)/a+g[b]}function Ye(r){const i=r.toString().split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function Br(r,i){let a="";return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(r,"").getPropertyValue(i):r.currentStyle&&(i=i.replace(/-(\w)/g,function(g,b){return b.toUpperCase()}),a=r.currentStyle[i]),a}function Or(r){document.createElementNS!==void 0?r():setTimeout(function(){Or(r)},100)}const bi=(function(){let r=3;const i=document.createElement("div"),a=i.getElementsByTagName("i");for(;a[0];)i.innerHTML="<!--[if gt IE "+ ++r+"]><i></i><![endif]-->";return r>4?r:void 0})();function Eo(r){r=r||{};for(let i=1;i<arguments.length;i++)if(arguments[i])for(const a in arguments[i])Object.prototype.hasOwnProperty.call(arguments[i],a)&&(r[a]=arguments[i][a]);return r}function Pr(r){return r!=null&&!isNaN(r)}function Co(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const i=Math.random()*16|0;return(r==="x"?i:i&3|8).toString(16)})}var Mo=ao('<div part="gauge" style="width:100%" id="gauge"></div>');const $o={hash:"svelte-1ozhsul",code:""};function Vr(r,i){jn(i,!0),po(r,$o);let a=ce(void 0),g=ce(void 0),b=Ar(i,"id",7,""),y=Ar(i,"options");lr(()=>{y()&&typeof y()=="string"&&(y(JSON.parse(y())),Lt(a)&&Lt(g)&&k())});function k(){if(!Lt(a))return console.error("cannot recreateGauge gauge");Lt(g)&&Lt(g).destroy(),Zt(g,void 0),h()}function h(){if(!y()||!Lt(a))return console.error("cannot create gauge");if(Lt(g))console.error("cannot create html gauge");else{const Z=Object.assign({element:Lt(a)},y());Zt(g,new ko(Z),!0)}}Fr(()=>{Zt(a,i.$$host?.shadowRoot?.querySelector("#gauge"),!0),console.log("gaugeEl",Lt(a)),h()}),co(()=>{Lt(g)&&Lt(g).destroy(),Zt(g,void 0)});var f={get id(){return b()},set id(Z=""){b(Z),un()},get options(){return y()},set options(Z){y(Z),un()}},$=Mo(),L=Ps(()=>yo(k,200));return so("resize",cn,function(...Z){Lt(L)?.apply(this,Z)}),Mr(r,$),Yn(f)}customElements.define("hb-gauge",xo(Vr,{id:{},options:{}},[],[],!0)),Sn.Component=Vr,Object.defineProperty(Sn,Symbol.toStringTag,{value:"Module"})})(this.gauge=this.gauge||{});
|
|
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&>.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,"<").replace(/&/g,"&").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
7
|
//# sourceMappingURL=main.iife.js.map
|