PageSourceSearch

https://menu.mt.co.kr/mt24/assets/20260930162915/search-CrM2Dn2G.js

js mt.co.kr collected 2026-10-01 08:59:40 UTC 982,951 bytes, 214 lines download raw bytes

1import{i as Ol,S as In,j as Dl,h as Tl}from"./callAxios-DAk1Pv-t.js";import{h as kl}from"./common-DjqScGpq.js";import{i as Oa,u as Vl,a as Al}from"./searchLayer-DQjNMHjX.js";import{q as Fl,K as Il,S as Ml,v as jl,d as Da,P as Ll,$ as w,a0 as st,a1 as Ti,a2 as yi,a3 as ut,a4 as Sr,a5 as Pe,l as El,X as Xs,j as Ys,g as Rl,a6 as Ta,Y as Or,n as Bl}from"./util-CY8vjEYy.js";import{i as Wl,f as Hl}from"./CustomSelect-BsM8ylZf.js";import{s as Nl}from"./CustomToast-CIbLOOeZ.js";import{I as ka}from"./RealtimeRanking-BhfEmGiv.js";import{R as yt,r as Ci,c as zl}from"./client-CKcnm9qM.js";import{I as Xl,k as Yl,u as Ul}from"./index-D8qxfuiL.js";import{z as Us,a as Gl,b as Kl}from"./_global-DbNrbrbj.js";import{b as Gs,s as ji,g as ql}from"./Tooltip-CJ5pNGbB.js";import{F as Mn}from"./FreemodeSlider-CNLRZpzD.js";import{L as Va}from"./LockScroll-CwDN6wtn.js";import{S as Zl}from"./SwiperSlider-tnw2A4EG.js";import{E as $l}from"./error-DJbWJNZ2.js";import"./CustomAlert-BrL9GCr-.js";import"./swiper-core-C93p1sRT.js";import"./autoplay-Bhh3JGqo.js";import"./create-element-if-not-defined-DskeIC6M.js";import"./free-mode-BTzZb9EA.js";import"./navigation-CDuSJesZ.js";function Ks(s,i,t){const{years:e=0,months:r=0,weeks:n=0,days:a=0,hours:o=0,minutes:l=0,seconds:h=0}=i,u=Fl(s,t==null?void 0:t.in),p=r||e?Il(u,r+e*12):u,d=a||n?Ml(p,a+n*7):p,f=l+o*60,y=(h+f*60)*1e3;return jl(s,+d+y)}const Jl="modulepreload",Ql=function(s){return"/"+s},qs={},Dr=function(i,t,e){return!t||t.length===0?i():(document.getElementsByTagName("link"),Promise.all(t.map(r=>{if(r=Ql(r),r in qs)return;qs[r]=!0;const n=r.endsWith(".css"),a=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${a}`))return;const o=document.createElement("link");if(o.rel=n?"stylesheet":Jl,n||(o.as="script",o.crossOrigin=""),o.href=r,document.head.appendChild(o),n)return new Promise((l,h)=>{o.addEventListener("load",l),o.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>i()).catch(r=>{const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=r,window.dispatchEvent(n),!n.defaultPrevented)throw r}))},Zs=new Map;function th(s,i){const t=document.querySelector(`#${s}`);if(t){let e=Zs.get(s);e||(e=zl(t),Zs.set(s,e)),e.render(yt.createElement(Aa,{...i}))}else console.error("element not found")}const Aa=s=>{const[i,t]=Ci.useState(1),[e,r]=Ci.useState("hour"),[n,a]=Ci.useState(0),{data:o}=Ul([s.id,e,i],()=>Ol(s.id,e,i));return Ci.useEffect(()=>{o&&a(o.total)},[o]),o?yt.createElement(Ci.Fragment,null,yt.createElement(ih,{className:"search_stockprice_head"},yt.createElement("button",{className:`stockprice_tab_item ${e==="hour"?"active":""}`,"aria-label":"시간별시세",onClick:()=>{r("hour"),i>1&&t(1)}},"시간별시세"),yt.createElement("button",{className:`stockprice_tab_item ${e==="day"?"active":""}`,"aria-label":"일별시세",onClick:()=>{r("day"),i>1&&t(1)}},"일별시세")),yt.createElement(rh,{className:"search_stockprice_table"},o.is_trading_halt?yt.createElement("p",{className:"before_open"},"해당 종목은 거래정지 중입니다."):e==="hour"&&o.stock_market_status===In.BEFORE_OPEN?yt.createElement("p",{className:"before_open"},"개장 전입니다."):yt.createElement("table",{className:"stockprice_table"},yt.createElement("thead",{className:"stockprice_table_head"}
1,yt.createElement("tr",null,yt.createElement("th",null,e==="day"?"날짜":"시간"),yt.createElement("th",null,"현재가"),yt.createElement("th",null,"전일대비"),yt.createElement("th",null,"등락률(%)"),yt.createElement("th",null,"거래량(주)"),yt.createElement("th",null,"거래대금(백만)"))),yt.createElement("tbody",{className:"stockprice_table_body"},o==null?void 0:o.list.map((l,h)=>yt.createElement(eh,{key:h,stock:l}))))),o.stock_market_status!==In.BEFORE_OPEN&&yt.createElement(Ll,{totalItems:n,itemCountPerPage:10,pageCount:5,currentPage:i,onSubmit:t})):yt.createElement(yt.Fragment,null)},eh=yt.memo(({stock:s})=>yt.createElement("tr",null,yt.createElement("td",null,s.Date),yt.createElement("td",null,s.Jo),yt.createElement("td",{className:`stockprice_price ${Number(s.UpdownRate)>0?"up":Number(s.UpdownRate)<0?"down":""}`},yt.createElement(Xl,{className:"stock_icon",$type:Yl,$size:16,$color:Number(s.UpdownRate)>0?"red":Number(s.UpdownRate)<0?"blue":""}),s.Junil.replace(/^[+-]/,"")),yt.createElement("td",{className:`stockprice_price ${Number(s.UpdownRate)>0?"up":Number(s.UpdownRate)<0?"down":""}`},(Number(s.UpdownRate)>0?"+":"")+s.UpdownRate,"%"),yt.createElement("td",null,s.Gu),yt.createElement("td",null,s.Gumoney))),ih=Da.div`
2	display: flex;
3	align-items: center;
4	padding: 12px 16px;
5	border-top: 1px solid #bbbbbb;
6	border-bottom: 1px solid #ddd;
7
8	.stockprice_tab_item {
9		cursor: pointer;
10		color: #ddd;
11		font-size: 16px;
12		font-weight: 700;
13		line-height: 24px;
14
15		&.active {
16			color: #222;
17		}
18
19		&:hover {
20			color: #222;
21		}
22
23		&:first-child {
24			&::after {
25				content: "|";
26				color: #ddd;
27				margin: 0 16px;
28				font-size: 18px;
29				font-weight: 400;
30				line-height: 28px;
31			}
32		}
33	}
34
35	.stockprice_date {
36		color: #999;
37		font-size: 14px;
38		font-weight: 400;
39		font-family: Roboto;
40	}
41`,rh=Da.div`
42	position: relative;
43	min-height: 446px;
44	margin-bottom: 20px;
45	padding-bottom: 24px;
46	border-bottom: 1px solid #ddd;
47	overflow: auto;
48
49	&::-webkit-scrollbar {
50		width: 4px;
51		height: 4px;
52		border-radius: 6px;
53		background: rgba(255, 255, 255, 0.4);
54	}
55
56	&::-webkit-scrollbar-thumb {
57		background-color: rgba(0, 0, 0, 0.3);
58		border-radius: 6px;
59	}
60
61	// 개장전 안내 문구
62	.before_open {
63		position: absolute;
64		top: 50%;
65		left: 50%;
66		transform: translate(-50%, -50%);
67		text-align: center;
68		color: #999;
69		font-size: 16px;
70		font-weight: 700;
71		line-height: 28px;
72	}
73
74	.stockprice_table {
75		width: 100%;
76		min-width: 768px;
77
78		/* 테두리 중복 제거 */
79		border-collapse: collapse;
80		font-size: 14px;
81		text-align: center;
82
83		.stockprice_table_head {
84			> tr {
85				> th {
86					color: #222;
87					font-size: 16px;
88					font-weight: 400;
89					line-height: 24px;
90					padding: 12px 6px;
91					margin-bottom: 12px;
92					border-bottom: 1px solid #ddd;
93
94					/* 첫 번째 열 고정 */
95					&:first-child {
96						position: sticky;
97						left: 0;
98						background: #fff;
99						z-index: ${Us.stockpriceTable};
100					}
101				}
102			}
103		}
104
105		.stockprice_table_body {
106			> tr {
107				&:first-child {
108					> td {
109						padding: 20px 6px 8px;
110					}
111				}
112
113				&:last-child td {
114					border-bottom: none;
115				}
116
117				> td {
118					color: #222;
119					font-family: Roboto;
120					font-size: 14px;
121					font-weight: 400;
122					line-height: 20px;
123					padding: 8px 6px;
124
125					/* 첫 번째 열 고정 */
126					&:first-child {
127						position: sticky;
128						left: 0;
129						background: #fff;
130						z-index: ${Us.stockpriceTable};
131					}
132
133					&.stockprice_price {
134						color: #999;
135						.stock_icon {
136							vertical-align: text-top;
137						}
138
139						&.up {
140							color: #f23005;
141						}
142
143						&.down {
144							color: #0072ff;
145						}
146					}
147				}
148			}
149		}
150	}
151`;yt.memo(Aa);var Q=function(){function s(i){this._value=i}return Object.defineProperty(s.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),s.prototype.toString=function(){return""+this._value+"%"},s}();function I(s){return new Q(s)}function nh(s){return s instanceof Q}function Gt(s){return Number(s)!==s}function Fa(s){return{}.toString.call(s)}function ls(s){if(typeof s=="string")return s;if(typeof s=="number")return""+s;throw new Error("Expected a string or number but got "+Fa(s))}function vt(s){return!!s}function dt(s){if(b(s)&&!v(s)){var i=Number(s);return Gt(i)&&tt(s)&&s!=""?dt(s.replace(/[^0-9.\-]+/g,"")):i}return s}function Xt(s){if(b(s)&&!tt(s)){if(v(s))return ls(s);if(gt(s))return s.toString()}return s}function sh(s){return!b(s)||v(s)||nh(s)?s:tt(s)&&s.indexOf("%")!=-1?I(dt(s)):dt(s)}function b(s){return s!=null}function xt(s){if(b(s))return s;throw new Error("Value doesn't exist")}function bn(s,i){return b(s)?s:i}function Li(s){return Fa(s)==="[object Date]"}function tt(s){return typeof s=="string"}function v(s){return typeof s=="number"&&Number(s)==s}function gt(s){return typeof s=="object"&&s!=null}function Wt(s){return Array.isArray(s)}var qr=Math.PI,Ia=qr/2,Zr=qr/180,Be=180/qr;function xn(s,i,t){return b(s)?(s=dt(s),B(s,i,t)):s}function F(s,i,t){if(!v(i)||i<=0){var e=Math.round(s);return t&&e-s==.5&&e--,e}else{var r=Math.pow(10,i);return Math.round(s*r)/r}}function $s(s,i){if(!v(i)||i<=0)return Math.ceil(s);var t=Math.pow(10,i);return Math.ceil(s*t)/t}function B(s,i,t){if(v(i)){if(v(t)&&t<i){var e=t;t=i,i=e}s<i&&(s=i)}return v(t)&&s>t&&(s=t),s}function M(s){return F(Math.sin(Zr*s),10)}function Js(s){return F(Math.tan(Zr*s),10)}function j(s){return F(Math.cos(Zr*s),10)}function q(s,i){return v(s)?v(i)&&i>s?i:s:v(i)?i:null}function et(s,i){return v(s)?v(i)&&i<s?i:s:v(i)?i:null}function ah(s,i){return s.reduce(function(t,e){return Math.abs(e-i)<Math.abs(t-i)?e:t})}function Tr(s,i){var t=xt(s.start),e=xt(i.start),r=xt(s.end),n=xt(i.end);return Math.max(t,e)<=Math.min(r,n)}function wi(s){var i=xt(s.start),t=xt(s.end);return{start:1-t,end:1-i}}function oh(s,i){var t=xt(s.start),e=xt(i.start),r=xt(s.end),n=xt(i.end),a=Math.max(t,e),o=Math.min(r,n);if(!(o<a))return{start:a,end:o}}function at(s,i){return s?(i||(i={x:0,y:0}),Math.sqrt(Math.pow(Math.abs(s.x-i.x),2)+Math.pow(Math.abs(s.y-i.y),2))):0}function lh(s,i){return s?(i||(i={x:0,y:0}),Math.abs(s.x-i.x)):0}function hh(s,i){return s?(i||(i={x:0,y:0}),Math.abs(s.y-i.y)):0}function uh(s,i,t,e,r){if(!s)return 0;i||(i={x:0,y:0});for(var n=0,a=s,o=0;o<=r;o++){var l=hs(s,i,t,e,o/r);n+=at(a,l),a=l}return n}function ph(s,i,t,e){var r=at(i,e),n=at(s,t);return Math.abs(n/r)}function kr(s,i,t){return v(t)||(t=.5),{x:s.x+(i.x-s.x)*t,y:s.y+(i.y-s.y)*t}}function Yt(s,i){i||(i={x:s.x*2,y:s.y*2});var t=i.x-s.x,e=i.y-s.y,r=Math.atan2(e,t)*Be;return r<0&&(r+=360),Je(r)}function Si(s){if(s){var i=s.length;if(i!==0){for(var t=void 0,e=void 0,r,n=void 0,a=0;a<i;a++){var o=s[a];(!v(e)||o.x>e)&&(e=o.x),(!v(t)||o.x<t)&&(t=o.x),(!v(r)||o.y<r)&&(r=o.y),(!v(n)||o.y>n)&&(n=o.y)}return{x:t,y:r,width:e-t,height:n-r}}}return{x:0,y:0,width:0,height:0}}function Gi(s){var i=s.length;if(i!==0){for(var t=void 0,e=void 0,r=void 0,n=void 0,a=0;a<i;a++){var o=s[a];t=et(o.x,t),e=et(o.y,e),r=q(o.x+o.width,r),n=q(o.y+o.height,n)}return{x:t,y:e,width:r-t,height:n-e}}}function Qs(s,i,t,e){var r=(1-e)*(1-e)*s.x+2*(1-e)*e*t.x+e*e*i.x,n=(1-e)*(1-e)*s.y+2*(1-e)*e*t.y+e*e*i.y;return{x:r,y:n}}function hs(s,i,t,e,r){var n={x:0,y:0},a=1-r,o=a*a,l=o*a;return n.x=s.x*l+t.x*3*o*r+e.x*3*a*r*r+i.x*r*r*r,n.y=s.y*l+t.y*3*o*r+e.y*3*a*r*r+i.y*r*r*r,n}function Ma(s,i,t,e,r,n){return r=Vr(r),n=Vr(n),{x:(-s.x+i.x/r+t.x)*r,y:(-s.y+i.y/n+t.y)*n}}function ja(s,i,t,e,r,n){return r=Vr(r),n=Vr(n),{x:(i.x+t.x/r-e.x)*r,y:(i.y+t.y/n-e.y)*n}}function Vr(s){return 1-s+1e-5}function Je(s){return s==360?360:s%360}function we(s,i,t){if(i>t){var e=i;i=t,t=e}s=Je(s);var r=(i-Je(i))/360;s<i&&(s+=360*(r+1));var n=i+(t-i)/2+180,a=i+(t-i)/2-180;return s>t&&(s-360>i?s-=360:s<n?s=t:s=i),s<i&&(s>a?s=i:s=t),s}function De(s,i,t){var e=Number.MAX_VALUE,r=Number.MAX_VALUE,n=-Number.MAX_VALUE,a=-Number.MAX_VALUE,o=[];v(t)||(t=1),o.push(_n(t,s)),o.push(_n(t,i));for(var l=Math.min(Math.floor(s/90)*90,Math.floor(i/90)*90),h=Math.max(Math.ceil(s/90)*90,Math.ceil(i/90)*90),u=l;u<=h;u+=90)u>=s&&u<=i&&o.push(_n(t,u));for(var p=0;p<o.length;p++){var d=o[p];d.x<e&&(e=d.x),d.y<r&&(r=d.y),d.x>n&&(n=d.x),d.y>a&&(a=d.y)}return{x:e,y:r,width:n-e,height:a-r}}function _n(s,i){return{x:s*j(i),y:s*M(i)}}function La(s,i){return s.x>=i.x&&s.x<=i.x+i.width&&s.y>=i.y&&s.y<=i.y+i.height}function me(s,i){for(var t=s.length,e=0;e<t;++e)if(s[e]===i)return e;return-1}function us(s,i){for(var t=s.length,e=0;e<t;++e)if(i(s[e]))return!0;return!1}function Ki(s,i){for(var t=s.length,e=new Array(t),r=0;r<t;++r)e[r]=i(s[r],r);return e}function L(s,i){for(var t=s.length,e=0;e<t;++e)i(s[e],e)}function dh(s,i){for(var t=s.length;t--;)i(s[t],t)}function ps(s,i){for(var t=s.length,e=0;e<t&&i(s[e],e);++e);}function fh(s,i){for(var t=s.length,e=i;e<t;++e)s[e-i]=s[e];s.length=t-i}function ch(s,i){for(var t=i.length,e=0;e<t;++e)s.push(i[e])}function G(s,i){var t=!1,e=s.indexOf(i);if(e!==-1){t=!0,s.splice(e,1);for(var r=s.length;e<r;)s[e]===i?(s.splice(e,1),--r):++e}return t}function fe(s,i,t){var e=me(s,i);e!==-1&&vi(s,e),s.push(i)}function pi(s,i,t){v(t)?s.splice(t,0,i):s.push(i)}function yh(s,i,t){var e=s.indexOf(i);e!==-1&&s.splice(e,1),v(t)?s.splice(t,0,i):s.push(i)}function Ea(s){return Array.isArray(s)?s:[s]}function Ei(s){for(var i=s.length,t=new Array(i),e=0;e<i;++e)t[e]=s[e];return t}function Ri(s,i,t){s.splice(i,0,t)}function vi(s,i){s.splice(i,1)}function Ar(s,i,t){for(var e=0,r=s.length,n=!1;e<r;){var a=e+r>>1,o=i(t,s[a]);o<0?r=a:(o===0&&(n=!0),e=a+1)}return{found:n,index:n?e-1:e}}function Ra(s,i){for(var t=s.length,e=0;e<t;++e)if(i(s[e],e))return e;return-1}function Ba(s,i){for(var t=s.length,e=0;e<t;)i(s[e])?++e:(s.splice(e,1),--t)}var lt=function(){function s(i){this._disposed=!1,this._dispose=i}return s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},s}(),Pt=function(s){w(i,s);function i(t){return s.call(this,function(){L(t,function(e){e.dispose()})})||this}return i}(lt),Et=function(s){w(i,s);function i(){var t=s.call(this,function(){b(t._disposer)&&(t._disposer.dispose(),t._disposer=void 0)})||this;return t}return i.prototype.get=function(){return this._value},i.prototype.set=function(t,e){b(this._disposer)&&this._disposer.dispose(),this._disposer=e,this._value=t},i.prototype.reset=function(){this.set(void 0,void 0)},i}(lt),$r=function(s){w(i,s);function i(){var t=s!==null&&s.apply(this,arguments)||this;return t._counter=0,t}return i.prototype.increment=function(){var t=this;return++this._counter,new lt(function(){--t._counter,t._counter===0&&t.dispose()})},i}(lt),jn=!1,ur=[],ki=[],yr=[],Ln=[],gh=1e3/60,ds=typeof requestAnimationFrame=="function"?function(s){requestAnimationFrame(s)}:function(s){setTimeout(s,gh)};function Wa(){for(var s=Date.now(),i=ur.length,t=0;t<i;++t)ur[t](s);fh(ur,i);for(var t=0;t<ki.length;++t)ki[t](s);ki.length=0;for(var t=0;t<yr.length;++t)yr[t](s);yr.length=0,ur.length===0&&ki.length===0?jn=!1:ds(Wa)}function Ha(){jn||(jn=!0,ds(Wa))}function vh(s){ki.push(s),Ha()}function ta(s){yr.push(s),Ha()}function mh(s){Ln.push(s)}function bh(){for(var s=Date.now(),i=Ln.length,t=0;t<i;++t)Ln.shift()(s)}
151var He=function(){function s(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var i=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{L(i,function(t){t.disposer.dispose()})}finally{this._killed=null,this._iterating=null}}},s.prototype.hasListeners=function(){return this._listeners.length!==0},s.prototype.hasListenersByType=function(i){return us(this._listeners,function(t){return(t.type===null||t.type===i)&&!t.killed})},s.prototype.enable=function(){this._enabled=!0},s.prototype.disable=function(){this._enabled=!1},s.prototype.enableType=function(i){delete this._disabled[i]},s.prototype.disableType=function(i,t){t===void 0&&(t=1/0),this._disabled[i]=t},s.prototype._removeListener=function(i){if(this._iterating===0){var t=this._listeners.indexOf(i);if(t===-1)throw new Error("Invalid state: could not remove listener");this._listeners.splice(t,1)}else this._killed.push(i)},s.prototype._removeExistingListener=function(i,t,e,r){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(function(n){n.once===i&&n.type===t&&(e==null||n.callback===e)&&n.context===r&&n.disposer.dispose()})},s.prototype.isEnabled=function(i){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(i)&&this._disabled[i]==null},s.prototype.has=function(i,t,e){var r=Ra(this._listeners,function(n){return n.once!==!0&&n.type===i&&(t==null||n.callback===t)&&n.context===e});return r!==-1},s.prototype._shouldDispatch=function(i){if(this._disposed)throw new Error("EventDispatcher is disposed");var t=this._disabled[i];return v(t)?(t<=1?delete this._disabled[i]:--this._disabled[i],!1):this._enabled},s.prototype._eachListener=function(i){var t=this;++this._iterating;try{L(this._listeners,i)}finally{--this._iterating,this._iterating===0&&this._killed.length!==0&&(L(this._killed,function(e){t._removeListener(e)}),this._killed.length=0)}},s.prototype.dispatchImmediately=function(i,t){this._shouldDispatch(i)&&this._eachListener(function(e){!e.killed&&(e.type===null||e.type===i)&&e.dispatch(i,t)})},s.prototype.dispatch=function(i,t){this._shouldDispatch(i)&&this._eachListener(function(e){!e.killed&&(e.type===null||e.type===i)&&mh(function(){e.killed||e.dispatch(i,t)})})},s.prototype._on=function(i,t,e,r,n,a){var o=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(i,t,e,r);var l={type:t,callback:e,context:r,shouldClone:n,dispatch:a,killed:!1,once:i,disposer:new lt(function(){l.killed=!0,o._removeListener(l)})};return this._listeners.push(l),l},s.prototype.onAll=function(i,t,e){return e===void 0&&(e=!0),this._on(!1,null,i,t,e,function(r,n){return i.call(t,r,n)}).disposer},s.prototype.on=function(i,t,e,r){return r===void 0&&(r=!0),this._on(!1,i,t,e,r,function(n,a){return t.call(e,a)}).disposer},s.prototype.once=function(i,t,e,r){r===void 0&&(r=!0);var n=this._on(!0,i,t,e,r,function(a,o){n.disposer.dispose(),t.call(e,o)});return n.disposer},s.prototype.off=function(i,t,e){this._removeExistingListener(!1,i,t,e)},s.prototype.copyFrom=function(i){var t=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(i===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");L(i._listeners,function(e){!e.killed&&e.shouldClone&&(e.type===null?t.onAll(e.callback,e.context):e.once?t.once(e.type,e.callback,e.context):t.on(e.type,e.callback,e.context))})},s}(),Na=function(s){w(i,s);function i(t){var e=s.call(this)||this;return e.target=t,e}return i.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");L(t._listeners,function(r){r.context!==t.target&&!r.killed&&r.shouldClone&&(r.type===null?e.onAll(r.callback,r.context):r.once?e.once(r.type,r.callback,r.context):e.on(r.type,r.callback,r.context))})},i}(He);function xh(s){return function(i){for(var t in s)if(Se(s,t)&&!i([t,s[t]]))break}}function za(s){var i=[];for(var t in s)Se(s,t)&&i.push(t);return i}function _h(s,i){return za(s).sort(i)}function Se(s,i){return{}.hasOwnProperty.call(s,i)}function Xa(s,i){for(var t in s)if(Se(s,t)&&!i(t,s[t]))break}function U(s,i){Xa(s,function(t,e){return i(t,e),!0})}function Fe(s,i,t){L(_h(s,t),function(e){i(e,s[e])})}function En(s,i){return Object.assign({},s,i)}function Ph(s){return JSON.parse(JSON.stringify(s))}function kt(s,i,t){L(t,function(e){b(s[e])&&(i[e]=s[e])})}function Ch(s,i,t){L(t,function(e){i[e]=s[e]})}function Oi(s,i){kt(s,i,za(s))}function Qe(s){return function(i){for(var t=s.length,e=0;e<t&&i(s[e]);++e);}}function wh(s){var i=0;return s(function(t){return++i,!0}),i}function Bi(s){var i=[];return s(function(t){return i.push(t),!0}),i}function he(s,i){s(i)}function A(s,i){s(function(t){return i(t),!0})}function fi(s,i){return Qe(Bi(s).sort(i))}function Ya(s,i){return function(t){return s(function(e){return t(i(e))})}}function Sh(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];return function(t){for(var e=!0,r=function(o){return e=t(o)},n=s.length,a=0;a<n&&(s[a](r),!!e);++a);}}function Oh(s){return function(i){var t=!0,e=function(r){return t=i(r)};s(function(r){return r(e),t})}}function ti(s){return function(i){var t=0;s(function(e){return i([t++,e])})}}function Dh(s,i){var t;return s(function(e){return i(e)?(t=e,!1):!0}),t}function fs(s,i){var t=!1;return s(function(e){return i(e)?(t=!0,!1):!0}),t}var cs=function(){function s(i,t){this.createNewItems=!1,this.list=i,this._create=t,this.reset()}return s.prototype.reset=function(){this._listCopy=Bi(this.list.iterator())},s.prototype.clear=function(){this._listCopy.length=0},s.prototype.getFirst=function(){return this.returnItem(0)},s.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},s.prototype.find=function(i){var t=Ra(this._listCopy,i);if(t!==-1){var e=this._listCopy[t];return G(this._listCopy,e),e}else return this.getLast()},s.prototype.removeItem=function(i){return G(this._listCopy,i)},s.prototype.returnItem=function(i){if(i>=0&&i<this._listCopy.length){var t=this._listCopy[i];return G(this._listCopy,t),t}else if(this.createNewItems)return this._create()},s.prototype.iterator=function(){return Qe(this._listCopy)},s}();function Rn(s,i){return s===i?0:s<i?-1:1}function ea(s,i){return new Array(i+1).join(s)}function Th(s){for(var i="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=0;e<s;e++)i+=t.charAt(Math.floor(Math.random()*t.length));return i}var ei=function(s){w(i,s);function i(t){var e=this,r=t.events.on("removed",function(n){n.oldValue.dispose()},void 0,!1);return e=s.call(this,function(){r.dispose(),A(t.iterator(),function(n){var a=n[1];a.dispose()})})||this,e}return i}(lt),ct=function(){function s(){this.events=new He,this._dictionary={}}return s.prototype.hasKey=function(i){return Se(this._dictionary,i)},s.prototype.getKey=function(i){return this._dictionary[i]},s.prototype.insertKey=function(i,t){if(Se(this._dictionary,i))throw new Error("Ke
151y "+i+" already exists in dictionary");this._dictionary[i]=t,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:i,newValue:t})},s.prototype.setKey=function(i,t){if(Se(this._dictionary,i)){var e=this._dictionary[i];e!==t&&(this._dictionary[i]=t,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:i,oldValue:e,newValue:t}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}))}else this._dictionary[i]=t,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:i,newValue:t})},s.prototype.updateKey=function(i,t){if(Se(this._dictionary,i)){var e=this._dictionary[i],r=t(e);e!==r&&(this._dictionary[i]=r,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:i,oldValue:e,newValue:r}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}))}else throw new Error("Key "+i+" doesn't exist in dictionary")},s.prototype.removeKey=function(i){if(Se(this._dictionary,i)){var t=this._dictionary[i];delete this._dictionary[i],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:i,oldValue:t}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t})}},s.prototype.insertKeyIfEmpty=function(i,t){return this.hasKey(i)||this.insertKey(i,t()),this.getKey(i)},s.prototype.clear=function(){var i=this;this.events.isEnabled("removed")&&U(this._dictionary,function(t,e){i.events.dispatchImmediately("removed",{type:"removed",target:i,oldValue:e})}),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},s.prototype.copyFrom=function(i){var t=this;A(i.iterator(),function(e){t.setKey(e[0],e[1])})},s.prototype.iterator=function(){return xh(this._dictionary)},s.prototype[Symbol.iterator]=function(){var i,t,e,r;return st(this,function(n){switch(n.label){case 0:i=[];for(t in this._dictionary)i.push(t);e=0,n.label=1;case 1:return e<i.length?(r=i[e],Se(this._dictionary,r)?[4,[r,this._dictionary[r]]]:[3,3]):[3,4];case 2:n.sent(),n.label=3;case 3:return e++,[3,1];case 4:return[2]}})},s.prototype.each=function(i){A(this.iterator(),function(t){var e=Ti(t,2),r=e[0],n=e[1];return i(r,n)})},s.prototype.sortedIterator=function(){return fi(this.iterator(),function(i,t){return Rn(i[0],t[0])})},s}(),Wi=function(s){w(i,s);function i(t){var e=s.call(this)||this;return e.template=t,e}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){var e=this;A(t.iterator(),function(r){e.setKey(r[0],r[1].clone())})},i.prototype.create=function(t){var e=this;return this.insertKeyIfEmpty(t,function(){return e.template.clone()})},i}(ct),kh=function(){function s(){this._storage=new ct,this.ttl=1e3}return s.prototype.set=function(i,t,e,r){var n=this._storage.insertKeyIfEmpty(i,function(){return new ct}),a={touched:new Date().getTime(),ttl:v(r)?r:this.ttl,value:e};n.setKey(t,a)},s.prototype.get=function(i,t,e){if(e===void 0&&(e=void 0),this._storage.hasKey(i)){var r=this._storage.getKey(i);if(r.hasKey(t)){var n=r.getKey(t);return n.ttl&&n.touched+n.ttl<new Date().getTime()&&(n.expired=!0),n.expired?(r.removeKey(t),e):n.value}else return e}else return e},s.prototype.clear=function(i){i?this._storage.removeKey(i):this._storage.clear()},s}(),Ii=new kh,Vh=function(){function s(){var i=this;this.events=new He,this.themes=[],this.loadedThemes={},this._uidCount=0,this.registeredClasses={},this._placeholders={},this.invalidSprites={},this.invalidDatas={},this.invalidRawDatas=[],this.invalidDataItems=[],this.invalidDataRange=[],this.invalidPositions={},this.invalidLayouts={},this.baseSprites=[],this.baseSpritesByUid={},this.queue=[],this.deferred=[],this.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[],typeof addEventListener<"u"&&(addEventListener("beforeprint",function(){L(i.baseSprites,function(t){var e=t.paper.svg;e.setAttribute("viewBox","0 0 "+e.clientWidth+" "+e.clientHeight)})}),addEventListener("afterprint",function(){L(i.baseSprites,function(t){var e=t.paper.svg;e.removeAttribute("viewBox")})}))}return s.prototype.getUniqueId=function(){var i=this._uidCount;return this._uidCount+=1,"id-"+i},Object.defineProperty(s.prototype,"map",{get:function(){return this._map||(this._map=new ct),this._map},enumerable:!0,configurable:!0}),s.prototype.setCache=function(i,t,e){Ii.set(this.uid,i,t,e)},s.prototype.getCache=function(i,t){return t===void 0&&(t=void 0),Ii.get(this.uid,i,t)},s.prototype.dispatch=function(i,t){this.events.isEnabled(i)&&(t?(t.type=i,t.target=t.target||this,this.events.dispatch(i,{type:i,target:this})):this.events.dispatch(i,{type:i,target:this}))},s.prototype.dispatchImmediately=function(i,t){this.events.isEnabled(i)&&(t?(t.type=i,t.target=t.target||this,this.events.dispatchImmediately(i,t)):this.events.dispatchImmediately(i,{type:i,target:this}))},s.prototype.getPlaceholder=function(i){return b(this._placeholders[i])?this._placeholders[i]:(this._placeholders[i]="__amcharts_"+i+"_"+Th(8)+"__",this._placeholders[i])},s.prototype.addToInvalidComponents=function(i){i.baseId?fe(this.invalidDatas[i.baseId],i):fe(this.invalidDatas.noBase,i)},s.prototype.removeFromInvalidComponents=function(i){i.baseId&&G(this.invalidDatas[i.baseId],i),G(this.invalidDatas.noBase,i)},s.prototype.addToInvalidSprites=function(i){i.baseId?pi(this.invalidSprites[i.baseId],i):pi(this.invalidSprites.noBase,i)},s.prototype.removeFromInvalidSprites=function(i){i.baseId&&G(this.invalidSprites[i.baseId],i),G(this.invalidSprites.noBase,i)},s.prototype.addToInvalidPositions=function(i){i.baseId?pi(this.invalidPositions[i.baseId],i):pi(this.invalidPositions.noBase,i)},s.prototype.removeFromInvalidPositions=function(i){i.baseId&&G(this.invalidPositions[i.baseId],i),G(this.invalidPositions.noBase,i)},s.prototype.addToInvalidLayouts=function(i){i.baseId?pi(this.invalidLayouts[i.baseId],i):pi(this.invalidLayouts.noBase,i)},s.prototype.removeFromInvalidLayouts=function(i){i.baseId&&G(this.invalidLayouts[i.baseId],i),G(this.invalidLayouts.noBase,i)},s}(),_=new Vh;function Qt(s,i){var t=_.registeredClasses[i];return t!=null&&s instanceof t}var ia=function(){function s(i,t,e){this._array=i,this._start=t,this._end=e}return s.prototype.iterator=function(){var i=this;return function(t){if(i._start!==i._end)if(i._start<i._end)for(var e=i._start;e<i._end&&t(i._array[e]);++e);else for(var e=i._start-1;e>=i._end&&t(i._array[e]);--e);}},s.prototype.backwards=function(){return new s(this._array,this._end,this._start)},s.prototype.range=function(i,t){if(i<=t){if(this._start===this._end)return this;if(this._start<this._end){var e=t-i;return i=Math.max(this._start+i,this._start),t=Math.min(i+e,this._end),new s(this._array,i,t)}else{var e=t-i;return i=Math.max(this._start-i,this._end),t=Math.max(i-e,this._end),new s(this._array,i,t)}}else throw new Error("Start index must be lower than end index")},s}();(function(s){w(i,s);function i(t,e,r){var n=s.call(this,[t.events.on("inserted",function(a){var o=a.newValue,l=n._getKey(o),h=0;he(t.iterator(),function(u){return u===o?!1:(n._getKey(u)===l&&++h,!0)}),n._insert(o,l,h)},void 0,!1),t.events.on("removed",function(a){n._remove(a.oldValue)},void 0,!1)])||this;return n._keys=[],n._groups={},n._getKey=e,n._sort=r,A(t.iterator(),function(a){n._insert(a,e(a))}),n}return i.prototype._insert=function(t,e,r){if(this._groups[e]==null){this._groups[e]=[];var n=Ar(this._keys,this._sort,e),a=n.found,o=n.index;
151if(a)throw new Error("Key already exists: "+e);Ri(this._keys,o,e)}r==null?this._groups[e].push(t):Ri(this._groups[e],r,t)},i.prototype._remove=function(t){var e=this._getKey(t),r=this._groups[e];if(r!=null&&(G(r,t),r.length===0)){delete this._groups[e];var n=Ar(this._keys,this._sort,e),a=n.found,o=n.index;if(a)vi(this._keys,o);else throw new Error("Key doesn't exist: "+e)}},i.prototype.iterator=function(){var t=this;return Oh(Ya(Qe(this._keys),function(e){return Qe(t._groups[e])}))},i})(Pt);var ft=function(s){w(i,s);function i(t,e){e===void 0&&(e=!0);var r=this;if(e){var n=t.events.on("removed",function(a){a.oldValue.dispose()},void 0,!1);r=s.call(this,function(){n.dispose(),A(t.iterator(),function(a){a.dispose()})})||this}else r=s.call(this,function(){A(t.iterator(),function(a){a.dispose()})})||this;return r}return i}(lt);function Di(s,i){if(!(s>=0&&s<i))throw new Error("Index out of bounds: "+s)}var rt=function(){function s(i){i===void 0&&(i=[]),this.events=new He,this._values=i}return Object.defineProperty(s.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),s.prototype.contains=function(i){return this._values.indexOf(i)!==-1},s.prototype.removeValue=function(i){for(var t=0,e=this._values.length;t<e;)this._values[t]===i?(this.removeIndex(t),--e):++t},s.prototype.indexOf=function(i){return me(this._values,i)},Object.defineProperty(s.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),s.prototype.hasIndex=function(i){return i>=0&&i<this._values.length},s.prototype.getIndex=function(i){return this._values[i]},s.prototype.setIndex=function(i,t){Di(i,this._values.length);var e=this._values[i];return e!==t&&(this._values[i]=t,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:i,oldValue:e,newValue:t}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t})),e},s.prototype.insertIndex=function(i,t){Di(i,this._values.length+1),Ri(this._values,i,t),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:i,newValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t})},s.prototype._sortQuicksort=function(i,t,e){if(i<t){var r=this._sortPartition(i,t,e);this._sortQuicksort(i,r,e),this._sortQuicksort(r+1,t,e)}},s.prototype._sortPartition=function(i,t,e){for(var r=this._values,n=r[i],a=i-1,o=t+1;;){do++a;while(e(r[a],n)<0);do--o;while(e(r[o],n)>0);if(a>=o)return o;this.swap(a,o)}},s.prototype.sort=function(i){this._sortQuicksort(0,this._values.length-1,i)},s.prototype.swap=function(i,t){var e=this._values.length;if(Di(i,e),Di(t,e),i!==t){var r=this._values[i],n=this._values[t];this._values[i]=n,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:i,oldValue:r,newValue:n}),this._values[t]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:n,newValue:r})}},s.prototype.removeIndex=function(i){Di(i,this._values.length);var t=this._values[i];return vi(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:t}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t}),t},s.prototype.moveValue=function(i,t){var e=this.indexOf(i);if(e!==-1){var r=this._values[e];vi(this._values,e),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:e,oldValue:r})}t==null?(t=this._values.length,this._values.push(i)):Ri(this._values,t,i),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:i}),e===-1&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:i})},s.prototype.push=function(i){var t=this._values.push(i)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:i}),i},s.prototype.unshift=function(i){this.insertIndex(0,i)},s.prototype.pushAll=function(i){var t=this;L(i,function(e){t.push(e)})},s.prototype.copyFrom=function(i){this.pushAll(i._values)},s.prototype.pop=function(){var i=this._values.length-1;return i<0?void 0:this.removeIndex(this._values.length-1)},s.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},s.prototype.setAll=function(i){var t=this,e=Ei(this._values);this._values.length=0,L(i,function(r){t._values.push(r)}),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:e,newArray:this._values}),this.events.isEnabled("removed")&&L(e,function(r){t.events.dispatchImmediately("removed",{type:"removed",target:t,oldValue:r})}),this.events.isEnabled("inserted")&&L(this._values,function(r){t.events.dispatchImmediately("inserted",{type:"inserted",target:t,newValue:r})})},s.prototype.clear=function(){this.setAll([])},s.prototype.iterator=function(){return Qe(this._values)},s.prototype[Symbol.iterator]=function(){var i,t;return st(this,function(e){switch(e.label){case 0:i=this._values.length,t=0,e.label=1;case 1:return t<i?[4,this._values[t]]:[3,4];case 2:e.sent(),e.label=3;case 3:return++t,[3,1];case 4:return[2]}})},s.prototype.each=function(i){L(this._values,i)},s.prototype.range=function(i,t){if(i<=t){var e=t-i;return i=Math.max(i,0),t=Math.min(i+e,this._values.length),new ia(this._values,i,t)}else throw new Error("Start index must be lower than end index")},s.prototype.backwards=function(){return new ia(this._values,this._values.length,0)},s}(),Ct=function(s){w(i,s);function i(t){var e=s.call(this)||this;return e.template=t,e}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){var e=this;A(t.iterator(),function(r){e.push(r.clone())})},i.prototype.create=function(t){var e=t!=null?new t:this.template.clone();return this.push(e),e},i.prototype.clone=function(){for(var t=new i(this.template),e=this.values,r=e.length,n=0;n<r;++n)t.push(e[n].clone());return t},i}(rt),Ua=function(){function s(i){this._values=[],this.events=new He,i!=null&&this.setAll(i)}return Object.defineProperty(s.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),s.prototype._insert=function(i){return this._values.push(i),this._values.length-1},Object.defineProperty(s.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),s.prototype.indexOf=function(i){return me(this._values,i)},s.prototype.contains=function(i){return this.indexOf(i)!==-1},s.prototype.getIndex=function(i){return this._values[i]},Object.defineProperty(s.prototype,"first",{get:function(){return this._values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"last",{get:function(){return this._values[this._values.length-1]},enumerable:!0,configurable:!0}),s.prototype.insert=function(i){var t=this._insert(i);this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,index:t,newValue:i})},s.prototype.remove=function(i){var t=this.indexOf(i);if(t!==-1){var e=this._values[t];vi(this._values,t),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,index:t,oldValue:e})}},s.prototype.setAll=function(i){var t=this;dh(this._values,function(e,r){t._values.pop(),t.events.isEnabled("removed")&&t.events.dispatchImmediately("removed",{type:"removed",target:t,index:r,oldValue:e})}),L(i,function(e){t.insert(e)})},s.prototype.clear=function(){this.setAll([])},s.prototype.slice=function(i,t){var e=new s;return e._values=this._values.slice(i,t),e},s.prototype.findClosestIndex=function(i,t,e){e===void 0&&(e="any");var r=-1,n,a,o=0;return he(this.iterator(),function(l){var h=t(l);if(e==="any"){if(h===i)return r=o,!1;var u=Math.abs(i-h);(!b(a)||a>u)&&(r=o,n=h,a=u)}else e==="left"&&h<i?(!b(n)||n<h)&&(r=o,n=h):e==="right"&&h>=i&&(!b(n)||n>=h)&&(r=o,n=h);return++o,!0}),r===-1&&(e==="left"?r=0:e==="right"&&(r=this.length-1)),r},s.prototype.iterator=function(){return Qe(this._values)},s.prototype[Symbol.iterator]=function(){var i,t;return st(this,function(e){switch(e.label){case 0:i=this._values.length,t=0,e.label=1;case 1:return t<i?[4,this._values[t]]:[3,4];case 2:e.sent(),e.label=3;case 3:return++t,[3,1];case 4:return[2]}})},s.prototype.each=function(i){L(this._values,i)},s}(),ys=function(s){w(i,s);function i(t){var e=s.call(this)||this;return e._ordering=t,e}return i.prototype._insert=function(t){var e=Ar(this._values,this._ordering,t).index;return Ri(this._values,e,t),e},i.prototype.indexOf=function(t){var e=Ar(this._values,this._ordering,t),r=e.found,n=e.index;return r?n:-1},i.prototype.update=function(t){var e=me(this._values,t);
151if(e!==-1){var r=this._values.length-1;(e===0||this._ordering(this._values[e-1],t)<0)&&(e===r||this._ordering(t,this._values[e+1])<0)||(vi(this._values,e),this._insert(t))}},i}(Ua),Fr=function(s){w(i,s);function i(t){var e=s.call(this)||this;return e.template=t,e}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){var e=this;A(t.iterator(),function(r){e.insert(r.clone())})},i.prototype.slice=function(t,e){var r=new i(this.template);return r._values=this._values.slice(t,e),r},i.prototype.create=function(t){var e=t!=null?new t:this.template.clone();return this.insert(e),e},i}(Ua),Ga=function(s){w(i,s);function i(t,e){var r=s.call(this,e)||this;return r.template=t,r}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(t){t.isTemplate=!0,this._template=t},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){var e=this;A(t.iterator(),function(r){e.insert(r.clone())})},i.prototype.create=function(t){var e=t!=null?new t:this.template.clone();return this.insert(e),e},i}(ys);function Te(s,i){return s===i?0:s<i?-1:1}function Bn(s){switch(s){case 0:return 0;case-1:return 1;case 1:return-1}}function Ka(s,i){return s===0?i:s}var Ah=function(){function s(){this._callbackId=0,this._callbacks=new ys(function(i,t){return Ka(Te(i.priority,t.priority),Te(i.id,t.id))})}return s.prototype.addAll=function(i,t,e,r,n){r===void 0&&(r=0),this._callbacks.insert({id:++this._callbackId,key:t,callback:e,priority:r,scope:n,type:i})},s.prototype.isEnabled=function(i,t){return us(this._callbacks.values,function(e){return e.key===t&&i instanceof e.type})},s.prototype.applyAll=function(i,t,e){var r=this._callbacks.values,n=r.length;if(n==0)return e;for(var a=0;a<n;++a){var o=r[a];o.key===t&&i instanceof o.type&&(e=o.callback.call(o.scope,e,i,t))}return e},s}(),Wn=new Ah,ne=function(){function s(i){this._callbackId=0,this._callbacks=new ys(function(t,e){return Ka(Te(t.priority,e.priority),Te(t.id,e.id))}),this._disabled={},this.object=i,this.events=this._callbacks.events}return s.prototype.add=function(i,t,e,r){e===void 0&&(e=0),this._callbacks.insert({id:++this._callbackId,key:i,callback:t,priority:e,scope:r})},s.prototype.has=function(i,t,e,r){return e===void 0&&(e=0),fs(this._callbacks.iterator(),function(n){return n.key===i&&n.callback===t&&n.priority===e&&n.scope===r})},s.prototype.remove=function(i,t){var e=this;L(Bi(this._callbacks.iterator()),function(r){r.key===i&&(!v(t)||t===r.priority)&&e._callbacks.remove(r)})},s.prototype.enableKey=function(i){delete this._disabled[i]},s.prototype.disableKey=function(i,t){t===void 0&&(t=1/0),this._disabled[i]=t},s.prototype._hasListenersByType=function(i){return us(this._callbacks.values,function(t){return t.key===i})},s.prototype.isEnabled=function(i){return this._disabled[i]==null&&(this._hasListenersByType(i)||Wn.isEnabled(this.object,i))},s.prototype._shouldDispatch=function(i){var t=this._disabled[i];return v(t)?(t<=1?delete this._disabled[i]:--this._disabled[i],!1):!0},s.prototype.apply=function(i,t){if(this._shouldDispatch(i)){var e=this._callbacks.values,r=e.length;if(r>0)for(var n=0;n<r;++n){var a=e[n];a.key===i&&(t=a.callback.call(a.scope,t,this.object,i))}return t=Wn.applyAll(this.object,i,t),t}else return t},s.prototype.keys=function(){return Bi(Ya(this._callbacks.iterator(),function(i){return i.key}))},s.prototype.copyFrom=function(i){var t=this;A(i._callbacks.iterator(),function(e){t.add(e.key,e.callback,e.priority,e.scope)}),U(i._disabled,function(e,r){t._disabled[e]=r})},s.prototype.clear=function(){this._callbacks.clear()},s}(),ra={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgrey:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32}
151,gray:{r:128,g:128,b:128},grey:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgrey:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function Fh(s,i){var t;return ra[s]?t=ra[s]:s.charAt(0)==="#"?t=Ih(s):s.match(/^rgba?\(/)&&(t=jh(s)),t||(t={r:0,g:0,b:0,a:1}),b(i)&&(t.a=i),t}function Ih(s){var i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;s=s.replace(i,function(e,r,n,a){return r+r+n+n+a+a});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:Mh(s)}function Mh(s){var i=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])$/i;s=s.replace(i,function(e,r,n,a,o){return r+r+n+n+a+a+o+o});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:parseInt(t[4],16)/256}:void 0}function jh(s){s=s.replace(/[ ]/g,"");var i=s.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(i)i.push("1");else if(i=s.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!i)return;return{r:parseInt(i[1]),g:parseInt(i[2]),b:parseInt(i[3]),a:parseFloat(i[4])}}function Lh(s){return"#"+Pn(s.r.toString(16))+Pn(s.g.toString(16))+Pn(s.b.toString(16))}function Eh(s){return b(s.a)&&s.a!==1?"rgba("+s.r+","+s.g+","+s.b+","+s.a+")":"rgb("+s.r+","+s.g+","+s.b+")"}function Pn(s){return s.length==1?"0"+s:""+s}function Ir(s,i,t){return t=B(t,0,1),s?i?{r:s.r+Math.round((i.r-s.r)*t),g:s.g+Math.round((i.g-s.g)*t),b:s.b+Math.round((i.b-s.b)*t),a:(s.a||1)+Math.round(((i.a||1)-(s.a||1))*t)}:s:i||s}function Rh(s,i){return s&&{r:Math.max(0,Math.min(255,s.r+gr(s.r,i))),g:Math.max(0,Math.min(255,s.g+gr(s.g,i))),b:Math.max(0,Math.min(255,s.b+gr(s.b,i))),a:s.a}
151}function gr(s,i){var t=i>0?255-s:s;return Math.round(t*i)}function Bh(s,i){if(s){var t=Math.min(Math.max(s.r,s.g,s.b),230),e=gr(t,i);return{r:Math.max(0,Math.min(255,Math.round(s.r+e))),g:Math.max(0,Math.min(255,Math.round(s.g+e))),b:Math.max(0,Math.min(255,Math.round(s.b+e))),a:s.a}}else return s}function Wh(s,i){if(s==null||i==1)return s;var t=vr(s);return t.s=i,qa(t)}function qa(s){var i,t,e,r=s.h,n=s.s,a=s.l;if(n==0)i=t=e=a;else{var o=function(p,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<.16666666666666666?p+(d-p)*6*f:f<.5?d:f<.6666666666666666?p+(d-p)*(.6666666666666666-f)*6:p},l=a<.5?a*(1+n):a+n-a*n,h=2*a-l;i=o(h,l,r+1/3),t=o(h,l,r),e=o(h,l,r-1/3)}return{r:Math.round(i*255),g:Math.round(t*255),b:Math.round(e*255)}}function vr(s){var i=s.r/255,t=s.g/255,e=s.b/255,r=Math.max(i,t,e),n=Math.min(i,t,e),a=0,o=0,l=(r+n)/2;if(r===n)a=o=0;else{var h=r-n;switch(o=l>.5?h/(2-r-n):h/(r+n),r){case i:a=(t-e)/h+(t<e?6:0);break;case t:a=(e-i)/h+2;break;case e:a=(i-t)/h+4;break}a/=6}return{h:a,s:o,l}}function Hh(s){return(s.r*299+s.g*587+s.b*114)/1e3>=128}var it=function(){function s(i){this._value=i}return Object.defineProperty(s.prototype,"rgb",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hex",{get:function(){return this._value?Lh(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rgba",{get:function(){return this._value?Eh(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"alpha",{get:function(){return this._value!=null&&this._value.a!=null?this._value.a:1},set:function(i){this._value&&(this._value.a=i)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"lightColor",{get:function(){return this._lightColor||(this._lightColor=new s({r:255,g:255,b:255})),this._lightColor},set:function(i){this._lightColor=i},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"darkColor",{get:function(){return this._darkColor||(this._darkColor=new s({r:0,g:0,b:0})),this._darkColor},set:function(i){this._darkColor=i},enumerable:!0,configurable:!0}),s.prototype.toString=function(){return this.alpha<1?this.rgba:this.hex},s.prototype.lighten=function(i){return new s(Rh(this.rgb,i))},s.prototype.brighten=function(i){return new s(Bh(this.rgb,i))},s.prototype.saturate=function(i){return new s(Wh(this.rgb,i))},Object.defineProperty(s.prototype,"alternative",{get:function(){if(this.rgb!=null)return Hh(this.rgb)?this.darkColor:this.lightColor;throw new Error("Color does not exist")},enumerable:!0,configurable:!0}),s}();function H(s,i){if(!b(s))return new it(void 0);if(typeof s=="string"){var t="_color_"+s+"_"+(i||"1"),e=_.getCache(t);if(e)return new it({r:e.r,g:e.g,b:e.b,a:e.a});var r=Fh(s,i);return _.setCache(t,r),new it(r)}return s instanceof it?(b(i)&&(s.alpha=i),s):new it(s)}function Nh(s){return s instanceof it}function zh(s){return H(s)}function pe(s){return b(s)&&!Nh(s)?zh(s):s}var $t=function(){function s(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return s.prototype.debug=function(){},Object.defineProperty(s.prototype,"uid",{get:function(){return this._uid||(this._uid=_.getUniqueId(),_.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"id",{get:function(){return this._id},set:function(i){this._id=i},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"map",{get:function(){return this._map||(this._map=new ct),this._map},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"delayedMap",{get:function(){return this._delayedMap||(this._delayedMap=new ct),this._delayedMap},enumerable:!0,configurable:!0}),s.prototype.addDelayedMap=function(i,t){var e=this.delayedMap;e.hasKey(t)||e.setKey(t,[]);var r=e.getKey(t);r.push({property:i,target:this})},s.prototype.processDelayedMap=function(){var i=this;this.delayedMap.each(function(t,e){if(i.map.hasKey(t)){var r=i.map.getKey(t);L(e,function(n){n.target[n.property]=r}),i.delayedMap.removeKey(t)}})},s.prototype.applyTheme=function(){var i=this;if(_){var t=this.getCurrentThemes();t&&L(t,function(e,r){e(i)})}},Object.defineProperty(s.prototype,"themes",{get:function(){return this._themes},set:function(i){this._themes=i},enumerable:!0,configurable:!0}),s.prototype.getCurrentThemes=function(){return this.themes||_.themes},s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var i=this._disposers;for(this._disposers=null;i.length!==0;){var t=i.shift();t.dispose()}this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var e=this._uid;e!=null&&_.map.removeKey(e)}},s.prototype.addDisposer=function(i){this._disposers.push(i)},s.prototype.removeDispose=function(i){if(!this._disposed){var t=me(this._disposers,i);t>-1&&this._disposers.splice(t,1)}i.dispose()},s.prototype.clone=function(i){i||(i="clone-"+_.getUniqueId());var t=new this.constructor;return t.cloneId=i,t.copyFrom(this),t},Object.defineProperty(s.prototype,"clones",{get:function(){return this._clones||(this._clones=new rt),this._clones},enumerable:!0,configurable:!0}),s.prototype.copyFrom=function(i){i.clones.push(this),this.clonedFrom=i},Object.defineProperty(s.prototype,"className",{get:function(){return this._className},set:function(i){this._className=i},enumerable:!0,configurable:!0}),s.prototype.setCache=function(i,t,e){Ii.set(this.uid,i,t,e)},s.prototype.getCache=function(i,t){return t===void 0&&(t=void 0),Ii.get(this.uid,i,t)},s.prototype.clearCache=function(){Ii.clear(this.uid)},s.prototype.setTimeout=function(i,t){var e=this,r=setTimeout(function(){e.removeDispose(n),i()},t),n=new lt(function(){clearTimeout(r)});return this._disposers.push(n),n},s.prototype.setInterval=function(i,t){var e=this,r=setInterval(function(){e.removeDispose(n),i()},t),n=new lt(function(){clearTimeout(r)});return this._disposers.push(n),n},Object.defineProperty(s.prototype,"config",{set:function(i){try{this.processConfig(i)}catch(t){this.raiseCriticalError(t)}},enumerable:!0,configurable:!0}),s.prototype.processConfig=function(i){var t=this;if(i){var e=this;if(Fe(i,function(n,a){var o=a;if(n=="callback"&&typeof a=="function"&&a.call(e),t.hasProperty(n)){var l;if(gt(o)&&b(o.type)&&(!gt(e[n])||!b(e[n].className)||o.forceCreate||e[n].className!=o.type)&&!t.asIs(n)?(l=t.createClassInstance(o.type),l?e[n]=l:l=e[n]):l=e[n],l instanceof ne)t.processAdapters(l,o);else if(l instanceof He)t.processEvents(l,o);else if(n=="locale"&&tt(o))window["am4lang_"+o]&&(e[n]=window["am4lang_"+o]);else if(n=="parent"&&tt(o)){var h=t.map.getKey(o);h?e[n]=h:t.addDelayedMap("parent",o)}else if(t.asIs(n))e[n]=o;else if(t.asFunction(n)&&tt(o))if(b(_.registeredClasses[o]))e[n]=_.registeredClasses[o];else throw Error("Invalid easing function: "+o);else if(o instanceof s)e[n]=o;else if(l instanceof s)l.config=o;else if(l instanceof Ct||l instanceof Fr||l instanceof Ga){if(Wt(o))l instanceof Ct?t.processListTemplate(o,l):t.processOrderedTemplate(o,l);else if(gt(o))if(o instanceof s)l.template=o;else{var u=void 0;b(o.template)?u=o.template:u=o,l.template instanceof s?l.template.config=u:U(u,function(p,d){var f=l.template[p];f instanceof ne?t.processAdapters(f,d):f instanceof He?t.processEvents(f,d):f instanceof Wi?t.processDictionaryTemplate(f,d):l.template[p]instanceof s?l.template[p].config=d:gt(d)&&b(d.type)?(f=t.createClassInstance(d.type),f?(f instanceof s&&(f.config=d),l.template[p]=f):l.template[p]=d):f instanceof rt?t.processList(d,f):l.template[p]=t.maybeColorOrPercent(d)}),b(o.values)&&(l instanceof Ct?t.processListTemplate(o.values,l):t.processOrderedTemplate(o.values,l))}}else l instanceof rt?n=="children"?t.processList(o,l,t):t.processList(o,l):l instanceof Wi?t.processDictionaryTemplate(l,o):l instanceof ct?t.processDictionary(l,o):l instanceof it||l instanceof Q?e[n]=t.maybeColorOrPercent(o):gt(l)&&gt(o)?Oi(o,l):(o=t.maybeColorOrPercent(o),e[n]=o)}else t.isReserved(n)||(e[n]=o)},this.configOrder),this.processingErrors.length){var r=this.processingErrors.join(`
152`);throw this._processingErrors=[],Error(r)}}},s.prototype.maybeColorOrPercent=function(i){if(tt(i)){if(i.match(/^[\-]?[0-9.]+\%$/))return I(dt(i));if(i.match(/^\#[0-9abcdef]{3,}$/i))return H(i)}return i},s.prototype.processAdapters=function(i,t){var e=this;Wt(t)?L(t,function(r,n){i.add(r.key,r.callback,r.priority||0,e)}):gt(t)&&U(t,function(r,n){i.has(r,n)||i.add(r,n)})},s.prototype.processEvents=function(i,t){var e=this;Wt(t)?L(t,function(r,n){i.on(r.type,r.callback,e)}):gt(t)&&U(t,function(r,n){i.has(r,n)||i.on(r,n)})},s.prototype.processDictionaryTemplate=function(i,t){gt(t)&&U(t,function(e,r){var n;e=="template"?n=i.template:i.hasKey(e)?n=i.getKey(e):n=i.create(e),n instanceof s?n.config=r:gt(n)&&gt(r)?Oi(r,n):n.setKey(e,r)})},s.prototype.processDictionary=function(i,t){gt(t)&&U(t,function(e,r){i.setKey(e,r)})},s.prototype.processListTemplate=function(i,t){var e=this;for(L(i,function(r,n){var a=e.getConfigEntryType(r),o;if(t.hasIndex(n)&&!r.forceCreate)o=t.getIndex(n);else if(r instanceof s){t.push(r);return}else a?o=t.create(a):o=t.create();
152r===o||gt(r)&&(o instanceof s?o.config=r:gt(o)&&gt(r)?Oi(r,o):t.setIndex(t.indexOf(o),r))});i.length>t.length;)t.pop()},s.prototype.processOrderedTemplate=function(i,t){var e=this;L(i,function(r,n){var a=e.getConfigEntryType(r),o;a?o=t.create(a):o=t.create(),gt(r)&&(o instanceof s?o.config=r:gt(o)&&gt(r)?Oi(r,o):t.insert(r))})},s.prototype.processList=function(i,t,e){var r=this;Wt(i)||(i=[i]);var n=t.length,a=0;for(L(i,function(o,l){if(gt(o)){var h=void 0;if(l<n&&!o.forceCreate)h=t.getIndex(l);else if(o instanceof s){t.push(o);return}else a++,h=r.createEntryInstance(o),e?h.parent=e:t.push(h);h instanceof s?h.config=o:gt(h)&&gt(o)&&Oi(o,h)}else t.hasIndex(l)?t.setIndex(l,o):t.push(o)});!e&&i.length+a<t.length;)t.pop()},s.prototype.configOrder=function(i,t){return i==t?0:i=="language"?-1:t=="language"?1:0},s.prototype.asIs=function(i){return me(["locale"],i)!=-1},s.prototype.asFunction=function(i){return!1},s.prototype.createClassInstance=function(i){if(b(_.registeredClasses[i]))return new _.registeredClasses[i];throw Error('Invalid type: "'+i+'".')},s.prototype.createEntryInstance=function(i){var t;return b(i.type)&&(t=this.createClassInstance(i.type)),t||i},s.prototype.getConfigEntryType=function(i){if(b(i.type)){if(b(_.registeredClasses[i.type]))return _.registeredClasses[i.type];throw Error('Invalid type: "'+i.type+'".')}},s.prototype.hasProperty=function(i){return i in this},s.prototype.isReserved=function(i){return["type","forceCreate"].indexOf(i)!==-1},Object.defineProperty(s.prototype,"processingErrors",{get:function(){return this._processingErrors||(this._processingErrors=[]),this._processingErrors},enumerable:!0,configurable:!0}),s}(),Ve=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="BaseObjectEvents",t}return Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher||(this._eventDispatcher=new He,this._disposers.push(this._eventDispatcher)),this._eventDispatcher},enumerable:!0,configurable:!0}),i.prototype.dispatch=function(t,e){this._eventDispatcher&&this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},i.prototype.dispatchImmediately=function(t,e){this._eventDispatcher&&this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),t._eventDispatcher&&this.events.copyFrom(t._eventDispatcher)},i}($t);function Xh(){return/apple/i.test(navigator.vendor)}function Yh(){return/MSIE |Trident\//.test(navigator.userAgent)}var na="string",mr="number",br="date",Hn="duration",le="__§§§__",ci="__§§§§__";function Me(s,i){return U(s,function(t,e){b(e)&&(i[t]=e)}),i}function sa(s){return/^[^#]*/.exec(s)[0]}function Vi(){var s="#";if(Xh()){var i=document.baseURI;if(i){i=sa(i);var t=sa(location.href);i!==t&&(s=t+s)}}return s}function Uh(s,i){return U(s,function(t,e){i[t]=e}),i}function Mr(s){return b(s)&&s.toString()!==""}function bt(s,i){return v(s)?s:s!=null&&v(s.value)&&v(i)?i*s.value:0}function Bt(s,i,t){var e;return v(s)?(e=s,e<0&&(t?e=i+e:e=i-e)):s!=null&&v(s.value)&&(e=i*s.value),e}function Gh(){var s=window.devicePixelRatio||1;return s}function jr(s){var i=s.split("");return i[0]=i[0].toUpperCase(),i.join("")}function aa(s){return JSON.stringify(s)}function Nn(s){return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function zn(s,i,t,e,r){if(s.length<=i)return[s];var n=[];if(t){for(var a=-1,o=s.replace(/([,;:!?\\\/]+|[\s])/g,le+"$1"+le),l=o.split(le),h=1;h<l.length;h++){var u=l[h];(u=="."||u==",")&&l[h-1].match(/[\w]+$/)&&(l[h-1]+=u,l[h]="")}for(var h=0;h<l.length;h++){var u=l[h],p=u.length;if(p!==0){if(p>i&&(t!==!0||r!=!1)){e&&(u=Cn(u));var d=u.match(new RegExp(".{1,"+i+"}","g"));if(d){if(e)for(var f=0;f<d.length;f++)d[f]=Cn(d[f]);n=n.concat(d)}}else a===-1&&(n.push(""),a=0),n[a].length+p+1>i&&n[a]!==""&&(n.push(""),a++),n[a]+=u;a=n.length-1}}}else{var d=s.match(new RegExp(".{1,"+i+"}","g"));if(d){if(e)for(var f=0;f<d.length;f++)e||(d[f]=Cn(d[f]));n=d}}return n.length==1&&t&&r&&n[0].length>i&&(n=[]),n}function Xn(s,i,t,e,r){if(s.length<=i)return s;i-=t.length,i<1&&(i=1);var n=zn(s,i,e,r);return(n[0]||"")+t}function Za(s){return s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function Kh(s){return s.replace(/[\s\uFEFF\xA0]+$/g,"")}function qh(s){return s.replace(/^[\s\uFEFF\xA0]+/g,"")}function Cn(s){return s.split("").reverse().join("")}function Ut(s,i,t){return i===void 0&&(i=0),t===void 0&&(t="0"),typeof s!="str
152ing"&&(s=s.toString()),i>s.length?Array(i-s.length+1).join(t)+s:s}function Zh(s){if(typeof s>"u")return na;s=s.toLowerCase().replace(/^\[[^\]]*\]/,""),s=s.replace(/\[[^\]]+\]/,""),s=s.trim();var i=s.match(/\/(date|number|duration)$/);return i?i[1]:s===mr?mr:s===br?br:s===Hn?Hn:s.match(/[#0]/)?mr:s.match(/[ymwdhnsqaxkzgtei]/)?br:na}function Lr(s){return s.replace(/\/(date|number|duration)$/i,"")}function $a(s){return s&&s.replace(/<[^>]*>/g,"")}function Yn(s){return s&&$a((""+s).replace(/[\n\r]+/g,". "))}function $h(s){if(Gt(s))return"NaN";if(s===1/0)return"Infinity";if(s===-1/0)return"-Infinity";if(s===0&&1/s===-1/0)return"-0";var i=s<0;s=Math.abs(s);var t=xt(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+s)),e=t[1],r=t[2]||"",n;if(t[3]==null)n=r===""?e:e+"."+r;else{var a=+t[3];if(s<1){var o=a-1;n="0."+ea("0",o)+e+r}else{var o=a-r.length;o===0?n=e+r:o<0?n=e+r.slice(0,o)+"."+r.slice(o):n=e+r+ea("0",o)}}return i?"-"+n:n}function Ja(s){if(Li(s)){var i=new Date(s);return i.setMilliseconds(s.getMilliseconds()),i}else{if(v(s))return new Date(s);var t=Number(s);return v(t)?new Date(t):new Date(s)}}function Un(s){if(Li(s))return s.getTime();if(v(s))return s;if(tt(s)){var i=Number(s);return v(i)?i:void 0}}function oa(s,i){var t=new Date(s.getFullYear(),0,0),e=s.getTime()-t.getTime()+(t.getTimezoneOffset()-s.getTimezoneOffset())*60*1e3,r=1e3*60*60*24;return Math.floor(e/r)}function Er(s,i){var t=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate())),e=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-e);var r=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-r.getTime())/864e5+1)/7)}function Jh(s,i){var t=Er(new Date(s.getFullYear(),s.getMonth(),1)),e=Er(s);return e==1&&(e=53),e-t+1}function Qh(s,i,t,e){e===void 0&&(e=!1);var r=new Date(i,0,4,0,0,0,0);e&&r.setUTCFullYear(i);var n=s*7+t-((r.getDay()||7)+3);return n}function pr(s,i){return s>12?s-=12:s===0&&(s=12),b(i)?s+(i-1):s}function dr(s,i,t,e){if(i===void 0&&(i=!1),t===void 0&&(t=!1),e===void 0&&(e=!1),e)return i?"Coordinated Universal Time":"UTC";var r=s.toLocaleString("UTC"),n=s.toLocaleString("UTC",{timeZoneName:i?"long":"short"}).substr(r.length);return t===!1&&(n=n.replace(/ (standard|daylight|summer|winter) /i," ")),n}function tu(s,i){var t=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate())),e=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-e);var r=new Date(Date.UTC(t.getUTCFullYear(),0,1));return r.getFullYear()}function wn(s,i,t){return s>t?t:s<i?i:s}function Sn(s,i,t){var e=t-i;return(s>t||s<i)&&(s=i+(s-e*Math.floor(s/e))),s}function be(s,i){var t=s.x,e=s.y,r=[];if(i){for(;b(i.parent);)r.push(i),i=i.parent;r.reverse();for(var n=0;n<r.length;n++){var a=r[n],o=a.rotation,l=t-a.pixelX-a.ex,h=e-a.pixelY-a.ey;a.dx&&(t-=a.dx),a.dy&&(e-=a.dy);var u=a.scale;a.group&&(u=a.group.scale),t=(j(-o)*l-M(-o)*h)/u-a.pixelPaddingLeft,e=(j(-o)*h+M(-o)*l)/u-a.pixelPaddingTop}}return{x:t,y:e}}function de(s,i){var t=s.x,e=s.y;if(i)for(;b(i.parent);){var r=i.rotation;t+=i.pixelPaddingLeft+i.ex,e+=i.pixelPaddingTop+i.ey;var n=i.scale;i.group&&(n=i.group.scale);var a=i.pixelX+(t*j(r)-e*M(r))*n,o=i.pixelY+(t*M(r)+e*j(r))*n;i.dx&&(a+=i.dx),i.dy&&(o+=i.dy),t=a,e=o,i=i.parent}return{x:t,y:e}}function ee(s,i,t){return be(de(s,i),t)}function gs(s,i){var t=de(s,i),e=de({x:s.x+s.width,y:s.y+s.height},i);return{x:t.x,y:t.y,width:e.x-t.x,height:e.y-t.y}}function Re(s,i,t){try{var e=i.getBoundingClientRect();return v(t)||(t=1),{x:(s.x-e.left)/t,y:(s.y-e.top)/t}}catch{return s}}function Qa(s,i){try{var t=i.getBoundingClientRect();return{x:s.x+t.left,y:s.y+t.top}}catch{return s}}function gi(s,i){if(i&&i.htmlContainer){var t=Re(s,xt(i.htmlContainer),i.svgContainer.cssScale);return be(t,i)}else return s}function Gn(s,i){if(i&&i.htmlContainer){var t=de(s,i);return Qa(t,xt(i.htmlContainer))}else return s}function eu(s){var i=getComputedStyle(s),t=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),e=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth);return s.clientWidth-t-e}function iu(s){var i=getComputedStyle(s),t=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),e=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth);return s.clientHeight-t-e}function ru(s){var i=(""+s).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return i?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0}var nu=/^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;function la(s){var i=nu.exec(s);return{protocol:i&&i[1]||"",separator:i&&i[2]||"",authority:i&&i[3]||"",domain:i&&i[4]||"",port:i&&i[5]||"",path:i&&i[6]||"",query:i&&i[7]||"",hash:i&&i[8]||""}}function ha(s){return s.protocol+s.separator+s.authority+s.domain+s.port+s.path+s.query+s.hash}function ua(s){return s.protocol===""&&s.separator===""&&s.authority===""&&s.domain===""&&s.port===""}function vs(s,i){var t=la(s),e=la(i);if(ua(t))throw new Error("Left URL is not absolute");if(ua(e)){if(e.path!=="")if(e.path[0]==="/")t.path=e.path;else{var r=t.path.split(/\//),n=e.path.split(/\//);if(r.length===0?n.length!==0&&r.push(""):r.length>1&&r.pop(),ch(r,n),t.path=r.join("/"),t.path!==""&&t.path[0]!=="/")throw new Error("URL path must start with /")}return t.query=e.query,t.hash=e.hash,ha(t)}else return ha(e)}function Hi(){return!!window.MSInputMethodContext&&!!document.documentMode}function to(s){return+s}_.registeredClasses["ease.linear"]=to;function su(s){return s*s}_.registeredClasses["ease.quadIn"]=su;function au(s){return s*(2-s)}_.registeredClasses["ease.quadOut"]=au;function ou(s){return s*=2,(s<=1?s*s:--s*(2-s)+1)/2}_.registeredClasses["ease.quadInOut"]=ou;function eo(s,i){return Math.pow(s,i)}_.registeredClasses["ease.polyIn"]=eo;function io(s,i){return 1-Math.pow(1-s,i)}_.registeredClasses["ease.polyOut"]=io;function ro(s,i){return s*=2,(s<=1?Math.pow(s,i):2-Math.pow(2-s,i))/2}_.registeredClasses["ease.polyInOut"]=ro;function lu(s){return eo(s,3)}_.registeredClasses["ease.polyIn3"]=lu;function Kn(s){return io(s,3)}_.registeredClasses["ease.polyOut3"]=Kn;function hu(s){return ro(s,3)}_.registeredClasses["ease.polyInOut3"]=hu;function uu(s){return Math.pow(2,10*s-10)}_.registeredClasses["ease.expIn"]=uu;function pu(s){return 1-Math.pow(2,-10*s)}_.registeredClasses["ease.expOut"]=pu;function du(s){return s*=2,(s<=1?Math.pow(2,10*s-10):2-Math.pow(2,10-10*s))/2}_.registeredClasses["ease.expInOut"]=du;function fu(s){return 1-Math.cos(s*Ia)}_.registeredClasses["ease.sinIn"]=fu;function no(s){return Math.sin(s*Ia)}_.registeredClasses["ease.sinOut"]=no;function cu(s){return(1-Math.cos(qr*s))/2}_.registeredClasses["ease.sinInOut"]=cu;function so(s){return s*s*s}_.registeredClasses["ease.cubicIn"]=so;function ii(s){return--s*s*s+1}_.registeredClasses["ease.cubicOut"]=ii;function yu(s){return s*=2,(s<=1?s*s*s:(s-=2)*s*s+2)/2}_.registeredClasses["ease.cubicInOut"]=yu;function gu(s){return 1-Math.sqrt(1-s*s)}_.registeredClasses["ease.circleIn"]=gu;function vu(s){return Math.sqrt(1- --s*s)}_.registeredClasses["ease.circleOut"]=vu;function mu(s){return s*=2,(s<=1?1-Math.sqrt(1-s*s):Math.sqrt(1-(s-=2)*s)+1)/2}_.registeredClasses["ease.circleInOut"]=mu;var qn=4/11,bu=6/11,xu=8/11,_u=3/4,Pu=9/11,Cu=10/11,wu=15/16,Su=21/22,Ou=63/64,fr=1/qn/qn;function Du(s){return 1-Rr(1-s)}_.registeredClasses["ease.bounceIn"]=Du;function Rr(s){return s=+s,s<qn?fr*s*s:s<xu?fr*(s-=bu)*s+_u:s<Cu?fr*(s-=Pu)*s+wu:fr*(s-=Su)*s+Ou}_.registeredClasses["ease.bounceOut"]=Rr;function Tu(s){return s*=2,(s<=1?1-Rr(1-s):Rr(s-1)+1)/2}_.registeredClasses["ease.bounceInOut"]=Tu;var ku=2*Math.PI,Ni=1,zi=.3/ku,Br=Math.asin(1/Ni)*zi;function Vu(s){return Ni*Math.pow(2,10*--s)*Math.sin((Br-s)/zi)}_.registeredClasses["ease.elasticIn"]=Vu;function Au(s){return 1-Ni*Math.pow(2,-10*(s=+s))*Math.sin((s+Br)/zi)}_.registeredClasses["ease.elasticOut"]=Au;function Fu(s){return s=s*2-1,(s<0?Ni*Math.pow(2,10*s)*Math.sin((Br-s)/zi):2-Ni*Math.pow(2,-10*s)*Math.sin((Br+s)/zi))/2}_.registeredClasses["ease.elasticInOut"]=Fu;var Wr=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.transitionDuration=0,t.transitionEasing=ii,t.properties={},t.propertyFields={},t.filters=new rt,t.isTemplate=!1,t.className="SpriteState",t._disposers.push(new ft(t.filters)),t.applyTheme(),t}return Object.defineProperty(i.prototype,"adapter",{get:function(){var t=this;return this._adapterO||(this._adapterO=new ne(this),this._adapterO.events.on("inserted",function(e){t[e.newValue.key]=t[e.newValue.key]},void 0,!1),this._adapterO.events.on("removed",function(e){t[e.newValue.key]=t[e.newValue.key]},void 0,!1)),this._adapterO},enumerable:!0,configurable:!0}),i.prototype.getPropertyValue=function(t){var e=this.properties[t],r=this.sprite;if(r){var n=this.propertyFields[t];if(b(n)&&(r.dataItem&&(e=r.dataItem.dataContext[n]),e==null&&(e="__unset")),b(e))this._adapterO&&(e=this._adapterO.apply(t,e));else{var a=r.getPropertyValue(t);this._adapterO?e=this._adapterO.apply(t,a):e=a,e==a&&(e=void 0)}}return e},i.prototype.copyFrom=function(t){t&&t!=this&&(this.transitionDuration=t.transitionDuration,this.transitionEasing=t.transitionEasing,Me(t.properties,this.properties),Me(t.propertyFields,this.propertyFields),this.filters.copyFrom(t.filters),t._adapterO&&this.adapter.copyFrom(t._adapterO))},Object.defineProperty(i.prototype,"allValues",{get:function(){var t=this,e={};if(U(this.properties,function(a,o){e[a]=t.getPropertyValue(a)}),this._adapterO){var r=this._adapterO.keys();U(r,function(a,o){var l=t.getPropertyValue(o);e[o]=l})}var n=this.propertyFields;return U(n,function(a){var o=t.getPropertyValue(a);e[a]=o}),e},enumerable:!0,configurable:!0}),i.prototype.reset=function(){this.properties={},this.filters.clear()},i.prototype.processConfig=function(t){b(t)&&b(t.properties)&&U(t.properties,function(e,r){tt(r)&&(r.match(/^[0-9.\-]+\%$/)?t.properties[e]=I(dt(r)):r.match(/^\#[0-9abcdef]{3,}$/i)&&(t.properties[e]=pe(r)))}),s.prototype.processConfig.call(this,t)},i.prototype.asFunction=function(t){return t=="transitionEasing"||s.prototype.asIs.call(this,t)},i}($t);_.registeredClasses.SpriteState=Wr;var Iu=function(s){w(i,s);function i(){var t=s!==null&&s.apply(this,arguments)||this;return t._interactionEvents=new ct,t}return i.prototype._dispatchSpriteEvent=function(t){if(!(this.target.disabled||this.target.isTemplate)&&this.target.events.isEnabled(t.type)){var e=En(t,{target:this.target});this.target.events.dispatchImmediately(e.type,e)}},i.prototype._dispatchSpritePointEvent=function(t){if(!(this.target.disabled||this.target.isTemplate)&&this.target.events.isEnabled(t.type)){var e=En(t,{target:this.target,spritePoint:t.point?gi(t.point,this.target):void 0,svgPoint:this.target.getSvgPoint(t.point)});this.target.events.dispatchImmediately(e.type,e)}},i.prototype._addInteractionObjectEvent=function(t,e,r,n){var a=this,o=n+"-"+t,l=this._interactionEvents.insertKeyIfEmpty(o,function(){var h=a.target.interactions.events.on(t,e,r,n);return new $r(function(){a._interactionEvents.removeKey(o),h.dispose()})});return l.increment()}
152,i.prototype._on=function(t,e,r,n,a,o){var l=s.prototype._on.call(this,t,e,r,n,a,o),h=[l.disposer];switch(e){case"hit":case"track":case"doublehit":case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":h.push(this._addInteractionObjectEvent(e,this._dispatchSpritePointEvent,this,a));break;case"rightclick":case"down":case"up":case"drag":case"dragged":case"dragstart":case"dragstop":case"over":case"out":case"swipe":case"swipeleft":case"swiperight":case"resize":case"focus":case"blur":case"toggled":h.push(this._addInteractionObjectEvent(e,this._dispatchSpriteEvent,this,a));break}switch(e){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"toggled":this.target.togglable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":this.target.hoverable=!0;case"out":this.target.hoverable=!0;break;case"focus":case"blur":this.target.focusable=!0;break}return l.disposer=new Pt(h),l},i}(Na),Mu=function(){function s(){}return s.opacity=1,s.strokeOpacity=1,s.strokeWidth=1,s.fillOpacity=1,s.fill=H("#000000"),s.stroke=H("#000000"),s.focusable=void 0,s.tabindex=0,s}(),oe={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1,autoDispose:!1,licenses:[],suppressErrors:!1,suppressWarnings:!1,animationsEnabled:!0,nonce:"",deferredDelay:100,disableHoverOnTransform:"never",pixelPerfectPrecision:0};function ju(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];console&&console.log.apply(console,yi(s))}function ms(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];console&&console.warn.apply(console,yi(s))}var Lu=function(){function s(){this._isPaused=!1,this.animations=[],this.uid=_.getUniqueId(),this.dummyCounter=0,this._frameRequested=!1,this.updateStepDuration=45,this.time=Date.now()}return s.prototype.reportTime=function(i,t){this.dummyCounter<6,t&&(this.time=Date.now())},s.prototype.update=function(){var i=this;if(!this._isPaused){this._frameRequested=!1;var t=Date.now();_.dispatchImmediately("enterframe");var e=[];for(var r in _.invalidDatas)if(Se(_.invalidDatas,r)){for(var n=_.invalidDatas[r];n.length>0;){var a=n[0],o=a.dataProvider;if(a.isDisposed())G(n,a);else if(o&&o.dataInvalid)try{if(o.validateData(),o.dataValidationProgress<1)break}catch(p){G(n,o),o.raiseCriticalError(p)}else try{if(a.validateData(),a.dataValidationProgress<1)break}catch(p){G(n,a),a.raiseCriticalError(p)}}if(Date.now()-t>this.updateStepDuration)break}for(;_.invalidRawDatas.length>0;){var a=_.invalidRawDatas[0];if(a.isDisposed())G(_.invalidRawDatas,a);else try{a.validateRawData()}catch(d){G(_.invalidRawDatas,a),a.raiseCriticalError(d)}}for(;_.invalidDataItems.length>0;){var a=_.invalidDataItems[0],o=a.dataProvider;if(!(a.isDisposed()||a.dataInvalid||o&&o.dataInvalid))try{a.validateDataItems()}catch(f){G(_.invalidDataItems,a),a.raiseCriticalError(f)}G(_.invalidDataItems,a)}for(;_.invalidDataRange.length>0;){var a=_.invalidDataRange[0],o=a.dataProvider;if(!(a.isDisposed()||a.dataInvalid||o&&o.dataInvalid))try{a.validateDataRange(),a.skipRangeEvent||a.dispatchImmediately("datarangechanged"),a.skipRangeEvent=!1}catch(f){G(_.invalidDataRange,a),a.raiseCriticalError(f)}G(_.invalidDataRange,a)}var l=[];U(_.invalidLayouts,function(p){i.validateLayouts(p)}),U(_.invalidPositions,function(p){i.validatePositions(p)});var h=!1;if(t=Date.now(),U(_.invalidSprites,function(p,d){for(var f=0;d.length>0;){if(i.validateLayouts(p),i.validatePositions(p),f++,f==5){if(Date.now()-t>i.updateStepDuration)break;f=0}var c=d[d.length-1];if(c&&!c.isDisposed()){if(!c._systemCheckIfValidate())l.push(c);else if(!i.checkIfValidate2(c))l.push(c);else try{c._systemUpdate(l)}catch(y){c.invalid=!1,G(d,c),c.raiseCriticalError(y)}c.invalid=!1}G(d,c)}_.invalidSprites[p]=_.invalidSprites[p].concat(l)}),U(_.invalidSprites,function(p,d){d.length>0&&(h=!0)}),U(_.invalidDatas,function(p,d){d.length>0&&(h=!0)}),L(Ei(this.animations),function(p){p.update()}),U(_.invalidLayouts,function(p){i.validateLayouts(p)}),U(_.invalidPositions,function(p){i.validatePositions(p)}),bh(),U(_.invalidLayouts,function(p){i.validateLayouts(p)}),U(_.invalidPositions,function(p){i.validatePositions(p)}),_.dispatchImmediately("exitframe"),(h||this.animations.length>0||e.length>0)&&this.requestFrame(),this.updateStepDuration<200){var u=!0;U(_.invalidDatas,function(p,d){d.length>0&&(u=!1)}),U(_.invalidSprites,function(p,d){d.length>0&&(u=!1)}),u&&(this.updateStepDuration=200)}}},s.prototype.checkIfValidate2=function(i){return!(i.dataItem&&i.dataItem.component&&i.dataItem.component.dataInvalid&&!i.dataItem.component.isTemplate)},s.prototype.requestFrame=function(){var i=this;this._frameRequested||(ds(function(){i.update()}),this._frameRequested=!0)},s.prototype.softInvalidate=function(i){var t=this;i.children.each(function(e){e instanceof N&&t.softInvalidate(e),e.measureFailed&&(Qt(e,"Label")?e.hardInvalidate():e.invalidate(),e.measureFailed=!1)})},s.prototype.validatePositions=function(i){for(var t=_.invalidPositions[i];t.length>0;){var e=t[t.length-1];if(e.isDisposed())G(t,e);else try{e._systemValidatePositions()}catch(r){e.positionInvalid=!1,G(t,e),e.raiseCriticalError(r)}}},s.prototype.validateLayouts=function(i){for(var t=_.invalidLayouts[i];t.length>0;){var e=t[t.length-1];if(e.isDisposed())G(t,e);else try{e.children.each(function(r){r._systemValidateLayouts()}),e.validateLayout()}catch(r){e.layoutInvalid=!1,G(t,e),e.raiseCriticalError(r)}}},s.prototype.log=function(i){ju(i)}
152,Object.defineProperty(s.prototype,"isPaused",{get:function(){return this._isPaused},set:function(i){this._isPaused=i,i||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),s.VERSION="4.10.39",s}(),J=new Lu;function ao(s,i,t){return i+(t-i)*s}function Eu(s,i,t){return new Q(ao(s,i.percent,t.percent))}function Ru(s,i,t){var e=new it(Ir(i.rgb,t.rgb,s));return i.alpha!=t.alpha&&(e.alpha=i.alpha+(t.alpha-i.alpha)*s),e}function pa(s,i){return i+s.charAt(0).toUpperCase()+s.substr(1)}var bi=function(){function s(i){this._disposer=new lt(function(){for(;i.length!==0;)i[0].dispose()})}return s.prototype.isDisposed=function(){return this._disposer.isDisposed()},s.prototype.dispose=function(){this._disposer.dispose()},s}(),ge=function(s){w(i,s);function i(t,e,r,n){var a=s.call(this)||this;return a.duration=0,a.easing=to,a.progress=0,a._loop=0,a._pause=!1,a._delayTimeout=null,a._time=0,a._isFinished=!1,a.className="Animation",a.object=t,a.animationOptions=Ea(e),a.duration=r,n&&(a.easing=n),a.applyTheme(),a}return i.prototype.debug=function(){},i.prototype.dispose=function(){s.prototype.dispose.call(this),this.pause()},i.prototype.delay=function(t){var e=this;if(t>0){this.pause(),fe(this.object.animations,this);var r=setTimeout(function(){e._delayTimeout=null,e.start()},t);this._delayTimeout=new lt(function(){clearTimeout(r)})}return this},i.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,fe(J.animations,this),fe(this.object.animations,this),J.requestFrame()},i.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var t=this.animationOptions.length-1;t>=0;t--){var e=this.animationOptions[t];if(b(e.from)||(e.childObject?e.from=e.childObject[e.property]:(e.from=this.object[e.property],b(e.from)||(e.from=Mu[e.property]))),e.from==e.to)G(this.animationOptions,e);else if(!b(e.from)||!(e.from instanceof Q)&&e.to instanceof Q||e.from instanceof Q&&!(e.to instanceof Q))this.staticOptions.push(e),G(this.animationOptions,e);else if(v(e.to))if(e.updateMethod=ao,e.from instanceof Q){var r=this.object[pa(e.property,"pixel")];isNaN(r)?(this.staticOptions.push(e),G(this.animationOptions,e)):e.from=r}else isNaN(e.from)&&(this.staticOptions.push(e),G(this.animationOptions,e));else if(e.to instanceof it)e.from?e.updateMethod=Ru:(this.staticOptions.push(e),G(this.animationOptions,e));else if(e.to instanceof Q){if(e.updateMethod=Eu,!isNaN(e.from)){var r=this.object[pa(e.property,"relative")];isNaN(r)||(e.from=I(r*100))}}else this.staticOptions.push(e),G(this.animationOptions,e)}if(this.applyStaticOptions(),this.events.isEnabled("animationstarted")){var n={type:"animationstarted",target:this,progress:this.progress};this.events.dispatchImmediately("animationstarted",n)}return this.update(),this.duration===0&&this.end(),this},i.prototype.loop=function(t){return v(t)||(t=1/0),this._loop=t,this},i.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),G(J.animations,this),G(this.object.animations,this),this},i.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},i.prototype.end=function(){if(this._loop==0&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")){var t={type:"animationended",target:this,progress:this.progress};this.events.dispatchImmediately("animationended",t)}return this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},i.prototype.kill=function(){this.pause(),this._isFinished=!0},i.prototype.isFinished=function(){return this._isFinished},i.prototype.applyStaticOptions=function(){var t=this;L(this.staticOptions,function(e){e.childObject?e.childObject[e.property]=t.progress==1?e.to:e.from:t.object[e.property]=t.progress==1?e.to:e.from})},i.prototype.stop=function(t){if(this.pause(),!t&&this.events.isEnabled("animationstopped")){var e={type:"animationstopped",target:this,progress:this.progress};this.events.dispatchImmediately("animationstopped",e)}return this},i.prototype.setProgress=function(t){var e=this;if(this._time=this.duration*t,L(this.animationOptions,function(n){if(n.updateMethod&&b(n.from)){var a=n.updateMethod(t,n.from,n.to);n.childObject?n.childObject[n.property]=a:e.object[n.property]=a}}),this.progress=t,this.events.isEnabled("animationprogress")){var r={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",r)}J.requestFrame()},i.prototype.update=function(){if(!this._pause){var t=void 0;this._time=B(Date.now()-this._startTime,0,this.duration);var e=this._time/this.duration;t=this.easing(e),(this.duration==0||!v(t)||e>=1)&&(t=1),this.setProgress(t),F(this._time/this.duration,6)==1&&this.end()}return this},Object.defineProperty(i.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),i.prototype.stopSameAnimations=function(){var t=this;L(Ei(this.object.animations),function(e){if(e!==t&&!e.delayed){var r=[];L(t.animationOptions,function(n){L(e.animationOptions,function(a){n.property==a.property&&n.childObject==a.childObject&&(r.push(a),e.animationOptions.length==0&&e.kill())})}),L(r,function(n){G(e.animationOptions,n)})}})},i.prototype.asFunction=function(t){return t=="easing"||s.prototype.asIs.call(this,t)},i}(Ve),xr="http://www.w3.org/2000/svg",da="http://www.w3.org/2000/xmlns/",bs="http://www.w3.org/1999/xlink";function Vt(s,i,t,e){return s.addEventListener(i,t,e||!1),new lt(function(){s.removeEventListener(i,t,e||!1)})}function oo(s){if(tt(s)){var i=document.getElementById(s);if(i==null&&(i=document.getElementsByClassName(s)[0]),i instanceof HTMLElement)return i}else if(s instanceof HTMLElement)return s}
152function Zn(s,i){if(s)if(s.classList){var t=i.split(" ");L(t,function(r){s.classList.add(r)})}else{var e=s.getAttribute("class");e?s.setAttribute("class",e.split(" ").filter(function(r){return r!==i}).join(" ")+" "+i):s.setAttribute("class",i)}}function $n(s,i){if(s)if(s.classList)s.classList.remove(i);else{var t=s.getAttribute("class");t&&s.setAttribute("class",t.split(" ").filter(function(e){return e!==i}).join(" "))}}function fa(s,i,t){s.style[i]=t}function xs(s,i){return s.currentStyle?s.currentStyle[i]:document.defaultView.getComputedStyle(s,null).getPropertyValue(i)}function _r(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{var s=document.createElement("button");s.style.position="fixed",s.style.top="0px",s.style.left="-10000px",document.body.appendChild(s),s.focus(),s.blur(),document.body.removeChild(s)}}function ca(s,i){for(var t=i;;){if(s===t)return!0;if(t.parentNode==null){if(t.host==null)return!1;t=t.host}else t=t.parentNode}}function _s(s){for(var i=s;;){if(i.parentNode==null)return i.host!=null?i:null;i=i.parentNode}}function lo(s){for(var i=s.ownerDocument,t=s;;){if(t.parentNode==null)return t===i||t.host!=null?t:null;t=t.parentNode}}function Bu(s){return typeof s.composedPath=="function"?s.composedPath()[0]:s.target}function Wu(s){vh(function(){try{var i=s.getBoundingClientRect(),t=i.left-Math.round(i.left),e=i.top-Math.round(i.top);t!==0&&ta(function(){s.style.left=t+"px"}),e!==0&&ta(function(){s.style.top=e+"px"})}catch{}})}var On;function Hu(s){if(s==null){if(!b(On)){var i=document.createElement("style");i.type="text/css",document.head.appendChild(i),On=i.sheet}return On}else{var i=document.createElement("style");return i.type="text/css",s.appendChild(i),i.sheet}}function Nu(s,i){var t=s.cssRules.length;return s.insertRule(i+"{}",t),s.cssRules[t]}var pt=function(s){w(i,s);function i(t,e,r){var n=this,a=Hu(t);return n=s.call(this,function(){var o=me(a.cssRules,n._rule);if(o===-1)throw new Error("Could not dispose StyleRule");a.deleteRule(o)})||this,n._rule=Nu(a,e),U(r,function(o,l){n.setStyle(o,l)}),n}return Object.defineProperty(i.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(t){this._rule.selectorText=t},enumerable:!0,configurable:!0}),i.prototype._setVendorPrefixName=function(t,e){var r=this._rule.style;r.setProperty("-webkit-"+t,e,""),r.setProperty("-moz-"+t,e,""),r.setProperty("-ms-"+t,e,""),r.setProperty("-o-"+t,e,""),r.setProperty(t,e,"")},i.prototype.setStyle=function(t,e){t==="transition"?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")},i}(lt),zu=0;(function(s){w(i,s);function i(t,e,r){var n=this,a=b(r)?r:"__style_"+ ++zu+"__";return n=s.call(this,t,"."+a,e)||this,n._className=a,n}return Object.defineProperty(i.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t,this.selector="."+t},enumerable:!0,configurable:!0}),i.prototype.toString=function(){return this._className},i})(pt);function Xu(s){if(document.readyState!=="loading")s();else{var i=function(){document.readyState!=="loading"&&(document.removeEventListener("readystatechange",i),s())};document.addEventListener("readystatechange",i)}}function Pr(s){var i=xs(s,"font-family");if(i)return i;var t=s.parentElement||s.parentNode;return t?Pr(t):void 0}function Cr(s){var i=xs(s,"font-size");if(i)return i;var t=s.parentElement||s.parentNode;return t?Cr(t):void 0}var Hr=function(){function s(i){this._isDisposed=!1,this._x=0,this._y=0,this._rotationY=0,this._rotationX=0,this._rotation=0,this._scale=1,typeof i=="string"?this.node=document.createElementNS(xr,i):this.node=i}return s.prototype.removeNode=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},Object.defineProperty(s.prototype,"transformString",{get:function(){if(this.node)return this._transformString},enumerable:!0,configurable:!0}),s.prototype.transform=function(){var i="translate("+this._x+","+this._y+")";if(this._scale!=1&&(i+=(i?" ":"")+"scale("+this._scale+")"),this._rotation!=0){var t="rotate("+this._rotation+")";this._rotationX&&this._rotationY&&(t="rotate("+this._rotation+" "+this._rotationX+" "+this._rotationY+")"),i+=(i?" ":"")+t}this._transformString=i,this.node.setAttribute("transform",i)},s.prototype.getBBox=function(){var i={width:0,height:0,x:0,y:0};if(this.node&&this.node.parentNode)try{var t=this.node.getBBox();i.x=t.x,i.y=t.y,i.width=t.width,i.height=t.height}catch{}return i},s.prototype.moveTo=function(i){if(i){var t=i.x,e=i.y;(this._x!=t||this._y!=e)&&(this._x=t,this._y=e,this.transform())}},Object.defineProperty(s.prototype,"content",{get:function(){return this.node.innerHTML||""},set:function(i){this.node.innerHTML=i},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.node.textContent||""},set:function(i){this.node.textContent=i},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"x",{get:function(){return this._x},set:function(i){this._x!=i&&(this._x=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"y",{get:function(){return this._y},set:function(i){this._y!=i&&(this._y=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rotation",{get:function(){return this._rotation},set:function(i){this._rotation!=i&&(this._rotation=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rotationX",{get:function(){return this._rotationX},set:function(i){this._rotationX!=i&&(this._rotationX=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rotationY",{get:function(){return this._rotationY},set:function(i){this._rotationY!=i&&(this._rotationY=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"scale",{get:function(){return this._scale},set:function(i){this._scale!=i&&(this._scale=i,this.transform())},enumerable:!0,configurable:!0}),s.prototype.removeAttr=function(i){this.node.removeAttribute(i)},s.prototype.attr=function(i){var t=this;return U(i,function(e,r){b(r)?t.node.setAttribute(e,r):t.node.removeAttribute(e)}),this},s.prototype.getAttr=function(i){return this.node.getAttribute(i)},s.prototype.attrNS=function(i,t,e){return this.node.setAttributeNS(i,t,e),this},s.prototype.getAttrNS=function(i,t){return this.node.getAttributeNS(i,t)},s.prototype.removeStyle=function(i){this.node.style[i]=null,delete this.node.style[i]},s.prototype.getStyle=function(i){return this.node.style[i]},s.prototype.addStyle=function(i){var t=this;return U(i,function(e,r){b(r)?t.node.style[e]=r:t.removeStyle(e)}),this},s.prototype.addClass=function(i){Zn(this.node,i)},s.prototype.removeClass=function(i){$n(this.node,i)},s.prototype.setClass=function(i){this.node.setAttribute("class",i)},s.prototype.removeChildNodes=function(){for(;this.node.childNodes.length>0;)this.node.removeChild(this.node.firstChild)},s.prototype.isDisposed=function(){return this._isDisposed},s.prototype.dispose=function(){this.removeNode()},s}(),Yu=function(s){w(i,s);function i(t){return s.call(this,t)||this}return i.prototype.add=function(t){t&&this.node.appendChild(t.node)},i.prototype.addToBack=function(t){if(t){var e=this.node.childNodes[0];e?e!=t.node&&this.node.insertBefore(t.node,e):this.node.appendChild(t.node)}},i.prototype.removeElement=function(t){if(t)try{t.node&&t.node.parentNode==this.node&&this.node.removeChild(t.node)}catch{}},i.prototype.hasChild=function(t){for(var e=0;e<this.node.childNodes.length;e++)if(this.node.childNodes[e]==t.node)return!0;return!1},Object.defineProperty(i.prototype,"content",{get:function(){return this.node.innerHTML},set:function(t){this.node.innerHTML=t},enumerable:!0,configurable:!0}),i.prototype.removeChildren=function(){if(this.node.childNodes)for(;this.node.childNodes.length>0;){var t=this.node.firstChild;t&&t.parentNode&&t.parentNode.removeChild(t)}},i.prototype.removeChildrenByTag=function(t){if(this.node.childNodes)for(var e=this.node.getElementsByTagName(t),r=0;r<e.length;r++)this.node.removeChild(e[r])},i}(Hr),nt=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._purposes={stroke:H("#e5e5e5"),fill:H("#f3f3f3"),primaryButton:H("#6794dc"),primaryButtonHover:H("#6771dc"),primaryButtonDown:H("#68dc75"),primaryButtonActive:H("#68dc75"),primaryButtonText:H("#FFFFFF"),primaryButtonStroke:H("#FFFFFF"),secondaryButton:H("#d9d9d9"),secondaryButtonHover:H("#d9d9d9").brighten(-.25),secondaryButtonDown:H("#d9d9d9").brighten(-.35),secondaryButtonActive:H("#d9d9d9").brighten(.35),secondaryButtonText:H("#000000"),secondaryButtonStroke:H("#FFFFFF"),grid:H("#000000"),background:H("#ffffff"),alternativeBackgroun
152d:H("#000000"),text:H("#000000"),alternativeText:H("#FFFFFF"),disabledBackground:H("#999999"),positive:H("#67dc75"),negative:H("#dc6788")},t.className="InterfaceColorSet",t.applyTheme(),t}return i.prototype.debug=function(){},i.prototype.getFor=function(t){return this._purposes[t]},i.prototype.setFor=function(t,e){this._purposes[t]=e},i}($t);_.registeredClasses.InterfaceColorSet=nt;var ya=new ct;function Uu(s,i){i||(i="ampopup");var t=new nt,e=t.getFor("text"),r=t.getFor("background");r.alpha=.8;var n=t.getFor("alternativeBackground");n.alpha=.05;var a=ya.insertKeyIfEmpty(i,function(){var o=new Pt([new pt(s,"."+i,{overflow:"visible",position:"absolute",top:"0",left:"0","z-index":"2000"}),new pt(s,"."+i+"-curtain",{width:"100%",height:"100%",position:"absolute",top:"0",left:"0","z-index":"2001","background-color":r.hex,opacity:"0.5"}),new pt(s,"."+i+"-header",{display:"block",width:"100%","min-height":"1.8em",background:n.rgba}),new pt(s,"."+i+"-title",{"font-weight":"bold","font-size":"110%",padding:"0.5em 1.2em 0.5em 1em"}),new pt(s,"."+i+"-content",{background:r.hex,"background-color":r.rgba,color:e.hex,display:"inline-block",position:"absolute",top:"0",left:"0","max-width":"90%","max-height":"90%",overflow:"auto","z-index":"2002"}),new pt(s,"."+i+"-inside",{padding:"1em"}),new pt(s,"."+i+"-close",{display:"block",position:"absolute",top:"0.3em",right:"0.3em","background-color":"rgb(100, 100, 100)",background:"rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center","background-size":"80%",width:"1.2em",height:"1.2em",cursor:"pointer"})]);return new $r(function(){ya.removeKey(i),o.dispose()})});return a.increment()}var Gu=function(s){w(i,s);function i(){var t=s!==null&&s.apply(this,arguments)||this;return t._domEvents={},t}return i.prototype._addDOMEvent=function(t,e,r,n){var a=this;if(!this._domEvents[t]){var o=function(l){r.call(n,e,l)};this.target.element.addEventListener(t,o,!1),this._domEvents[t]=new $r(function(){delete a._domEvents[t],a.target.element.removeEventListener(t,o,!1)})}return this._domEvents[t].increment()},i.prototype._dispatchKeyboardEvent=function(t,e){this.target.events.isEnabled(t)&&this.target.events.dispatchImmediately(t,{type:t,target:this.target,event:e})},i.prototype._on=function(t,e,r,n,a,o){var l=s.prototype._on.call(this,t,e,r,n,a,o),h=[l.disposer];switch(e){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":case"out":this.target.hoverable=!0;break;case"focus":case"blur":case"focusin":case"focusout":this.target.focusable=!0;break;case"keydown":h.push(this._addDOMEvent(e,e,this._dispatchKeyboardEvent,this));break;case"keyup":h.push(this._addDOMEvent(e,e,this._dispatchKeyboardEvent,this));break;case"keypress":h.push(this._addDOMEvent(e,e,this._dispatchKeyboardEvent,this));break;case"input":h.push(this._addDOMEvent(e,e,this._dispatchKeyboardEvent,this));break}return l.disposer=new Pt(h),l},i}(Na),Ku=function(s){w(i,s);function i(t){var e=s.call(this)||this;return e._eventDispatcher=new Gu(e),e.eventDisposers=new ct,e.replacedStyles=new ct,e._clickable=!1,e._contextMenuDisabled=!1,e._hoverable=!1,e._trackable=!1,e._draggable=!1,e._swipeable=!1,e._resizable=!1,e._wheelable=!1,e._inert=!1,e._isHover=!1,e.isRealHover=!1,e._isHoverByTouch=!1,e._isDown=!1,e._isFocused=!1,e._isTouchProtected=!1,e._inertiaOptions=new ct,e.inertias=new ct,e._hitOptions={},e._hoverOptions={},e._swipeOptions={},e._keyboardOptions={},e._mouseOptions={},e._cursorOptions={defaultStyle:[{property:"cursor",value:"default"}]},e._disposers.push(e._eventDispatcher),e._element=t,e.className="InteractionObject",e._disposers.push(new ei(e.inertias)),e._disposers.push(new ei(e.eventDisposers)),e.applyTheme(),e}return Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isHover",{get:function(){return this._isHover},set:function(t){this.isHover!=t&&(this._isHover=t,t?K().overObjects.moveValue(this):(this.isRealHover=!1,K().overObjects.removeValue(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isHoverByTouch",{get:function(){return this._isHoverByTouch},set:function(t){this.isHoverByTouch!=t&&(this._isHoverByTouch=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overPointers",{get:function(){return this._overPointers||(this._overPointers=new rt),this._overPointers},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDown",{get:function(){return this._isDown}
152,set:function(t){this.isDown!=t&&(this._isDown=t,t?K().downObjects.moveValue(this):K().downObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"downPointers",{get:function(){return this._downPointers||(this._downPointers=new rt),this._downPointers},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocused",{get:function(){return this._isFocused},set:function(t){this.isFocused!=t&&(this._isFocused=t,t?K().focusedObject=this:K().focusedObject=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isTouchProtected",{get:function(){return this._isTouchProtected},set:function(t){this._isTouchProtected!=t&&(this._isTouchProtected=t,t?K().unprepElement(this):(this.draggable||this.swipeable||this.trackable||this.resizable)&&K().prepElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"clickable",{get:function(){return this._clickable},set:function(t){this._clickable!==t&&(this._clickable=t,K().processClickable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contextMenuDisabled",{get:function(){return this._contextMenuDisabled},set:function(t){this._contextMenuDisabled!==t&&(this._contextMenuDisabled=t,K().processContextMenu(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverable",{get:function(){return this._hoverable},set:function(t){this._hoverable!==t&&(this._hoverable=t,K().processHoverable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"trackable",{get:function(){return this._trackable},set:function(t){this._trackable!==t&&(this._trackable=t,K().processTrackable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"draggable",{get:function(){return this._draggable},set:function(t){this._draggable!==t&&(this._draggable=t,K().processDraggable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeable",{get:function(){return this._swipeable},set:function(t){this._swipeable!==t&&(this._swipeable=t,K().processSwipeable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"resizable",{get:function(){return this._resizable},set:function(t){this._resizable!==t&&(this._resizable=t,K().processResizable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wheelable",{get:function(){return this._wheelable},set:function(t){this._wheelable!==t&&(this._wheelable=t,K().processWheelable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inert",{get:function(){return this._inert},set:function(t){this._inert!==t&&(this._inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"focusable",{get:function(){return this._focusable},set:function(t){this._focusable!==t&&(this._focusable=t,this._focusable&&this.tabindex==-1&&(this._tabindex=1),K().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabindex",{get:function(){return bn(this._tabindex,-1)},set:function(t){this._tabindex!==t&&(this._tabindex=t,t>-1&&(this.focusable=!0),K().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"element",{get:function(){return this._element},set:function(t){this._element=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(t){this._originalPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalScale",{get:function(){return bn(this._originalScale,1)},set:function(t){this._originalScale!==t&&(this._originalScale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalAngle",{get:function(){return bn(this._originalAngle,0)},set:function(t){this._originalAngle!==t&&(this._originalAngle=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inertiaOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions}
152,set:function(t){this._inertiaOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hitOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(t){this._hitOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(t){this._hoverOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(t){this._swipeOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keyboardOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(t){this._keyboardOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mouseOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("mouseOptions",this._mouseOptions):this._mouseOptions},set:function(t){this._mouseOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(t){this._cursorOptions=t},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.inertiaOptions=t.inertiaOptions,this.hitOptions=t.hitOptions,this.hoverOptions=t.hoverOptions,this.swipeOptions=t.swipeOptions,this.keyboardOptions=t.keyboardOptions,this.cursorOptions=t.cursorOptions,this.contextMenuDisabled=t.contextMenuDisabled,K().applyCursorOverStyle(this)},i.prototype.setEventDisposer=function(t,e,r){var n=this.eventDisposers.getKey(t);e?n==null&&this.eventDisposers.setKey(t,r()):n!=null&&(n.dispose(),this.eventDisposers.removeKey(t))},i.prototype.dispose=function(){s.prototype.dispose.call(this);var t=K();t.overObjects.removeValue(this),t.downObjects.removeValue(this),t.trackedObjects.removeValue(this),t.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&t.unlockWheel(),t.focusedObject===this&&(t.focusedObject=void 0)},i}(Ve),qu=function(){function s(i,t){this._disposed=!1,this.directionX=0,this.directionY=0,this.interaction=i,this.keyboardEvent=t,this._startedOn=new Date().getTime(),K().processDragStart(i),J.animations.push(this),this.update()}return s.prototype.update=function(){var i=this.interaction,t=K().getKeyboardOption(i,"speed"),e=K().getKeyboardOption(i,"accelleration"),r=K().getKeyboardOption(i,"accellerationDelay"),n={x:0,y:0};this.keyboardEvent.shiftKey?(t*=.5,e=1):this.keyboardEvent.ctrlKey&&(t*=2);var a=new Date().getTime()-this._startedOn,o=a-r;if(e>0&&o>0){var l=a/r;a=r,n.x+=this.directionX*(t*e*l*o),n.y+=this.directionY*(t*e*l*o)}n.x+=this.directionX*(t*a),n.y+=this.directionY*(t*a),K().handleTransformMove(i,n,{x:0,y:0},this.keyboardEvent,!0,!1)},s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){this._disposed||(K().processDragStop(this.interaction),G(J.animations,this))},s}(),Zu=function(s){w(i,s);function i(t,e,r,n){var a=s.call(this)||this;return a.animations=[],a.className="Inertia",a.interaction=t,a.type=e,a.point=r,a.startPoint=n,a._disposers.push(new bi(a.animations)),a}return Object.defineProperty(i.prototype,"x",{get:function(){return this.point.x},set:function(t){v(t)&&(this.point.x=t,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.point.y},set:function(t){v(t)&&(this.point.y=t,this.handleMove())},enumerable:!0,configurable:!0}),i.prototype.handleMove=function(){if(this.interaction.events.isEnabled("drag")){var t={type:"drag",target:this.interaction,shift:{x:this.x-this.startPoint.x,y:this.y-this.startPoint.y},startPoint:this.startPoint,point:{x:this.x,y:this.y},touch:!1};this.interaction.events.dispatchImmediately("drag",t)}},i.prototype.done=function(){this.interaction.inertias.removeKey(this.type),this.type==="move"&&K().processDragStop(this.interaction),this.dispose()},i}($t),$u=function(){function s(){}return s.prototype.getEventKey=function(i){var t=i.keyCode||i.which,e;switch(t){case 38:e="up";break;case 40:e="down";break;case 37:e="left";break;case 39:e="right";break;case 13:e="enter";break;case 27:e="esc";break;case 36:e="home";break;case 35:e="end";break;case 9:e="tab";break;case 17:e="ctrl";break;case 18:e="alt";break;
152case 16:e="shift";break;case 32:e="space";break;case 36:e="home";break;case 35:e="end";break;case 33:e="pgup";break;case 34:e="pgdn";break;case 45:e="ins";break;case 46:e="del";break;case 107:e="plus";break;case 109:e="minus";break;default:e="other";break}return e},s.prototype.isKey=function(i,t){var e=this.getEventKey(i);return tt(t)&&(t=[t]),t.indexOf(e)!==-1},s.prototype.shiftKey=function(i){return i.shiftKey},s.prototype.ctrlKey=function(i){return i.ctrlKey},s.prototype.altKey=function(i){return i.altKey},s.prototype.metaKey=function(i){return i.metaKey},s}(),Oe=new $u,Ju={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6};function ho(s){switch(s){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function wt(s,i){return b(i)||(i=1),Ju[s]*i}function Qu(){return new Date}function Ce(){return Qu().getTime()}function di(s){return new Date(s.getTime())}function Jn(s,i,t,e){s=new Date(s.getTime()),i=new Date(i.getTime());var r=0,n=0;!e&&t!="millisecond"&&(r=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-r),n=i.getTimezoneOffset(),i.setUTCMinutes(i.getUTCMinutes()-n));var a=!1;switch(t){case"year":s.getUTCFullYear()!=i.getUTCFullYear()&&(a=!0);break;case"month":(s.getUTCFullYear()!=i.getUTCFullYear()||s.getUTCMonth()!=i.getUTCMonth())&&(a=!0);break;case"day":(s.getUTCMonth()!=i.getUTCMonth()||s.getUTCDate()!=i.getUTCDate())&&(a=!0);break;case"hour":s.getUTCHours()!=i.getUTCHours()&&(a=!0);break;case"minute":s.getUTCMinutes()!=i.getUTCMinutes()&&(a=!0);break;case"second":s.getUTCSeconds()!=i.getUTCSeconds()&&(a=!0);break;case"millisecond":s.getTime()!=i.getTime()&&(a=!0);break}if(a)return!0;var o=ho(t);return o?(s.setUTCMinutes(s.getUTCMinutes()+r),i.setUTCMinutes(i.getUTCMinutes()+n),Jn(s,i,o,e)):!1}function Zt(s,i,t,e){var r=0;switch(!e&&i!="millisecond"&&(r=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-r)),i){case"day":var n=s.getUTCDate();s.setUTCDate(n+t);break;case"second":var a=s.getUTCSeconds();s.setUTCSeconds(a+t);break;case"millisecond":var o=s.getUTCMilliseconds();s.setUTCMilliseconds(o+t);break;case"hour":var l=s.getUTCHours();s.setUTCHours(l+t);break;case"minute":var h=s.getUTCMinutes();s.setUTCMinutes(h+t);break;case"year":var u=s.getUTCFullYear();s.setUTCFullYear(u+t);break;case"month":var p=s.getUTCMonth();s.setUTCMonth(p+t);break;case"week":var d=s.getUTCDate();s.setUTCDate(d+t*7);break}if(!e&&i!="millisecond"&&(s.setUTCMinutes(s.getUTCMinutes()+r),i=="day"||i=="week"||i=="month"||i=="year")){var f=s.getTimezoneOffset();if(f!=r){var c=f-r;s.setUTCMinutes(s.getUTCMinutes()+c),s.getTimezoneOffset()!=f&&s.setUTCMinutes(s.getUTCMinutes()-c)}}return s}function Rt(s,i,t,e,r,n,a,o){a===void 0&&(a=0),v(t)||(t=1);var l=0;switch(o&&["day","month","week","year"].indexOf(i)!=-1&&(s=Jr(s,o)),!r&&i!="millisecond"&&(l=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-l)),i){case"day":var h=s.getUTCDate();if(t>1){if(n){n=Rt(n,"day",1);var u=s.getTime()-n.getTime(),p=Math.floor(u/wt("day")/t),d=wt("day",p*t);s.setTime(n.getTime()+d-l*wt("minute"))}}else s.setUTCDate(h);s.setUTCHours(0,0,0,0);break;case"second":var f=s.getUTCSeconds();t>1&&(f=Math.floor(f/t)*t),s.setUTCSeconds(f,0);break;case"millisecond":if(t==1)return s;var c=s.getUTCMilliseconds();c=Math.floor(c/t)*t,s.setUTCMilliseconds(c);break;case"hour":var y=s.getUTCHours();t>1&&(y=Math.floor(y/t)*t),s.setUTCHours(y,a,0,0);break;case"minute":var g=s.getUTCMinutes();c=s.getUTCMilliseconds(),t>1&&(g=Math.floor(g/t)*t),s.setUTCMinutes(g,0,0);break;case"month":var m=s.getUTCMonth();t>1&&(m=Math.floor(m/t)*t),s.setUTCMonth(m,1),s.setUTCHours(0,a,0,0);break;case"year":var x=s.getUTCFullYear();t>1&&(x=Math.floor(x/t)*t),s.setUTCFullYear(x,0,1),s.setUTCHours(0,a,0,0);break;case"week":var P=s.getUTCDate(),S=s.getUTCDay();v(e)||(e=1),S>=e?P=P-S+e:P=P-(7+S)+e,s.setUTCDate(P),s.setUTCHours(0,a,0,0);break}if(!r&&i!="millisecond"&&(s.setUTCMinutes(s.getUTCMinutes()+l),i=="day"||i=="week"||i=="month"||i=="year")){var C=s.getTimezoneOffset();if(C!=l){var O=C-l;s.setUTCMinutes(s.getUTCMinutes()+O)}}return s}
152function Jr(s,i){var t=new Date(s.toLocaleString("en-US",{timeZone:i}));return t}function tp(s){var i=new Date;i.setHours(0,0,0,0);var t=Jr(i,s);return t.getMinutes()}var ep=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._globalEventsAdded=!1,t._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},t._usePointerEventsOnly=!1,t._useTouchEventsOnly=!1,t._addHoverEvents=!0,t._passiveSupported=!1,t._delayedEvents={out:[]},t.overObjects=new rt,t.downObjects=new rt,t.trackedObjects=new rt,t.transformedObjects=new rt,t.pointers=new ct,t.inertiaOptions=new ct,t.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},t.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},t.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},t.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},t.mouseOptions={sensitivity:1},t.className="Interaction",t.body=t.getInteraction(document.body),t._disposers.push(t.body),window.hasOwnProperty("PointerEvent")?(t._pointerEvents.pointerdown="pointerdown",t._pointerEvents.pointerup="pointerup",t._pointerEvents.pointermove="pointermove",t._pointerEvents.pointercancel="pointercancel",t._pointerEvents.pointerover="pointerover",t._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(t._pointerEvents.pointerdown="MSPointerDown",t._pointerEvents.pointerup="MSPointerUp",t._pointerEvents.pointermove="MSPointerMove",t._pointerEvents.pointercancel="MSPointerUp",t._pointerEvents.pointerover="MSPointerOver",t._pointerEvents.pointerout="MSPointerOut"):typeof matchMedia<"u"&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(t._addHoverEvents=!1,t._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)||t.fullFF()?t._usePointerEventsOnly=!0:t._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?t._pointerEvents.wheel="wheel":b(document.onmousewheel)&&(t._pointerEvents.wheel="mousewheel"),t.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:Kn}),t.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:Kn}),t._passiveSupported=i.passiveSupported,t.applyTheme(),t}return i.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},i.prototype.debug=function(){},i.prototype.addGlobalEvents=function(){var t=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(Vt(document,this._pointerEvents.pointerdown,function(e){t.handleGlobalPointerDown(e)})),this._disposers.push(Vt(document,this._pointerEvents.pointermove,function(e){t.handleGlobalPointerMove(e)})),this._disposers.push(Vt(document,this._pointerEvents.pointerup,function(e){t.handleGlobalPointerUp(e)})),this._disposers.push(Vt(document,this._pointerEvents.pointercancel,function(e){t.handleGlobalPointerUp(e,!0)})),this._disposers.push(Vt(document,"mouseenter",function(e){!b(e.relatedTarget)&&(e.buttons==0||e.which==0)&&t.handleDocumentLeave(e)}))),this._usePointerEventsOnly||(this._disposers.push(Vt(document,"touchstart",function(e){t.handleGlobalTouchStart(e)})),this._disposers.push(Vt(document,"touchmove",function(e){t.handleGlobalTouchMove(e)})),this._disposers.push(Vt(document,"touchend",function(e){t.handleGlobalTouchEnd(e)}))),this._disposers.push(Vt(document,"keydown",function(e){t.handleGlobalKeyDown(e)})),this._disposers.push(Vt(document,"keyup",function(e){t.handleGlobalKeyUp(e)})),this._globalEventsAdded=!0)},i.prototype.processClickable=function(t){this.processTouchable(t)},i.prototype.processContextMenu=function(t){t.contextMenuDisabled?t.eventDisposers.hasKey("contextMenuDisabled")||t.eventDisposers.setKey("contextMenuDisabled",Vt(t.element,"contextmenu",function(e){e.preventDefault()})):t.eventDisposers.hasKey("contextMenuDisabled")&&t.eventDisposers.getKey("contextMenuDisabled").dispose()},i.prototype.processHoverable=function(t){var e=this;if(t.hoverable||t.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(t),!t.eventDisposers.hasKey("hoverable")&&this._addHover
152Events&&t.eventDisposers.setKey("hoverable",new Pt([Vt(t.element,this._pointerEvents.pointerout,function(n){return e.handlePointerOut(t,n)}),Vt(t.element,this._pointerEvents.pointerover,function(n){return e.handlePointerOver(t,n)})])),t.trackable;else{var r=t.eventDisposers.getKey("hoverable");r!=null&&(r.dispose(),t.eventDisposers.removeKey("hoverable"))}this.processTouchable(t)},i.prototype.processMovable=function(t){(t.draggable||t.swipeable||t.trackable||t.resizable)&&(!this.isGlobalElement(t)&&!t.isTouchProtected&&this.prepElement(t),this.applyCursorOverStyle(t)),this.processTouchable(t)},i.prototype.processTrackable=function(t){this.processHoverable(t),this.processMovable(t),t.trackable?this.trackedObjects.moveValue(t):this.trackedObjects.removeValue(t)},i.prototype.processDraggable=function(t){this.processMovable(t)},i.prototype.processSwipeable=function(t){this.processMovable(t)},i.prototype.processResizable=function(t){this.processMovable(t)},i.prototype.processWheelable=function(t){var e=this;if(t.wheelable)t.eventDisposers.hasKey("wheelable")||t.eventDisposers.setKey("wheelable",new Pt([Vt(t.element,this._pointerEvents.wheel,function(n){return e.handleMouseWheel(t,n)},this._passiveSupported?{passive:!1}:!1),t.events.on("out",function(n){t.wheelable&&e.unlockWheel()}),t.events.on("over",function(n){t.wheelable&&e.lockWheel()})]));else{var r=t.eventDisposers.getKey("wheelable");r!=null&&(r.dispose(),t.eventDisposers.removeKey("wheelable"))}},i.prototype.processFocusable=function(t){var e=this;if(t.focusable===!0&&t.tabindex>-1&&!this._useTouchEventsOnly)t.eventDisposers.hasKey("focusable")||t.eventDisposers.setKey("focusable",new Pt([Vt(t.element,"focus",function(n){return e.handleFocus(t,n)}),Vt(t.element,"blur",function(n){return e.handleBlur(t,n)}),Vt(t.element,this._pointerEvents.pointerdown,function(n){return e.handleFocusBlur(t,n)}),Vt(t.element,"touchstart",function(n){return e.handleFocusBlur(t,n)},this._passiveSupported?{passive:!1}:!1)]));else{var r=t.eventDisposers.getKey("focusable");r!=null&&(r.dispose(),t.eventDisposers.removeKey("focusable"))}},i.prototype.processTouchable=function(t){var e=this;if(t.clickable||t.hoverable||t.trackable||t.draggable||t.swipeable||t.resizable)this.addGlobalEvents(),t.eventDisposers.hasKey("touchable")||(!this._useTouchEventsOnly&&!this._usePointerEventsOnly?t.eventDisposers.setKey("touchable",new Pt([Vt(t.element,this._pointerEvents.pointerdown,function(n){return e.handlePointerDown(t,n)}),Vt(t.element,"touchstart",function(n){return e.handleTouchDown(t,n)},this._passiveSupported?{passive:!1}:!1)])):this._useTouchEventsOnly?this._usePointerEventsOnly||t.eventDisposers.setKey("touchable",Vt(t.element,"touchstart",function(n){return e.handleTouchDown(t,n)},this._passiveSupported?{passive:!1}:!1)):t.eventDisposers.setKey("touchable",Vt(t.element,this._pointerEvents.pointerdown,function(n){return e.handlePointerDown(t,n)})));else{var r=t.eventDisposers.getKey("touchable");r!=null&&(r.dispose(),t.eventDisposers.removeKey("touchable"))}},i.prototype.handleFocus=function(t,e){if(!t.focusable){e.preventDefault();return}if(t.isFocused=!0,t.events.isEnabled("focus")&&!J.isPaused){var r={type:"focus",target:t,event:e};t.events.dispatchImmediately("focus",r)}},i.prototype.handleFocusBlur=function(t,e){t.focusable!==!1&&this.getHitOption(t,"noFocus")&&t.events.once("focus",function(){t.events.disableType("blur"),_r(),t.sprite&&t.sprite.handleBlur(),t.events.enableType("blur")})},i.prototype.handleBlur=function(t,e){if(!t.focusable){e.preventDefault();return}if(t.isFocused=!1,t.events.isEnabled("blur")&&!J.isPaused){var r={type:"blur",target:t,event:e};t.events.dispatchImmediately("blur",r)}},i.prototype.handleGlobalKeyDown=function(t){if(this.focusedObject){if(Oe.isKey(t,"esc"))_r();else if(this.focusedObject.draggable&&Oe.isKey(t,["up","down","left","right"])){t.preventDefault();var e=this.focusedObject,r="interactionKeyboardObject";if(e.eventDisposers.hasKey(r))return;var n=new qu(e,t);switch(e.eventDisposers.setKey(r,n),Oe.getEventKey(t)){case"up":n.directionY=-1;break;case"down":n.directionY=1;break;case"left":n.directionX=-1;break;case"right":n.directionX=1;break}}}},i.prototype.handleGlobalKeyUp=function(t){var e="interactionKeyboardObject";if(this.focusedObject){var r=this.focusedObject.eventDisposers.getKey(e);r!=null&&(t.preventDefault(),r.dispose(),this.focusedObject.eventDisposers.removeKey(e));
152var n=this.focusedObject.sprite;Oe.isKey(t,"enter")&&n&&(n.events.isEnabled("hit")||n.events.isEnabled("toggled")?this.focusedObject.dispatchImmediately("hit"):n.showTooltipOn=="hit"&&this.focusedObject.dispatchImmediately("up"))}},i.prototype.handleGlobalPointerMove=function(t){var e=this.getPointer(t);if(e.point=this.getPointerPoint(t),this.events.isEnabled("track")&&!J.isPaused){var r={type:"track",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("track",r)}this.addBreadCrumb(e,e.point),this.handleGlobalMove(e,t)},i.prototype.handleGlobalPointerDown=function(t){this.processDelayed();var e=this.getPointer(t);if(this.events.isEnabled("down")&&!J.isPaused){var r={type:"down",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("down",r)}},i.prototype.preventTouchAction=function(t){t.defaultPrevented||t.preventDefault()},i.prototype.handleGlobalPointerUp=function(t,e){e===void 0&&(e=!1);var r=this.getPointer(t);if(this.events.isEnabled("up")&&!J.isPaused){var n={type:"up",target:this,event:t,pointer:r,touch:r.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(r,t,e)},i.prototype.handleGlobalTouchMove=function(t){for(var e=0;e<t.changedTouches.length;e++){var r=this.getPointer(t.changedTouches[e]);if(r.point=this.getPointerPoint(t.changedTouches[e]),this.events.isEnabled("track")&&!J.isPaused){var n={type:"track",target:this,event:t,pointer:r,touch:r.touch};this.events.dispatchImmediately("track",n)}this.addBreadCrumb(r,r.point),this.handleGlobalMove(r,t)}},i.prototype.handleGlobalTouchStart=function(t){this.processDelayed();for(var e=0;e<t.changedTouches.length;e++){var r=this.getPointer(t.changedTouches[e]);if(!this._usePointerEventsOnly&&this.events.isEnabled("down")&&!J.isPaused){var n={type:"down",target:this,event:t,pointer:r,touch:r.touch};this.events.dispatchImmediately("down",n)}}},i.prototype.handleGlobalTouchEnd=function(t){for(var e=0;e<t.changedTouches.length;e++){var r=this.getPointer(t.changedTouches[e]);if(this.events.isEnabled("up")&&!J.isPaused){var n={type:"up",target:this,event:t,pointer:r,touch:r.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(r,t)}},i.prototype.handlePointerDown=function(t,e){var r=this.getPointer(e);!r.touch&&e.which!=1&&e.which!=3||(r.button=e.which,this.resetPointer(r,e),this.handleDown(t,r,e))},i.prototype.handlePointerOver=function(t,e){var r=this.getPointer(e);this.handleOver(t,r,e)},i.prototype.handlePointerOut=function(t,e){var r=this.getPointer(e);this.handleOut(t,r,e)},i.prototype.handleMouseWheel=function(t,e){var r=this.getPointer(e);r.point=this.getPointerPoint(e);var n=0,a=0,o=1;if(e.deltaMode==1&&(o=50),o*=this.getMouseOption(t,"sensitivity"),e instanceof WheelEvent)n=Math.round(-1*e.wheelDeltaX||e.deltaX*o),a=Math.round(-1*e.wheelDeltaY||e.deltaY*o);else throw new Error("Invalid event type");this.handleWheel(t,r,n,a,e)},i.prototype.handleTouchDown=function(t,e){for(var r=0;r<e.changedTouches.length;r++){var n=this.getPointer(e.changedTouches[r]);this.maybePreventDefault(t,e,n),this.resetPointer(n,e.changedTouches[r]),this.handleDown(t,n,e)}},i.prototype.handleHit=function(t,e,r){var n=Ce();if(t.lastHit&&t.lastHit>=n-this.getHitOption(t,"doubleHitTime")){if(n-t.lastHit<100)return;if(t.lastHit=void 0,t.lastHitPointer=void 0,t.events.isEnabled("doublehit")&&!J.isPaused){var a={type:"doublehit",target:t,point:e.point,event:r,touch:e.touch};t.events.dispatchImmediately("doublehit",a)}}else if(t.lastHit=n,t.lastHitPointer=e,e.button===3){if(t.events.isEnabled("rightclick")&&!J.isPaused){var a={type:"rightclick",target:t,event:r};t.events.dispatchImmediately("rightclick",a)}}else if(t.events.isEnabled("hit")&&!J.isPaused){var a={type:"hit",target:t,event:r,point:e.point,touch:e.touch};t.events.dispatchImmediately("hit",a)}},i.prototype.handleOver=function(t,e,r,n){if(t.hoverable){var a=!1;if(this.shouldCancelHovers(e)&&this.areTransformed()&&this.moved(e,this.getHitOption(t,"hitTolerance"))&&(a=!0,this.cancelAllHovers(r)),this.processDelayed(),t.overPointers.moveValue(e),!t.isRealHover&&(a||(t.isHover=!0,t.isRealHover=!0,this.overObjects.moveValue(t)),this.handleTrack(this.body,e,r,!0),t.events.isEnabled("over")&&!J.isPaused&&!a)){var o={type:"over",target:t,event:r,pointer:e,touch:e.touch};t.events.dispatchImmediately("over",o)}}},i.prototype.handleOut=function(t,e,r,n,a){var o=this;if(n===void 0&&(n=!1),a===void 0&&(a=!1),!!t.hoverable&&(t.overPointers.removeValue(e),t.isHover&&(!t.hasDelayedOut||a))){if(n&&t.overPointers.length)return;if(e&&e.touch&&!a&&!this.old(e)){var l=this.getHoverOption(t,"touchOutBehavior");if(l=="leave"){this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:r,keepUntil:Ce()+500}),t.hasDelayedOut=!0;return}else if(l=="delay"&&this.getHoverOption(t,"touchOutDelay")){this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:r,keepUntil:Ce()+500,timeout:this.setTimeout(function(){o.handleOut(t,e,r,!0)},this.getHoverOption(t,"touchOutDelay"))});return}}if(t.isHover=!1,this.overObjects.removeValue(t),!t.isDisposed()&&t.events.isEnabled("out")&&!J.isPaused){var h={type:"out",target:t,event:r,pointer:e,touch:e.touch};t.events.dispatchImmediately("out",h)}t.overPointers.clear(),t.hasDelayedOut=!1}},i.prototype.processDelayed=function(){for(var t;t=this._delayedEvents.out.pop(),!!t;
152)t.timeout&&t.timeout.dispose(),this.handleOut(t.io,t.pointer,t.event,!1,!0)},i.prototype.handleDown=function(t,e,r){if(this.maybePreventDefault(t,r,e),t.inert&&this.stopInertia(t),this.handleOver(t,e,r,!0),t.downPointers.moveValue(e),this.applyCursorDownStyle(t,e),t.isDown||(t.focusable!==!1&&this.getHitOption(t,"noFocus")&&this.focusedObject&&_r(),t.isDown=!0,this.downObjects.moveValue(t),t.draggable&&this.processDragStart(t,e,r),t.resizable&&this.processResizeStart(t,e,r)),t.events.isEnabled("down")&&!J.isPaused){var n={type:"down",target:t,event:r,pointer:e,touch:e.touch};t.events.dispatchImmediately("down",n)}},i.prototype.handleGlobalUp=function(t,e,r){var n=this;r===void 0&&(r=!1);var a=this.downObjects.values.slice();a.sort(function(o,l){if(o&&l){var h=o.element.compareDocumentPosition(l.element);return h&Node.DOCUMENT_POSITION_CONTAINED_BY?1:h&Node.DOCUMENT_POSITION_CONTAINS?-1:0}else return 0}),L(a,function(o){o&&o.downPointers.contains(t)&&n.handleUp(o,t,e,r)})},i.prototype.handleDocumentLeave=function(t){var e=this;A(this.downObjects.backwards().iterator(),function(r){r.downPointers.each(function(n){e.handleUp(r,n,t)})})},i.prototype.handleUp=function(t,e,r,n){if(n===void 0&&(n=!1),this.restoreCursorDownStyle(t,e),t.downPointers.removeValue(e),(e&&e.touch||this._useTouchEventsOnly)&&this.handleOut(t,e,r,!0),t.isDown){if(t.downPointers.length==0&&(t.isDown=!1,this.downObjects.removeValue(t)),t.events.isEnabled("up")&&!J.isPaused&&e){var a={type:"up",target:t,event:r,pointer:e,touch:e.touch};t.events.dispatchImmediately("up",a)}n||(t.swipeable&&this.swiped(t,e)?this.handleSwipe(t,e,r):(t.clickable&&!this.moved(e,this.getHitOption(t,"hitTolerance"))&&this.handleHit(t,e,r),t.inert&&this.moved(e,this.getHitOption(t,"hitTolerance"))?this.handleInertia(t,e):t.draggable&&this.processDragStop(t,e,r),t.resizable&&this.processResizeStop(t,e,r)))}},i.prototype.maybePreventDefault=function(t,e,r){b(e)&&(t.draggable||t.swipeable||t.trackable||t.resizable)&&!this.isGlobalElement(t)&&e.cancelable!==!1&&(!t.isTouchProtected||!r||!r.touch)&&e.preventDefault()},i.prototype.cancelAllHovers=function(t){var e=this;A(this.overObjects.backwards().iterator(),function(r){if(r){var n=r.overPointers.getIndex(0);e.handleOut(r,n,t,!0,!0)}})},i.prototype.shouldCancelHovers=function(t){return oe.disableHoverOnTransform=="touch"},i.prototype.handleGlobalMove=function(t,e){var r=this;if(!t.touch){var n=Bu(t.lastEvent);A(this.overObjects.backwards().iterator(),function(a){if(a&&a.overPointers.contains(t)&&a.hoverable){var o=!1;a.element&&t.lastEvent&&ca(a.element,n)||(o=!0),o&&r.handleOut(a,t,e,!0)}})}A(this.transformedObjects.backwards().iterator(),function(a){a.downPointers.contains(t)&&!(a.swipeable&&r.swiping(a,t))&&(a.draggable||a.resizable)&&r.handleTransform(a,e)}),A(this.trackedObjects.backwards().iterator(),function(a){a.overPointers.contains(t)||r.handleTrack(a,t,e)})},i.prototype.handleTrack=function(t,e,r,n){if(n===void 0&&(n=!1),!(!n&&!this.moved(e,0))&&t.events.isEnabled("track")&&!J.isPaused){var a={type:"track",target:t,event:r,point:e.point,pointer:e,touch:e.touch};t.events.dispatchImmediately("track",a)}},i.prototype.handleSwipe=function(t,e,r){if(t.events.isEnabled("swipe")&&!J.isPaused){var n={type:"swipe",target:t,event:r,touch:e.touch};t.events.dispatchImmediately("swipe",n)}if(e.startPoint.x<e.point.x){if(t.events.isEnabled("swiperight")&&!J.isPaused){var n={type:"swiperight",target:t,event:r,touch:e.touch};t.events.dispatchImmediately("swiperight",n)}}else if(t.events.isEnabled("swipeleft")&&!J.isPaused){var n={type:"swipeleft",target:t,event:r,touch:e.touch};t.events.dispatchImmediately("swipeleft",n)}},i.prototype.handleWheel=function(t,e,r,n,a){var o={x:r,y:n};t.events.isEnabled("wheel")&&!J.isPaused&&t.events.dispatchImmediately("wheel",{type:"wheel",target:t,event:a,point:e.point,shift:o}),r<0?t.events.isEnabled("wheelleft")&&!J.isPaused&&t.events.dispatchImmediately("wheelleft",{type:"wheelleft",target:t,event:a,point:e.point,shift:o}):r>0?t.events.isEnabled("swiperight")&&!J.isPaused&&t.events.dispatchImmediately("wheelright",{type:"wheelright",target:t,event:a,point:e.point,shift:o}):n<0?t.events.isEnabled("wheelup")&&!J.isPaused&&t.events.dispatchImmediately("wheelup",{type:"wheelup",target:t,event:a,point:e.point,shift:o}):n>0&&t.events.isEnabled("wheeldown")&&!J.isPaused&&t.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:t,event:a,point:e.point,shift:o})},i.prototype.handleInertia=function(t,e){t.draggable&&t.downPointers.length===0&&this.handleMoveInertia(t,e),t.resizable&&t.downPointers.length>1&&this.handleResizeInertia(t,e)},i.prototype.handleMoveInertia=function(t,e){var r=t,n="move",a={x:e.point.x,y:e.point.y},o={x:e.startPoint.x,y:e.startPoint.y},l=new Zu(r,n,a,o),h=this.getTrailPoint(e,Ce()-this.getInertiaOption(t,"move","time"));if(typeof h>"u"){this.processDragStop(t,e,e.lastUpEvent);return}var u=this.getInertiaOption(t,"move","factor"),p=[{to:e.point.x+(e.point.x-h.point.x)*u,property:"x"},{to:e.point.y+(e.point.y-h.point.y)*u,property:"y"}],d=new ge(l,p,this.getInertiaOption(t,"move","duration"),this.getInertiaOption(t,"move","easing")).start();this._disposers.push(d.events.on("animationended",function(f){l.done()})),t.inertias.setKey("move",l)},i.prototype.handleResizeInertia=function(t,e){},i.prototype.handleTransform=function(t,e){var r=t.downPointers.getIndex(0),n=null,a=null;r&&(n=r.point,a=r.startPoint);var o,l,h;l={x:t.originalPosition.x,y:t.originalPosition.y},h=l;for(var u=!0,p=1;p<t.downPointers.length;p++){var d=t.downPointers.getIndex(p);if(a.x!=d.startPoint.x&&a.y!=d.startPoint.y){u=!1,o=d,l=o.point,h=o.startPoint;break}}var f=r&&this.moved(r,0);if(t.draggable&&r&&r.dragStartEvents&&r.dragStartEvents.length&&f&&t.events.isEnabled("dragstart")&&!J.isPaused&&t.events.dispatchImmediately("dragstart",r.dragStartEvents.shift()),u&&t.draggable)this.handleTransformMove(t,n,a,e,f,r.touch),this.shouldCancelHovers(r)&&this.moved(r,this.getHitOption(t,"hitTolerance"))&&this.cancelAllHovers(e);else{var c=o&&this.moved(o,0);(this.shouldCancelHovers(r)&&this.moved(r,this.getHitOption(t,"hitTolerance"))||this.shouldCancelHovers(o)&&this.moved(o,this.getHitOption(t,"hitTolerance")))&&this.cancelAllHovers(e),t.draggable&&t.resizable?(this.handleTransformMove(t,n,a,e,f&&c,r.touch),this.handleTransformResize(t,n,a,l,h,e,f&&c,r.touch)):(t.draggable&&this.handleTransformMove(t,n,a,e,f,r.touch),t.resizable&&(!u||e.ctrlKey)&&this.handleTransformResize(t,n,a,l,h,e,f&&c,r.touch))}},i.prototype.handleTransformMove=function(t,e,r,n,a,o){if(a&&t.events.isEnabled("drag")&&!J.isPaused&&(!t.isTouchProtected||!o)){var l={type:"drag",target:t,event:n,shift:{x:e.x-r.x,y:e.y-r.y},startPoint:r,point:e,touch:o};t.events.dispatchImmediately("drag",l)}
152},i.prototype.handleTransformResize=function(t,e,r,n,a,o,l,h){if(t.events.isEnabled("resize")&&!J.isPaused&&(!t.isTouchProtected||!h)){var u={type:"resize",target:t,event:o,scale:ph(e,r,n,a),startPoint1:r,point1:e,startPoint2:a,point2:n,touch:h};t.events.dispatchImmediately("resize",u)}},i.prototype.processDragStart=function(t,e,r){this.transformedObjects.moveValue(t),this.shouldCancelHovers(e)&&this.cancelAllHovers(r);var n={type:"dragstart",target:t,event:r,touch:e?e.touch:!1};e&&(e.dragTarget=t),e&&e.dragStartEvents?e.dragStartEvents.push(n):J.isPaused||t.dispatchImmediately("dragstart",n)},i.prototype.processDragStop=function(t,e,r){if(e||(e=this.getDragPointer(t)),e&&(e.dragTarget=void 0),this.transformedObjects.removeValue(t),(!e||this.moved(e,0))&&t.events.isEnabled("dragstop")&&!J.isPaused){var n={type:"dragstop",target:t,touch:e?e.touch:!1};t.events.dispatchImmediately("dragstop",n)}},i.prototype.processResizeStart=function(t,e,r){this.transformedObjects.moveValue(t)},i.prototype.processResizeStop=function(t,e,r){this.transformedObjects.removeValue(t)},i.prototype.dragStart=function(t,e){e||(e=this.getDragPointer(t)),e&&this.handleDown(t,e,e.lastDownEvent)},i.prototype.dragStop=function(t,e,r){e||(e=this.getDragPointer(t)),e&&!r&&this.handleGlobalUp(e,e.lastUpEvent,r)},i.prototype.getDragPointer=function(t){return t?t.downPointers.getIndex(0):this.transformedObjects.length?this.getDragPointer(this.transformedObjects.getIndex(0)):void 0},i.prototype.getPointerId=function(t){var e="";return b(t.identifier)?e=""+t.identifier:b(t.pointerId)?e=""+t.pointerId:e="m",e.replace("-","")},i.prototype.getPointerPoint=function(t){return{x:t.clientX,y:t.clientY}},i.prototype.getPointer=function(t){var e=this.getPointerId(t),r=this.getPointerPoint(t),n;return this.pointers.hasKey(e)?(n=this.pointers.getKey(e),n.touch=this.isPointerTouch(t)):(n={id:e,touch:this.isPointerTouch(t),startPoint:r,startTime:Ce(),point:r,track:[],swipeCanceled:!1,dragStartEvents:[]},this.addBreadCrumb(n,r),this.pointers.setKey(e,n)),n.lastEvent=t,this.lastPointer=n,n},i.prototype.isPointerTouch=function(t){if(typeof Touch<"u"&&t instanceof Touch)return!0;if(typeof PointerEvent<"u"&&t instanceof PointerEvent&&b(t.pointerType))switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(b(t.type)&&t.type.match(/^mouse/))return!1;return!0},i.prototype.resetPointer=function(t,e){var r=this.getPointerPoint(e);t.startTime=Ce(),t.startPoint={x:r.x,y:r.y},t.point={x:r.x,y:r.y},t.track=[],t.swipeCanceled=!1},i.prototype.addBreadCrumb=function(t,e){t.track.push({timestamp:Ce(),point:e})},i.prototype.lockDocument=function(){this.prepElement(this.body)},i.prototype.unlockDocument=function(){this.transformedObjects.length==0&&this.restoreAllStyles(this.body)},i.prototype.lockElement=function(t){this.prepElement(t)},i.prototype.unlockElement=function(t){this.restoreAllStyles(t)},i.prototype.lockWheel=function(){window.addEventListener(this._pointerEvents.wheel,this.wheelLockEvent,this._passiveSupported?{passive:!1}:!1)},i.prototype.unlockWheel=function(){window.removeEventListener(this._pointerEvents.wheel,this.wheelLockEvent)},i.prototype.isLocalElement=function(t,e,r){var n=this.getCache("local_pointer_"+t.id);if(b(n))return n;var a=lo(e)||document;if(a.elementFromPoint){var o=a.elementFromPoint(t.point.x,t.point.y),l=o&&ca(e,o);return this.setCache("local_pointer_"+t.id+"_"+r,l,100),l}return!1},i.prototype.wheelLockEvent=function(t){return t.preventDefault(),!1},i.prototype.prepElement=function(t){var e=t.element;if(e){for(var r=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","
152webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<r.length;n++)r[n]in e.style&&this.setTemporaryStyle(t,r[n],"none");this.setTemporaryStyle(t,"tapHighlightColor","rgba(0, 0, 0, 0)")}},i.prototype.unprepElement=function(t){var e=t.element;if(e){for(var r=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],n=0;n<r.length;n++)r[n]in e.style&&this.restoreStyle(t,r[n]);this.restoreStyle(t,"tapHighlightColor")}},i.prototype.getHitOption=function(t,e){var r=t.hitOptions[e];return typeof r>"u"&&(r=this.hitOptions[e]),r},i.prototype.getHoverOption=function(t,e){var r=t.hoverOptions[e];return typeof r>"u"&&(r=this.hoverOptions[e]),r},i.prototype.getSwipeOption=function(t,e){var r=t.swipeOptions[e];return typeof r>"u"&&(r=this.swipeOptions[e]),r},i.prototype.getKeyboardOption=function(t,e){var r=t.keyboardOptions[e];return typeof r>"u"&&(r=this.keyboardOptions[e]),r},i.prototype.getMouseOption=function(t,e){var r=t.mouseOptions[e];return typeof r>"u"&&(r=this.mouseOptions[e]),r},i.prototype.getInertiaOption=function(t,e,r){var n=t.inertiaOptions.getKey(e),a;return n&&b(n[r])?a=n[r]:a=this.inertiaOptions.getKey(e)[r],a},i.prototype.stopInertia=function(t){for(var e,r=["move","resize"],n=0;n<r.length;n++)if(e=r[n],t.inertias.hasKey(e)){var a=t.inertias.getKey(e);if(a){a.dispose();continue}}},i.prototype.swiping=function(t,e){var r=Ce();return e.swipeCanceled||!t.swipeable?!1:Math.abs(e.startPoint.y-e.point.y)<this.getSwipeOption(t,"verticalThreshold")&&e.startTime>r-this.getSwipeOption(t,"time")},i.prototype.swiped=function(t,e){var r=Ce();return e.swipeCanceled?!1:Math.abs(e.startPoint.x-e.point.x)>this.getSwipeOption(t,"horizontalThreshold")&&Math.abs(e.startPoint.y-e.point.y)<this.getSwipeOption(t,"verticalThreshold")&&e.startTime>r-this.getSwipeOption(t,"time")},i.prototype.applyCursorOverStyle=function(t){var e=t.cursorOptions;if(b(e.overStyle))for(var r=0;r<e.overStyle.length;r++)fa(t.element,e.overStyle[r].property,e.overStyle[r].value)},i.prototype.applyCursorDownStyle=function(t,e){if(!(e&&e.touch)){var r=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&b(r))for(var n=0;n<r.length;n++)this.setTemporaryStyle(this.body,r[n].property,r[n].value),this.setTemporaryStyle(t,r[n].property,r[n].value)}},i.prototype.restoreCursorDownStyle=function(t,e){if(!(e&&e.touch)){var r=t.cursorOptions.downStyle;if(t.downPointers.contains(e)&&b(r))for(var n=0;n<r.length;n++)this.restoreStyle(this.body,r[n].property),this.restoreStyle(t,r[n].property)}},i.prototype.setGlobalStyle=function(t){for(var e=K().body,r=Wt(t)?t:[t],n=0;n<r.length;n++)this.setTemporaryStyle(e,r[n].property,r[n].value)},i.prototype.restoreGlobalStyle=function(t){for(var e=K().body,r=Wt(t)?t:[t],n=0;n<r.length;n++)this.restoreStyle(e,r[n].property)},i.prototype.isGlobalElement=function(t){return document.body===t.element},i.prototype.moved=function(t,e,r){var n=this.getShift(t);return Math.abs(n.x)>e||Math.abs(n.y)>e},i.prototype.old=function(t,e){return e===void 0&&(e=300),Ce()-t.startTime>e},i.prototype.getShift=function(t){return{x:t.startPoint.x-t.point.x,y:t.startPoint.y-t.point.y}},i.prototype.getTrailPoint=function(t,e){for(var r,n=0;n<t.track.length;n++)if(t.track[n].timestamp>=e){r=t.track[n];break}return r},i.prototype.pointerExists=function(t,e){var r=!1;return t.each(function(n){n!=e&&(r=n.point.x==e.point.x&&n.point.y==e.point.y)}),r},i.prototype.getInteraction=function(t){return new Ku(t)},i.prototype.setTemporaryStyle=function(t,e,r){var n=t.element;b(n.style[e])&&!t.replacedStyles.hasKey(e)&&t.replacedStyles.setKey(e,n.style[e]),fa(n,e,r)},i.prototype.restoreStyle=function(t,e){t.replacedStyles.hasKey(e)?(t.element.style[e]=t.replacedStyles.getKey(e),t.replacedStyles.removeKey(e)):delete t.element.style[e]},i.prototype.restoreAllStyles=function(t){A(t.replacedStyles.iterator(),function(e){var r=e[0],n=e[1];t.element.style[r]=n,t.replacedStyles.removeKey(r)})},i.prototype.dispose=function(){this.isDisposed()||(s.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},i.prototype.log=function(t,e,r){{if(e.changedTouches){for(var n=0;n<e.changedTouches.length;n++)this.logTouch(t,e.type,e.changedTouches[n]);return}var a="";if(e.pointerType)switch(e.pointerType){case 2:a="touch";break;case 4:a="mouse";break;default:a=e.pointerType;break}else typeof TouchEvent<"u"&&e instanceof TouchEvent?a="touch":e.type.match(/^mouse/)?a="mouse":a="???";var o="";b(e.identifier)?o=e.identifier:b(e.pointerId)?o=e.pointerId:o="???",console.log(r?t+" ("+r.uid+")  "+e.type+"  "+a+"  "+o:t+"  "+e.type+"  "+a+"  "+o)}},i.prototype.areTransformed=function(t){var e=this.transformedObjects.length;if(t)for(var r=Wt(t)?t:[t],n=0;n<r.length;n++)this.transformedObjects.contains(r[n])&&e--;return e>0},i.prototype.logTouch=function(t,e,r){console.log(t+"  "+e+"  touch  "+r.identifier)},Object.defineProperty(i,"passiveSupported",{get:function(){var t=this;if(this._passiveSupported==null)try{var e=Object.defineProperty({},"passive",{get:function(){t._passiveSupported=!0}
152});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),i}(Ve),Dn=null;function K(){return Dn==null&&(Dn=new ep),Dn}var uo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.adapter=new ne(t),t._elements={},t._IOs={},t._content="",t._title="",t._classPrefix="ampopup",t._defaultStyles=!0,t._showCurtain=!1,t._draggable=!0,t._align="center",t._dynamicResize=!0,t._verticalAlign="middle",t._shift={x:0,y:0},t._tempShift={x:0,y:0},t._readerTitle="",t._closable=!0,t._cssLoaded=!1,t._fitTo="window",t.isTemplate=!1,t._sized=!1,t.className="Popup",t}return i.prototype.open=function(){this.container&&(this._elements.wrapper&&this.container.appendChild(this._elements.wrapper),this._elements.curtain&&(this.container.appendChild(this._elements.curtain),this.showCurtain=this.showCurtain),this.positionElement(),this.dispatchImmediately("opened"))},i.prototype.close=function(){this._elements.wrapper&&this._elements.wrapper.parentElement&&this._elements.wrapper.parentElement.removeChild(this._elements.wrapper),this._elements.curtain&&this._elements.curtain.parentElement&&this._elements.curtain.parentElement.removeChild(this._elements.curtain),this.dispatchImmediately("closed"),this.releasePointers()},i.prototype.dispose=function(){this.close(),s.prototype.dispose.call(this)},i.prototype.positionElement=function(t){var e=this;t===void 0&&(t=!0),this._elements.wrapper&&setTimeout(function(){if(e._elements.wrapper){if(t||!e._sized){e._elements.wrapper.style.opacity="0.01",e._elements.wrapper.style.left="0",e._elements.wrapper.style.top="0",e._elements.wrapper.style.margin="0 0 0 0",e._elements.wrapper.style.width="",e._elements.wrapper.style.height="";var r=e._elements.wrapper.getBoundingClientRect();e._elements.wrapper.style.width=r.width+"px",e._elements.wrapper.style.height=r.height+"px",e._sized=!0}if(e.dynamicResize)for(var n=e._elements.wrapper.getElementsByTagName("img"),a=0;a<n.length;a++){var o=n[a];if(!o.complete){o.addEventListener("load",function(){e.positionElement(!0)});break}}setTimeout(function(){if(e._elements.wrapper){var l;switch((t||!e._sized)&&e._bbox?l=e._bbox:(l=e._elements.wrapper.getBoundingClientRect(),e._elements.wrapper.style.opacity=""),e.align){case"left":e._elements.wrapper.style.left="0",e._elements.wrapper.style.right="auto",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x);break;case"center":e._elements.wrapper.style.left="50%",e._elements.wrapper.style.right="auto",e._elements.wrapper.style.marginLeft=e.toStyle(Math.round(-l.width/2)+(e._shift.x+e._tempShift.x));break;case"right":e._elements.wrapper.style.left="auto",e._elements.wrapper.style.right="0",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x);break;default:e._elements.wrapper.style.left=e.toStyle(e.left)||"auto",e._elements.wrapper.style.right=e.toStyle(e.right)||"auto",e._elements.wrapper.style.marginLeft=e.toStyle(e._shift.x+e._tempShift.x);break}switch(e.verticalAlign){case"top":e._elements.wrapper.style.top="0",e._elements.wrapper.style.bottom="auto",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y);break;case"middle":e._elements.wrapper.style.top="50%",e._elements.wrapper.style.bottom="auto",e._elements.wrapper.style.marginTop=e.toStyle(Math.round(-l.height/2)+(e._shift.y+e._tempShift.y));break;case"bottom":e._elements.wrapper.style.top="auto",e._elements.wrapper.style.bottom="0",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y);break;default:e._elements.wrapper.style.top=e.toStyle(e.top)||"auto",e._elements.wrapper.style.bottom=e.toStyle(e.bottom)||"auto",e._elements.wrapper.style.marginTop=e.toStyle(e._shift.y+e._tempShift.y);break}}},1)}},1)},i.prototype.setupDragging=function(){var t=this;this.draggable?(this._IOs.header.events.has("drag")||this._IOs.header.events.on("drag",function(e){t._tempShift.x=e.shift.x,t._tempShift.y=e.shift.y,t.positionElement(!1)}),this._IOs.header.events.has("dragstop")||this._IOs.header.events.on("dragstop",function(e){t._shift.x+=t._tempShift.x,t._shift.y+=t._tempShift.y,t._tempShift.x=0,t._tempShift.y=0,t.positionElement(!1)})):this._IOs.header&&(K().unprepElement(this._IOs.header),this._IOs.header.events.has("drag")&&this._IOs.header.events.off("drag"),this._IOs.header.events.has("dragstop")&&this._IOs.header.events.off("dragstop"))},i.prototype.toStyle=function(t){return b(t)?v(t)?""+t+"px":t.toString():null},Object.defineProperty(i.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",this._classPrefix)},set:function(t){this._classPrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"classPrefixRaw",{get:function(){return this._classPrefix},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return this.adapter.apply("content",this._content)},set:function(t){this._content!=t&&(this._content=t,this._elements.content||this.createContentElement(),this._elements.content.innerHTML=t,this.positionElement())},enumerable:!0,configurable:!0}),i.prototype.getClassNames=function(){return this.adapter.apply("classNames",{wrapperClass:this.classPrefix+"",headerClass:this.classPrefix+"-header",titleClass:this.classPrefix+"-title",contentClass:this.classPrefix+"-content",insideClass:this.classPrefix+"-inside",curtainClass:this.classPrefix+"-curtain",closeClass:this.classPrefix+"-close"})},i.prototype.createContentElement=function(){if(!this._elements.wrapper){var t=this.getClassNames(),e=document.createElement("div");e.className=t.contentClass,e.style.opacity="0.01";var r=document.createElement("a");r.className=t.closeClass;var n=document.createElement("div");n.className=t.headerClass;var a=document.createElement("div");a.innerHTML=this.title,a.className=t.titleClass,this.title||(a.style.display="none");var o=document.createElement("div");o.className=t.insideClass,o.innerHTML=this.content,this._IOs.wrapper=K().getInteraction(e),this._IOs.header=K().getInteraction(n),this._disposers.push(this._IOs.wrapper),this._IOs.wrapper.events.on("over",this.disablePointers,this),this._IOs.wrapper.events.on("out",this.releasePointers,this),this._IOs.close=K().getInteraction(r),this._disposers.push(this._IOs.close),r.style.visibility="hidden",e.setAttribute("role","dialog"),n.appendChild(r),n.appendChild(a),e.appendChild(n),e.appendChild(o),this.container.appendChild(e),this._elements.wrapper=e,this._elements.header=n,this._elements.content=o,this._elements.title=a,this._elements.close=r,this.defaultStyles&&this.loadDefaultCSS(),this.createCurtainElement(),this.applyEvents(),this.applyReaderSettings(),this.setupDragging()}},Object.defineProperty(i.prototype,"title",{get:function(){return this.adapter.apply("title",this._title)},set:function(t){this._title!=t&&(this._title=t,this._elements.content||this.createContentElement(),this._elements.title.innerHTML=t,this.positionElement(),this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerTitle",{get:function(){return this.adapter.apply("readerTitle",this._readerTitle!=""?this._readerTitle:this.title)},set:function(t){this._readerTitle!=t&&(this._readerTitle=t,this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closable",{get:function(){return this.adapter.apply("closable",this._closable)},set:function(t){t!==this._closable&&(this._closable=t,this.applyEvents())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fitTo",{get:function(){return this.adapter.apply("fitTo",this._fitTo)},set:function(t){t!=this._fitTo&&(this._fitTo=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",this._defaultStyles)},set:function(t){this._defaultStyles!=t&&(this._defaultStyles=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showCurtain",{get:function(){return this.adapter.apply("showCurtain",this._showCurtain)},set:function(t){this._showCurtain!=t&&(this._showCurtain=t,this._elements.curtain&&(this._elements.curtain.style.display=t?"block":"none"))},enumerable:!0,configurable:!0}),i.prototype.createCurtainElement=function(){var t=this.getClassNames(),e=document.createElement("div");e.className=t.curtainClass,this.container.appendChild(e),this._IOs.curtain=K().getInteraction(e),this._disposers.push(this._IOs.curtain),this._IOs.curtain.events.on("over",this.disablePointers,this),this._IOs.curtain.events.on("out",this.releasePointers,this),e.style.display=this.showCurtain?"block":"none",this._elements.curtain=e},Object.defineProperty(i.prototype,"draggable",{get:function(){return this.adapter.apply("draggable",this._draggable)},set:function(t){this._draggable!=t&&(this._draggable=t,this.setupDragging())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dynamicResize",{get:function(){return this.adapter.apply("dynamicResize",this._dynamicResize)},set:function(t){this._dynamicResize!=t&&(this._dynamicResize=t,this.positionElement(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"align",{get:function(){return this.adapter.apply("align",this._align)},set:function(t){this._align!=t&&(this._align=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",this._verticalAlign)},set:function(t){this._verticalAlign!=t&&(this._verticalAlign=t,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return this.adapter.apply("left",this._left)},set:function(t){this.left!=t&&(this._left=t,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return this.adapter.apply("right",this._right)},set:function(t){this.right!=t&&(this._right=t,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return this.adapter.apply("top",this._top)},set:function(t){this.top!=t&&(this._top=t,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return this.adapter.apply("bottom",this._bottom)},set:function(t){this.bottom!=t&&(this._bottom=t,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),i.prototype.loadDefaultCSS=function(){this._cssLoaded||(this._disposers.push(Uu(_s(this.container),this.classPrefix)),U(this._elements,function(t,e){e.style.display=""}),this._cssLoaded=!0)},i.prototype.applyEvents=function(){var t=this;if(this._IOs.close)if(this.closable){this._IOs.close.element.style.visibility="visible";var e=[K().body.events.on("keyup",function(r){Oe.isKey(r.event,"esc")&&t.closable&&t.close()}),this._IOs.close.events.on("hit",function(r){t.close()})];e.push(this._IOs.curtain.events.on("hit",function(r){t.showCurtain&&t.closable&&t.close()})),this._disposers.push(new Pt(e))}else this._IOs.close.element.style.visibility="hidden"},i.prototype.disablePointers=function(){this.sprite&&(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled,this.sprite.interactionsEnabled=!1)},i.prototype.releasePointers=function(){b(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled,this._spriteInteractionsEnabled=void 0)},i.prototype.applyReaderSettings=function(){this.elements.wrapper.setAttribute("aria-label",this.readerTitle)},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.container=t.container,this.sprite=t.sprite,this.classPrefix=t.classPrefixRaw,this.content=t.content,this.title=t.title,this.readerTitle=t.readerTitle,this.defaultStyles=t.defaultStyles,this.showCurtain=t.showCurtain,this.align=t.align,this.verticalAlign=t.verticalAlign,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.adapter.copyFrom(t.adapter)},i}(Ve),po=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.adapter=new ne(t),t.className="Modal",t.showCurtain=!0,t.draggable=!1,t}return i}(uo),ip=function(){function s(){var i=this;this._targets=[],this._observer=new ResizeObserver(function(t){L(t,function(e){L(i._targets,function(r){r.target===e.target&&r.callback()})})})}return s.prototype.addTarget=function(i,t){this._observer.observe(i,{box:"content-box"}),this._targets.push({target:i,callback:t})},s.prototype.removeTarget=function(i){this._observer.unobserve(i),Ba(this._targets,function(t){return t.target!==i})},s}(),rp=function(){function s(){this._targets=[]}return s.prototype.addTarget=function(i,t){var e=this;if(this._targets.length===0){var r=null,n=function(){var o=Date.now();(r===null||o>r+s.delay)&&(r=o,L(e._targets,function(l){var h=l.target.getBoundingClientRect();(h.width!==l.size.width||h.height!==l.size.height)&&(l.size=h,l.callback())})),e._timer=requestAnimationFrame(n)};this._timer=requestAnimationFrame(n)}var a=i.getBoundingClientRect();this._targets.push({target:i,callback:t,size:a})},s.prototype.removeTarget=function(i){Ba(this._targets,function(t){return t.target!==i}
152),this._targets.length===0&&cancelAnimationFrame(this._timer)},s.delay=200,s}(),cr=null;function np(){return cr===null&&(typeof ResizeObserver<"u"?cr=new ip:cr=new rp),cr}var sp=function(){function s(i,t){this._disposed=!1,this._sensor=np(),this._element=i,this._sensor.addTarget(i,t)}return s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element))},Object.defineProperty(s.prototype,"sensor",{get:function(){return this._sensor},enumerable:!0,configurable:!0}),s.prototype.reset=function(){ms("resizeSensor.reset() is no longer needed and can be removed")},s}(),Qn=[],fo=function(){function s(i,t){var e=this;this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this._printing=!1,this.htmlElement=i,t||(this._printing=!1,this.initSensor(),this._disposers.push(Vt(window,"beforeprint",function(){e._printing=!0})),this._disposers.push(Vt(window,"afterprint",function(){e._printing=!1}))),Qn.push(this);var r=document.createElement("div"),n=r.style;n.width="100%",n.height="100%",n.position="relative",i.appendChild(r),this.SVGContainer=r}return s.prototype.initSensor=function(){var i=this;this.resizeSensor&&this.resizeSensor.dispose();var t=function(){i.autoResize&&!i._printing&&i.measure()};this.resizeSensor=new sp(this.htmlElement,t),this._disposers.push(this.resizeSensor)},s.prototype.measure=function(){var i=eu(this.htmlElement),t=iu(this.htmlElement),e=this.container;e&&((this.width!=i||this.height!=t)&&(this.width=i,this.height=t,i>0&&(e.maxWidth=i),t>0&&(e.maxHeight=t),Wu(this.SVGContainer)),e.maxWidth||(e.maxWidth=0),e.maxHeight||(e.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(s.prototype,"container",{get:function(){return this._container},set:function(i){this._container=i,this.measure()},enumerable:!0,configurable:!0}),s.prototype.isDisposed=function(){return this._disposed},s.prototype.dispose=function(){this._disposed||G(Qn,this),L(this._disposers,function(i){i.dispose()})},Object.defineProperty(s.prototype,"hideOverflow",{set:function(i){i?this.SVGContainer.style.overflow="hidden":this.SVGContainer.style.overflow=""},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"modal",{get:function(){return b(this._modal)||(this._modal=new po,this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),s.prototype.openModal=function(i,t){this.closeModal();var e=this.modal;return e.content=i,e.readerTitle=t||"",e.title=t||"",e.open(),e},s.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(s.prototype,"popups",{get:function(){if(!b(this._popups)){var i=new uo;i.container=this.SVGContainer,this._popups=new Ct(i),this._disposers.push(new ft(this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),s.prototype.openPopup=function(i,t){var e=this.popups.create();return e.content=i,b(t)&&(e.title=t),e.open(),e},s.prototype.closeAllPopups=function(){this.popups.each(function(i){i.close()})},Object.defineProperty(s.prototype,"readerAlertElement",{get:function(){if(!b(this._readerAlertElement)){var i=document.createElement("div");i.setAttribute("role","alert"),i.style.zIndex="-100000",i.style.opacity="0",i.style.position="absolute",i.style.top="0",this.SVGContainer.appendChild(i),this._readerAlertElement=i}return this._readerAlertElement},enumerable:!0,configurable:!0}),s.prototype.readerAlert=function(i){this.readerAlertElement.innerHTML=i},s.prototype.checkTransform=function(i){if(window.getComputedStyle){if(i&&i.style){var t=window.getComputedStyle(i,null);if(t){var e=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");if(e&&e!=="none"){var r=e.split("(")[1].split(")")[0].split(","),n=Number(r[0]),a=Number(r[1]),o=Math.sqrt(n*n+a*a);isNaN(o)||(this.cssScale*=o)}}}i.parentNode&&i.parentNode instanceof HTMLElement&&this.checkTransform(i.parentNode)}},s}(),co=function(){function s(i,t){this.container=i,this.id=t;var e=document.createElementNS(xr,"svg");e.setAttribute("version","1.1"),e.setAttributeNS(da,"xmlns",xr),e.setAttributeNS(da,"xmlns:xlink",bs),e.setAttribute("role","group"),this.container.appendChild(e),this.defs=document.createElementNS(xr,"defs"),e.appendChild(this.defs),e.style.width="100%",e.style.height="100%",e.style.overflow="visible",this.svg=e}return s.prototype.add=function(i){return new Hr(i)},s.prototype.addGroup=function(i){return new Yu(i)},s.prototype.append=function(i){i&&this.svg.appendChild(i.node)},s.prototype.appendDef=function(i){i&&this.defs.appendChild(i.node)},s.prototype.foreignObject=function(){var i=new Hr("foreignObject");return i},s.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},s}(),Tn=null;function qi(){if(Tn===null){var s=document.createElement("div");s.hidden=!0,s.style.width="1px",s.style.height="1px",s.style.position="absolute",s.style.zIndex="-1000000",document.body.appendChild(s);var i=new fo(s,!0);Tn=new co(i.SVGContainer,"ghost")}return Tn}var mi=function(s){w(i,s);function i(){var t=s.call(this)||this;t._elements=new rt,t.properties={},t.className="Pattern",t.width=10,t.height=10,t.x=0,t.y=0,t.patternUnits="userSpaceOnUse";var e=new nt;return t.backgroundFill=e.getFor("background"),t.backgroundOpacity=0,t.fillOpacity=1,t.fill=e.getFor("alternativeBackgroun
152d"),t.stroke=e.getFor("alternativeBackground"),t.strokeOpacity=1,t.strokeWidth=1,t.shapeRendering="crispEdges",t.rotation=0,t.element=t.paper.addGroup("pattern"),t.id="pattern-"+_.getUniqueId(),t.element.attr({id:t.id}),t._disposers.push(t.element),t._disposers.push(new ft(t._elements)),t.patternUnits=t.patternUnits,t.width=t.width,t.height=t.height,t.applyTheme(),t}return i.prototype.draw=function(){var t=this,e=this.element;if(e){e.removeChildNodes();var r=this.paper.add("rect");r.attr({width:this.width,height:this.height,"shape-rendering":"crispEdges",fill:this.backgroundFill.hex,"fill-opacity":this.backgroundOpacity,stroke:this.backgroundFill.hex,"stroke-opacity":0}),e.add(r),e.attr({x:this.x,y:this.y,width:this.width,height:this.height,stroke:this.stroke.hex,fill:this.fill.hex,"fill-opacity":this.fillOpacity,"stroke-opacity":this.strokeOpacity,"stroke-width":this.strokeWidth,"shape-rendering":this.shapeRendering,patternUnits:this.patternUnits,"stroke-dasharray":this.strokeDasharray}),A(this._elements.iterator(),function(n){n.rotation=t.rotation,n.rotationX=t.properties.rotationX,n.rotationY=t.properties.rotationY,t.element.add(n)})}},i.prototype.animate=function(t,e,r){return new ge(this,t,e,r).start()},i.prototype.addElement=function(t){this._elements.push(t),this._disposers.push(t)},i.prototype.removeElement=function(t){this._elements.removeValue(t),this.removeDispose(t)},Object.defineProperty(i.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillOpacity",{get:function(){return this.properties.fillOpacity},set:function(t){this.properties.fillOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.properties.fill},set:function(t){this.properties.fill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundFill",{get:function(){return this.properties.backgroundFill},set:function(t){this.properties.backgroundFill=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundOpacity",{get:function(){return this.properties.backgroundOpacity},set:function(t){this.properties.backgroundOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(t){this.properties.stroke=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeOpacity",{get:function(){return this.properties.strokeOpacity},set:function(t){this.properties.strokeOpacity=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(t){this.properties.strokeWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shapeRendering",{get:function(){return this.properties.shapeRendering},set:function(t){this.properties.shapeRendering=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this.properties.rotation},set:function(t){this.properties.rotation=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patternUnits",{get:function(){return this.properties.patternUnits},set:function(t){this.properties.patternUnits=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x",{get:function(){return this.properties.x},set:function(t){this.properties.x=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.properties.y},set:function(t){this.properties.y=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:qi()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){var e=this;s.prototype.copyFrom.call(this,t),U(t.properties,function(r,n){e[r]=n})},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new bi(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDasharray",{get:function(){return this.properties.strokeDashArray}
152,set:function(t){this.properties.strokeDashArray=t,this.draw()},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(t){if(t&&b(t.elements)&&Wt(t.elements))for(var e=0,r=t.elements.length;e<r;e++){var n=t.elements[e];if(b(n.type)){var a=this.createEntryInstance(n);a instanceof $t&&(a.config=n),this.addElement(b(n.typeProperty)?a[n.typeProperty]:a.element)}}s.prototype.processConfig.call(this,t)},i}($t);_.registeredClasses.Pattern=mi;var ce=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._stops=new rt,t._rotation=0,t.className="LinearGradient",t._stops.events.on("setIndex",t.validate,t),t._stops.events.on("inserted",t.validate,t),t.element=t.paper.addGroup("linearGradient"),t.id="gradient-"+_.getUniqueId(),t.element.attr({id:t.id}),t._disposers.push(t.element),t.applyTheme(),t}return i.prototype.validate=function(){var t=this,e=(this._rotation+90)*Zr,r=Math.round(50+Math.sin(e+Math.PI)*50)+"%",n=Math.round(50+Math.cos(e)*50)+"%",a=Math.round(50+Math.sin(e)*50)+"%",o=Math.round(50+Math.cos(e+Math.PI)*50)+"%",l=this.element;l.removeChildNodes(),l.attr({x1:r,x2:a,y1:n,y2:o}),A(ti(this._stops.iterator()),function(h){var u=h[0],p=h[1],d=p.offset;v(d)||(d=u/(t._stops.length-1));var f=t.paper.add("stop");b(p.color)&&f.attr({"stop-color":p.color.toString()}),v(p.opacity)&&f.attr({"stop-opacity":p.opacity}),v(d)&&f.attr({offset:d}),l.add(f)})},i.prototype.clear=function(){this._stops.clear()},i.prototype.addColor=function(t,e,r){this._stops.push({color:t,o
152pacity:e,offset:r})},Object.defineProperty(i.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:qi()},set:function(t){this._paper!=t&&(this._paper=t,this.validate(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation=t,this.validate()},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.stops.copyFrom(t.stops),this._rotation=t.rotation},Object.defineProperty(i.prototype,"gradientUnits",{set:function(t){this.element.attr({gradientUnits:t})},enumerable:!0,configurable:!0}),i}($t);_.registeredClasses.LinearGradient=ce;var Ne=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._stops=new rt,t.element=t.paper.addGroup("radialGradient"),t.id="gradient-"+_.getUniqueId(),t.element.attr({id:t.id}),t._disposers.push(t.element),t.applyTheme(),t}return i.prototype.draw=function(){var t=this,e=this.element;if(v(this.cx)){var r=this.cx;r instanceof Q&&(r=r.percent+"%"),e.attr({cx:r})}if(v(this.cy)){var r=this.cy;r instanceof Q&&(r=r.percent+"%"),e.attr({cy:r})}if(this.fx){var r=this.fx;r instanceof Q&&(r=r.percent+"%"),e.attr({fx:r})}if(this.fy){var r=this.fy;r instanceof Q&&(r=r.percent+"%"),e.attr({fy:r})}e.removeChildNodes(),A(ti(this._stops.iterator()),function(n){var a=n[0],o=n[1],l=o.offset;v(l)||(l=a/(t._stops.length-1));var h=t.paper.add("stop");b(o.color)&&h.attr({"stop-color":o.color.toString()}),v(o.opacity)&&h.attr({"stop-opacity":o.opacity}),v(l)&&h.attr({offset:l}),e.add(h)})},i.prototype.addColor=function(t,e,r){this._stops.push({color:t,o
152pacity:e,offset:r}),this.draw()},Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:qi()},set:function(t){this._paper!=t&&(this._paper=t,this.draw(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cx",{get:function(){return this._cx},set:function(t){this._cx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cy",{get:function(){return this._cy},set:function(t){this._cy=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fx",{get:function(){return this._fx},set:function(t){this._fx=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fy",{get:function(){return this._fy},set:function(t){this._fy=t,this.draw()},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.stops.copyFrom(t.stops),this.cx=t.cx,this.cy=t.cy,this.fx=t.fx,this.fy=t.fy},Object.defineProperty(i.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),i.prototype.clear=function(){this._stops.clear()},i}($t);_.registeredClasses.RadialGradient=Ne;var Ht=function(){function s(){}return s.grab=[{property:"cursor",value:"move"},{property:"cursor",value:"grab"},{property:"cursor",value:"-webkit-grab"}],s.grabbing=[{property:"cursor",value:"move"},{property:"cursor",value:"grabbing"},{property:"cursor",value:"-webkit-grabbing"}],s.pointer=[{property:"cursor",value:"pointer"}],s.default=[{property:"cursor",value:"default"}],s.horizontalResize=[{property:"cursor",value:"ew-resize"}],s.verticalResize=[{property:"cursor",value:"ns-resize"}],s.notAllowed=[{property:"cursor",value:"not-allowed"}],s.text=[{property:"cursor",value:"text"}],s}();const ga={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(s){var i="th";if(s<11||s>13)switch(s%10){case 1:i="st";break;case 2:i="nd";break;case 3:i="rd";break}return i},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""};var ze=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.adapter=new ne(t),t._locale=ga,t._defaultLocale=ga,t.className="Language",b(oe.defaultLocale)&&(t.locale=oe.defaultLocale),t.applyTheme(),t}return i.prototype.getLocale=function(t){return t==null&&(t=this._locale),this.adapter.apply("locale",{locale:t}).locale},i.prototype.translate=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e=this.getLocale(e);var a=t,o=this.getTranslations(e),l=o[t];
152if(l===null)a="";else if(b(l))l&&(a=l);else if(e!==this._defaultLocale)return this.translate.apply(this,yi([t,this._defaultLocale],r));if(r.length)for(var h=r.length,u=0;u<h;++u)a=a.split("%"+(u+1)).join(r[u]);return this.adapter.apply("translate",{translation:a,locale:e}).translation},i.prototype.translateAny=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.translate.apply(this,yi([t,e],r))},i.prototype.setTranslationAny=function(t,e,r){var n=r||this.locale;n[t]=e},i.prototype.translateEmpty=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=this.translate.apply(this,yi([t,e],r));return a==t?"":a},i.prototype.translateFunc=function(t,e){e=this.getLocale(e);var r=this.getTranslations(e),n=r[t];return n??(e!==this._defaultLocale?this.translateFunc(t,this._defaultLocale):function(){return""})},i.prototype.translateAll=function(t,e){var r=this;return this.isDefault()?t:Ki(t,function(n){return r.translate(n,e)})},i.prototype.isDefault=function(){return this._defaultLocale===this._locale},Object.defineProperty(i.prototype,"locale",{get:function(){return this._locale},set:function(t){if(this._locale!=t&&(this._locale=t,this.events.isEnabled("localechanged"))){var e={type:"localechanged",locale:t,target:this};this.events.dispatchImmediately("localechanged",e)}},enumerable:!0,configurable:!0}),i.prototype.getTranslations=function(t){return this.adapter.apply("translations",{translations:t,locale:t}).translations},i}(Ve),yo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.adapter=new ne(t),t.className="TextFormatter",t.applyTheme(),t}return i.prototype.debug=function(){},i.prototype.format=function(t,e){b(e)||(e="svg");var r="";t=this.escape(t);var n=t.match(/\[([^\]]*?)\]/gm);if(!n)return this.wrap(t,"",e);for(var a=t.split(/\[[^\[\]]*\]/),o=0,l=a.length;o<l;o++){var h=a[o];if(h!==""){h=this.adapter.apply("chunk",h);var u="";o>0&&(u=n[o-1].replace("[","").replace("]","")),r+=this.wrap(h,u,e)}}return r=this.unescape(r),this.cleanUp(r)},i.prototype.escape=function(t){return t.replace(/\[\[/g,_.getPlaceholder("1")).replace(/([^\/\]]{1})\]\]/g,"$1"+_.getPlaceholder("2")).replace(/\]\]/g,_.getPlaceholder("2")).replace(/\{\{/g,_.getPlaceholder("3")).replace(/\}\}/g,_.getPlaceholder("4")).replace(/\'\'/g,_.getPlaceholder("5"))},i.prototype.unescape=function(t){return t.replace(new RegExp(_.getPlaceholder("1"),"g"),"[[").replace(new RegExp(_.getPlaceholder("2"),"g"),"]]").replace(new RegExp(_.getPlaceholder("3"),"g"),"{{").replace(new RegExp(_.getPlaceholder("4"),"g"),"}}").replace(new RegExp(_.getPlaceholder("5"),"g"),"''")},i.prototype.cleanUp=function(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},i.prototype.wrap=function(t,e,r){switch((e===""||e==="/")&&(e=""),r){case"html":return this.wrapHtml(t,this.translateStyleShortcuts(e));default:return this.wrapSvg(t,this.translateStyleShortcuts(e))}},i.prototype.wrapSvg=function(t,e){return e===""?"<tspan>"+t+"</tspan>":"<tspan style='"+e+"'>"+t+"</tspan>"},i.prototype.getSvgElement=function(t,e){var r=new Hr("tspan");return r.textContent=t,e&&r.node.setAttribute("style",e),r},i.prototype.wrapHtml=function(t,e){return e===""?"<span>"+t+"</span>":"<span style='"+this.styleSvgToHtml(e)+"'>"+t+"</span>"},i.prototype.getHtmlElement=function(t,e){var r=document.createElement("span");return r.innerHTML=t,e&&r.setAttribute("style",e),r},i.prototype.styleSvgToHtml=function(t){return t=t.replace(/fill:/,"color:"),t},i.prototype.translateStyleShortcuts=function(t){if(t==""||t=="[ ]")return"";var e=_.getCache("translateStyleShortcuts_"+t);if(e)return e;var r=t.match(/('[^']*')|("[^"]*")/gi);if(r)for(var n=0;n<r.length;n++)t=t.replace(r[n],r[n].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));var a=t.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);if(!a)return t;for(var n=0;n<a.length;n++)a[n].match(/^bold$/i)?a[n]="font-weight:"+a[n]:a[n]=="/"?a[n]="":a[n].match(/:/)?a[n]=a[n].replace(/\+/g," "):a[n]="fill:"+a[n];var o=a.join(";");
152return _.setCache("translateStyleShortcuts_"+t,o),o},i.prototype.chunk=function(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=[];t=this.escape(t);for(var a=e?t.split("'"):[t],o=0;o<a.length;o++){var l=a[o];if(l!=="")if(o%2===0){l=l.replace(/\]\[/g,"]"+le+"["),l=l.replace(/\[\]/g,"[ ]");for(var h=l.split(/[\[\]]+/),u=0;u<h.length;u++){var p=this.cleanUp(this.unescape(h[u]));p!==le&&p!==""&&(u%2===0?n.push({type:"value",text:this.adapter.apply("chunk",p)}):n.push({type:r?"value":"format",text:"["+p+"]"}))}}else for(var h=l.split(/[\[\]]+/),u=0;u<h.length;u++){var p=this.cleanUp(this.unescape(h[u]));p!==""&&(u%2===0?n.push({type:"text",text:p}):this.isImage(p)?n.push({type:"image",text:"["+p+"]"}):n.push({type:"format",text:"["+p+"]"}))}}return n},i.prototype.isImage=function(t){return!!t.match(/img[ ]?:/)},i}($t),kn;function Ie(){return kn==null&&(kn=new yo),kn}_.registeredClasses.TextFormatter=yo;var Ps=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._negativeBase=0,t._numberFormat="#,###.#####",t._outputFormat="svg",t._smallNumberThreshold=1,t._forceLTR=!1,t.className="NumberFormatter",t.applyTheme(),t}return i.prototype.dispose=function(){s.prototype.dispose.call(this),this.language&&this.language.dispose()},Object.defineProperty(i.prototype,"language",{get:function(){return this._language||(this.sprite?this._language=this.sprite.language:this._language=new ze),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),i.prototype.format=function(t,e,r){(typeof e>"u"||tt(e)&&e.toLowerCase()==="number")&&(e=this._numberFormat);var n,a=Number(t);if(gt(e))try{return this.intlLocales?new Intl.NumberFormat(this.intlLocales,e).format(a):new Intl.NumberFormat(void 0,e).format(a)}catch{return"Invalid"}else{e=Lr(e);var o=this.parseFormat(e,this.language),l=void 0;a>this._negativeBase?l=o.positive:a<this._negativeBase?l=o.negative:l=o.zero,b(r)&&!l.mod&&(l=Ph(l),l.decimals.active=a==0?0:r),n=l.template.split(le).join(this.applyFormat(a,l))}return this.forceLTR&&(n="‎"+n),n},i.prototype.parseFormat=function(t,e){var r=this,n=this.getCache(t);if(b(n))return n;var a={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:e.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:e.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1}};t=t.replace("||",ci);var o=t.split("|");return a.positive.source=o[0],typeof o[2]>"u"?a.zero=a.positive:a.zero.source=o[2],typeof o[1]>"u"?a.negative=a.positive:a.negative.source=o[1],U(a,function(l,h){if(!h.parsed){if(typeof r.getCache(h.source)<"u"){a[l]=r.getCache(h.source);return}var u=h.source;u.toLowerCase()==="number"&&(u=tt(r._numberFormat)?r._numberFormat:"#,###.#####");for(var p=Ie().chunk(u,!0),d=0;d<p.length;d++){var f=p[d];if(f.text=f.text.replace(ci,"|"),f.type==="value"){var c=f.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(c)if(c===null||c[0]==="")h.template+=f.text;else{var y=c[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);y&&(h.mod=y[0].toLowerCase(),h.modSpacing=!!c[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));var g=c[0].split(".");if(g[0]!==""){h.thousands.active=(g[0].match(/0/g)||[]).length,h.thousands.passive=(g[0].match(/\#/g)||[]).length+h.thousands.active;var m=g[0].split(",");m.length===1||(h.thousands.interval=xt(m.pop()).length,h.thousands.interval===0&&(h.thousands.interval=-1))}typeof g[1]>"u"||(h.decimals.active=(g[1].match(/0/g)||[]).length,h.decimals.passive=(g[1].match(/\#/g)||[]).length+h.decimals.active),h.template+=f.text.split(c[0]).join(le)}}else h.template+=f.text}r.setCache(h.source,h),h.parsed=!0}}),this.setCache(t,a),a},i.prototype.applyFormat=function(t,e){var r=t<0;t=Math.abs(t);var n="",a="",o=e.mod?e.mod.split(""):[];if(o.indexOf("b")!==-1){var l=this.applyPrefix(t,this.bytePrefixes,o.indexOf("!")!==-1);t=l[0],n=l[1],a=l[2],e.modSpacing&&(a=" "+a)}else if(o.indexOf("a")!==-1){var h=this.applyPrefix(t,t<this.smallNumberThreshold?this.smallNumberPrefixes:this.bigNumberPrefixes,o.indexOf("!")!==-1);t=h[0],n=h[1],a=h[2],e.modSpacing&&(a=" "+a)}else if(o.indexOf("p")!==-1){var u=Math.min(t.toString().length+2,21);t=parseFloat(t.toPrecision(u)),n=this.language.translate("_percentPrefix")||"",a=this.language.translate("_percentSuffix")||"",n==""&&a==""&&(a="%")}else if(o.indexOf("%")!==-1){var u=et(t.toString().length+2,21);t*=100,t=parseFloat(t.toPrecision(u)),a="%"}else if(o.indexOf("‰")!==-1){var u=et(t.toString().length+3,21);t*=1e3,t=parseFloat(t.toPrecision(u)),a="‰"}if(o.indexOf("e")!==-1){var p=void 0;e.decimals.passive>=0?p=t.toExponential(e.decimals.passive).split("e"):p=t.toExponential().split("e"),t=Number(p[0]),a="e"+p[1],e.modSpacing&&(a=" "+a)}else if(e.decimals.passive===0)t=Math.round(t);else if(e.decimals.passive>0){var d=Math.pow(10,e.decimals.passive);t=Math.round(t*d)/d}var f="",c=$h(t).split("."),y=c[0];if(y.length<e.thousands.active&&(y=Array(e.thousands.active-y.length+1).join("0")+y),e.thous
152ands.interval>0){for(var g=[],m=y.split("").reverse().join(""),x=0,P=y.length;x<=P;x+=e.thousands.interval){var S=m.substr(x,e.thousands.interval).split("").reverse().join("");S!==""&&g.unshift(S)}y=g.join(e.thousands.separator)}f+=y,c.length===1&&c.push("");var C=c[1];return C.length<e.decimals.active&&(C+=Array(e.decimals.active-C.length+1).join("0")),C!==""&&(f+=e.decimals.separator+C),f===""&&(f="0"),t!==0&&r&&o.indexOf("s")===-1&&(f="-"+f),n&&(f=n+f),a&&(f+=a),f},i.prototype.applyPrefix=function(t,e,r){r===void 0&&(r=!1);for(var n=t,a="",o="",l=!1,h=1,u=0,p=e.length;u<p;u++)e[u].number<=t&&(e[u].number===0?n=0:(n=t/e[u].number,h=e[u].number),a=e[u].prefix,o=e[u].suffix,l=!0);return!l&&r&&e.length&&t!=0&&(n=t/e[0].number,a=e[0].prefix,o=e[0].suffix,l=!0),l&&(n=parseFloat(n.toPrecision(et(h.toString().length+Math.floor(n).toString().replace(/[^0-9]*/g,"").length,21)))),[n,a,o]},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(i.prototype,"numberFormat",{get:function(){return this._numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(t){this._intlLocales=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"negativeBase",{get:function(){return this._negativeBase},set:function(t){this._negativeBase=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bigNumberPrefixes",{get:function(){return b(this._bigNumberPrefixes)||(this._bigNumberPrefixes=[{number:1e3,suffix:this.language.translate("_big_number_suffix_3")},{number:1e6,suffix:this.language.translate("_big_number_suffix_6")},{number:1e9,suffix:this.language.translate("_big_number_suffix_9")},{number:1e12,suffix:this.language.translate("_big_number_suffix_12")},{number:1e15,suffix:this.language.translate("_big_number_suffix_15")},{number:1e18,suffix:this.language.translate("_big_number_suffix_18")},{number:1e21,suffix:this.language.translate("_big_number_suffix_21")},{number:1e24,suffix:this.language.translate("_big_number_suffix_24")}]),this._bigNumberPrefixes},set:function(t){this._bigNumberPrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smallNumberPrefixes",{get:function(){return b(this._smallNumberPrefixes)||(this._smallNumberPrefixes=[{number:1e-24,suffix:this.language.translate("_small_number_suffix_24")},{number:1e-21,suffix:this.language.translate("_small_number_suffix_21")},{number:1e-18,suffix:this.language.translate("_small_number_suffix_18")},{number:1e-15,suffix:this.language.translate("_small_number_suffix_15")},{number:1e-12,suffix:this.language.translate("_small_number_suffix_12")},{number:1e-9,suffix:this.language.translate("_small_number_suffix_9")},{number:1e-6,suffix:this.language.translate("_small_number_suffix_6")},{number:.001,suffix:this.language.translate("_small_number_suffix_3")}]),this._smallNumberPrefixes},set:function(t){this._smallNumberPrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smallNumberThreshold",{get:function(){return this._smallNumberThreshold},set:function(t){this._smallNumberThreshold=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bytePrefixes",{get:function(){return b(this._bytePrefixes)||(this._bytePrefixes=[{number:1,suffix:this.language.translate("_byte_suffix_B")},{number:1024,suffix:this.language.translate("_byte_suffix_KB")},{number:1048576,suffix:this.language.translate("_byte_suffix_MB")},{number:1073741824,suffix:this.language.translate("_byte_suffix_GB")},{number:1099511627776,suffix:this.language.translate("_byte_suffix_TB")},{number:0x4000000000000,suffix:this.language.translate("_byte_suffix_PB")}]),this._bytePrefixes},set:function(t){this._bytePrefixes=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"forceLTR",{get:function(){return this._forceLTR}
152,set:function(t){this._forceLTR=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),i.prototype.escape=function(t){return t.replace("||",ci)},i.prototype.unescape=function(t){return t.replace(ci,"|")},i}($t);_.registeredClasses.NumberFormatter=Ps;var Zi=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._dateFormat="yyyy-MM-dd",t._inputDateFormat="yyyy-MM-dd",t._utc=!1,t.timezoneMinutes=0,t._firstDayOfWeek=1,t.months=["January","February","March","April","May","June","July","August","September","October","November","December"],t.monthsShort=["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],t.weekdaysShort=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t._outputFormat="svg",t.capitalize=!0,t.className="DateFormatter",t.applyTheme(),t}return Object.defineProperty(i.prototype,"language",{get:function(){return this._language},set:function(t){this._language=t,this.dateFormat=this._language.translate("_date")},enumerable:!0,configurable:!0}),i.prototype.format=function(t,e,r){this.language||(this.sprite?this.language=this.sprite.language:this.language=new ze),(typeof e>"u"||e==="")&&(e=this._dateFormat);var n,a;if(tt(t)?a=this.parse(t):a=Ja(t),gt(e))try{return this.intlLocales?new Intl.DateTimeFormat(this.intlLocales,e).format(a):new Intl.DateTimeFormat(void 0,e).format(a)}catch{return"Invalid"}else{e=Lr(e);var o=this.parseFormat(e);if(b(this.timezoneOffset)?a.setMinutes(a.getMinutes()+a.getTimezoneOffset()-this.timezoneOffset):b(this.timezone)&&r!==!1&&(a=Jr(a,this.timezone)),!v(a.getTime()))return this.language.translate("Invalid date");n=this.applyFormat(a,o,this.language),this.capitalize&&(n=n.replace(/^.{1}/,n.substr(0,1).toUpperCase()))}return n},i.prototype.parseFormat=function(t){var e=this.getCache(t);if(b(e))return e;for(var r={template:"",parts:[]},n=Ie().chunk(t,!0),a=0;a<n.length;a++){var o=n[a];if(o.type==="value"){o.text.match(/^date$/i)&&tt(this._dateFormat)&&(o.text=this._dateFormat);var l=o.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(l)for(var h=0;h<l.length;h++)r.parts.push(l[h]),o.text=o.text.replace(l[h],le)}r.template+=o.text}return this.setCache(t,r),r},i.prototype.applyFormat=function(t,e,r){var n=e.template,a,o,l,h,u,p,d,f,c=t.getTimezoneOffset(),y=t.getTime();this.utc?(a=t.getUTCFullYear(),o=t.getUTCMonth(),l=t.getUTCDay(),h=t.getUTCDate(),u=t.getUTCHours(),p=t.getUTCMinutes(),d=t.getUTCSeconds(),f=t.getUTCMilliseconds()):(a=t.getFullYear(),o=t.getMonth(),l=t.getDay(),h=t.getDate(),u=t.getHours(),p=t.getMinutes(),d=t.getSeconds(),f=t.getMilliseconds());for(var g=0,m=e.parts.length;g<m;g++){var x="";switch(e.parts[g]){case"G":x=r.translate(a<0?"_era_bc":"_era_ad");break;case"yyyy":x=Math.abs(a).toString(),a<0&&(x+=r.translate("_era_bc"));break;case"yyy":case"yy":case"y":x=Math.abs(a).toString().substr(-e.parts[g].length),a<0&&(x+=r.translate("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":var P=tu(t);e.parts[g]=="YYYY"?x=Math.abs(P).toString():x=Math.abs(P).toString().substr(-e.parts[g].length),P<0&&(x+=r.translate("_era_bc"));break;case"u":break;case"q":x=""+Math.ceil((t.getMonth()+1)/3);break;case"MMMMM":x=r.translate(this.months[o]).substr(0,1);break;case"MMMM":x=r.translate(this.months[o]);break;case"MMM":x=r.translate(this.monthsShort[o]);break;case"MM":x=Ut(o+1,2,"0");break;case"M":x=(o+1).toString();break;case"ww":x=Ut(Er(t,this.utc),2,"0");break;case"w":x=Er(t,this.utc).toString();break;case"W":x=Jh(t,this.utc).toString();break;case"dd":x=Ut(h,2,"0");break;case"d":x=h.toString();break;case"DD":case"DDD":x=Ut(oa(t,this.utc).toString(),e.parts[g].length,"0");break;case"D":x=oa(t,this.utc).toString();break;case"F":break;case"g":break;case"t":x=r.translateFunc("_dateOrd").call(this,h);break;case"E":x=(l||7).toString();break;case"EE":x=Ut((l||7).toString(),2,"0");break;case"EEE":case"eee":x=r.translate(this.weekdaysShort[l]);break;case"EEEE":case"eeee":x=r.translate(this.weekdays[l]);break;case"EEEEE":case"eeeee":x=r.translate(this.weekdays[l]).substr(0,1);break;case"e":case"ee":x=(l-this.firstDayOfWeek+1).toString(),e.parts[g]=="ee"&&(x=Ut(x,2,"0"));break;case"a":u>=12?x=r.translate("PM"):x=r.translate("AM");break;case"aa":u>=12?x=r.translate("P.M."):x=r.translate("A.M.");break;case"aaa":u>=12?x=r.translate("P"):x=r.translate("A");break;case"h":x=pr(u).toString();break;case"hh":x=Ut(pr(u),2,"0");break;case"H":x=u.toString();break;case"HH":x=Ut(u,2,"0");break;case"K":x=pr(u,0).toString();break;case"KK":x=Ut(pr(u,0),2,"0");break;case"k":x=(u+1).toString();break;case"kk":x=Ut(u+1,2,"0");break;case"m":x=p.toString();break;case"mm":x=Ut(p,2,"0");break;case"s":x=d.toString();break;case"ss":x=Ut(d,2,"0");break;case"S":case"SS":case"SSS":x=Math.round(f/1e3*Math.pow(10,e.parts[g].length)).toString();break;case"x":x=y.toString();break;case"n":case"nn":case"nnn":x=Ut(f,e.parts[g].length,"0");break;case"z":x=dr(t,!1,!1,this.utc);break;case"zz":x=dr(t,!0,!1,this.utc);break;case"zzz":x=dr(t,!1,!0,this.utc);break;
152case"zzzz":x=dr(t,!0,!0,this.utc);break;case"Z":case"ZZ":var S=Math.abs(c)/60,C=Math.floor(S),O=S*60-C*60;this.utc&&(C=0,O=0),e.parts[g]=="Z"?(x="GMT",x+=c>0?"-":"+",x+=Ut(C,2)+":"+Ut(O,2)):(x=c>0?"-":"+",x+=Ut(C,2)+Ut(O,2));break;case"i":x=t.toISOString();break;case"I":x=t.toUTCString();break}n=n.replace(le,x)}return n},i.prototype.parse=function(t,e){if(b(e)||(e=this.inputDateFormat),t instanceof Date)return t;if(typeof t=="number")return new Date(t);typeof t!="string"&&(t=t.toString()),this.language||(this.sprite?this.language=this.sprite.language:this.language=new ze);var r,n="";e=Lr(e),e=e.substr(0,t.length);for(var a=this.parseFormat(e),o={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},l={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},h=0,u=0,p=0;p<a.parts.length;p++){switch(u=p+h+1,a.parts[p]){case"yyyy":case"YYYY":n+="([0-9]{4})",o.year=u;break;case"yyy":case"YYY":n+="([0-9]{3})",o.year3=u;break;case"yy":case"YY":n+="([0-9]{2})",o.year2=u;break;case"y":case"Y":n+="([0-9]{1})",o.year1=u;break;case"MMMM":n+="("+this.getStringList(this.months).join("|")+")",o.monthLong=u;break;case"MMM":n+="("+this.getStringList(this.monthsShort).join("|")+")",o.monthShort=u;break;case"MM":case"M":n+="([0-9]{2}|[0-9]{1})",o.month=u;break;case"ww":case"w":n+="([0-9]{2}|[0-9]{1})",o.week=u;break;case"dd":case"d":n+="([0-9]{2}|[0-9]{1})",o.day=u;break;case"DDD":case"DD":case"D":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.yearDay=u;break;case"dddd":n+="("+this.getStringList(this.weekdays).join("|")+")",o.weekdayLong=u;break;case"ddd":n+="("+this.getStringList(this.weekdaysShort).join("|")+")",o.weekdayShort=u;break;case"aaa":case"aa":case"a":n+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",o.am=u;break;case"hh":case"h":n+="([0-9]{2}|[0-9]{1})",o.hour12Base1=u;break;case"HH":case"H":n+="([0-9]{2}|[0-9]{1})",o.hourBase0=u;break;case"KK":case"K":n+="([0-9]{2}|[0-9]{1})",o.hour12Base0=u;break;case"kk":case"k":n+="([0-9]{2}|[0-9]{1})",o.hourBase1=u;break;case"mm":case"m":n+="([0-9]{2}|[0-9]{1})",o.minute=u;break;case"ss":case"s":n+="([0-9]{2}|[0-9]{1})",o.second=u;break;case"SSS":case"SS":case"S":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=u,o.millisecondDigits=a.parts[p].length;break;case"nnn":case"nn":case"n":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=u;break;case"x":n+="([0-9]{1,})",o.timestamp=u;break;case"Z":n+="GMT([-+]+[0-9]{2}:[0-9]{2})",o.zone=u;break;case"ZZ":n+="([\\-+]+[0-9]{2}[0-9]{2})",o.zone=u;break;case"i":n+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2}).?([0-9]{0,3})([zZ]|[+-][0-9]{2}:?[0-9]{2}|$)",o.iso=u,h+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz"
152:case"zzz":case"zz":case"z":case"t":h--;break}n+="[^0-9]*"}var d=new RegExp(n),f=t.match(d);if(f){if(o.year>-1&&(l.year=parseInt(f[o.year])),o.year3>-1){var c=parseInt(f[o.year3]);c+=1e3,l.year=c}if(o.year2>-1){var c=parseInt(f[o.year2]);c>50?c+=1e3:c+=2e3,l.year=c}if(o.year1>-1){var c=parseInt(f[o.year1]);c=Math.floor(new Date().getFullYear()/10)*10+c,l.year=c}if(o.monthLong>-1&&(l.month=this.resolveMonth(f[o.monthLong])),o.monthShort>-1&&(l.month=this.resolveShortMonth(f[o.monthShort])),o.month>-1&&(l.month=parseInt(f[o.month])-1),o.week>-1&&o.day===-1&&(l.month=0,l.day=Qh(parseInt(f[o.week]),l.year,1,this.utc)),o.day>-1&&(l.day=parseInt(f[o.day])),o.yearDay>-1&&(l.month=0,l.day=parseInt(f[o.yearDay])),o.hourBase0>-1&&(l.hour=parseInt(f[o.hourBase0])),o.hourBase1>-1&&(l.hour=parseInt(f[o.hourBase1])-1),o.hour12Base0>-1){var c=parseInt(f[o.hour12Base0]);c==11&&(c=0),o.am>-1&&!this.isAm(f[o.am])&&(c+=12),l.hour=c}if(o.hour12Base1>-1){var c=parseInt(f[o.hour12Base1]);c==12&&(c=0),o.am>-1&&!this.isAm(f[o.am])&&(c+=12),l.hour=c}if(o.minute>-1&&(l.minute=parseInt(f[o.minute])),o.second>-1&&(l.second=parseInt(f[o.second])),o.millisecond>-1){var c=parseInt(f[o.millisecond]);o.millisecondDigits==2?c*=10:o.millisecondDigits==1&&(c*=100),l.millisecond=c}if(o.timestamp>-1){l.timestamp=parseInt(f[o.timestamp]);var y=new Date(l.timestamp);l.year=y.getUTCFullYear(),l.month=y.getUTCMonth(),l.day=y.getUTCDate(),l.hour=y.getUTCHours(),l.minute=y.getUTCMinutes(),l.second=y.getUTCSeconds(),l.millisecond=y.getUTCMilliseconds()}o.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),f[o.zone])),o.iso>-1&&(l.year=dt(f[o.iso+0]),l.month=dt(f[o.iso+1])-1,l.day=dt(f[o.iso+2]),l.hour=dt(f[o.iso+3]),l.minute=dt(f[o.iso+4]),l.second=dt(f[o.iso+5]),l.millisecond=dt(f[o.iso+6]),f[o.iso+7]=="Z"||f[o.iso+7]=="z"?l.utc=!0:f[o.iso+7]!=""&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),f[o.iso+7]))),l.utc?r=new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):r=new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else r=new Date(t);return r},i.prototype.resolveTimezoneOffset=function(t,e){var r=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/);if(r){var n=xt(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)),a=n[1],o=n[2],l=n[3],h=parseInt(o)*60+parseInt(l);a=="+"&&(h*=-1);var u=(t||new Date).getTimezoneOffset(),p=h-u;return p}return 0},i.prototype.resolveMonth=function(t){var e=this.months.indexOf(t);return e>-1||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this.months).indexOf(t),e>-1)?e:0},i.prototype.resolveShortMonth=function(t){var e=this.monthsShort.indexOf(t);return e>-1||(e=this.months.indexOf(t),e>-1)||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this.monthsShort).indexOf(t),e>-1)?e:0},i.prototype.isAm=function(t){var e=this.getStringList(["AM","A.M.","A"]);return e.indexOf(t.toUpperCase())>-1},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},i.prototype.getStringList=function(t){for(var e=[],r=0;r<t.length;r++)this.language?e.push(Nn(this.language.translate(t[r]))):e.push(Nn(t[r]));return e},Object.defineProperty(i.prototype,"dateFormat",{get:function(){return this._dateFormat},set:function(t){this._dateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inputDateFormat",{get:function(){return this._inputDateFormat},set:function(t){this._inputDateFormat=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(t){this._intlLocales=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"utc",{get:function(){return this._utc},set:function(t){this._utc=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezoneOffset",{get:function(){return this._timezoneOffset},set:function(t){this._timezoneOffset!=t&&(this._timezoneOffset=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezone",{get:function(){return this._timezone},set:function(t){this._timezone!=t&&(this._timezone=t,this.timezoneMinutes=tp(t),this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(t){this._firstDayOfWeek=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),i}($t);_.registeredClasses.DateFormatter=Zi;var Cs=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._negativeBase=0,t._baseUnit="second",t._outputFormat="svg",t._unitValues={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},t._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"},t.className="DurationFormatter",t.applyTheme(),t}return i.prototype.format=function(t,e,r){this.language||(this.sprite?this.language=this.sprite.language:this.language=new ze);var n=r||this._baseUnit;(typeof e>"u"||e==="")&&(b(this.durationFormat)?e=this.durationFormat:e=this.getFormat(dt(t),null,
152n)),e=Lr(e);var a=this.parseFormat(e,n),o=Number(t),l;o>this._negativeBase?l=a.positive:o<this._negativeBase?l=a.negative:l=a.zero;var h=this.applyFormat(o,l);return l.color!==""&&(this._outputFormat==="svg"?h="<tspan fill='"+l.color+"'>"+h+"</tspan>":this._outputFormat==="html"&&(h="<span style='color: "+l.color+";'>"+h+"</span>")),h},i.prototype.parseFormat=function(t,e){var r=this,n=this.getCache(t);if(b(n))return n;var a=e||this._baseUnit,o={positive:{color:"",template:"",parts:[],source:"",baseUnit:a,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:a,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:a,parsed:!1,absolute:!1}};t=t.replace("||",ci);var l=t.split("|");return o.positive.source=l[0],typeof l[2]>"u"?o.zero=o.positive:o.zero.source=l[2],typeof l[1]>"u"?o.negative=o.positive:o.negative.source=l[1],U(o,function(h,u){if(!u.parsed){if(typeof r.getCache(u.source)<"u"){o[h]=r.getCache(u.source);return}var p=u.source,d=[];d=u.source.match(/^\[([^\]]*)\]/),d&&d.length&&d[0]!==""&&(p=u.source.substr(d[0].length),u.color=d[1]);for(var f=Ie().chunk(p,!0),c=0;c<f.length;c++){var y=f[c];if(y.text=y.text.replace(ci,"|"),y.type==="value"){y.text.match(/[yYMdDwhHKkmsSn]+a/)&&(u.absolute=!0,y.text=y.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));var g=y.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(g)for(var m=0;m<g.length;m++)b(g[m])||(g[m]=r._unitAliases[g[m]]),u.parts.push(g[m]),y.text=y.text.replace(g[m],le)}u.template+=y.text}r.setCache(u.source,u),u.parsed=!0}}),this.setCache(t,o),o},i.prototype.applyFormat=function(t,e){var r=!e.absolute&&t<this._negativeBase;t=Math.abs(t);for(var n=this.toTimeStamp(t,e.baseUnit),a=e.template,o=0,l=e.parts.length;o<l;o++){var h=e.parts[o],u=this.toTimeUnit(h.substr(0,1)),p=h.length,d=Math.floor(n/this._unitValues[u]);a=a.replace(le,Ut(d,p,"0")),n-=d*this._unitValues[u]}return r&&(a="-"+a),a},i.prototype.toTimeStamp=function(t,e){return t*this._unitValues[e]},i.prototype.toTimeUnit=function(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(i.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(t){this._outputFormat=t.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),i.prototype.getFormat=function(t,e,r){if(b(this.durationFormat))return this.durationFormat;if(r||(r=this.baseUnit),b(e)&&t!=e){t=Math.abs(t),e=Math.abs(e);var n=this.getValueUnit(q(t,e),r);return this.durationFormats[r][n]}else{var a=this.getValueUnit(t,r);return this.durationFormats[r][a]}},i.prototype.getValueUnit=function(t,e){e||(e=this.baseUnit);var r,n=this.getMilliseconds(t,e);return Xa(this._unitValues,function(a,o){if(a==e||r){var l=n/o;if(l<=1)return r||(r=a),!1;r=a}return!0}),r},i.prototype.getMilliseconds=function(t,e){return e||(e=this.baseUnit),t*this._unitValues[e]},Object.defineProperty(i.prototype,"durationFormat",{get:function(){return this._durationFormat},set:function(t){this._durationFormat!=t&&(this._durationFormat=t,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormats",{get:function(){return this._durationFormats||(this._durationFormats={millisecond:{millisecond:this.language.translate("_duration_millisecond"),second:this.language.translate("_duration_millisecond_second"),minute:this.language.translate("_duration_millisecond_minute"),hour:this.language.translate("_duration_millisecond_hour"),day:this.language.translate("_duration_millisecond_day"),week:this.language.translate("_duration_millisecond_week"),month:this.language.translate("_duration_millisecond_month"),year:this.language.translate("_duration_millisecond_year")},second:{second:this.language.translate("_duration_second"),minute:this.language.translate("_duration_second_minute"),hour:this.language.translate("_duration_second_hour"),day:this.language.translate("_duration_second_day"),week:this.language.translate("_duration_second_week"),month:this.language.translate("_duration_second_month"),year:this.language.translate("_duration_second_year")},minute:{minute:this.language.translate("_duration_minute"),hour:this.language.translate("_duration_minute_hour"),day:this.language.translate("_duration_minute_day"),week:this.language.translate("_duration_minute_week"),month:this.language.translate("_duration_minute_month"),year:this.language.translate("_duration_minute_year")},hour:{hour:this.language.translate("_duration_hour"),day:this.language.translate("_duration_hour_day"),week:this.language.translate("_duration_hour_week"),month:this.language.translate("_duration_hour_month"),year:this.language.translate("_duration_hour_year")},day:{day:this.language.translate("_duration_day"),week:this.language.translate("_duration_day_week"),month:this.language.translate("_duration_day_month"),year:this.language.translate("_duration_day_year")},week:{week:this.language.translate("_duration_week"),month:this.language.translate("_duration_week_month"),year:this.language.translate("_duration_week_year")},month:{month:this.language.translate("_duration_month"),year:this.language.translate("_duration_month_year")},year:{year:this.language.translate("_duration_year")}}),this._durationFormats},set:function(t){this._durationFormats=t,this.invalidateSprite()},enumerable:!0,configurable:!0}),i}($t);_.registeredClasses.DurationFormatter=Cs;var va=new ct;function ap(s,i){var t=i||"amexport",e=new nt,r=va.insertKeyIfEmpty(t,function(){var n=new Pt([new pt(s,"."+t+"-menu *",{"box-sizing":"border-box"}),new pt(s,"."+t+"-menu-level-0",{position:"absolute",top:"5px",right:"5
152px"}),new pt(s,"."+t+"-menu-level-0."+t+"-left",{right:"auto",left:"5px"}),new pt(s,"."+t+"-menu-level-0."+t+"-right",{right:"5px",left:"auto"}),new pt(s,"."+t+"-menu-level-0."+t+"-top",{top:"5px",bottom:"auto"}),new pt(s,"."+t+"-menu-level-0."+t+"-bottom",{top:"auto",bottom:"5px"}),new pt(s,"."+t+"-item."+t+"-item-level-0",{opacity:"0.3",width:"30px","min-height":"30px",transition:"all 100ms ease-in-out"}),new pt(s,"div:hover > div > ."+t+"-menu ."+t+"-item."+t+"-item-level-0, ."+t+"-item."+t+"-item-level-0.active",{opacity:"0.9"}),new pt(s,"."+t+"-item."+t+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new pt(s,"."+t+"-item."+t+"-item-level-0:before",{display:"block"}),new pt(s,"."+t+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":e.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:e.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new pt(s,"."+t+"-left ."+t+"-item",{margin:"1px 0 0 1px"}),new pt(s,"."+t+"-item:hover, ."+t+"-item.active",{background:e.getFor("secondaryButtonHover").hex,color:e.getFor("secondaryButtonText").hex}),new pt(s,"."+t+"-item > ."+t+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new pt(s,"."+t+"-left ."+t+"-item > ."+t+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new pt(s,"."+t+"-right ."+t+"-item > ."+t+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new pt(s,"."+t+"-top ."+t+"-item > ."+t+"-menu",{top:"-1px",bottom:"auto"}),new pt(s,"."+t+"-bottom ."+t+"-item > ."+t+"-menu",{top:"auto",bottom:"0"}),new pt(s,"."+t+"-item > ."+t+"-menu",{display:"none"}),new pt(s,"."+t+"-item:hover > ."+t+"-menu, ."+t+"-item.active > ."+t+"-menu",{display:"block"}),new pt(s,"."+t+"-item:hover > ."+t+"-menu > ."+t+"-item, ."+t+"-item.active > ."+t+"-menu > ."+t+"-item",{opacity:"1"}),new pt(s,"."+t+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new pt(s,"."+t+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new pt(s,"."+t+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"32px","min-height":"32px",margin:"auto auto","border-radius":"3px"}),new pt(s,"."+t+"-item-level-0 > ."+t+"-icon",{padding:"0.1em 0.2em"}),new pt(s,"."+t+"-clickable",{cursor:"pointer"})]);return new $r(function(){va.removeKey(t),n.dispose()})});return r.increment()}var go=function(s){w(i,s);function i(){var t=s!==null&&s.apply(this,arguments)||this;return t._validateDisposer=null,t}return i.prototype.invalidate=function(){this._validateDisposer===null&&(this._validateDisposer=_.events.on("exitframe",this.validate,this))},i.prototype.validate=function(){this._validateDisposer!==null&&(this._validateDisposer.dispose(),this._validateDisposer=null)},i.prototype.dispose=function(){this._validateDisposer!==null&&(this._validateDisposer.dispose(),this._validateDisposer=null),s.prototype.dispose.call(this)},i}(Ve),op=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.adapter=new ne(t),t.closeDelay=1e3,t.closeOnClick=!0,t._language=new Et,t._menuTag="ul",t._itemTag="li",t._labelTag="a",t._iconTag="img",t._classPrefix="amexport",t._defaultStyles=!0,t._align="right",t._verticalAlign="top",t._tabindex=0,t._ignoreNextClose=!1,t._items=[{label:"...",menu:[{label:"Image",menu:[{type:"png",label:"PNG"},{type:"jpg",label:"JPG"},{type:"svg",label:"SVG"},{type:"pdf",label:"PDF"}]},{label:"Data",menu:[{type:"json",label:"JSON"},{type:"csv",label:"CSV"},{type:"xlsx",label:"XLSX"},{type:"html",label:"HTML"},{type:"pdfdata",label:"PDF"}]},{label:"Print",type:"print"}]}],t.className="ExportMenu",t._disposers.push(t._language),t.invalidate(),t.applyTheme(),t}return i.prototype.validate=function(){this.draw(),s.prototype.validate.call(this)},i.prototype.draw=function(){var t=this;this._element?(this._element.innerHTML="",this._element.className=this.getMenuItemClass(0)):this._element=this.createMenuElement(0),this.defaultStyles&&(this._element.style.display="none"),xt(this._container).appendChild(this._element);for(var e=this.adapter.apply("items",{items:this._items}).items,r=e.length,n=0;n<r;n++)this.drawBranch(this._element,e[n],0);this._element=this.adapter.apply("menuElement",{menuElement:this._element}).menuElement,this._disposers.push(K().body.events.on("down",function(a){a.pointer.touch||(t._ignoreNextClose=!1),t.close()})),this._disposers.push(K().body.events.on("keydown",function(a){var o=Oe.getEventKey(a.event);switch(o){case"esc":t.close();break;case"up":case"down":case"left":case"right":t._currentSelection&&a.event.preventDefault(),t.moveSelection(o);break}}
152)),this.defaultStyles&&this.loadDefaultCSS()},i.prototype.drawBranch=function(t,e,r){var n=this;if(e=this.adapter.apply("branch",{branch:e,level:r}).branch,e.unsupported!==!0){e.ascendants||(e.ascendants=new rt);var a=e.type,o=this.createItemElement(r,a),l;e.icon?(l=this.createIconElement(r,a),l.src=e.icon,(e.label||e.title)&&(l.title=e.title||e.label)):e.svg?(l=this.createSvgElement(r,a,e.svg),(e.label||e.title)&&(l.title=e.title||e.label)):(l=this.createLabelElement(r,a),l.innerHTML=e.label?this.language.translate(e.label):"",e.title&&(l.title=e.title));var h=this.getReaderLabel(e,l.innerHTML);l.setAttribute("aria-label",h),o.appendChild(l),e.interactions=K().getInteraction(o),e.element=o,this.typeClickable(a)&&(e.interactions.events.on("hit",function(g){if(n.events.isEnabled("hit")&&!n.isDisposed()){var m={type:"hit",event:g.event,target:n,branch:e};n.events.dispatchImmediately("hit",m)}}),e.interactions.events.on("keyup",function(g){if(Oe.isKey(g.event,"enter")&&n.events.isEnabled("enter")){var m={type:"enter",event:g.event,target:n,branch:e};n.events.dispatchImmediately("enter",m)}}));{var u=this.getSubMenu(e);u!=null&&(e.interactions.events.on("keyup",function(g){Oe.isKey(g.event,"enter")&&(n.selectBranch(u[0]),n.setFocus(u[0]))}),e.interactions.events.on("hit",function(g){n.selectBranch(e)}))}e.interactions.events.on("over",function(g){if(g.pointer.touch&&(n._ignoreNextClose=!0),n.selectBranch(e),n.events.isEnabled("over")){var m={type:"over",event:g.event,target:n,branch:e};n.events.dispatchImmediately("over",m)}}),e.interactions.events.on("out",function(g){if(!n.isDisposed()&&(g.pointer.touch||n.delayUnselectBranch(e),n.events.isEnabled("out"))){var m={type:"out",event:g.event,target:n,branch:e};n.events.dispatchImmediately("out",m)}}),e.interactions.events.on("focus",function(g){n.selectBranch(e)}),e.interactions.events.on("blur",function(g){n.delayUnselectBranch(e)});var p=r+1;if(e.menu){var d=this.createMenuElement(p);e.submenuElement=d;for(var f=e.menu.length,c=0;c<f;c++){var y=new rt;e.menu[c].ascendants=y,e.ascendants.length&&y.copyFrom(e.ascendants),y.push(e),this.drawBranch(d,e.menu[c],p)}if(d.innerHTML=="")return;o.appendChild(d)}e.hidden&&this.hideBranch(e),e.id&&o.setAttribute("id",e.id),e.color&&(o.style.backgroundColor=e.color.hex),t.appendChild(o)}},i.prototype.createMenuElement=function(t){var e=document.createElement(this.menuTag);return e.className=this.getMenuItemClass(t),t===0?e.setAttribute("role","menubar"):e.setAttribute("role","menu"),e},i.prototype.getMenuItemClass=function(t){var e=this.classPrefix+"-menu "+this.classPrefix+"-menu-level-"+t;return t===0&&(e+=" "+this.classPrefix+"-menu-root "+this.classPrefix+"-"+this.align+" "+this.classPrefix+"-"+this.verticalAlign),this.adapter.apply("menuClass",{className:e,level:t}).className},i.prototype.createItemElement=function(t,e){var r=document.createElement(this.itemTag),n=this.classPrefix+"-item "+this.classPrefix+"-item-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return r.className=this.adapter.apply("itemClass",{className:n,level:t,type:e}).className,r.setAttribute("role","menuitem"),r.setAttribute("tabindex",this.tabindex.toString()),r},i.prototype.createLabelElement=function(t,e){var r=document.createElement(this.labelTag),n=this.classPrefix+"-label "+this.classPrefix+"-label-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(n+=" "+this.classPrefix+"-clickable"),r.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,r},i.prototype.createIconElement=function(t,e){var r=document.createElement(this.iconTag),n=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(n+=" "+this.classPrefix+"-clickable"),r.className=this.adapter.apply("labelClass",{className:n,level:t,type:e}).className,r.setAttribute("tabindex",this.tabindex.toString()),r.setAttribute("role","menuitem"),r},i.prototype.createSvgElement=function(t,e,r){var n=new DOMParser,a=n.parseFromString(r,"image/svg+xml").documentElement,o=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+t+" "+this.classPrefix+"-item-"+(e||"blank");return this.typeClickable(e)&&(o+=" "+this.classPrefix+"-clickable"),a.setAttribute("class",this.adapter.apply("labelClass",{className:o,level:t,type:e}).className),a.setAttribute("tabindex",this.tabindex.toString()),a.setAttribute("role","menuitem"),a},i.prototype.dispose=function(){this._disposed||(s.prototype.dispose.call(this),this._element&&this._element.parentNode&&this._element.parentNode.removeChild(this._element))},i.prototype.typeClickable=function(t){return b(t)},i.prototype.hasSubMenu=function(t){return!!(t.menu&&t.menu.length)},i.prototype.getSubMenu=function(t){if(t.menu&&t.menu.length)return t.menu},i.prototype.getReaderLabel=function(t,e){return e=$a(e),t.ascendants.length==0?(e=e=="..."?this.language.translate("Export"):e,e+=" ["+this.language.translate("Press ENTER or use arrow keys to navigate")+"]"):this.hasSubMenu(t)?e+=" ["+this.language.translate("Click, tap or press ENTER to open")+"]":t.type=="print"?e=this.language.translate("Click, tap or press ENTER to print."):this.typeClickable(t.type)&&(e=this.language.translate("Click, tap or press ENTER to export as %1.",void 0,e)),this.adapter.apply("rederLabel",{label:e,branch:t}).label},Object.defineProperty(i.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tag",{set:function(t){this._menuTag=t,this._itemTag=t=="ul"?"li":"div",this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"menuTag",{get:function(){return this.adapter.apply("menuTag",{tag:this._menuTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemTag",{get:function(){return this.adapter.apply("itemTag",{tag:this._itemTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelTag",{get:function(){return this.adapter.apply("labelTag",{tag:this._labelTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iconTag",{get:function(){return this.adapter.apply("iconTag",{tag:this._iconTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"align",{get:function(){return this.adapter.apply("align",{align:this._align}
152).align},set:function(t){this._align=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",{verticalAlign:this._verticalAlign}).verticalAlign},set:function(t){this._verticalAlign=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",{classPrefix:this._classPrefix}).classPrefix},set:function(t){this._classPrefix=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",{defaultStyles:this._defaultStyles}).defaultStyles},set:function(t){this._defaultStyles!=t&&(this._defaultStyles=t,t&&this.loadDefaultCSS()),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.loadDefaultCSS=function(){this._disposers.push(ap(_s(this.container),this.classPrefix)),this._element&&(this._element.style.display="")},Object.defineProperty(i.prototype,"tabindex",{get:function(){return this.adapter.apply("tabindex",{tabindex:this._tabindex}).tabindex},set:function(t){this._tabindex=t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){var t=this,e=this._language.get();return e==null&&(e=new ze,this._language.set(e,e.events.on("localechanged",function(r){t.invalidate()}))),e},set:function(t){var e=this;this._language.set(t,t.events.on("localechanged",function(r){e.invalidate()})),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.close=function(){var t=this;if(!this.isDisposed()){if(this._ignoreNextClose){this._ignoreNextClose=!1;return}if(this.closeOnClick&&(this._element.style.pointerEvents="none",setTimeout(function(){t._element.style.pointerEvents="auto"},100)),this._currentSelection&&(this.setBlur(this._currentSelection),this._currentSelection=void 0),this._element)for(var e=this._element.getElementsByClassName("active"),r=e.length,n=r-1;n>=0;n--)e[n]&&$n(e[n],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},i.prototype.selectBranch=function(t){var e=this;if(!this.isDisposed()&&(t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),Zn(t.element,"active"),t.submenuElement&&t.submenuElement.setAttribute("aria-expanded","true"),this._currentSelection&&this._currentSelection!==t&&this._currentSelection.ascendants&&A(Sh(Qe([this._currentSelection]),this._currentSelection.ascendants.iterator()),function(n){!t.ascendants.contains(n)&&t!==n&&e.unselectBranch(n,!0)}),A(t.ascendants.iterator(),function(n){n.closeTimeout&&(e.removeDispose(n.closeTimeout),n.closeTimeout=void 0),Zn(n.element,"active")}),this._currentSelection=t,this.events.isEnabled("branchselected"))){var r={type:"branchselected",target:this,branch:t};this.events.dispatchImmediately("branchselected",r)}},i.prototype.unselectBranch=function(t,e){if(!this.isDisposed()&&($n(t.element,"active"),t.submenuElement&&t.submenuElement.removeAttribute("aria-expanded"),this._currentSelection==t&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected"))){var r={type:"branchunselected",target:this,branch:t};this.events.dispatchImmediately("branchunselected",r)}},i.prototype.delayUnselectBranch=function(t,e){var r=this;this.isDisposed()||(t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),t.closeTimeout=this.setTimeout(function(){r.unselectBranch(t,e)},this.closeDelay),e!==!0&&t.ascendants&&A(t.ascendants.iterator(),function(n){r.delayUnselectBranch(n,!0)}))},i.prototype.moveSelection=function(t){if(!this.isDisposed()&&this._currentSelection){var e;if(t=="up")e=this.getPrevSibling(this._currentSelection);else if(t=="down")e=this.getNextSibling(this._currentSelection);else if(t=="left"&&this.align=="right"||t=="right"&&this.align=="left"){var r=this.getSubMenu(this._currentSelection);r!=null&&(e=r[0])}else(t=="right"&&this.align=="right"||t=="left"&&this.align=="left")&&(e=this.getParentItem(this._currentSelection));e&&e!==this._currentSelection&&(this.selectBranch(e),this.setFocus(e),this._currentSelection=e)}},i.prototype.getSiblings=function(t){var e=this.getParentItem(t);return e&&e.menu?e.menu:[]},i.prototype.getParentItem=function(t){if(t.ascendants&&t.ascendants.length)return t.ascendants.getIndex(t.ascendants.length-1)},i.prototype.getNextSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var r=e.indexOf(t)+1;return r=e.length==r?0:r,e[r].unsupported?this.getNextSibling(e[r]):e[r]}else return t},i.prototype.getPrevSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var r=e.indexOf(t)-1;return r=r==-1?e.length-1:r,e[r].unsupported?this.getPrevSibling(e[r]):e[r]}else return t},i.prototype.setFocus=function(t){if(t.interactions)try{t.interactions.element.focus()}catch{}},i.prototype.setBlur=function(t){if(t.interactions)try{t.interactions.element.blur()}catch{}},i.prototype.hideBranch=function(t){t.element.style.display="none"},i.prototype.showBranch=function(t){t.element.style.display=""},Object.defineProperty(i.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),i}(go);function Nr(s,i,t){return new Promise(function(e,r){var n=b(t)&&t.responseType=="blob",a=new XMLHttpRequest;if(a.onload=function(){if(a.status===200){var h=void 0,u;if(n){u=a.response,lp(u).then(function(d){var f={xhr:a,error:!1,response:d,blob:u,type:a.getResponseHeader("Content-Type"),target:i};e(f)});return}else h=a.responseText||a.response;var p={xhr:a,error:!1,response:h,blob:u,type:a.getResponseHeader("Content-Type"),target:i};e(p)}else r({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:i})},a.onerror=function(){r({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:i})},a.open("GET",s,!0),t&&t.withCredentials&&(a.withCredentials=!0),b(t)){if(b(t.requestHeaders))for(var o=0;o<t.requestHeaders.length;o++){var l=t.requestHeaders[o];a.setRequestHeader(l.key,l.value)}b(t.responseType)&&(a.responseType=t.responseType)}a.send()})}function lp(s){return new Promise(function(i,t){var e=new FileReader;e.onload=function(r){i(e.result)},e.onerror=function(r){t(r)},e.readAsText(s)})}var Vn;function hp(){return ut(this,void 0,void 0,function(){var s,i,t,e;return st(this,function(r){switch(r.label){case 0:return[4,Promise.all([Dr(()=>import("./pdfmake-CoOmvZC7.js").then(n=>n.p),__vite__mapDeps([0,1])),Dr(()=>import("./vfs_fonts-BbT5ejxm.js"),__vite__mapDeps([]))])];case 1:return s=r.sent(),i=s[0].default||s[0],t=s[1].default||s[1],e=window,e.pdfMake=e.pdfMake||{},e.pdfMake.vfs=t,i.vfs=t,[2,i]}})})}var ma=/src: ([^;]+);/;function up(){return window.navigator.msSaveOrOpenBlob!=null}function pp(s){return new Promise(function(i,t){var e=new FileReader;e.onload=function(r){i(e.result)},e.onerror=function(r){t(r)}
152,e.readAsDataURL(s)})}function dp(s){return ut(this,void 0,void 0,function(){var i;return st(this,function(t){switch(t.label){case 0:i=s.sheet,t.label=1;case 1:return t.trys.push([1,2,,4]),[2,i.cssRules];case 2:return t.sent(),[4,new Promise(function(e,r){s.addEventListener("load",function(){e(i.cssRules)},!0),s.addEventListener("error",function(n){r(n)},!0),setTimeout(function(){r(new Error("Timeout while waiting for <style> to load"))},1e4)})];case 3:return[2,t.sent()];case 4:return[2]}})})}function vo(s,i,t){return ut(this,void 0,void 0,function(){var e,r,n,a;return st(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,Nr(i)];case 1:return e=o.sent(),[3,3];case 2:return r=o.sent(),console.error("Failed to load stylesheet",i,r),[2];case 3:n=s.createElement("style"),n.textContent=e.response,s.head.appendChild(n),o.label=4;case 4:return o.trys.push([4,,7,8]),[4,dp(n)];case 5:return a=o.sent(),[4,mo(s,i,a,t)];case 6:return o.sent(),[3,8];case 7:return s.head.removeChild(n),[7];case 8:return[2]}})})}function mo(s,i,t,e){return ut(this,void 0,void 0,function(){var r,n,a,o,l;return st(this,function(h){switch(h.label){case 0:for(r=[],n=t.length,a=0;a<n;a++)o=t[a],o.type===CSSRule.IMPORT_RULE?(l=o.href,l&&(l=vs(i,l),r.push(vo(s,l,e)))):e(i,o);return r.length?[4,Promise.all(r)]:[3,2];case 1:h.sent(),h.label=2;case 2:return[2]}})})}function fp(s){return ut(this,void 0,void 0,function(){var i,t;return st(this,function(e){switch(e.label){case 0:i=document.createElement("iframe"),i.src="about:blank",i.setAttribute("title",""),document.head.appendChild(i),e.label=1;case 1:return e.trys.push([1,,3,4]),t=i.contentDocument,[4,Promise.all(Ki(document.styleSheets,function(r){var n=r.href;return n==null?mo(t,location.href,r.cssRules,s):(n=vs(location.href,n),vo(t,n,s))}))];case 2:return e.sent(),[3,4];case 3:return document.head.removeChild(i),[7];case 4:return[2]}})})}var cp=function(s){w(i,s);function i(t){var e=s.call(this)||this;return e.adapter=new ne(e),e._formatOptions=new ct,e._extraSprites=[],e._validateSprites=[],e.dataFieldsOrder=[],e._dynamicDataFields=!0,e._removedObjects=new rt,e._hiddenObjects=[],e._objectsAlreadyHidden=!1,e._filePrefix="amCharts",e.useWebFonts=!0,e.useRetina=!0,e.useSimplifiedExport=!0,e.timeoutDelay=2e3,e._exportRunning=!1,e._prevHasData=!1,e._container=t,e.className="Export",e._formatOptions.setKey("png",{}),e._formatOptions.setKey("jpg",{quality:.8}),e._formatOptions.setKey("gif",{}),e._formatOptions.setKey("svg",{}),e._formatOptions.setKey("pdf",{fontSize:14,imageFormat:"png",align:"left",addURL:!0,addColumnNames:!0}),e._formatOptions.setKey("json",{indent:2,useLocale:!0}),e._formatOptions.setKey("csv",{addColumnNames:!0,emptyAs:"",addBOM:!0}),e._formatOptions.setKey("xlsx",{addColumnNames:!0,useLocale:!0,emptyAs:""}),e._formatOptions.setKey("html",{addColumnNames:!0,emptyAs:""}),e._formatOptions.setKey("pdfdata",{fontSize:14,imageFormat:"png",addURL:!0,addColumnNames:!0,emptyAs:""}),e._formatOptions.setKey("print",{delay:500,printMethod:"iframe"}),e.adapter.add("options",function(r){var n=e._formatOptions.getKey(r.type);return r.options?r.options=En(n,r.options):r.options=n,r}),e.applyTheme(),e.dispatchImmediately("inited"),e}return Object.defineProperty(i.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;this._menu&&this.removeDispose(this._menu),this._menu=t,this._menu.container=this.container,this._menu.language=this._language,this._menu.adapter.add("branch",function(r){return r.branch.unsupported=!e.typeSupported(r.branch.type),r}),this._menu.events.on("hit",function(r){e.export(r.branch.type,r.branch.options),e.menu.close()}),this._menu.events.on("enter",function(r){e.export(r.branch.type,r.branch.options),e.menu.close()}),this._menu.events.on("over",function(r){e._disablePointers()}),this._menu.events.on("out",function(r){setTimeout(function(){e._releasePointers()},10)}),this.dispatchImmediately("menucreated"),this._menu.adapter.add("classPrefix",function(r){return r.classPrefix=oe.classNamePrefix+r.classPrefix,r}),this._disposers.push(this._menu)},enumerable:!0,configurable:!0}
152),i.prototype.typeSupported=function(t){var e=!0,r=this.getFormatOptions(t);return b(r)&&r.disabled?e=!1:t==="pdf"||(t==="xlsx"?e=!!this._hasData():(t=="print"&&!window.print||["json","csv","html","pdfdata"].indexOf(t)!==-1&&!this._hasData())&&(e=!1)),this.adapter.apply("supported",{supported:e,type:t}).supported},i.prototype._hasData=function(){return this.data&&this.data.length},i.prototype._getFunction=function(t){switch(t){case"png":case"gif":case"jpg":return this.getImage;case"svg":return this.getSVG;case"pdf":case"pdfdata":return this.getPDF;case"xlsx":return this.getExcel;case"csv":return this.getCSV;case"json":return this.getJSON;case"html":return this.getHTML;case"print":return this.getPrint;default:return this.unsupported}},i.prototype.export=function(t,e){return ut(this,void 0,void 0,function(){var r,n,a,o,l,h=this;return st(this,function(u){switch(u.label){case 0:return t=="custom"?(this.handleCustom(e),[2,!0]):(this._exportRunning=!0,this.events.isEnabled("exportstarted")&&(r={type:"exportstarted",target:this,format:t,options:e},this.events.dispatchImmediately("exportstarted",r)),this.showPreloader(),this.timeoutDelay&&(this.hideTimeout(),this._timeoutTimeout=this.setTimeout(function(){if(h.events.isEnabled("exporttimedout")){var p={type:"exporttimedout",target:h,format:t,options:e};h.events.dispatchImmediately("exporttimedout",p)}h.showTimeout()},this.timeoutDelay)),this.hideNonExportableSprites(),n=this._getFunction(t),e=this.adapter.apply("options",{options:e,type:t}).options,n=this.adapter.apply("exportFunction",{func:n,type:t,options:e}).func,[4,n.call(this,t,e)]);case 1:return a=u.sent(),this._exportRunning=!1,this._releasePointers(),this.restoreNonExportableSprites(),a?(this.events.isEnabled("exportfinished")&&(o={type:"exportfinished",target:this,format:t,options:e},this.events.dispatchImmediately("exportfinished",o)),this.hidePreloader(),this.hideTimeout(),this.menu&&this.menu.close(),t==="print"?[2,this.print(a,e,this.adapter.apply("title",{title:this.title,options:e}).title)]:t=="pdfdata"?[2,this.download(a,this.filePrefix+".pdf")]:[2,this.download(a,this.filePrefix+"."+t,e&&e.addBOM)]):(this.events.isEnabled("error")&&(l={type:"error",target:this,format:t,options:e},this.events.dispatchImmediately("error",l)),[2,!1])}})})},i.prototype.unsupported=function(t,e){return ut(this,void 0,void 0,function(){return st(this,function(r){return[2,""]})})},i.prototype.handleCustom=function(t){b(t)&&b(t.callback)&&t.callback.call(t.callbackTarget||this,t)},i.prototype.getPrint=function(t,e){return ut(this,void 0,void 0,function(){return st(this,function(r){return[2,this.getImage("png",e)]})})},i.prototype.getFontFamilies=function(){return ut(this,void 0,void 0,function(){var t,e,r,n,a=this;return st(this,function(o){switch(o.label){case 0:return t=this.getDOMURL(),e=[],r=[],[4,fp(function(l,h){if(h.type===CSSRule.FONT_FACE_RULE){var u=h.cssText,p=ma.exec(u);if(p!==null){var d=p[1].split(/ *, */).map(function(f){return ut(a,void 0,void 0,function(){var c,y,g,m,x,P;return st(this,function(S){switch(S.label){case 0:return c=/^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(f),c!==null?[3,1]:[2,f];case 1:if(y=c[2],g=vs(l,c[1]),this.webFontFilter&&!g.match(this.webFontFilter))return[2,null];S.label=2;case 2:return S.trys.push([2,7,,8]),[4,Nr(g,void 0,{responseType:"blob"})];case 3:return m=S.sent(),up()?(x=t.createObjectURL(m.blob),e.push(x),[3,6]):[3,4];case 4:return[4,pp(m.blob)];case 5:x=S.sent(),S.label=6;case 6:return[2,'url("'+x+'")'+y];case 7:return P=S.sent(),console.error("Failed to load font",g,P),[2,null];case 8:return[2]}})})});r.push(Promise.all(d).then(function(f){return f=f.filter(function(c){return c!=null}),f.length===0?"":u.replace(ma,"src: "+f.join(", ")+";")}))}}})];case 1:return o.sent(),[4,Promise.all(r)];case 2:return n=o.sent(),[2,{blobs:e,cssText:n.filter(function(l){return!!l}).join(`
153`)}]}})})},i.prototype.getImage=function(t,e,r){return ut(this,void 0,void 0,function(){var n,a,o,l,h,u,u;return st(this,function(p){switch(p.label){case 0:return n=this._objectsAlreadyHidden,n||this.hideNonExportableSprites(),b(e)||(e=this.getFormatOptions(t)),[4,this.awaitValidSprites()];case 1:return p.sent(),[4,this.simplifiedImageExport()];case 2:if(!p.sent())return[3,10];a=void 0,p.label=3;case 3:return p.trys.push([3,7,,9]),[4,this.getCanvas(e)];case 4:return a=p.sent(),r===!1?[3,6]:[4,this.addExtras(a,e)];case 5:o=p.sent(),this.disposeCanvas(a),a=o,p.label=6;case 6:return l=a.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(a),n||this.restoreNonExportableSprites(),[2,l];case 7:return h=p.sent(),console.error(h.message+`
154`+h.stack),ms("Simple export failed, falling back to advanced export"),a&&this.disposeCanvas(a),[4,this.getImageAdvanced(t,e,r)];case 8:return u=p.sent(),n||this.restoreNonExportableSprites(),[2,u];case 9:return[3,12];case 10:return[4,this.getImageAdvanced(t,e,r)];case 11:return u=p.sent(),n||this.restoreNonExportableSprites(),[2,u];case 12:return[2]}})})},i.prototype.addExtras=function(t,e,r){return ut(this,void 0,void 0,function(){var n,a,o,l,h,u,p,d,f,c,y,g,m,x,P=this;return st(this,function(S){switch(S.label){case 0:return this.extraSprites.length?(n=0,a=0,o=t.width,l=t.height,h=0,u=0,[4,Promise.all(Ki(this.extraSprites,function(C){return ut(P,void 0,void 0,function(){var O,T,D,k;return st(this,function(z){switch(z.label){case 0:return C instanceof Z?O={sprite:C,position:"bottom"}:O=C,O.position=O.position||"bottom",O.marginTop=O.marginTop||0,O.marginRight=O.marginRight||0,O.marginBottom=O.marginBottom||0,O.marginLeft=O.marginLeft||0,r?[4,O.sprite.exporting.getCanvasAdvanced(e)]:[3,2];case 1:return T=z.sent(),[3,4];case 2:return[4,O.sprite.exporting.getCanvas(e)];case 3:T=z.sent(),z.label=4;case 4:return D=T.width+O.marginLeft+O.marginRight,k=T.height+O.marginTop+O.marginBottom,O.position=="top"?(o=O.crop?l:q(o,D),a+=k):O.position=="right"?(l=O.crop?l:q(l,k),h+=D):O.position=="left"?
154(l=O.crop?l:q(l,k),n+=D):O.position==="bottom"&&(o=O.crop?l:q(o,D),u+=k),[2,{canvas:T,position:O.position,left:O.marginLeft,top:O.marginTop,width:D,height:k}]}})})}))]):[3,2];case 1:return p=S.sent(),d=this.getDisposableCanvas(),d.width=n+o+h,d.height=a+l+u,f=d.getContext("2d"),c=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),c&&(f.fillStyle=c.toString(),f.fillRect(0,0,d.width,d.height)),y=n,g=a,m=y+o,x=g+l,L(p,function(C){C.position=="top"?(g-=C.height,f.drawImage(C.canvas,n+C.left,g+C.top)):C.position=="right"?(f.drawImage(C.canvas,m+C.left,a+C.top),m+=C.width):C.position=="left"?(y-=C.width,f.drawImage(C.canvas,y+C.left,a+C.top)):C.position==="bottom"&&(f.drawImage(C.canvas,n+C.left,x+C.top),x+=C.height),P.disposeCanvas(C.canvas)}),f.drawImage(t,n,a),[2,d];case 2:return[2,t]}})})},i.prototype.getCanvas=function(t){return ut(this,void 0,void 0,function(){var e,r,n,a,o,l,h,u,p,d,f,c,y,g,m,x,P;return st(this,function(S){switch(S.label){case 0:b(t)||(t={}),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),r=this.getDOMURL(),n=null,a=null,S.label=1;case 1:return S.trys.push([1,,4,5]),l=this.sprite.pixelWidth,h=this.sprite.pixelHeight,u=Pr(this.sprite.dom),p=Cr(this.sprite.dom),d=t.scale||1,f=this.getPixelRatio(t),d=this.getAdjustedScale(l*f,h*f,d,t),o=this.getDisposableCanvas(),o.style.width=l*d+"px",o.style.height=h*d+"px",o.width=l*d,o.height=h*d,c=o.getContext("2d"),e&&(c.fillStyle=e.toString(),c.fillRect(0,0,l*d,h*d)),y=[],this.useWebFonts&&y.push(this.getFontFamilies().then(function(C){return a=C.blobs,C.cssText})),y.push(this.imagesToDataURI(this.sprite.dom,t)),y.push(this.prepForeignObjects(this.sprite.dom,t)),[4,Promise.all(y)];case 2:return g=S.sent(),m=this.normalizeSVG("<style>"+g[0]+"</style>"+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,l,h,d,u,p),x=new Blob([m],{type:"image/svg+xml"}),n=r.createObjectURL(x),[4,this.loadNewImage(n,l*d*f,h*d*f,"anonymous")];case 3:return P=S.sent(),c.drawImage(P,0,0),[3,5];case 4:return n!==null&&r.revokeObjectURL(n),a!==null&&L(a,function(C){r.revokeObjectURL(C)}),this.restoreRemovedObjects(),[7];case 5:return[2,o]}})})},i.prototype.getCanvasAdvanced=function(t){return ut(this,void 0,void 0,function(){var e,r,n,a,o,l,h,u,p,d,f;return st(this,function(c){switch(c.label){case 0:return b(t)||(t={}),[4,this.imagesToDataURI(this.sprite.dom,t)];case 1:return c.sent(),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),[4,this.canvg];case 2:return r=c.sent(),n=this.sprite.pixelWidth,a=this.sprite.pixelHeight,o=Pr(this.sprite.dom),l=Cr(this.sprite.dom),h=t.scale||1,u=this.getPixelRatio(t),h=this.getAdjustedScale(n*u,a*u,h,t),p=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,n,a,h,o,l,e),d=this.getDisposableCanvas(),d.style.width=n*u*h+"px",d.style.height=a*u*h+"px",d.width=n*u*h,d.height=a*u*h,f={useCORS:!0},u!=1&&(f.ignoreDimensions=!0,f.scaleWidth=n*u*h,f.scaleHeight=a*u*h),[4,r.fromString(d.getContext("2d"),p,f).render()];case 3:return c.sent(),[2,d]}})})},i.prototype.getImageAdvanced=function(t,e,r){return ut(this,void 0,void 0,function(){var n,a,o;return st(this,function(l){switch(l.label){case 0:return n=this._objectsAlreadyHidden,n||this.hideNonExportableSprites(),b(e)||(e=this.getFormatOptions(t)),[4,this.getCanvasAdvanced(e)];case 1:return a=l.sent(),r===!1?[3,3]:[4,this.addExtras(a,e,!0)];case 2:a=l.sent(),l.label=3;case 3:return o=a.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(a),n||this.restoreNonExportableSprites(),[2,o]}})})},i.prototype.getDisposableCanvas=function(){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",document.body.appendChild(t),t},i.prototype.disposeCanvas=function(t){document.body.contains(t)&&document.body.removeChild(t)},i.prototype.getPixelRatio=function(t){return this.useRetina?Gh():1},i.prototype.getAdjustedScale=function(t,e,r,n){if(!n)return r;var a=t*r,o=t*r,l,h;return n.maxWidth&&a>n.maxWidth&&(l=n.maxWidth/t),n.maxHeight&&o>n.maxHeight&&(h=n.maxHeight/e),l||h?et(l,h):(n.minWidth&&a<n.minWidth&&(l=n.minWidth/t),n.minHeight&&o<n.minHeight&&(h=n.minHeight/e),l||h?q(l,h):r)},i.prototype.imagesToDataURI=function(t,e){return ut(this,void 0,void 0,function(){var r,n,a,o,l,h;return st(this,function(u){switch(u.label){case 0:if(r=t.querySelectorAll("image"),!r.length)return[3,2];for(n=[],a=r.length,o=0;o<a;o++)l=r[o],h=l.getAttributeNS(i.XLINK,"href"),h&&(h.indexOf("data:image")!==-1||(h.indexOf(".svg")!==-1?n.push(this.svgToDataURI(l,e)):n.push(this.imageToDataURI(l,e))));return[4,Promise.all(n)];case 1:return u.sent(),[2];case 2:return[2]}})})},i.prototype.prepForeignObjects=function(t,e){return ut(this,void 0,void 0,function(){var r,n,a;
154return st(this,function(o){if(r=t.querySelectorAll("foreignObject"),r.length)for(n=r.length,a=0;a<n;a++)this.temporarilyRemoveObject(r[a]);return[2]})})},i.prototype.imageToDataURI=function(t,e){return ut(this,void 0,void 0,function(){var r,n,a;return st(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.loadNewImage(t.getAttributeNS(i.XLINK,"href"),null,null,"anonymous")];case 1:r=o.sent(),n=document.createElement("canvas"),n.width=r.width,n.height=r.height,n.getContext("2d").drawImage(r,0,0);try{return a=n.toDataURL(),t.setAttribute("href",a),[2,a]}catch{return e.keepTainted!==!1&&this.temporarilyRemoveObject(t),[2,void 0]}return[3,3];case 2:return o.sent(),(!e||e.keepTainted!==!1)&&this.temporarilyRemoveObject(t),[2,void 0];case 3:return[2]}})})},i.prototype.svgToDataURI=function(t,e){return ut(this,void 0,void 0,function(){var r,n,a,o;return st(this,function(l){switch(l.label){case 0:r=t.getAttributeNS(i.XLINK,"href"),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Nr(r)];case 2:return n=l.sent(),a=this.adapter.apply("charset",{charset:"base64",type:"svg",options:e}).charset,o=this.adapter.apply("svgToDataURI",{data:"data:"+this.getContentType("svg")+";"+a+","+btoa(n.response),options:e}).data,t.setAttributeNS(i.XLINK,"href",o),[2,o];case 3:return l.sent(),(!e||e.keepTainted!==!1)&&this.temporarilyRemoveObject(t),[2,void 0];case 4:return[2]}})})},i.prototype.temporarilyRemoveObject=function(t,e){var r=t.parentElement||t.parentNode;e||(e=this.sprite.paper.add("g").node),r.insertBefore(e,t),t.textContent,r.removeChild(t),this._removedObjects.push({element:t,placeholder:e})},i.prototype.restoreRemovedObjects=function(){for(var t;t=this._removedObjects.pop(),!!t;){var e=t.placeholder.parentElement||t.placeholder.parentNode;e.insertBefore(t.element,t.placeholder)}},i.prototype.simplifiedImageExport=function(){return ut(this,void 0,void 0,function(){var t,e,r,n,a,o,l;return st(this,function(h){switch(h.label){case 0:if(this.useSimplifiedExport===!1)return[2,!1];if(t=_.getCache("simplifiedImageExport"),t===!1||t===!0)return[2,t];h.label=1;case 1:h.trys.push([1,6,,7]),e=document.createElement("canvas"),e.width=1,e.height=1,r=e.getContext("2d"),n=this.getDOMURL(),a=new Blob([this.normalizeSVG("<g></g>",{},1,1)],{type:"image/svg+xml"}),o=n.createObjectURL(a),l=void 0,h.label=2;case 2:return h.trys.push([2,4,,5]),[4,this.loadNewImage(o,1,1)];case 3:return l=h.sent(),[3,5];case 4:return h.sent(),[2,!1];case 5:r.drawImage(l,0,0),n.revokeObjectURL(o);try{return _.setCache("simplifiedImageExport",!0),[2,!0]}catch{return _.setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return h.sent(),_.setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}})})},i.prototype.loadNewImage=function(t,e,r,n){return new Promise(function(a,o){var l;e&&r?l=new Image(e,r):l=new Image,n&&l.setAttribute("crossOrigin",n),l.onload=function(){a(l)};function h(){if(n){var u=l.src;l.onerror=function(){o(new Error('Loading image "'+t+'" failed'))},l.removeAttribute("crossorigin"),l.src="",l.src=u}else o(new Error('Loading image "'+t+'" failed'))}l.onabort=h,l.onerror=h,l.src=t})},i.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},i.prototype.getSVG=function(t,e,r){return r===void 0&&(r=!0),ut(this,void 0,void 0,function(){var n,a,o,l,h,u,p,d,f,c;return st(this,function(y){switch(y.label){case 0:return n=this._objectsAlreadyHidden,n||this.hideNonExportableSprites(),b(e)||(e=this.getFormatOptions("svg")),[4,this.awaitValidSprites()];case 1:return y.sent(),a=this.sprite.pixelWidth,o=this.sprite.pixelHeight,l=Pr(this.sprite.dom),h=Cr(this.sprite.dom),u=e.scale||1,p=this.getPixelRatio(e),u=this.getAdjustedScale(a*p,o*p,u,e),d=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,a,o,u,l,h),f=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:e}).charset,c=this.adapter.apply("getSVG",{data:r?"data:"+this.getContentType(t)+";"+f+","+encodeURIComponent(d):d,options:e}).data,n||this.restoreNonExportableSprites(),[2,c]}})})},i.prototype.normalizeSVG=function(t,e,r,n,a,o,l,h){var u="";r&&(u+='width="'+Math.round(r*(a||1))+'px" '),n&&(u+='height="'+Math.round(n*(a||1))+'px" ');var p="";o&&(p+="font-family: "+o.replace(/"/g,"")+";"),l&&(p+="font-size: "+l+";
154"),a&&(u+='viewBox="0 0 '+r+" "+n+'" ');var d=[],f=t.match(/<foreignObject[\s\S]*<\/foreignObject>/gi);if(f)for(var c=0;c<f.length;c++)t=t.replace(f[c],le),d.push(f[c]);t.match(/<svg/)?u!==""&&(t=t.replace(/(<svg[^>]*)width="[^"]*"/,"$1"),t=t.replace(/(<svg[^>]*)height="[^"]*"/,"$1"),t=t.replace(/(<svg)/,"$1"+u)):t='<?xml version="1.0" encoding="utf-8"?><svg '+u+' style="'+p+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+t+"</svg>",h&&(t=t.replace(/(<svg[^>]*>)/,'$1<rect width="100%" height="100%" fill="'+h.rgba+'"/>')),Yh()&&(t=t.replace(/<feColorMatrix [^\/>]*\/>/gi,""));var y=new RegExp("url\\("+Nn(Vi()),"g");if(t=t.replace(y,"url(#"),t=t.replace(/url\(&quot;([^)]*)&quot;\)/gm,"url($1)"),d.length)for(var c=0;c<d.length;c++)t=t.replace(le,d[c]);return t=this.adapter.apply("normalizeSVG",{data:t,options:e}).data,t},i.prototype.serializeElement=function(t){return new XMLSerializer().serializeToString(t)},i.prototype.getPDF=function(t,e){return ut(this,void 0,void 0,function(){function r(g){var m={};m.normal=g.normal.path,y[g.normal.path]=g.normal.bytes,g.bold?(m.bold=g.bold.path,y[g.bold.path]=g.bold.bytes):m.bold=g.normal.path,g.italics?(m.italics=g.italics.path,y[g.italics.path]=g.italics.bytes):m.italics=g.normal.path,g.bolditalics?(m.bolditalics=g.bolditalics.path,y[g.bolditalics.path]=g.bolditalics.bytes):m.bolditalics=g.normal.path,c[g.name]=m}var n,a,o,l,h,u,p,d,f,c,y;return st(this,function(g){switch(g.label){case 0:return[4,this.getImage(e.imageFormat||"png",e)];case 1:return n=g.sent(),[4,this.pdfmake];case 2:return a=g.sent(),o=[30,30,30,30],l={pageSize:e.pageSize||"A4",pageOrientation:e.pageOrientation||"portrait",pageMargins:e.pageMargins||o,defaultStyle:{font:e.font?e.font.name:void 0},content:[]},h=this.adapter.apply("title",{title:this.title,options:e}).title,u=0,h&&(l.content.push({text:h,fontSize:e.fontSize||14,bold:!0,margin:[0,0,0,15]}),u+=50),e.addURL&&(l.content.push({text:this.language.translate("Saved from")+": "+document.location.href,fontSize:e.fontSize,margin:[0,0,0,15]}),u+=50),t!="pdfdata"&&l.content.push({image:n,alignment:e.align||"left",fit:this.getPageSizeFit(l.pageSize,l.pageMargins,u)}),t=="pdfdata"||e.addData?(d=(p=l.content).push,f={},[4,this.getPDFData("pdf",e)]):[3,4];case 3:d.apply(p,[(f.table=g.sent(),f.fontSize=e.fontSize||14,f)]),g.label=4;case 4:return l=this.adapter.apply("pdfmakeDocument",{doc:l,options:e}).doc,c=null,y=null,e.font&&(c={},y={},r(e.font),e.extraFonts&&L(e.extraFonts,r)),[4,new Promise(function(m,x){a.createPdf(l,null,c,y).getDataUrl(function(P){m(P)})})];case 5:return[2,g.sent()]}})})},i.prototype.getPDFData=function(t,e){return ut(this,void 0,void 0,function(){var r,n,a,o,l,h,u=this;return st(this,function(p){if(r={body:[]},n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"pdf"}).dataFields,a=this.data,e.pivot)o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder,Fe(n,function(d,f){var c=[];e.addColumnNames&&c.push(f);for(var y=a.length,g=0;g<y;g++){var m=a[g][d];c.push(u.convertToSpecialFormat(d,m,e,!0))}r.body.push(u.getPDFDataRow(c,e,void 0,!0))},function(d,f){var c=o.indexOf(d),y=o.indexOf(f);return c>y?1:c<y?-1:0});else for(e.addColumnNames&&(r.body.push(this.getPDFDataRow(n,e,void 0,!0)),r.headerRows=1),l=a.length,h=0;h<l;h++)r.body.push(this.getPDFDataRow(a[h],e,n));return[2,this.adapter.apply("pdfmakeTable",{table:r,options:e}).table]})})},i.prototype.getPDFDataRow=function(t,e,r,n){var a=this;n===void 0&&(n=!1);var o=[];r||(r=t);var l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder;return Fe(r,function(h,u){var p=a.convertEmptyValue(h,t[h],e),d=n?p:a.convertToSpecialFormat(h,p,e);d=""+d,o.push(d)},function(h,u){var p=l.indexOf(h),d=l.indexOf(u);return p>d?1:p<d?-1:0}),o},i.prototype.getPageSizeFit=function(t,e,r){r===void 0&&(r=0);var n=[0,0,0,0];typeof e=="number"?n=[e,e,e,e]:e.length==2?n=[e[0],e[1],e[0],e[1]]:e.length==4&&(n=e);var a={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},o=a[t];return o[0]-=n[0]+n[2],o[1]-=n[1]+n[3]+r,o},i.prototype.getExcel=function(t,e){return ut(this,void 0,void 0,function(){var r,n,a,o,l,h,u,p,d,f,c=this;return st(this,function(y){switch(y.label){case 0:return b(e)||(e=this.getFormatOptions("xlsx")),[4,this.xlsx];case 1:if(r=y.sent(),n=this.adapter.apply("xlsxWorkbookOptions",{xlsx:r,options:{bookType:"xlsx",bookSST:!1,type:"base64"}}).options,a=this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName",{xlsx:r,name:this.title||this.language.translate("Data")}).name),o={SheetNames:[a],Sheets:{}},l=[],h=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"xslx"}).dataFields,e.pivot)u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder,Fe(h,function(g,m){var x=[];e.addColumnNames&&x.push(m);for(var P=c.data.length,S=0;S<P;S++){var C=c.data[S][g];x.push(c.convertToSpecialFormat(g,C,e,!0))}l.push(c.getExcelRow(x,e,void 0,!0))},function(g,m){var x=u.indexOf(g),P=u.indexOf(m);return x>P?1:x<P?-1:0});else for(e.addColumnNames&&l.push(this.getExcelRow(h,e,void 0,!0)),p=this.data.length,d=0;d<p;d++)l.push(this.getExcelRow(this.data[d],e,h));return o.Sheets[a]=r.utils.aoa_to_sheet(l),o=this.adapter.apply("xlsxWorkbook",{xlsx:r,workbook:o,options:e}).workbook,f=this.adapter.apply("getExcel",{data:"data:"+this.getContentType(t)+";base64,"+r.write(o,n),options:e}).data,[2,f]}})})},i.prototype.normalizeExcelSheetName=function(t){return t=t.replace(/([:\\\/?*\[\]]+)/g," "),Xn(t,31,"...",!0)},i.prototype.getExcelRow=function(t,e,r,n){var a=this;n===void 0&&(n=!1);var o=[];r||(r=t);var l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder;return Fe(r,function(h,u){var p=a.convertEmptyValue(h,t[h],e),d=n?p:a.convertToSpecialFormat(h,p,e,!0);o.push(d)},function(h,u){var p=l.indexOf(h),d=l.indexOf(u);return p>d?1:p<d?-1:0}),o},i.prototype.getCSV=function(t,e,r){return r===void 0&&(r=!0),ut(this,void 0,void 0,function(){var n,a,o,l,h,u,p,d,f,c,y=this;return st(this,function(g){if(b(e)||(e=this.getFormatOptions("csv")),n="",a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,o="",l=this.data,e.pivot)h=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder,Fe(a,function(m,x){var P=[];e.addColumnNames&&P.push(x);for(var S=l.length,C=0;C<S;C++){var O=l[C][m];P.push(y.convertToSpecialFormat(m,O,e,!0))}n+=o+y.getCSVRow(P,e,void 0,!0),o=`
155`},function(m,x){var P=h.indexOf(m),S=h.indexOf(x);return P>S?-1:P<S?1:0});else{for(u=l.length,p=0;p<u;p++)d=this.getCSVRow(l[p],e,a),e.reverse?n=d+o+n:n+=o+d,o=`
156`;e.addColumnNames&&(n=this.getCSVRow(a,e,void 0,!0)+o+n)}return f=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,c=this.adapter.apply("getCSV",{data:r?"data:"+this.getContentType(t)+";"+f+","+encodeURIComponent(n):n,options:e}).data,[2,c]})})},i.prototype.getCSVRow=function(t,e,r,n){var a=this;n===void 0&&(n=!1);var o=e.separator||",",l=[];r||(r=t);var h=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder;return Fe(r,function(u,p){var d=a.convertEmptyValue(u,t[u],e),f=n?d:a.convertToSpecialFormat(u,d,e);f=""+f,f=f.replace(/"/g,'""'),(e.forceQuotes||f.search(new RegExp(`"|
157|`+o,"g"))>=0)&&(f='"'+f+'"'),l.push(f)},function(u,p){var d=h.indexOf(u),f=h.indexOf(p);return d>f?1:d<f?-1:0}),l.join(o)},i.prototype.getHTML=function(t,e,r){return r===void 0&&(r=!0),ut(this,void 0,void 0,function(){var n,a,o,l,h,u,p,d,f=this;return st(this,function(c){if(b(e)||(e=this.getFormatOptions("html")),n="<table>",e.tableClass&&(n='<table class="'+e.tableClass+'">'),a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"html"}).dataFields,o=this.data,e.pivot)l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,n+=`
158<tbody>`,Fe(a,function(y,g){var m=[];e.addColumnNames&&m.push(g);for(var x=o.length,P=0;P<x;P++){var S=o[P][y];m.push(f.convertToSpecialFormat(y,S,e,!0))}n+=`
159`+f.getHTMLRow(m,e,void 0,!0)},function(y,g){var m=l.indexOf(y),x=l.indexOf(g);return m>x?-1:m<x?1:0}),n+=`
160</tbody>`;else{for(e.addColumnNames&&(n+=`
161<thead>
162`+this.getHTMLRow(a,e,void 0,!0,!0)+`
163</thead>`),n+=`
164<tbody>`,h=o.length,u=0;u<h;u++)n+=`
165`+this.getHTMLRow(o[u],e,a);n+=`
166</tbody>`}return n+=`
167</table>`,p=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,d=this.adapter.apply("getHTML",{data:r?"data:"+this.getContentType(t)+";"+p+","+encodeURIComponent(n):n,options:e}).data,[2,d]})})},i.prototype.getHTMLRow=function(t,e,r,n,a){var o=this;n===void 0&&(n=!1),a===void 0&&(a=!1);var l="	<tr>";e.rowClass&&(l='	<tr class="'+e.rowClass+'">'),r||(r=t);var h=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,u=a?"th":"td",p=!0;return Fe(r,function(d,f){var c=o.convertEmptyValue(d,t[d],e),y=n?c:o.convertToSpecialFormat(d,c,e);y=""+y,y=y.replace(/[\u00A0-\u9999<>\&]/gim,function(m){return"&#"+m.charCodeAt(0)+";"});var g=u;e.pivot&&p&&(g="th"),e.cellClass?l+=`
168		<`+g+' class="'+e.cellClass+'">'+y+"</"+g+">":l+=`
169		<`+g+">"+y+"</"+g+">",p=!1},function(d,f){var c=h.indexOf(d),y=h.indexOf(f);return c>y?1:c<y?-1:0}),l+=`
170	</tr>`,l},i.prototype.getJSON=function(t,e,r){return r===void 0&&(r=!0),ut(this,void 0,void 0,function(){var n,a,o,l,h,u,p,d,f,c=this;return st(this,function(y){if(b(e)||(e=this.getFormatOptions("json")),a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"json"}).dataFields,this._dynamicDataFields)n=this.data;else for(n=[],o=this.data,l=function(g,m){var x=o[m];if(typeof x=="object"){var P={};U(x,function(S,C){b(a[S])&&(P[a[S]]=c.convertToSpecialFormat(S,C,e))}),n.push(P)}},h=o.length,u=0;u<h;u++)l(h,u);return p=JSON.stringify(n,function(g,m){return typeof m=="object"&&U(m,function(x,P){m[x]=c.convertToSpecialFormat(x,P,e)}),m},e.indent),d=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,f=this.adapter.apply("getJSON",{data:r?"data:"+this.getContentType(t)+";"+d+","+encodeURIComponent(p):p,options:e}).data,[2,f]})})},i.prototype.convertToSpecialFormat=function(t,e,r,n){if(typeof e=="number")if(this.isDateField(t))e=new Date(e);else{if(this.isDurationField(t))return this.durationFormatter.format(e,this.durationFormat);if(this.isNumberField(t)&&this.numberFormat)return this.numberFormatter.format(e,this.numberFormat)}return e instanceof Date?r.useTimestamps?e=e.getTime():r.useLocale?n||(e=e.toLocaleString()):e=this.dateFormatter.format(e,this.dateFormat):tt(e)&&this.isDateField(t)&&this.dateFormat&&(e=this.dateFormatter.format(this.dateFormatter.parse(e),this.dateFormat)),e},i.prototype.convertEmptyValue=function(t,e,r){return b(e)?e:r.emptyAs},i.prototype.download=function(t,e,r){return r===void 0&&(r=!1),ut(this,void 0,void 0,function(){var g,m,o,n,u,p,d,f,a,g,m,o,l,h,u,p,d,f,c,y,g,m,x,P;return st(this,function(S){if(this.msBlobDownloadSupport()){if(g=t.split(";"),m=g.shift().replace(/data:/,""),t=decodeURIComponent(g.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv"].indexOf(m)==-1)try{o=atob(t),t=o}catch{return[2,!1]}else return n=new Blob([t],{type:m}),window.navigator.msSaveBlob(n,e),[2,!0];for(u=new Array(t.length),p=0;p<t.length;++p)d=t.charCodeAt(p),u[p]=d;f=new Blob([new Uint8Array(u)],{type:m}),window.navigator.msSaveBlob(f,e)}else if(this.blobDownloadSupport()){if(a=document.createElement("a"),a.download=e,document.body.appendChild(a),g=t.split(";"),m=g.shift().replace(/data:/,""),t=decodeURIComponent(g.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv","text/html"].indexOf(m)==-1)try{o=atob(t),t=o}catch{return[2,!1]}else return r&&(t="\uFEFF"+t),l=new Blob([t],{type:m}),h=window.URL.createObjectURL(l),a.href=h,a.download=e,a.click(),setTimeout(function(){document.body.removeChild(a),window.URL.revokeObjectURL(h)},100),[2,!0];for(u=new Array(t.length),p=0;p<t.length;++p)d=t.charCodeAt(p),u[p]=d;r&&(u=[239,187,191].concat(u)),f=new Blob([new Uint8Array(u)],{type:m}),c=window.URL.createObjectURL(f),a.href=c,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),setTimeout(function(){window.URL.revokeObjectURL(c)},100)}else this.linkDownloadSupport()?(y=document.createElement("a"),y.download=e,y.href=t,document.body.appendChild(y),y.click(),document.body.removeChild(y)):this.legacyIE()?(g=t.match(/^data:(.*);[ ]*([^,]*),(.*)$/),g.length===4&&(g[2]=="base64"?g[1].match(/^image\//)&&this.showModal('<img src="'+t+'" style="float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;" /><p>'+this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."')+'</p><p style="text-align: center;"><small>'+this.language.translate("(Press ESC to close this message)")+"</small></p>",this.language.translate("Image Export Complete")):(m=void 0,e.match(/\.svg$/)?m="image/svg+xml":(m="text/plain",e+=".txt"),x=document.createElement("iframe"),x.width="1px",x.height="1px",x.style.display="none",document.body.appendChild(x),P=x.contentDocument,P.open(m,"replace"),P.write(decodeURIComponent(g[3])),P.close(),P.execCommand("SaveAs",!0,e),document.body.removeChild(x)))):window.location.href=t;return[2,!0]})})},i.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},i.prototype.linkDownloadSupport=function(){var t=_.getCache("linkDownloadSupport");if(t===!1||t===!0)return t;var e=document.createElement("a"),r=typeof e.download<"u";
170return _.setCache("linkDownloadSupport",r),r},i.prototype.blobDownloadSupport=function(){return b(window.Blob)},i.prototype.msBlobDownloadSupport=function(){return b(window.navigator.msSaveOrOpenBlob)},i.prototype.legacyIE=function(){var t=document.createElement("div");return t.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->",t.getElementsByTagName("i").length==1},i.prototype.print=function(t,e,r){return ut(this,void 0,void 0,function(){return st(this,function(n){return e.printMethod=="css"?[2,this.printViaCSS(t,e,r)]:[2,this.printViaIframe(t,e,r)]})})},i.prototype.printViaCSS=function(t,e,r){return ut(this,void 0,void 0,function(){var n,a,o,l,h;return st(this,function(u){return n=document.documentElement.scrollTop||document.body.scrollTop,a=new pt(_s(this.container),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),r&&document&&document.title&&(o=document.title,document.title=r),l=new Image,l.src=t,l.style.maxWidth="100%",l.style.display="block",l.style.position="relative",l.style.visibility="visible",l.style.opacity="1",l.style.clipPath="none",document.body.appendChild(l),this.setTimeout(function(){window.print()},50),h=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,h&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout(function(){document.body.removeChild(l),a.dispose(),o&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n},e.delay||500),[2,!0]})})},i.prototype.printViaIframe=function(t,e,r){return ut(this,void 0,void 0,function(){var n,a,o;return st(this,function(l){return n=document.createElement("iframe"),n.style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close(),a=new Image,a.src=t,a.style.maxWidth="100%",a.style.height="auto",r&&(n.contentWindow.document.title=r),n.contentWindow.document.body.appendChild(a),n.load=function(){n.contentWindow.document.body.appendChild(a)},this.setTimeout(function(){try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch{n.contentWindow.print()}},e.delay||50),o=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,o&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout(function(){document.body.removeChild(n)},e.delay+50||100),[2,!0]})})},i.prototype.findBackgroundColor=function(t){var e=1,r=xs(t,"background-color");if((r.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||r=="transparent")&&(e=0),e==0){var n=t.parentElement;return n?this.findBackgroundColor(n):H("#fff")}else return H(r,e)},Object.defineProperty(i.prototype,"container",{get:function(){return this.adapter.apply("container",{container:this._container}).container},set:function(t){this._container=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sprite",{get:function(){return this.adapter.apply("sprite",{sprite:this._sprite}).sprite},set:function(t){this._sprite=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraSprites",{get:function(){return this.adapter.apply("extraSprites",{extraSprites:this._extraSprites}).extraSprites},set:function(t){this._extraSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"validateSprites",{get:function(){return this.adapter.apply("validateSprites",{validateSprites:this._validateSprites}).validateSprites},set:function(t){this._validateSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this.adapter.apply("data",{data:this._data}).data},set:function(t){this._data=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataFields",{get:function(){return this._dataFields||this.generateDataFields(),this.adapter.apply("dataFields",{dataFields:this._dataFields}).dataFields},set:function(t){this._dataFields=t,this._dynamicDataFields=!1},enumerable:!0,configurable:!0}),i.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0);var t=this.data.length>0;this._prevHasData!=t&&(this._prevHasData=t,this.menu&&this.menu.invalidate())},Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new Zi,this._dateFormatter.language=this.language),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormat",{get:function(){return this.adapter.apply("dateFormat",{dateFormat:this._dateFormat}).dateFormat},set:function(t){this._dateFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new rt),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields}
170,set:function(t){this._dateFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormatter",{get:function(){return this._numberFormatter||(this._numberFormatter=new Ps,this._numberFormatter.language=this.language),this.adapter.apply("numberFormatter",{numberFormatter:this._numberFormatter}).numberFormatter},set:function(t){this._numberFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormat",{get:function(){return this.adapter.apply("numberFormat",{numberFormat:this._numberFormat}).numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFields",{get:function(){return this._numberFields||(this._numberFields=new rt),this.adapter.apply("numberFields",{numberFields:this._numberFields}).numberFields},set:function(t){this._numberFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new Cs,this._durationFormatter.language=this.language),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(t){this._durationFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormat",{get:function(){return this.adapter.apply("durationFormat",{durationFormat:this._durationFormat}).durationFormat},set:function(t){this._durationFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new rt),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields},set:function(t){this._durationFields=t},enumerable:!0,configurable:!0}),i.prototype.generateDataFields=function(){var t=this;this._dataFields={},this.data.length&&L(this.data,function(e){U(e,function(r,n){b(t._dataFields[r])||(t._dataFields[r]=t.adapter.apply("dataFieldName",{name:r,field:r}).name)})})},i.prototype.isDateField=function(t){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(t),field:t}).isDateField},i.prototype.isNumberField=function(t){return this.adapter.apply("isNumberField",{isNumberField:this.numberFields.contains(t),field:t}).isNumberField},i.prototype.isDurationField=function(t){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(t),field:t}).isDurationField},i.prototype.getContentType=function(t){var e="";switch(t){case"png":case"gif":e="image/"+t;break;case"jpg":e="image/jpeg";break;case"svg":e="image/svg+xml";break;case"csv":e="text/csv";break;case"json":e="application/json";break;case"html":e="text/html";break;case"pdf":case"pdfdata":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break}return this.adapter.apply("contentType",{contentType:e,type:t}).contentType},Object.defineProperty(i.prototype,"filePrefix",{get:function(){return this.adapter.apply("filePrefix",{filePrefix:this._filePrefix}).filePrefix},set:function(t){this._filePrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundColor",{get:function(){return this.adapter.apply("backgroundColor",{backgroundColor:this._backgroundColor}).backgroundColor},set:function(t){this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(t){this._title=t},enumerable:!0,configurable:!0}),i.prototype.showPreloader=function(){var t=this.preloader;t&&(t.progress=.5,t.label.text="...")},i.prototype.hidePreloader=function(){var t=this.preloader;t&&(t.progress=1)},Object.defineProperty(i.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),i.prototype.showTimeout=function(){this.showModal(this.adapter.apply("timeoutMessage",{message:this.language.translate("Export operation took longer than expected. Something might have gone wrong.")}).message)},i.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()}
170,Object.defineProperty(i.prototype,"language",{get:function(){return this._language||(this._language=new ze),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"modal",{get:function(){return this._modal||(this._modal=new po,this._modal.adapter.add("classPrefix",function(t){return t=oe.classNamePrefix+t,t})),this._modal},enumerable:!0,configurable:!0}),i.prototype.showModal=function(t,e){this.hideModal(),this.hidePreloader();var r=this.modal;r.container=this.sprite.svgContainer.SVGContainer,r.content=t,r.readerTitle=e,r.open()},i.prototype.hideModal=function(){this._modal&&this.modal.close()},i.prototype._canvg=function(){return ut(this,void 0,void 0,function(){var t;return st(this,function(e){switch(e.label){case 0:return[4,Dr(()=>import("./index-DTy3DVFW.js"),__vite__mapDeps([2,1,3]))];case 1:return t=e.sent(),t.default!=null?[2,t.default]:[2,t]}})})},Object.defineProperty(i.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pdfmake",{get:function(){return Vn==null&&(Vn=hp()),Vn},enumerable:!0,configurable:!0}),i.prototype._xlsx=function(){return ut(this,void 0,void 0,function(){return st(this,function(t){switch(t.label){case 0:return[4,Dr(()=>import("./xlsx-CWQDBfZ9.js"),__vite__mapDeps([]))];case 1:return[2,t.sent()]}})})},Object.defineProperty(i.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),i.prototype.setFormatOptions=function(t,e){this._formatOptions.setKey(t,e)},i.prototype.getFormatOptions=function(t){return this._formatOptions.getKey(t)},Object.defineProperty(i.prototype,"formatOptions",{get:function(){return this._formatOptions},enumerable:!0,configurable:!0}),i.prototype._disablePointers=function(){b(this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},i.prototype._releasePointers=function(){b(this._spriteInteractionsEnabled)&&!this._exportRunning&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},i.prototype.hideNonExportableSprites=function(){var t=this;if(!this._objectsAlreadyHidden){var e=this.sprite.svgContainer;e&&L(e.nonExportableSprites,function(r){!r.isHidden&&!r.isHiding&&r.visible&&t._hiddenObjects.push(r),r.hide(0)}),this._objectsAlreadyHidden=!0}},i.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(L(this._hiddenObjects,function(t){t.show(0)}),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},i.prototype.awaitValidSprites=function(){return ut(this,void 0,void 0,function(){var t;return st(this,function(e){switch(e.label){case 0:return t=[],this.validateSprites.length&&L(this.validateSprites,function(r,n){r.invalid&&t.push(new Promise(function(a,o){r.events.once("validated",function(l){a()})}))}),t.length?[4,Promise.all(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},i.prototype.processConfig=function(t){_.registeredClasses.ExportMenu=op,t&&(b(t.menu)&&!b(t.menu.type)&&(t.menu.type="ExportMenu"),b(t.dataFields)&&gt(t.dataFields)&&(this.dataFields=t.dataFields,delete t.dataFields)),s.prototype.processConfig.call(this,t)},i.XLINK="http://www.w3.org/1999/xlink",i}(go),Ot=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin"],Z=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.properties={},t._eventDispatcher=new Iu(t),t._bindings={},t._isTemplate=!1,t._isPath=!1,t._inited=!1,t._ready=!1,t.isHiding=!1,t._isHidden=!1,t.isShowing=!1,t.isStandaloneInstance=!1,t._isActive=!1,t._mask=new Et,t._positionPrecision=3,t._language=new Et,t._exporting=new Et,t._exportable=!0,t._bbox={x:0,y:0,width:0,height:0},t.invalid=!1,t.positionInvalid=!1,t.propertyFields={},t.applyOnClones=!1,t._measuredWidthSelf=0,t._measuredHeightSelf=0,t.maxLeft=0,t.maxRight=0,t.maxTop=0,t.maxBottom=0,t.maxLeftSelf=0,t.maxRightSelf=0,t.maxTopSelf=0,t.maxBottomSelf=0,t._isDragged=!1,t._isResized=!1,t._disabled=!1,t._internalDisabled=!1,t._updateDisabled=!1,t._internalDefaultsApplied=!1,t.rollOutDelay=0,t.isBaseSprite=!1,t.shouldClone=!0,t.appeared=!1,t.ex=0,t.ey=0,t.dragWhileResize=!1,t.measureFailed=!1,t.preventShow=!1,t.cloneTooltip=!0,t.className="Sprite",t._disposers.push(t._eventDispatcher),t.uid,t.group=t.paper.addGroup("g"),t.setPropertyValue("scale",1),t.setPropertyValue("rotation",0),t.setPropertyValue("align","none"),t.setPropertyValue("valign","none"),t.setPropertyValue("pixelPerfect",!1),t.setPropertyValue("visible",!0),t.setPropertyValue("tooltipPosition","fixed"),t.setPropertyValue("verticalCenter","none"),t.setPropertyValue("horizontalCenter","none"),t.setPropertyValue("tooltipX",I(50)),t.setPropertyValue("tooltipX",I(50)),t.setPropertyValue("marginTop",0),t.setPropertyValue("marginBottom",0),t.setPropertyValue("marginLeft",0),t.setPropertyValue("marginRight",0),t.setPropertyValue("dx",0),t.setPropertyValue("dy",0),t.setPropertyValue("paddingTop",0),t.setPropertyValue("paddingBottom",0),t.setPropertyValue("paddingRight",0),t.setPropertyValue("paddingLeft",0),t.setPropertyValue("togglable",!1),t.setPropertyValue("hidden",!1),t.setPropertyValue("urlTarget","_self"),t.setPropertyValue("alwaysShowTooltip",!1),t.setPropertyValue("showTooltipOn","hover"),t._prevMeasuredWidth=0,t._prevMeasuredHeight=0,t._measuredWidth=0,t._measuredHeight=0,t._isMeasured=!0,t.invalidate(),t.applyTheme(),t._disposers.push(t.events),t._disposers.push(t.group),t._disposers.push(t._mask),t._disposers.push(t._language),t._disposers.push(t._exporting),t._disposers.push(new lt(function(){U(t._bindings,function(e,r){r.dispose()})})),t.setPropertyValue("interactionsEnabled",!0),t}return Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new ne(this)),this._adapterO},enumerable:!0,configurable:!0}),i.prototype.applyTheme=function(){s.prototype.applyTheme.call(this)},i.prototype.getCurrentThemes=function(){var t=this._themes;if(t)return t;var e=this._parent;return e?e.getCurrentThemes():_.themes},i.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},i.prototype.invalidate=function(){this.disabled||this._isTemplate||this.__disabled||this.invalid||(this.invalid=!0,_.addToInvalidSprites(this),J.requestFrame())},i.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,_.removeFromInvalidSprites(this),this.afterDraw()},i.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,_.addToInvalidPositions(this),J.requestFrame())},i.prototype.validatePosition=function(){var t=this.pixelX,e=this.pixelY,r=this.dx,n=this.dy,a=t+r,o=e+n;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var l=this.measure(),h=this.group.transformString;this.group.moveTo({x:a,y:o}),this.group.rotation=this.rotation,this.nonScaling?this.group.scale=this.scale/this.globalScale:this.group.scale=this.scale,(h!=this.group.transformString||l)&&(h==null?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),(this.showTooltipOn=="hit"||this.showTooltipOn=="always")&&this.updateTooltipPosition()),t+r==a&&e+n==o&&(_.removeFromInvalidPositions(this),this.positionInvalid=!1);var u=this._maskRectangle;
170u&&this._clipElement.moveTo({x:u.x-t,y:u.y-e})},i.prototype.beforeDraw=function(){},i.prototype.draw=function(){},i.prototype.afterDraw=function(){var t,e;if((this.isMeasured||this.horizontalCenter!=="none"||this.verticalCenter!=="none")&&this.measureElement(),this._inited)this.dispatch("validated");else{if(this._adapterO)try{for(var r=Sr(this._adapterO.keys()),n=r.next();!n.done;n=r.next()){var a=n.value;switch(a){case"mask":case"fill":case"opacity":case"fillOpacity":case"stroke":case"strokeOpacity":case"strokeWidth":case"shapeRendering":case"strokeDasharray":case"strokeDashoffset":case"strokeLinecap":case"strokeLinejoin":case"textDecoration":case"fontSize":case"fontFamily":case"fontWeight":this[a]=this[a];break}}}catch(o){t={error:o}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.applyFilters(),this.visible=this.visible,this.interactionsEnabled=this.getPropertyValue("interactionsEnabled"),this._inited=!0,this.showOnInit||(this.appeared=!0),this.hidden&&this.hide(0),this.applyMask(),this.dispatch("validated"),this.dispatch("inited"),this.dispatchReady()}this.showTooltipOn=="always"&&(this.visible&&!this.disabled&&!this.__disabled?this.showTooltip():this.hideTooltip(0))},i.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},i.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},i.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},i.prototype.updateFilterScale=function(){var t=this;A(this.filters.iterator(),function(e){e.scale=t.globalScale})},i.prototype.removeFromInvalids=function(){_.removeFromInvalidSprites(this),_.removeFromInvalidPositions(this)},i.prototype.copyFrom=function(t){var e=this;s.prototype.copyFrom.call(this,t),this.isMeasured=t.isMeasured,this.states.copyFrom(t.states),t.filters.length>0&&t.filters.each(function(r){e.filters.push(r.clone())}),t._adapterO&&this.adapter.copyFrom(t._adapterO),t._interaction&&this.interactions.copyFrom(t.interactions),t._plugins&&this.plugins.copyFrom(t.plugins),this.configField=t.configField,this.applyOnClones=t.applyOnClones,this.disabled=t.disabled,this.virtualParent=t.virtualParent,this.exportable=t.exportable,t._tooltip&&(this._tooltip?this._tooltip.copyFrom(t.tooltip):t.cloneTooltip?this.tooltip=t.tooltip.clone():this._tooltip=t.tooltip),this._showSystemTooltip=t.showSystemTooltip,Me(t.propertyFields,this.propertyFields),Me(t.properties,this),t.fillModifier&&(this.fillModifier=t.fillModifier.clone()),t.strokeModifier&&(this.strokeModifier=t.strokeModifier.clone()),t.focusFilter&&(this.focusFilter=t.focusFilter.clone())},i.prototype.dispose=function(){if(!this.isDisposed()){if(this.showTooltipOn=="always"&&this.tooltip&&this.tooltip.hide(),this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(s.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var t=this._clones.length-1;t>=0;t--){var e=this._clones.getIndex(t);e.dispose()}this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var r=this.stroke;r&&!(r instanceof it)&&r.dispose&&(this.clonedFrom&&this.clonedFrom.stroke==r||r.dispose());var n=this.fill;if(n&&!(n instanceof it)&&n.dispose&&(this.clonedFrom&&this.clonedFrom.fill==n||n.dispose()),b(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var a=this._filters.getIndex(0);a.dispose(),this._filters.removeValue(a)}this._alwaysShowDisposers=void 0}},Object.defineProperty(i.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(t){t=vt(t),this._isTemplate!=t&&(this._isTemplate=t,this instanceof N&&A(this.children.iterator(),function(e){e.isTemplate=t}),t?(this.parent=this._parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showSystemTooltip",{get:function(){return b(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:this._parent?this._parent.showSystemTooltip:!1},set:function(t){t=vt(t),this._showSystemTooltip!=t&&(this._showSystemTooltip=t,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topParent",{get:function(){if(this._topParent)return this._topParent;if(this._parent)return this._parent.topParent},set:function(t){this._topParent=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"parent",{get:function(){return this._parent},set:function(t){if(!this._isTemplate){this.paper;var e=this._parent;e!=t&&(e&&e.children.removeValue(this),this._parent=t,t?(this.topParent=t.topParent,t.isTemplate&&(this.isTemplate=!0),this.baseId=t.baseId,t.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=t.tooltipContainer),this._dataItem||(this.dataItem=t.dataItem),this.handleAlwaysShowTooltip(),this.dataItem&&this.applyAccessibility(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),i.prototype.handleAlwaysShow=function(){this.showTooltip()},i.prototype.handleAlwaysShowTooltip=function(){var t=this,e=this._alwaysShowDisposers;if(e&&L(e,function(n){n.dispose()}),this._alwaysShowDisposers=[],this.showTooltipOn=="always")for(;t!=null;){var r=t.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(r),this._alwaysShowDisposers.push(r),t=t.parent}},Object.defineProperty(i.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(t){this._virtualParent=t,this.dataItem&&this.applyAccessibility()},enumerable:!0,configurable:!0}),i.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var t=this.fill;t&&t.element&&this.paper.appendDef(t.element);var e=this.stroke;if(e&&e.element&&this.paper.appendDef(e.element),this.fillModifier&&this.fill instanceof it){var r=this.fillModifier.modify(this.fill);r&&r.element&&this.paper.appendDef(r.element)}if(this.strokeModifier&&this.stroke instanceof it){var n=this.strokeModifier.modify(this.stroke);n&&n.element&&this.paper.appendDef(n.element)}this._clipPath&&this.paper.appendDef(this._clipPath),this._exportable===!1&&(this.exportable=!1)},Object.defineProperty(i.prototype,"map",{get:function(){var t=this.topParent;return t?t.map:(this._map||(this._map=new ct),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"delayedMap",{get:function(){var t=this.topParent;return t?t.delayedMap:(this._delayedMap||(this._delayedMap=new ct),this._delayedMap)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},set:function(t){if(this._id!=t){if(this._id=t,this.map.hasKey(t))throw Error("Duplicate id ("+t+") used on multiple objects.");this.map.setKey(t,this)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){if(this._paper)return this._paper;var t=this._parent;return t?t.paper:qi()},set:function(t){this.setPaper(t)},enumerable:!0,configurable:!0}),i.prototype.setPaper=function(t){var e=this._paper;return e!=t?(this._paper=t,this.appendDefs(),!0):!1},Object.defineProperty(i.prototype,"htmlContainer",{get:function(){if(this._htmlContainer)return this._htmlContainer;var t=this._parent;if(t)return t.htmlContainer},set:function(t){this._htmlContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filters",{get:function(){return this._filters||(this._filters=new rt,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new ft(this._filters))),this._filters},enumerable:!0,configurable:!0}),i.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},i.prototype.setSVGAttribute=function(t){this.group.attr(t)},i.prototype.removeSVGAttribute=function(t){this.group.removeAttr(t)},i.prototype.setClassName=function(){var t=this.className,e=oe.classNamePrefix;this.element&&this.element.addClass(e+t),this.group.addClass(e+t+"-group"),b(this.id
170)&&this.group.addClass(e+this.id),this.userClassName&&this.group.addClass(this.userClassName)},i.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},i.prototype.updateClipPath=function(){var t=this._clipElement;t&&t.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},i.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var t=_.getUniqueId();this._clipPath.attr({id:t}),this.group.attr({"clip-path":'url("'+Vi()+t+'")'})}},i.prototype.applyMask=function(){var t=this.mask;if(this._clipPath&&t)if(t instanceof N){this._clipElement.attr({width:q(0,t.pixelWidth),height:q(0,t.pixelHeight)});var e=ee({x:t.pixelX,y:t.pixelY},t.parent,this);this._clipPath.x=e.x,this._clipPath.y=e.y}else t.element&&t.element!=this._clipElement&&(this._clipElement=t.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=t.scale,this._clipPath.x=t.pixelX,this._clipPath.y=t.pixelY,this._clipPath.rotation=t.rotation},i.prototype.applyFilters=function(){var t=this;if(this._filters&&this._filters.length>0){var e=100,r=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var n="filter-"+this.uid;this.filterElement.attr({id:n}),A(this.filters.iterator(),function(l){l.sprite=t,l.paper=t.paper,t.filterElement.attr({filterUnits:l.filterUnits}),l.appendPrimitives(t.filterElement),l.width>e&&(e=l.width),l.height>r&&(r=l.height),l.scale=t.globalScale});var a=e+"%",o=r+"%";this.filterElement.attr({width:a,height:o,x:-(e-100)/2+"%",y:-(r-100)/2+"%"}),this.group.attr({filter:'url("'+Vi()+n+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},i.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},i.prototype.setElement=function(t){this.element=t,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(i.prototype,"element",{get:function(){return this._element},set:function(t){this.removeElement(),this._element=t,this.group.add(t),t.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"svgContainer",{get:function(){if(this._svgContainer)return this._svgContainer;if(this._parent)return this._parent.svgContainer},set:function(t){this._svgContainer=t},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var t=this.element.getBBox();this._bbox={x:t.x,y:t.y,width:t.width,height:t.height}}},i.prototype.updateCenter=function(){if(this.element){var t=this.element.transformString,e=this.bbox,r=0,n=0,a=e.x,o=e.y,l=e.width,h=e.height,u=this.pixelPaddingLeft,p=this.pixelPaddingRight,d=this.pixelPaddingTop,f=this.pixelPaddingBottom,c=q(l+u+p,this.pixelWidth),y=q(h+d+f,this.pixelHeight),g=e.x,m=e.x+c,x=e.y,P=e.y+y,S=this.horizontalCenter,C=this.verticalCenter;switch(S){case"none":r=a+u;break;case"left":r=u;break;case"middle":r=u-(l+p+u)/2;break;case"right":r=-p-l;break}switch(C){case"none":n=o+d;break;case"top":n=d;break;case"middle":n=d-(h+f+d)/2;break;case"bottom":n=-f-h;break}this._measuredHeight=y,this._measuredWidth=c;var O=F(r-a,this._positionPrecision,!0),T=F(n-o,this._positionPrecision,!0);this.ex=O-u,this.ey=T-d,this.maxLeft=g+O-u,this.maxRight=m+O-u,this.maxTop=x+T-d,this.maxBottom=P+T-d,this.pixelPerfect&&oe.pixelPerfectPrecision==0&&(O-=.5,T-=.5),this.element.moveTo({x:O,y:T}),t!=this.element.transformString&&this.dispatchImmediately("transformed")}},i.prototype.measure=function(){this.updateCenter();var t=this._measuredWidth,e=this._measuredHeight,r=this.maxLeft,n=this.maxRight,a=this.maxTop,o=this.maxBottom;this._measuredWidthSelf=t,this._measuredHeightSelf=e;var l=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,this.rotation!==0||this.scale!==1||this.nonScaling){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var h=this.paper.svg,u=h.createSVGMatrix(),p=this.rotation,d=this.scale;this.nonScaling&&(d=this.scale/this.globalScale),u.a=j(p)*d,u.c=-M(p)*d,u.e=0,u.b=M(p)*d,u.d=j(p)*d,u.f=0;var f=h.createSVGPoint();f.x=r,f.y=a;var c=h.createSVGPoint();c.x=n,c.y=a;var y=h.createSVGPoint();y.x=n,y.y=o;var g=h.createSVGPoint();g.x=r,g.y=o;var m=f.matrixTransform(u),x=c.matrixTransform(u),P=y.matrixTransform(u),S=g.matrixTransform(u);r=Math.min(m.x,x.x,P.x,S.x),n=Math.max(m.x,x.x,P.x,S.x),a=Math.min(m.y,x.y,P.y,S.y),o=Math.max(m.y,x.y,P.y,S.y),t=n-r,e=o-a,this.maxLeft=F(r,l,!0),this.maxRight=F(n,l,!0),this.maxTop=F(a,l,!0),this.maxBottom=F(o,l,!0)}return this._measuredWidth=F(t,l,!0),this._measuredHeight=F(e,l,!0),this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight?(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||this.showTooltipOn=="hit"||this.showTooltipOn=="always")&&this.tooltip&&this.tooltip.visible&&(b(this.tooltipText)||b(this.tooltipHTML))&&this.updateTooltipPosition(),!0):!1},i.prototype.insertBefore=function(t){var e=this._parent;if(e){var r=e.children.indexOf(t);r!==-1&&(e.children.moveValue(this,r),e.sortChildren())}return this},i.prototype.insertAfter=function(t){var e=this._parent;if(e){var r=e.children.indexOf(t);r!==-1&&(e.children.moveValue(this,r+1),e.sortChildren())}return this},i.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},i.prototype.getRelativeX=function(t){return t instanceof Q?t.value:this._parent?t/this._parent.innerWidth:0},i.prototype.getRelativeY=function(t){return t instanceof Q?t.value:this._parent?t/this._parent.innerHe
170ight:0},i.prototype.getPixelX=function(t){var e=0;if(v(t))e=t;else if(t instanceof Q){var r=t.value;this._parent&&(e=F(this._parent.innerWidth*r,this._positionPrecision,!0))}return e},i.prototype.getPixelY=function(t){var e=0;if(v(t))e=t;else if(t instanceof Q){var r=t.value;this._parent&&(e=F(this._parent.innerHeight*r,this._positionPrecision,!0))}return e},i.prototype.moveTo=function(t,e,r,n){this.isDragged&&!n||(t&&(v(t.x)&&this.setPropertyValue("x",F(t.x,this._positionPrecision,!0)),v(t.y)&&this.setPropertyValue("y",F(t.y,this._positionPrecision,!0))),v(e)&&(this.rotation=e),v(r)&&(this.scale=r),this.invalidatePosition())},Object.defineProperty(i.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(t){var e=this;this._mask.get()!==t&&(t?(this.createClipPath(),t instanceof N?this._clipElement=this.paper.add("rect"):(t.isMeasured=!1,t.element&&(this._clipElement=t.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(t,new Pt([t.events.on("maxsizechanged",function(){e.inited&&e.applyMask()},void 0,!1),t.events.on("validated",this.applyMask,this,!1),t.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(t){t?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:t.width,height:t.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(t){t=vt(t),t||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=t&&(this._isMeasured=t,this.invalidatePosition())},enumerable:!0,configurable:!0}),i.prototype.hitTest=function(t){this.invalid&&this.validate(),t.invalid&&t.validate();var e=this.pixelX+this.maxLeft,r=this.pixelY+this.maxTop,n=e+this.maxRight,a=r+this.maxBottom,o=t.pixelX+t.maxLeft,l=t.pixelY+t.maxTop,h=o+t.maxRight,u=l+t.maxBottom;return!(o>n||h<e||l>a||u<r)},Object.defineProperty(i.prototype,"inited",{get:function(){return this._inited},enumerable:!0,configurable:!0}),i.prototype.isReady=function(){return this._ready},Object.defineProperty(i.prototype,"states",{get:function(){if(!this._states){var t=new Wr;this._states=new Wi(t),this._disposers.push(this._states.events.on("insertKey",this.processState,this,!1)),this._disposers.push(this._states.events.on("setKey",this.processState,this,!1)),this._disposers.push(new ei(this._states)),this._disposers.push(t)}return this._states},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hiddenState",{get:function(){if(!this.states.getKey("hidden")){var t=this.states.create("hidden");t.properties.opacity=0,t.properties.visible=!1}return this.states.getKey("hidden")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultState",{get:function(){if(!this.states.getKey("default")){var t=this.states.create("default");t.properties.opacity=1}return this.states.getKey("default")},enumerable:!0,configurable:!0}),i.prototype.processState=function(t){var e=t.newValue;if(e.sprite=this,e.name=t.key,(this.states.hasKey("hover")||this.showTooltipOn=="hover"&&(b(this.tooltipHTML)||b(this.tooltipText)))&&(this.hoverable=!0),(this.states.hasKey("down")||this.showTooltipOn=="hover"&&(b(this.tooltipHTML)||b(this.tooltipText)))&&(this.clickable=!0),this.states.hasKey("focus")&&(this.focusable=!0),this.applyOnClones)for(var r=this.clones.values,n=r.length,a=0;a<n;++a){var o=r[a];o.isDisposed()||o.states.setKey(e.name,e)}},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new bi(this._animations))),this._animations},enumerable:!0,configurable:!0}),i.prototype.getSvgPoint=function(t){try{var e=this.htmlContainer.getBoundingClientRect();return{x:t.x-e.left,y:t.y-e.top}}catch{return t}},i.prototype.animate=function(t,e,r){return new ge(this,t,e,r).start()},i.prototype.setState=function(t,e,r){var n;if(t instanceof Wr)this.states.setKey(t.name,t),n=t;else if(n=this.states.getKey(t),!n)return;if(n.name=="hover"){if(this.isHidden)return;this.isHover=!0}return n.name=="hidden"?this.isHiding=!0:this.visible||this.setVisibility(n.properties.visible||this.defaultState.properties.visible),n.name=="active"&&(this.isActive=!0),v(e)||(e=n.transitionDuration),b(r)||(r=n.transitionEasing),this.transitTo(n,e,r)},i.prototype.applyCurrentState=function(t){var e=this.setState(this.defaultState,t);return this.isHover&&(e=this.setState("hover",t)),this.isDown&&this.interactions.downPointers.length&&(e=this.setState("down",t)),this.isFocused=this.isFocused,this.isActive&&(e=this.setState("active",t),this.isHover&&this.states.hasKey("hoverActive")&&(e=this.setState("hoverActive",t))),e},i.prototype.transitTo=function(t,e,r){var n=this,a=[],o=t.allValues,l;if(U(o,function(u,p){var d=n[u];if(p!=d&&n.defaultState.properties[u]==null&&(n.defaultState.properties[u]=d),p!="__unset"){var f={from:d,to:p,property:u};a.push(f)}}),a.length>0&&(l=this.animate(a,e,r),l&&!l.isFinished()?this._disposers.push(l.events.on("animationended",function(){n.dispatchImmediately("transitionended")})):this.dispatchImmediately("transitionended")),t.filters.length>0){var h=[];A(t.filters.iterator(),function(u){var p=u.clone();h.push(p);var d=[];A(n.filters.iterator(),function(f){f.className==p.className&&(fs(n.defaultState.filters.iterator(),function(c){return c.className===p.className})||n.defaultState.filters.push(f),U(p.properties,function(c,y){var g=f.properties[c];g!=y&&d.push({property:c,from:g,to:y})}))}),p.animate(d,e,r)}),this.filters.clear(),this.filters.pushAll(h)}return l},i.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(i.prototype,"isHover",{get:function(){return this.isInteractive()?this.interactions.isHover:!1},set:function(t){t=vt(t),t!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=t,t?this.handleOver():(this.interactions.isRealHover=!1,this.handleOut()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDown",{get:function(){return this.isInteractive()?this.interactions.isDown:!1},set:function(t){t=vt(t),this.isInteractive()&&this.isDown!=t&&(this.interactions.isDown=t,t?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocused",{get:function(){return this.isInteractive()?this.interactions.isFocused:!1},set:function(t){t=vt(t),this.focusable&&this.isFocused!=t&&this.isInteractive()&&(this.interactions.isFocused=t,t===!0?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isActive",{get:function(){return this._isActive},set:function(t){this.setActive(t)},enumerable:!0,configurable:!0}),i.prototype.setActive=function(t){t=vt(t),this._isActive!==t&&(this._isActive=t,t&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(i.prototype,"disabled",{get:function(){var t=this.getPropertyValue("disabled");return b(t)?t:this.virtualParent?this.virtualParent.disabled:this._parent?this._parent.disabled:!1},set:function(t){this.setDisabled(t)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(t){t=vt(t);var e=this.getPropertyValue("disabled");if(e!=t){if(this.setPropertyValue("disabled",t,!0),t)this.parent=this._parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this._parent){var r=this._parent.element;r.hasChild(this.group)||r.add(this.group)}this instanceof N?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),J.requestFrame(),!0}return!1},Object.defineProperty(i.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(t){this._internalDisabled!=t&&(this._internalDisabled=t,this._updateDisabled=!0,this.invalidatePosition(),t||this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.
170numberFormatter:this._parent?this._parent.numberFormatter:(this._numberFormatter=new Ps,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(t){this._numberFormatter=t,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this._parent?this._parent.dateFormatter:(this._dateFormatter=new Zi,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(t){this._dateFormatter=t,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this._parent?this._parent.durationFormatter:(this._durationFormatter=new Cs,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(t){this._durationFormatter=t,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){var t=this._language.get();return t||(this.virtualParent?this.virtualParent.language:this._parent?this._parent.language:(t=new ze,this.language=t,t))},set:function(t){var e=this;this._language.get()!==t&&this._language.set(t,t.events.on("localechanged",function(r){if(e._numberFormatter&&(e._numberFormatter.language=e.language),e._dateFormatter&&(e._dateFormatter.language=e.language),e._durationFormatter&&(e._durationFormatter.language=e.language),e._exporting.get()){var n=e._exporting.get();n.numberFormatter.language=e.language,n.dateFormatter.language=e.language,n.durationFormatter.language=e.language,n.language=e.language}e instanceof N&&e.deepInvalidate()}))},enumerable:!0,configurable:!0}),i.prototype.populateString=function(t,e){if(b(t)){t=ls(t),t=Ie().escape(t);var r=t.match(/\{([^}]+)\}/g),n=void 0;if(r)for(n=0;n<r.length;n++){var a=r[n].replace(/\{([^}]+)\}/,"$1"),o=this.getTagValue(a,"",e);b(o)||(o=""),t=t.split(r[n]).join(o)}t=Ie().unescape(t)}else t="";return this._adapterO?this._adapterO.apply("populateString",t):t},i.prototype.getTagValue=function(t,e,r){var n;b(r)||(r=this.dataItem);for(var a=[],o=/([^.]+)\(([^)]*)\)|([^.]+)/g,l;l=o.exec(t),l!==null;)if(l[3])a.push({prop:l[3]});else{var h=[];if(Za(l[2])!="")for(var u=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,p=void 0;p=u.exec(l[2]),p!==null;)h.push(p[1]||p[2]||p[3]);a.push({method:l[1],params:h})}if(r){n=this.getTagValueFromObject(a,r.values),(!b(n)||gt(n))&&(n=this.getTagValueFromObject(a,r));var d=r.dataContext;!b(n)&&d&&(n=this.getTagValueFromObject(a,r.dataContext),b(n)||(n=this.getTagValueFromObject([{prop:t}],d)),!b(n)&&d.dataContext&&(n=this.getTagValueFromObject(a,d.dataContext))),!b(n)&&r.component&&r.component.dataItem!==r&&(n=r.component.getTagValue(t,e))}return b(n)||(n=this.getTagValueFromObject(a,this.populateStringFrom||this)),!b(n)&&this._parent&&(n=this._parent.getTagValue(t,e)),n},i.prototype.getTagValueFromObject=function(t,e,r){for(var n=e,a=!1,o=0,l=t.length;o<l;o++){var h=t[o];if(h.prop){if(n=n[h.prop],!b(n))return}else switch(h.method){case"formatNumber":var u=Un(n);b(u)&&(n=this.numberFormatter.format(u,r||h.params[0]||void 0),a=!0);break;case"formatDate":var p=void 0;if(tt(n)?p=this.dateFormatter.parse(n):p=Ja(n),!Li(p)||Gt(p.getTime()))return;b(p)&&(n=this.dateFormatter.format(p,r||h.params[0]||void 0),a=!0);break;case"formatDuration":var d=Un(n);b(d)&&(n=this.durationFormatter.format(d,r||h.params[0]||void 0,h.params[1]||void 0),a=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[h.method]&&n[h.method].apply(this,h.params);break}}if(!a){var f=[{method:"",params:r}];if(!b(r))v(n)?(f[0].method="formatNumber",f[0].params=""):Li(n)&&(f[0].method="formatDate",f[0].params="");else{var c=Zh(r);c===mr?f[0].method="formatNumber":c===br?f[0].method="formatDate":c===Hn&&(f[0].method="formatDuration")}f[0].method&&(n=this.getTagValueFromObject(f,n))}return n},Object.defineProperty(i.prototype,"dataItem",{get:function(){if(!this._dataItem){if(this.virtualParent)return this.virtualParent.dataItem;if(this._parent)return this._parent.dataItem}return this._dataItem},set:function(t){this.setDataItem(t)},enumerable:!0,configurable:!0}),i.prototype.setDataItem=function(t){var e=this;if(this._dataItem!=t){if(this._dataItem=t,t){if(this.configField){var r=t.dataContext;r&&(this.config=r[this.configField],!this.config&&r.dataContext&&(this.config=r.dataContext[this.configField]))}var n=t.dataContext;if(n){var a=n.dataContext;U(this.propertyFields,function(o,l){if(b(n[l])){var h=e;h[o]=n[l]}else if(a){var u=a[l];if(b(u)){var h=e;h[o]=u}}})}}this.invalidate()}},i.prototype.getPropertyValue=function(t){var e=this.properties[t];return this._isTemplate||(this._adapterO&&(e=this._adapterO.apply(t,e)),e=Wn.applyAll(this,t,e)),e},i.prototype.setColorProperty=function(t,e,r){var n=this.properties[t];return e instanceof it&&n instanceof it&&e.toString()==n.toString()?!1:this.setPropertyValue(t,e,r)},i.prototype.setPercentProperty=function(t,e,r,n,a,o){if(e=sh(e),v(e))return v(a)&&(e=F(e,a,o)),this.setPropertyValue(t,e,r,n);var l=this.properties[t];return e instanceof Q&&l instanceof Q&&e.value==l.value?!1:this.setPropertyValue(t,e,r,n)},i.prototype.setPropertyValue=function(t,e,r,n){if(this.properties[t]!==e&&!this.isDisposed()){if(this.properties[t]=e,this.events.isEnabled("propertychanged")){var a={type:"propertychanged",target:this,property:t};this.events.dispatchImmediately("propertychanged",a)}if(r&&this.invalidate(),n&&this.invalidatePosition(),this.applyOnClones)for(var o=this.clones.values,l=o.length,h=0;h<l;++h){var u=o[h];u.isDisposed()||(u[t]=e)}return!0}return!1},i.prototype.bind=function(t,e,r,n){var a=this;r===void 0&&(r=t),b(this._bindings[t])&&this._bindings[t].dispose(),this[t]=e[r],this._bindings[t]=e.events.on("propertychanged",function(o){if
170(o.property===r){var l=e[r];n&&(l=n(l)),a[t]=l}})},i.prototype.observe=function(t,e,r,n){var a=this;return new Pt(Ki(Ea(t),function(o){return a.events.on("propertychanged",function(l){l.property===o&&e.call(r,l)},r,n)}))},i.prototype.applyAccessibility=function(){var t=this.readerTitle,e=this.readerDescription,r=this.role,n=this.readerHidden,a=this.readerChecked,o=this.readerControls,l=this.readerLive,h=this.readerOrientation,u=this.readerValueNow,p=this.readerValueText,d=[],f=[],c=this.readerLabelledBy;c&&d.push(c);var y=this.readerDescribedBy;if(y&&f.push(y),t)if(d.length||this.showSystemTooltip){var g=this.titleElement,m=this.uid+"-title";g.node.textContent!=t&&(g.node.textContent=t,g.attr({id:m})),d.push(m)}else this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0),this.setSVGAttribute({"aria-label":t});else this.removeSVGAttribute("aria-label"),this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0);if(e){var x=this.descriptionElement,P=this.uid+"-description";x.node.textContent!=e&&(x.node.textContent=e,x.attr({id:P})),f.push(P)}else this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0);d.length?this.setSVGAttribute({"aria-labelledby":d.join(" ")}):this.removeSVGAttribute("aria-labelledby"),f.length?this.setSVGAttribute({"aria-describedby":f.join(" ")}):this.removeSVGAttribute("aria-describedby"),r?this.setSVGAttribute({role:r}):this.removeSVGAttribute("role"),n?this.setSVGAttribute({"aria-hidden":"true"}):this.removeSVGAttribute("aria-hidden"),a?this.setSVGAttribute({"aria-checked":"true"}):a===!1?this.setSVGAttribute({"aria-checked":"false"}):this.removeSVGAttribute("aria-checked"),o?this.setSVGAttribute({"aria-controls":o}):this.removeSVGAttribute("aria-controls"),l?this.setSVGAttribute({"aria-live":l}):this.removeSVGAttribute("aria-live"),h?this.setSVGAttribute({"aria-orientation":h}):this.removeSVGAttribute("aria-orientation"),u?this.setSVGAttribute({"aria-valuenow":u}):this.removeSVGAttribute("aria-valuenow"),p?this.setSVGAttribute({"aria-valuetext":p}):this.removeSVGAttribute("aria-valuetext")},Object.defineProperty(i.prototype,"readerTitle",{get:function(){var t=this.getPropertyValue("readerTitle");return b(t)&&this.dataItem?this.populateString(t):t},set:function(t){t=Xt(t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerDescription",{get:function(){var t=this.getPropertyValue("readerDescription");return b(t)&&this.dataItem?this.populateString(t):this.getPropertyValue("readerDescription")},set:function(t){t=Xt(t),this.setPropertyValue("readerDescription",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"role",{get:function(){return this.getPropertyValue("role")},set:function(t){t=Xt(t),this.setPropertyValue("role",t)&&(this.applyAccessibility(),t=="slider"&&(this.setSVGAttribute({"aria-valuemin":"0"}),this.setSVGAttribute({"aria-valuemax":"100"})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerHidden",{get:function(){return this.getPropertyValue("readerHidden")},set:function(t){t=vt(t),this.setPropertyValue("readerHidden",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerChecked",{get:function(){return this.getPropertyValue("readerChecked")},set:function(t){t=vt(t),this.setPropertyValue("readerChecked",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerControls",{get:function(){return this.getPropertyValue("readerControls")},set:function(t){t=Xt(t),this.setPropertyValue("readerControls",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerLive",{get:function(){return this.getPropertyValue("readerLive")},set:function(t){t=Xt(t),this.setPropertyValue("readerLive",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerLabelledBy",{get:function(){return this.getPropertyValue("readerLabelledBy")},set:function(t){t=Xt(t),this.setPropertyValue("readerLabelledBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerDescribedBy",{get:function(){return this.getPropertyValue("readerDescribedBy")},set:function(t){t=Xt(t),this.setPropertyValue("readerDescribedBy",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerOrientation",{get:function(){return this.getPropertyValue("readerOrientation")},set:function(t){t=Xt(t),this.setPropertyValue("readerOrientation",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerValueNow",{get:function(){return this.getPropertyValue("readerValueNow")},set:function(t){t=Xt(t),this.setPropertyValue("readerValueNow",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerValueText",{get:function(){return this.getPropertyValue("readerValueText")}
170,set:function(t){t=Xt(t),this.setPropertyValue("readerValueText",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keyboardOptions",{get:function(){if(!this.interactions.keyboardOptions){if(this.virtualParent)return this.virtualParent.keyboardOptions;if(this._parent)return this._parent.keyboardOptions}return this.interactions.keyboardOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mouseOptions",{get:function(){if(!this.interactions.mouseOptions){if(this.virtualParent)return this.virtualParent.mouseOptions;if(this._parent)return this._parent.mouseOptions}return this.interactions.mouseOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"interactions",{get:function(){if(!this._interaction){var t=K().getInteraction(this.dom);this._interaction=t,t.clickable=this.clickable,t.hoverable=this.hoverable,t.trackable=this.trackable,t.draggable=this.draggable,t.swipeable=this.swipeable,t.resizable=this.resizable,t.wheelable=this.wheelable,t.contextMenuDisabled=this.contextMenuDisabled,t.inert=this.inert,t.sprite=this,this._disposers.push(t)}return this._interaction},enumerable:!0,configurable:!0}),i.prototype.isInteractive=function(){return!!this._interaction},Object.defineProperty(i.prototype,"focusable",{get:function(){return this.getPropertyValue("focusable")},set:function(t){var e=this;t=vt(t),this.setPropertyValue("focusable",t)&&(!t&&!this.isInteractive()||(this.interactions.focusable=t,t?(this.setSVGAttribute({focusable:t}),b(this._tabindex)||(this.tabindex=0)):(this.removeSVGAttribute("focusable"),this.tabindex=void 0),this.interactions.setEventDisposer("sprite-focusable",t,function(){return new Pt([e.events.on("blur",e.handleBlur,e,!1),e.events.on("focus",e.handleFocus,e,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleFocus=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!0,this.topParent.focusedElement=this),this.focusFilter&&this.filters.push(this.focusFilter),this.hoverOnFocus&&(this.isHover=!0,this.handleOver()))},i.prototype.handleBlur=function(t){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!1,this.topParent.focusedElement=void 0),this.focusFilter&&this.filters.removeValue(this.focusFilter),this.hoverOnFocus&&(this.isHover=!1,this.handleOut()))},Object.defineProperty(i.prototype,"focusFilter",{get:function(){var t=this._focusFilter;if(t)return t;if(this.virtualParent)return this.virtualParent.focusFilter;if(this._parent)return this._parent.focusFilter},set:function(t){this._focusFilter=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOnFocus",{get:function(){return this.getPropertyValue("hoverOnFocus")},set:function(t){t!==this.hoverOnFocus&&this.setPropertyValue("hoverOnFocus",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabindex",{get:function(){var t=this._tabindex;if(t!=null)return t;if(this.virtualParent)return this.virtualParent.tabindex;if(this._parent)return this._parent.tabindex},set:function(t){t=dt(t),this.setPropertyValue("tabindex",t)&&v(t)&&(this.interactions.tabindex=t,this.setSVGAttribute({tabindex:t}),this._tabindex=t,this.focusable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inertiaOptions",{get:function(){return!this.interactions.inertiaOptions&&this._parent?this._parent.inertiaOptions:this.interactions.inertiaOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"draggable",{get:function(){return this.getPropertyValue("draggable")},set:function(t){var e=this;t=vt(t),this.setPropertyValue("draggable",t)&&(!t&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.draggable=t,this.interactions.setEventDisposer("sprite-draggable",t,function(){return new Pt([e.events.on("down",e.handleDown,e,!1),e.events.on("dragstart",e.handleDragStart,e,!1),e.events.on("drag",e.handleDragMove,e,!1),e.events.on("dragstop",e.handleDragStop,e,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleDragStart=function(t){(!this.interactions.isTouchProtected||!t.touch)&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this._isDragged=!0,this.hideTooltip(0))},i.prototype.dragStart=function(t){this._isDragged=!0,K().dragStart(this.interactions,t)},i.prototype.handleDragStop=function(t){(!this.interactions.isTouchProtected||!t.touch)&&(this._isDragged=!1,this.showTooltip(),this.interactions.originalPosition=void 0)},i.prototype.dragStop=function(t,e){this._isDragged=!1,K().dragStop(this.interactions,t,e)},i.prototype.handleDragMove=function(t){if(!this.interactions.isTouchProtected||!t.touch){var e=this.interactions.originalPosition;if(e&&this._isDragged){var r=this._parent.globalScale*this.svgContainer.cssScale;this.moveTo({x:e.x+t.shift.x/r,y:e.y+t.shift.y/r},void 0,void 0,!0)}this.dispatchImmediately("dragged",t)}}
170,Object.defineProperty(i.prototype,"inert",{get:function(){return this.getPropertyValue("inert")},set:function(t){t=vt(t),this.setPropertyValue("inert",t)&&(!t&&!this.isInteractive()||(this.interactions.inert=t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOptions",{get:function(){if(!this.interactions.hoverOptions){if(this.virtualParent)return this.virtualParent.hoverOptions;if(this._parent)return this._parent.hoverOptions}return this.interactions.hoverOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverable",{get:function(){return this.getPropertyValue("hoverable")},set:function(t){var e=this;t=vt(t),this.setPropertyValue("hoverable",t)&&(!t&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.hoverable=t,this.interactions.setEventDisposer("sprite-hoverable",t,function(){return new Pt([e.events.on("over",e.handleOver,e,!1),e.events.on("out",e.handleOut,e,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleOver=function(t){if(this._outTimeout&&this._outTimeout.dispose(),this.isHover){this.states.hasKey("hover")&&(this.isHidden||this.applyCurrentState());var e=void 0;t&&t.pointer&&(e=Re(t.pointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale)),this.showTooltipOn=="hover"&&this.showTooltip(e)}else this.showTooltipOn=="hover"&&this.hideTooltip(),!this.isHidden&&this.states.hasKey("hover")&&this.applyCurrentState()},i.prototype.handleOut=function(t){var e=this;if(this.tooltip&&this.tooltip.targetSprite==this&&this.tooltip.keepTargetHover){this._outTimeout=this.setTimeout(function(){e.tooltip.isHover||(e.tooltip.targetSprite==e&&e.hideTooltip(),e._outTimeout=e.setTimeout(e.handleOutReal.bind(e),e.rollOutDelay))},10);return}this.showTooltipOn=="hover"&&this.hideTooltip(),this._outTimeout=this.setTimeout(this.handleOutReal.bind(this),this.rollOutDelay)},i.prototype.handleOutReal=function(){!this.isHidden&&!this.isHiding&&this.states.hasKey("hover")&&this.applyCurrentState()},Object.defineProperty(i.prototype,"hitOptions",{get:function(){if(!this.interactions.hitOptions){if(this.virtualParent)return this.virtualParent.hitOptions;if(this._parent)return this._parent.hitOptions}return this.interactions.hitOptions},enumerable:!0,configurable:!0}),i.prototype.handleDown=function(t){this.interactions.downPointers.length===1&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this.interactions.originalAngle=this.rotation,this.interactions.originalScale=this.scale,this.states.hasKey("down")&&this.setState("down"))},i.prototype.handleUp=function(t){var e=this;this._isResized=!1,this.states.hasKey("down")&&this.applyCurrentState(),this.showTooltipOn=="hit"&&(this.updateTooltipPosition(t.pointer?t.pointer.point:void 0),this._disposers.push(_.events.once("exitframe",function(){e.showTooltip()})),this._disposers.push(K().body.events.once("down",function(r){e.hideTooltip()})))},Object.defineProperty(i.prototype,"clickable",{get:function(){return this.getPropertyValue("clickable")},set:function(t){var e=this;t=vt(t),this.setPropertyValue("clickable",t)&&(!t&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.clickable=t,this.interactions.setEventDisposer("sprite-clickable",t,function(){return new Pt([e.events.on("down",e.handleDown,e,!1),e.events.on("up",e.handleUp,e,!1)])})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"togglable",{get:function(){return this.getPropertyValue("togglable")},set:function(t){var e=this;t=vt(t),this.setPropertyValue("togglable",t)&&(!t&&!this.isInteractive()||this.interactions.setEventDisposer("sprite-togglable",t,function(){return e.events.on("hit",e.handleToggle,e,!1)}))},enumerable:!0,configurable:!0}),i.prototype.handleToggle=function(t){this.isActive=!this.isActive},Object.defineProperty(i.prototype,"contextMenuDisabled",{get:function(){return this.getPropertyValue("contextMenuDisabled")},set:function(t){t=vt(t),this.setPropertyValue("contextMenuDisabled",t)&&(this.interactions.contextMenuDisabled=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"url",{get:function(){return this.getPropertyValue("url")}
170,set:function(t){this.setPropertyValue("url",t)&&(this._urlDisposer&&this._urlDisposer.dispose(),Mr(t)&&(this._urlDisposer=this.events.on("hit",this.urlHandler,this,!1),this.clickable=!0,this.cursorOverStyle=Ht.pointer))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseId",{get:function(){return!this._baseId&&this._parent&&(this.baseId=this._parent.baseId),this._baseId},set:function(t){this.setBaseId(t)},enumerable:!0,configurable:!0}),i.prototype.setBaseId=function(t){t!=this._baseId&&(this.invalid&&(this.invalid=!1,_.removeFromInvalidSprites(this),this.invalidate()),this._baseId=t)},Object.defineProperty(i.prototype,"baseSprite",{get:function(){if(this.isBaseSprite)return this;if(this._parent)return this._parent.baseSprite},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"urlTarget",{get:function(){return this.getPropertyValue("urlTarget")},set:function(t){this.setPropertyValue("urlTarget",t)},enumerable:!0,configurable:!0}),i.prototype.urlHandler=function(t){if(Mr(this.url)){var e=this.populateString(this.url);this.urlTarget==="_self"?window.location.href=e:window.open(e,this.urlTarget)}},Object.defineProperty(i.prototype,"swipeOptions",{get:function(){if(!this.interactions.swipeOptions){if(this.virtualParent)return this.virtualParent.swipeOptions;if(this._parent)return this._parent.swipeOptions}return this.interactions.swipeOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeable",{get:function(){return this.getPropertyValue("swipeable")},set:function(t){t=vt(t),this.setPropertyValue("swipeable",t)&&(this.applyCursorStyle(),!t&&!this.isInteractive()||(this.interactions.swipeable=t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"trackable",{get:function(){return this.getPropertyValue("trackable")},set:function(t){t=vt(t),this.setPropertyValue("trackable",t)&&(!t&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.trackable=t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wheelable",{get:function(){return this.getPropertyValue("wheelable")},set:function(t){this.setPropertyValue("wheelable",t)&&(!t&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.wheelable=t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"resizable",{get:function(){return this.getPropertyValue("resizable")},set:function(t){var e=this;t=vt(t),this.setPropertyValue("resizable",t)&&(!t&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.resizable=t,this.interactions.setEventDisposer("sprite-resizable",t,function(){return new Pt([e.events.on("down",e.handleDown,e,!1),e.events.on("resize",e.handleResize,e,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleResize=function(t){if((!this.interactions.isTouchProtected||!t.touch)&&(this._isResized=!0,this.scale=this.interactions.originalScale*t.scale,this.validatePosition(),this.draggable||this.dragWhileResize)){this._isDragged=!1;var e=Re(t.point1,this.htmlContainer,this.svgContainer.cssScale),r=Re(t.point2,this.htmlContainer,this.svgContainer.cssScale),n=kr(e,r),a=gi(t.startPoint1,this._parent),o=gi(t.startPoint2,this._parent),l=this.interactions.originalPosition,h=this.interactions.originalScale;if(l){var u={x:(a.x-l.x)/h,y:(a.y-l.y)/h},p={x:(o.x-l.x)/h,y:(o.y-l.y)/h},d=kr(u,p),f=be(n,this._parent);this.moveTo({x:f.x-d.x*this.scale,y:f.y-d.y*this.scale},void 0,void 0,!0)}}},Object.defineProperty(i.prototype,"cursorOptions",{get:function(){if(!this.interactions.cursorOptions){if(this.virtualParent)return this.virtualParent.cursorOptions;if(this._parent)return this._parent.cursorOptions}return this.interactions.cursorOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorOverStyle",{set:function(t){this.cursorOptions.overStyle||(this.interactions.cursorOptions={defaultStyle:this.cursorOptions.defaultStyle}),this.cursorOptions.overStyle=t,K().applyCursorOverStyle(this.interactions)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorDownStyle",{set:function(t){this.cursorOptions.downStyle=t},enumerable:!0,configurable:!0}),i.prototype.applyCursorStyle=function(){},Object.defineProperty(i.prototype,"interactionsEnabled",{get:function(){var t=this.getPropertyValue("interactionsEnabled");return t===!1?!1:this.virtualParent?this.virtualParent.interactionsEnabled:this._parent?this._parent.interactionsEnabled:!0},set:function(t){if(t=vt(t),this.setPropertyValue("interactionsEnabled",t)){var e=null;t?this.group.node.style.pointerEvents="":e="none",this.group.node.style.pointerEvents=e}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"exporting",{get:function(){return this.getExporting()},set:function(t){this._exporting.set(t,t)},enumerable:!0,configurable:!0}),i.prototype.getExporting=function(){var t=this._exporting.get();if(t)return t;if(this.isStandaloneInstance||!this._parent)t=new cp(this.svgContainer.SVGContainer),t.sprite=this,t.language=this.language,t.numberFormatter=this.numberFormatter,t.dateFormatter=this.dateFormatter,t.durationFormatter=this.durationFormatter,this._exporting.set(t,t);else return this._parent.exporting;return t},Object.defineProperty(i.prototype,"exportable",{get:function(){return this._exportable},set:function(t){var e=this.svgContainer;this._exportable=t,e&&(t?G(e.nonExportableSprites,this):me(e.nonExportableSprites,this)==-1&&e.nonExportableSprites.push(this))},enumerable:!0,configurable:!0}),i.prototype.modalPrefix=function(t){return t=oe.classNamePrefix+t,t},Object.defineProperty(i.prototype,"modal",{get:function(){var t=this.svgContainer;if(t){var e=t.modal;return e.adapter.has("classPrefix",this.modalPrefix)||e.adapter.add("classPrefix",this.modalPrefix),e}},enumerable:!0,configurable:!0}),i.prototype.openModal=function(t,e){var r=this.svgContainer;if(r)return r.openModal(t,e)},i.prototype.closeModal=function(){var t=this.svgContainer;t&&t.closeModal()}
170,Object.defineProperty(i.prototype,"popups",{get:function(){var t=this.svgContainer;if(t){var e=t.popups;return e.template.sprite=this,e.template.adapter.has("classPrefix",this.modalPrefix)||e.template.adapter.add("classPrefix",this.modalPrefix),e}},enumerable:!0,configurable:!0}),i.prototype.openPopup=function(t,e){var r=this.svgContainer;if(r)return r.openPopup(t,e)},i.prototype.closeAllPopups=function(){var t=this.svgContainer;t&&t.closeAllPopups()},Object.defineProperty(i.prototype,"x",{get:function(){return this.getPropertyValue("x")},set:function(t){this.isDragged||this.setPercentProperty("x",t,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelX",{get:function(){var t=B(this.getPixelX(this.x),this.minX,this.maxX);return this._adapterO?this._adapterO.apply("pixelX",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeX",{get:function(){return this._adapterO?this._adapterO.apply("relativeX",this.getRelativeX(this.x)):this.getRelativeX(this.x)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minX",{get:function(){return this.getPropertyValue("minX")},set:function(t){v(t)&&(t=F(t,this._positionPrecision,!0),this.setPropertyValue("minX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxX",{get:function(){return this.getPropertyValue("maxX")},set:function(t){v(t)&&(t=F(t,this._positionPrecision,!0),this.setPropertyValue("maxX",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.getPropertyValue("y")},set:function(t){this.isDragged||this.setPercentProperty("y",t,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelY",{get:function(){var t=B(this.getPixelY(this.y),this.minY,this.maxY);return this._adapterO?this._adapterO.apply("pixelY",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeY",{get:function(){return this._adapterO?this._adapterO.apply("relativeY",this.getRelativeX(this.y)):this.getRelativeX(this.y)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minY",{get:function(){return this.getPropertyValue("minY")},set:function(t){v(t)&&(t=F(t,this._positionPrecision,!0),this.setPropertyValue("minY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxY",{get:function(){return this.getPropertyValue("maxY")},set:function(t){v(t)&&(t=F(t,this._positionPrecision,!0),this.setPropertyValue("maxY",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx",{get:function(){return this.getPropertyValue("dx")},set:function(t){v(t)&&(t=F(t,this._positionPrecision,!0),this.setPropertyValue("dx",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy",{get:function(){return this.getPropertyValue("dy")},set:function(t){v(t)&&(t=F(t,this._positionPrecision,!0),this.setPropertyValue("dy",t,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this.getPropertyValue("rotation")},set:function(t){t=dt(t),v(t)||(t=0),this.setPropertyValue("rotation",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"align",{get:function(){return this.getPropertyValue("align")},set:function(t){t=Xt(t),this.setPropertyValue("align",t)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valign",{get:function(){return this.getPropertyValue("valign")},set:function(t){t=Xt(t),this.setPropertyValue("valign",t)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalCenter",{get:function(){return this.getPropertyValue("horizontalCenter")},set:function(t){t=Xt(t),this.setPropertyValue("horizontalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalCenter",{get:function(){return this.getPropertyValue("verticalCenter")},set:function(t){t=Xt(t),this.setPropertyValue("verticalCenter",t)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxWidth",{get:function(){var t=this.getPropertyValue("maxWidth");if(!v(t)&&this._parent){var e=this._parent.maxWidth;return this._parent.layout!="absolute"&&this.align!="none"&&this.align!=null&&(e=e-this.pixelMarginLeft-this.pixelMarginRight),e}return t},set:function(t){this.setMaxWidth(t)},enumerable:!0,configurable:!0}),i.prototype.setMaxWidth=function(t){var e=this.maxWidth,r=this.maxHeight;if(this.setPropertyValue("maxWidth",t)){v(this.relativeWidth)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:r};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(i.prototype,"maxHeight",{get:function(){var t=this.getPropertyValue("maxHeight");if(!v(t)&&this._parent){var e=this._parent.maxHeight;return this._parent.layout!="absolute"&&this.valign!="none"&&this.valign!=null&&(e=e-this.pixelMarginTop-this.pixelMarginBottom),e}return t},set:function(t){this.setMaxHeight(t)},enumerable:!0,configurable:!0}),i.prototype.setMaxHeight=function(t){var e=this.maxWidth,r=this.maxHeight;if(this.setPropertyValue("maxHeight",t)){v(this.relativeHeight)&&this.invalidate();var n={type:"maxsizechanged",target:this,previousWidth:e,previousHeight:r};this.dispatchImmediately("maxsizechanged",n)}},Object.defineProperty(i.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")}
170,set:function(t){this.setPropertyValue("minHeight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(t){var e=this.setPercentProperty("width",t,!0,!1,this._positionPrecision,!0);e&&(this.percentWidth=void 0,this.relativeWidth=void 0,t instanceof Q?(this.percentWidth=t.percent,v(this._pixelWidth)&&(this.maxWidth=void 0),this._pixelWidth=void 0):(this._pixelWidth=Number(t),this.maxWidth=this._pixelWidth),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(t){var e=this.setPercentProperty("height",t,!0,!1,this._positionPrecision,!0);e&&(this.percentHeight=void 0,this._relativeHeight=void 0,t instanceof Q?(this.percentHeight=t.percent,v(this._pixelHeight)&&(this.maxHeight=void 0),this._pixelHeight=void 0):(this._pixelHeight=Number(t),this.maxHeight=this._pixelHeight),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelWidth",{get:function(){var t;v(this.percentWidth)?t=this.maxWidth:v(this._pixelWidth)?t=this._pixelWidth:t=0;var e=this.minWidth;e!=null&&t<e&&(t=e);var r=F(t,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelWidth",r):r},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelHeight",{get:function(){var t;v(this.percentHeight)?t=this.maxHeight:v(this._pixelHeight)?t=this._pixelHeight:t=0;var e=this.minHeight;e!=null&&t<e&&(t=e);var r=F(t,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelHeight",r):r},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeWidth",{get:function(){var t=this._relativeWidth;if(v(t))return this._adapterO?this._adapterO.apply("relativeWidth",t):t},set:function(t){this._relativeWidth!=t&&(this._relativeWidth=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeHeight",{get:function(){var t=this._relativeHeight;if(v(t))return this._adapterO?this._adapterO.apply("relativeHeight",t):t},set:function(t){this._relativeHeight!=t&&(this._relativeHeight=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"measuredWidth",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredWidth",this._measuredWidth):this._measuredWidth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"measuredHeight",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredHeight",this._measuredHeight):this._measuredHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outerWidth",{get:function(){var t=this.pixelWidth+this.pixelMarginRight+this.pixelMarginLeft;return this._adapterO?this._adapterO.apply("outerWidth",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outerHeight",{get:function(){var t=this.pixelHeight+this.pixelMarginTop+this.pixelMarginBottom;return this._adapterO?this._adapterO.apply("outerHeight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerWidth",{get:function(){var t=Math.max(0,this.pixelWidth-this.pixelPaddingRight-this.pixelPaddingLeft);return this._adapterO?this._adapterO.apply("innerWidth",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerHeight",{get:function(){var t=Math.max(0,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom);return this._adapterO?this._adapterO.apply("innerHeight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"globalScale",{get:function(){var t=this.scale;return this._parent&&(t=t*this._parent.globalScale),this._adapterO?this._adapterO.apply("globalScale",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scale",{get:function(){return this.getPropertyValue("scale")},set:function(t){t=dt(t),t<0&&(t=0),t!=this.getPropertyValue("scale")&&(this.setPropertyValue("scale",t,!1,!0),this.handleGlobalScale())},enumerable:!0,configurable:!0}),i.prototype.margin=function(t,e,r,n){return this.marginTop=t,this.marginRight=e,this.marginBottom=r,this.marginLeft=n,this},Object.defineProperty(i.prototype,"marginLeft",{get:function(){return this.getPropertyValue("marginLeft")},set:function(t){this.setPercentProperty("marginLeft",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marginRight",{get:function(){return this.getPropertyValue("marginRight")}
170,set:function(t){this.setPercentProperty("marginRight",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marginTop",{get:function(){return this.getPropertyValue("marginTop")},set:function(t){this.setPercentProperty("marginTop",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marginBottom",{get:function(){return this.getPropertyValue("marginBottom")},set:function(t){this.setPercentProperty("marginBottom",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginRight",{get:function(){var t=this.getPixelX(this.marginRight);return this._adapterO?this._adapterO.apply("pixelMarginRight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginRight",{get:function(){var t=this.getRelativeX(this.marginRight);return this._adapterO?this._adapterO.apply("relativeMarginRight",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginLeft",{get:function(){var t=this.getPixelX(this.marginLeft);return this._adapterO?this._adapterO.apply("pixelMarginLeft",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginLeft",{get:function(){var t=this.getRelativeX(this.marginLeft);return this._adapterO?this._adapterO.apply("relativeMarginLeft",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginTop",{get:function(){var t=this.getPixelY(this.marginTop);return this._adapterO?this._adapterO.apply("pixelMarginTop",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginTop",{get:function(){var t=this.getRelativeY(this.marginTop);return this._adapterO?this._adapterO.apply("relativeMarginTop",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginBottom",{get:function(){var t=this.getPixelY(this.marginBottom);return this._adapterO?this._adapterO.apply("pixelMarginBottom",t):t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginBottom",{get:function(){var t=this.getRelativeY(this.marginBottom);return this._adapterO?this._adapterO.apply("relativeMarginBottom",t):t},enumerable:!0,configurable:!0}),i.prototype.padding=function(t,e,r,n){return this.paddingTop=t,this.paddingRight=e,this.paddingBottom=r,this.paddingLeft=n,this},Object.defineProperty(i.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft")},set:function(t){this.setPercentProperty("paddingLeft",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight")},set:function(t){this.setPercentProperty("paddingRight",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paddingTop",{get:function(){return this.getPropertyValue("paddingTop")},set:function(t){this.setPercentProperty("paddingTop",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paddingBottom",{get:function(){return this.getPropertyValue("paddingBottom")},set:function(t){this.setPercentProperty("paddingBottom",t,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingRight",{get:function(){return this.getPixelX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingRight",{get:function(){return this.getRelativeX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingLeft",{get:function(){return this.getPixelX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingLeft",{get:function(){return this.getRelativeX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingTop",{get:function(){return this.getPixelY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingTop",{get:function(){return this.getRelativeY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingBottom",{get:function(){return this.getPixelY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingBottom",{get:function(){return this.getRelativeY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(t){this.setPath(t)},enumerable:!0,configurable:!0}),i.prototype.setPath=function(t){return this.setPropertyValue("path",t)?(this._adapterO&&(t=this._adapterO.apply("path",t)),this._isPath||((!this.element||this.element.node&&!(this.element.node instanceof SVGPathElement))&&(this.element=this.paper.add("path")),this._isPath=!0),b(t)?this.element.attr({d:t}):this.element.removeAttr("d"),this.invalidatePosition(),this.inited||this.events.once("inited",this.validatePosition,this,!1),!0):!1},Object.defineProperty(i.prototype,"fillModifier",{get:function(){return this.getPropertyValue("fillModifier")},set:function(t){this.setPropertyValue("fillModifier",t)&&this.setFill(this.fill)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeModifier",{get:function(){return this.getPropertyValue("strokeModifier")},set:function(t){this.setPropertyValue("strokeModifier",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillOpacity",{get:function(){return this.getPropertyValue("fillOpacity")},set:function(t){t=xn(t,0,1),this.setPropertyValue("fillOpacity",t)&&this.setSVGAttribute({"fill-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.getPropertyValue("fill")}
170,set:function(t){this.setFill(t)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(t){if((!gt(t)||"r"in t)&&(t=pe(t)),this.setColorProperty("fill",t)||this.fillModifier){if(t instanceof it&&this.fillModifier&&(t=this.fillModifier.modify(t)),this.realFill=t,t instanceof it)this.setSVGAttribute({fill:t.toString()});else if(!b(t))this.removeSVGAttribute("fill");else if(t instanceof mi||t instanceof ce||t instanceof Ne){var e=t;e.paper=this.paper,this.setSVGAttribute({fill:'url("'+Vi()+e.id+'")'})}}},Object.defineProperty(i.prototype,"opacity",{get:function(){return this.getPropertyValue("opacity")},set:function(t){t=xn(t,0,1),this.setPropertyValue("opacity",t)&&this.setSVGAttribute({opacity:t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stroke",{get:function(){return this.getPropertyValue("stroke")},set:function(t){this.setStroke(t)},enumerable:!0,configurable:!0}),i.prototype.setStroke=function(t){if((!gt(t)||"r"in t)&&(t=pe(t)),this.setColorProperty("stroke",t)||this.strokeModifier){if(t instanceof it&&this.strokeModifier&&(t=this.strokeModifier.modify(t)),this.realStroke=t,t instanceof it)t.hex=="none"?this.removeSVGAttribute("stroke"):this.setSVGAttribute({stroke:t.toString()});else if(!b(t))this.removeSVGAttribute("stroke");else if(t instanceof mi||t instanceof ce||t instanceof Ne){var e=t;e.paper=this.paper,this.setSVGAttribute({stroke:'url("'+Vi()+e.id+'")'})}}},Object.defineProperty(i.prototype,"strokeOpacity",{get:function(){return this.getPropertyValue("strokeOpacity")},set:function(t){t=xn(t,0,1),this.setPropertyValue("strokeOpacity",t)&&this.setSVGAttribute({"stroke-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScalingStroke",{get:function(){return this.getPropertyValue("nonScalingStroke")},set:function(t){t=vt(t),this.setPropertyValue("nonScalingStroke",t)&&(this.strokeWidth=this.strokeWidth)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScaling",{get:function(){return this.getPropertyValue("nonScaling")},set:function(t){t=vt(t),this.setPropertyValue("nonScaling",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.getPropertyValue("strokeWidth")},set:function(t){t=dt(t),this.setPropertyValue("strokeWidth",t,!0),this.nonScalingStroke&&(v(t)||(t=1),t=t/this.globalScale),this.setSVGAttribute({"stroke-width":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDasharray",{get:function(){return this.getPropertyValue("strokeDasharray")},set:function(t){t=Xt(t),this.setPropertyValue("strokeDasharray",t)&&this.setSVGAttribute({"stroke-dasharray":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDashoffset",{get:function(){return this.getPropertyValue("strokeDashoffset")},set:function(t){t=dt(t),this.setPropertyValue("strokeDashoffset",t)&&this.setSVGAttribute({"stroke-dashoffset":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeLinecap",{get:function(){return this.getPropertyValue("strokeLinecap")},set:function(t){this.setPropertyValue("strokeLinecap",t)&&this.setSVGAttribute({"stroke-linecap":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeLinejoin",{get:function(){return this.getPropertyValue("strokeLinejoin")},set:function(t){this.setPropertyValue("strokeLinejoin",t)&&this.setSVGAttribute({"stroke-linejoin":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shapeRendering",{get:function(){return this.getPropertyValue("shapeRendering")},set:function(t){t=Xt(t),this.setPropertyValue("shapeRendering",t)&&this.setSVGAttribute({"shape-rendering":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPerfect",{get:function(){return this.getPropertyValue("pixelPerfect")},set:function(t){t=vt(t),t?this._positionPrecision=oe.pixelPerfectPrecision:this._positionPrecision=3,this.setPropertyValue("pixelPerfect",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rtl",{get:function(){return b(this._rtl)?this._rtl:this._topParent?this._topParent.rtl:!1},set:function(t){t=vt(t),this.isBaseSprite&&(this.topParent.rtl=t),this._rtl=t},enumerable:!0,configurable:!0}),i.prototype.show=function(t){return this.showReal(t)},i.prototype.showReal=function(t){var e=this;if(!this.preventShow){var r,n=this.defaultState.properties;if(!this.disabled&&(this.isHidden||!this.visible||this.isHiding||n.opacity!=null&&this.opacity<n.opacity&&!this.isShowing)&&!this.isDisposed()){this.invalid&&this.validate(),this.positionInvalid&&this.validatePosition(),v(t)||(t=this.defaultState.transitionDuration),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this._showHideDisposer&&this.removeDispose(this._showHideDisposer),this._isHidden=!1,this.isHiding=!1,this.isShowing=!0,r=this.applyCurrentState(t),r&&!r.isFinished()?(this._showHideDisposer=r.events.on("animationended",function(){e.isShowing=!1}),this._disposers.push(this._showHideDisposer)):this.isShowing=!1;var a=this.defaultState.properties.visible;b(a)||(a=!0),this.visible=a,this.readerHidden=!1,this.dispatchImmediately("shown")}return r}},i.prototype.hide=function(t){return this.hideReal(t)},i.prototype.hideReal=function(t){var e=this,r;if(!this.isHiding&&this.visible&&!this.isDisposed()){this.tooltip&&this.tooltip.currentSprite==this&&this.hideTooltip(0),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this.isShowing=!1,this._showHideDisposer&&this.removeDispose(this._showHideDisposer);var n=this.hiddenState;n?(r=this.setState(n,t,void 0),r&&!r.isFinished()?(this._hideAnimation=r,this._showHideDisposer=r.events.on("animationended",function(){e.isHiding=!1,e._isHidden=!0,n.properties.visible==!1&&(e.visible=!1)},this),this._disposers.push(this._showHideDisposer),this._disposers.push(r)):(this.isHiding=!1,this._isHidden=!0)):(this.visible=!1,this.isHiding=!1,this._isHidden=!0),this.readerHidden=!0,this.dispatchImmediately("hidden"),this.invalidate()}return v(t)||(t=this.hiddenState.transitionDuration),r},Object.defineProperty(i.prototype,"visible",{get:function(){return this.getVisibility()},set:function(t){t=vt(t),this.setVisibility(t)},enumerable:!0,configurable:!0}),i.prototype.getVisibility=function(){var t=this.getPropertyValue("visible");return b(t)||(t=!0),t},i.prototype.setVisibility=function(t){if(this.setPropertyValue("visible",t)&&(t?this.group.removeAttr("visibility"):this.group.attr({visibility:"hidden"}),this.events.isEnabled("visibilitychanged"))){var e={type:"visibilitychanged",target:this,visible:t};this.events.dispatchImmediately("visibilitychanged",e)}},Object.defineProperty(i.prototype,"zIndex",{get:function(){return this.getPropertyValue("zIndex")},set:function(t){t=dt(t),this.setPropertyValue("zIndex",t)&&this.dispatch("zIndexChanged")},enumerable:!0,configurable:!0}),i.prototype.toFront=function(){var t=this._parent;t&&t.children.indexOf(this)!=t.children.length-1&&(t.children.moveValue(this,t.children.length-1),this.dispatch("zIndexChanged"))},i.prototype.toBack=function(){var t=this._parent;t&&t.children.indexOf(this)!=0&&(t.children.moveValue(this,0),this.dispatch("zIndexChanged"))},Object.defineProperty(i.prototype,"userClassName",{get:function(){return this.getPropertyValue("userClassName")}
170,set:function(t){this.setPropertyValue("userClassName",t)&&(!t&&this.userClassName&&this.group.removeClass(this.userClassName),this.setClassName())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltip",{get:function(){if(this._tooltip)return this._tooltip;if(this.virtualParent)return this.virtualParent.tooltip;if(this._parent)return this._parent.tooltip},set:function(t){this._tooltip&&this.removeDispose(this._tooltip),this._tooltip=t,t&&(t.parent=this.tooltipContainer)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipDataItem",{get:function(){var t=this._tooltipDataItem;return t||this.dataItem},set:function(t){this._tooltipDataItem=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipColorSource",{get:function(){return this._tooltipColorSource},set:function(t){this._tooltipColorSource=t},enumerable:!0,configurable:!0}),i.prototype.showTooltip=function(t){this.showTooltipOn=="always"&&!this._tooltip&&this.tooltip&&(this._tooltip=this.tooltip.clone()),!t&&this.tooltipPosition=="pointer"&&this.isHover&&(t=Re(K().lastPointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale));for(var e=this;e!=null;){if(!e.visible||e.disabled||e.__disabled){this._tooltip&&this._tooltip.visible&&this._tooltip.hide(0);return}e=e.parent}if(b(this.tooltipText)||b(this.tooltipHTML)){var r=this.tooltip,n=this.tooltipDataItem;if(r){r.targetSprite=this;var a=this,o=this.tooltipColorSource;if((r.getStrokeFromObject||r.getFillFromObject)&&o&&(o.isTemplate?n&&ps(n.sprites,function(f){return f.clonedFrom==o?(a=f,!1):!0}):a=o),r.getStrokeFromObject){for(var l=this.stroke,h=a;h.parent!=null&&(l=h.stroke,l==null&&(h=h.parent),l==null););l instanceof it?r.background.animate({property:"stroke",to:l},r.animationDuration):r.background.stroke=l}if(r.dataItem=n,r.label.populateStringFrom=this,r.getFillFromObject){for(var u=this.fill,h=a;h.parent!=null;)if(u=h.fill,u==null||u instanceof it&&u.rgb==null)h=h.parent;else if(u!=null)break;u==null&&(u=H("#000000")),u instanceof it&&r.visible?r.background.animate({property:"fill",to:u},r.animationDuration):r.background.fill=u,r.autoTextColor&&u instanceof it&&(r.label.fill=u.alternative)}var p="";if(this.tooltipHTML&&(r.html=this.tooltipHTML,p=this.tooltipHTML),this.tooltipText&&(r.text=this.tooltipText,p=this.tooltipText),this.updateTooltipPosition(t))if(r.readerDescribedBy=this.uidAttr(),r.label.invalid&&r.label.validate(),p!=null&&p!=""&&r.label.currentText!=""){r&&!r.parent&&(r.parent=this.tooltipContainer);var d=r.defaultState.transitionDuration;return d<=0&&(d=1),r.show(d),r.currentSprite=this,!0}else this.hideTooltip(0);else this.hideTooltip(0)}}return!1},i.prototype.updateTooltipPosition=function(t){var e=this;if(this.tooltipPosition=="pointer"){if(this._interactionDisposer&&this._interactionDisposer.dispose(),this._interactionDisposer=K().body.events.on("track",function(n){return e.pointTooltipTo(Re(n.point,e.svgContainer.SVGContainer,e.svgContainer.cssScale),!0)}),t)return this.pointTooltipTo(t,!0)}else{var r=de({x:this.getTooltipX(),y:this.getTooltipY()},this);return this.pointTooltipTo(r)}},i.prototype.pointTooltipTo=function(t,e){var r=this.tooltip;return r&&this.topParent&&(r.showInViewport||La(t,{x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight}))?(r.pointTo(t,e),!0):!1},i.prototype.hideTooltip=function(t){if(this.showTooltipOn!="always"){var e=this.tooltip;e&&(e.targetSprite==this&&(e.targetSprite=void 0),e.hide(t),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0))}},Object.defineProperty(i.prototype,"tooltipHTML",{get:function(){return this.getPropertyValue("tooltipHTML")},set:function(t){t=Xt(t),this.hoverable=!0,this.setPropertyValue("tooltipHTML",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipText",{get:function(){return this.getPropertyValue("tooltipText")},set:function(t){t=Xt(t),t&&(this.hoverable=!0),this.setPropertyValue("tooltipText",t)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipContainer",{get:function(){if(this._tooltipContainer)return this._tooltipContainer;if(this._parent)return this._parent.tooltipContainer},set:function(t){this._tooltipContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipX",{get:function(){return this.getTooltipX()},set:function(t){this.setPercentProperty("tooltipX",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"alwaysShowTooltip",{get:function(){return this.getPropertyValue("showTooltipOn")=="always"},set:function(t){t=vt(t),t&&(this.showTooltipOn="always")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showTooltipOn",{get:function(){return this.getPropertyValue("showTooltipOn")},set:function(t){this.setPropertyValue("showTooltipOn",t)&&(t=="hit"&&(this.clickable=!0),this.tooltip&&(t=="always"?this.showTooltip():this.handleAlwaysShowTooltip()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipPosition",{get:function(){return this.getPropertyValue("tooltipPosition")},set:function(t){this.setPropertyValue("tooltipPosition",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipY",{get:function(){return this.getTooltipY()},set:function(t){this.setPercentProperty("tooltipY",t)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),i.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");b(t)||(t=I(50));var e;return v(t)&&(e=t),t instanceof Q&&(e=this.maxLeftSelf+this._measuredWidthSelf*t.value-this.pixelPaddingLeft-this.ex),v(e)||(e=0),e}
170,i.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");b(t)||(t=I(50));var e;return v(t)&&(e=t),t instanceof Q&&(e=this.maxTopSelf+this._measuredHeightSelf*t.value-this.pixelPaddingTop-this.ey),v(e)||(e=0),e},i.prototype.raiseCriticalError=function(t,e){this.svgContainer&&(this._adapterO?this.modal.content=this._adapterO.apply("criticalError",t).message:this.modal.content=t.message,e?this.modal.closable=!0:this.disabled=!0,this.modal.open()),console.log(t)},i.prototype.processConfig=function(t){t&&(b(t.tooltipColorSource)&&tt(t.tooltipColorSource)&&this.map.hasKey(t.tooltipColorSource)&&(t.tooltipColorSource=this.map.getKey(t.tooltipColorSource)),b(t.cursorOverStyle)&&tt(t.cursorOverStyle)&&(t.cursorOverStyle=this.getCursorStyle(t.cursorOverStyle)),b(t.cursorDowntyle)&&tt(t.cursorDowntyle)&&(t.cursorDowntyle=this.getCursorStyle(t.cursorDowntyle)),b(t.cursorOptions)&&(b(t.cursorOptions.overStyle)&&tt(t.cursorOptions.overStyle)&&(t.cursorOptions.overStyle=this.getCursorStyle(t.cursorOptions.overStyle)),b(t.cursorOptions.downStyle)&&tt(t.cursorOptions.downStyle)&&(t.cursorOptions.downStyle=this.getCursorStyle(t.cursorOptions.downStyle)))),s.prototype.processConfig.call(this,t),this.processDelayedMap()},i.prototype.getCursorStyle=function(t){switch(t){case"grab":return Ht.grab;case"grabbing":return Ht.grabbing;case"pointer":return Ht.pointer;case"horizontalResize":return Ht.horizontalResize;case"verticalResize":return Ht.verticalResize;default:return Ht.default}},i.prototype.configOrder=function(t,e){return t==e?0:t=="tooltipColorSource"?1:e=="tooltipColorSource"?-1:s.prototype.configOrder.call(this,t,e)},Object.defineProperty(i.prototype,"isHidden",{get:function(){return this._isHidden?this._isHidden:this._parent?this._parent.isHidden:!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showOnInit",{get:function(){return this.getPropertyValue("showOnInit")},set:function(t){t=vt(t),this.setShowOnInit(t)},enumerable:!0,configurable:!0}),i.prototype.setShowOnInit=function(t){this.setPropertyValue("showOnInit",t)&&(this.isTemplate||(t&&!this.inited&&!this.hidden?(this._showOnInitDisposer=new Pt([_.events.once("enterframe",this.hideInitially,this),this.events.once("beforevalidated",this.hideInitially,this,!1),this.events.on("inited",this.appear,this,!1)]),this._disposers.push(this._showOnInitDisposer)):this._showOnInitDisposer&&this._showOnInitDisposer.dispose()))},i.prototype.hideInitially=function(){this.isDisposed()||(this.appeared=!1,this.inited||this.hide(0))},i.prototype.appear=function(){var t=this;if(this.appeared=!1,!this.hidden&&!this.isHidden&&this.hide(0),this.hidden)this.appeared=!0,this.dispatch("appeared");else{var e=this.show();e&&!e.isFinished()?this.addDisposer(e.events.on("animationended",function(){t.appeared=!0,t.dispatch("appeared")})):(this.appeared=!0,this.dispatch("appeared"))}},Object.defineProperty(i.prototype,"hidden",{get:function(){return this.getPropertyValue("hidden")},set:function(t){t=vt(t),this.setPropertyValue("hidden",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this._bbox},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"plugins",{get:function(){var t=this;return this._plugins||(this._plugins=new rt,this._disposers.push(this._plugins.events.on("inserted",function(e){e.newValue.target=t,e.newValue.init()})),this._disposers.push(new ft(this._plugins))),this._plugins},enumerable:!0,configurable:!0}),i.prototype._systemUpdate=function(t){this.validate()},i.prototype._systemCheckIfValidate=function(){return!0},i.prototype._systemValidatePositions=function(){this.validatePosition()},i.prototype._systemValidateLayouts=function(){},i}(Ve);_.registeredClasses.Sprite=Z;var Qr=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Rectangle",t.element=t.paper.add("rect"),t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this._positionPrecision;this.pixelPerfect&&(t=0);var e=F(this.innerWidth,t),r=F(this.innerHeight,t);this.element.attr({width:e,height:r})},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),i}(Z);_.registeredClasses.Rectangle=Qr;var N=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._childrenByLayout=[],t._childrenDisposers=new ct,t.hasFocused=!1,t.setStateOnSprites=[],t.layoutInvalid=!1,t._absoluteWidth=0,t._absoluteHeight=0,t._shouldBeReady=[],t._tapToActivate=!1,t.tapTimeout=3e3,t.className="Container",t._element=t.paper.addGroup("g"),t.group.add(t.element),t.setPropertyValue("pixelPerfect",!1),t.setPropertyValue("layout","absolute"),t.setPropertyValue("fixedWidthGrid",!1),t.setPropertyValue("verticalCenter","none"),t.setPropertyValue("horizontalCenter","none"),t._positionPrecision=4,t._disposers.push(new ei(t._childrenDisposers)),t.children.events.on("inserted",t.handleChildAdded,t),t.children.events.on("removed",t.handleChildRemoved,t),t.applyTheme(),t}return i.prototype.handleChildAdded=function(t){this.processChild(t.newValue)},i.prototype.processChild=function(t){try{this._childrenDisposers.insertKey(t.uid,new Pt([t.events.on("transformed",this.handleChildTransform,this),t.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch{}if(this.element){var e=this.element;e.add(t.group)}t.parent=this,t.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:t}),this.invalidate()},i.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},i.prototype.handleChildRemoved=function(t){var e=t.oldValue;if(this._childrenDisposers.removeKey(e.uid),this.element){var r=this.element;r.removeElement(e.group)}e.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:e})},i.prototype.handleChildTransform=function(t){var e=t.target;e.isMeasured&&this.invalidateLayout()},i.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||this.layout=="none"||this.__disabled||(this.layoutInvalid=!0,_.addToInvalidLayouts(this),J.requestFrame())},i.prototype.invalidate=function(){s.prototype.invalidate.call(this),this.invalidateLayout()},i.prototype.deepInvalidate=function(){s.prototype.invalidate.call(this),L(this._childrenByLayout,function(t){t instanceof i?t.deepInvalidate():t.invali
170date()}),this.invalidateLayout()},Object.defineProperty(i.prototype,"children",{get:function(){return this._children||(this._children=new rt),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),i.prototype.removeElement=function(){},i.prototype.sortChildren=function(){var t=this;if(this._childrenByLayout=[],this.layout=="none"||this.layout=="absolute"||!this.layout)this._childrenByLayout=this.children.values;else{var e=[],r=[];A(this.children.iterator(),function(n){t.layout=="horizontal"||t.layout=="grid"?v(n.percentWidth)?r.push(n):e.push(n):t.layout=="vertical"&&v(n.percentHeight)?r.push(n):e.push(n)}),this._childrenByLayout=e.concat(r)}this.calculateRelativeSize()},i.prototype.calculateRelativeSize=function(){var t=this,e=0,r=0;L(this._childrenByLayout,function(n){n.isMeasured&&(v(n.percentWidth)&&(e+=n.percentWidth),v(n.percentHeight)&&(r+=n.percentHeight))}),L(this._childrenByLayout,function(n){n.isMeasured&&(t.layout=="horizontal"&&(v(n.percentWidth)&&(n.relativeWidth=n.percentWidth/e),v(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100)),t.layout=="vertical"&&(v(n.percentHeight)&&(n.relativeHeight=n.percentHeight/r),v(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100)),t.layout=="grid"&&(v(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100),v(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100))),(t.layout=="absolute"||!n.isMeasured)&&(v(n.percentWidth)&&(n.relativeWidth=n.percentWidth/100),v(n.percentHeight)&&(n.relativeHeight=n.percentHeight/100))})},i.prototype.addChildren=function(){if(this.element){var t=Ei(this.children.values),e=t.map(function(l,h){return{idx:h,data:l}});e.sort(function(l,h){var u=l.data.zIndex||0,p=h.data.zIndex||0;return u<p?-1:u>p?1:l.idx-h.idx}),t=e.map(function(l){return l.data});var r=this.element,n=!0;if(r.node&&r.node.childNodes){for(var a=0,o=r.node.childNodes.length;a<o;a++)if(r.node.childNodes[a]!=t[a].group.node){n=!1;break}}n||(L(t,function(l){l.group&&r.add(l.group)}),this._background&&this.group.addToBack(this._background.group),this.invalidateLayout())}},i.prototype.createChild=function(t){var e=new t;return e.parent=this,e},i.prototype.removeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.parent=void 0,this.children.removeValue(t)}},i.prototype.disposeChildren=function(){for(;this.children.length>0;){var t=this.children.getIndex(0);t.dispose(),this.children.removeValue(t)}},Object.defineProperty(i.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(t){this._background&&this.background!=t&&this.removeDispose(this._background),t&&(this._background=t,this._disposers.push(t),this.processBackground())},enumerable:!0,configurable:!0}),i.prototype.handleGlobalScale=function(){s.prototype.handleGlobalScale.call(this),this.children.each(function(t){t.handleGlobalScale()})},i.prototype.createBackground=function(){return new Qr},i.prototype.processBackground=function(){var t=this._background;t&&(t.isMeasured=!1,this._background.fill=new nt().getFor("background"),t.parent=this,t.isMeasured=!1,this.children.removeValue(t),this._disposers.push(t),this.group.addToBack(this._background.group))},i.prototype.validateLayout=function(){var t=this;_.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var e=0,r=0,n=!0;this.children&&(this.sortChildren(),L(this._childrenByLayout,function(a){var o,l;if(v(a.relativeWidth)?(o=F(t._availableWidth*a.relativeWidth,2),t.layout=="horizontal"&&(o-=a.pixelMarginRight+a.pixelMarginLeft)):t.layout=="horizontal"&&a.invalid&&a.validate(),v(a.relativeHeight)?(l=F(t._availableHeight*a.relativeHeight,2),t.layout=="vertical"&&(l-=a.pixelMarginTop+a.pixelMarginBottom)):t.layout=="vertical"&&a.invalid&&a.validate(),a.invalid==!1){if(v(a.relativeWidth)&&(a.maxWidth=o),v(a.relativeHeight)&&(a.maxHeight=l),a.isMeasured){t.layout=="horizontal"&&(v(a.percentWidth)||a.measuredWidth>0&&(t._availableWidth-=a.measuredWidth+a.pixelMarginLeft+a.pixelMarginRight)),t.layout=="vertical"&&(v(a.percentHeight)||a.measuredHeight>0&&(t._availableHeight-=a.measuredHeight+a.pixelMarginTop+a.pixelMarginBottom));var h=a.measuredWidth,u=a.measuredHeight;a.align!="none"&&(h+=a.pixelMarginLeft+a.pixelMarginRight),a.valign!="none"&&(u+=a.pixelMarginTop+a.pixelMarginBottom),e=Math.max(e,h),r=M
170ath.max(r,u)}}else a.isMeasured&&(v(a.relativeWidth)&&a.maxWidth!=o&&(a.maxWidth=o,n=!1),v(a.relativeHeight)&&a.maxHeight!=l&&(a.maxHeight=l,n=!1))})),this._absoluteWidth=e,this._absoluteHeight=r,n&&this.arrange()},i.prototype.arrange=function(){var t=this,e=this.children,r=0,n=0,a=q(this.innerWidth,this._absoluteWidth),o=q(this.innerHeight,this._absoluteHeight),l,h,u,p,d=this.pixelPaddingLeft,f=this.pixelPaddingRight,c=this.pixelPaddingTop,y=this.pixelPaddingBottom,g=0,m=0,x=0,P=0,S=[],C=[],O,T,D,k=this.maxWidth,z=this.maxHeight,R=this.minWidth,W=this.minHeight,ot=Ei(e.values);if(this.reverseOrder&&ot.reverse(),this.layout=="grid"){T=k,O=1;for(var Ft=0,zt=ot.length;Ft<zt;Ft++){var Y=ot[Ft];if(Y.isMeasured&&!Y.disabled&&!Y.__disabled){var Dt=Y.measuredWidth;Dt<T&&(T=Dt),Dt>O&&(O=Dt)}}T=B(T,1,k),O=B(O,1,k),this.fixedWidthGrid?D=k/O:D=k/T,D=q(1,Math.floor(D)),D=et(this.maxColumns,D),S=this.getColumnWidth(ot,D,O)}for(var It,Tt,qt,Mt,Ft=0,zt=ot.length;Ft<zt;Ft++){var Y=ot[Ft];if(Y.isMeasured&&!Y.disabled&&!Y.__disabled){var X=void 0,ht=void 0,_t=Y.pixelMarginLeft,ue=Y.pixelMarginRight,se=Y.pixelMarginTop,Jt=Y.pixelMarginBottom,ie=Y.measuredWidth,_e=Y.measuredHeight,ye=void 0,Ke=void 0,qe=void 0,rr=void 0;switch(this.layout){case"none":break;case"absolute":switch(Y.align){case"left":X=_t-Y.maxLeft;break;case"center":X=(a-ie)/2-Y.maxLeft;break;case"right":X=a-ue-Y.maxRight;break;default:Y.x instanceof Q||(X=Y.pixelX);break}switch(Y.valign){case"top":ht=se-Y.maxTop;break;case"middle":ht=(o-_e)/2-Y.maxTop;break;case"bottom":ht=o-Jt-Y.maxBottom;break;default:Y.y instanceof Q||(ht=Y.pixelY);break}break;case"vertical":switch(Y.align){case"left":X=_t-Y.maxLeft;break;case"center":X=(a-ie)/2-Y.maxLeft;break;case"right":X=a-ue-Y.maxRight;break;default:X=Y.pixelX;break}ht=m+se-Y.maxTop,m=ht+Y.maxBottom+Jt;break;case"horizontal":switch(Y.valign){case"top":ht=se-Y.maxTop;break;case"middle":ht=(o-_e)/2-Y.maxTop;break;case"bottom":ht=o-Jt-Y.maxBottom;break;default:ht=Y.pixelY;break}X=g+_t-Y.maxLeft,g=X+Y.maxRight+ue;break;case"grid":switch(X=g+_t-Y.maxLeft,Y.valign){case"top":ht=m+se-Y.maxTop;break;case"middle":ht=m+(o-_e)/2-Y.maxTop;break;case"bottom":ht=m+o-Jt-Y.maxBottom;break;default:ht=m-Y.maxTop;break}g+=S[P],C[x]=q(C[x],_e),P++;var vn=S[P];if(v(vn)||(vn=O),g>et(this.innerWidth,k)-vn+1&&P<D){D=P,g=0,m=0,x=0,P=0,S=this.getColumnWidth(ot,D,O),C=[],Ft=-1;continue}P>=D&&(P=0,m+=C[x],x++,g=0);break}this.layout!=="none"&&(Y.moveTo({x:X,y:ht}),ye=X+Y.maxLeft-_t,Ke=X+Y.maxRight+ue,qe=ht+Y.maxTop-se,rr=ht+Y.maxBottom+Jt,(Ke>h||!v(h))&&(h=Ke),(ye<l||!v(l))&&(l=ye),(qe<u||!v(u))&&(u=qe),(rr>p||!v(p))&&(p=rr),(Ke>Tt||!v(Tt))&&(Tt=Ke),(ye<It||!v(It))&&(It=ye),(qe<qt||!v(qt))&&(qt=qe),(rr>Mt||!v(Mt))&&(Mt=Mt))}else Y.validatePosition()}if(this.layout=="none"){var hi=this.bbox;l=hi.x,h=hi.x+hi.width,u=hi.y,p=hi.y+hi.height}v(l)||(l=0,It=0),v(h)||(h=this._availableWidth,Tt=h),v(u)||(u=0,qt=0),v(p)||(p=this._availableHeight,Mt=p),v(qt)||(qt=0),v(Mt)||(Mt=qt),v(It)||(It=0),v(Tt)||(Tt=It),r=h-l,n=p-u,v(this.relativeWidth)&&(r=k-d-f,l=0,h=r),v(this.relativeHeight)&&(n=z-c-y,u=0,p=n),v(this._pixelWidth)&&(l=0,r=this._pixelWidth-d-f),v(R)&&r<R&&(l=0,r=this.minWidth-d-f),v(this._pixelHeight)&&(u=0,n=this._pixelHeight-c-y),v(W)&&n<W&&(u=0,n=W-c-y);var nr=Tt-It,sr=Mt-qt;if(this.layout!="none"&&(this.contentAlign||this.contentValign)&&e.length>0){var ar,or,lr=r,hr=n;lr<nr&&(lr=nr),hr<sr&&(hr=sr),this.contentAlign=="center"&&(ar=(lr-nr)/2),this.contentAlign=="right"&&(ar=lr-nr),this.contentValign=="middle"&&(or=(hr-sr)/2),this.contentValign=="bottom"&&(or=hr-sr),v(ar)&&A(e.iterator(),function(jt){var ui=jt.maxLeft,re=ar;t.layout=="horizontal"&&(jt.x=jt.pixelX+re),t.layout=="grid"&&(jt.x=jt.pixelX+re),t.layout=="vertical"&&(re+=jt.pixelMarginLeft,jt.align=="none"&&(jt.x=re-ui)),t.layout=="absolute"&&(re+=jt.pixelMarginLeft,jt.align=="none"&&(jt.x=re-ui))}),v(or)&&A(e.iterator(),function(jt){var ui=jt.maxTop,re=or;t.layout=="horizontal"&&(re+=jt.pixelMarginTop,jt.valign=="none"&&(jt.y=re-ui)),t.layout=="grid"&&(re+=jt.pixelMarginTop,jt.y=re-ui),t.layout=="vertical"&&(jt.y=jt.pixelY+re),t.layout=="absolute"&&(re+=jt.pixelMarginTop,jt.valign=="none"&&(jt.y=re-ui))})}var mn=this.bbox;r=q(r,R),n=q(n,W),this.contentWidth=r,this.contentHeight=n,r=et(r,k),n=et(n,z),this._bbox={x:l,y:u,width:r,height:n};var Pl=this.maxLeft,Cl=this.maxTop,wl=this.maxBottom,Sl=this.maxRight;if(this.measure(),(Pl!=this.maxLeft||Sl!=this.maxRight||Cl!=this.maxTop||wl!=this.maxBottom)&&this.events.isEnabled("transformed")){var zs={type:"transformed",target:this};mn&&(zs.dummyData=mn.width+" "+r+"  "+mn.height+" "+n),this.events.dispatchImmediately("transformed",zs)}this.dispatchImmediately("layoutvalidated")},i.prototype.updateCenter=function(){s.prototype.updateCenter.call(this),this.updateBackgroun
170d()},i.prototype.updateBackground=function(){var t=this._background;t&&(t.x=this.maxLeft,t.y=this.maxTop,t.width=this.maxRight-this.maxLeft,t.height=this.maxBottom-this.maxTop)},i.prototype.getColumnWidth=function(t,e,r){var n=this,a=[],o=0;return L(t,function(l){l.isMeasured&&!l.disabled&&!l.__disabled&&(n.fixedWidthGrid?a[o]=r:a[o]=q(a[o],l.measuredWidth+l.pixelMarginRight+l.pixelMarginLeft),o++,o==e&&(o=0))}),a},Object.defineProperty(i.prototype,"layout",{get:function(){return this.getPropertyValue("layout")},set:function(t){this.setPropertyValue("layout",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contentValign",{get:function(){return this.getPropertyValue("contentValign")},set:function(t){this.setPropertyValue("contentValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contentAlign",{get:function(){return this.getPropertyValue("contentAlign")},set:function(t){this.setPropertyValue("contentAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fixedWidthGrid",{get:function(){return this.getPropertyValue("fixedWidthGrid")},set:function(t){this.setPropertyValue("fixedWidthGrid",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxColumns",{get:function(){return this.getPropertyValue("maxColumns")},set:function(t){this.setPropertyValue("maxColumns",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reverseOrder",{get:function(){return this.getPropertyValue("reverseOrder")},set:function(t){this.setPropertyValue("reverseOrder",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"setStateOnChildren",{get:function(){return this.getPropertyValue("setStateOnChildren")},set:function(t){this.setPropertyValue("setStateOnChildren",t,!0)},enumerable:!0,configurable:!0}),i.prototype.fitsToBounds=function(t){var e=t.x,r=t.y,n=.5;return e>=-n&&e<=this.pixelWidth+n&&r>=-n&&r<=this.pixelHeight+n},i.prototype.copyFrom=function(t){var e=this;s.prototype.copyFrom.call(this,t),this.layout=t.layout,this.setStateOnChildren=t.setStateOnChildren,t._background&&(this.background=t._background.clone(),this.background.copyFrom(t._background)),A(t.children.iterator(),function(r){if(r.shouldClone){var n=r.clone();n.parent=e}})},Object.defineProperty(i.prototype,"preloader",{get:function(){var t=this._preloader;if(t)return t;if(this.parent)return this.parent.preloader},set:function(t){this._preloader&&this.removeDispose(this._preloader),this._preloader=t,t&&(t.parent=this.tooltipContainer,this._disposers.push(t))},enumerable:!0,configurable:!0}),i.prototype.setPaper=function(t){var e=this,r=s.prototype.setPaper.call(this,t);return r&&(this._background&&(this._background.paper=t,this._background.topParent=this.topParent),this.children.each(function(n){n.setPaper(t),n.topParent=e.topParent})),r},i.prototype.removeFromInvalids=function(){s.prototype.removeFromInvalids.call(this),_.removeFromInvalidLayouts(this)},i.prototype.setDataItem=function(t){this._dataItem!=t&&(A(this.children.iterator(),function(e){e.dataItem=t}),this._background&&(this._background.dataItem=t)),s.prototype.setDataItem.call(this,t)},i.prototype.measureElement=function(){this.disabled||this.isTemplate||this.layout=="none"||this.__disabled||this.validateLayout()},Object.defineProperty(i.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(t){this.setPropertyValue("fontFamily",t,!0)&&(this.setSVGAttribute({"font-family":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(t){this.setPropertyValue("fontSize",t,!0)&&(this.setSVGAttribute({"font-size":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),i.prototype.invalidateLabels=function(){this.children.each(function(t){t.hardInvalidate?(t.hardInvalidate(),t.events.once("validated",t.handleValidate,t,!1)):t instanceof i&&t.invalidateLabels()})},Object.defineProperty(i.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")}
170,set:function(t){this.setPropertyValue("fontWeight",t),this.setSVGAttribute({"font-weight":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(t){this.setPropertyValue("textDecoration",t),this.setSVGAttribute({"text-decoration":t})},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),s.prototype.dispose.call(this)},i.prototype.setState=function(t,e,r){var n=t;return t instanceof Wr&&(n=t.name),this.setStateOnChildren&&A(this.children.iterator(),function(a){a.setState(n,e,r),n!="active"&&(a.isActive=!1)}),this._background&&this._background.setState(n),this.setStateOnSprites.length&&L(this.setStateOnSprites,function(a){a.setState(n,e,r)}),s.prototype.setState.call(this,t,e,r)},i.prototype.setActive=function(t){s.prototype.setActive.call(this,t),this._background&&(this._background.isActive=t)},i.prototype.dispatchReady=function(){var t=this;if(!this.isReady()&&!this.isDisposed()){var e=!0;he(this.children.iterator(),function(r){return!r.__disabled&&!r.disabled&&!r.isReady()?(e=!1,!1):!0}),ps(this._shouldBeReady,function(r){return!r.__disabled&&!r.disabled&&!r.isReady()?(e=!1,!1):!0}),e?s.prototype.dispatchReady.call(this):_.events.once("exitframe",function(){t.dispatchReady(),J.requestFrame()},void 0,!1)}},i.prototype._systemUpdate=function(t){this.children.each(function(e){e.invalid&&(e._systemCheckIfValidate()?e.dataItem&&e.dataItem.component&&e.dataItem.component.dataInvalid?t.push(e):e.validate():t.push(e))}),s.prototype._systemUpdate.call(this,t)},i.prototype._systemValidatePositions=function(){this.children.each(function(t){t.positionInvalid&&t.validatePosition()}),s.prototype._systemValidatePositions.call(this)},i.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(i.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(t){this._tapToActivate!=t&&this.setTapToActivate(t)},enumerable:!0,configurable:!0}),i.prototype.setTapToActivate=function(t){var e=this;this._tapToActivate=t,this.interactions.isTouchProtected=t,t&&this.interactions.setEventDisposer("container-tapToActivate",t,function(){return new Pt([e.events.on("hit",e.handleTapToActivate,e,!1),e.events.on("down",e.initTapTimeout,e,!1),e.events.on("track",e.initTapTimeout,e,!1),K().body.events.on("down",function(r){K().isLocalElement(r.pointer,e.paper.svg,e.uid)||e.handleTapToActivateDeactivation()},e,!1)])}),K()},i.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},i.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},i.prototype.initTapTimeout=function(){var t=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout(function(){t.handleTapToActivateDeactivation()},this.tapTimeout))},i.prototype.moveHtmlContainer=function(t){var e=oo(t);if(e){this.htmlContainer=e;var r=this.svgContainer;r.htmlElement=e,r.htmlElement.appendChild(r.SVGContainer),r.initSensor(),r.measure()}else tt(t)&&t!=""&&J.log("html container '"+t+"' not found")},i.prototype.hasLicense=function(){for(var t=0;t<oe.licenses.length;t++)if(oe.licenses[t].match(/^CH.{5,}/i))return!0;return!1},i}(Z);_.registeredClasses.Container=N;var bo=function(){function s(){}return s.prototype.parse=function(i){return[]},Object.defineProperty(s.prototype,"parsableNumbers",{get:function(){return this.options.numberFields&&this.options.numberFields.length>0},enumerable:!0,configurable:!0}),s.prototype.maybeToNumber=function(i,t){return this.options.numberFields.indexOf(i)!==-1?Un(t):t},Object.defineProperty(s.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),s.prototype.maybeToDate=function(i,t){return this.options.dateFields.indexOf(i)!==-1?this.options.dateFormatter.parse(t,this.dateFormat):t},s.prototype.maybeToEmpty=function(i){return(!b(i)||i=="")&&b(this.options.emptyAs)?this.options.emptyAs:i},Object.defineProperty(s.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new Zi,this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),s}(),yp=[",",";","	"],zr=function(s){w(i,s);function i(){var t=s!==null&&s.apply(this,arguments)||this;return t.contentType="text/csv",t.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},t}return i.isCSV=function(t){return!!i.getDelimiterFromData(t)},i.getDelimiterFromData=function(t){var e=t.split(`
171`),r=e.length,n;return L(yp,function(a){for(var o=0,l=0,h=0;h<r;++h)if(o=e[h].split(a).length,o>
1711){if(l===0)l=o;else if(o!=l){l=0;break}}else{l=0;break}l&&(n=a)}),n},i.prototype.parse=function(t){this.options.delimiter||(this.options.delimiter=i.getDelimiterFromData(t));var e=this.CSVToArray(t,this.options.delimiter),r=b(this.options.emptyAs),n=this.parsableNumbers,a=this.parsableDates,o=[],l=[],h,u;for(u=0;u<this.options.skipRows;u++)e.shift();if(this.options.useColumnNames){l=e.shift();for(var p=0;p<l.length;p++)h=b(l[p])?l[p].replace(/^\s+|\s+$/gm,""):"",h===""&&(h="col"+p),l[p]=h}for(var d;d=this.options.reverse?e.pop():e.shift(),!!d;)if(!(this.options.skipEmpty&&d.length===1&&d[0]==="")){var f={};for(u=0;u<d.length;u++)h=l[u]===void 0?"col"+u:l[u],f[h]=d[u]===""?this.options.emptyAs:d[u],r&&(f[h]=this.maybeToEmpty(f[h])),n&&(f[h]=this.maybeToNumber(h,f[h])),a&&(f[h]=this.maybeToDate(h,f[h]));o.push(f)}return o},i.prototype.CSVToArray=function(t,e){e=e||",";for(var r=new RegExp("(\\"+e+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+e+"\\r\\n]*))","gi"),n=[[]],a=null;a=r.exec(t),!!a;){var o=a[1];o.length&&o!==e&&n.push([]);var l=void 0;a[2]?l=a[2].replace(new RegExp('""',"g"),'"'):l=a[3],n[n.length-1].push(l)}return n},i}(bo),Mi=function(s){w(i,s);function i(){var t=s!==null&&s.apply(this,arguments)||this;return t.contentType="application/json",t.options={},t}return i.isJSON=function(t){try{return JSON.parse(t),!0}catch{return!1}},i.prototype.parse=function(t){var e=this,r;try{b(JSON)&&(r=JSON.parse(t))}catch{return}var n=b(this.options.emptyAs),a=this.parsableNumbers,o=this.parsableDates;if(Array.isArray(r)&&(a||o||n))for(var l=function(p,d){var f=r[p];U(f,function(c,y){n&&(f[c]=e.maybeToEmpty(f[c])),a&&(f[c]=e.maybeToNumber(c,f[c])),o&&(f[c]=e.maybeToDate(c,f[c]))})},h=0,u=r.length;h<u;h++)l(h,u);return r},i}(bo),gp=function(){function s(){this.adapter=new ne(this)}return s.prototype.load=function(i){var t=Array.isArray(i)?i:[i],e=Ki(t,function(r){return r.dispatchImmediately("started"),r.dispatchImmediately("loadstarted"),Nr(r.url,r,r.requestOptions)});Promise.all(e).then(function(r){L(r,function(n){var a=n.target;a.dispatchImmediately("loadended"),n.error?a.events.isEnabled("error")&&a.events.dispatchImmediately("error",{type:"error",code:n.xhr.status,message:a.language.translate("Unable to load file: %1",null,a.url),target:a}):a.processData(n.response,n.type),a.dispatchImmediately("ended")})}).catch(function(r){r.target&&(r.target.dispatchImmediately("loadended"),r.target.events.isEnabled("error")&&r.target.events.dispatchImmediately("error",{type:"error",code:r.xhr.status,message:r.target.language.translate("Unable to load file: %1",null,r.target.url),target:r.target}),r.target.dispatchImmediately("ended"))})},s.prototype.getParserByType=function(i){var t=this.adapter.apply("getParserByType",{parser:null,type:i}).parser;if(t)return t;if(i=="csv"||i=="text/csv"||i=="application/vnd.ms-excel")return new zr;if(i=="json"||i=="application/json")return new Mi},s.prototype.getParserByData=function(i,t){var e=this.adapter.apply("getParserByData",{parser:null,data:i,type:t}).parser;if(!e){if(e=this.getParserByType(t),e)return e;if(Mi.isJSON(i))return this.getParserByType("json");if(zr.isCSV(i))return this.getParserByType("csv")}return e},s}(),An=new gp,vp=function(s){w(i,s);function i(t,e){var r=s.call(this)||this;return r.adapter=new ne(r),r._requestOptions={},r._incremental=!1,r._incrementalParams={},r._keepCount=!1,r._updateCurrentData=!1,r.showPreloader=!0,r.className="DataSource",t&&(r.url=t),e&&(typeof e=="string"?r.parser=An.getParserByType(e):r.parser=e),r}return i.prototype.processData=function(t,e){if(this.dispatchImmediately("parsestarted"),!this.parser&&(this.parser=An.getParserByData(t,e),!this.parser)){if(this.events.isEnabled("parseerror")){var r={type:"parseerror",message:this.language.translate("No parser available for file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",r)}this.dispatchImmediately("parseended");return}if(this.parser.options=this.adapter.apply("parserOptions",this.parser.options),this.parser.options.dateFields=this.adapter.apply("dateFields",this.parser.options.dateFields||[]),this.parser.options.numberFields=this.adapter.apply("numberFields",this.parser.options.numberFields||[]),this.parser.options.dateFields&&!this.parser.options.dateFormatter&&(this.parser.options.dateFormatter=this.dateFormatter),this.data=this.adapter.apply("parsedData",this.parser.parse(this.adapter.apply("unparsedData",t))),!b(this.data)&&this.events.isEnabled("parseerror")){var n={type:"parseerror",message:this.language.translate("Error parsing file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",n)}this.dispatchImmediately("parseended"),b(this.data)&&this.dispatchImmediately("done",{data:this.data}),this.lastLoad=new Date},Object.defineProperty(i.prototype,"url",{get:function(){var t=this.disableCache?this.timestampUrl(this._url):this._url;return this.incremental&&this.component.data.length&&(t=this.addUrlParams(t,this.incrementalParams)),this.adapter.apply("url",t)},set:function(t){this._url=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"requestOptions",{get:function(){return this.adapter.apply("requestOptions",this._requestOptions)},set:function(t){this._requestOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"parser",{get:function(){return this._parser||(this._parser=new Mi),this.adapter.apply("parser",this._parser)}
171,set:function(t){this._parser=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reloadFrequency",{get:function(){return this.adapter.apply("reloadTimeout",this._reloadFrequency)},set:function(t){var e=this;this._reloadFrequency!=t&&(this._reloadFrequency=t,t?b(this._reloadDisposer)||(this._reloadDisposer=this.events.on("ended",function(r){e._reloadTimeout=setTimeout(function(){e.load()},e.reloadFrequency)})):b(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"incremental",{get:function(){return this.adapter.apply("incremental",this._incremental)},set:function(t){this._incremental=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"incrementalParams",{get:function(){return this.adapter.apply("incrementalParams",this._incrementalParams)},set:function(t){this._incrementalParams=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepCount",{get:function(){return this.adapter.apply("keepCount",this._keepCount)},set:function(t){this._keepCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"updateCurrentData",{get:function(){return this.adapter.apply("updateCurrentData",this._updateCurrentData)},set:function(t){this._updateCurrentData=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){return this._language?this._language:this.component?(this._language=this.component.language,this._language):(this.language=new ze,this.language)},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.component?(this._dateFormatter=this.component.dateFormatter,this._dateFormatter):(this.dateFormatter=new Zi,this.dateFormatter)},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),i.prototype.timestampUrl=function(t){var e=new Date().getTime().toString(),r={};return r[e]="",this.addUrlParams(t,r)},i.prototype.dispose=function(){s.prototype.dispose.call(this),this._reloadTimeout&&clearTimeout(this._reloadTimeout),b(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0)},i.prototype.load=function(){this.url&&(this._reloadTimeout&&clearTimeout(this._reloadTimeout),An.load(this))},i.prototype.addUrlParams=function(t,e){var r=t.match(/\?/)?"&":"?",n=[];return U(e,function(a,o){o!=""?n.push(a+"="+encodeURIComponent(o)):n.push(a)}),n.length?t+r+n.join("&"):t},i.prototype.processConfig=function(t){_.registeredClasses.json=Mi,_.registeredClasses.JSONParser=Mi,_.registeredClasses.csv=zr,_.registeredClasses.CSVParser=zr,s.prototype.processConfig.call(this,t)},i}(Ve),mp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._rules=new rt,t._appliedRules={},t._appliedTargets=[],t._useDefault=!0,t.adapter=new ne(t),t._enabled=!1,t._responsiveDisposers=[],t._noStates=[],t.className="Responsive",t.rules.events.on("inserted",function(){t.checkRules()},!0),t.rules.events.on("removed",function(){t.checkRules()},!0),t._disposers.push(t.rules.events),t.applyTheme(),t}return Object.defineProperty(i.prototype,"component",{get:function(){return this._component},set:function(t){var e=this;t!=this._component&&(this.disposeResponsiveHandlers(),this._component=t,this._responsiveDisposers.push(xt(this.component).events.on("sizechanged",function(){e.checkRules()},this)),this._responsiveDisposers.push(xt(this.component).events.once("datavalidated",function(){e._component.isReady()&&e.checkRules(!0)},this)),this.enabled=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"enabled",{get:function(){return this.adapter.apply("enabled",this._enabled)},set:function(t){this._enabled!=t&&(this._enabled=t,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useDefault",{get:function(){return this.adapter.apply("useDefault",this._useDefault)},set:function(t){this._useDefault!=t&&(this._useDefault=t,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rules",{get:function(){return this.adapter.apply("rules",this._rules)},set:function(t){this._rules=t,this._enabled=!0,this.applyRules()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultRules",{get:function(){return this.adapter.apply("defaultRules",Nt)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"allRules",{get:function(){var t=new rt;return this.useDefault&&t.copyFrom(this.defaultRules),t.copyFrom(this.rules),this.adapter.apply("allRules",t)},enumerable:!0,configurable:!0}),i.prototype.isApplied=function(t){var e=this._appliedRules[t];return b(e)?e:!1},i.prototype.checkRules=function(t){var e=this;t===void 0&&(t=!1);var r=this.allRules;if(!(!r||r.length==0)){var n=!1,a=xt(this.component);if(!(a.pixelWidth==0||a.pixelHeight==0)&&(A(r.iterator(),function(o){o.id||(o.id=_.getUniqueId());var l=o.relevant(a);(l&&!e.isApplied(o.id)||!l&&e.isApplied(o.id))&&(n=!0),e._appliedRules[o.id]=l}),t&&(n=!0),n)){if(!this.component.isReady()){a.hidden=!0,a.events.once("ready",function(o){o.target.show(0),e._applyRules()});return}this.dispatchImmediately("ruleschanged"),this._applyRules()}}},i.prototype._applyRules=function(){var t=this;this._timeout&&this._timeout.dispose(),this._timeout=this.setTimeout(function(){t.applyRules()},10)},i.prototype.applyRules=function(t){var e=this,r=b(t)?t:xt(this.component),n=!1;if(this.enabled){var a=!1;A(this.allRules.iterator(),function(o){var l=e.getState(o,r);l&&(n||(me(e._appliedTargets,r.uid)!==-1&&r.setState(e.getDefaultState(r),0),n=!0),e.isApplied(xt(o.id))&&(l.transitionDuration=0,e.setTarget
171State(r,l),e.dispatchImmediately("ruleapplied",{rule:o}),a=!0))}),a?yh(this._appliedTargets,r.uid):G(this._appliedTargets,r.uid)}r.children&&A(r.children.iterator(),function(o){e.applyRules(o)})},i.prototype.getState=function(t,e){var r="responsive-"+t.id,n=e.uid+"_"+r;if(me(this._noStates,n)===-1){if(e.states.hasKey(r))return e.states.getKey(r);var a=t.state(e,r);return a||this._noStates.push(n),a}},i.prototype.getDefaultState=function(t){return t.states.hasKey("responsive-default")?t.states.getKey("responsive-default"):t.states.create("responsive-default")},i.prototype.setTargetState=function(t,e){var r=this,n=this.getDefaultState(t);U(e.properties,function(a,o){b(n.properties[a])||(n.properties[a]=r.getValue(t,a))}),t.setState(e)},i.prototype.getValue=function(t,e){var r=t.getPropertyValue(e);return!b(r)&&b(t[e])&&(r=t[e]),r},i.prototype.dispose=function(){this.disposeResponsiveHandlers(),s.prototype.dispose.call(this)},i.prototype.disposeResponsiveHandlers=function(){for(var t=this._responsiveDisposers.pop();t;)t.dispose(),t=this._responsiveDisposers.pop()},i}(Ve),Nt=new rt;Nt.events.on("inserted",function(s){s.newValue.id=_.getUniqueId()});var Kt=function(){function s(){}return s.widthXXS=function(i){return i.pixelWidth<=s.XXS},s.widthXS=function(i){return i.pixelWidth<=s.XS},s.widthS=function(i){return i.pixelWidth<=s.S},s.widthM=function(i){return i.pixelWidth<=s.M},s.widthL=function(i){return i.pixelWidth<=s.L},s.widthXL=function(i){return i.pixelWidth<=s.XL},s.widthXXL=function(i){return i.pixelWidth<=s.XXL},s.heightXXS=function(i){return i.pixelHeight<=s.XXS},s.heightXS=function(i){return i.pixelHeight<=s.XS},s.heightS=function(i){return i.pixelHeight<=s.S},s.heightM=function(i){return i.pixelHeight<=s.M},s.heightL=function(i){return i.pixelHeight<=s.L},s.heightXL=function(i){return i.pixelHeight<=s.XL},s.heightXXL=function(i){return i.pixelHeight<=s.XXL},s.isXXS=function(i){return i.pixelWidth<=s.XXS&&i.pixelHeight<=s.XXS},s.isXS=function(i){return i.pixelWidth<=s.XS&&i.pixelHeight<=s.XS},s.isS=function(i){return i.pixelWidth<=s.S&&i.pixelHeight<=s.S},s.isM=function(i){return i.pixelWidth<=s.M&&i.pixelHeight<=s.M},s.isL=function(i){return i.pixelWidth<=s.L&&i.pixelHeight<=s.L},s.isXL=function(i){return i.pixelWidth<=s.XL&&i.pixelHeight<=s.XL},s.isXXL=function(i){return i.pixelWidth<=s.XXL&&i.pixelHeight<=s.XXL},s.maybeXXS=function(i){return i.pixelWidth<=s.XXS||i.pixelHeight<=s.XXS},s.maybeXS=function(i){return i.pixelWidth<=s.XS||i.pixelHeight<=s.XS},s.maybeS=function(i){return i.pixelWidth<=s.S||i.pixelHeight<=s.S},s.maybeM=function(i){return i.pixelWidth<=s.M||i.pixelHeight<=s.M},s.maybeL=function(i){return i.pixelWidth<=s.L||i.pixelHeight<=s.L},s.maybeXL=function(i){return i.pixelWidth<=s.XL||i.pixelHeight<=s.XL},s.maybeXXL=function(i){return i.pixelWidth<=s.XXL||i.pixelHeight<=s.XXL},s.XXS=100,s.XS=200,s.S=300,s.M=400,s.L=600,s.XL=800,s.XXL=1e3,s}(),ri=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._disabled=!1,t.hasProperties=!1,t.values={},t.categories={},t.dates={},t.locations={},t.workingLocations={},t.properties={},t.sprites=[],t.isTemplate=!1,t._index=null,t._visible=!0,t._hidden=!1,t._ignoreMinMax=!1,t.hasChildren={},t.isHiding=!1,t._valueAnimations={},t._locationAnimations={},t.className="DataItem",t.applyTheme(),t}return Object.defineProperty(i.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new ne(this)),this._adapterO},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"index",{get:function(){return this.component&&this._index!=null?this._index:-1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new bi(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return this._hidden?!1:this._visible},set:function(t){t&&(this.hidden=!1),this._visible!=t&&this.setVisibility(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hidden",{get:function(){return this._hidden},set:function(t){this._hidden!=t&&(this._hidden=t,t?this.setVisibility(!1):this.setVisibility(!0,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,L(this.sprites,function(e){e.__disabled=t})},enumerable:!0,configurable:!0}),i.prototype.setVisibility=function(t,e){if(L(this.sprites,function(n){t?n.visible=n.defaultState.properties.visible:n.hiddenState?n.visible=n.hiddenState.properties.visible:n.visible=!1}),this._visible=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("visibilitychanged")){var r={type:"visibilitychanged",target:this,visible:t};this.events.dispatchImmediately("visibilitychanged",r)}},i.prototype.show=function(t,e,r){var n=this;if(!this.hidden){this.setVisibility(!0,!0),this.isHiding=!1,this._hideDisposer&&this.removeDispose(this._hideDisposer);var a;return r&&L(r,function(o){a=n.setWorkingValue(o,n.values[o].value,t,e)}),L(this.sprites,function(o){var l=o.show(t);l!=null&&!l.isFinished()&&(n._disposers.push(l),e!=null&&e>0&&l.delay(e))}),a}},i.prototype.dispose=function(){s.prototype.dispose.call(this),L(this.sprites,function(t){t.dispose()}),this.sprites=[]},i.prototype.hide=function(t,e,r,n){var a=this;if(this.isHiding=!0,L(this.sprites,function(l){var h=l.hide(t);h!=null&&!h.isFinished()&&(a._disposers.push(h),e!=null&&e>0&&h.delay(e))}),v(r)&&n){var o;if(L(n,function(l){var h=a.setWorkingValue(l,r,t,e);h&&(o=h)}),o&&!o.isFinished())return this._hideDisposer=o.events.on("animationended",function(){a.setVisibility(!1,!0),a.isHiding=!1}),this._disposers.push(this._hideDisposer),o;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},i.prototype.getDuration=function(t){if(!v(t)){var e=this.component;e&&(t=e.interpolationDuration)}if(t!=null)return this._adapterO?this._adapterO.apply("duration",t):t},i.prototype.getValue=function(t,e){if(t&&this.component){e||(e=this.component.dataFields[t+"Show"],e||(e="value"));var r=this.values[t][e];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:r,field:t}).value:r}},i.prototype.getWorkingValue=function(t){if(t&&this.component){var e=this.component.dataFields[t+"Show"];return e||(e="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[t][e],field:t}).workingValue:this.values[t][e]}},i.prototype.getActualWorkingValue=function(t){return this.values[t].workingValue},i.prototype.setValue=function(t,e,r,n){var a=this.values[t].value,o=this.getDuration(r);if(e=dt(e),a!==e){if(this.values[t].value=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")){var l={type:"valuechanged",target:this,property:t};this.events.dispatchImmediately("valuechanged",l)}this.component&&this.component.handleDataItemValueChange(this,t)}this.setWorkingValue(t,e,o,n)},i.prototype.setCalculatedValue=function(t,e,r){var n=this.values[t][r];if(n!==e&&v(e)){if(this.values[t][r]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")){var a={type:"calculatedvaluechanged",target:this,property:t};this.events.dispatchImmediately("calculatedvaluechanged",a)}this.component&&this.component.handleDataItemCalculatedValueChange(this,t)}},i.prototype.setWorkingValue=function(t,e,r,n){if(v(this.values[t].value)){var a=this.getDuration(r),o=this.values[t].workingValue;if(a!=null&&a>0&&v(o)&&this.component)if(o!=e){var l=this.animate({childObject:this.values[t],property:"workingValue",from:o,to:e,dummyData:t},a,this.component.interpolationEasing);return n!=null&&l.delay(n),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[t]=l,l}else{var h=this._valueAnimations[t];h&&h.stop(),this.values[t].workingValue=e}else{var h=this._valueAnimations[t];if(h&&h.stop(),this.values[t].workingValue=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var u={type:"workingvaluechanged",target:this,property:t};this.events.dispatchImmediately("workingvaluechanged",u)}this.component&&this.component.handleDataItemWorkingValueChange(this,t)}}},i.prototype.setLocation=function(t,e,r,n){var a=this.locations[t];if(a!==e){if(this.locations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")){var o={type:"locationchanged",target:this,property:t};this.events.dispatchImmediately("locationchanged",o)}this.component&&this.component.handleDataItemValueChange(this,t),this.setWorkingLocation(t,e,r,n)}},i.prototype.setWorkingLocation=function(t,e,r,n){var a=this.getDuration(r),o=this.workingLocations[t];if(a!=null&&a>0&&v(o)&&this.component)if(o!=e){var l=this.animate({childObject:this.workingLocations,property:t,from:o,to:e,dummyData:t},a,this.component.interpolationEasing);return n!=null&&l.delay(n),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[t]=l,l}else{var h=this._locationAnimations[t];h&&h.stop(),this.workingLocations[t]=e}else{var h=this._locationAnimations[t];if(h&&h.stop(),this.workingLocations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")){var u={type:"workinglocationchanged",target:this,property:t};this.events.dispatchImmediately("workinglocationchanged",u)}this.component&&this.component.handleDataItemWorkingLocationChange(this,t)}},i.prototype.setDate=function(t,e,r){!Li(e)&&this.component&&(e=this.component.dateFormatter.parse(e));var n=this.dates[t];n!==e&&(this.dates[t]=e,this.setValue(t,e.getTime(),r))},i.prototype.getDate=function(t){return this._adapterO?this._adapterO.apply("date",{date:this.dates[t],field:t}).date:this.dates[t]},i.prototype.setProperty=function(t,e){if(this.properties[t]!==e){if(this.hasProperties=!0,this.properties[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var r={type:"propertychanged",target:this,property:t,value:e};this.events.dispatchImmediately("propertychanged",r)}this.component&&this.component.handleDataItemPropertyChange(this,t)}},i.prototype.setCategory=function(t,e){tt(e)||(e=ls(e)),this.categories[t]!==e&&(this.categories[t]=e)},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),t.dataContext&&(this.dataContext=Uh(t.dataContext,{})),Me(t.locations,this.locations),t._adapterO&&this.adapter.copyFrom(t._adapterO),this.component=t.component},Object.defineProperty(i.prototype,"opacity",{set:function(t){L(this.sprites,function(e){e.opacity=t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){if(this._ignoreMinMax=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var e={type:"propertychanged",target:this,property:"ignoreMinMax",value:t};this.events.dispatchImmediately("propertychanged",e)}this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),i.prototype.animate=function(t,e,r){return new ge(this,t,e,r).start()},i.prototype.handleInterpolationProgress=function(t){var e=t.target,r=e.animationOptions[0];if(r){if(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var n={type:"workingvaluechanged",target:this,property:r.dummyData};this.events.dispatchImmediately("workingvaluechanged",n)}this.component&&this.component.handleDataItemWorkingValueChange(this,r.dummyData)}},i.prototype.hasValue=function(t){for(var e=0,r=t.length;e<r;e++){var n=this.values[t[e]];if(!n||!b(n.value))return!1}return!0},Object.defineProperty(i.prototype,"depth",{get:function(){return this.parent?this.parent.depth+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataContext",{get:function(){return this._dataContext},set:function(t){this._dataContext=t},enumerable:!0,configurable:!0}),i.prototype.addSprite=function(t){t.dataItem&&t.dataItem!=this&&G(t.dataItem.sprites,t),this.visible||t.hide(0),this.isHiding&&t.hide(),this.sprites.push(t),t.dataItem=this},i}(Ve),xi=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.dataFields={},t._dataSources={}
171,t._parseDataFrom=0,t._dataDisposers=[],t._currentDataSetId="",t._start=0,t._end=1,t.skipRangeEvent=!1,t.rangeChangeDuration=0,t.rangeChangeEasing=ii,t.parsingStepDuration=50,t.dataInvalid=!1,t.rawDataInvalid=!1,t.dataRangeInvalid=!1,t.dataItemsInvalid=!1,t.interpolationDuration=0,t.interpolationEasing=ii,t.sequencedInterpolation=!0,t.sequencedInterpolationDelay=0,t.dataValidationProgress=0,t._addAllDataItems=!0,t._usesData=!0,t.className="Component",t.minZoomCount=1,t.maxZoomCount=0,t._dataItems=new Fr(t.createDataItem()),t._dataItems.events.on("inserted",t.handleDataItemAdded,t,!1),t._dataItems.events.on("removed",t.handleDataItemRemoved,t,!1),t._disposers.push(new ft(t._dataItems)),t._disposers.push(t._dataItems.template),t.invalidateData(),t.dataUsers.events.on("inserted",t.handleDataUserAdded,t,!1),t._disposers.push(new Pt(t._dataDisposers)),t._start=0,t._end=1,t.maxZoomDeclination=1,t.applyTheme(),t}return i.prototype.createDataItem=function(){return new ri},i.prototype.handleDataUserAdded=function(t){var e=t.newValue;e.dataProvider=this},i.prototype.handleDataItemValueChange=function(t,e){this.dataItemsInvalid||this.invalidateDataItems()},i.prototype.handleDataItemWorkingValueChange=function(t,e){},i.prototype.handleDataItemWorkingLocationChange=function(t,e){},i.prototype.handleDataItemCalculatedValueChange=function(t,e){},i.prototype.handleDataItemPropertyChange=function(t,e){},i.prototype.processDataItem=function(t,e){var r=this;if(t){e||(e={}),t.dataContext=e;var n=!1;U(this.dataFields,function(a,o){var l=a,h=e[o];if(r._adapterO&&r._adapterO.isEnabled("dataContextValue")&&(h=r._adapterO.apply("dataContextValue",{field:l,value:h,dataItem:t}).value),b(h))if(n=!0,t.hasChildren[l]){var u=r.createDataItem();u.copyFrom(r.mainDataSet.template);var p=new Fr(u);p.events.on("inserted",r.handleDataItemAdded,r,!1),p.events.on("removed",r.handleDataItemRemoved,r,!1),r._dataDisposers.push(new ft(p));for(var d=h.length,f=0;f<d;f++){var c=h[f],y=p.create();y.parent=t,r.processDataItem(y,c)}var g=t;g[l]=p}else t[l]=h}),U(this.propertyFields,function(a,o){var l=a,h=e[o];b(h)&&(n=!0,t.setProperty(l,h))}),!this._addAllDataItems&&!n&&this.mainDataSet.remove(t)}},i.prototype.updateDataItem=function(t){var e=this;if(t){var r=t.dataContext;U(this.dataFields,function(n,a){var o=n,l=r[a];if(e._adapterO&&(l=e._adapterO.apply("dataContextValue",{field:o,value:l,dataItem:t}).value),b(l))if(t.hasChildren[o]){var h=t,u=h[o];u.each(function(p){e.updateDataItem(p)})}else t[o]=l}),U(this.propertyFields,function(n,a){var o=n,l=r[a];b(l)&&t.setProperty(o,l)})}},i.prototype.validateDataElements=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++){var r=this.dataItems.getIndex(e);r&&this.validateDataElement(r)}},i.prototype.validate=function(){this.validateDataElements(),s.prototype.validate.call(this)},i.prototype.validateDataElement=function(t){},i.prototype.addData=function(t,e,r){var n=this;if(!this.dataInvalid&&this.inited&&(this._parseDataFrom=this.data.length),r||(t instanceof Array?L(t,function(a){n.data.push(a)}):this.data.push(t)),this.inited)this.removeData(e,r);else if(v(e))for(;e>0;)this.data.shift(),e--;this.invalidateData()},i.prototype.removeData=function(t,e){if(v(t)&&t>0){for(;t>0;){var r=this.mainDataSet.getIndex(0);r&&this.mainDataSet.remove(r),this.dataUsers.each(function(n){if(!n.data||n.data.length==0){var a=n.mainDataSet.getIndex(0);a&&n.mainDataSet.remove(a)}}),e||this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,t--}this.invalidateDataItems()}},i.prototype.invalidateData=function(){this.disabled||this.isTemplate||(_.addToInvalidComponents(this),J.requestFrame(),this.dataInvalid=!0,A(this.dataUsers.iterator(),function(t){t.invalidateDataItems()}))},i.prototype.invalidateDataUsers=function(){A(this.dataUsers.iterator(),function(t){t.invalidate()})},i.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(fe(_.invalidDataItems,this),J.requestFrame(),this.dataItemsInvalid=!0,A(this.dataUsers.iterator(),function(t){t.invalidateDataItems()}))},i.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,fe(_.invalidDataRange,this),J.requestFrame())},i.prototype.validateDataRange=function(){G(_.invalidDataRange,this),this.dataRangeInvalid=!1,(this.startIndex!=this._prevStartIndex||this.endIndex!=this._prevEndIndex)&&(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},i.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},i.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},i.prototype.appendDataItems=function(){for(var t=this.endIndex,e=this.startIndex;e<t;e++){var r=this.dataItems.getIndex(e);r&&(r.__disabled=!1)}for(var e=0;e<this.startIndex;e++){var r=this.dataItems.getIndex(e);r&&(r.__disabled=!0)}for(var e=this.endIndex;e<this.dataItems.length;e++){var r=this.dataItems.getIndex(e);r&&(r.__disabled=!0)}},i.prototype.invalidateRawData=function(){this.disabled||this.isTemplate||(fe(_.invalidRawDatas,this),J.requestFrame(),this.rawDataInvalid=!0,A(this.dataUsers.iterator(),function(t){t.invalidateRawData()}))},i.prototype.validateRawData=function(){var t=this;G(_.invalidRawDatas,this),A(this.mainDataSet.iterator(),function(e){e&&t.updateDataItem(e)})},i.prototype.dispose=function(){var t=this;this.mainDataSet.template.clones.clear(),U(this._dataSources,function(e,r){t.removeDispose(r)}),this.disposeData(),s.prototype.dispose.call(this)},i.prototype.disposeData=function(){this.mainDataSet.template.clones.clear(),L(this._dataDisposers,function(t){t.dispose()}),A(this.dataUsers.iterator(),function(t){t.disposeData()}),this._dataDisposers.length=0,this._startIndex=void 0,this._endIndex=void 0,this.mainDataSet.clear(),this.mainDataSet.template.clones.clear(),this._dataSets&&this._dataSets.clear()},i.prototype.getDataItem=function(t){return this.mainDataSet.create()},i.prototype.validateData=function(){if(this.dispatchImmediately("beforedatavalidated"),this.dataInvalid=!1,_.removeFromInvalidComponents(this),!this.__disabled){if(this.dataValidationProgress=0,this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.dataFields.data&&this.dataItem){var t=this.dataItem.dataContext;this._data=t[this.dataFields.data]}if(this._parseDataFrom===0&&this.data.length>0&&this.disposeData(),this.data.length>0){var e=this.preloader;A(this.dataUsers.iterator(),function(p){p._startIndex=void 0,p._endIndex=void 0});var r=0,n=Date.now(),a=this._parseDataFrom,o=this.data.length,l=function(){var p=h.data[a];if(h._usesData){var d=h.getDataItem(p);h.processDataItem(d,p)}if(h.dataUsers.each(function(c){if(c.data.length==0){var y=c.getDataItem(p);c.processDataItem(y,p)}}),r++,r==100){r=0;var f=Date.now()-n;if(f>h.parsingStepDuration&&a<h.data.length-10)return h._parseDataFrom=a+1,e&&(a/h.data.length>.5&&!e.visible||(e.progress=a/h.data.length)),h.dataValidationProgress=a/h.data.length,a=h.data.length,h.invalidateData(),{value:void 0}}},h=this;for(a;a<o;a++){var u=l();if(typeof u=="object")return u.value}e&&(e.progress=1),this.dataUsers.each(function(p){(p.hidden||p.appeared&&!p.visible&&p.stacked)&&p.hide(0)})}this.dataValidationProgress=1,this._parseDataFrom=0,this.invalidateDataItems(),this._internalDefaultsApplied||this.applyInternalDefaults(),this.dispatch("datavalidated")}},i.prototype.validateDataItems=function(){G(_.invalidDataItems,this),this.dataItemsInvali
171d=!1,this.invalidateDataRange(),this.invalidate(),this.dispatch("dataitemsvalidated")},Object.defineProperty(i.prototype,"data",{get:function(){return this._data||(this._data=[]),this._adapterO?this._adapterO.apply("data",this._data):this._data},set:function(t){this.setData(t)},enumerable:!0,configurable:!0}),i.prototype.setData=function(t){this.isDisposed()||(this._parseDataFrom=0,this.disposeData(),this._data=t,t&&t.length>0?this.invalidateData():(this.dispatchImmediately("beforedatavalidated"),this.dispatch("datavalidated")))},i.prototype.getDataSource=function(t){var e=this;return b(this._dataSources[t])||(this._dataSources[t]=new vp,this._dataSources[t].component=this,this.setDataSourceEvents(this._dataSources[t],t),this._dataSources[t].adapter.add("dateFields",function(r){return e.dataSourceDateFields(r)}),this._dataSources[t].adapter.add("numberFields",function(r){return e.dataSourceNumberFields(r)}),this.events.on("inited",function(){e.loadData(t)},this,!1)),this._dataSources[t]},Object.defineProperty(i.prototype,"dataSource",{get:function(){return this._dataSources.data||this.getDataSource("data"),this._dataSources.data},set:function(t){var e=this;this._dataSources.data&&this.removeDispose(this._dataSources.data),this._dataSources.data=t,this._dataSources.data.component=this,this.events.on("inited",function(){e.loadData("data")},this,!1),this.setDataSourceEvents(t,"data")},enumerable:!0,configurable:!0}),i.prototype.loadData=function(t){this._dataSources[t].load()},i.prototype.dataSourceDateFields=function(t){return t},i.prototype.dataSourceNumberFields=function(t){return t},i.prototype.populateDataSourceFields=function(t,e,r){return L(r,function(n){e[n]&&me(t,e[n])===-1&&t.push(e[n])}),t},i.prototype.setDataSourceEvents=function(t,e){var r=this;t.events.on("started",function(n){var a=r.preloader;a&&(a.progress=0)},void 0,!1),t.events.on("loadstarted",function(n){var a=r.preloader;a&&(a.progress=.25)},void 0,!1),t.events.on("loadended",function(n){var a=r.preloader;a&&(a.progress=.5)},void 0,!1),t.events.on("parseended",function(n){var a=r.preloader;a&&(a.progress=.75)},void 0,!1),t.events.on("ended",function(n){var a=r.preloader;a&&(a.progress=1)},void 0,!1),t.events.on("error",function(n){var a=r.preloader;a&&(a.progress=1),r.openModal(n.message)},void 0,!1),e&&t.events.on("done",function(n){var a=r.preloader;a&&(a.progress=1),e=="data"&&!Wt(n.data)&&(n.data=[n.data]),t.incremental&&e=="data"&&r.data.length?r.addData(n.data,t.keepCount?n.data.length:0):t.updateCurrentData&&e=="data"&&r.data.length?(L(r.data,function(o,l){b(n.data[l])&&U(o,function(h,u){b(n.data[l][h])&&(o[h]=n.data[l][h])})}),r.invalidateRawData()):r[e]=n.data})},Object.defineProperty(i.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new mp,this._responsive.component=this),this._responsive},set:function(t){this._responsive=t,this._responsive.component=this},enumerable:!0,configurable:!0}),i.prototype.zoom=function(t,e,r,n){var a=this;e===void 0&&(e=!1),r===void 0&&(r=!1);var o=t.start,l=t.end,h=t.priority;if(t.start==t.end&&(t.start=t.start-.5/this.maxZoomFactor,t.end=t.end+.5/this.maxZoomFactor),h=="end"&&l==1&&o!=0&&o<this.start&&(h="start"),h=="start"&&o==0&&l>this.end&&(h="end"),v(n)||(n=this.maxZoomDeclination),!v(o)||!v(l))return{start:this.start,end:this.end};if(this._finalStart!=o||this._finalEnd!=l){var u=this.maxZoomFactor/this.minZoomCount,p=this.maxZoomFactor/this.maxZoomCount;if(h=="start"?(this.maxZoomCount>0&&1/(l-o)<p&&(l=o+1/p),1/(l-o)>u&&(l=o+1/u),l>1&&l-o<1/u&&(o=l-1/u)):(this.maxZoomCount>0&&1/(l-o)<p&&(o=l-1/p),1/(l-o)>u&&(o<=0?l=o+1/u:o=l-1/u),o<0&&l-o<1/u&&(l=o+1/u)),o<-n&&(o=-n),1/(l-o)>u&&(l=o+1/u),l>1+n&&(l=1+n),1/(l-o)>u&&(o=l-1/u),this._finalEnd=l,this._finalStart=o,this.skipRangeEvent=e,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!r){var d=this.rangeChangeAnimation;if(d&&d.progress<1){var f=d.animationOptions;if(f.length>1){if(f[0].to==o&&f[1].to==l)return{start:o,end:l};d.isDisposed()||d.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),d=this.animate([{property:"start",to:o},{property:"end",to:l}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=d,d&&!d.isFinished()?d.events.on("animationended",function(){a.dispatchImmediately("rangechangeended")}):this.dispatchImmediately("rangechangeended")}else this.start=o,this.end=l,this.dispatch("rangechangeended")}return{start:o,end:l}},i.prototype.zoomToIndexes=function(t,e,r,n){if(!(!v(t)||!v(e))){var a=t/this.dataItems.length,o=e/this.dataItems.length;this.zoom({start:a,end:o}
171,r,n)}},Object.defineProperty(i.prototype,"zoomFactor",{get:function(){return B(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(t){this.setPropertyValue("maxZoomFactor",t)&&(t==1&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(t){this.setPropertyValue("maxZoomDeclination",t)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return v(this._startIndex)||(this._startIndex=0),this._startIndex},set:function(t){this._startIndex=B(Math.round(t),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),i.prototype.indexToPosition=function(t){return t/this.dataItems.length},Object.defineProperty(i.prototype,"endIndex",{get:function(){var t=this.dataItems.length;return(!v(this._endIndex)||this._endIndex>t)&&(this._endIndex=t),this._endIndex},set:function(t){this._endIndex=B(Math.round(t),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(t){if(this._start!=t){this._start=t;var e=Math.max(0,Math.floor(this.dataItems.length*t)||0);this._startIndex=Math.min(e,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(t){this._end!=t&&(this._end=t,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*t)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),i.prototype.removeFromInvalids=function(){s.prototype.removeFromInvalids.call(this),_.removeFromInvalidComponents(this),G(_.invalidDataItems,this),G(_.invalidDataRange,this),G(_.invalidRawDatas,this)},Object.defineProperty(i.prototype,"dataItems",{get:function(){if(this._currentDataSetId!=""){var t=this.dataSets.getKey(this._currentDataSetId);if(t)return t}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new ct),this._dataSets},enumerable:!0,configurable:!0}),i.prototype.setDataSet=function(t){if(this._currentDataSetId!=t){var e=this.dataSets.getKey(t);if(e)return this.dataItems.each(function(r){r.__disabled=!0}),this._currentDataSetId=t,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(r){r.__disabled=!1}),!0;if(this._currentDataSetId!="")return this.dataItems.each(function(r){r.__disabled=!0}),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(r){r.__disabled=!1}),!0}return!1},Object.defineProperty(i.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),i.prototype._updateDataItemIndexes=function(t){for(var e=this.mainDataSet.values,r=e.length,n=t;n<r;++n)e[n]._index=n},i.prototype.handleDataItemAdded=function(t){t.newValue.component=this,this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},i.prototype.handleDataItemRemoved=function(t){this._updateDataItemIndexes(t.index),this.dataItemsInvalid||this.invalidateDataItems()},i.prototype.bindDataField=function(t,e){this.dataFields[t]=e,this.invalidateDataRange()},i.prototype.invalidateProcessedData=function(){this.resetProcessedRange(),this.invalidateDataRange()},i.prototype.resetProcessedRange=function(){this._prevEndIndex=null,this._prevStartIndex=null},Object.defineProperty(i.prototype,"dataUsers",{get:function(){var t=this;return this._dataUsers||(this._dataUsers=new rt,this._disposers.push(new lt(function(){A(t._dataUsers.iterator(),function(e){e.dispose()})}))),this._dataUsers},enumerable:!0,configurable:!0}),i.prototype.clone=function(){var t=s.prototype.clone.call(this);return t.dataFields=Me(this.dataFields,{}),t},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.data=t.data,this.sequencedInterpolation=t.sequencedInterpolation,this.sequencedInterpolationDelay=t.sequencedInterpolationDelay,this.interpolationDuration=t.interpolationDuration,this.interpolationEasing=t.interpolationEasing},i.prototype.reinit=function(){this._inited=!1,this.deepInvalidate()},i.prototype.getExporting=function(){var t=s.prototype.getExporting.call(this);return t.adapter.has("data",this._exportData,-1,this)||(t.adapter.add("data",this._exportData,-1,this),this.events.on("datavalidated",function(e){t.handleDataUpdated()})),t},i.prototype._exportData=function(t){return t.data=this.data,t},i.prototype.setDisabled=function(t){var e=s.prototype.setDisabled.call(this,t);return e&&this.invalidateData(),e},i.prototype.setShowOnInit=function(t){t!=this.getPropertyValue("showOnInit")&&(t&&!this.inited&&!this.hidden?(this._showOnInitDisposer2=this.events.once("dataitemsvalidated",this.hideInitially,this,!1),this._disposers.push(this._showOnInitDisposer2)):this._showOnInitDisposer2&&this.removeDispose(this._showOnInitDisposer2)),s.prototype.setShowOnInit.call(this,t)},i.prototype.setBaseId=function(t){t!=this._baseId&&this.dataInvalid&&(this.dataInvalid=!1,_.removeFromInvalidComponents(this),this._baseId=t,this.invalidateData()),s.prototype.setBaseId.call(this,t)},Object.defineProperty(i.prototype,"minZoomCount",{get:function(){return this.getPropertyValue("minZoomCount")}
171,set:function(t){this.setPropertyValue("minZoomCount",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomCount",{get:function(){return this.getPropertyValue("maxZoomCount")},set:function(t){this.setPropertyValue("maxZoomCount",t)},enumerable:!0,configurable:!0}),i.prototype._systemCheckIfValidate=function(){return!(this.dataInvalid||this.dataProvider&&this.dataProvider.dataInvalid)},i.prototype.asFunction=function(t){return t=="interpolationEasing"||t=="rangeChangeEasing"||s.prototype.asIs.call(this,t)},i}(N);_.registeredClasses.Component=xi;var te=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.isOversized=!1,t.className="Label",t.fill=new nt().getFor("text"),t.wrap=!1,t.truncate=!1,t.fullWords=!0,t.ellipsis="…",t.textAlign="start",t.textValign="top",t.layout="absolute",t.baseLineRatio=-.27,t._positionPrecision=1,t.events.on("maxsizechanged",function(){t.inited&&t.handleMaxSize()},t,!1),t.events.once("validated",t.handleValidate,t,!1),t.applyTheme(),t}return i.prototype.afterDraw=function(){s.prototype.afterDraw.call(this),this.validatePosition()},i.prototype.setPaper=function(t){var e=s.prototype.setPaper.call(this,t);return e&&this.hardInvalidate(),e},i.prototype.handleValidate=function(){(this.currentText||this.text)&&(this.bbox.width==0||this.bbox.height==0)&&_.events.once("exitframe",this.hardInvalidate,this)},i.prototype.handleMaxSize=function(){(this.bbox.width>this.availableWidth||this.bbox.width<this.availableWidth&&(this.isOversized||this.truncate)||this.bbox.height>this.availableHeight||this.bbox.height<this.availableHeight&&this.isOversized)&&this.invalidate()},i.prototype.arrange=function(){},i.prototype.updateCurrentText=function(){var t,e;Mr(this.html)&&this.paper.supportsForeignObject()?(t="html",e=this.html):(t="svg",e=this.text),gt(e)&&(e=e.toString()),b(e)&&e!==""&&(e=this.populateString(e,this.dataItem)),t=="html"?this._adapterO&&(e=this._adapterO.apply("htmlOutput",e)):this._adapterO&&(e=this._adapterO.apply("textOutput",e));var r=e!=this.currentText||t!=this._currentFormat;return this.currentText=e,this._currentFormat=t,r},i.prototype.hardInvalidate=function(){this._prevStatus="",this.invalidate()},i.prototype.getLineBBox=function(t){var e=t&&t.element,r=e&&e.node;r&&r.parentNode&&(t.bbox=e.getBBox())},i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.bbox.width,e=this.bbox.height,r=this.topParent;if(r&&(!r.maxWidth||!r.maxHeight)){r.events.once("maxsizechanged",this.hardInvalidate,this,!1);return}var n=q(this.availableWidth-this.pixelPaddingLeft-this.pixelPaddingRight,0),a=q(this.availableHeight-this.pixelPaddingTop-this.pixelPaddingBottom,0),o=a+","+n+this.wrap+this.truncate+this.fullWords+this.rtl+this.ellipsis;if(!(!this.updateCurrentText()&&this.inited&&this._prevStatus==o)){this._measuredWidth=0,this._measuredHeight=0,this.isOversized=!1;var l=this._currentFormat,h=this.currentText;if(!b(h)||h==""){this.element.attr({display:"none"});return}var u=h.split(`
172`);this._prevStatus=o,this.textAlign=this.textAlign;var p=this.group.getAttr("display");if(p=="none"&&this.group.removeAttr("display"),this.textPathElement&&this.textPathElement.removeChildren(),l==="svg"){this.element.removeAttr("display");var d=this.element;this.resetBBox();for(var f=0,c="",y=0;y<u.length;y++){var g=u[y];if(g==""){var m=this.getSVGLineElement("",0);m.add(this.getSvgElement(".",Ie().translateStyleShortcuts(c))),d.add(m);var x=Math.ceil(m.getBBox().height);x>0&&(f+=x),d.removeElement(m);var P=this.getLineInfo(y);P&&(P.text="",P.element.textContent="");continue}var S=Ie().chunk(g,null,this.ignoreFormatting),C=0,O=!0,T=!1,D=this.getLineInfo(y);D?(D.text="",D.element.textContent=""):(D={text:"",element:this.getSVGLineElement("",0),complex:!1},d.add(D.element)),D.element.removeAttr("display"),D.element.removeChildren(),this.textPathElement&&D.element.add(this.textPathElement);for(var k=0;k<S.length;k++){k&&(D.complex=!0);var z=S[k];if(z.type==="format")c=z.text;else{if(T)continue;if(D.text=z.text,D.style=Ie().translateStyleShortcuts(c),this.textPathElement?this.get
172SvgElement(D.text,D.style,this.textPathElement):this.getSvgElement(D.text,D.style,D.element),this.getLineBBox(D),D.bbox.width=Math.ceil(D.bbox.width),C<D.bbox.height&&(C=D.bbox.height),(this.wrap||this.truncate)&&D.bbox.width>n){this.isOversized=!0;var R=D.element.textContent,W=D.bbox.width/R.length,ot=et(Math.ceil((D.bbox.width-n)/W),R.length);if(this.truncate){var Ft=!1,zt=D.element.node;if(zt&&zt.childNodes)for(var Y=D.element.node.childNodes.length-1;Y>=0;Y--){var Dt=D.element.node.childNodes[Y];if(Ft&&D.bbox.width<=n&&(Dt.textContent+=" "+this.ellipsis,D.bbox=D.element.getBBox(),D.bbox.width=Math.floor(D.bbox.width),D.bbox.width<=n))break;Ft=!1;var It=Dt.textContent;for(R=D.element.textContent,ot=et(Math.ceil((D.bbox.width-n)/W),R.length);D.bbox.width>n&&ot<=R.length&&ot>0;){var Tt=q(R.length-ot-this.ellipsis.length,1);Tt<=1&&(ot=0,Y>0&&(Ft=!0,D.element.node.removeChild(Dt))),It=Xn(It,Tt,this.ellipsis,this.fullWords,this.rtl),It.length>Tt&&this.fullWords&&(It=Xn(It,Tt,this.ellipsis,!1,this.rtl)),Dt.textContent=It,D.bbox=D.element.getBBox(),D.bbox.width=Math.floor(D.bbox.width),ot=Math.ceil(ot*1.1)}T=!0}}else{var qt=D.element.node;if(qt){for(var Mt=D.element.node.lastChild,X=void 0;D.bbox.width>n&&ot<=R.length&&ot>0;){var Tt=q(z.text.length-ot,1);if(O?X=zn(z.text,Tt,!0,this.rtl):(X=zn(z.text,Tt,!0,this.rtl,!1),(X[0].length>Tt||Tt===1)&&(D.element.node.removeChild(Mt),ot=0)),ot>0){var ht=X.shift();O&&(ht=Za(ht)),Mt.textContent=Ie().cleanUp(ht)}D.bbox=D.element.getBBox(),D.bbox.width=Math.floor(D.bbox.width),ot++}if(X.length>0){var _t="";b(X)&&(this.rtl?_t+=X.join("")+c:_t+=c+X.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var ue=k+1;ue<S.length;ue++)S[ue].type=="value"?_t+=S[ue].text.replace(/([\[\]]{1})/g,"$1$1"):_t+=S[ue].text;u.splice(y+1,0,_t)}T=!0}}}this.bbox.width<D.bbox.width&&(this.bbox.width=D.bbox.width),this.bbox.height=f+C,this.textPathElement?D.element.attr({dy:-this.paddingBottom.toString()}):D.element.attr({x:"0",y:f+C,dy:F(this.baseLineRatio*C,3).toString()}),O=!1}}var se=D.element.node;if(se){var Mt=se.lastChild;Mt&&(Mt.textContent=this.rtl?qh(Mt.textContent):Kh(Mt.textContent))}f+=C,this.addLineInfo(D,y)}this.maybeHideOversized(),this.measureFailed=!1,(this.bbox.width==0||this.bbox.height==0)&&(this.measureFailed=!0),this._measuredWidth=F(q(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=F(q(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,(e!=this._measuredHeight||t!=this._measuredWidth)&&this.dispatch("transformed"),this.hideUnused(u.length)}else{this.element.removeAttr("display"),this.resetBBox();var d=this.element;d.removeChildren(),this.setCache("lineInfo",[],0);var Jt=this.paper.foreignObject();d.add(Jt),this.maxWidth&&Jt.attr({width:this.maxWidth-this.pixelPaddingLeft-this.pixelPaddingRight}),this.maxHeight&&Jt.attr({height:this.maxHeight-this.pixelPaddingTop-this.pixelPaddingBottom});var ie=this.getHTMLLineElement(h);Jt.node.appendChild(ie),ie.style.display="inline-block";var _e=ie.clientWidth,ye=ie.clientHeight;ie.style.display="block",this._bbox={x:0,y:0,width:_e,height:ye},Jt.attr({width:_e+1,height:ye}),this.maybeHideOversized(),this._measuredWidth=q(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=q(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(ie.style.overflow="hidden"),(_e>n||ye>a)&&(this.isOversized=!0)}
172this.setStyles(),this.updateCenter(),this.updateBackground(),p=="none"&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}},i.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth<this.bbox.width||this.availableHeight<this.bbox.height?(this.element.attr({display:"none"}),this.isOversized=!0):(this.element.removeAttr("display"),this.isOversized=!1))},i.prototype.alignSVGText=function(){var t=this.element,e=t.node.children||t.node.childNodes;if(!(!e||e&&e.length==0)){var r=this._measuredWidth,n=this._measuredHeight;this.pixelPaddingLeft,this.pixelPaddingRight,this.pixelPaddingTop,this.pixelPaddingBottom,this.rtl?t.attr({direction:"rtl"}):t.removeAttr("direction");for(var a=e.length-1;a>=0;a--){var o=e[a];if(o.setAttribute("text-anchor",this.textAlign),this.textPathElement)o.removeAttribute("x"),o.removeAttribute("y");else{switch(this.textAlign){case"middle":o.setAttribute("x",(r/2).toString()+"px");break;case"end":this.rtl||o.setAttribute("x",r.toString());break;default:this.rtl?o.setAttribute("x",r.toString()):o.removeAttribute("text-anchor");break}var l=dt(o.getAttribute("y"));switch(this.textValign){case"middle":o.setAttribute("y",((l||0)+(n-this.bbox.height)/2).toString());break;case"bottom":o.setAttribute("y",((l||0)+n-this.bbox.height).toString());break;default:o.setAttribute("y",(l||0).toString());break}}}}},i.prototype.getSVGLineElement=function(t,e){var r=this.paper.addGroup("text");return r.textContent=t,r.attr({x:"0"}),b(e)&&r.attr({y:e.toString()}),(this.truncate||this.wrap)&&r.attr({overflow:"hidden"}),r},Object.defineProperty(i.prototype,"rtl",{get:function(){return b(this._rtl)?this._rtl:this._topParent?this._topParent.rtl:!1},set:function(t){t=vt(t),this._rtl=t,this.element&&this.alignSVGText()},enumerable:!0,configurable:!0}),i.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},i.prototype.getHTMLLineElement=function(t){var e=document.createElement("div");switch(e.innerHTML=t,this.textAlign){case"middle":e.style.textAlign="center";break;case"end":e.style.textAlign="right";break}return this.wrap?e.style.wordWrap="break-word":e.style.whiteSpace="nowrap",this.rtl&&(e.style.direction="rtl"),b(this.fill)&&(e.style.color=this.fill.toString()),e},i.prototype.setStyles=function(){var t=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?t.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(t.removeStyle("webkitUserSelect"),t.removeStyle("msUserSelect"))},i.prototype.hideUnused=function(t){this.initLineCache();var e=this.getCache("lineInfo");if(e.length>=t)for(var r=t;r<e.length;r++){var n=e[r];n&&n.element&&n.element.attr({display:"none"})}},Object.defineProperty(i.prototype,"text",{get:function(){return this.getPropertyValue("text")},set:function(t){this.setPropertyValue("text",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(t){this.setPropertyValue("path",t,!0)&&(this.pathElement&&this.pathElement.dispose(),this.textPathElement&&this.textPathElement.dispose(),this.pathElement=this.paper.add("path"),this.pathElement.attr({d:t}),this.pathElement.attr({id:"text-path-"+this.uid}),this._disposers.push(this.pathElement),this.textPathElement=this.paper.addGroup("textPath"),this.textPathElement.attrNS(bs,"xlink:href","#text-path-"+this.uid),this.textPathElement.attr({path:t}),this._disposers.push(this.textPathElement),this.hardInvalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationOnPath",{get:function(){return this.getPropertyValue("locationOnPath")},set:function(t){this.setPropertyValue("locationOnPath",t),this.textPathElement&&this.textPathElement.attr({startOffset:t*100+"%"})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseLineRatio",{get:function(){return this.getPropertyValue("baseLineRatio")},set:function(t){this.setPropertyValue("baseLineRatio",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wrap",{get:function(){return this.getPropertyValue("wrap")},set:function(t){this.resetBBox(),this.setPropertyValue("wrap",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"truncate",{get:function(){return this.getPropertyValue("truncate")}
172,set:function(t){this.resetBBox(),this.setPropertyValue("truncate",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWords",{get:function(){return this.getPropertyValue("fullWords")},set:function(t){this.setPropertyValue("fullWords",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ellipsis",{get:function(){return this.getPropertyValue("ellipsis")},set:function(t){this.setPropertyValue("ellipsis",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectable",{get:function(){return this.getPropertyValue("selectable")},set:function(t){this.setPropertyValue("selectable",t,!0),this.setStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textAlign",{get:function(){return this.getPropertyValue("textAlign")},set:function(t){this.setPropertyValue("textAlign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textValign",{get:function(){return this.getPropertyValue("textValign")},set:function(t){this.setPropertyValue("textValign",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.getPropertyValue("html")},set:function(t){if(this.setPropertyValue("html",t,!0),!b(t)){var e=this.element;e.removeChildrenByTag("foreignObject")}},enumerable:!0,configurable:!0}),i.prototype.setFill=function(t){if(s.prototype.setFill.call(this,t),this.html)for(var e=this.element,r=e.node.getElementsByTagName("div"),n=0;n<r.length;n++){var a=r[n];b(this.fill)&&(a.style.color=this.fill.toString())}},Object.defineProperty(i.prototype,"hideOversized",{get:function(){return this.getPropertyValue("hideOversized")},set:function(t){this.setPropertyValue("hideOversized",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ignoreFormatting",{get:function(){return this.getPropertyValue("ignoreFormatting")},set:function(t){this.setPropertyValue("ignoreFormatting",t,!0)},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){},i.prototype.getLineInfo=function(t){this.initLineCache();var e=this.getCache("lineInfo");return e.length>t?e[t]:void 0},i.prototype.addLineInfo=function(t,e){this.initLineCache(),this.getCache("lineInfo")[e]=t},i.prototype.initLineCache=function(){b(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},i.prototype.setDataItem=function(t){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),t&&(this._sourceDataItemEvents=new Pt([t.events.on("valuechanged",this.invalidate,this,!1),t.events.on("workingvaluechanged",this.invalidate,this,!1),t.events.on("calculatedvaluechanged",this.invalidate,this,!1),t.events.on("propertychanged",this.invalidate,this,!1)])),s.prototype.setDataItem.call(this,t)},Object.defineProperty(i.prototype,"availableWidth",{get:function(){return b(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"availableHeight",{get:function(){return b(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),i.prototype.getSvgElement=function(t,e,r){var n=this.paper.add("tspan");return n.textContent=t,e&&n.node.setAttribute("style",e),r&&r.add(n),n},i.prototype.deepInvalidate=function(){s.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(i.prototype,"readerTitle",{get:function(){var t=this.getPropertyValue("readerTitle");return t?this.dataItem&&(t=this.populateString(t)):t=this.populateString(Yn(Mr(this.html)?this.html:this.text)),t},set:function(t){t=Xt(t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),i}(N);_.registeredClasses.Label=te;Nt.push({relevant:Kt.heightXS,state:function(s,i){if(s instanceof te&&s.parent&&s.parent.isBaseSprite){var t=s.states.create(i);return t.properties.disabled=!0,t}return null}});var Ae=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="RoundedRectangle",t.element=t.paper.add("path"),t.cornerRadius(3,3,3,3),t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.innerWidth,e=this.innerHeight;if(v(t)&&v(e)){var r=et(t,e)/2,n=bt(this.cornerRadiusTopLeft,r),a=bt(this.cornerRadiusTopRight,r),o=bt(this.cornerRadiusBottomRight,r),l=bt(this.cornerRadiusBottomLeft,r),h=et(Math.abs(t/2),Math.abs(e/2)),u=B(n,0,h),p=B(a,0,h),d=B(o,0,h),f=B(l,0,h),c="M"+u+",0 L"+(t-p)+",0",y=" L"+f+","+e,g=" L0,"+u,m=" L"+t+","+(e-d),x=" a"+p+","+p+" 0 0 1 "+p+","+p,P=" a"+d+","+d+" 0 0 1 -"+d+","+d,S=" a"+f+","+f+" 0 0 1 -"+f+",-"+f,C=" a"+u+","+u+" 0 0 1 "+u+",-"+u,O=c+x+m+P+y+S+g+C+" Z";this.path=O}},i.prototype.cornerRadius=function(t,e,r,n){this.cornerRadiusTopLeft=t,this.cornerRadiusTopRight=e,this.cornerRadiusBottomLeft=r,this.cornerRadiusBottomRight=n},Object.defineProperty(i.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(t){this.setPercentProperty("cornerRadiusTopLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")}
172,set:function(t){this.setPercentProperty("cornerRadiusTopRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(t){this.setPercentProperty("cornerRadiusBottomRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(t){this.setPercentProperty("cornerRadiusBottomLeft",t,!0)},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),i}(Z);_.registeredClasses.RoundedRectangle=Ae;var Ye=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="Button",t.tooltipY=0,t.iconPosition="left",t.layout="horizontal",t.contentAlign="center",t.contentValign="middle",t.padding(8,16,8,16),t.setStateOnChildren=!0;var e=new nt,r=t.background;r.fill=e.getFor("secondaryButton"),r.stroke=e.getFor("secondaryButtonStroke"),r.fillOpacity=1,r.strokeOpacity=1,r.cornerRadius(3,3,3,3),t.label=new te,t.label.fill=e.getFor("secondaryButtonText"),t.label.shouldClone=!1;var n=r.states.create("hover");n.properties.fillOpacity=1,n.properties.fill=e.getFor("secondaryButtonHover");var a=r.states.create("down");return a.transitionDuration=100,a.properties.fill=e.getFor("secondaryButtonDown"),a.properties.fillOpacity=1,t.role="button",t.focusable=!0,t.applyTheme(),t}return Object.defineProperty(i.prototype,"icon",{get:function(){return this._icon},set:function(t){var e=this._icon;e&&(e.parent=void 0),t&&(this._icon=t,t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this.iconPosition=this.iconPosition,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(t){this.setPropertyValue("iconPosition",t),this.icon&&(t=="left"?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label},set:function(t){this._label&&this.removeDispose(this._label),this._label=t,t&&(t.parent=this,t.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),i.prototype.createBackground=function(){return new Ae},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),t.label&&this.label.copyFrom(t.label),t.icon&&(this.icon=t.icon.clone())},i}(N);_.registeredClasses.Button=Ye;function Ai(s){var i=V(s[0]),t={x:0,y:0},e=oe.minPolylineStep;v(e)||(e=.5);for(var r=0,n=s.length;r<n;r++){var a=s[r];at(a,t)>e&&(i+=V(a),t=a)}return i}function E(s){return" M"+F(s.x,4)+","+F(s.y,4)+" "}function V(s){return" L"+F(s.x,4)+","+F(s.y,4)+" "}function Ze(s,i){return" Q"+F(i.x,4)+","+F(i.y,4)+" "+F(s.x,4)+","+F(s.y,4)}function Xi(s,i,t){return" C"+F(i.x,4)+","+F(i.y,4)+" "+F(t.x,4)+","+F(t.y,4)+" "+F(s.x,4)+","+F(s.y,4)}function At(){return" Z"}function Lt(s,i,t,e){if(i==0)return"";v(e)||(e=t);var r="",n=",",a=Math.ceil(Math.abs(i)/180),o=1;i<0&&(o=0);var l=0,h=0,u=-j(s)*t,p=-M(s)*e;if(i<.5&&t>3e3){var d=s+i,f=F(j(d)*t,4),c=F(M(d)*e,4);return V({x:f,y:c})}for(var y=0;y<a;y++){var d=s+i/a*(y+1),f=F(j(d)*t+u-l,4),c=F(M(d)*e+p-h,4);r+=" a"+t+n+e+n+0+n+0+n+o+n+f+n+c,l=f,h=c}return r}function _i(s,i,t,e,r,n,a){if(i==0||(v(e)||(e=0),t==0&&e<=0))return"";if(t<e){var o=t;t=e,e=o,v(r)&&(r=r/e*t)}i=et(i,360),i==360&&(n=0,a=0);var l=s+i,h=M(et(i,45)/2);r=v(r)?r:t,n=n||0,a=v(a)?a:n;var u=r/t*e,p=r/t*n,d=r/t*a;n=B(n,0,(t-e)/2),p=B(p,0,(r-u)/2),a=B(a,0,(t-e)/2),d=B(d,0,(r-u)/2),n=F(B(n,0,t*h),4),p=F(B(p,0,r*h),4),a=F(B(a,0,e*h),4),d=F(B(d,0,u*h),4);var f=Math.asin(n/t/2)*Be*2,c=Math.asin(p/r/2)*Be*2;e<a&&(e=a),u<d&&(u=d);var y=Math.asin(a/e/2)*Be*2,g=Math.asin(d/u/2)*Be*2;v(y)||(y=0),v(g)||(g=0);var m=s+i/2,x={x:F(j(m)*e,4),y:M(m)*u},P={x:j(s)*(e+a),y:M(s)*(u+d)},S={x:j(s)*(t-n),y:M(s)*(r-p)},C={x:j(l)*(t-n),y:M(l)*(r-p)},O={x:j(l)*(e+a),y:M(l)*(u+d)},T={x:j(s+f)*t,y:M(s+c)*r},D={x:j(l-y)*e,y:M(l-g)*u};a+=a*M(y/2),d+=d*M(g/2),y>(l-s)/2&&(D=x);var k="";return i==360?k=E(S):(k=E(P),k+=V(S),k+=ae(T,n,p,!0)),k+=Lt(s+f,i-2*f,t,r),v(e)&&e!=0?(i==360&&n==0?k+=E(O):(k+=ae(C,n,p,!0),k+=V(O),k+=ae(D,a,d,!0)),k+=Lt(l-y,-(i-2*y),e,u),(i<360||n>0)&&(k+=ae(P,a,d,!0)),k+=V(P)):(k+=ae(C,n,p,!0),i<360&&(k+=V(P))),k}function ae(s,i,t,e,r,n){if(i==0)return"";n=n||0,r=!!r,e=!!e;var a=",",o=+e,l=+r;return" A"+i+a+t+a+n+a+l+a+o+a+F(s.x,4)+a+F(s.y,4)}function Fn(s,i,t,e){return v(t)||(t=0),v(e)||(e=0),E({x:t,y:e})+V({x:t+s,y:e})+V({x:t+s,y:e+i})+V({x:t,y:e+i})+At()}function We(s,i){var t=",",e=" L";return i?"M"+s.x+t+s.y+e+s.x+t+(s.y+s.height)+e+(s.x+s.width)+t+(s.y+s.height)+e+(s.x+s.width)+t+s.y+e+s.x+t+s.y:"M"+s.x+t+s.y+e+(s.x+s.width)+t+s.y+e+(s.x+s.width)+t+(s.y+s.height)+e+s.x+t+(s.y+s.height)+e+s.x+t+s.y}var xo=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="Grip";var e=new nt;t.layout="absolute",t.padding(10,10,10,10),t.margin(3,3,3,3),t.background.fillOpacity=.3,t.background.cornerRadius(10,10,10,10);var r=new Z;r.element=t.paper.add("path");var n=E({x:-6,y:0});return n+=V({x:6,y:0}),n+=E({x:-8,y:-6}),n+=V({x:0,y:-12}),n+=V({x:8,y:-6}),n+=E({x:-8,y:6}),n+=V({x:0,y:12}),n+=V({x:8,y:6}
172),r.path=n,r.strokeWidth=2,r.fillOpacity=0,r.pixelPerfect=!0,r.padding(0,4,0,4),r.stroke=e.getFor("text"),r.strokeOpacity=.7,r.align="center",r.valign="middle",t.icon=r,t.label.dispose(),t.label=void 0,t.position="right",t.autoHideDelay=3e3,t.events.on("shown",function(a){t._autoHideTimeout&&t._autoHideTimeout.dispose(),t.autoHideDelay&&(t._autoHideTimeout=t.setTimeout(function(){t.hide()},t.autoHideDelay))}),t.events.on("down",function(a){t._autoHideTimeout&&t._autoHideTimeout.dispose()}),t.events.on("out",function(a){t.autoHideDelay&&(t._autoHideTimeout=t.setTimeout(function(){t.hide()},t.autoHideDelay))}),t.applyTheme(),t}return Object.defineProperty(i.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){if(this.setPropertyValue("position",t))switch(t){case"left":this.align="left",this.valign="middle",this.horizontalCenter="left",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=I(30);break;case"right":this.align="right",this.valign="middle",this.horizontalCenter="right",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=I(30);break;case"top":this.align="center",this.valign="top",this.horizontalCenter="middle",this.verticalCenter="top",this.icon.rotation=90,this.width=I(30),this.height=void 0;break;case"bottom":this.align="center",this.valign="bottom",this.horizontalCenter="middle",this.verticalCenter="bottom",this.icon.rotation=90,this.width=I(30),this.height=void 0;break;default:this.align="center",this.valign="middle",this.horizontalCenter="middle",this.verticalCenter="middle",this.icon.rotation=90,this.width=I(30),this.height=void 0}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoHideDelay",{get:function(){return this.getPropertyValue("autoHideDelay")},set:function(t){this.setPropertyValue("autoHideDelay",t)},enumerable:!0,configurable:!0}),i}(Ye);_.registeredClasses.Grip=xo;var _o=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ChartDataItem",t.applyTheme(),t}return i}(ri),ai=function(s){w(i,s);function i(){var t=s.call(this)||this;if(t._legend=new Et,t.constructor===i)throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");t.className="Chart";var e=new te;t.titles=new Ct(e),t._disposers.push(new ft(t.titles)),t._disposers.push(e),t.width=I(100),t.height=I(100),t.layout="vertical";var r=t.createChild(N);r.shouldClone=!1,r.layout="vertical",r.width=I(100),r.height=I(100),t.chartAndLegendContainer=r;var n=r.createChild(N);return n.shouldClone=!1,n.width=I(100),n.height=I(100),t.chartContainer=n,t.showOnInit=!0,t._disposers.push(t._legend),t.titles.events.on("inserted",function(a){t.processTitle(a),t.updateReaderTitleReferences()},t,!1),t.titles.events.on("removed",function(a){t.updateReaderTitleReferences()},t,!1),t.role="region",t.defaultState.transitionDuration=1,t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Chart"))},i.prototype.draw=function(){this.fixLayout(),s.prototype.draw.call(this)},i.prototype.fixLayout=function(){var t=this.legend;if(t){var e=this.chartAndLegendContainer,r=this.chartContainer;switch(r.x=void 0,r.y=void 0,t.position!="absolute"&&(t.x=void 0,t.y=void 0),t.position){case"left":e.layout="horizontal",t.toBack();break;case"right":e.layout="horizontal",t.toFront();break;case"top":e.layout="vertical",t.toBack();break;case"bottom":e.layout="vertical",t.toFront();break;case"absolute":t.isMeasured=!1;break}}},i.prototype.feedLegend=function(){},i.prototype.processTitle=function(t){var e=t.newValue;return e.parent=this,e.toBack(),e.shouldClone=!1,e.align="center",e.uidAttr(),e},i.prototype.updateReaderTitleReferences=function(){if(this.titles.length){var t=[];A(this.titles.iterator(),function(e){t.push(e.uid)}),this.setSVGAttribute({"aria-labelledby":t.join(" ")})}else this.removeSVGAttribute("aria-labelledby")},Object.defineProperty(i.prototype,"legend",{get:function(){return this._legend.get()},set:function(t){this.setLegend(t)},enumerable:!0,configurable:!0}),i.prototype.setLegend=function(t){var e=this;this._legend.get()!==t&&(t?(t.parent=this.chartAndLegendContainer,this._legend.set(t,t.events.on("propertychanged",function(r){r.property=="position"&&e.fixLayout()},void 0,!1)),t.addDisposer(new lt(function(){e.legend=void 0}))):this._legend.reset(),this.feedLegend())},i.prototype.dispose=function(){this.legend&&this.legend.dispose(),s.prototype.dispose.call(this)},i.prototype.processConfig=function(t){t&&b(t.legend)&&!b(t.legend.type)&&(t.legend.type="Legend"),s.prototype.processConfig.call(this,t)},i.prototype.copyFrom=function(t){this.titles.copyFrom(t.titles),this.chartContainer.copyFrom(t.chartContainer),t.legend&&(this.legend=t.legend.clone(),this.legend.removeChildren()),s.prototype.copyFrom.call(this,t)},Object.defineProperty(i.prototype,"dragGrip",{get:function(){var t=this;if(!this._dragGrip){var e=this.tooltipContainer.createChild(xo);e.align="right",e.valign="middle",e.hide(0),e.events.on("down",function(r){r.touch&&(t.interactionsEnabled=!1)}),e.events.on("up",function(r){t.interactionsEnabled=!0}),this.events.on("down",function(r){r.touch&&e.show()}),this._dragGrip=e}return this._dragGrip},set:function(t){this._dragGrip=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"focusable",{get:function(){return this.parent.focusable},set:function(t){this.parent.focusable=t},enumerable:!0,configurable:!0}),i}(xi);_.registeredClasses.Chart=ai;
172Nt.push({relevant:Kt.widthXS,state:function(s,i){if(s instanceof ai){var t=s.states.create(i);return s.pixelPaddingLeft>10&&(t.properties.paddingLeft=10),s.pixelPaddingRight>10&&(t.properties.paddingRight=10),t}return null}});Nt.push({relevant:Kt.heightXS,state:function(s,i){if(s instanceof ai){var t=s.states.create(i);return s.pixelPaddingTop>10&&(t.properties.paddingTop=10),s.pixelPaddingBottom>10&&(t.properties.paddingBottom=10),t}return null}});Nt.push({relevant:Kt.widthXXS,state:function(s,i){if(s instanceof ai){var t=s.states.create(i);return t.properties.paddingLeft=0,t.properties.paddingRight=0,t}return null}});Nt.push({relevant:Kt.heightXXS,state:function(s,i){if(s instanceof ai){var t=s.states.create(i);return t.properties.paddingTop=0,t.properties.paddingBottom=0,t}return null}});var bp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PointedShape",t.pointerBaseWidth=15,t.pointerLength=10,t.pointerY=0,t.pointerX=0,t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this),v(this.pointerX)||(this.pointerX=this.pixelWidth/2),v(this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(i.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(t){this.setPropertyValue("pointerBaseWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(t){this.setPropertyValue("pointerLength",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(t){this.setPropertyValue("pointerX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(t){this.setPropertyValue("pointerY",t,!0)},enumerable:!0,configurable:!0}),i}(Z),xp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PointedRectangle",t.element=t.paper.add("path"),t.cornerRadius=6,t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.cornerRadius,e=this.innerWidth,r=this.innerHeight;if(e>0&&r>0){var n=this.pointerX,a=this.pointerY,o=this.pointerBaseWidth/2,l=et(e/2,r/2),h=B(t,0,l),u=B(t,0,l),p=B(t,0,l),d=B(t,0,l),f=0,c=0,y=e,g=0,m=e,x=r,P=0,S=r,C=void 0,O=void 0,T=void 0,D=void 0,k=(n-f)*(x-c)-(a-c)*(m-f),z=(n-P)*(g-S)-(a-S)*(y-P);if(k>0&&z>0){var R=B(n,h+o,e-o-u);a=B(a,-1/0,0),C="M"+h+",0 L"+(R-o)+",0 L"+n+","+a+" L"+(R+o)+",0 L"+(e-u)+",0"}else C="M"+h+",0 L"+(e-u)+",0";if(k<0&&z<0){var R=B(n,d+o,e-o-p);a=B(a,r,1/0),T=" L"+(e-p)+","+r+" L"+(R+o)+","+r+" L"+n+","+a+" L"+(R-o)+","+r+" L"+d+","+r}else T=" L"+d+","+r;if(k<0&&z>0){var W=B(a,h+o,r-d-o);n=B(n,-1/0,0),D=" L0,"+(r-d)+" L0,"+(W+o)+" L"+n+","+a+" L0,"+(W-o)+" L0,"+h}else D=" L0,"+h;if(k>0&&z<0){var W=B(a,u+o,r-o-p);n=B(n,e,1/0),O=" L"+e+","+u+" L"+e+","+(W-o)+" L"+n+","+a+" L"+e+","+(W+o)+" L"+e+","+(r-p)}else O=" L"+e+","+(r-p);var ot=" a"+u+","+u+" 0 0 1 "+u+","+u,Ft=" a"+p+","+p+" 0 0 1 -"+p+","+p,zt=" a"+d+","+d+" 0 0 1 -"+d+",-"+d,Y=" a"+h+","+h+" 0 0 1 "+h+",-"+h;this.path=C+ot+O+Ft+T+zt+D+Y}},Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),i}(bp),Pi=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.properties={},t.isTemplate=!1,t._scale=1,t._nonScaling=!0,t.className="Filter",t.filterPrimitives=new rt,t.properties.filterUnits="objectBoundingBox",t.filterPrimitives.events.on("inserted",function(e){t._disposers.push(e.newValue)}),t.width=120,t.height=120,t.applyTheme(),t}return i.prototype.appendPrimitives=function(t){A(this.filterPrimitives.iterator(),function(e){t.add(e)})},i.prototype.animate=function(t,e,r){var n=new ge(this,t,e,r).start();return n},Object.defineProperty(i.prototype,"width",{get:function(){return this.properties.width},set:function(t){this.properties.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.properties.height},set:function(t){this.properties.height=t},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){var e=this;s.prototype.copyFrom.call(this,t),U(t.properties,function(r,n){e[r]=n})},Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:qi()},set:function(t){this._paper!=t&&(this._paper=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new bi(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale=t,this.updateScale()},enumerable:!0,configurable:!0}),i.prototype.updateScale=function(){},Object.defineProperty(i.prototype,"filterUnits",{get:function(){return this.properties.filterUnits},set:function(t){this.properties.filterUnits=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScaling",{get:function(){return this._nonScaling},set:function(t){this._nonScaling=t,t||(this._scale=1),this.updateScale()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sprite",{set:function(t){this.setSprite(t)},enumerable:!0,configurable:!0}),i.prototype.setSprite=function(t){this._sprite&&this._sprite!=t&&this._sprite.filters.removeValue(this),this._sprite=t},i}($t),Po=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="DropShadowFilter",t.color=H("#000"),t.feGaussianBlur=t.paper.add("feGaussianBlur"),t.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),t.filterPrimitives.push(t.feGaussianBlur),t.feOffset=t.paper.add("feOffset"),t.feOffset.attr({result:"offsetBlur"}),t.filterPrimitives.push(t.feOffset),t.feFlood=t.paper.add("feFlood"),t.feFlood.attr({"flood-color":t.color}),t.filterPrimitives.push(t.feFlood),t.feComposite=t.paper.add("feComposite"),t.feComposite.attr({in2:"offsetBlur",operator:"in"}),t.filterPrimitives.push(t.feComposite),t.feMerge=t.paper.addGroup("feMerge"),t.feMerge.add(t.paper.add("feMergeNode")),t.feMerge.add(t.paper.add("feMergeNode").attr({in:"SourceGraphic"})),t.filterPrimitives.push(t.feMerge),t.width=200,t.height=200,t.blur=1.5,t.dx=3,t.dy=3,t.opacity=.5,t.applyTheme(),t}return Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.feFlood&&this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(t){this.properties.opacity=t,this.feFlood.attr({"flood-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx",{get:function(){return this.properties.dx}
172,set:function(t){this.properties.dx=t,this.feOffset.attr({dx:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy",{get:function(){return this.properties.dy},set:function(t){this.properties.dy=t,this.feOffset.attr({dy:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),i.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},i}(Pi);_.registeredClasses.DropShadowFilter=Po;var tn=function(s){w(i,s);function i(){var t=s.call(this)||this;t._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},t._pointTo={x:0,y:0},t.fitPointerToBounds=!1,t._verticalOrientation="up",t.fixDoc=!0,t.className="Tooltip",t.isMeasured=!1,t.getFillFromObject=!0,t.margin(5,5,5,5),t.defaultState.transitionDuration=1,t.hiddenState.transitionDuration=1;var e=t.background;e.interactionsEnabled=!1,e.fillOpacity=.9,e.strokeWidth=1,e.strokeOpacity=1,e.stroke=H("#ffffff"),e.cornerRadius=3,e.pointerLength=6,e.pointerBaseWidth=10;var r=new Po;r.dy=1,r.dx=1,r.opacity=.5,e.filters.push(r),t.autoTextColor=!0;var n=t.createChild(te);return n.shouldClone=!1,t.label=n,n.padding(7,12,4,12),n.interactionsEnabled=!1,n.horizontalCenter="middle",n.fill=H("#ffffff"),t._disposers.push(n),t.label.events.on("sizechanged",t.drawBackground,t),t.label.zIndex=1,t.pointerOrientation="vertical",t.animationDuration=0,t.animationEasing=ii,t.setPropertyValue("showInViewport",!1),t.role="tooltip",t.visible=!1,t.opacity=0,t.x=0,t.y=0,t.events.on("visibilitychanged",t.handleVisibility,t),t.applyTheme(),t}return i.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(i.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(t){this.setPropertyValue("getStrokeFromObject",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")}
172,set:function(t){this.setPropertyValue("autoTextColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepTargetHover",{get:function(){return this.getPropertyValue("keepTargetHover")},set:function(t){var e=this;this.setPropertyValue("keepTargetHover",t,!0)&&t&&(this.hoverable=!0,this.background.interactionsEnabled=!0,this._disposers.push(this.events.on("over",function(r){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!0)})),this._disposers.push(this.events.on("out",function(r){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!1)})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(t){this.setPropertyValue("showInViewport",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(t){this.setPropertyValue("getFillFromObject",t,!0)},enumerable:!0,configurable:!0}),i.prototype.createBackground=function(){return new xp},Object.defineProperty(i.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(t){this.setPropertyValue("pointerOrientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.label.html},set:function(t){this.label.html!=t&&(this.label.html=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.label.text},set:function(t){this.label.text!=t&&(this.label.text=t,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.label;t.invalid&&t.validate();var e=this._pointTo.x,r=this._pointTo.y,n=this._boundingRect,a=t.measuredWidth,o=t.measuredHeight,l=this.background.pointerLength,h,u;if(this.ignoreBounds&&(n=void 0),n&&this.fixDoc&&a>n.width){Gn({x:n.x,y:n.y},this.parent);var p=Gn({x:n.x+n.width,y:n.y+n.height},this.parent),d=document.body.offsetWidth;document.body.offsetHeight,p.x>d/2?n.x=n.width-a:n.width=n.x+a}var f=this.pointerOrientation;f=="horizontal"||f=="left"||f=="right"?(u=-o/2,f=="horizontal"?n&&e>n.x+n.width/2?h=-a/2-l:h=a/2+l:f=="left"?h=a/2+l:h=-a/2-l):(n&&(h=B(0,n.x-e+a/2,n.x-e+n.width-a/2)),f=="vertical"?n&&r>n.y+o+l?(u=-o-l,this._verticalOrientation="up"):(u=l,this._verticalOrientation="down"):f=="down"?(u=-o-l,this._verticalOrientation="up"):(u=l,this._verticalOrientation="down")),n&&(u=B(u,n.y-r,n.y+n.height-o-r)),t.x=h,t.y=u,this.drawBackground()}
172,i.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},i.prototype.drawBackground=function(){var t=this.label,e=this.background,r=t.measuredWidth,n=t.measuredHeight,a=this._boundingRect,o=r,l=t.pixelX-r/2,h=n,u=t.pixelY,p=this._pointTo.x,d=this._pointTo.y,f=a.x-p,c=f+a.width,y=a.y-d,g=y+a.height;e.x=l,e.y=u,e.width=o,e.height=h,this.fitPointerToBounds?(e.pointerX=B(-e.x,f-e.x,c-e.x),e.pointerY=B(-e.y,y-e.y,g-e.y)):(e.pointerX=-e.x,e.pointerY=-e.y),e.validate()},i.prototype.delayedPointTo=function(t,e){var r=this;this._pointToDisposer&&this._pointToDisposer.dispose(),this._pointToDisposer=_.events.once("exitframe",function(){r.pointTo(t,e)}),this.addDisposer(this._pointToDisposer)},i.prototype.pointTo=function(t,e){(this._pointTo.x!=t.x||this._pointTo.y!=t.y)&&(this._pointTo=t,this.invalidate(),!this.visible||e?(this.moveTo(this._pointTo),this._animation&&this._animation.kill()):this.pixelX==0&&this.pixelY==0?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new ge(this,[{property:"x",to:t.x,from:this.pixelX},{property:"y",to:t.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},i.prototype.setBounds=function(t){var e=this._boundingRect;(e.x!=t.x||e.y!=t.y||e.width!=t.width||e.height!=t.height)&&(this._boundingRect=t,this.invalidate())},Object.defineProperty(i.prototype,"boundingContainer",{set:function(t){this._boundingContainer=t,t.events.on("sizechanged",this.updateBounds,this),t.events.on("positionchanged",this.updateBounds,this)},enumerable:!0,configurable:!0}),i.prototype.updateBounds=function(){var t=this._boundingContainer,e=gs({x:t.pixelX,y:t.pixelY,width:t.maxWidth,height:t.maxHeight},t);this.setBounds(e)},Object.defineProperty(i.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(t){this.setPropertyValue("ignoreBounds",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.label.copyFrom(t.label),t._boundingRect&&(this._boundingRect=t._boundingRect)},i.prototype.asFunction=function(t){return t=="animationEasing"||s.prototype.asIs.call(this,t)},i}(N);_.registeredClasses.Tooltip=tn;var ke=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Bullet",t.isMeasured=!1,t.tooltipX=0,t.tooltipY=0,t.layout="none",t.applyOnClones=!0,t.copyToLegendMarker=!0,t.applyTheme(),t}return Object.defineProperty(i.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){if(this.setPropertyValue("locationX",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){if(this.setPropertyValue("locationY",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(t){this.setPropertyValue("xField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(t){this.setPropertyValue("yField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(t){this.setPropertyValue("isDynamic",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(t){this.setPropertyValue("copyToLegendMarker",t)},enumerable:!0,configurable:!0}),i}(N);_.registeredClasses.Bullet=ke;Nt.push({relevant:Kt.isXS,state:function(s,i){if(s instanceof ke){var t=s.states.create(i);return t.properties.disabled=!0,t}return null}});var ts=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="ResizeButton",t.orientation="horizontal",t.layout="absolute",t.horizontalCenter="middle",t.verticalCenter="middle",t.draggable=!0,t.padding(8,8,8,8),t.background.cornerRadius(20,20,20,20);var e=new Z;e.element=t.paper.add("path");var r=E({x:-2,y:-6});return r+=V({x:-2,y:6}),r+=E({x:2,y:-6}),r+=V({x:2,y:6}),e.path=r,e.pixelPerfect=!0,e.padding(0,4,0,4),e.stroke=new nt().getFor("alternativeText"),e.strokeOpacity=.7,t.icon=e,t.label.dispose(),t.label=void 0,t.applyTheme(),t}return Object.defineProperty(i.prototype,"orientation",{set:function(t){var e=this.icon;e&&(t=="horizontal"?e.rotation=0:e.rotation=-90)},enumerable:!0,configurable:!0}),i}(Ye);_.registeredClasses.ResizeButton=ts;var en=function(s){w(i,s);function i(){var t=s.call(this)||this;t._previousStart=0,t._previousEnd=1,t._prevStart=0,t._prevEnd=1,t._isBusy=!1,t._skipRangeEvents=!1,t.updateWhileMoving=!0,t.className="Scrollbar",t.minHeight=12,t.minWidth=12,t.animationDuration=0,t.animationEasing=ii,t.margin(10,10,10,10);var e=new nt,r=t.background;return r.cornerRadius(10,10,10,10),r.fill=e.getFor("fill"),r.fillOpacity=.5,t.showSystemTooltip=!0,t.startGrip=new ts,t.endGrip=new ts,t.events.on("transformed",function(){t.updateThumb()},t,!1),t.start=0,t.end=1,t.role="scrollbar",t.thumb.role="slider",t.thumb.readerLive="polite",t.startGrip.role="slider",t.endGrip.role="slider",t.events.once("inited",function(){t._previousStart=void 0,t.dispatchRangeChange()},void 0,!1),t.hideGrips=!1,t.orientation="horizontal",t.setSVGAttribute({"aria-valuemin":"
1720"}),t.setSVGAttribute({"aria-valuemax":"100"}),t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),this.orientation==="horizontal"?(b(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),b(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),b(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),b(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection")),this.readerOrientation="horizontal"):(b(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),b(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),b(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),b(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")),this.readerOrientation="vertical"),this.readerControls=this.baseSprite.uidAttr()},i.prototype.validateLayout=function(){this.updateSize(),s.prototype.validateLayout.call(this),this.updateExtremes()},i.prototype.processBackground=function(){s.prototype.processBackground.call(this);var t=this.background;t.clickable=!0,t.events.on("hit",this.handleBgHit,this,void 0)},i.prototype.handleBgHit=function(t){this.makeBusy();var e=t.spritePoint;e=ee(e,this.background,this);var r=this.thumb;if(this.orientation=="horizontal"){var n=e.x-r.pixelWidth/2;n=B(n,0,this.innerWidth-r.pixelWidth),this._thumbAnimation=r.animate({property:"x",to:n},this.animationDuration,this.animationEasing)}else{var a=e.y-r.pixelHeight/2;a=B(a,0,this.innerHeight-r.pixelHeight),this._thumbAnimation=r.animate({property:"y",to:a},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},i.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},i.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},i.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),this.animationDuration*1.1)},i.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},i.prototype.dispatchRangeChange=function(){(this._previousEnd!=this.end||this._previousStart!=this.start)&&(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},i.prototype.updateThumb=function(t){if(t===void 0&&(t=!0),!!this.parent){var e=this.thumb,r=this.start,n=this.end,a=this.startGrip,o=this.endGrip,l=this.adapter.apply("positionValueDirection",{flipped:!1}).flipped,h=l?"To %1":"From %1",u=l?"From %1":"To %1",p,d;if(this.orientation=="horizontal"){var f=this.innerWidth;e.width=f*(n-r),e.maxX=f-e.pixelWidth,e.x=r*f,a.moveTo({x:e.pixelX,y:0},void 0,void 0,!0),o.moveTo({x:e.pixelX+e.pixelWidth,y:0},void 0,void 0,!0),p=this.adapter.apply("positionValue",{value:Math.round(r*100)+"%",position:r}).value,d=this.adapter.apply("positionValue",{value:Math.round(n*100)+"%",position:n}).value,a.readerTitle=this.language.translate(h,void 0,p),a.readerValueNow=""+Math.round(r*100),a.readerValueText=a.readerTitle,o.readerTitle=this.language.translate(u,void 0,d),o.readerValueNow=""+Math.round(n*100),o.readerValueText=o.readerTitle}else{var c=this.innerHeight;e.height=c*(n-r),e.maxY=c-e.pixelHeight,e.y=(1-n)*c,a.moveTo({x:0,y:e.pixelY+e.pixelHeight},void 0,void 0,!0),o.moveTo({x:0,y:e.pixelY},void 0,void 0,!0),p=this.adapter.apply("positionValue",{value:Math.round((1-r)*100)+"%",position:1-r}).value,d=this.adapter.apply("positionValue",{value:Math.round((1-n)*100)+"%",position:1-n}).value,a.readerTitle=this.language.translate(u,void 0,p),a.readerValueNow=""+Math.round(r*100),a.readerValueText=a.readerTitle,o.readerTitle=this.language.translate(h,void 0,d),o.readerValueNow=""+Math.round(n*100),o.readerValueText=o.readerTitle}e.readerTitle=this.language.translate("From %1 to %2",void 0,p,d),e.readerValueNow=""+Math.round(r*100),e.readerValueText=e.readerTitle,this.readerValueNow=""+Math.round(r*100),this.readerValueText=e.readerTitle,!this._skipRangeEvents&&this.updateWhileMoving&&t&&this.dispatchRangeChange()}},i.prototype.updateExtremes=function(){var t=this.orientation,e=0,r=0,n=0,a=0;t=="horizontal"?(n=this.innerWidth,r=a=this.innerHeight/2):(a=this.innerHeight,e=n=this.innerWidth/2);var o=this.startGrip;o.minX=e,o.maxX=n,o.minY=r,o.maxY=a;var l=this.endGrip;l.minX=e,l.maxX=n,l.minY=r,l.maxY=a;var h=this.thumb;h.minX=e,h.maxX=n,h.minY=r,h.maxY=a},i.prototype.updateSize=function(){var t=this.orientation,e=this.startGrip;e&&(e.orientation=t),this.endGrip&&(this.endGrip.orientation=t);var r=this.thumb;r&&(t=="horizontal"?(v(this._pixelWidth)||this.width instanceof Q||(this.width=I(100)),b(this.percentHeight)&&(this.height=this.minHeight),r.height=this.innerHeight,r.verticalCenter="middle",r.horizontalCenter="left"):(v(this._pixelHeight)||this.height instanceof Q||(this.height=I(100)),b(this.percentWidth)&&(this.width=this.minWidth),r.width=this.innerWidth,r.verticalCenter="top",r.horizontalCenter="middle"))},Object.defineProperty(i.prototype,"isBusy",{get:function(){return this._isBusy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return Math.min(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__start",{get:function(){return this._start},set:function(t){this._start=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return Math.max(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__end=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__end",{get:function(){return this._end},set:function(t){this._end=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),i.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},i.prototype.fixRange=function(t){(t.start!=F(this._start,2)||t.end!=F(this._end,2))&&(this._start=t.start,this._end=t.end,this._skipRangeEvents=!0,this.updateThumb(),this._skipRangeEvents=!1,this.thumb.validate(),this.thumb.background.validate())},i.prototype.getPosition=function(t){return B(F(t,4),0,1)},Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&(t==="horizontal"?(this.startGrip.cursorOverStyle=Ht.horizontalResize,this.endGrip.cursorOverStyle=Ht.horizontalResize):(this.startGrip.cursorOverStyle=Ht.verticalResize,this.endGrip.cursorOverStyle=Ht.verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.updateByOrientation=function(){},Object.defineProperty(i.prototype,"startGrip",{get:function(){return this._startGrip},set:function(t){this._startGrip&&this.removeDispose(this._startGrip),this._startGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endGrip",{get:function(){return this._endGrip},set:function(t){this._endGrip&&this.removeDispose(this._endGrip),this._endGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),i.prototype.processGrip=function(t){t.parent=this,t.isMeasured=!1,t.focu
172sable=!0,t.shouldClone=!1,t.zIndex=100,t.events.on("drag",this.handleGripDrag,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("down",this.makeBusy,this,!1),t.events.on("up",this.makeUnbusy,this,!1),this._disposers.push(t)},i.prototype.handleGripDrag=function(t){this.makeBusy(),t.target===this._startGrip?this._usingGrip="start":this._usingGrip="end",this.orientation=="horizontal"?(this._start=this.startGrip.pixelX/this.innerWidth,this._end=this.endGrip.pixelX/this.innerWidth):(this._start=1-this.startGrip.pixelY/this.innerHeight,this._end=1-this.endGrip.pixelY/this.innerHeight),this.updateThumb()},Object.defineProperty(i.prototype,"thumb",{get:function(){if(!this._thumb){var t=new Ye;t.background.cornerRadius(10,10,10,10),t.padding(0,0,0,0),this.thumb=t}return this._thumb},set:function(t){var e=this;t&&(this._thumb&&this.removeDispose(this._thumb),this._thumb=t,t.parent=this,t.isMeasured=!1,t.inert=!0,t.draggable=!0,t.clickable=!0,t.hoverable=!0,t.focusable=!0,t.shouldClone=!1,t.zIndex=0,t.cursorOverStyle=Ht.grab,t.cursorDownStyle=Ht.grabbing,t.events.on("dragstart",this.makeBusy,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("positionchanged",this.handleThumbPosition,this,!1),t.events.on("sizechanged",this.handleThumbPosition,this,!1),t.events.on("doublehit",this.handleDoubleClick,this,!1),this._disposers.push(K().body.events.on("keyup",function(r){Oe.isKey(r.event,["space","enter"])&&e.thumb.isFocused&&(r.event.preventDefault(),e.handleDoubleClick())})),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),i.prototype.handleDoubleClick=function(){this.makeBusy();var t=0,e=1;this.start!=0||this.end!=1?(this._prevStart=this.start,this._prevEnd=this.end):(t=this._prevStart,e=this._prevEnd);var r=this.animate([{property:"__start",to:t},{property:"__end",to:e}],this.animationDuration,this.animationEasing);r&&!r.isFinished()?(r.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=r):this.makeUnbusy()},i.prototype.handleThumbPosition=function(){var t=this.thumb;if(this.orientation=="horizontal"){var e=this.innerWidth,r=t.innerWidth,n=t.pixelX;this._start=n/e,this._end=(n+r)/e,this.updateThumb()}else{var a=this.innerHeight,o=t.innerHeight,l=t.pixelY;l+o>a&&(l=a-o,t.y=l),this._start=1-(l+o)/a,this._end=1-l/a,this.updateThumb()}},i.prototype.createBackground=function(){return new Ae},Object.defineProperty(i.prototype,"hideGrips",{get:function(){return this._hideGrips},set:function(t){var e=this;this._hideGrips=t,this._overDisposer&&this.removeDispose(this._overDisposer),this._outDisposer&&this.removeDispose(this._outDisposer),t?(this._overDisposer=this.events.on("over",function(){e.startGrip.show(),e.endGrip.show()},void 0,!1),this._outDisposer=this.events.on("out",function(){e.startGrip.hide(),e.endGrip.hide()},void 0,!1),this.startGrip.hide(),this.endGrip.hide()):(this.startGrip.show(),this.endGrip.show())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),i.prototype.asFunction=function(t){return t=="animationEasing"||s.prototype.asIs.call(this,t)},i}(N);_.registeredClasses.Scrollbar=en;var _p=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.childrenCreated=!1,t.className="LegendDataItem",t.applyTheme(),t}return Object.defineProperty(i.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this._label=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new lt(function(){b(t.component)&&t.component.labels.removeValue(e)}))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueLabel",{get:function(){var t=this;if(!this._valueLabel){var e=this.component.valueLabels.create();this._valueLabel=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new lt(function(){b(t.component)&&t.component.valueLabels.removeValue(e)}))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemContainer",{get:function(){var t=this;if(!this._itemContainer){var e=this.component,r=e.itemContainers.create();r.parent=e,this._itemContainer=r,this.addSprite(r),this._disposers.push(r),r.togglable&&r.events.on("toggled",function(o){e.toggleDataItem(o.target.dataItem)},void 0,!1),r.focusable&&(r.events.on("hit",function(o){e.focusedItem=void 0},void 0,!1),r.events.on("focus",function(o){e.focusedItem=o.target.dataItem},void 0,!1),r.events.on("blur",function(o){e.focusedItem=void 0},void 0,!1)),this._disposers.push(new lt(function(){b(t.component)&&t.component.itemContainers.removeValue(r)})),this.dataContext.uidAttr&&(r.readerControls=this.dataContext.uidAttr(),r.readerLabelledBy=this.dataContext.uidAttr());var n=this.dataContext;if((n instanceof ri||n instanceof Z)&&!n.isDisposed()){var a=function(o){r.readerChecked=o.visible,r.events.disableType("toggled"),r.isActive=!o.visible,r.events.enableType("toggled")};n.addDisposer(new lt(function(){t.component&&t.component.dataItems.remove(t)})),n instanceof Z?(r.addDisposer(n.events.on("visibilitychanged",a,void 0,!1)),r.addDisposer(n.events.on("hidden",function(o){r.readerChecked=!1,r.events.disableType("toggled"),r.isActive=!0,r.events.enableType("toggled")},void 0,!1)),r.addDisposer(n.events.on("shown",function(o){r.readerChecked=!0,r.events.disableType("toggled"),r.isActive=!1,r.events.enableType("toggled")},void 0,!1))):r.addDisposer(n.events.on("visibilitychanged",a,void 0,!1))}}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marker",{get:function(){var t=this;if(!this._marker){var e=this.component.markers.create();this._marker=e,e.parent=this.itemContainer,this.addSprite(e),this._disposers.push(e),this._disposers.push(new lt(function(){b(t.component)&&t.component.markers.removeValue(e)}))}return this._marker},enumerable:!0,configurable:!0}),i}(ri),Co=function(){function s(){this.createMarker=!0}return s}(),rn=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="Legend",t.layout="grid",t.setPropertyValue("useDefaultMarker",!1),t.setPropertyValue("scrollable",!1),t.setPropertyValue("contentAlign","center");var e=new N;e.applyOnClones=!0,e.padding(8,0,8,0),e.margin(0,10,0,10),e.layout="horizontal",e.clickable=!0,e.focusable=!0,e.role="switch",e.togglable=!0,e.cursorOverStyle=Ht.pointer,e.background.fillOpacity=0,t.itemContainers=new Ct(e),t._disposers.push(new ft(t.itemContainers
172)),t._disposers.push(t.itemContainers.template),t._disposers.push(K().body.events.on("keyup",function(u){if(Oe.isKey(u.event,"enter")&&t.focusedItem){var p=t.focusedItem,d=p.itemContainer;d.togglable?t.toggleDataItem(p):d.clickable&&d.events.isEnabled("hit")&&(d.dispatchImmediately("hit",{event:u}),t.focusedItem=p)}},t));var r=new nt,n=new N;n.width=23,n.height=23,n.interactionsEnabled=!1,n.applyOnClones=!0,n.setStateOnChildren=!0,n.background.fillOpacity=0,n.background.strokeOpacity=0,n.propertyFields.fill="fill",n.valign="middle";var a=r.getFor("disabledBackground");n.events.on("childadded",function(u){var p=u.newValue,d=p.states.create("active");d.properties.stroke=a,d.properties.fill=a}),t.markers=new Ct(n),t._disposers.push(new ft(t.markers)),t._disposers.push(t.markers.template);var o=n.createChild(Ae);o.width=I(100),o.height=I(100),o.applyOnClones=!0,o.propertyFields.fill="fill",o.strokeOpacity=0;var l=new te;l.text="{name}",l.margin(0,5,0,5),l.valign="middle",l.applyOnClones=!0,l.states.create("active").properties.fill=r.getFor("disabledBackground"),t.labels=new Ct(l),t._disposers.push(new ft(t.labels)),t._disposers.push(t.labels.template),l.interactionsEnabled=!1,l.truncate=!0,l.fullWords=!1;var h=new te;return h.margin(0,5,0,0),h.valign="middle",h.width=50,h.align="right",h.textAlign="end",h.applyOnClones=!0,h.states.create("active").properties.fill=r.getFor("disabledBackground"),h.interactionsEnabled=!1,t.valueLabels=new Ct(h),t._disposers.push(new ft(t.valueLabels)),t._disposers.push(t.valueLabels.template),t.position="bottom",e.states.create("active"),e.setStateOnChildren=!0,t.role="group",t.events.on("layoutvalidated",t.handleScrollbar,t,!1),t.events.on("parentset",function(){var u=t.parent;u&&t._disposers.push(u.events.on("maxsizechanged",function(){t.scrollable&&t.setTimeout(function(){t.updateMasks(),t.handleScrollbar(),t._handleWheelReal(1)},100)}))}),t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},i.prototype.createDataItem=function(){return new _p},i.prototype.validateDataElements=function(){this.scrollbar&&(this.scrollbar.start=0,this.scrollbar.end=1),s.prototype.validateDataElements.call(this)},i.prototype.validateDataElement=function(t){s.prototype.validateDataElement.call(this,t);var e=t.itemContainer,r=t.marker;t.label;var n=t.valueLabel;e.readerChecked=t.dataContext.visible,t.dataContext.legendDataItem=t;var a=t.label.maxWidth;t.label.width instanceof Q||(t.label.width=void 0),a>0&&(t.label.maxWidth=a),n.align=="right"&&(n.width=void 0);var o=t.dataContext.legendSettings,l=t.dataContext;l.createLegendMarker&&(!this.useDefaultMarker||!(l instanceof Z))?t.childrenCreated||(l.createLegendMarker(r),t.childrenCreated=!0):this.markers.template.propertyFields.fill=void 0,l.updateLegendValue&&l.updateLegendValue(),l.component&&l.component.updateLegendValue&&l.component.updateLegendValue(l),n.invalid&&n.validate(),n.text==""||n.text==null?n.__disabled=!0:n.__disabled=!1,o&&(o.itemValueText!=null||o.valueText!=null)&&(n.__disabled=!1);var h=t.dataContext.visible;h===void 0&&(h=!0),h=vt(h),t.dataContext.visible=h,e.events.disableType("toggled"),e.isActive=!h,e.isActive?e.setState("active",0):e.setState("default",0),e.events.enableType("toggled")},i.prototype.afterDraw=function(){var t=this,e=this.getPropertyValue("maxWidth"),r=0;this.labels.each(function(p){p.invalid&&(p.maxWidth=void 0,p.validate()),p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight>r&&(r=p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight)});var n=0;this.valueLabels.each(function(p){p.invalid&&p.validate(),p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight>n&&(n=p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight)});var a=0;this.markers.each(function(p){p.invalid&&p.validate(),p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight>a&&(a=p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight)});var o=this.itemContainers.template,l=o.pixelMarginRight+o.pixelMarginLeft,h,u=r+n+a;v(e)?(e=e-l,e>u&&(e=u),h=e-a-n):h=r,this.labels.each(function(p){(t.valueLabels.template.align=="right"||p.measuredWidth>h)&&(p.width instanceof Q||(p.width=Math.min(p.maxWidth,h-p.pixelMarginLeft-p.pixelMarginRight),p.maxWidth=p.width))}),this.valueLabels.template.align=="right"&&this.valueLabels.each(function(p){p.width=n-p.pixelMarginRight-p.pixelMarginLeft}),s.prototype.afterDraw.call(this)},i.prototype.handleScrollbar=function(){var t=this.scrollbar;if(this.scrollable&&t){var e=this.maxHeight;t.height=e,t.x=this.measuredWidth-t.pixelWidth-t.pixelMarginLeft,this.contentHeight>e?(t.visible=!0,t.thumb.height=t.height*e/this.contentHeight,this.paddingRight=t.pixelWidth+t.pixelMarginLeft+t.pixelMarginRight):(t.thumb.height=t.height*e/this.contentHeight,this.paddingRight=t.pixelWidth+t.pixelMarginLeft+t.pixelMarginRight,t.visible=!1,t.start=0,t.end=1),t.handleThumbPosition(),this.updateMasks()}},Object.defineProperty(i.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t)&&(t=="left"||t=="right"?(this.margin(10,5,10,10),this.valign="middle",this.contentAlign="none",this.valueLabels.template.align="right",v(this.maxColumns)||(this.maxColumns=1),this.width=void 0,this.maxWidth=220):(this.maxColumns=void 0,this.width=I(100),this.valueLabels.template.align="left"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(t){this.setPropertyValue("useDefaultMarker",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollable",{get:function(){return this.getPropertyValue("scrollable")}
172,set:function(t){if(this.setPropertyValue("scrollable",t,!0))if(t){var e=this.createChild(en);this.scrollbar=e,e.isMeasured=!1,e.orientation="vertical",e.endGrip.__disabled=!0,e.startGrip.__disabled=!0,e.visible=!1,e.marginLeft=5,this._mouseWheelDisposer=this.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer),this._disposers.push(e.events.on("rangechanged",this.updateMasks,this,!1))}else this._mouseWheelDisposer&&(this._mouseWheelDisposer.dispose(),this.scrollbar&&(this.scrollbar.dispose(),this.scrollbar=void 0))},enumerable:!0,configurable:!0}),i.prototype.handleWheel=function(t){this._handleWheelReal(t.shift.y)},i.prototype._handleWheelReal=function(t){var e=this.scrollbar;if(e){var r=t/1e3*this.measuredHeight/this.contentHeight,n=e.end-e.start;t>0?(e.start=q(0,e.start-r),e.end=e.start+n):(e.end=et(1,e.end-r),e.start=e.end-n)}},i.prototype.updateMasks=function(){var t=this;this.scrollbar&&this.itemContainers.each(function(e){e.dy=-t.scrollbar.thumb.pixelY*t.contentHeight/t.maxHeight,e.maskRectangle={x:0,y:-e.dy,width:t.measuredWidth,height:t.maxHeight}}),this.invalidatePosition()},i.prototype.toggleDataItem=function(t){var e=t.dataContext;!e.visible||e.isHiding||e instanceof Z&&e.isHidden?(t.color=t.colorOrig,e.appeared=!0,t.itemContainer.isActive=!1,e.hidden===!0&&(e.hidden=!1),e.show?e.show():e.visible=!0,this.svgContainer.readerAlert(this.language.translate("%1 shown",this.language.locale,t.label.readerTitle))):(t.itemContainer.isActive=!0,e.appeared=!0,e.hide?e.hide():e.visible=!1,this.svgContainer.readerAlert(this.language.translate("%1 hidden",this.language.locale,t.label.readerTitle)),t.color=new nt().getFor("disabledBackground"))},Object.defineProperty(i.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.handleDataItemPropertyChange=function(t,e){t.valueLabel.invalidate(),t.label.invalidate()},i}(xi);_.registeredClasses.Legend=rn;Nt.push({relevant:Kt.widthXS,state:function(s,i){if(s instanceof rn&&(s.position=="left"||s.position=="right")){var t=s.states.create(i);return t.properties.position="bottom",t}return null}});Nt.push({relevant:Kt.heightXS,state:function(s,i){if(s instanceof rn&&(s.position=="top"||s.position=="bottom")){var t=s.states.create(i);return t.properties.position="right",t}return null}});Nt.push({relevant:Kt.isXS,state:function(s,i){if(s instanceof rn){var t=s.states.create(i);return t.properties.disabled=!0,t}return null}});var nn=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="SeriesDataItem",t.values.value={},t.values.value={},t.applyTheme(),t}return Object.defineProperty(i.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new ct,this._disposers.push(new ei(this._bullets))),this._bullets},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this.bullets.clear(),s.prototype.dispose.call(this)},Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),i}(ri),sn=function(s){w(i,s);function i(){var t=s.call(this)||this;if(t._ignoreMinMax=!1,t._showBullets=!0,t.legendSettings=new Co,t._tmin=new ct,t._tmax=new ct,t._smin=new ct,t._smax=new ct,t.dataItemsByAxis=new ct,t.skipFocusThreshold=20,t._itemReaderTextChanged=!1,t.calculatePercent=!1,t.usePercentHack=!0,t.autoDispose=!0,t.simplifiedProcessing=!1,t.constructor===i)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");t.className="Series",t.isMeasured=!1,t.layout="none",t.shouldClone=!1,t.setPropertyValue("hidden",!1),t.axisRanges=new rt,t.axisRanges.events.on("inserted",t.processAxisRange,t,!1),t.minBulletDistance=0,t.mainContainer=t.createChild(N),t.mainContainer.shouldClone=!1,t.mainContainer.mask=t.createChild(Z),t._disposers.push(t.mainContainer);var e=t.mainContainer.createChild(N);return t._shouldBeReady.push(e),e.shouldClone=!1,e.layout="none",e.virtualParent=t,t._disposers.push(e),t.bulletsContainer=e,t.tooltip=new tn,t.tooltip.virtualParent=t,t._disposers.push(t.tooltip),t.hiddenState.transitionEasing=so,t.dataItem=t.createDataItem(),t._disposers.push(t.dataItem),t.dataItem.component=t,t.role="group",t.applyTheme(),t}return i.prototype.applyTheme=function(){s.prototype.applyTheme.call(this)},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},i.prototype.createDataItem=function(){return new nn},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(t){},i.prototype.processBullet=function(t){var e=this,r=t.newValue;r.isTemplate=!0,this.events.once("datavalidated",function(n){e.itemsFocusable()&&(r.focusable=!0)}),this.invalidate()},i.prototype.removeBullet=function(t){var e=t.oldValue;this.dataItems.each(function(r){var n=r.bullets.getKey(e.uid);n&&n.dispose()}),this.invalidate()},i.prototype.validateDataItems=function(){s.prototype.validateDataItems.call(this),this.processValues(!1)},i.prototype.getFirstValue=function(t,e){for(var r=e;r>=0;r--){var n=this.dataItems.getIndex(r),a=n.getActualWorkingValue(t);if(v(a))return a}return null},i.prototype.getAbsoluteFirstValue=function(t){for(var e=0;e<this.dataItems.length;e++){var r=this.dataItems.getIndex(e),n=r.values[t].value;if(v(n))return n}return null},i.prototype.rangeChangeUpdate=function(){s.prototype.rangeChangeUpdate.call(this),this.processValues(!0)},i.prototype.processValues=function(t){var e=this;if(!this.simplifiedProcessing){var r=this.dataItems,n={},a={},o={},l={},h={},u={},p={},d={},f={},c={},y=q(0,this.startIndex);y=et(y,this.dataItems.length);var g=et(this.endIndex,this.dataItems.length);if(v(y)||(y=0),v(g)||(g=this.dataItems.length),y>0){var m=r.getIndex(y-1);U(m.values,function(T,D){var k=m.getActualWorkingValue(T);v(k)&&(d[T]=k)})}for(var x=function(T){var D=r.getIndex(T);U(D.values,function(k,z){var R=D.getActualWorkingValue(k);if(v(R)){v(n[k])||(n[k]=0),n[k]++,v(a[k])||(a[k]=0),a[k]+=R,v(o[k])||(o[k]=0),o[k]+=Math.abs(R),v(u[k])||(u[k]=R),p[k]=R,v(l[k])?l[k]>R&&(l[k]=R):l[k]=R,v(h[k])?h[k]<R&&(h[k]=R):h[k]=R,v(f[k])||(f[k]=e.getFirstValue(k,y)),v(c[k])||
172(c[k]=e.getAbsoluteFirstValue(k)),D.setCalculatedValue(k,R-f[k],"change"),D.setCalculatedValue(k,(R-f[k])/f[k]*100,"changePercent"),D.setCalculatedValue(k,R-c[k],"startChange"),D.setCalculatedValue(k,(R-c[k])/c[k]*100,"startChangePercent");var W=d[k];v(W)||(W=R),D.setCalculatedValue(k,R-W,"previousChange"),D.setCalculatedValue(k,(R-W)/W*100,"previousChangePercent"),d[k]=R}})},P=y;P<g;P++)x(P);if(this.calculatePercent)for(var S=function(T){var D=r.getIndex(T);U(D.values,function(k){var z=o[k],R=D.getActualWorkingValue(k);if(v(R))if(z>0){e.usePercentHack&&R==z&&(z=D.values[k].value);var W=R/z*100;D.setCalculatedValue(k,W,"percent")}else D.setCalculatedValue(k,0,"percent")})},P=y;P<g;P++)S(P);if(y>0){var C=r.getIndex(y-1);U(C.values,function(T){var D=C.values[T].value;C.setCalculatedValue(T,D-u[T],"change"),C.setCalculatedValue(T,(D-u[T])/u[T]*100,"changePercent")})}var O=this.dataItem;U(O.values,function(T){O.setCalculatedValue(T,a[T],"sum"),O.setCalculatedValue(T,o[T],"absoluteSum"),O.setCalculatedValue(T,a[T]/n[T],"average"),O.setCalculatedValue(T,u[T],"open"),O.setCalculatedValue(T,p[T],"close"),O.setCalculatedValue(T,l[T],"low"),O.setCalculatedValue(T,h[T],"high"),O.setCalculatedValue(T,n[T],"count")})}},i.prototype.validate=function(){Hi()&&this.filters.clear(),A(this.axisRanges.iterator(),function(n){n.validate()}),s.prototype.validate.call(this);var t=this.bulletsContainer;if(t.fill=this.fill,t.stroke=this.stroke,t.x=this.pixelX,t.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var e=0;e<this.startIndex;e++){var r=this.dataItems.getIndex(e);r&&r.bullets.each(function(n,a){a.__disabled=!0})}for(var e=this.dataItems.length-1;e>this.endIndex;e--){var r=this.dataItems.getIndex(e);r&&r.bullets.each(function(o,l){l.__disabled=!0})}}else this.bulletsContainer.children.each(function(n){n.__disabled=!0});this.updateTooltipBounds()},i.prototype.updateTooltipBounds=function(){if(this.topParent){var t=0,e=0,r=this.topParent.maxWidth,n=this.topParent.maxHeight,a={x:t,y:e,width:r,height:n};this.tooltip.setBounds(a)}},i.prototype.shouldCreateBullet=function(t,e){return!0},i.prototype.validateDataElement=function(t){var e=this;s.prototype.validateDataElement.call(this,t),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each(function(r){var n=t.bullets.getKey(r.uid);if(e.shouldCreateBullet(t,r)){if(!n){var a=r.propertyFields.disabled,o=t.dataContext;a&&o&&o[a]===!1?(r.applyOnClones=!1,r.disabled=!1,n=r.clone(),r.disabled=!0,r.applyOnClones=!0):n=r.clone(),n.shouldClone=!1,t.addSprite(n),(!e.visible||e.isHiding)&&n.hide(0)}var l=n.dataItem;if(l!=t){l&&l.bullets.setKey(r.uid,void 0);var h=e.itemReaderText;n instanceof ke&&(h||(h="{"+n.xField+"}: {"+n.yField+"}"),n.isDynamic&&(t.events.on("workingvaluechanged",n.deepInvalidate,n,!1),e.dataItem.events.on("workingvaluechanged",n.deepInvalidate,n,!1)),n.deepInvalidate()),n.focusable&&(n.events.on("focus",function(u){n.readerTitle=e.populateString(h,n.dataItem)},void 0,!1),n.events.on("blur",function(u){n.readerTitle=""},void 0,!1)),n.hoverable&&(n.events.on("over",function(u){n.readerTitle=e.populateString(h,n.dataItem)},void 0,!1),n.events.on("out",function(u){n.readerTitle=""},void 0,!1))}n.parent=e.bulletsContainer,t.bullets.setKey(r.uid,n),n.maxWidth=t.itemWidth,n.maxHeight=t.itemHeight,n.__disabled=!1,e.positionBullet(n)}else n&&(n.__disabled=!0)})):this.bulletsContainer.visible=!1},i.prototype.handleDataItemWorkingValueChange=function(t,e){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(i.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){this._ignoreMinMax=t,this.invalidateDataItems()},enumerable:!0,configurable:!0}),i.prototype.createMask=function(){},i.prototype.processAxisRange=function(t){this.rangesContainer||(this.rangesContainer=this.createChild(N),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var e=t.newValue;e&&(e.contents.parent=this.rangesContainer,e.isRange=!0,e.events.on("valuechanged",this.invalidateDataItems,this,!1))},i.prototype.getAxisField=function(t){},i.prototype.showTooltipAtPosition=function(t,e){},Object.defineProperty(i.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(t){this.setPropertyValue("minBulletDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new Ct(new ke),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new ft(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(t){},Object.defineProperty(i.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(t){this.setPropertyValue("hiddenInLegend",t)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.getPropertyValue("name")}
172,set:function(t){this.setPropertyValue("name",t);var e=this.legendDataItem;e&&(e.component.invalidate(),e.component.invalidateRawData()),this.readerTitle=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemReaderText",{get:function(){var t=this._itemReaderText;return t||(this.tooltipText?t=Yn(this.tooltipText):this.tooltipHTML&&(t=Yn(this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",t):t},set:function(t){this._itemReaderText=t,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),i.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(t,e){if(this.legendDataItem){var r=this.legendSettings,n=this.legendDataItem,a=n.label,o=n.valueLabel;t&&!t.isDisposed()||e?(o&&(r.itemValueText&&(o.text=r.itemValueText),o.dataItem=t),a&&(r.itemLabelText&&(a.text=r.itemLabelText),a.dataItem=t)):(a&&((r.labelText||r.itemLabelText!=null)&&(a.text=r.labelText),a.dataItem=this.dataItem),o&&((r.valueText||r.itemValueText!=null)&&(o.text=r.valueText),o.dataItem=this.dataItem))}},i.prototype.copyFrom=function(t){this.bullets.copyFrom(t.bullets),this.bulletsContainer.copyFrom(t.bulletsContainer),this.calculatePercent=t.calculatePercent,this.usePercentHack=t.usePercentHack,this.simplifiedProcessing=t.simplifiedProcessing,s.prototype.copyFrom.call(this,t)},i.prototype.raiseCriticalError=function(t){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",t).message,this._chart.modal.closable=!1,this._chart.modal.open(),this._chart.disabled=!0),console.log(t)},i.prototype.applyFilters=function(){var t=this;s.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),A(this.filters.iterator(),function(e){t.bulletsContainer.filters.push(e.clone())})},Object.defineProperty(i.prototype,"heatRules",{get:function(){var t=this;return this._heatRules||(this._heatRules=new rt,this._heatRules.events.on("inserted",function(e){var r=e.newValue,n=r.target;if(n){var a=r.dataField;b(a)||(a="value");var o=t.dataItem,l=r.property,h=dt(r.minValue),u=dt(r.maxValue);!v(h)&&!v(u)&&t.dataItem.events.on("calculatedvaluechanged",function(p){p.property==a&&A(t.dataItems.iterator(),function(d){var f=!1;L(d.sprites,function(c){if(c.clonedFrom==n){var y=c;y[l]=y[l],f=!0}}),f||L(d.sprites,function(c){c instanceof N&&A(c.children.iterator(),function(y){if(y.className==n.className){var g=y;g[l]=g[l]}else y instanceof N&&y.deepInvalidate()})})})}),t.dataItems.template.events.on("workingvaluechanged",function(p){if(p.property==a){var d=p.target,f=!1;L(d.sprites,function(c){if(c.clonedFrom==n){var y=c;y[l]=y[l],f=!0}}),f||L(d.sprites,function(c){c instanceof N&&A(c.children.iterator(),function(y){if(y.className==n.className){var g=y;g[l]=g[l]}else y instanceof N&&y.deepInvalidate()})})}}),n.adapter.add(l,function(p,d,f){var c=dt(r.minValue),y=dt(r.maxValue),g=r.min,m=r.max;if(d instanceof Z){var x=d,P=x.propertyFields[f];if(P&&d.dataItem){var S=d.dataItem.dataContext;if(S&&b(S[P]))return p}}var C=d.dataItem;if(v(c)||(c=o.values[a].low),v(y)||(y=o.values[a].high),C){var O=C.values[a];if(O){var T=C.getActualWorkingValue(a);if(b(g)&&b(m)&&v(c)&&v(y)&&v(T)){var D=void 0;if(r.logarithmic?D=(Math.log(T)*Math.LOG10E-Math.log(c)*Math.LOG10E)/(Math.log(y)*Math.LOG10E-Math.log(c)*Math.LOG10E):D=(T-c)/(y-c),v(T)&&(!v(D)||Math.abs(D)==1/0)&&(D=.5),v(g))return g+(m-g)*D;if(g instanceof it)return new it(Ir(g.rgb,m.rgb,D))}}}return p})}})),this._heatRules},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(t){var e;if(t){if(b(t.bullets)&&Wt(t.bullets))for(var r=0,n=t.bullets.length;r<n;r++){var a=t.bullets[r];b(a.type)||(a.type="Bullet")}b(t.heatRules)&&Wt(t.heatRules)&&(e=t.heatRules,delete t.heatRules)}if(s.prototype.processConfig.call(this,t),e){for(var r=0,n=e.length;r<n;r++){var o=e[r],l=this;if(b(o.target)&&tt(o.target))if(this.map.hasKey(o.target))l=this.map.getKey(o.target);else for(var h=o.target.split("."),u=0;u<h.length;u++)if(l instanceof rt){var p=l.getIndex(dt(h[u]));p?l=p:l=l[h[u]]}else{var d=h[u].match(/^(.*)\[([0-9]+)\]/);d?l[d[1]]instanceof rt?l=l[d[1]].getIndex(dt(d[2])):l=l[d[1]][dt(d[2])]:l=l[h[u]]}o.target=l,b(o.min)&&(o.min=this.maybeColorOrPercent(o.min)),b(o.max)&&(o.max=this.maybeColorOrPercent(o.max))}s.prototype.processConfig.call(this,{heatRules:e})}},i.prototype.configOrder=function(t,e){return t==e?0:t=="heatRules"?1:e=="heatRules"?-1:s.prototype.configOrder.call(this,t,e)},i.prototype.setVisibility=function(t){s.prototype.setVisibility.call(this,t),this.bulletsContainer.visible=t},i}(xi);_.registeredClasses.Series=sn;_.registeredClasses.SeriesDataItem=nn;var $i=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._list=[],t._currentStep=0,t._startIndex=0,t._currentPass=0,t.baseColor=new it({r:103,g:183,b:220}),t.stepOptions={},t.passOptions={brighten:-.2},t.step=1,t.minColors=20,t.minLightness=.2,t.maxLightness=.9,t.shuffle=!1,t.wrap=!0,t.reuse=!1,t.saturation=1,t.className="ColorSet",t.applyTheme(),t}return Object.defineProperty(i.prototype,"list",{get:function(){return this._list||this.generate(this.minColors),this._list},set:function(t){this._list=t,this.reset()},enumerable:!0,configurable:!0}),i.prototype.getReusableColor=function(t){if(this._list.length==0)return this.generate(1),this.list[0];var e=t-Math.floor(t/this._list.length)*this.list.length;return this.list[e]},i.prototype.next=function(){var t;return this.list.length<=this._currentStep?this.reuse?t=this.getReusableColor(this._currentStep):(this.generate(q(this.minColors,this._currentStep+1)),t=this.list[this._currentStep]):t=this.list[this._currentStep],this._currentStep+=this.step,t.saturate(this.saturation)},i.prototype.getIndex=function(t){var e;return this.list.length<=t?this.reuse?e=this.getReusableColor(t):(this.generate(this.minColors),e=this.getIndex(t)):e=this.list[t],e.saturate(this.saturation)},i.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(i.prototype,"currentStep",{get:function(){return this._currentStep},set:function(t){this._currentStep=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return this._startIndex},set:function(t){this._startIndex=t,this.reset()},enumerable:!0,configurable:!0}),i.prototype.generate=function(t){var e=this.currentColor,r=vr(xt(e.rgb)),n=b(this.stepOptions.hue)?this.stepOptions.hue:1/t,a={brighten:0,lighten:0,hue:r.h,lightness:r.l,saturation:r.s},o=[],l=this.list.length==0?0:1;if(this.reuse)for(var h=l;h<=t;h++)o.push(vr(xt(this._list[h].rgb)).h);else for(var h=l;h<=t;h++){var u=r.h+n*h;this.wrap&&u>1&&(u-=1),o.push(u)}this.shuffle&&o.sort(function(c,y){return Math.random()-.5});for(var h=0;h<t;h++){this.reuse?r=vr(xt(this._list[h].rgb)):r.h=o.shift(),this.applyStepOptions(r,a,h,this._currentPass);var p=H(qa(r)),d=(this.stepOptions.brighten||0)*h+(this.passOptions.brighten||0)*this._currentPass;d!=0&&(this.wrap?d=Sn(d,this.minLightness,this.maxLightness):d=wn(d,this.minLightness,this.maxLightness),p=p.brighten(d));var f=(this.stepOptions.lighten||0)*h+(this.passOptions.lighten||0)*this._currentPass;f!=0&&(this.wrap?f=Sn(f,this.minLightness,this.maxLightness):f=wn(f,this.minLightness,this.maxLightness),p=p.lighten(f)),this._list.push(p)}this._currentPass++},Object.defineProperty(i.prototype,"currentColor",{get:function(){return this._list.length==0?this.baseColor.saturate(this.saturation):this._list[this._list.length-1].saturate(this.saturation)},enumerable:!0,configurable:!0}),i.prototype.applyStepOptions=function(t,e,r,n){t.l=e.lightness+(this.stepOptions.lightness||0)*r+(this.passOptions.lightness||0)*n,this.wrap?(t.l>1?t.l=t.l-Math.floor(t.l):t.l<0&&(t.l=-(t.l-Math.floor(t.l))),t.l=Sn(t.l,this.minLightness,this.maxLightness)):(t.l>1?t.l=1:t.l<0&&(t.l=0),t.l=wn(t.l,this.minLightness,this.maxLightness))},i.prototype.processConfig=function(t){if(t){if(b(t.list)&&Wt(t.list))for(var e=0,r=t.list.length;e<r;e++)t.list[e]instanceof it||(t.list[e]=H(t.list[e]));b(t.baseColor)&&!(t.baseColor instanceof it)&&(t.baseColor=H(t.baseColor))}s.prototype.processConfig.call(this,t)},i}($t);_.registeredClasses.ColorSet=$i;var wo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="SerialChartDataItem",t.applyTheme(),t}return i}(_o),ws=function(s){w(i,s);function i(){var t=s.call(this)||this;t._exitDP={},t.className="SerialChart",t.colors=new $i,t._usesData=!1;var e=t.chartContainer.createChild(N);e.shouldClone=!1,e.width=I(100),e.height=I(100),e.isMeasured=!1,e.layout="none",e.zIndex=2,t.seriesContainer=e;var r=t.chartContainer.createChild(N);return r.shouldClone=!1,r.width=I(100),r.height=I(100),r.isMeasured=!1,r.zIndex=3,r.layout="none",t.bulletsContainer=r,t.applyTheme(),t}return i.prototype.dispose=function(){s.prototype.dispose.call(this),this.colors&&this.colors.dispose(),this.patterns&&this.patterns.dispose()},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Serial chart"))},Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new Ct(this.createSeries()),this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1),this._disposers.push(new ft(this._series,!1)),this._disposers.push(this._series.template)),this._series},enumerable:!0,configurable:!0}),i.prototype.handleSeriesRemoved=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),this.dataUsers.each(function(h){h.invalidateDataItems()}),this._exitDP[e.uid]&&(this._exitDP[e.uid].dispose(),delete this._exitDP[e.uid]),e.autoDispose?e.dispose():(e.parent=void 0,e.bulletsContainer.parent=void 0);var r=this.legend;if(r){for(var n=this.legend.dataItems,a=n.length-1;a>=0;a--){var o=n.getIndex(a);o&&o.dataContext==e&&r.dataItems.remove(o)}for(var a=r.data.length-1;a>=0;a--){var l=r.data[a];l&&l==e&&G(r.data,l)}}},i.prototype.handleSeriesAdded=function(t){var e=this,r=t.newValue;r.isDisposed()||(r.chart=this,r.parent=this.seriesContainer,r.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(r),r.addDisposer(new lt(function(){e.dataUsers.removeValue(r)})),this.handleSeriesAdded2(r),this.handleLegendSeriesAdded(r))},i.prototype.handleLegendSeriesAdded=function(t){t.hiddenInLegend||this.legend&&this.legend.addData(t)},i.prototype.handleSeriesAdded2=function(t){var e=this;this.dataInvalid||(this._exitDP[t.uid]=_.events.once("exitframe",function(){(!t.data||t.data.length==0)&&(t.data=e.data,t.showOnInit&&(t.reinit(),t.setPropertyValue("showOnInit",!1),t.showOnInit=!0),t.isDisposed()||t.events.once("datavalidated",function(){t.data==e.data&&(t._data=[])}))}),this._disposers.push(this._exitDP[t.uid]))},i.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];A(this.series.iterator(),function(r){r.hiddenInLegend||e.push(r)}),t.dataFields.name="name",t.data=e}},i.prototype.createSeries=function(){return new sn},Object.defineProperty(i.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.series.copyFrom(t.series)},i.prototype.appear=function(){s.prototype.appear.call(this),this.series.each(function(t){t.showOnInit&&t.inited&&t.appear
172()})},i}(ai);_.registeredClasses.SerialChart=ws;var ve=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Line",t.element=t.paper.add("line"),t.fill=H(),t.x1=0,t.y1=0,t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this),this.x1==this.x2||this.y1==this.y2?this.pixelPerfect=!0:this.pixelPerfect=!1,this.x1=this.x1,this.x2=this.x2,this.y1=this.y1,this.y2=this.y2},Object.defineProperty(i.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(t){v(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof ce&&(e=1e-5),this.setPropertyValue("x1",t,!0),this.element.attr({x1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x2",{get:function(){var t=this.getPropertyValue("x2");return v(t)||(t=this.pixelWidth),t},set:function(t){v(t)||(t=0),this.setPropertyValue("x2",t,!0),this.element.attr({x2:t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(t){v(t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof ce&&(e=1e-5),this.setPropertyValue("y1",t,!0),this.element.attr({y1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y2",{get:function(){var t=this.getPropertyValue("y2");return v(t)||(t=this.pixelHeight),t},set:function(t){v(t)||(t=0),this.setPropertyValue("y2",t,!0),this.element.attr({y2:t})},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},r={x:this.x2,y:this.y2},n=kr(e,r,t),a=Yt(e,r);return{x:n.x,y:n.y,angle:a}},i}(Z);_.registeredClasses.Line=ve;var Xe=function(){function s(i,t){this._tensionX=i,this._tensionY=t}return s.prototype.smooth=function(i){for(var t=i.length-1;t>0;t--){var e=i[t],r=i[t-1];Math.abs(e.x-r.x)<.1&&Math.abs(e.y-r.y)<.1&&i.splice(t-1,1)}var n=this._tensionX,a=this._tensionY;if(i.length<3||n>=1&&a>=1)return Ai(i);var o=i[0],l=i[i.length-1],h=!1;F(o.x,3)==F(l.x)&&F(o.y)==F(l.y)&&(h=!0);for(var u="",t=0,p=i.length-1;t<p;t++){var e=i[t-1],r=i[t],d=i[t+1],f=i[t+2];t===0?h?e=i[i.length-2]:e=i[t]:t==i.length-2&&(h?f=i[1]:f=i[t+1]);var c=Ma(e,r,d,f,n,a),y=ja(e,r,d,f,n,a);u+=Xi(d,c,y)}return u},s}();function Fi(s,i,t,e,r,n){var a=s.x,o=s.y,l=i.x,h=i.y,u=at(s,i);t=u/Math.round(u/t);var p=_.getCache(aa(["wavedLine",s.x,i.x,s.y,i.y,t,e]));if(!p){if(u>0){var d=Math.atan2(h-o,l-a),f=Math.cos(d),c=Math.sin(d),y=t*f,g=t*c;if(t<=1||e<=1)p=V(i);else{var m=Math.round(2*u/t),x=[],P=1;l<a&&(P*=-1),h<o&&(P*=-1);for(var S=0;S<=m;S++){P*=-1;var C=a+S*y/2+P*e/2*c,O=o+S*g/2-P*e/2*f;x.push({x:C,y:O})}p=new Xe(r,r).smooth(x)}}else p="";_.setCache(aa(["wavedLine",s.x,i.x,s.y,i.y,t,e]),p)}return p}var So=function(){function s(i,t){this._reversed=i,this._closed=t.closed}return s.prototype._curve=function(i,t,e,r,n,a){var o=(t-i)/3;return this._reversed?Xi({x:r,y:t},{x:e+o*n,y:i+o},{x:r-o*a,y:t-o}):Xi({x:t,y:r},{x:i+o,y:e+o*n},{x:t-o,y:r-o*a})},s.prototype.smooth=function(i){var t=this,e=NaN,r=NaN,n=NaN,a=NaN,o=NaN,l=0,h="";switch(L(i,function(u){var p=u.x,d=u.y;if(t._reversed){var f=p;p=d,d=f}var c=NaN;if(!(p===r&&d===a)){switch(l){case 0:l=1,t._reversed?h+=V({x:d,y:p}):h+=V({x:p,y:d});break;case 1:l=2;break;case 2:l=3,h+=t._curve(e,r,n,a,xa(e,r,n,a,c=_a(e,r,n,a,p,d)),c);break;default:h+=t._curve(e,r,n,a,o,c=_a(e,r,n,a,p,d));break}e=r,r=p,n=a,a=d,o=c}}),l){case 2:this._reversed?h+=V({x:a,y:r}):h+=V({x:r,y:a});break;case 3:h+=this._curve(e,r,n,a,o,xa(e,r,n,a,o));break}return this._closed&&(h+=At()),h},s}();function ba(s){return s<0?-1:1}function xa(s,i,t,e,r){var n=i-s;return n?(3*(e-t)/n-r)/2:r}function _a(s,i,t,e,r,n){var a=i-s,o=r-i,l=(e-t)/(a||o<0&&-0),h=(n-e)/(o||a<0&&-0),u=(l*o+h*a)/(a+o);return(ba(l)+ba(h))*Math.min(Math.abs(l),Math.abs(h),.5*Math.abs(u))||0}var Pa=function(s){w(i,s);function i(t){return s.call(this,!1,t)||this}return i}(So),Ca=function(s){w(i,s);function i(t){return s.call(this,!0,t)||this}return i}(So),$e=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="WavedLine",t.element=t.paper.add("path"),t.waveLength=16,t.waveHeight=4,t.tension=.8,t.pixelPerfect=!1,t.fill=H(),t.applyTheme(),t}return i.prototype.draw=function(){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2};this.path=E(t)+Fi(t,e,this.waveLength,this.waveHeight,this.tension)},Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")}
172,set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),i}(ve),an=function(s){w(i,s);function i(){var t=s.call(this)||this;t._axis=new Et,t.dataItems=new rt,t.className="AxisBreak",t.breakSize=.01,t.marginLeft=-5,t.marginRight=-5,t.marginTop=-5,t.marginBottom=-5;var e=new nt,r=new $e;r.fill=e.getFor("background"),r.stroke=H(),r.fillOpacity=.9,r.zIndex=0,t._fillShape=r;var n=new $e;n.fill=H(),n.stroke=e.getFor("grid"),n.strokeOpacity=.3,n.zIndex=1,t._startLine=n;var a=new $e;return a.fill=H(),a.stroke=H("#000000"),a.strokeOpacity=.3,a.zIndex=2,t._endLine=a,t._disposers.push(t._axis),t.applyTheme(),t}return i.prototype.dispose=function(){s.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(i.prototype,"startLine",{get:function(){return this._startLine},set:function(t){this._startLine&&this._startLine.dispose(),this._startLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLine",{get:function(){return this._endLine},set:function(t){this._endLine&&this._endLine.dispose(),this._endLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillShape",{get:function(){return this._fillShape},set:function(t){this._fillShape&&this._fillShape.dispose(),this._fillShape=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),i.prototype.addBreakSprite=function(t){t.parent=this,t.isMeasured=!1,this._disposers.push(t)},Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this._axis.get()!==t){this._axis.set(t,t.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),t.renderer.createBreakSprites(this);var e=t.axisBreaks.template;this.startLine.copyFrom(e.startLine),this.endLine.copyFrom(e.endLine),this.fillShape.copyFrom(e.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(t){this.setPropertyValue("breakSize",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.draw=function(){if(s.prototype.draw.call(this),this.axis){var t=this.axis.renderer;t.updateBreakElement(this)}},Object.defineProperty(i.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i}(N);_.registeredClasses.AxisBreak=an;var Ji=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="AxisDataItem",t.applyTheme(),t}return Object.defineProperty(i.prototype,"grid",{get:function(){if(!this._grid){var t=this.component;if(t){var e=void 0,r;if(this.isRange){if(e=t.axisRanges.template.grid,e.disabled)return;r=e.clone()}else{if(e=t.renderer.grid.template,e.disabled)return;r=t.renderer.grid.create(),this._disposers.push(new lt(function(){t.renderer.grid.removeValue(r)}))}this.grid=r,r.shouldClone=!1,this._disposers.push(r),r.axis=this.component}}return this._grid},set:function(t){this._grid&&this._grid!=t&&(G(this.sprites,this._grid),this._grid.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(G(t.dataItem.sprites,t),t.dataItem.grid=void 0),this.addSprite(t)),this._grid=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tick",{get:function(){if(!this._tick){var t=this.component;if(t){var e=void 0,r;if(this.isRange){if(e=t.axisRanges.template.tick,e.disabled)return;r=e.clone()}else{if(e=t.renderer.ticks.template,e.disabled)return;
172r=t.renderer.ticks.create(),this._disposers.push(new lt(function(){t.renderer.ticks.removeValue(r)}))}this.tick=r,r.axis=this.component,r.shouldClone=!1,this._disposers.push(r)}}return this._tick},set:function(t){this._tick&&this._tick!=t&&(G(this.sprites,this._tick),this._tick.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(G(t.dataItem.sprites,t),t.dataItem.tick=void 0),this.addSprite(t)),this._tick=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){if(!this._label){var t=this.component;if(t){var e=void 0,r;if(this.isRange){if(e=t.axisRanges.template.label,e.disabled)return;r=e.clone()}else{if(e=t.renderer.labels.template,e.disabled)return;r=t.renderer.labels.create(),this._disposers.push(new lt(function(){t.renderer.labels.removeValue(r)}))}this._disposers.push(r),this.label=r,r.shouldClone=!1,r.axis=this.component,r.virtualParent=t}}return this._label},set:function(t){this._label&&this._label!=t&&(G(this.sprites,this._label),this._label.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(G(t.dataItem.sprites,t),t.dataItem.label=void 0),this.addSprite(t)),this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisFill",{get:function(){if(!this._axisFill){var t=this.component;if(t){var e=void 0,r;if(this.isRange){if(e=t.axisRanges.template.axisFill,!this.isTemplate&&e.disabled)return;r=e.clone()}else{if(e=t.renderer.axisFills.template,e.disabled)return;r=t.renderer.axisFills.create(),this._disposers.push(new lt(function(){t.renderer.axisFills.removeValue(r)}))}this.axisFill=r,r.shouldClone=!1,this._disposers.push(r)}}return this._axisFill},set:function(t){this._axisFill&&this._axisFill!=t&&(G(this.sprites,this._axisFill),this._axisFill.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(G(t.dataItem.sprites,t),t.dataItem.axisFill=void 0),t.axis=this.component,this.addSprite(t)),this._axisFill=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t,this._label&&(this._label.text=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contents",{get:function(){if(!this._contents){var t=new N;this.addSprite(t),t.isMeasured=!1,this._contents=t;var e=this.component;if(e){var r=e.renderer.createFill(this.component);r.disabled=!1,r.axis=e,this.addSprite(r),this._mask=r,t.mask=r}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(t){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),t&&t.dataItems.push(this),this._axisBreak=t},enumerable:!0,configurable:!0}),i.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},i.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},i.prototype.hasProperty=function(t){return t=="component"?!0:s.prototype.hasProperty.call(this,t)},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.text=t.text,t.bullet&&(this.bullet=t.bullet.clone()),this.minPosition=t.minPosition,this.maxPosition=t.maxPosition},i.prototype.setVisibility=function(t,e){s.prototype.setVisibility.call(this,t,e),this._contents&&(this._contents.visible=t)},Object.defineProperty(i.prototype,"bullet",{get:function(){return this._bullet},set:function(t){this._bullet&&this._bullet!=t&&(G(this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=t,t&&this.addSprite(t)},enumerable:!0,configurable:!0}),i}(ri),wa;(function(s){s[s.Start=0]="Start",s[s.Middle=.5]="Middle",s[s.End=1]="End"})(wa||(wa={}));var on=function(s){w(i,s);function i(){var t=s.call(this)||this;if(t._gridCount=10,t._series=new rt,t.autoDispose=!0,t._axisItemCount=0,t.constructor===i)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");t.hideTooltipWhileZooming=!0,t.minWidth=1e-4,t.minHeight=1e-4,t.className="Axis",t.shouldClone=!1,t.setPropertyValue("cursorTooltipEnabled",!0),t.toggleZoomOutButton=!0,t.zoomable=!0;var e=new nt;t.title=new te,t.title.shouldClone=!1,t._disposers.push(t.title),t.setPropertyValue("startLocation",0),t.setPropertyValue("endLocation",1),t._dataItemsIterator=new cs(t.dataItems,function(){return t.dataItems.create()}),t._dataItemsIterator.createNewItems=!0;var r=new tn;t._disposers.push(r),r.label.padding(5,10,5,10),r.background.pointerLength=5,r.fitPointerToBounds=!0,r.background.filters.clear(),r.virtualParent=t;var n=r.background;
172return n.cornerRadius=0,n.fill=e.getFor("alternativeBackground"),n.stroke=n.fill,n.strokeWidth=1,n.fillOpacity=1,r.label.fill=e.getFor("alternativeText"),t.tooltip=r,t.readerHidden=!0,t.events.on("rangechangestarted",function(){t.series.each(function(a){a.hideTooltipWhileZooming&&(a.tooltip.hide(),a.tooltip.preventShow=!0)}),t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!0)},void 0,!1),t.events.on("rangechangeended",function(){t.series.each(function(a){a.hideTooltipWhileZooming&&(a.tooltip.hide(),a.tooltip.preventShow=!1)}),t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!1)},void 0,!1),t.applyTheme(),t}return i.prototype.fillRule=function(t,e){v(e)||(e=t.index),e/2==Math.round(e/2)?(t.axisFill.__disabled=!0,t.axisFill.opacity=0):(t.axisFill.opacity=1,t.axisFill.__disabled=!1)},i.prototype.createDataItem=function(){return new Ji},i.prototype.invalidateLayout=function(){s.prototype.invalidateLayout.call(this),A(this.series.iterator(),function(t){t.invalidateLayout()})},i.prototype.invalidateSeries=function(){A(this.series.iterator(),function(t){t.invalidate()})},i.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},i.prototype.updateGridCount=function(){if(this.renderer){var t=this.axisLength/this.renderer.minGridDistance;t!=this._gridCount&&(this._gridCount=t,this.clearCache())}},i.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),s.prototype.validateLayout.call(this),this.updateGridCount();var t=this.renderer;t&&(t.updateAxisLine(),t.updateTooltip(),t.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},i.prototype.initRenderer=function(){},i.prototype.appendDataItem=function(t){var e=this.renderer,r=t.tick;r&&(r.above?r.parent=e.bulletsContainer:r.parent=e.gridContainer),t.label&&(t.label.parent=e);var n=t.axisFill;n&&(n.above?n.parent=e.bulletsContainer:n.parent=e.gridContainer);var a=t.grid;a&&(a.above?a.parent=e.bulletsContainer:a.parent=e.gridContainer),t.bullet&&(t.bullet.parent=e.bulletsContainer)},i.prototype.validate=function(){s.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},i.prototype.validateAxisRanges=function(){var t=this;A(this.axisRanges.iterator(),function(e){t.appendDataItem(e),t.validateDataElement(e),e.grid&&e.grid.validate(),e.tick&&e.tick.validate(),e.axisFill&&e.axisFill.validate(),e.label&&e.label.validate()})},i.prototype.validateBreaks=function(){this._axisBreaks&&A(this._axisBreaks.iterator(),function(t){t.invalidate()})},i.prototype.processBreak=function(t){var e=t.newValue;e.parent=this.renderer.breakContainer,e.axis=this},i.prototype.registerSeries=function(t){var e=this;return this.series.moveValue(t),new Pt([new lt(function(){e.series.removeValue(t)}),this.events.on("lengthchanged",t.invalidate,t,!1),this.events.on("lengthchanged",t.createMask,t,!1),this.events.on("startchanged",t.invalidate,t,!1),this.events.on("endchanged",t.invalidate,t,!1)])},Object.defineProperty(i.prototype,"renderer",{get:function(){return this._renderer},set:function(t){if(t!=this._renderer){this._renderer=t,t.chart=this.chart,t.axis=this,t.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(t.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var e=this.renderer.labels.create();this._disposers.push(e),e.dataItem=this.dataItems.template.clone(),e.text="L",e.parent=this.renderer,e.shouldClone=!1,e.fillOpacity=0,e.opacity=0,e.strokeOpacity=0,e.interactionsEnabled=!1,e.validate(),this.ghostLabel=e,this.events.on("beforedatavalidated",function(){e.text="L"},void 0,!1)}},enumerable:!0,configurable:!0}),i.prototype.positionToAngle=function(t){return this.renderer.positionToAngle(t)},i.prototype.pointToPosition=function(t){return this.renderer.pointToPosition(t)},i.prototype.positionToCoordinate=function(t){return this.renderer.positionToCoordinate(t)},i.prototype.getAnyRangePath=function(t,e){return this.renderer.getPositionRangePath(t,e)},i.prototype.anyToPosition=function(t){return 0},i.prototype.anyToPoint=function(t){return{x:0,y:0,angle:0}},i.prototype.getPositionRangePath=function(t,e){return this.renderer?this.renderer.getPositionRangePath(t,e):""}
172,Object.defineProperty(i.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)&&(t&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(t){this.setPropertyValue("toggleZoomOutButton",t)},enumerable:!0,configurable:!0}),i.prototype.hideTooltip=function(t){s.prototype.hideTooltip.call(this,t),this._tooltipPosition=void 0},i.prototype.showTooltipAtPosition=function(t,e){var r=this._tooltip;if(!r||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(e||(t=this.toAxisPosition(t)),!v(t)||t<this.start||t>this.end){r.hide(0),this._tooltipPosition=void 0;return}var n=this.renderer;r.parent||(r.parent=this.tooltipContainer);var a=n.tooltipLocation,o=this.getCellStartPosition(t),l=this.getCellEndPosition(t);if(this.tooltipPosition=="fixed"&&(t=o+(l-o)*a),t=B(t,this.start,this.end),this._tooltipPosition!=t){this._tooltipPosition=t;var h=n.tooltipLocation2,u=n.positionToPoint(o,h),p=n.positionToPoint(l,h);this.currentItemStartPoint=u,this.currentItemEndPoint=p,n.fullWidthTooltip&&(r.width=p.x-u.x,r.height=p.y-u.y);var d=n.positionToPoint(t,h),f=de(d,this.renderer.line);r.text=this.getTooltipText(t),r.text&&(r.delayedPointTo(f),r.show())}(!this.cursorTooltipEnabled||this.tooltip.disabled)&&r.hide(0)}},i.prototype.toAxisPosition=function(t){if(t=this.renderer.toAxisPosition(t),t!=null)return t=t*(this.end-this.start),this.renderer.inversed?t=this.end-t:t=this.start+t,t},i.prototype.toGlobalPosition=function(t){return this.renderer.inversed?t=this.end-t:t=t-this.start,t/(this.end-this.start)},i.prototype.getTooltipText=function(t){},i.prototype.updateTooltip=function(t,e){var r=this._tooltip;r&&(r.fixDoc=!1,r.pointerOrientation=t,r.setBounds(gs(e,this.renderer.line)))},i.prototype.roundPosition=function(t,e,r){return t},i.prototype.getCellStartPosition=function(t){return t},i.prototype.getCellEndPosition=function(t){return t},Object.defineProperty(i.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var t=this.createDataItem();t.isRange=!0,t.axisFill=this.renderer.axisFills.template.clone(),t.grid=this.renderer.grid.template.clone(),t.tick=this.renderer.ticks.template.clone(),t.label=this.renderer.labels.template.clone(),t.isTemplate=!0,t.component=this,t.axisFill.disabled=!1,t.tick.disabled=!1,t.grid.disabled=!1,t.label.disabled=!1,this._axisRanges=new Ct(t),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new ft(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),i.prototype.processAxisRange=function(t){var e=t.newValue;e.component=this,e.isRange=!0},Object.defineProperty(i.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new Ga(this.createAxisBreak(),function(t,e){return Te(t.adjustedStartValue,e.adjustedStartValue)}),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new ft(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),i.prototype.createAxisBreak=function(){return new an},Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new rt),this._series},enumerable:!0,configurable:!0}),i.prototype.processSeriesDataItems=function(){},i.prototype.processSeriesDataItem=function(t,e){},i.prototype.postProcessSeriesDataItems=function(t){},i.prototype.postProcessSeriesDataItem=function(t){},i.prototype.updateAxisBySeries=function(){},i.prototype.hideUnusedDataItems=function(){var t=this,e=this._dataItemsIterator;e.createNewItems=!1,A(e.iterator(),function(r){t.validateDataElement(r),r.__disabled=!0}),e.clear(),e.createNewItems=!0},i.prototype.getSeriesDataItem=function(t,e,r){},i.prototype.getAngle=function(t,e,r,n,a){},i.prototype.getX=function(t,e,r,n,a){},i.prototype.getPositionX=function(t,e,r,n,a){},i.prototype.getY=function(t,e,r,n,a){},i.prototype.getPositionY=function(t,e,r,n,a){},Object.defineProperty(i.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),i.prototype.dataChangeUpdate=function(){},i.prototype.seriesDataChangeUpdate=function(t){},i.prototype.adjustDifference=function(t,e){var r=e-t;if(v(r))return this._axisBreaks&&he(this._axisBreaks.iterator(),function(n){var a=n.adjustedStartValue,o=n.adjustedEndValue;if(v(a)&&v(o)){if(a>e)return!1;if(o>=t&&v(a)&&v(o)){var l=n.breakSize,h=oh({start:a,end:o},{start:t,end:e});h&&(r-=(h.end-h.start)*(1-l))}return!0}}),r},i.prototype.isInBreak=function(t){if(this._axisBreaks)return Dh(this._axisBreaks.iterator(),function(e){return t>=e.adjustedStartValue&&t<=e.adjustedEndValue})},i.prototype.fixAxisBreaks=function(){var t=this;if(this._axisBreaks){var e=this._axisBreaks;
172if(e.length>0){L(Bi(e.iterator()),function(a){var o=et(a.startValue,a.endValue),l=q(a.startValue,a.endValue);a.adjustedStartValue=o,a.adjustedEndValue=l,t._axisBreaks.update(a)});var r=e.first,n=Math.min(r.startValue,r.endValue);A(e.iterator(),function(a){var o=a.adjustedStartValue,l=a.adjustedEndValue;o<n&&(o=n,l<n&&(l=n)),a.adjustedStartValue=o,a.adjustedEndValue=l})}}},Object.defineProperty(i.prototype,"startIndex",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endIndex",{get:function(){return this.dataItems.length},set:function(t){},enumerable:!0,configurable:!0}),i.prototype.getPositionLabel=function(t){return Math.round(t*100)+"%x"},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),i.prototype.createSeriesRange=function(t){var e=this.axisRanges.create();return e.component=this,e.axisFill=this.renderer.axisFills.template.clone(),e.axisFill.disabled=!1,e.axisFill.fillOpacity=0,e.grid=this.renderer.grid.template.clone(),e.grid.disabled=!0,e.tick=this.renderer.ticks.template.clone(),e.tick.disabled=!0,e.label=this.renderer.labels.template.clone(),e.label.disabled=!0,e.addDisposer(new lt(function(){t.axisRanges.removeValue(e)})),t.axisRanges.push(e),e},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.renderer?this.renderer.copyFrom(t.renderer):t.renderer&&(this.renderer=t.renderer.clone(),this._disposers.push(this.renderer)),t.title&&(this.title?this.title.copyFrom(t.title):(this.title=t.title.clone(),this.title.parent=this),this._disposers.push(this.title))},i.prototype.resetIterators=function(){this._dataItemsIterator.reset()},i.prototype.processConfig=function(t){if(t&&b(t.axisRanges)&&Wt(t.axisRanges))for(var e=0,r=t.axisRanges.length;e<r;e++){var n=t.axisRanges[e];b(n.series)&&tt(n.series)&&this.map.hasKey(n.series)&&(t.axisRanges[e]=this.createSeriesRange(this.map.getKey(n.series)),delete n.series,t.axisRanges[e].config=n)}s.prototype.processConfig.call(this,t)},i.prototype.configOrder=function(t,e){return t==e?0:t=="title"?1:e=="title"||t=="component"?-1:e=="component"?1:s.prototype.configOrder.call(this,t,e)},Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(t){var e=s.prototype.setDisabled.call(this,t);return this.renderer&&(this.renderer.gridContainer.disabled=t),e},Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(t){this._title&&this._title!=t&&this._title.dispose(),t&&(this._title=t,t.parent=this,t.shouldClone=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(t){this.setPropertyValue("hideTooltipWhileZooming",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"zoomable",{get:function(){return this.getPropertyValue("zoomable")},set:function(t){this.setPropertyValue("zoomable",t)},enumerable:!0,configurable:!0}),i}(xi);_.registeredClasses.Axis=on;_.registeredClasses.AxisDataItem=Ji;Nt.push({relevant:Kt.maybeXS,state:function(s,i){if(s instanceof on&&s.tooltip){var t=s.states.create(i);return t.properties.cursorTooltipEnabled=!1,t}return null}});var Oo=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="AxisLine",t.element=t.paper.add("path");var e=new nt;return t.stroke=e.getFor("grid"),t.strokeOpacity=.15,t.pixelPerfect=!0,t.fill=H(),t.applyTheme(),t.interactionsEnabled=!1,t}return i}(Z);_.registeredClasses.AxisLine=Oo;var Ss=function(s){w(i,s);function i(t){var e=s.call(this)||this;e.axis=t,e.element=e.paper.add("path"),e.className="AxisFill",e.isMeasured=!1,e.location=0,e.above=!1;var r=new nt;
172return e.fill=r.getFor("alternativeBackground"),e.fillOpacity=0,e.applyTheme(),e}return i.prototype.setDisabled=function(t){var e=s.prototype.setDisabled.call(this,t);return this.axis&&this.axis.invalidateDataItems(),e},i.prototype.draw=function(){s.prototype.draw.call(this),!(this.__disabled||this.disabled)&&this.axis&&v(this.startPosition)&&v(this.endPosition)&&(this.fillPath=this.axis.getPositionRangePath(this.startPosition,this.endPosition),this.path=this.fillPath,this.isMeasured&&this.measure())},Object.defineProperty(i.prototype,"startPosition",{get:function(){return this.getPropertyValue("startPosition")},set:function(t){this.setPropertyValue("startPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){return this.getPropertyValue("endPosition")},set:function(t){this.setPropertyValue("endPosition",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),i.prototype.setPath=function(t){return this.setPropertyValue("path",t)?(this.element.attr({d:t}),!0):!1},Object.defineProperty(i.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),i}(Z);_.registeredClasses.AxisFill=Ss;var Yi=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="Grid",t.element=t.paper.add("path"),t.location=.5,t.isMeasured=!1,t.above=!1;var e=new nt;return t.stroke=e.getFor("grid"),t.pixelPerfect=!0,t.strokeOpacity=.15,t.fill=H(),t.applyTheme(),t}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(t){var e=s.prototype.setDisabled.call(this,t);return this.axis&&this.axis.invalidateDataItems(),e},i}(Z);_.registeredClasses.Grid=Yi;Nt.push({relevant:Kt.maybeXS,state:function(s,i){if(s instanceof Yi){var t=s.states.create(i);return t.properties.disabled=!0,t}return null}});var Os=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="AxisLabel",t.isMeasured=!1,t.padding(10,10,10,10),t.location=.5,t.applyTheme(),t}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(t){var e=s.prototype.setDisabled.call(this,t);return this.axis&&this.axis.invalidateDataItems(),e},i}(te);_.registeredClasses.AxisLabel=Os;var Qi=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="Tick";var e=new nt;return t.fillOpacity=0,t.length=6,t.strokeOpacity=.2,t.stroke=e.getFor("grid"),t.isMeasured=!1,t.nonScalingStroke=!0,t.applyTheme(),t}return Object.defineProperty(i.prototype,"length",{get:function(){return this.disabled?0:this.getPropertyValue("length")},set:function(t){this.setPropertyValue("length",t,!0)},enumerable:!0,configurable:!0}),i}(Z);_.registeredClasses.Tick=Qi;var Do=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="AxisTick",t.element=t.paper.add("path"),t.location=.5,t.above=!1,t.isMeasured=!1,t.pixelPerfect=!0,t.strokeOpacity=0,t.length=5,t.applyTheme(),t}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"above",{get:function(){return this.getPropertyValue("above")}
172,set:function(t){this.setPropertyValue("above",t,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(t){var e=s.prototype.setDisabled.call(this,t);return this.axis&&this.axis.invalidateDataItems(),e},i}(Qi);_.registeredClasses.AxisTick=Do;var ln=function(s){w(i,s);function i(){var t=s.call(this)||this;t._chart=new Et,t.className="AxisRenderer",t.minGridDistance=50,t.inside=!1,t.inversed=!1,t.tooltipLocation=.5,t.fullWidthTooltip=!1,t.cellStartLocation=0,t.cellEndLocation=1,t.minLabelPosition=0,t.maxLabelPosition=1,t.shouldClone=!1;var e=t.createChild(N);e.shouldClone=!1,e.layout="none",e.virtualParent=t,e.width=I(100),e.height=I(100),t.gridContainer=e,e.events.on("maxsizechanged",function(){t.inited&&t.invalidateAxisItems()},t,!1);var r=t.createChild(N);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",r.width=I(100),r.height=I(100),t.breakContainer=r;var n=t.createChild(N);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",n.width=I(100),n.height=I(100),t.bulletsContainer=n,t.line=t.createChild(Oo),t.line.shouldClone=!1,t.line.strokeOpacity=0;var a=t.createChild(Yi);a.shouldClone=!1,t.baseGrid=a;var o=t._disposers;return o.push(a),o.push(t.line),o.push(e),o.push(r),o.push(n),o.push(t._chart),t.ticks.template.disabled=!0,t.axisFills.template.disabled=!0,t.axisFills.template.interactionsEnabled=!1,t.applyTheme(),t}return Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis},set:function(t){this.setAxis(t)},enumerable:!0,configurable:!0}),i.prototype.setAxis=function(t){this._axis=t,this.baseGrid.parent=t,this.line.parent=t,this.gridContainer.bind("opacity",t)},i.prototype.processRenderer=function(){this.events.on("sizechanged",this.updateTooltip,this,!1),this.events.on("positionchanged",this.updateTooltip,this,!1),this.labels.template.inside=this.inside,this.ticks.template.inside=this.inside},i.prototype.updateTooltip=function(){},Object.defineProperty(i.prototype,"axisLength",{get:function(){return 0},enumerable:!0,configurable:!0}),i.prototype.positionItem=function(t,e){t&&t.moveTo(e)},i.prototype.positionToPoint=function(t,e){return{x:0,y:0}},i.prototype.positionToAngle=function(t){return 0},i.prototype.positionToCoordinate=function(t){var e,r=this.axis,n=r.axisFullLength;return r.renderer.inversed?e=(r.end-t)*n:e=(t-r.start)*n,e},i.prototype.updateGridContainer=function(){},i.prototype.getHeight=function(){var t=this.gridContainer;return t.parent?t.parent.pixelHeight:this.gridContainer.pixelHeight||0},i.prototype.getWidth=function(){var t=this.gridContainer;return t.parent?t.parent.pixelWidth:this.gridContainer.pixelWidth||0},i.prototype.coordinateToPosition=function(t,e){var r,n=this.axis,a=n.axisFullLength;return n.renderer.inversed?r=n.end-t/a:r=t/a+n.start,F(r,5)},i.prototype.pointToPosition=function(t){return 0},i.prototype.getPositionRangePath=function(t,e){return""},i.prototype.invalidateAxisItems=function(){var t=this.axis;t&&t.invalidateDataItems()},i.prototype.updateGridElement=function(t,e,r){},i.prototype.updateTickElement=function(t,e,r){},i.prototype.updateBullet=function(t,e,r){},i.prototype.updateLabelElement=function(t,e,r,n){},i.prototype.updateFillElement=function(t,e,r){t.startPosition=e,t.endPosition=r},i.prototype.updateAxisLine=function(){},i.prototype.updateBaseGridElement=function(){},i.prototype.updateBreakElement=function(t){this.positionItem(t.startLine,t.startPoint),this.toggleVisibility(t.startLine,t.startPosition,0,1),this.positionItem(t.endLine,t.endPoint),this.toggleVisibility(t.endLine,t.endPosition,0,1)},Object.defineProperty(i.prototype,"minGridDistance",{get:function(){return this.getPropertyValue("minGridDistance")},set:function(t){this.setPropertyValue("minGridDistance",t)&&this.axis&&this.axis.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),i.prototype.toggleVisibility=function(t,e,r,n){var a=this.axis,o=t.dataItem;o&&o instanceof Ji&&(v(o.minPosition)&&(r=o.minPosition),v(o.maxPosition)&&(n=o.maxPosition));var l=a.start+(a.end-a.start)*(r-1e-4),h=a.start+(a.end-a.start)*(n+1e-4);t.disabled||(e<l||e>h?t.__disabled=!0:t.__disabled=!1)},i.prototype.createBreakSprites=function(t){},Object.defineProperty(i.prototype,"axisFills",{get:function(){if(!this._axisFills){var t=this.createFill(this.axis);this._axisFills=new Ct(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new ft(this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),i.prototype.createFill=function(t){return new Ss(t)},Object.defineProperty(i.prototype,"grid",{get:function(){if(!this._grid){var t=this.createGrid();this._grid=new Ct(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new ft(this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),i.prototype.createGrid=function(){return new Yi},Object.defineProperty(i.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,t.isMeasured=!1,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new Ct(t),this._disposers.push(new ft(this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),i.prototype.createTick=function(){return new Do},Object.defineProperty(i.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();this._labels=new Ct(t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new ft(this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),i.prototype.createLabel=function(){return new Os}
172,Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t)&&this.axis&&this.axis.invalidate(),t?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(t){this.setPropertyValue("opposite",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(t){this.setPropertyValue("fullWidthTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(t){this.setPropertyValue("tooltipLocation2",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(t){this.setPropertyValue("cellStartLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(t){this.setPropertyValue("cellEndLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(t){this.setPropertyValue("inversed",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(t){this.setPropertyValue("minLabelPosition",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(t){this.setPropertyValue("maxLabelPosition",t,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.grid.template.copyFrom(t.grid.template),this.ticks.template.copyFrom(t.ticks.template),this.labels.template.copyFrom(t.labels.template),this.axisFills.template.copyFrom(t.axisFills.template),this.line.copyFrom(t.line),this.baseGrid.copyFrom(t.baseGrid)},i.prototype.toAxisPosition=function(t){return t},i.prototype.setVisibility=function(t){s.prototype.setVisibility.call(this,t),this.bulletsContainer.visible=t},i}(N);_.registeredClasses.AxisRenderer=ln;var To=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="WavedRectangle",t.element=t.paper.add("path"),t.waveLength=16,t.waveHeight=4,t.tension=.8,t.setPropertyValue("wavedLeft",!0),t.setPropertyValue("wavedRight",!0),t.setPropertyValue("wavedTop",!0),t.setPropertyValue("wavedBottom",!0),t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.pixelWidth,e=this.pixelHeight;if(t>0&&e>0){var r={x:0,y:0},n={x:t,y:0},a={x:t,y:e},o={x:0,y:e},l=Math.min(t,this.waveLength),h=Math.min(e,this.waveHeight),u=Math.min(e,this.waveLength),p=Math.min(t,this.waveHeight),d="",f="",c="",y="";this.wavedTop&&(d=Fi(r,n,l,h,this.tension)),this.wavedRight&&(f=Fi(n,a,u,p,this.tension)),this.wavedBottom&&(c=Fi(a,o,l,h,this.tension)),this.wavedLeft&&(y=Fi(o,r,u,p,this.tension)),this.path=E(r)+d+V(n)+f+V(a)+c+V(o)+y+"z"}},Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.setWavedSides=function(t,e,r,n){this.wavedTop=t,this.wavedRight=e,this.wavedBottom=r,this.wavedLeft=n},Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")}
172,set:function(t){this.setPropertyValue("wavedRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(t){this.setPropertyValue("wavedLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(t){this.setPropertyValue("wavedTop",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(t){this.setPropertyValue("wavedBottom",t,!0)},enumerable:!0,configurable:!0}),i}(Qr),tr=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="AxisBullet",t.location=.5,t.isMeasured=!1,t.applyTheme(),t}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(t){var e=s.prototype.setDisabled.call(this,t);return this.axis&&this.axis.invalidateDataItems(),e},i}(N);_.registeredClasses.AxisBullet=tr;var xe=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="AxisRendererY",t.minGridDistance=40,t.opposite=!1,t.height=I(100),t.labels.template.verticalCenter="middle",t.applyTheme(),t}return i.prototype.setAxis=function(t){s.prototype.setAxis.call(this,t),t.layout="horizontal"},i.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.y=t.pixelY,e.height=t.axisLength}},i.prototype.toAxisPosition=function(t){var e=this.axis;if(e){var r=1-t,n=e.relativePositionSprite,a=e.pixelY;if(n?a=ee({x:0,y:this.pixelY},this.parent,n).y:n=e.parent,n){var o=a/n.innerHeight,l=e.axisLength/n.innerHeight;return 1-(r-o)/l}}return t},i.prototype.processRenderer=function(){s.prototype.processRenderer.call(this);var t=this.axis;if(t){var e=t.title;e.valign="middle",t.height instanceof Q||(t.height=I(100)),this.opposite?(e.rotation=90,this.line.toBack(),e.toFront()):(e.rotation=-90,e.toBack(),this.line.toFront())}},i.prototype.updateTooltip=function(){var t=this.axis;if(t){var e=2e3,r=0,n=0,a=e,o=this.axisLength;this.opposite?this.inside&&(r=-e,a=e):this.inside||(r=-e,a=e),this.axis.updateTooltip("horizontal",{x:r,y:n,width:a,height:o})}},Object.defineProperty(i.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredHeight-t.pixelPaddingTop-t.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(t,e){return{x:0,y:this.positionToCoordinate(t)}},i.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.y,t.x)},i.prototype.coordinateToPosition=function(t,e){var r,n=this.axis,a=n.axisFullLength;return n.renderer.inversed?r=1-n.start-t/a:r=t/a+(1-n.end),F(r,5)},i.prototype.getPositionRangePath=function(t,e){var r=B(this.positionToCoordinate(t),0,this.axisLength),n=B(this.positionToCoordinate(e),0,this.axisLength),a=Math.abs(n-r),o=this.getWidth(),l=Math.min(r,n),h=0;return We({x:h,y:l,width:o,height:a},!0)},i.prototype.updateGridElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e);t.path=E({x:0,y:0})+V({x:this.getWidth(),y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},i.prototype.updateTickElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e),a=t.length;try{this.axis.title.measuredWidth}catch{}n.x=ee({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?a*=t.inside?-1:1:a*=t.inside?1:-1,t.path=E({x:0,y:0})+V({x:a,y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},i.prototype.updateAxisLine=function(){this.line.path=E({x:0,y:0})+V({x:0,y:this.axisLength})},i.prototype.updateBaseGridElement=function(){s.prototype.updateBaseGridElement.call(this);var t=this.axis,e=this.getWidth(),r=this.axisLength,n=t.basePoint.y,a=this.baseGrid;if(n<-.2||n>r+.2)a.hide(0);else{var o=ee({x:0,y:0},this.gridContainer,a.parent).x;a.path=E({x:0,y:0})+V({x:e,y:0}),a.moveTo({x:o,y:n}),a.show(0)}},i.prototype.updateLabelElement=function(t,e,r,n){b(n)||(n=t.location),e=e+(r-e)*n,t.isMeasured=!t.inside;var a=this.positionToPoint(e),o,l=0,h=this.gridContainer.maxWidth;this.opposite?(t.inside?(o="right",t.align=="left"&&(l=-h,o="left"),t.align=="center"&&(l=-h/2,o="middle")):o="left",a.x=0+l):(t.inside?(o="left",t.align=="right"&&(l=h,o="right"),t.align=="center"&&(l=h/2,o="middle")):o="right",a.x=this.measuredWidth+l),t.rotation==0&&(t.horizontalCenter=o),this.positionItem(t,a),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},i.prototype.updateBreakElement=function(t){s.prototype.updateBreakElement.call(this,t);var e=t.startLine,r=t.endLine,n=t.fillShape,a=t.startPoint,o=t.endPoint,l=t.pixelMarginLeft,h=this.getWidth()-t.pixelMarginLeft-t.pixelMarginRight;a.y=B(a.y,-1,this.axisLength+1),o.y=B(o.y,-1,this.axisLength+1),a.y==o.y&&(a.y<0||a.y>this.axisLength)?t.fillShape.__disabled=!0:t.fillShape.__disabled=!1;var u=Math.abs(h-l);e.x=l,e.height=0,e.width=u,r.x=l,r.height=0,r.width=u,n.width=u,n.height=Math.abs(o.y-a.y),n.x=l,n.y=o.y},i.prototype.createBreakSprites=function(t){t.startLine=new $e,t.endLine=new $e;var e=new To;e.setWavedSides(!0,!1,!0,!1),t.fillShape=e},i.prototype.positionToCoordinate=function(t){var e,r=this.axis,n=r.axisFullLength;return r.renderer.inversed?e=(t-r.start)*n:e=(r.end-t)*n,e},i.prototype.updateBullet=function(t,e,r){var n=.5;t instanceof tr&&(n=t.location),e=e+(r-e)*n;var a=this.positionToPoint(e);a.x=ee({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},i}(ln);_.registeredClasses.AxisRendererY=xe;
172Nt.push({relevant:Kt.widthS,state:function(s,i){if(s instanceof xe){var t=s.states.create(i);return t.properties.inside=!0,t.properties.maxLabelPosition=.9,t.properties.minLabelPosition=.1,t}return null}});Nt.push({relevant:Kt.widthXS,state:function(s,i){if(s instanceof xe){var t=s.states.create(i);return t.properties.disabled=!0,t}return null}});var Ds=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ValueAxisBreak",t.applyTheme(),t}return Object.defineProperty(i.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),i}(an);_.registeredClasses.ValueAxisBreak=Ds;var hn=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ValueAxisDataItem",t.values.value={},t.values.endValue={},t.applyTheme(),t}return Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(t){this.setValue("endValue",t)},enumerable:!0,configurable:!0}),i}(Ji),$=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._stepDecimalPlaces=0,t._prevStepDecimalPlaces=0,t._adjustLabelPrecision=!0,t._baseValue=0,t._adjustedStart=0,t._adjustedEnd=1,t._extremesChanged=!1,t._deltaMinMax=1,t._dsc=!1,t.calculateTotals=!1,t.className="ValueAxis",t.axisFieldName="value",t.setPropertyValue("maxZoomFactor",1e3),t.setPropertyValue("extraMin",0),t.setPropertyValue("extraMax",0),t.setPropertyValue("strictMinMax",!1),t.setPropertyValue("maxPrecision",Number.MAX_VALUE),t.setPropertyValue("adjustLabelPrecision",!0),t.setPropertyValue("extraTooltipPrecision",0),t.keepSelection=!1,t.includeRangesInMinMax=!1,t.applyTheme(),t}return i.prototype.fillRule=function(t){var e=t.value,r=t.component;t.axisFill.disabled||(F(e/r.step/2,5)==Math.round(e/r.step/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1)},i.prototype.createDataItem=function(){return new hn},i.prototype.createAxisBreak=function(){return new Ds},i.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(this._start!=0&&this.dispatchImmediately("startchanged"),this._end!=1&&this.dispatchImmediately("endchanged"),(this._start!=0||this._end!=1)&&this.dispatchImmediately("startendchanged")):(this._start!=0||this._end!=1)&&(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},i.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var t=this.series.getIndex(0),e=t.startIndex;if(t.dataItems.length>0){e>0&&e--;var r=t.endIndex;r<t.dataItems.length&&r++;for(var n=function(l){var h={},u={};a.series.each(function(p){if(!p.excludeFromTotal){var d=p.dataItems.getIndex(l);d&&U(d.values,function(f){var c=d.values[f].workingValue;v(c)&&(v(h[f])?h[f]+=Math.abs(c):h[f]=Math.abs(c),v(u[f])?u[f]+=c:u[f]=c)})}}),a.series.each(function(p){if(!p.excludeFromTotal){var d=p.dataItems.getIndex(l);d&&U(d.values,function(f){var c=d.values[f].workingValue;v(c)&&(d.setCalculatedValue(f,h[f],"total"),d.setCalculatedValue(f,100*c/h[f],"totalPercent"),d.setCalculatedValue(f,u[f],"sum"))})}})},a=this,o=e;o<r;++o)n(o)}}},i.prototype.validate=function(){this.axisLength<=0||(s.prototype.validate.call(this),this.getMinMax(),v(this._minAdjusted)||this.dataItems.each(function(t){t.value=null}),this.fixAxisBreaks(),this.calculateZoom(),this.validateAxisElements(),this.validateAxisRanges(),this.validateBreaks(),this.hideUnusedDataItems(),this.renderer.invalidateLayout())},i.prototype.calculateZoom=function(){if(v(this.min)&&v(this.max)){var t=this.positionToValue(this.start),e=this.positionToValue(this.end),r=this.adjustDifference(t,e),n=this.adjustMinMax(t,e,r,this._gridCount,!0),a=ru(n.step);this._stepDecimalPlaces=a,t=F(t,a),e=F(e,a),n=this.adjustMinMax(t,e,r,this._gridCount,!0);var o=n.step;if(this.syncWithAxis){var l=this.getCache(t+"-"+e);
172v(l)&&(o=l)}else t=n.min,e=n.max;(this._minZoomed!=t||this._maxZoomed!=e||this._step!=o||this._dsc)&&(this._dsc=!1,this._minZoomed=t,this._maxZoomed=e,this._step=o,this.dispatchImmediately("selectionextremeschanged"))}},i.prototype.fixSmallStep=function(t){return 1+t==1?(t*=2,this.fixSmallStep(t)):t},i.prototype.validateAxisElements=function(){var t=this;if(v(this.max)&&v(this.min)){var e=this.minZoomed-this._step*2;if(!this.logarithmic)e=Math.floor(e/this._step)*this._step;else{var r=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;r>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E):(e=Math.floor(this.minZoomed/this._step)*this._step,e==0&&(e=this.minZoomed))}var n=this._maxZoomed+this._step;this.resetIterators();var a=this._dataItemsIterator;if(this._step==0)return;this._step=this.fixSmallStep(this._step);var o=0,l=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;for(this._prevStepDecimalPlaces=this._stepDecimalPlaces;e<=n;){var h=this.isInBreak(e);if(!h){var u=a.find(function(g){return g.value===e});u.__disabled&&(u.__disabled=!1),this.appendDataItem(u),u.axisBreak=void 0,(u.value!=e||l)&&(u.value=e,u.text=this.formatLabel(e),u.label&&u.label.invalid&&u.label.validate(),u.value>=this.min&&u.value<=this.max&&u.label&&(this.axisLetter=="Y"&&u.label.measuredWidth>this.ghostLabel.measuredWidth||this.axisLetter=="X"&&u.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=u.label.currentText,this.ghostLabel.validate())),this.validateDataElement(u)}o++;var p=e;if(!this.logarithmic)e+=this._step;else{var r=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;r>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E+o):e+=this._step}var d=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(d<1){var f=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+2;if(f=Math.min(13,f),e=F(e,f),p==e){e=n;break}}}var c=this._axisBreaks;if(c){var y=this.renderer;A(c.iterator(),function(g){if(g.breakSize>0&&at(g.startPoint,g.endPoint)>y.minGridDistance)for(var m=g.adjustedMin;m<=g.adjustedMax;){if(m>=g.adjustedStartValue&&m<=g.adjustedEndValue){var x=a.find(function(P){return P.value===m});x.__disabled&&(x.__disabled=!1),t.appendDataItem(x),x.axisBreak=g,x.value!=m&&(x.value=m,x.text=t.formatLabel(m),x.label&&x.label.invalid&&x.label.validate()),t.validateDataElement(x)}m+=g.adjustedStep}})}}},i.prototype.validateDataElement=function(t){s.prototype.validateDataElement.call(this,t),t.itemIndex=this._axisItemCount,this._axisItemCount++;var e=this.renderer,r=t.value,n=t.endValue,a=this.valueToPosition(r);t.position=a;var o=a,l=this.valueToPosition(r+this._step);v(n)&&(o=this.valueToPosition(n),l=o),t.point=e.positionToPoint(a);var h=t.tick;h&&!h.disabled&&e.updateTickElement(h,a,o);var u=t.grid;u&&!u.disabled&&e.updateGridElement(u,a,o);var p=t.label;p&&!p.disabled&&e.updateLabelElement(p,a,o);var d=t.axisFill;d&&!d.disabled&&(e.updateFillElement(d,a,l),t.isRange||this.fillRule(t)),t.bullet&&e.updateBullet(t.bullet,a,o);var f=t.mask;f&&e.updateFillElement(f,a,l)},i.prototype.formatLabel=function(t){return this.adjustLabelPrecision&&t!=0?this.numberFormatter.format(t,void 0,this._stepDecimalPlaces):this.numberFormatter.format(t)},Object.defineProperty(i.prototype,"basePoint",{get:function(){var t=this.baseValue,e=this.valueToPosition(t),r=this.renderer.positionToPoint(e);return r},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseValue",{get:function(){var t=this._baseValue;return this.logarithmic&&(t=this.min),this._adapterO?this._adapterO.apply("baseValue",t):t},set:function(t){this._baseValue=t,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),i.prototype.anyToPosition=function(t){return this.valueToPosition(t)},i.prototype.valueToPoint=function(t){var e=this.valueToPosition(t),r=this.renderer.positionToPoint(e),n=this.renderer.positionToAngle(e);return{x:r.x,y:r.y,angle:n}},i.prototype.anyToPoint=function(t){return this.valueToPoint(t)},i.prototype.valueToPosition=function(t){if(v(t)){var e=this.min,r=this.max;if(v(e)&&v(r)){var n=this._difference,a=this._axisBreaks;a&&a.length>0&&he(a.iterator(),function(h){var u=h.adjustedStartValue,p=h.adjustedEndValue;if(v(u)&&v(p)){if(t<u)return!1;if(Tr({start:u,end:p},{start:e,end:r})){u=Math.max(u,e),p=Math.min(p,r);var d=h.breakSize;t>p?e+=(p-u)*(1-d):t<u||(t=u+(t-u)*d)}}return!0});var o=void 0;if(!this.logarithmic)o=(t-e)/n;else{var l=this.treatZeroAs;v(l)&&t<=l&&(t=l),o=(Math.log(t)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)/(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)}return o}}return 0},i.prototype.invalidateLabels=function(){s.prototype.invalidateLabels.call(this),this.dataItems&&(this.dataItems.each(function(t){t.value=void 0}),this.invalidate())},i.prototype.positionToValue=function(t){var e=this.min,r=this.max;if(v(e)&&v(r)){var n=r-e,a=null,o=this._axisBreaks;return o&&o.length>0&&he(o.iterator(),function(l){var h=l.startPosition,u=l.endPosition,p=l.adjustedStartValue,d=l.adjustedEndValue;if(v(p)&&v(d)){if(p>r)return!1;if(Tr({start:p,end:d},{start:e,end:r})){p=q(p,e),d=et(d,r);var f=l.breakSize;if(n-=(d-p)*(1-f),t>u)e+=(d-p)*(1-f);else if(!(t<h)){var c=(t-h)/(u-h);return a=p+c*(d-p),!1}}return!0}}),v(a)||(this.logarithmic?a=Math.pow(Math.E,(t*(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)+Math.log(this.min)*Math.LOG10E)/Math.LOG10E):a=t*n+e),a}},i.prototype.xToValue=function(t){return this.positionToValue(this.pointToPosition({x:t,y:0}))},i.prototype.yToValue=function(t){return this.positionToValue(this.pointToPosition({x:0,y:t}))},i.prototype.pointToPosition=function(t){return this.renderer instanceof xe?1-this.renderer.pointToPosition(t):this.renderer.pointToPosition(t)},i.prototype.animateMinMax=function(t,e){return this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:t},{property:"_maxAdjusted",from:this._maxAdjusted,to:e}],this.rangeChangeDuration,this.rangeChangeEasing)},i.prototype.getMinMax=function(){var t=this;this.updateGridCount();var e=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;if((!v(this._minDefined)||!v(this._maxDefined))&&(this.series.each(function(d){if(!d.ignoreMinMax){var f=d.min(t);v(f)&&f<e&&(e=f);var c=d.max(t);v(c)&&c>r&&(r=c)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(d){if(!d.ignoreMinMax){var f=et(d.value,d.endValue),c=q(d.value,d.endValue);(f<e||!v(e))&&(e=f),(c>r||!v(r))&&(r=c)}})),this.logarithmic){var n=this.treatZeroAs;v(n)&&e<=0&&(e=n),e<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0)}if(e==0&&r==0&&(r=.9,e=-.9),v(this._minDefined)&&(e=this._minDefined),v(this._maxDefined)&&(r=this._maxDefined),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(r=this._adapterO.apply("max",r)),!(!v(e)||!v(r))){this._minReal=e,this._maxReal=r,e==Number.POSITIVE_INFINITY&&(e=void 0),r==Number.NEGATIVE_INFINITY&&(r=void 0);var a=this.adjustDifference(e,r);if(e=this.fixMin(e),r=this.fixMax(r),r-e<=1/Math.pow(10,15)){if(r-e!=0)this._deltaMinMax=(r-e)/2;else{var o=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(o));l=l/10,this._deltaMinMax=l}e-=this._deltaMinMax,r+=this._deltaMinMax}e-=(r-e)*this.extraMin,r+=(r-e)*this.extraMax;var h=this.strictMinMax;v(this._maxDefined)&&(h=!0);var u=this.adjustMinMax(e,r,a,this._gridCount,h);if(e=u.min,r=u.max,a=r-e,u=this.adjustMinMax(e,r,r-e,this._gridCount,!0),e=u.min,r=u.max,this.strictMinMax&&(v(this._minDefined)?e=this._minDefined:e=this._minReal,v(this._maxDefined)?r=this._maxDefined:r=this._maxReal,r-e<=1e-8&&(e-=this._deltaMinMax,r+=this._deltaMinMax),e-=(r-e)*this.extraMin,r+=(r-e)*this.extraMax),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(r=this._adapterO.apply("max",r)),this._step=u.step,
172!v(e)&&!v(r)&&(this.start=0,this.end=1,this.renderer.labels.each(function(d){d.dataItem.text=""})),(this._minAdjusted!=e||this._maxAdjusted!=r)&&v(e)&&v(r)){var p=this._minMaxAnimation;if(this._extremesChanged&&v(this._minAdjusted)&&v(this._maxAdjusted)&&this.inited){if(p&&!p.isFinished()&&this._finalMax==r&&this._finalMin==e)return;this._finalMin=e,this._finalMax=r,p=this.animateMinMax(e,r),p&&!p.isFinished()?(p.events.on("animationprogress",this.validateDataItems,this),p.events.on("animationended",function(){t.series.each(function(d){d.validate()}),t.validateDataItems(),t.handleSelectionExtremesChange()}),this._minMaxAnimation=p):this.series.each(function(d){d.invalidate()}),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(p&&!p.isFinished()&&this._finalMax==r&&this._finalMin==e)return;this._minAdjusted=e,this._maxAdjusted=r,this._finalMin=e,this._finalMax=r,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged"),this._saveMinMax(e,r)}}this._extremesChanged=!1,this._difference=this.adjustDifference(e,r)}},i.prototype.fixMin=function(t){return t},i.prototype.fixMax=function(t){return t},i.prototype.adjustMinMax=function(t,e,r,n,a){n<=1&&(n=1),n=Math.round(n);var o=t,l=e;r===0&&(r=Math.abs(e));var h=Math.log(Math.abs(r))*Math.LOG10E,u=Math.pow(10,Math.floor(h));u=u/10;var p=u;a&&(p=0),this.logarithmic?(t<=0&&(t=this.baseValue),t==1/0&&(t=1),e==-1/0&&(e=10),this.strictMinMax?(this._minDefined>0?t=this._minDefined:t=t,this._maxDefined>0&&(e=e)):(t=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),e=Math.pow(10,Math.ceil(Math.log(Math.abs(e))*Math.LOG10E)))):(a?(t=Math.floor(t/u)*u,e=Math.ceil(e/u)*u):(t=Math.ceil(t/u)*u-p,e=Math.floor(e/u)*u+p),t<0&&o>=0&&(t=0),e>0&&l<=0&&(e=0)),h=Math.log(Math.abs(r))*Math.LOG10E,u=Math.pow(10,Math.floor(h)),u=u/10;var d=Math.ceil(r/n/u)*u,f=Math.pow(10,Math.floor(Math.log(Math.abs(d))*Math.LOG10E)),c=Math.ceil(d/f);c>5?c=10:c<=5&&c>2&&(c=5),d=Math.ceil(d/(f*c))*f*c,this.maxPrecision<Number.MAX_VALUE&&d!=$s(d,this.maxPrecision)&&(d=$s(d,this.maxPrecision));var y=0;if(f<1&&(y=Math.round(Math.abs(Math.log(Math.abs(f))*Math.LOG10E))+1,d=F(d,y)),!this.logarithmic){var g=Math.floor(t/d);t=F(d*g,y);var m=void 0;a?m=Math.floor(e/d):m=Math.ceil(e/d),m==g&&m++,e=F(d*m,y),e<l&&(e=e+d),t>o&&(t=t-d)}return{min:t,max:e,step:d}},Object.defineProperty(i.prototype,"min",{get:function(){var t=this._minAdjusted;return v(t)||(t=this._minDefined),t},set:function(t){this._minDefined!=t&&(this._minDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(t){this.setPropertyValue("extraMin",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(t){this.setPropertyValue("extraMax",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){var t=this._maxAdjusted;return v(t)||(t=this._maxDefined),t},set:function(t){this._maxDefined!=t&&(this._maxDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(t){this.setPropertyValue("adjustLabelPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.registerSeries=function(t){return new Pt([s.prototype.registerSeries.call(this,t),t.events.on("extremeschanged",this.handleExtremesChange,this,!1),t.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",t.invalidate,t,!1)])},i.prototype.handleSelectionExtremesChange=function(){var t=this,e,r,n=!0;if(A(this.series.iterator(),function(f){if(!f.ignoreMinMax&&!f.isHidden&&!f.outOfRange){f.visible&&!f.isHiding&&(n=!1);var c=f.selectionMin(t),y=f.selectionMax(t);v(c)&&(!v(e)||c<e)&&(e=c),v(y)&&(!v(r)||y>r)&&(r=y)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(f){if(!f.ignoreMinMax){var c=et(f.value,f.endValue),y=q(f.value,f.endValue);c<e&&(e=c),y>r&&(r=y)}}),v(this._minDefined)?this.strictMinMax?e=this._minDefined:e=this.min:this.strictMinMax&&(e=this._minReal),v(this._maxDefined)?this.strictMinMax?r=this._maxDefined:r=this.max:this.strictMinMax&&(r=this._maxReal),e==r){e-=this._deltaMinMax,r+=this._deltaMinMax;var a=this.adjustMinMax(e,r,0,this._gridCount,this.strictMinMax);e=a.min,r=a.max}var o=this.adjustDifference(e,r),l=this.adjustMinMax(e,r,o,this._gridCount);e=l.min,r=l.max,e-=(r-e)*this.extraMin,r+=(r-e)*this.extraMax,e=B(e,this.min,this.max),r=B(r,this.min,this.max),o=this.adjustDifference(e,r),l=this.adjustMinMax(e,r,o,this._gridCount,!0),e=l.min,r=l.max,this.strictMinMax&&(e=q(e,this._minDefined),r=et(r,this._maxDefined));var h=l.step;this.syncWithAxis&&(l=this.syncAxes(e,r,h),e=l.min,r=l.max,this.invalidate()),h=l.step,this._difference=this.adjustDifference(this.min,this.max);var u=this.valueToPosition(e),p=this.valueToPosition(r);n&&!this.syncWithAxis&&(u=0,p=1);var d=0;this.syncWithAxis?(d=5,this.setCache(e+"-"+r,h)):((this._step!=h||this._minZoomed!=e||this._maxZoomed!=r)&&(this._dsc=!0),this._step=h,this._minZoomed=e,this._maxZoomed=r),this.keepSelection||this.zoom({start:u,end:p},!1,!1,d)},Object.defineProperty(i.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(t){this.setPropertyValue("strictMinMax",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(t){this.setPropertyValue("logarithmic",t)&&(this.invalidate(),this.series.each(function(e){e.invali
172dateDataItems()}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(t){this.setPropertyValue("keepSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(t){this.setPropertyValue("includeRangesInMinMax",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(t){this.setPropertyValue("maxPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(t){this.setPropertyValue("extraTooltipPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.handleExtremesChange=function(){var t=this;if(this._extremesChanged=!0,this.getMinMax(),this.ghostLabel){var e=0;this.dataItems.each(function(r){r.label&&r.label.pixelWidth>e&&(t.ghostLabel.text=r.label.currentText)})}},i.prototype.getX=function(t,e,r,n,a){return this.renderer.positionToPoint(this.getPositionX(t,e,r,n,a)).x},i.prototype.getPositionX=function(t,e,r,n,a){var o=t.getWorkingValue(e);b(n)||(n="valueX");var l=t.getValue(n,"stack");v(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var h=this.valueToPosition(o+l);return a&&(h=B(h,a.start,a.end)),h},i.prototype.getY=function(t,e,r,n,a){return this.renderer.positionToPoint(this.getPositionY(t,e,r,n,a)).y},i.prototype.getPositionY=function(t,e,r,n,a){var o=t.getWorkingValue(e);b(n)||(n="valueY");var l=t.getValue(n,"stack");v(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var h=this.valueToPosition(o+l);return a&&(h=B(h,a.start,a.end)),h},i.prototype.getAngle=function(t,e,r,n,a){var o=t.getWorkingValue(e),l=t.getValue(n,"stack");v(o)||(o=this.baseValue);var h=this.valueToPosition(o+l);return a&&(h=B(h,a.start,a.end)),this.positionToAngle(h)},i.prototype.getAnyRangePath=function(t,e,r){var n=this.valueToPosition(t),a=this.valueToPosition(e);return this.getPositionRangePath(n,a)},i.prototype.getTooltipText=function(t){var e=F(this.positionToValue(t),this._stepDecimalPlaces+this.extraTooltipPrecision),r=this.tooltip.numberFormatter.format(e);return this._adapterO?this._adapterO.apply("getTooltipText",r):r},i.prototype.zoomToValues=function(t,e,r,n){var a=(t-this.min)/(this.max-this.min),o=(e-this.min)/(this.max-this.min);this.zoom({start:a,end:o},r,n)},Object.defineProperty(i.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:q(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:et(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),i.prototype.fixAxisBreaks=function(){var t=this;s.prototype.fixAxisBreaks.call(this);var e=this._axisBreaks;e&&e.length>0&&e.each(function(r){var n=r.adjustedStartValue,a=r.adjustedEndValue,o=a-n,l=Math.ceil(o*r.breakSize)*t._gridCount/(t.max-t.min),h=t.adjustMinMax(n,a,o,l,!0);r.adjustedStep=h.step,r.adjustedMin=h.min,r.adjustedMax=h.max}),this._difference=this.adjustDifference(this.min,this.max)},i.prototype.getPositionLabel=function(t){var e=this.positionToValue(t);return this.numberFormatter.format(e)},i.prototype.showTooltipAt=function(t){this.showTooltipAtPosition(this.valueToPosition(t))},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.min=t.min,this.max=t.max,this.calculateTotals=t.calculateTotals,this._baseValue=t.baseValue},Object.defineProperty(i.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(t){var e=this;this.setPropertyValue("syncWithAxis",t,!0)&&t&&(this._disposers.push(t.events.on("extremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(t.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(t.events.on("startendchanged",this.handleSelectionExtremesChange,this,
172!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",function(){e.clearCache(),e._disposers.push(_.events.once("exitframe",function(){e.handleSelectionExtremesChange()}))},this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"treatZeroAs",{get:function(){return this.getPropertyValue("treatZeroAs")},set:function(t){this.setPropertyValue("treatZeroAs",t,!0)},enumerable:!0,configurable:!0}),i.prototype.syncAxes=function(t,e,r){var n=this.syncWithAxis;if(n){v(t)||(t=this.min),v(e)||(e=this.max),v(r)||(r=this._step);var a=Math.round((n.maxZoomed-n.minZoomed)/n.step),o=Math.round((e-t)/r);if(v(a)&&v(o))for(var l=!1,h=0,u=(e-t)*.01,p=t,d=e,f=r;l!=!0;)if(l=this.checkSync(p,d,f,a),h++,h>1e3&&(l=!0),l)t=p,e=d,r=f;else{h/3==Math.round(h/3)?(p=t-u*h,t>=0&&p<0&&(p=0)):(d=e+u*h,d<=0&&d>0&&(d=0));var c=this.adjustMinMax(p,d,d-p,this._gridCount,!0);p=c.min,d=c.max,f=c.step}}return{min:t,max:e,step:r}},i.prototype.checkSync=function(t,e,r,n){for(var a=(e-t)/r,o=1;o<n;o++)if(F(a/o,1)==n||a*o==n)return!0;return!1},i.prototype.processConfig=function(t){t&&b(t.syncWithAxis)&&tt(t.syncWithAxis)&&(this.map.hasKey(t.syncWithAxis)?t.syncWithAxis=this.map.getKey(t.syncWithAxis):(this.processingErrors.push('[ValueAxis] No axis with id "'+t.syncWithAxis+'" found for `syncWithAxis`'),delete t.xAxis)),s.prototype.processConfig.call(this,t)},i.prototype._saveMinMax=function(t,e){},i}(on);_.registeredClasses.ValueAxis=$;_.registeredClasses.ValueAxisDataItem=hn;var ko=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="DateAxisBreak",t.applyTheme(),t}return Object.defineProperty(i.prototype,"startDate",{get:function(){return this.getPropertyValue("startDate")},set:function(t){this.setPropertyValue("startDate",t)&&(this.startValue=t.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endDate",{get:function(){return this.getPropertyValue("endDate")},set:function(t){this.setPropertyValue("endDate",t)&&(this.endValue=t.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),i}(Ds);_.registeredClasses.DateAxisBreak=ko;var Vo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="DateAxisDataItem",t.applyTheme(),t.values.date={},t.values.endDate={},t}return Object.defineProperty(i.prototype,"date",{get:function(){return this.dates.date},set:function(t){this.setDate("date",t),this.value=t.getTime()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endDate",{get:function(){return this.dates.endDate},set:function(t){this.setDate("endDate",t),this.endValue=t.getTime()},enumerable:!0,configurable:!0}),i}(hn),mt=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._gapBreaks=!1,t.gridIntervals=new rt,t.groupIntervals=new rt,t.dateFormats=new ct,t.periodChangeDateFormats=new ct,t._baseIntervalReal={timeUnit:"day",count:1},t._prevSeriesTime={},t._minDifference={},t._firstWeekDay=1,t.groupMin={},t.groupMax={},t._intervalMax={},t._intervalMin={},t.className="DateAxis",t.setPropertyValue("markUnitChange",!0),t.snapTooltip=!0,t.tooltipPosition="pointer",t.setPropertyValue("groupData",!1),t.groupCount=200,t.events.on("parentset",t.getDFFormatter,t,!1),t.gridIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}]),t.groupIntervals.pushAll([{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}]),t.axisFieldName="date",t.applyTheme(),t}return i.prototype.fillRule=function(t){var e=t.value,r=t.component,n=r._gridInterval,a=wt(n.timeUnit,n.count);Math.round((e-r.min)/a)/2==Math.round(Math.round((e-r.min)/a)/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),this.dateFormats.hasKey("millisecond")||this.dateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.dateFormats.hasKey("second")||this.dateFormats.setKey("second",this.language.translate("_date_second")),this.dateFormats.hasKey("minute")||this.dateFormats.setKey("minute",this.language.translate("_date_minute")),this.dateFormats.hasKey("hour")||this.dateFormats.setKey("hour",this.language.translate("_date_hour")),this.dateFormats.hasKey("day")||this.dateFormats.setKey("day",this.language.translate("_date_day")),this.dateFormats.hasKey("week")||this.dateFormats.setKey("week",this.language.translate("_date_day")),this.dateFormats.hasKey("month")||this.dateFormats.setKey("month",this.language.translate("_date_month")),this.dateFormats.hasKey("year")||this.dateFormats.setKey("year",this.language.translate("_date_year")),this.periodChangeDateFormats.hasKey("millisecond")||this.periodChangeDateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.periodChangeDateFormats.hasKey("second")||this.periodChangeDateFormats.setKey("second",this.language.translate("_date_second")),this.periodChangeDateFormats.hasKey("minute")||this.periodChangeDateFormats.setKey("minute",this.language.translate("_date_minute")),this.periodChangeDateFormats.hasKey("hour")||this.periodChangeDateFormats.setKey("hour",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("day")||this.periodChangeDateFormats.setKey("day",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("week")||this.periodChangeDateFormats.setKey("week",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("month")||this.periodChangeDateFormats.setKey("month",this.language.translate("_date_month")+" "+this.language.translate("_date_year"))},i.prototype.createDataItem=function(){return new Vo},i.prototype.createAxisBreak=function(){return new ko},i.prototype.validateDataItems=function(){var t=this.start,e=this.end,r=this.baseDuration,n=(this.max-this.min)/r;this._firstWeekDay=this.getFirstWeekDay(),this.getDFFormatter(),s.prototype.validateDataItems.call(this);var a=wt(this.mainBaseInterval.timeUnit,this.mainBaseInterval.count);this.maxZoomFactor=Math.max(1,(this.max-this.min)/a),this._deltaMinMax=this.baseDuration/2;var o=(this.max-this.min)/r;t=t+(e-t)*(1-n/o),this.zoom({start:t,end:e},!1,!0)},i.prototype.handleSelectionExtremesChange=function(){},i.prototype.getIntervalMax=function(t){return this._intervalMax[t.timeUnit+t.count]},i.prototype.getIntervalMin=function(t){return this._intervalMin[t.timeUnit+t.count]},i.prototype.calculateZoom=function(){var t=this;s.prototype.calculateZoom.call(this);var e=this.adjustDifference(this._minZoomed,this._maxZoomed),r=!1;if(this.groupData&&b(e)){var n=this.mainBaseInterval,a=this.getIntervalMin(n),o=this.getIntervalMax(n),l=a+(o-a)*this.start,h=a+(o-a)*this.end,u=this.adjustDifference(l,h),p=u+(this.startLocation+(1-this.endLocation))*this.baseDuration,d=void 0;this.groupInterval?d=Pe({},this.groupInterval):(d=this.chooseInterval(0,p,this.groupCount,this.groupIntervals),wt(d.timeUnit,d.count)<wt(n.timeUnit,n.count)&&(d=Pe({},n))),this._groupInterval=d;var f=d.timeUnit+d.count;this._currentDataSetId!=f&&(this._currentDataSetId=f,this.dispatch("groupperiodchanged")),this.series.each(function(y){y.baseAxis==t&&y.setDataSet(t._currentDataSetId)&&(r=!0)})}var c=this.chooseInterval(0,e,this._gridCount);wt(c.timeUnit,c.count)<this.baseDuration&&(c=Pe({},this.baseInterval)),this._gridInterval=c,this._nextGridUnit=ho(c.timeUnit),this._intervalDuration=wt(c.timeUnit,c.count),this._gridDate=Rt(new Date(this.minZoomed-wt(c.timeUnit,c.count)),c.timeUnit,c.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),A(this.series.iterator(),function(y){if(y.baseAxis==t){var g=y.getAxisField(t),m=Rt(new Date(t._minZoomed+t.baseDuration*.05),t.baseInterval.timeUnit,t.baseInterval.count,t._firstWeekDay,t._df.utc,void 0,t._df.timezoneMinutes,t._df.timezone).getTime(),x=m.toString(),P=y.dataItemsByAxis.getKey(t.uid).getKey(x+y.currentDataSetId),S=0;t.start!=0&&(P?(P=t.findFirst(P,m,g),S=P.index):S=y.dataItems.findClosestIndex(t._minZoomed,function(z){return z[g]},"left"));
172var C=t.baseInterval,O=Zt(Rt(new Date(t._maxZoomed),C.timeUnit,C.count,t._firstWeekDay,t._df.utc,void 0,t._df.timezoneMinutes,t._df.timezone),C.timeUnit,C.count,t._df.utc).getTime(),T=O.toString(),D=y.dataItemsByAxis.getKey(t.uid).getKey(T+y.currentDataSetId),k=y.dataItems.length;t.end!=1&&(D?k=D.index:(O-=1,k=y.dataItems.findClosestIndex(O,function(z){return z[g]},"right"),k++)),y.max(t)<m?(y.startIndex=y.dataItems.length,y.endIndex=y.dataItems.length,y.outOfRange=!0):y.min(t)>O?(y.startIndex=0,y.endIndex=0,y.outOfRange=!0):(y.outOfRange=!1,y.startIndex=S,y.endIndex=k),!r&&y.dataRangeInvalid&&y.validateDataRange()}})},i.prototype.findFirst=function(t,e,r){var n=t.index;if(n>0){var a=t.component,o=a.dataItems.getIndex(n-1),l=o[r];return!l||l.getTime()<e?t:this.findFirst(o,e,r)}else return t},i.prototype.validateData=function(){s.prototype.validateData.call(this),v(this.baseInterval.count)||(this.baseInterval.count=1)},Object.defineProperty(i.prototype,"minDifference",{get:function(){var t=this,e=Number.MAX_VALUE;return this.series.each(function(r){e>t._minDifference[r.uid]&&(e=t._minDifference[r.uid])}),(e==Number.MAX_VALUE||e==0)&&(e=wt("day")),e},enumerable:!0,configurable:!0}),i.prototype.seriesDataChangeUpdate=function(t){this._minDifference[t.uid]=Number.MAX_VALUE},i.prototype.postProcessSeriesDataItems=function(t){var e=this;this._firstWeekDay=this.getFirstWeekDay(),t?this.seriesGroupUpdate(t):this.series.each(function(r){e.seriesGroupUpdate(r)}),this.addEmptyUnitsBreaks()},i.prototype.seriesGroupUpdate=function(t){var e=this;JSON.stringify(t._baseInterval[this.uid])!=JSON.stringify(this.mainBaseInterval)&&(t._baseInterval[this.uid]=this.mainBaseInterval,t.mainDataSet.each(function(r){e.postProcessSeriesDataItem(r)}
172),this.groupData&&this.groupSeriesData(t))},i.prototype.groupSeriesData=function(t){var e=this;if(t.baseAxis==this&&t.dataItems.length>0&&!t.dataGrouped){t.bulletsContainer.removeChildren();var r=[],n=this.mainBaseInterval,a=wt(n.timeUnit,n.count);this.groupIntervals.each(function(o){var l=wt(o.timeUnit,o.count);(l>a&&l<e.max-e.min||e.groupInterval)&&r.push(o)}),t._dataSets&&(t._dataSets.each(function(o,l){l.each(function(h){h.dispose()}),l.clear()}),t._dataSets.clear()),t.dataGrouped=!0,L(r,function(o){var l="date"+e.axisLetter,h=o.timeUnit+o.count,u=new Fr(t.mainDataSet.template.clone());t.dataSets.setKey(h,u);var p=t.mainDataSet,d=Number.NEGATIVE_INFINITY,f=0,c,y=[];U(t.dataFields,function(m,x){var P=m;P!=l&&P.indexOf("Show")==-1&&y.push(P)});var g;p.each(function(m){var x=m.getDate(l);if(x){var P=x.getTime();g=Rt(new Date(P),o.timeUnit,o.count,e._df.firstDayOfWeek,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone);var S=g.getTime();d<S?(c&&t._adapterO&&L(y,function(C){c.values[C].value=t._adapterO.apply("groupDataItem",{dataItem:c,interval:o,dataField:C,date:g,value:c.values[C].value}).value,c.values[C].workingValue=c.values[C].value}),c=u.create(),c.dataContext={},c.setWorkingLocation("dateX",t.dataItems.template.locations.dateX,0),c.setWorkingLocation("openDateX",t.dataItems.template.locations.openDateX,0),c.setWorkingLocation("dateY",t.dataItems.template.locations.dateY,0),c.setWorkingLocation("openDateY",t.dataItems.template.locations.openDateY,0),c.component=t,c.setDate(l,g),c._index=f,f++,L(y,function(C){var O=m.values[C];if(O){var T=O.value;t._adapterO&&(T=t._adapterO.apply("groupValue",{dataItem:m,interval:o,dataField:C,date:g,value:T}).value);var D=c.values[C];v(T)?(D.value=T,D.workingValue=T,D.open=T,D.close=T,D.low=T,D.high=T,D.sum=T,D.average=T,D.count=1):D.count=0}}),e.postProcessSeriesDataItem(c,o),U(t.propertyFields,function(C,O){var T=C,D=m.properties[C];b(D)&&(c.hasProperties=!0,c.setProperty(T,D))}),c.groupDataItems=[m],d=S):c&&(L(y,function(C){var O=t.groupFields[C],T=m.values[C];if(T){var D=T.value;if(t._adapterO&&(D=t._adapterO.apply("groupValue",{dataItem:m,interval:o,dataField:C,date:g,value:D}).value),v(D)){var k=c.values[C];v(k.open)||(k.open=D),k.close=D,(k.low>D||!v(k.low))&&(k.low=D),(k.high<D||!v(k.high))&&(k.high=D),v(k.sum)?k.sum+=D:k.sum=D,k.count++,k.average=k.sum/k.count,v(k[O])&&(k.value=k[O],k.workingValue=k.value)}}}),Me(m.properties,c.properties),U(t.propertyFields,function(C,O){var T=C,D=m.properties[C];b(D)&&(c.hasProperties=!0,c.setProperty(T,D))}),c.groupDataItems.push(m))}c&&Me(m.dataContext,c.dataContext)}),c&&t._adapterO&&L(y,function(m){c.values[m].value=t._adapterO.apply("groupDataItem",{dataItem:c,interval:o,dataField:m,date:g,value:c.values[m].value}).value,c.values[m].workingValue=c.values[m].value})}),this.calculateZoom()}},i.prototype.getDFFormatter=function(){this._df=this.dateFormatter},i.prototype.postProcessSeriesDataItem=function(t,e){var r=this,n="";e?n=e.timeUnit+e.count:e=this.mainBaseInterval;var a=t.component,o=a.dataItemsByAxis.getKey(this.uid);U(t.dates,function(l){var h=t.getDate(l),u=h.getTime(),p=Rt(new Date(u),e.timeUnit,e.count,r._firstWeekDay,r._df.utc,void 0,r._df.timezoneMinutes,r._df.timezone),d=p.getTime(),f=Zt(new Date(d),e.timeUnit,e.count,r._df.utc);t.setCalculatedValue(l,d,"open"),t.setCalculatedValue(l,f.getTime(),"close"),o.setKey(d+n,t)})},i.prototype.addEmptyUnitsBreaks=function(){var t=this;if(this.skipEmptyPeriods&&v(this.min)&&v(this.max)){var e=this.baseInterval.timeUnit,r=this.baseInterval.count;this._axisBreaks&&this._axisBreaks.clear();for(var n=Rt(new Date(this.min),e,r,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),a=void 0,o=function(){Zt(n,e,r,l._df.utc);var h=n.getTime(),u=h.toString(),p=fs(l.series.iterator(),function(d){return!!d.dataItemsByAxis.getKey(t.uid).getKey(u+d.currentDataSetId)});p?a&&(a.endDate=new Date(h-1),a=void 0):a||(a=l.axisBreaks.create(),a.startDate=new Date(h),l._gapBreaks=!0)},l=this;n.getTime()<this.max-this.baseDuration;)o()}},i.prototype.fixAxisBreaks=function(){var t=this;s.prototype.fixAxisBreaks.call(this);var e=this._axisBreaks;e&&e.length>0&&e.each(function(r){var n=Math.ceil(t._gridCount*(Math.min(t.end,r.endPosition)-Math.max(t.start,r.startPosition))/(t.end-t.start));r.gridInterval=t.chooseInterval(0,r.adjustedEndValue-r.adjustedStartValue,n);var a=Rt(new Date(r.adjustedStartValue),r.gridInterval.timeUnit,r.gridInterval.count,t._firstWeekDay,t._df.utc,void 0,t._df.timezoneMinutes,t._df.timezone);a.getTime()>r.startDate.getTime()&&Zt(a,r.gridInterval.timeUnit,r.gridInterval.count,t._df.utc),r.gridDate=a})},i.prototype.getFirstWeekDay=function(){return this._df?this._df.firstDayOfWeek:1},i.prototype.getGridDate=function(t,e){var r=this._gridInterval.timeUnit,n=this._gridInterval.count;Rt(t,r,1,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);var a=t.getTime(),o=di(t),l=Zt(o,r,e,this._df.utc).getTime(),h=this.isInBreak(l);h&&h.endDate&&(o=new Date(h.endDate.getTime()),Rt(o,r,n,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),o.getTime()<h.endDate.getTime()&&Zt(o,r,n,this._df.utc),l=o.getTime());var u=this.adjustDifference(a,l),p=Math.round(u/wt(r));return p<n?this.getGridDate(t,e+n):o},i.prototype.getBreaklessDate=function(t,e,r){var n=new Date(t.endValue);Rt(n,e,r,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),Zt(n,e,r,this._df.utc);var a=n.getTime();return t=this.isInBreak(a),t?this.getBreaklessDate(t,e,r):n},i.prototype.validateAxisElements=function(){var t=this;if(v(this.max)&&v(this.min)){this.calculateZoom();var e=this._gridDate.getTime(),r=this._gridInterval.timeUnit,n=this._gridInterval.count,a=di(this._gridDate),o=this._dataItemsIterator;this.resetIterators();for(var l=function(){var p=h.getGridDate(di(a),n);e=p.getTime();var d=di(p);d=Zt(d,r,n,h._df.utc);var f=h.dateFormats.getKey(r);h.markUnitChange&&a&&Jn(p,a,h._nextGridUnit,h._df.utc)&&r!=="year"&&(f=h.periodChangeDateFormats.getKey(r));var c=h._df.format(p,f),y=o.find(function(g){return g.text===c});y.__disabled&&(y.__disabled=!1),h.appendDataItem(y),y.axisBreak=void 0,y.date=p,y.endDate=d,y.text=c,h.validateDataElement(y),a=p},h=this;e<=this._maxZoomed;)l();var u=this.renderer;this._axisBreaks&&A(this._axisBreaks.iterator(),function(p){if(p.breakSize>0){var d=p.gridInterval.timeUnit,f=p.gridInterval.count;if(at(p.startPoint,p.endPoint)>u.minGridDistance*4)for(var c=p.gridDate.getTime(),y,g=0,m=function(){var x=di(p.gridDate);
172if(c=Zt(x,d,f*g,t._df.utc).getTime(),g++,c>p.adjustedStartValue&&c<p.adjustedEndValue){var P=di(x);P=Zt(P,d,f,t._df.utc);var S=t.dateFormats.getKey(d);t.markUnitChange&&y&&Jn(x,y,t._nextGridUnit,t._df.utc)&&d!=="year"&&(S=t.periodChangeDateFormats.getKey(d));var C=t._df.format(x,S),O=o.find(function(T){return T.text===C});O.__disabled&&(O.__disabled=!1),t.appendDataItem(O),O.axisBreak=p,p.dataItems.moveValue(O),O.date=x,O.endDate=P,O.text=C,y=x,t.validateDataElement(O)}};c<=p.adjustedMax;)m()}})}},i.prototype.validateDataElement=function(t){if(t.itemIndex=this._axisItemCount,this._axisItemCount++,v(this.max)&&v(this.min)){var e=this.renderer,r=t.value,n=t.endValue;v(n)||(n=r);var a=this.valueToPosition(r),o=this.valueToPosition(n),l=o;!t.isRange&&this._gridInterval.count>this.baseInterval.count&&(o=a+(o-a)/(this._gridInterval.count/this.baseInterval.count)),t.position=a;var h=t.tick;h&&!h.disabled&&e.updateTickElement(h,a,o);var u=t.grid;u&&!u.disabled&&e.updateGridElement(u,a,o);var p=t.axisFill;p&&!p.disabled&&(e.updateFillElement(p,a,l),t.isRange||this.fillRule(t));var d=t.mask;d&&e.updateFillElement(d,a,o),t.bullet&&e.updateBullet(t.bullet,a,o);var f=t.label;if(f&&!f.disabled){var c=f.location;c==0&&(this._gridInterval.count==1&&this._gridInterval.timeUnit!="week"&&!t.isRange?c=.5:c=0),e.updateLabelElement(f,a,o,c)}}},Object.defineProperty(i.prototype,"baseDuration",{get:function(){return wt(this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),i.prototype.adjustMinMax=function(t,e){return{min:t,max:e,step:this.baseDuration}},i.prototype.fixMin=function(t){var e=this.baseInterval,r=Rt(new Date(t),e.timeUnit,e.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),n=Zt(new Date(r),e.timeUnit,e.count,this._df.utc).getTime();return r+(n-r)*this.startLocation},i.prototype.fixMax=function(t){var e=this.baseInterval,r=Rt(new Date(t),e.timeUnit,e.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),n=Zt(new Date(r),e.timeUnit,e.count,this._df.utc).getTime();return r+(n-r)*this.endLocation},i.prototype.chooseInterval=function(t,e,r,n){n||(n=this.gridIntervals);var a=n.getIndex(t),o=wt(a.timeUnit,a.count),l=n.length-1;if(t>=l)return Pe({},n.getIndex(l));var h=Math.ceil(e/o);return e<o&&t>0?Pe({},n.getIndex(t-1)):h<=r?Pe({},n.getIndex(t)):t+1<n.length?this.chooseInterval(t+1,e,r,n):Pe({},n.getIndex(t))},i.prototype.formatLabel=function(t){return this._df.format(t)},i.prototype.dateToPosition=function(t){return this.valueToPosition(t.getTime())},i.prototype.anyToPosition=function(t){return t instanceof Date?this.dateToPosition(t):this.valueToPosition(t)},i.prototype.dateToPoint=function(t){var e=this.dateToPosition(t),r=this.renderer.positionToPoint(e),n=this.renderer.positionToAngle(e);return{x:r.x,y:r.y,angle:n}},i.prototype.anyToPoint=function(t){return t instanceof Date?this.dateToPoint(t):this.valueToPoint(t)},i.prototype.positionToDate=function(t){return new Date(this.positionToValue(t))},i.prototype.getPositionX=function(t,e,r,n,a){var o=this.getTimeByLocation(t,e,r);v(o)||(o=this.baseValue);var l=this.valueToPosition(o);return a&&(l=B(l,a.start,a.end)),l},i.prototype.getPositionY=function(t,e,r,n,a){var o=this.getTimeByLocation(t,e,r),l=t.getValue("valueX","stack");v(o)||(o=this.baseValue);var h=this.valueToPosition(o+l);return a&&(h=B(h,a.start,a.end)),h},i.prototype.getAngle=function(t,e,r,n,a){var o=this.getTimeByLocation(t,e,r),l=t.getValue(n,"stack");v(o)||(o=this.baseValue);var h=this.valueToPosition(o+l);return a&&(h=B(h,a.start,a.end)),this.positionToAngle(h)},i.prototype.getTimeByLocation=function(t,e,r){if(b(e)){v(r)||(r=t.workingLocations[e],v(r)||(r=0));var n=t.values[e].open,a=t.values[e].close,o=t.values[e].workingValue,l=t.values[e].value,h=l-o;if(n-=h,a-=h,v(n)&&v(a))return n+(a-n)*r}},i.prototype.processSeriesDataItem=function(t,e){var r=t.component,n,a=t["date"+e];if(v(this.timezoneOffset)?(a.setTime(a.getTime()+(a.getTimezoneOffset()-this.timezoneOffset)*6e4),t.setValue("date"+e,a.getTime(),0)):b(this.timezone)&&(a=Jr(a,this.timezone),t.setValue("date"+e,a.getTime(),0),t["date"+e]=a),a)n=a.getTime();else return;var o=t["openDate"+e],l=this._prevSeriesTime[r.uid],h;if(o&&(h=o.getTime()),v(h)){var u=Math.abs(n-h);this._minDifference[r.uid]>u&&(this._minDifference[r.uid]=u)}var p=n-l;p>0&&this._minDifference[r.uid]>p&&(this._minDifference[r.uid]=p),this._prevSeriesTime[r.uid]=n,r._baseInterval[this.uid]&&this.postProcessSeriesD
172ataItem(t)},i.prototype.updateAxisBySeries=function(){s.prototype.updateAxisBySeries.call(this);var t=this.chooseInterval(0,this.minDifference,1);this.minDifference>=wt("day",27)&&t.timeUnit=="week"&&(t.timeUnit="month",t.count=1),t.timeUnit=="month"&&(this.minDifference>=wt("day",29*2)&&t.count==1&&(t.count=2),this.minDifference>=wt("day",29*3)&&t.count==2&&(t.count=3),this.minDifference>=wt("day",29*6)&&t.count==5&&(t.count=6)),this.minDifference>=wt("hour",23)&&t.timeUnit=="hour"&&(t.timeUnit="day",t.count=1),this.minDifference>=wt("week",1)-wt("hour",1)&&t.timeUnit=="day"&&(t.timeUnit="week",t.count=1),this.minDifference>=wt("year",1)-wt("day",1.01)&&t.timeUnit=="month"&&(t.timeUnit="year",t.count=1),this._baseIntervalReal=t,this._mainBaseInterval=t},Object.defineProperty(i.prototype,"baseInterval",{get:function(){return this._groupInterval?this._groupInterval:this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(t){JSON.stringify(this._baseInterval)!=JSON.stringify(t)&&(this._baseInterval=t,this._mainBaseInterval=t,v(t.count)||(t.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mainBaseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._mainBaseInterval?this._mainBaseInterval:this._baseIntervalReal},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(t){if(t){var e=this.axisBreaks.template;e.startLine.disabled=!0,e.endLine.disabled=!0,e.fillShape.disabled=!0,e.breakSize=0}else this._gapBreaks&&(this.axisBreaks.clear(),this._gapBreaks=!1);this.setPropertyValue("skipEmptyPeriods",t)&&(this.invalidate(),this.postProcessSeriesDataItems(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(t){this.setPropertyValue("tooltipDateFormat",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(t){this.setPropertyValue("markUnitChange",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),i.prototype.getTooltipText=function(t){var e,r=this.positionToDate(t);if(r=Rt(r,this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),this.tooltipDate=r,b(this.tooltipDateFormat))e=this._df.format(r,this.tooltipDateFormat,["day","month","week","year"].indexOf(this.baseInterval.timeUnit)==-1);else{var n=this.dateFormats.getKey(this.baseInterval.timeUnit);n?e=this._df.format(r,n):e=this.getPositionLabel(t)}return this._adapterO?this._adapterO.apply("getTooltipText",e):e},i.prototype.roundPosition=function(t,e,r){var n=this.baseInterval,a=n.timeUnit,o=n.count,l=this.positionToDate(t);if(Rt(l,a,o,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),e>0&&Zt(l,a,e*o,this._df.utc),r>0&&r<1&&l.setTime(l.getTime()+this.baseDuration*r),this.isInBreak(l.getTime()))for(;l.getTime()<this.max&&(Zt(l,a,o,this._df.utc),!!this.isInBreak(l.getTime())););return this.dateToPosition(l)},i.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},i.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},i.prototype.getSeriesDataItem=function(t,e,r){var n=this.positionToValue(e),a=.5;this.axisLetter=="Y"?a=t.dataItems.template.locations.dateY:a=t.dataItems.template.locations.dateX;var o=n-a*this.baseDuration,l=Rt(new Date(n),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),h=Rt(new Date(n+this.baseDuration),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);h.getTime()>l.getTime()&&Math.abs(h.getTime()-o)<Math.abs(o-l.getTime())&&(l=h);var u=t.dataItemsByAxis.getKey(this.uid),p=u.getKey(l.getTime()+t.currentDataSetId);if(!p&&r){var d;this.axisLetter=="Y"?d="dateY":d="dateX",p=t.dataItems.getIndex(t.dataItems.findClosestIndex(l.getTime(),function(f){return f[d]?f[d].getTime():-1/0},"any"))}return p},i.prototype.getPositionLabel=function(t){var e=this.positionToDate(t);return this._df.format(e,this.getCurrentLabelFormat())},i.prototype.getCurrentLabelFormat=function(){return this.dateFormats.getKey(this._gridInterval?this._gridInterval.timeUnit:"day")},i.prototype.initRenderer=function(){s.prototype.initRenderer.call(this);var t=this.renderer;t&&(t.ticks.template.location=0,t.grid.template.location=0,t.labels.template.location=0,t.baseGrid.disabled=!0)},Object.defineProperty(i.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),i.prototype.animateMinMax=function(t,e){var r=this,n=this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:t},{property:"_maxAdjusted",from:this._maxAdjusted,to:e}],this.rangeChangeDuration,this.rangeChangeEasing);return n.events.on("animationprogress",function(){r.dispatch("extremeschanged")}),n},i.prototype.handleExtremesChange=function(){if(s.prototype.handleExtremesChange.call(this),this.groupData){var t=this.baseInterval.timeUnit+this.baseInterval.count;this.groupMin[t]=this._finalMin,this.groupMax[t]=this._finalMax}},i.prototype.zoomToDates=function(t,e,r,n,a){t=this._df.parse(t),e=this._df.parse(e),this.zoomToValues(t.getTime(),e.getTime(),r,n,a)},i.prototype.zoomToValues=function(t,e,r,n,a){var o=this;if(this.groupData){var u=this.adjustDifference(t,e),p=!1;e==this.max&&(p=!0);var d=!1;if(t==this.min&&(d=!0),b(u)){var f=this.mainBaseInterval,c=this.chooseInterval(0,u,this.groupCount,this.groupIntervals);(c.timeUnit==f.timeUnit&&c.count<f.count||wt(c.timeUnit,1)<wt(f.timeUnit,1))&&(c=Pe({},f));var y=c.timeUnit+c.count,g=this.groupMin[y],m=this.groupMax[y];(!v(g)||!v(m))&&(g=Number.POSITIVE_INFINITY,m=Number.NEGATIVE_INFINITY,this.series.each(function(S){var C=S.min(o),O=S.max(o);if(S._dataSets){var T=S._dataSets.getKey(c.timeUnit+c.count);if(T){var D=T.getIndex(0),k=T.getIndex(T.length-1);D&&(S.xAxis==o?C=D.dateX.getTime():S.yAxis==o&&(C=D.dateY.getTime())),k&&(S.xAxis==o?O=k.dateX.getTime():S.yAxis==o&&(O=k.dateY.getTime()))}}O=Rt(Zt(new Date(O),c.timeUnit,1,o._df.utc),c.timeUnit,1,o._df.firstDayOfWeek,o._df.utc,void 0,o._df.timezoneMinutes,o._df.timezone).getTime(),C<g&&(g=C),O>m&&(m=O)}),this.groupMin[y]=g,this.groupMax[y]=m),t=B(t,g,m),e=B(e,g,m),a&&(p&&(t=e-u,t=B(t,g,m)),d&&(e=t+u,e=B(e,g,m)));var l=(t-g)/(m-g),h=(e-g)/(m-g);this.zoom({start:l,end:h},r,n)}}else{var l=this.valueToPosition(t),h=this.valueToPosition(e);this.zoom({start:l,end:h},r,n)}},i.prototype.asIs=function(t){return t=="baseInterval"||s.prototype.asIs.call(this,t)},i.prototype.copyFrom=function(t){var e=this;s.prototype.copyFrom.call(this,t),this.dateFormats=t.dateFormats,this.periodChangeDateFormats=t.periodChangeDateFormats,this.groupIntervals.clear(),t.groupIntervals.each(function(r){e.groupIntervals.push(Pe({},r))}),this.gridIntervals.clear(),t.gridIntervals.each(function(r){e.gridIntervals.push(Pe({},r))}),t._baseInterval&&(this.baseInterval=t._baseInterval)},i.prototype.showTooltipAtPosition=function(t,e){var r=this;if(e||(t=this.toAxisPosition(t)),this.snapTooltip){var n=this.positionToDate(t),a=n.getTime(),o;if(this.series.each(function(u){if(u.baseAxis==r){var p=r.getSeriesDataItem(u,t,!0);if(p){var d=void 0;u.xAxis==r&&(d=p.dateX),u.yAxis==r&&(d=p.dateY),o?Math.abs(o.getTime()-a)>Math.abs(d.getTime()-a)&&(o=d):o=d}}}),o){var l=o.getTime();o=Rt(new Date(l),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),l=o.getTime();var h=this.renderer.tooltipLocation;h==0&&(h=1e-4),o=new Date(o.getTime()+this.baseDuration*h),t=this.dateToPosition(o),this.chart.cursor&&this.chart.cursor.snapToSeries||this.series.each(function(u){var p=u.dataItemsByAxis.getKey(r.uid).getKey(l+u.currentDataSetId),d=u.showTooltipAtDataItem(p);d?r.chart._seriesPoints.push({series:u,point:d}):(u.tooltipText||u.tooltipHTML)&&u.hideTooltip()})}}s.prototype.showTooltipAtPosition.call(this,t,!0)},Object.defineProperty(i.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupData",{get:function(){return this.getPropertyValue("groupData")},set:function(t){var e=this;this.setPropertyValue("groupData",t)&&(this.series.each(function(r){r.setDataSet(""),t&&!r.dataGrouped&&r.inited&&(r._baseInterval[e.uid]=e.mainBaseInterval,e.groupSeriesD
172ata(r))}),this._currentDataSetId="",this._groupInterval=void 0,this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupInterval",{get:function(){return this.getPropertyValue("groupInterval")},set:function(t){this.setPropertyValue("groupInterval",t)&&(this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupCount",{get:function(){return this.getPropertyValue("groupCount")},set:function(t){this.setPropertyValue("groupCount",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezoneOffset",{get:function(){return this.getPropertyValue("timezoneOffset")},set:function(t){this.setPropertyValue("timezoneOffset",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezone",{get:function(){return this.getPropertyValue("timezone")},set:function(t){this.setPropertyValue("timezone",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),i.prototype.makeGap=function(t,e){var r=t.component;if(t&&e&&!r.connect&&v(r.autoGapCount)&&r.baseAxis==this){var n=t.dates["date"+this.axisLetter],a=e.dates["date"+this.axisLetter];if(n&&a){var o=n.getTime(),l=a.getTime();if(o-l>r.autoGapCount*this.baseDuration)return!0}}return!1},Object.defineProperty(i.prototype,"baseValue",{get:function(){return this.min},enumerable:!0,configurable:!0}),i.prototype._saveMinMax=function(t,e){var r=this.groupInterval;r||(r=this.mainBaseInterval);var n=r.timeUnit+r.count;this._intervalMin[n]=t,this._intervalMax[n]=e},i}($);_.registeredClasses.DateAxis=mt;_.registeredClasses.DateAxisDataItem=Vo;var je=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="AxisRendererX",t.minGridDistance=120,t.opposite=!1,t.rotation=0,t.width=I(100),t.labels.template.horizontalCenter="middle",t.applyTheme(),t}return i.prototype.setAxis=function(t){s.prototype.setAxis.call(this,t),t.layout="vertical"},i.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.x=t.pixelX,e.width=t.axisLength}},i.prototype.processRenderer=function(){s.prototype.processRenderer.call(this);var t=this.axis;if(t){t.width instanceof Q||(t.width=I(100)),this.line;var e=t.title;e.rotation=0,e.align="center",this.opposite?(this.line.toFront(),e.toBack()):(e.toFront(),this.toBack(),this.line.toBack())}},i.prototype.updateTooltip=function(){var t=this.axis;if(t){var e=1e3,r=this.line.pixelX,n=this.line.pixelY,a=this.axisLength,o=e;this.opposite?this.inside||(n=-e,o=e):this.inside&&(n=-e,o=e),this.axis.updateTooltip("vertical",{x:r,y:n,width:a,height:o})}},i.prototype.updateLabelElement=function(t,e,r,n){b(n)||(n=t.location),e=e+(r-e)*n;var a=this.positionToPoint(e);t.isMeasured=!t.inside;var o=0,l,h=this.gridContainer.maxHeight;this.opposite?(t.inside?(l="top",t.valign=="bottom"&&(o=h,l="bottom"),t.valign=="middle"&&(o=h/2,l="middle")):l="bottom",a.y=o):(t.inside?(l="bottom",t.valign=="top"&&(o=-h,l="top"),t.valign=="middle"&&(o=-h/2,l="middle")):l="top",a.y+=o),t.rotation==0&&(t.verticalCenter=l),this.positionItem(t,a),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(i.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredWidth-t.pixelPaddingRight-t.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(t,e){return{x:this.positionToCoordinate(t),y:0}},i.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.x,t.y)},i.prototype.getPositionRangePath=function(t,e){var r=B(this.positionToCoordinate(t),0,this.axisLength),n=B(this.positionToCoordinate(e),0,this.axisLength),a=Math.abs(n-r),o=this.getHeight(),l=Math.min(r,n),h=0;return We({x:l,y:h,width:a,height:o},!0)},i.prototype.updateBreakElement=function(t){s.prototype.updateBreakElement.call(this,t);var e=t.startLine,r=t.endLine,n=t.fillShape,a=t.startPoint,o=t.endPoint,l=t.pixelMarginLeft,h=this.getHeight()-t.pixelMarginTop-t.pixelMarginBottom;a.x=B(a.x,-1,this.axisLength+1),o.x=B(o.x,-1,this.axisLength+1),a.x==o.x&&(a.x<0||a.x>this.axisLength)?t.fillShape.__disabled=!0:t.fillShape.__disabled=!1,e.y=l,e.width=0,e.height=h,r.y=l,r.width=0,r.height=h,n.height=h,n.width=Math.abs(o.x-a.x),n.y=l,n.x=a.x},i.prototype.updateGridElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e);t.path=E({x:0,y:0})+V({x:0,y:this.getHeight()}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},i.prototype.updateTickElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e),a=t.length;n.y=ee({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?a*=t.inside?1:-1:a*=t.inside?-1:1,t.path=E({x:0,y:0})+V({x:0,y:a}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},i.prototype.updateAxisLine=function(){this.line.path=E({x:0,y:0})+V({x:this.axisLength,y:0})},i.prototype.updateBaseGridElement=function(){s.prototype.updateBaseGridElement.call(this);var t=this.axis,e=this.getHeight(),r=this.axisLength,n=this.baseGrid,a=t.basePoint.x;if(a<-.2||a>r+.2)n.hide(0);else{var o=ee({x:0,y:0},this.gridContainer,n.parent).y;n.path=E({x:0,y:0})+V({x:0,y:e}),n.moveTo({x:a,y:o}),n.show(0)}},i.prototype.createBreakSprites=function(t){t.startLine=new $e,t.endLine=new $e;var e=new To;e.setWavedSides(!1,!0,!1,!0),t.fillShape=e},i.prototype.toAxisPosition=function(t){var e=t,r=this.axis;if(r){var n=r.relativePositionSprite,a=r.pixelX;if(n?a=ee({x:this.pixelX,y:0}
172,this.parent,n).x:n=r.parent,n){var o=a/n.innerWidth,l=r.axisLength/n.innerWidth;return(e-o)/l}}return t},i.prototype.updateBullet=function(t,e,r){var n=.5;t instanceof tr&&(n=t.location),e=e+(r-e)*n;var a=this.positionToPoint(e);a.y=ee({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},i}(ln);_.registeredClasses.AxisRendererX=je;Nt.push({relevant:Kt.heightXS,state:function(s,i){if(s instanceof je){var t=s.states.create(i);return t.properties.inside=!0,t.properties.maxLabelPosition=.9,t.properties.minLabelPosition=.1,t}return null}});Nt.push({relevant:Kt.heightXXS,state:function(s,i){if(s instanceof je){var t=s.states.create(i);return t.properties.disabled=!0,t}return null}});var Ao=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="CategoryAxisBreak",t.properties.startLocation=.5,t.properties.endLocation=.5,t.applyTheme(),t}return Object.defineProperty(i.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue,this.startLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue,this.endLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(t){this.setPropertyValue("startCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(t){this.setPropertyValue("endCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startValue",{get:function(){var t=this.getPropertyValue("startCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){var t=this.getPropertyValue("endCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i}(an);_.registeredClasses.CategoryAxisBreak=Ao;var Fo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.seriesDataItems={},t.className="CategoryAxisDataItem",t.text="{category}",t.locations.category=0,t.locations.endCategory=1,t.deltaPosition=0,t.applyTheme(),t}return Object.defineProperty(i.prototype,"category",{get:function(){return this._adapterO&&this._adapterO.isEnabled("category")?this._adapterO.apply("category",this.properties.category):this.properties.category},set:function(t){var e=this.properties.category;this.setProperty("category",t),b(e)&&e!=t&&this.component&&this.component.validateDataElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(t){this.setProperty("endCategory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"deltaPosition",{get:function(){return this.properties.deltaCoordinate},set:function(t){t!=this.properties.deltaCoordinate&&(this.setProperty("deltaCoordinate",t),this.component&&(this.component.invali
172dateDataItems(),this.component.invalidateSeries()))},enumerable:!0,configurable:!0}),i}(Ji),St=function(s){w(i,s);function i(){var t=s.call(this)||this;t.dataItemsByCategory=new ct,t.className="CategoryAxis",t.axisFieldName="category",t._lastDataItem=t.createDataItem(),t._lastDataItem.component=t,t._disposers.push(t._lastDataItem),t.applyTheme();var e=t.dataItemsByCategory;return t.addDisposer(t.mainDataSet.events.on("removed",function(r){e.removeKey(r.oldValue.category)})),t}return i.prototype.createDataItem=function(){return new Fo},i.prototype.createAxisBreak=function(){return new Ao},i.prototype.processSeriesDataItem=function(t,e){s.prototype.processSeriesDataItem.call(this,t,e);var r=t["category"+this.axisLetter];if(b(r)){var n=this.dataItemsByCategory.getKey(r);if(n){var a=t.component.uid,o=n.seriesDataItems[a];o||(o=[],n.seriesDataItems[a]=o),o.push(t)}}else t.component.dataItems.remove(t)},i.prototype.validateDataRange=function(){var t=this;s.prototype.validateDataRange.call(this),A(this._series.iterator(),function(e){if(e.xAxis instanceof i&&e.yAxis instanceof i)e.invalidateDataRange();else{var r=t.positionToIndex(t.start),n=t.positionToIndex(t.end);n>=t.dataItems.length&&n--;for(var a=e.uid,o=void 0,l=void 0,h=r;h<=n;h++){var u=t.dataItems.getIndex(h);if(u){var p=u.seriesDataItems[a];if(p)for(var d=0;d<p.length;d++){var f=p[d];if(f){var c=f.index;(!v(o)||c<o)&&(o=c),(!v(l)||c>l)&&(l=c)}}}}v(o)?e.startIndex=o:e.start=t.start,v(l)?e.endIndex=l+1:e.end=t.end,t._axisBreaks&&t._axisBreaks.length>0&&e.invalidateDataRange()}})},i.prototype.validate=function(){var t=this;s.prototype.validate.call(this);var e=this.dataItems.length,r=B(Math.floor(this.start*e-1),0,e),n=B(Math.ceil(this.end*e),0,e);this.renderer.invalid&&this.renderer.validate();var a=this.renderer.axisLength/Math.max(this.renderer.minGridDistance,1/Number.MAX_SAFE_INTEGER),o=Math.min(this.dataItems.length,Math.ceil((n-r)/a));if(this._startIndex=Math.floor(r/o)*o,this._endIndex=Math.ceil(this.end*e),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=o,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),r=q(0,this._startIndex-this._frequency),n=et(this.dataItems.length,this._endIndex+this._frequency);for(var l=0,h=0;h<r;h++){var u=this.dataItems.getIndex(h);u.__disabled=!0}for(var h=n,p=this.dataItems.length;h<p;h++){var u=this.dataItems.getIndex(h);u.__disabled=!0}for(var h=r;h<n;h++)if(h<this.dataItems.length){var u=this.dataItems.getIndex(h);if(h/this._frequency==Math.round(h/this._frequency)){var d=this.isInBreak(h);d||(this.appendDataItem(u),this.validateDataElement(u,l)),l++}else u.__disabled=!0}if(this.appendDataItem(this._lastDataItem),this.validateDataElement(this._lastDataItem,l+1,this.dataItems.length),this._axisBreaks){var f=this._axisBreaks;f.each(function(c){var y=c.adjustedStartValue,g=c.adjustedEndValue;if(Tr({start:y,end:g},{start:t._startIndex,end:t._endIndex})){for(var m=y;m<=g;m++){var x=t.dataItems.getIndex(m);x.__disabled=!0}var P=B(Math.ceil(t._frequency/c.breakSize),1,g-y),S=0;if(c.breakSize>0)for(var m=y;m<=g;m=m+P){var x=t.dataItems.getIndex(m);x.__disabled=!1,t.appendDataItem(x),t.validateDataElement(x,S),S++}}})}this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},i.prototype.validateDataElement=function(t,e,r){s.prototype.validateDataElement.call(this,t),t.itemIndex=this._axisItemCount,this._axisItemCount++;var n=this.renderer;v(r)||(r=this.categoryToIndex(t.category));var a=this.categoryToIndex(t.endCategory);v(a)||(a=r);var o=this.indexToPosition(r,t.locations.category),l=this.indexToPosition(a,t.locations.endCategory);t.position=o;var h,u,p;t.isRange&&(h=a,u=this.indexToPosition(r,t.locations.category),p=this.indexToPosition(h,t.locations.endCategory)),t.point=n.positionToPoint(o);var d=t.tick;d&&!d.disabled&&n.updateTickElement(d,o,l);var f=t.grid;f&&!f.disabled&&n.updateGridElement(f,o,l);var c=t.label;c&&!c.disabled&&((!t.isRange||c.text==null)&&(t.text=t.text),n.updateLabelElement(c,o,l),(n instanceof xe&&t.label.measuredWidth>this.ghostLabel.measuredWidth||n instanceof je&&t.label.measuredHeight>this.ghostLabel.measuredHeight)&&(t.label.html?this.ghostLabel.html=t.label.currentText:this.ghostLabel.text=t.label.currentText));var y=t.axisFill;y&&!y.disabled&&(t.isRange||(h=r+this._frequency,u=this.indexToPosition(r,y.location),p=this.indexToPosition(h,y.location)),n.updateFillElement(y,u,p),t.isRange||this.fillRule(t,e)),t.bullet&&n.updateBullet(t.bullet,o,l);var g=t.mask;g&&n.updateFillElement(g,u,p)},i.prototype.disposeData=function(){this.dataItemsByCategory.clear(),s.prototype.disposeData.call(this)},i.prototype.processDataItem=function(t,e){t&&(s.prototype.processDataItem.call(this,t,e),b(t.category)&&this.dataItemsByCategory.setKey(t.category,t))},i.prototype.getDataItem=function(t){var e=t[this.dataFields.category];if(b(e)){var r=this.dataItemsByCategory.getKey(e);return r||this.dataItems.create()}},i.prototype.indexToPosition=function(t,e){v(e)||(e=.5);var r=this.startIndex,n=this.endIndex,a=this.adjustDifference(r,n),o=this.startLocation,l=this.endLocation;if(a-=o,a-=1-l,this._axisBreaks){var h=this._axisBreaks;
172he(h.iterator(),function(d){var f=d.adjustedStartValue,c=d.adjustedEndValue;if(t<r||!v(f)||!v(c))return!1;if(Tr({start:f,end:c},{start:r,end:n})){f=Math.max(r,f),c=Math.min(n,c);var y=d.breakSize;t>c?r+=(c-f)*(1-y):t<f||(t=f+(t-f)*y)}return!0})}var u=0,p=this.dataItems.getIndex(t);return p&&(u=p.deltaPosition),F(u+(t+e-o-r)/a,5)},i.prototype.categoryToPosition=function(t,e){var r=this.categoryToIndex(t);return this.indexToPosition(r,e)},i.prototype.categoryToPoint=function(t,e){var r=this.categoryToPosition(t,e),n=this.renderer.positionToPoint(r),a=this.renderer.positionToAngle(r);return{x:n.x,y:n.y,angle:a}},i.prototype.anyToPoint=function(t,e){return this.categoryToPoint(t,e)},i.prototype.anyToPosition=function(t,e){return this.categoryToPosition(t,e)},i.prototype.categoryToIndex=function(t){if(b(t)){var e=this.dataItemsByCategory.getKey(t);if(e)return e.index}},i.prototype.zoomToCategories=function(t,e){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1)},i.prototype.getAnyRangePath=function(t,e,r,n){var a=this.categoryToPosition(t,r),o=this.categoryToPosition(e,n);return this.getPositionRangePath(a,o)},i.prototype.roundPosition=function(t,e){var r=this.positionToIndex(t);return this.indexToPosition(r,e)},i.prototype.getFirstSeriesDataItem=function(t,e){for(var r=0;r<t.dataItems.length;r++){var n=t.dataItems.getIndex(r);if(t.xAxis==this&&n.categoryX==e||t.yAxis==this&&n.categoryY==e)return n}},i.prototype.getLastSeriesDataItem=function(t,e){for(var r=t.dataItems.length-1;r>=0;r--){var n=t.dataItems.getIndex(r);if(t.xAxis==this&&n.categoryX==e||t.yAxis==this&&n.categoryY==e)return n}},i.prototype.getSeriesDataItemByCategory=function(t,e){var r=this,n;return e.dataItems.each(function(a){e.xAxis==r?a.categoryX==t&&(n=a):e.yAxis==r&&a.categoryY==t&&(n=a)}),n},i.prototype.getSeriesDataItem=function(t,e,r){var n=this;if(v(e)){var a=this.positionToIndex(e);a>=this.dataItems.length&&a--;var o=this.dataItems.getIndex(a);if(o){var l=o.category,h,u=t.dataItems.getIndex(a);return u&&(t.xAxis==this&&u.categoryX==l||t.yAxis==this&&u.categoryY==l)?u:(t.dataItems.each(function(p){t.xAxis==n&&p.categoryX==l&&(h||(h=p),Math.abs(a-h.index)>Math.abs(a-p.index)&&(h=p)),t.yAxis==n&&p.categoryY==l&&(h||(h=p),Math.abs(a-h.index)>Math.abs(a-p.index)&&(h=p))}),h)}}},i.prototype.getX=function(t,e,r,n,a){var o=this.getPositionX(t,e,r,n,a);return Gt(o)?this.basePoint.x:this.renderer.positionToPoint(o).x},i.prototype.getPositionX=function(t,e,r,n,a){var o;return b(e)&&(o=this.categoryToPosition(t.categories[e],r)),a&&(o=B(o,a.start,a.end)),o},i.prototype.getY=function(t,e,r,n,a){var o=this.getPositionY(t,e,r,n,a);return Gt(o)?this.basePoint.y:this.renderer.positionToPoint(o).y},i.prototype.getPositionY=function(t,e,r,n,a){var o;return b(e)&&(o=this.categoryToPosition(t.categories[e],r)),a&&(o=B(o,a.start,a.end)),o},i.prototype.getAngle=function(t,e,r,n,a){var o=this.categoryToPosition(t.categories[e],r);return a&&(o=B(o,a.start,a.end)),this.positionToAngle(o)},i.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},i.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},i.prototype.getTooltipText=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return this.tooltipDataItem=e,this.tooltip.dataItem=e,this.tooltipText?this.tooltipText:this._adapterO?this._adapterO.apply("getTooltipText",e.category):e.category},i.prototype.positionToIndex=function(t){t=F(t,10),t<0&&(t=0),t>1&&(t=1);var e=this.startIndex,r=this.endIndex,n=r-e-this.startLocation-(1-this.endLocation);t+=1/n*this.startLocation;var a=null;if(this._axisBreaks){var o=this._axisBreaks;he(o.iterator(),function(l){var h=l.startPosition,u=l.endPosition,p=l.adjustedStartValue,d=l.adjustedEndValue;p=q(p,e),d=et(d,r);var f=l.breakSize;if(n-=(d-p)*(1-f),t>u)e+=(d-p)*(1-f);else if(!(t<h)){var c=(t-h)/(u-h);return a=p+Math.round(c*(d-p)),!1}return!0})}return v(a)||(a=Math.floor(t*n+e)),a>=this.dataItems.length&&(a=this.dataItems.length-1),a},i.prototype.positionToCategory=function(t){return this.getPositionLabel(t)},i.prototype.getPositionLabel=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return e.category},Object.defineProperty(i.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),i.prototype.initRenderer=function(){s.prototype.initRenderer.call(this);var t=this.renderer;t.baseGrid.disabled=!0},Object.defineProperty(i.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sortBySeries",{get:function(){return this.getPropertyValue("sortBySeries")},set:function(t){this.setPropertyValue("sortBySeries",t,!0)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(t){t&&b(t.sortBySeries)&&tt(t.sortBySeries)&&(this.map.hasKey(t.sortBySeries)?t.sortBySeries=this.map.getKey(t.sortBySeries):(this.addDelayedMap("sortBySeries",t.sortBySeries),delete t.sortBySeries)),s.prototype.processConfig.call(this,t)},i}(on);_.registeredClasses.CategoryAxis=St;_.registeredClasses.CategoryAxisDataItem=Fo;var un=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="XYSeriesDataItem",t.values.customValue={},t.values.valueX={stack:0},t.values.valueY={stack:0},t.values.openValueX={},t.values.openValueY={},t.values.dateX={},t.values.dateY={},t.values.openDateX={},t.values.openDateY={},t.setLocation("dateX",.5,0),t.setLocation("dateY",.5,0),t.setLocation("categoryX",.5,0),t.setLocation("categoryY",.5,0),t.applyTheme(),t}return Object.defineProperty(i.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"customValue",{get:function(){return this.values.customValue.value},set:function(t){this.setValue("customValue",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(t){this.setDate("dateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateY",{get:function(){return this.getDate("dateY")}
172,set:function(t){this.setDate("dateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(t){this.setCategory("categoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(t){this.setCategory("categoryY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(t){this.setValue("openValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(t){this.setValue("openValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(t){this.setDate("openDateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openDateY",{get:function(){return this.getDate("openD
172ateY")},set:function(t){this.setDate("openDateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(t){this.setCategory("openCategoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(t){this.setCategory("openCategoryY",t)},enumerable:!0,configurable:!0}),i.prototype.getMin=function(t,e,r){var n=this,a;return v(r)||(r=0),L(t,function(o){var l;e?l=n.getWorkingValue(o):l=n.getValue(o),l+=r,(l<a||!v(a))&&(a=l)}),a},i.prototype.getMax=function(t,e,r){var n=this,a;return v(r)||(r=0),L(t,function(o){var l;e?l=n.getWorkingValue(o):l=n.getValue(o),l+=r,(l>a||!v(a))&&(a=l)}),a},i}(nn),ni=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.groupFields={},t._xAxis=new Et,t._yAxis=new Et,t._xValueFields=[],t._yValueFields=[],t._baseInterval={},t.dataGrouped=!1,t.usesShowFields=!1,t._dataSetChanged=!1,t._maxxX=1e5,t._maxxY=1e5,t._propertiesChanged=!1,t.outOfRange=!1,t.className="XYSeries",t.isMeasured=!1,t.groupFields.valueX="close",t.groupFields.valueY="close",t.groupFields.customValue="close",t.groupFields.openValueX="open",t.groupFields.openValueY="open",t.cursorTooltipEnabled=!0,t.cursorHoverEnabled=!0,t.excludeFromTotal=!1,t.mainContainer.mask=new Z,t.mainContainer.mask.setElement(t.paper.add("path")),t.stacked=!1,t.snapTooltip=!1,t._showBullets=!1,t.tooltip.pointerOrientation="horizontal",t.properties.stackToNegative=!0,t.hideTooltipWhileZooming=!0,t.setPropertyValue("maskBullets",!0),t.tooltip.events.on("hidden",function(){t.returnBulletDefaultState()},void 0,!1),t._disposers.push(t._xAxis),t._disposers.push(t._yAxis),t.observe(Ot,function(){t.inited&&(t._propertiesChanged=!0,t.legendDataItem&&(t.legendDataItem.childrenCreated=!1),t.chart&&t.chart.legend&&t.chart.legend.invalidateDataItems(),t.invalidate())},void 0,!1),t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},i.prototype.createDataItem=function(){return new un},i.prototype.resetExtremes=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear()},i.prototype.dataChangeUpdate=function(){this.dataGrouped=!1,this._baseInterval={},this._currentDataSetId="",this.resetExtremes(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},i.prototype.validateData=function(){this._baseInterval={};var t=this.dataFields;if(t.valueYShow||t.openValueXShow||t.openValueXShow||t.openValueYShow?this.usesShowFields=!0:this.usesShowFields=!1,this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),s.prototype.validateData.call(this),this.updateItemReaderText(),this.chart&&(!b(this.dataFields[this._xField])||!b(this.dataFields[this._yField])))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.');this.inited&&this.isHidden&&this.hide(0),this.dataGrouped=!1},i.prototype.processDataItem=function(t,e){try{s.prototype.processDataItem.call(this,t,e),this.xAxis.processSeriesDataItem(t,"X"),this.yAxis.processSeriesDataItem(t,"Y"),this.setInitialWorkingValues(t)}catch(r){this._chart&&this._chart.raiseCriticalError(r)}},i.prototype.updateDataItem=function(t){s.prototype.updateDataItem.call(this,t),this.xAxis.processSeriesDataItem(t,"X"),this.yAxis.processSeriesDataItem(t,"Y")},i.prototype.setInitialWorkingValues=function(t){},i.prototype.disposeData=function(){s.prototype.disposeData.call(this);var t=this.xAxis,e=this.yAxis;if(t){var r=this.dataItemsByAxis.getKey(t.uid);r&&r.clear(),t instanceof St&&this.clearCatAxis(t)}if(e){var n=this.dataItemsByAxis.getKey(e.uid);n&&n.clear(),e instanceof St&&this.clearCatAxis(e)}},i.prototype.clearCatAxis=function(t){var e=this.uid;t.dataItems.each(function(r){r.seriesDataItems[e]&&(r.seriesDataItems[e]=[])})},i.prototype.defineFields=function(){var t=this.xAxis,e=this.yAxis;if(t&&e){var r=t.axisFieldName,n=r+"X",a="open"+jr(r)+"X",o=e.axisFieldName,l=o+"Y",h="open"+jr(o)+"Y";this._xField=n,this._yField=l,this.dataFields[a]&&(this._xOpenField=a),this.dataFields[h]&&
172(this._yOpenField=h),!this.dataFields[h]&&this.baseAxis==e&&(this._yOpenField=l),!this.dataFields[a]&&this.baseAxis==t&&(this._xOpenField=n),this.stacked&&this.baseAxis==t&&(this._xOpenField=n),this.stacked&&this.baseAxis==e&&(this._yOpenField=l),t instanceof St&&e instanceof St&&(this._yOpenField||(this._yOpenField=l)),this._xValueFields=[],this._yValueFields=[],this.addValueField(t,this._xValueFields,this._xField),this.addValueField(t,this._xValueFields,this._xOpenField),this.addValueField(e,this._yValueFields,this._yField),this.addValueField(e,this._yValueFields,this._yOpenField)}},i.prototype.addValueField=function(t,e,r){t instanceof $&&b(this.dataFields[r])&&e.indexOf(r)==-1&&e.push(r)},i.prototype.setCategoryAxisField=function(t,e){b(this.dataFields[t])||(this.dataFields[t]=e.dataFields.category)},i.prototype.setDateAxisField=function(t,e){b(this.dataFields[t])||(this.dataFields[t]=e.dataFields.date)},i.prototype.afterDraw=function(){s.prototype.afterDraw.call(this),this.createMask()},i.prototype.createMask=function(){if(this.mainContainer.mask){var t=this.getMaskPath();A(this.axisRanges.iterator(),function(e){e.axisFill.fillPath&&(e.axisFill.validate(),t+=e.axisFill.fillPath)}),this.mainContainer.mask.path=t}},i.prototype.getMaskPath=function(){return this.xAxis&&this.yAxis?We({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength}):""},i.prototype.getAxisField=function(t){if(t==this.xAxis)return this.xField;if(t==this.yAxis)return this.yField},i.prototype.validateDataItems=function(){var t=this.chart;
172t&&(this._maxxX=q(1e5,t.plotContainer.maxWidth*2),this._maxxY=q(1e5,t.plotContainer.maxHeight*2));var e=this.xAxis,r=this.yAxis;e&&r&&(e.updateAxisBySeries(),r.updateAxisBySeries()),s.prototype.validateDataItems.call(this),e&&r&&(e.postProcessSeriesDataItems(this),r.postProcessSeriesDataItems(this))},i.prototype.validateDataRange=function(){var t=this.xAxis,e=this.yAxis;t&&e&&(t.dataRangeInvalid&&t.validateDataRange(),e.dataRangeInvalid&&e.validateDataRange()),s.prototype.validateDataRange.call(this)},i.prototype.validate=function(){var t=this.xAxis,e=this.yAxis;if(t&&e){t.invalid&&t.validate(),e.invalid&&e.validate(),this.y=e.pixelY,this.x=t.pixelX,this._showBullets=!0;var r=this.minBulletDistance;v(r)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)<r&&(this._showBullets=!1)}if(this.updateTooltip(),!(t instanceof mt&&t.groupData&&!this.dataGrouped||e instanceof mt&&e.groupData&&!this.dataGrouped)){s.prototype.validate.call(this);var n=this.chart,a=this.maskBullets;n&&a&&n.className=="XYChart"&&((n.leftAxesContainer.layout=="vertical"||n.rightAxesContainer.layout=="vertical")&&(this.yAxis?this.bulletsContainer.mask=this.yAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0),(n.topAxesContainer.layout=="horizontal"||n.bottomAxesContainer.layout=="horizontal")&&(this.xAxis?this.bulletsContainer.mask=this.xAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0))}},Object.defineProperty(i.prototype,"xAxis",{get:function(){if(this.chart){if(!this._xAxis.get()){var t=this.chart.xAxes.getIndex(0);if(!t)throw Error("There are no X axes on chart.");this.xAxis=t}return this._xAxis.get()}},set:function(t){this.setXAxis(t)},enumerable:!0,configurable:!0}),i.prototype.setXAxis=function(t){var e=this._xAxis.get();e!=t&&(e&&(this.dataItemsByAxis.removeKey(e.uid),this._xAxis.dispose(),e.series.removeValue(this)),this._xAxis.set(t,t.registerSeries(this)),this.dataItemsByAxis.setKey(t.uid,new ct),this.invalidateData())},Object.defineProperty(i.prototype,"yAxis",{get:function(){if(this.chart){if(!this._yAxis.get()){var t=this.chart.yAxes.getIndex(0);if(!t)throw Error("There are no Y axes on chart.");this.yAxis=t}return this._yAxis.get()}},set:function(t){this.setYAxis(t)},enumerable:!0,configurable:!0}),i.prototype.setYAxis=function(t){var e=this._yAxis.get();e!=t&&(e&&(this.dataItemsByAxis.removeKey(e.uid),this._yAxis.dispose(),e.series.removeValue(this)),this._yAxis.set(t,t.registerSeries(this)),t.chart instanceof Le&&t.chart.handleYAxisSet(this),this.dataItemsByAxis.setKey(t.uid,new ct),this.invalidateData())},Object.defineProperty(i.prototype,"baseAxis",{get:function(){var t=this.xAxis,e=this.yAxis;return!this._baseAxis&&t&&e&&(e instanceof mt&&(this._baseAxis=e),t instanceof mt&&(this._baseAxis=t),e instanceof St&&(this._baseAxis=e),t instanceof St&&(this._baseAxis=t),this._baseAxis||(this._baseAxis=t)),this._baseAxis},set:function(t){this._baseAxis!=t&&(this._baseAxis=t,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.addData=function(t,e,r){s.prototype.addData.call(this,t,e,r);var n=this.scrollbarSeries;n&&(this.scrollbarSeries.addData(t,e,!0),this.scrollbarSeries._parseDataFrom=this._parseDataFrom)},i.prototype.setData=function(t){s.prototype.setData.call(this,t),this.scrollbarSeries&&this.scrollbarSeries.setData(t)},i.prototype.setDataSet=function(t){var e=s.prototype.setDataSet.call(this,t);if(e){this._dataSetChanged=!0;var r=this.dataItems;if(this.resetExtremes(),r&&r.length>0){var n=this.xAxis,a=this.yAxis;this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.appeared||this.processValues(!1),n instanceof mt&&n==this.baseAxis&&(this._tmin.setKey(n.uid,r.getIndex(0).dateX.getTime()),this._tmax.setKey(n.uid,r.getIndex(r.length-1).dateX.getTime()),this.dispatch("extremeschanged")),a instanceof mt&&a==this.baseAxis&&(this._tmin.setKey(a.uid,r.getIndex(0).dateY.getTime()),this._tmax.setKey(a.uid,r.getIndex(r.length-1).dateY.getTime()),this.dispatch("extremeschanged"))}}return e},i.prototype.processValues=function(t){s.prototype.processValues.call(this,t);var e=this.xAxis,r=this.yAxis;if(!(!e||!r)){var n=this.dataItems,a=1/0,o=-1/0,l=1/0,h=-1/0,u=this.startIndex,p=this.endIndex,d=u,f=p;t||(u=0,p=this.dataItems.length);for(var c=u;c<p;c++){var y=n.getIndex(c);
172this.getStackValue(y,t);var g=y.getValue("valueX","stack"),m=y.getValue("valueY","stack");t||(g=y.getValue("valueX","stackTrue"),m=y.getValue("valueY","stackTrue")),a=et(y.getMin(this._xValueFields,t,g),a),l=et(y.getMin(this._yValueFields,t,m),l),o=q(y.getMax(this._xValueFields,t,g),o),h=q(y.getMax(this._yValueFields,t,m),h),this.stacked&&(this.baseAxis==e&&(m<l&&(l=m),m>h&&(h=m)),this.baseAxis==r&&(g<a&&(a=g),g>o&&(o=g)))}e.processSeriesDataItems(),r.processSeriesDataItems();var x=e.uid,P=r.uid;if(this.xAxis instanceof $&&(a==1/0||o==-1/0)){this._smin.setKey(x,void 0),this._smax.setKey(x,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(this.yAxis instanceof $&&(l==1/0||h==-1/0)){this._smin.setKey(P,void 0),this._smax.setKey(P,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(!t&&(this._tmin.getKey(x)!=a||this._tmax.getKey(x)!=o||this._tmin.getKey(P)!=l||this._tmax.getKey(P)!=h)){this._tmin.setKey(x,a),this._tmax.setKey(x,o),this._tmin.setKey(P,l),this._tmax.setKey(P,h);var S=this.stackedSeries;S&&(S.isDisposed()?this.stackedSeries=void 0:S.processValues(!1)),this.dispatchImmediately("extremeschanged")}if(u!=d||p!=f){a=1/0,o=-1/0,l=1/0,h=-1/0;for(var c=d;c<f;c++){var y=n.getIndex(c);this.getStackValue(y,t);var g=y.getValue("valueX","stack"),m=y.getValue("valueY","stack");t||(g=y.getValue("valueX","stackTrue"),m=y.getValue("valueY","stackTrue")),a=et(y.getMin(this._xValueFields,t,g),a),l=et(y.getMin(this._yValueFields,t,m),l),o=q(y.getMax(this._xValueFields,t,g),o),h=q(y.getMax(this._yValueFields,t,m),h),this.stacked&&(this.baseAxis==e&&(m<l&&(l=m),m>h&&(h=m)),this.baseAxis==r&&(g<a&&(a=g),g>o&&(o=g)))}}if(this.xAxis instanceof $&&(a==1/0||o==-1/0)){this._smin.setKey(x,void 0),this._smax.setKey(x,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(this.yAxis instanceof $&&(l==1/0||h==-1/0)){this._smin.setKey(P,void 0),this._smax.setKey(P,void 0),this.dispatchImmediately("selectionextremeschanged");return}if((this._smin.getKey(x)!=a||this._smax.getKey(x)!=o||this._smin.getKey(P)!=l||this._smax.getKey(P)!=h)&&(this._smin.setKey(x,a),this._smax.setKey(x,o),this._smin.setKey(P,l),this._smax.setKey(P,h),this.appeared||this.start!=0||this.end!=1||this.dataItems!=this.mainDataSet)){var C=!1;if(r instanceof $&&!(r instanceof mt)){var O=this._tmin.getKey(P);(!v(O)||(this.usesShowFields||this._dataSetChanged||e instanceof mt&&e.groupData&&this.isShowing)&&l<O||this.stackedSeries&&!this.isHidden&&!t)&&(this._tmin.setKey(P,l),C=!0);var T=this._tmax.getKey(P);(!v(T)||(this.usesShowFields||this._dataSetChanged||e instanceof mt&&e.groupData&&this.isShowing)&&h>T||this.stackedSeries&&!this.isHidden&&!t)&&(this._tmax.setKey(P,h),C=!0)}if(e instanceof $&&!(e instanceof mt)){var O=this._tmin.getKey(x);(!v(O)||(this.usesShowFields||this._dataSetChanged||r instanceof mt&&r.groupData&&this.isShowing)&&a<O||this.stackedSeries&&!this.isHidden&&!t)&&(this._tmin.setKey(x,a),C=!0);var T=this._tmax.getKey(x);(!v(T)||(this.usesShowFields||this._dataSetChanged||r instanceof mt&&r.groupData&&this.isShowing)&&o>T||this.stackedSeries&&!this.isHidden&&!t)&&(this._tmax.setKey(x,o),C=!0)}C&&this.dispatchImmediately("extremeschanged"),this.start==0&&this.end==1&&(this._dataSetChanged=!1),this.dispatchImmediately("selectionextremeschanged")}!t&&this.stacked&&this.processValues(!0)}},i.prototype.hideTooltip=function(t){s.prototype.hideTooltip.call(this,t),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},i.prototype.showTooltipAtPosition=function(t,e){var r;if(this.visible&&!this.isHiding&&!this.isShowing){var n=this._xAxis.get(),a=this._yAxis.get();n==this.baseAxis&&(r=n.getSeriesDataItem(this,n.toAxisPosition(t),this.snapTooltip)),a==this.baseAxis&&(r=a.getSeriesDataItem(this,a.toAxisPosition(e),this.snapTooltip));var o=this.showTooltipAtDataItem(r);if(o)return o;if(!this.tooltipText&&!this.tooltipHTML)return}this.hideTooltip()},i.prototype.getAdjustedXLocation=function(t,e,r){return t.locations[e]},i.prototype.getAdjustedYLocation=function(t,e,r){return t.locations[e]},i.prototype.showTooltipAtDataItem=function(t){var e,r,n=this.chart.cursor;if(n&&n.hideSeriesTooltipsOnSelection&&n.selection.visible&&n.downPoint){this.hideTooltip();return}if(this.returnBulletDefaultState(t),t&&t.visible){if(this.updateLegendValue(t),this.cursorTooltipEnabled){this.tooltipDataItem=t;var a=this.tooltipXField,o=this.tooltipYField;if(b(t[a])&&b(t[o])){var l=this.getPoint(t,a,o,this.getAdjustedXLocation(t,a),this.getAdjustedYLocation(t,o));if(l&&!(this.chart.className=="XYChart"&&(l.y<-1||l.y>this.yAxis.pixelHeight+1||l.x<-1||l.x>this.xAxis.pixelWidth+1))){if(this.tooltipX=l.x,this.tooltipY=l.y,this._prevTooltipDataItem!=t&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:t}),this._prevTooltipDataItem=t),this.cursorHoverEnabled)try{for(var h=Sr(t.sprites),u=h.next();!u.done;u=h.next()){var p=u.value;!p.parent.visible||p.isHidden||p.__disabled||p.disabled||p.isHiding||(p.interactions.isRealHover||(p.dispatchImmediately("over"),p.interactions.isRealHover=!0),p.isHover=!0)}}catch(d){e={error:d}}finally{try{u&&!u.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}return this.showTooltip()?de({x:l.x,y:l.y},this):void 0}}}}else this.updateLegendValue(t,!0)},i.prototype.returnBulletDefaultState=function(t){var e,r;if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=t)try{for(var n=Sr(this._prevTooltipDataItem.sprites),a=n.next();!a.done;a=n.next()){var o=a.value;if(o.isDisposed())this._prevTooltipDataItem=void 0;else{var l=o.interactions.isRealHover;o.isHover=!1,l&&o.dispatchImmediately("out")}}}catch(h){e={error:h}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},i.prototype.shouldCreateBullet=function(t,e){var r=e.xField;b(r)||(r=this.xField);var n=e.yField;if(b(n)||(n=this.yField),this.xAxis instanceof $&&!t.hasValue([r])||this.yAxis instanceof $&&!t.hasValue([n]))return!1;if(e.disabled){var a=e.propertyFields.disabled,o=t.dataContext;return!!(o&&o[a]===!1)}return!0},i.prototype.updateTooltip=function(){!this.hideTooltipWhileZooming&&this.tooltip&&!this.tooltip.isHidden&&!this.isHiding&&!this.isHidden&&this.tooltipDataItem&&this.showTooltipAtDataItem(this.tooltipDataItem)},i.prototype.positionBullet=function(t){s.prototype.positionBullet.call(this,t);var e=t.dataItem,r=t.xField;b(r)||(r=this.xField);var n=t.yField;b(n)||(n=this.yField);var a=this.xAxis,o=this.yAxis;if(a instanceof $&&!e.hasValue([r])||o instanceof $&&!e.hasValue([n]))t.visible=!1;else{var l=this.getBulletLocationX(t,r),h=this.getBulletLocationY(t,n),u=this.getPoint(e,r,n,l,h);if(u){var p=this.xOpenField,d=this.yOpenField,f=void 0,c=void 0;if(a instanceof mt){v(l)||(l=0);var y=void 0,g=e.getWorkingValue(r);p?y=e.getWorkingValue(p):a==this.baseAxis&&(y=a.baseValue),v(y)||(y=g);var m=e.getValue("valueX","stack");if(y+=m,g+=m,y==g){var x=a.baseInterval,P=a.dateFormatter;y=Rt(new Date(y),x.timeUnit,x.count,P.firstDayOfWeek,P.utc,void 0,P.timezoneMinutes,P.timezone).getTime(),g=Zt(new Date(y),x.timeUnit,x.count,P.utc).getTime()}var S=void 0;a==this.baseAxis?S=y+(g-y)*l:S=y+(g-y)*(1-l),f=a.valueToPosition(S)}else if(a instanceof $){v(l)||(l=0);var y=void 0,g=e.getWorkingValue(r);p?y=e.getWorkingValue(p):y=a.baseValue;var m=e.getValue("valueX","stack");y+=m,g+=m;var S=y+(g-y)*(1-l);f=a.valueToPosition(S)}else if(a instanceof St){var C=this.getAdjustedXLocation(e,r,t.locationX),O
172=this.getAdjustedXLocation(e,p,t.locationX);f=a.categoryToPosition(e[r],C);var T=void 0;p&&(T=a.categoryToPosition(e[p],O)),v(T)||(T=1),f=T+(f-T)*l}if(o instanceof mt){v(h)||(h=0);var y=void 0,g=e.getWorkingValue(n);d?y=e.getWorkingValue(d):o==this.baseAxis&&(y=o.baseValue),v(y)||(y=g);var m=e.getValue("valueY","stack");if(y+=m,g+=m,y==g){var x=o.baseInterval,P=o.dateFormatter;y=Rt(new Date(y),x.timeUnit,x.count,P.firstDayOfWeek,P.utc,void 0,P.timezoneMinutes,P.timezone).getTime(),g=Zt(new Date(y),x.timeUnit,x.count,P.utc).getTime()}var S=void 0;o==this.baseAxis?S=y+(g-y)*h:S=y+(g-y)*(1-h),c=o.valueToPosition(S)}else if(o instanceof $){v(h)||(h=0);var y=void 0,g=e.getWorkingValue(n);d?y=e.getWorkingValue(d):y=o.baseValue;var m=e.getValue("valueY","stack");y+=m,g+=m;var S=y+(g-y)*(1-h);c=o.valueToPosition(S)}else if(o instanceof St){c=o.categoryToPosition(e[n],h);var D=this.getAdjustedYLocation(e,n,t.locationY),k=this.getAdjustedYLocation(e,d,t.locationY);c=o.categoryToPosition(e[n],D);var z=void 0;d&&(z=o.categoryToPosition(e[d],k)),v(z)||(z=1),c=z+(c-z)*h}t.visible=!0,this.positionBulletReal(t,f,c)}else t.visible=!1}},i.prototype.positionBulletReal=function(t,e,r){t.x=this.xAxis.renderer.positionToPoint(e,r).x,t.y=this.yAxis.renderer.positionToPoint(r,e).y},i.prototype.getBulletLocationX=function(t,e){var r=t.locationX,n=t.dataItem;return v(r)||(r=n.workingLocations[e]),r},i.prototype.getBulletLocationY=function(t,e){var r=t.locationY,n=t.dataItem;return v(r)||(r=n.workingLocations[e]),r},i.prototype.updateStacking=function(){var t=this;this.invalidateDataItems(),this.chart&&this.chart.series.each(function(e){e.baseAxis==t.baseAxis&&(e.stackedSeries=void 0,e.invalidateDataItems(),e.invalidateProcessedData())})},Object.defineProperty(i.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(t){if(this.setPropertyValue("stacked",t,!0)){this.updateStacking();var e=this.xAxis,r=this.yAxis;if(!t){var n;e!=this.baseAxis&&e instanceof $&&(n=this.xField),r!=this.baseAxis&&r instanceof $&&(n=this.yField),n&&this.dataItems.each(function(a){a.setCalculatedValue(n,0,"stack"),a.setCalculatedValue(n,0,"stackTrue")})}}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),i.prototype.show=function(t){var e=this;this.isHidden&&(this.appeared&&this.xAxis instanceof mt&&this.xAxis.groupData&&(this._tmin.setKey(this.yAxis.uid,void 0),this._tmax.setKey(this.yAxis.uid,void 0)),this.appeared&&this.yAxis instanceof mt&&this.yAxis.groupData&&(this._tmin.setKey(this.xAxis.uid,void 0),this._tmax.setKey(this.xAxis.uid,void 0)));var r;this.xAxis instanceof $&&this.xAxis!=this.baseAxis&&(r=this._xValueFields),this.yAxis instanceof $&&this.yAxis!=this.baseAxis&&(r=this._yValueFields);var n=this.startIndex,a=this.endIndex,o=0,l=this.defaultState.transitionDuration;v(t)&&(l=t);var h;A(ti(this.dataItems.iterator()),function(p){var d=p[0],f=p[1],c=l;(d<e.startIndex-10||d>e.endIndex+10)&&(c=0,o=0),e.sequencedInterpolation&&c>0&&(o=e.sequencedInterpolationDelay*d+l*(d-n)/(a-n)),h=f.show(c,o,r)}),this.dataSets.each(function(p,d){d!=e.dataItems&&d.each(function(f){f.events.disable(),f.show(0,0,r),f.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(p){p.events.disable(),p.show(0,0,r),p.events.enable()});var u=s.prototype.show.call(this,t);return h&&!h.isFinished()&&(u=h),this.hidden&&(this.dispatchImmediately("selectionextremeschanged"),this.hidden=!1),u},i.prototype.hide=function(t){var e=this,r,n,a=this.xAxis;a instanceof $&&a!=this.baseAxis&&(r=this._xValueFields,this.stacked||a.minZoomed<a.baseValue&&a.maxZoomed>a.baseValue||this.stackedSeries?n=a.baseValue:n=a.min);var o=this.yAxis;o instanceof $&&o!=this.baseAxis&&(r=this._yValueFields,this.stacked||o.minZoomed<o.baseValue&&o.maxZoomed>o.baseValue||this.stackedSeries?n=o.baseValue:n=o.min);var l=this.startIndex,h=this.endIndex,u=this.hiddenState.transitionDuration;v(t)&&(u=t);var p=0,d;A(ti(this.dataItems.iterator()),function(c){var y=c[0],g=c[1],m=u;(y<e.startIndex-10||y>e.endIndex+10)&&(m=0),m==0?g.hide(0,0,n,r):(e.sequencedInterpolation&&m>0&&(p=e.sequencedInterpolationDelay*y+u*(y-l)/(h-l)),d=g.hide(m,p,n,r))}),this.dataSets.each(function(c,y){y!=e.dataItems&&y.each(function(g){g.events.disable(),g.hide(0,0,n,r),g.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(c){c.events.disable(),c.hide(0,0,n,r),c.events.enable()});var f=s.prototype.hide.call(this,u);return f&&!f.isFinished()&&f.delay(p),d&&!d.isFinished()&&(f=d),this.appeared&&this.dispatch("selectionextremeschanged"),this.validateDataElements(),f},i.prototype.handleDataItemWorkingValueChange=function(t,e){s.prototype.handleDataItemWorkingValueChange.call(this,t,e);var r=this.baseAxis.series;A(r.iterator(),function(n){(n.stacked||n.stackedSeries)&&n.invalidateProcessedData()})},i.prototype.getStackValue=function(t,e){var r=this,n=this.xAxis,a=this.yAxis;if(!(!this.stacked||!n||!a)){var o=this.chart,l=o.series.indexOf(this),h;if(n!=this.baseAxis&&n instanceof $&&(h=this.xField),a!=this.baseAxis&&a instanceof $&&(h=this.yField),!h)return;t.setCalculatedValue(h,0,"stack"),t.setCalculatedValue(h,0,"stackTrue"),he(o.series.range(0,l).backwards().iterator(),function(u){if(u.xAxis==n&&u.yAxis==a&&u.className==r.className){u.stackedSeries=r;var p=u.dataItems.getIndex(t.index);if(p&&p.hasValue(r._xValueFields)&&p.hasValue(r._yValueFields)){var d=t.getValue(h),f=void 0,c=p.getValue(h,"stackTrue");c==null&&(c=0);var y=p.getValue(h)+c;if(f=p.getWorkingValue(h)+p.getValue(h,"stack"),r.stackToNegative){if(d>=0&&y>=0||d<0&&y<0)return t.setCalculatedValue(h,f,"stack"),t.setCalculatedValue(h,y,"stackTrue"),!1;if(!u.stacked)return!1}else return t.setCalculatedValue(h,f,"stack"),t.setCalculatedValue(h,y,"stackTrue"),!1}else if(!u.stacked)return!1}return!0})}},Object.defineProperty(i.prototype,"stackToNegative",{get:function(){return this.getPropertyValue("stackToNegative")}
172,set:function(t){this.setPropertyValue("stackToNegative",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(t){this._tooltipXField=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(t){this._tooltipYField=t},enumerable:!0,configurable:!0}),i.prototype.min=function(t){return this._tmin.getKey(t.uid)},i.prototype.max=function(t){return this._tmax.getKey(t.uid)},i.prototype.selectionMin=function(t){var e=this._smin.getKey(t.uid);return e},i.prototype.selectionMax=function(t){var e=this._smax.getKey(t.uid);return e},i.prototype.processConfig=function(t){if(t){if(b(t.baseAxis)&&tt(t.baseAxis)&&(this.map.hasKey(t.baseAxis)?t.baseAxis=this.map.getKey(t.baseAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+t.baseAxis+'" found for `baseAxis`.'),delete t.baseAxis)),b(t.xAxis)&&tt(t.xAxis)&&(this.map.hasKey(t.xAxis)?t.xAxis=this.map.getKey(t.xAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+t.xAxis+'" found for `xAxis`.'),delete t.xAxis)),b(t.yAxis)&&tt(t.yAxis)&&(this.map.hasKey(t.yAxis)?t.yAxis=this.map.getKey(t.yAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+t.yAxis+'" found for `yAxis`.'),delete t.yAxis)),b(t.axisRanges)&&Wt(t.axisRanges))for(var e=0,r=t.axisRanges.length;e<r;e++){var n=t.axisRanges[e];b(n.type)||(n.type="AxisDataItem"),b(n.axis)&&tt(n.axis)&&this.map.hasKey(n.axis)?n.component=this.map.getKey(n.axis):b(n.component)&&tt(n.component)&&this.map.hasKey(n.component)&&(n.component=this.map.getKey(n.component))}(!b(t.dataFields)||!gt(t.dataFields))&&this.processingErrors.push("`dataFields` is not set for series ["+(this.name||"unnamed")+"]")}s.prototype.processConfig.call(this,t)},i.prototype.getPoint=function(t,e,r,n,a,o,l){if(this.xAxis&&this.yAxis){var h=this.xAxis.getX(t,e,n),u=this.yAxis.getY(t,r,a);return h=B(h,-this._maxxX,this._maxxX),u=B(u,-this._maxxY,this._maxxY),{x:h,y:u}}},i.prototype.updateItemReaderText=function(){if(!this._itemReaderTextChanged){var t="";U(this.dataFields,function(e,r){t+="{"+e+"} "}),this.itemReaderText=t,this._itemReaderTextChanged=!1}},Object.defineProperty(i.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorHoverEnabled",{get:function(){return this.getPropertyValue("cursorHoverEnabled")},set:function(t){this.setPropertyValue("cursorHoverEnabled",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"excludeFromTotal",{get:function(){return this.getPropertyValue("excludeFromTotal")},set:function(t){this.setPropertyValue("excludeFromTotal",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(t){this.setPropertyValue("hideTooltipWhileZooming",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t);var e=this.chart;e&&(t?this.bulletsContainer.parent=e.bulletsContainer:this.bulletsContainer.parent=e.axisBulletsContainer)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){this.groupFields=Me(t.groupFields,{}),s.prototype.copyFrom.call(this,t)},i.prototype.dispose=function(){this.scrollbarSeries&&this.scrollbarSeries.dispose(),s.prototype.dispose.call(this)},i}(sn);_.registeredClasses.XYSeries=ni;_.registeredClasses.XYSeriesDataItem=un;var Io=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="ZoomOutButton",t.padding(9,9,9,9),t.showSystemTooltip=!0;var e=new nt,r=t.background;r.cornerRadius(20,20,20,20),r.fill=e.getFor("primaryButton"),r.stroke=e.getFor("primaryButtonStroke"),r.strokeOpacity=0,r.states.getKey("hover").properties.fill=e.getFor("primaryButtonHover"),r.states.getKey("down").properties.fill=e.getFor("primaryButtonActive");var n=new Z;n.element=t.paper.add("path");var a=E({x:0,y:0});return a+=V({x:11,y:0}),n.path=a,n.pixelPerfect=!0,n.padding(8,3,8,3),n.stroke=e.getFor("primaryButtonText"),t.icon=n,t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},i}(Ye);_.registeredClasses.ZoomOutButton=Io;var Xr=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="DesaturateFilter",t.feColorMatrix=t.paper.add("feColorMatrix"),t.feColorMatrix.attr({type:"saturate"}),t.filterPrimitives.push(t.feColorMatrix),t.width=120,t.height=120,t.saturation=0,t.applyTheme(),t}return Object.defineProperty(i.prototype,"saturation",{get:function(){return this.properties.saturation},set:function(t){this.properties.saturation=t,this.feColorMatrix.attr({values:t.toString()})},enumerable:!0,configurable:!0}),i}(Pi);_.registeredClasses.DesaturateFilter=Xr;var Ee=function(s){w(i,s);function i(){var t=s.call(this)||this;t._chart=new Et,t.className="XYChartScrollbar";var e=new nt;t.padding(0,0,0,0);var r=t.createChild(Le);if(r.shouldClone=!1,r.margin(0,0,0,0),r.padding(0,0,0,0),r.interactionsEnabled=!1,t._scrollbarChart=r,!Hi()){var n=new Xr;n.filterUnits="userSpaceOnUse",r.plotContainer.filters.push(n)}t._disposers.push(t._scrollbarChart),t.minHeight=60,t.minWidth=60;var a=t.createChild(Z);a.shouldClone=!1,a.setElement(t.paper.add("path")),a.fill=e.getFor("background"),a.fillOpacity=.8,a.interactionsEnabled=!1,a.isMeasured=!1,a.toBack(),t._unselectedOverlay=a,t._disposers.push(t._unselectedOverlay),r.toBack(),t.background.cornerRadius(0,0,0,0);var o=t.thumb.background;o.cornerRadius(0,0,0,0),o.fillOpacity=0,o.fill=e.getFor("background");var l=o.states.getKey("hover");l&&(l.properties.fillOpacity=.2);var h=o.states.getKey("down");return h&&(h.properties.fillOpacity=.4),t._disposers.push(t._chart),t.applyTheme(),t}return Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new rt,this._disposers.push(this._series.events.on("inserted",this.handleSeriesAdded,this,!1)),this._disposers.push(this._series.events.on("removed",this.handleSeriesRemoved,this,!1))),this._series},enumerable:!0,configurable:!0}),i.prototype.handleSeriesAdded=function(t){var e=this,r=t.newValue;if(!(!r.xAxis||!r.yAxis)){var n=this.scrollbarChart;n.zoomOutButton.disabled=!0,this.chart=r.chart,n.dateFormatter.inputDateFormat=this.chart.dateFormatter.inputDateFormat,n.language.locale=this.chart.language.locale;var a=!0,o=!0;A(this.series.iterator(),function(P){P!=r&&(P.xAxis==r.xAxis&&e.scrollbarChart.xAxes.length>0&&(a=!1),P.yAxis==r.yAxis&&e.scrollbarChart.yAxes.length>0&&(o=!1))}),r.events.on("beforedisposed",function(){e.series.removeValue(r)});var l=new nt,h=r.clone();if(Hi()&&(h.stroke=H("#aaaaaa"),h.fill=h.stroke,h.propertyFields.fill=void 0,h.propertyFields.stroke=void 0),r.scrollbarSeries=h,a){var u=r.xAxis.clone();n.xAxes.moveValue(u),u.title.disabled=!0,u.rangeChangeDuration=0;var p=u.renderer;p.ticks.template.disabled=!0,p.inside=!0,p.labels.template.inside=!0,p.line.strokeOpacity=0,p.minLabelPosition=.02,p.maxLabelPosition=.98,p.line.disabled=!0,p.axisFills.template.disabled=!0,p.baseGrid.disabled=!0,p.grid.template.strokeOpacity=.05,p.minWidth=void 0,p.minHeight=void 0,p.padding(0,0,0,0),p.chart=n,p.margin(0,0,0,0),u.width=I(100);var d=p.labels.template;if(d.fillOpacity=.5,u.maxZoomCount=void 0,u.minZoomCount=void 0,u instanceof mt){var f=u,c=r.xAxis;f.groupCount=c.groupCount*5,f.min=void 0,f.max=void 0,this._disposers.push(f.clonedFrom.events.on("extremeschanged",function(){v(f.clonedFrom.minDefined)&&(f.min=f.clonedFrom.minDefined),v(f.clonedFrom.maxDefined)&&(f.max=f.clonedFrom.maxDefined)},void 0,!1))}else if(u instanceof $){var y=u;y.min=void 0,y.max=void 0,v(y.clonedFrom.minDefined)||(y.min=void 0),v(y.clonedFrom.maxDefined)||(y.max=void 0),this._disposers.push(y.clonedFrom.events.on("extremeschanged",function(){v(y.clonedFrom.minDefined)&&(y.min=y.clonedFrom.min),v(y.clonedFrom.maxDefined)&&(y.max=y.clonedFrom.max)},void 0,!1))}h.xAxis=u}else this.scrollbarChart.xAxes.each(function(P){P.clonedFrom==r.xAxis&&(h.xAxis=P)});if(o){var g=r.yAxis.clone();n.yAxes.moveValue(g),g.title.disabled=!0,g.rangeChangeDuration=0;var p=g.renderer;p.ticks.template.disabled=!0,p.inside=!0,p.labels.template.inside=!0,p.line.strokeOpacity=0,p.minLabelPosition=.02,p.maxLabelPosition=.98,p.line.disabled=!0,p.axisFills.template.disabled=!0,p.grid.template.stroke=l.getFor("background"),p.baseGrid.disabled=!0,p.grid.template.strokeOpacity=.05,p.minWidth=void 0,p.minHeight=void 0,p.chart=n,p.padding(0,0,0,0),p.margin(0,0,0,0),g.height=I(100);var d=p.labels.template;if(d.fillOpacity=.5,h.yAxis=g,g.maxZoomCount=void 0,g.minZoomCount=void 0,g instanceof mt){var m=g;m.min=void 0,m.max=void 0;var c=r.yAxis;g.groupCount=c.groupCount*5,this._disposers.push(m.clonedFrom.events.on("extremeschanged",function(){v(m.clonedFrom.minDefined)&&(m.min=m.clonedFrom.minDefined),v(m.clonedFrom.maxDefined)&&(m.max=m.clonedFrom.maxDefined)}))}else if(g instanceof $){var x=g;x.min=void 0,x.max=void 0,v(x.clonedFrom.minDefined)||(x.min=void 0),v(x.clonedFrom.maxDefined)||(x.max=void 0),this._disposers.push(x.clonedFrom.events.on("extremeschanged",function(){v(x.clonedFrom.minDefined)&&(x.min=x.clonedFrom.minDefined),v(x.clonedFrom.maxDefined)&&(x.max=x.clonedFrom.maxDefined)}))}}else this.scrollbarChart.yAxes.each(function(P){P.clonedFrom==r.yAxis&&(h.yAxis=P)});h.rangeChangeDuration=0,h.interpolationDuration=0,h.defaultState.transitionDuration=0,h.showOnInit=!1,this._disposers.push(h.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(r.events.on("datavalidated",function(){h.data!=r.data&&(h.data=r.data)},void 0,!1)),h.defaultState.properties.visible=!0,n.series.push(h),this.updateByOrientation()}},i.prototype.updateByOrientation=function(){var t=this;this._scrollbarChart&&(A(this._scrollbarChart.xAxes.iterator(),function(e){var r=e.renderer;t.orientation=="vertical"?(r.grid.template.disabled=!0,r.labels.template.disabled=!0,r.minGridDistance=10):(r.grid.template.disabled=!1,r.labels.template.disabled=!1,r.minGridDistance=e.clonedFrom.renderer.minGridDistance)}),A(this._scrollbarChart.yAxes.iterator(),function(e){var r=e.renderer;t.orientation=="horizontal"?(r.grid.template.disabled=!0,r.labels.template.disabled=!0,r.minGridDistance=10):(r.grid.template.disabled=!1,r.labels.template.disabled=!1,r.minGridDistance=e.clonedFrom.renderer.minGridDistance)}))},i.prototype.handleSeriesRemoved=function(t){var e=t.oldValue,r=this.scrollbarChart;r.series.each(function(n){n&&n.clonedFrom==e&&r.series.removeValue(n)}),r.series.length==0&&(r.xAxes.clear(),r.yAxes.clear());try{e.events.off("validated",this.zoomOutAxes,this)}catch{}},Object.defineProperty(i.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.get()!==t&&(this._chart.set(t,t.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"unselectedOverlay",{get:function(){return this._unselectedOverlay},enumerable:!0,configurable:!0}),i.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data?this.scrollbarChart.data=this.chart.data:this.scrollbarChart.invalidateRawData()},i.prototype.zoomOutAxes=function(){var t=this.scrollbarChart;A(t.xAxes.iterator(),function(e){e.zoom({start:0,end:1},!0,!0)}
172),A(t.yAxes.iterator(),function(e){e.zoom({start:0,end:1},!0,!0)})},i.prototype.updateThumb=function(t){if(t===void 0&&(t=!0),s.prototype.updateThumb.call(this,t),this._unselectedOverlay){var e=this.thumb,r=e.pixelX||0,n=e.pixelY||0,a=e.pixelWidth||0,o=e.pixelHeight||0,l="";this.orientation=="horizontal"?(l=We({x:-1,y:0,width:r,height:o}),l+=We({x:r+a,y:0,width:(this.pixelWidth||0)-r-a,height:o})):(l=We({x:0,y:0,width:a,height:n}),l+=We({x:0,y:n+o,width:a,height:(this.pixelHeight||0)-n-o})),this._unselectedOverlay.path=l}},i.prototype.processConfig=function(t){if(t&&b(t.series)&&Wt(t.series))for(var e=0,r=t.series.length;e<r;e++){var n=t.series[e];if(b(n)&&tt(n))if(this.map.hasKey(n))t.series[e]=this.map.getKey(n);else throw Error("XYChartScrollbar error: Series with id `"+n+"` does not exist.")}s.prototype.processConfig.call(this,t)},i}(en);_.registeredClasses.XYChartScrollbar=Ee;var Ts=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="XYChartDataItem",t.applyTheme(),t}return i}(wo),Le=function(s){w(i,s);function i(){var t=s.call(this)||this;t._axisRendererX=je,t._axisRendererY=xe,t._seriesPoints=[],t.className="XYChart",t.maskBullets=!0,t.arrangeTooltips=!0;var e=t.chartContainer;e.layout="vertical",t.padding(15,15,15,15);var r=e.createChild(N);r.shouldClone=!1,r.layout="vertical",r.width=I(100),r.zIndex=1,t.topAxesContainer=r;var n=e.createChild(N);n.shouldClone=!1,n.layout="horizontal",n.width=I(100),n.height=I(100),n.zIndex=0,t.yAxesAndPlotContainer=n;var a=e.createChild(N);a.shouldClone=!1,a.width=I(100),a.layout="vertical",a.zIndex=1,t.bottomAxesContainer=a;var o=n.createChild(N);o.shouldClone=!1,o.layout="horizontal",o.height=I(100),o.contentAlign="right",o.events.on("transformed",t.updateXAxesMargins,t,!1),o.zIndex=1,t.leftAxesContainer=o;var l=n.createChild(N);l.shouldClone=!1,l.height=I(100),l.width=I(100),l.background.fillOpacity=0,t.plotContainer=l,t.mouseWheelBehavior="none",t._cursorContainer=l;var h=n.createChild(N);h.shouldClone=!1,h.layout="horizontal",h.height=I(100),h.zIndex=1,h.events.on("transformed",t.updateXAxesMargins,t,!1),t.rightAxesContainer=h,t.seriesContainer.parent=l,t.bulletsContainer.parent=l;var u=l.createChild(Io);u.shouldClone=!1,u.align="right",u.valign="top",u.zIndex=Number.MAX_SAFE_INTEGER,u.marginTop=5,u.marginRight=5,u.hide(0),t.zoomOutButton=u;var p=t.plotContainer.createChild(N);return p.shouldClone=!1,p.width=I(100),p.height=I(100),p.isMeasured=!1,p.zIndex=4,p.layout="none",t.axisBulletsContainer=p,t._bulletMask=t.plotContainer,t.events.on("beforedatavalidated",function(){t.series.each(function(d){d.dataGrouped=!1,d._baseInterval={}})},t,!1),t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),this.zoomOutButton.exportable=!1,b(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y chart"))},i.prototype.draw=function(){s.prototype.draw.call(this),this.seriesContainer.toFront(),this.bulletsContainer.toFront(),this.maskBullets&&(this.bulletsContainer.mask=this._bulletMask),this.updateSeriesLegend()},i.prototype.updatePlotElements=function(){A(this.series.iterator(),function(t){t.invalidate()})},i.prototype.validateData=function(){this._parseDataFrom==0&&(A(this.xAxes.iterator(),function(t){t.dataChangeUpdate()}),A(this.yAxes.iterator(),function(t){t.dataChangeUpdate()}),A(this.series.iterator(),function(t){t.dataChangeUpdate()})),s.prototype.validateData.call(this)},i.prototype.updateXAxesMargins=function(){var t=this.leftAxesContainer.measuredWidth,e=this.rightAxesContainer.measuredWidth,r=this.bottomAxesContainer;(r.paddingLeft!=t||r.paddingRight!=e)&&(r.paddingLeft=t,r.paddingRight=e);var n=this.topAxesContainer;(n.paddingLeft!=t||n.paddingRight!=e)&&(n.paddingLeft=t,n.paddingRight=e)},i.prototype.reinit=function(){s.prototype.reinit.call(this),this.series.each(function(t){t.appeared=!1})},i.prototype.handleXAxisChange=function(t){this.updateXAxis(t.target)},i.prototype.handleYAxisChange=function(t){this.updateYAxis(t.target)},i.prototype.processXAxis=function(t){var e=t.newValue;e.chart=this,e.renderer||(e.renderer=new this._axisRendererX,e.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleXAxisChange,this,
172!1)),e.axisLetter="X",e.events.on("startendchanged",this.handleXAxisRangeChange,this,!1),e.dataProvider=this,this.updateXAxis(e.renderer),this.processAxis(e)},i.prototype.processYAxis=function(t){var e=t.newValue;e.chart=this,e.renderer||(e.renderer=new this._axisRendererY,e.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleYAxisChange,this,!1)),e.axisLetter="Y",e.events.on("startendchanged",this.handleYAxisRangeChange,this,!1),e.dataProvider=this,this.updateYAxis(e.renderer),this.processAxis(e)},i.prototype.handleXAxisRangeChange=function(){var t=this.getCommonAxisRange(this.xAxes);this.scrollbarX&&this.zoomAxes(this.xAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarX,t)},i.prototype.toggleZoomOutButton=function(){if(this.zoomOutButton){var t=!1;he(this.xAxes.iterator(),function(e){if(e.toggleZoomOutButton){if(e.maxZoomCount>0){var r=e.maxZoomFactor/e.maxZoomCount;if(F(e.end-e.start,3)<1/r)return t=!0,!1}else if(F(e.start,3)>0||F(e.end,3)<1)return t=!0,!1}return!0}),he(this.yAxes.iterator(),function(e){if(e.toggleZoomOutButton){if(e.maxZoomCount>0){var r=e.maxZoomFactor/e.maxZoomCount;if(F(e.end-e.start,3)<1/r)return t=!0,!1}else if(F(e.start,3)>0||F(e.end,3)<1)return t=!0,!1;return!0}}),this.seriesAppeared||(t=!1),t?this.zoomOutButton.show():this.zoomOutButton.hide()}},i.prototype.seriesAppeared=function(){var t=!1;return A(this.series.iterator(),function(e){if(!e.appeared)return t=!1,!1}),t},i.prototype.handleYAxisRangeChange=function(){var t=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,t)},i.prototype.updateScrollbar=function(t,e){t&&(t.skipRangeEvents(),t.start=e.start,t.end=e.end)},i.prototype.getCommonAxisRange=function(t){var e,r;return t.each(function(n){if(!(!n.zoomable||n instanceof $&&n.syncWithAxis)){var a=n.start,o=n.end;n.renderer.inversed&&(a=1-n.end,o=1-n.start),(!v(e)||a<e)&&(e=a),(!v(r)||o>r)&&(r=o)}}),{start:e,end:r}},i.prototype.updateXAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.topAxesContainer,e.toFront()):(e.parent=this.bottomAxesContainer,e.toBack()),e.renderer&&e.renderer.processRenderer()},i.prototype.updateYAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.rightAxesContainer,e.toBack()):(e.parent=this.leftAxesContainer,e.toFront()),e.renderer&&e.renderer.processRenderer()},i.prototype.processAxis=function(t){var e=this;t instanceof St&&this._dataUsers.moveValue(t);var r=t.renderer;r.gridContainer.parent=this.plotContainer,r.gridContainer.toBack(),r.breakContainer.parent=this.plotContainer,r.breakContainer.toFront(),r.breakContainer.zIndex=10,t.addDisposer(new lt(function(){e.dataUsers.removeValue(t)})),r.bulletsContainer.parent=this.axisBulletsContainer,this._disposers.push(t.events.on("positionchanged",function(){var n=ee({x:0,y:0},t,e.axisBulletsContainer);t.renderer instanceof xe&&(r.bulletsContainer.y=n.y),t.renderer instanceof je&&(r.bulletsContainer.x=n.x)},void 0,!1)),this.plotContainer.events.on("maxsizechanged",function(){e.inited&&(t.invalidateDataItems(),e.updateSeriesMasks())},t,!1)},i.prototype.updateSeriesMasks=function(){Hi()&&this.series.each(function(t){var e=t.mainContainer.mask;t.mainContainer.mask=void 0,t.mainContainer.mask=e})},i.prototype.handleSeriesRemoved=function(t){var e=t.oldValue;e&&(e.xAxis&&(e.xAxis.series.removeValue(e),e.xAxis.invalidateProcessedData()),e.yAxis&&(e.yAxis.series.removeValue(e),e.yAxis.invalidateProcessedData()),this.series.each(function(r){r.resetExtremes()})),s.prototype.handleSeriesRemoved.call(this,t)},Object.defineProperty(i.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new rt,this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new ft(this._xAxes,!1))),this._xAxes},enumerable:!0,configurable:!0}),i.prototype.handleAxisRemoval=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),e.autoDispose&&e.dispose()},Object.defineProperty(i.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new rt,this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new ft(this._yAxes,!1))),this._yAxes},enumerable:!0,configurable:!0}),i.prototype.handleSeriesAdded=function(t){try{s.prototype.handleSeriesAdded.call(this,t);var e=t.newValue;(this.xAxes.length==0||this.yAxes.length==0)&&(_.removeFromInvalidComponents(e),e.dataInvalid=!1),e.xAxis,e.yAxis,e.maskBullets=e.maskBullets,e.fill==null&&(this.patterns?(b(e.stroke)||(e.stroke=this.colors.next()),e.fill=this.patterns.next(),b(e.fillOpacity)&&(e.fill.backgroundOpacity=e.fillOpacity),e.stroke instanceof it&&(e.fill.stroke=e.stroke,e.fill.fill=e.stroke)):e.fill=this.colors.next()),b(e.stroke)||(e.stroke=e.fill)}catch(r){this.raiseCriticalError(r)}},Object.defineProperty(i.prototype,"cursor",{get:function(){return this._cursor},set:function(t){this._cursor!=t&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=t,t&&(this._disposers.push(t),t.chart=this,t.shouldClone=!1,t.parent=this._cursorContainer,t.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,
172!1),t.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),t.events.on("zoomended",this.handleCursorZoomEnd,this,!1),t.events.on("panstarted",this.handleCursorPanStart,this,!1),t.events.on("panning",this.handleCursorPanning,this,!1),t.events.on("panended",this.handleCursorPanEnd,this,!1),t.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),t.events.on("hidden",this.handleHideCursor,this,!1),t.zIndex=Number.MAX_SAFE_INTEGER-1,this.tapToActivate&&this.setTapToActivate(this.tapToActivate)))},enumerable:!0,configurable:!0}),i.prototype.handleCursorPositionChange=function(){var t=this.cursor;if(t.visible&&!t.isHiding){var e=this.cursor.xPosition,r=this.cursor.yPosition;this.showSeriesTooltip({x:e,y:r});var n=[],a=t.snapToSeries;if(a&&!t.downPoint){a instanceof ni&&(a=[a]);var o=[];L(a,function(h){if(!h.isHidden&&!h.isHiding){var u=h.xAxis,p=h.yAxis;u instanceof $&&!(u instanceof mt)&&p instanceof $&&!(p instanceof mt)?(h.dataItems.each(function(d){o.push(d)}),fe(n,h.yAxis),fe(n,h.xAxis)):(h.baseAxis==h.xAxis&&(fe(n,h.yAxis),o.push(u.getSeriesDataItem(h,u.toAxisPosition(e),!0))),h.baseAxis==h.yAxis&&(fe(n,h.xAxis),o.push(p.getSeriesDataItem(h,p.toAxisPosition(r),!0))))}});var l=this.getClosest(o,e,r);l&&(this.series.each(function(h){var u=l.component;h!=u&&(h.hideTooltip(),h.xAxis!=u.xAxis&&(h.xAxis.hideTooltip(),n.push(h.xAxis)),h.yAxis!=u.yAxis&&(h.yAxis.hideTooltip(),n.push(h.yAxis)))}),l.component.showTooltipAtDataItem(l),t.handleSnap(l.component))}this._seriesPoints=[],this._cursorXPosition!=e&&this.showAxisTooltip(this.xAxes,e,n),this._cursorYPosition!=r&&this.showAxisTooltip(this.yAxes,r,n),this.arrangeTooltips&&this.sortSeriesTooltips(this._seriesPoints),this.legend&&this.legend.afterDraw()}},i.prototype.getClosest=function(t,e,r){var n=1/0,a;return ps(t,function(o){if(o){var l=o.component.xAxis,h=o.component.yAxis,u=l.positionToCoordinate(l.toGlobalPosition(l.toAxisPosition(e))),p=h.positionToCoordinate(h.toGlobalPosition(h.toAxisPosition(r))),d=o.component.xField,f=o.component.yField;if(l instanceof $&&!v(o.getValue(d))||h instanceof $&&!v(o.getValue(f)))return!0;var c=l.positionToCoordinate(l.toGlobalPosition(l.getPositionX(o,d,o.locations[d],"valueX"))),y=h.positionToCoordinate(h.toGlobalPosition(h.getPositionY(o,f,o.locations[f],"valueY"))),g=Math.sqrt(Math.pow(u-c,2)+Math.pow(p-y,2));return g<n&&(n=g,a=o),!0}}),a},i.prototype.handleHideCursor=function(){this.hideObjectTooltip(this.xAxes),this.hideObjectTooltip(this.yAxes),this.hideObjectTooltip(this.series),this._cursorXPosition=void 0,this._cursorYPosition=void 0,this.updateSeriesLegend()},i.prototype.updateSeriesLegend=function(){A(this.series.iterator(),function(t){t.updateLegendValue()})},i.prototype.hideObjectTooltip=function(t){A(t.iterator(),function(e){e.cursorTooltipEnabled&&e.hideTooltip(0)})},i.prototype.showSeriesTooltip=function(t){var e=this;if(!t){this.series.each(function(n){n.hideTooltip()});return}var r=[];this.series.each(function(n){if(!(n.xAxis instanceof mt&&n.xAxis.snapTooltip||n.yAxis instanceof mt&&n.yAxis.snapTooltip)){var a=n.showTooltipAtPosition(t.x,t.y);a&&(n.tooltip.setBounds(gs({x:0,y:0,width:e.pixelWidth,height:e.pixelHeight},e)),r.push({series:n,point:a}))}}),this.arrangeTooltips&&this.sortSeriesTooltips(r)},i.prototype.sortSeriesTooltips=function(t){if(t.length>0){var e=this.cursor;if(e&&v(e.maxTooltipDistance)){var r=de({x:e.point.x,y:e.point.y},e),n,a,o=1/0;L(t,function(R){var W=R.series,ot=R.point;if(ot){var Ft={x:ot.x,y:ot.y},zt=Math.abs(at(Ft,r));zt<o&&(a=Ft,o=zt,n=W)}});var l=[];n&&(L(t,function(R){if(Math.abs(at(R.point,a))<=Math.abs(e.maxTooltipDistance))l.push({series:R.series,point:R.point});else{var W=R.series.tooltipDataItem;W&&L(W.sprites,function(ot){ot.isHover=!1,ot.handleOutReal()}),R.series.hideTooltip(0)}}),e.maxTooltipDistance<0&&(l.length>0&&L(l,function(R){n!=R.series&&R.series.hideTooltip(0)}),l=[{series:n,point:a}])),t=l}var h=de({x:-.5,y:-.5},this.plotContainer),u=de({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),p=0,d=[];L(t,function(R){var W=R.point;W&&La(W,{x:h.x,y:h.y,width:u.x-h.x,height:u.y-h.y})&&(d.push({point:W,series:R.series}),p+=W.y)}),t=d;var f=this.series.getIndex(0),c=!1;f&&f.yAxis&&f.yAxis.renderer.inversed&&(c=!0),c?t.sort(function(R,W){return Te(R.point.y,W.point.y)}):(t.sort(function(R,W){return Te(W.point.y,R.point.y)}),t.reverse());var y=p/t.length,g=Qa({x:0,y:0},this.svgContainer.SVGContainer).y;if(t.length>0){var m=h.y,x=u.y;Gn({x:0,y:m},this);var P=!1;
172if(y>m+(x-m)/2)for(var S=x,C=t.length-1;C>=0;C--){var O=t[C].series,T=O.tooltip,D=t[C].point.y;if(T.setBounds({x:0,y:-g,width:this.pixelWidth,height:S+g}),T.invalid&&T.validate(),T.toBack(),S=de({x:0,y:T.label.pixelY-T.pixelY+D-T.pixelMarginTop},T).y,S<-g){P=!0;break}}if(y<=m+(x-m)/2||P)for(var k=m,C=0,z=t.length;C<z;C++){var O=t[C].series,D=t[C].point.y,T=O.tooltip;T.setBounds({x:0,y:k,width:this.pixelWidth,height:x}),T.invalid&&T.validate(),T.toBack(),k=de({x:0,y:T.label.pixelY+T.label.measuredHeight-T.pixelY+D+T.pixelMarginBottom},T).y}}}},i.prototype.showAxisTooltip=function(t,e,r){var n=this;A(t.iterator(),function(a){(!r||r.indexOf(a)==-1)&&(n.dataItems.length>0||a.dataItems.length>0)&&a.showTooltipAtPosition(e)})},i.prototype.getUpdatedRange=function(t,e){if(t){var r,n,a=t.renderer.inversed;a?(wi(e),r=1-t.end,n=1-t.start):(r=t.start,n=t.end);var o=n-r;return{start:r+e.start*o,end:r+e.end*o}}},i.prototype.handleCursorZoomEnd=function(t){var e=this.cursor,r=e.behavior;if(r=="zoomX"||r=="zoomXY"){var n=e.xRange;n&&this.xAxes.length>0&&(n=this.getUpdatedRange(this.xAxes.getIndex(0),n),n.priority="start",this.zoomAxes(this.xAxes,n))}if(r=="zoomY"||r=="zoomXY"){var a=e.yRange;a&&this.yAxes.length>0&&(a=this.getUpdatedRange(this.yAxes.getIndex(0),a),a.priority="start",this.zoomAxes(this.yAxes,a))}this.handleHideCursor()},i.prototype.handleCursorPanStart=function(t){var e=this.xAxes.getIndex(0);e&&(this._panStartXRange={start:e.start,end:e.end},e.renderer.inversed&&(this._panStartXRange=wi(this._panStartXRange)));var r=this.yAxes.getIndex(0);r&&(this._panStartYRange={start:r.start,end:r.end},r.renderer.inversed&&(this._panStartYRange=wi(this._panStartYRange)))},i.prototype.handleCursorPanEnd=function(t){var e=this.cursor,r=e.behavior;if(this._panEndXRange&&(r=="panX"||r=="panXY")){var n=this._panEndXRange,a=this._panStartXRange,o=0;n.start<0&&(o=n.start),a.end>1?n.end>a.end&&(o=n.end-a.end):n.end>1&&(o=n.end-1),this.zoomAxes(this.xAxes,{start:n.start-o,end:n.end-o},!1,e.snapOnPan),this._panEndXRange=void 0,this._panStartXRange=void 0}if(this._panEndYRange&&(r=="panY"||r=="panXY")){var n=this._panEndYRange,o=0;n.start<0&&(o=n.start),n.end>1&&(o=n.end-1),this.zoomAxes(this.yAxes,{start:n.start-o,end:n.end-o},!1,e.snapOnPan),this._panEndYRange=void 0,this._panStartYRange=void 0}},i.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},i.prototype.handleCursorPanning=function(t){var e=this.cursor,r=e.behavior,n=e.maxPanOut;if(this._panStartXRange&&(r=="panX"||r=="panXY")){var a=this._panStartXRange,o=e.xRange,l=this.getCommonAxisRange(this.xAxes),h=a.end-a.start,u=o.start*(l.end-l.start),p=Math.max(-n,u+a.start),d=Math.min(u+a.end,1+n);p<=0&&(d=p+h),d>=1&&(p=d-h);var f={start:p,end:d};this._panEndXRange=f,this.zoomAxes(this.xAxes,f,!1,!1,e.maxPanOut)}if(this._panStartYRange&&(r=="panY"||r=="panXY")){var a=this._panStartYRange,o=e.yRange,l=this.getCommonAxisRange(this.yAxes),h=a.end-a.start,u=o.start*(l.end-l.start),p=Math.max(-n,u+a.start),d=Math.min(u+a.end,1+n);p<=0&&(d=p+h),d>=1&&(p=d-h);var f={start:p,end:d};this._panEndYRange=f,this.zoomAxes(this.yAxes,f,!1,!1,e.maxPanOut)}this.handleHideCursor()},i.prototype.handleYAxisSet=function(t){},i.prototype.handleCursorZoomStart=function(t){},Object.defineProperty(i.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(t){var e=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=t,t&&(this._disposers.push(t),t.parent=this.topAxesContainer,t.shouldClone=!1,t.startGrip.exportable=!1,t.endGrip.exportable=!1,t.toBack(),t.orientation="horizontal",t.events.on("rangechanged",this.handleXScrollbarChange,this,!1),this.events.on("datavalidated",function(){return t.updateThumb(!1)},this,!1),t.adapter.add("positionValue",function(r){var n=e.xAxes.getIndex(0);return n&&(r.value=n.getPositionLabel(n.renderer.inversed?1-r.position:r.position)),r}),t.adapter.add("positionValueDirection",function(r){var n=e.xAxes.getIndex(0);return n&&(r.flipped=n.renderer.inversed),r}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(t){var e=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=t,t&&(this._disposers.push(t),t.parent=this.rightAxesContainer,t.startGrip.exportable=!1,t.shouldClone=!1,t.endGrip.exportable=!1,t.toFront(),t.orientation="vertical",t.events.on("rangechanged",this.handleYScrollbarChange,this,
172!1),this.events.on("datavalidated",function(){return t.updateThumb(!1)},this,!1),t.adapter.add("positionValue",function(r){var n=e.yAxes.getIndex(0);return n&&(r.value=n.getPositionLabel(n.renderer.inversed?r.position:1-r.position)),r}),t.adapter.add("positionValueDirection",function(r){var n=e.yAxes.getIndex(0);return n&&(r.flipped=!n.renderer.inversed),r}))},enumerable:!0,configurable:!0}),i.prototype.handleXScrollbarChange=function(t){if(this.inited){var e=t.target,r=e.range;r.start==0&&(r.priority="start"),r.end==1&&(r.priority="end"),r=this.zoomAxes(this.xAxes,r),e.fixRange(r)}},i.prototype.handleYScrollbarChange=function(t){if(this.inited){var e=t.target,r=e.range;r.end==1&&(r.priority="end"),r.start==0&&(r.priority="start"),r=this.zoomAxes(this.yAxes,r),e.fixRange(r)}},i.prototype.zoomAxes=function(t,e,r,n,a,o){var l={start:0,end:1};this.showSeriesTooltip();var h=e;return this.dataInvalid||A(t.iterator(),function(u){var p=u.maxZoomFactor;if(v(u.minZoomCount)&&(p=p/u.minZoomCount),!(o&&1/(e.end-e.start)>=p)){if(u.zoomable){if(u.renderer.inversed?e=wi(h):e=h,u.hideTooltip(0),n)if(u instanceof St){var d=u.getCellEndPosition(0)-u.getCellStartPosition(0);e.start=u.roundPosition(e.start+d/2-u.startLocation*d,u.startLocation),e.end=u.roundPosition(e.end-d/2+(1-u.endLocation)*d,u.endLocation)}else{var f=1e-4;e.start=u.roundPosition(e.start+f,0,u.startLocation),e.end=u.roundPosition(e.end+f,0,u.endLocation)}var c=u.zoom(e,r,r,a);u.renderer.inversed&&(c=wi(c)),l=c}}}),l},Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)&&this.bulletsContainer&&(t?this.bulletsContainer.mask=this._bulletMask:this.bulletsContainer.mask=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(t){this.setPropertyValue("arrangeTooltips",t,!0)},enumerable:!0,configurable:!0}),i.prototype.handleWheel=function(t){var e=this.plotContainer,r=Re(t.point,this.htmlContainer,this.svgContainer.cssScale),n=be(r,e),a=t.shift.y;this.handleWheelReal(a,this.mouseWheelBehavior,n)},i.prototype.handleHorizontalWheel=function(t){var e=this.plotContainer,r=Re(t.point,this.htmlContainer,this.svgContainer.cssScale),n=be(r,e);this.handleWheelReal(t.shift.x,this.horizontalMouseWheelBehavior,n)},i.prototype.handleWheelReal=function(t,e,r){if(t!=0){var n=this.plotContainer,a=this.getCommonAxisRange(this.xAxes),o=this.getCommonAxisRange(this.yAxes),l=.1,h=0;if(e=="panX"||e=="panXY"){var u=this.xAxes.getIndex(0),p=!1,d=l;u instanceof St&&(d=.5/((a.end-a.start)*u.dataItems.length),p=!0),l=Math.max(.2,d);var f=a.end-a.start,c=Math.max(-h,a.start+l*t/100*(a.end-a.start)),y=Math.min(a.end+l*t/100*(a.end-a.start),1+h);c<=0&&(y=c+f),y>=1&&(c=y-f),this.zoomAxes(this.xAxes,{start:c,end:y},void 0,p)}if(e=="panY"||e=="panXY"){var g=this.yAxes.getIndex(0),d=l,p=!1;g instanceof St&&(d=.5/((a.end-a.start)*g.dataItems.length),p=!0),l=Math.max(.2,d),t*=-1;var m=o.end-o.start,x=Math.max(-h,o.start+l*t/100*(o.end-o.start)),P=Math.min(o.end+l*t/100*(o.end-o.start),1+h);x<=0&&(P=x+m),P>=1&&(x=P-m),this.zoomAxes(this.yAxes,{start:x,end:P},void 0,p)}if(e=="zoomX"||e=="zoomXY"){var S=r.x/n.maxWidth,C=this.xAxes.getIndex(0).toAxisPosition(S),c=Math.max(-h,a.start-l*(a.end-a.start)*t/100*S);c=Math.min(c,C);var y=Math.min(a.end+l*(a.end-a.start)*t/100*(1-S),1+h);y=Math.max(y,C),this.zoomAxes(this.xAxes,{start:c,end:y},void 0)}if(e=="zoomY"||e=="zoomXY"){var O=r.y/n.maxHeight,T=this.yAxes.getIndex(0).toAxisPosition(O),x=Math.max(-h,o.start-l*(o.end-o.start)*t/100*(1-O));x=Math.min(x,T);var P=Math.min(o.end+l*t/100*O*(o.end-o.start),1+h);P=Math.max(P,T),this.zoomAxes(this.yAxes,{start:x,end:P},void 0)}}},Object.defineProperty(i.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&(t!="none"?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,
172!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalMouseWheelBehavior",{get:function(){return this.getPropertyValue("horizontalMouseWheelBehavior")},set:function(t){this.setPropertyValue("horizontalMouseWheelBehavior",t)&&(t!="none"?(this._mouseWheelDisposer2=this.plotContainer.events.on("wheel",this.handleHorizontalWheel,this,!1),this._disposers.push(this._mouseWheelDisposer2)):this._mouseWheelDisposer2&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer2.dispose()))},enumerable:!0,configurable:!0}),i.prototype.dataSourceDateFields=function(t){var e=this;return t=s.prototype.dataSourceDateFields.call(this,t),A(this.series.iterator(),function(r){t=e.populateDataSourceFields(t,r.dataFields,["dateX","dateY","openDateX","openDateY"])}),t},i.prototype.dataSourceNumberFields=function(t){var e=this;return t=s.prototype.dataSourceDateFields.call(this,t),A(this.series.iterator(),function(r){t=e.populateDataSourceFields(t,r.dataFields,["valueX","valueY","openValueX","openValueY"])}),t},i.prototype.processConfig=function(t){if(t){var e=[],r=[];if(b(t.xAxes)&&Wt(t.xAxes))for(var n=0,a=t.xAxes.length;n<a;n++)if(t.xAxes[n].type){if(b(t.xAxes[n].axisRanges)){for(var o=0,l=t.xAxes[n].axisRanges.length;o<l;o++){var h=t.xAxes[n].axisRanges[o];b(h.date)&&tt(h.date)&&(h.date=this.dateFormatter.parse(h.date)),b(h.endDate)&&tt(h.endDate)&&(h.endDate=this.dateFormatter.parse(h.endDate))}e.push({axisRanges:t.xAxes[n].axisRanges,index:n}),delete t.xAxes[n].axisRanges}}else throw Error("[XYChart error] No type set for xAxes["+n+"].");if(b(t.yAxes)&&Wt(t.yAxes))for(var n=0,a=t.yAxes.length;n<a;n++)if(t.yAxes[n].type){if(b(t.yAxes[n].axisRanges)){for(var o=0,u=t.yAxes[n].axisRanges.length;o<u;o++){var h=t.yAxes[n].axisRanges[o];b(h.date)&&tt(h.date)&&(h.date=this.dateFormatter.parse(h.date)),b(h.endDate)&&tt(h.endDate)&&(h.endDate=this.dateFormatter.parse(h.endDate))}r.push({axisRanges:t.yAxes[n].axisRanges,index:n}),delete t.yAxes[n].axisRanges}}else throw Error("[XYChart error] No type set for yAxes["+n+"].");if(b(t.series)&&Wt(t.series))for(var n=0,a=t.series.length;n<a;n++)t.series[n].type=t.series[n].type||"LineSeries";if(b(t.cursor)&&!b(t.cursor.type)&&(t.cursor.type="XYCursor"),b(t.scrollbarX)&&!b(t.scrollbarX.type)&&(t.scrollbarX.type="Scrollbar"),b(t.scrollbarY)&&!b(t.scrollbarY.type)&&(t.scrollbarY.type="Scrollbar"),s.prototype.processConfig.call(this,t),r.length)for(var n=0,a=r.length;n<a;n++)this.yAxes.getIndex(r[n].index).config={axisRanges:r[n].axisRanges};if(e.length)for(var n=0,a=e.length;n<a;n++)this.xAxes.getIndex(e[n].index).config={axisRanges:e[n].axisRanges}}},i.prototype.configOrder=function(t,e){return t==e?0:t=="scrollbarX"?1:e=="scrollbarX"?-1:t=="scrollbarY"?1:e=="scrollbarY"?-1:t=="cursor"?1:e=="cursor"?-1:t=="series"?1:e=="series"?-1:s.prototype.configOrder.call(this,t,e)},i.prototype.createSeries=function(){return new ni},Object.defineProperty(i.prototype,"zoomOutButton",{get:function(){return this._zoomOutButton},set:function(t){var e=this;this._zoomOutButton=t,t&&t.events.on("hit",function(){e.zoomAxes(e.xAxes,{start:0,end:1}),e.zoomAxes(e.yAxes,{start:0,end:1})},void 0,!1)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){var e=this;t.xAxes.each(function(r){var n=e.xAxes.push(r.clone());n.chart=e,n.renderer.chart=e}),t.yAxes.each(function(r){var n=e.yAxes.push(r.clone());n.renderer.chart=e,n.chart=e}),s.prototype.copyFrom.call(this,t),t.cursor&&(this.cursor=t.cursor.clone()),t.scrollbarX&&(this.scrollbarX=t.scrollbarX.clone()),t.scrollbarY&&(this.scrollbarY=t.scrollbarY.clone())},i.prototype.disposeData=function(){s.prototype.disposeData.call(this);var t=this.scrollbarX;t&&t instanceof Ee&&t.scrollbarChart.disposeData();var e=this.scrollbarY;e&&e instanceof Ee&&e.scrollbarChart.disposeData(),this.xAxes.each(function(r){r instanceof St&&r.disposeData()}),this.yAxes.each(function(r){r instanceof St&&r.disposeData()})},i.prototype.addData=function(t,e){this.scrollbarX instanceof Ee&&this.addScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof Ee&&this.addScrollbarData(this.scrollbarY,e),s.prototype.addData.call(this,t,e)},i.prototype.addScrollbarData=function(t,e){var r=t.scrollbarChart;r._parseDataFrom=r.data.length,r.invalidateData()},i.prototype.removeScrollbarData=function(t,e){var r=t.scrollbarChart;if(v(e)){for(;e>0;){var n=this.dataItems.getIndex(0);n&&r.dataItems.remove(n),r.dataUsers.each(function(a){var o=a.dataItems.getIndex(0);o&&a.dataItems.remove(o)}),r._parseDataFrom--,e--}
172r.invalidateData()}},i.prototype.removeData=function(t){this.scrollbarX instanceof Ee&&this.removeScrollbarData(this.scrollbarX,t),this.scrollbarY instanceof Ee&&this.removeScrollbarData(this.scrollbarY,t),s.prototype.removeData.call(this,t)},i.prototype.setTapToActivate=function(t){s.prototype.setTapToActivate.call(this,t),this.cursor&&(this.cursor.interactions.isTouchProtected=t,this.plotContainer.interactions.isTouchProtected=t)},i.prototype.handleTapToActivate=function(){s.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},i.prototype.handleTapToActivateDeactivation=function(){s.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},i}(ws);_.registeredClasses.XYChart=Le;Nt.push({relevant:Kt.maybeXS,state:function(s,i){if(s instanceof Le&&s.scrollbarX){var t=s.states.create(i),e=s.scrollbarX.states.create(i);return e.properties.disabled=!0,t}return null}});Nt.push({relevant:Kt.maybeXS,state:function(s,i){if(s instanceof Le&&s.scrollbarY){var t=s.states.create(i),e=s.scrollbarY.states.create(i);return e.properties.disabled=!0,t}return null}});var ks=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="LineSeriesSegment",t.isMeasured=!1,t.interactionsEnabled=!1,t.layout="none";var e=t.createChild(Z);t.fillSprite=e,e.shouldClone=!1,e.setElement(t.paper.add("path")),e.isMeasured=!1,t._disposers.push(e);var r=t.createChild(Z);return t.strokeSprite=r,r.shouldClone=!1,r.fill=H(),r.setElement(t.paper.add("path")),r.isMeasured=!1,t._disposers.push(r),t}return i.prototype.drawSegment=function(t,e,r,n){if(!this.disabled)if(t.length>0&&e.length>0&&v(t[0].x)&&v(t[0].y)){var a=E({x:t[0].x-.2,y:t[0].y-.2})+E(t[0]),o=this.series;o.smoothing=="bezier"?a+=new Xe(r,n).smooth(t):o.smoothing=="monotoneX"?a+=new Pa({closed:!1}).smooth(t):o.smoothing=="monotoneY"&&(a+=new Ca({closed:!1}
172).smooth(t)),this.strokeOpacity==0||this.strokeSprite.strokeOpacity==0||(this.strokeSprite.path=a),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&v(e[0].x)&&v(e[0].y)&&(a+=V(e[0]),o.smoothing=="bezier"?a+=new Xe(r,n).smooth(e):o.smoothing=="monotoneX"?a+=new Pa({closed:!1}).smooth(e):o.smoothing=="monotoneY"&&(a+=new Ca({closed:!1}).smooth(e)),a+=V(t[0]),a+=At(),this.fillSprite.path=a)}else this.fillSprite.path="",this.strokeSprite.path=""},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t);var e=this.strokeSprite;kt(t,e.properties,Ot),e.events.copyFrom(t.strokeSprite.events),e.fillOpacity=0;var r=this.fillSprite;kt(t,r.properties,Ot),r.events.copyFrom(t.fillSprite.events),r.strokeOpacity=0},i}(N);_.registeredClasses.LineSeriesSegment=ks;var Pp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="DurationAxisDataItem",t.applyTheme(),t}return i}(hn),es=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._baseUnit="second",t.className="DurationAxis",t.setPropertyValue("maxZoomFactor",1e6),t.applyTheme(),t}return i.prototype.formatLabel=function(t,e){return this.durationFormatter.format(t,e||this.axisDurationFormat)},i.prototype.adjustMinMax=function(t,e,r,n,a){var o,l,h,u=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),u=="millisecond"||u=="second"||u=="minute"||u=="hour"){n<=1&&(n=1),n=Math.round(n);var p=t,d=e;r===0&&(r=Math.abs(e));var f=r/n,c=[60,30,20,15,10,2,1],y=1;u=="hour"&&(c=[24,12,6,4,2,1]);try{for(var g=Sr(c),m=g.next();!m.done;m=g.next()){var x=m.value;if(r/x>n){y=x;break}}}catch(D){o={error:D}}finally{try{m&&!m.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}var P=Math.ceil((e-t)/y/n),S=Math.log(Math.abs(P))*Math.LOG10E,C=Math.pow(10,Math.floor(S))/10,O=P/C,T=ah(c,O);P=T*C,f=y*P,this.durationFormatter.getValueUnit(f,this.baseUnit),t=Math.floor(t/f)*f,e=Math.ceil(e/f)*f,a&&(t-=f,t<0&&p>=0&&(t=0),e+=f,e>0&&d<=0&&(e=0)),h={min:t,max:e,step:f}}else h=s.prototype.adjustMinMax.call(this,t,e,r,n,a);return this.axisDurationFormat=this.durationFormatter.getFormat(h.step,h.max,this.baseUnit),h},Object.defineProperty(i.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(t){this._tooltipDurationFormat=t},enumerable:!0,configurable:!0}),i.prototype.getTooltipText=function(t){var e=F(this.positionToValue(t),this._stepDecimalPlaces),r=this.formatLabel(e,this.tooltipDurationFormat);return this._adapterO?this._adapterO.apply("getTooltipText",r):r},Object.defineProperty(i.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit!=t&&(this._baseUnit=t,this.durationFormatter.baseUnit=t,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.baseUnit=t.baseUnit},i}($);_.registeredClasses.DurationAxis=es;_.registeredClasses.DurationAxisDataItem=Pp;var pn=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="LineSeriesDataItem",t}return i}(un),er=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.minDistance=.5,t.segments=new Ct(t.createSegment()),t.segments.template.applyOnClones=!0,t._disposers.push(new ft(t.segments)),t._disposers.push(t.segments.template),t._segmentsIterator=new cs(t.segments,function(){return t.segments.create()}),t._segmentsIterator.createNewItems=!0,t.className="LineSeries",t.strokeOpacity=1,t.fillOpacity=0,t.connect=!0,t.tensionX=1,t.tensionY=1,t.autoGapCount=1.1,t.smoothing="bezier",t.segmentsContainer=t.mainContainer.createChild(N),t.segmentsContainer.isMeasured=!1,t.bulletsContainer.toFront(),t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},i.prototype.createSegment=function(){return new ks},i.prototype.createDataItem=function(){return new pn},i.prototype.setInitialWorkingValues=function(t){var e=this._yAxis.get(),r=this._xAxis.get();if(this.appeared&&this.visible){var n=this.dataItems.getIndex(t.index-1);if(t.component=this,this.baseAxis==r&&e instanceof $){var a=e.minZoomed;if(n&&(a=n.values.valueY.workingValue),t.setWorkingValue("valueY",a,0),t.setWorkingValue("valueY",t.values.valueY.value),r instanceof mt)t.setWorkingLocation("dateX",t.locations.dateX-1,0),t.setWorkingLocation("dateX",t.locations.dateX);else if(r instanceof es&&n){var o=t.valueX;t.setWorkingValue("valueX",n.valueX,0),t.setWorkingValue("valueX",o)}}if(this.baseAxis==e&&r instanceof $){var l=r.minZoomed;if(n&&(l=n.values.valueX.workingValue),t.setWorkingValue("valueX",l,0),t.setWorkingValue("valueX",t.values.valueX.value),e instanceof mt)t.setWorkingLocation("dateY",t.locations.dateX-1,0),t.setWorkingLocation("dateY",t.locations.dateY);else if(e instanceof es&&n){var o=t.valueY;t.setWorkingValue("valueY",n.valueY,0),t.setWorkingValue("valueY",o)}}}else this.baseAxis==r&&e instanceof $&&(r instanceof mt&&t.setWorkingLocation("dateX",t.locations.dateX),r instanceof St&&t.setWorkingLocation("categoryX",t.locations.categoryX)),this.baseAxis==e&&r instanceof $&&(e instanceof mt&&t.setWorkingLocation("dateY",t.locations.dateY),e instanceof St&&t.setWorkingLocation("categoryY",t.locations.categoryY))},i.prototype.updateLegendValue=function(t,e){s.prototype.updateLegendValue.call(this,t,e),t&&t.segment&&(this.tooltipColorSource=t.segment)},i.prototype.validate=function(){var t=this;s.prototype.validate.call(this),this.xAxis&&this.yAxis&&(this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),A(this.axisRanges.iterator(),function(e){t.openSegmentWrapper(t._adjustedStartIndex,e)}),A(this._segmentsIterator.iterator(),function(e){e.__disabled=!0}))},i.prototype.sliceData=function(){for(var t=this.startIndex,e=this.endIndex,r=this.startIndex-1;r>=0;r--){var n=this.dataItems.getIndex(r);if(n&&n.hasValue(this._xValueFields)&&n.hasValue(this._yValueFields)){t=r;break}}this._adjustedStartIndex=this.findAdjustedIndex(t,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]);for(var r=this.endIndex,a=this.dataItems.length;r<a;r++){var n=this.dataItems.getIndex(r);if(n&&n.hasValue(this._xValueFields)&&n.hasValue(this._yValueFields)){e=r+1;break}}this._workingStartIndex=t,this._workingEndIndex=e},i.prototype.findAdjustedIndex=function(t,e){var r=this,n=this.propertyFields,a=t;
172return L(e,function(o){if(b(n[o]))for(var l=a;l>=0;l--){var h=r.dataItems.getIndex(l);if(h&&b(h.properties[o])){t>l&&(t=l);break}}}),t},i.prototype.openSegmentWrapper=function(t,e){var r={index:t,axisRange:e};do r=this.openSegment(r.index,r.axisRange);while(r)},i.prototype.getSegment=function(){var t=this._segmentsIterator.getFirst();return t.series=this,t.isDisposed()?(this.segments.removeValue(t),this.getSegment()):t},i.prototype.openSegment=function(t,e){var r=!1,n=[];t=Math.min(t,this.dataItems.length);var a=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var o,l=!1,h=this.getSegment();h.strokeDasharray=void 0,h.__disabled=!1,e?(h.parent=e.contents,kt(e.contents,h,Ot)):(kt(this,h,Ot),h.filters.clear(),h.parent=this.segmentsContainer),this.group.node.removeAttribute("fill");for(var u=this.connect,p=!1,d=t;d<a;d++){var f=this.dataItems.getIndex(d);if(f.segment=h,f.hasProperties&&(d==t?this.updateSegmentProperties(f.properties,h):l=this.updateSegmentProperties(f.properties,h,!0)),f.hasValue(this._xValueFields)&&f.hasValue(this._yValueFields))this.addPoints(n,f,this.xField,this.yField),p=!0;else{if(d==t)continue;if(!u&&p){o=d;break}}if(o=d,this.baseAxis instanceof mt){var c=this.dataItems.getIndex(d+1);if(c&&this.baseAxis.makeGap(c,f)){r=!0;break}}if(l)break}return this.closeSegment(h,n,t,o,e,r)},i.prototype.addPoints=function(t,e,r,n,a){var o=this.getPoint(e,r,n,e.workingLocations[r],e.workingLocations[n]);a||(e.point=o),t.push(o)},i.prototype.closeSegment=function(t,e,r,n,a,o){var l=[];if(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)for(var h=n;h>=r;h--){var u=this.dataItems.getIndex(h);u.hasValue(this._xValueFields)&&u.hasValue(this._yValueFields)&&this.addPoints(l,u,this.xOpenField,this.yOpenField,!0)}else{var p=this.baseAxis,d=e.length,f=this.xAxis,c=this.yAxis;d>0&&(p==f?(l.push({x:e[d-1].x,y:c.basePoint.y}),l.push({x:e[0].x,y:c.basePoint.y})):(l.push({x:f.basePoint.x,y:e[d-1].y}),l.push({x:f.basePoint.x,y:e[0].y})))}return this.drawSegment(t,e,l),o&&n++,n<this._workingEndIndex-1?{index:n,axisRange:a}:null},i.prototype.drawSegment=function(t,e,r){t.drawSegment(e,r,this.tensionX,this.tensionY)},i.prototype.updateSegmentProperties=function(t,e,r){var n=!1;return U(t,function(a,o){if(b(o)){var l=e[a],h=void 0;l&&(l.toString?h=l.toString():h=l);var u=void 0;o&&(o.toString?u=o.toString():u=o),l==o||h!=null&&u!=null&&h==u||(r||(e[a]=o),n=!0)}}),n},Object.defineProperty(i.prototype,"connect",{get:function(){return this.getPropertyValue("connect")}
172,set:function(t){this.setPropertyValue("connect",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(t){var e=this,r=t.pixelWidth,n=t.pixelHeight;t.disposeChildren();var a=t.createChild(ve);if(a.shouldClone=!1,kt(this,a,Ot),a.x2=r,a.y=n/2,a.y2=1e-5,a.visible=!0,this.fillOpacity>0){var o=t.createChild(Qr);kt(this,o,Ot),o.width=r,o.height=n,o.y=0,o.strokeOpacity=0,o.visible=!0,a.y=0}var l=t.dataItem;l.color=this.stroke,l.colorOrig=this.fill,he(this.bullets.iterator(),function(h){if(h instanceof ke&&!h.copyToLegendMarker)return!1;var u=!1;if(h instanceof N&&A(h.children.iterator(),function(d){if(d instanceof te)return u=!0,!0}),!u){var p=h.clone();return p.parent=t,p.isMeasured=!0,p.tooltipText=void 0,p.x=r/2,e.fillOpacity>0?p.y=0:p.y=n/2,p.visible=!0,b(p.fill)||(p.fill=e.fill),b(p.stroke)||(p.stroke=e.stroke),!1}})},i.prototype.disposeData=function(){s.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(i.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(t){this.setPropertyValue("autoGapCount",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smoothing",{get:function(){return this.getPropertyValue("smoothing")},set:function(t){this.setPropertyValue("smoothing",t,!0)},enumerable:!0,configurable:!0}),i}(ni);_.registeredClasses.LineSeries=er;_.registeredClasses.LineSeriesDataItem=pn;var Mo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="RadarSeriesDataItem",t.setLocation("dateX",0,0),t.setLocation("dateY",0,0),t.setLocation("categoryX",0,0),t.setLocation("categoryY",0,0),t.applyTheme(),t}return i}(pn),jo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="RadarSeries",t.connectEnds=!0,t.applyTheme(),t}return i.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),s.prototype.validate.call(this)},i.prototype.createDataItem=function(){return new Mo},i.prototype.getPoint=function(t,e,r,n,a,o,l){o||(o="valueX"),l||(l="valueY");var h=this.yAxis.getX(t,r,a,l),u=this.yAxis.getY(t,r,a,l),p=at({x:h,y:u});p==0&&(p=1e-5);var d=this.xAxis.getAngle(t,e,n,o),f=this.chart.startAngle,c=this.chart.endAngle;if(!(d<f||d>c))return{x:p*j(d),y:p*M(d)}},i.prototype.addPoints=function(t,e,r,n,a){var o=this.getPoint(e,r,n,e.locations[r],e.locations[n]);o&&t.push(o)},i.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return _i(t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},i.prototype.drawSegment=function(t,e,r){var n=this.yAxis,a=n.renderer;this.connectEnds&&Math.abs(a.endAngle-a.startAngle)==360&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(e.push(e[0]),r.length>0&&r.unshift(r[r.length-1])),s.prototype.drawSegment.call(this,t,e,r)},Object.defineProperty(i.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(t){this.setPropertyValue("connectEnds",t,!0)},enumerable:!0,configurable:!0}),i.prototype.positionBulletReal=function(t,e,r){var n=this.xAxis,a=this.yAxis;(e<n.start||e>n.end||r<a.start||r>a.end)&&(t.visible=!1),t.moveTo(this.xAxis.renderer.positionToPoint(e,r))},i.prototype.setXAxis=function(t){s.prototype.setXAxis.call(this,t),this.updateRendererRefs()},i.prototype.setYAxis=function(t){s.prototype.setYAxis.call(this,t),this.updateRendererRefs()},i.prototype.updateRendererRefs=function(){var t=this.xAxis.renderer,e=this.yAxis.renderer;t.axisRendererY=e},i}(er);_.registeredClasses.RadarSeries=jo;_.registeredClasses.RadarSeriesDataItem=Mo;var oi=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Circle",t.element=t.paper.add("circle"),t.setPercentProperty("radius",I(100)),t.setPropertyValue("horizontalCenter","middle"),t.setPropertyValue("verticalCenter","middle"),t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")}
172,set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return bt(this.radius,et(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){var t=this.pixelRadius;this._bbox={x:-t,y:-t,width:t*2,height:t*2}},i}(Z);_.registeredClasses.Circle=oi;var Lo=function(s){w(i,s);function i(t){var e=s.call(this,t)||this;return e.className="AxisFillCircular",e.element=e.paper.add("path"),e.radius=I(100),e.applyTheme(),e}return i.prototype.draw=function(){if(s.prototype.draw.call(this),!(this.__disabled||this.disabled)&&this.axis){var t=this.axis.renderer;this.fillPath=t.getPositionRangePath(this.startPosition,this.endPosition,this.radius,b(this.innerRadius)?this.innerRadius:t.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),i}(Ss);_.registeredClasses.AxisFillCircular=Lo;var Eo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="GridCircular",t.pixelPerfect=!1,t.applyTheme(),t}return Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i}(Yi);_.registeredClasses.GridCircular=Eo;var dn=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.fdx=0,t.fdy=0,t.className="AxisLabelCircular",t.padding(0,0,0,0),t.location=.5,t.locationOnPath=.5,t.radius=0,t.isMeasured=!1,t.applyTheme(),t}return Object.defineProperty(i.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(t){if(this.setPropertyValue("relativeRotation",t,!0),!b(t)){this.rotation=void 0;var e=this.dataItem;e&&e.component&&e.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bent",{get:function(){return this.getPropertyValue("bent")},set:function(t){this.setPropertyValue("bent",t,!0),this.setPropertyValue("wrap",!1),this.setPropertyValue("horizontalCenter","none"),this.setPropertyValue("verticalCenter","none"),t?(this.setPropertyValue("dx",0),this.setPropertyValue("dy",0),this.setPropertyValue("x",0),this.setPropertyValue("y",0),this.setPropertyValue("rotation",0),this.fdx=0,this.fdy=0,this.textAlign="middle"):this.textPathElement&&(this.textPathElement.dispose(),this.textPathElement=void 0)},enumerable:!0,configurable:!0}),i.prototype.pixelRadius=function(t){var e=1;return this.inside&&(e=-1),bt(this.radius,t)*e},i.prototype.pixelRadiusY=function(t,e){var r=1;this.inside&&(r=-1);var n=this.radius;return v(n)?(n*=e/t,bt(n,t)*r):bt(n,e)*r},i.prototype.fixPosition=function(t,e,r,n,a){v(r)||(r=e),v(n)||(n=0),v(a)||(a=0);var o={x:e*j(t),y:r*M(t)};this.invalid&&this.validate();var l=!1,h=this.radius;(h instanceof Q&&h.value<0||h<0)&&(l=!0);var u=this.relativeRotation,p=this.pixelRadius(e);if(this.bent){var d={x:(e+p)*j(t+180),y:(r+p*r/e)*M(t+180)};this.path=E(d)+Lt(t+180,360,e+p,r+p*r/e),this.textPathElement&&this.textPathElement.attr({startOffset:this.locationOnPath*100+"%"});return}if(v(u)){this.horizontalCenter="none",this.verticalCenter="none",t=we(t,-180,180);var f=this.bbox.width,c=this.bbox.height,y=this.pixelPaddingBottom,g=this.pixelPaddingTop,m=this.pixelPaddingLeft,x=this.pixelPaddingRight;t>90||t<-90?u==-90&&(u=90,f=0):(u==-90&&(c=-c),u==90&&(u=-90,f=-m-x,c=-c-g-y)),this.rotation=u+t+90;var P=M(u)/2,S=j(u)/2,C=this.rotation;this.dx=c*P*M(C)-f*S*j(C),this.dy=-c*P*j(C)-f*S*M(C),this.inside?t>90||t<-90?p-=(y+g)*j(u)+(m+x)*M(u):p+=(y+this.bbox.height+g)*j(u)+(m+x+this.bbox.width)*M(u):p+=(c+y+g)*j(u)+(f+m+x)*M(u),o.x+=j(t)*p,o.y+=M(t)*p*r/e}else this.horizontalCenter="middle",this.verticalCenter="middle",l?(this.dx=0,this.dy=0,o.x=(e+p)*j(t),o.y=(r+p*r/e)*M(t)):(this.dy=this._measuredHeight/2*M(t),this.dx=this._measuredWidth/2*j(t),o.x+=j(t)*p,o.y+=M(t)*p*r/e);o.x+=n,o.y+=a,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(o)},i}(Os);_.registeredClasses.AxisLabelCircular=dn;var Ro=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.pixelRadiusReal=0,t.layout="none",t.className="AxisRendererCircular",t.isMeasured=!1,t.startAngle=-90,t.endAngle=270,t.useChartAngles=!0,t.radiu
172s=I(100),t.isMeasured=!1,t.grid.template.location=0,t.labels.template.location=0,t.labels.template.radius=15,t.ticks.template.location=0,t.ticks.template.pixelPerfect=!1,t.tooltipLocation=0,t.line.strokeOpacity=0,t.applyTheme(),t}return i.prototype.setAxis=function(t){var e=this;s.prototype.setAxis.call(this,t),t.isMeasured=!1;var r=t.tooltip;r.adapter.add("dx",function(n,a){var o=be({x:a.pixelX,y:a.pixelY},e);return e.pixelRadius*Math.cos(Math.atan2(o.y,o.x))-o.x}),r.adapter.add("dy",function(n,a){var o=be({x:a.pixelX,y:a.pixelY},e);return e.pixelRadius*Math.sin(Math.atan2(o.y,o.x))-o.y})},i.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),s.prototype.validate.call(this)},Object.defineProperty(i.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return Bt(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){var t=this.chart,e=this.getPropertyValue("innerRadius");if(t){if(!b(e))e=t.innerRadius,e instanceof Q&&t&&(e=I(e.value*t.innerRadiusModifyer*100));else if(e instanceof Q&&t){var r=t.mr,n=e.value;n=Math.max(r*n,r-Math.min(t.plotContainer.innerHeight,t.plotContainer.innerWidth))/r,e=I(n*100)}return e}},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(t){this.setPropertyValue("useChartAngles",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return Bt(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(t,e){v(e)||(e=1);var r=this.positionToCoordinate(t),n=this.startAngle+(this.endAngle-this.startAngle)*r/this.axisLength,a=this.pixelRadius,o=this.pixelInnerRadius;if(this.axisRendererY){var l=B(this.axisRendererY.positionToCoordinate(e),0,1/0);l==0&&(l=1e-6);var h={x:l*j(n),y:l*M(n)};return h}return{x:j(n)*o+(a-o)*j(n)*e,y:M(n)*o+(a-o)*M(n)*e}},i.prototype.positionToAngle=function(t){var e=this.axis,r=(this.endAngle-this.startAngle)/(e.end-e.start),n;return e.renderer.inversed?n=this.startAngle+(e.end-t)*r:n=this.startAngle+(t-e.start)*r,F(n,3)},i.prototype.angleToPosition=function(t){var e=this.axis,r=(this.endAngle-this.startAngle)/(e.end-e.start),n;return e.renderer.inversed?n=e.end-(t-this.startAngle)/r:n=(t-this.startAngle)/r+e.start,F(n,5)},i.prototype.updateAxisLine=function(){var t=this.pixelRadius,e=this.startAngle,r=this.endAngle,n=et(360,r-e);this.line.path=E({x:t*j(e),y:t*M(e)})+Lt(e,n,t,t)},i.prototype.updateGridElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e);if(v(n.x)&&v(n.y)&&t.element){var a=Be*Math.atan2(n.y,n.x),o=Bt(b(t.radius)?t.radius:I(100),this.pixelRadius),l=Bt(t.innerRadius,this.pixelRadius);t.zIndex=0;var h=Bt(v(l)?l:this.innerRadius,this.pixelRadiusReal,!0);v(h)||(h=0),t.path=E({x:h*j(a),y:h*M(a)})+V({x:o*j(a),y:o*M(a)})}this.toggleVisibility(t,e,0,1)},i.prototype.updateTickElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e);if(t.element){var a=this.pixelRadius,o=Be*Math.atan2(n.y,n.x),l=t.length;t.inside&&(l=-l),t.zIndex=1,t.path=E({x:a*j(o),y:a*M(o)})+V({x:(a+l)*j(o),y:(a+l)*M(o)})}this.toggleVisibility(t,e,0,1)},i.prototype.updateBullet=function(t,e,r){var n=.5;t instanceof tr&&(n=t.location),e=e+(r-e)*n;var a=this.positionToPoint(e),o=this.pixelRadius,l=Be*Math.atan2(a.y,a.x);a={x:o*j(l),y:o*M(l)},this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},i.prototype.updateLabelElement=function(t,e,r,n){b(n)||(n=t.location),e=e+(r-e)*n,t.fixPosition(this.positionToAngle(e),this.pixelRadius),t.zIndex=2,this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},i.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")}
172,set:function(t){this.setPropertyValue("startAngle",t)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i.prototype.getPositionRangePath=function(t,e,r,n,a){var o="";if(v(t)&&v(e)){b(r)||(r=this.radius),t=q(t,this.axis.start),e=et(e,this.axis.end),e<t&&(e=t);var l=Bt(r,this.pixelRadius),h=Bt(n,this.pixelRadius,!0),u=this.positionToAngle(t),p=this.positionToAngle(e),d=p-u;o=_i(u,d,l,h,l,a)}return o},i.prototype.createGrid=function(){return new Eo},i.prototype.createFill=function(t){return new Lo(t)},i.prototype.createLabel=function(){return new dn},i.prototype.pointToPosition=function(t){var e=we(Yt(t),this.startAngle,this.endAngle);return this.coordinateToPosition((e-this.startAngle)/360*this.axisLength)},i}(ln);_.registeredClasses.AxisRendererCircular=Ro;var wr=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="WavedCircle",t.element=t.paper.add("path"),t.waveLength=16,t.waveHeight=4,t.fill=void 0,t.fillOpacity=0,t.tension=.8,t.applyTheme(),t}return i.prototype.draw=function(){var t="",e=this.pixelRadius;if(e>0){var r=this.getPoints(e);t=E(r[0])+new Xe(this.tension,this.tension).smooth(r)}var n=this.pixelInnerRadius;if(n>0){var r=this.getPoints(n);r.reverse(),t+=E(r[0])+new Xe(this.tension,this.tension).smooth(r)}this.path=t},i.prototype.getPoints=function(t){for(var e=t*Math.PI*2,r=this.waveHeight/2,n=e/Math.round(e/this.waveLength),a=n/2,o=[],l=e/n,h=0;h<=l;h++){var u=h*n/e*360,p=(h*n+a)/e*360;o.push({x:(t-r)*j(u),y:(t-r)*M(u)}),o.push({x:(t+r)*j(p),y:(t+r)*M(p)})}return o.pop(),o},Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return bt(this.innerRadius,et(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),i}(oi);_.registeredClasses.WavedCircle=wr;var Bo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._chart=new Et,t.pixelRadiusReal=0,t.className="AxisRendererRadial",t.isMeasured=!1,t.startAngle=-90,t.endAngle=270,t.minGridDistance=30,t.gridType="circles",t.axisAngle=-90,t.isMeasured=!1,t.layout="none",t.radius=I(100),t.line.strokeOpacity=0,t.labels.template.horizontalCenter="middle",t._disposers.push(t._chart),t.applyTheme(),t}return i.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),s.prototype.validate.call(this)},Object.defineProperty(i.prototype,"axisLength",{get:function(){return this.pixelRadius-this.pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return Bt(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){var t=this.chart,e=this.getPropertyValue("innerRadius");if(t){if(!b(e))e=t.innerRadius,e instanceof Q&&t&&(e=I(e.value*t.innerRadiusModifyer*100));else if(e instanceof Q&&t){var r=t.mr,n=e.value;
172n=Math.max(r*n,r-Math.min(t.plotContainer.innerHeight,t.plotContainer.innerWidth))/r,e=I(n*100)}}return e},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return Bt(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(t,e){var r=B(this.positionToCoordinate(t),0,1/0);return{x:r*j(this.axisAngle),y:r*M(this.axisAngle)}},i.prototype.updateAxisLine=function(){this.line.path=E({x:this.pixelInnerRadius*j(this.axisAngle),y:this.pixelInnerRadius*M(this.axisAngle)})+V({x:this.pixelRadius*j(this.axisAngle),y:this.pixelRadius*M(this.axisAngle)});var t=this.axis.title;t.valign="none",t.horizontalCenter="middle",t.verticalCenter="bottom",t.y=-this.axisLength/2;var e=90;this.opposite?this.inside||(e=-90):this.inside&&(e=-90),t.rotation=e},i.prototype.updateGridElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e),a,o=at(n),l=this.startAngle,h=this.endAngle,u=this.chart;if(v(o)&&t.element&&u){var p=u.xAxes.getIndex(0),d=0,f=u.series.getIndex(0);if(f&&(d=f.dataItems.length),this.gridType=="polygons"&&d>0&&f&&p&&p instanceof St){var c=p.renderer.grid.template.location,y=p.getAngle(f.dataItems.getIndex(0),"categoryX",c);a=E({x:o*j(y),y:o*M(y)});for(var g=1;g<d;g++)y=p.getAngle(f.dataItems.getIndex(g),"categoryX",c),a+=V({x:o*j(y),y:o*M(y)});y=p.getAngle(f.dataItems.getIndex(d-1),"categoryX",p.renderer.cellEndLocation),a+=V({x:o*j(y),y:o*M(y)})}else a=E({x:o*j(l),y:o*M(l)})+Lt(l,h-l,o,o);t.path=a}this.toggleVisibility(t,e,0,1)},i.prototype.updateLabelElement=function(t,e,r,n){b(n)||(n=t.location),e=e+(r-e)*n;var a=this.positionToPoint(e);this.positionItem(t,a),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},i.prototype.updateBaseGridElement=function(){},i.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisAngle",{get:function(){return this.getPropertyValue("axisAngle")},set:function(t){this.setPropertyValue("axisAngle",Je(t)),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gridType",{get:function(){var t=this.chart.xAxes.getIndex(0);return t instanceof St?this.getPropertyValue("gridType"):"circles"},set:function(t){this.setPropertyValue("gridType",t,!0)},enumerable:!0,configurable:!0}),i.prototype.getPositionRangePath=function(t,e){var r=this.pixelInnerRadius,n=this.axisLength+r,a=B(this.positionToCoordinate(t),r,n),o=B(this.positionToCoordinate(e),r,n),l=this.startAngle,h=this.endAngle,u=h-l,p,d=this.chart,f=d.xAxes.getIndex(0),c=d.series.getIndex(0),y=0;if(c&&(y=c.dataItems.length),this.gridType=="polygons"&&y>0&&c&&f&&f instanceof St){var g=f.renderer.grid.template.location,m=f.getAngle(c.dataItems.getIndex(0),"categoryX",g);p=E({x:o*j(m),y:o*M(m)});for(var x=1;x<y;x++)m=f.getAngle(c.dataItems.getIndex(x),"categoryX",g),p+=V({x:o*j(m),y:o*M(m)});m=f.getAngle(c.dataItems.getIndex(y-1),"categoryX",f.renderer.cellEndLocation),p+=V({x:o*j(m),y:o*M(m)}),p+=E({x:a*j(m),y:a*M(m)});for(var x=y-1;x>=0;x--)m=f.getAngle(c.dataItems.getIndex(x),"categoryX",g),p+=V({x:a*j(m),y:a*M(m)})}else p=_i(l,u,o,a);return p},i.prototype.updateBreakElement=function(t){var e=t.startLine,r=t.endLine,n=t.fillShape,a=t.startPoint,o=t.endPoint;e.radius=Math.abs(a.y),r.radius=Math.abs(o.y),n.radius=Math.abs(o.y),n.innerRadius=Math.abs(a.y)},i.prototype.createBreakSprites=function(t){t.startLine=new wr,t.endLine=new wr,t.fillShape=new wr},i.prototype.updateTooltip=function(){var t=this.axis;if(t){var e=4e3,r=-4e3,n=-4e3,a=e*2,o=e*2,l=this.axisAngle;l<0&&(l+=360);var h="vertical";(l>45&&l<135||l>225&&l<315)&&(h="horizontal"),this.axis.updateTooltip(h,{x:r,y:n,width:a,height:o})}},i.prototype.updateTickElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e);if(t.element){var a=Je(this.axisAngle+90);a/90!=Math.round(a/90)?t.pixelPerfect=!1:t.pixelPerfect=!0;var o=-t.length;t.inside&&(o*=-1),t.path=E({x:0,y:0})+V({x:o*j(a),y:o*M(a)})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},i.prototype.updateBullet=function(t,e,r){var n=.5;t instanceof tr&&(n=t.location),e=e+(r-e)*n;var a=this.positionToPoint(e);this.positionItem(t,a),this.toggleVisibility(t,e,0,1)},i.prototype.positionToCoordinate=function(t){var e,r=this.axis,n=r.axisFullLength,a=this.pixelInnerRadius;return r.renderer.inversed?e=(r.end-t)*n+a:e=(t-r.start)*n+a,F(e,1)},i.prototype.pointToPosition=function(t){var e=at(t)-this.pixelInnerRadius;return this.coordinateToPosition(e)},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),i}(xe);_.registeredClasses.AxisRendererRadial=Bo;var Cp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="RadarChartDataItem",t.applyTheme(),t}return i}(Ts),Wo=function(s){w(i,s);function i(){var t=s.call(this)||this;t._axisRendererX=Ro,t._axisRendererY=Bo,t.innerRadiusModifyer=1,t.mr=1,t.className="RadarChart",t.startAngle=-90,t.endAngle=270,t.radiu
172s=I(80),t.innerRadius=0;var e=t.plotContainer.createChild(N);return e.shouldClone=!1,e.layout="absolute",e.align="center",e.valign="middle",t.seriesContainer.parent=e,t.radarContainer=e,t.bulletsContainer.parent=e,t.axisBulletsContainer=e,t._cursorContainer=e,t.chartContainer.events.on("maxsizechanged",t.invalidate,t,!1),t._bulletMask=e.createChild(oi),t._bulletMask.shouldClone=!1,t._bulletMask.element=t.paper.add("path"),t._bulletMask.opacity=0,t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},i.prototype.processAxis=function(t){s.prototype.processAxis.call(this,t);var e=t.renderer;e.gridContainer.parent=e,e.breakContainer.parent=e,t.parent=this.radarContainer,e.toBack()},i.prototype.handleXAxisRangeChange=function(){s.prototype.handleXAxisRangeChange.call(this),A(this.yAxes.iterator(),function(t){t.invalidate()})},i.prototype.handleYAxisRangeChange=function(){s.prototype.handleYAxisRangeChange.call(this),A(this.xAxes.iterator(),function(t){t.invalidate()})},i.prototype.processConfig=function(t){if(t&&(b(t.cursor)&&!b(t.cursor.type)&&(t.cursor.type="RadarCursor"),b(t.series)&&Wt(t.series)))for(var e=0,r=t.series.length;e<r;e++)t.series[e].type=t.series[e].type||"RadarSeries";s.prototype.processConfig.call(this,t)},i.prototype.beforeDraw=function(){s.prototype.beforeDraw.call(this);var t=this.plotContainer,e=De(this.startAngle,this.endAngle,1),r={x:0,y:0,width:0,height:0}
172,n=t.innerWidth/e.width,a=t.innerHeight/e.height,o=this.innerRadius;if(o instanceof Q){var l=o.value,h=Math.min(n,a);this.mr=h,l=Math.max(h*l,h-Math.min(t.innerHeight,t.innerWidth))/h,r=De(this.startAngle,this.endAngle,l),this.innerRadiusModifyer=l/o.value,o=I(l*100)}e=Gi([e,r]);var u=Math.min(t.innerWidth/e.width,t.innerHeight/e.height),p=Bt(this.radius,u)*2||0,d=p/2,f=this.startAngle,c=this.endAngle;this._pixelInnerRadius=Bt(o,d),this._bulletMask.path=_i(f,c-f,d,this._pixelInnerRadius),A(this.xAxes.iterator(),function(g){g.renderer.useChartAngles&&(g.renderer.startAngle=f,g.renderer.endAngle=c),g.width=p,g.height=p,g.renderer.pixelRadiusReal=d}),A(this.yAxes.iterator(),function(g){g.renderer.startAngle=f,g.renderer.endAngle=c,g.width=p,g.height=p,g.renderer.pixelRadiusReal=d});var y=this.cursor;y&&(y.width=p,y.height=p,y.startAngle=f,y.endAngle=c),this.radarContainer.definedBBox={x:d*e.x,y:d*e.y,width:d*e.width,height:d*e.height},this.radarContainer.validatePosition()},i.prototype.createSeries=function(){return new jo},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i.prototype.updateXAxis=function(t){t&&t.processRenderer()},i.prototype.updateYAxis=function(t){t&&t.processRenderer()},i}(Le);_.registeredClasses.RadarChart=Wo;var Ho=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Trapezoid",t.element=t.paper.add("path"),t.topSide=I(100),t.bottomSide=I(100),t.leftSide=I(100),t.rightSide=I(100),t.isMeasured=!1,t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.pixelWidth,e=this.pixelHeight,r=bt(this.topSide,t),n=bt(this.bottomSide,t),a=bt(this.leftSide,e),o=bt(this.rightSide,e),l=(t-r)/2,h=(e-a)/2,u=t-(t-r)/2,p=(e-o)/2,d=t-(t-n)/2,f=e-(e-o)/2,c=(t-n)/2,y=e-(e-a)/2,g="",m="",x="",P="";if(b(this.horizontalNeck)){var S=this.horizontalNeck.value;g=V({x:t*S,y:Math.max(h,p)}),x=V({x:t*S,y:Math.min(f,y)})}if(b(this.verticalNeck)){var C=this.verticalNeck.value;m=V({x:Math.min(u,d),y:e*C}),P=V({x:Math.max(l,c),y:e*C})}var O=E({x:l,y:h})+g+V({x:u,y:p})+m+V({x:d,y:f})+x+V({x:c,y})+P;this.path=O},Object.defineProperty(i.prototype,"topSide",{get:function(){return this.getPropertyValue("topSide")},set:function(t){this.setPercentProperty("topSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomSide",{get:function(){return this.getPropertyValue("bottomSide")},set:function(t){this.setPercentProperty("bottomSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"leftSide",{get:function(){return this.getPropertyValue("leftSide")},set:function(t){this.setPercentProperty("leftSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightSide",{get:function(){return this.getPropertyValue("rightSide")},set:function(t){this.setPercentProperty("rightSide",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalNeck",{get:function(){return this.getPropertyValue("horizontalNeck")},set:function(t){this.setPropertyValue("horizontalNeck",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalNeck",{get:function(){return this.getPropertyValue("verticalNeck")},set:function(t){this.setPropertyValue("verticalNeck",t,!0)},enumerable:!0,configurable:!0}),i}(Z);_.registeredClasses.Trapezoid=Ho;var No=function(s){w(i,s);function i(){var t=s.call(this)||this;t._axis=new Et,t.className="ClockHand";var e=new nt;
172t.fill=e.getFor("alternativeBackground"),t.stroke=t.fill;var r=new oi;r.radius=5,t.pin=r,t.isMeasured=!1,t.startWidth=5,t.endWidth=1,t.width=I(100),t.height=I(100),t.radius=I(100),t.innerRadius=I(0);var n=new Ho;return t.hand=n,t._disposers.push(t._axis),t.applyTheme(),t}return i.prototype.validate=function(){s.prototype.validate.call(this);var t=this.hand;t.width=this.pixelWidth;var e=Math.max(this.startWidth,this.endWidth);if(t.height=e,t.leftSide=I(this.startWidth/e*100),t.rightSide=I(this.endWidth/e*100),this.axis){var r=this.axis.renderer,n=Bt(this.innerRadius,r.pixelRadius),a=Bt(this.radius,r.pixelRadius);t.x=n,t.y=-e/2,t.width=a-n}},Object.defineProperty(i.prototype,"pin",{get:function(){return this._pin},set:function(t){this._pin&&this.removeDispose(this._pin),t&&(this._pin=t,t.parent=this,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hand",{get:function(){return this._hand},set:function(t){this._hand&&this.removeDispose(this._hand),t&&(this._hand=t,t.parent=this,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startWidth",{get:function(){return this.getPropertyValue("startWidth")},set:function(t){this.setPropertyValue("startWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endWidth",{get:function(){return this.getPropertyValue("endWidth")},set:function(t){this.setPropertyValue("endWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotationDirection",{get:function(){return this.getPropertyValue("rotationDirection")},set:function(t){this.setPropertyValue("rotationDirection",t)},enumerable:!0,configurable:!0}),i.prototype.showValue=function(t,e,r){if(this._value=t,t!=null&&(v(e)||(e=0),this.axis)){var n=this.axis.renderer,a=n.positionToAngle(this.axis.anyToPosition(t)),o=this.rotation;this.rotationDirection=="clockWise"&&a<o&&(this.rotation=o-360),this.rotationDirection=="counterClockWise"&&a>o&&(this.rotation=o+360),this.animate({property:"rotation",to:a},e,r)}},Object.defineProperty(i.prototype,"currentPosition",{get:function(){if(this.axis){var t=this.axis.renderer;return t.angleToPosition(this.rotation)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(t){this.showValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this.axis!=t&&this._axis.set(t,new Pt([t.events.on("datavalidated",this.updateValue,this,
172!1),t.events.on("datarangechanged",this.updateValue,this,!1),t.events.on("dataitemsvalidated",this.updateValue,this,!1),t.events.on("propertychanged",this.invalidate,this,!1)])),t){var e=t.chart;e&&(this.rotation=e.startAngle)}this.parent=t.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),i.prototype.updateValue=function(){this.value=this.value},i.prototype.processConfig=function(t){t&&b(t.axis)&&tt(t.axis)&&this.map.hasKey(t.axis)&&(t.axis=this.map.getKey(t.axis)),s.prototype.processConfig.call(this,t)},i}(N);_.registeredClasses.ClockHand=No;(function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="GaugeChartDataItem",t.applyTheme(),t}return i})(Cp);var wp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="GaugeChart",t.startAngle=180,t.endAngle=360,t.hands=new Ct(new No),t.hands.events.on("inserted",t.processHand,t,!1),t._disposers.push(new ft(t.hands)),t._disposers.push(t.hands.template),t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},i.prototype.processHand=function(t){var e=t.newValue;e.axis||(e.axis=this.xAxes.getIndex(0))},i.prototype.configOrder=function(t,e){return t==e?0:t=="hands"?1:e=="hands"?-1:s.prototype.configOrder.call(this,t,e)},i}(Wo);_.registeredClasses.GaugeChart=wp;var fn=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PercentSeriesDataItem",t.applyTheme(),t}return i.prototype.uidAttr=function(){return this.slice.uidAttr()},i.prototype.hide=function(t,e,r,n){return n||(n=["value"]),s.prototype.hide.call(this,t,e,0,n)},i.prototype.setVisibility=function(t,e){e||(t?this.setWorkingValue("value",this.values.value.value,0,0):this.setWorkingValue("value",0,0,0)),s.prototype.setVisibility.call(this,t,e)},i.prototype.show=function(t,e,r){return r||(r=["value"]),s.prototype.show.call(this,t,e,r)},Object.defineProperty(i.prototype,"category",{get:function(){return this.properties.category},set:function(t){this.setProperty("category",t)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(t){this.component.createLegendMarker(t,this)},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,t.label&&(t.label.dataItem=this),t.valueLabel&&(t.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tick",{get:function(){var t=this;if(!this._tick){var e=this.component.ticks.create();this._tick=e,this.addSprite(e),this._disposers.push(e),e.parent=this.component.ticksContainer,this._disposers.push(new lt(function(){t.component&&t.component.ticks.removeValue(e)})),e.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this.addSprite(e),this._label=e,this._disposers.push(e),e.parent=this.component.labelsContainer,this._disposers.push(new lt(function(){t.component&&t.component.labels.removeValue(e)})),e.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"slice",{get:function(){var t=this;if(!this._slice){var e=this.component,r=e.slices.create();this.addSprite(r),this._slice=r,this._disposers.push(r),r.parent=e.slicesContainer,this._disposers.push(new lt(function(){e.slices.removeValue(r)})),r.visible=this.visible,e.itemsFocusable()?(b(this.component.role)||(this.component.role="menu"),b(r.role)||(r.role="menuitem"),r.focusable=!0):(b(this.component.role)||(this.component.role="list"),b(r.role)||(r.role="listitem"),r.focusable=!1),r.focusable&&(r.events.on("focus",function(n){r.readerTitle=e.populateString(e.itemReaderText,t)},void 0,!1),r.events.on("blur",function(n){r.readerTitle=""},void 0,!1)),r.hoverable&&(r.events.on("over",function(n){r.readerTitle=e.populateString(e.itemReaderText,t)},void 0,!1),r.events.on("out",function(n){r.readerTitle=""},void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(t){this.setProperty("hiddenInLegend",t)},enumerable:!0,configurable:!0}),i}(nn),ir=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="PercentSeries",t._addAllDataItems=!1,t.colors=new $i,t.colors.step=1,t.isMeasured=!0,t.calculatePercent=!0;var e=t.createChild(N);e.shouldClone=!1,e.isMeasured=!1,t.slicesContainer=e;var r=t.createChild(N);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",t.ticksContainer=r;var n=t.createChild(N);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",t.labelsContainer=n,t.alignLabels=!1,t.bulletsContainer.toFront(),t.skipFocusThreshold=50;var a=t.defaultState;return a.transitionEasing=no,t.itemReaderText="{category}: {value.percent.formatNumber('#.#p')}",t.applyTheme(),t}
172return i.prototype.createSlice=function(){return new Z},i.prototype.createTick=function(){return new Qi},i.prototype.createLabel=function(){return new te},Object.defineProperty(i.prototype,"slices",{get:function(){if(!this._slices){var t=this.createSlice();t.applyOnClones=!0,this._disposers.push(t),this.initSlice(t),this._slices=new Ct(t),this._disposers.push(new ft(this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,this._disposers.push(t),this.initTick(t),this._ticks=new Ct(t),this._disposers.push(new ft(this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();t.applyOnClones=!0,this._disposers.push(t),this.initLabel(t),this._labels=new Ct(t),this._disposers.push(new ft(this._labels))}return this._labels},enumerable:!0,configurable:!0}),i.prototype.createDataItem=function(){return new fn},i.prototype.initSlice=function(t){},i.prototype.initLabel=function(t){t.text="{category}: {value.percent.formatNumber('#.0p')}",t.isMeasured=!1,t.padding(5,5,5,5)},i.prototype.initTick=function(t){},i.prototype.validateDataItems=function(){this.colors.reset(),this.patterns&&this.patterns.reset(),s.prototype.validateDataItems.call(this)},i.prototype.validateDataElement=function(t){var e=t.slice;e&&(e.fill==null?this.patterns?(b(e.stroke)||(e.stroke=this.colors.next()),e.fill=this.patterns.next(),b(e.fillOpacity)&&(e.fill.backgroundOpacity=e.fillOpacity),e.stroke instanceof it&&(e.fill.stroke=e.stroke,e.fill.fill=e.stroke)):e.fill=this.colors.next():this.colors.currentStep+=this.colors.step,e.stroke==null&&(e.stroke=e.fill)),s.prototype.validateDataElement.call(this,t),e&&t.bullets.each(function(r,n){n.fill==null&&(n.fill=e.fill),n.stroke==null&&(n.stroke=e.stroke)}),this.updateLegendValue(t)},i.prototype.validateData=function(){s.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},i.prototype.arrangeLabels=function(t){for(var e=0,r=t.length;e<r;e++){var n=t[e],a=n.label;if(a){a.invalid&&a.validate();var o=a.measuredHeight;a.visible||(o=0),a.pixelY-o/2<-this.maxHeight/2&&(a.y=-this.maxHeight/2+o/2);var l=this.getNextLabel(e+1,t),h=a.pixelY+o/2;if(l){l.invalid&&l.validate();var u=l.measuredHeight;l.visible||(u=0);var p=l.pixelY;p==null&&(p=0),p-u/2<h&&(l.y=h+u/2)}}}},i.prototype.arrangeLabels2=function(t){for(var e=this.maxHeight/2,r=t.length-1;r>=0;r--){var n=t[r],a=n.label;if(a){a.invalid&&a.validate();var o=a.measuredHeight;a.visible||(o=0),a.pixelY+o/2>e&&(a.y=e-o/2,e=a.y-o/2)}}},i.prototype.getNextLabel=function(t,e){if(e.length>=t){var r=e[t];if(r)return r.label?r.visible?r.label:this.getNextLabel(t+1,e):this.getNextLabel(t+1,e)}},Object.defineProperty(i.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(t,e){A(t.children.iterator(),function(r){var n=e.slice;r.defaultState.properties.fill=n.fill,r.defaultState.properties.stroke=n.stroke,r.defaultState.properties.fillOpacity=n.fillOpacity,r.defaultState.properties.strokeOpacity=n.strokeOpacity,r.fill=n.fill,r.stroke=n.stroke,r.fillOpacity=n.fillOpacity,r.strokeOpacity=n.strokeOpacity,r.fill==null&&(r.__disabled=!0);var a=t.dataItem;a.color=n.fill,a.colorOrig=n.fill,r.addDisposer(n.events.on("propertychanged",function(o){o.property=="fill"&&(r.__disabled=!1,r.isActive||(r.fill=n.fill),r.defaultState.properties.fill=n.fill,a.color=n.fill,a.colorOrig=n.fill),o.property=="stroke"&&(r.isActive||(r.stroke=n.stroke),r.defaultState.properties.stroke=n.stroke),o.property=="strokeOpacity"&&(r.isActive||(r.strokeOpacity=n.strokeOpacity),r.defaultState.properties.strokeOpacity=n.strokeOpacity)},void 0,!1))})},i.prototype.handleSliceScale=function(t){var e=this,r=t.target,n=r.dataItem;n&&n.bullets&&A(n.bullets.iterator(),function(a){var o=a[1];e.positionBullet(o)})},i.prototype.handleSliceMove=function(t){},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.slice
172s.template.copyFrom(t.slices.template),this.labels.template.copyFrom(t.labels.template),this.ticks.template.copyFrom(t.ticks.template),this.colors=t.colors.clone()},Object.defineProperty(i.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(t){this.setAlignLabels(t)},enumerable:!0,configurable:!0}),i.prototype.setAlignLabels=function(t){this.setPropertyValue("alignLabels",t,!0)},Object.defineProperty(i.prototype,"ignoreZeroValues",{get:function(){return this.getPropertyValue("ignoreZeroValues")},set:function(t){this.setPropertyValue("ignoreZeroValues",t,!0)},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(t){if(t){var e=t.legendDataItem,r=t.legendSettings;e&&r&&r&&(r.labelText&&(e.label.text=r.labelText),r.itemLabelText&&(e.label.text=r.itemLabelText),r.valueText&&(e.valueLabel.text=r.valueText),r.itemValueText&&(e.valueLabel.text=r.itemValueText))}},i}(sn);_.registeredClasses.PercentSeries=ir;_.registeredClasses.PercentSeriesDataItem=fn;Nt.push({relevant:Kt.maybeXS,state:function(s,i){if(s instanceof ir){var t=s.states.create(i),e=s.labels.template.states.create(i);e.properties.disabled=!0;var r=s.ticks.template.states.create(i);return r.properties.disabled=!0,t}return null}});var Vs=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PercentChartDataItem",t.applyTheme(),t}return i}(wo),As=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PercentChart",t.align="none",t.valign="none",t.chartContainer.minHeight=50,t.chartContainer.minWidth=50,t.applyTheme(),t}return i.prototype.validateData=function(){s.prototype.validateData.call(this),this.feedLegend()},i.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];A(this.series.iterator(),function(r){r.hiddenInLegend||A(r.dataItems.iterator(),function(n){n.hiddenInLegend||(e.push(n),n.legendSettings||(n.legendSettings=r.legendSettings))})}),t.data=e,t.dataFields.name="category"}},i.prototype.createSeries=function(){return new ir},i.prototype.setLegend=function(t){s.prototype.setLegend.call(this,t),t&&(t.labels.template.text="{category}",t.valueLabels.template.text="{value.percent.formatNumber('#.0p')}",t.itemContainers.template.events.on("over",function(e){var r=e.target.dataItem.dataContext;if(r.visible&&!r.isHiding){var n=r.slice;n.dispatchImmediately("over"),n.isHover=!0,n.interactions.isRealHover=!0}}),t.itemContainers.template.events.on("out",function(e){var r=e.target.dataItem.dataContext,n=r.slice;n.dispatchImmediately("out"),n.isHover=!1}))},i}(ws);_.registeredClasses.PercentChart=As;_.registeredClasses.PercentChartDataItem=Vs;var si=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Slice",t.setPropertyValue("cornerRadius",0),t.setPropertyValue("startAngle",0),t.setPercentProperty("innerRadius",0),t.setPercentProperty("radius",0),t.setPropertyValue("arc",0),t.setPropertyValue("shiftRadius",0),t.strokeOpacity=1,t.setPropertyValue("layout","none"),t.slice=t.createChild(Z),t.slice.isMeasured=!1,t._disposers.push(t.slice),t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.radiusY;this.radius>0&&t==0&&(t=.01),this.slice.path=_i(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,t,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof Ne&&this.updateGradient(this.realFill),this.realStroke instanceof Ne&&this.updateGradient(this.realStroke)},i.prototype.updateGradient=function(t){t.element.attr({gradientUnits:"userSpaceOnUse"}),t.element.attr({r:this.radius}),t.cx=0,t.cy=0,t.element.attr({radius:this.radius})},Object.defineProperty(i.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;if(this.isMeasured){var t=De(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),e=De(this.startAngle,this.startAngle+this.arc,this.radius);return Gi([t,e])}else return{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")}
172,set:function(t){this.setPropertyValue("startAngle",Je(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){v(t)||(t=0),this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){var t=this.getPropertyValue("radius");return v(t)||(t=0),t},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return v(t)||(t=this.radius),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return bt(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(t){this.setPropertyValue("innerCornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(t){this.setPropertyValue("shiftRadius",t),t=this.getPropertyValue("shiftRadius"),this.dx=t*this.radius*this.ix,this.dy=t*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ix",{get:function(){return j(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iy",{get:function(){return M(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),i.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");if(v(t))return t;var e=.5;t instanceof Q&&(e=t.value);var r=bt(this.innerRadius,this.radius);return this.ix*(r+(this.radius-r)*e)},i.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");if(v(t))return t;var e=.5;t instanceof Q&&(e=t.value);var r=bt(this.innerRadius,this.radius);return this.iy*(r+(this.radius-r)*e)+this.slice.dy},i}(N);_.registeredClasses.Slice=si;var zo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._label=new Et,t._slice=new Et,t.className="PieTick",t.element=t.paper.add("polyline"),t._disposers.push(t._label),t._disposers.push(t._slice),t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.slice,e=this.label,r=t.dataItem.component;if(t&&t.radius>0&&e&&e.text){var n=t.dx+t.slice.dx+t.pixelX+t.ix*t.radius*t.scale,a=t.dy+t.slice.dy+t.pixelY+t.iy*t.radiusY*t.scale,o=void 0,l=void 0,h=void 0,u=void 0;if(r.alignLabels)o=e.pixelX-this.length,l=e.pixelY,h=e.pixelX,u=l,e.horizontalCenter=="right"&&(o+=2*this.length,h=o-this.length);else{var p=e.pixelRadius(t.radius);o=n+p*t.ix,l=a+p*t.iy,h=o,u=l}this.element.attr({points:[n,a,o,l,h,u]})}},Object.defineProperty(i.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new Pt([t.events.on("transformed",this.invalidate,this),t.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label.get()},set:function(t){this._label.set(t,t.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),i}(Qi);_.registeredClasses.PieTick=zo;var Fs=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PieSeriesDataItem",t.values.radiusValue={},t.applyTheme(),t}return Object.defineProperty(i.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(t){this.setValue("radiusValue",t)},enumerable:!0,configurable:!0}),i.prototype.hide=function(t,e,r,n){return s.prototype.hide.call(this,t,e,0,["value","radiusValue"])},i.prototype.show=function(t,e,r){return s.prototype.show.call(this,t,e,["value","radiusValue"])},i}(fn),Is=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PieSeries",t.alignLabels=!0,t.layout="none",t.labels.template.radius=I(5),t.addDisposer(t.labels.template.events.on("enabled",t.invalidate,t,!1)),t.applyTheme(),t}
172return i.prototype.createSlice=function(){return new si},i.prototype.createTick=function(){return new zo},i.prototype.createLabel=function(){return new dn},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},i.prototype.createDataItem=function(){return new Fs},i.prototype.initSlice=function(t){t.isMeasured=!1,t.defaultState.properties.scale=1,t.observe("scale",this.handleSliceScale,this),t.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),t.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var e=t.states.create("hover");e.properties.scale=1.05;var r=t.defaultState;r.properties.shiftRadius=0,t.togglable=!0,t.events.on("toggled",function(a){a.target.hideTooltip(),a.target.interactions.lastHitPointer&&a.target.interactions.lastHitPointer.touch&&!a.target.isActive&&(a.target.isHover=!1)});var n=t.states.create("active");n.properties.shiftRadius=.1},i.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=De(this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var t=this.startIndex;t<this.endIndex;t++){var e=this.dataItems.getIndex(t),r=e.values.radiusValue.percent;r>this._maxRadiusPercent&&(this._maxRadiusPercent=r)}s.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort(function(n,a){var o=(n.slice.middleAngle+360)%360,l=(a.slice.middleAngle+360)%360;return o>270&&(o-=360),l>270&&(l-=360),o<l?-1:o>l?1:0}),this._leftItems.sort(function(n,a){var o=(n.slice.middleAngle+360)%360,l=(a.slice.middleAngle+360)%360;return o<l?1:o>l?-1:0}),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},i.prototype.validateDataElement=function(t){if(this.pixelRadius>0){this.ignoreZeroValues&&(t.value==0||t.value==null)?t.__disabled=!0:t.__disabled=!1;var e=t.slice;if(e.radius=this.pixelRadius,v(t.radiusValue)&&(e.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*t.values.radiusValue.percent/this._maxRadiusPercent),e.innerRadius instanceof Q||(e.innerRadius=this.pixelInnerRadius),e.startAngle=this._currentStartAngle,e.arc=Math.abs(t.values.value.percent)*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var r=t.label,n=t.tick;n.slice=e,n.label=r;var a=(e.middleAngle+360)%360,o=void 0;if(this.alignLabels){var l=r.pixelRadius(e.radius),h=n.length+l;r.dx=0,r.dy=0,r.verticalCenter="middle";var u=this._arcRect;a>270||a<=90?(h+=(u.width+u.x)*this.pixelRadius,r.horizontalCenter="left",this._rightItems.push(t)):(h-=u.x*this.pixelRadius,r.horizontalCenter="right",this._leftItems.push(t),h*=-1);var p=e.radius+n.length+l;o={x:h,y:e.iy*p},r.moveTo(o)}else{var d=e.depth;v(d)||(d=0),r.fixPosition(e.middleAngle,e.radius,e.radiusY,0,-d)}}this._currentStartAngle+=e.arc,s.prototype.validateDataElement.call(this,t)}},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(t){this._pixelRadius!=t&&(this._pixelRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(t){this._pixelInnerRadius!=t&&(this._pixelInnerRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startAngle",{get:function(){var t=this.getPropertyValue("startAngle");return v(t)?t:this._startAngleInternal},set:function(t){this.setPropertyValue("startAngle",Je(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){var t=this.getPropertyValue("endAngle");return v(t)?t:this._endAngleInternal},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(t){s.prototype.positionBullet.call(this,t);var e=t.dataItem,r=e.slice,n=t.locationX;v(n)||(n=.5);var a=t.locationY;
172v(a)||(a=1);var o=r.startAngle+r.arc*n;t.x=a*r.radius*j(o),t.y=a*r.radiusY*M(o)},i.prototype.handleSliceMove=function(t){if(!this.alignLabels){var e=t.target,r=e.dataItem;if(r){var n=r.label;n&&(n.dx=n.fdx+e.dx+e.pixelX,n.dy=n.fdy+e.dy+e.pixelY)}}},Object.defineProperty(i.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var t=this.chart;return t?De(t.startAngle,t.endAngle,this.pixelRadius):De(this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),i}(ir);_.registeredClasses.PieSeries=Is;_.registeredClasses.PieSeriesDataItem=Fs;var Xo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PieChartDataItem",t.applyTheme(),t}return i}(Vs),Yo=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="PieChart",t.innerRadius=0,t.radius=I(80),t.align="none",t.valign="none",t.startAngle=-90,t.endAngle=270;var e=t.seriesContainer;return e.isMeasured=!0,e.valign="middle",e.align="center",e.layout="absolute",e.width=void 0,e.height=void 0,t.chartContainer.minHeight=50,t.chartContainer.minWidth=50,t.chartContainer.events.on("maxsizechanged",t.updateRadius,t,!1),t._disposers.push(t.seriesContainer.events.on("positionchanged",function(){t.bulletsContainer.x=t.seriesContainer.x,t.bulletsContainer.y=t.seriesContainer.y})),t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},i.prototype.validateLayout=function(){s.prototype.validateLayout.call(this),this.updateRadius()},i.prototype.handleSeriesAdded=function(t){s.prototype.handleSeriesAdded.call(this,t),this._chartPixelRadius=void 0,this.updateSeriesAngles()},i.prototype.updateSeriesAngles=function(){var t=this;this.series.each(function(e){e._startAngleInternal=t.startAngle,e._endAngleInternal=t.endAngle})},i.prototype.updateRadius=function(){var t=this.chartContainer,e=De(this.startAngle,this.endAngle,1),r={x:0,y:0,width:0,height:0},n=this.innerRadius;n instanceof Q&&(r=De(this.startAngle,this.endAngle,n.value)),e=Gi([e,r]);var a=Math.min(t.innerWidth/e.width,t.innerHeight/e.height);v(a)||(a=0);var o=Bt(this.radius,a),l=Bt(this.innerRadius,a),h=(o-l)/this.series.length;(o!=this._chartPixelRadius||l!=this._chartPixelInnerRadius)&&(this._chartPixelRadius=o,this._chartPixelInnerRadius=l,A(ti(this.series.iterator()),function(u){var p=u[0],d=u[1],f=l+Bt(d.radius,o-l),c=l+Bt(d.innerRadius,o-l);v(f)||(f=l+h*(p+1)),v(c)||(c=l+h*p),d.pixelRadius=f,d.pixelInnerRadius=c}),this.seriesContainer.definedBBox={x:o*e.x,y:o*e.y,width:o*e.width,height:o*e.height},this.seriesContainer.invalidateLayout())},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new Is},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),i}(As);_.registeredClasses.PieChart=Yo;_.registeredClasses.PieChartDataItem=Xo;var Ms=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="LightenFilter",t.feColorMatrix=t.paper.add("feColorMatrix"),t.feColorMatrix.attr({type:"matrix"}),t.filterPrimitives.push(t.feColorMatrix),t.lightness=0,t.applyTheme(),t}return Object.defineProperty(i.prototype,"lightness",{get:function(){return this.properties.lightness},set:function(t){this.properties.lightness=t;var e=t+1;this.feColorMatrix.attr({values:e+" 0 0 0 0 0 "+e+" 0 0 0 0 0 "+e+" 0 0 0 0 0 1 0"})},enumerable:!0,configurable:!0}),i}(Pi);_.registeredClasses.LightenFilter=Ms;var Sp=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="Slice3D",t.layout="none";var e=t.createChild(Z);t.edge=e,e.shouldClone=!1,e.isMeasured=!1,e.toBack(),t.angle=30,t.depth=20;var r=t.createChild(Z);t.sideA=r,r.shouldClone=!1,r.isMeasured=!1;var n=t.createChild(Z);return t.sideB=n,n.shouldClone=!1,n.isMeasured=!1,t.applyTheme(),t}return i.prototype.setFill=function(t){s.prototype.setFill.call(this,t);var e;if(t instanceof it)e=t.hex;else if(t instanceof ce||t instanceof Ne)e=t.stops.getIndex(0).color.hex;else{var r=new Ms;r.lightness=-.25,this.edge.filters.push(r),this.sideA.filters.push(r.clone()),this.sideB.filters.push(r.clone())}if(e){var n=H(e).lighten(-.25);this.edge.fill=n,this.sideA.fill=n,this.sideB.fill=n,this.edge.stroke=n,this.sideA.stroke=n,this.sideB.stroke=n}},i.prototype.draw=function(){if(this.cornerRadius=0,this.innerCornerRadius=0,s.prototype.draw.call(this),this.arc!==0&&this.radius>0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var t=this.startAngle,e=this.arc,r=this.pixelInnerRadius||0,n=this.radiusY||0,a=this.radius,o=t+e,l=n/a*r,h={x:j(t)*r,y:M(t)*l},u={x:j(t)*a,y:M(t)*n},p={x:j(o)*a,y:M(o)*n},d={x:j(o)*r,y:M(o)*l},f=this.depth,c={x:h.x,y:h.y-f},y={x:u.x,y:u.y-f},g={x:p.x,y:p.y-f},m={x:d.x,y:d.y-f},x="",P=Math.ceil(e/5),S=e/P,C=t,O=y,T=0;T<P;T++)if(C+=S,C>0&&C<180){x+=E(O);var D={x:j(C)*a,y:M(C)*n-f};x+=V({x:O.x,y:O.y+f}),x+=ae({x:D.x,y:D.y+f},a,n,!0),x+=V(D),x+=ae(O,a,n),x+="z",O=D}else{x+=E(O);var D={x:j(C)*a,y:M(C)*n-f};x+=ae(D,a,n,!0),x+=V({x:D.x,y:D.y+f}),x+=ae({x:O.x,y:O.y+f},a,n),x+=V(O),x+="z",O=D}O=c,C=t;
172for(var T=0;T<P;T++)if(C+=S,C>0&&C<180){x+=E(O);var D={x:j(C)*r,y:M(C)*l-f};x+=V({x:O.x,y:O.y+f}),x+=ae({x:D.x,y:D.y+f},r,l,!0),x+=V(D),x+=ae(O,r,l),x+="z",O=D}else{x+=E(O);var D={x:j(C)*r,y:M(C)*l-f};x+=ae(D,r,l,!0),x+=V({x:D.x,y:D.y+f}),x+=ae({x:O.x,y:O.y+f},r,l),x+=V(O),x+="z",O=D}this.edge.path=x,this.sideA.path=E(h)+V(u)+V(y)+V(c)+At(),this.sideB.path=E(p)+V(d)+V(m)+V(g)+At(),this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-f}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){var t=this.getPropertyValue("angle");return v(t)||(t=0),t},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return v(t)||(t=this.radius-this.radius*this.angle/90),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.edge.copyFrom(t.edge),this.sideA.copyFrom(t.sideA),this.sideB.copyFrom(t.sideB)},i}(si),Uo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PieSeries3DDataItem",t.values.depthValue={},t.applyTheme(),t}return Object.defineProperty(i.prototype,"depthValue",{get:function(){return this.values.depthValue.value},set:function(t){this.setValue("depthValue",t)},enumerable:!0,configurable:!0}),i}(Fs),Go=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PieSeries3D",t.applyTheme(),t}return i.prototype.createDataItem=function(){return new Uo},i.prototype.createSlice=function(){return new Sp},i.prototype.validateDataElement=function(t){var e=t.slice,r=this.depth;v(r)||(r=this.chart.depth);var n=t.values.depthValue.percent;v(n)||(n=100),e.depth=n*r/100;var a=this.angle;v(a)||(a=this.chart.angle),e.angle=a,s.prototype.validateDataElement.call(this,t)},i.prototype.validate=function(){s.prototype.validate.call(this);for(var t=this._workingStartIndex;t<this._workingEndIndex;t++){var e=this.dataItems.getIndex(t),r=e.slice,n=r.startAngle;n>=-90&&n<90?r.toFront():n>=90&&r.toBack()}},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t)},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(t){s.prototype.positionBullet.call(this,t);var e=t.dataItem,r=e.slice;t.y=t.pixelY-r.depth},i}(Is);_.registeredClasses.PieSeries3D=Go;_.registeredClasses.PieSeries3DDataItem=Uo;(function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PieChart3DDataItem",t.applyTheme(),t}return i})(Xo);var Op=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PieChart3D",t.depth=20,t.angle=10,t.applyTheme(),t}return Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){t=B(t,0,90),this.setPropertyValue("angle",t)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new Go},i}(Yo);_.registeredClasses.PieChart3D=Op;var Dp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="SlicedChartDataItem",t.applyTheme(),t}return i}(Vs),Tp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="SlicedChart",t.seriesContainer.layout="horizontal",t.padding(15,15,15,15),t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},i.prototype.validate=function(){s.prototype.validate.call(this)},i}(As);_.registeredClasses.SlicedChart=Tp;_.registeredClasses.SlicedChartDataItem=Dp;var cn=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.legendSettings=new Co,t.className="FlowDiagramNode",t.isMeasured=!1,new nt,t.draggable=!0,t.inert=!0,t.setStateOnChildren=!0,t.events.on("positionchanged",t.invalidateLinks,t,!1),t.events.on("sizechanged",t.invalidateLinks,t,!1),t}return i.prototype.handleHit=function(t){this.isHidden||this.isHiding?this.show():this.hide()},i.prototype.show=function(t){var e=s.prototype.show.call(this,t);return this.outgoingDataItems.each(function(r){(!r.toNode||r.toNode&&!r.toNode.isHidden)&&(r.setWorkingValue("value",r.getValue("value"),t),r.link.show())}),this.incomingDataItems.each(function(r){(!r.fromNode||r.fromNode&&!r.fromNode.isHidden)&&(r.setWorkingValue("value",r.getValue("value"),t),r.link.show())}),e},i.prototype.hide=function(t){var e=s.prototype.hide.call(this,t);return this.outgoingDataItems.each(function(r){r.setWorkingValue("value",0,t),r.link.hide()}),this.incomingDataItems.each(function(r){r.setWorkingValue("value",0,t),r.link.hide()}),e},i.prototype.validate=function(){this.isDisposed()||(s.prototype.validate.call(this),this.invalidateLinks())},i.prototype.invalidateLinks=function(){var t=this;this.outgoingDataItems.each(function(e){var r=e.link;if(r.colorMode=="fromNode"&&(r.fill=r.dataItem.fromNode.color),r.colorMode=="gradient"){r.fill=r.gradient,r.stroke=r.gradient;var n=r.gradient.stops.getIndex(0);n&&(n.color=t.color,r.gradient.validate())}}),this.incomingDataItems.each(function(e){var r=e.link;if(r.colorMode=="toNode"&&(r.fill=r.dataItem.toNode.color),r.colorMode=="gradient"){r.fill=r.gradient,r.stroke=r.gradient;var n=r.gradient.stops.getIndex(1);n&&(n.color=t.color,r.gradient.validate())}})}
172,Object.defineProperty(i.prototype,"incomingDataItems",{get:function(){var t=this;if(!this._incomingDataItems){var e=new rt;e.events.on("inserted",function(){t.chart.sortBy=="name"?t._incomingSorted=fi(t._incomingDataItems.iterator(),function(r,n){return Rn(r.fromName,n.fromName)}):t.chart.sortBy=="value"?t._incomingSorted=fi(t._incomingDataItems.iterator(),function(r,n){return Bn(Te(r.value,n.value))}):t._incomingSorted=t._incomingDataItems.iterator()},void 0,!1),this._incomingDataItems=e}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outgoingDataItems",{get:function(){var t=this;if(!this._outgoingDataItems){var e=new rt;e.events.on("inserted",function(){t.chart.sortBy=="name"?t._outgoingSorted=fi(t._outgoingDataItems.iterator(),function(r,n){return Rn(r.fromName,n.fromName)}):t.chart.sortBy=="value"?t._outgoingSorted=fi(t._outgoingDataItems.iterator(),function(r,n){return Bn(Te(r.value,n.value))}):t._outgoingSorted=t._outgoingDataItems.iterator()},void 0,!1),this._outgoingDataItems=e}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(t){this.setPropertyValue("total",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(t){this.setPropertyValue("totalIncoming",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(t){this.setPropertyValue("totalOutgoing",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.getPropertyValue("color")}
172,set:function(t){this.setColorProperty("color",t),this._background&&(this._background.fill=t),this.fill=t},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(t){var e=t.pixelWidth,r=t.pixelHeight;t.removeChildren();var n=t.createChild(Ae);n.shouldClone=!1,kt(this,n,Ot),n.stroke=this.fill,n.copyFrom(this),n.padding(0,0,0,0),n.width=e,n.height=r;var a=t.dataItem;a.color=n.fill,a.colorOrig=n.fill},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),i}(N);_.registeredClasses.FlowDiagramNode=cn;var Ui=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._distance=0,t.className="Polyline",t.element=t.paper.add("path"),t.shapeRendering="auto",t.fill=H(),t.strokeOpacity=1,t.applyTheme(),t}return i.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){for(var e="",r=0,n=t.length;r<n;r++){var a=t[r];if(a.length>0){e+=E(a[0]);for(var o=1;o<a.length;o++){var l=a[o];e+=V(l),this._distance+=at(a[o-1],l)}}}this.path=e}this._realSegments=t},Object.defineProperty(i.prototype,"segments",{get:function(){return this.getPropertyValue("segments")},set:function(t){this.setPropertyValue("segments",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(t){var e=0;t<0&&(t=Math.abs(t),e=180);var r=this._realSegments;if(r){for(var n=this.distance,a=0,o=void 0,l=0,h=0,u=void 0,p=void 0,d=0;d<r.length;d++){var f=r[d];if(f.length>1){for(var c=1;c<f.length;c++)if(u=f[c-1],p=f[c],l=a/n,o=at(u,p),a+=o,h=a/n,l<=t&&h>t){d=r.length;break}}else f.length==1&&(u=f[0],p=f[0],l=0,h=1)}if(u&&p){var y=(t-l)/(h-l),g=kr(u,p,y);return{x:g.x,y:g.y,angle:e+Yt(u,p)}}}return{x:0,y:0,angle:0}},Object.defineProperty(i.prototype,"realSegments",{get:function(){return this._realSegments},enumerable:!0,configurable:!0}),i}(Z);_.registeredClasses.Polyline=Ui;var yn=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="FlowDiagramLink";var e=new nt;return t.maskBullets=!1,t.colorMode="fromNode",t.layout="none",t.isMeasured=!1,t.startAngle=0,t.endAngle=0,t.strokeOpacity=0,t.verticalCenter="none",t.horizontalCenter="none",t.tooltipText="{fromName}→{toName}:{value.value}",t.tooltipLocation=.5,t.link=t.createChild(Z),t.link.shouldClone=!1,t.link.setElement(t.paper.add("path")),t.link.isMeasured=!1,t.fillOpacity=.2,t.fill=e.getFor("alternativeBackground"),t.applyTheme(),t}return i.prototype.positionBullets=function(){var t=this;A(this.bullets.iterator(),function(e){e.parent=t.bulletsContainer,e.maxWidth=t.maxWidth,e.maxHeight=t.maxHeight,t.positionBullet(e)})},Object.defineProperty(i.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var t=this.createChild(N);t.shouldClone=!1,t.layout="none",this._bulletsContainer=t}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var t=this.createChild(Z);t.shouldClone=!1,t.setElement(this.paper.add("path")),t.isMeasured=!1,this._bulletsMask=t}return this._bulletsMask},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(t){var e=t.locationX;v(e)||(e=t.locationY),v(e)||(e=.5);var r=this.middleLine.positionToPoint(e);t.moveTo(r);var n=t.propertyFields.rotation,a;if(t.dataItem){var o=t.dataItem.dataContext;a=o[n]}v(a)||(a=r.angle),t.rotation=a},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(t){if(t=="gradient"){var e=this.fill;this.gradient.stops.clear(),e instanceof it&&(this.gradient.addColor
172(e),this.gradient.addColor(e)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t,!0)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(t){s.prototype.setFill.call(this,t);var e=this._gradient;e&&t instanceof it&&(e.stops.clear(),e.addColor(t),e.addColor(t))},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bullets",{get:function(){var t=this;return this._bullets||(this._bullets=new Ct(new ke),this._disposers.push(new ft(this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",function(e){e.newValue.events.on("propertychanged",function(r){(r.property=="locationX"||r.property=="locationY")&&t.positionBullet(r.target)},void 0,!1)},void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.bullets.copyFrom(t.bullets);var e=this.middleLine;e&&(e instanceof ve&&t.middleLine instanceof ve&&e.copyFrom(t.middleLine),e instanceof Ui&&t.middleLine instanceof Ui&&e.copyFrom(t.middleLine)),this.link.copyFrom(t.link)},i.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x},i.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(i.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new ce),this._gradient},enumerable:!0,configurable:!0}),i}(N);_.registeredClasses.FlowDiagramLink=yn;var Ko=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ColorModifier",t.applyTheme(),t}return i.prototype.modify=function(t){return t},i}($t);_.registeredClasses.ColorModifier=Ko;var js=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.lightnesses=[],t.brightnesses=[],t.opacities=[],t.offsets=[],t.className="GradientModifier",t.applyTheme(),t}return Object.defineProperty(i.prototype,"lightnesses",{get:function(){return this._lightnesses},set:function(t){this._lightnesses=t,this._brightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"brightnesses",{get:function(){return this._brightnesses},set:function(t){this._brightnesses=t,this._lightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacities",{get:function(){return this._opacities},set:function(t){this._opacities=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"offsets",{get:function(){return this._offsets},set:function(t){this._offsets=t},enumerable:!0,configurable:!0}),i.prototype.modify=function(t){this.gradient.clear();var e=0;this.opacities&&(e=q(e,this.opacities.length)),this.lightnesses&&(e=q(e,this.lightnesses.length)),this.brightnesses&&(e=q(e,this.brightnesses.length));for(var r=1,n,a,o=0;o<e;o++){var l=t;this.opacities&&v(this.opacities[o])&&(r=this.opacities[o]),this.lightnesses&&v(this.lightnesses[o])&&(n=this.lightnesses[o],a=void 0),this.brightnesses&&v(this.brightnesses[o])&&(a=this.brightnesses[o],n=void 0),v(a)?l=t.brighten(this.brightnesses[o]):v(n)&&(l=t.lighten(this.lightnesses[o]));var h=this.offsets[o];this.gradient.addColor(l,r,h)}return this.gradient},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this._offsets=t.offsets,this._brightnesses=t.brightnesses,this._lightnesses=t.lightnesses,this._opacities=t.opacities},i}(Ko);_.registeredClasses.GradientModifier=js;var Yr=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="LinearGradientModifier",t.gradient=new ce,t.applyTheme(),t}return i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.gradient=t.gradient.clone()},i}(js);_.registeredClasses.LinearGradientModifier=Yr;var Ls=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="FlowDiagramDataItem",t.values.value={},t.applyTheme(),t}return Object.defineProperty(i.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(t){this.setProperty("fromName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"toName",{get:function(){return this.properties.toName},set:function(t){this.setProperty("toName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",pe(t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"link",{get:function(){var t=this;if(!this._link){var e=this.component.links.create();this._link=e,this.addSprite(e),this._disposers.push(new lt(function(){t.component&&t.component.links.removeValue(e)}))}return this._link},enumerable:!0,configurable:!0}),i}(_o),Es=function(s){w(i,s);function i(){var t=s.call(this)||this;t.colors=new $i,t.className="FlowDiagram",t.nodePadding=20,t.sortBy="none",t.sequencedInterpolation=!0,t.colors.step=2,t.minNodeSize=.02;var e=t.chartContainer.createChild(N);e.shouldClone=!1,e.layout="none",e.isMeasured=!1,t.linksContainer=e;var r=t.chartContainer.createChild(N);return r.shouldClone=!1,r.layout="none",r.isMeasured=!1,t.nodesContainer=r,t.dataItem=t.createDataItem(),t.dataItem.component=t,t.applyTheme(),t}return i.prototype.dispose=function(){s.prototype.dispose.call(this),this.dataItem.dispose()},i.prototype.validateData=function(){var t=this;this._parseDataFrom==0&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),s.prototype.validateData.call(this);var e=0,r=0,n,a;A(this.dataItems.iterator(),function(l){var h=l.fromName;if(h){var u=t.nodes.getKey(h);u||(u=t.nodes.create(h),u.name=h,u.chart=t,u.dataItem=l),l.fromNode=u,l.fromNode.outgoingDataItems.push(l)}var p=l.toName;if(p){var u=t.nodes.getKey(p);u||(u=t.nodes.create(p),u.name=p,u.chart=t,u.dataItem=l),l.toNode=u,l.toNode.incomingDataItems.push(l)}if(!l.fromNode){var d=new Yr;d.opacities=[0,1],l.link.strokeModifier=d}if(!l.toNode){var f=new Yr;f.opacities=[1,0],l.link.strokeModifier=f}var c=l.value;v(c)&&(e+=c,r++,(n>c||!v(n))&&(n=c),(a<c||!v(a))&&(a=c))});var o="value";this.dataItem.setCalculatedValue(o,a,"high"),this.dataItem.setCalculatedValue(o,n,"low"),this.dataItem.setCalculatedValue(o,e,"sum"),this.dataItem.setCalculatedValue(o,e/r,"average"),this.dataItem.setCalculatedValue(o,r,"count"),A(this.nodes.iterator(),function(l){var h=l[1];
172h.fill instanceof it&&(h.color=h.fill),h.color==null&&(h.color=t.colors.next()),h.dataItem.color!=null&&(h.color=h.dataItem.color),h.dataItem.visible||h.hide(0),t.getNodeValue(h)}),this.sortNodes(),this.feedLegend()},i.prototype.handleDataItemWorkingValueChange=function(t,e){this.invalidate()},i.prototype.sortNodes=function(){this.sortBy=="name"?this._sorted=this.nodes.sortedIterator():this.sortBy=="value"?this._sorted=fi(this.nodes.iterator(),function(t,e){return Bn(Te(t[1].total,e[1].total))}):this._sorted=this.nodes.iterator()},i.prototype.getNodeValue=function(t){var e=0,r=0;A(t.incomingDataItems.iterator(),function(n){var a=n.getWorkingValue("value");v(a)&&(e+=a)}),A(t.outgoingDataItems.iterator(),function(n){var a=n.getWorkingValue("value");v(a)&&(r+=a)}),t.total=e+r,t.totalIncoming=e,t.totalOutgoing=r},i.prototype.changeSorting=function(){this.sortNodes()},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Flow diagram"))},i.prototype.createDataItem=function(){return new Ls},Object.defineProperty(i.prototype,"nodePadding",{get:function(){return this.getPropertyValue("nodePadding")},set:function(t){this.setPropertyValue("nodePadding",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sortBy",{get:function(){return this.getPropertyValue("sortBy")},set:function(t){this.setPropertyValue("sortBy",t),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minNodeSize",{get:function(){return this.getPropertyValue("minNodeSize")},set:function(t){this.setPropertyValue("minNodeSize",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nodes",{get:function(){if(!this._nodes){var t=this.createNode();t.events.on("hit",function(e){e.target.handleHit(e)}),this._nodes=new Wi(t),this._disposers.push(new ei(this._nodes))}return this._nodes},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var t=new cn;return this._disposers.push(t),t},Object.defineProperty(i.prototype,"links",{get:function(){return this._links||(this._links=new Ct(this.createLink()),this._disposers.push(new ft(this._links))),this._links},enumerable:!0,configurable:!0}),i.prototype.createLink=function(){var t=new yn;return this._disposers.push(t),t},i.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];this.nodes.each(function(r,n){e.push(n)}),t.data=e,t.dataFields.name="name"}},i.prototype.disposeData=function(){s.prototype.disposeData.call(this),this.nodes.clear()},i}(ai);_.registeredClasses.FlowDiagram=Es;var Ur=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="LabelBullet";var e=t.createChild(te);return e.shouldClone=!1,e.verticalCenter="middle",e.horizontalCenter="middle",e.truncate=!0,e.hideOversized=!1,e.maxWidth=500,e.maxHeight=500,e.stroke=H(),e.strokeOpacity=0,e.fill=new nt().getFor("text"),t.events.on("maxsizechanged",t.handleMaxSize,t,!1),t.label=e,t.applyTheme(),t}return i.prototype.handleMaxSize=function(){this.label.maxWidth=this.maxWidth,this.label.maxHeight=this.maxHeight},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.label.copyFrom(t.label)},i}(ke);_.registeredClasses.LabelBullet=Ur;var qo=function(s){w(i,s);function i(){var t=s.call(this)||this;t.nextInCoord=0,t.nextOutCoord=0,t.className="SankeyNode",t.width=10,t.height=10;var e=t.createChild(Ur);e.shouldClone=!1,e.locationX=1,e.locationY=.5,e.label.text="{name}",e.width=150,e.height=150,e.label.horizontalCenter="left",e.label.padding(0,5,0,5),t.nameLabel=e;var r=t.createChild(Ur);r.shouldClone=!1,r.label.hideOversized=!1,r.locationX=.5,r.locationY=.5,r.width=150,r.he
172ight=150,r.label.horizontalCenter="middle",t.valueLabel=r;var n=t.hiddenState;return n.properties.fill=new nt().getFor("disabledBackground"),n.properties.opacity=.5,n.properties.visible=!0,t.background.hiddenState.copyFrom(n),t}return i.prototype.invalidateLinks=function(){var t=this;s.prototype.invalidateLinks.call(this),this.nextInCoord=0,this.nextOutCoord=0;var e=this.chart;if(e){var r=e.orientation;this._incomingSorted&&A(this._incomingSorted,function(n){var a=n.link,o=n.getWorkingValue("value");if(v(o)){a.parent=t.chart.linksContainer;var l=void 0,h=void 0,u=void 0;if(r=="horizontal"?(l=t.pixelX+t.dx,h=t.nextInCoord+t.pixelY+t.dy,u=0):(h=t.pixelY+t.dy,l=t.nextInCoord+t.pixelX+t.dx,u=90),a.endX=l,a.endY=h,a.startAngle=u,a.endAngle=u,a.gradient.rotation=u,a.linkWidth=o*e.valueHeight,!n.fromNode){r=="horizontal"?(a.maxWidth=200,a.startX=t.pixelX+t.dx-a.maxWidth,a.startY=a.endY):(a.maxHeight=200,a.startX=a.endX,a.startY=t.pixelY+t.dy-a.maxHeight),a.gradient,a.fill=n.toNode.color;var p=a.gradient.stops.getIndex(0);p&&(a.colorMode=="gradient"&&(p.color=t.color),p.opacity=0,a.fill=a.gradient,a.stroke=a.gradient,a.gradient.validate())}t.nextInCoord+=a.linkWidth}}),this._outgoingSorted&&A(this._outgoingSorted,function(n){var a=n.link;a.parent=t.chart.linksContainer;var o=n.getWorkingValue("value");if(v(o)){var l=void 0,h=void 0,u=void 0;if(r=="horizontal"?(u=0,l=t.pixelX+t.pixelWidth+t.dx-1,h=t.nextOutCoord+t.pixelY+t.dy):(u=90,l=t.nextOutCoord+t.pixelX+t.dx,h=t.pixelY+t.pixelHeight+t.dy-1),a.startX=l,a.startY=h,a.startAngle=u,a.endAngle=u,a.gradient.rotation=u,a.linkWidth=o*t.chart.valueHeight,!n.toNode){r=="horizontal"?(a.maxWidth=200,a.endX=t.pixelX+a.maxWidth+t.dx,a.endY=a.startY):(a.maxHeight=200,a.endX=a.startX,a.endY=t.pixelY+a.maxHeight+t.dy),a.opacity=t.opacity;var p=a.gradient.stops.getIndex(1);p&&(a.colorMode=="gradient"&&(p.color=t.color),p.opacity=0,a.fill=a.gradient,a.stroke=a.gradient,a.gradient.validate())}t.nextOutCoord+=a.linkWidth}})}this.positionBullet(this.nameLabel),this.positionBullet(this.valueLabel)},i.prototype.positionBullet=function(t){t&&(t.x=this.measuredWidth*t.locationX,t.y=this.measuredHeight*t.locationY)},Object.defineProperty(i.prototype,"level",{get:function(){return this.getPropertyValue("level")},set:function(t){this.setPropertyValue("level",t,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.nameLabel.copyFrom(t.nameLabel),this.valueLabel.copyFrom(t.valueLabel)},i}(cn);_.registeredClasses.SankeyNode=qo;var Gr=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Polyspline",t.tensionX=.5,t.tensionY=.5,t.applyTheme(),t}return i.prototype.makePath=function(){this._distance=0;var t=this.segments,e=this.tensionX,r=this.tensionY;if(this.allPoints=[],t&&t.length>0){var n="";this._realSegments=[];for(var a=0,o=t.length;a<o;a++){var l=t[a],h=[];if(this._realSegments.push(h),l.length>0){var u=l[0],p=l[l.length-1],d=!1;F(u.x,3)==F(p.x)&&F(u.y)==F(p.y)&&(d=!0),n+=E(l[0]);for(var f=0;f<l.length-1;f++){var c=l[f-1],y=l[f],g=l[f+1],m=l[f+2];f===0?c=l[f]:f==l.length-2&&(m=l[f+1]),m||(m=g),f===0?d?c=l[l.length-2]:c=l[a]:f==l.length-2&&(d?m=l[1]:m=l[f+1]);var x=Ma(c,y,g,m,e,r),P=ja(c,y,g,m,e,r);n+=Xi(g,x,P);var S=Math.ceil(uh(y,g,x,P,20))*1.2,C=y;if(S>0)for(var O=0;O<=S;O++){var T=hs(y,g,x,P,O/S);if(!(T.x==C.x&&T.y==C.y)){h.push(T);var D=F(Yt(C,T),5);this._distance+=at(C,T),this.allPoints[Math.floor(this._distance)]={x:T.x,y:T.y,angle:D},C=T}}else h.push(c)}}var k=this.allPoints;if(k.length>1){for(var z=0;z<k.length;z++)if(!k[z]){if(z>1)k[z]=k[z-1];else for(var R=1;R<k.length;R++)if(k[R]){k[z]=k[R];break}}}}this.path=n}},i.prototype.getClosestPointIndex=function(t){var e=this.allPoints,r,n=1/0;if(e.length>1)for(var a=1;a<e.length;a++){var o=at(t,e[a]);o<n&&(r=a,n=o)}return r},Object.defineProperty(i.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(t){this.setPropertyValue("tensionX",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(t){this.setPropertyValue("tensionY",t,!0),this.makePath()},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(t,e){var r=0,n=this.allPoints,a=n.length;if(v(t)||(t=0),a>1){if(e&&a>3){if(t<0){t<-.01&&(t=-.01);var o=n[0],l=n[1],h=o.x-(o.x-l.x)*a*t,u=o.y-(o.y-l.y)*a*t;return{x:h,y:u,angle:Yt(o,l)}}else if(t>1){t>1.01&&(t=1.01);var o=n[n.length-2],l=n[n.length-3],h=o.x+(o.x-l.x)*a*(t-1),u=o.y+(o.y-l.y)*a*(t-1);return{x:h,y:u,angle:Yt(o,{x:h,y:u})}}else if(t==1){var p=n[n.length-1];return{x:p.x,y:p.y,angle:p.angle}}}else t<0&&(t=Math.abs(t),r=180),t>=1&&(t=.9999999999999);var d=n[Math.floor(t*a)];return{x:d.x,y:d.y,angle:d.angle+r}}else if(a==1){var d=n[0];return{x:d.x,y:d.y,angle:d.angle}}else return{x:0,y:0,angle:0}},i}(Ui);_.registeredClasses.Polyspline=Gr;var Zo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="SankeyLink",new nt,t.tension=.8,t.controlPointDistance=.2,t.startAngle=0,t.endAngle=0,t.linkWidth=0,t.startX=0,t.endX=0,t.startY=0,t.endY=0,t.middleLine=t.createChild(Gr),t.middleLine.shouldClone=!1,t.middleLine.strokeOpacity=0,t.applyTheme(),t}return i.prototype.makeBackwards=function(){this.states.getKey("backwards")!=null&&this.setState("backwards")},i.prototype.validate=function(){var t,e,r,n;if(s.prototype.validate.call(this),!this.isTemplate){var a=this.startX,o=this.startY,l=this.endX,h=this.endY;if(this.states.getKey("backwards")&&this.setState("default"),this.dataItem){var u=this.dataItem.component;u&&(u.orientation=="horizontal"?l<a&&(t=Ti([l,a],2),a=t[0],l=t[1],e=Ti([h,o],2),o=e[0],h=e[1],this.makeBackwards()):h<o&&(r=Ti([h,o],2),o=r[0],h=r[1],n=Ti([l,a],2),a=n[0],l=n[1],this.makeBackwards()))}
172v(l)||(l=a),v(h)||(h=o);var p=this.startAngle,d=this.endAngle,f=this.linkWidth,c="",y=a,g=o,m=l,x=h,P=a+f*M(p),S=l+f*M(d),C=o+f*j(p),O=h+f*j(d),T=a+f/2*M(p),D=l+f/2*M(d),k=o+f/2*j(p),z=h+f/2*j(d);this.zIndex=this.zIndex||this.dataItem.index;var R=this.tension+(1-this.tension)*M(p),W=this.tension+(1-this.tension)*j(p);if(this.middleLine.tensionX=R,this.middleLine.tensionY=W,v(f)&&v(a)&&v(l)&&v(o)&&v(h)){F(y,3)==F(m,3)&&(m+=.01),F(g,3)==F(x,3)&&(x+=.01),F(P,3)==F(S,3)&&(S+=.01),F(C,3)==F(O,3)&&(O+=.01);var ot=Math.min(P,S,y,m),Ft=Math.min(C,O,g,x),zt=Math.max(P,S,y,m),Y=Math.max(C,O,g,x);this._bbox={x:ot,y:Ft,width:zt-ot,height:Y-Ft};var Dt=this.controlPointDistance,It=y+(m-y)*Dt*j(p),Tt=g+(x-g)*Dt*M(p),qt=m-(m-y)*Dt*j(d),Mt=x-(x-g)*Dt*M(d),X=T+(D-T)*Dt*j(p),ht=k+(z-k)*Dt*M(p),_t=D-(D-T)*Dt*j(d),ue=z-(z-k)*Dt*M(d),se=Yt({x:It,y:Tt},{x:qt,y:Mt}),Jt=(f/j(se)-f)/Js(se)*j(p),ie=(f/M(se)-f)*Js(se)*M(p),_e=-Jt/2+P+(S-P)*Dt*j(p),ye=-ie/2+C+(O-C)*Dt*M(p),Ke=-Jt/2+S-(S-P)*Dt*j(d),qe=-ie/2+O-(O-C)*Dt*M(d);z==k&&(z+=.01),this.middleLine.segments=[[{x:T,y:k},{x:X,y:ht},{x:_t,y:ue},{x:D,y:z}]],It+=Jt/2,Tt+=ie/2,qt+=Jt/2,Mt+=ie/2,c+=E({x:y,y:g}),c+=new Xe(R,W).smooth([{x:y,y:g},{x:It,y:Tt},{x:qt,y:Mt},{x:m,y:x}]),c+=V({x:S,y:O}),c+=new Xe(R,W).smooth([{x:S,y:O},{x:Ke,y:qe},{x:_e,y:ye},{x:P,y:C}]),c+=At()}this.link.path=c,this.maskBullets&&(this.bulletsMask.path=c,this.bulletsContainer.mask=this.bulletsMask),this.positionBullets()}},Object.defineProperty(i.prototype,"startX",{get:function(){return this.getPropertyValue("startX")},set:function(t){this.setPropertyValue("startX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endX",{get:function(){return this.getPropertyValue("endX")},set:function(t){this.setPropertyValue("endX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startY",{get:function(){return this.getPropertyValue("startY")},set:function(t){this.setPropertyValue("startY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endY",{get:function(){return this.getPropertyValue("endY")},set:function(t){this.setPropertyValue("endY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"linkWidth",{get:function(){return this.getPropertyValue("linkWidth")},set:function(t){this.setPropertyValue("linkWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),i}(yn);_.registeredClasses.SankeyLink=Zo;var kp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="SankeyDiagramDataItem",t.applyTheme(),t}return i}(Ls),Vp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="SankeyDiagram",t.orientation="horizontal",t.nodeAlign="middle",t.nodesContainer.width=I(100),t.nodesContainer.height=I(100),t.linksContainer.width=I(100),t.linksContainer.height=I(100),t.applyTheme(),t}return i.prototype.validateData=function(){var t=this;this._valueHeight=void 0,s.prototype.validateData.call(this),this._levelCount=0,this.nodes.each(function(e,r){r.level=void 0}),this.nodes.each(function(e,r){r.level=t.getNodeLevel(r,0),t._levelCount=q(t._levelCount,r.level)})},i.prototype.getNodeLevel=function(t,e){var r=this,n=[e];return A(t.incomingDataItems.iterator(),function(a){a.fromNode&&(v(a.fromNode.level)?n.push(a.fromNode.level+1):(r._counter=0,r.checkLoop(a.fromNode),r._counter<r.dataItems.length&&n.push(r.getNodeLevel(a.fromNode,e+1))))}),Math.max.apply(Math,yi(n))},i.prototype.checkLoop=function(t){var e=this;this._counter++,!(this._counter>this.dataItems.length)&&A(t.incomingDataItems.iterator(),function(r){e.checkLoop(r.fromNode)})},i.prototype.calculateValueHeight=function(){var t=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var e=this.dataItem.values.value.sum;A(this._sorted,function(p){var d=p[1];t.getNodeValue(d)}),this.nodes.each(function(p,d){var f=d.level,c=Math.max(d.totalIncoming,d.totalOutgoing);c/e<t.minNodeSize&&(c=e*t.minNodeSize),v(t._levelSum[f])?t._levelSum[f]+=c:t._levelSum[f]=c,v(t._levelNodesCount[f])?t._levelNodesCount[f]++:t._levelNodesCount[f]=1});var r;this.orientation=="horizontal"?r=this.chartContainer.maxHeight-1:r=this.chartContainer.maxWidth-1;var n,a;U(this._levelSum,function(p,d){var f=d,c=t._levelNodesCount[p],y=(r-(c-1)*t.no
172dePadding)/f;y==1/0&&(y=0),(a>y||!v(a))&&(a=y,t.maxSum=f,n=dt(p))}),this._maxSumLevel=n;var o=this._levelNodesCount[this._maxSumLevel],l=(r-(o-1)*this.nodePadding)/this.maxSum;if(l==1/0&&(l=0),!v(this.valueHeight))this.valueHeight=l;else{var h=void 0;try{h=this._heightAnimation.animationOptions[0].to}catch{}if(h!=l){var u=this.interpolationDuration;try{u=this.nodes.template.states.getKey("active").transitionDuration}catch{}this._heightAnimation=new ge(this,{property:"valueHeight",from:this.valueHeight,to:l},u,this.interpolationEasing).start(),this._disposers.push(this._heightAnimation)}}},i.prototype.validate=function(){var t=this;s.prototype.validate.call(this),this.calculateValueHeight();var e=this.nodesContainer,r={},n=this._levelNodesCount[this._maxSumLevel],a=this.dataItem.values.value.sum,o;this.orientation=="horizontal"?o=this.chartContainer.maxHeight-1:o=this.chartContainer.maxWidth-1,A(this._sorted,function(l){var h=l[1],u=h.level,p=0,d=t._levelNodesCount[u];switch(t.nodeAlign){case"bottom":p=(t.maxSum-t._levelSum[u])*t.valueHeight-(d-n)*t.nodePadding;break;case"middle":p=(t.maxSum-t._levelSum[u])*t.valueHeight/2-(d-n)*t.nodePadding/2;break}if(t.maxSum==0)switch(t.nodeAlign){case"bottom":p=o-d*(t.minNodeSize*o+t.nodePadding);break;case"middle":p=o/2-d/2*(t.minNodeSize*o+t.nodePadding);break}h.parent=e;var f,c,y,g=Math.max(h.totalIncoming,h.totalOutgoing);if(g/a<t.minNodeSize&&(g=a*t.minNodeSize),t.orientation=="horizontal"){f=(t.innerWidth-h.pixelWidth)/t._levelCount,c=f*h.level,y=r[u]||p;var m=g*t.valueHeight;a==0&&m==0&&(m=t.minNodeSize*o),h.height=m,h.minX=c,h.maxX=c,r[u]=y+m+t.nodePadding}else{f=(t.innerHeight-h.pixelHeight)/t._levelCount,c=r[u]||p,y=f*h.level;var x=g*t.valueHeight;a==0&&x==0&&(x=t.minNodeSize*o),h.width=x,h.minY=y,h.maxY=y,r[u]=c+x+t.nodePadding}h.x=c,h.y=y})},i.prototype.showReal=function(t){var e=this;if(!this.preventShow){if(this.interpolationDuration>0){var r=this.nodesContainer,n=0;A(this.links.iterator(),function(a){a.hide(0)}),A(this._sorted,function(a){var o=a[1],l;e.orientation=="horizontal"?(o.dx=-(r.pixelWidth-o.pixelWidth)/Math.max(e._levelCount,1),l="dx"):(o.dy=-(r.pixelHeight-o.pixelHeight)/Math.max(e._levelCount,1),l="dy");var h=0,u=e.interpolationDuration;e.sequencedInterpolation&&(h=e.sequencedInterpolationDelay*n+u*n/wh(e.nodes.iterator())),o.opacity=0,o.invalidateLinks(),o.animate([{property:"opacity",from:0,to:1},{property:l,to:0}],e.interpolationDuration,e.interpolationEasing).delay(h),A(o.outgoingDataItems.iterator(),function(p){var d=p.link.show(e.interpolationDuration);d&&!d.isFinished()&&d.delay(h)}),A(o.incomingDataItems.iterator(),function(p){if(!p.fromNode){var d=p.link.show(e.interpolationDuration);d&&!d.isFinished()&&d.delay(h)}}),n++})}return s.prototype.showReal.call(this)}},i.prototype.changeSorting=function(){var t=this;this.sortNodes();var e={};A(this._sorted,function(r){var n=r[1],a=n.level,o=(t.maxSum-t._levelSum[a])*t.valueHeight/2,l,h;t.orientation=="horizontal"?(l="y",h=n.pixelHeight):(l="x",h=n.pixelWidth),n.animate({property:l,to:e[a]||o},t.interpolationDuration,t.interpolationEasing),e[a]=(e[a]||o)+h+t.nodePadding,n.invalidateLinks()})},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},i.prototype.createDataItem=function(){return new kp},Object.defineProperty(i.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(t){this.setPropertyValue("nodeAlign",t),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.nodes.template.nameLabel;t=="vertical"?(this.nodes.template.width=void 0,e.label.horizontalCenter="middle",e.locationX=.5):(this.nodes.template.height=void 0,e.label.horizontalCenter="left",e.locationX=1)},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var t=new qo;return this._disposers.push(t),t},i.prototype.createLink=function(){var t=new Zo;return this._disposers.push(t),t},Object.defineProperty(i.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(t){t!=this._valueHeight&&(this._valueHeight=t,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.disposeData=function(){s.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},i}(Es);_.registeredClasses.SankeyDiagram=Vp;var $o=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="ChordNode";var e=t.createChild(dn);e.location=.5,e.radius=5,e.text="{name}",e.zIndex=1,e.shouldClone=!1,t.label=e,t.layout="none",t.events.on("positionchanged",t.updateRotation,t,!1),t.isMeasured=!1,t.slice=t.createChild(si),t.slice.isMeasured=!1;var r=t.hiddenState;
172return r.properties.fill=new nt().getFor("disabledBackground"),r.properties.opacity=.5,r.properties.visible=!0,t.setStateOnChildren=!1,t.slice.hiddenState.properties.visible=!0,t.adapter.add("tooltipX",function(n,a){return a.slice.ix*(a.slice.radius-(a.slice.radius-a.slice.pixelInnerRadius)/2)}),t.adapter.add("tooltipY",function(n,a){return a.slice.iy*(a.slice.radius-(a.slice.radius-a.slice.pixelInnerRadius)/2)}),t}return i.prototype.invalidateLinks=function(){var t=this;s.prototype.invalidateLinks.call(this);var e=this.label,r=this.slice,n=this.chart;if(n&&r){var a=this.total,o=r.arc,l=r.startAngle;this.children.each(function(p){if(p instanceof ke){var d=p.locationX;v(d)||(d=.5);var f=p.locationY;v(f)||(f=1);var c=l+o*d,y=f*r.radius;p.x=y*j(c),p.y=y*M(c)}});var h=l+o*e.location,u=l+(1-a/this.adjustedTotal)*o*.5;Gt(u)&&(u=l),e.fixPosition(h,r.radius),this.nextAngle=u,this._outgoingSorted&&A(this._outgoingSorted,function(p){var d=p.link;d.parent=t.chart.linksContainer;var f=p.getWorkingValue("value");if(v(f)){if(n.nonRibbon){var c=d.percentWidth;v(c)||(c=5),c=c/100,d.startAngle=l+o/2-o/2*c,d.arc=o*c}else d.arc=f*n.valueAngle,d.startAngle=t.nextAngle,t.nextAngle+=d.arc;p.toNode||(d.endAngle=d.startAngle),d.radius=r.pixelInnerRadius}}),this._incomingSorted&&A(this._incomingSorted,function(p){var d=p.link;if(d.radius=r.pixelInnerRadius,n.nonRibbon){var f=d.percentWidth;v(f)||(f=5),f=f/100,d.endAngle=l+o/2-o/2*f,d.arc=o*f}else{d.endAngle=t.nextAngle;var c=p.getWorkingValue("value");v(c)&&(d.arc=c*n.valueAngle,t.nextAngle+=d.arc)}p.fromNode||(d.startAngle=d.endAngle)})}},i.prototype.updateRotation=function(){var t=this.slice,e=this.trueStartAngle+t.arc/2,r=t.radius,n=r*j(e),a=r*M(e),o=Yt({x:n+this.pixelX,y:a+this.pixelY});t.startAngle=this.trueStartAngle+(o-e),this.dx=-this.pixelX,this.dy=-this.pixelY},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.label.copyFrom(t.label),this.slice.copyFrom(t.slice)},i}(cn);_.registeredClasses.ChordNode=$o;var Ap=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="QuadraticCurve",t.element=t.paper.add("path"),t.pixelPerfect=!1,t.fill=H(),t.applyTheme(),t}return i.prototype.draw=function(){if(v(this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2},r={x:this.cpx,y:this.cpy},n=E(t)+Ze(e,r);this.path=n}},Object.defineProperty(i.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(t){this.setPropertyValue("cpx",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(t){this.setPropertyValue("cpy",t,!0)},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},r={x:this.cpx,y:this.cpy},n={x:this.x2,y:this.y2},a=Qs(e,n,r,t),o=Qs(e,n,r,t+.001);return{x:a.x,y:a.y,angle:Yt(a,o)}},i}(ve),Jo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ChordLink",t.middleLine=t.createChild(Ap),t.middleLine.shouldClone=!1,t.middleLine.strokeOpacity=0,t.applyTheme(),t}return i.prototype.validate=function(){if(s.prototype.validate.call(this),!this.isTemplate){var t=this.startAngle,e=this.endAngle,r=this.arc,n=this.radius,a=this.dataItem.fromNode,o=this.dataItem.toNode,l=0,h=0;a&&(l=a.pixelX+a.dx,h=a.pixelY+a.dy);var u=0,p=0;if(o&&(u=o.pixelX+o.dx,p=o.pixelY+o.dy),n>0){var d=n*j(t)+l,f=n*M(t)+h,c=n*j(e)+u,y=n*M(e)+p,g={x:0,y:0},m=E({x:d,y:f});m+=Lt(t,r,n),m+=Ze({x:c,y},g),m+=Lt(e,r,n),m+=Ze({x:d,y:f},g),r>0?this.link.path=m:this.link.path="",this.maskBullets&&(this.bulletsMask.path=m,this.bulletsContainer.mask=this.bulletsMask);var x=t+r/2,P=e+r/2,S=this.middleLine;S.x1=n*j(x)+l,S.y1=n*M(x)+h,S.x2=n*j(P)+u,S.y2=n*M(P)+p,S.cpx=0,S.cpy=0,S.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),i}(yn);_.registeredClasses.ChordLink=Jo;var Fp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ChordDiagramDataItem",t.applyTheme(),t}return i}(Ls),Ip=function(s){w(i,s);function i(){var t=s.call(this)||this;t.valueAngle=0,t.className="ChordDiagram",t.startAngle=-90,t.endAngle=270,t.radiu
172s=I(80),t.innerRadius=-15,t.nodePadding=5;var e=t.chartContainer.createChild(N);return e.align="center",e.valign="middle",e.shouldClone=!1,e.layout="absolute",t.chordContainer=e,t.nodesContainer.parent=e,t.linksContainer.parent=e,t.chartContainer.events.on("maxsizechanged",t.invalidate,t,!1),t.applyTheme(),t}return i.prototype.validate=function(){var t=this,e=this.chartContainer,r=this.endAngle,n=this.startAngle+this.nodePadding/2,a=De(this.startAngle,this.endAngle,1),o={x:0,y:0,width:0,height:0};a=Gi([a,o]);var l=Math.min(e.innerWidth/a.width,e.innerHeight/a.height);v(l)||(l=0);var h=Bt(this.radius,l),u=Bt(this.innerRadius,h,!0),p=this.dataItem.values.value.sum,d=0,f=0;A(this._sorted,function(c){var y=c[1];t.getNodeValue(y),d++;var g=y.total;y.total/p<t.minNodeSize&&(g=p*t.minNodeSize),f+=g}),this.valueAngle=(r-this.startAngle-this.nodePadding*d)/f,A(this._sorted,function(c){var y=c[1],g=y.slice;g.radius=h,g.innerRadius=u;var m=y.total;y.total/p<t.minNodeSize&&(m=p*t.minNodeSize),y.adjustedTotal=m;var x;t.nonRibbon?x=(r-t.startAngle)/d-t.nodePadding:x=t.valueAngle*m,g.arc=x,g.startAngle=n,y.trueStartAngle=n,y.parent=t.nodesContainer,y.validate(),n+=x+t.nodePadding}),this.chordContainer.definedBBox={x:h*a.x,y:h*a.y,width:h*a.width,height:h*a.height},this.chordContainer.invalidateLayout(),s.prototype.validate.call(this)},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Chord diagram"))},i.prototype.createDataItem=function(){return new Fp},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonRibbon",{get:function(){return this.getPropertyValue("nonRibbon")},set:function(t){this.setPropertyValue("nonRibbon",t,!0),this.links.template.middleLine.strokeOpacity=1,this.links.template.link.fillOpacity=0},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var t=new $o;return this._disposers.push(t),t},i.prototype.createLink=function(){var t=new Jo;return this._disposers.push(t),t},i}(Es);_.registeredClasses.ChordDiagram=Ip;var li=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Column",t.width=I(80),t.height=I(80),t.events.disableType("transformed"),t.applyOnClones=!0,t.strokeOpacity=1,t.layout="none",t.createAssets(),t.events.on("childadded",t.handleKidAdded,t,!1),t}return i.prototype.handleKidAdded=function(){this.layout=="none"&&(this.layout="absolute")},i.prototype.createAssets=function(){this.column=this.createChild(Ae),this.column.shouldClone=!1,this.column.isMeasured=!1,this.column.cornerRadius(0,0,0,0),this._disposers.push(this.column)},i.prototype.validate=function(){s.prototype.validate.call(this);var t=this.column;t&&(t.width=et(this.pixelWidth,this.maxWidth),t.height=et(this.pixelHeight,this.maxHeight),t.invalid&&t.validate())},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.column&&this.column.copyFrom(t.column)},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.column?{x:0,y:0,width:this.column.measuredWidth,height:this.column.measuredHeight}:{x:0,y:0,width:et(this.pixelWidth,this.maxWidth),height:et(this.pixelHeight,this.maxHeight)}},enumerable:!0,configurable:!0}),i}(N);_.registeredClasses.Column=li;var Ue=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ColumnSeriesDataItem",t.locations.dateX=.5,t.locations.dateY=.5,t.locations.categoryX=.5,t.locations.categoryY=.5,t.applyTheme(),t}return Object.defineProperty(i.prototype,"column",{get:function(){return this._column},set:function(t){this.setColumn(t)},enumerable:!0,configurable:!0}),i.prototype.setColumn=function(t){var e=this;if(this._column&&t!=this._column&&G(this.sprites,this._column),this._column=t,t){var r=t.dataItem;r&&r!=this&&(r.column=void 0),this.addSprite(t),this._disposers.push(new lt(function(){e.component&&e.component.columns.removeValue(t)}))}},Object.defineProperty(i.prototype,"width",{get:function(){var t=this.properties.width;return this._adapterO&&(t=this._adapterO.apply("width",t)),t},set:function(t){this.properties.width!=t&&(this.properties.width=t,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){var t=this.properties.height;return this._adapterO&&(t=this._adapterO.apply("height",t)),t},set:function(t){this.properties.height!=t&&(this.properties.height=t,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rangesColumns",{get:function(){return this._rangesColumns||(this._rangesColumns=new ct),this._rangesColumns},enumerable:!0,configurable:!0}),i}(un),Ge=function(s){w(i,s);function i(){var t=s.call(this)||this;t._startLocation=0,t._endLocation=1,t.className="ColumnSeries",t.width=I(100),t.height=I(100),t.strokeOpacity=0,t.fillOpacity=1,t.clustered=!0;var e=t.mainContainer.createChild(N);return e.shouldClone=!1,e.isMeasured=!1,e.layout="none",t._columnsContainer=e,t.columns.template.pixelPerfect=!1,t.tooltipColorSource=t.columns.template,t.applyTheme(),t}return Object.defineProperty(i.prototype,"columnsContainer",{get:function(){return this._columnsContainer},enumerable:!0,configurable:!0}),i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("C
172olumn Series"))},i.prototype.createDataItem=function(){return new Ue},i.prototype.validate=function(){var t=this;if(this.group.node.removeAttribute("fill"),this.chart&&this.xAxis&&this.yAxis){var e=this.chart.series,r=0,n=0,a=[];A(e.iterator(),function(y){if(y instanceof i&&t.baseAxis==y.baseAxis){var g;t.baseAxis==t.xAxis?g=t.chart.yAxes.indexOf(y.yAxis):g=t.chart.xAxes.indexOf(y.xAxis),a.push({series:y,axis:g})}}),a.sort(function(y,g){return y.axis-g.axis});var o;L(a,function(y){var g=y.series;g instanceof i&&((!g.stacked&&g.clustered||o!=y.axis&&g.clustered)&&r++,g==t&&(n=r-1)),o=y.axis}),this.clustered||(n=0,r=1);var l=this.baseAxis.renderer,h=l.cellStartLocation,u=l.cellEndLocation;this._startLocation=h+n/r*(u-h),this._endLocation=h+(n+1)/r*(u-h);var p=this.xAxis,d=this.yAxis;p instanceof St&&d instanceof $&&p.sortBySeries==this&&this.sortCategoryAxis(p,"valueY"),d instanceof St&&p instanceof $&&d.sortBySeries==this&&this.sortCategoryAxis(d,"valueX")}s.prototype.validate.call(this);for(var f=0;f<this.startIndex;f++){var c=this.dataItems.getIndex(f);this.disableUnusedColumns(c)}for(var f=this.dataItems.length-1;f>this.endIndex;f--){var c=this.dataItems.getIndex(f);this.disableUnusedColumns(c)}this._propertiesChanged=!1},i.prototype.sortCategoryAxis=function(t,e){var r=this;this.dataItems.values.sort(function(a,o){return o.values[e].workingValue-a.values[e].workingValue});var n=0;this.dataItems.each(function(a){a._index=n,n++}),t.dataItems.each(function(a){var o=a.component,l=o.categoryToPosition(a.category)-a.deltaPosition,h=o.getSeriesDataItemByCategory(a.category,r);if(h){var u=r.dataItems.indexOf(h);a._index=u;var p=F((u+.5)/r.dataItems.length-l,3);a.deltaAnimation&&!a.deltaAnimation.isDisposed()&&a.deltaAnimation.animationOptions[0].to==p||p!=F(a.deltaPosition,3)&&(a.deltaAnimation&&a.deltaAnimation.stop(),a.deltaAnimation=a.animate({property:"deltaPosition",from:-p,to:0},o.interpolationDuration,o.interpolationEasing),r._disposers.push(a.deltaAnimation))}}),t.dataItems.values.sort(function(a,o){return a.index-o.index})},i.prototype.validateDataElement=function(t){this.chart&&this.xAxis&&this.yAxis&&(this.validateDataElementReal(t),s.prototype.validateDataElement.call(this,t))},i.prototype.getStartLocation=function(t){var e=this._startLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xOpenField]-.5:e+=t.locations[this.yOpenField]-.5,e},i.prototype.getEndLocation=function(t){var e=this._endLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xField]-.5:e+=t.locations[this.yField]-.5,e},i.prototype.validateDataElementReal=function(t){var e=this,r,n,a,o,l=this.getStartLocation(t),h=this.getEndLocation(t),u=this.xField,p=this.xOpenField,d=this.yField,f=this.yOpenField,c=this.columns.template,y=c.percentWidth,g=c.percentHeight,m=c.pixelWidth,x=c.pixelHeight,P=c.maxWidth,S=c.maxHeight,C=c.pixelPaddingLeft,O=c.pixelPaddingRight,T=c.pixelPaddingTop,D=c.pixelPaddingBottom,k=!1,z=t.width;b(z)&&(v(z)&&(m=z),z instanceof Q&&(y=z.value*100));var R=t.height;if(b(R)&&(v(R)&&(x=R),R instanceof Q&&(g=R.value*100)),this.xAxis instanceof St&&this.yAxis instanceof St){if(!t.hasValue(this._xValueFields)||!t.hasValue(this._yValueFields))return;if(l=0,h=1,!Gt(y)){var W=F((h-l)*(1-y/100)/2,5);l+=W,h-=W}if(r=this.xAxis.getX(t,p,l),n=this.xAxis.getX(t,u,h),Gt(y)){var W=(n-r-m)/2;r+=W,n-=W}if(!Gt(P)&&P<Math.abs(n-r)){var W=(n-r-P)/2;r+=W,n-=W}if(l=0,h=1,!Gt(g)){var W=F((1-g/100)/2,5);l+=W,h-=W}if(a=this.yAxis.getY(t,f,l),o=this.yAxis.getY(t,d,h),Gt(g)){var W=(o-a-x)/2;o+=W,a-=W}if(!Gt(S)&&S<Math.abs(o-a)){var W=(o-a-S)/2;o+=W,a-=W}n=this.fixHorizontalCoordinate(n),r=this.fixHorizontalCoordinate(r),a=this.fixVerticalCoordinate(a),o=this.fixVerticalCoordinate(o)}else if(this.baseAxis==this.xAxis){if(!t.hasValue(this._yValueFields))return;if(!Gt(y)){var W=F((h-l)*(1-y/100)/2,5);l+=W,h-=W}if(r=this.xAxis.getX(t,p,l),n=this.xAxis.getX(t,u,h),Gt(y)){var W=(n-r-m)/2;r+=W,n-=W}if(!Gt(P)&&P<Math.abs(n-r)){var W=(n-r-P)/2;r+=W,n-=W}var ot=t.locations[f],Ft=t.locations[d];this.yAxis instanceof $&&this.dataFields[this.yField]!=this.dataFields[this.yOpenField]&&(ot=0,Ft=0),o=this.yAxis.getY(t,f,ot),a=this.yAxis.getY(t,d,Ft);var zt=Math.ceil(this.yAxis.axisLength);(a<0&&o<0||a>zt&&o>zt)&&(k=!0),a=this.fixVerticalCoordinate(a),o=this.fixVerticalCoordinate(o),Math.abs(n-r)-C-O==0&&(k=!0)}else{if(!t.hasValue(this._xValueFields))return;if(!Gt(g)){var W=F((h-l)*(1-g/100)/2,5);l+=W,h-=W}if(a=this.yAxis.getY(t,f,l),o=this.yAxis.getY(t,d,h),Gt(g)){var W=(o-a-x)/2;o-=W,a+=W}if(!Gt(S)&&S<Math.abs(o-a)){var W=(o-a-S)/2;o-=W,a+=W}var Y=t.locations[u],Dt=t.locations[p];this.xAxis instanceof $&&this.dataFields[this.xField]!=this.dataFields[this.xOpenField]&&(Y=0,Dt=0),n=this.xAxis.getX(t,u,Y),r=this.xAxis.getX(t,p,Dt);var zt=Math.ceil(this.xAxis.axisLength);(n<0&&r<0||n>zt&&r>zt)&&(k=!0),n=this.fixHorizontalCoordinate(n),r=this.fixHorizontalCoordinate(r),Math.abs(a-o)-T-D==0&&(k=!0)}var It=Math.abs(n-r),Tt=Math.abs(o-a),qt=Math.min(r,n),Mt=Math.min(a,o);if(k)this.disableUnusedColumns(t);else{var X;t.column?(X=t.column,this._propertiesChanged&&(kt(this,X,Ot),kt(this.columns.template,X,Ot),L(Ot,function(ht){X[ht]=X[ht]}))):(X=this.columns.create(),kt(this,X,Ot),kt(this.columns.template,X,Ot),t.addSprite(X),t.column=X,X.paper=this.paper,this.itemsFocusable()?(b(this.role)||(this.role="menu"),b(X.role)||(X.role="menuitem"),X.focusable=!0):(b(this.role)||(this.role="list"),b(X.role)||(X.role="listitem"),X.focusable=!1),X.focusable&&(X.events.on("focus",function(ht){X.readerTitle=e.populateString(e.itemReaderText,t)},void 0,!1),X.events.on("blur",function(ht){X.readerTitle=""},void 0,!1)),X.hoverable&&(X.events.on("over",function(ht){X.readerTitle=e.populateString(e.itemReaderText,t)},void 0,!1),X.events.on("out",function(ht){X.readerTitle=""},void 0,!1)),X.parent=this.columnsContainer,X.virtualParent=this),X.width=It,X.height=Tt,X.x=qt,X.y=Mt,X.realX=r,X.realY=a,X.realWidth=n-r,X.realHeight=o-a,this.setColumnStates(X),X.invalid&&X.validate(),X.__disabled=!1,A(this.axisRanges.iterator(),function(ht){var _t=t.rangesColumns.getKey(ht.uid);_t||(_t=e.columns.create(),kt(ht.contents,_t,Ot),t.addSprite(_t),t.rangesColumns.setKey(ht.uid,_t),_t.paper=e.paper),_t.parent=ht.contents,_t.width=It,_t.height=Tt,_t.x=qt,_t.y=Mt,e.setColumnStates(_t),_t.invalid&&_t.validate(),_t.__disabled=!1})}t.itemWidth=It,t.itemHeight=Tt},i.prototype.disableUnusedColumns=function(t){t&&(t.column&&(t.column.width=0,t.column.height=0,t.column.__disabled=!0),A(this.axisRanges.iterator(),function(e){var r=t.rangesColumns.getKey(e.uid);r&&(r.width=0,r.height=0,r.__disabled=!0)}))},i.prototype.setColumnStates=function(t){if(this._dropFromOpenState||this._dropFromPreviousState||this._riseFromOpenState||this._riseFromPreviousState){var e=t.dataItem;if(this.xAxis instanceof $||this.yAxis instanceof $){var r,n=void 0,a=void 0;this.baseAxis==this.yAxis?(this.xOpenField&&this.xField&&this.xAxis instanceof $&&(r=e.getValue(this.xOpenField),n=e.getValue(this.xField)),a=e.getValue(this.xAxis.axisFieldName+"X","previousChange")):(this.yOpenField&&this.yField&&this.yAxis instanceof $&&(r=e.getValue(this.yOpenField),n=e.getValue(this.yField)),a=e.getValue(this.yAxis.axisFieldName+"Y","previousChange")),n<r?(e.droppedFromOpen=!0,t.defaultState.copyFrom(this._dropFromOpenState),t.setState(this._dropFromOpenState,0)):(e.droppedFromOpen=!1,t.defaultState.copyFrom(this._riseFromOpenState),t.setState(this._riseFromOpenState,0)),a<0?(e.droppedFromPrevious=!0,t.defaultState.copyFrom(this._dropFromPreviousState),t.setState(this._dropFromPreviousState,0)):(e.droppedFromPrevious=!1,t.defaultState.copyFrom(this._riseFromPreviousState),t.setState(this._riseFromPreviousState,0))}}},Object.defineProperty(i.prototype,"columns",{get:function(){return this._columns||(this._columns=new Ct(this.createColumnTemplate()),this._disposers.push(new ft(this._columns)),this._disposers.push(this._columns.template)),this._columns},enumerable:!0,configurable:!0}),i.prototype.createColumnTemplate=function(){return new li},Object.defineProperty(i.prototype,"clustered",{get:function(){return this.getPropertyValue("clustered")},set:function(t){this.setPropertyValue("clustered",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dropFromOpenState",{get:function(){return this._dropFromOpenState||(this._dropFromOpenState=this.states.create("dropFromOpenState")),this._dropFromOpenState},set:function(t){this._dropFromOpenState=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dropFromPreviousState",{get:function(){return this._dropFromPreviousState||(this._dropFromPreviousState=this.states.create("dropFromPreviousState")),this._dropFromPreviousState},set:function(t){this._dropFromPreviousState=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"riseFromOpenState",{get:function(){return this._riseFromOpenState||(this._riseFromOpenState=this.states.create("riseFromOpenState")),this._riseFromOpenState},set:function(t){this._riseFromOpenState=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"riseFromPreviousState",{get:function(){return this._riseFromPreviousState||(this._riseFromPreviousState=this.states.create("riseFromPreviousState")),this._riseFromPreviousState},set:function(t){this._riseFromPreviousState=t},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(t,e){var r=this;if(s.prototype.updateLegendValue.call(this,t,e),this.legendDataItem){var n=this.legendDataItem.marker,a,o;t&&(t.droppedFromOpen?a=this._dropFromOpenState:a=this._riseFromOpenState,t.droppedFromPrevious?o=this._dropFromPreviousState:o=this._riseFromPreviousState),A(n.children.iterator(),function(l){t?(l.setState(o),l.setState(a)):(l.setState(r._riseFromPreviousState),l.setState(r._riseFromOpenState))})}},i.prototype.createLegendMarker=function(t){var e=t.pixelWidth,r=t.pixelHeight;t.removeChildren();var n=t.createChild(Ae);n.shouldClone=!1,kt(this,n,Ot),n.copyFrom(this.columns.template),n.padding(0,0,0,0),n.width=e,n.height=r;var a=t.dataItem;a.color=this.fill,a.colorOrig=this.fill},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.columns.template.copyFrom(t.columns.template)},i.prototype.getBulletLocationX=function(t,e){if(this.baseAxis==this.xAxis){var r=t.locationX;v(r)||(r=.5);var n=this.getEndLocation(t.dataItem),a=this.getStartLocation(t.dataItem);return n-(n-a)*r}else return s.prototype.getBulletLocationX.call(this,t,e)},i.prototype.getBulletLocationY=function(t,e){if(this.baseAxis==this.yAxis){var r=t.locationY;v(r)||(r=.5);var n=this.getEndLocation(t.dataItem),a=this.getStartLocation(t.dataItem);return n-(n-a)*r}else return s.prototype.getBulletLocationY.call(this,t,e)},i.prototype.getAdjustedXLocation=function(t,e,r){return v(r)||(t?r=t.locations[e]:r=.5),this._endLocation-(this._endLocation-this._startLocation)*(1-r)},i.prototype.getAdjustedYLocation=function(t,e,r){return v(r)||(t?r=t.locations[e]:r=.5),this._endLocation-(this._endLocation-this._startLocation)*r},i.prototype.fixVerticalCoordinate=function(t){var e=this.columns.template.pixelPaddingBottom,r=this.columns.template.pixelPaddingTop,n=-r,a=this.yAxis.axisLength+e;return B(t,n,a)},i.prototype.fixHorizontalCoordinate=function(t){var e=this.columns.template.pixelPaddingLeft,r=this.columns.template.pixelPaddingRight,n=-e,a=this.xAxis.axisLength+r;return B(t,n,a)},i.prototype.disposeData=function(){s.prototype.disposeData.call(this),this.columns.clear()},i}(ni);_.registeredClasses.ColumnSeries=Ge;_.registeredClasses.ColumnSeriesDataItem=Ue;var Qo=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="TreeMapSeriesDataItem",t.applyTheme(),t}return Object.defineProperty(i.prototype,"parentName",{get:function(){var t=this.treeMapDataItem;if(t&&t.parent)return t.parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){var t=this.treeMapDataItem;if(t)return t.value},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"treeMapDataItem",{get:function(){return this._dataContext},enumerable:!0,configurable:!0}),i.prototype.hide=function(t,e,r,n){var a=this.treeMapDataItem;return a&&a.hide(t),s.prototype.hide.call(this,t,e,r,n)},i.prototype.show=function(t,e,r){var n=this.treeMapDataItem;return n&&n.show(t,e,r),s.prototype.show.call(this,t,e,r)},i}(Ue),is=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="TreeMapSeries",t.applyTheme(),t.fillOpacity=1,t.strokeOpacity=1,t.minBulletDistance=0,t.columns.template.tooltipText="{parentName} {name}: {value}",t.columns.template.configField="config";var e=new nt;return t.stroke=e.getFor("background"),t.dataFields.openValueX="x0",t.dataFields.valueX="x1",t.dataFields.openValueY="y0",t.dataFields.valueY="y1",t.sequencedInterpolation=!1,t.showOnInit=!1,t.columns.template.pixelPerfect=!1,t}return i.prototype.processDataItem=function(t,e){e.seriesDataItem=t,s.prototype.processDataItem.call(this,t,e)},i.prototype.createDataItem=function(){return new Qo},i.prototype.show=function(t){if(!this.preventShow){var e=this.defaultState.transitionDuration;return v(t)&&(e=t),this.dataItems.each(function(r){r.show(t)}),s.prototype.showReal.call(this,e)}},i.prototype.hide=function(t){var e=this.defaultState.transitionDuration;v(t)&&(e=t);var r=s.prototype.hideReal.call(this,e);return this.dataItems.each(function(n){n.hide(t)}),r},i.prototype.processValues=function(){},i.prototype.getStartLocation=function(t){return 0},i.prototype.getEndLocation=function(t){return 1},i.prototype.dataChangeUpdate=function(){},i.prototype.processConfig=function(t){t&&(!b(t.dataFields)||!gt(t.dataFields))&&(t.dataFields={}),s.prototype.processConfig.call(this,t)},i.prototype.createLegendMarker=function(t){var e=t.pixelWidth,r=t.pixelHeight;t.removeChildren();var n=t.createChild(Ae);n.shouldClone=!1,kt(this,n,Ot),n.padding(0,0,0,0),n.width=e,n.height=r;var a=t.dataItem;a.color=n.fill,a.colorOrig=n.fill},i.prototype.disableUnusedColumns=function(t){s.prototype.disableUnusedColumns.call(this,t),t.column&&(t.column.__disabled=!1)},i}(Ge);_.registeredClasses.TreeMapSeries=is;_.registeredClasses.TreeMapSeriesDataItem=Qo;var Mp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.rows=[],t.className="TreeMapDataItem",t.values.value={workingValue:0},t.values.x0={},t.values.y0={},t.values.x1={},t.values.y1={},t.hasChildren.children=!0,t.applyTheme(),t}return Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,t.label&&(t.label.dataItem=this),t.valueLabel&&(t.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),i.prototype.getDuration=function(){return 0},Object.defineProperty(i.prototype,"value",{get:function(){var t=0;return!this.children||this.children.length==0?t=this.values.value.workingValue:A(this.children.iterator(),function(e){var r=e.value;v(r)&&(t+=r)}),t},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"percent",{get:function(){return this.parent?this.value/this.parent.value*100:100},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x0",{get:function(){return this.values.x0.value},set:function(t){this.setValue("x0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x1",{get:function(){return this.values.x1.value},set:function(t){this.setValue("x1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y0",{get:function(){return this.values.y0.value},set:function(t){this.setValue("y0",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y1",{get:function(){return this.values.y1.value},set:function(t){this.setValue("y1",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.properties.name},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"children",{get:function(){return this.properties.children},set:function(t){this.setProperty("children",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){var t=this.properties.color;return t==n
172ull&&this.parent&&(t=this.parent.color),t==null&&this.component&&(t=this.component.colors.getIndex(this.component.colors.step*this.index)),t},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.color},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this._series},set:function(t){t!=this._series&&(this._series&&(this.component.series.removeValue(this._series),this._series.dispose()),this._series=t,this._disposers.push(t))},enumerable:!0,configurable:!0}),i.prototype.hide=function(t,e,r,n){this.setWorkingValue("value",0),this.children&&this.children.each(function(o){o.hide(t,e,r,n)});var a=this.seriesDataItem;return a&&a.bullets.each(function(o,l){l.hide(),l.preventShow=!0}),s.prototype.hide.call(this,t,e,r,n)},i.prototype.show=function(t,e,r){this.setWorkingValue("value",this.values.value.value),this.children&&this.children.each(function(a){a.show(t,e,r)});var n=this.seriesDataItem;return n&&n.bullets.each(function(a,o){o.preventShow=!1}),s.prototype.show.call(this,t,e,r)},i}(Ts),jp=function(s){w(i,s);function i(){var t=s.call(this)||this;t.layoutAlgorithm=t.squarify,t.zoomable=!0,t.className="TreeMap",t._usesData=!0,t.maxLevels=2,t.currentLevel=0,t.hideParentColumns=!1,t.colors=new $i,t.sorting="descending";var e=t.xAxes.push(new $);e.title.disabled=!0,e.strictMinMax=!0;var r=e.renderer;r.inside=!0,r.labels.template.disabled=!0,r.ticks.template.disabled=!0,r.grid.template.disabled=!0,r.axisFills.template.disabled=!0,r.minGridDistance=100,r.line.disabled=!0,r.baseGrid.disabled=!0;var n=t.yAxes.push(new $);n.title.disabled=!0,n.strictMinMax=!0;var a=n.renderer;a.inside=!0,a.labels.template.disabled=!0,a.ticks.template.disabled=!0,a.grid.template.disabled=!0,a.axisFills.template.disabled=!0,a.minGridDistance=100,a.line.disabled=!0,a.baseGrid.disabled=!0,a.inversed=!0,t.xAxis=e,t.yAxis=n;var o=new is;return t.seriesTemplates=new Wi(o),o.virtualParent=t,t._disposers.push(new ei(t.seriesTemplates)),t._disposers.push(o),t.zoomOutButton.events.on("hit",function(){t.zoomToChartDataItem(t._homeDataItem)},void 0,!1),t.seriesTemplates.events.on("insertKey",function(l){l.newValue.isTemplate=!0},void 0,!1),t.applyTheme(),t}return Object.defineProperty(i.prototype,"navigationBar",{get:function(){return this._navigationBar},set:function(t){var e=this;this._navigationBar!=t&&(this._navigationBar=t,t.parent=this,t.toBack(),t.links.template.events.on("hit",function(r){var n=r.target.dataItem.dataContext;n.isDisposed()||(e.zoomToChartDataItem(n),e.createTreeSeries(n))},void 0,!0),this._disposers.push(t))},enumerable:!0,configurable:!0}),i.prototype.validateData=function(){this.series.clear(),this._tempSeries=[],s.prototype.validateData.call(this),this._homeDataItem&&this._homeDataItem.dispose();var t=this.dataItems.template.clone();this._homeDataItem=t,A(this.dataItems.iterator(),function(n){n.parent=t}),t.children=this.dataItems,t.x0=0,t.y0=0,t.name=this._homeText;var e=1e3,r=Math.round(e*this.pixelHeight/this.pixelWidth/10)*10||1e3;t.x1=e,t.y1=r,this.xAxis.min=0,this.xAxis.max=e,this.xAxis.getMinMax(),this.yAxis.min=0,this.yAxis.max=r,this.yAxis.getMinMax(),this.layoutItems(t),this.createTreeSeries(t),this.feedLegend()},i.prototype.layoutItems=function(t,e){if(t){var r=t.children;e||(e=this.sorting),e=="ascending"&&r.values.sort(function(l,h){return l.value-h.value}),e=="descending"&&r.values.sort(function(l,h){return h.value-l.value}),this._updateDataItemIndexes(0),this.layoutAlgorithm(t);for(var n=0,a=r.length;n<a;n++){var o=r.getIndex(n);o.children&&this.layoutItems(o)}}},i.prototype.createTreeSeries=function(t){var e=this;this._tempSeries=[];for(var r=[t],n=t.parent;n!=null;)this.initSeries(n),r.push(n),n=n.parent;r.reverse(),this.navigationBar&&(this.navigationBar.data=r),this.createTreeSeriesReal(t),L(this._tempSeries,function(a){e.series.indexOf(a)==-1&&e.series.push(a),a.zIndex=a.level})},i.prototype.createTreeSeriesReal=function(t){if(t.children){var e=t.level;if(e<this.currentLevel+this.maxLevels){this.initSeries(t);for(var r=0;r<t.children.length;r++){var n=t.children.getIndex(r);n.children&&this.createTreeSeriesReal(n)}}}},i.prototype.setData=function(t){this.currentLevel=0,this.currentlyZoomed=void 0,this.xAxis.start=0,this.xAxis.end=1,this.yAxis.start=0,this.yAxis.end=1,s.prototype.setData.call(this,t)},i.prototype.seriesAppeared=function(){return!0},i.prototype.initSeries=function(t){var e=this;if(!t.series){var r=void 0,n=this.seriesTemplates.getKey(t.level.toString());n?r=n.clone():r=this.series.create(),r.dataItem.dataContext=t,r.name=t.name,r.parentDataItem=t,t.series=r;var a=t.level;r.level=a;var o=t.dataContext;o&&(r.config=o.config),this.dataUsers.removeValue(r),r.data=t.children.values,r.fill=t.color,r.columnsContainer.hide(0),r.bulletsContainer.hide(0),r.columns.template.adapter.add("fill",function(l,h){var u=h.dataItem;if(u){var p=u.treeMapDataItem;if(p)return h.fill=p.color,h.adapter.remove("fill"),p.color}}),this.zoomable&&(t.level>this.currentLevel||t.children&&t.children.length>0)&&(r.columns.template.cursorOverStyle=Ht.pointer,this.zoomable&&r.columns.template.events.on("hit",function(l){var h=l.target.dataItem;t.level>e.currentLevel?e.zoomToChartDataItem(h.treeMapDataItem.parent):e.zoomToSeriesD
172ataItem(h)},this,void 0))}this._tempSeries.push(t.series)},i.prototype.toggleBullets=function(t){var e=this;A(this.series.iterator(),function(r){e._tempSeries.indexOf(r)==-1?(r.columnsContainer.hide(),r.bulletsContainer.hide(t)):(r.columnsContainer.show(),r.bulletsContainer.show(t),r.dataItems.each(function(n){n.bullets.each(function(a,o){o.show()})}),r.level<e.currentLevel?(e.hideParentColumns&&r.columnsContainer.hide(),r.bulletsContainer.hide(t)):r.level==e.currentLevel&&e.maxLevels>1&&r.dataItems.each(function(n){n.treeMapDataItem.children&&n.bullets.each(function(a,o){o.hide()})}))})},i.prototype.zoomToSeriesDataItem=function(t){this.zoomToChartDataItem(t.treeMapDataItem)},i.prototype.zoomToChartDataItem=function(t){var e=this;t||(t=this._homeDataItem);var r=this.zoomOutButton;if(r&&(t!=this._homeDataItem?r.show():r.hide()),t&&t.children){this.xAxis.zoomToValues(t.x0,t.x1),this.yAxis.zoomToValues(t.y0,t.y1),this.currentLevel=t.level,this.currentlyZoomed=t,this.createTreeSeries(t);var n=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;n&&!n.isDisposed()&&!n.isFinished()?(this._dataDisposers.push(n),n.events.once("animationended",function(){e.toggleBullets()})):this.toggleBullets()}},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},i.prototype.createDataItem=function(){return new Mp},Object.defineProperty(i.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(t){this.setPropertyValue("maxLevels",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(t){this.setPropertyValue("currentLevel",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideParentColumns",{get:function(){return this.getPropertyValue("hideParentColumns")},set:function(t){this.setPropertyValue("hideParentColumns",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(t){this.setPropertyValue("sorting",t,!0)},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new is},Object.defineProperty(i.prototype,"homeText",{get:function(){return this._homeText},set:function(t){this._homeText=t,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(t){if(t){if(b(t.layoutAlgorithm)&&tt(t.layoutAlgorithm))switch(t.layoutAlgorithm){case"squarify":t.layoutAlgorithm=this.squarify;break;case"binaryTree":t.layoutAlgorithm=this.binaryTree;break;case"slice":t.layoutAlgorithm=this.slice;break;case"dice":t.layoutAlgorithm=this.dice;break;case"sliceDice":t.layoutAlgorithm=this.sliceDice;break;default:delete t.layoutAlgorithm;break}b(t.navigationBar)&&!b(t.navigationBar.type)&&(t.navigationBar.type="NavigationBar"),s.prototype.processConfig.call(this,t)}},i.prototype.validateLayout=function(){s.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},i.prototype.validateDataItems=function(){s.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),A(this.series.iterator(),function(t){t.validateRawData()}),this.zoomToChartDataItem(this._homeDataItem)},i.prototype.binaryTree=function(t){var e=t.children,r,n=e.length,a,o=new Array(n+1);for(o[0]=a=r=0;r<n;++r)o[r+1]=a+=e.getIndex(r).value;n>0&&l(0,n,t.value,t.x0,t.y0,t.x1,t.y1);function l(h,u,p,d,f,c,y){if(h>=u-1){var g=e.getIndex(h);g.x0=d,g.y0=f,g.x1=c,g.y1=y;return}for(var m=o[h],x=p/2+m,P=h+1,S=u-1;P<S;){var C=P+S>>>1;o[C]<x?P=C+1:S=C}x-o[P-1]<o[P]-x&&h+1<P&&--P;var O=o[P]-m,T=p-O;if(p==0){var g=e.getIndex(h);g.x0=d,g.y0=f,g.x1=c,g.y1=y;return}if(c-d>y-f){var D=(d*T+c*O)/p;l(h,P,O,d,f,D,y),l(P,u,T,D,f,c,y)}else{var k=(f*T+y*O)/p;l(h,P,O,d,f,c,k),l(P,u,T,d,k,c,y)}}},i.prototype.slice=function(t){for(var e=t.x0,r=t.x1,n=t.y0,a=t.y1,o=t.children,l,h=-1,u=o.length,p=t.value&&(a-n)/t.value;++h<u;)l=o.getIndex(h),l.x0=e,l.x1=r,l.y0=n,n+=l.value*p,l.y1=n},i.prototype.dice=function(t){for(var e=t.x0,r=t.x1,n=t.y0,a=t.y1,o=t.children,l,h=-1,u=o.length,p=t.value&&(r-e)/t.value;++h<u;)l=o.getIndex(h),l.y0=n,l.y1=a,l.x0=e,e+=l.value*p,l.x1=e},i.prototype.sliceDice=function(t){t.level&1?this.slice(t):this.dice(t)},i.prototype.squarify=function(t){for(var e=(1+Math.sqrt(5))/2,r=t.x0,n=t.x1,a=t.y0,o=t.y1,l=t.children,h,u=0,p=0,d=l.length,f,c,y=t.value,g,m,x,P,S,C,O;u<d;){f=n-r,c=o-a;do g=l.getIndex(p++).value;while(!g&&p<d);for(m=x=g,C=Math.max(c/f,f/c)/(y*e),O=g*g*C,S=Math.max(x/O,O/m);p<d;++p){if(g+=h=l.getIndex(p).value,h<m&&(m=h),h>x&&(x=h),O=g*g*C,P=Math.max(x/O,O/m),P>S){g-=h;break}S=P}var T=this.dataItems.template.clone();T.value=g,T.dice=f<c,T.children=l.slice(u,p),T.x0=r,T.y0=a,T.x1=n,T.y1=o,T.dice?(T.y1=y?a+=c*g/y:o,this.dice(T)):(T.x1=y?r+=f*g/y:n,this.slice(T)),y-=g,u=p}},i.prototype.handleSeriesAdded2=function(){},i.prototype.handleDataItemValueChange=function(t,e){e=="value"&&this.invalidateDataItems()},i.prototype.handleDataItemWorkingValueChange=function(t,e){e=="value"&&this.invalidateDataItems()},i.prototype.getLegendLevel=function(t){if(t&&t.children){if(t.children.length>1)return t;if(t.children.length==1){var e=t.children.getIndex(0);return e.children?this.getLegendLevel(e):t}else return t}},i.prototype.handleLegendSeriesAdded=function(t){},Object.defineProperty(i.prototype,"homeDataItem",{get:function(){return this._homeDataItem},enumerable:!0,configurable:!0}),i.prototype.feedLegend=function(){var t=this.legend;if(t){t.dataFields.name="name";var e=this.getLegendLevel(this._homeDataItem);if(e){var r=[];e.children.each(function(n){r.push(n)}),t.data=r}}},i.prototype.disposeData=function(){s.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},i.prototype.getExporting=function(){var t=this,e=s.prototype.getExporting.call(this);return e.adapter.add("formatDataFields",function(r){return(r.format=="csv"||r.format=="xlsx")&&b(t.dataFields.children)&&delete r.dataFields[t.dataFields.children],r}),e},i}(Le);_.registeredClasses.TreeMap=jp;var tl=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._chart=new Et,t.className="AxisRendererX3D",t._disposers.push(t._chart),t.applyTheme(),t}return i.prototype.updateGridElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e);if(t.element){var a=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getHeight();t.path=E({x:a,y:o})+V({x:a,y:l+o})+V({x:0,y:l})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},i.prototype.updateBaseGridElement=function(){s.prototype.updateBaseGridElement.call(this);var t=this.getHeight(),e=this.chart.dx3D||0,r=this.chart.dy3D||0;this.baseGrid.path=E({x:e,y:r})+V({x:0,y:0})+V({x:0,y:t})},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),i.prototype.handle3DChanged=function(t){(t.property=="depth"||t.property=="angle")&&this.invalidate()},i}(je);_.registeredClasses.AxisRendererX3D=tl;var Lp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._chart=new Et,t.className="AxisRendererY3D",t._disposers.push(t._chart),t.applyTheme(),t}return i.prototype.updateGridElement=function(t,e,r){e=e+(r-e)*t.location;var n=this.positionToPoint(e);if(t.element){var a=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getWidth();t.path=E({x:0,y:0})+V({x:a,y:o})+V({x:l+a,y:o})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},i.prototype.updateBaseGridElement=function(){s.prototype.updateBaseGridElement.call(this);var t=this.chart.dx3D||0,e=this.chart.dy3D||0,r=this.getWidth();this.baseGrid.path=E({x:0,y:0})+V({x:r,y:0})+V({x:r+t,y:e})},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),i.prototype.handle3DChanged=function(t){(t.property=="depth"||t.property=="angle")&&this.invalidate()},i}(xe),Ep=function(s){w(i,s);function i(){var t=s.call(this)||this;t.angle=30,t.depth=30,t.className="Rectangle3D",t.layout="none";var e=t.createChild(Z);e.shouldClone=!1,e.setElement(t.paper.add("path")),e.isMeasured=!1,t.sideBack=e,t._disposers.push(t.sideBack);var r=t.createChild(Z);r.shouldClone=!1,r.setElement(t.paper.add("path")),r.isMeasured=!1,t.sideBottom=r,t._disposers.push(t.sideBottom);var n=t.createChild(Z);n.shouldClone=!1,n.setElement(t.paper.add("path")),n.isMeasured=!1,t.sideLeft=n,t._disposers.push(t.sideLeft);var a=t.createChild(Z);a.shouldClone=!1,a.setElement(t.paper.add("path")),a.isMeasured=!1,t.sideRight=a,t._disposers.push(t.sideRight);var o=t.createChild(Z);o.shouldClone=!1,o.setElement(t.paper.add("path")),o.isMeasured=!1,t.sideTop=o,t._disposers.push(t.sideTop);var l=t.createChild(Z);return l.shouldClone=!1,l.setElement(t.paper.add("path")),l.isMeasured=!1,t.sideFront=l,t._disposers.push(t.sideFront),t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.innerWidth,e=this.innerHeight,r=this.depth,n=this.angle,a=M(n),o=j(n),l={x:0,y:0},h={x:t,y:0},u={x:t,y:e},p={x:0,y:e},d={x:r*o,y:-r*a},f={x:r*o+t,y:-r*a},c={x:r*o+t,y:-r*a+e},y={x:r*o,y:-r*a+e};this.sideFront.path=E(l)+V(h)+V(u)+V(p)+At(),this.sideBack.path=E(d)+V(f)+V(c)+V(y)+At(),this.sideLeft.path=E(l)+V(d)+V(y)+V(p)+At(),this.sideRight.path=E(h)+V(f)+V(c)+V(u)+At(),this.sideBottom.path=E(p)+V(y)+V(c)+V(u)+At(),this.sideTop.path=E(l)+V(d)+V(f)+V(h)+At()},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")}
172,set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(t){s.prototype.setFill.call(this,t),(!gt(t)||"r"in t)&&(t=pe(t));var e;if(t instanceof it)e=t.hex;else if(t instanceof ce||t instanceof Ne)e=t.stops.getIndex(0).color.hex;else{var r=new Ms;r.lightness=-.2,this.sideBack.filters.push(r);var n=r.clone();n.lightness=-.4,this.sideLeft.filters.push(n);var a=r.clone();a.lightness=-.2,this.sideRight.filters.push(a);var o=r.clone();o.lightness=-.1,this.sideTop.filters.push(o);var l=r.clone();l.lightness=-.5,this.sideBottom.filters.push(l)}e&&(this.sideBack.fill=H(e).lighten(-.2),this.sideLeft.fill=H(e).lighten(-.4),this.sideRight.fill=H(e).lighten(-.2),this.sideTop.fill=H(e).lighten(-.1),this.sideBottom.fill=H(e).lighten(-.5))},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.sideBack.copyFrom(t.sideBack),this.sideLeft.copyFrom(t.sideLeft),this.sideRight.copyFrom(t.sideRight),this.sideTop.copyFrom(t.sideTop),this.sideBottom.copyFrom(t.sideBottom)},i}(N),el=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Column3D",t}return i.prototype.createAssets=function(){this.column3D=this.createChild(Ep),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},i.prototype.validate=function(){s.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.column3D&&this.column3D.copyFrom(t.column3D)},i.prototype.setFill=function(t){s.prototype.setFill.call(this,t),this.column.fill=t},i}(li);_.registeredClasses.Column3D=el;var Rp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ColumnSeries3DDataItem",t.applyTheme(),t}return i}(Ue),rs=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ColumnSeries3D",t.columns.template.column3D.applyOnClones=!0,t.columns.template.hiddenState.properties.visible=!0,t.applyTheme(),t}return Object.defineProperty(i.prototype,"columnsContainer",{get:function(){var t=this.chart;return t&&t.columnsContainer&&t.leftAxesContainer.layout!="vertical"&&t.rightAxesContainer.layout!="vertical"&&t.bottomAxesContainer.layout!="horizontal"&&t.topAxesContainer.layout!="horizontal"?t.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),i.prototype.validateDataElementReal=function(t){s.prototype.validateDataElementReal.call(this,t),t.column&&(t.column.dx=this.dx,t.column.dy=this.dy,t.column.visible=this.visible)},i.prototype.validateDataElements=function(){s.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},i.prototype.createColumnTemplate=function(){return new el},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0);var e=this.columns.template;e.column3D.depth=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t);var e=this.columns.template;e.column3D.angle=t},enumerable:!0,configurable:!0}),i}(Ge);_.registeredClasses.ColumnSeries3D=rs;_.registeredClasses.ColumnSeries3DDataItem=Rp;(function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="XYChart3DDataItem",t.applyTheme(),t}return i})(Ts);var Bp=function(s){w(i,s);function i(){var t=s.call(this)||this;t._axisRendererX=tl,t._axisRendererY=Lp,t.className="XYChart3D",t.depth=30,t.angle=30;var e=t.seriesContainer.createChild(N);return e.shouldClone=!1,e.isMeasured=!1,e.layout="none",t.columnsContainer=e,t.columnsContainer.mask=t.createChild(Z),t.applyTheme(),t}return i.prototype.updateSeriesMasks=function(){if(s.prototype.updateSeriesMasks.call(this),Hi()){var t=this.columnsContainer,e=t.mask;t.mask=void 0,t.mask=e}},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")}
172,set:function(t){this.setPropertyValue("angle",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx3D",{get:function(){return j(this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy3D",{get:function(){return-M(this.angle)*this.depth},enumerable:!0,configurable:!0}),i.prototype.validateLayout=function(){s.prototype.validateLayout.call(this),this.fixColumns()},i.prototype.fixLayout=function(){this.chartContainer.paddingTop=-this.dy3D,this.chartContainer.paddingRight=this.dx3D,this.scrollbarX&&(this.scrollbarX.dy=this.dy3D,this.scrollbarX.dx=this.dx3D),this.scrollbarY&&(this.scrollbarY.dy=this.dy3D,this.scrollbarY.dx=this.dx3D),this.fixColumns(),s.prototype.fixLayout.call(this)},i.prototype.fixColumns=function(){var t=this,e=1,r=0;A(this.series.iterator(),function(a){a instanceof rs&&(!a.clustered&&r>0&&e++,a.depthIndex=e-1,r++)});var n=0;A(this.series.iterator(),function(a){if(a instanceof rs){a.depth=t.depth/e,a.angle=t.angle,a.columnsContainer==t.columnsContainer&&(a.dx=t.depth/e*j(t.angle)*a.depthIndex,a.dy=-t.depth/e*M(t.angle)*a.depthIndex);var o=!1;(a.baseAxis==a.xAxis&&a.xAxis.renderer.inversed||a.baseAxis==a.yAxis&&a.yAxis.renderer.inversed)&&(o=!0);var l=1;a.dataItems.each(function(h){var u=h.column;u&&(o?u.zIndex=1e3*(1e3-l)+n-a.depthIndex*100:u.zIndex=1e3*l+n-a.depthIndex*100),l++}),o?n--:n++}}),this.maskColumns()},i.prototype.processConfig=function(t){if(t&&b(t.series)&&Wt(t.series))for(var e=0,r=t.series.length;e<r;e++)t.series[e].type=t.series[e].type||"ColumnSeries3D";s.prototype.processConfig.call(this,t)},i.prototype.maskColumns=function(){var t=this.plotContainer.pixelWidth,e=this.plotContainer.pixelHeight,r=this.dx3D,n=this.dy3D,a=E({x:0,y:0})+V({x:r,y:n})+V({x:t+r,y:n})+V({x:t+r,y:e+n})+V({x:t,y:e})+V({x:t,y:e})+V({x:0,y:e})+At(),o=this.columnsContainer;o&&o.mask&&(o.mask.path=a)},i}(Le);_.registeredClasses.XYChart3D=Bp;var Wp=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="HeatLegend",t.markerContainer=t.createChild(N),t.markerContainer.shouldClone=!1,t.markerCount=1;var e=new Ae;return e.minHeight=20,e.minWidth=20,e.interactionsEnabled=!1,e.fillOpacity=1,e.cornerRadius(0,0,0,0),t.markerContainer.minHeight=20,t.markerContainer.minWidth=20,t.orientation="horizontal",t.markers=new Ct(e),t._disposers.push(new ft(t.markers)),t._disposers.push(t.markers.template),t.applyTheme(),t}return i.prototype.getMinFromRules=function(t){var e=this.series;if(e){var r;return he(e.heatRules.iterator(),function(n){return n.property==t?(r=n.min,!1):!0}),r}},i.prototype.getMaxFromRules=function(t){var e=this.series;if(e){var r;return A(e.heatRules.iterator(),function(n){return n.property==t?(r=n.max,!1):!0}),r}},i.prototype.validate=function(){s.prototype.validate.call(this),this.valueAxis.renderer.inversed=this.reverseOrder;var t=this.series,e=this.minColor,r=this.maxColor;if(b(e)||(e=pe(this.getMinFromRules("fill"))),b(r)||(r=pe(this.getMaxFromRules("fill"))),t){var n=t.fill;!b(e)&&n instanceof it&&(e=n),!b(r)&&n instanceof it&&(r=n)}b(r)||(r=pe(this.getMaxFromRules("fill")));var a=dt(this.getMinFromRules("fillOpacity"));v(a)||(a=1);var o=dt(this.getMaxFromRules("fillOpacity"));v(o)||(o=1);var l=dt(this.getMinFromRules("strokeOpacity"));v(l)||(l=1);var h=dt(this.getMaxFromRules("strokeOpacity"));v(h)||(h=1);for(var u=pe(this.getMinFromRules("stroke")),p=pe(this.getMaxFromRules("stroke")),d=0;d<this.markerCount;d++){var f=this.markers.getIndex(d);if(f||(f=this.markers.create(),f.parent=this.markerContainer,f.height=I(100),f.width=I(100)),this.markerCount==1){var c=new ce;if(this.reverseOrder?(c.addColor(r,o),c.addColor(e,a)):(c.addColor(e,a),c.addColor(r,o)),this.orientation=="vertical"&&(c.rotation=-90),f.fill=c,b(u)&&b(p)){var y=new ce;this.reverseOrder?(y.addColor(p,h),y.addColor(u,l)):(y.addColor(u,l),y.addColor(p,h)),this.orientation=="vertical"&&(y.rotation=-90),f.stroke=y}}else{var g=d;this.reverseOrder&&(g=this.markerCount-d-1);var m=new it(Ir(e.rgb,r.rgb,g/this.markerCount));f.fill=m;var x=a+(o-a)*g/this.markerCount;if(f.fillOpacity=x,b(u)&&b(p)){var P=new it(Ir(u.rgb,p.rgb,g/this.markerCount));f.stroke=P;var S=l+(h-l)*g/this.markerCount;f.strokeOpacity=S}}}var C=this.valueAxis.renderer;this.markerCount>1&&(this.orientation=="horizontal"?C.minGridDistance=this.measuredWidth/this.markerCount:C.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate();for(var d=this.markerCount,O=this.markers.length;d<O;d++)this.markers.getIndex(d).parent=void 0},Object.defineProperty(i.prototype,"minColor",{get:function(){return this.getPropertyValue("minColor")}
172,set:function(t){t instanceof it||(t=pe(t)),this.setColorProperty("minColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxColor",{get:function(){return this.getPropertyValue("maxColor")},set:function(t){t instanceof it||(t=pe(t)),this.setColorProperty("maxColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerCount",{get:function(){return this.getPropertyValue("markerCount")},set:function(t){this.setPropertyValue("markerCount",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(t){this.setPropertyValue("minValue",t),this.valueAxis.min=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(t){this.setPropertyValue("maxValue",t),this.valueAxis.max=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.markerContainer,r=this.valueAxis;t=="horizontal"?(b(this.width)||(this.width=200),this.height=void 0,r.width=I(100),r.height=void 0,r.tooltip.pointerOrientation="vertical",this.layout="vertical",e.width=I(100),e.height=void 0,r.renderer instanceof je||(r.renderer=new je)):(b(this.height)||(this.height=200),this.width=void 0,this.layout="horizontal",e.width=void 0,e.height=I(100),r.height=I(100),r.width=void 0,r.tooltip.pointerOrientation="horizontal",r.renderer instanceof xe||(r.renderer=new xe),r.renderer.inside=!0,r.renderer.labels.template.inside=!0,this.markerContainer.reverseOrder=!0);var n=r.renderer;n.grid.template.disabled=!0,n.axisFills.template.disabled=!0,n.baseGrid.disabled=!0,n.labels.template.padding(2,3,2,3),n.minHeight=void 0,n.minWidth=void 0,this.markerContainer.layout=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueAxis",{get:function(){return this._valueAxis||(this.valueAxis=this.createChild($),this.valueAxis.shouldClone=!1),this._valueAxis},set:function(t){this._valueAxis=t,t.parent=this,t.strictMinMax=!0,this.orientation=this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this._series},set:function(t){var e=this;this._series=t;var r="value";try{var n=t.heatRules.getIndex(0).dataField;n&&(r=n)}catch{}this.updateMinMax(t.dataItem.values[r].low,t.dataItem.values[r].high),t.dataItem.events.on("calculatedvaluechanged",function(a){e.updateMinMax(t.dataItem.values[r].low,t.dataItem.values[r].high)},void 0,!1),t.heatRules.events.on("inserted",this.invalidate,this,!1),t.heatRules.events.on("removed",this.invalidate,this,!1)},enumerable:!0,configurable:!0}),i.prototype.updateMinMax=function(t,e){var r=this.valueAxis;v(this.minValue)||(r.min=t,r.invalidate()),v(this.maxValue)||(r.max=e,r.invalidate())},i.prototype.processConfig=function(t){if(t&&b(t.series)&&tt(t.series)&&tt(t.series))if(this.map.hasKey(t.series))t.series=this.map.getKey(t.series);else{var e=t.series,r=this.map.events.on("insertKey",function(n){n.key==e&&(this.series=n.newValue,r.dispose())},this);this._disposers.push(r),delete t.series}s.prototype.processConfig.call(this,t)},i}(N);_.registeredClasses.HeatLegend=Wp;var Kr=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Candlestick",t.layout="none",t}return i.prototype.createAssets=function(){s.prototype.createAssets.call(this),this.lowLine=this.createChild(ve),this.lowLine.shouldClone=!1,this.highLine=this.createChild(ve),this.highLine.shouldClone=!1},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.lowLine&&this.lowLine.copyFrom(t.lowLine),this.highLine&&this.highLine.copyFrom(t.highLine)},i}(li);_.registeredClasses.Candlestick=Kr;var Rs=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.values.lowValueX={},t.values.lowValueY={},t.values.highValueX={},t.values.highValueY={},t.className="CandlestickSeriesDataItem",t.applyTheme(),t}return Object.defineProperty(i.prototype,"lowValueX",{get:function(){return this.values.lowValueX.value},set:function(t){this.setValue("lowValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lowValueY",{get:function(){return this.values.lowValueY.value},set:function(t){this.setValue("lowValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"highValueX",{get:function(){return this.values.highValueX.value},set:function(t){this.setValue("highValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"highValueY",{get:function(){return this.values.highValueY.value},set:function(t){this.setValue("highValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closeValueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closeValueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),i}(Ue),il=function(s){w(i,s);function i(){var t=s.call(this)||this;
172t.className="CandlestickSeries",t.groupFields.lowValueX="low",t.groupFields.lowValueY="low",t.groupFields.highValueX="high",t.groupFields.highValueY="high",t.strokeOpacity=1;var e=new nt,r=e.getFor("positive"),n=e.getFor("negative");return t.dropFromOpenState.properties.fill=n,t.dropFromOpenState.properties.stroke=n,t.riseFromOpenState.properties.fill=r,t.riseFromOpenState.properties.stroke=r,t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Candlestick Series"))},i.prototype.createDataItem=function(){return new Rs},i.prototype.validateDataElementReal=function(t){s.prototype.validateDataElementReal.call(this,t),this.validateCandlestick(t)},i.prototype.validateCandlestick=function(t){var e=t.column;if(e){var r=e.lowLine,n=e.highLine;if(this.baseAxis==this.xAxis){var a=e.pixelWidth/2;r.x=a,n.x=a;var o=t.getWorkingValue(this.yOpenField),l=t.getWorkingValue(this.yField),h=this.yAxis.getY(t,this.yOpenField),u=this.yAxis.getY(t,this.yField),p=this.yAxis.getY(t,this.yLowField),d=this.yAxis.getY(t,this.yHighField),f=e.pixelY;r.y1=p-f,n.y1=d-f,o<l?(r.y2=h-f,n.y2=u-f):(r.y2=u-f,n.y2=h-f)}if(this.baseAxis==this.yAxis){var c=e.pixelHeight/2;r.y=c,n.y=c;var y=t.getWorkingValue(this.xOpenField),g=t.getWorkingValue(this.xField),m=this.xAxis.getX(t,this.xOpenField),x=this.xAxis.getX(t,this.xField),P=this.xAxis.getX(t,this.xLowField),S=this.xAxis.getX(t,this.xHighField),C=e.pixelX;r.x1=P-C,n.x1=S-C,y<g?(r.x2=m-C,n.x2=x-C):(r.x2=x-C,n.x2=m-C)}A(this.axisRanges.iterator(),function(O){var T=t.rangesColumns.getKey(O.uid);if(T){var D=T.lowLine;D.x=r.x,D.y=r.y,D.x1=r.x1,D.x2=r.x2,D.y1=r.y1,D.y2=r.y2;var k=T.highLine;k.x=n.x,k.y=n.y,k.x1=n.x1,k.x2=n.x2,k.y1=n.y1,k.y2=n.y2}})}},Object.defineProperty(i.prototype,"xLowField",{get:function(){return this._xLowField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yLowField",{get:function(){return this._yLowField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xHighField",{get:function(){return this._xHighField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yHighField",{get:function(){return this._yHighField},enumerable:!0,configurable:!0}),i.prototype.defineFields=function(){s.prototype.defineFields.call(this);var t=this.xAxis,e=this.yAxis;if(t&&e){if(this.baseAxis==t){var r=jr(e.axisFieldName);this._yLowField="low"+r+"Y",this._yHighField="high"+r+"Y"}if(this.baseAxis==e){var n=jr(t.axisFieldName);this._xLowField="low"+n+"X",this._xHighField="high"+n+"X"}this.addValueField(t,this._xValueFields,this._xLowField),this.addValueField(t,this._xValueFields,this._xHighField),this.addValueField(e,this._yValueFields,this._yLowField),this.addValueField(e,this._yValueFields,this._yHighField)}},i.prototype.createLegendMarker=function(t){var e=t.pixelWidth,r=t.pixelHeight;t.removeChildren();var n=t.createChild(Kr);n.shouldClone=!1,n.copyFrom(this.columns.template);var a,o,l=n.lowLine,h=n.highLine;this.baseAxis==this.yAxis?(a=e/3,o=r,l.y=r/2,h.y=r/2,l.x2=e/3,h.x2=e/3,h.x=e/3*2,n.column.x=e/3):(a=e,o=r/3,l.x=e/2,h.x=e/2,l.y2=r/3,h.y2=r/3,h.y=r/3*2,n.column.y=r/3),n.width=a,n.height=o,kt(this,t,Ot),kt(this.columns.template,n,Ot),n.stroke=this.riseFromOpenState.properties.stroke,n.fill=n.stroke;var u=t.dataItem;u.color=n.fill,u.colorOrig=n.fill},i.prototype.createColumnTemplate=function(){return new Kr},i}(Ge);_.registeredClasses.CandlestickSeries=il;_.registeredClasses.CandlestickSeriesDataItem=Rs;var ns=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="OHLC",t.layout="none",t}return i.prototype.createAssets=function(){this.openLine=this.createChild(ve),this.openLine.shouldClone=!1,this.highLowLine=this.createChild(ve),this.highLowLine.shouldClone=!1,this.closeLine=this.createChild(ve),this.closeLine.shouldClone=!1},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.openLine&&this.openLine.copyFrom(t.openLine),this.highLowLine&&this.highLowLine.copyFrom(t.highLowLine),this.closeLine&&this.closeLine.copyFrom(t.closeLine)},i}(Kr);_.registeredClasses.OHLC=ns;var rl=function(s){w(i,s);function i(){var t=s.call(this)||this;
172return t.className="OHLCSeriesDataItem",t.applyTheme(),t}return i}(Rs),Hp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="OHLCSeries",t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("OHLC Series"))},i.prototype.createDataItem=function(){return new rl},i.prototype.validateCandlestick=function(t){var e=t.column;if(e){var r=e.openLine,n=e.highLowLine,a=e.closeLine;if(this.baseAxis==this.xAxis){var o=e.pixelWidth/2;n.x=o,t.getWorkingValue(this.yOpenField),t.getWorkingValue(this.yField);var l=this.yAxis.getY(t,this.yOpenField),h=this.yAxis.getY(t,this.yField),u=this.yAxis.getY(t,this.yLowField),p=this.yAxis.getY(t,this.yHighField),d=e.pixelY;r.y1=l-d,r.y2=l-d,r.x1=0,r.x2=o,a.y1=h-d,a.y2=h-d,a.x1=o,a.x2=2*o,n.y1=p-d,n.y2=u-d}if(this.baseAxis==this.yAxis){var f=e.pixelHeight/2;n.y=f,t.getWorkingValue(this.xOpenField),t.getWorkingValue(this.xField);var c=this.xAxis.getX(t,this.xOpenField),y=this.xAxis.getX(t,this.xField),g=this.xAxis.getX(t,this.xLowField),m=this.xAxis.getX(t,this.xHighField),x=e.pixelX;r.x1=c-x,r.x2=c-x,r.y1=f,r.y2=2*f,a.x1=y-x,a.x2=y-x,a.y1=0,a.y2=f,n.x1=m-x,n.x2=g-x}A(this.axisRanges.iterator(),function(P){var S=t.rangesColumns.getKey(P.uid);if(S){var C=S.openLine;C.x=r.x,C.y=r.y,C.x1=r.x1,C.x2=r.x2,C.y1=r.y1,C.y2=r.y2;var O=S.closeLine;O.x=a.x,O.y=a.y,O.x1=a.x1,O.x2=a.x2,O.y1=a.y1,O.y2=a.y2;var T=S.highLowLine;T.x=n.x,T.y=n.y,T.x1=n.x1,T.x2=n.x2,T.y1=n.y1,T.y2=n.y2}})}},i.prototype.createLegendMarker=function(t){var e=t.pixelWidth,r=t.pixelHeight;t.removeChildren();var n=t.createChild(ns);n.shouldClone=!1,n.copyFrom(this.columns.template);var a,o,l=n.openLine,h=n.closeLine,u=n.highLowLine;this.baseAxis==this.yAxis?(a=e/3,o=r,u.y=r/2,u.x2=e,l.x=e/3*2,l.y2=r/2,h.x=e/3,h.y2=r,h.y1=r/2):(a=e,o=r/3,u.x=e/2,u.y2=r,l.y=r/3*2,l.x2=e/2,h.y=r/3,h.x2=e,h.x1=e/2),n.width=a,n.height=o,kt(this,t,Ot),kt(this.columns.template,n,Ot),n.stroke=this.riseFromOpenState.properties.stroke;var p=t.dataItem;p.color=n.stroke,p.colorOrig=n.stroke},i.prototype.createColumnTemplate=function(){return new ns},i}(il);_.registeredClasses.OHLCSeries=Hp;_.registeredClasses.OHLCSeriesDataItem=rl;var nl=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="StepLineSeriesSegment",t}return i.prototype.drawSegment=function(t,e,r,n,a,o){if(t.length>0&&e.length>0)if(a){var l=E(t[0]);if(t.length>0)for(var h=1;h<t.length;h++){var u=t[h];h/2==Math.round(h/2)?l+=E(u):l+=V(u)}this.strokeSprite.path=l,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(l=E(t[0])+Ai(t),l+=V(e[0])+Ai(e),l+=V(t[0]),l+=At(),this.fillSprite.path=l)}else{var l=E(t[0])+Ai(t);this.strokeSprite.path=l,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(l+=V(e[0])+Ai(e),l+=V(t[0]),l+=At(),this.fillSprite.path=l)}else this.strokeSprite.path="",this.fillSprite.path=""},i}(ks);_.registeredClasses.StepLineSeriesSegment=nl;var sl=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="StepLineSeriesDataItem",t.applyTheme(),t}return i}(pn),Np=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="StepLineSeries",t.applyTheme(),t.startLocation=0,t.endLocation=1,t}return i.prototype.createDataItem=function(){return new sl},i.prototype.addPoints=function(t,e,r,n,a){var o,l,h,u;this.baseAxis==this.xAxis&&(o=this.startLocation,l=this.endLocation,h=this.getAdjustedXLocation(e,this.yOpenField),u=this.getAdjustedXLocation(e,this.yField)),this.baseAxis==this.yAxis&&(h=this.startLocation,u=this.endLocation,o=this.getAdjustedXLocation(e,this.xOpenField),l=this.getAdjustedXLocation(e,this.xField));var p=this.xAxis.getX(e,r,o),d=this.yAxis.getY(e,n,h),f=this.xAxis.getX(e,r,l),c=this.yAxis.getY(e,n,u);if(p=B(p,-1e5,1e5),d=B(d,-1e5,1e5),f=B(f,-1e5,1e5),c=B(c,-1e5,1e5),!this.noRisers&&t.length>1){var y=t[t.length-1];this.baseAxis==this.xAxis&&(a?t.push({x:y.x,y:c}):t.push({x:p,y:y.y})),this.baseAxis==this.yAxis&&(a?t.push({x:f,y:y.y}):t.push({x:y.x,y:d}))}var g={x:p,y:d},m={x:f,y:c};a?t.push(m,g):t.push(g,m)},i.prototype.drawSegment=function(t,e,r){var n=!1;this.yAxis==this.baseAxis&&(n=!0),t.drawSegment(e,r,this.tensionX,this.tensionY,this.noRisers,n)},i.prototype.createSegment=function(){return new nl},Object.defineProperty(i.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(t){this.setPropertyValue("noRisers",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),i}(er);_.registeredClasses.StepLineSeries=Np;_.registeredClasses.StepLineSeriesDataItem=sl;var al=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="RadarColumn",t}return i.prototype.createAssets=function(){this.radarColumn=this.createChild(si),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.radarColumn&&this.radarColumn.copyFrom(t.radarColumn)},i.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return v(t)?t:this.radarColumn.getTooltipX()}
172,i.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipX");return v(t)?t:this.radarColumn.getTooltipY()},i}(li);_.registeredClasses.RadarColumn=al;var zp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ColumnSeriesDataItem",t.applyTheme(),t}return i}(Ue),Xp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="RadarColumnSeries",t.applyTheme(),t}return i.prototype.createColumnTemplate=function(){return new al},i.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),s.prototype.validate.call(this)},i.prototype.disableUnusedColumns=function(t){t&&(t.column&&(t.column.__disabled=!0),A(this.axisRanges.iterator(),function(e){var r=t.rangesColumns.getKey(e.uid);r&&(r.__disabled=!0)}))},i.prototype.validateDataElementReal=function(t){var e=this,r=this.chart.startAngle,n=this.chart.endAngle,a=this.yField,o=this.yOpenField,l=this.xField,h=this.xOpenField,u,p,d,f,c=this.getStartLocation(t),y=this.getEndLocation(t),g=(n-r)/(this.dataItems.length*(this.end-this.start)),m=t.column;m||(m=this.columns.create(),t.column=m,kt(this,m,Ot),kt(this.columns.template,m,Ot),t.addSprite(m),m.paper=this.paper,this.setColumnStates(m));var x=m.width,P=100;x instanceof Q&&(P=x.percent);var S=F((y-c)*(1-P/100)/2,5);if(c+=S,y-=S,this.xAxis instanceof St&&this.yAxis instanceof St)d=at({x:this.yAxis.getX(t,a,0,"valueY"),y:this.yAxis.getY(t,a,0,"valueY")}),f=at({x:this.yAxis.getX(t,o,1,"valueY"),y:this.yAxis.getY(t,o,1,"valueY")}),u=this.xAxis.getAngle(t,h,0,"valueX"),p=this.xAxis.getAngle(t,l,1,"valueX"),r=r+c*g,n=n-(1-y)*g;else if(this.baseAxis==this.xAxis)d=at({x:this.yAxis.getX(t,a,t.locations[a],"valueY"),y:this.yAxis.getY(t,a,t.locations[a],"valueY")}),f=at({x:this.yAxis.getX(t,o,t.locations[o],"valueY"),y:this.yAxis.getY(t,o,t.locations[o],"valueY")}),u=this.xAxis.getAngle(t,h,c,"valueX"),p=this.xAxis.getAngle(t,l,y,"valueX"),r=r+c*g,n=n-(1-y)*g;else{if(d=at({x:this.yAxis.getX(t,a,c,"valueY"),y:this.yAxis.getY(t,a,c,"valueY")}),f=at({x:this.yAxis.getX(t,o,y,"valueY"),y:this.yAxis.getY(t,o,y,"valueY")}),v(x)){var C=Math.abs(d-f);if(C>x){var O=(C-x)/2;d+=O,f-=O}}u=this.xAxis.getAngle(t,l,t.locations[l],"valueX"),p=this.xAxis.getAngle(t,h,t.locations[h],"valueX")}if(p<u){var T=p;p=u,u=T}u=B(u,r,n),p=B(p,r,n);var D=m.radarColumn;D.startAngle=u;var k=p-u;k>0?(D.arc=k,D.radius=d,D.innerRadius=f,m.__disabled=!1,m.parent=this.columnsContainer,A(this.axisRanges.iterator(),function(z){var R=t.rangesColumns.getKey(z.uid);R||(R=e.columns.create(),Ch(e.columns.template,R,Ot),kt(z.contents,R,Ot),R.dataItem&&G(R.dataItem.sprites,R),t.addSprite(R),R.paper=e.paper,e.setColumnStates(R),t.rangesColumns.setKey(z.uid,R));var W=R.radarColumn;W.startAngle=u,W.arc=k,W.radius=d,W.innerRadius=f,W.invalid&&(W.paper=e.paper,W.validate()),R.__disabled=!1,R.parent=z.contents})):this.disableUnusedColumns(t)},i.prototype.getPoint=function(t,e,r,n,a,o,l){o||(o="valueX"),l||(l="valueY");var h=this.yAxis.getX(t,r,a,l),u=this.yAxis.getY(t,r,a,l),p=at({x:h,y:u});p==0&&(p=1e-5);var d=this.xAxis.getAngle(t,e,n,o);return{x:p*j(d),y:p*M(d)}},i.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return _i(t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},i.prototype.positionBulletReal=function(t,e,r){var n=this.xAxis,a=this.yAxis;(e<n.start||e>n.end||r<a.start||r>a.end)&&(t.visible=!1),t.moveTo(this.xAxis.renderer.positionToPoint(e,r))},i.prototype.setXAxis=function(t){s.prototype.setXAxis.call(this,t),this.updateRendererRefs()},i.prototype.setYAxis=function(t){s.prototype.setYAxis.call(this,t),this.updateRendererRefs()},i.prototype.updateRendererRefs=function(){var t=this.xAxis.renderer,e=this.yAxis.renderer;t.axisRendererY=e},i}(Ge);_.registeredClasses.RadarColumnSeries=Xp;_.registeredClasses.RadarColumnSeriesDataItem=zp;var ss=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.slice=t.createChild(Z),t.slice.shouldClone=!1,t.slice.setElement(t.paper.add("path")),t.slice.isMeasured=!1,t.orientation="vertical",t.bottomWidth=I(100),t.topWidth=I(100),t.isMeasured=!1,t.width=10,t.height=10,t.expandDistance=0,t.className="FunnelSlice",t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.pixelPaddingTop,e=this.pixelPaddingBottom,r=this.pixelPaddingRight,n=this.pixelPaddingLeft,a=this.pixelWidth-r-n,o=this.pixelHeight-t-e,l=this.expandDistance,h="";if(this.orientation=="vertical"){var u=bt(this.topWidth,a),p=bt(this.bottomWidth,a),d={x:(a-u)/2+n,y:t},f={x:(a+u)/2+n,y:t},c={x:(a+p)/2+n,y:t+o},y={x:(a-p)/2+n,y:t+o},g={x:f.x+(c.x-f.x)/2+l*o,y:f.y+.5*o},m={x:d.x+(y.x-d.x)/2-l*o,y:d.y+.5*o},x=V(c),P=V(d);l!=0&&(x=Ze(c,g),P=Ze(d,m)),h=E(d)+V(f)+x+V(y)+P,this.tickPoint={x:f.x+(c.x-f.x)/2,y:f.y+(c.y-f.y)/2}}else{var u=bt(this.topWidth,o),p=bt(this.bottomWidth,o),S={x:n,y:(o-u)/2+t},C={x:n,y:(o+u)/2+t},O={x:n+a,y:(o-p)/2+t},T={x:n+a,y:(o+p)/2+t},g={y:S.y+(O.y-S.y)/2-l*a,x:S.x+.5*a},m={y:C.y+(T.y-C.y)/2+l*a,x:C.x+.5*a},x=V(O),P=V(C);l!=0&&(x=Ze(O,g),P=Ze(C,m)),h=E(C)+V(S)+x+V(T)+P,this.tickPoint={y:C.y+(T.y-C.y)/2,x:C.x+(T.x-C.x)/2}}this.slice.path=h,this.invalidateLayout()},i.prototype.getPoint=function(t,e){var r=this.pixelPaddingTop,n=this.pixelPaddingBottom,a=this.pixelPaddingRight,o=this.pixelPaddingLeft,l=this.pixelWidth-a-o,h=this.pixelHeight-r-n;if(this.orientation=="vertical"){var u=bt(this.topWidth,l),p=bt(this.bottomWidth,l),d={x:(l-u)/2+o,y:r},f={x:(l+u)/2+o,y:r},c={x:(l+p)/2+o,y:r+h},y={x:(l-p)/2+o,y:r+h},g=d.x+(y.x-d.x)*e,m=f.x+(c.x-f.x)*e;
172return{x:g+(m-g)*t,y:f.y+(c.y-f.y)*e}}else{var u=bt(this.topWidth,h),p=bt(this.bottomWidth,h),x={x:o,y:(h-u)/2+r},P={x:o,y:(h+u)/2+r},S={x:o+l,y:(h-p)/2+r},C={x:o+l,y:(h+p)/2+r},O=x.y+(S.y-x.y)*t,T=P.y+(C.y-P.y)*t;return{y:O+(T-O)*e,x:x.x+(S.x-x.x)*t}}},Object.defineProperty(i.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(t){this.setPercentProperty("bottomWidth",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(t){this.setPercentProperty("topWidth",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(t){this.setPropertyValue("expandDistance",t,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.slice&&this.slice.copyFrom(t.slice)},i}(N);_.registeredClasses.FunnelSlice=ss;var ol=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._label=new Et,t._slice=new Et,t.className="FunnelTick",t.element=t.paper.add("path"),t._disposers.push(t._label),t._disposers.push(t._slice),t.setPropertyValue("locationX",0),t.setPropertyValue("locationY",0),t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.slice,e=t.getPoint(this.locationX,this.locationY);if(e){var r=this.label,n=t.dataItem.component,a=void 0,o=void 0,l=void 0;if(n.orientation=="vertical"){var h=r.pixelX,u=r.pixelY;n.labelsOpposite||(h+=r.maxRight),a=ee(e,t,this.parent),l=ee({x:h,y:u},r.parent,this.parent),o={x:r.parent.pixelX-this.length,y:l.y},n.labelsOpposite||(o.x=r.parent.measuredWidth+this.length)}else{var h=r.pixelX,u=r.pixelY;n.labelsOpposite||(u+=r.maxBottom),a=ee(e,t,this.parent),l=ee({x:h,y:u},r.parent,this.parent),o={x:l.x,y:r.parent.pixelY-this.length},n.labelsOpposite||(o.y=r.parent.measuredHeight+this.length)}this.path=E(a)+V(o)+V(l)}},Object.defineProperty(i.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new Pt([t.events.on("transformed",this.invalidate,this,!1),t.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label.get()},set:function(t){this._label.set(t,t.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){this.setPropertyValue("locationX",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){this.setPropertyValue("locationY",t,!1,!0)},enumerable:!0,configurable:!0}),i}(Qi);_.registeredClasses.FunnelTick=ol;var Bs=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="FunnelSeriesDataItem",t.events.on("visibilitychanged",function(){t.component&&t.component.invalidateDataItems()},t,!1),t.applyTheme(),t}return Object.defineProperty(i.prototype,"sliceLink",{get:function(){var t=this;if(!this._sliceLink){var e=this.component.sliceLinks.create();this._sliceLink=e,this._disposers.push(e),e.parent=this.component.slicesContainer,this._disposers.push(new lt(function(){t.component&&t.component.sliceLinks.removeValue(e)})),this.addSprite(e),e.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),i}(fn),ll=function(s){w(i,s);function i(){var t=s.call(this)||this;return t._nextY=0,t.className="FunnelSeries",t.orientation="vertical",t.width=I(100),t.height=I(100),t.slicesContainer.width=I(100),t.slicesContainer.height=I(100),t._disposers.push(t.slicesContainer.events.on("maxsizechanged",t.invalidateDataItems,t,!1)),t.labelsOpposite=!0,t.labelsContainer.layout="absolute",t.bottomRatio=0,t.applyTheme(),t}
172return i.prototype.createSlice=function(){return new ss},i.prototype.createTick=function(){return new ol},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},i.prototype.createDataItem=function(){return new Bs},i.prototype.initSlice=function(t){t.isMeasured=!1,t.defaultState.properties.scale=1,t.observe("scale",this.handleSliceScale,this),t.observe(["dx","dy","x","y"],this.handleSliceMove,this),t.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var e=t.states.create("hover");e.properties.expandDistance=.2},i.prototype.initLabel=function(t){s.prototype.initLabel.call(this,t),t.verticalCenter="middle",t.horizontalCenter="middle",t.isMeasured=!0,t.padding(5,5,5,5)},i.prototype.validate=function(){s.prototype.validate.call(this),this._nextY=0},i.prototype.validateDataElements=function(){var t=this,e=this.slicesContainer,r=this.labelsContainer,n=this.labels.template;this.alignLabels?(n.interactionsEnabled=!0,e.isMeasured=!0,r.isMeasured=!0):(n.interactionsEnabled=!1,e.isMeasured=!1,r.isMeasured=!1);var a=0,o=0;this.dataItems.each(function(l){b(l.value)&&(o++,l.value>0?a+=Math.abs(l.getWorkingValue("value")/l.value):t.ignoreZeroValues||!l.visible||l.__disabled||l.isHiding?o--:a+=1)}),this._total=1/o*a,this._count=o,s.prototype.validateDataElements.call(this),this.arrangeLabels()},i.prototype.getNextValue=function(t){var e=t.index,r=t.getWorkingValue("value");if(e<this.dataItems.length-1){var n=this.dataItems.getIndex(e+1);if(r=n.getWorkingValue("value"),!n.visible||n.isHiding||n.__disabled||n.value==0&&this.ignoreZeroValues)return this.getNextValue(n)}return r},i.prototype.formDataElement=function(){},i.prototype.validateDataElement=function(t){var e=this,r=t.slice;r.orientation=this.orientation;var n=t.sliceLink;n.orientation=this.orientation;var a=t.tick,o=t.label;a.slice=r,a.label=o,b(t.value)?(this.decorateSlice(t),L(t.sprites,function(l){t.value==0&&e.ignoreZeroValues?l.__disabled=!0:l.__disabled=!1})):L(t.sprites,function(l){l.__disabled=!0}),t.index==this.dataItems.length-1&&(n.disabled=!0),s.prototype.validateDataElement.call(this,t),n.fill=r.fill},i.prototype.decorateSlice=function(t){var e=t.slice,r=t.sliceLink,n=t.label,a=t.tick,o=this.slicesContainer.innerWidth,l=this.slicesContainer.innerHeight,h=this.getNextValue(t),u=Math.abs(t.getWorkingValue("value")),p=this.bottomRatio,d=1;if(t.value!=0?d=u/Math.abs(t.value):(t.__disabled||t.isHiding||!t.visible)&&(d=1e-6),this.ignoreZeroValues&&t.value==0){t.__disabled=!0;return}else t.__disabled=!1;if(this._nextY==1/0&&(this._nextY=0),this.orientation=="vertical"){var f=r.pixelHeight*d;l=l+f,e.topWidth=u/this.dataItem.values.value.high*o,e.bottomWidth=(u-(u-h)*p)/this.dataItem.values.value.high*o,r.topWidth=e.bottomWidth,r.bottomWidth=(u-(u-h))/this.dataItem.values.value.high*o,e.y=this._nextY,e.height=Math.min(1e5,q(0,l/this._count*d/this._total-f)),e.x=o/2,this.alignLabels?n.x=void 0:n.x=e.x,n.y=e.pixelY+e.pixelHeight*a.locationY,this._nextY+=e.pixelHeight+f,r.y=this._nextY-f,r.x=e.x}else{var c=r.pixelWidth*d;o=o+c,e.topWidth=u/this.dataItem.values.value.high*l,e.bottomWidth=(u-(u-h)*p)/this.dataItem.values.value.high*l,r.topWidth=e.bottomWidth,r.bottomWidth=(u-(u-h))/this.dataItem.values.value.high*l,e.x=this._nextY,e.width=Math.min(1e5,o/this._count*d*1/this._total-c),e.y=l/2,this.alignLabels?n.y=this.labelsContainer.measuredHeight:n.y=e.y,n.x=e.pixelX+e.pixelWidth*a.locationX,this._nextY+=e.pixelWidth+c,r.x=this._nextY-c,r.y=e.y}},i.prototype.getLastLabel=function(t){if(t>0){var e=this.labels.getIndex(t);return e.__disabled||!e.visible?this.getLastLabel(t-1):e}},i.prototype.arrangeLabels=function(){if(this.alignLabels){var t=this.labels.length;if(t>1){var e=this.getLastLabel(t-1);if(e){var r=e.pixelY,n=e.pixelX;if(t>1){for(var a=t-2;a>=0;a--){var o=this.labels.getIndex(a);o.visible&&!o.__disabled&&(o.invalid&&o.validate(),this.orientation=="vertical"?o.pixelY+o.measuredHeight>r&&(o.y=Math.min(1e6,r-o.measuredHeight)):o.pixelX+o.measuredWidth>n&&(o.x=Math.min(1e6,n-o.measuredWidth)),r=o.pixelY,n=o.pixelX)}r=0,n=0;for(var a=0;a<t;a++){var o=this.labels.getIndex(a);o.visible&&!o.__disabled&&(o.invalid&&o.validate(),this.orientation=="vertical"?o.pixelY<r&&(o.y=Math.min(1e6,r)):o.pixelX<n&&(o.x=Math.min(1e6,n)
172),r+=o.measuredHeight,n+=o.measuredWidth)}}}}}},i.prototype.positionBullet=function(t){s.prototype.positionBullet.call(this,t);var e=t.dataItem,r=e.slice,n=t.locationX;v(n)||(n=.5);var a=t.locationY;v(a)||(a=1),t.x=r.pixelX+r.measuredWidth*n,t.y=r.pixelY+r.measuredHeight*a},Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&(this.labelsOpposite=this.labelsOpposite,this.invalidate(),t=="vertical"?(this.ticks.template.locationX=1,this.ticks.template.locationY=.5,this.labels.template.rotation=0,this.layout="horizontal"):(this.ticks.template.locationX=.5,this.ticks.template.locationY=1,this.labels.template.rotation=-90,this.layout="vertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomRatio",{get:function(){return this.getPropertyValue("bottomRatio")},set:function(t){this.setPropertyValue("bottomRatio",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sliceLinks",{get:function(){if(!this._sliceLinks){var t=new ss;t.applyOnClones=!0,t.fillOpacity=.5,t.expandDistance=-.3,t.hiddenState.properties.opacity=0,this._disposers.push(t),this._sliceLinks=new Ct(t),this._disposers.push(new ft(this._sliceLinks))}return this._sliceLinks},enumerable:!0,configurable:!0}),i.prototype.show=function(t){var e=this,r=this.startIndex,n=this.endIndex,a=this.defaultState.transitionDuration;v(t)&&(a=t);var o=0;A(ti(this.dataItems.iterator()),function(h){var u=h[0],p=h[1];e.sequencedInterpolation&&(o=e.sequencedInterpolationDelay*u+a*(u-r)/(n-r)),p.show(a,o,["value"])});var l=s.prototype.show.call(this,t);return l},i.prototype.hide=function(t){var e=this,r=["value"],n=0,a=this.startIndex,o=this.endIndex,l=0,h=this.hiddenState.transitionDuration;v(t)&&(h=t),A(ti(this.dataItems.iterator()),function(p){var d=p[0],f=p[1];e.sequencedInterpolation&&(l=e.sequencedInterpolationDelay*d+h*(d-a)/(o-a)),f.hide(h,l,n,r)});var u=s.prototype.hide.call(this,t);return u&&!u.isFinished()&&u.delay(l),u},i.prototype.setAlignLabels=function(t){s.prototype.setAlignLabels.call(this,t),this.ticks.template.disabled=!t;var e=this.labelsContainer;e&&(t?(e.height=void 0,e.width=void 0,e.margin(10,10,10,10)):(e.width=I(100),e.height=I(100))),this.labelsOpposite=this.labelsOpposite},Object.defineProperty(i.prototype,"labelsOpposite",{get:function(){return this.getPropertyValue("labelsOpposite")},set:function(t){this.setPropertyValue("labelsOpposite",t);var e=this.labels.template,r="none",n="none";this.alignLabels?t?(this.labelsContainer.toFront(),this.orientation=="vertical"?(this.ticks.template.locationX=1,e.horizontalCenter="left",r="right"):(this.ticks.template.locationY=1,e.horizontalCenter="right",n="bottom")):(this.labelsContainer.toBack(),this.orientation=="vertical"?(this.ticks.template.locationX=0,r="left"):(n="top",this.ticks.template.locationY=0)):this.orientation=="vertical"?r="center":n="middle",e.align=r,e.valign=n,this.validateLayout(),this.ticks.each(function(a){a.invalidate()}),this.invalidateDataItems()},enumerable:!0,configurable:!0}),i}(ir);_.registeredClasses.FunnelSeries=ll;_.registeredClasses.FunnelSeriesDataItem=Bs;var Ws=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PyramidSeriesDataItem",t.applyTheme(),t}return i}(Bs),hl=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PyramidSeries",t.topWidth=I(0),t.bottomWidth=I(100),t.pyramidHeight=I(100),t.valueIs="area",t.sliceLinks.template.width=0,t.sliceLinks.template.height=0,t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},i.prototype.createDataItem=function(){return new Ws},i.prototype.validate=function(){s.prototype.validate.call(this),this._nextWidth=void 0},i.prototype.getNextValue=function(t){var e=t.index,r=t.getWorkingValue("value");if(e<this.dataItems.length-1){var n=this.dataItems.getIndex(e+1);r=n.getWorkingValue("value")}return r==0&&(r=1e-6),r},i.prototype.validateDataElements=function(){var t=this,e=this.slice
172sContainer.innerWidth,r=this.slicesContainer.innerHeight;if(this.dataItems.each(function(o){if(o.value>0){var l=o.getWorkingValue("value")/o.value,h=o.sliceLink;t.orientation=="vertical"?r-=h.pixelHeight*l:e-=h.pixelWidth*l}}),this._pyramidHeight=bt(this.pyramidHeight,r),this._pyramidWidth=bt(this.pyramidHeight,e),this.orientation=="vertical"){var n=(r-this._pyramidHeight)/2;this.slicesContainer.y=n,this.labelsContainer.y=n,this.ticksContainer.y=n}else{var a=(e-this._pyramidWidth)/2;this.slicesContainer.x=a,this.labelsContainer.x=a,this.ticksContainer.x=a}s.prototype.validateDataElements.call(this)},i.prototype.decorateSlice=function(t){var e=this.dataItem.values.value.absoluteSum;if(e!=0){var r=t.slice,n=t.sliceLink,a=t.label,o=t.tick;this.getNextValue(t);var l=Math.abs(t.getWorkingValue("value")),h=this._pyramidWidth,u=this._pyramidHeight,p=this.slicesContainer.innerWidth,d=this.slicesContainer.innerHeight,f=n.pixelWidth,c=n.pixelHeight;if((t.value==0||t.value==null)&&this.ignoreZeroValues?t.__disabled=!0:t.__disabled=!1,this.orientation=="vertical"){var y=bt(this.topWidth,p);v(this._nextWidth)||(this._nextWidth=y);var g=bt(this.bottomWidth,p),m=this._nextWidth,x=Math.atan2(u,y-g),P=Math.tan(Math.PI/2-x);P==0&&(P=1e-8);var S=void 0,C=void 0;if(this.valueIs=="area"){var O=(y+g)/2*u,T=O*l/e,D=Math.abs(m*m-2*T*P);S=(m-Math.sqrt(D))/P,S>0?C=(2*T-S*m)/S:C=m}else S=u*l/e,C=m-S*P;r.height=S,r.width=p,r.bottomWidth=C,r.topWidth=m,n.topWidth=r.bottomWidth,n.bottomWidth=r.bottomWidth,r.y=this._nextY,this.alignLabels?a.x=0:a.x=p/2,a.y=r.pixelY+r.pixelHeight*o.locationY+r.dy,this._nextY+=r.pixelHeight+c*l/Math.max(Math.abs(t.value),1e-8),n.y=this._nextY-c,n.x=p/2}else{var y=bt(this.topWidth,d);v(this._nextWidth)||(this._nextWidth=y);var g=bt(this.bottomWidth,d),m=this._nextWidth,x=Math.atan2(h,y-g),P=Math.tan(Math.PI/2-x);P==0&&(P=1e-8);var k=void 0,C=void 0;if(this.valueIs=="area"){var O=(y+g)/2*h,T=O*l/e;k=(m-Math.sqrt(m*m-2*T*P))/P,C=(2*T-k*m)/k}else k=h*l/e,C=m-k*P;r.width=k,r.height=d,r.bottomWidth=C,r.topWidth=m,n.topWidth=r.bottomWidth,n.bottomWidth=r.bottomWidth,r.x=this._nextY,this.alignLabels?a.y=this.labelsContainer.measuredHeight:a.y=d/2,a.x=r.pixelX+r.pixelWidth*o.locationX+r.dx,this._nextY+=r.pixelWidth+f*l/Math.max(Math.abs(t.value),1e-8),n.x=this._nextY-f,n.y=d/2}this._nextWidth=r.bottomWidth}},Object.defineProperty(i.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(t){this.setPercentProperty("topWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(t){this.setPercentProperty("pyramidHeight",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(t){this.setPercentProperty("bottomWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(t){this.setPropertyValue("valueIs",t)&&this.invalidate()},enumerable:!0,configurable:!0}),i}(ll);_.registeredClasses.PyramidSeries=hl;_.registeredClasses.PyramidSeriesDataItem=Ws;var ul=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PictorialStackedSeriesDataItem",t.applyTheme(),t}return i}(Ws),Yp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="PictorialStackedSeries",t.topWidth=I(100),t.bottomWidth=I(100),t.valueIs="height",t.applyTheme(),t.startLocation=0,t.endLocation=1,t.align="center",t.valign="middle",t._maskSprite=t.slicesContainer.createChild(Z),t._maskSprite.visible=!1,t._maskSprite.zIndex=100,t._maskSprite.shouldClone=!1,t}return i.prototype.validateDataElements=function(){var t=this.slice
172sContainer.maxWidth,e=this.slicesContainer.maxHeight,r=this._maskSprite,n=r.measuredWidth/r.scale,a=r.measuredHeight/r.scale,o=et(e/a,t/n);o==1/0&&(o=1),o=q(.001,o);var l=this.startLocation,h=this.endLocation,u=et(t,n*o),p=et(e,a*o);r.scale=o,this.orientation=="vertical"?(this.topWidth=u+4,this.bottomWidth=u+4,this.pyramidHeight=p*(h-l),r.x=t/2,r.y=p/2):(this.topWidth=p+4,this.bottomWidth=p+4,this.pyramidHeight=u*(h-l),r.valign="middle",r.x=u/2,r.y=e/2),r.verticalCenter="middle",r.horizontalCenter="middle",s.prototype.validateDataElements.call(this);var d,f;this.orientation=="vertical"?(this.valign=="bottom"&&(d=e-p),this.valign=="middle"&&(d=(e-p)/2),this.valign=="top"&&(d=0),this.align=="left"&&(f=-(t-u)/2),this.align=="center"&&(f=0),this.align=="right"&&(f=(t-u)/2),this.slices.template.dy=l*p,this.alignLabels&&(this.slicesContainer.dx=f)):(this.valign=="bottom"&&(d=(e-p)/2),this.valign=="middle"&&(d=0),this.valign=="top"&&(d=-(e-p)/2),this.align=="left"&&(f=0),this.align=="center"&&(f=(t-u)/2),this.align=="right"&&(f=t-u),this.slices.template.dx=l*u,this.alignLabels&&(this.slice
172sContainer.dy=d)),this.slicesContainer.x=f,this.labelsContainer.x=f,this.ticksContainer.x=f,this.slicesContainer.y=d,this.labelsContainer.y=d,this.ticksContainer.y=d,u>0&&p>0&&(this.slicesContainer.mask=r)},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},i.prototype.createDataItem=function(){return new ul},Object.defineProperty(i.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),i.prototype.initSlice=function(t){s.prototype.initSlice.call(this,t);var e=t.states.getKey("hover");e&&(e.properties.expandDistance=0)},Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),i}(hl);_.registeredClasses.PictorialStackedSeries=Yp;_.registeredClasses.PictorialStackedSeriesDataItem=ul;var as=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Ellipse",t.element=t.paper.add("ellipse"),t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(i.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(t){this.height=t*2,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(t){this.width=t*2,this.invalidate()},enumerable:!0,configurable:!0}),i}(oi);_.registeredClasses.Ellipse=as;var Up=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Cone",t.angle=30,t.radius=I(100),t.topRadius=I(100),t.top=t.createChild(as),t.top.shouldClone=!1,t.bottom=t.createChild(as),t.bottom.shouldClone=!1,t.body=t.createChild(Z),t.body.shouldClone=!1,t.body.setElement(t.paper.add("path")),t.layout="none",t.bodyFillModifier=new Yr,t.bodyFillModifier.lightnesses=[0,-.25,0],t.body.fillModifier=t.bodyFillModifier,t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this),kt(this,this.top,Ot),kt(this,this.bottom,Ot),kt(this,this.body,Ot);var t=this.innerWidth,e=this.innerHeight,r=this.bottom,n=this.top,a=this.angle,o,l,h;this.orientation=="horizontal"?(o=e/2,r.y=e/2,r.x=0,n.y=e/2,n.x=t,l=(90-a)/90,h=0,this.bodyFillModifier.gradient.rotation=90):(l=0,h=(90-a)/90,o=t/2,r.y=e,r.x=t/2,n.x=t/2,this.bodyFillModifier.gradient.rotation=0);var u=this.radius.value*o,p=this.topRadius.value*o;r.radius=u-u*l,r.radiusY=u-u*h,n.radius=p-p*l,n.radiusY=p-p*h;var d;this.orientation=="horizontal"?d=E({x:0,y:e/2-r.radiusY})+Lt(-90,-180,r.radius,r.radiusY)+V({x:t,y:e/2+n.radiusY})+Lt(90,180,n.radius,n.radiusY)+At():d=E({x:t/2-n.radius,y:0})+Lt(180,-180,n.radius,n.radiusY)+V({x:t/2+r.radius,y:e})+Lt(0,180,r.radius,r.radiusY)+At(),this.body.path=d},Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topRadius",{get:function(){return this.getPropertyValue("topRadius")},set:function(t){this.setPropertyValue("topRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),i}(N),pl=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ConeColumn",t}return i.prototype.createAssets=function(){this.coneColumn=this.createChild(Up),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.coneColumn&&this.coneColumn.copyFrom(t.coneColumn)},i}(li);_.registeredClasses.ConeColumn=pl;var Gp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ConeSeriesDataItem",t.applyTheme(),t}return i}(Ue),Kp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ConeSeries",t.applyTheme(),t}return i.prototype.createColumnTemplate=function(){return new pl},i.prototype.getMaskPath=function(){var t=0,e=0,r=this.columns.getIndex(0);if(r)return this.baseAxis==this.xAxis?e=r.coneColumn.innerWidth/2+1:t=r.coneColumn.innerHeight/2+1,We({x:-t,y:0,width:this.xAxis.axisLength+t,height:this.yAxis.axisLength+e})},i.prototype.validateDataElementReal=function(t){s.prototype.validateDataElementReal.call(this,t);var e=t.column;if(e){var r=t.column.coneColumn;r.fill=t.column.fill,this.baseAxis==this.yAxis?r.orientation="horizontal":r.orientation="vertical"}},i}(Ge);
172_.registeredClasses.ConeSeries=Kp;_.registeredClasses.ConeSeriesDataItem=Gp;var dl=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="CurvedColumn",t}return i.prototype.createAssets=function(){this.curvedColumn=this.createChild(Z),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=I(120),this.height=I(120),this.column=this.curvedColumn},i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.realWidth,e=this.realHeight,r=this.realX-this.pixelX,n=this.realY-this.pixelY,a;this.width;var o=1,l=1;this.orientation=="vertical"?(o=this.tension,a=[{x:0,y:e+n},{x:t/2,y:n},{x:t,y:e+n}]):(l=this.tension,e=Math.abs(e),a=[{x:r,y:e},{x:r+t,y:e/2},{x:r,y:0}]);var h=E(a[0])+new Xe(o,l).smooth(a);this.column.path=h},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.curvedColumn&&this.curvedColumn.copyFrom(t.curvedColumn)},Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),i}(li);_.registeredClasses.CurvedColumn=dl;var qp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="CurvedColumnSeriesDataItem",t.applyTheme(),t}return i}(Ue),Zp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="CurvedColumnSeries",t.applyTheme(),t}return i.prototype.createColumnTemplate=function(){return new dl},i.prototype.validateDataElementReal=function(t){s.prototype.validateDataElementReal.call(this,t);var e=t.column;if(e=t.column,e){var r=t.column.curvedColumn;r.fill=t.column.fill,this.baseAxis==this.yAxis?e.orientation="horizontal":e.orientation="vertical"}},i}(Ge);_.registeredClasses.CurvedColumnSeries=Zp;_.registeredClasses.CurvedColumnSeriesDataItem=qp;var $p=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="CircleBullet";var e=t.createChild(oi);return e.shouldClone=!1,e.radius=5,e.isMeasured=!1,t.circle=e,t.applyTheme(),t}return i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.circle.copyFrom(t.circle)},i}(ke);_.registeredClasses.CircleBullet=$p;var Jp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ErrorBullet",t.errorLine=t.createChild(Z),t.errorLine.shouldClone=!1,t.width=20,t.height=20,t.strokeOpacity=1,t.isDynamic=!0,t}return i.prototype.validatePosition=function(){s.prototype.validatePosition.call(this);var t=this.pixelWidth/2,e=this.pixelHeight/2;this.errorLine.path=E({x:-t,y:-e})+V({x:t,y:-e})+E({x:0,y:-e})+V({x:0,y:e})+E({x:-t,y:e})+V({x:t,y:e})},i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.errorLine.copyFrom(t.errorLine)},i}(ke);_.registeredClasses.ErrorBullet=Jp;var os=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="TextLink",t.selectable=!0;var e=new nt;t.fill=e.getFor("primaryButton").brighten(.3);var r=t.states.create("hover");r.properties.fill=e.getFor("primaryButtonHover").brighten(.3);var n=t.states.create("down");return n.properties.fill=e.getFor("primaryButtonDown").brighten(.3),t.cursorOverStyle=Ht.pointer,t.applyTheme(),t}return i}(te);_.registeredClasses.TextLink=os;var Hs=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Triangle",t.element=t.paper.add("path"),t.direction="top",t.applyTheme(),t}return i.prototype.draw=function(){s.prototype.draw.call(this);var t=this.pixelWidth,e=this.pixelHeight,r;switch(this.direction){case"right":r=E({x:0,y:0})+V({x:t,y:e/2})+V({x:0,y:e})+At();break;case"left":r=E({x:t,y:0})+V({x:0,y:e/2})+V({x:t,y:e})+At();break;case"bottom":r=E({x:0,y:0})+V({x:t,y:0})+V({x:t/2,y:e})+At();break;case"top":r=E({x:t/2,y:0})+V({x:t,y:e})+V({x:0,y:e})+At();break}this.path=r},Object.defineProperty(i.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(t){this.setPropertyValue("direction",t,!0)},enumerable:!0,configurable:!0}),i}(Z);_.registeredClasses.Triangle=Hs;var Qp=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="NavigationBarDataItem",t.applyTheme(),t}return Object.defineProperty(i.prototype,"name",{get:function(){return this.properties.name},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),i}(ri),td=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="NavigationBar";var e=new nt,r=new os;r.valign="middle",r.paddingTop=8,r.paddingBottom=8,t.paddingBottom=2,t.links=new Ct(r),t._disposers.push(new ft(t.links)),t._disposers.push(r),t._linksIterator=new cs(t.links,function(){return t.links.create()}),t._linksIterator.createNewItems=!0;var n=new Hs;n.direction="right",n.width=8,n.height=12,n.fill=e.getFor("alternativeBackgroun
172d"),n.fillOpacity=.5,n.valign="middle",n.marginLeft=10,n.marginRight=10,t.separators=new Ct(n),t._disposers.push(new ft(t.separators)),t._disposers.push(n);var a=new os;return t.activeLink=a,a.copyFrom(r),a.valign="middle",a.fontWeight="bold",t.width=I(100),t.layout="grid",t.dataFields.name="name",t.applyTheme(),t}return i.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),s.prototype.validateDataElements.call(this)},i.prototype.validateDataElement=function(t){s.prototype.validateDataElement.call(this,t);var e;if(t.index<this.dataItems.length-1){e=this._linksIterator.getLast(),e.parent=this;var r=this.separators.create();r.parent=this,r.valign="middle"}else e=this.activeLink,e.events.copyFrom(this.links.template.events),e.hide(0),e.show(),e.parent=this;e.dataItem=t,e.text=t.name,e.validate()},i}(xi);_.registeredClasses.NavigationBar=td;_.registeredClasses.NavigationBarDataItem=Qp;var fl=function(s){w(i,s);function i(){var t=s.call(this)||this;t.point={x:0,y:0},t._stick="none",t.className="Cursor",t.width=I(100),t.height=I(100),t.shouldClone=!1,t.hide(0),t.trackable=!0,t.clickable=!0,t.isMeasured=!1;var e=K();return t._disposers.push(e.body.events.on("down",t.handleCursorDown,t)),t._disposers.push(e.body.events.on("up",t.handleCursorUp,t)),t._disposers.push(e.body.events.on("track",t.handleCursorMove,t)),t.applyTheme(),t}return i.prototype.handleCursorMove=function(t){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&t.touch)){if((this._generalBehavior!="zoom"&&this._generalBehavior!="pan"||!this.downPoint)&&!K().isLocalElement(t.pointer,this.paper.svg,this.uid)){(!this.isHidden||!this.isHiding)&&this.hide();return}var e=gi(t.pointer.point,this);return this._stick=="hard"&&this._stickPoint&&(e=this._stickPoint),this._stick=="soft"&&this._stickPoint&&(this.fitsToBounds(e)||(e=this._stickPoint)),this._adapterO&&this._adapterO.apply("cursorPoint",e),this.triggerMove(e),e}},i.prototype.hideReal=function(t){if(!((this._stick=="hard"||this._stick=="soft")&&this._stickPoint))return s.prototype.hideReal.call(this,t)},i.prototype.triggerMove=function(t,e,r){t.x=F(t.x,1),t.y=F(t.y,1),e&&(this._stick=e),(e=="hard"||e=="soft")&&(this._stickPoint=t),this.triggerMoveReal(t,r)},i.prototype.triggerMoveReal=function(t,e){(this.point.x!=t.x||this.point.y!=t.y||e)&&(this.point=t,this.invalidatePosition(),this.fitsToBounds(t)?this.show(0):this.downPoint||this.hide(0),this.visible&&(this.getPositions(),this.dispatch("cursorpositionchanged")))},i.prototype.triggerDown=function(t){this.triggerDownReal(t)},i.prototype.triggerDownReal=function(t){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomstarted");break;case"select":this.dispatchImmediately("selectstarted");break;case"pan":this.dispatchImmediately("panstarted"),K().setGlobalStyle(Ht.grabbing);break}},i.prototype.triggerUp=function(t){this.triggerUpReal(t)},i.prototype.triggerUpReal=function(t){J.requestFrame(),this.updatePoint(this.upPoint);var e=K();if(at(this._upPointOrig,this._downPointOrig)>e.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatch("zoomended");break;case"select":this.dispatch("selectended");break;case"pan":this.dispatch("panended"),e.setGlobalStyle(Ht.default);break}this.downPoint=void 0,this.updateSelection()}},i.prototype.updateSelection=function(){},i.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},i.prototype.handleCursorDown=function(t){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&t.touch||!K().isLocalElement(t.pointer,this.paper.svg,this.uid))){_r();var e=gi(t.pointer.point,this);this._stick=="hard"&&this._stickPoint&&(e=this._stickPoint),this._adapterO&&this._adapterO.apply("cursorPoint",e),this.fitsToBounds(e)&&(this._downPointOrig={x:e.x,y:e.y},t.event.cancelable&&this.shouldPreventGestures(t.touch)&&this.fitsToBounds(e)&&t.event.preventDefault(),this.triggerMove(e),this.triggerDown(e))}},i.prototype.shouldPreventGestures=function(t){return!0},i.prototype.updatePoint=function(t){},i.prototype.handleCursorUp=function(t){if(this.interactionsEnabled&&!(!this.downPoint&&!K().isLocalElement(t.pointer,this.paper.svg,this.uid))){var e=gi(t.pointer.point,this);this._adapterO&&this._adapterO.apply("cursorPoint",e),!(!this.downPoint||!this.fitsToBounds(this.downPoint))&&(this._stick=="hard"&&this._stickPoint&&(e=this._stickPoint),this._upPointOrig={x:e.x,y:e.y},this.triggerMove(e),this.triggerUp(e))}},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t,b(this._chart.plotContainer)&&K().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),i}(N);_.registeredClasses.Cursor=fl;var Ns=function(s){w(i,s);function i(){var t=s.call(this)||this;t._lineX=new Et,t._lineY=new Et,t._xAxis=new Et,t._yAxis=new Et,t._snapToDisposers=[],t.className="XYCursor",t.behavior="zoomX",t.maxPanOut=.1;var e=new nt;t.snapOnPan=!0;var r=t.createChild(Z);r.shouldClone=!1,r.fillOpacity=.2,r.fill=e.getFor("alternativeBackgroun
172d"),r.isMeasured=!1,r.visible=!1,r.interactionsEnabled=!1,t.selection=r,t._disposers.push(t.selection);var n=t.createChild(Z);n.shouldClone=!1,n.stroke=e.getFor("grid"),n.fill=H(),n.strokeDasharray="3,3",n.isMeasured=!1,n.strokeOpacity=.4,n.interactionsEnabled=!1,n.y=0,t.lineX=n,t._disposers.push(t.lineX);var a=t.createChild(Z);return a.shouldClone=!1,a.stroke=e.getFor("grid"),a.fill=H(),a.strokeDasharray="3,3",a.isMeasured=!1,a.strokeOpacity=.4,a.interactionsEnabled=!1,a.x=0,t.lineY=a,t._disposers.push(t.lineY),t.events.on("sizechanged",t.updateSize,t,!1),t._disposers.push(t._lineX),t._disposers.push(t._lineY),t._disposers.push(t._xAxis),t._disposers.push(t._yAxis),t.mask=t,t.hideSeriesTooltipsOnSelection=!0,t.applyTheme(),t}return i.prototype.updateSize=function(){this.lineX&&(this.lineX.path=E({x:0,y:0})+V({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=E({x:0,y:0})+V({x:this.innerWidth,y:0}))},i.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint,e=this.behavior;if(t){var r=this.point;this.lineX&&(r.x=this.lineX.pixelX),this.lineY&&(r.y=this.lineY.pixelY);var n=this.selection,a=Math.min(r.x,t.x),o=Math.min(r.y,t.y),l=F(Math.abs(t.x-r.x),this._positionPrecision),h=F(Math.abs(t.y-r.y),this._positionPrecision);switch(e){case"zoomX":o=0,h=this.pixelHeight;break;case"zoomY":a=0,l=this.pixelWidth;break;case"selectX":o=0,h=this.pixelHeight;break;case"selectY":a=0,l=this.pixelWidth;break}n.x=a,n.y=o,n.path=Fn(l,h),n.validatePosition()}else this._generalBehavior!="select"&&this.selection.hide()}},i.prototype.fixPoint=function(t){return t.x=Math.max(0,t.x),t.y=Math.max(0,t.y),t.x=Math.min(this.pixelWidth,t.x),t.y=Math.min(this.pixelHeight,t.y),t},i.prototype.triggerMoveReal=function(t,e){s.prototype.triggerMoveReal.call(this,t,e);var r=this.snapToSeries;if(r&&!this.downPoint)if(r instanceof ni)r.isHidden&&this.updateLinePositions(t);else{var n=!0;L(r,function(a){a.isHidden||(n=!1)}),n&&this.updateLinePositions(t)}else this.updateLinePositions(t);this.downPoint&&at(this.downPoint,t)>3&&this._generalBehavior=="pan"&&(this.getPanningRanges(),this.dispatch("panning"))},i.prototype.updateLinePositions=function(t){t=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=t.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=t.y),this.updateSelection()},i.prototype.triggerDownReal=function(t){if(this.visible&&!this.isHiding)if(this._generalBehavior=="select"&&(this.selection.parent=this.parent),this.fitsToBounds(t)){this.downPoint={x:t.x,y:t.y},this.updatePoint(t),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var e=this.selection,r=this.downPoint.x,n=this.downPoint.y;this._usesSelection&&(e.x=r,e.y=n,e.path="",e.show()),s.prototype.triggerDownReal.call(this,t)}else this.downPoint=void 0;else this.downPoint=void 0},i.prototype.updatePoint=function(t){this.lineX&&(t.x=this.lineX.pixelX),this.lineY&&(t.y=this.lineY.pixelY)},i.prototype.triggerUpReal=function(t){if(this.hasMoved())this.downPoint&&(this.upPoint=t,this.updatePoint(this.upPoint),this._generalBehavior!="pan"&&this.getRanges(),this._generalBehavior!="select"&&this.selection.hide(),s.prototype.triggerUpReal.call(this,t));else{if(this._generalBehavior!="select"?this.selection.hide(0):(this.xRange=void 0,this.yRange=void 0,this.dispatchImmediately("selectended")),this._generalBehavior=="pan"){var e=K();e.setGlobalStyle(Ht.default)}this.dispatchImmediately("behaviorcanceled")}this.downPoint=void 0,this.dispatch("cursorpositionchanged")},i.prototype.hasMoved=function(){var t;return this.behavior=="zoomX"||this.behavior=="panX"?t=lh(this._upPointOrig,this._downPointOrig):this.behavior=="zoomY"||this.behavior=="panY"?t=hh(this._upPointOrig,this._downPointOrig):t=at(this._upPointOrig,this._downPointOrig),t>K().getHitOption(this.interactions,"hitTolerance")},i.prototype.getPanningRanges=function(){var t=F(this.downPoint.x/this.innerWidth,5),e=1-F(this.downPoint.y/this.innerHeight,5),r=F(this.point.x/this.innerWidth,5),n=1-F(this.point.y/this.innerHeight,5),a=t-r,o=e-n;this.xRange={start:a,end:1+a},this.yRange={start:o,end:1+o},this.behavior=="panX"&&(this.yRange.start=0,this.yRange.end=1),this.behavior=="panY"&&(this.xRange.start=0,this.xRange.end=1)},i.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),this.selection;var t=F(this.downPoint.x/this.innerWidth,5),e=F(this.upPoint.x/this.innerWidth,5),r=1-F(this.downPoint.y/this.innerHeight,5),n=1-F(this.upPoint.y/this.innerHeight,5);this.xRange={start:et(t,e),end:q(t,e)},this.yRange={start:et(r,n),end:q(r,n)}},Object.defineProperty(i.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")}
172,set:function(t){this.setPropertyValue("behavior",t,!0),this._usesSelection=!1,t.indexOf("zoom")!=-1&&(this._generalBehavior="zoom",this._usesSelection=!0),t.indexOf("select")!=-1&&(this._generalBehavior="select",this._usesSelection=!0),t.indexOf("pan")!=-1&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),i.prototype.shouldPreventGestures=function(t){return(!this.interactions.isTouchProtected||!t)&&this.behavior!="none"},Object.defineProperty(i.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(t){this.setPropertyValue("fullWidthLineX",t),t||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(t){this.setPropertyValue("fullWidthLineY",t),t||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideSeriesTooltipsOnSelection",{get:function(){return this.getPropertyValue("hideSeriesTooltipsOnSelection")},set:function(t){this.setPropertyValue("hideSeriesTooltipsOnSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxTooltipDistance",{get:function(){return this.getPropertyValue("maxTooltipDistance")},set:function(t){this.setPropertyValue("maxTooltipDistance",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(t){var e=this;this._xAxis.get()!=t&&this._xAxis.set(t,new Pt([t.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),t.events.on("rangechangestarted",function(r){e.hide(0),e.preventShow=!0},void 0,!1),t.events.on("rangechangeended",function(r){e.preventShow=!1,e.hide(0),e.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(t){var e=this;this._yAxis.get()!=t&&this._yAxis.set(t,new Pt([t.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),t.events.on("rangechangestarted",function(r){e.hide(0),e.__disabled=!0},void 0,!1),t.events.on("rangechangeended",function(r){e.__disabled=!1,e.hide(0),e.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),i.prototype.handleXTooltipPosition=function(t){var e=this.xAxis.tooltip,r=be({x:e.pixelX,y:e.pixelY},this),n=r.x;if(r.y=1,this.lineX&&(this.lineX.x=n,this.fitsToBounds(r)||this.hide()),this.xAxis&&this.fullWidthLineX){var a=this.xAxis.currentItemStartPoint,o=this.xAxis.currentItemEndPoint;if(a&&o){this.lineX.x=n;var l=o.x-a.x;this.lineX.path=Fn(l,this.innerHeight,-l/2)}}},i.prototype.handleYTooltipPosition=function(t){var e=this.yAxis.tooltip,r=be({x:e.pixelX,y:e.pixelY},this),n=r.y;if(r.x=1,this.lineY&&(this.lineY.y=n,this.fitsToBounds(r)||this.hide()),this.yAxis&&this.fullWidthLineY){var a=this.yAxis.currentItemStartPoint,o=this.yAxis.currentItemEndPoint;if(a&&o){this.lineY.y=n;var l=o.y-a.y;this.lineY.path=Fn(this.innerWidth,l,0,-l/2)}}},Object.defineProperty(i.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineX.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.interactionsEnabled=!1,t.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineY.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.parent=this,t.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selection",{get:function(){return this._selection},set:function(t){this._selection=t,t&&(t.element=this.paper.add("path"),t.parent=this)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(t){var e=this;if(t&&(b(t.xAxis)&&tt(t.xAxis)&&(this.map.hasKey(t.xAxis)?t.xAxis=this.map.getKey(t.xAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+t.xAxis+'" found for `xAxis`'),delete t.xAxis)),b(t.yAxis)&&tt(t.yAxis)&&(this.map.hasKey(t.yAxis)?t.yAxis=this.map.getKey(t.yAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+t.yAxis+'" found for `yAxis`'),delete t.yAxis)),b(t.
172snapToSeries))){var r=Wt(t.snapToSeries)?t.snapToSeries:[t.snapToSeries],n=!1;L(r,function(a,o){tt(a)&&(e.map.hasKey(a)?r[o]=e.map.getKey(a):(e.processingErrors.push('[XYCursor] No series with id "'+a+'" found for `series`'),n=!0))}),n?delete t.snapToSeries:t.snapToSeries=r}s.prototype.processConfig.call(this,t)},Object.defineProperty(i.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(t){var e=this;this.setPropertyValue("snapToSeries",t)&&(t instanceof ni&&(t=[t]),this._snapToDisposers&&L(this._snapToDisposers,function(r){r.dispose()}),this._snapToDisposers=[],t&&L(t,function(r){e._snapToDisposers.push(r.events.on("tooltipshownat",function(){e.handleSnap(r)},void 0,!1))}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"snapOnPan",{get:function(){return this.getPropertyValue("snapOnPan")},set:function(t){this.setPropertyValue("snapOnPan",t)},enumerable:!0,configurable:!0}),i.prototype.handleSnap=function(t){if(!this.downPoint){var e=t.getTooltipX()+t.xAxis.pixelX,r=t.getTooltipY()+t.yAxis.pixelY,n=t.xAxis,a=t.yAxis;n&&n.renderer.opposite&&(r-=this.pixelHeight),this.point={x:e,y:r},this.getPositions();var o=e,l=r;e-=this.pixelWidth,a&&a.renderer.opposite&&(e+=this.pixelWidth);var h=t.tooltip,u=h.animationDuration,p=h.animationEasing;n instanceof $&&!(n instanceof mt)&&a instanceof $&&!(a instanceof mt)?(t.yAxis.showTooltipAtPosition(this.yPosition),t.xAxis.showTooltipAtPosition(this.xPosition)):(t.baseAxis==t.xAxis&&t.yAxis.showTooltipAtPosition(this.yPosition),t.baseAxis==t.yAxis&&t.xAxis.showTooltipAtPosition(this.xPosition)),this.lineY.x=e,this.lineX.y=r,this.xAxis||this.lineX.animate([{property:"x",to:o}],u,p),this.yAxis||this.lineY.animate([{property:"y",to:l}],u,p)}},i.prototype.dispose=function(){this.hide(0),s.prototype.dispose.call(this)},i}(fl);_.registeredClasses.XYCursor=Ns;var ed=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="RadarCursor",t.radius=I(100),t.innerRadius=I(0),t.applyTheme(),t.mask=void 0,t}return i.prototype.fitsToBounds=function(t){var e=at(t);return e<this.truePixelRadius+1&&e>this.pixelInnerRadius-1},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),i.prototype.triggerMoveReal=function(t,e){(!this.xAxis||this.xAxis&&(!this.xAxis.cursorTooltipEnabled||this.xAxis.tooltip.disabled))&&this.updateLineX(this.point),(!this.yAxis||this.yAxis&&(!this.yAxis.cursorTooltipEnabled||this.yAxis.tooltip.disabled))&&this.updateLineY(this.point),this.updateSelection(),s.prototype.triggerMoveReal.call(this,t,e)},i.prototype.updateLineX=function(t){var e=this.pixelRadius,r=this.startAngle,n=this.endAngle,a=this.pixelInnerRadius;if(e>0&&v(r)&&v(n)&&v(a)){var o=we(Yt(t),r,n),l=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var h=this.xAxis.currentItemStartPoint,u=this.xAxis.currentItemEndPoint;if(h&&u){var p=we(Yt(h),r,n),d=we(Yt(u),r,n),f=d-p;r<n?f<0&&(f+=360):f>0&&(f-=360),o-=f/2,l=E({x:a*j(o),y:a*M(o)})+V({x:e*j(o),y:e*M(o)})+Lt(o,f,e)+V({x:a*j(o+f),y:a*M(o+f)})+Lt(o+f,-f,a)}}l||(l=E({x:a*j(o),y:a*M(o)})+V({x:e*j(o),y:e*M(o)})),this.lineX.path=l}}},i.prototype.updateLineY=function(t){if(this.lineY&&this.lineY.visible){var e=this.startAngle,r=this.endAngle,n=this.truePixelRadius,a=B(at(t),0,this.truePixelRadius);if(v(a)&&v(e)){this.lineY.moveTo({x:0,y:0});var o=void 0,l=r-e;if(this.yAxis&&this.fullWidthLineY){var h=this.yAxis.currentItemStartPoint,u=this.yAxis.currentItemEndPoint;if(h&&u){var p=B(at(h),0,n);a=B(at(u),0,n),o=E({x:a*j(e),y:a*M(e)})+Lt(e,l,a),o+=E({x:p*j(r),y:p*M(r)})+Lt(r,-l,p)}}o||(o=E({x:a*j(e),y:a*M(e)})+Lt(e,r-e,a)),this.lineY.path=o}}},i.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint;if(t){var e=this.point,r=this.pixelRadius,n=this.truePixelRadius,a=this.pixelInnerRadius,o=Math.min(this.startAngle,this.endAngle),l=Math.max(this.startAngle,this.endAngle),h=we(Yt(t),o,l),u=we(Yt(e),o,l),p=at(t);if(p<n){var d=B(at(e),0,n);this._prevAngle=u;var f=E({x:0,y:0}),c=M(h),y=j(h),g=M(u),m=j(u),x=this.behavior;x=="zoomX"||x=="selectX"?f+=V({x:r*y,y:r*c})+Lt(h,u-h,r)+V({x:a*m,y:a*g})+Lt(u,h-u,a):x=="zoomY"||x=="selectY"?f=E({x:d*j(o),y:d*M(o)})+Lt(o,l-o,d)+V({x:p*j(l),y:p*M(l)})+Lt(l,o-l,p)+At():x=="zoomXY"&&(f=E({x:d*j(h),y:d*M(h)})+Lt(h,u-h,d)+V({x:p*j(u),y:p*M(u)})+Lt(u,h-u,p)+At()),this.selection.path=f}this.selection.moveTo({x:0,y:0})}}},i.prototype.getPositions=function(){var t=this.chart;if(t){var e=this.pixelInnerRadius,r=this.truePixelRadius-e,n=this.startAngle,a=this.endAngle,o=we(Yt(this.point),n,a),l=(o-n)/(a-n);this.xPosition=l,this.yPosition=B((at(this.point)-e)/r,0,1)}},i.prototype.updatePoint=function(t){}
172,i.prototype.handleXTooltipPosition=function(t){if(this.xAxis.cursorTooltipEnabled){var e=this.xAxis.tooltip;this.updateLineX(be({x:e.pixelX,y:e.pixelY},this))}},i.prototype.handleYTooltipPosition=function(t){if(this.yAxis.cursorTooltipEnabled){var e=this.yAxis.tooltip;this.updateLineY(be({x:e.pixelX,y:e.pixelY},this))}},i.prototype.updateLinePositions=function(t){},i.prototype.getRanges=function(){var t=this.downPoint;if(t){var e=this.upPoint,r=this.chart;if(r){var n=this.pixelRadius,a=this.startAngle,o=this.endAngle,l=we(Yt(t),this.startAngle,this.endAngle),h=we(Yt(e),this.startAngle,this.endAngle),u=B(at(t),0,n),p=B(at(e),0,n),d=0,f=1,c=0,y=1,g=this.behavior;if(g=="zoomX"||g=="selectX"||g=="zoomXY"||g=="selectXY"){var m=o-a;d=F((l-a)/m,5),f=F((h-a)/m,5)}(g=="zoomY"||g=="selectY"||g=="zoomXY"||g=="selectXY")&&(c=F(u/n,5),y=F(p/n,5)),this.xRange={start:Math.min(d,f),end:Math.max(d,f)},this.yRange={start:Math.min(c,y),end:Math.max(c,y)},this.behavior=="selectX"||this.behavior=="selectY"||this.behavior=="selectXY"||this.selection.hide()}}},i.prototype.updateSize=function(){},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return Bt(this.radius,this.truePixelRadius)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"truePixelRadius",{get:function(){return bt(I(100),et(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){var t=this.innerRadius;return t instanceof Q&&(t=I(100*t.value*this.chart.innerRadiusModifyer)),Bt(t,this.truePixelRadius)||0},enumerable:!0,configurable:!0}),i.prototype.fixPoint=function(t){return t},i}(Ns);_.registeredClasses.RadarCursor=ed;var id=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Image",t.element=t.paper.add("image"),t.applyTheme(),t.width=50,t.height=50,t}return i.prototype.draw=function(){if(s.prototype.draw.call(this),this.href){var t=this.innerWidth,e=this.innerHeight;v(this.widthRatio)&&(t=e*this.widthRatio,this.width=t),v(this.heightRatio)&&(e=t*this.heightRatio,this.height=e),this.element.attr({width:t,height:e}),this.element.attrNS(bs,"xlink:href",this.href)}},Object.defineProperty(i.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(t){this.setPropertyValue("href",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(t){this.setPropertyValue("widthRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(t){this.setPropertyValue("heightRatio",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),i}(Z);_.registeredClasses.Image=id;var rd=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Polyarc",t.controlPointDistance=.5,t.controlPointPosition=.5,t.applyTheme(),t}return i.prototype.makePath=function(){this._distance=0;var t=this.segments;if(t&&t.length>0){var e="";this._realSegments=[];for(var r=0,n=t.length;r<n;r++){var a=t[r],o=[];if(this._realSegments.push(o),a.length>0){e+=E(a[0]);for(var l=1;l<a.length;l++){var h=a[l-1],u=a[l],p=at(u,h),d=p*this.controlPointDistance,f=this.controlPointPosition,c=-Yt(h,u),y=h.x+(u.x-h.x)*f*.5-d*M(c),g=h.y+(u.y-h.y)*f*.5-d*j(c),m={x:y,y:g},x=h.x+(u.x-h.x)*f*1.5-d*M(c),P=h.y+(u.y-h.y)*f*1.5-d*j(c),S={x,y:P};e+=Xi(u,m,S);var C=Math.ceil(p),O=h;if(C>0)for(var T=0;T<=C;T++){var D=hs(h,u,m,S,T/C);o.push(D),this._distance+=at(O,D),O=D}else o.push(h)}}}this.path=e}},Object.defineProperty(i.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(t){this.setPropertyValue("controlPointPosition",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t),this.makePath()},enumerable:!0,configurable:!0}),i}(Ui);_.registeredClasses.Polyarc=rd;var nd=function(s){w(i,s);function i(t){var e=s.call(this)||this;return e._bboxes=[],e.morphDuration=800,e.morphEasing=ii,e.morphToSingle=!0,e.scaleRatio=1,e.className="Morpher",e.morphable=t,e.applyTheme(),e}return i.prototype.morphToPolygon=function(t,e,r){var n=this.morphable.currentPoints;if(n&&t){this.sortPoints(n),this.sortPoints(t),this._morphFromPointsReal=[],this._morphToPointsReal=[],b(e)||(e=this.morphDuration),b(r)||(r=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(t,n),this._morphToPointsReal=this.normalizePoints(n,t),this.morphable.currentPoints=this._morphFromPointsReal;var a=new ge(this,{property:"morphProgress",from:0,to:1},e,r);return this._disposers.push(a),a.start(),a}},i.prototype.normalizePoints=function(t,e){for(var r=0,n=t.length;r<n;r++){var a=t[r][0],o=t[r][1],l=xt(Si(a)),h=l.x+l.width,u=l.y+l.height;if(e[r]||(e[r]=[]),a&&!e[r][0]&&(e[r][0]=[{x:h,y:u},{x:h,y:u}]),e[r][0]){e[r][0]=this.addPoints(e[r][0],a.length);for(var p=1/0,d=0,f=0;f<e[r][0].length;f++){var c=at(e[r][0][f],a[0]);
172c<p&&(d=f,p=c)}var y=e[r][0].slice(0,d),g=e[r][0].slice(d);e[r][0]=g.concat(y)}o&&(e[r][1]||(e[r][1]=[{x:h,y:u},{x:h,y:u}]),e[r][1]=this.addPoints(e[r][1],o.length))}return e},i.prototype.sortPoints=function(t){t.sort(function(o,l){var h=xt(Si(o[0])),u=xt(Si(l[0]));return h.width*h.height>u.width*u.height?-1:1});for(var e=[],r=0,n=t.length;r<n;r++){var a=t[r][0];a&&e.push(xt(Si(a)))}return Gi(e)},i.prototype.morphToCircle=function(t,e,r){var n=this.morphable.points,a=this.sortPoints(n);this._morphFromPointsReal=[],this._morphToPointsReal=[],b(e)||(e=this.morphDuration),b(r)||(r=this.morphEasing);for(var o=0,l=n.length;o<l;o++){var h=n[o][0],u=n[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],h){var p=h,d=h,f=xt(Si(d));this.morphToSingle&&(f=xt(a));var c=f.x+f.width/2,y=f.y+f.height/2,g=t;v(g)||(g=Math.min(f.width/2,f.height/2)),p=[];var m=Yt({x:c,y},h[0]),x=100;h.length>x&&(x=h.length),d=this.addPoints(h,x),x=d.length;for(var P=360/(x-1),S=0;S<x;S++){var C=P*S+m,O={x:c+g*j(C),y:y+g*M(C)};p[S]=O}if(u&&u.length>0)for(var T=0,D=u.length;T<D;T++)p.push({x:c,y});this._morphFromPointsReal[o][0]=d,this._morphToPointsReal[o][0]=p}}this.morphable.currentPoints=this._morphFromPointsReal;var k=new ge(this,{property:"morphProgress",from:0,to:1},e,r);return this._disposers.push(k),k.start(),k},i.prototype.addPoints=function(t,e){for(var r=Math.round(e/t.length),n=[],a=0,o=t.length;a<o;a++){var l=t[a],h=void 0;a==t.length-1?h=t[0]:h=t[a+1],n.push(l);for(var u=1;u<r;u++){var p=u/r,d={x:l.x+(h.x-l.x)*p,y:l.y+(h.y-l.y)*p};n.push(d)}n.length+t.length-a==e&&(r=0)}if(n.length<e&&t.length>0)for(var f=t[t.length-1],u=n.length;u<e;u++)n.push({x:f.x,y:f.y});return n},i.prototype.morphToRectangle=function(t,e,r,n){var a=this.morphable.points;this.sortPoints(a),this._morphFromPointsReal=[],this._morphToPointsReal=[],b(r)||(r=this.morphDuration),b(n)||(n=this.morphEasing);for(var o=0,l=a.length;o<l;o++){var h=a[o][0],u=a[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],h){var p=h,d=h,f=this._bboxes[o];this.morphToSingle;var c=f.x,y=f.y,g=t,m=e;if(v(g)||(g=f.width),v(m)||(m=f.height),p=[{x:c,y},{x:c+g,y},{x:c+g,y:y+m},{x:c,y:y+m}],p=this.addPoints(p,h.length),h.length<4)for(var x=h.length;x<4;x++)p.push({x:h[x].x,y:h[x].y});if(u&&u.length>0)for(var P=f.x+f.width/2,S=f.y+f.height/2,C=0,O=u.length;C<O;C++)p.push({x:P,y:S});this._morphFromPointsReal[o][0]=d,this._morphToPointsReal[o][0]=p}}this.morphable.currentPoints=this._morphFromPointsReal;var T=new ge(this,{property:"morphProgress",from:0,to:1},r,n);return this._disposers.push(T),T.start(),T},Object.defineProperty(i.prototype,"morphProgress",{get:function(){return this._morphProgress},set:function(t){this._morphProgress=t;var e=[];if(t!=null){var r=this._morphFromPointsReal,n=this._morphToPointsReal;if(r!=null&&n!=null)for(var a=0,o=r.length;a<o;a++){var l=[];e.push(l);var h=r[a][0],u=r[a][1],p=n[a][0],d=n[a][1];if(h&&h.length>0&&p&&p.length>0){for(var f=[],c=0,y=h.length;c<y;c++){var g=h[c],m=p[c],x={x:g.x+(m.x*this.scaleRatio-g.x)*t,y:g.y+(m.y*this.scaleRatio-g.y)*t};f.push(x)}l[0]=f}if(u&&u.length>0&&d&&d.length>0){for(var P=[],S=0,C=u.length;S<C;S++){var g=u[S],m=d[S],x={x:g.x+(m.x*this.scaleRatio-g.x)*t,y:g.y+(m.y*this.scaleRatio-g.y)*t};P.push(x)}l[1]=P}}}this.morphable.currentPoints=e},enumerable:!0,configurable:!0}),i.prototype.morphBack=function(t,e){this._morphToPointsReal=this._morphFromPointsReal,this._morphFromPointsReal=this.morphable.currentPoints,b(t)||(t=this.morphDuration),b(e)||(e=this.morphEasing);var r=new ge(this,{property:"morphProgress",from:0,to:1},t,e);return this._disposers.push(r),r.start(),r},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new bi(this._animations))),this._animations},enumerable:!0,configurable:!0}),i}($t),sd=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Polygon",t.element=t.paper.add("path"),t.shapeRendering="auto",t._currentPoints=[],t.applyTheme(),t}return Object.defineProperty(i.prototype,"points",{get:function(){var t=this.getPropertyValue("points"),e=this.path;if(e&&(!t||t.length==0)){for(var r=e.slice(1,e.length-1),n=r.split("ZM"),a=0;a<n.length;a++){var o=n[a];if(o.length>0){var l=o.split("M"),h=l[0],u=l[1];if(h&&h.length>0){var p=h.split("L");if(p.length>0){var d=[],f=[d];t.push(f);for(var c=0;c<p.length;c++){var y=p[c].split(",");d.push({x:+y[0],y:+y[1]})}if(u&&u.length>0){var g=u.split("L");if(g.length>0){var m=[];f.push(m);for(var c=g.length-1;c>=0;c--){var y=g[c].split(",");m.push({x:+y[0],y:+y[1]})}}}}}}}this.setPropertyValue("points",t),this._currentPoints=t}return t},set:function(t){this.setPropertyValue("points",t,!0),this._currentPoints=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentPoints",{get:function(){return(!this._currentPoints||this._currentPoints.length==0)&&this.path&&(this._currentPoints=this.points),this._currentPoints},set:function(t){this._currentPoints!=t&&(this._currentPoints=t,this.draw())},enumerable:!0,configurable:!0}),i.prototype.draw=function(){var t="",e=this._currentPoints,r,n,a,o;if(e.length>0){for(var l=0,h=e.length;l<h;l++){var u=e[l][0],p=e[l][1];if(u&&u.length>0){var d=u[0];t+=E(d);for(var f=0;f<u.length;f++)d=u[f],t+=V(d),(!v(n)||n<d.x)&&(n=d.x),(!v(r)||r>d.x)&&(r=d.x),(!v(a)||a>d.y)&&(a=d.y),(!v(o)||o<d.y)&&(o=d.y)}if(p&&p.length>0){var d=p[0];t+=E(d);for(var c=0,y=p.length;c<y;c++)d=p[c],t+=V(d)}}t&&(t+=At()),this.bbox.x=r,this.bbox.y=a,this.bbox.width=n-r,this.bbox.height=o-a,s.prototype.setPath.call(this,t)}},i.prototype.setPath=function(t){return s.prototype.setPath.call(this,t)?(this.points=[],this._bbox=this.group.getBBox(),!0):!1},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"centerPoint",{get:function(){return{x:this.bbox.x+this.bbox.width/2,y:this.bbox.y+this.bbox.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"morpher",{get:function(){return this._morpher||(this._morpher=new nd(this),this._disposers.push(this._morpher)),this._morpher},enumerable:!0,configurable:!0}),i}(Z);_.registeredClasses.Polygon=sd;var cl=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="Preloader",t.width=I(100),t.height=I(100);var e=new nt,r=t.createChild(N);r.shouldClone=!1;var n=r.createChild(si);n.shouldClone=!1,n.radius=53,n.arc=360,n.fill=e.getFor("fill"),n.fillOpacity=.8,n.innerRadius=42,n.isMeasured=!1,t.backgroundSlice=n;var a=r.createChild(si);a.shouldClone=!1,a.radius=50,a.innerRadius=45,a.fill=e.getFor("alternativeBackgroun
172d"),a.fillOpacity=.2,a.isMeasured=!1,t.progressSlice=a;var o=r.createChild(te);o.shouldClone=!1,o.horizontalCenter="middle",o.verticalCenter="middle",o.isMeasured=!1,o.fill=e.getFor("text"),o.align="center",o.valign="middle",o.textAlign="middle",o.fillOpacity=.4,t.label=o,t.background.opacity=1,t.background.fill=e.getFor("background"),t.contentAlign="center",t.contentValign="middle",t.delay=300;var l=t.states.create("hidden");return l.properties.opacity=0,t.visible=!1,t.hide(0),t.__disabled=!0,t._disposers.push(t.backgroundSlice),t._disposers.push(t.progressSlice),t._disposers.push(t.label),t._disposers.push(r),t}return Object.defineProperty(i.prototype,"progress",{get:function(){return this.getPropertyValue("progress")},set:function(t){var e=this;this.__disabled=!1,this.validateLayout(),this.setPropertyValue("progress",t),this.progressSlice.arc=360*t,this.label&&(this.label.text=Math.round(t*100)+"%"),t>=1?(this._started&&(this._started=void 0),_.events.once("enterframe",function(){var r=e.hide();r&&!r.isFinished()?r.events.once("animationended",function(){e.__disabled=!0}):e.__disabled=!0}),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):t>0&&(this.delay?this._started?this._started+this.delay<=new Date().getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=new Date().getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(t){this.setPropertyValue("delay",t)},enumerable:!0,configurable:!0}),i}(N);_.registeredClasses.Preloader=cl;var ad=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="CloseButton",t.padding(8,8,8,8),t.showSystemTooltip=!0,t.width=30,t.height=30;var e=new nt;t.cursorOverStyle=Ht.pointer;var r=t.background;r.cornerRadius(20,20,20,20);var n=e.getFor("background");r.fill=n,r.stroke=e.getFor("primaryButton"),r.strokeOpacity=1,r.strokeWidth=1;var a=e.getFor("primaryButtonActive"),o=r.states.getKey("hover");o.properties.strokeWidth=3,o.properties.fill=n;var l=r.states.getKey("down");l.properties.stroke=a,l.properties.fill=n;var h=new Z;return h.element=t.paper.add("path"),h.stroke=r.stroke,t.icon=h,t.applyTheme(),t}return i.prototype.validate=function(){s.prototype.validate.call(this);var t=this.pixelWidth/3,e=this.pixelHeight/3,r=E({x:-t/2,y:-e/2});r+=V({x:t/2,y:e/2}),r+=E({x:t/2,y:-e/2}),r+=V({x:-t/2,y:e/2}),this.icon.path=r,this.invalidateLayout()},i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Close"))},i}(Ye);_.registeredClasses.CloseButton=ad;var od=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="SwitchButton",t.tooltipY=0,t.layout="horizontal",t.contentAlign="center",t.contentValign="middle",t.padding(8,16,8,16),t.setStateOnChildren=!0,t.states.create("active");var e=new nt,r=new te;r.fillOpacity=.3;var n=r.states.create("active");n.properties.fillOpacity=1,r.isActive=!0,t.leftLabel=r;var a=new Ye,o=new oi;a.contentValign="none",a.padding(0,0,0,0),o.radius=10,a.icon=o,a.icon.valign="middle",a.label=void 0;var l=I(100);a.background.cornerRadius(l,l,l,l),a.width=o.radius*3.5,a.height=o.radius*2.1,a.marginLeft=8,a.marginRight=8,a.togglable=!0,o.dx=-o.radius*.7,o.fill=e.getFor("primaryButton");var h=o.states.create("hover");h.properties.fill=e.getFor("primaryButtonHover");var u=o.states.create("active");u.properties.fill=e.getFor("primaryButtonActive"),u.properties.dx=o.radius*.7,t.switchButton=a,t.events.on("toggled",function(){t.leftLabel.isActive=!t.isActive,t.rightLabel.isActive=t.isActive});var p=new te;p.fillOpacity=.3;var d=p.states.create("active");return d.properties.fillOpacity=1,t.rightLabel=p,t.role="button",t.focusable=!0,p.valign="middle",r.valign="middle",a.valign="middle",t.applyTheme(),t}return Object.defineProperty(i.prototype,"leftLabel",{get:function(){return this._leftLabel},set:function(t){this._leftLabel&&this.removeDispose(this._leftLabel),this._leftLabel=t,t&&(t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this._disposers.push(this._leftLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightLabel",{get:function(){return this._rightLabel},set:function(t){this._rightLabel&&this.removeDispose(this._rightLabel),this._rightLabel=t,t&&(t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this._disposers.push(this._rightLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"switch",{get:function(){return this._switchButton},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"switchButton",{get:function(){return this._switchButton},set:function(t){this._switchButton&&this.removeDispose(this._switchButton),this._switchButton=t,t&&(t.parent=this,t.shouldClone=!1,this._disposers.push(this._switchButton))},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),t.leftLabel&&this.left
172Label.copyFrom(t.leftLabel),t.rightLabel&&this.rightLabel.copyFrom(t.rightLabel),t.switchButton&&this.switchButton.copyFrom(t.switchButton)},i}(N);_.registeredClasses.SwitchButton=od;var ld=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="Slider",t.thumb.opacity=0,t.thumb.interactionsEnabled=!1,t.endGrip.opacity=0,t.endGrip.interactionsEnabled=!1,t.startGrip.events.on("drag",function(){t.endGrip.x=t.startGrip.x,t.endGrip.y=t.startGrip.y}),t.applyTheme(),t}return Object.defineProperty(i.prototype,"__end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return this._start},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),i}(en);_.registeredClasses.Slider=ld;var hd=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="PlayButton",t.padding(12,12,12,12),t.showSystemTooltip=!0;var e=new nt,r=t.background;r.cornerRadius(25,25,25,25),r.fill=e.getFor("primaryButton"),r.stroke=e.getFor("primaryButtonStroke"),r.strokeOpacity=0,r.states.getKey("hover").properties.fill=e.getFor("primaryButtonHover"),r.states.getKey("down").properties.fill=e.getFor("primaryButtonActive");var n=new Hs;n.direction="right",n.width=9,n.height=11,n.marginLeft=1,n.marginRight=1,n.horizontalCenter="middle",n.verticalCenter="middle",n.stroke=e.getFor("primaryButtonText"),n.fill=n.stroke,t.icon=n;var a=new Ae;a.width=11,a.height=11,a.horizontalCenter="middle",a.verticalCenter="middle",a.cornerRadius(0,0,0,0),a.stroke=e.getFor("primaryButtonText"),a.fill=n.stroke,t.togglable=!0;var o=t.states.create("active");return o.transitionDuration=0,o.properties.icon=a,t.defaultState.transitionDuration=0,t.applyTheme(),t}return i.prototype.applyInternalDefaults=function(){s.prototype.applyInternalDefaults.call(this),b(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},i}(Ye);_.registeredClasses.PlayButton=hd;var ud=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="RadialGradientModifier",t.gradient=new Ne,t.applyTheme(),t}return i.prototype.copyFrom=function(t){s.prototype.copyFrom.call(this,t),this.gradient=t.gradient.clone()},i}(js);_.registeredClasses.RadialGradientModifier=ud;var yl=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.properties.gap=0,t._line=t.paper.add("path"),t.addElement(t._line),t}return i.prototype.draw=function(){if(s.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties.shapeRendering="auto"),this._line){var t=this.width,e=this.height,r="";if(!this.gap)Math.round(this.rotation/90)!=this.rotation/90?(r=E({x:-t,y:e/2})+V({x:t*2,y:e/2}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r=E({x:0,y:0})+V({x:t,y:0});else for(var n=this.gap+this.strokeWidth,a=this.height/n,o=-a/2;o<a*1.5;o++)Math.round(this.rotation/90)!=this.rotation/90?(r+=E({x:-t,y:(o+.5)*n})+V({x:t*2,y:(o+.5)*n}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r+=E({x:-t,y:o*n})+V({x:t*2,y:o*n});this._line.attr({d:r})}},Object.defineProperty(i.prototype,"gap",{get:function(){return this.properties.gap},set:function(t){this.properties.gap=t,this.draw()},enumerable:!0,configurable:!0}),i}(mi);_.registeredClasses.LinePattern=yl;var gl=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.properties.radius=2,t._circle=t.paper.add("circle"),t.addElement(t._circle),t.shapeRendering="auto",t}return i.prototype.draw=function(){s.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(i.prototype,"radius",{get:function(){return this.properties.radius},set:function(t){this.properties.radius=t,this.draw()},enumerable:!0,configurable:!0}),i}(mi);_.registeredClasses.CirclePattern=gl;var vl=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.rectHeight=1,t.rectWidth=1,t._rect=t.paper.add("rect"),t.addElement(t._rect),t}return i.prototype.draw=function(){s.prototype.draw.call(this),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(i.prototype,"rectWidth",{get:function(){return this.properties.rectWidth}
172,set:function(t){this.properties.rectWidth=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(t){this.properties.rectHeight=t,this.draw()},enumerable:!0,configurable:!0}),i}(mi);_.registeredClasses.RectPattern=vl;var pd=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="ColorizeFilter",t.feColorMatrix=t.paper.add("feColorMatrix"),t.feColorMatrix.attr({type:"matrix"}),t.filterPrimitives.push(t.feColorMatrix),t.intensity=1,t.applyTheme(),t}return i.prototype.applyFilter=function(){var t=this.intensity,e=1-t,r,n,a,o=this.color;o&&o.rgb?(r=o.rgb.r/255*t,n=o.rgb.g/255*t,a=o.rgb.b/255*t):(r=0,n=0,a=0),this.feColorMatrix.attr({values:e+" 0 0 0 "+r+" 0 "+e+" 0 0 "+n+" 0 0 "+e+" 0 "+a+" 0 0 0 1 0"})},Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(t){this.properties.intensity=t,this.applyFilter()},enumerable:!0,configurable:!0}),i}(Pi);_.registeredClasses.ColorizeFilter=pd;var dd=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="BlurFilter",t.feGaussianBlur=t.paper.add("feGaussianBlur"),t.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),t.filterPrimitives.push(t.feGaussianBlur),t.width=200,t.height=200,t.blur=1.5,t.applyTheme(),t}return Object.defineProperty(i.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),i}(Pi);_.registeredClasses.BlurFilter=dd;var fd=function(s){w(i,s);function i(){var t=s.call(this)||this;return t.className="FocusFilter",t.feFlood=t.paper.add("feFlood"),t.feFlood.attr({"flood-color":new nt().getFor("primaryButtonHover"),result:"base"}),t.filterPrimitives.push(t.feFlood),t.feMorphology=t.paper.add("feMorphology"),t.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),t.filterPrimitives.push(t.feMorphology),t.feColorMatrix=t.paper.add("feColorMatrix"),t.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),t.filterPrimitives.push(t.feColorMatrix),t.feComposite=t.paper.add("feComposite"),t.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),t.filterPrimitives.push(t.feComposite),t.feBlend=t.paper.add("feBlend"),t.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),t.filterPrimitives.push(t.feBlend),t.width=130,t.height=130,t.applyTheme(),t}return Object.defineProperty(i.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(t){this.properties.stroke=t,this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(t){this.properties.strokeWidth=t,this.feMorphology.attr({radius:t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(t){this.properties.opacity=t,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+t+" 0"})},enumerable:!0,configurable:!0}),i.prototype.setSprite=function(t){this._sprite&&this._sprite!=t&&this._sprite.group.removeStyle("outline"),t.group.addStyle({outline:"none"}),s.prototype.setSprite.call(this,t)},i}(Pi),cd=function(s){w(i,s);function i(){var t=s.call(this)||this;t._list=[],t._currentStep=0,t._startIndex=0,t._currentPass=0,t.baseColor=new it({r:103,g:183,b:220}),t.className="PatternSet";var e=new nt;return t.list=[t.getLinePattern(1e3,45,1,6),t.getRectPattern(10,0,4),t.getLinePattern(1e3,-45,1,6),t.getCirclePattern(11,2,!0),t.getLinePattern(6,90,1),t.getRectPattern(12,45,6,!0),t.getLinePattern(6,0,1),t.getRectPattern(7,0,4),t.getLinePattern(1e3,45,2,3,"4,2"),t.getCirclePattern(9,3,!1),t.getLinePattern(1e3,-45,2,3,"4,2"),t.getRectPattern(10,45,Math.sqrt(50)),t.getLinePattern(1e3,-45,2,1),t.getRectPattern(10,0,9),t.getLinePattern(1e3,45,2,1),t.getLinePattern(1e3,0,3,1),t.getRectPattern(10,45,10),t.getLinePattern(1e3,90,3,1)],t.baseColor=e.getFor("stroke"),t.applyTheme(),t}return i.prototype.getLinePattern=function(t,e,r,n,a){var o=new yl;return o.width=t,o.height=t,o.stroke=this.baseColor,o.gap=n,o.strokeDasharray=a,o.strokeWidth=r,o.rotation=e,o},i.prototype.getRectPattern=function(t,e,r,n){var a=new vl;return a.width=t,a.height=t,a.rectWidth=r,a.rectHeight=r,n?(a.stroke=this.baseColor,a.strokeWidth=1,a.fillOpacity=0):(a.fill=this.baseColor,a.strokeWidth=0),e!=0&&(a.shapeRendering="auto"),a.rotation=e,a},i.prototype.getCirclePattern=function(t,e,r){var n=new gl;return n.width=t,n.height=t,n.shapeRendering="auto",n.radius=e,r?(n.stroke=this.baseColor,n.strokeWidth=1,n.fillOpacity=0):(n.fill=this.baseColor,n.strokeWidth=0),n},Object.defineProperty(i.prototype,"list",{get:function(){return this._list},set:function(t){this._list=t,this.reset()},enumerable:!0,configurable:!0}),i.prototype.next=function(){var t=this.getIndex(this.currentStep);return this._currentStep++,t},i.prototype.getIndex=function(t){for(var e;this.list.length<=t;)this.generatePatterns();return e=this.list[t],e.clone()},i.prototype.generatePatterns=function(){var t=this.list.length/(this._currentPass+1);this._currentPass++;for(var e=0;e<t;e++)this.list.push(this.list[e].clone())},i.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(i.prototype,"currentStep",{get:function(){return this._currentStep},set:function(t){this._currentStep=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return this._startIndex},set:function(t){this._startIndex=t,this.reset()},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(t){s.prototype.processConfig.call(this,t)},i}($t);_.registeredClasses.PatternSet=cd;var yd=function(s){w(i,s);function i(){var t=s.call(this)||this;t.className="AmChartsLogo",t.valign="bottom";var e=.3;t.opacity=.3,t.defaultState.properties.opacity=.4,t.url="https://www.amcharts.com/",t.urlTarget="_blank",t.showSystemTooltip=!0,t.readerTitle="Chart created using amCharts library",t.width=220*e,t.height=70*e,t.background.opacity=0;var r=H("#474758");new nt().getFor("background").alternative.hex=="#ffffff"&&(r=H("#ffffff"));var n=new ce;
172n.addColor(r),n.addColor(r,1,.75),n.addColor(H("#3cabff"),1,.755),n.rotation=-10;var a=n,o=t.createChild(Gr);o.shouldClone=!1,o.isMeasured=!1,o.segments=[[{x:50*e,y:50*e},{x:90*e,y:50*e},{x:120*e,y:20*e},{x:135*e,y:35*e},{x:150*e,y:20*e},{x:180*e,y:50*e},{x:200*e,y:50*e}]],o.strokeWidth=6*e,o.tensionX=.8,o.tensionY=1,o.stroke=H("#3cabff");var l=t.createChild(Gr);l.shouldClone=!1,l.isMeasured=!1,l.segments=[[{x:20*e,y:50*e},{x:50*e,y:50*e},{x:90*e,y:12*e},{x:133*e,y:50*e},{x:170*e,y:50*e},{x:200*e,y:50*e}]],l.strokeWidth=6*e,l.tensionX=.75,l.tensionY=1,l.stroke=a,t._disposers.push(l);var h=new Xr;t.filters.push(h);var u=new Xr;u.saturation=1;var p=t.states.create("hover");return p.properties.opacity=1,p.filters.push(u),t.applyTheme(),t}return i}(N);function gd(s,i){var t=oo(s),e=!1;if(t||(t=document.createElement("div"),t.style.width="200px",t.style.height="200px",t.style.top="0",t.style.left="0",t.style.visibility="hidden",t.style.position="absolute",document.body.appendChild(t),e=!0),t){t.innerHTML="";var r=new fo(t),n=new co(r.SVGContainer,"svg-"+(Qn.length-1)),a=new N;a.htmlContainer=t,a.svgContainer=r,a.width=I(100),a.height=I(100),a.background.fillOpacity=0,a.paper=n,n.append(a.group),e&&Xu(function(){a.moveHtmlContainer(s)}),a.relativeWidth=1,a.relativeHeight=1,r.container=a;var o=a.createChild(i);o.topParent=a;var l=o.uid;_.invalidSprites[l]=[],_.invalidDatas[l]=[],_.invalidPositions[l]=[],_.invalidLayouts[l]=[],a.baseId=l,o.isBaseSprite=!0,o.focusFilter=new fd,_.baseSprites.push(o),_.baseSpritesByUid[l]=o,o.maskRectangle={x:0,y:0,width:Math.max(r.width||0,0),height:Math.max(r.height||0,0)},a.events.on("maxsizechanged",function(c){(c.previousWidth==0||c.previousHeight==0)&&a.deepInvalidate(),o.maskRectangle&&(o.maskRectangle={x:0,y:0,width:Math.max(r.width||0,0),height:Math.max(r.height||0,0)})});var h=null,u=function(){o.isDisposed()?h=null:lo(o.dom)==null?(ms("Chart was not disposed",o.uid),h=null):h=window.setTimeout(u,1e3)};u(),o.addDisposer(new lt(function(){h!==null&&clearTimeout(h),G(_.baseSprites,o),_.baseSpritesByUid[o.uid]=void 0})),o.addDisposer(a);var p=a.createChild(N);p.topParent=a,p.width=I(100),p.height=I(100),p.isMeasured=!1,a.tooltipContainer=p,o.tooltip=new tn,o.tooltip.hide(0),o.tooltip.setBounds({x:0,y:0,width:p.maxWidth,height:p.maxHeight}),p.events.on("maxsizechanged",function(){xt(o.tooltip).setBounds({x:0,y:0,width:p.maxWidth,height:p.maxHeight})},void 0,!1);var d=new cl;if(d.events.on("inited",function(){d.__disabled=!0},void 0,!1),a.preloader=d,o instanceof N&&!o.hasLicense()){var f=p.createChild(yd);p.events.on("maxsizechanged",function(c){p.maxWidth<=100||p.maxHeight<=50?f.hide():(f.isHidden||f.isHiding)&&f.show()},void 0,!1),o.logo=f,f.align="left",f.valign="bottom"}return o.numberFormatter,a.isStandaloneInstance=!0,o}else throw J.log("html container not found"),new Error("html container not found")}function vd(s,i){var t;tt(i)&&(b(_.registeredClasses[i])?i=_.registeredClasses[i]:(i=_.registeredClasses.Container,t=new Error("Class ["+i+"] is not loaded.")));var e=gd(s,i);return t&&e.raiseCriticalError(t),e}function md(s){_.themes.indexOf(s)===-1&&_.themes.push(s)}function bd(s){oe.licenses.push(s)}var xd=function(s){Qt(s,"SpriteState")&&(s.transitionDuration=400),Qt(s,"Component")&&(s.rangeChangeDuration=500,s.interpolationDuration=500,s.sequencedInterpolation=!1,Qt(s,"SankeyDiagram")&&(s.sequencedInterpolation=!0),Qt(s,"FunnelSeries")&&(s.sequencedInterpolation=!0)),Qt(s,"Chart")&&(s.defaultState.transitionDuration=2e3,s.hiddenState.transitionDuration=1e3),Qt(s,"Tooltip")&&(s.animationDuration=400,s.defaultState.transitionDuration=400,s.hiddenState.transitionDuration=400),Qt(s,"Scrollbar")&&(s.animationDuration=500),Qt(s,"Series")&&(s.defaultState.transitionDuration=1e3,s.hiddenState.transitionDuration=700,s.hiddenState.properties.opacity=1,s.showOnInit=!0),Qt(s,"MapSeries")&&(s.hiddenState.properties.opacity=0),Qt(s,"PercentSeries")&&(s.hiddenState.properties.opacity=0),Qt(s,"FunnelSlice")&&(s.defaultState.transitionDuration=800,s.hiddenState.transitionDuration=1e3,s.hiddenState.properties.opacity=1),Qt(s,"Slice")&&(s.defaultState.transitionDuration=700,s.hiddenState.transitionDuration=1e3,s.hiddenState.properties.opacity=1),Qt(s,"Preloader")&&(s.hiddenState.transitionDuration=2e3),Qt(s,"Column")&&(s.defaultState.transitionDuration=700,s.hiddenState.transitionDuration=1e3,s.hiddenState.properties.opacity=1),Qt(s,"Column3D")&&(s.hiddenState.properties.opacity=0)};const _d=["day","week","quarter","year"];function ml(s){md(xd),bd("CH363123269"),bl(s,"day"),Pd(s)}function Pd(s){const i=document.querySelectorAll("#chartRangeBtns .range_btn"),t=document.querySelector("#"+s);
172i.forEach(e=>{e.addEventListener("click",async r=>{t==null||t.classList.add("hidden");const n=r.target.getAttribute("id");_d.forEach(a=>t==null?void 0:t.classList.remove(a)),t==null||t.classList.add(n),i.forEach(a=>a.classList.remove("active")),e.classList.add("active"),await bl(s,n),t==null||t.classList.remove("hidden")})})}async function bl(s,i){const t=document.querySelector("#"+s),e=t==null?void 0:t.getAttribute("data-id"),r=await Td(i,e);if(r.stock_market_status===In.BEFORE_OPEN){const a=document.querySelector(".before_open"),o=document.querySelector("#stockChartArea");i==="day"?(o==null||o.classList.add("hidden"),a==null||a.classList.remove("none")):(a==null||a.classList.add("none"),o==null||o.classList.remove("hidden"))}const n=vd(s,Le);n.leftAxesContainer.layout="vertical",n.cursor=new Ns,n.cursor.lineY.disabled=!0,n.cursor.behavior="zoomX",n.data=r.chart,t&&Od(t,r,i),i==="day"?(Cd(n,r),n.padding(10,10,0,0)):(wd(n,i),n.padding(30,10,0,0)),Sd(n,i)}function Cd(s,i){const t=s.xAxes.push(new mt);t.renderer.grid.template.disabled=!0,t.keepSelection=!0,t.groupData=!0,t.minZoomCount=5,t.zoomable=!0,t.dataFields.date="date",t.renderer.fontFamily="Roboto",t.renderer.fontSize="14px",t.renderer.fontWeight="400",t.renderer.inside=!1;const e=s.yAxes.push(new $);e.zIndex=1,e.height=230,e.marginTop=20,e.renderer.labels.template.verticalCenter="middle",e.renderer.labels.template.align="left",e.renderer.labels.template.padding(2,10,2,2),e.renderer.fontSize="0.8em",e.cursorTooltipEnabled=!1;const r=Math.floor(i.price.juga/1e3)*1e3,n=Math.ceil(i.price.goga/1e3)*1e3;e.min=r,e.max=n,e.baseValue=i.price.junil_price,e.strictMinMax=!0;const a=Ks(Gs(i.chart[0].date),{hours:9}),o=Ks(Gs(i.chart[0].date),{hours:15,minutes:30});t.min=a.getTime(),t.max=o.getTime(),t.baseInterval={timeUnit:"minute",count:5};const l=s.series.push(new er);l.dataFields.dateX="date",l.dataFields.valueY="currentPrice",l.defaultState.transitionDuration=0,l.stroke=H("#66AAFF"),l.strokeWidth=3,l.tooltipText="현재가 : {valueY.value}",l.tooltip&&(l.tooltip.getFillFromObject=!1,l.tooltip.label.fill=H("#ffffff"),l.tooltip.background.fill=H("#66AAFF")),l.adapter.add("tooltipText",(p,d)=>{const f=d.tooltipDataItem,c=f.getValue("valueY");
172if(f&&c&&l.tooltip){const y=c>=i.price.junil_price;l.tooltip.background.fill=H(y?"#F23005":"#66AAFF");const g=document.querySelector("#chartJunilValue");g&&(g.textContent=c.toLocaleString())}return p});let h=e.createSeriesRange(l);h.value=i.price.junil_price,h.endValue=i.price.goga,h.contents.stroke=H("#F23005"),h.contents.fill=h.contents.stroke,h.contents.strokeOpacity=.7,h.contents.fillOpacity=.11;let u=e.createSeriesRange(l);u.value=i.price.junil_price,u.endValue=i.price.juga,u.contents.stroke=H("#0072FF"),u.contents.fill=u.contents.stroke,u.contents.strokeOpacity=.7,u.contents.fillOpacity=.1,xl(s)}function wd(s,i){const t=s.xAxes.push(new St);t.dataFields.category="category",t.renderer.grid.template.disabled=!0,t.renderer.fontFamily="Roboto",t.renderer.fontSize="14px",t.renderer.fontWeight="400",t.renderer.inside=!1,t.startLocation=0,t.endLocation=1,s.chartContainer.wheelable=!0,t.minZoomCount=3,t.interpolationDuration=0,s.chartContainer.events.on("wheel",function(l){if(l.event.preventDefault(),i==="week")return;const h=s.data.length,p=l.event.deltaY>0?1:-1,d=t.start,c=t.end-d,y=5,g=h;let P=c*h+p*(i==="quarter"?6:15);P<y&&(P=y),P>g&&(P=g);const S=s.plotContainer.pixelWidth,O=l.event.offsetX/S,T=d+c*O,D=P/h;let k=T-D/2,z=T+D/2;k<0&&(k=0,z=D),z>1&&(z=1,k=1-D),t.zoom({start:k,end:z})});const e=s.yAxes.push(new $);e.zIndex=1,e.height=I(100),e.marginTop=20,e.renderer.baseGrid.disabled=!0,e.renderer.labels.template.verticalCenter="middle",e.renderer.labels.template.align="left",e.renderer.labels.template.padding(2,10,2,2),e.renderer.fontSize="0.8em",e.cursorTooltipEnabled=!1,e.renderer.minGridDistance=60;const r=s.series.push(new er);r.dataFields.categoryX="category",r.dataFields.valueY="closePrice",r.defaultState.transitionDuration=0,r.strokeWidth=2,r.stroke=H("#66AAFF"),r.tooltipText="종가: {valueY.value}",r.tooltip&&(r.tooltip.getFillFromObject=!1,r.tooltip.background.fill=H("#66AAFF"),r.tooltip.label.fill=H("#ffffff")),r.adapter.add("tooltipText",(l,h)=>{var p,d;const u=h.tooltipDataItem.dataContext;if(u&&r.tooltip){const f=document.querySelector("#chartSigaValue"),c=document.querySelector("#chartJunilValue"),y=document.querySelector("#chartGogaValue"),g=document.querySelector("#chartJugaValue");f&&(f.textContent=u.startPrice.toLocaleString()),c&&(c.textContent=u.closePrice.toLocaleString()),y&&(y.textContent=((p=u.highPrice)==null?void 0:p.toLocaleString())||"-"),g&&(g.textContent=((d=u.lowPrice)==null?void 0:d.toLocaleString())||"-")}return l});const n=r.bullets.push(new Ur);n.label.adapter.add("html",function(l,h){const u=h.dataItem;return u&&u.dataContext?`
173					<span
174						id="stockNewsIcon"
175						class="news_symbol ${s.data[u.index].news.isExist?"news_icon":""}"
176						data-index=${u.index}
177					></span>
178				`:l}),n.label.dy=-15,n.events.on("hit",l=>{r.tooltip&&(r.tooltip.visible=!1,r.tooltip.dom.style.visibility="hidden"),Dd(l,s,r)});const a=l=>{const h=document.querySelector("#tooltipWrapper > .tooltip"),u=l.target.axisFullLength/r.dataItems.length;Sa(u),h&&ql()},o=()=>{const h=t.axisFullLength/r.dataItems.length;Sa(h)};t.events.on("startchanged",a),t.events.on("endchanged",a),s.events.on("sizechanged",()=>{o()}),xl(s)}function Sd(s,i){const t=s.yAxes.push(new $);t.height=I(100),t.marginTop=80,t.zIndex=3,t.renderer.baseGrid.disabled=!0,t.renderer.inside=!0,t.renderer.labels.template.verticalCenter="middle",t.renderer.labels.template.padding(2,2,2,2),t.renderer.fontSize="0.8em",t.renderer.gridContainer.background.fill=H("#ffffff"),t.renderer.gridContainer.background.fillOpacity=0,t.cursorTooltipEnabled=!1;const e=s.series.push(new Ge);i==="day"?e.dataFields.dateX="date":e.dataFields.categoryX="category",e.dataFields.valueY="volume",e.yAxis=t,e.defaultState.transitionDuration=0,e.columns.template.fill=H("#66AAFF"),e.columns.template.stroke=H("#66AAFF"),e.columns.template.strokeWidth=2,e.tooltipText="거래량 : {valueY.value}",e.tooltip&&(e.tooltip.getFillFromObject=!1,e.tooltip.label.fill=H("#ffffff"),e.tooltip.background.fill=H("#66AAFF")),e.adapter.add("tooltipText",(r,n)=>{const a=n.tooltipDataItem,o=a.getValue("valueY");
178if(a&&o&&e.tooltip){const l=document.querySelector("#chartTradeValue");l&&(l.textContent=o.toLocaleString())}return r})}function Od(s,i,t){const e=`
179		<div class="stock_chart_title price">
180			<p>시<span id="chartSigaValue">${i.price.siga.toLocaleString()}</span></p>
181			<p>종<span id="chartJunilValue">${i.price.junil_price.toLocaleString()}</span></p>
182			<p>ê³ <span id="chartGogaValue">${i.price.goga.toLocaleString()}</span></p>
183			<p>저<span id="chartJugaValue">${i.price.juga.toLocaleString()}</span></p>
184		</div>
185	`,r=`
186		<div class="stock_chart_title trade">
187			거래량
188			<span id="chartTradeValue">${i.chart[i.chart.length-1].volume.toLocaleString()||"-"}</span>
189		</div>
190	`,n=document.createElement("div");n.innerHTML=t==="day"?r:e+r,s.appendChild(n)}function xl(s){const i=new Ee,t=i.scrollbarChart.xAxes.getIndex(0);t&&(t.minHeight=void 0,t.renderer.labels.template.disabled=!0),s.scrollbarX=i,s.scrollbarX.minHeight=10,i.marginBottom=30,i.dom.classList.add("custom-scrollbar")}function Sa(s){const i=document.getElementById("stockChartArea");i&&(s>17?i.querySelectorAll(".news_symbol").forEach(t=>{t.classList.add("show")}):i.querySelectorAll(".news_symbol").forEach(t=>{t.classList.remove("show")}))}function Dd(s,i,t){var a,o;const e=s.event.target,r=((a=e.attributes.getNamedItem("data-index"))==null?void 0:a.value)===void 0?-1:Number((o=e.attributes.getNamedItem("data-index"))==null?void 0:o.value),n=i.data[r];ji({text:`<a href="${n.news.url}" target="_blank">${n.news.title}</a>`,target:e,align:"auto",close:"click",onClose:()=>{t.tooltip&&(t.tooltip.visible=!0,t.tooltip.dom.style.visibility="visible")},$styles:El`
191			padding: 12px;
192			background: #fff;
193			color: #222;
194			border: 1px solid #f23005;
195			font-weight: 500;
196			line-height: 20px;
197			max-width: 208px;
198
199			${Gl} {
200				max-width: 208px;
201				min-width: 208px;
202			}
203
204			${Kl} {
205				max-width: 208px;
206				min-width: 208px;
207			}
208		`})}async function Td(s,i){let t="1d";switch(s){case"day":t="1d";break;case"week":t="1w";break;case"quarter":t="3m";break;case"year":t="1y";break}const e=await Dl(i,t),r={goga:e.Go||e.data[0].Go||0,juga:e.Ju||e.data[0].Ju||0,junil_price:e.junil_price||e.data[0].Jo,siga:e.Si||e.data[0].Si||0};return s==="day"?{chart:e.data.map(o=>{const l=`${e.updated_datetime.split(" ")[0]} ${o.Hm.slice(0,2)}:${o.Hm.slice(2,4)}:00`;return{date:Xs(l,"yyyy-MM-dd HH:mm:ss",new Date),currentPrice:o.Jo,closePrice:r.junil_price,volume:o.Gu}}),price:r,stock_market_status:e.stock_market_status}:{chart:e.data.map(a=>({date:Xs(a.Dt,"yyyyMMdd",new Date),category:`${a.Dt.slice(2,4)}-${a.Dt.slice(4,6)}-${a.Dt.slice(6)}`,volume:a.Gu,closePrice:a.Jo,startPrice:a.Si,highPrice:a.Go,lowPrice:a.Ju,news:{isExist:a.Aexist,title:a.Atitle,url:a.Aurl}})),price:r,stock_market_status:e.stock_market_status}}function gn(){const s=document.querySelector("#resultPopularStockIcon"),i=document.querySelector("#resultPopularKeywordIcon");s&&s.addEventListener("mousemove",function(){ji({text:"기사에 자주 언급 된 종목코드를 집계하여 제공합니다.",target:s,align:"right"})}),i&&i.addEventListener("mousemove",function(){ji({text:"구글에서 가장 많이 검색 된 키워드를 제공합니다.",target:i,align:"right"})}),ka(document.querySelector("#realtimeRanking"),{limit:5});const t=document.querySelector(".popular_stock_list.right_panel");if(t){Mn({swiperID:"resultPopularStockDrag"});const e=t.querySelectorAll(".item").length,r=Bl(t,e/2);t.style.width=`${r}px`}kl("stock")}async function kd(){const s=await Tl();if(s.keywords.length){const i=document.querySelector("#emptyPopularKeywordList");Vl(s.keywords,i)}}function _l(s){if(!s.length){Nl({title:"검색어가 입력되지 않았습니다.",subTitle:"검색어를 입력해주세요."});return}Al(s),Or({keyword:s})}const Vd={init:function(){Oa("searchResultInput",{type:"result",onSearch:_l}),Mn({swiperID:"searchResultPackageDrag"}),Mn({swiperID:"searchResultReporterDrag"}),Ys("searchResultArticleTabs","searchResultArticleList"),Ys("searchResultPackageTabs","searchResultPackageDrag"),gn(),document.querySelector("#stockChartArea")&&ml("stockChartArea"),this.setEvent()},setEvent:function(){const s=document.querySelector("#stockChartTooltipIcon");s&&s.addEventListener("mousemove",function(){ji({text:"머니투데이는 본 정보의 정확성에 대해 보증하지 않으며, 본 정보를 이용한 투자에 대한 책임은 해당 투자자에게 귀속됩니다.",target:s,align:"right"})});const i=document.querySelectorAll("#packageMoreBtn"),t=document.querySelectorAll("#searchResultPackageTabs > li");if(t&&i){const e=document.querySelector("#packageResult"),r=document.querySelector("#packageNoResult");t.forEach(n=>
208{n.addEventListener("mouseup",a=>{i.forEach(o=>{const l=o.getAttribute("data-type"),h=a.target.getAttribute("data-type"),u=a.target.getAttribute("data-count");Number(u)>0?(l===h&&Number(u)>3?o.classList.add("active"):o.classList.remove("active"),e==null||e.classList.remove("none"),r==null||r.classList.add("none")):(e==null||e.classList.add("none"),r==null||r.classList.remove("none"))})})})}}},Ad={init:function(){const s=Rl("order"),i=t=>{Or({order:s||"latest",page:t})};Ta(document.querySelector("#pagination"),i),Wl(document.querySelector("#orderSelect"),{initialState:{selectData:Hl,activeKey:s||"latest"},onSubmit:t=>{Or({order:t||"latest",page:1})}}),Va(document.querySelector("#listArea"),document.querySelector("#sideArea")),gn(),this.setEvent()},setEvent:function(){}},Fd={init:function(){Oa("searchResultInput",{type:"result",onSearch:_l}),kd(),ka(document.querySelector("#realtimeRanking"),{limit:5}),this.setEvent()},setEvent:function(){const s=document.querySelector("#emptyPopularKeywordIcon");s.addEventListener("mousemove",function(){ji({text:"구글에서 가장 많이 검색 된 키워드를 제공합니다.",target:s,scrollContainer:document.querySelector("#searchLayerInner"),align:"right"})})}},Id={init:function(){const i=document.querySelector("#searchStockPrice").getAttribute("data-id")||"";th("searchStockPrice",{id:i}),Zl({swiperID:"stockIndustrySwiper",navID:"stockIndustryNav",options:{perViews:{pc:4,tablet:3,mobile:2},spaceBetween:{pc:16,tablet:16,mobile:8}}}),gn(),document.querySelector("#stockChartArea")&&ml("stockChartArea")},setEvent:function(){}},Md={init:function(){const s=i=>{Or({page:i})};Ta(document.querySelector("#pagination"),s),gn(),Va(document.querySelector("#listArea"),document.querySelector("#sideArea")),this.setEvent()},setEvent:function(){}},jd={"search-result":Vd,"search-result-list":Ad,"search-empty":Fd,"search-stock":Id,"search-stock-news":Md},Ld=()=>{const s=document.querySelector("#container");if(s){const i=s.getAttribute("data-page-name");if(i==null){console.error("data-page-name 속성이 없습니다.");return}const t=jd[i];t?t.init():$l()}};Ld();
209function __vite__mapDeps(indexes) {
210  if (!__vite__mapDeps.viteFileDeps) {
211    __vite__mapDeps.viteFileDeps = ["mt24/assets/20260930162915/pdfmake-CoOmvZC7.js","mt24/assets/20260930162915/client-CKcnm9qM.js","mt24/assets/20260930162915/index-DTy3DVFW.js","mt24/assets/20260930162915/index-C7V2HHZK.js"]
212  }
213  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
214}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.